2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for courier-authlib 0.61.0.
5 # Report bugs to <courier-imap@lists.sourceforge.net>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in
26 *posix
*) set -o posix
;;
35 # Avoid depending upon Character Ranges.
36 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits
='0123456789'
40 as_cr_alnum
=$as_cr_Letters$as_cr_digits
42 # The user is always right.
43 if test "${PATH_SEPARATOR+set}" != set; then
44 echo "#! /bin/sh" >conf$$.sh
45 echo "exit 0" >>conf$$.sh
47 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
55 # Support unset when possible.
56 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
64 # We need space, tab and new line, in precisely that order. Quoting is
65 # there to prevent editors from complaining about space-tab.
66 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
67 # splitting by setting IFS to empty value.)
72 # Find who we are. Look in the path if we contain no directory separator.
74 *[\\/]* ) as_myself
=$0 ;;
75 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
79 test -z "$as_dir" && as_dir
=.
80 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
86 # We did not find ourselves, most probably we were run as `sh COMMAND'
87 # in which case we are not to be found in the path.
88 if test "x$as_myself" = x
; then
91 if test ! -f "$as_myself"; then
92 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96 # Work around bugs in pre-3.0 UWIN ksh.
97 for as_var
in ENV MAIL MAILPATH
98 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
106 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111 eval $as_var=C
; export $as_var
113 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
117 # Required to use basename.
118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
125 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132 # Name of the executable.
133 as_me
=`$as_basename -- "$0" ||
134 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135 X"$0" : 'X\(//\)$' \| \
136 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 if test "x$CONFIG_SHELL" = x
; then
157 if (eval ":") 2>/dev
/null
; then
163 if test $as_have_required = yes && (eval ":
173 as_func_ret_success () {
176 as_func_ret_failure () {
181 if as_func_success; then
185 echo as_func_success failed.
188 if as_func_failure; then
190 echo as_func_failure succeeded.
193 if as_func_ret_success; then
197 echo as_func_ret_success failed.
200 if as_func_ret_failure; then
202 echo as_func_ret_failure succeeded.
205 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209 echo positional parameters were not saved.
212 test \$exitcode = 0) || { (exit 1); exit 1; }
217 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219 ") 2> /dev
/null
; then
223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
224 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
227 test -z "$as_dir" && as_dir
=.
230 for as_base
in sh bash ksh sh5
; do
231 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
238 for as_shell
in $as_candidate_shells $SHELL; do
239 # Try only shells that exist, to save several forks.
240 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
241 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
242 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
245 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246 # is contrary to our usage. Disable this feature.
247 alias -g '${1+"$@"}'='"$@"'
250 case `(set -o) 2>/dev/null` in
251 *posix
*) set -o posix
;;
260 CONFIG_SHELL
=$as_shell
262 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
263 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
266 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267 # is contrary to our usage. Disable this feature.
268 alias -g '${1+"$@"}'='"$@"'
271 case `(set -o) 2>/dev/null` in
272 *posix
*) set -o posix
;;
288 as_func_ret_success
() {
291 as_func_ret_failure
() {
296 if as_func_success
; then
300 echo as_func_success failed.
303 if as_func_failure
; then
305 echo as_func_failure succeeded.
308 if as_func_ret_success
; then
312 echo as_func_ret_success failed.
315 if as_func_ret_failure
; then
317 echo as_func_ret_failure succeeded.
320 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
324 echo positional parameters were not saved.
327 test $exitcode = 0) ||
{ (exit 1); exit 1; }
332 test "x$as_lineno_1" != "x$as_lineno_2" &&
333 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
344 if test "x$CONFIG_SHELL" != x
; then
345 for as_var
in BASH_ENV ENV
346 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
349 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353 if test $as_have_required = no
; then
354 echo This
script requires a shell
more modern than all the
355 echo shells that I found on your system. Please
install a
356 echo modern shell
, or manually run the
script under such a
357 echo shell
if you
do have one.
358 { (exit 1); exit 1; }
368 (eval "as_func_return () {
377 as_func_ret_success () {
380 as_func_ret_failure () {
385 if as_func_success; then
389 echo as_func_success failed.
392 if as_func_failure; then
394 echo as_func_failure succeeded.
397 if as_func_ret_success; then
401 echo as_func_ret_success failed.
404 if as_func_ret_failure; then
406 echo as_func_ret_failure succeeded.
409 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413 echo positional parameters were not saved.
416 test \$exitcode = 0") ||
{
417 echo No shell found that supports shell functions.
418 echo Please tell autoconf@gnu.org about your system
,
419 echo including any error possibly output before this
427 test "x$as_lineno_1" != "x$as_lineno_2" &&
428 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
430 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431 # uniformly replaced by the line number. The first 'sed' inserts a
432 # line-number line after each line using $LINENO; the second 'sed'
433 # does the real work. The second script uses 'N' to pair each
434 # line-number line with the line containing $LINENO, and appends
435 # trailing '-' during substitution so that $LINENO is not a special
437 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438 # scripts with optimization help from Paolo Bonzini. Blame Lee
439 # E. McMahon (1931-1989) for sed's syntax. :-)
451 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455 chmod +x
"$as_me.lineno" ||
456 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457 { (exit 1); exit 1; }; }
459 # Don't try to exec as it changes $[0], causing all sort of problems
460 # (the dirname of $[0] is not the place where we might find the
461 # original and so on. Autoconf is especially sensitive to this).
463 # Exit status is that of the last command.
468 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
474 ECHO_C
= ECHO_N
= ECHO_T
=
478 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
485 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
486 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
492 rm -f conf$$ conf$$.exe conf$$.
file
493 if test -d conf$$.dir
; then
494 rm -f conf$$.dir
/conf$$.
file
500 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
502 # ... but there are two gotchas:
503 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505 # In both cases, we have to default to `cp -p'.
506 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
508 elif ln conf$$.
file conf$$
2>/dev
/null
; then
513 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
514 rmdir conf$$.dir
2>/dev
/null
516 if mkdir
-p .
2>/dev
/null
; then
519 test -d .
/-p && rmdir .
/-p
523 if test -x / >/dev
/null
2>&1; then
526 if ls -dL / >/dev
/null
2>&1; then
533 if test -d "$1"; then
539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540 ???[sx]*):;;*)false;;esac;fi
544 as_executable_p
=$as_test_x
546 # Sed expression to map a string onto a valid CPP name.
547 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549 # Sed expression to map a string onto a valid variable name.
550 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL
=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec
; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo
; then
570 # Avoid inline document here, it may be left over
572 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $echo works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo
; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
593 if test -z "$ECHO"; then
594 if test "X${echo_test_string+set}" != Xset
; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
599 echo_test_string
=`eval $cmd` &&
600 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
607 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
608 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
609 test "X$echo_testing_string" = "X$echo_test_string"; then
612 # The Solaris, AIX, and Digital Unix default echo programs unquote
613 # backslashes. This makes it impossible to quote backslashes using
614 # echo "$something" | sed 's/\\/\\\\/g'
616 # So, first we look for a working echo in the user's PATH.
618 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
619 for dir
in $PATH /usr
/ucb
; do
621 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
622 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
623 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
624 test "X$echo_testing_string" = "X$echo_test_string"; then
631 if test "X$echo" = Xecho
; then
632 # We didn't find a better echo, so look for alternatives.
633 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
634 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
635 test "X$echo_testing_string" = "X$echo_test_string"; then
636 # This shell has a builtin print -r that does the trick.
638 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
639 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
640 # If we have ksh, try running configure again with it.
641 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
642 export ORIGINAL_CONFIG_SHELL
643 CONFIG_SHELL
=/bin
/ksh
645 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
649 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
650 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
654 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
655 test "X$echo_testing_string" = 'X\t' &&
656 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
660 SHELL
="$CONFIG_SHELL"
662 echo="$CONFIG_SHELL $0 --fallback-echo"
663 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
664 test "X$echo_testing_string" = 'X\t' &&
665 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
666 test "X$echo_testing_string" = "X$echo_test_string"; then
667 echo="$CONFIG_SHELL $0 --fallback-echo"
669 # maybe with a smaller string...
672 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
673 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
680 if test "$prev" != 'sed 50q "$0"'; then
681 echo_test_string
=`eval $prev`
682 export echo_test_string
683 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
685 # Oops. We lost completely, so just stick with echo.
694 # Copy echo and quote the copy suitably for passing to libtool from
695 # the Makefile, instead of quoting the original, which is used later.
697 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
698 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
704 tagnames
=${tagnames+${tagnames},}CXX
706 tagnames
=${tagnames+${tagnames},}F77
708 exec 7<&0 </dev
/null
6>&1
711 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
712 # so uname gets run too.
713 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
718 ac_default_prefix
=/usr
/local
720 ac_config_libobj_dir
=.
726 SHELL
=${CONFIG_SHELL-/bin/sh}
728 # Identity of this package.
729 PACKAGE_NAME
='courier-authlib'
730 PACKAGE_TARNAME
='courier-authlib'
731 PACKAGE_VERSION
='0.61.0'
732 PACKAGE_STRING
='courier-authlib 0.61.0'
733 PACKAGE_BUGREPORT
='courier-imap@lists.sourceforge.net'
735 ac_unique_file
="courierauth.h"
736 # Factoring default headers for most tests.
737 ac_includes_default
="\
739 #ifdef HAVE_SYS_TYPES_H
740 # include <sys/types.h>
742 #ifdef HAVE_SYS_STAT_H
743 # include <sys/stat.h>
749 # ifdef HAVE_STDLIB_H
754 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
759 #ifdef HAVE_STRINGS_H
760 # include <strings.h>
762 #ifdef HAVE_INTTYPES_H
763 # include <inttypes.h>
781 program_transform_name
823 INSTALL_STRIP_PROGRAM
933 ac_precious_vars
='build_alias
948 ac_subdirs_all
='libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog'
950 # Initialize some variables set by options.
952 ac_init_version
=false
953 # The variables have the same names as the options, with
954 # dashes changed to underlines.
962 program_transform_name
=s
,x
,x
,
970 # Installation directory options.
971 # These are left unexpanded so users can "make install exec_prefix=/foo"
972 # and all the variables that are supposed to be based on exec_prefix
973 # by default will actually change.
974 # Use braces instead of parens because sh, perl, etc. also accept them.
975 # (The list follows the same order as the GNU Coding Standards.)
976 bindir
='${exec_prefix}/bin'
977 sbindir
='${exec_prefix}/sbin'
978 libexecdir
='${exec_prefix}/libexec'
979 datarootdir
='${prefix}/share'
980 datadir
='${datarootdir}'
981 sysconfdir
='${prefix}/etc'
982 sharedstatedir
='${prefix}/com'
983 localstatedir
='${prefix}/var'
984 includedir
='${prefix}/include'
985 oldincludedir
='/usr/include'
986 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
987 infodir
='${datarootdir}/info'
992 libdir
='${exec_prefix}/lib'
993 localedir
='${datarootdir}/locale'
994 mandir
='${datarootdir}/man'
1000 # If the previous option needs an argument, assign it.
1001 if test -n "$ac_prev"; then
1002 eval $ac_prev=\
$ac_option
1008 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1014 case $ac_dashdash$ac_option in
1018 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1020 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1021 bindir
=$ac_optarg ;;
1023 -build |
--build |
--buil |
--bui |
--bu)
1024 ac_prev
=build_alias
;;
1025 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1026 build_alias
=$ac_optarg ;;
1028 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1029 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1030 ac_prev
=cache_file
;;
1031 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1032 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1033 cache_file
=$ac_optarg ;;
1035 --config-cache |
-C)
1036 cache_file
=config.cache
;;
1038 -datadir |
--datadir |
--datadi |
--datad)
1040 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1041 datadir
=$ac_optarg ;;
1043 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1044 |
--dataroo |
--dataro |
--datar)
1045 ac_prev
=datarootdir
;;
1046 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1047 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1048 datarootdir
=$ac_optarg ;;
1050 -disable-* |
--disable-*)
1051 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1054 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055 { (exit 1); exit 1; }; }
1056 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1057 eval enable_
$ac_feature=no
;;
1059 -docdir |
--docdir |
--docdi |
--doc |
--do)
1061 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1062 docdir
=$ac_optarg ;;
1064 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1066 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1067 dvidir
=$ac_optarg ;;
1069 -enable-* |
--enable-*)
1070 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071 # Reject names that are not valid shell variable names.
1072 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1073 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074 { (exit 1); exit 1; }; }
1075 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
1076 eval enable_
$ac_feature=\
$ac_optarg ;;
1078 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1079 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1080 |
--exec |
--exe |
--ex)
1081 ac_prev
=exec_prefix
;;
1082 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1083 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1084 |
--exec=* |
--exe=* |
--ex=*)
1085 exec_prefix
=$ac_optarg ;;
1087 -gas |
--gas |
--ga |
--g)
1088 # Obsolete; use --with-gas.
1091 -help |
--help |
--hel |
--he |
-h)
1092 ac_init_help
=long
;;
1093 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1094 ac_init_help
=recursive
;;
1095 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1096 ac_init_help
=short
;;
1098 -host |
--host |
--hos |
--ho)
1099 ac_prev
=host_alias
;;
1100 -host=* |
--host=* |
--hos=* |
--ho=*)
1101 host_alias
=$ac_optarg ;;
1103 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1105 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1107 htmldir
=$ac_optarg ;;
1109 -includedir |
--includedir |
--includedi |
--included |
--include \
1110 |
--includ |
--inclu |
--incl |
--inc)
1111 ac_prev
=includedir
;;
1112 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1113 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1114 includedir
=$ac_optarg ;;
1116 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1118 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1119 infodir
=$ac_optarg ;;
1121 -libdir |
--libdir |
--libdi |
--libd)
1123 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1124 libdir
=$ac_optarg ;;
1126 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1127 |
--libexe |
--libex |
--libe)
1128 ac_prev
=libexecdir
;;
1129 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1130 |
--libexe=* |
--libex=* |
--libe=*)
1131 libexecdir
=$ac_optarg ;;
1133 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1134 ac_prev
=localedir
;;
1135 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1136 localedir
=$ac_optarg ;;
1138 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1139 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1140 ac_prev
=localstatedir
;;
1141 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1142 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1143 localstatedir
=$ac_optarg ;;
1145 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1147 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1148 mandir
=$ac_optarg ;;
1150 -nfp |
--nfp |
--nf)
1151 # Obsolete; use --without-fp.
1154 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1155 |
--no-cr |
--no-c |
-n)
1158 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1159 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1162 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1163 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1164 |
--oldin |
--oldi |
--old |
--ol |
--o)
1165 ac_prev
=oldincludedir
;;
1166 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1167 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1168 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1169 oldincludedir
=$ac_optarg ;;
1171 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1173 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1174 prefix
=$ac_optarg ;;
1176 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1177 |
--program-pre |
--program-pr |
--program-p)
1178 ac_prev
=program_prefix
;;
1179 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1180 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1181 program_prefix
=$ac_optarg ;;
1183 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1184 |
--program-suf |
--program-su |
--program-s)
1185 ac_prev
=program_suffix
;;
1186 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1187 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1188 program_suffix
=$ac_optarg ;;
1190 -program-transform-name |
--program-transform-name \
1191 |
--program-transform-nam |
--program-transform-na \
1192 |
--program-transform-n |
--program-transform- \
1193 |
--program-transform |
--program-transfor \
1194 |
--program-transfo |
--program-transf \
1195 |
--program-trans |
--program-tran \
1196 |
--progr-tra |
--program-tr |
--program-t)
1197 ac_prev
=program_transform_name
;;
1198 -program-transform-name=* |
--program-transform-name=* \
1199 |
--program-transform-nam=* |
--program-transform-na=* \
1200 |
--program-transform-n=* |
--program-transform-=* \
1201 |
--program-transform=* |
--program-transfor=* \
1202 |
--program-transfo=* |
--program-transf=* \
1203 |
--program-trans=* |
--program-tran=* \
1204 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1205 program_transform_name
=$ac_optarg ;;
1207 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1209 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1210 pdfdir
=$ac_optarg ;;
1212 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1214 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1217 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1218 |
-silent |
--silent |
--silen |
--sile |
--sil)
1221 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1223 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1225 sbindir
=$ac_optarg ;;
1227 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1228 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1229 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1231 ac_prev
=sharedstatedir
;;
1232 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1233 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1234 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1236 sharedstatedir
=$ac_optarg ;;
1238 -site |
--site |
--sit)
1240 -site=* |
--site=* |
--sit=*)
1243 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1245 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1246 srcdir
=$ac_optarg ;;
1248 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1249 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1250 ac_prev
=sysconfdir
;;
1251 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1252 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1253 sysconfdir
=$ac_optarg ;;
1255 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1256 ac_prev
=target_alias
;;
1257 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1258 target_alias
=$ac_optarg ;;
1260 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1263 -version |
--version |
--versio |
--versi |
--vers |
-V)
1264 ac_init_version
=: ;;
1267 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268 # Reject names that are not valid shell variable names.
1269 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1270 { echo "$as_me: error: invalid package name: $ac_package" >&2
1271 { (exit 1); exit 1; }; }
1272 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1273 eval with_
$ac_package=\
$ac_optarg ;;
1275 -without-* |
--without-*)
1276 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277 # Reject names that are not valid shell variable names.
1278 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1279 { echo "$as_me: error: invalid package name: $ac_package" >&2
1280 { (exit 1); exit 1; }; }
1281 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1282 eval with_
$ac_package=no
;;
1285 # Obsolete; use --with-x.
1288 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1289 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1290 ac_prev
=x_includes
;;
1291 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1292 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1293 x_includes
=$ac_optarg ;;
1295 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1296 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1297 ac_prev
=x_libraries
;;
1298 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1299 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1300 x_libraries
=$ac_optarg ;;
1302 -*) { echo "$as_me: error: unrecognized option: $ac_option
1303 Try \`$0 --help' for more information." >&2
1304 { (exit 1); exit 1; }; }
1308 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
1310 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1311 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312 { (exit 1); exit 1; }; }
1313 eval $ac_envvar=\
$ac_optarg
1314 export $ac_envvar ;;
1317 # FIXME: should be removed in autoconf 3.0.
1318 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1320 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327 if test -n "$ac_prev"; then
1328 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1329 { echo "$as_me: error: missing argument to $ac_option" >&2
1330 { (exit 1); exit 1; }; }
1333 # Be sure to have absolute directory names.
1334 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335 datadir sysconfdir sharedstatedir localstatedir includedir \
1336 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337 libdir localedir mandir
1339 eval ac_val
=\$
$ac_var
1341 [\\/$
]* | ?
:[\\/]* ) continue;;
1342 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1344 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345 { (exit 1); exit 1; }; }
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target
=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x
; then
1357 if test "x$build_alias" = x
; then
1358 cross_compiling
=maybe
1359 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360 If a cross compiler is detected then cross compile mode will be used." >&2
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1369 test "$silent" = yes && exec 6>/dev
/null
1372 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di
=`ls -di .` &&
1374 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1375 { echo "$as_me: error: Working directory cannot be determined" >&2
1376 { (exit 1); exit 1; }; }
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 { echo "$as_me: error: pwd does not report name of working directory" >&2
1379 { (exit 1); exit 1; }; }
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 -- "$0" ||
1387 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388 X"$0" : 'X\(//\)[^/]' \| \
1389 X"$0" : 'X\(//\)$' \| \
1390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
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 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419 { (exit 1); exit 1; }; }
1421 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1423 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424 { (exit 1); exit 1; }; }
1426 # When building in place, set srcdir=.
1427 if test "$ac_abs_confdir" = "$ac_pwd"; then
1430 # Remove unnecessary trailing slashes from srcdir.
1431 # Double slashes in file names in object file debugging info
1432 # mess up M-x gdb in Emacs.
1434 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436 for ac_var
in $ac_precious_vars; do
1437 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1438 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1439 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1444 # Report the --help message.
1446 if test "$ac_init_help" = "long"; then
1447 # Omit some internal or obsolete options to make the list less imposing.
1448 # This message is too long to be a string in the A/UX 3.1 sh.
1450 \`configure' configures courier-authlib 0.61.0 to adapt to many kinds of systems.
1452 Usage: $0 [OPTION]... [VAR=VALUE]...
1454 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455 VAR=VALUE. See below for descriptions of some of the useful variables.
1457 Defaults for the options are specified in brackets.
1460 -h, --help display this help and exit
1461 --help=short display options specific to this package
1462 --help=recursive display the short help of all the included packages
1463 -V, --version display version information and exit
1464 -q, --quiet, --silent do not print \`checking...' messages
1465 --cache-file=FILE cache test results in FILE [disabled]
1466 -C, --config-cache alias for \`--cache-file=config.cache'
1467 -n, --no-create do not create output files
1468 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1470 Installation directories:
1471 --prefix=PREFIX install architecture-independent files in PREFIX
1472 [$ac_default_prefix]
1473 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476 By default, \`make install' will install all the files in
1477 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479 for instance \`--prefix=\$HOME'.
1481 For better control, use the options below.
1483 Fine tuning of the installation directories:
1484 --bindir=DIR user executables [EPREFIX/bin]
1485 --sbindir=DIR system admin executables [EPREFIX/sbin]
1486 --libexecdir=DIR program executables [EPREFIX/libexec]
1487 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490 --libdir=DIR object code libraries [EPREFIX/lib]
1491 --includedir=DIR C header files [PREFIX/include]
1492 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1493 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495 --infodir=DIR info documentation [DATAROOTDIR/info]
1496 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497 --mandir=DIR man documentation [DATAROOTDIR/man]
1498 --docdir=DIR documentation root [DATAROOTDIR/doc/courier-authlib]
1499 --htmldir=DIR html documentation [DOCDIR]
1500 --dvidir=DIR dvi documentation [DOCDIR]
1501 --pdfdir=DIR pdf documentation [DOCDIR]
1502 --psdir=DIR ps documentation [DOCDIR]
1508 --program-prefix=PREFIX prepend PREFIX to installed program names
1509 --program-suffix=SUFFIX append SUFFIX to installed program names
1510 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1513 --build=BUILD configure
for building on BUILD
[guessed
]
1514 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1518 if test -n "$ac_init_help"; then
1519 case $ac_init_help in
1520 short | recursive
) echo "Configuration of courier-authlib 0.61.0:";;
1525 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1526 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1527 --disable-dependency-tracking speeds up one-time build
1528 --enable-dependency-tracking do not reject slow dependency extractors
1529 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1530 --enable-static[=PKGS
] build static libraries
[default
=yes]
1531 --enable-fast-install[=PKGS
]
1532 optimize
for fast installation
[default
=yes]
1533 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1536 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1537 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1538 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1539 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1541 --with-tags[=TAGS
] include additional configurations
[automatic
]
1543 --with-pkgconfdir=d Install config files
in directory
1544 --with-db=gdbm Use the GDBM library.
1545 --with-db=db Use the libdb.a library.
1546 --without-authuserdb Do not include the authuserdb module
1548 --without-authpam Do not include the authpam module
1549 --with-authpam-libraries="libs" Link
'libs' with authpam
, this may be
1550 required
for FreeBSD
3.3
1551 --without-authldap Do not include the authldap module
1552 --with-authldaprc=filename Expect to
find authldaprc here
1553 --without-authpwd Do not include the authpwd module
1554 --without-authshadow Do not include the authshadow module
1555 --with-authpgsqlrc=filename Expect to
find authpgsql here
1556 --without-authpgsql Do not include the authpgsql module
1557 --with-pgsql-libs=DIR Look
for pgsql libs
in this dir
1558 --with-pgsql-includes=DIR Look
for pgsql includes
in this dir
1559 --with-authmysqlrc=filename Expect to
find authmysql here
1560 --without-authmysql Do not include the authmysql module
1561 --with-mysql-libs=DIR Look
for mysql libs
in this dir
1562 --with-mysql-includes=DIR Look
for mysql includes
in this dir
1563 --without-authcustom Do not include the authcustom module
1564 --with-pipeprog=filename Expect to
find the pipe-prog here
1565 --without-authpipe Do not include the authpipe module
1566 --with-authdaemonrc=filename Expect to
find authdaemonrc here
1567 --with-authdaemonvar=directory Directory where authdaemon.pid and
1568 the listening socket is created
1569 --with-mailuser=user Specify
mail user name
(defaults to
1570 courier
, daemon
, admin
, bin
, or root
)
1571 --with-mailgroup=group Specify
mail group name
(defaults to courier
,
1572 daemon
, sys
, adm
, or root
)
1573 --without-stdheaderdir Header files will be installed into a directory
1574 not
in the compiler
's default search path.
1576 Some influential environment variables:
1577 CC C compiler command
1578 CFLAGS C compiler flags
1579 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1580 nonstandard directory <lib dir>
1581 LIBS libraries to pass to the linker, e.g. -l<library>
1582 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1583 you have headers in a nonstandard directory <include dir>
1585 CXX C++ compiler command
1586 CXXFLAGS C++ compiler flags
1587 CXXCPP C++ preprocessor
1588 F77 Fortran 77 compiler command
1589 FFLAGS Fortran 77 compiler flags
1591 Use these variables to override the choices made by `configure' or to
help
1592 it to
find libraries and programs with nonstandard names
/locations.
1594 Report bugs to
<courier-imap@lists.sourceforge.net
>.
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1602 test -d "$ac_dir" ||
continue
1606 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1608 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1609 # A ".." for each directory in $ac_dir_suffix.
1610 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1611 case $ac_top_builddir_sub in
1612 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1613 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1616 ac_abs_top_builddir
=$ac_pwd
1617 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1618 # for backward compatibility:
1619 ac_top_builddir
=$ac_top_build_prefix
1622 .
) # We are building in place.
1624 ac_top_srcdir
=$ac_top_builddir_sub
1625 ac_abs_top_srcdir
=$ac_pwd ;;
1626 [\\/]* | ?
:[\\/]* ) # Absolute name.
1627 ac_srcdir
=$srcdir$ac_dir_suffix;
1628 ac_top_srcdir
=$srcdir
1629 ac_abs_top_srcdir
=$srcdir ;;
1631 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1632 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1633 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1635 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1637 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1638 # Check for guested configure.
1639 if test -f "$ac_srcdir/configure.gnu"; then
1641 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1642 elif test -f "$ac_srcdir/configure"; then
1644 $SHELL "$ac_srcdir/configure" --help=recursive
1646 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1648 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1652 test -n "$ac_init_help" && exit $ac_status
1653 if $ac_init_version; then
1655 courier-authlib configure
0.61.0
1656 generated by GNU Autoconf
2.61
1658 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1659 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1660 This configure
script is free software
; the Free Software Foundation
1661 gives unlimited permission to copy
, distribute and modify it.
1665 cat >config.log
<<_ACEOF
1666 This file contains any messages produced by compilers while
1667 running configure, to aid debugging if configure makes a mistake.
1669 It was created by courier-authlib $as_me 0.61.0, which was
1670 generated by GNU Autoconf 2.61. Invocation command line was
1682 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1683 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1684 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1685 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1686 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1688 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1689 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1691 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1692 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1693 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1694 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1695 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1696 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1697 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1705 test -z "$as_dir" && as_dir
=.
1706 echo "PATH: $as_dir"
1722 # Keep a trace of the command line.
1723 # Strip out --no-create and --no-recursion so they do not pile up.
1724 # Strip out --silent because we don't want to record it for future runs.
1725 # Also quote any args containing shell meta-characters.
1726 # Make two passes to allow for proper duplicate-argument suppression.
1730 ac_must_keep_next
=false
1736 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1737 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1738 |
-silent |
--silent |
--silen |
--sile |
--sil)
1741 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1744 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1746 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1747 if test $ac_must_keep_next = true
; then
1748 ac_must_keep_next
=false
# Got value, back to normal.
1751 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1752 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1753 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1754 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1755 case "$ac_configure_args0 " in
1756 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1759 -* ) ac_must_keep_next
=true
;;
1762 ac_configure_args
="$ac_configure_args '$ac_arg'"
1767 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1768 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1770 # When interrupted or exit'd, cleanup temporary files, and complete
1771 # config.log. We remove comments because anyway the quotes in there
1772 # would cause problems or look ugly.
1773 # WARNING: Use '\'' to represent an apostrophe within the trap.
1774 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1775 trap 'exit_status=$?
1776 # Save into config.log some information that might help in debugging.
1781 ## ---------------- ##
1782 ## Cache variables. ##
1783 ## ---------------- ##
1786 # The following way of writing the cache mishandles newlines in values,
1788 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1789 eval ac_val=\$$ac_var
1793 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1794 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1797 _ | IFS | as_nl) ;; #(
1798 *) $as_unset $ac_var ;;
1803 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1804 *${as_nl}ac_space=\ *)
1806 "s/'\''/'\''\\\\'\'''\''/g;
1807 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1810 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1818 ## ----------------- ##
1819 ## Output variables. ##
1820 ## ----------------- ##
1823 for ac_var in $ac_subst_vars
1825 eval ac_val=\$$ac_var
1827 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1829 echo "$ac_var='\''$ac_val'\''"
1833 if test -n "$ac_subst_files"; then
1835 ## ------------------- ##
1836 ## File substitutions. ##
1837 ## ------------------- ##
1840 for ac_var
in $ac_subst_files
1842 eval ac_val
=\$
$ac_var
1844 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1846 echo "$ac_var='\''$ac_val'\''"
1851 if test -s confdefs.h; then
1861 test "$ac_signal" != 0 &&
1862 echo "$as_me: caught signal $ac_signal"
1863 echo "$as_me: exit $exit_status"
1865 rm -f core *.core core.conftest.* &&
1866 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1869 for ac_signal
in 1 2 13 15; do
1870 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1874 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1875 rm -f -r conftest
* confdefs.h
1877 # Predefined preprocessor variables.
1879 cat >>confdefs.h
<<_ACEOF
1880 #define PACKAGE_NAME "$PACKAGE_NAME"
1884 cat >>confdefs.h
<<_ACEOF
1885 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1889 cat >>confdefs.h
<<_ACEOF
1890 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1894 cat >>confdefs.h
<<_ACEOF
1895 #define PACKAGE_STRING "$PACKAGE_STRING"
1899 cat >>confdefs.h
<<_ACEOF
1900 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1904 # Let the site file select an alternate cache file if it wants to.
1905 # Prefer explicitly selected file to automatically selected ones.
1906 if test -n "$CONFIG_SITE"; then
1907 set x
"$CONFIG_SITE"
1908 elif test "x$prefix" != xNONE
; then
1909 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1911 set x
"$ac_default_prefix/share/config.site" \
1912 "$ac_default_prefix/etc/config.site"
1917 if test -r "$ac_site_file"; then
1918 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1919 echo "$as_me: loading site script $ac_site_file" >&6;}
1920 sed 's/^/| /' "$ac_site_file" >&5
1925 if test -r "$cache_file"; then
1926 # Some versions of bash will fail to source /dev/null (special
1927 # files actually), so we avoid doing that.
1928 if test -f "$cache_file"; then
1929 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1930 echo "$as_me: loading cache $cache_file" >&6;}
1932 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1933 *) .
"./$cache_file";;
1937 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1938 echo "$as_me: creating cache $cache_file" >&6;}
1942 # Check that the precious variables saved in the cache have kept the same
1944 ac_cache_corrupted
=false
1945 for ac_var
in $ac_precious_vars; do
1946 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1947 eval ac_new_set
=\
$ac_env_${ac_var}_set
1948 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1949 eval ac_new_val
=\
$ac_env_${ac_var}_value
1950 case $ac_old_set,$ac_new_set in
1952 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1953 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1954 ac_cache_corrupted
=: ;;
1956 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1957 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1958 ac_cache_corrupted
=: ;;
1961 if test "x$ac_old_val" != "x$ac_new_val"; then
1962 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1963 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1964 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1965 echo "$as_me: former value: $ac_old_val" >&2;}
1966 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1967 echo "$as_me: current value: $ac_new_val" >&2;}
1968 ac_cache_corrupted
=:
1971 # Pass precious variables to config.status.
1972 if test "$ac_new_set" = set; then
1974 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1975 *) ac_arg
=$ac_var=$ac_new_val ;;
1977 case " $ac_configure_args " in
1978 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1979 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1983 if $ac_cache_corrupted; then
1984 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1985 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1986 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1987 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1988 { (exit 1); exit 1; }; }
2016 ac_cpp
='$CPP $CPPFLAGS'
2017 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2018 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2019 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2024 ac_config_headers
="$ac_config_headers courier_auth_config.h"
2027 am__api_version
='1.10'
2030 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2031 if test -f "$ac_dir/install-sh"; then
2033 ac_install_sh
="$ac_aux_dir/install-sh -c"
2035 elif test -f "$ac_dir/install.sh"; then
2037 ac_install_sh
="$ac_aux_dir/install.sh -c"
2039 elif test -f "$ac_dir/shtool"; then
2041 ac_install_sh
="$ac_aux_dir/shtool install -c"
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2048 { (exit 1); exit 1; }; }
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2060 # Find a good install program. We prefer a C program (faster),
2061 # so one script is as good as another. But avoid the broken or
2062 # incompatible versions:
2063 # SysV /etc/install, /usr/sbin/install
2064 # SunOS /usr/etc/install
2065 # IRIX /sbin/install
2067 # AmigaOS /C/install, which installs bootblocks on floppy discs
2068 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2069 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2070 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2071 # OS/2's system install, which has a completely different semantic
2072 # ./install, which can be erroneously created by make from ./install.sh.
2073 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2074 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2075 if test -z "$INSTALL"; then
2076 if test "${ac_cv_path_install+set}" = set; then
2077 echo $ECHO_N "(cached) $ECHO_C" >&6
2079 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2083 test -z "$as_dir" && as_dir
=.
2084 # Account for people who put trailing slashes in PATH elements.
2086 .
/ | .
// |
/cC
/* | \
2087 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2088 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
2091 # OSF1 and SCO ODT 3.0 have their own names for install.
2092 # Don't use installbsd from OSF since it installs stuff as root
2094 for ac_prog
in ginstall scoinst
install; do
2095 for ac_exec_ext
in '' $ac_executable_extensions; do
2096 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2097 if test $ac_prog = install &&
2098 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2099 # AIX install. It has an incompatible calling convention.
2101 elif test $ac_prog = install &&
2102 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2103 # program-specific install script used by HP pwplus--don't use.
2106 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2119 if test "${ac_cv_path_install+set}" = set; then
2120 INSTALL
=$ac_cv_path_install
2122 # As a last resort, use the slow shell script. Don't cache a
2123 # value for INSTALL within a source directory, because that will
2124 # break other packages using the cache if that directory is
2125 # removed, or if the value is a relative name.
2126 INSTALL
=$ac_install_sh
2129 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2130 echo "${ECHO_T}$INSTALL" >&6; }
2132 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2133 # It thinks the first close brace ends the variable substitution.
2134 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2136 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2138 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2140 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2141 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2144 echo timestamp
> conftest.
file
2145 # Do `set' in a subshell so we don't clobber the current shell's
2146 # arguments. Must try -L first in case configure is actually a
2147 # symlink; some systems play weird games with the mod time of symlinks
2148 # (eg FreeBSD returns the mod time of the symlink's containing
2151 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2152 if test "$*" = "X"; then
2154 set X
`ls -t $srcdir/configure conftest.file`
2157 if test "$*" != "X $srcdir/configure conftest.file" \
2158 && test "$*" != "X conftest.file $srcdir/configure"; then
2160 # If neither matched, then we have a broken ls. This can happen
2161 # if, for instance, CONFIG_SHELL is bash and it inherits a
2162 # broken ls alias from the environment. This has actually
2163 # happened. Such a system could not be considered "sane".
2164 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2165 alias in your environment" >&5
2166 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2167 alias in your environment" >&2;}
2168 { (exit 1); exit 1; }; }
2171 test "$2" = conftest.
file
2177 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2178 Check your system clock" >&5
2179 echo "$as_me: error: newly created file is older than distributed files!
2180 Check your system clock" >&2;}
2181 { (exit 1); exit 1; }; }
2183 { echo "$as_me:$LINENO: result: yes" >&5
2184 echo "${ECHO_T}yes" >&6; }
2185 test "$program_prefix" != NONE
&&
2186 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2187 # Use a double $ so make ignores it.
2188 test "$program_suffix" != NONE
&&
2189 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2190 # Double any \ or $. echo might interpret backslashes.
2191 # By default was `s,x,x', remove it if useless.
2192 cat <<\_ACEOF
>conftest.
sed
2193 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
2195 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
2198 # expand $ac_aux_dir to an absolute path
2199 am_aux_dir
=`cd $ac_aux_dir && pwd`
2201 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
2202 # Use eval to expand $SHELL
2203 if eval "$MISSING --run true"; then
2204 am_missing_run
="$MISSING --run "
2207 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2208 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2211 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2212 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2213 if test -z "$MKDIR_P"; then
2214 if test "${ac_cv_path_mkdir+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2218 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2221 test -z "$as_dir" && as_dir
=.
2222 for ac_prog
in mkdir gmkdir
; do
2223 for ac_exec_ext
in '' $ac_executable_extensions; do
2224 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2225 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2226 'mkdir (GNU coreutils) '* | \
2227 'mkdir (coreutils) '* | \
2228 'mkdir (fileutils) '4.1*)
2229 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2239 if test "${ac_cv_path_mkdir+set}" = set; then
2240 MKDIR_P
="$ac_cv_path_mkdir -p"
2242 # As a last resort, use the slow shell script. Don't cache a
2243 # value for MKDIR_P within a source directory, because that will
2244 # break other packages using the cache if that directory is
2245 # removed, or if the value is a relative name.
2246 test -d .
/--version && rmdir .
/--version
2247 MKDIR_P
="$ac_install_sh -d"
2250 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2251 echo "${ECHO_T}$MKDIR_P" >&6; }
2255 [\\/$
]* | ?
:[\\/]*) ;;
2256 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2259 for ac_prog
in gawk mawk nawk
awk
2261 # Extract the first word of "$ac_prog", so it can be a program name with args.
2262 set dummy
$ac_prog; ac_word
=$2
2263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2265 if test "${ac_cv_prog_AWK+set}" = set; then
2266 echo $ECHO_N "(cached) $ECHO_C" >&6
2268 if test -n "$AWK"; then
2269 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2275 test -z "$as_dir" && as_dir
=.
2276 for ac_exec_ext
in '' $ac_executable_extensions; do
2277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2278 ac_cv_prog_AWK
="$ac_prog"
2279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2289 if test -n "$AWK"; then
2290 { echo "$as_me:$LINENO: result: $AWK" >&5
2291 echo "${ECHO_T}$AWK" >&6; }
2293 { echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6; }
2298 test -n "$AWK" && break
2301 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2303 set x
${MAKE-make}; ac_make
=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2304 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 cat >conftest.
make <<\_ACEOF
2310 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2312 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2313 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2315 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2317 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2321 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2322 { echo "$as_me:$LINENO: result: yes" >&5
2323 echo "${ECHO_T}yes" >&6; }
2326 { echo "$as_me:$LINENO: result: no" >&5
2327 echo "${ECHO_T}no" >&6; }
2328 SET_MAKE
="MAKE=${MAKE-make}"
2331 rm -rf .tst
2>/dev
/null
2332 mkdir .tst
2>/dev
/null
2333 if test -d .tst
; then
2338 rmdir .tst
2>/dev
/null
2340 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2341 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2342 # is not polluted with repeated "-I."
2343 am__isrc
=' -I$(srcdir)'
2344 # test to see if srcdir already configured
2345 if test -f $srcdir/config.status
; then
2346 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2347 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2348 { (exit 1); exit 1; }; }
2352 # test whether we have cygpath
2353 if test -z "$CYGPATH_W"; then
2354 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2355 CYGPATH_W
='cygpath -w'
2362 # Define the identity of the package.
2363 PACKAGE
='courier-authlib'
2367 cat >>confdefs.h
<<_ACEOF
2368 #define PACKAGE "$PACKAGE"
2372 cat >>confdefs.h
<<_ACEOF
2373 #define VERSION "$VERSION"
2376 # Some tools Automake needs.
2378 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2381 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2384 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2387 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2390 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2392 install_sh
=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2394 # Installed binaries are usually stripped using `strip' when the user
2395 # run `make install-strip'. However `strip' might not be the right
2396 # tool to use in cross-compilation environments, therefore Automake
2397 # will honor the `STRIP' environment variable to overrule this program.
2398 if test "$cross_compiling" != no
; then
2399 if test -n "$ac_tool_prefix"; then
2400 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2401 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2404 if test "${ac_cv_prog_STRIP+set}" = set; then
2405 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 if test -n "$STRIP"; then
2408 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2410 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2414 test -z "$as_dir" && as_dir
=.
2415 for ac_exec_ext
in '' $ac_executable_extensions; do
2416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2417 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2427 STRIP
=$ac_cv_prog_STRIP
2428 if test -n "$STRIP"; then
2429 { echo "$as_me:$LINENO: result: $STRIP" >&5
2430 echo "${ECHO_T}$STRIP" >&6; }
2432 { echo "$as_me:$LINENO: result: no" >&5
2433 echo "${ECHO_T}no" >&6; }
2438 if test -z "$ac_cv_prog_STRIP"; then
2440 # Extract the first word of "strip", so it can be a program name with args.
2441 set dummy strip
; ac_word
=$2
2442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2444 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2445 echo $ECHO_N "(cached) $ECHO_C" >&6
2447 if test -n "$ac_ct_STRIP"; then
2448 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2454 test -z "$as_dir" && as_dir
=.
2455 for ac_exec_ext
in '' $ac_executable_extensions; do
2456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2457 ac_cv_prog_ac_ct_STRIP
="strip"
2458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2467 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2468 if test -n "$ac_ct_STRIP"; then
2469 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2470 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2472 { echo "$as_me:$LINENO: result: no" >&5
2473 echo "${ECHO_T}no" >&6; }
2476 if test "x$ac_ct_STRIP" = x
; then
2479 case $cross_compiling:$ac_tool_warned in
2481 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2482 whose name does not start with the host triplet. If you think this
2483 configuration is useful to you, please write to autoconf@gnu.org." >&5
2484 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2485 whose name does not start with the host triplet. If you think this
2486 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2487 ac_tool_warned
=yes ;;
2492 STRIP
="$ac_cv_prog_STRIP"
2496 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2498 # We need awk for the "check" target. The system "awk" is bad on
2500 # Always define AMTAR for backward compatibility.
2502 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2504 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2510 >confdefs.h
# Kill PACKAGE_ macros
2512 LPATH
="$PATH:/usr/local/bin"
2514 for ac_prog
in gawk mawk nawk
awk
2516 # Extract the first word of "$ac_prog", so it can be a program name with args.
2517 set dummy
$ac_prog; ac_word
=$2
2518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2520 if test "${ac_cv_prog_AWK+set}" = set; then
2521 echo $ECHO_N "(cached) $ECHO_C" >&6
2523 if test -n "$AWK"; then
2524 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2530 test -z "$as_dir" && as_dir
=.
2531 for ac_exec_ext
in '' $ac_executable_extensions; do
2532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2533 ac_cv_prog_AWK
="$ac_prog"
2534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2544 if test -n "$AWK"; then
2545 { echo "$as_me:$LINENO: result: $AWK" >&5
2546 echo "${ECHO_T}$AWK" >&6; }
2548 { echo "$as_me:$LINENO: result: no" >&5
2549 echo "${ECHO_T}no" >&6; }
2553 test -n "$AWK" && break
2557 ac_cpp
='$CPP $CPPFLAGS'
2558 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2559 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2560 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2561 if test -n "$ac_tool_prefix"; then
2562 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2563 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2564 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2566 if test "${ac_cv_prog_CC+set}" = set; then
2567 echo $ECHO_N "(cached) $ECHO_C" >&6
2569 if test -n "$CC"; then
2570 ac_cv_prog_CC
="$CC" # Let the user override the test.
2572 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2576 test -z "$as_dir" && as_dir
=.
2577 for ac_exec_ext
in '' $ac_executable_extensions; do
2578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2579 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2590 if test -n "$CC"; then
2591 { echo "$as_me:$LINENO: result: $CC" >&5
2592 echo "${ECHO_T}$CC" >&6; }
2594 { echo "$as_me:$LINENO: result: no" >&5
2595 echo "${ECHO_T}no" >&6; }
2600 if test -z "$ac_cv_prog_CC"; then
2602 # Extract the first word of "gcc", so it can be a program name with args.
2603 set dummy gcc
; ac_word
=$2
2604 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2606 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2607 echo $ECHO_N "(cached) $ECHO_C" >&6
2609 if test -n "$ac_ct_CC"; then
2610 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2616 test -z "$as_dir" && as_dir
=.
2617 for ac_exec_ext
in '' $ac_executable_extensions; do
2618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2619 ac_cv_prog_ac_ct_CC
="gcc"
2620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2629 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2630 if test -n "$ac_ct_CC"; then
2631 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2632 echo "${ECHO_T}$ac_ct_CC" >&6; }
2634 { echo "$as_me:$LINENO: result: no" >&5
2635 echo "${ECHO_T}no" >&6; }
2638 if test "x$ac_ct_CC" = x
; then
2641 case $cross_compiling:$ac_tool_warned in
2643 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2644 whose name does not start with the host triplet. If you think this
2645 configuration is useful to you, please write to autoconf@gnu.org." >&5
2646 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2647 whose name does not start with the host triplet. If you think this
2648 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2649 ac_tool_warned
=yes ;;
2657 if test -z "$CC"; then
2658 if test -n "$ac_tool_prefix"; then
2659 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2660 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2663 if test "${ac_cv_prog_CC+set}" = set; then
2664 echo $ECHO_N "(cached) $ECHO_C" >&6
2666 if test -n "$CC"; then
2667 ac_cv_prog_CC
="$CC" # Let the user override the test.
2669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir
=.
2674 for ac_exec_ext
in '' $ac_executable_extensions; do
2675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2676 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2687 if test -n "$CC"; then
2688 { echo "$as_me:$LINENO: result: $CC" >&5
2689 echo "${ECHO_T}$CC" >&6; }
2691 { echo "$as_me:$LINENO: result: no" >&5
2692 echo "${ECHO_T}no" >&6; }
2698 if test -z "$CC"; then
2699 # Extract the first word of "cc", so it can be a program name with args.
2700 set dummy cc
; ac_word
=$2
2701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2703 if test "${ac_cv_prog_CC+set}" = set; then
2704 echo $ECHO_N "(cached) $ECHO_C" >&6
2706 if test -n "$CC"; then
2707 ac_cv_prog_CC
="$CC" # Let the user override the test.
2710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2714 test -z "$as_dir" && as_dir
=.
2715 for ac_exec_ext
in '' $ac_executable_extensions; do
2716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2717 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2718 ac_prog_rejected
=yes
2722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test $ac_prog_rejected = yes; then
2730 # We found a bogon in the path, so make sure we never use it.
2731 set dummy
$ac_cv_prog_CC
2733 if test $# != 0; then
2734 # We chose a different compiler from the bogus one.
2735 # However, it has the same basename, so the bogon will be chosen
2736 # first if we set CC to just the basename; use the full file name.
2738 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2744 if test -n "$CC"; then
2745 { echo "$as_me:$LINENO: result: $CC" >&5
2746 echo "${ECHO_T}$CC" >&6; }
2748 { echo "$as_me:$LINENO: result: no" >&5
2749 echo "${ECHO_T}no" >&6; }
2754 if test -z "$CC"; then
2755 if test -n "$ac_tool_prefix"; then
2756 for ac_prog
in cl.exe
2758 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2759 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2760 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2762 if test "${ac_cv_prog_CC+set}" = set; then
2763 echo $ECHO_N "(cached) $ECHO_C" >&6
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC
="$CC" # Let the user override the test.
2768 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2772 test -z "$as_dir" && as_dir
=.
2773 for ac_exec_ext
in '' $ac_executable_extensions; do
2774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2775 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2786 if test -n "$CC"; then
2787 { echo "$as_me:$LINENO: result: $CC" >&5
2788 echo "${ECHO_T}$CC" >&6; }
2790 { echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6; }
2795 test -n "$CC" && break
2798 if test -z "$CC"; then
2800 for ac_prog
in cl.exe
2802 # Extract the first word of "$ac_prog", so it can be a program name with args.
2803 set dummy
$ac_prog; ac_word
=$2
2804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2806 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2807 echo $ECHO_N "(cached) $ECHO_C" >&6
2809 if test -n "$ac_ct_CC"; then
2810 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2816 test -z "$as_dir" && as_dir
=.
2817 for ac_exec_ext
in '' $ac_executable_extensions; do
2818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2819 ac_cv_prog_ac_ct_CC
="$ac_prog"
2820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2830 if test -n "$ac_ct_CC"; then
2831 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2832 echo "${ECHO_T}$ac_ct_CC" >&6; }
2834 { echo "$as_me:$LINENO: result: no" >&5
2835 echo "${ECHO_T}no" >&6; }
2839 test -n "$ac_ct_CC" && break
2842 if test "x$ac_ct_CC" = x
; then
2845 case $cross_compiling:$ac_tool_warned in
2847 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2848 whose name does not start with the host triplet. If you think this
2849 configuration is useful to you, please write to autoconf@gnu.org." >&5
2850 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2851 whose name does not start with the host triplet. If you think this
2852 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2853 ac_tool_warned
=yes ;;
2862 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2863 See \`config.log' for more details." >&5
2864 echo "$as_me: error: no acceptable C compiler found in \$PATH
2865 See \`config.log' for more details." >&2;}
2866 { (exit 1); exit 1; }; }
2868 # Provide some information about the compiler.
2869 echo "$as_me:$LINENO: checking for C compiler version" >&5
2870 ac_compiler
=`set X $ac_compile; echo $2`
2871 { (ac_try
="$ac_compiler --version >&5"
2873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2874 *) ac_try_echo=$ac_try;;
2876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2877 (eval "$ac_compiler --version >&5") 2>&5
2879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2880 (exit $ac_status); }
2881 { (ac_try="$ac_compiler -v >&5"
2883 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2884 *) ac_try_echo
=$ac_try;;
2886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2887 (eval "$ac_compiler -v >&5") 2>&5
2889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2890 (exit $ac_status); }
2891 { (ac_try
="$ac_compiler -V >&5"
2893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2894 *) ac_try_echo=$ac_try;;
2896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2897 (eval "$ac_compiler -V >&5") 2>&5
2899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2900 (exit $ac_status); }
2902 cat >conftest.$ac_ext <<_ACEOF
2905 cat confdefs.h >>conftest.$ac_ext
2906 cat >>conftest.$ac_ext <<_ACEOF
2907 /* end confdefs.h. */
2917 ac_clean_files_save=$ac_clean_files
2918 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2919 # Try to create an executable without -o first, disregard a.out.
2920 # It will help us diagnose broken compilers, and finding out an intuition
2922 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2923 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2924 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2926 # List of possible output files, starting from the most likely.
2927 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2928 # only as a last resort. b.out is created by i960 compilers.
2929 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2931 # The IRIX 6 linker writes into existing files which may not be
2932 # executable, retaining their permissions. Remove them first so a
2933 # subsequent execution test works.
2935 for ac_file in $ac_files
2938 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2939 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2944 if { (ac_try="$ac_link_default"
2946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2947 *) ac_try_echo=$ac_try;;
2949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2950 (eval "$ac_link_default") 2>&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; then
2954 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2955 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2956 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2957 # so that the user can short-circuit this test for compilers unknown to
2959 for ac_file
in $ac_files ''
2961 test -f "$ac_file" ||
continue
2963 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2966 # We found the default executable, but exeext='' is most
2970 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2972 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2974 # We set ac_cv_exeext here because the later test for it is not
2975 # safe: cross compilers may not add the suffix if given an `-o'
2976 # argument, so we may need to know it at that point already.
2977 # Even if this section looks crufty: it has the advantage of
2984 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2990 { echo "$as_me:$LINENO: result: $ac_file" >&5
2991 echo "${ECHO_T}$ac_file" >&6; }
2992 if test -z "$ac_file"; then
2993 echo "$as_me: failed program was:" >&5
2994 sed 's/^/| /' conftest.
$ac_ext >&5
2996 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2997 See \`config.log' for more details." >&5
2998 echo "$as_me: error: C compiler cannot create executables
2999 See \`config.log' for more details." >&2;}
3000 { (exit 77); exit 77; }; }
3003 ac_exeext
=$ac_cv_exeext
3005 # Check that the compiler produces executables we can run. If not, either
3006 # the compiler is broken, or we cross compile.
3007 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3008 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3009 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3010 # If not cross compiling, check that we can run a simple program.
3011 if test "$cross_compiling" != yes; then
3012 if { ac_try
='./$ac_file'
3013 { (case "(($ac_try" in
3014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3015 *) ac_try_echo=$ac_try;;
3017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3018 (eval "$ac_try") 2>&5
3020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3021 (exit $ac_status); }; }; then
3024 if test "$cross_compiling" = maybe; then
3027 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3028 If you meant to cross compile, use \`--host'.
3029 See \`config.log' for more details.
" >&5
3030 echo "$as_me: error
: cannot run C compiled programs.
3031 If you meant to cross compile
, use \
`--host'.
3032 See \`config.log
' for more details." >&2;}
3033 { (exit 1); exit 1; }; }
3037 { echo "$as_me:$LINENO: result: yes" >&5
3038 echo "${ECHO_T}yes" >&6; }
3040 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3041 ac_clean_files=$ac_clean_files_save
3042 # Check that the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3045 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3046 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3047 echo "${ECHO_T}$cross_compiling" >&6; }
3049 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3050 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3051 if { (ac_try="$ac_link"
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_link") 2>&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; then
3061 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3062 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3063 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3065 for ac_file
in conftest.exe conftest conftest.
*; do
3066 test -f "$ac_file" ||
continue
3068 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3069 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3075 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3076 See \`config.log' for more details." >&5
3077 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3078 See \`config.log' for more details." >&2;}
3079 { (exit 1); exit 1; }; }
3082 rm -f conftest
$ac_cv_exeext
3083 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3084 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3086 rm -f conftest.
$ac_ext
3087 EXEEXT
=$ac_cv_exeext
3089 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3090 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3091 if test "${ac_cv_objext+set}" = set; then
3092 echo $ECHO_N "(cached) $ECHO_C" >&6
3094 cat >conftest.
$ac_ext <<_ACEOF
3097 cat confdefs.h
>>conftest.
$ac_ext
3098 cat >>conftest.
$ac_ext <<_ACEOF
3099 /* end confdefs.h. */
3109 rm -f conftest.o conftest.obj
3110 if { (ac_try
="$ac_compile"
3112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3113 *) ac_try_echo=$ac_try;;
3115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3116 (eval "$ac_compile") 2>&5
3118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3119 (exit $ac_status); }; then
3120 for ac_file in conftest.o conftest.obj conftest.*; do
3121 test -f "$ac_file" || continue;
3123 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3124 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3129 echo "$as_me: failed program was:" >&5
3130 sed 's/^/| /' conftest.$ac_ext >&5
3132 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3133 See \`config.log
' for more details." >&5
3134 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3135 See \`config.log' for more details.
" >&2;}
3136 { (exit 1); exit 1; }; }
3139 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3141 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3142 echo "${ECHO_T}$ac_cv_objext" >&6; }
3143 OBJEXT=$ac_cv_objext
3145 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3146 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3147 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3148 echo $ECHO_N "(cached
) $ECHO_C" >&6
3150 cat >conftest.$ac_ext <<_ACEOF
3153 cat confdefs.h >>conftest.$ac_ext
3154 cat >>conftest.$ac_ext <<_ACEOF
3155 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3181 (exit $ac_status); } && {
3182 test -z "$ac_c_werror_flag" ||
3183 test ! -s conftest.err
3184 } && test -s conftest.$ac_objext; then
3187 echo "$as_me: failed program was
:" >&5
3188 sed 's/^/| /' conftest.$ac_ext >&5
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3197 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3198 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3199 GCC=`test $ac_compiler_gnu = yes && echo yes`
3200 ac_test_CFLAGS=${CFLAGS+set}
3201 ac_save_CFLAGS=$CFLAGS
3202 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3203 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3204 if test "${ac_cv_prog_cc_g+set}" = set; then
3205 echo $ECHO_N "(cached
) $ECHO_C" >&6
3207 ac_save_c_werror_flag=$ac_c_werror_flag
3208 ac_c_werror_flag=yes
3211 cat >conftest.$ac_ext <<_ACEOF
3214 cat confdefs.h >>conftest.$ac_ext
3215 cat >>conftest.$ac_ext <<_ACEOF
3216 /* end confdefs.h. */
3226 rm -f conftest.$ac_objext
3227 if { (ac_try="$ac_compile"
3229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3230 *) ac_try_echo=$ac_try;;
3232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3233 (eval "$ac_compile") 2>conftest.er1
3235 grep -v '^ *+' conftest.er1 >conftest.err
3237 cat conftest.err >&5
3238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3239 (exit $ac_status); } && {
3240 test -z "$ac_c_werror_flag" ||
3241 test ! -s conftest.err
3242 } && test -s conftest.$ac_objext; then
3245 echo "$as_me: failed program was
:" >&5
3246 sed 's/^/| /' conftest.$ac_ext >&5
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3264 rm -f conftest.$ac_objext
3265 if { (ac_try="$ac_compile"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_compile") 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3277 (exit $ac_status); } && {
3278 test -z "$ac_c_werror_flag" ||
3279 test ! -s conftest.err
3280 } && test -s conftest.$ac_objext; then
3283 echo "$as_me: failed program was
:" >&5
3284 sed 's/^/| /' conftest.$ac_ext >&5
3286 ac_c_werror_flag=$ac_save_c_werror_flag
3288 cat >conftest.$ac_ext <<_ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3312 grep -v '^ *+' conftest.er1 >conftest.err
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3322 echo "$as_me: failed program was
:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3335 ac_c_werror_flag=$ac_save_c_werror_flag
3337 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3338 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3339 if test "$ac_test_CFLAGS" = set; then
3340 CFLAGS=$ac_save_CFLAGS
3341 elif test $ac_cv_prog_cc_g = yes; then
3342 if test "$GCC" = yes; then
3348 if test "$GCC" = yes; then
3354 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3355 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3356 if test "${ac_cv_prog_cc_c89+set}" = set; then
3357 echo $ECHO_N "(cached
) $ECHO_C" >&6
3359 ac_cv_prog_cc_c89=no
3361 cat >conftest.$ac_ext <<_ACEOF
3364 cat confdefs.h >>conftest.$ac_ext
3365 cat >>conftest.$ac_ext <<_ACEOF
3366 /* end confdefs.h. */
3369 #include <sys/types.h>
3370 #include <sys/stat.h>
3371 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3372 struct buf { int x; };
3373 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3374 static char *e (p, i)
3380 static char *f (char * (*g) (char **, int), char **p, ...)
3385 s = g (p, va_arg (v,int));
3390 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3391 function prototypes and stuff, but not '\xHH' hex character constants.
3392 These don't provoke an error unfortunately, instead are silently treated
3393 as 'x'. The following induces an error, until -std is added to get
3394 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3395 array size at least. It's necessary to write '\x00'==0 to get something
3396 that's true only with -std. */
3397 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3399 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3400 inside strings and character constants. */
3402 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3404 int test (int i, double x);
3405 struct s1 {int (*f) (int a);};
3406 struct s2 {int (*f) (double a);};
3407 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3413 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3418 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3419 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3421 CC="$ac_save_CC $ac_arg"
3422 rm -f conftest.$ac_objext
3423 if { (ac_try="$ac_compile"
3425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3426 *) ac_try_echo=$ac_try;;
3428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3429 (eval "$ac_compile") 2>conftest.er1
3431 grep -v '^ *+' conftest.er1 >conftest.err
3433 cat conftest.err >&5
3434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3435 (exit $ac_status); } && {
3436 test -z "$ac_c_werror_flag" ||
3437 test ! -s conftest.err
3438 } && test -s conftest.$ac_objext; then
3439 ac_cv_prog_cc_c89=$ac_arg
3441 echo "$as_me: failed program was
:" >&5
3442 sed 's/^/| /' conftest.$ac_ext >&5
3447 rm -f core conftest.err conftest.$ac_objext
3448 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3450 rm -f conftest.$ac_ext
3455 case "x
$ac_cv_prog_cc_c89" in
3457 { echo "$as_me:$LINENO: result
: none needed
" >&5
3458 echo "${ECHO_T}none needed
" >&6; } ;;
3460 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3461 echo "${ECHO_T}unsupported
" >&6; } ;;
3463 CC="$CC $ac_cv_prog_cc_c89"
3464 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3465 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3470 ac_cpp='$CPP $CPPFLAGS'
3471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3474 DEPDIR="${am__leading_dot}deps
"
3476 ac_config_commands="$ac_config_commands depfiles
"
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3485 # If we don't find an include directive, just comment out the code.
3486 { echo "$as_me:$LINENO: checking
for style of include used by
$am_make" >&5
3487 echo $ECHO_N "checking
for style of include used by
$am_make...
$ECHO_C" >&6; }
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # We grep out `Entering directory' and `Leaving directory'
3494 # messages which can occur if `w' ends up in MAKEFLAGS.
3495 # In particular we don't look at `^make:' because GNU make might
3496 # be invoked under some other name (usually "gmake"), in which
3497 # case it prints its new name instead of `make'.
3498 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3503 # Now try BSD make style include.
3504 if test "$am__include" = "#"; then
3505 echo '.include "confinc"' > confmf
3506 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3507 am__include
=.include
3514 { echo "$as_me:$LINENO: result: $_am_result" >&5
3515 echo "${ECHO_T}$_am_result" >&6; }
3516 rm -f confinc confmf
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then
3520 enableval
=$enable_dependency_tracking;
3523 if test "x$enable_dependency_tracking" != xno
; then
3524 am_depcomp
="$ac_aux_dir/depcomp"
3527 if test "x$enable_dependency_tracking" != xno; then
3537 depcc
="$CC" am_compiler_list
=
3539 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3540 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3541 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3542 echo $ECHO_N "(cached) $ECHO_C" >&6
3544 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3545 # We make a subdir and do the tests there. Otherwise we can end up
3546 # making bogus files that we don't know about and never remove. For
3547 # instance it was reported that on HP-UX the gcc test will end up
3548 # making a dummy file named `D' -- because `-MD' means `put the output
3551 # Copy depcomp to subdir because otherwise we won't find it if we're
3552 # using a relative directory.
3553 cp "$am_depcomp" conftest.dir
3555 # We will build objects and dependencies in a subdirectory because
3556 # it helps to detect inapplicable dependency modes. For instance
3557 # both Tru64's cc and ICC support -MD to output dependencies as a
3558 # side effect of compilation, but ICC will put the dependencies in
3559 # the current directory while Tru64 will put them in the object
3563 am_cv_CC_dependencies_compiler_type
=none
3564 if test "$am_compiler_list" = ""; then
3565 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3567 for depmode
in $am_compiler_list; do
3568 # Setup a source with many dependencies, because some compilers
3569 # like to wrap large dependency lists on column 80 (with \), and
3570 # we should not choose a depcomp mode which is confused by this.
3572 # We need to recreate these files for each test, as the compiler may
3573 # overwrite some of them when testing with obscure command lines.
3574 # This happens at least with the AIX C compiler.
3576 for i
in 1 2 3 4 5 6; do
3577 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3578 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3579 # Solaris 8's {/usr,}/bin/sh.
3580 touch sub
/conftst
$i.h
3582 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3586 # after this tag, mechanisms are not by side-effect, so they'll
3587 # only be used when explicitly requested
3588 if test "x$enable_dependency_tracking" = xyes
; then
3596 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3597 # mode. It turns out that the SunPro C++ compiler does not properly
3598 # handle `-M -o', and we need to detect this.
3599 if depmode
=$depmode \
3600 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
3601 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3602 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
3603 >/dev
/null
2>conftest.err
&&
3604 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3605 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3606 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
3607 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3608 # icc doesn't choke on unknown options, it will just issue warnings
3609 # or remarks (even with -Werror). So we grep stderr for any message
3610 # that says an option was ignored or not supported.
3611 # When given -MP, icc 7.0 and 7.1 complain thusly:
3612 # icc: Command line warning: ignoring option '-M'; no argument required
3613 # The diagnosis changed in icc 8.0:
3614 # icc: Command line remark: option '-MP' not supported
3615 if (grep 'ignoring option' conftest.err ||
3616 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3617 am_cv_CC_dependencies_compiler_type
=$depmode
3626 am_cv_CC_dependencies_compiler_type
=none
3630 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3631 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3632 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3635 test "x$enable_dependency_tracking" != xno \
3636 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3638 am__fastdepCC_FALSE
='#'
3640 am__fastdepCC_TRUE
='#'
3641 am__fastdepCC_FALSE
=
3646 ac_cpp
='$CPP $CPPFLAGS'
3647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3650 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3651 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3652 # On Suns, sometimes $CPP names a directory.
3653 if test -n "$CPP" && test -d "$CPP"; then
3656 if test -z "$CPP"; then
3657 if test "${ac_cv_prog_CPP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 # Double quotes because CPP needs to be expanded
3661 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3664 for ac_c_preproc_warn_flag
in '' yes
3666 # Use a header file that comes with gcc, so configuring glibc
3667 # with a fresh cross-compiler works.
3668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3669 # <limits.h> exists even on freestanding compilers.
3670 # On the NeXT, cc -E runs the code through the compiler's parser,
3671 # not just through cpp. "Syntax error" is here to catch this case.
3672 cat >conftest.
$ac_ext <<_ACEOF
3675 cat confdefs.h
>>conftest.
$ac_ext
3676 cat >>conftest.
$ac_ext <<_ACEOF
3677 /* end confdefs.h. */
3679 # include <limits.h>
3681 # include <assert.h>
3685 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3688 *) ac_try_echo=$ac_try;;
3690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3693 grep -v '^ *+' conftest.er1 >conftest.err
3695 cat conftest.err >&5
3696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3697 (exit $ac_status); } >/dev/null && {
3698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3699 test ! -s conftest.err
3703 echo "$as_me: failed program was:" >&5
3704 sed 's/^/| /' conftest.$ac_ext >&5
3706 # Broken: fails on valid input.
3710 rm -f conftest.err conftest.$ac_ext
3712 # OK, works on sane cases. Now check whether nonexistent headers
3713 # can be detected and how.
3714 cat >conftest.$ac_ext <<_ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720 #include <ac_nonexistent.h>
3722 if { (ac_try="$ac_cpp conftest.$ac_ext"
3724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3725 *) ac_try_echo
=$ac_try;;
3727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3730 grep -v '^ *+' conftest.er1
>conftest.err
3732 cat conftest.err
>&5
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); } >/dev
/null
&& {
3735 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3736 test ! -s conftest.err
3738 # Broken: success on invalid input.
3741 echo "$as_me: failed program was:" >&5
3742 sed 's/^/| /' conftest.
$ac_ext >&5
3744 # Passes both tests.
3749 rm -f conftest.err conftest.
$ac_ext
3752 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3753 rm -f conftest.err conftest.
$ac_ext
3754 if $ac_preproc_ok; then
3766 { echo "$as_me:$LINENO: result: $CPP" >&5
3767 echo "${ECHO_T}$CPP" >&6; }
3769 for ac_c_preproc_warn_flag
in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat >conftest.
$ac_ext <<_ACEOF
3780 cat confdefs.h
>>conftest.
$ac_ext
3781 cat >>conftest.
$ac_ext <<_ACEOF
3782 /* end confdefs.h. */
3784 # include <limits.h>
3786 # include <assert.h>
3790 if { (ac_try
="$ac_cpp conftest.$ac_ext"
3792 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3793 *) ac_try_echo=$ac_try;;
3795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3796 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3798 grep -v '^ *+' conftest.er1 >conftest.err
3800 cat conftest.err >&5
3801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3802 (exit $ac_status); } >/dev/null && {
3803 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3804 test ! -s conftest.err
3808 echo "$as_me: failed program was:" >&5
3809 sed 's/^/| /' conftest.$ac_ext >&5
3811 # Broken: fails on valid input.
3815 rm -f conftest.err conftest.$ac_ext
3817 # OK, works on sane cases. Now check whether nonexistent headers
3818 # can be detected and how.
3819 cat >conftest.$ac_ext <<_ACEOF
3822 cat confdefs.h >>conftest.$ac_ext
3823 cat >>conftest.$ac_ext <<_ACEOF
3824 /* end confdefs.h. */
3825 #include <ac_nonexistent.h>
3827 if { (ac_try="$ac_cpp conftest.$ac_ext"
3829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3830 *) ac_try_echo
=$ac_try;;
3832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3835 grep -v '^ *+' conftest.er1
>conftest.err
3837 cat conftest.err
>&5
3838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3839 (exit $ac_status); } >/dev
/null
&& {
3840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3841 test ! -s conftest.err
3843 # Broken: success on invalid input.
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.
$ac_ext >&5
3849 # Passes both tests.
3854 rm -f conftest.err conftest.
$ac_ext
3857 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3858 rm -f conftest.err conftest.
$ac_ext
3859 if $ac_preproc_ok; then
3862 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3863 See \`config.log' for more details." >&5
3864 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3865 See \`config.log' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3870 ac_cpp
='$CPP $CPPFLAGS'
3871 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3872 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3873 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3875 # Find a good install program. We prefer a C program (faster),
3876 # so one script is as good as another. But avoid the broken or
3877 # incompatible versions:
3878 # SysV /etc/install, /usr/sbin/install
3879 # SunOS /usr/etc/install
3880 # IRIX /sbin/install
3882 # AmigaOS /C/install, which installs bootblocks on floppy discs
3883 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3884 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3885 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3886 # OS/2's system install, which has a completely different semantic
3887 # ./install, which can be erroneously created by make from ./install.sh.
3888 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3889 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3890 if test -z "$INSTALL"; then
3891 if test "${ac_cv_path_install+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3898 test -z "$as_dir" && as_dir
=.
3899 # Account for people who put trailing slashes in PATH elements.
3901 .
/ | .
// |
/cC
/* | \
3902 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
3903 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
3906 # OSF1 and SCO ODT 3.0 have their own names for install.
3907 # Don't use installbsd from OSF since it installs stuff as root
3909 for ac_prog
in ginstall scoinst
install; do
3910 for ac_exec_ext
in '' $ac_executable_extensions; do
3911 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3912 if test $ac_prog = install &&
3913 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3914 # AIX install. It has an incompatible calling convention.
3916 elif test $ac_prog = install &&
3917 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
3918 # program-specific install script used by HP pwplus--don't use.
3921 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
3934 if test "${ac_cv_path_install+set}" = set; then
3935 INSTALL
=$ac_cv_path_install
3937 # As a last resort, use the slow shell script. Don't cache a
3938 # value for INSTALL within a source directory, because that will
3939 # break other packages using the cache if that directory is
3940 # removed, or if the value is a relative name.
3941 INSTALL
=$ac_install_sh
3944 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3945 echo "${ECHO_T}$INSTALL" >&6; }
3947 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3948 # It thinks the first close brace ends the variable substitution.
3949 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
3951 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
3953 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
3955 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3956 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3958 if test "$LN_S" = "ln -s"; then
3959 { echo "$as_me:$LINENO: result: yes" >&5
3960 echo "${ECHO_T}yes" >&6; }
3962 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3963 echo "${ECHO_T}no, using $LN_S" >&6; }
3968 for ac_prog
in perl5 perl
3970 # Extract the first word of "$ac_prog", so it can be a program name with args.
3971 set dummy
$ac_prog; ac_word
=$2
3972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_SYSCONFTOOL_PERL+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 case $SYSCONFTOOL_PERL in
3979 ac_cv_path_SYSCONFTOOL_PERL
="$SYSCONFTOOL_PERL" # Let the user override the test with a path.
3982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir
=.
3987 for ac_exec_ext
in '' $ac_executable_extensions; do
3988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3989 ac_cv_path_SYSCONFTOOL_PERL
="$as_dir/$ac_word$ac_exec_ext"
3990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 SYSCONFTOOL_PERL
=$ac_cv_path_SYSCONFTOOL_PERL
4001 if test -n "$SYSCONFTOOL_PERL"; then
4002 { echo "$as_me:$LINENO: result: $SYSCONFTOOL_PERL" >&5
4003 echo "${ECHO_T}$SYSCONFTOOL_PERL" >&6; }
4005 { echo "$as_me:$LINENO: result: no" >&5
4006 echo "${ECHO_T}no" >&6; }
4010 test -n "$SYSCONFTOOL_PERL" && break
4012 test -n "$SYSCONFTOOL_PERL" || SYSCONFTOOL_PERL
="perl"
4015 if test "$SYSCONFTOOL_PERL" = "perl"
4017 { { echo "$as_me:$LINENO: error: perl not found - please install perl" >&5
4018 echo "$as_me: error: perl not found - please install perl" >&2;}
4019 { (exit 1); exit 1; }; }
4022 { echo "$as_me:$LINENO: checking for sysconftool..." >&5
4023 echo $ECHO_N "checking for sysconftool...... $ECHO_C" >&6; }
4025 for sysconf_dir
in $ac_aux_dir . .. ..
/..
4027 if test -f $srcdir/$sysconf_dir/sysconftool
4029 SYSCONFTOOL
=$srcdir/$sysconf_dir/sysconftool
4034 if test "$SYSCONFTOOL" = ""
4036 { { echo "$as_me:$LINENO: error: sysconftool missing - not in the package" >&5
4037 echo "$as_me: error: sysconftool missing - not in the package" >&2;}
4038 { (exit 1); exit 1; }; }
4041 { echo "$as_me:$LINENO: result: $SYSCONFTOOL" >&5
4042 echo "${ECHO_T}$SYSCONFTOOL" >&6; }
4043 SYSCONFTOOL
="$SYSCONFTOOL_PERL $SYSCONFTOOL"
4048 { echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
4049 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6; }
4050 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 ac_check_lib_save_LIBS
=$LIBS
4055 cat >conftest.
$ac_ext <<_ACEOF
4058 cat confdefs.h
>>conftest.
$ac_ext
4059 cat >>conftest.
$ac_ext <<_ACEOF
4060 /* end confdefs.h. */
4062 /* Override any GCC internal prototype to avoid an error.
4063 Use char because int might match the return type of a GCC
4064 builtin and then its argument prototype would still apply. */
4072 return lt_dlinit ();
4077 rm -f conftest.
$ac_objext conftest
$ac_exeext
4078 if { (ac_try
="$ac_link"
4080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4084 (eval "$ac_link") 2>conftest.er1
4086 grep -v '^ *+' conftest.er1 >conftest.err
4088 cat conftest.err >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); } && {
4091 test -z "$ac_c_werror_flag" ||
4092 test ! -s conftest.err
4093 } && test -s conftest$ac_exeext &&
4094 $as_test_x conftest$ac_exeext; then
4095 ac_cv_lib_ltdl_lt_dlinit=yes
4097 echo "$as_me: failed program was:" >&5
4098 sed 's/^/| /' conftest.$ac_ext >&5
4100 ac_cv_lib_ltdl_lt_dlinit=no
4103 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4104 conftest$ac_exeext conftest.$ac_ext
4105 LIBS=$ac_check_lib_save_LIBS
4107 { echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
4108 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6; }
4109 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
4110 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
4112 if test x"$enable_ltdl_install" = xno; then
4113 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
4114 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
4116 enable_ltdl_install=yes
4121 if test x"$enable_ltdl_install" = x"yes"; then
4122 ac_configure_args="$ac_configure_args --enable-ltdl-install"
4123 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
4124 LTDLINCL='-I${top_srcdir}/''libltdl'
4126 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
4130 # For backwards non-gettext consistent compatibility...
4135 # Check whether --enable-shared was given.
4136 if test "${enable_shared+set}" = set; then
4137 enableval=$enable_shared; p=${PACKAGE-default}
4139 yes) enable_shared=yes ;;
4140 no) enable_shared=no ;;
4143 # Look at the argument we got. We use all the common list separators.
4144 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4145 for pkg in $enableval; do
4147 if test "X$pkg" = "X$p"; then
4159 # Check whether --enable-static was given.
4160 if test "${enable_static+set}" = set; then
4161 enableval=$enable_static; p=${PACKAGE-default}
4163 yes) enable_static=yes ;;
4164 no) enable_static=no ;;
4167 # Look at the argument we got. We use all the common list separators.
4168 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4169 for pkg in $enableval; do
4171 if test "X$pkg" = "X$p"; then
4183 # Check whether --enable-fast-install was given.
4184 if test "${enable_fast_install+set}" = set; then
4185 enableval=$enable_fast_install; p=${PACKAGE-default}
4187 yes) enable_fast_install=yes ;;
4188 no) enable_fast_install=no ;;
4190 enable_fast_install=no
4191 # Look at the argument we got. We use all the common list separators.
4192 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4193 for pkg in $enableval; do
4195 if test "X$pkg" = "X$p"; then
4196 enable_fast_install=yes
4203 enable_fast_install=yes
4207 # Make sure we can run config.sub.
4208 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4209 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4210 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4211 { (exit 1); exit 1; }; }
4213 { echo "$as_me:$LINENO: checking build system type" >&5
4214 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4215 if test "${ac_cv_build+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 ac_build_alias=$build_alias
4219 test "x$ac_build_alias" = x &&
4220 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4221 test "x$ac_build_alias" = x &&
4222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4223 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4224 { (exit 1); exit 1; }; }
4225 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4226 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4227 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4228 { (exit 1); exit 1; }; }
4231 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4232 echo "${ECHO_T}$ac_cv_build" >&6; }
4233 case $ac_cv_build in
4235 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4236 echo "$as_me: error: invalid value of canonical build" >&2;}
4237 { (exit 1); exit 1; }; };;
4240 ac_save_IFS=$IFS; IFS='-'
4246 # Remember, the first character of IFS is used to create $*,
4247 # except with old shells:
4250 case $build_os in *\ *) build_os=`echo "$build_os" |
sed 's/ /-/g'`;; esac
4253 { echo "$as_me:$LINENO: checking host system type" >&5
4254 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4255 if test "${ac_cv_host+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 if test "x$host_alias" = x; then
4259 ac_cv_host=$ac_cv_build
4261 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4262 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4263 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4264 { (exit 1); exit 1; }; }
4268 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4269 echo "${ECHO_T}$ac_cv_host" >&6; }
4272 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4273 echo "$as_me: error: invalid value of canonical host" >&2;}
4274 { (exit 1); exit 1; }; };;
4277 ac_save_IFS=$IFS; IFS='-'
4283 # Remember, the first character of IFS is used to create $*,
4284 # except with old shells:
4287 case $host_os in *\ *) host_os=`echo "$host_os" |
sed 's/ /-/g'`;; esac
4290 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4291 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4292 if test "${lt_cv_path_SED+set}" = set; then
4293 echo $ECHO_N "(cached) $ECHO_C" >&6
4295 # Loop through the user's path and test for sed and gsed.
4296 # Then use that list of sed's as ones to test for truncation.
4297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4301 test -z "$as_dir" && as_dir=.
4302 for lt_ac_prog in sed gsed; do
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
4305 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4313 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4314 # along with /bin/sed that truncates output.
4315 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4316 test ! -f $lt_ac_sed && continue
4317 cat /dev/null > conftest.in
4319 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4320 # Check for GNU sed and select it if it is found.
4321 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4322 lt_cv_path_SED=$lt_ac_sed
4326 cat conftest.in conftest.in >conftest.tmp
4327 mv conftest.tmp conftest.in
4328 cp conftest.in conftest.nl
4330 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4331 cmp -s conftest.out conftest.nl || break
4332 # 10000 chars as input seems more than enough
4333 test $lt_ac_count -gt 10 && break
4334 lt_ac_count=`expr $lt_ac_count + 1`
4335 if test $lt_ac_count -gt $lt_ac_max; then
4336 lt_ac_max=$lt_ac_count
4337 lt_cv_path_SED=$lt_ac_sed
4346 { echo "$as_me:$LINENO: result: $SED" >&5
4347 echo "${ECHO_T}$SED" >&6; }
4349 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4350 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4351 if test "${ac_cv_path_GREP+set}" = set; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 # Extract the first word of "grep ggrep" to use in msg output
4355 if test -z "$GREP"; then
4356 set dummy grep ggrep; ac_prog_name=$2
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4360 ac_path_GREP_found=false
4361 # Loop through the user's path and test for each of PROGNAME-LIST
4362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4366 test -z "$as_dir" && as_dir=.
4367 for ac_prog in grep ggrep; do
4368 for ac_exec_ext in '' $ac_executable_extensions; do
4369 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4370 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4371 # Check for GNU ac_path_GREP and select it if it is found.
4372 # Check for GNU $ac_path_GREP
4373 case `"$ac_path_GREP" --version 2>&1` in
4375 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4378 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4381 cat "conftest.in" "conftest.in" >"conftest.tmp"
4382 mv "conftest.tmp" "conftest.in"
4383 cp "conftest.in" "conftest.nl"
4384 echo 'GREP' >> "conftest.nl"
4385 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4386 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4387 ac_count=`expr $ac_count + 1`
4388 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4389 # Best one so far, save it but keep looking for a better one
4390 ac_cv_path_GREP="$ac_path_GREP"
4391 ac_path_GREP_max=$ac_count
4393 # 10*(2^10) chars as input seems more than enough
4394 test $ac_count -gt 10 && break
4396 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4400 $ac_path_GREP_found && break 3
4410 GREP="$ac_cv_path_GREP"
4411 if test -z "$GREP"; then
4412 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4418 ac_cv_path_GREP=$GREP
4423 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4424 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4425 GREP="$ac_cv_path_GREP"
4428 { echo "$as_me:$LINENO: checking for egrep" >&5
4429 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_EGREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4433 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4434 then ac_cv_path_EGREP="$GREP -E"
4436 # Extract the first word of "egrep" to use in msg output
4437 if test -z "$EGREP"; then
4438 set dummy egrep; ac_prog_name=$2
4439 if test "${ac_cv_path_EGREP+set}" = set; then
4440 echo $ECHO_N "(cached) $ECHO_C" >&6
4442 ac_path_EGREP_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in egrep; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4452 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4453 # Check for GNU ac_path_EGREP and select it if it is found.
4454 # Check for GNU $ac_path_EGREP
4455 case `"$ac_path_EGREP" --version 2>&1` in
4457 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4460 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 echo 'EGREP' >> "conftest.nl"
4467 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 ac_count=`expr $ac_count + 1`
4470 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_EGREP="$ac_path_EGREP"
4473 ac_path_EGREP_max=$ac_count
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4482 $ac_path_EGREP_found && break 3
4492 EGREP="$ac_cv_path_EGREP"
4493 if test -z "$EGREP"; then
4494 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4495 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4496 { (exit 1); exit 1; }; }
4500 ac_cv_path_EGREP=$EGREP
4506 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4507 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4508 EGREP="$ac_cv_path_EGREP"
4512 # Check whether --with-gnu-ld was given.
4513 if test "${with_gnu_ld+set}" = set; then
4514 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4520 if test "$GCC" = yes; then
4521 # Check if gcc -print-prog-name=ld gives a path.
4522 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4523 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4526 # gcc leaves a trailing carriage return which upsets mingw
4527 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
4529 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
4532 # Accept absolute paths.
4534 re_direlt='/[^/][^/]*/\.\./'
4535 # Canonicalize the pathname of ld
4536 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
4537 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4538 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
4540 test -z "$LD" && LD="$ac_prog"
4543 # If it fails, then pretend we aren't using GCC.
4547 # If it is relative, then search for the first ld in PATH.
4551 elif test "$with_gnu_ld" = yes; then
4552 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4553 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4555 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4556 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4558 if test "${lt_cv_path_LD+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -z "$LD"; then
4562 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4563 for ac_dir in $PATH; do
4565 test -z "$ac_dir" && ac_dir=.
4566 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4567 lt_cv_path_LD="$ac_dir/$ac_prog"
4568 # Check to see if the program is GNU ld. I'd rather use --version,
4569 # but apparently some variants of GNU ld only accept -v.
4570 # Break only if it was the GNU/non-GNU ld that we prefer.
4571 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
4572 *GNU* | *'with BFD'*)
4573 test "$with_gnu_ld" != no && break
4576 test "$with_gnu_ld" != yes && break
4583 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4588 if test -n "$LD"; then
4589 { echo "$as_me:$LINENO: result: $LD" >&5
4590 echo "${ECHO_T}$LD" >&6; }
4592 { echo "$as_me:$LINENO: result: no" >&5
4593 echo "${ECHO_T}no" >&6; }
4595 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4596 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4597 { (exit 1); exit 1; }; }
4598 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4599 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4600 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4601 echo $ECHO_N "(cached) $ECHO_C" >&6
4603 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4604 case `$LD -v 2>&1 </dev
/null
` in
4605 *GNU* | *'with BFD'*)
4606 lt_cv_prog_gnu_ld=yes
4609 lt_cv_prog_gnu_ld=no
4613 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4614 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4615 with_gnu_ld=$lt_cv_prog_gnu_ld
4618 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4619 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4620 if test "${lt_cv_ld_reload_flag+set}" = set; then
4621 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 lt_cv_ld_reload_flag='-r'
4625 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4626 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4627 reload_flag=$lt_cv_ld_reload_flag
4628 case $reload_flag in
4630 *) reload_flag=" $reload_flag" ;;
4632 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4635 if test "$GCC" = yes; then
4636 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4638 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4645 if test "${lt_cv_path_NM+set}" = set; then
4646 echo $ECHO_N "(cached) $ECHO_C" >&6
4648 if test -n "$NM"; then
4649 # Let the user override the test.
4652 lt_nm_to_check="${ac_tool_prefix}nm"
4653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4654 lt_nm_to_check="$lt_nm_to_check nm"
4656 for lt_tmp_nm in $lt_nm_to_check; do
4657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4660 test -z "$ac_dir" && ac_dir=.
4661 tmp_nm="$ac_dir/$lt_tmp_nm"
4662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4663 # Check to see if the nm accepts a BSD-compat flag.
4664 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
4665 # nm: unknown option "B" ignored
4666 # Tru64's nm complains that
/dev
/null is an invalid object
file
4667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4668 */dev
/null
* |
*'Invalid file or object type'*)
4669 lt_cv_path_NM
="$tmp_nm -B"
4673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4675 lt_cv_path_NM
="$tmp_nm -p"
4679 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4680 continue # so that we can try to find one that supports BSD flags
4689 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
4692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4696 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4697 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4698 if test "${lt_cv_deplibs_check_method+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 lt_cv_file_magic_cmd
='$MAGIC_CMD'
4702 lt_cv_file_magic_test_file
=
4703 lt_cv_deplibs_check_method
='unknown'
4704 # Need to set the preceding variable on all platforms that support
4705 # interlibrary dependencies.
4706 # 'none' -- dependencies not supported.
4707 # `unknown' -- same as none, but documents that we really don't know.
4708 # 'pass_all' -- all dependencies passed with no checks.
4709 # 'test_compile' -- check by making test program.
4710 # 'file_magic [[regex]]' -- check by looking for files in library path
4711 # which responds to the $file_magic_cmd with a given extended regex.
4712 # If you have `file' or equivalent on your system and you're not sure
4713 # whether `pass_all' will *always* work, you probably want this one.
4717 lt_cv_deplibs_check_method
=pass_all
4721 lt_cv_deplibs_check_method
=pass_all
4725 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4726 lt_cv_file_magic_cmd
='/usr/bin/file -L'
4727 lt_cv_file_magic_test_file
=/shlib
/libc.so
4731 # func_win32_libid is a shell function defined in ltmain.sh
4732 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4733 lt_cv_file_magic_cmd
='func_win32_libid'
4737 # Base MSYS/MinGW do not provide the 'file' command needed by
4738 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4739 # unless we find 'file', for example because we are cross-compiling.
4740 if ( file / ) >/dev
/null
2>&1; then
4741 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
4742 lt_cv_file_magic_cmd
='func_win32_libid'
4744 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
4745 lt_cv_file_magic_cmd
='$OBJDUMP -f'
4749 darwin
* | rhapsody
*)
4750 lt_cv_deplibs_check_method
=pass_all
4753 freebsd
* | dragonfly
*)
4754 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4757 # Not sure whether the presence of OpenBSD here was a mistake.
4758 # Let's accept both of them until this is cleared up.
4759 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4760 lt_cv_file_magic_cmd
=/usr
/bin
/file
4761 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
4765 lt_cv_deplibs_check_method
=pass_all
4770 lt_cv_deplibs_check_method
=pass_all
4773 hpux10.20
* | hpux11
*)
4774 lt_cv_file_magic_cmd
=/usr
/bin
/file
4777 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4778 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
4781 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4782 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
4785 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4786 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
4792 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4793 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
4796 irix5
* | irix6
* | nonstopux
*)
4798 *-32|
*"-32 ") libmagic
=32-bit;;
4799 *-n32|
*"-n32 ") libmagic
=N32
;;
4800 *-64|
*"-64 ") libmagic
=64-bit;;
4801 *) libmagic
=never-match
;;
4803 lt_cv_deplibs_check_method
=pass_all
4806 # This must be Linux ELF.
4807 linux
* | k
*bsd
*-gnu)
4808 lt_cv_deplibs_check_method
=pass_all
4812 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
4813 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4815 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4820 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4821 lt_cv_file_magic_cmd
=/usr
/bin
/file
4822 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
4826 lt_cv_deplibs_check_method
=unknown
4830 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4831 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4833 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4837 osf3
* | osf4
* | osf5
*)
4838 lt_cv_deplibs_check_method
=pass_all
4842 lt_cv_deplibs_check_method
=pass_all
4846 lt_cv_deplibs_check_method
=pass_all
4850 case $host_vendor in
4852 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]'
4853 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
4856 lt_cv_deplibs_check_method
=pass_all
4859 lt_cv_file_magic_cmd
='/bin/file'
4860 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4863 lt_cv_file_magic_cmd
='/bin/file'
4864 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4865 lt_cv_file_magic_test_file
=/lib
/libc.so
4868 lt_cv_deplibs_check_method
=pass_all
4871 lt_cv_deplibs_check_method
=pass_all
4876 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
4877 lt_cv_deplibs_check_method
=pass_all
4882 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4883 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4884 file_magic_cmd
=$lt_cv_file_magic_cmd
4885 deplibs_check_method
=$lt_cv_deplibs_check_method
4886 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
4891 # If no C compiler was specified, use CC.
4894 # If no C compiler flags were specified, use CFLAGS.
4895 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
4897 # Allow CC to be a program name with arguments.
4900 # Check whether --enable-libtool-lock was given.
4901 if test "${enable_libtool_lock+set}" = set; then
4902 enableval
=$enable_libtool_lock;
4905 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
4907 # Some flags need to be propagated to the compiler or linker for good
4911 # Find out which ABI we are using.
4912 echo 'int i;' > conftest.
$ac_ext
4913 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4914 (eval $ac_compile) 2>&5
4916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4917 (exit $ac_status); }; then
4918 case `/usr/bin/file conftest.$ac_objext` in
4930 # Find out which ABI we are using.
4931 echo '#line 4931 "configure"' > conftest.
$ac_ext
4932 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4933 (eval $ac_compile) 2>&5
4935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4936 (exit $ac_status); }; then
4937 if test "$lt_cv_prog_gnu_ld" = yes; then
4938 case `/usr/bin/file conftest.$ac_objext` in
4940 LD
="${LD-ld} -melf32bsmip"
4943 LD
="${LD-ld} -melf32bmipn32"
4946 LD
="${LD-ld} -melf64bmip"
4950 case `/usr/bin/file conftest.$ac_objext` in
4966 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
4967 s390
*-*linux
*|sparc
*-*linux
*)
4968 # Find out which ABI we are using.
4969 echo 'int i;' > conftest.
$ac_ext
4970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4971 (eval $ac_compile) 2>&5
4973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4974 (exit $ac_status); }; then
4975 case `/usr/bin/file conftest.o` in
4978 x86_64-
*kfreebsd
*-gnu)
4979 LD
="${LD-ld} -m elf_i386_fbsd"
4982 LD
="${LD-ld} -m elf_i386"
4984 ppc64-
*linux
*|powerpc64-
*linux
*)
4985 LD
="${LD-ld} -m elf32ppclinux"
4988 LD
="${LD-ld} -m elf_s390"
4991 LD
="${LD-ld} -m elf32_sparc"
4998 x86_64-
*kfreebsd
*-gnu)
4999 LD
="${LD-ld} -m elf_x86_64_fbsd"
5002 LD
="${LD-ld} -m elf_x86_64"
5004 ppc
*-*linux
*|powerpc
*-*linux
*)
5005 LD
="${LD-ld} -m elf64ppc"
5008 LD
="${LD-ld} -m elf64_s390"
5011 LD
="${LD-ld} -m elf64_sparc"
5021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5022 SAVE_CFLAGS
="$CFLAGS"
5023 CFLAGS
="$CFLAGS -belf"
5024 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
5025 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
5026 if test "${lt_cv_cc_needs_belf+set}" = set; then
5027 echo $ECHO_N "(cached) $ECHO_C" >&6
5030 ac_cpp
='$CPP $CPPFLAGS'
5031 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5035 cat >conftest.
$ac_ext <<_ACEOF
5038 cat confdefs.h
>>conftest.
$ac_ext
5039 cat >>conftest.
$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5050 rm -f conftest.
$ac_objext conftest
$ac_exeext
5051 if { (ac_try
="$ac_link"
5053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_link") 2>conftest.er1
5059 grep -v '^ *+' conftest.er1 >conftest.err
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } && {
5064 test -z "$ac_c_werror_flag" ||
5065 test ! -s conftest.err
5066 } && test -s conftest$ac_exeext &&
5067 $as_test_x conftest$ac_exeext; then
5068 lt_cv_cc_needs_belf=yes
5070 echo "$as_me: failed program was:" >&5
5071 sed 's/^/| /' conftest.$ac_ext >&5
5073 lt_cv_cc_needs_belf=no
5076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5077 conftest$ac_exeext conftest.$ac_ext
5079 ac_cpp='$CPP $CPPFLAGS'
5080 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5081 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5082 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5085 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
5086 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
5087 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5088 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5089 CFLAGS="$SAVE_CFLAGS"
5093 # Find out which ABI we are using.
5094 echo 'int i;' > conftest.$ac_ext
5095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5096 (eval $ac_compile) 2>&5
5098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099 (exit $ac_status); }; then
5100 case `/usr
/bin
/file conftest.o
` in
5102 case $lt_cv_prog_gnu_ld in
5103 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5104 *) LD="${LD-ld} -64" ;;
5115 need_locks="$enable_libtool_lock"
5119 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5120 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5121 if test "${ac_cv_header_stdc+set}" = set; then
5122 echo $ECHO_N "(cached) $ECHO_C" >&6
5124 cat >conftest.$ac_ext <<_ACEOF
5127 cat confdefs.h >>conftest.$ac_ext
5128 cat >>conftest.$ac_ext <<_ACEOF
5129 /* end confdefs.h. */
5143 rm -f conftest.$ac_objext
5144 if { (ac_try="$ac_compile"
5146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5147 *) ac_try_echo
=$ac_try;;
5149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5150 (eval "$ac_compile") 2>conftest.er1
5152 grep -v '^ *+' conftest.er1
>conftest.err
5154 cat conftest.err
>&5
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); } && {
5157 test -z "$ac_c_werror_flag" ||
5158 test ! -s conftest.err
5159 } && test -s conftest.
$ac_objext; then
5160 ac_cv_header_stdc
=yes
5162 echo "$as_me: failed program was:" >&5
5163 sed 's/^/| /' conftest.
$ac_ext >&5
5165 ac_cv_header_stdc
=no
5168 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5170 if test $ac_cv_header_stdc = yes; then
5171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5172 cat >conftest.
$ac_ext <<_ACEOF
5175 cat confdefs.h
>>conftest.
$ac_ext
5176 cat >>conftest.
$ac_ext <<_ACEOF
5177 /* end confdefs.h. */
5181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5182 $EGREP "memchr" >/dev
/null
2>&1; then
5185 ac_cv_header_stdc
=no
5191 if test $ac_cv_header_stdc = yes; then
5192 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5193 cat >conftest.
$ac_ext <<_ACEOF
5196 cat confdefs.h
>>conftest.
$ac_ext
5197 cat >>conftest.
$ac_ext <<_ACEOF
5198 /* end confdefs.h. */
5202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5203 $EGREP "free" >/dev
/null
2>&1; then
5206 ac_cv_header_stdc
=no
5212 if test $ac_cv_header_stdc = yes; then
5213 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5214 if test "$cross_compiling" = yes; then
5217 cat >conftest.
$ac_ext <<_ACEOF
5220 cat confdefs.h
>>conftest.
$ac_ext
5221 cat >>conftest.
$ac_ext <<_ACEOF
5222 /* end confdefs.h. */
5225 #if ((' ' & 0x0FF) == 0x020)
5226 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5227 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5229 # define ISLOWER(c) \
5230 (('a' <= (c) && (c) <= 'i') \
5231 || ('j' <= (c) && (c) <= 'r') \
5232 || ('s' <= (c) && (c) <= 'z'))
5233 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5236 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5241 for (i = 0; i < 256; i++)
5242 if (XOR (islower (i), ISLOWER (i))
5243 || toupper (i) != TOUPPER (i))
5248 rm -f conftest
$ac_exeext
5249 if { (ac_try
="$ac_link"
5251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_link") 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5259 { (case "(($ac_try" in
5260 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5261 *) ac_try_echo
=$ac_try;;
5263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_try") 2>&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); }; }; then
5270 echo "$as_me: program exited with status $ac_status" >&5
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.
$ac_ext >&5
5275 ac_cv_header_stdc
=no
5277 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5283 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5284 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5285 if test $ac_cv_header_stdc = yes; then
5287 cat >>confdefs.h
<<\_ACEOF
5288 #define STDC_HEADERS 1
5293 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5303 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5304 inttypes.h stdint.h unistd.h
5306 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5309 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5312 cat >conftest.
$ac_ext <<_ACEOF
5315 cat confdefs.h
>>conftest.
$ac_ext
5316 cat >>conftest.
$ac_ext <<_ACEOF
5317 /* end confdefs.h. */
5318 $ac_includes_default
5320 #include <$ac_header>
5322 rm -f conftest.
$ac_objext
5323 if { (ac_try
="$ac_compile"
5325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5326 *) ac_try_echo=$ac_try;;
5328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5329 (eval "$ac_compile") 2>conftest.er1
5331 grep -v '^ *+' conftest.er1 >conftest.err
5333 cat conftest.err >&5
5334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5335 (exit $ac_status); } && {
5336 test -z "$ac_c_werror_flag" ||
5337 test ! -s conftest.err
5338 } && test -s conftest.$ac_objext; then
5339 eval "$as_ac_Header=yes"
5341 echo "$as_me: failed program was:" >&5
5342 sed 's/^/| /' conftest.$ac_ext >&5
5344 eval "$as_ac_Header=no"
5347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 ac_res=`eval echo '${'$as_ac_Header'}'`
5350 { echo "$as_me:$LINENO: result: $ac_res" >&5
5351 echo "${ECHO_T}$ac_res" >&6; }
5352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5353 cat >>confdefs.h <<_ACEOF
5354 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5363 for ac_header in dlfcn.h
5365 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 ac_res=`eval echo '${'$as_ac_Header'}'`
5373 { echo "$as_me:$LINENO: result: $ac_res" >&5
5374 echo "${ECHO_T}$ac_res" >&6; }
5376 # Is the header compilable?
5377 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5378 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5379 cat >conftest.$ac_ext <<_ACEOF
5382 cat confdefs.h >>conftest.$ac_ext
5383 cat >>conftest.$ac_ext <<_ACEOF
5384 /* end confdefs.h. */
5385 $ac_includes_default
5386 #include <$ac_header>
5388 rm -f conftest.$ac_objext
5389 if { (ac_try="$ac_compile"
5391 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5392 *) ac_try_echo
=$ac_try;;
5394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5395 (eval "$ac_compile") 2>conftest.er1
5397 grep -v '^ *+' conftest.er1
>conftest.err
5399 cat conftest.err
>&5
5400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401 (exit $ac_status); } && {
5402 test -z "$ac_c_werror_flag" ||
5403 test ! -s conftest.err
5404 } && test -s conftest.
$ac_objext; then
5405 ac_header_compiler
=yes
5407 echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.
$ac_ext >&5
5410 ac_header_compiler
=no
5413 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5415 echo "${ECHO_T}$ac_header_compiler" >&6; }
5417 # Is the header present?
5418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5420 cat >conftest.
$ac_ext <<_ACEOF
5423 cat confdefs.h
>>conftest.
$ac_ext
5424 cat >>conftest.
$ac_ext <<_ACEOF
5425 /* end confdefs.h. */
5426 #include <$ac_header>
5428 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5431 *) ac_try_echo=$ac_try;;
5433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5436 grep -v '^ *+' conftest.er1 >conftest.err
5438 cat conftest.err >&5
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); } >/dev/null && {
5441 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5442 test ! -s conftest.err
5444 ac_header_preproc=yes
5446 echo "$as_me: failed program was:" >&5
5447 sed 's/^/| /' conftest.$ac_ext >&5
5449 ac_header_preproc=no
5452 rm -f conftest.err conftest.$ac_ext
5453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5454 echo "${ECHO_T}$ac_header_preproc" >&6; }
5456 # So? What about this header?
5457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5463 ac_header_preproc=yes
5466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5479 ## ------------------------------------------------- ##
5480 ## Report this to courier-imap@lists.sourceforge.net ##
5481 ## ------------------------------------------------- ##
5483 ) | sed "s/^/$as_me: WARNING: /" >&2
5486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5489 echo $ECHO_N "(cached) $ECHO_C" >&6
5491 eval "$as_ac_Header=\$ac_header_preproc"
5493 ac_res=`eval echo '${'$as_ac_Header'}'`
5494 { echo "$as_me:$LINENO: result: $ac_res" >&5
5495 echo "${ECHO_T}$ac_res" >&6; }
5498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5499 cat >>confdefs.h <<_ACEOF
5500 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5508 ac_cpp='$CXXCPP $CPPFLAGS'
5509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5512 if test -z "$CXX"; then
5513 if test -n "$CCC"; then
5516 if test -n "$ac_tool_prefix"; then
5517 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5521 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5522 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5523 if test "${ac_cv_prog_CXX+set}" = set; then
5524 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 if test -n "$CXX"; then
5527 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir=.
5534 for ac_exec_ext in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$CXX"; then
5548 { echo "$as_me:$LINENO: result: $CXX" >&5
5549 echo "${ECHO_T}$CXX" >&6; }
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5556 test -n "$CXX" && break
5559 if test -z "$CXX"; then
5561 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy $ac_prog; ac_word=$2
5565 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5567 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5568 echo $ECHO_N "(cached) $ECHO_C" >&6
5570 if test -n "$ac_ct_CXX"; then
5571 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CXX="$ac_prog"
5581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5591 if test -n "$ac_ct_CXX"; then
5592 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5593 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5595 { echo "$as_me:$LINENO: result: no" >&5
5596 echo "${ECHO_T}no" >&6; }
5600 test -n "$ac_ct_CXX" && break
5603 if test "x$ac_ct_CXX" = x; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5609 whose name does not start with the host triplet. If you think this
5610 configuration is useful to you, please write to autoconf@gnu.org." >&5
5611 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5612 whose name does not start with the host triplet. If you think this
5613 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5614 ac_tool_warned=yes ;;
5622 # Provide some information about the compiler.
5623 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5624 ac_compiler=`set X
$ac_compile; echo $2`
5625 { (ac_try="$ac_compiler --version >&5"
5627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5628 *) ac_try_echo
=$ac_try;;
5630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5631 (eval "$ac_compiler --version >&5") 2>&5
5633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634 (exit $ac_status); }
5635 { (ac_try
="$ac_compiler -v >&5"
5637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5638 *) ac_try_echo=$ac_try;;
5640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5641 (eval "$ac_compiler -v >&5") 2>&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644 (exit $ac_status); }
5645 { (ac_try="$ac_compiler -V >&5"
5647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5648 *) ac_try_echo
=$ac_try;;
5650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5651 (eval "$ac_compiler -V >&5") 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); }
5656 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5659 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 cat >conftest.
$ac_ext <<_ACEOF
5664 cat confdefs.h
>>conftest.
$ac_ext
5665 cat >>conftest.
$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5679 rm -f conftest.
$ac_objext
5680 if { (ac_try
="$ac_compile"
5682 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5686 (eval "$ac_compile") 2>conftest.er1
5688 grep -v '^ *+' conftest.er1 >conftest.err
5690 cat conftest.err >&5
5691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5692 (exit $ac_status); } && {
5693 test -z "$ac_cxx_werror_flag" ||
5694 test ! -s conftest.err
5695 } && test -s conftest.$ac_objext; then
5698 echo "$as_me: failed program was:" >&5
5699 sed 's/^/| /' conftest.$ac_ext >&5
5704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5705 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5708 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5709 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5710 GXX=`test $ac_compiler_gnu = yes && echo yes`
5711 ac_test_CXXFLAGS=${CXXFLAGS+set}
5712 ac_save_CXXFLAGS=$CXXFLAGS
5713 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5715 if test "${ac_cv_prog_cxx_g+set}" = set; then
5716 echo $ECHO_N "(cached) $ECHO_C" >&6
5718 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5719 ac_cxx_werror_flag=yes
5722 cat >conftest.$ac_ext <<_ACEOF
5725 cat confdefs.h >>conftest.$ac_ext
5726 cat >>conftest.$ac_ext <<_ACEOF
5727 /* end confdefs.h. */
5737 rm -f conftest.$ac_objext
5738 if { (ac_try="$ac_compile"
5740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5741 *) ac_try_echo
=$ac_try;;
5743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5744 (eval "$ac_compile") 2>conftest.er1
5746 grep -v '^ *+' conftest.er1
>conftest.err
5748 cat conftest.err
>&5
5749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5750 (exit $ac_status); } && {
5751 test -z "$ac_cxx_werror_flag" ||
5752 test ! -s conftest.err
5753 } && test -s conftest.
$ac_objext; then
5754 ac_cv_prog_cxx_g
=yes
5756 echo "$as_me: failed program was:" >&5
5757 sed 's/^/| /' conftest.
$ac_ext >&5
5760 cat >conftest.
$ac_ext <<_ACEOF
5763 cat confdefs.h
>>conftest.
$ac_ext
5764 cat >>conftest.
$ac_ext <<_ACEOF
5765 /* end confdefs.h. */
5775 rm -f conftest.
$ac_objext
5776 if { (ac_try
="$ac_compile"
5778 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5782 (eval "$ac_compile") 2>conftest.er1
5784 grep -v '^ *+' conftest.er1 >conftest.err
5786 cat conftest.err >&5
5787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788 (exit $ac_status); } && {
5789 test -z "$ac_cxx_werror_flag" ||
5790 test ! -s conftest.err
5791 } && test -s conftest.$ac_objext; then
5794 echo "$as_me: failed program was:" >&5
5795 sed 's/^/| /' conftest.$ac_ext >&5
5797 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5799 cat >conftest.$ac_ext <<_ACEOF
5802 cat confdefs.h >>conftest.$ac_ext
5803 cat >>conftest.$ac_ext <<_ACEOF
5804 /* end confdefs.h. */
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5818 *) ac_try_echo
=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1
>conftest.err
5825 cat conftest.err
>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } && {
5828 test -z "$ac_cxx_werror_flag" ||
5829 test ! -s conftest.err
5830 } && test -s conftest.
$ac_objext; then
5831 ac_cv_prog_cxx_g
=yes
5833 echo "$as_me: failed program was:" >&5
5834 sed 's/^/| /' conftest.
$ac_ext >&5
5839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5842 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5846 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5848 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5849 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5850 if test "$ac_test_CXXFLAGS" = set; then
5851 CXXFLAGS
=$ac_save_CXXFLAGS
5852 elif test $ac_cv_prog_cxx_g = yes; then
5853 if test "$GXX" = yes; then
5859 if test "$GXX" = yes; then
5866 ac_cpp
='$CXXCPP $CPPFLAGS'
5867 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5868 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5869 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5871 depcc
="$CXX" am_compiler_list
=
5873 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5874 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5875 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5876 echo $ECHO_N "(cached) $ECHO_C" >&6
5878 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5879 # We make a subdir and do the tests there. Otherwise we can end up
5880 # making bogus files that we don't know about and never remove. For
5881 # instance it was reported that on HP-UX the gcc test will end up
5882 # making a dummy file named `D' -- because `-MD' means `put the output
5885 # Copy depcomp to subdir because otherwise we won't find it if we're
5886 # using a relative directory.
5887 cp "$am_depcomp" conftest.dir
5889 # We will build objects and dependencies in a subdirectory because
5890 # it helps to detect inapplicable dependency modes. For instance
5891 # both Tru64's cc and ICC support -MD to output dependencies as a
5892 # side effect of compilation, but ICC will put the dependencies in
5893 # the current directory while Tru64 will put them in the object
5897 am_cv_CXX_dependencies_compiler_type
=none
5898 if test "$am_compiler_list" = ""; then
5899 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5901 for depmode
in $am_compiler_list; do
5902 # Setup a source with many dependencies, because some compilers
5903 # like to wrap large dependency lists on column 80 (with \), and
5904 # we should not choose a depcomp mode which is confused by this.
5906 # We need to recreate these files for each test, as the compiler may
5907 # overwrite some of them when testing with obscure command lines.
5908 # This happens at least with the AIX C compiler.
5910 for i
in 1 2 3 4 5 6; do
5911 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
5912 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5913 # Solaris 8's {/usr,}/bin/sh.
5914 touch sub
/conftst
$i.h
5916 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5920 # after this tag, mechanisms are not by side-effect, so they'll
5921 # only be used when explicitly requested
5922 if test "x$enable_dependency_tracking" = xyes
; then
5930 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5931 # mode. It turns out that the SunPro C++ compiler does not properly
5932 # handle `-M -o', and we need to detect this.
5933 if depmode
=$depmode \
5934 source=sub
/conftest.c object
=sub
/conftest.
${OBJEXT-o} \
5935 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
5936 $SHELL .
/depcomp
$depcc -c -o sub
/conftest.
${OBJEXT-o} sub
/conftest.c \
5937 >/dev
/null
2>conftest.err
&&
5938 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5939 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
5940 grep sub
/conftest.
${OBJEXT-o} sub
/conftest.Po
> /dev
/null
2>&1 &&
5941 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
5942 # icc doesn't choke on unknown options, it will just issue warnings
5943 # or remarks (even with -Werror). So we grep stderr for any message
5944 # that says an option was ignored or not supported.
5945 # When given -MP, icc 7.0 and 7.1 complain thusly:
5946 # icc: Command line warning: ignoring option '-M'; no argument required
5947 # The diagnosis changed in icc 8.0:
5948 # icc: Command line remark: option '-MP' not supported
5949 if (grep 'ignoring option' conftest.err ||
5950 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
5951 am_cv_CXX_dependencies_compiler_type
=$depmode
5960 am_cv_CXX_dependencies_compiler_type
=none
5964 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5965 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5966 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
5969 test "x$enable_dependency_tracking" != xno \
5970 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
5971 am__fastdepCXX_TRUE
=
5972 am__fastdepCXX_FALSE
='#'
5974 am__fastdepCXX_TRUE
='#'
5975 am__fastdepCXX_FALSE
=
5981 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5982 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5983 (test "X$CXX" != "Xg++"))) ; then
5985 ac_cpp
='$CXXCPP $CPPFLAGS'
5986 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5987 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5988 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5989 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5990 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5991 if test -z "$CXXCPP"; then
5992 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5993 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 # Double quotes because CXXCPP needs to be expanded
5996 for CXXCPP
in "$CXX -E" "/lib/cpp"
5999 for ac_cxx_preproc_warn_flag
in '' yes
6001 # Use a header file that comes with gcc, so configuring glibc
6002 # with a fresh cross-compiler works.
6003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6004 # <limits.h> exists even on freestanding compilers.
6005 # On the NeXT, cc -E runs the code through the compiler's parser,
6006 # not just through cpp. "Syntax error" is here to catch this case.
6007 cat >conftest.
$ac_ext <<_ACEOF
6010 cat confdefs.h
>>conftest.
$ac_ext
6011 cat >>conftest.
$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6014 # include <limits.h>
6016 # include <assert.h>
6020 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6023 *) ac_try_echo=$ac_try;;
6025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6028 grep -v '^ *+' conftest.er1 >conftest.err
6030 cat conftest.err >&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); } >/dev/null && {
6033 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6034 test ! -s conftest.err
6038 echo "$as_me: failed program was:" >&5
6039 sed 's/^/| /' conftest.$ac_ext >&5
6041 # Broken: fails on valid input.
6045 rm -f conftest.err conftest.$ac_ext
6047 # OK, works on sane cases. Now check whether nonexistent headers
6048 # can be detected and how.
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6055 #include <ac_nonexistent.h>
6057 if { (ac_try="$ac_cpp conftest.$ac_ext"
6059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6060 *) ac_try_echo
=$ac_try;;
6062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6063 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6065 grep -v '^ *+' conftest.er1
>conftest.err
6067 cat conftest.err
>&5
6068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6069 (exit $ac_status); } >/dev
/null
&& {
6070 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6071 test ! -s conftest.err
6073 # Broken: success on invalid input.
6076 echo "$as_me: failed program was:" >&5
6077 sed 's/^/| /' conftest.
$ac_ext >&5
6079 # Passes both tests.
6084 rm -f conftest.err conftest.
$ac_ext
6087 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6088 rm -f conftest.err conftest.
$ac_ext
6089 if $ac_preproc_ok; then
6094 ac_cv_prog_CXXCPP
=$CXXCPP
6097 CXXCPP
=$ac_cv_prog_CXXCPP
6099 ac_cv_prog_CXXCPP
=$CXXCPP
6101 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
6102 echo "${ECHO_T}$CXXCPP" >&6; }
6104 for ac_cxx_preproc_warn_flag
in '' yes
6106 # Use a header file that comes with gcc, so configuring glibc
6107 # with a fresh cross-compiler works.
6108 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6109 # <limits.h> exists even on freestanding compilers.
6110 # On the NeXT, cc -E runs the code through the compiler's parser,
6111 # not just through cpp. "Syntax error" is here to catch this case.
6112 cat >conftest.
$ac_ext <<_ACEOF
6115 cat confdefs.h
>>conftest.
$ac_ext
6116 cat >>conftest.
$ac_ext <<_ACEOF
6117 /* end confdefs.h. */
6119 # include <limits.h>
6121 # include <assert.h>
6125 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } >/dev/null && {
6138 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6139 test ! -s conftest.err
6143 echo "$as_me: failed program was:" >&5
6144 sed 's/^/| /' conftest.$ac_ext >&5
6146 # Broken: fails on valid input.
6150 rm -f conftest.err conftest.$ac_ext
6152 # OK, works on sane cases. Now check whether nonexistent headers
6153 # can be detected and how.
6154 cat >conftest.$ac_ext <<_ACEOF
6157 cat confdefs.h >>conftest.$ac_ext
6158 cat >>conftest.$ac_ext <<_ACEOF
6159 /* end confdefs.h. */
6160 #include <ac_nonexistent.h>
6162 if { (ac_try="$ac_cpp conftest.$ac_ext"
6164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6165 *) ac_try_echo
=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1
>conftest.err
6172 cat conftest.err
>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } >/dev
/null
&& {
6175 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6176 test ! -s conftest.err
6178 # Broken: success on invalid input.
6181 echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.
$ac_ext >&5
6184 # Passes both tests.
6189 rm -f conftest.err conftest.
$ac_ext
6192 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6193 rm -f conftest.err conftest.
$ac_ext
6194 if $ac_preproc_ok; then
6197 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6198 See \`config.log' for more details." >&5
6199 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6200 See \`config.log' for more details." >&2;}
6201 { (exit 1); exit 1; }; }
6205 ac_cpp
='$CXXCPP $CPPFLAGS'
6206 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6214 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6215 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6216 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
6217 if test -n "$ac_tool_prefix"; then
6218 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6220 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6221 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6222 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6223 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224 if test "${ac_cv_prog_F77+set}" = set; then
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6227 if test -n "$F77"; then
6228 ac_cv_prog_F77
="$F77" # Let the user override the test.
6230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6234 test -z "$as_dir" && as_dir
=.
6235 for ac_exec_ext
in '' $ac_executable_extensions; do
6236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237 ac_cv_prog_F77
="$ac_tool_prefix$ac_prog"
6238 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6248 if test -n "$F77"; then
6249 { echo "$as_me:$LINENO: result: $F77" >&5
6250 echo "${ECHO_T}$F77" >&6; }
6252 { echo "$as_me:$LINENO: result: no" >&5
6253 echo "${ECHO_T}no" >&6; }
6257 test -n "$F77" && break
6260 if test -z "$F77"; then
6262 for ac_prog
in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6264 # Extract the first word of "$ac_prog", so it can be a program name with args.
6265 set dummy
$ac_prog; ac_word
=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 if test -n "$ac_ct_F77"; then
6272 ac_cv_prog_ac_ct_F77
="$ac_ct_F77" # Let the user override the test.
6274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir
=.
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_prog_ac_ct_F77
="$ac_prog"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6291 ac_ct_F77
=$ac_cv_prog_ac_ct_F77
6292 if test -n "$ac_ct_F77"; then
6293 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6294 echo "${ECHO_T}$ac_ct_F77" >&6; }
6296 { echo "$as_me:$LINENO: result: no" >&5
6297 echo "${ECHO_T}no" >&6; }
6301 test -n "$ac_ct_F77" && break
6304 if test "x$ac_ct_F77" = x
; then
6307 case $cross_compiling:$ac_tool_warned in
6309 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6310 whose name does not start with the host triplet. If you think this
6311 configuration is useful to you, please write to autoconf@gnu.org." >&5
6312 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6313 whose name does not start with the host triplet. If you think this
6314 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6315 ac_tool_warned
=yes ;;
6322 # Provide some information about the compiler.
6323 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6324 ac_compiler
=`set X $ac_compile; echo $2`
6325 { (ac_try
="$ac_compiler --version >&5"
6327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_compiler --version >&5") 2>&5
6333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6334 (exit $ac_status); }
6335 { (ac_try="$ac_compiler -v >&5"
6337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6338 *) ac_try_echo
=$ac_try;;
6340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_compiler -v >&5") 2>&5
6343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6344 (exit $ac_status); }
6345 { (ac_try
="$ac_compiler -V >&5"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compiler -V >&5") 2>&5
6353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6354 (exit $ac_status); }
6357 # If we don't use `.F
' as extension, the preprocessor is not run on the
6358 # input file. (Note that this only needs to work for GNU compilers.)
6361 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6362 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6363 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6364 echo $ECHO_N "(cached) $ECHO_C" >&6
6366 cat >conftest.$ac_ext <<_ACEOF
6374 rm -f conftest.$ac_objext
6375 if { (ac_try="$ac_compile"
6377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6383 grep -v '^
*+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_f77_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6393 echo "$as_me: failed program was:" >&5
6394 sed 's
/^
/|
/' conftest.$ac_ext >&5
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6403 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6404 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6406 ac_test_FFLAGS=${FFLAGS+set}
6407 ac_save_FFLAGS=$FFLAGS
6409 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6410 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6411 if test "${ac_cv_prog_f77_g+set}" = set; then
6412 echo $ECHO_N "(cached) $ECHO_C" >&6
6415 cat >conftest.$ac_ext <<_ACEOF
6420 rm -f conftest.$ac_objext
6421 if { (ac_try="$ac_compile"
6423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6424 *) ac_try_echo=$ac_try;;
6426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6427 (eval "$ac_compile") 2>conftest.er1
6429 grep -v '^
*+' conftest.er1 >conftest.err
6431 cat conftest.err >&5
6432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6433 (exit $ac_status); } && {
6434 test -z "$ac_f77_werror_flag" ||
6435 test ! -s conftest.err
6436 } && test -s conftest.$ac_objext; then
6437 ac_cv_prog_f77_g=yes
6439 echo "$as_me: failed program was:" >&5
6440 sed 's
/^
/|
/' conftest.$ac_ext >&5
6445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6449 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6450 if test "$ac_test_FFLAGS" = set; then
6451 FFLAGS=$ac_save_FFLAGS
6452 elif test $ac_cv_prog_f77_g = yes; then
6453 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6459 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6466 G77=`test $ac_compiler_gnu = yes && echo yes`
6468 ac_cpp='$CPP $CPPFLAGS'
6469 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
6470 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
6471 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6475 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works
for C compilers
!
6477 # find the maximum length of command line arguments
6478 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6479 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6480 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6481 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 # On DJGPP, this test can blow up pretty badly due to problems in libc
6489 # (any single argument exceeding 2000 bytes causes a buffer overrun
6490 # during glob expansion). Even if it were fixed, the result of this
6491 # check would be larger than it should be.
6492 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6496 # Under GNU Hurd, this test is not required because there is
6497 # no limit to the length of command line arguments.
6498 # Libtool will interpret -1 as no limit whatsoever
6499 lt_cv_sys_max_cmd_len
=-1;
6503 # On Win9x/ME, this test blows up -- it succeeds, but takes
6504 # about 5 minutes as the teststring grows exponentially.
6505 # Worse, since 9x/ME are not pre-emptively multitasking,
6506 # you end up with a "frozen" computer, even though with patience
6507 # the test eventually succeeds (with a max line length of 256k).
6508 # Instead, let's just punt: use the minimum linelength reported by
6509 # all of the supported platforms: 8192 (on NT/2K/XP).
6510 lt_cv_sys_max_cmd_len
=8192;
6514 # On AmigaOS with pdksh, this test takes hours, literally.
6515 # So we just punt and use a minimum line length of 8192.
6516 lt_cv_sys_max_cmd_len
=8192;
6519 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6520 # This has been around since 386BSD, at least. Likely further.
6521 if test -x /sbin
/sysctl
; then
6522 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6523 elif test -x /usr
/sbin
/sysctl
; then
6524 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6526 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6528 # And add a safety zone
6529 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6530 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6534 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6535 lt_cv_sys_max_cmd_len
=196608
6539 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6540 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6541 # nice to cause kernel panics so lets avoid the loop below.
6542 # First set a reasonable default.
6543 lt_cv_sys_max_cmd_len
=16384
6545 if test -x /sbin
/sysconfig
; then
6546 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6547 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6552 lt_cv_sys_max_cmd_len
=102400
6554 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6555 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6556 if test -n "$kargmax"; then
6557 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6559 lt_cv_sys_max_cmd_len
=32768
6563 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6564 if test -n "$lt_cv_sys_max_cmd_len"; then
6565 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6566 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6568 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6569 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6570 = "XX$teststring") >/dev
/null
2>&1 &&
6571 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
6572 lt_cv_sys_max_cmd_len
=$new_result &&
6573 test $i != 17 # 1/2 MB should be enough
6576 teststring
=$teststring$teststring
6579 # Add a significant safety factor because C++ compilers can tack on massive
6580 # amounts of additional arguments before passing them to the linker.
6581 # It appears as though 1/2 is a usable value.
6582 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6589 if test -n $lt_cv_sys_max_cmd_len ; then
6590 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6593 { echo "$as_me:$LINENO: result: none" >&5
6594 echo "${ECHO_T}none" >&6; }
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6603 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6604 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6605 echo $ECHO_N "(cached) $ECHO_C" >&6
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611 # Character class describing NM global symbol codes.
6612 symcode
='[BCDEGRST]'
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
6617 # Transform an extracted symbol line into a proper C declaration
6618 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6620 # Transform an extracted symbol line into symbol name and symbol address
6621 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6623 # Define system-specific variables.
6628 cygwin
* | mingw
* | pw32
*)
6629 symcode
='[ABCDGISTW]'
6631 hpux
*) # Its linker distinguishes data from code symbols
6632 if test "$host_cpu" = ia64
; then
6633 symcode
='[ABCDEGRST]'
6635 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6636 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6638 linux
* | k
*bsd
*-gnu)
6639 if test "$host_cpu" = ia64
; then
6640 symcode
='[ABCDGIRSTW]'
6641 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6642 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6646 symcode
='[BCDEGRST]'
6649 symcode
='[BCDEGQRST]'
6660 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
6668 # Handle CRLF in mingw tool chain
6672 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676 # If we're using GNU nm, then use its standard symbol codes.
6677 case `$NM -V 2>&1` in
6678 *GNU
* |
*'with BFD'*)
6679 symcode
='[ABCDGIRSTW]' ;;
6682 # Try without a prefix undercore, then with it.
6683 for ac_symprfx
in "" "_"; do
6685 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6686 symxfrm
="\\1 $ac_symprfx\\2 \\2"
6688 # Write the raw and C identifiers.
6689 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6691 # Check to see that the pipe works correctly.
6695 cat > conftest.
$ac_ext <<EOF
6700 void nm_test_func(){}
6704 int main(){nm_test_var='a';nm_test_func();return(0);}
6707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6708 (eval $ac_compile) 2>&5
6710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6711 (exit $ac_status); }; then
6712 # Now try to grab the symbols.
6714 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6715 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); } && test -s "$nlist"; then
6719 # Try sorting and uniquifying the output.
6720 if sort "$nlist" |
uniq > "$nlist"T
; then
6721 mv -f "$nlist"T
"$nlist"
6726 # Make sure that we snagged all the symbols we need.
6727 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
6728 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
6729 cat <<EOF > conftest.$ac_ext
6735 # Now generate the symbol file.
6736 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6738 cat <<EOF >> conftest.$ac_ext
6739 #if defined (__STDC__) && __STDC__
6740 # define lt_ptr_t void *
6742 # define lt_ptr_t char *
6746 /* The mapping between symbol names and symbols. */
6751 lt_preloaded_symbols[] =
6754 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
6755 cat <<\EOF
>> conftest.
$ac_ext
6763 # Now try linking the two files.
6764 mv conftest.
$ac_objext conftstm.
$ac_objext
6765 lt_save_LIBS
="$LIBS"
6766 lt_save_CFLAGS
="$CFLAGS"
6767 LIBS
="conftstm.$ac_objext"
6768 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6769 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6770 (eval $ac_link) 2>&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
6776 LIBS
="$lt_save_LIBS"
6777 CFLAGS
="$lt_save_CFLAGS"
6779 echo "cannot find nm_test_func in $nlist" >&5
6782 echo "cannot find nm_test_var in $nlist" >&5
6785 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6788 echo "$progname: failed program was:" >&5
6789 cat conftest.
$ac_ext >&5
6791 rm -f conftest
* conftst
*
6793 # Do not use the global_symbol_pipe unless it works.
6794 if test "$pipe_works" = yes; then
6797 lt_cv_sys_global_symbol_pipe
=
6803 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6804 lt_cv_sys_global_symbol_to_cdecl
=
6806 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6807 { echo "$as_me:$LINENO: result: failed" >&5
6808 echo "${ECHO_T}failed" >&6; }
6810 { echo "$as_me:$LINENO: result: ok" >&5
6811 echo "${ECHO_T}ok" >&6; }
6814 { echo "$as_me:$LINENO: checking for objdir" >&5
6815 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6816 if test "${lt_cv_objdir+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 rm -f .libs
2>/dev
/null
6820 mkdir .libs
2>/dev
/null
6821 if test -d .libs
; then
6824 # MS-DOS does not allow filenames that begin with a dot.
6827 rmdir .libs
2>/dev
/null
6829 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6830 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6831 objdir
=$lt_cv_objdir
6839 # AIX sometimes has problems with the GCC collect2 program. For some
6840 # reason, if we set the COLLECT_NAMES environment variable, the problems
6841 # vanish in a puff of smoke.
6842 if test "X${COLLECT_NAMES+set}" != Xset
; then
6844 export COLLECT_NAMES
6849 # Sed substitution that helps us do robust quoting. It backslashifies
6850 # metacharacters that are still active within double-quoted strings.
6851 Xsed
='sed -e 1s/^X//'
6852 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
6854 # Same as above, but do not quote variable references.
6855 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
6857 # Sed substitution to delay expansion of an escaped shell variable in a
6858 # double_quote_subst'ed string.
6859 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
6861 # Sed substitution to avoid accidental globbing in evaled expressions
6862 no_glob_subst
='s/\*/\\\*/g'
6868 default_ofile
=libtool
6869 can_build_shared
=yes
6871 # All known linkers require a `.a' archive for static linking (except MSVC,
6872 # which needs '.lib').
6874 ltmain
="$ac_aux_dir/ltmain.sh"
6875 ofile
="$default_ofile"
6876 with_gnu_ld
="$lt_cv_prog_gnu_ld"
6878 if test -n "$ac_tool_prefix"; then
6879 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6880 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6883 if test "${ac_cv_prog_AR+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6886 if test -n "$AR"; then
6887 ac_cv_prog_AR
="$AR" # Let the user override the test.
6889 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6893 test -z "$as_dir" && as_dir
=.
6894 for ac_exec_ext
in '' $ac_executable_extensions; do
6895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6896 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 if test -n "$AR"; then
6908 { echo "$as_me:$LINENO: result: $AR" >&5
6909 echo "${ECHO_T}$AR" >&6; }
6911 { echo "$as_me:$LINENO: result: no" >&5
6912 echo "${ECHO_T}no" >&6; }
6917 if test -z "$ac_cv_prog_AR"; then
6919 # Extract the first word of "ar", so it can be a program name with args.
6920 set dummy
ar; ac_word
=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6926 if test -n "$ac_ct_AR"; then
6927 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6933 test -z "$as_dir" && as_dir
=.
6934 for ac_exec_ext
in '' $ac_executable_extensions; do
6935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6936 ac_cv_prog_ac_ct_AR
="ar"
6937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6947 if test -n "$ac_ct_AR"; then
6948 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6949 echo "${ECHO_T}$ac_ct_AR" >&6; }
6951 { echo "$as_me:$LINENO: result: no" >&5
6952 echo "${ECHO_T}no" >&6; }
6955 if test "x$ac_ct_AR" = x
; then
6958 case $cross_compiling:$ac_tool_warned in
6960 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6961 whose name does not start with the host triplet. If you think this
6962 configuration is useful to you, please write to autoconf@gnu.org." >&5
6963 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6964 whose name does not start with the host triplet. If you think this
6965 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6966 ac_tool_warned
=yes ;;
6974 if test -n "$ac_tool_prefix"; then
6975 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6976 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6979 if test "${ac_cv_prog_RANLIB+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 if test -n "$RANLIB"; then
6983 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6989 test -z "$as_dir" && as_dir
=.
6990 for ac_exec_ext
in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6992 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7002 RANLIB
=$ac_cv_prog_RANLIB
7003 if test -n "$RANLIB"; then
7004 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7005 echo "${ECHO_T}$RANLIB" >&6; }
7007 { echo "$as_me:$LINENO: result: no" >&5
7008 echo "${ECHO_T}no" >&6; }
7013 if test -z "$ac_cv_prog_RANLIB"; then
7014 ac_ct_RANLIB
=$RANLIB
7015 # Extract the first word of "ranlib", so it can be a program name with args.
7016 set dummy ranlib
; ac_word
=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 if test -n "$ac_ct_RANLIB"; then
7023 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7025 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7029 test -z "$as_dir" && as_dir
=.
7030 for ac_exec_ext
in '' $ac_executable_extensions; do
7031 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7032 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7043 if test -n "$ac_ct_RANLIB"; then
7044 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7045 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7047 { echo "$as_me:$LINENO: result: no" >&5
7048 echo "${ECHO_T}no" >&6; }
7051 if test "x$ac_ct_RANLIB" = x
; then
7054 case $cross_compiling:$ac_tool_warned in
7056 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7057 whose name does not start with the host triplet. If you think this
7058 configuration is useful to you, please write to autoconf@gnu.org." >&5
7059 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7060 whose name does not start with the host triplet. If you think this
7061 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7062 ac_tool_warned
=yes ;;
7064 RANLIB
=$ac_ct_RANLIB
7067 RANLIB
="$ac_cv_prog_RANLIB"
7070 if test -n "$ac_tool_prefix"; then
7071 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7072 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7073 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7074 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7075 if test "${ac_cv_prog_STRIP+set}" = set; then
7076 echo $ECHO_N "(cached) $ECHO_C" >&6
7078 if test -n "$STRIP"; then
7079 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7081 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7085 test -z "$as_dir" && as_dir
=.
7086 for ac_exec_ext
in '' $ac_executable_extensions; do
7087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7088 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7098 STRIP
=$ac_cv_prog_STRIP
7099 if test -n "$STRIP"; then
7100 { echo "$as_me:$LINENO: result: $STRIP" >&5
7101 echo "${ECHO_T}$STRIP" >&6; }
7103 { echo "$as_me:$LINENO: result: no" >&5
7104 echo "${ECHO_T}no" >&6; }
7109 if test -z "$ac_cv_prog_STRIP"; then
7111 # Extract the first word of "strip", so it can be a program name with args.
7112 set dummy strip
; ac_word
=$2
7113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7115 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 if test -n "$ac_ct_STRIP"; then
7119 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7121 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7125 test -z "$as_dir" && as_dir
=.
7126 for ac_exec_ext
in '' $ac_executable_extensions; do
7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7128 ac_cv_prog_ac_ct_STRIP
="strip"
7129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7138 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7139 if test -n "$ac_ct_STRIP"; then
7140 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7141 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
7143 { echo "$as_me:$LINENO: result: no" >&5
7144 echo "${ECHO_T}no" >&6; }
7147 if test "x$ac_ct_STRIP" = x
; then
7150 case $cross_compiling:$ac_tool_warned in
7152 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7153 whose name does not start with the host triplet. If you think this
7154 configuration is useful to you, please write to autoconf@gnu.org." >&5
7155 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7156 whose name does not start with the host triplet. If you think this
7157 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7158 ac_tool_warned
=yes ;;
7163 STRIP
="$ac_cv_prog_STRIP"
7168 old_CFLAGS
="$CFLAGS"
7170 # Set sane defaults for various variables
7171 test -z "$AR" && AR
=ar
7172 test -z "$AR_FLAGS" && AR_FLAGS
=cru
7173 test -z "$AS" && AS
=as
7174 test -z "$CC" && CC
=cc
7175 test -z "$LTCC" && LTCC
=$CC
7176 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
7177 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7178 test -z "$LD" && LD
=ld
7179 test -z "$LN_S" && LN_S
="ln -s"
7180 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
7181 test -z "$NM" && NM
=nm
7182 test -z "$SED" && SED
=sed
7183 test -z "$OBJDUMP" && OBJDUMP
=objdump
7184 test -z "$RANLIB" && RANLIB
=:
7185 test -z "$STRIP" && STRIP
=:
7186 test -z "$ac_objext" && ac_objext
=o
7188 # Determine commands to create old-style static archives.
7189 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7190 old_postinstall_cmds
='chmod 644 $oldlib'
7191 old_postuninstall_cmds
=
7193 if test -n "$RANLIB"; then
7196 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7199 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7202 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7205 for cc_temp
in $compiler""; do
7207 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7208 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7213 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7216 # Only perform the check for file, if the check method requires it
7217 case $deplibs_check_method in
7219 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7220 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7221 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7222 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7223 echo $ECHO_N "(cached) $ECHO_C" >&6
7227 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7230 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7231 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7232 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7233 for ac_dir
in $ac_dummy; do
7235 test -z "$ac_dir" && ac_dir
=.
7236 if test -f $ac_dir/${ac_tool_prefix}file; then
7237 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
7238 if test -n "$file_magic_test_file"; then
7239 case $deplibs_check_method in
7241 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7242 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7243 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7244 $EGREP "$file_magic_regex" > /dev
/null
; then
7249 *** Warning: the command libtool uses to detect shared libraries,
7250 *** $file_magic_cmd, produces output that libtool cannot recognize.
7251 *** The result is that libtool may fail to recognize shared libraries
7252 *** as such. This will affect the creation of libtool libraries that
7253 *** depend on shared libraries, but programs linked with such libtool
7254 *** libraries will work regardless of this problem. Nevertheless, you
7255 *** may want to report the problem to your system manager and/or to
7256 *** bug-libtool@gnu.org
7266 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7271 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7272 if test -n "$MAGIC_CMD"; then
7273 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7274 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7276 { echo "$as_me:$LINENO: result: no" >&5
7277 echo "${ECHO_T}no" >&6; }
7280 if test -z "$lt_cv_path_MAGIC_CMD"; then
7281 if test -n "$ac_tool_prefix"; then
7282 { echo "$as_me:$LINENO: checking for file" >&5
7283 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7284 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
7292 lt_save_MAGIC_CMD
="$MAGIC_CMD"
7293 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
7294 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
7295 for ac_dir
in $ac_dummy; do
7297 test -z "$ac_dir" && ac_dir
=.
7298 if test -f $ac_dir/file; then
7299 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
7300 if test -n "$file_magic_test_file"; then
7301 case $deplibs_check_method in
7303 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7304 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7305 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
7306 $EGREP "$file_magic_regex" > /dev
/null
; then
7311 *** Warning: the command libtool uses to detect shared libraries,
7312 *** $file_magic_cmd, produces output that libtool cannot recognize.
7313 *** The result is that libtool may fail to recognize shared libraries
7314 *** as such. This will affect the creation of libtool libraries that
7315 *** depend on shared libraries, but programs linked with such libtool
7316 *** libraries will work regardless of this problem. Nevertheless, you
7317 *** may want to report the problem to your system manager and/or to
7318 *** bug-libtool@gnu.org
7328 MAGIC_CMD
="$lt_save_MAGIC_CMD"
7333 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
7334 if test -n "$MAGIC_CMD"; then
7335 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7336 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7338 { echo "$as_me:$LINENO: result: no" >&5
7339 echo "${ECHO_T}no" >&6; }
7354 # Check whether --enable-libtool-lock was given.
7355 if test "${enable_libtool_lock+set}" = set; then
7356 enableval
=$enable_libtool_lock;
7359 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7362 # Check whether --with-pic was given.
7363 if test "${with_pic+set}" = set; then
7364 withval
=$with_pic; pic_mode
="$withval"
7369 test -z "$pic_mode" && pic_mode
=default
7371 # Use C for the default configuration in the libtool script
7375 ac_cpp
='$CPP $CPPFLAGS'
7376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7381 # Source file extension for C test sources.
7384 # Object file extension for compiled C test sources.
7388 # Code to be used in simple compile tests
7389 lt_simple_compile_test_code
="int some_variable = 0;"
7391 # Code to be used in simple link tests
7392 lt_simple_link_test_code
='int main(){return(0);}'
7395 # If no C compiler was specified, use CC.
7398 # If no C compiler flags were specified, use CFLAGS.
7399 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7401 # Allow CC to be a program name with arguments.
7405 # save warnings/boilerplate of simple test code
7406 ac_outfile
=conftest.
$ac_objext
7407 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
7408 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7409 _lt_compiler_boilerplate
=`cat conftest.err`
7412 ac_outfile
=conftest.
$ac_objext
7413 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
7414 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
7415 _lt_linker_boilerplate
=`cat conftest.err`
7420 lt_prog_compiler_no_builtin_flag
=
7422 if test "$GCC" = yes; then
7423 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
7426 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7427 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7428 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7431 lt_cv_prog_compiler_rtti_exceptions
=no
7432 ac_outfile
=conftest.
$ac_objext
7433 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7434 lt_compiler_flag
="-fno-rtti -fno-exceptions"
7435 # Insert the option either (1) after the last *FLAGS variable, or
7436 # (2) before a word containing "conftest.", or (3) at the end.
7437 # Note that $ac_compile itself does not contain backslashes and begins
7438 # with a dollar sign (not a hyphen), so the echo should work correctly.
7439 # The option is referenced via a variable to avoid confusing sed.
7440 lt_compile
=`echo "$ac_compile" | $SED \
7441 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7442 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7443 -e 's:$: $lt_compiler_flag:'`
7444 (eval echo "\"\$as_me:7444: $lt_compile\"" >&5)
7445 (eval "$lt_compile" 2>conftest.err
)
7447 cat conftest.err
>&5
7448 echo "$as_me:7448: \$? = $ac_status" >&5
7449 if (exit $ac_status) && test -s "$ac_outfile"; then
7450 # The compiler can only warn and ignore the option if not recognized
7451 # So say no if there are warnings other than the usual output.
7452 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7453 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7454 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7455 lt_cv_prog_compiler_rtti_exceptions
=yes
7461 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7462 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7464 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
7465 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7472 lt_prog_compiler_wl
=
7473 lt_prog_compiler_pic
=
7474 lt_prog_compiler_static
=
7476 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7477 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7479 if test "$GCC" = yes; then
7480 lt_prog_compiler_wl
='-Wl,'
7481 lt_prog_compiler_static
='-static'
7485 # All AIX code is PIC.
7486 if test "$host_cpu" = ia64
; then
7487 # AIX 5 now supports IA64 processor
7488 lt_prog_compiler_static
='-Bstatic'
7493 # FIXME: we need at least 68020 code to build shared libraries, but
7494 # adding the `-m68020' flag to GCC prevents building anything better,
7496 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
7499 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
7500 # PIC is the default for these OSes.
7503 mingw
* | cygwin
* | pw32
* | os2
*)
7504 # This hack is so that the source file can tell whether it is being
7505 # built for inclusion in a dll (and should export symbols for example).
7506 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7507 # (--disable-auto-import) libraries
7508 lt_prog_compiler_pic
='-DDLL_EXPORT'
7511 darwin
* | rhapsody
*)
7512 # PIC is the default on this platform
7513 # Common symbols not allowed in MH_DYLIB files
7514 lt_prog_compiler_pic
='-fno-common'
7518 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7519 # Instead, we relocate shared libraries at runtime.
7523 # Just because we use GCC doesn't mean we suddenly get shared libraries
7524 # on systems that don't support them.
7525 lt_prog_compiler_can_build_shared
=no
7530 if test -d /usr
/nec
; then
7531 lt_prog_compiler_pic
=-Kconform_pic
7536 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7543 lt_prog_compiler_pic
='-fPIC'
7549 lt_prog_compiler_pic
='-fPIC'
7553 # PORTME Check for flag to pass linker flags through the system compiler.
7556 lt_prog_compiler_wl
='-Wl,'
7557 if test "$host_cpu" = ia64
; then
7558 # AIX 5 now supports IA64 processor
7559 lt_prog_compiler_static
='-Bstatic'
7561 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
7565 # PIC is the default on this platform
7566 # Common symbols not allowed in MH_DYLIB files
7567 case $cc_basename in
7569 lt_prog_compiler_pic
='-qnocommon'
7570 lt_prog_compiler_wl
='-Wl,'
7575 mingw
* | cygwin
* | pw32
* | os2
*)
7576 # This hack is so that the source file can tell whether it is being
7577 # built for inclusion in a dll (and should export symbols for example).
7578 lt_prog_compiler_pic
='-DDLL_EXPORT'
7581 hpux9
* | hpux10
* | hpux11
*)
7582 lt_prog_compiler_wl
='-Wl,'
7583 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7590 lt_prog_compiler_pic
='+Z'
7593 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7594 lt_prog_compiler_static
='${wl}-a ${wl}archive'
7597 irix5
* | irix6
* | nonstopux
*)
7598 lt_prog_compiler_wl
='-Wl,'
7599 # PIC (with -KPIC) is the default.
7600 lt_prog_compiler_static
='-non_shared'
7604 lt_prog_compiler_pic
='-KPIC'
7605 lt_prog_compiler_static
='-Bstatic'
7608 linux
* | k
*bsd
*-gnu)
7609 case $cc_basename in
7611 lt_prog_compiler_wl
='-Wl,'
7612 lt_prog_compiler_pic
='-KPIC'
7613 lt_prog_compiler_static
='-static'
7615 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
7616 # Portland Group compilers (*not* the Pentium gcc compiler,
7617 # which looks to be a dead project)
7618 lt_prog_compiler_wl
='-Wl,'
7619 lt_prog_compiler_pic
='-fpic'
7620 lt_prog_compiler_static
='-Bstatic'
7623 lt_prog_compiler_wl
='-Wl,'
7624 # All Alpha code is PIC.
7625 lt_prog_compiler_static
='-non_shared'
7628 case `$CC -V 2>&1 | sed 5q` in
7631 lt_prog_compiler_pic
='-KPIC'
7632 lt_prog_compiler_static
='-Bstatic'
7633 lt_prog_compiler_wl
='-Wl,'
7636 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7637 lt_prog_compiler_pic
='-KPIC'
7638 lt_prog_compiler_static
='-Bstatic'
7639 lt_prog_compiler_wl
=''
7646 osf3
* | osf4
* | osf5
*)
7647 lt_prog_compiler_wl
='-Wl,'
7648 # All OSF/1 code is PIC.
7649 lt_prog_compiler_static
='-non_shared'
7653 lt_prog_compiler_static
='-non_shared'
7657 lt_prog_compiler_pic
='-KPIC'
7658 lt_prog_compiler_static
='-Bstatic'
7659 case $cc_basename in
7661 lt_prog_compiler_wl
='-Qoption ld ';;
7663 lt_prog_compiler_wl
='-Wl,';;
7668 lt_prog_compiler_wl
='-Qoption ld '
7669 lt_prog_compiler_pic
='-PIC'
7670 lt_prog_compiler_static
='-Bstatic'
7673 sysv4 | sysv4.2uw2
* | sysv4.3
*)
7674 lt_prog_compiler_wl
='-Wl,'
7675 lt_prog_compiler_pic
='-KPIC'
7676 lt_prog_compiler_static
='-Bstatic'
7680 if test -d /usr
/nec
;then
7681 lt_prog_compiler_pic
='-Kconform_pic'
7682 lt_prog_compiler_static
='-Bstatic'
7686 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
7687 lt_prog_compiler_wl
='-Wl,'
7688 lt_prog_compiler_pic
='-KPIC'
7689 lt_prog_compiler_static
='-Bstatic'
7693 lt_prog_compiler_wl
='-Wl,'
7694 lt_prog_compiler_can_build_shared
=no
7698 lt_prog_compiler_pic
='-pic'
7699 lt_prog_compiler_static
='-Bstatic'
7703 lt_prog_compiler_can_build_shared
=no
7708 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7709 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7712 # Check to make sure the PIC flag actually works.
7714 if test -n "$lt_prog_compiler_pic"; then
7716 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7717 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7718 if test "${lt_prog_compiler_pic_works+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7721 lt_prog_compiler_pic_works
=no
7722 ac_outfile
=conftest.
$ac_objext
7723 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7724 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
7725 # Insert the option either (1) after the last *FLAGS variable, or
7726 # (2) before a word containing "conftest.", or (3) at the end.
7727 # Note that $ac_compile itself does not contain backslashes and begins
7728 # with a dollar sign (not a hyphen), so the echo should work correctly.
7729 # The option is referenced via a variable to avoid confusing sed.
7730 lt_compile
=`echo "$ac_compile" | $SED \
7731 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7732 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7733 -e 's:$: $lt_compiler_flag:'`
7734 (eval echo "\"\$as_me:7734: $lt_compile\"" >&5)
7735 (eval "$lt_compile" 2>conftest.err
)
7737 cat conftest.err
>&5
7738 echo "$as_me:7738: \$? = $ac_status" >&5
7739 if (exit $ac_status) && test -s "$ac_outfile"; then
7740 # The compiler can only warn and ignore the option if not recognized
7741 # So say no if there are warnings other than the usual output.
7742 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
7743 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7744 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
7745 lt_prog_compiler_pic_works
=yes
7751 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7752 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; }
7754 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
7755 case $lt_prog_compiler_pic in
7757 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
7760 lt_prog_compiler_pic
=
7761 lt_prog_compiler_can_build_shared
=no
7766 # For platforms which do not support PIC, -DPIC is meaningless:
7768 lt_prog_compiler_pic
=
7771 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
7776 # Check to make sure the static flag actually works.
7778 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
7779 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7780 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7781 if test "${lt_prog_compiler_static_works+set}" = set; then
7782 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 lt_prog_compiler_static_works
=no
7785 save_LDFLAGS
="$LDFLAGS"
7786 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
7787 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
7788 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
7789 # The linker can only warn and ignore the option if not recognized
7790 # So say no if there are warnings
7791 if test -s conftest.err
; then
7792 # Append any errors to the config.log.
7793 cat conftest.err
1>&5
7794 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
7795 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
7796 if diff conftest.exp conftest.er2
>/dev
/null
; then
7797 lt_prog_compiler_static_works
=yes
7800 lt_prog_compiler_static_works
=yes
7804 LDFLAGS
="$save_LDFLAGS"
7807 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7808 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; }
7810 if test x
"$lt_prog_compiler_static_works" = xyes
; then
7813 lt_prog_compiler_static
=
7817 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7818 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7819 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 lt_cv_prog_compiler_c_o
=no
7823 $rm -r conftest
2>/dev
/null
7827 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
7829 lt_compiler_flag
="-o out/conftest2.$ac_objext"
7830 # Insert the option either (1) after the last *FLAGS variable, or
7831 # (2) before a word containing "conftest.", or (3) at the end.
7832 # Note that $ac_compile itself does not contain backslashes and begins
7833 # with a dollar sign (not a hyphen), so the echo should work correctly.
7834 lt_compile
=`echo "$ac_compile" | $SED \
7835 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7836 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7837 -e 's:$: $lt_compiler_flag:'`
7838 (eval echo "\"\$as_me:7838: $lt_compile\"" >&5)
7839 (eval "$lt_compile" 2>out
/conftest.err
)
7841 cat out
/conftest.err
>&5
7842 echo "$as_me:7842: \$? = $ac_status" >&5
7843 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
7845 # The compiler can only warn and ignore the option if not recognized
7846 # So say no if there are warnings
7847 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
7848 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
7849 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
7850 lt_cv_prog_compiler_c_o
=yes
7855 # SGI C++ compiler will create directory out/ii_files/ for
7856 # template instantiation
7857 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
7858 $rm out
/* && rmdir out
7864 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7865 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7868 hard_links
="nottested"
7869 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
7870 # do not overwrite the value of need_locks provided by the user
7871 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7872 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7875 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7877 ln conftest.a conftest.b
2>&5 || hard_links
=no
7878 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
7879 { echo "$as_me:$LINENO: result: $hard_links" >&5
7880 echo "${ECHO_T}$hard_links" >&6; }
7881 if test "$hard_links" = no
; then
7882 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7883 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7890 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7891 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7894 allow_undefined_flag
=
7895 enable_shared_with_static_runtimes
=no
7897 archive_expsym_cmds
=
7898 old_archive_From_new_cmds
=
7899 old_archive_from_expsyms_cmds
=
7900 export_dynamic_flag_spec
=
7901 whole_archive_flag_spec
=
7902 thread_safe_flag_spec
=
7903 hardcode_libdir_flag_spec
=
7904 hardcode_libdir_flag_spec_ld
=
7905 hardcode_libdir_separator
=
7908 hardcode_shlibpath_var
=unsupported
7909 link_all_deplibs
=unknown
7910 hardcode_automatic
=no
7913 always_export_symbols
=no
7914 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7915 # include_expsyms should be a list of space-separated symbols to be *always*
7916 # included in the symbol list
7918 # exclude_expsyms can be an extended regexp of symbols to exclude
7919 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7920 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7921 # as well as any symbol that contains `d'.
7922 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
7923 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7924 # platforms (ab)use it in PIC code, but their linkers get confused if
7925 # the symbol is explicitly referenced. Since portable code cannot
7926 # rely on this symbol name, it's probably fine to never include it in
7927 # preloaded symbol tables.
7928 extract_expsyms_cmds
=
7929 # Just being paranoid about ensuring that cc_basename is set.
7930 for cc_temp
in $compiler""; do
7932 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
7933 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
7938 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7941 cygwin
* | mingw
* | pw32
*)
7942 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7943 # When not using gcc, we currently assume that we are using
7944 # Microsoft Visual C++.
7945 if test "$GCC" != yes; then
7950 # we just hope/assume this is gcc and not c89 (= MSVC++)
7959 if test "$with_gnu_ld" = yes; then
7960 # If archive_cmds runs LD, not CC, wlarc should be empty
7963 # Set some defaults for GNU ld with shared library support. These
7964 # are reset later if shared libraries are not supported. Putting them
7965 # here allows them to be overridden if necessary.
7966 runpath_var
=LD_RUN_PATH
7967 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
7968 export_dynamic_flag_spec
='${wl}--export-dynamic'
7969 # ancient GNU ld didn't support --whole-archive et. al.
7970 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
7971 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7973 whole_archive_flag_spec
=
7975 supports_anon_versioning
=no
7976 case `$LD -v 2>/dev/null` in
7977 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
7978 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
7979 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
7980 *\
2.11.
*) ;; # other 2.11 versions
7981 *) supports_anon_versioning
=yes ;;
7984 # See if GNU ld supports shared libraries.
7986 aix3
* | aix4
* | aix5
*)
7987 # On AIX/PPC, the GNU linker is very broken
7988 if test "$host_cpu" != ia64
; then
7992 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7993 *** to be unable to reliably create shared libraries on AIX.
7994 *** Therefore, libtool is disabling shared libraries support. If you
7995 *** really care for shared libraries, you may want to modify your PATH
7996 *** so that a non-GNU linker is found, and then restart.
8003 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)'
8004 hardcode_libdir_flag_spec
='-L$libdir'
8005 hardcode_minus_L
=yes
8007 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8008 # that the semantics of dynamic libraries on AmigaOS, at least up
8009 # to version 4, is to share data among multiple programs linked
8010 # with the same dynamic library. Since this doesn't match the
8011 # behavior of shared libraries on other platforms, we can't use
8017 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8018 allow_undefined_flag
=unsupported
8019 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8020 # support --undefined. This deserves some investigation. FIXME
8021 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8027 cygwin
* | mingw
* | pw32
*)
8028 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8029 # as there is no search path for DLLs.
8030 hardcode_libdir_flag_spec
='-L$libdir'
8031 allow_undefined_flag
=unsupported
8032 always_export_symbols
=no
8033 enable_shared_with_static_runtimes
=yes
8034 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8036 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
8037 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8038 # If the export-symbols file already is a .def file (1st line
8039 # is EXPORTS), use it as is; otherwise, prepend...
8040 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8041 cp $export_symbols $output_objdir/$soname.def;
8043 echo EXPORTS > $output_objdir/$soname.def;
8044 cat $export_symbols >> $output_objdir/$soname.def;
8046 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8054 hardcode_shlibpath_var
=no
8055 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8056 export_dynamic_flag_spec
='${wl}-E'
8057 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8058 # Instead, shared libraries are loaded at an image base (0x10000000 by
8059 # default) and relocated if they conflict, which is a slow very memory
8060 # consuming and fragmenting process. To avoid this, we pick a random,
8061 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8062 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8063 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8064 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'
8067 gnu
* | linux
* | k
*bsd
*-gnu)
8068 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8070 case $cc_basename,$host_cpu in
8071 pgcc
*) # Portland Group C compiler
8072 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8073 tmp_addflag
=' $pic_flag'
8075 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
8076 whole_archive_flag_spec
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8077 tmp_addflag
=' $pic_flag -Mnomain' ;;
8078 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
8079 tmp_addflag
=' -i_dynamic' ;;
8080 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
8081 tmp_addflag
=' -i_dynamic -nofor_main' ;;
8082 ifc
* | ifort
*) # Intel Fortran compiler
8083 tmp_addflag
=' -nofor_main' ;;
8085 case `$CC -V 2>&1 | sed 5q` in
8086 *Sun\ C
*) # Sun C 5.9
8087 whole_archive_flag_spec
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8088 tmp_sharedflag
='-G' ;;
8089 *Sun\ F
*) # Sun Fortran 8.3
8090 tmp_sharedflag
='-G' ;;
8092 tmp_sharedflag
='-shared' ;;
8094 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8096 if test $supports_anon_versioning = yes; then
8097 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
8098 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8099 $echo "local: *; };" >> $output_objdir/$libname.ver~
8100 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8108 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8109 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8112 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8113 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8118 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
8122 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8123 *** create shared libraries on Solaris systems. Therefore, libtool
8124 *** is disabling shared libraries support. We urge you to upgrade GNU
8125 *** binutils to release 2.9.1 or newer. Another option is to modify
8126 *** your PATH or compiler configuration so that the native linker is
8127 *** used, and then restart.
8130 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8131 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8132 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8138 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
8139 case `$LD -v 2>&1` in
8140 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
8144 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8145 *** reliably create shared libraries on SCO systems. Therefore, libtool
8146 *** is disabling shared libraries support. We urge you to upgrade GNU
8147 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8148 *** your PATH or compiler configuration so that the native linker is
8149 *** used, and then restart.
8154 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8155 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8156 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8157 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8166 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8169 hardcode_shlibpath_var
=no
8173 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
8174 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8175 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8182 if test "$ld_shlibs" = no
; then
8184 hardcode_libdir_flag_spec
=
8185 export_dynamic_flag_spec
=
8186 whole_archive_flag_spec
=
8189 # PORTME fill in a description of your system's linker (not GNU ld)
8192 allow_undefined_flag
=unsupported
8193 always_export_symbols
=yes
8194 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'
8195 # Note: this linker hardcodes the directories in LIBPATH if there
8196 # are no directories specified by -L.
8197 hardcode_minus_L
=yes
8198 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8199 # Neither direct hardcoding nor static linking is supported with a
8201 hardcode_direct
=unsupported
8206 if test "$host_cpu" = ia64
; then
8207 # On IA64, the linker does run time linking by default, so we don't
8208 # have to do anything special.
8209 aix_use_runtimelinking
=no
8210 exp_sym_flag
='-Bexport'
8213 # If we're using GNU nm, then we don't want the "-C" option.
8214 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8215 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
8216 export_symbols_cmds
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8218 export_symbols_cmds
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8220 aix_use_runtimelinking
=no
8222 # Test if we are trying to use run time linking or normal
8223 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8224 # need to do runtime linking.
8225 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
8226 for ld_flag
in $LDFLAGS; do
8227 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
8228 aix_use_runtimelinking
=yes
8235 exp_sym_flag
='-bexport'
8236 no_entry_flag
='-bnoentry'
8239 # When large executables or shared objects are built, AIX ld can
8240 # have problems creating the table of contents. If linking a library
8241 # or program results in "error TOC overflow" add -mminimal-toc to
8242 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8243 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8247 hardcode_libdir_separator
=':'
8248 link_all_deplibs
=yes
8250 if test "$GCC" = yes; then
8251 case $host_os in aix4.
[012]|aix4.
[012].
*)
8252 # We only want to do this on AIX 4.2 and lower, the check
8253 # below for broken collect2 doesn't work under 4.3+
8254 collect2name
=`${CC} -print-prog-name=collect2`
8255 if test -f "$collect2name" && \
8256 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
8258 # We have reworked collect2
8261 # We have old collect2
8262 hardcode_direct
=unsupported
8263 # It fails to find uninstalled libraries when the uninstalled
8264 # path is not listed in the libpath. Setting hardcode_minus_L
8265 # to unsupported forces relinking
8266 hardcode_minus_L
=yes
8267 hardcode_libdir_flag_spec
='-L$libdir'
8268 hardcode_libdir_separator
=
8272 shared_flag
='-shared'
8273 if test "$aix_use_runtimelinking" = yes; then
8274 shared_flag
="$shared_flag "'${wl}-G'
8278 if test "$host_cpu" = ia64
; then
8279 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8280 # chokes on -Wl,-G. The following line is correct:
8283 if test "$aix_use_runtimelinking" = yes; then
8284 shared_flag
='${wl}-G'
8286 shared_flag
='${wl}-bM:SRE'
8291 # It seems that -bexpall does not export symbols beginning with
8292 # underscore (_), so it is better to generate a list of symbols to export.
8293 always_export_symbols
=yes
8294 if test "$aix_use_runtimelinking" = yes; then
8295 # Warning - without using the other runtime loading flags (-brtl),
8296 # -berok will link without error, but may produce a broken library.
8297 allow_undefined_flag
='-berok'
8298 # Determine the default libpath from the value encoded in an empty executable.
8299 cat >conftest.
$ac_ext <<_ACEOF
8302 cat confdefs.h
>>conftest.
$ac_ext
8303 cat >>conftest.
$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8314 rm -f conftest.
$ac_objext conftest
$ac_exeext
8315 if { (ac_try
="$ac_link"
8317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_link") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest$ac_exeext &&
8331 $as_test_x conftest$ac_exeext; then
8333 lt_aix_libpath_sed='
8334 /Import File Strings/,/^$/ {
8340 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8341 # Check for a 64-bit object if we didn't find anything.
8342 if test -z "$aix_libpath"; then
8343 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
8346 echo "$as_me: failed program was:" >&5
8347 sed 's/^/| /' conftest.$ac_ext >&5
8352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8353 conftest$ac_exeext conftest.$ac_ext
8354 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8356 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8357 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
8359 if test "$host_cpu" = ia64; then
8360 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8361 allow_undefined_flag="-z nodefs"
8362 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"
8364 # Determine the default libpath from the value encoded in an empty executable.
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8380 rm -f conftest.$ac_objext conftest$ac_exeext
8381 if { (ac_try="$ac_link"
8383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8384 *) ac_try_echo
=$ac_try;;
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_link") 2>conftest.er1
8389 grep -v '^ *+' conftest.er1
>conftest.err
8391 cat conftest.err
>&5
8392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8393 (exit $ac_status); } && {
8394 test -z "$ac_c_werror_flag" ||
8395 test ! -s conftest.err
8396 } && test -s conftest
$ac_exeext &&
8397 $as_test_x conftest
$ac_exeext; then
8399 lt_aix_libpath_sed
='
8400 /Import File Strings/,/^$/ {
8406 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8407 # Check for a 64-bit object if we didn't find anything.
8408 if test -z "$aix_libpath"; then
8409 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.
$ac_ext >&5
8418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8419 conftest
$ac_exeext conftest.
$ac_ext
8420 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
8422 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
8423 # Warning - without using the other run time loading flags,
8424 # -berok will link without error, but may produce a broken library.
8425 no_undefined_flag
=' ${wl}-bernotok'
8426 allow_undefined_flag
=' ${wl}-berok'
8427 # Exported symbols can be pulled into shared objects from archives
8428 whole_archive_flag_spec
='$convenience'
8429 archive_cmds_need_lc
=yes
8430 # This is similar to how AIX traditionally builds its shared libraries.
8431 archive_expsym_cmds
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
8437 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)'
8438 hardcode_libdir_flag_spec
='-L$libdir'
8439 hardcode_minus_L
=yes
8440 # see comment about different semantics on the GNU ld section
8445 export_dynamic_flag_spec
=-rdynamic
8448 cygwin
* | mingw
* | pw32
*)
8449 # When not using gcc, we currently assume that we are using
8450 # Microsoft Visual C++.
8451 # hardcode_libdir_flag_spec is actually meaningless, as there is
8452 # no search path for DLLs.
8453 hardcode_libdir_flag_spec
=' '
8454 allow_undefined_flag
=unsupported
8455 # Tell ltmain to make .lib files, not .a files.
8457 # Tell ltmain to make .dll files, not .so files.
8459 # FIXME: Setting linknames here is a bad hack.
8460 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8461 # The linker will automatically build a .lib file if we build a DLL.
8462 old_archive_From_new_cmds
='true'
8463 # FIXME: Should let the user specify the lib program.
8464 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
8465 fix_srcfile_path
='`cygpath -w "$srcfile"`'
8466 enable_shared_with_static_runtimes
=yes
8469 darwin
* | rhapsody
*)
8471 rhapsody
* | darwin1.
[012])
8472 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
8475 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8476 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8478 case ${MACOSX_DEPLOYMENT_TARGET} in
8480 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8483 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
8489 archive_cmds_need_lc
=no
8491 hardcode_automatic
=yes
8492 hardcode_shlibpath_var
=unsupported
8493 whole_archive_flag_spec
=''
8494 link_all_deplibs
=yes
8495 if test "$GCC" = yes ; then
8496 output_verbose_link_cmd
='echo'
8497 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8498 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8499 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8500 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8501 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8503 case $cc_basename in
8505 output_verbose_link_cmd
='echo'
8506 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8507 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8508 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8509 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8510 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8520 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8521 hardcode_libdir_flag_spec
='-L$libdir'
8522 hardcode_shlibpath_var
=no
8529 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8530 # support. Future versions do this automatically, but an explicit c++rt0.o
8531 # does not break anything, and helps significantly (at the cost of a little
8534 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8535 hardcode_libdir_flag_spec
='-R$libdir'
8537 hardcode_shlibpath_var
=no
8540 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8542 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8544 hardcode_minus_L
=yes
8545 hardcode_shlibpath_var
=no
8548 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8549 freebsd
* | dragonfly
*)
8550 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8551 hardcode_libdir_flag_spec
='-R$libdir'
8553 hardcode_shlibpath_var
=no
8557 if test "$GCC" = yes; then
8558 archive_cmds
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8560 archive_cmds
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8562 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8563 hardcode_libdir_separator
=:
8566 # hardcode_minus_L: Not really in the search PATH,
8567 # but as the default location of the library.
8568 hardcode_minus_L
=yes
8569 export_dynamic_flag_spec
='${wl}-E'
8573 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8574 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8576 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8578 if test "$with_gnu_ld" = no
; then
8579 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8580 hardcode_libdir_separator
=:
8583 export_dynamic_flag_spec
='${wl}-E'
8585 # hardcode_minus_L: Not really in the search PATH,
8586 # but as the default location of the library.
8587 hardcode_minus_L
=yes
8592 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
8595 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8598 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8601 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8607 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8610 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8613 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8617 if test "$with_gnu_ld" = no
; then
8618 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
8619 hardcode_libdir_separator
=:
8623 hardcode_libdir_flag_spec_ld
='+b $libdir'
8625 hardcode_shlibpath_var
=no
8629 export_dynamic_flag_spec
='${wl}-E'
8631 # hardcode_minus_L: Not really in the search PATH,
8632 # but as the default location of the library.
8633 hardcode_minus_L
=yes
8639 irix5
* | irix6
* | nonstopux
*)
8640 if test "$GCC" = yes; then
8641 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8643 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8644 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
8646 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8647 hardcode_libdir_separator
=:
8648 link_all_deplibs
=yes
8652 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
8653 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8655 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8657 hardcode_libdir_flag_spec
='-R$libdir'
8659 hardcode_shlibpath_var
=no
8663 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8665 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8666 hardcode_libdir_separator
=:
8667 hardcode_shlibpath_var
=no
8671 if test -f /usr
/libexec
/ld.so
; then
8673 hardcode_shlibpath_var
=no
8674 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8675 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8676 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8677 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8678 export_dynamic_flag_spec
='${wl}-E'
8681 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
8682 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8683 hardcode_libdir_flag_spec
='-R$libdir'
8686 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8687 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
8697 hardcode_libdir_flag_spec
='-L$libdir'
8698 hardcode_minus_L
=yes
8699 allow_undefined_flag
=unsupported
8700 archive_cmds
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
8701 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8705 if test "$GCC" = yes; then
8706 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8707 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8709 allow_undefined_flag
=' -expect_unresolved \*'
8710 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8712 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8713 hardcode_libdir_separator
=:
8716 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
8717 if test "$GCC" = yes; then
8718 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
8719 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8720 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
8722 allow_undefined_flag
=' -expect_unresolved \*'
8723 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8724 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8725 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8727 # Both c and cxx compiler support -rpath directly
8728 hardcode_libdir_flag_spec
='-rpath $libdir'
8730 hardcode_libdir_separator
=:
8734 no_undefined_flag
=' -z text'
8735 if test "$GCC" = yes; then
8737 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8738 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8739 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8742 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8743 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8744 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8746 hardcode_libdir_flag_spec
='-R$libdir'
8747 hardcode_shlibpath_var
=no
8749 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
8751 # The compiler driver will combine and reorder linker options,
8752 # but understands `-z linker_flag'. GCC discards it without `$wl',
8753 # but is careful enough not to reorder.
8754 # Supported since Solaris 2.6 (maybe 2.5.1?)
8755 if test "$GCC" = yes; then
8756 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8758 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
8762 link_all_deplibs
=yes
8766 if test "x$host_vendor" = xsequent
; then
8767 # Use $CC to link under sequent, because it throws in some extra .o
8768 # files that make .init and .fini sections work.
8769 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8771 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8773 hardcode_libdir_flag_spec
='-L$libdir'
8775 hardcode_minus_L
=yes
8776 hardcode_shlibpath_var
=no
8780 case $host_vendor in
8782 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8783 hardcode_direct
=yes # is this really true???
8786 ## LD is ld it makes a PLAMLIB
8787 ## CC just makes a GrossModule.
8788 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8789 reload_cmds
='$CC -r -o $output$reload_objs'
8793 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8794 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
8797 runpath_var
='LD_RUN_PATH'
8798 hardcode_shlibpath_var
=no
8802 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8803 hardcode_shlibpath_var
=no
8804 export_dynamic_flag_spec
='-Bexport'
8808 if test -d /usr
/nec
; then
8809 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8810 hardcode_shlibpath_var
=no
8811 runpath_var
=LD_RUN_PATH
8812 hardcode_runpath_var
=yes
8817 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
8818 no_undefined_flag
='${wl}-z,text'
8819 archive_cmds_need_lc
=no
8820 hardcode_shlibpath_var
=no
8821 runpath_var
='LD_RUN_PATH'
8823 if test "$GCC" = yes; then
8824 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8825 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8827 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8828 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8832 sysv5
* | sco3.2v5
* | sco5v6
*)
8833 # Note: We can NOT use -z defs as we might desire, because we do not
8834 # link with -lc, and that would cause any symbols used from libc to
8835 # always be unresolved, which means just about no library would
8836 # ever link correctly. If we're not using GNU ld we use -z text
8837 # though, which does catch some bad symbols but isn't as heavy-handed
8839 no_undefined_flag
='${wl}-z,text'
8840 allow_undefined_flag
='${wl}-z,nodefs'
8841 archive_cmds_need_lc
=no
8842 hardcode_shlibpath_var
=no
8843 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8844 hardcode_libdir_separator
=':'
8845 link_all_deplibs
=yes
8846 export_dynamic_flag_spec
='${wl}-Bexport'
8847 runpath_var
='LD_RUN_PATH'
8849 if test "$GCC" = yes; then
8850 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8851 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8853 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8854 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8859 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8860 hardcode_libdir_flag_spec
='-L$libdir'
8861 hardcode_shlibpath_var
=no
8870 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8871 echo "${ECHO_T}$ld_shlibs" >&6; }
8872 test "$ld_shlibs" = no
&& can_build_shared
=no
8875 # Do we need to explicitly link libc?
8877 case "x$archive_cmds_need_lc" in
8879 # Assume -lc should be added
8880 archive_cmds_need_lc
=yes
8882 if test "$enable_shared" = yes && test "$GCC" = yes; then
8883 case $archive_cmds in
8885 # FIXME: we may have to deal with multi-command sequences.
8888 # Test whether the compiler implicitly links with -lc since on some
8889 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8890 # to ld, don't add -lc before -lgcc.
8891 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8892 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8894 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
8896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8897 (eval $ac_compile) 2>&5
8899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8900 (exit $ac_status); } 2>conftest.err
; then
8903 libobjs
=conftest.
$ac_objext
8905 wl
=$lt_prog_compiler_wl
8906 pic_flag
=$lt_prog_compiler_pic
8912 lt_save_allow_undefined_flag
=$allow_undefined_flag
8913 allow_undefined_flag
=
8914 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8915 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }
8920 archive_cmds_need_lc
=no
8922 archive_cmds_need_lc
=yes
8924 allow_undefined_flag
=$lt_save_allow_undefined_flag
8926 cat conftest.err
1>&5
8929 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8930 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
8937 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8938 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8940 libname_spec
='lib$name'
8948 shlibpath_overrides_runpath
=unknown
8950 dynamic_linker
="$host_os ld.so"
8951 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8953 if test "$GCC" = yes; then
8955 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
8956 *) lt_awk_arg
="/^libraries:/" ;;
8958 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8959 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
8960 # if the path contains ";" then we assume it to be the separator
8961 # otherwise default to the standard path separator (i.e. ":") - it is
8962 # assumed that no part of a normal pathname contains ";" but that should
8963 # okay in the real world where ";" in dirpaths is itself problematic.
8964 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8966 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8968 # Ok, now we have the path, separated by spaces, we can step through it
8969 # and add multilib dir if necessary.
8970 lt_tmp_lt_search_path_spec
=
8971 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8972 for lt_sys_path
in $lt_search_path_spec; do
8973 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8974 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8976 test -d "$lt_sys_path" && \
8977 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
8980 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
8981 BEGIN {RS=" "; FS="/|\n";} {
8984 for (lt_i = NF; lt_i > 0; lt_i--) {
8985 if ($lt_i != "" && $lt_i != ".") {
8986 if ($lt_i == "..") {
8989 if (lt_count == 0) {
8990 lt_foo="/" $lt_i lt_foo;
8997 if (lt_foo != "") { lt_freq[lt_foo]++; }
8998 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9000 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
9002 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
9004 need_lib_prefix
=unknown
9005 hardcode_into_libs
=no
9007 # when you set need_version to no, make sure it does not cause -set_version
9008 # flags to be left without arguments
9009 need_version
=unknown
9014 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
9015 shlibpath_var
=LIBPATH
9017 # AIX 3 has no versioning support, so we append a major version to the name.
9018 soname_spec
='${libname}${release}${shared_ext}$major'
9025 hardcode_into_libs
=yes
9026 if test "$host_cpu" = ia64
; then
9027 # AIX 5 supports IA64
9028 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9029 shlibpath_var
=LD_LIBRARY_PATH
9031 # With GCC up to 2.95.x, collect2 would create an import file
9032 # for dependence libraries. The import file would start with
9033 # the line `#! .'. This would cause the generated library to
9034 # depend on `.', always an invalid library. This was fixed in
9035 # development snapshots of GCC prior to 3.0.
9037 aix4 | aix4.
[01] | aix4.
[01].
*)
9038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9040 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9048 # soname into executable. Probably we can add versioning support to
9049 # collect2, so additional links can be useful in future.
9050 if test "$aix_use_runtimelinking" = yes; then
9051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9052 # instead of lib<name>.a to let people know that these are not
9053 # typical AIX shared libraries.
9054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9056 # We preserve .a as extension for shared libraries through AIX4.2
9057 # and later when we are not doing run time linking.
9058 library_names_spec
='${libname}${release}.a $libname.a'
9059 soname_spec
='${libname}${release}${shared_ext}$major'
9061 shlibpath_var
=LIBPATH
9066 library_names_spec
='$libname.ixlibrary $libname.a'
9067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9068 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
9072 library_names_spec
='${libname}${shared_ext}'
9073 dynamic_linker
="$host_os ld.so"
9074 shlibpath_var
=LIBRARY_PATH
9080 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9081 soname_spec
='${libname}${release}${shared_ext}$major'
9082 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9083 shlibpath_var
=LD_LIBRARY_PATH
9084 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9085 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9086 # the default ld.so.conf also contains /usr/contrib/lib and
9087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9088 # libtool to hard-code these into programs
9091 cygwin
* | mingw
* | pw32
*)
9092 version_type
=windows
9097 case $GCC,$host_os in
9098 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9099 library_names_spec
='$libname.dll.a'
9100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9101 postinstall_cmds
='base_file=`basename \${file}`~
9102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9103 dldir=$destdir/`dirname \$dlpath`~
9104 test -d \$dldir || mkdir -p \$dldir~
9105 $install_prog $dir/$dlname \$dldir/$dlname~
9106 chmod a+x \$dldir/$dlname'
9107 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9108 dlpath=$dir/\$dldll~
9110 shlibpath_overrides_runpath
=yes
9114 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9115 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9116 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9119 # MinGW DLLs use traditional 'lib' prefix
9120 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9121 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9122 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9123 # It is most probably a Windows format PATH printed by
9124 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9125 # path with ; separators, and with drive letters. We can handle the
9126 # drive letters (cygwin fileutils understands them), so leave them,
9127 # especially as we might pass files found there to a mingw objdump,
9128 # which wouldn't understand a cygwinified path. Ahh.
9129 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9131 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9135 # pw32 DLLs use 'pw' prefix rather than 'lib'
9136 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9142 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9145 dynamic_linker
='Win32 ld.exe'
9146 # FIXME: first we should search . and the directory the executable is in
9150 darwin
* | rhapsody
*)
9151 dynamic_linker
="$host_os dyld"
9155 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9156 soname_spec
='${libname}${release}${major}$shared_ext'
9157 shlibpath_overrides_runpath
=yes
9158 shlibpath_var
=DYLD_LIBRARY_PATH
9159 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
9161 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
9162 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9169 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9170 soname_spec
='${libname}${release}${shared_ext}$major'
9171 shlibpath_var
=LD_LIBRARY_PATH
9178 freebsd
* | dragonfly
*)
9179 # DragonFly does not have aout. When/if they implement a new
9180 # versioning mechanism, adjust this.
9181 if test -x /usr
/bin
/objformat
; then
9182 objformat
=`/usr/bin/objformat`
9185 freebsd
[123]*) objformat
=aout
;;
9189 version_type
=freebsd-
$objformat
9190 case $version_type in
9192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9197 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9201 shlibpath_var
=LD_LIBRARY_PATH
9204 shlibpath_overrides_runpath
=yes
9206 freebsd3.
[01]* | freebsdelf3.
[01]*)
9207 shlibpath_overrides_runpath
=yes
9208 hardcode_into_libs
=yes
9210 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9211 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9212 shlibpath_overrides_runpath
=no
9213 hardcode_into_libs
=yes
9215 *) # from 4.6 on, and DragonFly
9216 shlibpath_overrides_runpath
=yes
9217 hardcode_into_libs
=yes
9226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9227 soname_spec
='${libname}${release}${shared_ext}$major'
9228 shlibpath_var
=LD_LIBRARY_PATH
9229 hardcode_into_libs
=yes
9232 hpux9
* | hpux10
* | hpux11
*)
9233 # Give a soname corresponding to the major version so that dld.sl refuses to
9234 # link against other versions.
9241 hardcode_into_libs
=yes
9242 dynamic_linker
="$host_os dld.so"
9243 shlibpath_var
=LD_LIBRARY_PATH
9244 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9245 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9246 soname_spec
='${libname}${release}${shared_ext}$major'
9247 if test "X$HPUX_IA64_MODE" = X32
; then
9248 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9250 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9252 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9256 hardcode_into_libs
=yes
9257 dynamic_linker
="$host_os dld.sl"
9258 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9259 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9260 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9261 soname_spec
='${libname}${release}${shared_ext}$major'
9262 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9263 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9267 dynamic_linker
="$host_os dld.sl"
9268 shlibpath_var
=SHLIB_PATH
9269 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9271 soname_spec
='${libname}${release}${shared_ext}$major'
9274 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9275 postinstall_cmds
='chmod 555 $lib'
9282 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9283 soname_spec
='${libname}${release}${shared_ext}$major'
9284 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9285 shlibpath_var
=LD_LIBRARY_PATH
9286 shlibpath_overrides_runpath
=no
9287 hardcode_into_libs
=yes
9290 irix5
* | irix6
* | nonstopux
*)
9292 nonstopux
*) version_type
=nonstopux
;;
9294 if test "$lt_cv_prog_gnu_ld" = yes; then
9302 soname_spec
='${libname}${release}${shared_ext}$major'
9303 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9305 irix5
* | nonstopux
*)
9309 case $LD in # libtool.m4 will add one of these switches to LD
9310 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9311 libsuff
= shlibsuff
= libmagic
=32-bit;;
9312 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9313 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9314 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9315 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9316 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9320 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9321 shlibpath_overrides_runpath
=no
9322 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9323 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9324 hardcode_into_libs
=yes
9327 # No shared lib support for Linux oldld, aout, or coff.
9328 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9332 # This must be Linux ELF.
9333 linux
* | k
*bsd
*-gnu)
9337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9338 soname_spec
='${libname}${release}${shared_ext}$major'
9339 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9340 shlibpath_var
=LD_LIBRARY_PATH
9341 shlibpath_overrides_runpath
=no
9342 # This implies no fast_install, which is unacceptable.
9343 # Some rework will be needed to allow for fast_install
9344 # before this can be enabled.
9345 hardcode_into_libs
=yes
9346 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9347 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9349 # Append ld.so.conf contents to the search path
9350 if test -f /etc
/ld.so.conf
; then
9351 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;/^$/d' | tr '\n' ' '`
9352 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
9355 # We used to test for /lib/ld.so.1 and disable shared libraries on
9356 # powerpc, because MkLinux only supported shared libraries with the
9357 # GNU dynamic linker. Since this was broken with cross compilers,
9358 # most powerpc-linux boxes support dynamic linking these days and
9359 # people can always --disable-shared, the test was removed, and we
9360 # assume the GNU/Linux dynamic linker is in use.
9361 dynamic_linker
='GNU/Linux ld.so'
9368 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9370 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9371 dynamic_linker
='NetBSD (a.out) ld.so'
9373 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9374 soname_spec
='${libname}${release}${shared_ext}$major'
9375 dynamic_linker
='NetBSD ld.elf_so'
9377 shlibpath_var
=LD_LIBRARY_PATH
9378 shlibpath_overrides_runpath
=yes
9379 hardcode_into_libs
=yes
9384 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9385 shlibpath_var
=LD_LIBRARY_PATH
9386 shlibpath_overrides_runpath
=yes
9393 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec
='${libname}${release}${shared_ext}$major'
9395 shlibpath_var
=LD_LIBRARY_PATH
9396 shlibpath_overrides_runpath
=yes
9401 sys_lib_dlsearch_path_spec
="/usr/lib"
9403 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9405 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9406 *) need_version
=no
;;
9408 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9409 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9410 shlibpath_var
=LD_LIBRARY_PATH
9411 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9413 openbsd2.
[89] | openbsd2.
[89].
*)
9414 shlibpath_overrides_runpath
=no
9417 shlibpath_overrides_runpath
=yes
9421 shlibpath_overrides_runpath
=yes
9426 libname_spec
='$name'
9429 library_names_spec
='$libname${shared_ext} $libname.a'
9430 dynamic_linker
='OS/2 ld.exe'
9431 shlibpath_var
=LIBPATH
9434 osf3
* | osf4
* | osf5
*)
9438 soname_spec
='${libname}${release}${shared_ext}$major'
9439 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9440 shlibpath_var
=LD_LIBRARY_PATH
9441 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9442 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9453 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 soname_spec
='${libname}${release}${shared_ext}$major'
9455 shlibpath_var
=LD_LIBRARY_PATH
9456 shlibpath_overrides_runpath
=yes
9457 hardcode_into_libs
=yes
9458 # ldd complains unless libraries are executable
9459 postinstall_cmds
='chmod +x $lib'
9464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9465 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9466 shlibpath_var
=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath
=yes
9468 if test "$with_gnu_ld" = yes; then
9476 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 soname_spec
='${libname}${release}${shared_ext}$major'
9478 shlibpath_var
=LD_LIBRARY_PATH
9479 case $host_vendor in
9481 shlibpath_overrides_runpath
=no
9483 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9484 runpath_var
=LD_RUN_PATH
9492 shlibpath_overrides_runpath
=no
9493 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9499 if test -d /usr
/nec
;then
9501 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9502 soname_spec
='$libname${shared_ext}.$major'
9503 shlibpath_var
=LD_LIBRARY_PATH
9507 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9508 version_type
=freebsd-elf
9511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9512 soname_spec
='${libname}${release}${shared_ext}$major'
9513 shlibpath_var
=LD_LIBRARY_PATH
9514 hardcode_into_libs
=yes
9515 if test "$with_gnu_ld" = yes; then
9516 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9517 shlibpath_overrides_runpath
=no
9519 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9520 shlibpath_overrides_runpath
=yes
9523 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9527 sys_lib_dlsearch_path_spec
='/usr/lib'
9532 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 soname_spec
='${libname}${release}${shared_ext}$major'
9534 shlibpath_var
=LD_LIBRARY_PATH
9541 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9542 echo "${ECHO_T}$dynamic_linker" >&6; }
9543 test "$dynamic_linker" = no
&& can_build_shared
=no
9545 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9546 if test "$GCC" = yes; then
9547 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9550 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9551 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9553 if test -n "$hardcode_libdir_flag_spec" || \
9554 test -n "$runpath_var" || \
9555 test "X$hardcode_automatic" = "Xyes" ; then
9557 # We can hardcode non-existant directories.
9558 if test "$hardcode_direct" != no
&&
9559 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9560 # have to relink, otherwise we might link with an installed library
9561 # when we should be linking with a yet-to-be-installed one
9562 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9563 test "$hardcode_minus_L" != no
; then
9564 # Linking always hardcodes the temporary library directory.
9565 hardcode_action
=relink
9567 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9568 hardcode_action
=immediate
9571 # We cannot hardcode anything, or else we can only hardcode existing
9573 hardcode_action
=unsupported
9575 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9576 echo "${ECHO_T}$hardcode_action" >&6; }
9578 if test "$hardcode_action" = relink
; then
9579 # Fast installation is not supported
9580 enable_fast_install
=no
9581 elif test "$shlibpath_overrides_runpath" = yes ||
9582 test "$enable_shared" = no
; then
9583 # Fast installation is not necessary
9584 enable_fast_install
=needless
9589 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9590 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9591 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
9592 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
9593 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
9594 { echo "$as_me:$LINENO: result: yes" >&5
9595 echo "${ECHO_T}yes" >&6; }
9597 # FIXME - insert some real tests, host_os isn't really good enough
9600 if test -n "$STRIP" ; then
9601 striplib
="$STRIP -x"
9602 old_striplib
="$STRIP -S"
9603 { echo "$as_me:$LINENO: result: yes" >&5
9604 echo "${ECHO_T}yes" >&6; }
9606 { echo "$as_me:$LINENO: result: no" >&5
9607 echo "${ECHO_T}no" >&6; }
9611 { echo "$as_me:$LINENO: result: no" >&5
9612 echo "${ECHO_T}no" >&6; }
9617 if test "x$enable_dlopen" != xyes
; then
9618 enable_dlopen
=unknown
9619 enable_dlopen_self
=unknown
9620 enable_dlopen_self_static
=unknown
9627 lt_cv_dlopen
="load_add_on"
9629 lt_cv_dlopen_self
=yes
9633 lt_cv_dlopen
="LoadLibrary"
9638 lt_cv_dlopen
="dlopen"
9643 # if libdl is installed we need to link against it
9644 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9645 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9646 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_check_lib_save_LIBS
=$LIBS
9651 cat >conftest.
$ac_ext <<_ACEOF
9654 cat confdefs.h
>>conftest.
$ac_ext
9655 cat >>conftest.
$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9658 /* Override any GCC internal prototype to avoid an error.
9659 Use char because int might match the return type of a GCC
9660 builtin and then its argument prototype would still apply. */
9673 rm -f conftest.
$ac_objext conftest
$ac_exeext
9674 if { (ac_try
="$ac_link"
9676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9677 *) ac_try_echo=$ac_try;;
9679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9680 (eval "$ac_link") 2>conftest.er1
9682 grep -v '^ *+' conftest.er1 >conftest.err
9684 cat conftest.err >&5
9685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9686 (exit $ac_status); } && {
9687 test -z "$ac_c_werror_flag" ||
9688 test ! -s conftest.err
9689 } && test -s conftest$ac_exeext &&
9690 $as_test_x conftest$ac_exeext; then
9691 ac_cv_lib_dl_dlopen=yes
9693 echo "$as_me: failed program was:" >&5
9694 sed 's/^/| /' conftest.$ac_ext >&5
9696 ac_cv_lib_dl_dlopen=no
9699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9700 conftest$ac_exeext conftest.$ac_ext
9701 LIBS=$ac_check_lib_save_LIBS
9703 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9704 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9705 if test $ac_cv_lib_dl_dlopen = yes; then
9706 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9711 lt_cv_dlopen_self=yes
9718 { echo "$as_me:$LINENO: checking for shl_load" >&5
9719 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9720 if test "${ac_cv_func_shl_load+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9723 cat >conftest.$ac_ext <<_ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9731 #define shl_load innocuous_shl_load
9733 /* System header to define __stub macros and hopefully few prototypes,
9734 which can conflict with char shl_load (); below.
9735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9736 <limits.h> exists even on freestanding compilers. */
9739 # include <limits.h>
9741 # include <assert.h>
9746 /* Override any GCC internal prototype to avoid an error.
9747 Use char because int might match the return type of a GCC
9748 builtin and then its argument prototype would still apply. */
9753 /* The GNU C library defines this for functions which it implements
9754 to always fail with ENOSYS. Some functions are actually named
9755 something starting with __ and the normal name is an alias. */
9756 #if defined __stub_shl_load || defined __stub___shl_load
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9772 *) ac_try_echo
=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1
>conftest.err
9779 cat conftest.err
>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest
$ac_exeext &&
9785 $as_test_x conftest
$ac_exeext; then
9786 ac_cv_func_shl_load
=yes
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.
$ac_ext >&5
9791 ac_cv_func_shl_load
=no
9794 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9795 conftest
$ac_exeext conftest.
$ac_ext
9797 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9798 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9799 if test $ac_cv_func_shl_load = yes; then
9800 lt_cv_dlopen
="shl_load"
9802 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9803 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9804 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9805 echo $ECHO_N "(cached) $ECHO_C" >&6
9807 ac_check_lib_save_LIBS
=$LIBS
9809 cat >conftest.
$ac_ext <<_ACEOF
9812 cat confdefs.h
>>conftest.
$ac_ext
9813 cat >>conftest.
$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9816 /* Override any GCC internal prototype to avoid an error.
9817 Use char because int might match the return type of a GCC
9818 builtin and then its argument prototype would still apply. */
9831 rm -f conftest.
$ac_objext conftest
$ac_exeext
9832 if { (ac_try
="$ac_link"
9834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9835 *) ac_try_echo=$ac_try;;
9837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9838 (eval "$ac_link") 2>conftest.er1
9840 grep -v '^ *+' conftest.er1 >conftest.err
9842 cat conftest.err >&5
9843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9844 (exit $ac_status); } && {
9845 test -z "$ac_c_werror_flag" ||
9846 test ! -s conftest.err
9847 } && test -s conftest$ac_exeext &&
9848 $as_test_x conftest$ac_exeext; then
9849 ac_cv_lib_dld_shl_load=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.$ac_ext >&5
9854 ac_cv_lib_dld_shl_load=no
9857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9858 conftest$ac_exeext conftest.$ac_ext
9859 LIBS=$ac_check_lib_save_LIBS
9861 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9862 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9863 if test $ac_cv_lib_dld_shl_load = yes; then
9864 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9866 { echo "$as_me:$LINENO: checking for dlopen" >&5
9867 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9868 if test "${ac_cv_func_dlopen+set}" = set; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 cat >conftest.$ac_ext <<_ACEOF
9874 cat confdefs.h >>conftest.$ac_ext
9875 cat >>conftest.$ac_ext <<_ACEOF
9876 /* end confdefs.h. */
9877 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9878 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9879 #define dlopen innocuous_dlopen
9881 /* System header to define __stub macros and hopefully few prototypes,
9882 which can conflict with char dlopen (); below.
9883 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9884 <limits.h> exists even on freestanding compilers. */
9887 # include <limits.h>
9889 # include <assert.h>
9894 /* Override any GCC internal prototype to avoid an error.
9895 Use char because int might match the return type of a GCC
9896 builtin and then its argument prototype would still apply. */
9901 /* The GNU C library defines this for functions which it implements
9902 to always fail with ENOSYS. Some functions are actually named
9903 something starting with __ and the normal name is an alias. */
9904 #if defined __stub_dlopen || defined __stub___dlopen
9916 rm -f conftest.$ac_objext conftest$ac_exeext
9917 if { (ac_try="$ac_link"
9919 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9920 *) ac_try_echo
=$ac_try;;
9922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9923 (eval "$ac_link") 2>conftest.er1
9925 grep -v '^ *+' conftest.er1
>conftest.err
9927 cat conftest.err
>&5
9928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9929 (exit $ac_status); } && {
9930 test -z "$ac_c_werror_flag" ||
9931 test ! -s conftest.err
9932 } && test -s conftest
$ac_exeext &&
9933 $as_test_x conftest
$ac_exeext; then
9934 ac_cv_func_dlopen
=yes
9936 echo "$as_me: failed program was:" >&5
9937 sed 's/^/| /' conftest.
$ac_ext >&5
9939 ac_cv_func_dlopen
=no
9942 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9943 conftest
$ac_exeext conftest.
$ac_ext
9945 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9946 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
9947 if test $ac_cv_func_dlopen = yes; then
9948 lt_cv_dlopen
="dlopen"
9950 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9951 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9952 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9953 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 ac_check_lib_save_LIBS
=$LIBS
9957 cat >conftest.
$ac_ext <<_ACEOF
9960 cat confdefs.h
>>conftest.
$ac_ext
9961 cat >>conftest.
$ac_ext <<_ACEOF
9962 /* end confdefs.h. */
9964 /* Override any GCC internal prototype to avoid an error.
9965 Use char because int might match the return type of a GCC
9966 builtin and then its argument prototype would still apply. */
9979 rm -f conftest.
$ac_objext conftest
$ac_exeext
9980 if { (ac_try
="$ac_link"
9982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9983 *) ac_try_echo=$ac_try;;
9985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9986 (eval "$ac_link") 2>conftest.er1
9988 grep -v '^ *+' conftest.er1 >conftest.err
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } && {
9993 test -z "$ac_c_werror_flag" ||
9994 test ! -s conftest.err
9995 } && test -s conftest$ac_exeext &&
9996 $as_test_x conftest$ac_exeext; then
9997 ac_cv_lib_dl_dlopen=yes
9999 echo "$as_me: failed program was:" >&5
10000 sed 's/^/| /' conftest.$ac_ext >&5
10002 ac_cv_lib_dl_dlopen=no
10005 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10006 conftest$ac_exeext conftest.$ac_ext
10007 LIBS=$ac_check_lib_save_LIBS
10009 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10010 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10011 if test $ac_cv_lib_dl_dlopen = yes; then
10012 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10014 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10015 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10016 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 ac_check_lib_save_LIBS=$LIBS
10020 LIBS="-lsvld $LIBS"
10021 cat >conftest.$ac_ext <<_ACEOF
10024 cat confdefs.h >>conftest.$ac_ext
10025 cat >>conftest.$ac_ext <<_ACEOF
10026 /* end confdefs.h. */
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10043 rm -f conftest.$ac_objext conftest$ac_exeext
10044 if { (ac_try="$ac_link"
10045 case "(($ac_try" in
10046 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10047 *) ac_try_echo
=$ac_try;;
10049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_link") 2>conftest.er1
10052 grep -v '^ *+' conftest.er1
>conftest.err
10054 cat conftest.err
>&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_c_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest
$ac_exeext &&
10060 $as_test_x conftest
$ac_exeext; then
10061 ac_cv_lib_svld_dlopen
=yes
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.
$ac_ext >&5
10066 ac_cv_lib_svld_dlopen
=no
10069 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10070 conftest
$ac_exeext conftest.
$ac_ext
10071 LIBS
=$ac_check_lib_save_LIBS
10073 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10074 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10075 if test $ac_cv_lib_svld_dlopen = yes; then
10076 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
10078 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10079 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10080 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10081 echo $ECHO_N "(cached) $ECHO_C" >&6
10083 ac_check_lib_save_LIBS
=$LIBS
10085 cat >conftest.
$ac_ext <<_ACEOF
10088 cat confdefs.h
>>conftest.
$ac_ext
10089 cat >>conftest.
$ac_ext <<_ACEOF
10090 /* end confdefs.h. */
10092 /* Override any GCC internal prototype to avoid an error.
10093 Use char because int might match the return type of a GCC
10094 builtin and then its argument prototype would still apply. */
10102 return dld_link ();
10107 rm -f conftest.
$ac_objext conftest
$ac_exeext
10108 if { (ac_try
="$ac_link"
10109 case "(($ac_try" in
10110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
10116 grep -v '^ *+' conftest.er1 >conftest.err
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext &&
10124 $as_test_x conftest$ac_exeext; then
10125 ac_cv_lib_dld_dld_link=yes
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10130 ac_cv_lib_dld_dld_link=no
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10137 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10138 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10139 if test $ac_cv_lib_dld_dld_link = yes; then
10140 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10161 if test "x$lt_cv_dlopen" != xno; then
10167 case $lt_cv_dlopen in
10169 save_CPPFLAGS="$CPPFLAGS"
10170 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10172 save_LDFLAGS="$LDFLAGS"
10173 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10176 LIBS="$lt_cv_dlopen_libs $LIBS"
10178 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10179 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10180 if test "${lt_cv_dlopen_self+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 if test "$cross_compiling" = yes; then :
10184 lt_cv_dlopen_self=cross
10186 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10187 lt_status=$lt_dlunknown
10188 cat > conftest.$ac_ext <<EOF
10189 #line 10189 "configure"
10190 #include "confdefs.h"
10199 # define LT_DLGLOBAL RTLD_GLOBAL
10202 # define LT_DLGLOBAL DL_GLOBAL
10204 # define LT_DLGLOBAL 0
10208 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10209 find out it does not work in some platform. */
10210 #ifndef LT_DLLAZY_OR_NOW
10212 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10215 # define LT_DLLAZY_OR_NOW DL_LAZY
10218 # define LT_DLLAZY_OR_NOW RTLD_NOW
10221 # define LT_DLLAZY_OR_NOW DL_NOW
10223 # define LT_DLLAZY_OR_NOW 0
10231 extern "C" void exit (int);
10234 void fnord() { int i=42;}
10237 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10238 int status = $lt_dlunknown;
10242 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10243 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10244 /* dlclose (self); */
10252 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10253 (eval $ac_link) 2>&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10257 (./conftest; exit; ) >&5 2>/dev/null
10259 case x$lt_status in
10260 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10261 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10262 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10265 # compilation failed
10266 lt_cv_dlopen_self=no
10273 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10274 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10276 if test "x$lt_cv_dlopen_self" = xyes; then
10277 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10278 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10279 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10280 if test "${lt_cv_dlopen_self_static+set}" = set; then
10281 echo $ECHO_N "(cached) $ECHO_C" >&6
10283 if test "$cross_compiling" = yes; then :
10284 lt_cv_dlopen_self_static=cross
10286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10287 lt_status=$lt_dlunknown
10288 cat > conftest.$ac_ext <<EOF
10289 #line 10289 "configure"
10290 #include "confdefs.h"
10299 # define LT_DLGLOBAL RTLD_GLOBAL
10302 # define LT_DLGLOBAL DL_GLOBAL
10304 # define LT_DLGLOBAL 0
10308 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10309 find out it does not work in some platform. */
10310 #ifndef LT_DLLAZY_OR_NOW
10312 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10315 # define LT_DLLAZY_OR_NOW DL_LAZY
10318 # define LT_DLLAZY_OR_NOW RTLD_NOW
10321 # define LT_DLLAZY_OR_NOW DL_NOW
10323 # define LT_DLLAZY_OR_NOW 0
10331 extern "C" void exit (int);
10334 void fnord() { int i=42;}
10337 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10338 int status = $lt_dlunknown;
10342 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10343 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10344 /* dlclose (self); */
10352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10353 (eval $ac_link) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10357 (./conftest; exit; ) >&5 2>/dev/null
10359 case x$lt_status in
10360 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10361 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10362 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10365 # compilation failed
10366 lt_cv_dlopen_self_static=no
10373 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10374 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10377 CPPFLAGS="$save_CPPFLAGS"
10378 LDFLAGS="$save_LDFLAGS"
10383 case $lt_cv_dlopen_self in
10384 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10385 *) enable_dlopen_self=unknown ;;
10388 case $lt_cv_dlopen_self_static in
10389 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10390 *) enable_dlopen_self_static=unknown ;;
10395 # Report which library types will actually be built
10396 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10397 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10398 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10399 echo "${ECHO_T}$can_build_shared" >&6; }
10401 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10402 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10403 test "$can_build_shared" = "no" && enable_shared=no
10405 # On AIX, shared libraries and static libraries use the same namespace, and
10406 # are all built from PIC.
10409 test "$enable_shared" = yes && enable_static=no
10410 if test -n "$RANLIB"; then
10411 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10412 postinstall_cmds='$RANLIB $lib'
10417 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10418 test "$enable_shared" = yes && enable_static=no
10422 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10423 echo "${ECHO_T}$enable_shared" >&6; }
10425 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10426 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10427 # Make sure either enable_shared or enable_static is yes.
10428 test "$enable_shared" = yes || enable_static=yes
10429 { echo "$as_me:$LINENO: result: $enable_static" >&5
10430 echo "${ECHO_T}$enable_static" >&6; }
10432 # The else clause should only fire when bootstrapping the
10433 # libtool distribution, otherwise you forgot to ship ltmain.sh
10434 # with your package, and you will get complaints that there are
10435 # no rules to generate ltmain.sh.
10436 if test -f "$ltmain"; then
10437 # See if we are running on zsh, and set the options which allow our commands through
10438 # without removal of \ escapes.
10439 if test -n "${ZSH_VERSION+set}" ; then
10440 setopt NO_GLOB_SUBST
10442 # Now quote all the things that may contain metacharacters while being
10443 # careful not to overquote the AC_SUBSTed values. We take copies of the
10444 # variables and quote the copies for generation of the libtool script.
10445 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10447 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10448 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10449 deplibs_check_method reload_flag reload_cmds need_locks \
10450 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10451 lt_cv_sys_global_symbol_to_c_name_address \
10452 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10453 old_postinstall_cmds old_postuninstall_cmds \
10457 lt_prog_compiler_wl \
10458 lt_prog_compiler_pic \
10459 lt_prog_compiler_static \
10460 lt_prog_compiler_no_builtin_flag \
10461 export_dynamic_flag_spec \
10462 thread_safe_flag_spec \
10463 whole_archive_flag_spec \
10464 enable_shared_with_static_runtimes \
10466 old_archive_from_new_cmds \
10471 compiler_lib_search_path \
10473 archive_expsym_cmds \
10475 postuninstall_cmds \
10476 old_archive_from_expsyms_cmds \
10477 allow_undefined_flag \
10478 no_undefined_flag \
10479 export_symbols_cmds \
10480 hardcode_libdir_flag_spec \
10481 hardcode_libdir_flag_spec_ld \
10482 hardcode_libdir_separator \
10483 hardcode_automatic \
10485 module_expsym_cmds \
10486 lt_cv_prog_compiler_c_o \
10489 include_expsyms; do
10492 old_archive_cmds | \
10493 old_archive_from_new_cmds | \
10495 archive_expsym_cmds | \
10497 module_expsym_cmds | \
10498 old_archive_from_expsyms_cmds | \
10499 export_symbols_cmds | \
10500 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10501 postinstall_cmds | postuninstall_cmds | \
10502 old_postinstall_cmds | old_postuninstall_cmds | \
10503 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10504 # Double-quote double-evaled strings.
10505 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$double_quote_subst\" -e \"\
$sed_quote_subst\" -e \"\
$delay_variable_subst\"\
`\\\""
10508 eval "lt_$var=\\\"\`\
$echo \"X\$
$var\" | \
$Xsed -e \"\
$sed_quote_subst\"\
`\\\""
10514 *'\$0 --fallback-echo"')
10515 lt_echo=`$echo "X$lt_echo" |
$Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10519 cfgfile="${ofile}T"
10520 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10522 { echo "$as_me:$LINENO: creating $ofile" >&5
10523 echo "$as_me: creating $ofile" >&6;}
10525 cat <<__EOF__ >> "$cfgfile"
10528 # `$echo "$cfgfile" |
sed 's%^.*/%%'` - Provide generalized library-building support services.
10529 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10530 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10532 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
10533 # Free Software Foundation, Inc.
10535 # This file is part of GNU Libtool:
10536 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10538 # This program is free software; you can redistribute it and/or modify
10539 # it under the terms of the GNU General Public License as published by
10540 # the Free Software Foundation; either version 2 of the License, or
10541 # (at your option) any later version.
10543 # This program is distributed in the hope that it will be useful, but
10544 # WITHOUT ANY WARRANTY; without even the implied warranty of
10545 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10546 # General Public License for more details.
10548 # You should have received a copy of the GNU General Public License
10549 # along with this program; if not, write to the Free Software
10550 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10552 # As a special exception to the GNU General Public License, if you
10553 # distribute this file as part of a program that contains a
10554 # configuration script generated by Autoconf, you may include it under
10555 # the same distribution terms that you use for the rest of that program.
10557 # A sed program that does not truncate output.
10560 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10561 Xsed="$SED -e 1s/^X//"
10563 # The HP-UX ksh and POSIX shell print the target directory to stdout
10564 # if CDPATH is set.
10565 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10567 # The names of the tagged configurations supported by this script.
10570 # ### BEGIN LIBTOOL CONFIG
10572 # Libtool was configured on host `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`:
10574 # Shell to use when invoking shell scripts.
10577 # Whether or not to build shared libraries.
10578 build_libtool_libs=$enable_shared
10580 # Whether or not to build static libraries.
10581 build_old_libs=$enable_static
10583 # Whether or not to add -lc for building shared libraries.
10584 build_libtool_need_lc=$archive_cmds_need_lc
10586 # Whether or not to disallow shared libs when runtime libs are static
10587 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10589 # Whether or not to optimize for fast installation.
10590 fast_install=$enable_fast_install
10593 host_alias=$host_alias
10597 # The build system.
10598 build_alias=$build_alias
10602 # An echo program that does not interpret backslashes.
10607 AR_FLAGS=$lt_AR_FLAGS
10612 # LTCC compiler flags.
10613 LTCFLAGS=$lt_LTCFLAGS
10615 # A language-specific compiler.
10618 # Is the compiler the GNU C compiler?
10624 # The linker used to build libraries.
10627 # Whether we need hard or soft links.
10630 # A BSD-compatible nm program.
10633 # A symbol stripping program
10636 # Used to examine libraries when file_magic_cmd begins "file"
10637 MAGIC_CMD=$MAGIC_CMD
10639 # Used on cygwin: DLL creation program.
10642 # Used on cygwin: object dumper.
10645 # Used on cygwin: assembler.
10648 # The name of the directory that contains temporary libtool files.
10651 # How to create reloadable object files.
10652 reload_flag=$lt_reload_flag
10653 reload_cmds=$lt_reload_cmds
10655 # How to pass a linker flag through the compiler.
10656 wl=$lt_lt_prog_compiler_wl
10658 # Object file suffix (normally "o").
10659 objext="$ac_objext"
10661 # Old archive suffix (normally "a").
10664 # Shared library suffix (normally ".so").
10665 shrext_cmds='$shrext_cmds'
10667 # Executable file suffix (normally "").
10670 # Additional compiler flags for building library objects.
10671 pic_flag=$lt_lt_prog_compiler_pic
10674 # What is the maximum length of a command?
10675 max_cmd_len=$lt_cv_sys_max_cmd_len
10677 # Does compiler simultaneously support -c and -o options?
10678 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10680 # Must we lock files when doing compilation?
10681 need_locks=$lt_need_locks
10683 # Do we need the lib prefix for modules?
10684 need_lib_prefix=$need_lib_prefix
10686 # Do we need a version for libraries?
10687 need_version=$need_version
10689 # Whether dlopen is supported.
10690 dlopen_support=$enable_dlopen
10692 # Whether dlopen of programs is supported.
10693 dlopen_self=$enable_dlopen_self
10695 # Whether dlopen of statically linked programs is supported.
10696 dlopen_self_static=$enable_dlopen_self_static
10698 # Compiler flag to prevent dynamic linking.
10699 link_static_flag=$lt_lt_prog_compiler_static
10701 # Compiler flag to turn off builtin functions.
10702 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10704 # Compiler flag to allow reflexive dlopens.
10705 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10707 # Compiler flag to generate shared objects directly from archives.
10708 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10710 # Compiler flag to generate thread-safe objects.
10711 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10713 # Library versioning type.
10714 version_type=$version_type
10716 # Format of library name prefix.
10717 libname_spec=$lt_libname_spec
10719 # List of archive names. First name is the real one, the rest are links.
10720 # The last name is the one that the linker finds with -lNAME.
10721 library_names_spec=$lt_library_names_spec
10723 # The coded name of the library, if different from the real name.
10724 soname_spec=$lt_soname_spec
10726 # Commands used to build and install an old-style archive.
10728 old_archive_cmds=$lt_old_archive_cmds
10729 old_postinstall_cmds=$lt_old_postinstall_cmds
10730 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10732 # Create an old-style archive from a shared archive.
10733 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10735 # Create a temporary old-style archive to link instead of a shared archive.
10736 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10738 # Commands used to build and install a shared archive.
10739 archive_cmds=$lt_archive_cmds
10740 archive_expsym_cmds=$lt_archive_expsym_cmds
10741 postinstall_cmds=$lt_postinstall_cmds
10742 postuninstall_cmds=$lt_postuninstall_cmds
10744 # Commands used to build a loadable module (assumed same as above if empty)
10745 module_cmds=$lt_module_cmds
10746 module_expsym_cmds=$lt_module_expsym_cmds
10748 # Commands to strip libraries.
10749 old_striplib=$lt_old_striplib
10750 striplib=$lt_striplib
10752 # Dependencies to place before the objects being linked to create a
10754 predep_objects=$lt_predep_objects
10756 # Dependencies to place after the objects being linked to create a
10758 postdep_objects=$lt_postdep_objects
10760 # Dependencies to place before the objects being linked to create a
10762 predeps=$lt_predeps
10764 # Dependencies to place after the objects being linked to create a
10766 postdeps=$lt_postdeps
10768 # The library search path used internally by the compiler when linking
10769 # a shared library.
10770 compiler_lib_search_path=$lt_compiler_lib_search_path
10772 # Method to check whether dependent libraries are shared objects.
10773 deplibs_check_method=$lt_deplibs_check_method
10775 # Command to use when deplibs_check_method == file_magic.
10776 file_magic_cmd=$lt_file_magic_cmd
10778 # Flag that allows shared libraries with undefined symbols to be built.
10779 allow_undefined_flag=$lt_allow_undefined_flag
10781 # Flag that forces no undefined symbols.
10782 no_undefined_flag=$lt_no_undefined_flag
10784 # Commands used to finish a libtool library installation in a directory.
10785 finish_cmds=$lt_finish_cmds
10787 # Same as above, but a single script fragment to be evaled but not shown.
10788 finish_eval=$lt_finish_eval
10790 # Take the output of nm and produce a listing of raw symbols and C names.
10791 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10793 # Transform the output of nm in a proper C declaration
10794 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10796 # Transform the output of nm in a C name address pair
10797 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10799 # This is the shared library runtime path variable.
10800 runpath_var=$runpath_var
10802 # This is the shared library path variable.
10803 shlibpath_var=$shlibpath_var
10805 # Is shlibpath searched before the hard-coded library search path?
10806 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10808 # How to hardcode a shared library path into an executable.
10809 hardcode_action=$hardcode_action
10811 # Whether we should hardcode library paths into libraries.
10812 hardcode_into_libs=$hardcode_into_libs
10814 # Flag to hardcode \$libdir into a binary during linking.
10815 # This must work even if \$libdir does not exist.
10816 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10818 # If ld is used when linking, flag to hardcode \$libdir into
10819 # a binary during linking. This must work even if \$libdir does
10821 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10823 # Whether we need a single -rpath flag with a separated argument.
10824 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10826 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10827 # resulting binary.
10828 hardcode_direct=$hardcode_direct
10830 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10831 # resulting binary.
10832 hardcode_minus_L=$hardcode_minus_L
10834 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10835 # the resulting binary.
10836 hardcode_shlibpath_var=$hardcode_shlibpath_var
10838 # Set to yes if building a shared library automatically hardcodes DIR into the library
10839 # and all subsequent libraries and executables linked against it.
10840 hardcode_automatic=$hardcode_automatic
10842 # Variables whose values should be saved in libtool wrapper scripts and
10843 # restored at relink time.
10844 variables_saved_for_relink="$variables_saved_for_relink"
10846 # Whether libtool must link a program against all its dependency libraries.
10847 link_all_deplibs=$link_all_deplibs
10849 # Compile-time system search path for libraries
10850 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10852 # Run-time system search path for libraries
10853 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10855 # Fix the shell variable \$srcfile for the compiler.
10856 fix_srcfile_path=$lt_fix_srcfile_path
10858 # Set to yes if exported symbols are required.
10859 always_export_symbols=$always_export_symbols
10861 # The commands to list exported symbols.
10862 export_symbols_cmds=$lt_export_symbols_cmds
10864 # The commands to extract the exported symbol list from a shared archive.
10865 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10867 # Symbols that should not be listed in the preloaded symbols.
10868 exclude_expsyms=$lt_exclude_expsyms
10870 # Symbols that must always be exported.
10871 include_expsyms=$lt_include_expsyms
10873 # ### END LIBTOOL CONFIG
10880 cat <<\EOF >> "$cfgfile"
10882 # AIX sometimes has problems with the GCC collect2 program. For some
10883 # reason, if we set the COLLECT_NAMES environment variable, the problems
10884 # vanish in a puff of smoke.
10885 if test "X${COLLECT_NAMES+set}" != Xset; then
10887 export COLLECT_NAMES
10893 # We use sed instead of cat because bash on DJGPP gets confused if
10894 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10895 # text mode, it properly converts lines to CR/LF. This bash problem
10896 # is reportedly fixed, but why not run on old versions too?
10897 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10899 mv -f "$cfgfile" "$ofile" || \
10900 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10904 # If there is no Makefile yet, we rely on a make rule to execute
10905 # `config.status
--recheck' to rerun these tests and create the
10906 # libtool script then.
10907 ltmain_in=`echo $ltmain | sed -e 's
/\.sh$
/.in
/'`
10908 if test -f "$ltmain_in"; then
10909 test -f Makefile && make "$ltmain"
10915 ac_cpp='$CPP $CPPFLAGS'
10916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
10917 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
10918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10923 # Check whether --with-tags was given.
10924 if test "${with_tags+set}" = set; then
10925 withval=$with_tags; tagnames="$withval"
10929 if test -f "$ltmain" && test -n "$tagnames"; then
10930 if test ! -f "${ofile}"; then
10931 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist
" >&5
10932 echo "$as_me: WARNING
: output
file \
`$ofile' does not exist" >&2;}
10935 if test -z "$LTCC"; then
10936 eval "`$SHELL ${ofile} --config |
grep '^LTCC='`"
10937 if test -z "$LTCC"; then
10938 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10939 echo "$as_me: WARNING: output file \`$ofile' does not
look like a libtool
script" >&2;}
10941 { echo "$as_me:$LINENO: WARNING
: using \
`LTCC=$LTCC', extracted from \`$ofile'" >&5
10942 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \
`$ofile'" >&2;}
10945 if test -z "$LTCFLAGS"; then
10946 eval "`$SHELL ${ofile} --config |
grep '^LTCFLAGS='`"
10949 # Extract list of available tagged configurations in $ofile.
10950 # Note that this assumes the entire list is on one line.
10951 available_tags=`grep "^available_tags=" "${ofile}" |
$SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10953 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10954 for tagname in $tagnames; do
10956 # Check whether tagname contains only valid characters
10957 case `$echo "X$tagname" |
$Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10959 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10960 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10961 { (exit 1); exit 1; }; }
10965 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10967 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10968 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10969 { (exit 1); exit 1; }; }
10972 # Update the list of available tags.
10973 if test -n "$tagname"; then
10974 echo appending configuration tag \"$tagname\" to $ofile
10978 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10979 ( (test "X$CXX" = "Xg++" && `g
++ -v >/dev
/null
2>&1` ) ||
10980 (test "X$CXX" != "Xg++"))) ; then
10982 ac_cpp='$CXXCPP $CPPFLAGS'
10983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10990 archive_cmds_need_lc_CXX=no
10991 allow_undefined_flag_CXX=
10992 always_export_symbols_CXX=no
10993 archive_expsym_cmds_CXX=
10994 export_dynamic_flag_spec_CXX=
10995 hardcode_direct_CXX=no
10996 hardcode_libdir_flag_spec_CXX=
10997 hardcode_libdir_flag_spec_ld_CXX=
10998 hardcode_libdir_separator_CXX=
10999 hardcode_minus_L_CXX=no
11000 hardcode_shlibpath_var_CXX=unsupported
11001 hardcode_automatic_CXX=no
11003 module_expsym_cmds_CXX=
11004 link_all_deplibs_CXX=unknown
11005 old_archive_cmds_CXX=$old_archive_cmds
11006 no_undefined_flag_CXX=
11007 whole_archive_flag_spec_CXX=
11008 enable_shared_with_static_runtimes_CXX=no
11010 # Dependencies to place before and after the object being linked:
11011 predep_objects_CXX=
11012 postdep_objects_CXX=
11015 compiler_lib_search_path_CXX=
11017 # Source file extension for C++ test sources.
11020 # Object file extension for compiled C++ test sources.
11024 # Code to be used in simple compile tests
11025 lt_simple_compile_test_code="int some_variable = 0;"
11027 # Code to be used in simple link tests
11028 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11030 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11032 # If no C compiler was specified, use CC.
11035 # If no C compiler flags were specified, use CFLAGS.
11036 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11038 # Allow CC to be a program name with arguments.
11042 # save warnings/boilerplate of simple test code
11043 ac_outfile=conftest.$ac_objext
11044 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11045 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11046 _lt_compiler_boilerplate=`cat conftest.err
`
11049 ac_outfile=conftest.$ac_objext
11050 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11051 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11052 _lt_linker_boilerplate=`cat conftest.err
`
11056 # Allow CC to be a program name with arguments.
11061 lt_save_with_gnu_ld=$with_gnu_ld
11062 lt_save_path_LD=$lt_cv_path_LD
11063 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11064 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11066 $as_unset lt_cv_prog_gnu_ld
11068 if test -n "${lt_cv_path_LDCXX+set}"; then
11069 lt_cv_path_LD=$lt_cv_path_LDCXX
11071 $as_unset lt_cv_path_LD
11073 test -z "${LDCXX+set}" || LD=$LDCXX
11077 for cc_temp in $compiler""; do
11079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11085 cc_basename=`$echo "X$cc_temp" |
$Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11088 # We don't want -fno-exception wen compiling C++ code, so set the
11089 # no_builtin_flag separately
11090 if test "$GXX" = yes; then
11091 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11093 lt_prog_compiler_no_builtin_flag_CXX=
11096 if test "$GXX" = yes; then
11097 # Set up default GNU C++ configuration
11100 # Check whether --with-gnu-ld was given.
11101 if test "${with_gnu_ld+set}" = set; then
11102 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11108 if test "$GCC" = yes; then
11109 # Check if gcc -print-prog-name=ld gives a path.
11110 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11111 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11114 # gcc leaves a trailing carriage return which upsets mingw
11115 ac_prog=`($CC -print-prog-name=ld
) 2>&5 |
tr -d '\015'` ;;
11117 ac_prog=`($CC -print-prog-name=ld
) 2>&5` ;;
11120 # Accept absolute paths.
11122 re_direlt='/[^/][^/]*/\.\./'
11123 # Canonicalize the pathname of ld
11124 ac_prog=`echo $ac_prog|
$SED 's%\\\\%/%g'`
11125 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11126 ac_prog=`echo $ac_prog|
$SED "s%$re_direlt%/%"`
11128 test -z "$LD" && LD="$ac_prog"
11131 # If it fails, then pretend we aren't using GCC.
11135 # If it is relative, then search for the first ld in PATH.
11136 with_gnu_ld=unknown
11139 elif test "$with_gnu_ld" = yes; then
11140 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11141 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11143 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11144 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11146 if test "${lt_cv_path_LD+set}" = set; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 if test -z "$LD"; then
11150 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11151 for ac_dir in $PATH; do
11153 test -z "$ac_dir" && ac_dir=.
11154 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11155 lt_cv_path_LD="$ac_dir/$ac_prog"
11156 # Check to see if the program is GNU ld. I'd rather use --version,
11157 # but apparently some variants of GNU ld only accept -v.
11158 # Break only if it was the GNU/non-GNU ld that we prefer.
11159 case `"$lt_cv_path_LD" -v 2>&1 </dev
/null
` in
11160 *GNU* | *'with BFD'*)
11161 test "$with_gnu_ld" != no && break
11164 test "$with_gnu_ld" != yes && break
11171 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11175 LD="$lt_cv_path_LD"
11176 if test -n "$LD"; then
11177 { echo "$as_me:$LINENO: result: $LD" >&5
11178 echo "${ECHO_T}$LD" >&6; }
11180 { echo "$as_me:$LINENO: result: no" >&5
11181 echo "${ECHO_T}no" >&6; }
11183 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11184 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11185 { (exit 1); exit 1; }; }
11186 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11187 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11188 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11189 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11192 case `$LD -v 2>&1 </dev
/null
` in
11193 *GNU* | *'with BFD'*)
11194 lt_cv_prog_gnu_ld=yes
11197 lt_cv_prog_gnu_ld=no
11201 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11202 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11203 with_gnu_ld=$lt_cv_prog_gnu_ld
11207 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11208 # archiving commands below assume that GNU ld is being used.
11209 if test "$with_gnu_ld" = yes; then
11210 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11211 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11213 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11216 # If archive_cmds runs LD, not CC, wlarc should be empty
11217 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11218 # investigate it a little bit more. (MM)
11221 # ancient GNU ld didn't support --whole-archive et. al.
11222 if eval "`$CC -print-prog-name=ld
` --help 2>&1" | \
11223 grep 'no-whole-archive' > /dev/null; then
11224 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11226 whole_archive_flag_spec_CXX=
11232 # A generic and very simple default shared library creation
11233 # command for GNU C++ for the case where it uses the native
11234 # linker, instead of GNU ld. If possible, this setting should
11235 # overridden to take advantage of the native linker features on
11236 # the platform it is being used on.
11237 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11240 # Commands to make compiler produce verbose output that lists
11241 # what "hidden" libraries, object files and flags are used when
11242 # linking a shared library.
11243 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11251 # PORTME: fill in a description of your system's C++ link characteristics
11252 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11253 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11257 # FIXME: insert proper C++ library support
11261 if test "$host_cpu" = ia64; then
11262 # On IA64, the linker does run time linking by default, so we don't
11263 # have to do anything special.
11264 aix_use_runtimelinking=no
11265 exp_sym_flag='-Bexport'
11268 aix_use_runtimelinking=no
11270 # Test if we are trying to use run time linking or normal
11271 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11272 # need to do runtime linking.
11273 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11274 for ld_flag in $LDFLAGS; do
11277 aix_use_runtimelinking=yes
11285 exp_sym_flag='-bexport'
11286 no_entry_flag='-bnoentry'
11289 # When large executables or shared objects are built, AIX ld can
11290 # have problems creating the table of contents. If linking a library
11291 # or program results in "error TOC overflow" add -mminimal-toc to
11292 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11293 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11295 archive_cmds_CXX=''
11296 hardcode_direct_CXX=yes
11297 hardcode_libdir_separator_CXX=':'
11298 link_all_deplibs_CXX=yes
11300 if test "$GXX" = yes; then
11301 case $host_os in aix4.[012]|aix4.[012].*)
11302 # We only want to do this on AIX 4.2 and lower, the check
11303 # below for broken collect2 doesn't work under 4.3+
11304 collect2name=`${CC} -print-prog-name=collect2
`
11305 if test -f "$collect2name" && \
11306 strings "$collect2name" | grep resolve_lib_name >/dev/null
11308 # We have reworked collect2
11311 # We have old collect2
11312 hardcode_direct_CXX=unsupported
11313 # It fails to find uninstalled libraries when the uninstalled
11314 # path is not listed in the libpath. Setting hardcode_minus_L
11315 # to unsupported forces relinking
11316 hardcode_minus_L_CXX=yes
11317 hardcode_libdir_flag_spec_CXX='-L$libdir'
11318 hardcode_libdir_separator_CXX=
11322 shared_flag='-shared'
11323 if test "$aix_use_runtimelinking" = yes; then
11324 shared_flag="$shared_flag "'${wl}-G'
11328 if test "$host_cpu" = ia64; then
11329 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11330 # chokes on -Wl,-G. The following line is correct:
11333 if test "$aix_use_runtimelinking" = yes; then
11334 shared_flag='${wl}-G'
11336 shared_flag='${wl}-bM:SRE'
11341 # It seems that -bexpall does not export symbols beginning with
11342 # underscore (_), so it is better to generate a list of symbols to export.
11343 always_export_symbols_CXX=yes
11344 if test "$aix_use_runtimelinking" = yes; then
11345 # Warning - without using the other runtime loading flags (-brtl),
11346 # -berok will link without error, but may produce a broken library.
11347 allow_undefined_flag_CXX='-berok'
11348 # Determine the default libpath from the value encoded in an empty executable.
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11364 rm -f conftest.$ac_objext conftest$ac_exeext
11365 if { (ac_try="$ac_link"
11366 case "(($ac_try" in
11367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11368 *) ac_try_echo
=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_link") 2>conftest.er1
11373 grep -v '^ *+' conftest.er1
>conftest.err
11375 cat conftest.err
>&5
11376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_cxx_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest
$ac_exeext &&
11381 $as_test_x conftest
$ac_exeext; then
11383 lt_aix_libpath_sed
='
11384 /Import File Strings/,/^$/ {
11390 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11391 # Check for a 64-bit object if we didn't find anything.
11392 if test -z "$aix_libpath"; then
11393 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.
$ac_ext >&5
11402 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11403 conftest
$ac_exeext conftest.
$ac_ext
11404 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
11406 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
11408 archive_expsym_cmds_CXX
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11410 if test "$host_cpu" = ia64
; then
11411 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
11412 allow_undefined_flag_CXX
="-z nodefs"
11413 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"
11415 # Determine the default libpath from the value encoded in an empty executable.
11416 cat >conftest.
$ac_ext <<_ACEOF
11419 cat confdefs.h
>>conftest.
$ac_ext
11420 cat >>conftest.
$ac_ext <<_ACEOF
11421 /* end confdefs.h. */
11431 rm -f conftest.
$ac_objext conftest
$ac_exeext
11432 if { (ac_try
="$ac_link"
11433 case "(($ac_try" in
11434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11435 *) ac_try_echo=$ac_try;;
11437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11438 (eval "$ac_link") 2>conftest.er1
11440 grep -v '^ *+' conftest.er1 >conftest.err
11442 cat conftest.err >&5
11443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11444 (exit $ac_status); } && {
11445 test -z "$ac_cxx_werror_flag" ||
11446 test ! -s conftest.err
11447 } && test -s conftest$ac_exeext &&
11448 $as_test_x conftest$ac_exeext; then
11450 lt_aix_libpath_sed='
11451 /Import File Strings/,/^$/ {
11457 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11458 # Check for a 64-bit object if we didn't find anything.
11459 if test -z "$aix_libpath"; then
11460 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.$ac_ext >&5
11469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11470 conftest$ac_exeext conftest.$ac_ext
11471 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11473 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11474 # Warning - without using the other run time loading flags,
11475 # -berok will link without error, but may produce a broken library.
11476 no_undefined_flag_CXX=' ${wl}-bernotok'
11477 allow_undefined_flag_CXX=' ${wl}-berok'
11478 # Exported symbols can be pulled into shared objects from archives
11479 whole_archive_flag_spec_CXX='$convenience'
11480 archive_cmds_need_lc_CXX=yes
11481 # This is similar to how AIX traditionally builds its shared libraries.
11482 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
11488 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11489 allow_undefined_flag_CXX=unsupported
11490 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11491 # support --undefined. This deserves some investigation. FIXME
11492 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11499 case $cc_basename in
11501 # FIXME: insert proper C++ library support
11507 cygwin* | mingw* | pw32*)
11508 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11509 # as there is no search path for DLLs.
11510 hardcode_libdir_flag_spec_CXX='-L$libdir'
11511 allow_undefined_flag_CXX=unsupported
11512 always_export_symbols_CXX=no
11513 enable_shared_with_static_runtimes_CXX=yes
11515 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11516 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'
11517 # If the export-symbols file already is a .def file (1st line
11518 # is EXPORTS), use it as is; otherwise, prepend...
11519 archive_expsym_cmds_CXX='if test "x`$SED 1q
$export_symbols`" = xEXPORTS; then
11520 cp $export_symbols $output_objdir/$soname.def;
11522 echo EXPORTS > $output_objdir/$soname.def;
11523 cat $export_symbols >> $output_objdir/$soname.def;
11525 $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'
11530 darwin* | rhapsody*)
11532 rhapsody* | darwin1.[012])
11533 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11536 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11537 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11539 case ${MACOSX_DEPLOYMENT_TARGET} in
11541 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11544 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11550 archive_cmds_need_lc_CXX=no
11551 hardcode_direct_CXX=no
11552 hardcode_automatic_CXX=yes
11553 hardcode_shlibpath_var_CXX=unsupported
11554 whole_archive_flag_spec_CXX=''
11555 link_all_deplibs_CXX=yes
11557 if test "$GXX" = yes ; then
11558 lt_int_apple_cc_single_mod=no
11559 output_verbose_link_cmd='echo'
11560 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11561 lt_int_apple_cc_single_mod=yes
11563 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11564 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11566 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'
11568 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11569 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11570 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11571 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11573 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11575 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11577 case $cc_basename in
11579 output_verbose_link_cmd='echo'
11580 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11581 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11583 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11584 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11594 case $cc_basename in
11596 # FIXME: insert proper C++ library support
11600 # Green Hills C++ Compiler
11601 # FIXME: insert proper C++ library support
11605 # FIXME: insert proper C++ library support
11611 # C++ shared libraries reported to be fairly broken before switch to ELF
11615 archive_cmds_need_lc_CXX=no
11617 freebsd* | dragonfly*)
11618 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11625 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11626 hardcode_libdir_separator_CXX=:
11627 export_dynamic_flag_spec_CXX='${wl}-E'
11628 hardcode_direct_CXX=yes
11629 hardcode_minus_L_CXX=yes # Not in the search PATH,
11630 # but as the default
11631 # location of the library.
11633 case $cc_basename in
11635 # FIXME: insert proper C++ library support
11639 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 $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11640 # Commands to make compiler produce verbose output that lists
11641 # what "hidden" libraries, object files and flags are used when
11642 # linking a shared library.
11644 # There doesn't appear to be a way to prevent this compiler from
11645 # explicitly linking system object files so we need to strip them
11646 # from the output so that they don't get included in the library
11648 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; echo $list'
11651 if test "$GXX" = yes; then
11652 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11654 # FIXME: insert proper C++ library support
11661 if test $with_gnu_ld = no; then
11662 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11663 hardcode_libdir_separator_CXX=:
11668 export_dynamic_flag_spec_CXX='${wl}-E'
11674 hardcode_direct_CXX=no
11675 hardcode_shlibpath_var_CXX=no
11678 hardcode_direct_CXX=yes
11679 hardcode_minus_L_CXX=yes # Not in the search PATH,
11680 # but as the default
11681 # location of the library.
11685 case $cc_basename in
11687 # FIXME: insert proper C++ library support
11693 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11696 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11699 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11706 # There doesn't appear to be a way to prevent this compiler from
11707 # explicitly linking system object files so we need to strip them
11708 # from the output so that they don't get included in the library
11710 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; echo $list'
11713 if test "$GXX" = yes; then
11714 if test $with_gnu_ld = no; then
11717 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11720 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11723 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11728 # FIXME: insert proper C++ library support
11735 hardcode_direct_CXX=no
11736 hardcode_shlibpath_var_CXX=no
11737 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11738 export_dynamic_flag_spec_CXX='${wl}-E'
11739 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11740 # Instead, shared libraries are loaded at an image base (0x10000000 by
11741 # default) and relocated if they conflict, which is a slow very memory
11742 # consuming and fragmenting process. To avoid this, we pick a random,
11743 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11744 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11745 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'
11746 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'
11749 case $cc_basename in
11752 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11754 # Archives containing C++ object files must be created using
11755 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11756 # necessary to make sure instantiated templates are included
11758 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11761 if test "$GXX" = yes; then
11762 if test "$with_gnu_ld" = no; then
11763 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11765 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11768 link_all_deplibs_CXX=yes
11771 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11772 hardcode_libdir_separator_CXX=:
11774 linux* | k*bsd*-gnu)
11775 case $cc_basename in
11777 # Kuck and Associates, Inc. (KAI) C++ Compiler
11779 # KCC will only create a shared library if the output file
11780 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11781 # to its proper name (with version) after linking.
11782 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'
11783 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'
11784 # Commands to make compiler produce verbose output that lists
11785 # what "hidden" libraries, object files and flags are used when
11786 # linking a shared library.
11788 # There doesn't appear to be a way to prevent this compiler from
11789 # explicitly linking system object files so we need to strip them
11790 # from the output so that they don't get included in the library
11792 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; echo $list'
11794 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
11795 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11797 # Archives containing C++ object files must be created using
11798 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11799 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11804 # version 8.0 and above of icpc choke on multiply defined symbols
11805 # if we add $predep_objects and $postdep_objects, however 7.1 and
11806 # earlier do not add the objects themselves.
11807 case `$CC -V 2>&1` in
11809 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11810 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'
11812 *) # Version 8.0 or newer
11815 ia64
*) tmp_idyn
=' -i_dynamic';;
11817 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11818 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'
11821 archive_cmds_need_lc_CXX
=no
11822 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11823 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11824 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11827 # Portland Group C++ compiler
11828 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11829 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'
11831 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
11832 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
11833 whole_archive_flag_spec_CXX
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11837 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11838 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'
11840 runpath_var
=LD_RUN_PATH
11841 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
11842 hardcode_libdir_separator_CXX
=:
11844 # Commands to make compiler produce verbose output that lists
11845 # what "hidden" libraries, object files and flags are used when
11846 # linking a shared library.
11848 # There doesn't appear to be a way to prevent this compiler from
11849 # explicitly linking system object files so we need to strip them
11850 # from the output so that they don't get included in the library
11852 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
11855 case `$CC -V 2>&1 | sed 5q` in
11858 no_undefined_flag_CXX
=' -zdefs'
11859 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11860 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'
11861 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11862 whole_archive_flag_spec_CXX
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11864 # Not sure whether something based on
11865 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11867 output_verbose_link_cmd
='echo'
11869 # Archives containing C++ object files must be created using
11870 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11871 # necessary to make sure instantiated templates are included
11873 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
11880 # FIXME: insert proper C++ library support
11884 # FIXME: insert proper C++ library support
11888 case $cc_basename in
11890 # FIXME: insert proper C++ library support
11894 # FIXME: insert proper C++ library support
11900 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
11901 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11903 hardcode_libdir_flag_spec_CXX
='-R$libdir'
11904 hardcode_direct_CXX
=yes
11905 hardcode_shlibpath_var_CXX
=no
11907 # Workaround some broken pre-1.5 toolchains
11908 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11911 # C++ shared libraries are fairly broken
11915 if test -f /usr
/libexec
/ld.so
; then
11916 hardcode_direct_CXX
=yes
11917 hardcode_shlibpath_var_CXX
=no
11918 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11919 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11920 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11921 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11922 export_dynamic_flag_spec_CXX
='${wl}-E'
11923 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11925 output_verbose_link_cmd
='echo'
11931 case $cc_basename in
11933 # Kuck and Associates, Inc. (KAI) C++ Compiler
11935 # KCC will only create a shared library if the output file
11936 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11937 # to its proper name (with version) after linking.
11938 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'
11940 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
11941 hardcode_libdir_separator_CXX
=:
11943 # Archives containing C++ object files must be created using
11944 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11945 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
11949 # Rational C++ 2.4.1
11950 # FIXME: insert proper C++ library support
11954 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11955 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11957 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11958 hardcode_libdir_separator_CXX
=:
11960 # Commands to make compiler produce verbose output that lists
11961 # what "hidden" libraries, object files and flags are used when
11962 # linking a shared library.
11964 # There doesn't appear to be a way to prevent this compiler from
11965 # explicitly linking system object files so we need to strip them
11966 # from the output so that they don't get included in the library
11968 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11971 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
11972 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
11973 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11975 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
11976 hardcode_libdir_separator_CXX
=:
11978 # Commands to make compiler produce verbose output that lists
11979 # what "hidden" libraries, object files and flags are used when
11980 # linking a shared library.
11981 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11984 # FIXME: insert proper C++ library support
11991 case $cc_basename in
11993 # Kuck and Associates, Inc. (KAI) C++ Compiler
11995 # KCC will only create a shared library if the output file
11996 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11997 # to its proper name (with version) after linking.
11998 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'
12000 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
12001 hardcode_libdir_separator_CXX
=:
12003 # Archives containing C++ object files must be created using
12004 # the KAI C++ compiler.
12005 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
12008 # Rational C++ 2.4.1
12009 # FIXME: insert proper C++ library support
12013 allow_undefined_flag_CXX
=' -expect_unresolved \*'
12014 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
12015 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12016 echo "-hidden">> $lib.exp~
12017 $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~
12020 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
12021 hardcode_libdir_separator_CXX
=:
12023 # Commands to make compiler produce verbose output that lists
12024 # what "hidden" libraries, object files and flags are used when
12025 # linking a shared library.
12027 # There doesn't appear to be a way to prevent this compiler from
12028 # explicitly linking system object files so we need to strip them
12029 # from the output so that they don't get included in the library
12031 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
12034 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12035 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
12036 archive_cmds_CXX
='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12038 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
12039 hardcode_libdir_separator_CXX
=:
12041 # Commands to make compiler produce verbose output that lists
12042 # what "hidden" libraries, object files and flags are used when
12043 # linking a shared library.
12044 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12047 # FIXME: insert proper C++ library support
12054 # FIXME: insert proper C++ library support
12058 case $cc_basename in
12061 # FIXME: insert proper C++ library support
12066 # FIXME: insert proper C++ library support
12070 # FIXME: insert proper C++ library support
12076 case $cc_basename in
12078 # Sun C++ 4.2, 5.x and Centerline C++
12079 archive_cmds_need_lc_CXX
=yes
12080 no_undefined_flag_CXX
=' -zdefs'
12081 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12082 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12083 $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'
12085 hardcode_libdir_flag_spec_CXX
='-R$libdir'
12086 hardcode_shlibpath_var_CXX
=no
12088 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12090 # The compiler driver will combine and reorder linker options,
12091 # but understands `-z linker_flag'.
12092 # Supported since Solaris 2.6 (maybe 2.5.1?)
12093 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
12096 link_all_deplibs_CXX
=yes
12098 output_verbose_link_cmd
='echo'
12100 # Archives containing C++ object files must be created using
12101 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12102 # necessary to make sure instantiated templates are included
12104 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
12107 # Green Hills C++ Compiler
12108 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12110 # The C++ compiler must be used to create the archive.
12111 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12114 # GNU C++ compiler with Solaris linker
12115 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
12116 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
12117 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
12118 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12119 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12120 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12122 # Commands to make compiler produce verbose output that lists
12123 # what "hidden" libraries, object files and flags are used when
12124 # linking a shared library.
12125 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12127 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12129 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12130 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12131 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12133 # Commands to make compiler produce verbose output that lists
12134 # what "hidden" libraries, object files and flags are used when
12135 # linking a shared library.
12136 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12139 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
12141 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
12143 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12150 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
12151 no_undefined_flag_CXX
='${wl}-z,text'
12152 archive_cmds_need_lc_CXX
=no
12153 hardcode_shlibpath_var_CXX
=no
12154 runpath_var
='LD_RUN_PATH'
12156 case $cc_basename in
12158 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12159 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12162 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12163 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12167 sysv5
* | sco3.2v5
* | sco5v6
*)
12168 # Note: We can NOT use -z defs as we might desire, because we do not
12169 # link with -lc, and that would cause any symbols used from libc to
12170 # always be unresolved, which means just about no library would
12171 # ever link correctly. If we're not using GNU ld we use -z text
12172 # though, which does catch some bad symbols but isn't as heavy-handed
12174 # For security reasons, it is highly recommended that you always
12175 # use absolute paths for naming shared libraries, and exclude the
12176 # DT_RUNPATH tag from executables and libraries. But doing so
12177 # requires that you compile everything twice, which is a pain.
12178 # So that behaviour is only enabled if SCOABSPATH is set to a
12179 # non-empty value in the environment. Most likely only useful for
12180 # creating official distributions of packages.
12181 # This is a hack until libtool officially supports absolute path
12182 # names for shared libraries.
12183 no_undefined_flag_CXX
='${wl}-z,text'
12184 allow_undefined_flag_CXX
='${wl}-z,nodefs'
12185 archive_cmds_need_lc_CXX
=no
12186 hardcode_shlibpath_var_CXX
=no
12187 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12188 hardcode_libdir_separator_CXX
=':'
12189 link_all_deplibs_CXX
=yes
12190 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
12191 runpath_var
='LD_RUN_PATH'
12193 case $cc_basename in
12195 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12196 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12199 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12200 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12205 case $cc_basename in
12207 # NonStop-UX NCC 3.20
12208 # FIXME: insert proper C++ library support
12212 # FIXME: insert proper C++ library support
12218 # FIXME: insert proper C++ library support
12222 # FIXME: insert proper C++ library support
12226 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12227 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12228 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12234 cat > conftest.
$ac_ext <<EOF
12238 Foo (void) { a = 0; }
12244 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12245 (eval $ac_compile) 2>&5
12247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12248 (exit $ac_status); }; then
12249 # Parse the compiler output and extract the necessary
12250 # objects, libraries and library flags.
12252 # Sentinel used to keep track of whether or not we are before
12253 # the conftest object file.
12254 pre_test_object_deps_done
=no
12256 # The `*' in the case matches for architectures that use `case' in
12257 # $output_verbose_cmd can trigger glob expansion during the loop
12258 # eval without this substitution.
12259 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12261 for p
in `eval $output_verbose_link_cmd`; do
12265 # Some compilers place space between "-{L,R}" and the path.
12266 # Remove the space.
12267 if test $p = "-L" \
12268 ||
test $p = "-R"; then
12275 if test "$pre_test_object_deps_done" = no
; then
12278 # Internal compiler library paths should come after those
12279 # provided the user. The postdeps already come after the
12280 # user supplied libs so there is no need to process them.
12281 if test -z "$compiler_lib_search_path_CXX"; then
12282 compiler_lib_search_path_CXX
="${prev}${p}"
12284 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
12287 # The "-l" case would never come before the object being
12288 # linked, so don't bother handling this case.
12291 if test -z "$postdeps_CXX"; then
12292 postdeps_CXX
="${prev}${p}"
12294 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
12300 # This assumes that the test object file only shows up
12301 # once in the compiler output.
12302 if test "$p" = "conftest.$objext"; then
12303 pre_test_object_deps_done
=yes
12307 if test "$pre_test_object_deps_done" = no
; then
12308 if test -z "$predep_objects_CXX"; then
12309 predep_objects_CXX
="$p"
12311 predep_objects_CXX
="$predep_objects_CXX $p"
12314 if test -z "$postdep_objects_CXX"; then
12315 postdep_objects_CXX
="$p"
12317 postdep_objects_CXX
="$postdep_objects_CXX $p"
12322 *) ;; # Ignore the rest.
12330 echo "libtool.m4: error: problem compiling CXX test program"
12333 $rm -f confest.
$objext
12335 # PORTME: override above test on systems where it is broken
12338 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12339 # hack all around it, let's just trust "g++" to DTRT.
12340 predep_objects_CXX
=
12341 postdep_objects_CXX
=
12346 case `$CC -V 2>&1 | sed 5q` in
12350 # The more standards-conforming stlport4 library is
12351 # incompatible with the Cstd library. Avoid specifying
12352 # it if it's in CXXFLAGS. Ignore libCrun as
12353 # -library=stlport4 depends on it.
12354 case " $CXX $CXXFLAGS " in
12355 *" -library=stlport4 "*)
12356 solaris_use_stlport4
=yes
12359 if test "$solaris_use_stlport4" != yes; then
12360 postdeps_CXX
='-library=Cstd -library=Crun'
12367 case $cc_basename in
12369 # The more standards-conforming stlport4 library is
12370 # incompatible with the Cstd library. Avoid specifying
12371 # it if it's in CXXFLAGS. Ignore libCrun as
12372 # -library=stlport4 depends on it.
12373 case " $CXX $CXXFLAGS " in
12374 *" -library=stlport4 "*)
12375 solaris_use_stlport4
=yes
12379 # Adding this requires a known-good setup of shared libraries for
12380 # Sun compiler versions before 5.6, else PIC objects from an old
12381 # archive will be linked into the output, leading to subtle bugs.
12382 if test "$solaris_use_stlport4" != yes; then
12383 postdeps_CXX
='-library=Cstd -library=Crun'
12391 case " $postdeps_CXX " in
12392 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
12395 lt_prog_compiler_wl_CXX
=
12396 lt_prog_compiler_pic_CXX
=
12397 lt_prog_compiler_static_CXX
=
12399 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12400 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12402 # C++ specific cases for pic, static, wl, etc.
12403 if test "$GXX" = yes; then
12404 lt_prog_compiler_wl_CXX
='-Wl,'
12405 lt_prog_compiler_static_CXX
='-static'
12409 # All AIX code is PIC.
12410 if test "$host_cpu" = ia64
; then
12411 # AIX 5 now supports IA64 processor
12412 lt_prog_compiler_static_CXX
='-Bstatic'
12416 # FIXME: we need at least 68020 code to build shared libraries, but
12417 # adding the `-m68020' flag to GCC prevents building anything better,
12419 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
12421 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12422 # PIC is the default for these OSes.
12424 mingw
* | cygwin
* | os2
* | pw32
*)
12425 # This hack is so that the source file can tell whether it is being
12426 # built for inclusion in a dll (and should export symbols for example).
12427 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12428 # (--disable-auto-import) libraries
12429 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
12431 darwin
* | rhapsody
*)
12432 # PIC is the default on this platform
12433 # Common symbols not allowed in MH_DYLIB files
12434 lt_prog_compiler_pic_CXX
='-fno-common'
12437 # DJGPP does not support shared libraries at all
12438 lt_prog_compiler_pic_CXX
=
12441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12442 # Instead, we relocate shared libraries at runtime.
12445 if test -d /usr
/nec
; then
12446 lt_prog_compiler_pic_CXX
=-Kconform_pic
12450 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12451 # not for PA HP-UX.
12456 lt_prog_compiler_pic_CXX
='-fPIC'
12461 lt_prog_compiler_pic_CXX
='-fPIC'
12467 # All AIX code is PIC.
12468 if test "$host_cpu" = ia64
; then
12469 # AIX 5 now supports IA64 processor
12470 lt_prog_compiler_static_CXX
='-Bstatic'
12472 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
12476 case $cc_basename in
12478 # Green Hills C++ Compiler
12479 # _LT_AC_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"
12484 # PIC is the default on this platform
12485 # Common symbols not allowed in MH_DYLIB files
12486 case $cc_basename in
12488 lt_prog_compiler_pic_CXX
='-qnocommon'
12489 lt_prog_compiler_wl_CXX
='-Wl,'
12494 case $cc_basename in
12496 lt_prog_compiler_pic_CXX
='-KPIC'
12499 # Green Hills C++ Compiler
12500 lt_prog_compiler_pic_CXX
='-pic'
12506 freebsd
* | dragonfly
*)
12507 # FreeBSD uses GNU C++
12509 hpux9
* | hpux10
* | hpux11
*)
12510 case $cc_basename in
12512 lt_prog_compiler_wl_CXX
='-Wl,'
12513 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12514 if test "$host_cpu" != ia64
; then
12515 lt_prog_compiler_pic_CXX
='+Z'
12519 lt_prog_compiler_wl_CXX
='-Wl,'
12520 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
12526 lt_prog_compiler_pic_CXX
='+Z'
12535 # This is c89, which is MS Visual C++ (no shared libs)
12536 # Anyone wants to do a port?
12538 irix5
* | irix6
* | nonstopux
*)
12539 case $cc_basename in
12541 lt_prog_compiler_wl_CXX
='-Wl,'
12542 lt_prog_compiler_static_CXX
='-non_shared'
12543 # CC pic flag -KPIC is the default.
12549 linux
* | k
*bsd
*-gnu)
12550 case $cc_basename in
12553 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12554 lt_prog_compiler_pic_CXX
='-fPIC'
12558 lt_prog_compiler_wl_CXX
='-Wl,'
12559 lt_prog_compiler_pic_CXX
='-KPIC'
12560 lt_prog_compiler_static_CXX
='-static'
12563 # Portland Group C++ compiler.
12564 lt_prog_compiler_wl_CXX
='-Wl,'
12565 lt_prog_compiler_pic_CXX
='-fpic'
12566 lt_prog_compiler_static_CXX
='-Bstatic'
12570 # Make sure the PIC flag is empty. It appears that all Alpha
12571 # Linux and Compaq Tru64 Unix objects are PIC.
12572 lt_prog_compiler_pic_CXX
=
12573 lt_prog_compiler_static_CXX
='-non_shared'
12576 case `$CC -V 2>&1 | sed 5q` in
12579 lt_prog_compiler_pic_CXX
='-KPIC'
12580 lt_prog_compiler_static_CXX
='-Bstatic'
12581 lt_prog_compiler_wl_CXX
='-Qoption ld '
12592 case $cc_basename in
12594 lt_prog_compiler_pic_CXX
='-W c,exportall'
12602 osf3
* | osf4
* | osf5
*)
12603 case $cc_basename in
12605 lt_prog_compiler_wl_CXX
='--backend -Wl,'
12608 # Rational C++ 2.4.1
12609 lt_prog_compiler_pic_CXX
='-pic'
12612 # Digital/Compaq C++
12613 lt_prog_compiler_wl_CXX
='-Wl,'
12614 # Make sure the PIC flag is empty. It appears that all Alpha
12615 # Linux and Compaq Tru64 Unix objects are PIC.
12616 lt_prog_compiler_pic_CXX
=
12617 lt_prog_compiler_static_CXX
='-non_shared'
12626 case $cc_basename in
12628 # Sun C++ 4.2, 5.x and Centerline C++
12629 lt_prog_compiler_pic_CXX
='-KPIC'
12630 lt_prog_compiler_static_CXX
='-Bstatic'
12631 lt_prog_compiler_wl_CXX
='-Qoption ld '
12634 # Green Hills C++ Compiler
12635 lt_prog_compiler_pic_CXX
='-PIC'
12642 case $cc_basename in
12645 lt_prog_compiler_pic_CXX
='-pic'
12646 lt_prog_compiler_static_CXX
='-Bstatic'
12650 lt_prog_compiler_pic_CXX
='-pic'
12657 case $cc_basename in
12659 # NonStop-UX NCC 3.20
12660 lt_prog_compiler_pic_CXX
='-KPIC'
12666 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12667 case $cc_basename in
12669 lt_prog_compiler_wl_CXX
='-Wl,'
12670 lt_prog_compiler_pic_CXX
='-KPIC'
12671 lt_prog_compiler_static_CXX
='-Bstatic'
12678 lt_prog_compiler_can_build_shared_CXX
=no
12683 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12684 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12687 # Check to make sure the PIC flag actually works.
12689 if test -n "$lt_prog_compiler_pic_CXX"; then
12691 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12693 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12694 echo $ECHO_N "(cached) $ECHO_C" >&6
12696 lt_prog_compiler_pic_works_CXX
=no
12697 ac_outfile
=conftest.
$ac_objext
12698 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12699 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
12700 # Insert the option either (1) after the last *FLAGS variable, or
12701 # (2) before a word containing "conftest.", or (3) at the end.
12702 # Note that $ac_compile itself does not contain backslashes and begins
12703 # with a dollar sign (not a hyphen), so the echo should work correctly.
12704 # The option is referenced via a variable to avoid confusing sed.
12705 lt_compile
=`echo "$ac_compile" | $SED \
12706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12708 -e 's:$: $lt_compiler_flag:'`
12709 (eval echo "\"\$as_me:12709: $lt_compile\"" >&5)
12710 (eval "$lt_compile" 2>conftest.err
)
12712 cat conftest.err
>&5
12713 echo "$as_me:12713: \$? = $ac_status" >&5
12714 if (exit $ac_status) && test -s "$ac_outfile"; then
12715 # The compiler can only warn and ignore the option if not recognized
12716 # So say no if there are warnings other than the usual output.
12717 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12718 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12719 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12720 lt_prog_compiler_pic_works_CXX
=yes
12726 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
12727 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; }
12729 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
12730 case $lt_prog_compiler_pic_CXX in
12732 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
12735 lt_prog_compiler_pic_CXX
=
12736 lt_prog_compiler_can_build_shared_CXX
=no
12741 # For platforms which do not support PIC, -DPIC is meaningless:
12743 lt_prog_compiler_pic_CXX
=
12746 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
12751 # Check to make sure the static flag actually works.
12753 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
12754 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12756 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
12757 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 lt_prog_compiler_static_works_CXX
=no
12760 save_LDFLAGS
="$LDFLAGS"
12761 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12762 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12763 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12764 # The linker can only warn and ignore the option if not recognized
12765 # So say no if there are warnings
12766 if test -s conftest.err
; then
12767 # Append any errors to the config.log.
12768 cat conftest.err
1>&5
12769 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12770 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12771 if diff conftest.exp conftest.er2
>/dev
/null
; then
12772 lt_prog_compiler_static_works_CXX
=yes
12775 lt_prog_compiler_static_works_CXX
=yes
12779 LDFLAGS
="$save_LDFLAGS"
12782 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
12783 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; }
12785 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
12788 lt_prog_compiler_static_CXX
=
12792 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12794 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12797 lt_cv_prog_compiler_c_o_CXX
=no
12798 $rm -r conftest
2>/dev
/null
12802 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12804 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12805 # Insert the option either (1) after the last *FLAGS variable, or
12806 # (2) before a word containing "conftest.", or (3) at the end.
12807 # Note that $ac_compile itself does not contain backslashes and begins
12808 # with a dollar sign (not a hyphen), so the echo should work correctly.
12809 lt_compile
=`echo "$ac_compile" | $SED \
12810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12812 -e 's:$: $lt_compiler_flag:'`
12813 (eval echo "\"\$as_me:12813: $lt_compile\"" >&5)
12814 (eval "$lt_compile" 2>out
/conftest.err
)
12816 cat out
/conftest.err
>&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12820 # The compiler can only warn and ignore the option if not recognized
12821 # So say no if there are warnings
12822 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12823 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12824 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12825 lt_cv_prog_compiler_c_o_CXX
=yes
12830 # SGI C++ compiler will create directory out/ii_files/ for
12831 # template instantiation
12832 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12833 $rm out
/* && rmdir out
12839 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12843 hard_links
="nottested"
12844 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
12845 # do not overwrite the value of need_locks provided by the user
12846 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12850 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12852 ln conftest.a conftest.b
2>&5 || hard_links
=no
12853 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12854 { echo "$as_me:$LINENO: result: $hard_links" >&5
12855 echo "${ECHO_T}$hard_links" >&6; }
12856 if test "$hard_links" = no
; then
12857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12865 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12868 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12871 # If we're using GNU nm, then we don't want the "-C" option.
12872 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12873 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12874 export_symbols_cmds_CXX
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12876 export_symbols_cmds_CXX
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12880 export_symbols_cmds_CXX
="$ltdll_cmds"
12883 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12886 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12890 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12891 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12892 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
12895 # Do we need to explicitly link libc?
12897 case "x$archive_cmds_need_lc_CXX" in
12899 # Assume -lc should be added
12900 archive_cmds_need_lc_CXX
=yes
12902 if test "$enable_shared" = yes && test "$GCC" = yes; then
12903 case $archive_cmds_CXX in
12905 # FIXME: we may have to deal with multi-command sequences.
12908 # Test whether the compiler implicitly links with -lc since on some
12909 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12910 # to ld, don't add -lc before -lgcc.
12911 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12912 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
12914 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12916 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12917 (eval $ac_compile) 2>&5
12919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12920 (exit $ac_status); } 2>conftest.err
; then
12923 libobjs
=conftest.
$ac_objext
12925 wl
=$lt_prog_compiler_wl_CXX
12926 pic_flag
=$lt_prog_compiler_pic_CXX
12932 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
12933 allow_undefined_flag_CXX
=
12934 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12935 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); }
12940 archive_cmds_need_lc_CXX
=no
12942 archive_cmds_need_lc_CXX
=yes
12944 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
12946 cat conftest.err
1>&5
12949 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12950 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
12957 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12958 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
12959 library_names_spec
=
12960 libname_spec
='lib$name'
12964 postuninstall_cmds
=
12968 shlibpath_overrides_runpath
=unknown
12970 dynamic_linker
="$host_os ld.so"
12971 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
12973 need_lib_prefix
=unknown
12974 hardcode_into_libs
=no
12976 # when you set need_version to no, make sure it does not cause -set_version
12977 # flags to be left without arguments
12978 need_version
=unknown
12983 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
12984 shlibpath_var
=LIBPATH
12986 # AIX 3 has no versioning support, so we append a major version to the name.
12987 soname_spec
='${libname}${release}${shared_ext}$major'
12994 hardcode_into_libs
=yes
12995 if test "$host_cpu" = ia64
; then
12996 # AIX 5 supports IA64
12997 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12998 shlibpath_var
=LD_LIBRARY_PATH
13000 # With GCC up to 2.95.x, collect2 would create an import file
13001 # for dependence libraries. The import file would start with
13002 # the line `#! .'. This would cause the generated library to
13003 # depend on `.', always an invalid library. This was fixed in
13004 # development snapshots of GCC prior to 3.0.
13006 aix4 | aix4.
[01] | aix4.
[01].
*)
13007 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13009 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13012 can_build_shared
=no
13016 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13017 # soname into executable. Probably we can add versioning support to
13018 # collect2, so additional links can be useful in future.
13019 if test "$aix_use_runtimelinking" = yes; then
13020 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13021 # instead of lib<name>.a to let people know that these are not
13022 # typical AIX shared libraries.
13023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13025 # We preserve .a as extension for shared libraries through AIX4.2
13026 # and later when we are not doing run time linking.
13027 library_names_spec
='${libname}${release}.a $libname.a'
13028 soname_spec
='${libname}${release}${shared_ext}$major'
13030 shlibpath_var
=LIBPATH
13035 library_names_spec
='$libname.ixlibrary $libname.a'
13036 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13037 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
13041 library_names_spec
='${libname}${shared_ext}'
13042 dynamic_linker
="$host_os ld.so"
13043 shlibpath_var
=LIBRARY_PATH
13049 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13050 soname_spec
='${libname}${release}${shared_ext}$major'
13051 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13052 shlibpath_var
=LD_LIBRARY_PATH
13053 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13054 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13055 # the default ld.so.conf also contains /usr/contrib/lib and
13056 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13057 # libtool to hard-code these into programs
13060 cygwin
* | mingw
* | pw32
*)
13061 version_type
=windows
13066 case $GCC,$host_os in
13067 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13068 library_names_spec
='$libname.dll.a'
13069 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13070 postinstall_cmds
='base_file=`basename \${file}`~
13071 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13072 dldir=$destdir/`dirname \$dlpath`~
13073 test -d \$dldir || mkdir -p \$dldir~
13074 $install_prog $dir/$dlname \$dldir/$dlname~
13075 chmod a+x \$dldir/$dlname'
13076 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13077 dlpath=$dir/\$dldll~
13079 shlibpath_overrides_runpath
=yes
13083 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13084 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13085 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13088 # MinGW DLLs use traditional 'lib' prefix
13089 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13090 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13091 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13092 # It is most probably a Windows format PATH printed by
13093 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13094 # path with ; separators, and with drive letters. We can handle the
13095 # drive letters (cygwin fileutils understands them), so leave them,
13096 # especially as we might pass files found there to a mingw objdump,
13097 # which wouldn't understand a cygwinified path. Ahh.
13098 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13100 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13104 # pw32 DLLs use 'pw' prefix rather than 'lib'
13105 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13111 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13114 dynamic_linker
='Win32 ld.exe'
13115 # FIXME: first we should search . and the directory the executable is in
13119 darwin
* | rhapsody
*)
13120 dynamic_linker
="$host_os dyld"
13121 version_type
=darwin
13124 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13125 soname_spec
='${libname}${release}${major}$shared_ext'
13126 shlibpath_overrides_runpath
=yes
13127 shlibpath_var
=DYLD_LIBRARY_PATH
13128 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13130 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13137 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13138 soname_spec
='${libname}${release}${shared_ext}$major'
13139 shlibpath_var
=LD_LIBRARY_PATH
13146 freebsd
* | dragonfly
*)
13147 # DragonFly does not have aout. When/if they implement a new
13148 # versioning mechanism, adjust this.
13149 if test -x /usr
/bin
/objformat
; then
13150 objformat
=`/usr/bin/objformat`
13153 freebsd
[123]*) objformat
=aout
;;
13154 *) objformat
=elf
;;
13157 version_type
=freebsd-
$objformat
13158 case $version_type in
13160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13165 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13169 shlibpath_var
=LD_LIBRARY_PATH
13172 shlibpath_overrides_runpath
=yes
13174 freebsd3.
[01]* | freebsdelf3.
[01]*)
13175 shlibpath_overrides_runpath
=yes
13176 hardcode_into_libs
=yes
13178 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13179 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13180 shlibpath_overrides_runpath
=no
13181 hardcode_into_libs
=yes
13183 *) # from 4.6 on, and DragonFly
13184 shlibpath_overrides_runpath
=yes
13185 hardcode_into_libs
=yes
13194 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13195 soname_spec
='${libname}${release}${shared_ext}$major'
13196 shlibpath_var
=LD_LIBRARY_PATH
13197 hardcode_into_libs
=yes
13200 hpux9
* | hpux10
* | hpux11
*)
13201 # Give a soname corresponding to the major version so that dld.sl refuses to
13202 # link against other versions.
13209 hardcode_into_libs
=yes
13210 dynamic_linker
="$host_os dld.so"
13211 shlibpath_var
=LD_LIBRARY_PATH
13212 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13214 soname_spec
='${libname}${release}${shared_ext}$major'
13215 if test "X$HPUX_IA64_MODE" = X32
; then
13216 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13218 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13220 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13224 hardcode_into_libs
=yes
13225 dynamic_linker
="$host_os dld.sl"
13226 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
13227 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13228 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec
='${libname}${release}${shared_ext}$major'
13230 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13231 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13235 dynamic_linker
="$host_os dld.sl"
13236 shlibpath_var
=SHLIB_PATH
13237 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
13238 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13239 soname_spec
='${libname}${release}${shared_ext}$major'
13242 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13243 postinstall_cmds
='chmod 555 $lib'
13250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13251 soname_spec
='${libname}${release}${shared_ext}$major'
13252 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
13253 shlibpath_var
=LD_LIBRARY_PATH
13254 shlibpath_overrides_runpath
=no
13255 hardcode_into_libs
=yes
13258 irix5
* | irix6
* | nonstopux
*)
13260 nonstopux
*) version_type
=nonstopux
;;
13262 if test "$lt_cv_prog_gnu_ld" = yes; then
13270 soname_spec
='${libname}${release}${shared_ext}$major'
13271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13273 irix5
* | nonstopux
*)
13274 libsuff
= shlibsuff
=
13277 case $LD in # libtool.m4 will add one of these switches to LD
13278 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
13279 libsuff
= shlibsuff
= libmagic
=32-bit;;
13280 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
13281 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
13282 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
13283 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
13284 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
13288 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
13289 shlibpath_overrides_runpath
=no
13290 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13291 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13292 hardcode_into_libs
=yes
13295 # No shared lib support for Linux oldld, aout, or coff.
13296 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
13300 # This must be Linux ELF.
13301 linux
* | k
*bsd
*-gnu)
13305 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13306 soname_spec
='${libname}${release}${shared_ext}$major'
13307 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13308 shlibpath_var
=LD_LIBRARY_PATH
13309 shlibpath_overrides_runpath
=no
13310 # This implies no fast_install, which is unacceptable.
13311 # Some rework will be needed to allow for fast_install
13312 # before this can be enabled.
13313 hardcode_into_libs
=yes
13314 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13315 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
13317 # Append ld.so.conf contents to the search path
13318 if test -f /etc
/ld.so.conf
; then
13319 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;/^$/d' | tr '\n' ' '`
13320 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
13323 # We used to test for /lib/ld.so.1 and disable shared libraries on
13324 # powerpc, because MkLinux only supported shared libraries with the
13325 # GNU dynamic linker. Since this was broken with cross compilers,
13326 # most powerpc-linux boxes support dynamic linking these days and
13327 # people can always --disable-shared, the test was removed, and we
13328 # assume the GNU/Linux dynamic linker is in use.
13329 dynamic_linker
='GNU/Linux ld.so'
13336 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13338 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13339 dynamic_linker
='NetBSD (a.out) ld.so'
13341 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13342 soname_spec
='${libname}${release}${shared_ext}$major'
13343 dynamic_linker
='NetBSD ld.elf_so'
13345 shlibpath_var
=LD_LIBRARY_PATH
13346 shlibpath_overrides_runpath
=yes
13347 hardcode_into_libs
=yes
13352 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13353 shlibpath_var
=LD_LIBRARY_PATH
13354 shlibpath_overrides_runpath
=yes
13361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13362 soname_spec
='${libname}${release}${shared_ext}$major'
13363 shlibpath_var
=LD_LIBRARY_PATH
13364 shlibpath_overrides_runpath
=yes
13369 sys_lib_dlsearch_path_spec
="/usr/lib"
13371 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13373 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
13374 *) need_version
=no
;;
13376 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13377 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13378 shlibpath_var
=LD_LIBRARY_PATH
13379 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13381 openbsd2.
[89] | openbsd2.
[89].
*)
13382 shlibpath_overrides_runpath
=no
13385 shlibpath_overrides_runpath
=yes
13389 shlibpath_overrides_runpath
=yes
13394 libname_spec
='$name'
13397 library_names_spec
='$libname${shared_ext} $libname.a'
13398 dynamic_linker
='OS/2 ld.exe'
13399 shlibpath_var
=LIBPATH
13402 osf3
* | osf4
* | osf5
*)
13406 soname_spec
='${libname}${release}${shared_ext}$major'
13407 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13408 shlibpath_var
=LD_LIBRARY_PATH
13409 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13410 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
13421 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13422 soname_spec
='${libname}${release}${shared_ext}$major'
13423 shlibpath_var
=LD_LIBRARY_PATH
13424 shlibpath_overrides_runpath
=yes
13425 hardcode_into_libs
=yes
13426 # ldd complains unless libraries are executable
13427 postinstall_cmds
='chmod +x $lib'
13432 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13433 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13434 shlibpath_var
=LD_LIBRARY_PATH
13435 shlibpath_overrides_runpath
=yes
13436 if test "$with_gnu_ld" = yes; then
13444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13445 soname_spec
='${libname}${release}${shared_ext}$major'
13446 shlibpath_var
=LD_LIBRARY_PATH
13447 case $host_vendor in
13449 shlibpath_overrides_runpath
=no
13451 export_dynamic_flag_spec
='${wl}-Blargedynsym'
13452 runpath_var
=LD_RUN_PATH
13460 shlibpath_overrides_runpath
=no
13461 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
13467 if test -d /usr
/nec
;then
13469 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13470 soname_spec
='$libname${shared_ext}.$major'
13471 shlibpath_var
=LD_LIBRARY_PATH
13475 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
13476 version_type
=freebsd-elf
13479 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13480 soname_spec
='${libname}${release}${shared_ext}$major'
13481 shlibpath_var
=LD_LIBRARY_PATH
13482 hardcode_into_libs
=yes
13483 if test "$with_gnu_ld" = yes; then
13484 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13485 shlibpath_overrides_runpath
=no
13487 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
13488 shlibpath_overrides_runpath
=yes
13491 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
13495 sys_lib_dlsearch_path_spec
='/usr/lib'
13500 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13501 soname_spec
='${libname}${release}${shared_ext}$major'
13502 shlibpath_var
=LD_LIBRARY_PATH
13509 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13510 echo "${ECHO_T}$dynamic_linker" >&6; }
13511 test "$dynamic_linker" = no
&& can_build_shared
=no
13513 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
13514 if test "$GCC" = yes; then
13515 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13518 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13519 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13520 hardcode_action_CXX
=
13521 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13522 test -n "$runpath_var_CXX" || \
13523 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13525 # We can hardcode non-existant directories.
13526 if test "$hardcode_direct_CXX" != no
&&
13527 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13528 # have to relink, otherwise we might link with an installed library
13529 # when we should be linking with a yet-to-be-installed one
13530 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13531 test "$hardcode_minus_L_CXX" != no
; then
13532 # Linking always hardcodes the temporary library directory.
13533 hardcode_action_CXX
=relink
13535 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13536 hardcode_action_CXX
=immediate
13539 # We cannot hardcode anything, or else we can only hardcode existing
13541 hardcode_action_CXX
=unsupported
13543 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13544 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13546 if test "$hardcode_action_CXX" = relink
; then
13547 # Fast installation is not supported
13548 enable_fast_install
=no
13549 elif test "$shlibpath_overrides_runpath" = yes ||
13550 test "$enable_shared" = no
; then
13551 # Fast installation is not necessary
13552 enable_fast_install
=needless
13556 # The else clause should only fire when bootstrapping the
13557 # libtool distribution, otherwise you forgot to ship ltmain.sh
13558 # with your package, and you will get complaints that there are
13559 # no rules to generate ltmain.sh.
13560 if test -f "$ltmain"; then
13561 # See if we are running on zsh, and set the options which allow our commands through
13562 # without removal of \ escapes.
13563 if test -n "${ZSH_VERSION+set}" ; then
13564 setopt NO_GLOB_SUBST
13566 # Now quote all the things that may contain metacharacters while being
13567 # careful not to overquote the AC_SUBSTed values. We take copies of the
13568 # variables and quote the copies for generation of the libtool script.
13569 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13573 deplibs_check_method reload_flag reload_cmds need_locks \
13574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13575 lt_cv_sys_global_symbol_to_c_name_address \
13576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13577 old_postinstall_cmds old_postuninstall_cmds \
13581 lt_prog_compiler_wl_CXX \
13582 lt_prog_compiler_pic_CXX \
13583 lt_prog_compiler_static_CXX \
13584 lt_prog_compiler_no_builtin_flag_CXX \
13585 export_dynamic_flag_spec_CXX \
13586 thread_safe_flag_spec_CXX \
13587 whole_archive_flag_spec_CXX \
13588 enable_shared_with_static_runtimes_CXX \
13589 old_archive_cmds_CXX \
13590 old_archive_from_new_cmds_CXX \
13591 predep_objects_CXX \
13592 postdep_objects_CXX \
13595 compiler_lib_search_path_CXX \
13597 archive_expsym_cmds_CXX \
13598 postinstall_cmds_CXX \
13599 postuninstall_cmds_CXX \
13600 old_archive_from_expsyms_cmds_CXX \
13601 allow_undefined_flag_CXX \
13602 no_undefined_flag_CXX \
13603 export_symbols_cmds_CXX \
13604 hardcode_libdir_flag_spec_CXX \
13605 hardcode_libdir_flag_spec_ld_CXX \
13606 hardcode_libdir_separator_CXX \
13607 hardcode_automatic_CXX \
13609 module_expsym_cmds_CXX \
13610 lt_cv_prog_compiler_c_o_CXX \
13611 fix_srcfile_path_CXX \
13612 exclude_expsyms_CXX \
13613 include_expsyms_CXX
; do
13616 old_archive_cmds_CXX | \
13617 old_archive_from_new_cmds_CXX | \
13618 archive_cmds_CXX | \
13619 archive_expsym_cmds_CXX | \
13620 module_cmds_CXX | \
13621 module_expsym_cmds_CXX | \
13622 old_archive_from_expsyms_cmds_CXX | \
13623 export_symbols_cmds_CXX | \
13624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13625 postinstall_cmds | postuninstall_cmds | \
13626 old_postinstall_cmds | old_postuninstall_cmds | \
13627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
13628 # Double-quote double-evaled strings.
13629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13638 *'\$0 --fallback-echo"')
13639 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13645 cat <<__EOF__ >> "$cfgfile"
13646 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13648 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13650 # Shell to use when invoking shell scripts.
13653 # Whether or not to build shared libraries.
13654 build_libtool_libs=$enable_shared
13656 # Whether or not to build static libraries.
13657 build_old_libs=$enable_static
13659 # Whether or not to add -lc for building shared libraries.
13660 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13662 # Whether or not to disallow shared libs when runtime libs are static
13663 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13665 # Whether or not to optimize for fast installation.
13666 fast_install=$enable_fast_install
13669 host_alias=$host_alias
13673 # The build system.
13674 build_alias=$build_alias
13678 # An echo program that does not interpret backslashes.
13683 AR_FLAGS=$lt_AR_FLAGS
13688 # LTCC compiler flags.
13689 LTCFLAGS=$lt_LTCFLAGS
13691 # A language-specific compiler.
13692 CC=$lt_compiler_CXX
13694 # Is the compiler the GNU C compiler?
13700 # The linker used to build libraries.
13703 # Whether we need hard or soft links.
13706 # A BSD-compatible nm program.
13709 # A symbol stripping program
13712 # Used to examine libraries when file_magic_cmd begins "file"
13713 MAGIC_CMD=$MAGIC_CMD
13715 # Used on cygwin: DLL creation program.
13718 # Used on cygwin: object dumper.
13721 # Used on cygwin: assembler.
13724 # The name of the directory that contains temporary libtool files.
13727 # How to create reloadable object files.
13728 reload_flag=$lt_reload_flag
13729 reload_cmds=$lt_reload_cmds
13731 # How to pass a linker flag through the compiler.
13732 wl=$lt_lt_prog_compiler_wl_CXX
13734 # Object file suffix (normally "o").
13735 objext="$ac_objext"
13737 # Old archive suffix (normally "a").
13740 # Shared library suffix (normally ".so").
13741 shrext_cmds='$shrext_cmds'
13743 # Executable file suffix (normally "").
13746 # Additional compiler flags for building library objects.
13747 pic_flag=$lt_lt_prog_compiler_pic_CXX
13750 # What is the maximum length of a command?
13751 max_cmd_len=$lt_cv_sys_max_cmd_len
13753 # Does compiler simultaneously support -c and -o options?
13754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13756 # Must we lock files when doing compilation?
13757 need_locks=$lt_need_locks
13759 # Do we need the lib prefix for modules?
13760 need_lib_prefix=$need_lib_prefix
13762 # Do we need a version for libraries?
13763 need_version=$need_version
13765 # Whether dlopen is supported.
13766 dlopen_support=$enable_dlopen
13768 # Whether dlopen of programs is supported.
13769 dlopen_self=$enable_dlopen_self
13771 # Whether dlopen of statically linked programs is supported.
13772 dlopen_self_static=$enable_dlopen_self_static
13774 # Compiler flag to prevent dynamic linking.
13775 link_static_flag=$lt_lt_prog_compiler_static_CXX
13777 # Compiler flag to turn off builtin functions.
13778 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13780 # Compiler flag to allow reflexive dlopens.
13781 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13783 # Compiler flag to generate shared objects directly from archives.
13784 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13786 # Compiler flag to generate thread-safe objects.
13787 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13789 # Library versioning type.
13790 version_type=$version_type
13792 # Format of library name prefix.
13793 libname_spec=$lt_libname_spec
13795 # List of archive names. First name is the real one, the rest are links.
13796 # The last name is the one that the linker finds with -lNAME.
13797 library_names_spec=$lt_library_names_spec
13799 # The coded name of the library, if different from the real name.
13800 soname_spec=$lt_soname_spec
13802 # Commands used to build and install an old-style archive.
13804 old_archive_cmds=$lt_old_archive_cmds_CXX
13805 old_postinstall_cmds=$lt_old_postinstall_cmds
13806 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13808 # Create an old-style archive from a shared archive.
13809 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13811 # Create a temporary old-style archive to link instead of a shared archive.
13812 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13814 # Commands used to build and install a shared archive.
13815 archive_cmds=$lt_archive_cmds_CXX
13816 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13817 postinstall_cmds=$lt_postinstall_cmds
13818 postuninstall_cmds=$lt_postuninstall_cmds
13820 # Commands used to build a loadable module (assumed same as above if empty)
13821 module_cmds=$lt_module_cmds_CXX
13822 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13824 # Commands to strip libraries.
13825 old_striplib=$lt_old_striplib
13826 striplib=$lt_striplib
13828 # Dependencies to place before the objects being linked to create a
13830 predep_objects=$lt_predep_objects_CXX
13832 # Dependencies to place after the objects being linked to create a
13834 postdep_objects=$lt_postdep_objects_CXX
13836 # Dependencies to place before the objects being linked to create a
13838 predeps=$lt_predeps_CXX
13840 # Dependencies to place after the objects being linked to create a
13842 postdeps=$lt_postdeps_CXX
13844 # The library search path used internally by the compiler when linking
13845 # a shared library.
13846 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13848 # Method to check whether dependent libraries are shared objects.
13849 deplibs_check_method=$lt_deplibs_check_method
13851 # Command to use when deplibs_check_method == file_magic.
13852 file_magic_cmd=$lt_file_magic_cmd
13854 # Flag that allows shared libraries with undefined symbols to be built.
13855 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13857 # Flag that forces no undefined symbols.
13858 no_undefined_flag=$lt_no_undefined_flag_CXX
13860 # Commands used to finish a libtool library installation in a directory.
13861 finish_cmds=$lt_finish_cmds
13863 # Same as above, but a single script fragment to be evaled but not shown.
13864 finish_eval=$lt_finish_eval
13866 # Take the output of nm and produce a listing of raw symbols and C names.
13867 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13869 # Transform the output of nm in a proper C declaration
13870 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13872 # Transform the output of nm in a C name address pair
13873 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13875 # This is the shared library runtime path variable.
13876 runpath_var=$runpath_var
13878 # This is the shared library path variable.
13879 shlibpath_var=$shlibpath_var
13881 # Is shlibpath searched before the hard-coded library search path?
13882 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13884 # How to hardcode a shared library path into an executable.
13885 hardcode_action=$hardcode_action_CXX
13887 # Whether we should hardcode library paths into libraries.
13888 hardcode_into_libs=$hardcode_into_libs
13890 # Flag to hardcode \$libdir into a binary during linking.
13891 # This must work even if \$libdir does not exist.
13892 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13894 # If ld is used when linking, flag to hardcode \$libdir into
13895 # a binary during linking. This must work even if \$libdir does
13897 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13899 # Whether we need a single -rpath flag with a separated argument.
13900 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13902 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13903 # resulting binary.
13904 hardcode_direct=$hardcode_direct_CXX
13906 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13907 # resulting binary.
13908 hardcode_minus_L=$hardcode_minus_L_CXX
13910 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13911 # the resulting binary.
13912 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13914 # Set to yes if building a shared library automatically hardcodes DIR into the library
13915 # and all subsequent libraries and executables linked against it.
13916 hardcode_automatic=$hardcode_automatic_CXX
13918 # Variables whose values should be saved in libtool wrapper scripts and
13919 # restored at relink time.
13920 variables_saved_for_relink="$variables_saved_for_relink"
13922 # Whether libtool must link a program against all its dependency libraries.
13923 link_all_deplibs=$link_all_deplibs_CXX
13925 # Compile-time system search path for libraries
13926 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13928 # Run-time system search path for libraries
13929 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13931 # Fix the shell variable \$srcfile for the compiler.
13932 fix_srcfile_path=$lt_fix_srcfile_path
13934 # Set to yes if exported symbols are required.
13935 always_export_symbols=$always_export_symbols_CXX
13937 # The commands to list exported symbols.
13938 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13940 # The commands to extract the exported symbol list from a shared archive.
13941 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13943 # Symbols that should not be listed in the preloaded symbols.
13944 exclude_expsyms=$lt_exclude_expsyms_CXX
13946 # Symbols that must always be exported.
13947 include_expsyms=$lt_include_expsyms_CXX
13949 # ### END LIBTOOL TAG CONFIG: $tagname
13955 # If there is no Makefile yet, we rely on a make rule to execute
13956 # `config.status --recheck' to rerun these tests and create the
13957 # libtool script then.
13958 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13959 if test -f "$ltmain_in"; then
13960 test -f Makefile
&& make "$ltmain"
13966 ac_cpp
='$CPP $CPPFLAGS'
13967 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13968 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13969 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13975 with_gnu_ldcxx
=$with_gnu_ld
13976 with_gnu_ld
=$lt_save_with_gnu_ld
13977 lt_cv_path_LDCXX
=$lt_cv_path_LD
13978 lt_cv_path_LD
=$lt_save_path_LD
13979 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
13980 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
13988 if test -n "$F77" && test "X$F77" != "Xno"; then
13991 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13992 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13993 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
13996 archive_cmds_need_lc_F77
=no
13997 allow_undefined_flag_F77
=
13998 always_export_symbols_F77
=no
13999 archive_expsym_cmds_F77
=
14000 export_dynamic_flag_spec_F77
=
14001 hardcode_direct_F77
=no
14002 hardcode_libdir_flag_spec_F77
=
14003 hardcode_libdir_flag_spec_ld_F77
=
14004 hardcode_libdir_separator_F77
=
14005 hardcode_minus_L_F77
=no
14006 hardcode_automatic_F77
=no
14008 module_expsym_cmds_F77
=
14009 link_all_deplibs_F77
=unknown
14010 old_archive_cmds_F77
=$old_archive_cmds
14011 no_undefined_flag_F77
=
14012 whole_archive_flag_spec_F77
=
14013 enable_shared_with_static_runtimes_F77
=no
14015 # Source file extension for f77 test sources.
14018 # Object file extension for compiled f77 test sources.
14022 # Code to be used in simple compile tests
14023 lt_simple_compile_test_code
="\
14029 # Code to be used in simple link tests
14030 lt_simple_link_test_code
="\
14035 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14037 # If no C compiler was specified, use CC.
14040 # If no C compiler flags were specified, use CFLAGS.
14041 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
14043 # Allow CC to be a program name with arguments.
14047 # save warnings/boilerplate of simple test code
14048 ac_outfile
=conftest.
$ac_objext
14049 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
14050 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14051 _lt_compiler_boilerplate
=`cat conftest.err`
14054 ac_outfile
=conftest.
$ac_objext
14055 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
14056 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
14057 _lt_linker_boilerplate
=`cat conftest.err`
14061 # Allow CC to be a program name with arguments.
14066 for cc_temp
in $compiler""; do
14068 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14069 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14074 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14077 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14078 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14079 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14080 echo "${ECHO_T}$can_build_shared" >&6; }
14082 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14083 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14084 test "$can_build_shared" = "no" && enable_shared
=no
14086 # On AIX, shared libraries and static libraries use the same namespace, and
14087 # are all built from PIC.
14090 test "$enable_shared" = yes && enable_static
=no
14091 if test -n "$RANLIB"; then
14092 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
14093 postinstall_cmds
='$RANLIB $lib'
14097 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
14098 test "$enable_shared" = yes && enable_static
=no
14102 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14103 echo "${ECHO_T}$enable_shared" >&6; }
14105 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14106 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14107 # Make sure either enable_shared or enable_static is yes.
14108 test "$enable_shared" = yes || enable_static
=yes
14109 { echo "$as_me:$LINENO: result: $enable_static" >&5
14110 echo "${ECHO_T}$enable_static" >&6; }
14115 lt_prog_compiler_wl_F77
=
14116 lt_prog_compiler_pic_F77
=
14117 lt_prog_compiler_static_F77
=
14119 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14120 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14122 if test "$GCC" = yes; then
14123 lt_prog_compiler_wl_F77
='-Wl,'
14124 lt_prog_compiler_static_F77
='-static'
14128 # All AIX code is PIC.
14129 if test "$host_cpu" = ia64
; then
14130 # AIX 5 now supports IA64 processor
14131 lt_prog_compiler_static_F77
='-Bstatic'
14136 # FIXME: we need at least 68020 code to build shared libraries, but
14137 # adding the `-m68020' flag to GCC prevents building anything better,
14139 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
14142 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
14143 # PIC is the default for these OSes.
14146 mingw
* | cygwin
* | pw32
* | os2
*)
14147 # This hack is so that the source file can tell whether it is being
14148 # built for inclusion in a dll (and should export symbols for example).
14149 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14150 # (--disable-auto-import) libraries
14151 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14154 darwin
* | rhapsody
*)
14155 # PIC is the default on this platform
14156 # Common symbols not allowed in MH_DYLIB files
14157 lt_prog_compiler_pic_F77
='-fno-common'
14161 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14162 # Instead, we relocate shared libraries at runtime.
14166 # Just because we use GCC doesn't mean we suddenly get shared libraries
14167 # on systems that don't support them.
14168 lt_prog_compiler_can_build_shared_F77
=no
14173 if test -d /usr
/nec
; then
14174 lt_prog_compiler_pic_F77
=-Kconform_pic
14179 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14180 # not for PA HP-UX.
14186 lt_prog_compiler_pic_F77
='-fPIC'
14192 lt_prog_compiler_pic_F77
='-fPIC'
14196 # PORTME Check for flag to pass linker flags through the system compiler.
14199 lt_prog_compiler_wl_F77
='-Wl,'
14200 if test "$host_cpu" = ia64
; then
14201 # AIX 5 now supports IA64 processor
14202 lt_prog_compiler_static_F77
='-Bstatic'
14204 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
14208 # PIC is the default on this platform
14209 # Common symbols not allowed in MH_DYLIB files
14210 case $cc_basename in
14212 lt_prog_compiler_pic_F77
='-qnocommon'
14213 lt_prog_compiler_wl_F77
='-Wl,'
14218 mingw
* | cygwin
* | pw32
* | os2
*)
14219 # This hack is so that the source file can tell whether it is being
14220 # built for inclusion in a dll (and should export symbols for example).
14221 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
14224 hpux9
* | hpux10
* | hpux11
*)
14225 lt_prog_compiler_wl_F77
='-Wl,'
14226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14227 # not for PA HP-UX.
14233 lt_prog_compiler_pic_F77
='+Z'
14236 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14237 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
14240 irix5
* | irix6
* | nonstopux
*)
14241 lt_prog_compiler_wl_F77
='-Wl,'
14242 # PIC (with -KPIC) is the default.
14243 lt_prog_compiler_static_F77
='-non_shared'
14247 lt_prog_compiler_pic_F77
='-KPIC'
14248 lt_prog_compiler_static_F77
='-Bstatic'
14251 linux
* | k
*bsd
*-gnu)
14252 case $cc_basename in
14254 lt_prog_compiler_wl_F77
='-Wl,'
14255 lt_prog_compiler_pic_F77
='-KPIC'
14256 lt_prog_compiler_static_F77
='-static'
14258 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
14259 # Portland Group compilers (*not* the Pentium gcc compiler,
14260 # which looks to be a dead project)
14261 lt_prog_compiler_wl_F77
='-Wl,'
14262 lt_prog_compiler_pic_F77
='-fpic'
14263 lt_prog_compiler_static_F77
='-Bstatic'
14266 lt_prog_compiler_wl_F77
='-Wl,'
14267 # All Alpha code is PIC.
14268 lt_prog_compiler_static_F77
='-non_shared'
14271 case `$CC -V 2>&1 | sed 5q` in
14274 lt_prog_compiler_pic_F77
='-KPIC'
14275 lt_prog_compiler_static_F77
='-Bstatic'
14276 lt_prog_compiler_wl_F77
='-Wl,'
14279 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14280 lt_prog_compiler_pic_F77
='-KPIC'
14281 lt_prog_compiler_static_F77
='-Bstatic'
14282 lt_prog_compiler_wl_F77
=''
14289 osf3
* | osf4
* | osf5
*)
14290 lt_prog_compiler_wl_F77
='-Wl,'
14291 # All OSF/1 code is PIC.
14292 lt_prog_compiler_static_F77
='-non_shared'
14296 lt_prog_compiler_static_F77
='-non_shared'
14300 lt_prog_compiler_pic_F77
='-KPIC'
14301 lt_prog_compiler_static_F77
='-Bstatic'
14302 case $cc_basename in
14303 f77
* | f90
* | f95
*)
14304 lt_prog_compiler_wl_F77
='-Qoption ld ';;
14306 lt_prog_compiler_wl_F77
='-Wl,';;
14311 lt_prog_compiler_wl_F77
='-Qoption ld '
14312 lt_prog_compiler_pic_F77
='-PIC'
14313 lt_prog_compiler_static_F77
='-Bstatic'
14316 sysv4 | sysv4.2uw2
* | sysv4.3
*)
14317 lt_prog_compiler_wl_F77
='-Wl,'
14318 lt_prog_compiler_pic_F77
='-KPIC'
14319 lt_prog_compiler_static_F77
='-Bstatic'
14323 if test -d /usr
/nec
;then
14324 lt_prog_compiler_pic_F77
='-Kconform_pic'
14325 lt_prog_compiler_static_F77
='-Bstatic'
14329 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
14330 lt_prog_compiler_wl_F77
='-Wl,'
14331 lt_prog_compiler_pic_F77
='-KPIC'
14332 lt_prog_compiler_static_F77
='-Bstatic'
14336 lt_prog_compiler_wl_F77
='-Wl,'
14337 lt_prog_compiler_can_build_shared_F77
=no
14341 lt_prog_compiler_pic_F77
='-pic'
14342 lt_prog_compiler_static_F77
='-Bstatic'
14346 lt_prog_compiler_can_build_shared_F77
=no
14351 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14352 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14355 # Check to make sure the PIC flag actually works.
14357 if test -n "$lt_prog_compiler_pic_F77"; then
14359 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14360 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14361 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14362 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 lt_prog_compiler_pic_works_F77
=no
14365 ac_outfile
=conftest.
$ac_objext
14366 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14367 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
14368 # Insert the option either (1) after the last *FLAGS variable, or
14369 # (2) before a word containing "conftest.", or (3) at the end.
14370 # Note that $ac_compile itself does not contain backslashes and begins
14371 # with a dollar sign (not a hyphen), so the echo should work correctly.
14372 # The option is referenced via a variable to avoid confusing sed.
14373 lt_compile
=`echo "$ac_compile" | $SED \
14374 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14375 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14376 -e 's:$: $lt_compiler_flag:'`
14377 (eval echo "\"\$as_me:14377: $lt_compile\"" >&5)
14378 (eval "$lt_compile" 2>conftest.err
)
14380 cat conftest.err
>&5
14381 echo "$as_me:14381: \$? = $ac_status" >&5
14382 if (exit $ac_status) && test -s "$ac_outfile"; then
14383 # The compiler can only warn and ignore the option if not recognized
14384 # So say no if there are warnings other than the usual output.
14385 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
14386 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14387 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
14388 lt_prog_compiler_pic_works_F77
=yes
14394 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14395 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; }
14397 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
14398 case $lt_prog_compiler_pic_F77 in
14400 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
14403 lt_prog_compiler_pic_F77
=
14404 lt_prog_compiler_can_build_shared_F77
=no
14409 # For platforms which do not support PIC, -DPIC is meaningless:
14411 lt_prog_compiler_pic_F77
=
14414 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
14419 # Check to make sure the static flag actually works.
14421 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
14422 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14423 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14424 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14425 echo $ECHO_N "(cached) $ECHO_C" >&6
14427 lt_prog_compiler_static_works_F77
=no
14428 save_LDFLAGS
="$LDFLAGS"
14429 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
14430 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
14431 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
14432 # The linker can only warn and ignore the option if not recognized
14433 # So say no if there are warnings
14434 if test -s conftest.err
; then
14435 # Append any errors to the config.log.
14436 cat conftest.err
1>&5
14437 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
14438 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
14439 if diff conftest.exp conftest.er2
>/dev
/null
; then
14440 lt_prog_compiler_static_works_F77
=yes
14443 lt_prog_compiler_static_works_F77
=yes
14447 LDFLAGS
="$save_LDFLAGS"
14450 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14451 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; }
14453 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
14456 lt_prog_compiler_static_F77
=
14460 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14461 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14462 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 lt_cv_prog_compiler_c_o_F77
=no
14466 $rm -r conftest
2>/dev
/null
14470 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
14472 lt_compiler_flag
="-o out/conftest2.$ac_objext"
14473 # Insert the option either (1) after the last *FLAGS variable, or
14474 # (2) before a word containing "conftest.", or (3) at the end.
14475 # Note that $ac_compile itself does not contain backslashes and begins
14476 # with a dollar sign (not a hyphen), so the echo should work correctly.
14477 lt_compile
=`echo "$ac_compile" | $SED \
14478 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14480 -e 's:$: $lt_compiler_flag:'`
14481 (eval echo "\"\$as_me:14481: $lt_compile\"" >&5)
14482 (eval "$lt_compile" 2>out
/conftest.err
)
14484 cat out
/conftest.err
>&5
14485 echo "$as_me:14485: \$? = $ac_status" >&5
14486 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
14488 # The compiler can only warn and ignore the option if not recognized
14489 # So say no if there are warnings
14490 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
14491 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
14492 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
14493 lt_cv_prog_compiler_c_o_F77
=yes
14498 # SGI C++ compiler will create directory out/ii_files/ for
14499 # template instantiation
14500 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
14501 $rm out
/* && rmdir out
14507 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14508 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14511 hard_links
="nottested"
14512 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
14513 # do not overwrite the value of need_locks provided by the user
14514 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14515 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14518 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14520 ln conftest.a conftest.b
2>&5 || hard_links
=no
14521 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
14522 { echo "$as_me:$LINENO: result: $hard_links" >&5
14523 echo "${ECHO_T}$hard_links" >&6; }
14524 if test "$hard_links" = no
; then
14525 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14533 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14534 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14537 allow_undefined_flag_F77
=
14538 enable_shared_with_static_runtimes_F77
=no
14540 archive_expsym_cmds_F77
=
14541 old_archive_From_new_cmds_F77
=
14542 old_archive_from_expsyms_cmds_F77
=
14543 export_dynamic_flag_spec_F77
=
14544 whole_archive_flag_spec_F77
=
14545 thread_safe_flag_spec_F77
=
14546 hardcode_libdir_flag_spec_F77
=
14547 hardcode_libdir_flag_spec_ld_F77
=
14548 hardcode_libdir_separator_F77
=
14549 hardcode_direct_F77
=no
14550 hardcode_minus_L_F77
=no
14551 hardcode_shlibpath_var_F77
=unsupported
14552 link_all_deplibs_F77
=unknown
14553 hardcode_automatic_F77
=no
14555 module_expsym_cmds_F77
=
14556 always_export_symbols_F77
=no
14557 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14558 # include_expsyms should be a list of space-separated symbols to be *always*
14559 # included in the symbol list
14560 include_expsyms_F77
=
14561 # exclude_expsyms can be an extended regexp of symbols to exclude
14562 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14563 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14564 # as well as any symbol that contains `d'.
14565 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
14566 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14567 # platforms (ab)use it in PIC code, but their linkers get confused if
14568 # the symbol is explicitly referenced. Since portable code cannot
14569 # rely on this symbol name, it's probably fine to never include it in
14570 # preloaded symbol tables.
14571 extract_expsyms_cmds
=
14572 # Just being paranoid about ensuring that cc_basename is set.
14573 for cc_temp
in $compiler""; do
14575 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
14576 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
14581 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14584 cygwin
* | mingw
* | pw32
*)
14585 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14586 # When not using gcc, we currently assume that we are using
14587 # Microsoft Visual C++.
14588 if test "$GCC" != yes; then
14593 # we just hope/assume this is gcc and not c89 (= MSVC++)
14602 if test "$with_gnu_ld" = yes; then
14603 # If archive_cmds runs LD, not CC, wlarc should be empty
14606 # Set some defaults for GNU ld with shared library support. These
14607 # are reset later if shared libraries are not supported. Putting them
14608 # here allows them to be overridden if necessary.
14609 runpath_var
=LD_RUN_PATH
14610 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
14611 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
14612 # ancient GNU ld didn't support --whole-archive et. al.
14613 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
14614 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14616 whole_archive_flag_spec_F77
=
14618 supports_anon_versioning
=no
14619 case `$LD -v 2>/dev/null` in
14620 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
14621 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
14622 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
14623 *\
2.11.
*) ;; # other 2.11 versions
14624 *) supports_anon_versioning
=yes ;;
14627 # See if GNU ld supports shared libraries.
14629 aix3
* | aix4
* | aix5
*)
14630 # On AIX/PPC, the GNU linker is very broken
14631 if test "$host_cpu" != ia64
; then
14635 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14636 *** to be unable to reliably create shared libraries on AIX.
14637 *** Therefore, libtool is disabling shared libraries support. If you
14638 *** really care for shared libraries, you may want to modify your PATH
14639 *** so that a non-GNU linker is found, and then restart.
14646 archive_cmds_F77
='$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)'
14647 hardcode_libdir_flag_spec_F77
='-L$libdir'
14648 hardcode_minus_L_F77
=yes
14650 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14651 # that the semantics of dynamic libraries on AmigaOS, at least up
14652 # to version 4, is to share data among multiple programs linked
14653 # with the same dynamic library. Since this doesn't match the
14654 # behavior of shared libraries on other platforms, we can't use
14660 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14661 allow_undefined_flag_F77
=unsupported
14662 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14663 # support --undefined. This deserves some investigation. FIXME
14664 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14670 cygwin
* | mingw
* | pw32
*)
14671 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14672 # as there is no search path for DLLs.
14673 hardcode_libdir_flag_spec_F77
='-L$libdir'
14674 allow_undefined_flag_F77
=unsupported
14675 always_export_symbols_F77
=no
14676 enable_shared_with_static_runtimes_F77
=yes
14677 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14679 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
14680 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14681 # If the export-symbols file already is a .def file (1st line
14682 # is EXPORTS), use it as is; otherwise, prepend...
14683 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14684 cp $export_symbols $output_objdir/$soname.def;
14686 echo EXPORTS > $output_objdir/$soname.def;
14687 cat $export_symbols >> $output_objdir/$soname.def;
14689 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14696 hardcode_direct_F77
=no
14697 hardcode_shlibpath_var_F77
=no
14698 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
14699 export_dynamic_flag_spec_F77
='${wl}-E'
14700 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14701 # Instead, shared libraries are loaded at an image base (0x10000000 by
14702 # default) and relocated if they conflict, which is a slow very memory
14703 # consuming and fragmenting process. To avoid this, we pick a random,
14704 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14705 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14706 archive_cmds_F77
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14707 archive_expsym_cmds_F77
='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'
14710 gnu
* | linux
* | k
*bsd
*-gnu)
14711 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14713 case $cc_basename,$host_cpu in
14714 pgcc
*) # Portland Group C compiler
14715 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14716 tmp_addflag
=' $pic_flag'
14718 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
14719 whole_archive_flag_spec_F77
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14720 tmp_addflag
=' $pic_flag -Mnomain' ;;
14721 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
14722 tmp_addflag
=' -i_dynamic' ;;
14723 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
14724 tmp_addflag
=' -i_dynamic -nofor_main' ;;
14725 ifc
* | ifort
*) # Intel Fortran compiler
14726 tmp_addflag
=' -nofor_main' ;;
14728 case `$CC -V 2>&1 | sed 5q` in
14729 *Sun\ C
*) # Sun C 5.9
14730 whole_archive_flag_spec_F77
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14731 tmp_sharedflag
='-G' ;;
14732 *Sun\ F
*) # Sun Fortran 8.3
14733 tmp_sharedflag
='-G' ;;
14735 tmp_sharedflag
='-shared' ;;
14737 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14739 if test $supports_anon_versioning = yes; then
14740 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
14741 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14742 $echo "local: *; };" >> $output_objdir/$libname.ver~
14743 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14751 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14752 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14755 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14756 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14761 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
14765 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14766 *** create shared libraries on Solaris systems. Therefore, libtool
14767 *** is disabling shared libraries support. We urge you to upgrade GNU
14768 *** binutils to release 2.9.1 or newer. Another option is to modify
14769 *** your PATH or compiler configuration so that the native linker is
14770 *** used, and then restart.
14773 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14774 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14775 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14781 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
14782 case `$LD -v 2>&1` in
14783 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
14787 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14788 *** reliably create shared libraries on SCO systems. Therefore, libtool
14789 *** is disabling shared libraries support. We urge you to upgrade GNU
14790 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14791 *** your PATH or compiler configuration so that the native linker is
14792 *** used, and then restart.
14797 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14798 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14799 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14800 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14809 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14811 hardcode_direct_F77
=yes
14812 hardcode_shlibpath_var_F77
=no
14816 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
14817 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14818 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14825 if test "$ld_shlibs_F77" = no
; then
14827 hardcode_libdir_flag_spec_F77
=
14828 export_dynamic_flag_spec_F77
=
14829 whole_archive_flag_spec_F77
=
14832 # PORTME fill in a description of your system's linker (not GNU ld)
14835 allow_undefined_flag_F77
=unsupported
14836 always_export_symbols_F77
=yes
14837 archive_expsym_cmds_F77
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14838 # Note: this linker hardcodes the directories in LIBPATH if there
14839 # are no directories specified by -L.
14840 hardcode_minus_L_F77
=yes
14841 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14842 # Neither direct hardcoding nor static linking is supported with a
14844 hardcode_direct_F77
=unsupported
14849 if test "$host_cpu" = ia64
; then
14850 # On IA64, the linker does run time linking by default, so we don't
14851 # have to do anything special.
14852 aix_use_runtimelinking
=no
14853 exp_sym_flag
='-Bexport'
14856 # If we're using GNU nm, then we don't want the "-C" option.
14857 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14858 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
14859 export_symbols_cmds_F77
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14861 export_symbols_cmds_F77
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14863 aix_use_runtimelinking
=no
14865 # Test if we are trying to use run time linking or normal
14866 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14867 # need to do runtime linking.
14868 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
14869 for ld_flag
in $LDFLAGS; do
14870 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
14871 aix_use_runtimelinking
=yes
14878 exp_sym_flag
='-bexport'
14879 no_entry_flag
='-bnoentry'
14882 # When large executables or shared objects are built, AIX ld can
14883 # have problems creating the table of contents. If linking a library
14884 # or program results in "error TOC overflow" add -mminimal-toc to
14885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14888 archive_cmds_F77
=''
14889 hardcode_direct_F77
=yes
14890 hardcode_libdir_separator_F77
=':'
14891 link_all_deplibs_F77
=yes
14893 if test "$GCC" = yes; then
14894 case $host_os in aix4.
[012]|aix4.
[012].
*)
14895 # We only want to do this on AIX 4.2 and lower, the check
14896 # below for broken collect2 doesn't work under 4.3+
14897 collect2name
=`${CC} -print-prog-name=collect2`
14898 if test -f "$collect2name" && \
14899 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
14901 # We have reworked collect2
14904 # We have old collect2
14905 hardcode_direct_F77
=unsupported
14906 # It fails to find uninstalled libraries when the uninstalled
14907 # path is not listed in the libpath. Setting hardcode_minus_L
14908 # to unsupported forces relinking
14909 hardcode_minus_L_F77
=yes
14910 hardcode_libdir_flag_spec_F77
='-L$libdir'
14911 hardcode_libdir_separator_F77
=
14915 shared_flag
='-shared'
14916 if test "$aix_use_runtimelinking" = yes; then
14917 shared_flag
="$shared_flag "'${wl}-G'
14921 if test "$host_cpu" = ia64
; then
14922 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14923 # chokes on -Wl,-G. The following line is correct:
14926 if test "$aix_use_runtimelinking" = yes; then
14927 shared_flag
='${wl}-G'
14929 shared_flag
='${wl}-bM:SRE'
14934 # It seems that -bexpall does not export symbols beginning with
14935 # underscore (_), so it is better to generate a list of symbols to export.
14936 always_export_symbols_F77
=yes
14937 if test "$aix_use_runtimelinking" = yes; then
14938 # Warning - without using the other runtime loading flags (-brtl),
14939 # -berok will link without error, but may produce a broken library.
14940 allow_undefined_flag_F77
='-berok'
14941 # Determine the default libpath from the value encoded in an empty executable.
14942 cat >conftest.
$ac_ext <<_ACEOF
14947 rm -f conftest.
$ac_objext conftest
$ac_exeext
14948 if { (ac_try
="$ac_link"
14949 case "(($ac_try" in
14950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14951 *) ac_try_echo=$ac_try;;
14953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14954 (eval "$ac_link") 2>conftest.er1
14956 grep -v '^ *+' conftest.er1 >conftest.err
14958 cat conftest.err >&5
14959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14960 (exit $ac_status); } && {
14961 test -z "$ac_f77_werror_flag" ||
14962 test ! -s conftest.err
14963 } && test -s conftest$ac_exeext &&
14964 $as_test_x conftest$ac_exeext; then
14966 lt_aix_libpath_sed='
14967 /Import File Strings/,/^$/ {
14973 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14974 # Check for a 64-bit object if we didn't find anything.
14975 if test -z "$aix_libpath"; then
14976 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
14979 echo "$as_me: failed program was:" >&5
14980 sed 's/^/| /' conftest.$ac_ext >&5
14985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14986 conftest$ac_exeext conftest.$ac_ext
14987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14990 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14992 if test "$host_cpu" = ia64; then
14993 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14994 allow_undefined_flag_F77="-z nodefs"
14995 archive_expsym_cmds_F77="\$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"
14997 # Determine the default libpath from the value encoded in an empty executable.
14998 cat >conftest.$ac_ext <<_ACEOF
15003 rm -f conftest.$ac_objext conftest$ac_exeext
15004 if { (ac_try="$ac_link"
15005 case "(($ac_try" in
15006 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15007 *) ac_try_echo
=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_link") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1
>conftest.err
15014 cat conftest.err
>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } && {
15017 test -z "$ac_f77_werror_flag" ||
15018 test ! -s conftest.err
15019 } && test -s conftest
$ac_exeext &&
15020 $as_test_x conftest
$ac_exeext; then
15022 lt_aix_libpath_sed
='
15023 /Import File Strings/,/^$/ {
15029 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15030 # Check for a 64-bit object if we didn't find anything.
15031 if test -z "$aix_libpath"; then
15032 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15042 conftest
$ac_exeext conftest.
$ac_ext
15043 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
15045 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
15046 # Warning - without using the other run time loading flags,
15047 # -berok will link without error, but may produce a broken library.
15048 no_undefined_flag_F77
=' ${wl}-bernotok'
15049 allow_undefined_flag_F77
=' ${wl}-berok'
15050 # Exported symbols can be pulled into shared objects from archives
15051 whole_archive_flag_spec_F77
='$convenience'
15052 archive_cmds_need_lc_F77
=yes
15053 # This is similar to how AIX traditionally builds its shared libraries.
15054 archive_expsym_cmds_F77
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15060 archive_cmds_F77
='$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)'
15061 hardcode_libdir_flag_spec_F77
='-L$libdir'
15062 hardcode_minus_L_F77
=yes
15063 # see comment about different semantics on the GNU ld section
15068 export_dynamic_flag_spec_F77
=-rdynamic
15071 cygwin
* | mingw
* | pw32
*)
15072 # When not using gcc, we currently assume that we are using
15073 # Microsoft Visual C++.
15074 # hardcode_libdir_flag_spec is actually meaningless, as there is
15075 # no search path for DLLs.
15076 hardcode_libdir_flag_spec_F77
=' '
15077 allow_undefined_flag_F77
=unsupported
15078 # Tell ltmain to make .lib files, not .a files.
15080 # Tell ltmain to make .dll files, not .so files.
15082 # FIXME: Setting linknames here is a bad hack.
15083 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15084 # The linker will automatically build a .lib file if we build a DLL.
15085 old_archive_From_new_cmds_F77
='true'
15086 # FIXME: Should let the user specify the lib program.
15087 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
15088 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
15089 enable_shared_with_static_runtimes_F77
=yes
15092 darwin
* | rhapsody
*)
15094 rhapsody
* | darwin1.
[012])
15095 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
15098 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15099 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15101 case ${MACOSX_DEPLOYMENT_TARGET} in
15103 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15106 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
15112 archive_cmds_need_lc_F77
=no
15113 hardcode_direct_F77
=no
15114 hardcode_automatic_F77
=yes
15115 hardcode_shlibpath_var_F77
=unsupported
15116 whole_archive_flag_spec_F77
=''
15117 link_all_deplibs_F77
=yes
15118 if test "$GCC" = yes ; then
15119 output_verbose_link_cmd
='echo'
15120 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15121 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15122 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15123 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15124 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15126 case $cc_basename in
15128 output_verbose_link_cmd
='echo'
15129 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15130 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15132 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15133 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15143 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15144 hardcode_libdir_flag_spec_F77
='-L$libdir'
15145 hardcode_shlibpath_var_F77
=no
15152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15153 # support. Future versions do this automatically, but an explicit c++rt0.o
15154 # does not break anything, and helps significantly (at the cost of a little
15157 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15158 hardcode_libdir_flag_spec_F77
='-R$libdir'
15159 hardcode_direct_F77
=yes
15160 hardcode_shlibpath_var_F77
=no
15163 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15165 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15166 hardcode_direct_F77
=yes
15167 hardcode_minus_L_F77
=yes
15168 hardcode_shlibpath_var_F77
=no
15171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15172 freebsd
* | dragonfly
*)
15173 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15174 hardcode_libdir_flag_spec_F77
='-R$libdir'
15175 hardcode_direct_F77
=yes
15176 hardcode_shlibpath_var_F77
=no
15180 if test "$GCC" = yes; then
15181 archive_cmds_F77
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15183 archive_cmds_F77
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15185 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15186 hardcode_libdir_separator_F77
=:
15187 hardcode_direct_F77
=yes
15189 # hardcode_minus_L: Not really in the search PATH,
15190 # but as the default location of the library.
15191 hardcode_minus_L_F77
=yes
15192 export_dynamic_flag_spec_F77
='${wl}-E'
15196 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15197 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15199 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15201 if test "$with_gnu_ld" = no
; then
15202 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15203 hardcode_libdir_separator_F77
=:
15205 hardcode_direct_F77
=yes
15206 export_dynamic_flag_spec_F77
='${wl}-E'
15208 # hardcode_minus_L: Not really in the search PATH,
15209 # but as the default location of the library.
15210 hardcode_minus_L_F77
=yes
15215 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
15218 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15221 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15224 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15230 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15233 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15236 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15240 if test "$with_gnu_ld" = no
; then
15241 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
15242 hardcode_libdir_separator_F77
=:
15246 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
15247 hardcode_direct_F77
=no
15248 hardcode_shlibpath_var_F77
=no
15251 hardcode_direct_F77
=yes
15252 export_dynamic_flag_spec_F77
='${wl}-E'
15254 # hardcode_minus_L: Not really in the search PATH,
15255 # but as the default location of the library.
15256 hardcode_minus_L_F77
=yes
15262 irix5
* | irix6
* | nonstopux
*)
15263 if test "$GCC" = yes; then
15264 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15266 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15267 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
15269 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15270 hardcode_libdir_separator_F77
=:
15271 link_all_deplibs_F77
=yes
15275 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15276 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15278 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15280 hardcode_libdir_flag_spec_F77
='-R$libdir'
15281 hardcode_direct_F77
=yes
15282 hardcode_shlibpath_var_F77
=no
15286 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15287 hardcode_direct_F77
=yes
15288 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15289 hardcode_libdir_separator_F77
=:
15290 hardcode_shlibpath_var_F77
=no
15294 if test -f /usr
/libexec
/ld.so
; then
15295 hardcode_direct_F77
=yes
15296 hardcode_shlibpath_var_F77
=no
15297 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15298 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15299 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15300 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15301 export_dynamic_flag_spec_F77
='${wl}-E'
15304 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
15305 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15306 hardcode_libdir_flag_spec_F77
='-R$libdir'
15309 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15310 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
15320 hardcode_libdir_flag_spec_F77
='-L$libdir'
15321 hardcode_minus_L_F77
=yes
15322 allow_undefined_flag_F77
=unsupported
15323 archive_cmds_F77
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
15324 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15328 if test "$GCC" = yes; then
15329 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15330 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15332 allow_undefined_flag_F77
=' -expect_unresolved \*'
15333 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15335 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15336 hardcode_libdir_separator_F77
=:
15339 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
15340 if test "$GCC" = yes; then
15341 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
15342 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15343 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
15345 allow_undefined_flag_F77
=' -expect_unresolved \*'
15346 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
15347 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
15348 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
15350 # Both c and cxx compiler support -rpath directly
15351 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
15353 hardcode_libdir_separator_F77
=:
15357 no_undefined_flag_F77
=' -z text'
15358 if test "$GCC" = yes; then
15360 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15361 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15362 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15365 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15366 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15369 hardcode_libdir_flag_spec_F77
='-R$libdir'
15370 hardcode_shlibpath_var_F77
=no
15372 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
15374 # The compiler driver will combine and reorder linker options,
15375 # but understands `-z linker_flag'. GCC discards it without `$wl',
15376 # but is careful enough not to reorder.
15377 # Supported since Solaris 2.6 (maybe 2.5.1?)
15378 if test "$GCC" = yes; then
15379 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15381 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
15385 link_all_deplibs_F77
=yes
15389 if test "x$host_vendor" = xsequent
; then
15390 # Use $CC to link under sequent, because it throws in some extra .o
15391 # files that make .init and .fini sections work.
15392 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15394 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15396 hardcode_libdir_flag_spec_F77
='-L$libdir'
15397 hardcode_direct_F77
=yes
15398 hardcode_minus_L_F77
=yes
15399 hardcode_shlibpath_var_F77
=no
15403 case $host_vendor in
15405 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15406 hardcode_direct_F77
=yes # is this really true???
15409 ## LD is ld it makes a PLAMLIB
15410 ## CC just makes a GrossModule.
15411 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15412 reload_cmds_F77
='$CC -r -o $output$reload_objs'
15413 hardcode_direct_F77
=no
15416 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15417 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
15420 runpath_var
='LD_RUN_PATH'
15421 hardcode_shlibpath_var_F77
=no
15425 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_shlibpath_var_F77
=no
15427 export_dynamic_flag_spec_F77
='-Bexport'
15431 if test -d /usr
/nec
; then
15432 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15433 hardcode_shlibpath_var_F77
=no
15434 runpath_var
=LD_RUN_PATH
15435 hardcode_runpath_var
=yes
15440 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
15441 no_undefined_flag_F77
='${wl}-z,text'
15442 archive_cmds_need_lc_F77
=no
15443 hardcode_shlibpath_var_F77
=no
15444 runpath_var
='LD_RUN_PATH'
15446 if test "$GCC" = yes; then
15447 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15448 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15450 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15451 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15455 sysv5
* | sco3.2v5
* | sco5v6
*)
15456 # Note: We can NOT use -z defs as we might desire, because we do not
15457 # link with -lc, and that would cause any symbols used from libc to
15458 # always be unresolved, which means just about no library would
15459 # ever link correctly. If we're not using GNU ld we use -z text
15460 # though, which does catch some bad symbols but isn't as heavy-handed
15462 no_undefined_flag_F77
='${wl}-z,text'
15463 allow_undefined_flag_F77
='${wl}-z,nodefs'
15464 archive_cmds_need_lc_F77
=no
15465 hardcode_shlibpath_var_F77
=no
15466 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15467 hardcode_libdir_separator_F77
=':'
15468 link_all_deplibs_F77
=yes
15469 export_dynamic_flag_spec_F77
='${wl}-Bexport'
15470 runpath_var
='LD_RUN_PATH'
15472 if test "$GCC" = yes; then
15473 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15474 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15482 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec_F77
='-L$libdir'
15484 hardcode_shlibpath_var_F77
=no
15493 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15494 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15495 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
15498 # Do we need to explicitly link libc?
15500 case "x$archive_cmds_need_lc_F77" in
15502 # Assume -lc should be added
15503 archive_cmds_need_lc_F77
=yes
15505 if test "$enable_shared" = yes && test "$GCC" = yes; then
15506 case $archive_cmds_F77 in
15508 # FIXME: we may have to deal with multi-command sequences.
15511 # Test whether the compiler implicitly links with -lc since on some
15512 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15513 # to ld, don't add -lc before -lgcc.
15514 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15515 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15517 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
15519 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15520 (eval $ac_compile) 2>&5
15522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15523 (exit $ac_status); } 2>conftest.err
; then
15526 libobjs
=conftest.
$ac_objext
15528 wl
=$lt_prog_compiler_wl_F77
15529 pic_flag
=$lt_prog_compiler_pic_F77
15535 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
15536 allow_undefined_flag_F77
=
15537 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15538 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
15540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); }
15543 archive_cmds_need_lc_F77
=no
15545 archive_cmds_need_lc_F77
=yes
15547 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
15549 cat conftest.err
1>&5
15552 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15553 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15560 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15561 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15562 library_names_spec
=
15563 libname_spec
='lib$name'
15567 postuninstall_cmds
=
15571 shlibpath_overrides_runpath
=unknown
15573 dynamic_linker
="$host_os ld.so"
15574 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
15576 need_lib_prefix
=unknown
15577 hardcode_into_libs
=no
15579 # when you set need_version to no, make sure it does not cause -set_version
15580 # flags to be left without arguments
15581 need_version
=unknown
15586 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
15587 shlibpath_var
=LIBPATH
15589 # AIX 3 has no versioning support, so we append a major version to the name.
15590 soname_spec
='${libname}${release}${shared_ext}$major'
15597 hardcode_into_libs
=yes
15598 if test "$host_cpu" = ia64
; then
15599 # AIX 5 supports IA64
15600 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15601 shlibpath_var
=LD_LIBRARY_PATH
15603 # With GCC up to 2.95.x, collect2 would create an import file
15604 # for dependence libraries. The import file would start with
15605 # the line `#! .'. This would cause the generated library to
15606 # depend on `.', always an invalid library. This was fixed in
15607 # development snapshots of GCC prior to 3.0.
15609 aix4 | aix4.
[01] | aix4.
[01].
*)
15610 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15612 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
15615 can_build_shared
=no
15619 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15620 # soname into executable. Probably we can add versioning support to
15621 # collect2, so additional links can be useful in future.
15622 if test "$aix_use_runtimelinking" = yes; then
15623 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15624 # instead of lib<name>.a to let people know that these are not
15625 # typical AIX shared libraries.
15626 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15628 # We preserve .a as extension for shared libraries through AIX4.2
15629 # and later when we are not doing run time linking.
15630 library_names_spec
='${libname}${release}.a $libname.a'
15631 soname_spec
='${libname}${release}${shared_ext}$major'
15633 shlibpath_var
=LIBPATH
15638 library_names_spec
='$libname.ixlibrary $libname.a'
15639 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15640 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15644 library_names_spec
='${libname}${shared_ext}'
15645 dynamic_linker
="$host_os ld.so"
15646 shlibpath_var
=LIBRARY_PATH
15652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15653 soname_spec
='${libname}${release}${shared_ext}$major'
15654 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
15655 shlibpath_var
=LD_LIBRARY_PATH
15656 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15657 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
15658 # the default ld.so.conf also contains /usr/contrib/lib and
15659 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15660 # libtool to hard-code these into programs
15663 cygwin
* | mingw
* | pw32
*)
15664 version_type
=windows
15669 case $GCC,$host_os in
15670 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
15671 library_names_spec
='$libname.dll.a'
15672 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15673 postinstall_cmds
='base_file=`basename \${file}`~
15674 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15675 dldir=$destdir/`dirname \$dlpath`~
15676 test -d \$dldir || mkdir -p \$dldir~
15677 $install_prog $dir/$dlname \$dldir/$dlname~
15678 chmod a+x \$dldir/$dlname'
15679 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15680 dlpath=$dir/\$dldll~
15682 shlibpath_overrides_runpath
=yes
15686 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15687 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15688 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
15691 # MinGW DLLs use traditional 'lib' prefix
15692 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15693 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15694 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
15695 # It is most probably a Windows format PATH printed by
15696 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15697 # path with ; separators, and with drive letters. We can handle the
15698 # drive letters (cygwin fileutils understands them), so leave them,
15699 # especially as we might pass files found there to a mingw objdump,
15700 # which wouldn't understand a cygwinified path. Ahh.
15701 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15703 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15707 # pw32 DLLs use 'pw' prefix rather than 'lib'
15708 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15714 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15717 dynamic_linker
='Win32 ld.exe'
15718 # FIXME: first we should search . and the directory the executable is in
15722 darwin
* | rhapsody
*)
15723 dynamic_linker
="$host_os dyld"
15724 version_type
=darwin
15727 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15728 soname_spec
='${libname}${release}${major}$shared_ext'
15729 shlibpath_overrides_runpath
=yes
15730 shlibpath_var
=DYLD_LIBRARY_PATH
15731 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
15733 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
15740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15741 soname_spec
='${libname}${release}${shared_ext}$major'
15742 shlibpath_var
=LD_LIBRARY_PATH
15749 freebsd
* | dragonfly
*)
15750 # DragonFly does not have aout. When/if they implement a new
15751 # versioning mechanism, adjust this.
15752 if test -x /usr
/bin
/objformat
; then
15753 objformat
=`/usr/bin/objformat`
15756 freebsd
[123]*) objformat
=aout
;;
15757 *) objformat
=elf
;;
15760 version_type
=freebsd-
$objformat
15761 case $version_type in
15763 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15768 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15772 shlibpath_var
=LD_LIBRARY_PATH
15775 shlibpath_overrides_runpath
=yes
15777 freebsd3.
[01]* | freebsdelf3.
[01]*)
15778 shlibpath_overrides_runpath
=yes
15779 hardcode_into_libs
=yes
15781 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
15782 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
15783 shlibpath_overrides_runpath
=no
15784 hardcode_into_libs
=yes
15786 *) # from 4.6 on, and DragonFly
15787 shlibpath_overrides_runpath
=yes
15788 hardcode_into_libs
=yes
15797 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15798 soname_spec
='${libname}${release}${shared_ext}$major'
15799 shlibpath_var
=LD_LIBRARY_PATH
15800 hardcode_into_libs
=yes
15803 hpux9
* | hpux10
* | hpux11
*)
15804 # Give a soname corresponding to the major version so that dld.sl refuses to
15805 # link against other versions.
15812 hardcode_into_libs
=yes
15813 dynamic_linker
="$host_os dld.so"
15814 shlibpath_var
=LD_LIBRARY_PATH
15815 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32
; then
15819 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15821 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
15823 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15827 hardcode_into_libs
=yes
15828 dynamic_linker
="$host_os dld.sl"
15829 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
15830 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
15831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15832 soname_spec
='${libname}${release}${shared_ext}$major'
15833 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15834 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
15838 dynamic_linker
="$host_os dld.sl"
15839 shlibpath_var
=SHLIB_PATH
15840 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
15841 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15842 soname_spec
='${libname}${release}${shared_ext}$major'
15845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15846 postinstall_cmds
='chmod 555 $lib'
15853 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15854 soname_spec
='${libname}${release}${shared_ext}$major'
15855 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
15856 shlibpath_var
=LD_LIBRARY_PATH
15857 shlibpath_overrides_runpath
=no
15858 hardcode_into_libs
=yes
15861 irix5
* | irix6
* | nonstopux
*)
15863 nonstopux
*) version_type
=nonstopux
;;
15865 if test "$lt_cv_prog_gnu_ld" = yes; then
15873 soname_spec
='${libname}${release}${shared_ext}$major'
15874 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15876 irix5
* | nonstopux
*)
15877 libsuff
= shlibsuff
=
15880 case $LD in # libtool.m4 will add one of these switches to LD
15881 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
15882 libsuff
= shlibsuff
= libmagic
=32-bit;;
15883 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
15884 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
15885 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
15886 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
15887 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
15891 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
15892 shlibpath_overrides_runpath
=no
15893 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15894 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15895 hardcode_into_libs
=yes
15898 # No shared lib support for Linux oldld, aout, or coff.
15899 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
15903 # This must be Linux ELF.
15904 linux
* | k
*bsd
*-gnu)
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 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15911 shlibpath_var
=LD_LIBRARY_PATH
15912 shlibpath_overrides_runpath
=no
15913 # This implies no fast_install, which is unacceptable.
15914 # Some rework will be needed to allow for fast_install
15915 # before this can be enabled.
15916 hardcode_into_libs
=yes
15917 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15918 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
15920 # Append ld.so.conf contents to the search path
15921 if test -f /etc
/ld.so.conf
; then
15922 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;/^$/d' | tr '\n' ' '`
15923 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15926 # We used to test for /lib/ld.so.1 and disable shared libraries on
15927 # powerpc, because MkLinux only supported shared libraries with the
15928 # GNU dynamic linker. Since this was broken with cross compilers,
15929 # most powerpc-linux boxes support dynamic linking these days and
15930 # people can always --disable-shared, the test was removed, and we
15931 # assume the GNU/Linux dynamic linker is in use.
15932 dynamic_linker
='GNU/Linux ld.so'
15939 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
15940 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15941 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15942 dynamic_linker
='NetBSD (a.out) ld.so'
15944 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15945 soname_spec
='${libname}${release}${shared_ext}$major'
15946 dynamic_linker
='NetBSD ld.elf_so'
15948 shlibpath_var
=LD_LIBRARY_PATH
15949 shlibpath_overrides_runpath
=yes
15950 hardcode_into_libs
=yes
15955 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 shlibpath_var
=LD_LIBRARY_PATH
15957 shlibpath_overrides_runpath
=yes
15964 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15965 soname_spec
='${libname}${release}${shared_ext}$major'
15966 shlibpath_var
=LD_LIBRARY_PATH
15967 shlibpath_overrides_runpath
=yes
15972 sys_lib_dlsearch_path_spec
="/usr/lib"
15974 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15976 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
15977 *) need_version
=no
;;
15979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15980 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15981 shlibpath_var
=LD_LIBRARY_PATH
15982 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15984 openbsd2.
[89] | openbsd2.
[89].
*)
15985 shlibpath_overrides_runpath
=no
15988 shlibpath_overrides_runpath
=yes
15992 shlibpath_overrides_runpath
=yes
15997 libname_spec
='$name'
16000 library_names_spec
='$libname${shared_ext} $libname.a'
16001 dynamic_linker
='OS/2 ld.exe'
16002 shlibpath_var
=LIBPATH
16005 osf3
* | osf4
* | osf5
*)
16009 soname_spec
='${libname}${release}${shared_ext}$major'
16010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16011 shlibpath_var
=LD_LIBRARY_PATH
16012 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16013 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
16024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16025 soname_spec
='${libname}${release}${shared_ext}$major'
16026 shlibpath_var
=LD_LIBRARY_PATH
16027 shlibpath_overrides_runpath
=yes
16028 hardcode_into_libs
=yes
16029 # ldd complains unless libraries are executable
16030 postinstall_cmds
='chmod +x $lib'
16035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16036 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16037 shlibpath_var
=LD_LIBRARY_PATH
16038 shlibpath_overrides_runpath
=yes
16039 if test "$with_gnu_ld" = yes; then
16047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 soname_spec
='${libname}${release}${shared_ext}$major'
16049 shlibpath_var
=LD_LIBRARY_PATH
16050 case $host_vendor in
16052 shlibpath_overrides_runpath
=no
16054 export_dynamic_flag_spec
='${wl}-Blargedynsym'
16055 runpath_var
=LD_RUN_PATH
16063 shlibpath_overrides_runpath
=no
16064 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
16070 if test -d /usr
/nec
;then
16072 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16073 soname_spec
='$libname${shared_ext}.$major'
16074 shlibpath_var
=LD_LIBRARY_PATH
16078 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
16079 version_type
=freebsd-elf
16082 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16083 soname_spec
='${libname}${release}${shared_ext}$major'
16084 shlibpath_var
=LD_LIBRARY_PATH
16085 hardcode_into_libs
=yes
16086 if test "$with_gnu_ld" = yes; then
16087 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16088 shlibpath_overrides_runpath
=no
16090 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
16091 shlibpath_overrides_runpath
=yes
16094 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
16098 sys_lib_dlsearch_path_spec
='/usr/lib'
16103 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16104 soname_spec
='${libname}${release}${shared_ext}$major'
16105 shlibpath_var
=LD_LIBRARY_PATH
16112 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16113 echo "${ECHO_T}$dynamic_linker" >&6; }
16114 test "$dynamic_linker" = no
&& can_build_shared
=no
16116 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
16117 if test "$GCC" = yes; then
16118 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16121 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16122 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16123 hardcode_action_F77
=
16124 if test -n "$hardcode_libdir_flag_spec_F77" || \
16125 test -n "$runpath_var_F77" || \
16126 test "X$hardcode_automatic_F77" = "Xyes" ; then
16128 # We can hardcode non-existant directories.
16129 if test "$hardcode_direct_F77" != no
&&
16130 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16131 # have to relink, otherwise we might link with an installed library
16132 # when we should be linking with a yet-to-be-installed one
16133 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16134 test "$hardcode_minus_L_F77" != no
; then
16135 # Linking always hardcodes the temporary library directory.
16136 hardcode_action_F77
=relink
16138 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16139 hardcode_action_F77
=immediate
16142 # We cannot hardcode anything, or else we can only hardcode existing
16144 hardcode_action_F77
=unsupported
16146 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16147 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16149 if test "$hardcode_action_F77" = relink
; then
16150 # Fast installation is not supported
16151 enable_fast_install
=no
16152 elif test "$shlibpath_overrides_runpath" = yes ||
16153 test "$enable_shared" = no
; then
16154 # Fast installation is not necessary
16155 enable_fast_install
=needless
16159 # The else clause should only fire when bootstrapping the
16160 # libtool distribution, otherwise you forgot to ship ltmain.sh
16161 # with your package, and you will get complaints that there are
16162 # no rules to generate ltmain.sh.
16163 if test -f "$ltmain"; then
16164 # See if we are running on zsh, and set the options which allow our commands through
16165 # without removal of \ escapes.
16166 if test -n "${ZSH_VERSION+set}" ; then
16167 setopt NO_GLOB_SUBST
16169 # Now quote all the things that may contain metacharacters while being
16170 # careful not to overquote the AC_SUBSTed values. We take copies of the
16171 # variables and quote the copies for generation of the libtool script.
16172 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16174 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16175 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16176 deplibs_check_method reload_flag reload_cmds need_locks \
16177 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16178 lt_cv_sys_global_symbol_to_c_name_address \
16179 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16180 old_postinstall_cmds old_postuninstall_cmds \
16184 lt_prog_compiler_wl_F77 \
16185 lt_prog_compiler_pic_F77 \
16186 lt_prog_compiler_static_F77 \
16187 lt_prog_compiler_no_builtin_flag_F77 \
16188 export_dynamic_flag_spec_F77 \
16189 thread_safe_flag_spec_F77 \
16190 whole_archive_flag_spec_F77 \
16191 enable_shared_with_static_runtimes_F77 \
16192 old_archive_cmds_F77 \
16193 old_archive_from_new_cmds_F77 \
16194 predep_objects_F77 \
16195 postdep_objects_F77 \
16198 compiler_lib_search_path_F77 \
16200 archive_expsym_cmds_F77 \
16201 postinstall_cmds_F77 \
16202 postuninstall_cmds_F77 \
16203 old_archive_from_expsyms_cmds_F77 \
16204 allow_undefined_flag_F77 \
16205 no_undefined_flag_F77 \
16206 export_symbols_cmds_F77 \
16207 hardcode_libdir_flag_spec_F77 \
16208 hardcode_libdir_flag_spec_ld_F77 \
16209 hardcode_libdir_separator_F77 \
16210 hardcode_automatic_F77 \
16212 module_expsym_cmds_F77 \
16213 lt_cv_prog_compiler_c_o_F77 \
16214 fix_srcfile_path_F77 \
16215 exclude_expsyms_F77 \
16216 include_expsyms_F77
; do
16219 old_archive_cmds_F77 | \
16220 old_archive_from_new_cmds_F77 | \
16221 archive_cmds_F77 | \
16222 archive_expsym_cmds_F77 | \
16223 module_cmds_F77 | \
16224 module_expsym_cmds_F77 | \
16225 old_archive_from_expsyms_cmds_F77 | \
16226 export_symbols_cmds_F77 | \
16227 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16228 postinstall_cmds | postuninstall_cmds | \
16229 old_postinstall_cmds | old_postuninstall_cmds | \
16230 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
16231 # Double-quote double-evaled strings.
16232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16235 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16241 *'\$0 --fallback-echo"')
16242 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16248 cat <<__EOF__ >> "$cfgfile"
16249 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16251 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16253 # Shell to use when invoking shell scripts.
16256 # Whether or not to build shared libraries.
16257 build_libtool_libs=$enable_shared
16259 # Whether or not to build static libraries.
16260 build_old_libs=$enable_static
16262 # Whether or not to add -lc for building shared libraries.
16263 build_libtool_need_lc=$archive_cmds_need_lc_F77
16265 # Whether or not to disallow shared libs when runtime libs are static
16266 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16268 # Whether or not to optimize for fast installation.
16269 fast_install=$enable_fast_install
16272 host_alias=$host_alias
16276 # The build system.
16277 build_alias=$build_alias
16281 # An echo program that does not interpret backslashes.
16286 AR_FLAGS=$lt_AR_FLAGS
16291 # LTCC compiler flags.
16292 LTCFLAGS=$lt_LTCFLAGS
16294 # A language-specific compiler.
16295 CC=$lt_compiler_F77
16297 # Is the compiler the GNU C compiler?
16303 # The linker used to build libraries.
16306 # Whether we need hard or soft links.
16309 # A BSD-compatible nm program.
16312 # A symbol stripping program
16315 # Used to examine libraries when file_magic_cmd begins "file"
16316 MAGIC_CMD=$MAGIC_CMD
16318 # Used on cygwin: DLL creation program.
16321 # Used on cygwin: object dumper.
16324 # Used on cygwin: assembler.
16327 # The name of the directory that contains temporary libtool files.
16330 # How to create reloadable object files.
16331 reload_flag=$lt_reload_flag
16332 reload_cmds=$lt_reload_cmds
16334 # How to pass a linker flag through the compiler.
16335 wl=$lt_lt_prog_compiler_wl_F77
16337 # Object file suffix (normally "o").
16338 objext="$ac_objext"
16340 # Old archive suffix (normally "a").
16343 # Shared library suffix (normally ".so").
16344 shrext_cmds='$shrext_cmds'
16346 # Executable file suffix (normally "").
16349 # Additional compiler flags for building library objects.
16350 pic_flag=$lt_lt_prog_compiler_pic_F77
16353 # What is the maximum length of a command?
16354 max_cmd_len=$lt_cv_sys_max_cmd_len
16356 # Does compiler simultaneously support -c and -o options?
16357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16359 # Must we lock files when doing compilation?
16360 need_locks=$lt_need_locks
16362 # Do we need the lib prefix for modules?
16363 need_lib_prefix=$need_lib_prefix
16365 # Do we need a version for libraries?
16366 need_version=$need_version
16368 # Whether dlopen is supported.
16369 dlopen_support=$enable_dlopen
16371 # Whether dlopen of programs is supported.
16372 dlopen_self=$enable_dlopen_self
16374 # Whether dlopen of statically linked programs is supported.
16375 dlopen_self_static=$enable_dlopen_self_static
16377 # Compiler flag to prevent dynamic linking.
16378 link_static_flag=$lt_lt_prog_compiler_static_F77
16380 # Compiler flag to turn off builtin functions.
16381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16383 # Compiler flag to allow reflexive dlopens.
16384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16386 # Compiler flag to generate shared objects directly from archives.
16387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16389 # Compiler flag to generate thread-safe objects.
16390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16392 # Library versioning type.
16393 version_type=$version_type
16395 # Format of library name prefix.
16396 libname_spec=$lt_libname_spec
16398 # List of archive names. First name is the real one, the rest are links.
16399 # The last name is the one that the linker finds with -lNAME.
16400 library_names_spec=$lt_library_names_spec
16402 # The coded name of the library, if different from the real name.
16403 soname_spec=$lt_soname_spec
16405 # Commands used to build and install an old-style archive.
16407 old_archive_cmds=$lt_old_archive_cmds_F77
16408 old_postinstall_cmds=$lt_old_postinstall_cmds
16409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16411 # Create an old-style archive from a shared archive.
16412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16414 # Create a temporary old-style archive to link instead of a shared archive.
16415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16417 # Commands used to build and install a shared archive.
16418 archive_cmds=$lt_archive_cmds_F77
16419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16420 postinstall_cmds=$lt_postinstall_cmds
16421 postuninstall_cmds=$lt_postuninstall_cmds
16423 # Commands used to build a loadable module (assumed same as above if empty)
16424 module_cmds=$lt_module_cmds_F77
16425 module_expsym_cmds=$lt_module_expsym_cmds_F77
16427 # Commands to strip libraries.
16428 old_striplib=$lt_old_striplib
16429 striplib=$lt_striplib
16431 # Dependencies to place before the objects being linked to create a
16433 predep_objects=$lt_predep_objects_F77
16435 # Dependencies to place after the objects being linked to create a
16437 postdep_objects=$lt_postdep_objects_F77
16439 # Dependencies to place before the objects being linked to create a
16441 predeps=$lt_predeps_F77
16443 # Dependencies to place after the objects being linked to create a
16445 postdeps=$lt_postdeps_F77
16447 # The library search path used internally by the compiler when linking
16448 # a shared library.
16449 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16451 # Method to check whether dependent libraries are shared objects.
16452 deplibs_check_method=$lt_deplibs_check_method
16454 # Command to use when deplibs_check_method == file_magic.
16455 file_magic_cmd=$lt_file_magic_cmd
16457 # Flag that allows shared libraries with undefined symbols to be built.
16458 allow_undefined_flag=$lt_allow_undefined_flag_F77
16460 # Flag that forces no undefined symbols.
16461 no_undefined_flag=$lt_no_undefined_flag_F77
16463 # Commands used to finish a libtool library installation in a directory.
16464 finish_cmds=$lt_finish_cmds
16466 # Same as above, but a single script fragment to be evaled but not shown.
16467 finish_eval=$lt_finish_eval
16469 # Take the output of nm and produce a listing of raw symbols and C names.
16470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16472 # Transform the output of nm in a proper C declaration
16473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16475 # Transform the output of nm in a C name address pair
16476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16478 # This is the shared library runtime path variable.
16479 runpath_var=$runpath_var
16481 # This is the shared library path variable.
16482 shlibpath_var=$shlibpath_var
16484 # Is shlibpath searched before the hard-coded library search path?
16485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16487 # How to hardcode a shared library path into an executable.
16488 hardcode_action=$hardcode_action_F77
16490 # Whether we should hardcode library paths into libraries.
16491 hardcode_into_libs=$hardcode_into_libs
16493 # Flag to hardcode \$libdir into a binary during linking.
16494 # This must work even if \$libdir does not exist.
16495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16497 # If ld is used when linking, flag to hardcode \$libdir into
16498 # a binary during linking. This must work even if \$libdir does
16500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16502 # Whether we need a single -rpath flag with a separated argument.
16503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16506 # resulting binary.
16507 hardcode_direct=$hardcode_direct_F77
16509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16510 # resulting binary.
16511 hardcode_minus_L=$hardcode_minus_L_F77
16513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16514 # the resulting binary.
16515 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16517 # Set to yes if building a shared library automatically hardcodes DIR into the library
16518 # and all subsequent libraries and executables linked against it.
16519 hardcode_automatic=$hardcode_automatic_F77
16521 # Variables whose values should be saved in libtool wrapper scripts and
16522 # restored at relink time.
16523 variables_saved_for_relink="$variables_saved_for_relink"
16525 # Whether libtool must link a program against all its dependency libraries.
16526 link_all_deplibs=$link_all_deplibs_F77
16528 # Compile-time system search path for libraries
16529 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16531 # Run-time system search path for libraries
16532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16534 # Fix the shell variable \$srcfile for the compiler.
16535 fix_srcfile_path=$lt_fix_srcfile_path
16537 # Set to yes if exported symbols are required.
16538 always_export_symbols=$always_export_symbols_F77
16540 # The commands to list exported symbols.
16541 export_symbols_cmds=$lt_export_symbols_cmds_F77
16543 # The commands to extract the exported symbol list from a shared archive.
16544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16546 # Symbols that should not be listed in the preloaded symbols.
16547 exclude_expsyms=$lt_exclude_expsyms_F77
16549 # Symbols that must always be exported.
16550 include_expsyms=$lt_include_expsyms_F77
16552 # ### END LIBTOOL TAG CONFIG: $tagname
16558 # If there is no Makefile yet, we rely on a make rule to execute
16559 # `config.status --recheck' to rerun these tests and create the
16560 # libtool script then.
16561 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16562 if test -f "$ltmain_in"; then
16563 test -f Makefile
&& make "$ltmain"
16569 ac_cpp
='$CPP $CPPFLAGS'
16570 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
16582 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16585 # Source file extension for Java test sources.
16588 # Object file extension for compiled Java test sources.
16592 # Code to be used in simple compile tests
16593 lt_simple_compile_test_code
="class foo {}"
16595 # Code to be used in simple link tests
16596 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
16598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16600 # If no C compiler was specified, use CC.
16603 # If no C compiler flags were specified, use CFLAGS.
16604 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
16606 # Allow CC to be a program name with arguments.
16610 # save warnings/boilerplate of simple test code
16611 ac_outfile
=conftest.
$ac_objext
16612 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
16613 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16614 _lt_compiler_boilerplate
=`cat conftest.err`
16617 ac_outfile
=conftest.
$ac_objext
16618 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
16619 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
16620 _lt_linker_boilerplate
=`cat conftest.err`
16624 # Allow CC to be a program name with arguments.
16629 for cc_temp
in $compiler""; do
16631 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
16632 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
16637 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16641 archive_cmds_need_lc_GCJ
=no
16643 old_archive_cmds_GCJ
=$old_archive_cmds
16646 lt_prog_compiler_no_builtin_flag_GCJ
=
16648 if test "$GCC" = yes; then
16649 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
16652 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16653 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16654 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16655 echo $ECHO_N "(cached) $ECHO_C" >&6
16657 lt_cv_prog_compiler_rtti_exceptions
=no
16658 ac_outfile
=conftest.
$ac_objext
16659 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16660 lt_compiler_flag
="-fno-rtti -fno-exceptions"
16661 # Insert the option either (1) after the last *FLAGS variable, or
16662 # (2) before a word containing "conftest.", or (3) at the end.
16663 # Note that $ac_compile itself does not contain backslashes and begins
16664 # with a dollar sign (not a hyphen), so the echo should work correctly.
16665 # The option is referenced via a variable to avoid confusing sed.
16666 lt_compile
=`echo "$ac_compile" | $SED \
16667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16669 -e 's:$: $lt_compiler_flag:'`
16670 (eval echo "\"\$as_me:16670: $lt_compile\"" >&5)
16671 (eval "$lt_compile" 2>conftest.err
)
16673 cat conftest.err
>&5
16674 echo "$as_me:16674: \$? = $ac_status" >&5
16675 if (exit $ac_status) && test -s "$ac_outfile"; then
16676 # The compiler can only warn and ignore the option if not recognized
16677 # So say no if there are warnings other than the usual output.
16678 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16679 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16680 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16681 lt_cv_prog_compiler_rtti_exceptions
=yes
16687 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16688 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16690 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
16691 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16698 lt_prog_compiler_wl_GCJ
=
16699 lt_prog_compiler_pic_GCJ
=
16700 lt_prog_compiler_static_GCJ
=
16702 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16703 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16705 if test "$GCC" = yes; then
16706 lt_prog_compiler_wl_GCJ
='-Wl,'
16707 lt_prog_compiler_static_GCJ
='-static'
16711 # All AIX code is PIC.
16712 if test "$host_cpu" = ia64
; then
16713 # AIX 5 now supports IA64 processor
16714 lt_prog_compiler_static_GCJ
='-Bstatic'
16719 # FIXME: we need at least 68020 code to build shared libraries, but
16720 # adding the `-m68020' flag to GCC prevents building anything better,
16722 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
16725 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
16726 # PIC is the default for these OSes.
16729 mingw
* | cygwin
* | pw32
* | os2
*)
16730 # This hack is so that the source file can tell whether it is being
16731 # built for inclusion in a dll (and should export symbols for example).
16732 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16733 # (--disable-auto-import) libraries
16734 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16737 darwin
* | rhapsody
*)
16738 # PIC is the default on this platform
16739 # Common symbols not allowed in MH_DYLIB files
16740 lt_prog_compiler_pic_GCJ
='-fno-common'
16744 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16745 # Instead, we relocate shared libraries at runtime.
16749 # Just because we use GCC doesn't mean we suddenly get shared libraries
16750 # on systems that don't support them.
16751 lt_prog_compiler_can_build_shared_GCJ
=no
16756 if test -d /usr
/nec
; then
16757 lt_prog_compiler_pic_GCJ
=-Kconform_pic
16762 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16763 # not for PA HP-UX.
16769 lt_prog_compiler_pic_GCJ
='-fPIC'
16775 lt_prog_compiler_pic_GCJ
='-fPIC'
16779 # PORTME Check for flag to pass linker flags through the system compiler.
16782 lt_prog_compiler_wl_GCJ
='-Wl,'
16783 if test "$host_cpu" = ia64
; then
16784 # AIX 5 now supports IA64 processor
16785 lt_prog_compiler_static_GCJ
='-Bstatic'
16787 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
16791 # PIC is the default on this platform
16792 # Common symbols not allowed in MH_DYLIB files
16793 case $cc_basename in
16795 lt_prog_compiler_pic_GCJ
='-qnocommon'
16796 lt_prog_compiler_wl_GCJ
='-Wl,'
16801 mingw
* | cygwin
* | pw32
* | os2
*)
16802 # This hack is so that the source file can tell whether it is being
16803 # built for inclusion in a dll (and should export symbols for example).
16804 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
16807 hpux9
* | hpux10
* | hpux11
*)
16808 lt_prog_compiler_wl_GCJ
='-Wl,'
16809 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16810 # not for PA HP-UX.
16816 lt_prog_compiler_pic_GCJ
='+Z'
16819 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16820 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
16823 irix5
* | irix6
* | nonstopux
*)
16824 lt_prog_compiler_wl_GCJ
='-Wl,'
16825 # PIC (with -KPIC) is the default.
16826 lt_prog_compiler_static_GCJ
='-non_shared'
16830 lt_prog_compiler_pic_GCJ
='-KPIC'
16831 lt_prog_compiler_static_GCJ
='-Bstatic'
16834 linux
* | k
*bsd
*-gnu)
16835 case $cc_basename in
16837 lt_prog_compiler_wl_GCJ
='-Wl,'
16838 lt_prog_compiler_pic_GCJ
='-KPIC'
16839 lt_prog_compiler_static_GCJ
='-static'
16841 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
16842 # Portland Group compilers (*not* the Pentium gcc compiler,
16843 # which looks to be a dead project)
16844 lt_prog_compiler_wl_GCJ
='-Wl,'
16845 lt_prog_compiler_pic_GCJ
='-fpic'
16846 lt_prog_compiler_static_GCJ
='-Bstatic'
16849 lt_prog_compiler_wl_GCJ
='-Wl,'
16850 # All Alpha code is PIC.
16851 lt_prog_compiler_static_GCJ
='-non_shared'
16854 case `$CC -V 2>&1 | sed 5q` in
16857 lt_prog_compiler_pic_GCJ
='-KPIC'
16858 lt_prog_compiler_static_GCJ
='-Bstatic'
16859 lt_prog_compiler_wl_GCJ
='-Wl,'
16862 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16863 lt_prog_compiler_pic_GCJ
='-KPIC'
16864 lt_prog_compiler_static_GCJ
='-Bstatic'
16865 lt_prog_compiler_wl_GCJ
=''
16872 osf3
* | osf4
* | osf5
*)
16873 lt_prog_compiler_wl_GCJ
='-Wl,'
16874 # All OSF/1 code is PIC.
16875 lt_prog_compiler_static_GCJ
='-non_shared'
16879 lt_prog_compiler_static_GCJ
='-non_shared'
16883 lt_prog_compiler_pic_GCJ
='-KPIC'
16884 lt_prog_compiler_static_GCJ
='-Bstatic'
16885 case $cc_basename in
16886 f77
* | f90
* | f95
*)
16887 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
16889 lt_prog_compiler_wl_GCJ
='-Wl,';;
16894 lt_prog_compiler_wl_GCJ
='-Qoption ld '
16895 lt_prog_compiler_pic_GCJ
='-PIC'
16896 lt_prog_compiler_static_GCJ
='-Bstatic'
16899 sysv4 | sysv4.2uw2
* | sysv4.3
*)
16900 lt_prog_compiler_wl_GCJ
='-Wl,'
16901 lt_prog_compiler_pic_GCJ
='-KPIC'
16902 lt_prog_compiler_static_GCJ
='-Bstatic'
16906 if test -d /usr
/nec
;then
16907 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
16908 lt_prog_compiler_static_GCJ
='-Bstatic'
16912 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
16913 lt_prog_compiler_wl_GCJ
='-Wl,'
16914 lt_prog_compiler_pic_GCJ
='-KPIC'
16915 lt_prog_compiler_static_GCJ
='-Bstatic'
16919 lt_prog_compiler_wl_GCJ
='-Wl,'
16920 lt_prog_compiler_can_build_shared_GCJ
=no
16924 lt_prog_compiler_pic_GCJ
='-pic'
16925 lt_prog_compiler_static_GCJ
='-Bstatic'
16929 lt_prog_compiler_can_build_shared_GCJ
=no
16934 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16935 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
16938 # Check to make sure the PIC flag actually works.
16940 if test -n "$lt_prog_compiler_pic_GCJ"; then
16942 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
16944 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
16945 echo $ECHO_N "(cached) $ECHO_C" >&6
16947 lt_prog_compiler_pic_works_GCJ
=no
16948 ac_outfile
=conftest.
$ac_objext
16949 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
16950 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
16951 # Insert the option either (1) after the last *FLAGS variable, or
16952 # (2) before a word containing "conftest.", or (3) at the end.
16953 # Note that $ac_compile itself does not contain backslashes and begins
16954 # with a dollar sign (not a hyphen), so the echo should work correctly.
16955 # The option is referenced via a variable to avoid confusing sed.
16956 lt_compile
=`echo "$ac_compile" | $SED \
16957 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16959 -e 's:$: $lt_compiler_flag:'`
16960 (eval echo "\"\$as_me:16960: $lt_compile\"" >&5)
16961 (eval "$lt_compile" 2>conftest.err
)
16963 cat conftest.err
>&5
16964 echo "$as_me:16964: \$? = $ac_status" >&5
16965 if (exit $ac_status) && test -s "$ac_outfile"; then
16966 # The compiler can only warn and ignore the option if not recognized
16967 # So say no if there are warnings other than the usual output.
16968 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
16969 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
16970 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
16971 lt_prog_compiler_pic_works_GCJ
=yes
16977 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16978 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; }
16980 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
16981 case $lt_prog_compiler_pic_GCJ in
16983 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
16986 lt_prog_compiler_pic_GCJ
=
16987 lt_prog_compiler_can_build_shared_GCJ
=no
16992 # For platforms which do not support PIC, -DPIC is meaningless:
16994 lt_prog_compiler_pic_GCJ
=
16997 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
17002 # Check to make sure the static flag actually works.
17004 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
17005 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17006 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17007 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17008 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 lt_prog_compiler_static_works_GCJ
=no
17011 save_LDFLAGS
="$LDFLAGS"
17012 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17013 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17014 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17015 # The linker can only warn and ignore the option if not recognized
17016 # So say no if there are warnings
17017 if test -s conftest.err
; then
17018 # Append any errors to the config.log.
17019 cat conftest.err
1>&5
17020 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17021 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17022 if diff conftest.exp conftest.er2
>/dev
/null
; then
17023 lt_prog_compiler_static_works_GCJ
=yes
17026 lt_prog_compiler_static_works_GCJ
=yes
17030 LDFLAGS
="$save_LDFLAGS"
17033 { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17034 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; }
17036 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
17039 lt_prog_compiler_static_GCJ
=
17043 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17045 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17048 lt_cv_prog_compiler_c_o_GCJ
=no
17049 $rm -r conftest
2>/dev
/null
17053 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17055 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17056 # Insert the option either (1) after the last *FLAGS variable, or
17057 # (2) before a word containing "conftest.", or (3) at the end.
17058 # Note that $ac_compile itself does not contain backslashes and begins
17059 # with a dollar sign (not a hyphen), so the echo should work correctly.
17060 lt_compile
=`echo "$ac_compile" | $SED \
17061 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17063 -e 's:$: $lt_compiler_flag:'`
17064 (eval echo "\"\$as_me:17064: $lt_compile\"" >&5)
17065 (eval "$lt_compile" 2>out
/conftest.err
)
17067 cat out
/conftest.err
>&5
17068 echo "$as_me:17068: \$? = $ac_status" >&5
17069 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17071 # The compiler can only warn and ignore the option if not recognized
17072 # So say no if there are warnings
17073 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17074 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17075 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17076 lt_cv_prog_compiler_c_o_GCJ
=yes
17081 # SGI C++ compiler will create directory out/ii_files/ for
17082 # template instantiation
17083 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17084 $rm out
/* && rmdir out
17090 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17094 hard_links
="nottested"
17095 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
17096 # do not overwrite the value of need_locks provided by the user
17097 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17101 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17103 ln conftest.a conftest.b
2>&5 || hard_links
=no
17104 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17105 { echo "$as_me:$LINENO: result: $hard_links" >&5
17106 echo "${ECHO_T}$hard_links" >&6; }
17107 if test "$hard_links" = no
; then
17108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17116 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17120 allow_undefined_flag_GCJ
=
17121 enable_shared_with_static_runtimes_GCJ
=no
17123 archive_expsym_cmds_GCJ
=
17124 old_archive_From_new_cmds_GCJ
=
17125 old_archive_from_expsyms_cmds_GCJ
=
17126 export_dynamic_flag_spec_GCJ
=
17127 whole_archive_flag_spec_GCJ
=
17128 thread_safe_flag_spec_GCJ
=
17129 hardcode_libdir_flag_spec_GCJ
=
17130 hardcode_libdir_flag_spec_ld_GCJ
=
17131 hardcode_libdir_separator_GCJ
=
17132 hardcode_direct_GCJ
=no
17133 hardcode_minus_L_GCJ
=no
17134 hardcode_shlibpath_var_GCJ
=unsupported
17135 link_all_deplibs_GCJ
=unknown
17136 hardcode_automatic_GCJ
=no
17138 module_expsym_cmds_GCJ
=
17139 always_export_symbols_GCJ
=no
17140 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17141 # include_expsyms should be a list of space-separated symbols to be *always*
17142 # included in the symbol list
17143 include_expsyms_GCJ
=
17144 # exclude_expsyms can be an extended regexp of symbols to exclude
17145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17147 # as well as any symbol that contains `d'.
17148 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
17149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17150 # platforms (ab)use it in PIC code, but their linkers get confused if
17151 # the symbol is explicitly referenced. Since portable code cannot
17152 # rely on this symbol name, it's probably fine to never include it in
17153 # preloaded symbol tables.
17154 extract_expsyms_cmds
=
17155 # Just being paranoid about ensuring that cc_basename is set.
17156 for cc_temp
in $compiler""; do
17158 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
17159 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
17164 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17167 cygwin
* | mingw
* | pw32
*)
17168 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17169 # When not using gcc, we currently assume that we are using
17170 # Microsoft Visual C++.
17171 if test "$GCC" != yes; then
17176 # we just hope/assume this is gcc and not c89 (= MSVC++)
17185 if test "$with_gnu_ld" = yes; then
17186 # If archive_cmds runs LD, not CC, wlarc should be empty
17189 # Set some defaults for GNU ld with shared library support. These
17190 # are reset later if shared libraries are not supported. Putting them
17191 # here allows them to be overridden if necessary.
17192 runpath_var
=LD_RUN_PATH
17193 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
17194 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
17195 # ancient GNU ld didn't support --whole-archive et. al.
17196 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
17197 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17199 whole_archive_flag_spec_GCJ
=
17201 supports_anon_versioning
=no
17202 case `$LD -v 2>/dev/null` in
17203 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
17204 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
17205 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
17206 *\
2.11.
*) ;; # other 2.11 versions
17207 *) supports_anon_versioning
=yes ;;
17210 # See if GNU ld supports shared libraries.
17212 aix3
* | aix4
* | aix5
*)
17213 # On AIX/PPC, the GNU linker is very broken
17214 if test "$host_cpu" != ia64
; then
17218 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17219 *** to be unable to reliably create shared libraries on AIX.
17220 *** Therefore, libtool is disabling shared libraries support. If you
17221 *** really care for shared libraries, you may want to modify your PATH
17222 *** so that a non-GNU linker is found, and then restart.
17229 archive_cmds_GCJ
='$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)'
17230 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17231 hardcode_minus_L_GCJ
=yes
17233 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17234 # that the semantics of dynamic libraries on AmigaOS, at least up
17235 # to version 4, is to share data among multiple programs linked
17236 # with the same dynamic library. Since this doesn't match the
17237 # behavior of shared libraries on other platforms, we can't use
17243 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17244 allow_undefined_flag_GCJ
=unsupported
17245 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17246 # support --undefined. This deserves some investigation. FIXME
17247 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17253 cygwin
* | mingw
* | pw32
*)
17254 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17255 # as there is no search path for DLLs.
17256 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17257 allow_undefined_flag_GCJ
=unsupported
17258 always_export_symbols_GCJ
=no
17259 enable_shared_with_static_runtimes_GCJ
=yes
17260 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17262 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
17263 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17264 # If the export-symbols file already is a .def file (1st line
17265 # is EXPORTS), use it as is; otherwise, prepend...
17266 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17267 cp $export_symbols $output_objdir/$soname.def;
17269 echo EXPORTS > $output_objdir/$soname.def;
17270 cat $export_symbols >> $output_objdir/$soname.def;
17272 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17279 hardcode_direct_GCJ
=no
17280 hardcode_shlibpath_var_GCJ
=no
17281 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17282 export_dynamic_flag_spec_GCJ
='${wl}-E'
17283 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17284 # Instead, shared libraries are loaded at an image base (0x10000000 by
17285 # default) and relocated if they conflict, which is a slow very memory
17286 # consuming and fragmenting process. To avoid this, we pick a random,
17287 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17288 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17289 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
17290 archive_expsym_cmds_GCJ
='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'
17293 gnu
* | linux
* | k
*bsd
*-gnu)
17294 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17296 case $cc_basename,$host_cpu in
17297 pgcc
*) # Portland Group C compiler
17298 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17299 tmp_addflag
=' $pic_flag'
17301 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
17302 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17303 tmp_addflag
=' $pic_flag -Mnomain' ;;
17304 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
17305 tmp_addflag
=' -i_dynamic' ;;
17306 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
17307 tmp_addflag
=' -i_dynamic -nofor_main' ;;
17308 ifc
* | ifort
*) # Intel Fortran compiler
17309 tmp_addflag
=' -nofor_main' ;;
17311 case `$CC -V 2>&1 | sed 5q` in
17312 *Sun\ C
*) # Sun C 5.9
17313 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17314 tmp_sharedflag
='-G' ;;
17315 *Sun\ F
*) # Sun Fortran 8.3
17316 tmp_sharedflag
='-G' ;;
17318 tmp_sharedflag
='-shared' ;;
17320 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17322 if test $supports_anon_versioning = yes; then
17323 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
17324 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17325 $echo "local: *; };" >> $output_objdir/$libname.ver~
17326 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17334 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17335 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17338 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17339 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17344 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
17348 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17349 *** create shared libraries on Solaris systems. Therefore, libtool
17350 *** is disabling shared libraries support. We urge you to upgrade GNU
17351 *** binutils to release 2.9.1 or newer. Another option is to modify
17352 *** your PATH or compiler configuration so that the native linker is
17353 *** used, and then restart.
17356 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17357 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17358 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17364 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
17365 case `$LD -v 2>&1` in
17366 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
17370 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17371 *** reliably create shared libraries on SCO systems. Therefore, libtool
17372 *** is disabling shared libraries support. We urge you to upgrade GNU
17373 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17374 *** your PATH or compiler configuration so that the native linker is
17375 *** used, and then restart.
17380 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17381 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17382 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17383 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17392 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17394 hardcode_direct_GCJ
=yes
17395 hardcode_shlibpath_var_GCJ
=no
17399 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
17400 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17401 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17408 if test "$ld_shlibs_GCJ" = no
; then
17410 hardcode_libdir_flag_spec_GCJ
=
17411 export_dynamic_flag_spec_GCJ
=
17412 whole_archive_flag_spec_GCJ
=
17415 # PORTME fill in a description of your system's linker (not GNU ld)
17418 allow_undefined_flag_GCJ
=unsupported
17419 always_export_symbols_GCJ
=yes
17420 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
17421 # Note: this linker hardcodes the directories in LIBPATH if there
17422 # are no directories specified by -L.
17423 hardcode_minus_L_GCJ
=yes
17424 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17425 # Neither direct hardcoding nor static linking is supported with a
17427 hardcode_direct_GCJ
=unsupported
17432 if test "$host_cpu" = ia64
; then
17433 # On IA64, the linker does run time linking by default, so we don't
17434 # have to do anything special.
17435 aix_use_runtimelinking
=no
17436 exp_sym_flag
='-Bexport'
17439 # If we're using GNU nm, then we don't want the "-C" option.
17440 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17441 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17442 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17444 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
17446 aix_use_runtimelinking
=no
17448 # Test if we are trying to use run time linking or normal
17449 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17450 # need to do runtime linking.
17451 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
17452 for ld_flag
in $LDFLAGS; do
17453 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
17454 aix_use_runtimelinking
=yes
17461 exp_sym_flag
='-bexport'
17462 no_entry_flag
='-bnoentry'
17465 # When large executables or shared objects are built, AIX ld can
17466 # have problems creating the table of contents. If linking a library
17467 # or program results in "error TOC overflow" add -mminimal-toc to
17468 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17469 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17471 archive_cmds_GCJ
=''
17472 hardcode_direct_GCJ
=yes
17473 hardcode_libdir_separator_GCJ
=':'
17474 link_all_deplibs_GCJ
=yes
17476 if test "$GCC" = yes; then
17477 case $host_os in aix4.
[012]|aix4.
[012].
*)
17478 # We only want to do this on AIX 4.2 and lower, the check
17479 # below for broken collect2 doesn't work under 4.3+
17480 collect2name
=`${CC} -print-prog-name=collect2`
17481 if test -f "$collect2name" && \
17482 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
17484 # We have reworked collect2
17487 # We have old collect2
17488 hardcode_direct_GCJ
=unsupported
17489 # It fails to find uninstalled libraries when the uninstalled
17490 # path is not listed in the libpath. Setting hardcode_minus_L
17491 # to unsupported forces relinking
17492 hardcode_minus_L_GCJ
=yes
17493 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17494 hardcode_libdir_separator_GCJ
=
17498 shared_flag
='-shared'
17499 if test "$aix_use_runtimelinking" = yes; then
17500 shared_flag
="$shared_flag "'${wl}-G'
17504 if test "$host_cpu" = ia64
; then
17505 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17506 # chokes on -Wl,-G. The following line is correct:
17509 if test "$aix_use_runtimelinking" = yes; then
17510 shared_flag
='${wl}-G'
17512 shared_flag
='${wl}-bM:SRE'
17517 # It seems that -bexpall does not export symbols beginning with
17518 # underscore (_), so it is better to generate a list of symbols to export.
17519 always_export_symbols_GCJ
=yes
17520 if test "$aix_use_runtimelinking" = yes; then
17521 # Warning - without using the other runtime loading flags (-brtl),
17522 # -berok will link without error, but may produce a broken library.
17523 allow_undefined_flag_GCJ
='-berok'
17524 # Determine the default libpath from the value encoded in an empty executable.
17525 cat >conftest.
$ac_ext <<_ACEOF
17528 cat confdefs.h
>>conftest.
$ac_ext
17529 cat >>conftest.
$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17540 rm -f conftest.
$ac_objext conftest
$ac_exeext
17541 if { (ac_try
="$ac_link"
17542 case "(($ac_try" in
17543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17544 *) ac_try_echo=$ac_try;;
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547 (eval "$ac_link") 2>conftest.er1
17549 grep -v '^ *+' conftest.er1 >conftest.err
17551 cat conftest.err >&5
17552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553 (exit $ac_status); } && {
17554 test -z "$ac_c_werror_flag" ||
17555 test ! -s conftest.err
17556 } && test -s conftest$ac_exeext &&
17557 $as_test_x conftest$ac_exeext; then
17559 lt_aix_libpath_sed='
17560 /Import File Strings/,/^$/ {
17566 aix_libpath=`dump
-H conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17567 # Check for a 64-bit object if we didn't find anything.
17568 if test -z "$aix_libpath"; then
17569 aix_libpath=`dump
-HX64 conftest
$ac_exeext 2>/dev
/null |
$SED -n -e "$lt_aix_libpath_sed"`
17572 echo "$as_me: failed program was:" >&5
17573 sed 's/^/| /' conftest.$ac_ext >&5
17578 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17579 conftest$ac_exeext conftest.$ac_ext
17580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17582 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17583 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17585 if test "$host_cpu" = ia64; then
17586 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17587 allow_undefined_flag_GCJ="-z nodefs"
17588 archive_expsym_cmds_GCJ="\$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"
17590 # Determine the default libpath from the value encoded in an empty executable.
17591 cat >conftest.$ac_ext <<_ACEOF
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17610 *) ac_try_echo
=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1
>conftest.err
17617 cat conftest.err
>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest
$ac_exeext &&
17623 $as_test_x conftest
$ac_exeext; then
17625 lt_aix_libpath_sed
='
17626 /Import File Strings/,/^$/ {
17632 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17633 # Check for a 64-bit object if we didn't find anything.
17634 if test -z "$aix_libpath"; then
17635 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17638 echo "$as_me: failed program was:" >&5
17639 sed 's/^/| /' conftest.
$ac_ext >&5
17644 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
17645 conftest
$ac_exeext conftest.
$ac_ext
17646 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
17648 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
17649 # Warning - without using the other run time loading flags,
17650 # -berok will link without error, but may produce a broken library.
17651 no_undefined_flag_GCJ
=' ${wl}-bernotok'
17652 allow_undefined_flag_GCJ
=' ${wl}-berok'
17653 # Exported symbols can be pulled into shared objects from archives
17654 whole_archive_flag_spec_GCJ
='$convenience'
17655 archive_cmds_need_lc_GCJ
=yes
17656 # This is similar to how AIX traditionally builds its shared libraries.
17657 archive_expsym_cmds_GCJ
="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17663 archive_cmds_GCJ
='$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)'
17664 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17665 hardcode_minus_L_GCJ
=yes
17666 # see comment about different semantics on the GNU ld section
17671 export_dynamic_flag_spec_GCJ
=-rdynamic
17674 cygwin
* | mingw
* | pw32
*)
17675 # When not using gcc, we currently assume that we are using
17676 # Microsoft Visual C++.
17677 # hardcode_libdir_flag_spec is actually meaningless, as there is
17678 # no search path for DLLs.
17679 hardcode_libdir_flag_spec_GCJ
=' '
17680 allow_undefined_flag_GCJ
=unsupported
17681 # Tell ltmain to make .lib files, not .a files.
17683 # Tell ltmain to make .dll files, not .so files.
17685 # FIXME: Setting linknames here is a bad hack.
17686 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17687 # The linker will automatically build a .lib file if we build a DLL.
17688 old_archive_From_new_cmds_GCJ
='true'
17689 # FIXME: Should let the user specify the lib program.
17690 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
17691 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
17692 enable_shared_with_static_runtimes_GCJ
=yes
17695 darwin
* | rhapsody
*)
17697 rhapsody
* | darwin1.
[012])
17698 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
17701 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17702 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17704 case ${MACOSX_DEPLOYMENT_TARGET} in
17706 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17709 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
17715 archive_cmds_need_lc_GCJ
=no
17716 hardcode_direct_GCJ
=no
17717 hardcode_automatic_GCJ
=yes
17718 hardcode_shlibpath_var_GCJ
=unsupported
17719 whole_archive_flag_spec_GCJ
=''
17720 link_all_deplibs_GCJ
=yes
17721 if test "$GCC" = yes ; then
17722 output_verbose_link_cmd
='echo'
17723 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17724 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17725 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17726 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17727 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17729 case $cc_basename in
17731 output_verbose_link_cmd
='echo'
17732 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17733 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17734 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17735 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17736 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17746 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17747 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17748 hardcode_shlibpath_var_GCJ
=no
17755 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17756 # support. Future versions do this automatically, but an explicit c++rt0.o
17757 # does not break anything, and helps significantly (at the cost of a little
17760 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17761 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17762 hardcode_direct_GCJ
=yes
17763 hardcode_shlibpath_var_GCJ
=no
17766 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17768 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17769 hardcode_direct_GCJ
=yes
17770 hardcode_minus_L_GCJ
=yes
17771 hardcode_shlibpath_var_GCJ
=no
17774 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17775 freebsd
* | dragonfly
*)
17776 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17777 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17778 hardcode_direct_GCJ
=yes
17779 hardcode_shlibpath_var_GCJ
=no
17783 if test "$GCC" = yes; then
17784 archive_cmds_GCJ
='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17786 archive_cmds_GCJ
='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17788 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17789 hardcode_libdir_separator_GCJ
=:
17790 hardcode_direct_GCJ
=yes
17792 # hardcode_minus_L: Not really in the search PATH,
17793 # but as the default location of the library.
17794 hardcode_minus_L_GCJ
=yes
17795 export_dynamic_flag_spec_GCJ
='${wl}-E'
17799 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17800 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17802 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17804 if test "$with_gnu_ld" = no
; then
17805 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17806 hardcode_libdir_separator_GCJ
=:
17808 hardcode_direct_GCJ
=yes
17809 export_dynamic_flag_spec_GCJ
='${wl}-E'
17811 # hardcode_minus_L: Not really in the search PATH,
17812 # but as the default location of the library.
17813 hardcode_minus_L_GCJ
=yes
17818 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
17821 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17824 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17827 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17833 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17836 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17839 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17843 if test "$with_gnu_ld" = no
; then
17844 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
17845 hardcode_libdir_separator_GCJ
=:
17849 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
17850 hardcode_direct_GCJ
=no
17851 hardcode_shlibpath_var_GCJ
=no
17854 hardcode_direct_GCJ
=yes
17855 export_dynamic_flag_spec_GCJ
='${wl}-E'
17857 # hardcode_minus_L: Not really in the search PATH,
17858 # but as the default location of the library.
17859 hardcode_minus_L_GCJ
=yes
17865 irix5
* | irix6
* | nonstopux
*)
17866 if test "$GCC" = yes; then
17867 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17869 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17870 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
17872 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17873 hardcode_libdir_separator_GCJ
=:
17874 link_all_deplibs_GCJ
=yes
17878 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
17879 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17881 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17883 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17884 hardcode_direct_GCJ
=yes
17885 hardcode_shlibpath_var_GCJ
=no
17889 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17890 hardcode_direct_GCJ
=yes
17891 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17892 hardcode_libdir_separator_GCJ
=:
17893 hardcode_shlibpath_var_GCJ
=no
17897 if test -f /usr
/libexec
/ld.so
; then
17898 hardcode_direct_GCJ
=yes
17899 hardcode_shlibpath_var_GCJ
=no
17900 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17901 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17902 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17903 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17904 export_dynamic_flag_spec_GCJ
='${wl}-E'
17907 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
17908 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17909 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17912 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17913 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
17923 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
17924 hardcode_minus_L_GCJ
=yes
17925 allow_undefined_flag_GCJ
=unsupported
17926 archive_cmds_GCJ
='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
17927 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17931 if test "$GCC" = yes; then
17932 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17933 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17935 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17936 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17938 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17939 hardcode_libdir_separator_GCJ
=:
17942 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
17943 if test "$GCC" = yes; then
17944 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
17945 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
17946 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
17948 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
17949 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17950 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17951 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17953 # Both c and cxx compiler support -rpath directly
17954 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
17956 hardcode_libdir_separator_GCJ
=:
17960 no_undefined_flag_GCJ
=' -z text'
17961 if test "$GCC" = yes; then
17963 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17964 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17965 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17968 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17969 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17970 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17972 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
17973 hardcode_shlibpath_var_GCJ
=no
17975 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
17977 # The compiler driver will combine and reorder linker options,
17978 # but understands `-z linker_flag'. GCC discards it without `$wl',
17979 # but is careful enough not to reorder.
17980 # Supported since Solaris 2.6 (maybe 2.5.1?)
17981 if test "$GCC" = yes; then
17982 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17984 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
17988 link_all_deplibs_GCJ
=yes
17992 if test "x$host_vendor" = xsequent
; then
17993 # Use $CC to link under sequent, because it throws in some extra .o
17994 # files that make .init and .fini sections work.
17995 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17997 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17999 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18000 hardcode_direct_GCJ
=yes
18001 hardcode_minus_L_GCJ
=yes
18002 hardcode_shlibpath_var_GCJ
=no
18006 case $host_vendor in
18008 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18009 hardcode_direct_GCJ
=yes # is this really true???
18012 ## LD is ld it makes a PLAMLIB
18013 ## CC just makes a GrossModule.
18014 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18015 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
18016 hardcode_direct_GCJ
=no
18019 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
18023 runpath_var
='LD_RUN_PATH'
18024 hardcode_shlibpath_var_GCJ
=no
18028 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18029 hardcode_shlibpath_var_GCJ
=no
18030 export_dynamic_flag_spec_GCJ
='-Bexport'
18034 if test -d /usr
/nec
; then
18035 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18036 hardcode_shlibpath_var_GCJ
=no
18037 runpath_var
=LD_RUN_PATH
18038 hardcode_runpath_var
=yes
18043 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
18044 no_undefined_flag_GCJ
='${wl}-z,text'
18045 archive_cmds_need_lc_GCJ
=no
18046 hardcode_shlibpath_var_GCJ
=no
18047 runpath_var
='LD_RUN_PATH'
18049 if test "$GCC" = yes; then
18050 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18051 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18053 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18054 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18058 sysv5
* | sco3.2v5
* | sco5v6
*)
18059 # Note: We can NOT use -z defs as we might desire, because we do not
18060 # link with -lc, and that would cause any symbols used from libc to
18061 # always be unresolved, which means just about no library would
18062 # ever link correctly. If we're not using GNU ld we use -z text
18063 # though, which does catch some bad symbols but isn't as heavy-handed
18065 no_undefined_flag_GCJ
='${wl}-z,text'
18066 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
18067 archive_cmds_need_lc_GCJ
=no
18068 hardcode_shlibpath_var_GCJ
=no
18069 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18070 hardcode_libdir_separator_GCJ
=':'
18071 link_all_deplibs_GCJ
=yes
18072 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
18073 runpath_var
='LD_RUN_PATH'
18075 if test "$GCC" = yes; then
18076 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18077 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18079 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18080 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18085 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18086 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
18087 hardcode_shlibpath_var_GCJ
=no
18096 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18097 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18098 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
18101 # Do we need to explicitly link libc?
18103 case "x$archive_cmds_need_lc_GCJ" in
18105 # Assume -lc should be added
18106 archive_cmds_need_lc_GCJ
=yes
18108 if test "$enable_shared" = yes && test "$GCC" = yes; then
18109 case $archive_cmds_GCJ in
18111 # FIXME: we may have to deal with multi-command sequences.
18114 # Test whether the compiler implicitly links with -lc since on some
18115 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18116 # to ld, don't add -lc before -lgcc.
18117 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18118 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18120 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
18122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18123 (eval $ac_compile) 2>&5
18125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126 (exit $ac_status); } 2>conftest.err
; then
18129 libobjs
=conftest.
$ac_objext
18131 wl
=$lt_prog_compiler_wl_GCJ
18132 pic_flag
=$lt_prog_compiler_pic_GCJ
18138 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
18139 allow_undefined_flag_GCJ
=
18140 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18141 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
18143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18144 (exit $ac_status); }
18146 archive_cmds_need_lc_GCJ
=no
18148 archive_cmds_need_lc_GCJ
=yes
18150 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
18152 cat conftest.err
1>&5
18155 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18156 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18163 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18164 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18165 library_names_spec
=
18166 libname_spec
='lib$name'
18170 postuninstall_cmds
=
18174 shlibpath_overrides_runpath
=unknown
18176 dynamic_linker
="$host_os ld.so"
18177 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
18179 need_lib_prefix
=unknown
18180 hardcode_into_libs
=no
18182 # when you set need_version to no, make sure it does not cause -set_version
18183 # flags to be left without arguments
18184 need_version
=unknown
18189 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
18190 shlibpath_var
=LIBPATH
18192 # AIX 3 has no versioning support, so we append a major version to the name.
18193 soname_spec
='${libname}${release}${shared_ext}$major'
18200 hardcode_into_libs
=yes
18201 if test "$host_cpu" = ia64
; then
18202 # AIX 5 supports IA64
18203 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18204 shlibpath_var
=LD_LIBRARY_PATH
18206 # With GCC up to 2.95.x, collect2 would create an import file
18207 # for dependence libraries. The import file would start with
18208 # the line `#! .'. This would cause the generated library to
18209 # depend on `.', always an invalid library. This was fixed in
18210 # development snapshots of GCC prior to 3.0.
18212 aix4 | aix4.
[01] | aix4.
[01].
*)
18213 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18215 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
18218 can_build_shared
=no
18222 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18223 # soname into executable. Probably we can add versioning support to
18224 # collect2, so additional links can be useful in future.
18225 if test "$aix_use_runtimelinking" = yes; then
18226 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18227 # instead of lib<name>.a to let people know that these are not
18228 # typical AIX shared libraries.
18229 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18231 # We preserve .a as extension for shared libraries through AIX4.2
18232 # and later when we are not doing run time linking.
18233 library_names_spec
='${libname}${release}.a $libname.a'
18234 soname_spec
='${libname}${release}${shared_ext}$major'
18236 shlibpath_var
=LIBPATH
18241 library_names_spec
='$libname.ixlibrary $libname.a'
18242 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18243 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
18247 library_names_spec
='${libname}${shared_ext}'
18248 dynamic_linker
="$host_os ld.so"
18249 shlibpath_var
=LIBRARY_PATH
18255 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18256 soname_spec
='${libname}${release}${shared_ext}$major'
18257 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
18258 shlibpath_var
=LD_LIBRARY_PATH
18259 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18260 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
18261 # the default ld.so.conf also contains /usr/contrib/lib and
18262 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18263 # libtool to hard-code these into programs
18266 cygwin
* | mingw
* | pw32
*)
18267 version_type
=windows
18272 case $GCC,$host_os in
18273 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
18274 library_names_spec
='$libname.dll.a'
18275 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18276 postinstall_cmds
='base_file=`basename \${file}`~
18277 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18278 dldir=$destdir/`dirname \$dlpath`~
18279 test -d \$dldir || mkdir -p \$dldir~
18280 $install_prog $dir/$dlname \$dldir/$dlname~
18281 chmod a+x \$dldir/$dlname'
18282 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18283 dlpath=$dir/\$dldll~
18285 shlibpath_overrides_runpath
=yes
18289 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18290 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18291 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
18294 # MinGW DLLs use traditional 'lib' prefix
18295 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18296 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18297 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
18298 # It is most probably a Windows format PATH printed by
18299 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18300 # path with ; separators, and with drive letters. We can handle the
18301 # drive letters (cygwin fileutils understands them), so leave them,
18302 # especially as we might pass files found there to a mingw objdump,
18303 # which wouldn't understand a cygwinified path. Ahh.
18304 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18306 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18310 # pw32 DLLs use 'pw' prefix rather than 'lib'
18311 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18317 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18320 dynamic_linker
='Win32 ld.exe'
18321 # FIXME: first we should search . and the directory the executable is in
18325 darwin
* | rhapsody
*)
18326 dynamic_linker
="$host_os dyld"
18327 version_type
=darwin
18330 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18331 soname_spec
='${libname}${release}${major}$shared_ext'
18332 shlibpath_overrides_runpath
=yes
18333 shlibpath_var
=DYLD_LIBRARY_PATH
18334 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
18336 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
18343 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18344 soname_spec
='${libname}${release}${shared_ext}$major'
18345 shlibpath_var
=LD_LIBRARY_PATH
18352 freebsd
* | dragonfly
*)
18353 # DragonFly does not have aout. When/if they implement a new
18354 # versioning mechanism, adjust this.
18355 if test -x /usr
/bin
/objformat
; then
18356 objformat
=`/usr/bin/objformat`
18359 freebsd
[123]*) objformat
=aout
;;
18360 *) objformat
=elf
;;
18363 version_type
=freebsd-
$objformat
18364 case $version_type in
18366 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18371 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18375 shlibpath_var
=LD_LIBRARY_PATH
18378 shlibpath_overrides_runpath
=yes
18380 freebsd3.
[01]* | freebsdelf3.
[01]*)
18381 shlibpath_overrides_runpath
=yes
18382 hardcode_into_libs
=yes
18384 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
18385 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
18386 shlibpath_overrides_runpath
=no
18387 hardcode_into_libs
=yes
18389 *) # from 4.6 on, and DragonFly
18390 shlibpath_overrides_runpath
=yes
18391 hardcode_into_libs
=yes
18400 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18401 soname_spec
='${libname}${release}${shared_ext}$major'
18402 shlibpath_var
=LD_LIBRARY_PATH
18403 hardcode_into_libs
=yes
18406 hpux9
* | hpux10
* | hpux11
*)
18407 # Give a soname corresponding to the major version so that dld.sl refuses to
18408 # link against other versions.
18415 hardcode_into_libs
=yes
18416 dynamic_linker
="$host_os dld.so"
18417 shlibpath_var
=LD_LIBRARY_PATH
18418 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18419 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18420 soname_spec
='${libname}${release}${shared_ext}$major'
18421 if test "X$HPUX_IA64_MODE" = X32
; then
18422 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18424 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
18426 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18430 hardcode_into_libs
=yes
18431 dynamic_linker
="$host_os dld.sl"
18432 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18433 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18434 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18435 soname_spec
='${libname}${release}${shared_ext}$major'
18436 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18437 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18441 dynamic_linker
="$host_os dld.sl"
18442 shlibpath_var
=SHLIB_PATH
18443 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18444 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18445 soname_spec
='${libname}${release}${shared_ext}$major'
18448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18449 postinstall_cmds
='chmod 555 $lib'
18456 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18457 soname_spec
='${libname}${release}${shared_ext}$major'
18458 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18459 shlibpath_var
=LD_LIBRARY_PATH
18460 shlibpath_overrides_runpath
=no
18461 hardcode_into_libs
=yes
18464 irix5
* | irix6
* | nonstopux
*)
18466 nonstopux
*) version_type
=nonstopux
;;
18468 if test "$lt_cv_prog_gnu_ld" = yes; then
18476 soname_spec
='${libname}${release}${shared_ext}$major'
18477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18479 irix5
* | nonstopux
*)
18480 libsuff
= shlibsuff
=
18483 case $LD in # libtool.m4 will add one of these switches to LD
18484 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18485 libsuff
= shlibsuff
= libmagic
=32-bit;;
18486 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18487 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18488 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18489 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18490 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18494 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18495 shlibpath_overrides_runpath
=no
18496 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18497 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18498 hardcode_into_libs
=yes
18501 # No shared lib support for Linux oldld, aout, or coff.
18502 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18506 # This must be Linux ELF.
18507 linux
* | k
*bsd
*-gnu)
18511 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18512 soname_spec
='${libname}${release}${shared_ext}$major'
18513 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18514 shlibpath_var
=LD_LIBRARY_PATH
18515 shlibpath_overrides_runpath
=no
18516 # This implies no fast_install, which is unacceptable.
18517 # Some rework will be needed to allow for fast_install
18518 # before this can be enabled.
18519 hardcode_into_libs
=yes
18520 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18521 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18523 # Append ld.so.conf contents to the search path
18524 if test -f /etc
/ld.so.conf
; then
18525 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;/^$/d' | tr '\n' ' '`
18526 sys_lib_dlsearch_path_spec
="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18529 # We used to test for /lib/ld.so.1 and disable shared libraries on
18530 # powerpc, because MkLinux only supported shared libraries with the
18531 # GNU dynamic linker. Since this was broken with cross compilers,
18532 # most powerpc-linux boxes support dynamic linking these days and
18533 # people can always --disable-shared, the test was removed, and we
18534 # assume the GNU/Linux dynamic linker is in use.
18535 dynamic_linker
='GNU/Linux ld.so'
18542 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18543 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18544 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18545 dynamic_linker
='NetBSD (a.out) ld.so'
18547 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18548 soname_spec
='${libname}${release}${shared_ext}$major'
18549 dynamic_linker
='NetBSD ld.elf_so'
18551 shlibpath_var
=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath
=yes
18553 hardcode_into_libs
=yes
18558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 shlibpath_var
=LD_LIBRARY_PATH
18560 shlibpath_overrides_runpath
=yes
18567 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18568 soname_spec
='${libname}${release}${shared_ext}$major'
18569 shlibpath_var
=LD_LIBRARY_PATH
18570 shlibpath_overrides_runpath
=yes
18575 sys_lib_dlsearch_path_spec
="/usr/lib"
18577 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18579 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18580 *) need_version
=no
;;
18582 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18583 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18584 shlibpath_var
=LD_LIBRARY_PATH
18585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18587 openbsd2.
[89] | openbsd2.
[89].
*)
18588 shlibpath_overrides_runpath
=no
18591 shlibpath_overrides_runpath
=yes
18595 shlibpath_overrides_runpath
=yes
18600 libname_spec
='$name'
18603 library_names_spec
='$libname${shared_ext} $libname.a'
18604 dynamic_linker
='OS/2 ld.exe'
18605 shlibpath_var
=LIBPATH
18608 osf3
* | osf4
* | osf5
*)
18612 soname_spec
='${libname}${release}${shared_ext}$major'
18613 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18614 shlibpath_var
=LD_LIBRARY_PATH
18615 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18616 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18627 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18628 soname_spec
='${libname}${release}${shared_ext}$major'
18629 shlibpath_var
=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath
=yes
18631 hardcode_into_libs
=yes
18632 # ldd complains unless libraries are executable
18633 postinstall_cmds
='chmod +x $lib'
18638 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18639 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18640 shlibpath_var
=LD_LIBRARY_PATH
18641 shlibpath_overrides_runpath
=yes
18642 if test "$with_gnu_ld" = yes; then
18650 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18651 soname_spec
='${libname}${release}${shared_ext}$major'
18652 shlibpath_var
=LD_LIBRARY_PATH
18653 case $host_vendor in
18655 shlibpath_overrides_runpath
=no
18657 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18658 runpath_var
=LD_RUN_PATH
18666 shlibpath_overrides_runpath
=no
18667 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18673 if test -d /usr
/nec
;then
18675 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18676 soname_spec
='$libname${shared_ext}.$major'
18677 shlibpath_var
=LD_LIBRARY_PATH
18681 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18682 version_type
=freebsd-elf
18685 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18686 soname_spec
='${libname}${release}${shared_ext}$major'
18687 shlibpath_var
=LD_LIBRARY_PATH
18688 hardcode_into_libs
=yes
18689 if test "$with_gnu_ld" = yes; then
18690 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18691 shlibpath_overrides_runpath
=no
18693 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18694 shlibpath_overrides_runpath
=yes
18697 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18701 sys_lib_dlsearch_path_spec
='/usr/lib'
18706 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18707 soname_spec
='${libname}${release}${shared_ext}$major'
18708 shlibpath_var
=LD_LIBRARY_PATH
18715 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18716 echo "${ECHO_T}$dynamic_linker" >&6; }
18717 test "$dynamic_linker" = no
&& can_build_shared
=no
18719 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18720 if test "$GCC" = yes; then
18721 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18724 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18725 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18726 hardcode_action_GCJ
=
18727 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18728 test -n "$runpath_var_GCJ" || \
18729 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18731 # We can hardcode non-existant directories.
18732 if test "$hardcode_direct_GCJ" != no
&&
18733 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18734 # have to relink, otherwise we might link with an installed library
18735 # when we should be linking with a yet-to-be-installed one
18736 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18737 test "$hardcode_minus_L_GCJ" != no
; then
18738 # Linking always hardcodes the temporary library directory.
18739 hardcode_action_GCJ
=relink
18741 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18742 hardcode_action_GCJ
=immediate
18745 # We cannot hardcode anything, or else we can only hardcode existing
18747 hardcode_action_GCJ
=unsupported
18749 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18750 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18752 if test "$hardcode_action_GCJ" = relink
; then
18753 # Fast installation is not supported
18754 enable_fast_install
=no
18755 elif test "$shlibpath_overrides_runpath" = yes ||
18756 test "$enable_shared" = no
; then
18757 # Fast installation is not necessary
18758 enable_fast_install
=needless
18762 # The else clause should only fire when bootstrapping the
18763 # libtool distribution, otherwise you forgot to ship ltmain.sh
18764 # with your package, and you will get complaints that there are
18765 # no rules to generate ltmain.sh.
18766 if test -f "$ltmain"; then
18767 # See if we are running on zsh, and set the options which allow our commands through
18768 # without removal of \ escapes.
18769 if test -n "${ZSH_VERSION+set}" ; then
18770 setopt NO_GLOB_SUBST
18772 # Now quote all the things that may contain metacharacters while being
18773 # careful not to overquote the AC_SUBSTed values. We take copies of the
18774 # variables and quote the copies for generation of the libtool script.
18775 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18777 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18778 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18779 deplibs_check_method reload_flag reload_cmds need_locks \
18780 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18781 lt_cv_sys_global_symbol_to_c_name_address \
18782 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18783 old_postinstall_cmds old_postuninstall_cmds \
18787 lt_prog_compiler_wl_GCJ \
18788 lt_prog_compiler_pic_GCJ \
18789 lt_prog_compiler_static_GCJ \
18790 lt_prog_compiler_no_builtin_flag_GCJ \
18791 export_dynamic_flag_spec_GCJ \
18792 thread_safe_flag_spec_GCJ \
18793 whole_archive_flag_spec_GCJ \
18794 enable_shared_with_static_runtimes_GCJ \
18795 old_archive_cmds_GCJ \
18796 old_archive_from_new_cmds_GCJ \
18797 predep_objects_GCJ \
18798 postdep_objects_GCJ \
18801 compiler_lib_search_path_GCJ \
18803 archive_expsym_cmds_GCJ \
18804 postinstall_cmds_GCJ \
18805 postuninstall_cmds_GCJ \
18806 old_archive_from_expsyms_cmds_GCJ \
18807 allow_undefined_flag_GCJ \
18808 no_undefined_flag_GCJ \
18809 export_symbols_cmds_GCJ \
18810 hardcode_libdir_flag_spec_GCJ \
18811 hardcode_libdir_flag_spec_ld_GCJ \
18812 hardcode_libdir_separator_GCJ \
18813 hardcode_automatic_GCJ \
18815 module_expsym_cmds_GCJ \
18816 lt_cv_prog_compiler_c_o_GCJ \
18817 fix_srcfile_path_GCJ \
18818 exclude_expsyms_GCJ \
18819 include_expsyms_GCJ
; do
18822 old_archive_cmds_GCJ | \
18823 old_archive_from_new_cmds_GCJ | \
18824 archive_cmds_GCJ | \
18825 archive_expsym_cmds_GCJ | \
18826 module_cmds_GCJ | \
18827 module_expsym_cmds_GCJ | \
18828 old_archive_from_expsyms_cmds_GCJ | \
18829 export_symbols_cmds_GCJ | \
18830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18831 postinstall_cmds | postuninstall_cmds | \
18832 old_postinstall_cmds | old_postuninstall_cmds | \
18833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18834 # Double-quote double-evaled strings.
18835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18844 *'\$0 --fallback-echo"')
18845 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18851 cat <<__EOF__ >> "$cfgfile"
18852 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18856 # Shell to use when invoking shell scripts.
18859 # Whether or not to build shared libraries.
18860 build_libtool_libs=$enable_shared
18862 # Whether or not to build static libraries.
18863 build_old_libs=$enable_static
18865 # Whether or not to add -lc for building shared libraries.
18866 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18868 # Whether or not to disallow shared libs when runtime libs are static
18869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18871 # Whether or not to optimize for fast installation.
18872 fast_install=$enable_fast_install
18875 host_alias=$host_alias
18879 # The build system.
18880 build_alias=$build_alias
18884 # An echo program that does not interpret backslashes.
18889 AR_FLAGS=$lt_AR_FLAGS
18894 # LTCC compiler flags.
18895 LTCFLAGS=$lt_LTCFLAGS
18897 # A language-specific compiler.
18898 CC=$lt_compiler_GCJ
18900 # Is the compiler the GNU C compiler?
18906 # The linker used to build libraries.
18909 # Whether we need hard or soft links.
18912 # A BSD-compatible nm program.
18915 # A symbol stripping program
18918 # Used to examine libraries when file_magic_cmd begins "file"
18919 MAGIC_CMD=$MAGIC_CMD
18921 # Used on cygwin: DLL creation program.
18924 # Used on cygwin: object dumper.
18927 # Used on cygwin: assembler.
18930 # The name of the directory that contains temporary libtool files.
18933 # How to create reloadable object files.
18934 reload_flag=$lt_reload_flag
18935 reload_cmds=$lt_reload_cmds
18937 # How to pass a linker flag through the compiler.
18938 wl=$lt_lt_prog_compiler_wl_GCJ
18940 # Object file suffix (normally "o").
18941 objext="$ac_objext"
18943 # Old archive suffix (normally "a").
18946 # Shared library suffix (normally ".so").
18947 shrext_cmds='$shrext_cmds'
18949 # Executable file suffix (normally "").
18952 # Additional compiler flags for building library objects.
18953 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18956 # What is the maximum length of a command?
18957 max_cmd_len=$lt_cv_sys_max_cmd_len
18959 # Does compiler simultaneously support -c and -o options?
18960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18962 # Must we lock files when doing compilation?
18963 need_locks=$lt_need_locks
18965 # Do we need the lib prefix for modules?
18966 need_lib_prefix=$need_lib_prefix
18968 # Do we need a version for libraries?
18969 need_version=$need_version
18971 # Whether dlopen is supported.
18972 dlopen_support=$enable_dlopen
18974 # Whether dlopen of programs is supported.
18975 dlopen_self=$enable_dlopen_self
18977 # Whether dlopen of statically linked programs is supported.
18978 dlopen_self_static=$enable_dlopen_self_static
18980 # Compiler flag to prevent dynamic linking.
18981 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18983 # Compiler flag to turn off builtin functions.
18984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18986 # Compiler flag to allow reflexive dlopens.
18987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18989 # Compiler flag to generate shared objects directly from archives.
18990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18992 # Compiler flag to generate thread-safe objects.
18993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18995 # Library versioning type.
18996 version_type=$version_type
18998 # Format of library name prefix.
18999 libname_spec=$lt_libname_spec
19001 # List of archive names. First name is the real one, the rest are links.
19002 # The last name is the one that the linker finds with -lNAME.
19003 library_names_spec=$lt_library_names_spec
19005 # The coded name of the library, if different from the real name.
19006 soname_spec=$lt_soname_spec
19008 # Commands used to build and install an old-style archive.
19010 old_archive_cmds=$lt_old_archive_cmds_GCJ
19011 old_postinstall_cmds=$lt_old_postinstall_cmds
19012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19014 # Create an old-style archive from a shared archive.
19015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19017 # Create a temporary old-style archive to link instead of a shared archive.
19018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19020 # Commands used to build and install a shared archive.
19021 archive_cmds=$lt_archive_cmds_GCJ
19022 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19023 postinstall_cmds=$lt_postinstall_cmds
19024 postuninstall_cmds=$lt_postuninstall_cmds
19026 # Commands used to build a loadable module (assumed same as above if empty)
19027 module_cmds=$lt_module_cmds_GCJ
19028 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19030 # Commands to strip libraries.
19031 old_striplib=$lt_old_striplib
19032 striplib=$lt_striplib
19034 # Dependencies to place before the objects being linked to create a
19036 predep_objects=$lt_predep_objects_GCJ
19038 # Dependencies to place after the objects being linked to create a
19040 postdep_objects=$lt_postdep_objects_GCJ
19042 # Dependencies to place before the objects being linked to create a
19044 predeps=$lt_predeps_GCJ
19046 # Dependencies to place after the objects being linked to create a
19048 postdeps=$lt_postdeps_GCJ
19050 # The library search path used internally by the compiler when linking
19051 # a shared library.
19052 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19054 # Method to check whether dependent libraries are shared objects.
19055 deplibs_check_method=$lt_deplibs_check_method
19057 # Command to use when deplibs_check_method == file_magic.
19058 file_magic_cmd=$lt_file_magic_cmd
19060 # Flag that allows shared libraries with undefined symbols to be built.
19061 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19063 # Flag that forces no undefined symbols.
19064 no_undefined_flag=$lt_no_undefined_flag_GCJ
19066 # Commands used to finish a libtool library installation in a directory.
19067 finish_cmds=$lt_finish_cmds
19069 # Same as above, but a single script fragment to be evaled but not shown.
19070 finish_eval=$lt_finish_eval
19072 # Take the output of nm and produce a listing of raw symbols and C names.
19073 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19075 # Transform the output of nm in a proper C declaration
19076 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19078 # Transform the output of nm in a C name address pair
19079 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19081 # This is the shared library runtime path variable.
19082 runpath_var=$runpath_var
19084 # This is the shared library path variable.
19085 shlibpath_var=$shlibpath_var
19087 # Is shlibpath searched before the hard-coded library search path?
19088 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19090 # How to hardcode a shared library path into an executable.
19091 hardcode_action=$hardcode_action_GCJ
19093 # Whether we should hardcode library paths into libraries.
19094 hardcode_into_libs=$hardcode_into_libs
19096 # Flag to hardcode \$libdir into a binary during linking.
19097 # This must work even if \$libdir does not exist.
19098 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19100 # If ld is used when linking, flag to hardcode \$libdir into
19101 # a binary during linking. This must work even if \$libdir does
19103 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19105 # Whether we need a single -rpath flag with a separated argument.
19106 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19108 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19109 # resulting binary.
19110 hardcode_direct=$hardcode_direct_GCJ
19112 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19113 # resulting binary.
19114 hardcode_minus_L=$hardcode_minus_L_GCJ
19116 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19117 # the resulting binary.
19118 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19120 # Set to yes if building a shared library automatically hardcodes DIR into the library
19121 # and all subsequent libraries and executables linked against it.
19122 hardcode_automatic=$hardcode_automatic_GCJ
19124 # Variables whose values should be saved in libtool wrapper scripts and
19125 # restored at relink time.
19126 variables_saved_for_relink="$variables_saved_for_relink"
19128 # Whether libtool must link a program against all its dependency libraries.
19129 link_all_deplibs=$link_all_deplibs_GCJ
19131 # Compile-time system search path for libraries
19132 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19134 # Run-time system search path for libraries
19135 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19137 # Fix the shell variable \$srcfile for the compiler.
19138 fix_srcfile_path=$lt_fix_srcfile_path
19140 # Set to yes if exported symbols are required.
19141 always_export_symbols=$always_export_symbols_GCJ
19143 # The commands to list exported symbols.
19144 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19146 # The commands to extract the exported symbol list from a shared archive.
19147 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19149 # Symbols that should not be listed in the preloaded symbols.
19150 exclude_expsyms=$lt_exclude_expsyms_GCJ
19152 # Symbols that must always be exported.
19153 include_expsyms=$lt_include_expsyms_GCJ
19155 # ### END LIBTOOL TAG CONFIG: $tagname
19161 # If there is no Makefile yet, we rely on a make rule to execute
19162 # `config.status --recheck' to rerun these tests and create the
19163 # libtool script then.
19164 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19165 if test -f "$ltmain_in"; then
19166 test -f Makefile
&& make "$ltmain"
19172 ac_cpp
='$CPP $CPPFLAGS'
19173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19187 # Source file extension for RC test sources.
19190 # Object file extension for compiled RC test sources.
19194 # Code to be used in simple compile tests
19195 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19197 # Code to be used in simple link tests
19198 lt_simple_link_test_code
="$lt_simple_compile_test_code"
19200 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19202 # If no C compiler was specified, use CC.
19205 # If no C compiler flags were specified, use CFLAGS.
19206 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
19208 # Allow CC to be a program name with arguments.
19212 # save warnings/boilerplate of simple test code
19213 ac_outfile
=conftest.
$ac_objext
19214 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
19215 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19216 _lt_compiler_boilerplate
=`cat conftest.err`
19219 ac_outfile
=conftest.
$ac_objext
19220 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
19221 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
19222 _lt_linker_boilerplate
=`cat conftest.err`
19226 # Allow CC to be a program name with arguments.
19231 for cc_temp
in $compiler""; do
19233 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19234 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19239 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19241 lt_cv_prog_compiler_c_o_RC
=yes
19243 # The else clause should only fire when bootstrapping the
19244 # libtool distribution, otherwise you forgot to ship ltmain.sh
19245 # with your package, and you will get complaints that there are
19246 # no rules to generate ltmain.sh.
19247 if test -f "$ltmain"; then
19248 # See if we are running on zsh, and set the options which allow our commands through
19249 # without removal of \ escapes.
19250 if test -n "${ZSH_VERSION+set}" ; then
19251 setopt NO_GLOB_SUBST
19253 # Now quote all the things that may contain metacharacters while being
19254 # careful not to overquote the AC_SUBSTed values. We take copies of the
19255 # variables and quote the copies for generation of the libtool script.
19256 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19258 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19259 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19260 deplibs_check_method reload_flag reload_cmds need_locks \
19261 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19262 lt_cv_sys_global_symbol_to_c_name_address \
19263 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19264 old_postinstall_cmds old_postuninstall_cmds \
19268 lt_prog_compiler_wl_RC \
19269 lt_prog_compiler_pic_RC \
19270 lt_prog_compiler_static_RC \
19271 lt_prog_compiler_no_builtin_flag_RC \
19272 export_dynamic_flag_spec_RC \
19273 thread_safe_flag_spec_RC \
19274 whole_archive_flag_spec_RC \
19275 enable_shared_with_static_runtimes_RC \
19276 old_archive_cmds_RC \
19277 old_archive_from_new_cmds_RC \
19278 predep_objects_RC \
19279 postdep_objects_RC \
19282 compiler_lib_search_path_RC \
19284 archive_expsym_cmds_RC \
19285 postinstall_cmds_RC \
19286 postuninstall_cmds_RC \
19287 old_archive_from_expsyms_cmds_RC \
19288 allow_undefined_flag_RC \
19289 no_undefined_flag_RC \
19290 export_symbols_cmds_RC \
19291 hardcode_libdir_flag_spec_RC \
19292 hardcode_libdir_flag_spec_ld_RC \
19293 hardcode_libdir_separator_RC \
19294 hardcode_automatic_RC \
19296 module_expsym_cmds_RC \
19297 lt_cv_prog_compiler_c_o_RC \
19298 fix_srcfile_path_RC \
19299 exclude_expsyms_RC \
19300 include_expsyms_RC
; do
19303 old_archive_cmds_RC | \
19304 old_archive_from_new_cmds_RC | \
19305 archive_cmds_RC | \
19306 archive_expsym_cmds_RC | \
19308 module_expsym_cmds_RC | \
19309 old_archive_from_expsyms_cmds_RC | \
19310 export_symbols_cmds_RC | \
19311 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19312 postinstall_cmds | postuninstall_cmds | \
19313 old_postinstall_cmds | old_postuninstall_cmds | \
19314 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
19315 # Double-quote double-evaled strings.
19316 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19319 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19325 *'\$0 --fallback-echo"')
19326 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19332 cat <<__EOF__ >> "$cfgfile"
19333 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19335 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19337 # Shell to use when invoking shell scripts.
19340 # Whether or not to build shared libraries.
19341 build_libtool_libs=$enable_shared
19343 # Whether or not to build static libraries.
19344 build_old_libs=$enable_static
19346 # Whether or not to add -lc for building shared libraries.
19347 build_libtool_need_lc=$archive_cmds_need_lc_RC
19349 # Whether or not to disallow shared libs when runtime libs are static
19350 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19352 # Whether or not to optimize for fast installation.
19353 fast_install=$enable_fast_install
19356 host_alias=$host_alias
19360 # The build system.
19361 build_alias=$build_alias
19365 # An echo program that does not interpret backslashes.
19370 AR_FLAGS=$lt_AR_FLAGS
19375 # LTCC compiler flags.
19376 LTCFLAGS=$lt_LTCFLAGS
19378 # A language-specific compiler.
19381 # Is the compiler the GNU C compiler?
19387 # The linker used to build libraries.
19390 # Whether we need hard or soft links.
19393 # A BSD-compatible nm program.
19396 # A symbol stripping program
19399 # Used to examine libraries when file_magic_cmd begins "file"
19400 MAGIC_CMD=$MAGIC_CMD
19402 # Used on cygwin: DLL creation program.
19405 # Used on cygwin: object dumper.
19408 # Used on cygwin: assembler.
19411 # The name of the directory that contains temporary libtool files.
19414 # How to create reloadable object files.
19415 reload_flag=$lt_reload_flag
19416 reload_cmds=$lt_reload_cmds
19418 # How to pass a linker flag through the compiler.
19419 wl=$lt_lt_prog_compiler_wl_RC
19421 # Object file suffix (normally "o").
19422 objext="$ac_objext"
19424 # Old archive suffix (normally "a").
19427 # Shared library suffix (normally ".so").
19428 shrext_cmds='$shrext_cmds'
19430 # Executable file suffix (normally "").
19433 # Additional compiler flags for building library objects.
19434 pic_flag=$lt_lt_prog_compiler_pic_RC
19437 # What is the maximum length of a command?
19438 max_cmd_len=$lt_cv_sys_max_cmd_len
19440 # Does compiler simultaneously support -c and -o options?
19441 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19443 # Must we lock files when doing compilation?
19444 need_locks=$lt_need_locks
19446 # Do we need the lib prefix for modules?
19447 need_lib_prefix=$need_lib_prefix
19449 # Do we need a version for libraries?
19450 need_version=$need_version
19452 # Whether dlopen is supported.
19453 dlopen_support=$enable_dlopen
19455 # Whether dlopen of programs is supported.
19456 dlopen_self=$enable_dlopen_self
19458 # Whether dlopen of statically linked programs is supported.
19459 dlopen_self_static=$enable_dlopen_self_static
19461 # Compiler flag to prevent dynamic linking.
19462 link_static_flag=$lt_lt_prog_compiler_static_RC
19464 # Compiler flag to turn off builtin functions.
19465 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19467 # Compiler flag to allow reflexive dlopens.
19468 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19470 # Compiler flag to generate shared objects directly from archives.
19471 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19473 # Compiler flag to generate thread-safe objects.
19474 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19476 # Library versioning type.
19477 version_type=$version_type
19479 # Format of library name prefix.
19480 libname_spec=$lt_libname_spec
19482 # List of archive names. First name is the real one, the rest are links.
19483 # The last name is the one that the linker finds with -lNAME.
19484 library_names_spec=$lt_library_names_spec
19486 # The coded name of the library, if different from the real name.
19487 soname_spec=$lt_soname_spec
19489 # Commands used to build and install an old-style archive.
19491 old_archive_cmds=$lt_old_archive_cmds_RC
19492 old_postinstall_cmds=$lt_old_postinstall_cmds
19493 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19495 # Create an old-style archive from a shared archive.
19496 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19498 # Create a temporary old-style archive to link instead of a shared archive.
19499 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19501 # Commands used to build and install a shared archive.
19502 archive_cmds=$lt_archive_cmds_RC
19503 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19504 postinstall_cmds=$lt_postinstall_cmds
19505 postuninstall_cmds=$lt_postuninstall_cmds
19507 # Commands used to build a loadable module (assumed same as above if empty)
19508 module_cmds=$lt_module_cmds_RC
19509 module_expsym_cmds=$lt_module_expsym_cmds_RC
19511 # Commands to strip libraries.
19512 old_striplib=$lt_old_striplib
19513 striplib=$lt_striplib
19515 # Dependencies to place before the objects being linked to create a
19517 predep_objects=$lt_predep_objects_RC
19519 # Dependencies to place after the objects being linked to create a
19521 postdep_objects=$lt_postdep_objects_RC
19523 # Dependencies to place before the objects being linked to create a
19525 predeps=$lt_predeps_RC
19527 # Dependencies to place after the objects being linked to create a
19529 postdeps=$lt_postdeps_RC
19531 # The library search path used internally by the compiler when linking
19532 # a shared library.
19533 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19535 # Method to check whether dependent libraries are shared objects.
19536 deplibs_check_method=$lt_deplibs_check_method
19538 # Command to use when deplibs_check_method == file_magic.
19539 file_magic_cmd=$lt_file_magic_cmd
19541 # Flag that allows shared libraries with undefined symbols to be built.
19542 allow_undefined_flag=$lt_allow_undefined_flag_RC
19544 # Flag that forces no undefined symbols.
19545 no_undefined_flag=$lt_no_undefined_flag_RC
19547 # Commands used to finish a libtool library installation in a directory.
19548 finish_cmds=$lt_finish_cmds
19550 # Same as above, but a single script fragment to be evaled but not shown.
19551 finish_eval=$lt_finish_eval
19553 # Take the output of nm and produce a listing of raw symbols and C names.
19554 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19556 # Transform the output of nm in a proper C declaration
19557 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19559 # Transform the output of nm in a C name address pair
19560 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19562 # This is the shared library runtime path variable.
19563 runpath_var=$runpath_var
19565 # This is the shared library path variable.
19566 shlibpath_var=$shlibpath_var
19568 # Is shlibpath searched before the hard-coded library search path?
19569 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19571 # How to hardcode a shared library path into an executable.
19572 hardcode_action=$hardcode_action_RC
19574 # Whether we should hardcode library paths into libraries.
19575 hardcode_into_libs=$hardcode_into_libs
19577 # Flag to hardcode \$libdir into a binary during linking.
19578 # This must work even if \$libdir does not exist.
19579 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19581 # If ld is used when linking, flag to hardcode \$libdir into
19582 # a binary during linking. This must work even if \$libdir does
19584 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19586 # Whether we need a single -rpath flag with a separated argument.
19587 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19589 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19590 # resulting binary.
19591 hardcode_direct=$hardcode_direct_RC
19593 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19594 # resulting binary.
19595 hardcode_minus_L=$hardcode_minus_L_RC
19597 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19598 # the resulting binary.
19599 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19601 # Set to yes if building a shared library automatically hardcodes DIR into the library
19602 # and all subsequent libraries and executables linked against it.
19603 hardcode_automatic=$hardcode_automatic_RC
19605 # Variables whose values should be saved in libtool wrapper scripts and
19606 # restored at relink time.
19607 variables_saved_for_relink="$variables_saved_for_relink"
19609 # Whether libtool must link a program against all its dependency libraries.
19610 link_all_deplibs=$link_all_deplibs_RC
19612 # Compile-time system search path for libraries
19613 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19615 # Run-time system search path for libraries
19616 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19618 # Fix the shell variable \$srcfile for the compiler.
19619 fix_srcfile_path=$lt_fix_srcfile_path
19621 # Set to yes if exported symbols are required.
19622 always_export_symbols=$always_export_symbols_RC
19624 # The commands to list exported symbols.
19625 export_symbols_cmds=$lt_export_symbols_cmds_RC
19627 # The commands to extract the exported symbol list from a shared archive.
19628 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19630 # Symbols that should not be listed in the preloaded symbols.
19631 exclude_expsyms=$lt_exclude_expsyms_RC
19633 # Symbols that must always be exported.
19634 include_expsyms=$lt_include_expsyms_RC
19636 # ### END LIBTOOL TAG CONFIG: $tagname
19642 # If there is no Makefile yet, we rely on a make rule to execute
19643 # `config.status --recheck' to rerun these tests and create the
19644 # libtool script then.
19645 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19646 if test -f "$ltmain_in"; then
19647 test -f Makefile
&& make "$ltmain"
19653 ac_cpp
='$CPP $CPPFLAGS'
19654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19663 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19664 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19665 { (exit 1); exit 1; }; }
19669 # Append the new tag name to the list of available tags.
19670 if test -n "$tagname" ; then
19671 available_tags
="$available_tags $tagname"
19677 # Now substitute the updated list of available tags.
19678 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19679 mv "${ofile}T" "$ofile"
19683 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19684 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19685 { (exit 1); exit 1; }; }
19691 # This can be used to rebuild libtool when needed
19692 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
19694 # Always use our own libtool.
19695 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
19697 # Prevent multiple expansion
19720 for ac_prog
in perl5 perl
19722 # Extract the first word of "$ac_prog", so it can be a program name with args.
19723 set dummy
$ac_prog; ac_word
=$2
19724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19726 if test "${ac_cv_path_PERL+set}" = set; then
19727 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
19734 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19735 for as_dir
in $LPATH
19738 test -z "$as_dir" && as_dir
=.
19739 for ac_exec_ext
in '' $ac_executable_extensions; do
19740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19741 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
19742 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19752 PERL
=$ac_cv_path_PERL
19753 if test -n "$PERL"; then
19754 { echo "$as_me:$LINENO: result: $PERL" >&5
19755 echo "${ECHO_T}$PERL" >&6; }
19757 { echo "$as_me:$LINENO: result: no" >&5
19758 echo "${ECHO_T}no" >&6; }
19762 test -n "$PERL" && break
19764 test -n "$PERL" || PERL
="perl"
19766 for ac_prog
in courier-config
19768 # Extract the first word of "$ac_prog", so it can be a program name with args.
19769 set dummy
$ac_prog; ac_word
=$2
19770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19772 if test "${ac_cv_path_COURIERCONFIG+set}" = set; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 case $COURIERCONFIG in
19777 ac_cv_path_COURIERCONFIG
="$COURIERCONFIG" # Let the user override the test with a path.
19780 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19781 for as_dir
in $LPATH
19784 test -z "$as_dir" && as_dir
=.
19785 for ac_exec_ext
in '' $ac_executable_extensions; do
19786 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19787 ac_cv_path_COURIERCONFIG
="$as_dir/$ac_word$ac_exec_ext"
19788 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19798 COURIERCONFIG
=$ac_cv_path_COURIERCONFIG
19799 if test -n "$COURIERCONFIG"; then
19800 { echo "$as_me:$LINENO: result: $COURIERCONFIG" >&5
19801 echo "${ECHO_T}$COURIERCONFIG" >&6; }
19803 { echo "$as_me:$LINENO: result: no" >&5
19804 echo "${ECHO_T}no" >&6; }
19808 test -n "$COURIERCONFIG" && break
19810 test -n "$COURIERCONFIG" || COURIERCONFIG
="courier-config"
19813 if test "$PERL" = "perl"
19815 { { echo "$as_me:$LINENO: error: Perl is required" >&5
19816 echo "$as_me: error: Perl is required" >&2;}
19817 { (exit 1); exit 1; }; }
19820 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
19821 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
19822 eval "prefix=$prefix"
19823 eval "exec_prefix=$exec_prefix"
19824 eval "sysconfdir=$sysconfdir"
19825 eval "bindir=$bindir"
19826 eval "sbindir=$sbindir"
19827 eval "localstatedir=$localstatedir"
19828 eval "libexecdir=$libexecdir"
19831 # Check whether --with-redhat was given.
19832 if test "${with_redhat+set}" = set; then
19833 withval
=$with_redhat; redhat
=$withval
19839 if test "$srcdir" = "."
19841 case `./config.guess` in
19843 if test "$redhat" = "no"
19846 { echo "$as_me:$LINENO: WARNING: === I think you are trying to run this configure script" >&5
19847 echo "$as_me: WARNING: === I think you are trying to run this configure script" >&2;}
19848 { echo "$as_me:$LINENO: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&5
19849 echo "$as_me: WARNING: === on Red Hat/Fedora. You're doing too much work!" >&2;}
19850 { echo "$as_me:$LINENO: WARNING: === It's much faster to create installable binary RPMs" >&5
19851 echo "$as_me: WARNING: === It's much faster to create installable binary RPMs" >&2;}
19852 { echo "$as_me:$LINENO: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&5
19853 echo "$as_me: WARNING: === like this: http://www.courier-mta.org/FAQ.html${hash}rpm" >&2;}
19854 { echo "$as_me:$LINENO: WARNING: === When you do this you may find that RPM will tell you" >&5
19855 echo "$as_me: WARNING: === When you do this you may find that RPM will tell you" >&2;}
19856 { echo "$as_me:$LINENO: WARNING: === to install some other software first, before trying to" >&5
19857 echo "$as_me: WARNING: === to install some other software first, before trying to" >&2;}
19858 { echo "$as_me:$LINENO: WARNING: === build this one, and even tell you the name of RPMs you" >&5
19859 echo "$as_me: WARNING: === build this one, and even tell you the name of RPMs you" >&2;}
19860 { echo "$as_me:$LINENO: WARNING: === need to install from the distribution CD. That's much" >&5
19861 echo "$as_me: WARNING: === need to install from the distribution CD. That's much" >&2;}
19862 { echo "$as_me:$LINENO: WARNING: === easier than trying to figure out the same from some" >&5
19863 echo "$as_me: WARNING: === easier than trying to figure out the same from some" >&2;}
19864 { echo "$as_me:$LINENO: WARNING: === cryptic error message." >&5
19865 echo "$as_me: WARNING: === cryptic error message." >&2;}
19866 { echo "$as_me:$LINENO: WARNING: " >&5
19867 echo "$as_me: WARNING: " >&2;}
19868 { echo "$as_me:$LINENO: WARNING: === Even if you don't intend to use everything you need to" >&5
19869 echo "$as_me: WARNING: === Even if you don't intend to use everything you need to" >&2;}
19870 { echo "$as_me:$LINENO: WARNING: === have in order to build via RPM, you should still do as" >&5
19871 echo "$as_me: WARNING: === have in order to build via RPM, you should still do as" >&2;}
19872 { echo "$as_me:$LINENO: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&5
19873 echo "$as_me: WARNING: === you're told. All the extra stuff (LDAP, SQL, etc...)" >&2;}
19874 { echo "$as_me:$LINENO: WARNING: === goes into RPM sub-packages, which do not need to be" >&5
19875 echo "$as_me: WARNING: === goes into RPM sub-packages, which do not need to be" >&2;}
19876 { echo "$as_me:$LINENO: WARNING: === installed." >&5
19877 echo "$as_me: WARNING: === installed." >&2;}
19878 { echo "$as_me:$LINENO: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&5
19879 echo "$as_me: WARNING: === But, if you insist, you can simply add '--with-redhat'" >&2;}
19880 { echo "$as_me:$LINENO: WARNING: === parameter to this configure script and not see this" >&5
19881 echo "$as_me: WARNING: === parameter to this configure script and not see this" >&2;}
19882 { echo "$as_me:$LINENO: WARNING: === error message. You should also do this when upgrading" >&5
19883 echo "$as_me: WARNING: === error message. You should also do this when upgrading" >&2;}
19884 { echo "$as_me:$LINENO: WARNING: === and you didn't use RPM with the older version." >&5
19885 echo "$as_me: WARNING: === and you didn't use RPM with the older version." >&2;}
19886 { { echo "$as_me:$LINENO: error: ... in either case you better know what you're doing!" >&5
19887 echo "$as_me: error: ... in either case you better know what you're doing!" >&2;}
19888 { (exit 1); exit 1; }; }
19895 for ac_prog
in expect
19897 # Extract the first word of "$ac_prog", so it can be a program name with args.
19898 set dummy
$ac_prog; ac_word
=$2
19899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19901 if test "${ac_cv_path_EXPECT+set}" = set; then
19902 echo $ECHO_N "(cached) $ECHO_C" >&6
19906 ac_cv_path_EXPECT
="$EXPECT" # Let the user override the test with a path.
19909 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19910 for as_dir
in $LPATH
19913 test -z "$as_dir" && as_dir
=.
19914 for ac_exec_ext
in '' $ac_executable_extensions; do
19915 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19916 ac_cv_path_EXPECT
="$as_dir/$ac_word$ac_exec_ext"
19917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19927 EXPECT
=$ac_cv_path_EXPECT
19928 if test -n "$EXPECT"; then
19929 { echo "$as_me:$LINENO: result: $EXPECT" >&5
19930 echo "${ECHO_T}$EXPECT" >&6; }
19932 { echo "$as_me:$LINENO: result: no" >&5
19933 echo "${ECHO_T}no" >&6; }
19937 test -n "$EXPECT" && break
19939 test -n "$EXPECT" || EXPECT
="expect"
19942 if test "$EXPECT" = "expect"
19944 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19945 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: expect not found - will not be able to change passwds" >&5
19947 echo "$as_me: WARNING: expect not found - will not be able to change passwds" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: in webmail" >&5
19949 echo "$as_me: WARNING: in webmail" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: -----------------------------------------------------" >&5
19951 echo "$as_me: WARNING: -----------------------------------------------------" >&2;}
19955 cat >>confdefs.h
<<_ACEOF
19956 #define HAVE_EXPECT 1
19961 for ac_prog
in passwd
19963 # Extract the first word of "$ac_prog", so it can be a program name with args.
19964 set dummy
$ac_prog; ac_word
=$2
19965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19967 if test "${ac_cv_path_PASSWD+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19972 ac_cv_path_PASSWD
="$PASSWD" # Let the user override the test with a path.
19975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19976 for as_dir
in $LPATH
19979 test -z "$as_dir" && as_dir
=.
19980 for ac_exec_ext
in '' $ac_executable_extensions; do
19981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19982 ac_cv_path_PASSWD
="$as_dir/$ac_word$ac_exec_ext"
19983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19993 PASSWD
=$ac_cv_path_PASSWD
19994 if test -n "$PASSWD"; then
19995 { echo "$as_me:$LINENO: result: $PASSWD" >&5
19996 echo "${ECHO_T}$PASSWD" >&6; }
19998 { echo "$as_me:$LINENO: result: no" >&5
19999 echo "${ECHO_T}no" >&6; }
20003 test -n "$PASSWD" && break
20005 test -n "$PASSWD" || PASSWD
="passwd"
20009 if test "$GCC" = "yes"
20011 CFLAGS
="$CFLAGS -Wall"
20014 CFLAGS
="$CFLAGS -I.. -I${srcdir}/.."
20016 { echo "$as_me:$LINENO: checking whether -lm is needed for floor" >&5
20017 echo $ECHO_N "checking whether -lm is needed for floor... $ECHO_C" >&6; }
20018 cat >conftest.
$ac_ext <<_ACEOF
20021 cat confdefs.h
>>conftest.
$ac_ext
20022 cat >>conftest.
$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20025 /* Override any GCC internal prototype to avoid an error.
20026 Use char because int might match the return type of a GCC
20027 builtin and then its argument prototype would still apply. */
20040 rm -f conftest.
$ac_objext conftest
$ac_exeext
20041 if { (ac_try
="$ac_link"
20042 case "(($ac_try" in
20043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20044 *) ac_try_echo=$ac_try;;
20046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20047 (eval "$ac_link") 2>conftest.er1
20049 grep -v '^ *+' conftest.er1 >conftest.err
20051 cat conftest.err >&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); } && {
20054 test -z "$ac_c_werror_flag" ||
20055 test ! -s conftest.err
20056 } && test -s conftest$ac_exeext &&
20057 $as_test_x conftest$ac_exeext; then
20058 { echo "$as_me:$LINENO: result: no" >&5
20059 echo "${ECHO_T}no" >&6; }
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20065 { echo "$as_me:$LINENO: result: yes" >&5
20066 echo "${ECHO_T}yes" >&6; }
20069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20070 conftest$ac_exeext conftest.$ac_ext
20073 # Check whether --with-pkgconfdir was given.
20074 if test "${with_pkgconfdir+set}" = set; then
20075 withval=$with_pkgconfdir; pkgconfdir="$withval"
20077 pkgconfdir="$sysconfdir/authlib"
20085 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20086 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20087 if test "${ac_cv_lib_socket_socket+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20090 ac_check_lib_save_LIBS=$LIBS
20091 LIBS="-lsocket $LIBS"
20092 cat >conftest.$ac_ext <<_ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20099 /* Override any GCC internal prototype to avoid an error.
20100 Use char because int might match the return type of a GCC
20101 builtin and then its argument prototype would still apply. */
20114 rm -f conftest.$ac_objext conftest$ac_exeext
20115 if { (ac_try="$ac_link"
20116 case "(($ac_try" in
20117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20118 *) ac_try_echo
=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_link") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1
>conftest.err
20125 cat conftest.err
>&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } && {
20128 test -z "$ac_c_werror_flag" ||
20129 test ! -s conftest.err
20130 } && test -s conftest
$ac_exeext &&
20131 $as_test_x conftest
$ac_exeext; then
20132 ac_cv_lib_socket_socket
=yes
20134 echo "$as_me: failed program was:" >&5
20135 sed 's/^/| /' conftest.
$ac_ext >&5
20137 ac_cv_lib_socket_socket
=no
20140 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20141 conftest
$ac_exeext conftest.
$ac_ext
20142 LIBS
=$ac_check_lib_save_LIBS
20144 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20145 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20146 if test $ac_cv_lib_socket_socket = yes; then
20152 if test $result = yes; then
20155 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
20156 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
20157 if test "${ac_cv_lib_socket_socket+set}" = set; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 ac_check_lib_save_LIBS
=$LIBS
20161 LIBS
="-lsocket -lnsl $LIBS"
20162 cat >conftest.
$ac_ext <<_ACEOF
20165 cat confdefs.h
>>conftest.
$ac_ext
20166 cat >>conftest.
$ac_ext <<_ACEOF
20167 /* end confdefs.h. */
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20184 rm -f conftest.
$ac_objext conftest
$ac_exeext
20185 if { (ac_try
="$ac_link"
20186 case "(($ac_try" in
20187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20188 *) ac_try_echo=$ac_try;;
20190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20191 (eval "$ac_link") 2>conftest.er1
20193 grep -v '^ *+' conftest.er1 >conftest.err
20195 cat conftest.err >&5
20196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20197 (exit $ac_status); } && {
20198 test -z "$ac_c_werror_flag" ||
20199 test ! -s conftest.err
20200 } && test -s conftest$ac_exeext &&
20201 $as_test_x conftest$ac_exeext; then
20202 ac_cv_lib_socket_socket=yes
20204 echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20207 ac_cv_lib_socket_socket=no
20210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20211 conftest$ac_exeext conftest.$ac_ext
20212 LIBS=$ac_check_lib_save_LIBS
20214 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
20215 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
20216 if test $ac_cv_lib_socket_socket = yes; then
20222 if test $result = yes; then
20223 NETLIBS = "-lsocket -lnsl"
20226 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20227 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20228 if test "${ac_cv_lib_socket_connect+set}" = set; then
20229 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 ac_check_lib_save_LIBS=$LIBS
20232 LIBS="-lsocket $LIBS"
20233 cat >conftest.$ac_ext <<_ACEOF
20236 cat confdefs.h >>conftest.$ac_ext
20237 cat >>conftest.$ac_ext <<_ACEOF
20238 /* end confdefs.h. */
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20255 rm -f conftest.$ac_objext conftest$ac_exeext
20256 if { (ac_try="$ac_link"
20257 case "(($ac_try" in
20258 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20259 *) ac_try_echo
=$ac_try;;
20261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20262 (eval "$ac_link") 2>conftest.er1
20264 grep -v '^ *+' conftest.er1
>conftest.err
20266 cat conftest.err
>&5
20267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20268 (exit $ac_status); } && {
20269 test -z "$ac_c_werror_flag" ||
20270 test ! -s conftest.err
20271 } && test -s conftest
$ac_exeext &&
20272 $as_test_x conftest
$ac_exeext; then
20273 ac_cv_lib_socket_connect
=yes
20275 echo "$as_me: failed program was:" >&5
20276 sed 's/^/| /' conftest.
$ac_ext >&5
20278 ac_cv_lib_socket_connect
=no
20281 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20282 conftest
$ac_exeext conftest.
$ac_ext
20283 LIBS
=$ac_check_lib_save_LIBS
20285 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20286 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20287 if test $ac_cv_lib_socket_connect = yes; then
20293 if test $result = yes; then
20296 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20297 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
20298 if test "${ac_cv_lib_socket_connect+set}" = set; then
20299 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 ac_check_lib_save_LIBS
=$LIBS
20302 LIBS
="-lsocket -lnsl $LIBS"
20303 cat >conftest.
$ac_ext <<_ACEOF
20306 cat confdefs.h
>>conftest.
$ac_ext
20307 cat >>conftest.
$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20310 /* Override any GCC internal prototype to avoid an error.
20311 Use char because int might match the return type of a GCC
20312 builtin and then its argument prototype would still apply. */
20325 rm -f conftest.
$ac_objext conftest
$ac_exeext
20326 if { (ac_try
="$ac_link"
20327 case "(($ac_try" in
20328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20329 *) ac_try_echo=$ac_try;;
20331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20332 (eval "$ac_link") 2>conftest.er1
20334 grep -v '^ *+' conftest.er1 >conftest.err
20336 cat conftest.err >&5
20337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20338 (exit $ac_status); } && {
20339 test -z "$ac_c_werror_flag" ||
20340 test ! -s conftest.err
20341 } && test -s conftest$ac_exeext &&
20342 $as_test_x conftest$ac_exeext; then
20343 ac_cv_lib_socket_connect=yes
20345 echo "$as_me: failed program was:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_cv_lib_socket_connect=no
20351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20352 conftest$ac_exeext conftest.$ac_ext
20353 LIBS=$ac_check_lib_save_LIBS
20355 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20356 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
20357 if test $ac_cv_lib_socket_connect = yes; then
20363 if test $result = yes; then
20364 NETLIBS="-lsocket -lnsl"
20371 if test $USENSL != yes; then
20372 LIBS="$LIBS $NETLIBS"
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20380 /* Override any GCC internal prototype to avoid an error.
20381 Use char because int might match the return type of a GCC
20382 builtin and then its argument prototype would still apply. */
20390 return inet_addr ();
20395 rm -f conftest.$ac_objext conftest$ac_exeext
20396 if { (ac_try="$ac_link"
20397 case "(($ac_try" in
20398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20399 *) ac_try_echo
=$ac_try;;
20401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20402 (eval "$ac_link") 2>conftest.er1
20404 grep -v '^ *+' conftest.er1
>conftest.err
20406 cat conftest.err
>&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } && {
20409 test -z "$ac_c_werror_flag" ||
20410 test ! -s conftest.err
20411 } && test -s conftest
$ac_exeext &&
20412 $as_test_x conftest
$ac_exeext; then
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.
$ac_ext >&5
20419 { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
20420 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
20421 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
20422 echo $ECHO_N "(cached) $ECHO_C" >&6
20424 ac_check_lib_save_LIBS
=$LIBS
20426 cat >conftest.
$ac_ext <<_ACEOF
20429 cat confdefs.h
>>conftest.
$ac_ext
20430 cat >>conftest.
$ac_ext <<_ACEOF
20431 /* end confdefs.h. */
20433 /* Override any GCC internal prototype to avoid an error.
20434 Use char because int might match the return type of a GCC
20435 builtin and then its argument prototype would still apply. */
20443 return inet_addr ();
20448 rm -f conftest.
$ac_objext conftest
$ac_exeext
20449 if { (ac_try
="$ac_link"
20450 case "(($ac_try" in
20451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20452 *) ac_try_echo=$ac_try;;
20454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20455 (eval "$ac_link") 2>conftest.er1
20457 grep -v '^ *+' conftest.er1 >conftest.err
20459 cat conftest.err >&5
20460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20461 (exit $ac_status); } && {
20462 test -z "$ac_c_werror_flag" ||
20463 test ! -s conftest.err
20464 } && test -s conftest$ac_exeext &&
20465 $as_test_x conftest$ac_exeext; then
20466 ac_cv_lib_nsl_inet_addr=yes
20468 echo "$as_me: failed program was:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_cv_lib_nsl_inet_addr=no
20474 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20475 conftest$ac_exeext conftest.$ac_ext
20476 LIBS=$ac_check_lib_save_LIBS
20478 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
20479 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
20480 if test $ac_cv_lib_nsl_inet_addr = yes; then
20486 if test $result = yes; then
20487 NETLIBS="$NETLIBS -lnsl"
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20504 # Check whether --with-db was given.
20505 if test "${with_db+set}" = set; then
20506 withval=$with_db; db="$withval"
20520 { { echo "$as_me:$LINENO: error: Invalid --with-db option." >&5
20521 echo "$as_me: error: Invalid --with-db option." >&2;}
20522 { (exit 1); exit 1; }; }
20528 if test "$db" != "db"
20530 { echo "$as_me:$LINENO: checking for gdbm_open in -lgdbm" >&5
20531 echo $ECHO_N "checking for gdbm_open in -lgdbm... $ECHO_C" >&6; }
20532 if test "${ac_cv_lib_gdbm_gdbm_open+set}" = set; then
20533 echo $ECHO_N "(cached) $ECHO_C" >&6
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-lgdbm $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20554 return gdbm_open ();
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20563 *) ac_try_echo
=$ac_try;;
20565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1
>conftest.err
20570 cat conftest.err
>&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest
$ac_exeext &&
20576 $as_test_x conftest
$ac_exeext; then
20577 ac_cv_lib_gdbm_gdbm_open
=yes
20579 echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.
$ac_ext >&5
20582 ac_cv_lib_gdbm_gdbm_open
=no
20585 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20586 conftest
$ac_exeext conftest.
$ac_ext
20587 LIBS
=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdbm_gdbm_open" >&5
20590 echo "${ECHO_T}$ac_cv_lib_gdbm_gdbm_open" >&6; }
20591 if test $ac_cv_lib_gdbm_gdbm_open = yes; then
20592 LIBGDBM
=-lgdbm ; LIBS
="-lgdbm $LIBS"
20595 { echo "$as_me:$LINENO: checking for gdbm_open" >&5
20596 echo $ECHO_N "checking for gdbm_open... $ECHO_C" >&6; }
20597 if test "${ac_cv_func_gdbm_open+set}" = set; then
20598 echo $ECHO_N "(cached) $ECHO_C" >&6
20600 cat >conftest.
$ac_ext <<_ACEOF
20603 cat confdefs.h
>>conftest.
$ac_ext
20604 cat >>conftest.
$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20606 /* Define gdbm_open to an innocuous variant, in case <limits.h> declares gdbm_open.
20607 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20608 #define gdbm_open innocuous_gdbm_open
20610 /* System header to define __stub macros and hopefully few prototypes,
20611 which can conflict with char gdbm_open (); below.
20612 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20613 <limits.h> exists even on freestanding compilers. */
20616 # include <limits.h>
20618 # include <assert.h>
20623 /* Override any GCC internal prototype to avoid an error.
20624 Use char because int might match the return type of a GCC
20625 builtin and then its argument prototype would still apply. */
20630 /* The GNU C library defines this for functions which it implements
20631 to always fail with ENOSYS. Some functions are actually named
20632 something starting with __ and the normal name is an alias. */
20633 #if defined __stub_gdbm_open || defined __stub___gdbm_open
20640 return gdbm_open ();
20645 rm -f conftest.
$ac_objext conftest
$ac_exeext
20646 if { (ac_try
="$ac_link"
20647 case "(($ac_try" in
20648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20649 *) ac_try_echo=$ac_try;;
20651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20652 (eval "$ac_link") 2>conftest.er1
20654 grep -v '^ *+' conftest.er1 >conftest.err
20656 cat conftest.err >&5
20657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20658 (exit $ac_status); } && {
20659 test -z "$ac_c_werror_flag" ||
20660 test ! -s conftest.err
20661 } && test -s conftest$ac_exeext &&
20662 $as_test_x conftest$ac_exeext; then
20663 ac_cv_func_gdbm_open=yes
20665 echo "$as_me: failed program was:" >&5
20666 sed 's/^/| /' conftest.$ac_ext >&5
20668 ac_cv_func_gdbm_open=no
20671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20672 conftest$ac_exeext conftest.$ac_ext
20674 { echo "$as_me:$LINENO: result: $ac_cv_func_gdbm_open" >&5
20675 echo "${ECHO_T}$ac_cv_func_gdbm_open" >&6; }
20676 if test $ac_cv_func_gdbm_open = yes; then
20684 if test "$db" != "gdbm"
20686 { echo "$as_me:$LINENO: checking for dbopen in -ldb" >&5
20687 echo $ECHO_N "checking for dbopen in -ldb... $ECHO_C" >&6; }
20688 if test "${ac_cv_lib_db_dbopen+set}" = set; then
20689 echo $ECHO_N "(cached) $ECHO_C" >&6
20691 ac_check_lib_save_LIBS=$LIBS
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20700 /* Override any GCC internal prototype to avoid an error.
20701 Use char because int might match the return type of a GCC
20702 builtin and then its argument prototype would still apply. */
20715 rm -f conftest.$ac_objext conftest$ac_exeext
20716 if { (ac_try="$ac_link"
20717 case "(($ac_try" in
20718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20719 *) ac_try_echo
=$ac_try;;
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_link") 2>conftest.er1
20724 grep -v '^ *+' conftest.er1
>conftest.err
20726 cat conftest.err
>&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } && {
20729 test -z "$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 } && test -s conftest
$ac_exeext &&
20732 $as_test_x conftest
$ac_exeext; then
20733 ac_cv_lib_db_dbopen
=yes
20735 echo "$as_me: failed program was:" >&5
20736 sed 's/^/| /' conftest.
$ac_ext >&5
20738 ac_cv_lib_db_dbopen
=no
20741 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20742 conftest
$ac_exeext conftest.
$ac_ext
20743 LIBS
=$ac_check_lib_save_LIBS
20745 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_dbopen" >&5
20746 echo "${ECHO_T}$ac_cv_lib_db_dbopen" >&6; }
20747 if test $ac_cv_lib_db_dbopen = yes; then
20748 LIBDB
=-ldb ; LIBS
="-ldb $LIBS"
20750 { echo "$as_me:$LINENO: checking for db_open in -ldb" >&5
20751 echo $ECHO_N "checking for db_open in -ldb... $ECHO_C" >&6; }
20752 if test "${ac_cv_lib_db_db_open+set}" = set; then
20753 echo $ECHO_N "(cached) $ECHO_C" >&6
20755 ac_check_lib_save_LIBS
=$LIBS
20757 cat >conftest.
$ac_ext <<_ACEOF
20760 cat confdefs.h
>>conftest.
$ac_ext
20761 cat >>conftest.
$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20764 /* Override any GCC internal prototype to avoid an error.
20765 Use char because int might match the return type of a GCC
20766 builtin and then its argument prototype would still apply. */
20779 rm -f conftest.
$ac_objext conftest
$ac_exeext
20780 if { (ac_try
="$ac_link"
20781 case "(($ac_try" in
20782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20783 *) ac_try_echo=$ac_try;;
20785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20786 (eval "$ac_link") 2>conftest.er1
20788 grep -v '^ *+' conftest.er1 >conftest.err
20790 cat conftest.err >&5
20791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20792 (exit $ac_status); } && {
20793 test -z "$ac_c_werror_flag" ||
20794 test ! -s conftest.err
20795 } && test -s conftest$ac_exeext &&
20796 $as_test_x conftest$ac_exeext; then
20797 ac_cv_lib_db_db_open=yes
20799 echo "$as_me: failed program was:" >&5
20800 sed 's/^/| /' conftest.$ac_ext >&5
20802 ac_cv_lib_db_db_open=no
20805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20806 conftest$ac_exeext conftest.$ac_ext
20807 LIBS=$ac_check_lib_save_LIBS
20809 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_open" >&5
20810 echo "${ECHO_T}$ac_cv_lib_db_db_open" >&6; }
20811 if test $ac_cv_lib_db_db_open = yes; then
20812 LIBDB=-ldb ; LIBS="-ldb $LIBS"
20814 { echo "$as_me:$LINENO: checking for db_env_create in -ldb" >&5
20815 echo $ECHO_N "checking for db_env_create in -ldb... $ECHO_C" >&6; }
20816 if test "${ac_cv_lib_db_db_env_create+set}" = set; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20819 ac_check_lib_save_LIBS=$LIBS
20821 cat >conftest.$ac_ext <<_ACEOF
20824 cat confdefs.h >>conftest.$ac_ext
20825 cat >>conftest.$ac_ext <<_ACEOF
20826 /* end confdefs.h. */
20828 /* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20834 char db_env_create ();
20838 return db_env_create ();
20843 rm -f conftest.$ac_objext conftest$ac_exeext
20844 if { (ac_try="$ac_link"
20845 case "(($ac_try" in
20846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20847 *) ac_try_echo
=$ac_try;;
20849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20850 (eval "$ac_link") 2>conftest.er1
20852 grep -v '^ *+' conftest.er1
>conftest.err
20854 cat conftest.err
>&5
20855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20856 (exit $ac_status); } && {
20857 test -z "$ac_c_werror_flag" ||
20858 test ! -s conftest.err
20859 } && test -s conftest
$ac_exeext &&
20860 $as_test_x conftest
$ac_exeext; then
20861 ac_cv_lib_db_db_env_create
=yes
20863 echo "$as_me: failed program was:" >&5
20864 sed 's/^/| /' conftest.
$ac_ext >&5
20866 ac_cv_lib_db_db_env_create
=no
20869 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
20870 conftest
$ac_exeext conftest.
$ac_ext
20871 LIBS
=$ac_check_lib_save_LIBS
20873 { echo "$as_me:$LINENO: result: $ac_cv_lib_db_db_env_create" >&5
20874 echo "${ECHO_T}$ac_cv_lib_db_db_env_create" >&6; }
20875 if test $ac_cv_lib_db_db_env_create = yes; then
20876 LIBDB
=-ldb; LIBS
="-ldb $LIBS"
20885 { echo "$as_me:$LINENO: checking for dbopen" >&5
20886 echo $ECHO_N "checking for dbopen... $ECHO_C" >&6; }
20887 if test "${ac_cv_func_dbopen+set}" = set; then
20888 echo $ECHO_N "(cached) $ECHO_C" >&6
20890 cat >conftest.
$ac_ext <<_ACEOF
20893 cat confdefs.h
>>conftest.
$ac_ext
20894 cat >>conftest.
$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 /* Define dbopen to an innocuous variant, in case <limits.h> declares dbopen.
20897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20898 #define dbopen innocuous_dbopen
20900 /* System header to define __stub macros and hopefully few prototypes,
20901 which can conflict with char dbopen (); below.
20902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20903 <limits.h> exists even on freestanding compilers. */
20906 # include <limits.h>
20908 # include <assert.h>
20913 /* Override any GCC internal prototype to avoid an error.
20914 Use char because int might match the return type of a GCC
20915 builtin and then its argument prototype would still apply. */
20920 /* The GNU C library defines this for functions which it implements
20921 to always fail with ENOSYS. Some functions are actually named
20922 something starting with __ and the normal name is an alias. */
20923 #if defined __stub_dbopen || defined __stub___dbopen
20935 rm -f conftest.
$ac_objext conftest
$ac_exeext
20936 if { (ac_try
="$ac_link"
20937 case "(($ac_try" in
20938 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_link") 2>conftest.er1
20944 grep -v '^ *+' conftest.er1 >conftest.err
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest$ac_exeext &&
20952 $as_test_x conftest$ac_exeext; then
20953 ac_cv_func_dbopen=yes
20955 echo "$as_me: failed program was:" >&5
20956 sed 's/^/| /' conftest.$ac_ext >&5
20958 ac_cv_func_dbopen=no
20961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20962 conftest$ac_exeext conftest.$ac_ext
20964 { echo "$as_me:$LINENO: result: $ac_cv_func_dbopen" >&5
20965 echo "${ECHO_T}$ac_cv_func_dbopen" >&6; }
20966 if test $ac_cv_func_dbopen = yes; then
20970 { echo "$as_me:$LINENO: checking for db_open" >&5
20971 echo $ECHO_N "checking for db_open... $ECHO_C" >&6; }
20972 if test "${ac_cv_func_db_open+set}" = set; then
20973 echo $ECHO_N "(cached) $ECHO_C" >&6
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 /* Define db_open to an innocuous variant, in case <limits.h> declares db_open.
20982 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20983 #define db_open innocuous_db_open
20985 /* System header to define __stub macros and hopefully few prototypes,
20986 which can conflict with char db_open (); below.
20987 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20988 <limits.h> exists even on freestanding compilers. */
20991 # include <limits.h>
20993 # include <assert.h>
20998 /* Override any GCC internal prototype to avoid an error.
20999 Use char because int might match the return type of a GCC
21000 builtin and then its argument prototype would still apply. */
21005 /* The GNU C library defines this for functions which it implements
21006 to always fail with ENOSYS. Some functions are actually named
21007 something starting with __ and the normal name is an alias. */
21008 #if defined __stub_db_open || defined __stub___db_open
21020 rm -f conftest.$ac_objext conftest$ac_exeext
21021 if { (ac_try="$ac_link"
21022 case "(($ac_try" in
21023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21024 *) ac_try_echo
=$ac_try;;
21026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21027 (eval "$ac_link") 2>conftest.er1
21029 grep -v '^ *+' conftest.er1
>conftest.err
21031 cat conftest.err
>&5
21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21033 (exit $ac_status); } && {
21034 test -z "$ac_c_werror_flag" ||
21035 test ! -s conftest.err
21036 } && test -s conftest
$ac_exeext &&
21037 $as_test_x conftest
$ac_exeext; then
21038 ac_cv_func_db_open
=yes
21040 echo "$as_me: failed program was:" >&5
21041 sed 's/^/| /' conftest.
$ac_ext >&5
21043 ac_cv_func_db_open
=no
21046 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21047 conftest
$ac_exeext conftest.
$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_cv_func_db_open" >&5
21050 echo "${ECHO_T}$ac_cv_func_db_open" >&6; }
21051 if test $ac_cv_func_db_open = yes; then
21055 { echo "$as_me:$LINENO: checking for db_env_create" >&5
21056 echo $ECHO_N "checking for db_env_create... $ECHO_C" >&6; }
21057 if test "${ac_cv_func_db_env_create+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 cat >conftest.
$ac_ext <<_ACEOF
21063 cat confdefs.h
>>conftest.
$ac_ext
21064 cat >>conftest.
$ac_ext <<_ACEOF
21065 /* end confdefs.h. */
21066 /* Define db_env_create to an innocuous variant, in case <limits.h> declares db_env_create.
21067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21068 #define db_env_create innocuous_db_env_create
21070 /* System header to define __stub macros and hopefully few prototypes,
21071 which can conflict with char db_env_create (); below.
21072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21073 <limits.h> exists even on freestanding compilers. */
21076 # include <limits.h>
21078 # include <assert.h>
21081 #undef db_env_create
21083 /* Override any GCC internal prototype to avoid an error.
21084 Use char because int might match the return type of a GCC
21085 builtin and then its argument prototype would still apply. */
21089 char db_env_create ();
21090 /* The GNU C library defines this for functions which it implements
21091 to always fail with ENOSYS. Some functions are actually named
21092 something starting with __ and the normal name is an alias. */
21093 #if defined __stub_db_env_create || defined __stub___db_env_create
21100 return db_env_create ();
21105 rm -f conftest.
$ac_objext conftest
$ac_exeext
21106 if { (ac_try
="$ac_link"
21107 case "(($ac_try" in
21108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21109 *) ac_try_echo=$ac_try;;
21111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21112 (eval "$ac_link") 2>conftest.er1
21114 grep -v '^ *+' conftest.er1 >conftest.err
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } && {
21119 test -z "$ac_c_werror_flag" ||
21120 test ! -s conftest.err
21121 } && test -s conftest$ac_exeext &&
21122 $as_test_x conftest$ac_exeext; then
21123 ac_cv_func_db_env_create=yes
21125 echo "$as_me: failed program was:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 ac_cv_func_db_env_create=no
21131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21132 conftest$ac_exeext conftest.$ac_ext
21134 { echo "$as_me:$LINENO: result: $ac_cv_func_db_env_create" >&5
21135 echo "${ECHO_T}$ac_cv_func_db_env_create" >&6; }
21136 if test $ac_cv_func_db_env_create = yes; then
21144 if test "$HAVE_GDBM$HAVE_BDB" = ""
21146 { { echo "$as_me:$LINENO: error: Cannot find either the gdbm or the db library." >&5
21147 echo "$as_me: error: Cannot find either the gdbm or the db library." >&2;}
21148 { (exit 1); exit 1; }; }
21154 if test "$HAVE_GDBM" = "y"
21158 if test "$needs_withdb" = 1
21160 ac_configure_args="$ac_configure_args --with-db=gdbm"
21162 dblibrary=gdbmobj/libgdbmobj.la
21166 if test "$needs_withdb" = 1
21168 ac_configure_args="$ac_configure_args --with-db=db"
21170 dblibrary=bdbobj/libbdbobj.la
21177 # Check whether --with-authuserdb was given.
21178 if test "${with_authuserdb+set}" = set; then
21179 withval=$with_authuserdb; doauthuserdb="$withval"
21182 if test -d ${srcdir}/userdb
21189 if test "$doauthuserdb" = "no"
21193 AUTHUSERDB="authuserdb"
21194 LIBAUTHUSERDB="libauthuserdb.la"
21199 # Check whether --with-makedatprog was given.
21200 if test "${with_makedatprog+set}" = set; then
21201 withval=$with_makedatprog; :
21204 ac_configure_args="$ac_configure_args --with-makedatprog=$libexecdir/courier-authlib/makedatprog"
21209 cat >dbobj.config <<EOF
21212 dblibrary=$dblibrary
21223 userdb="$pkgconfdir/userdb"
21225 # Check whether --with-userdb was given.
21226 if test "${with_userdb+set}" = set; then
21227 withval=$with_userdb; userdb="$withval"
21229 ac_configure_args="$ac_configure_args '--with-userdb=$userdb'"
21234 cat >>confdefs.h <<_ACEOF
21235 #define USERDB "$userdb"
21241 for ac_header in stdio.h
21243 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 ac_res=`eval echo '${'$as_ac_Header'}'`
21251 { echo "$as_me:$LINENO: result: $ac_res" >&5
21252 echo "${ECHO_T}$ac_res" >&6; }
21254 # Is the header compilable?
21255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21257 cat >conftest.$ac_ext <<_ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 $ac_includes_default
21264 #include <$ac_header>
21266 rm -f conftest.$ac_objext
21267 if { (ac_try="$ac_compile"
21268 case "(($ac_try" in
21269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21270 *) ac_try_echo
=$ac_try;;
21272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21273 (eval "$ac_compile") 2>conftest.er1
21275 grep -v '^ *+' conftest.er1
>conftest.err
21277 cat conftest.err
>&5
21278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21279 (exit $ac_status); } && {
21280 test -z "$ac_c_werror_flag" ||
21281 test ! -s conftest.err
21282 } && test -s conftest.
$ac_objext; then
21283 ac_header_compiler
=yes
21285 echo "$as_me: failed program was:" >&5
21286 sed 's/^/| /' conftest.
$ac_ext >&5
21288 ac_header_compiler
=no
21291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21293 echo "${ECHO_T}$ac_header_compiler" >&6; }
21295 # Is the header present?
21296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21298 cat >conftest.
$ac_ext <<_ACEOF
21301 cat confdefs.h
>>conftest.
$ac_ext
21302 cat >>conftest.
$ac_ext <<_ACEOF
21303 /* end confdefs.h. */
21304 #include <$ac_header>
21306 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21307 case "(($ac_try" in
21308 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21309 *) ac_try_echo=$ac_try;;
21311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev/null && {
21319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21322 ac_header_preproc=yes
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21327 ac_header_preproc=no
21330 rm -f conftest.err conftest.$ac_ext
21331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21332 echo "${ECHO_T}$ac_header_preproc" >&6; }
21334 # So? What about this header?
21335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21341 ac_header_preproc=yes
21344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21357 ## ------------------------------------------------- ##
21358 ## Report this to courier-imap@lists.sourceforge.net ##
21359 ## ------------------------------------------------- ##
21361 ) | sed "s/^/$as_me: WARNING: /" >&2
21364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21366 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21367 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 eval "$as_ac_Header=\$ac_header_preproc"
21371 ac_res=`eval echo '${'$as_ac_Header'}'`
21372 { echo "$as_me:$LINENO: result: $ac_res" >&5
21373 echo "${ECHO_T}$ac_res" >&6; }
21376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21390 # Check whether --with-authpam was given.
21391 if test "${with_authpam+set}" = set; then
21392 withval=$with_authpam; doauthpam="$withval"
21398 for ac_header in security/pam_appl.h Pam/pam_appl.h
21400 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
21401 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21402 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21405 echo $ECHO_N "(cached) $ECHO_C" >&6
21407 ac_res=`eval echo '${'$as_ac_Header'}'`
21408 { echo "$as_me:$LINENO: result: $ac_res" >&5
21409 echo "${ECHO_T}$ac_res" >&6; }
21411 # Is the header compilable?
21412 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21413 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 $ac_includes_default
21421 #include <$ac_header>
21423 rm -f conftest.$ac_objext
21424 if { (ac_try="$ac_compile"
21425 case "(($ac_try" in
21426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21427 *) ac_try_echo
=$ac_try;;
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_compile") 2>conftest.er1
21432 grep -v '^ *+' conftest.er1
>conftest.err
21434 cat conftest.err
>&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } && {
21437 test -z "$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 } && test -s conftest.
$ac_objext; then
21440 ac_header_compiler
=yes
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.
$ac_ext >&5
21445 ac_header_compiler
=no
21448 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21450 echo "${ECHO_T}$ac_header_compiler" >&6; }
21452 # Is the header present?
21453 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21455 cat >conftest.
$ac_ext <<_ACEOF
21458 cat confdefs.h
>>conftest.
$ac_ext
21459 cat >>conftest.
$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 #include <$ac_header>
21463 if { (ac_try
="$ac_cpp conftest.$ac_ext"
21464 case "(($ac_try" in
21465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21466 *) ac_try_echo=$ac_try;;
21468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21469 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21471 grep -v '^ *+' conftest.er1 >conftest.err
21473 cat conftest.err >&5
21474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21475 (exit $ac_status); } >/dev/null && {
21476 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21477 test ! -s conftest.err
21479 ac_header_preproc=yes
21481 echo "$as_me: failed program was:" >&5
21482 sed 's/^/| /' conftest.$ac_ext >&5
21484 ac_header_preproc=no
21487 rm -f conftest.err conftest.$ac_ext
21488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21489 echo "${ECHO_T}$ac_header_preproc" >&6; }
21491 # So? What about this header?
21492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21498 ac_header_preproc=yes
21501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21514 ## ------------------------------------------------- ##
21515 ## Report this to courier-imap@lists.sourceforge.net ##
21516 ## ------------------------------------------------- ##
21518 ) | sed "s/^/$as_me: WARNING: /" >&2
21521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 eval "$as_ac_Header=\$ac_header_preproc"
21528 ac_res=`eval echo '${'$as_ac_Header'}'`
21529 { echo "$as_me:$LINENO: result: $ac_res" >&5
21530 echo "${ECHO_T}$ac_res" >&6; }
21533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21534 cat >>confdefs.h <<_ACEOF
21535 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
21542 if test "$doauthpam" = "no"
21548 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
21549 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
21550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21553 ac_check_lib_save_LIBS=$LIBS
21555 cat >conftest.$ac_ext <<_ACEOF
21558 cat confdefs.h >>conftest.$ac_ext
21559 cat >>conftest.$ac_ext <<_ACEOF
21560 /* end confdefs.h. */
21562 /* Override any GCC internal prototype to avoid an error.
21563 Use char because int might match the return type of a GCC
21564 builtin and then its argument prototype would still apply. */
21577 rm -f conftest.$ac_objext conftest$ac_exeext
21578 if { (ac_try="$ac_link"
21579 case "(($ac_try" in
21580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21581 *) ac_try_echo
=$ac_try;;
21583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21584 (eval "$ac_link") 2>conftest.er1
21586 grep -v '^ *+' conftest.er1
>conftest.err
21588 cat conftest.err
>&5
21589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21590 (exit $ac_status); } && {
21591 test -z "$ac_c_werror_flag" ||
21592 test ! -s conftest.err
21593 } && test -s conftest
$ac_exeext &&
21594 $as_test_x conftest
$ac_exeext; then
21595 ac_cv_lib_dl_dlopen
=yes
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.
$ac_ext >&5
21600 ac_cv_lib_dl_dlopen
=no
21603 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21604 conftest
$ac_exeext conftest.
$ac_ext
21605 LIBS
=$ac_check_lib_save_LIBS
21607 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
21608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
21609 if test $ac_cv_lib_dl_dlopen = yes; then
21615 { echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
21616 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6; }
21617 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
21618 echo $ECHO_N "(cached) $ECHO_C" >&6
21620 ac_check_lib_save_LIBS
=$LIBS
21621 LIBS
="-lpam $LIBDL $LIBS"
21622 cat >conftest.
$ac_ext <<_ACEOF
21625 cat confdefs.h
>>conftest.
$ac_ext
21626 cat >>conftest.
$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21639 return pam_start ();
21644 rm -f conftest.
$ac_objext conftest
$ac_exeext
21645 if { (ac_try
="$ac_link"
21646 case "(($ac_try" in
21647 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21648 *) ac_try_echo=$ac_try;;
21650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21651 (eval "$ac_link") 2>conftest.er1
21653 grep -v '^ *+' conftest.er1 >conftest.err
21655 cat conftest.err >&5
21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21657 (exit $ac_status); } && {
21658 test -z "$ac_c_werror_flag" ||
21659 test ! -s conftest.err
21660 } && test -s conftest$ac_exeext &&
21661 $as_test_x conftest$ac_exeext; then
21662 ac_cv_lib_pam_pam_start=yes
21664 echo "$as_me: failed program was:" >&5
21665 sed 's/^/| /' conftest.$ac_ext >&5
21667 ac_cv_lib_pam_pam_start=no
21670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21671 conftest$ac_exeext conftest.$ac_ext
21672 LIBS=$ac_check_lib_save_LIBS
21674 { echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
21675 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6; }
21676 if test $ac_cv_lib_pam_pam_start = yes; then
21678 LIBS="-lpam $LIBDL $LIBS"
21680 for ac_func in pam_setcred
21682 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
21683 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21684 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21685 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21686 echo $ECHO_N "(cached) $ECHO_C" >&6
21688 cat >conftest.$ac_ext <<_ACEOF
21691 cat confdefs.h >>conftest.$ac_ext
21692 cat >>conftest.$ac_ext <<_ACEOF
21693 /* end confdefs.h. */
21694 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21695 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21696 #define $ac_func innocuous_$ac_func
21698 /* System header to define __stub macros and hopefully few prototypes,
21699 which can conflict with char $ac_func (); below.
21700 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21701 <limits.h> exists even on freestanding compilers. */
21704 # include <limits.h>
21706 # include <assert.h>
21711 /* Override any GCC internal prototype to avoid an error.
21712 Use char because int might match the return type of a GCC
21713 builtin and then its argument prototype would still apply. */
21718 /* The GNU C library defines this for functions which it implements
21719 to always fail with ENOSYS. Some functions are actually named
21720 something starting with __ and the normal name is an alias. */
21721 #if defined __stub_$ac_func || defined __stub___$ac_func
21728 return $ac_func ();
21733 rm -f conftest.$ac_objext conftest$ac_exeext
21734 if { (ac_try="$ac_link"
21735 case "(($ac_try" in
21736 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21737 *) ac_try_echo
=$ac_try;;
21739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_link") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1
>conftest.err
21744 cat conftest.err
>&5
21745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21746 (exit $ac_status); } && {
21747 test -z "$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21749 } && test -s conftest
$ac_exeext &&
21750 $as_test_x conftest
$ac_exeext; then
21751 eval "$as_ac_var=yes"
21753 echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.
$ac_ext >&5
21756 eval "$as_ac_var=no"
21759 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
21760 conftest
$ac_exeext conftest.
$ac_ext
21762 ac_res
=`eval echo '${'$as_ac_var'}'`
21763 { echo "$as_me:$LINENO: result: $ac_res" >&5
21764 echo "${ECHO_T}$ac_res" >&6; }
21765 if test `eval echo '${'$as_ac_var'}'` = yes; then
21766 cat >>confdefs.h
<<_ACEOF
21767 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21782 if test "$HAVE_PAM" = 1
21784 LIBAUTHPAM
=libauthpam.la
21788 # Check whether --with-authpam-libraries was given.
21789 if test "${with_authpam_libraries+set}" = set; then
21790 withval
=$with_authpam_libraries; authpamcrypt
="$withval"
21794 AUTHPAMCRYPT
="$authpamcrypt"
21802 # Check whether --with-authldap was given.
21803 if test "${with_authldap+set}" = set; then
21804 withval
=$with_authldap; doauthldap
="$withval"
21811 for ac_header
in lber.h
21813 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21814 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21817 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached) $ECHO_C" >&6
21820 ac_res
=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21827 cat >conftest.
$ac_ext <<_ACEOF
21830 cat confdefs.h
>>conftest.
$ac_ext
21831 cat >>conftest.
$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21836 rm -f conftest.
$ac_objext
21837 if { (ac_try
="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
21853 ac_header_compiler=yes
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ac_header_compiler=no
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21863 echo "${ECHO_T}$ac_header_compiler" >&6; }
21865 # Is the header present?
21866 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21867 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #include <$ac_header>
21876 if { (ac_try="$ac_cpp conftest.$ac_ext"
21877 case "(($ac_try" in
21878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
21879 *) ac_try_echo
=$ac_try;;
21881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21884 grep -v '^ *+' conftest.er1
>conftest.err
21886 cat conftest.err
>&5
21887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21888 (exit $ac_status); } >/dev
/null
&& {
21889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890 test ! -s conftest.err
21892 ac_header_preproc
=yes
21894 echo "$as_me: failed program was:" >&5
21895 sed 's/^/| /' conftest.
$ac_ext >&5
21897 ac_header_preproc
=no
21900 rm -f conftest.err conftest.
$ac_ext
21901 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21902 echo "${ECHO_T}$ac_header_preproc" >&6; }
21904 # So? What about this header?
21905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21908 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21911 ac_header_preproc
=yes
21914 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21915 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21916 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21917 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21918 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21919 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21920 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21921 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21922 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21924 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21925 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21927 ## ------------------------------------------------- ##
21928 ## Report this to courier-imap@lists.sourceforge.net ##
21929 ## ------------------------------------------------- ##
21931 ) |
sed "s/^/$as_me: WARNING: /" >&2
21934 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21935 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21936 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21939 eval "$as_ac_Header=\$ac_header_preproc"
21941 ac_res
=`eval echo '${'$as_ac_Header'}'`
21942 { echo "$as_me:$LINENO: result: $ac_res" >&5
21943 echo "${ECHO_T}$ac_res" >&6; }
21946 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21947 cat >>confdefs.h
<<_ACEOF
21948 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21956 for ac_header
in ldap.h
21958 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21959 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21960 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21961 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21962 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21963 echo $ECHO_N "(cached) $ECHO_C" >&6
21965 ac_res
=`eval echo '${'$as_ac_Header'}'`
21966 { echo "$as_me:$LINENO: result: $ac_res" >&5
21967 echo "${ECHO_T}$ac_res" >&6; }
21969 # Is the header compilable?
21970 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21972 cat >conftest.
$ac_ext <<_ACEOF
21975 cat confdefs.h
>>conftest.
$ac_ext
21976 cat >>conftest.
$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 $ac_includes_default
21979 #include <$ac_header>
21981 rm -f conftest.
$ac_objext
21982 if { (ac_try
="$ac_compile"
21983 case "(($ac_try" in
21984 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
21985 *) ac_try_echo=$ac_try;;
21987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21988 (eval "$ac_compile") 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } && {
21995 test -z "$ac_c_werror_flag" ||
21996 test ! -s conftest.err
21997 } && test -s conftest.$ac_objext; then
21998 ac_header_compiler=yes
22000 echo "$as_me: failed program was:" >&5
22001 sed 's/^/| /' conftest.$ac_ext >&5
22003 ac_header_compiler=no
22006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22007 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22008 echo "${ECHO_T}$ac_header_compiler" >&6; }
22010 # Is the header present?
22011 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22012 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22013 cat >conftest.$ac_ext <<_ACEOF
22016 cat confdefs.h >>conftest.$ac_ext
22017 cat >>conftest.$ac_ext <<_ACEOF
22018 /* end confdefs.h. */
22019 #include <$ac_header>
22021 if { (ac_try="$ac_cpp conftest.$ac_ext"
22022 case "(($ac_try" in
22023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22024 *) ac_try_echo
=$ac_try;;
22026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22029 grep -v '^ *+' conftest.er1
>conftest.err
22031 cat conftest.err
>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); } >/dev
/null
&& {
22034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22035 test ! -s conftest.err
22037 ac_header_preproc
=yes
22039 echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.
$ac_ext >&5
22042 ac_header_preproc
=no
22045 rm -f conftest.err conftest.
$ac_ext
22046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22047 echo "${ECHO_T}$ac_header_preproc" >&6; }
22049 # So? What about this header?
22050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22056 ac_header_preproc
=yes
22059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22072 ## ------------------------------------------------- ##
22073 ## Report this to courier-imap@lists.sourceforge.net ##
22074 ## ------------------------------------------------- ##
22076 ) |
sed "s/^/$as_me: WARNING: /" >&2
22079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22081 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22084 eval "$as_ac_Header=\$ac_header_preproc"
22086 ac_res
=`eval echo '${'$as_ac_Header'}'`
22087 { echo "$as_me:$LINENO: result: $ac_res" >&5
22088 echo "${ECHO_T}$ac_res" >&6; }
22091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22092 cat >>confdefs.h
<<_ACEOF
22093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22101 for ac_header
in netinet
/in.h
22103 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22107 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22108 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 ac_res
=`eval echo '${'$as_ac_Header'}'`
22111 { echo "$as_me:$LINENO: result: $ac_res" >&5
22112 echo "${ECHO_T}$ac_res" >&6; }
22114 # Is the header compilable?
22115 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22116 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22117 cat >conftest.
$ac_ext <<_ACEOF
22120 cat confdefs.h
>>conftest.
$ac_ext
22121 cat >>conftest.
$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 $ac_includes_default
22124 #include <$ac_header>
22126 rm -f conftest.
$ac_objext
22127 if { (ac_try
="$ac_compile"
22128 case "(($ac_try" in
22129 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22130 *) ac_try_echo=$ac_try;;
22132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22133 (eval "$ac_compile") 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } && {
22140 test -z "$ac_c_werror_flag" ||
22141 test ! -s conftest.err
22142 } && test -s conftest.$ac_objext; then
22143 ac_header_compiler=yes
22145 echo "$as_me: failed program was:" >&5
22146 sed 's/^/| /' conftest.$ac_ext >&5
22148 ac_header_compiler=no
22151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22152 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22153 echo "${ECHO_T}$ac_header_compiler" >&6; }
22155 # Is the header present?
22156 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22157 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22158 cat >conftest.$ac_ext <<_ACEOF
22161 cat confdefs.h >>conftest.$ac_ext
22162 cat >>conftest.$ac_ext <<_ACEOF
22163 /* end confdefs.h. */
22164 #include <$ac_header>
22166 if { (ac_try="$ac_cpp conftest.$ac_ext"
22167 case "(($ac_try" in
22168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22169 *) ac_try_echo
=$ac_try;;
22171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22172 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22174 grep -v '^ *+' conftest.er1
>conftest.err
22176 cat conftest.err
>&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); } >/dev
/null
&& {
22179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22180 test ! -s conftest.err
22182 ac_header_preproc
=yes
22184 echo "$as_me: failed program was:" >&5
22185 sed 's/^/| /' conftest.
$ac_ext >&5
22187 ac_header_preproc
=no
22190 rm -f conftest.err conftest.
$ac_ext
22191 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22192 echo "${ECHO_T}$ac_header_preproc" >&6; }
22194 # So? What about this header?
22195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22197 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22198 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22199 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22200 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22201 ac_header_preproc
=yes
22204 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22205 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22206 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22207 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22208 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22209 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22210 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22211 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22213 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22214 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22215 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22217 ## ------------------------------------------------- ##
22218 ## Report this to courier-imap@lists.sourceforge.net ##
22219 ## ------------------------------------------------- ##
22221 ) |
sed "s/^/$as_me: WARNING: /" >&2
22224 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22225 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22226 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22227 echo $ECHO_N "(cached) $ECHO_C" >&6
22229 eval "$as_ac_Header=\$ac_header_preproc"
22231 ac_res
=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h
<<_ACEOF
22238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22246 if test "$doauthldap" = "no"
22251 LIBS
="$NETLIBS $LIBS"
22254 { echo "$as_me:$LINENO: checking whether -lresolv is needed for res_query" >&5
22255 echo $ECHO_N "checking whether -lresolv is needed for res_query... $ECHO_C" >&6; }
22256 cat >conftest.
$ac_ext <<_ACEOF
22259 cat confdefs.h
>>conftest.
$ac_ext
22260 cat >>conftest.
$ac_ext <<_ACEOF
22261 /* end confdefs.h. */
22263 #include <sys/types.h>
22264 #if HAVE_NETINET_IN_H
22265 #include <netinet/in.h>
22267 #include <resolv.h>
22269 void (*func)()= (void (*)())res_query;
22279 rm -f conftest.
$ac_objext conftest
$ac_exeext
22280 if { (ac_try
="$ac_link"
22281 case "(($ac_try" in
22282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22283 *) ac_try_echo=$ac_try;;
22285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22286 (eval "$ac_link") 2>conftest.er1
22288 grep -v '^ *+' conftest.er1 >conftest.err
22290 cat conftest.err >&5
22291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22292 (exit $ac_status); } && {
22293 test -z "$ac_c_werror_flag" ||
22294 test ! -s conftest.err
22295 } && test -s conftest$ac_exeext &&
22296 $as_test_x conftest$ac_exeext; then
22297 { echo "$as_me:$LINENO: result: no" >&5
22298 echo "${ECHO_T}no" >&6; }
22300 echo "$as_me: failed program was:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22304 LIBS="-lresolv $LIBS"
22306 cat >conftest.$ac_ext <<_ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22313 #include <sys/types.h>
22314 #if HAVE_NETINET_IN_H
22315 #include <netinet/in.h>
22317 #include <resolv.h>
22319 void (*func)()= (void (*)())res_query;
22329 rm -f conftest.$ac_objext conftest$ac_exeext
22330 if { (ac_try="$ac_link"
22331 case "(($ac_try" in
22332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22333 *) ac_try_echo
=$ac_try;;
22335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22336 (eval "$ac_link") 2>conftest.er1
22338 grep -v '^ *+' conftest.er1
>conftest.err
22340 cat conftest.err
>&5
22341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22342 (exit $ac_status); } && {
22343 test -z "$ac_c_werror_flag" ||
22344 test ! -s conftest.err
22345 } && test -s conftest
$ac_exeext &&
22346 $as_test_x conftest
$ac_exeext; then
22348 LDAPLIBS
="-lresolv $LDAPLIBS"
22350 { echo "$as_me:$LINENO: result: yes" >&5
22351 echo "${ECHO_T}yes" >&6; }
22354 echo "$as_me: failed program was:" >&5
22355 sed 's/^/| /' conftest.
$ac_ext >&5
22357 { { echo "$as_me:$LINENO: error: Cannot find function res_query" >&5
22358 echo "$as_me: error: Cannot find function res_query" >&2;}
22359 { (exit 1); exit 1; }; }
22362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22363 conftest
$ac_exeext conftest.
$ac_ext
22367 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22368 conftest
$ac_exeext conftest.
$ac_ext
22370 { echo "$as_me:$LINENO: checking for ber_scanf in -llber" >&5
22371 echo $ECHO_N "checking for ber_scanf in -llber... $ECHO_C" >&6; }
22372 if test "${ac_cv_lib_lber_ber_scanf+set}" = set; then
22373 echo $ECHO_N "(cached) $ECHO_C" >&6
22375 ac_check_lib_save_LIBS
=$LIBS
22376 LIBS
="-llber $LIBS"
22377 cat >conftest.
$ac_ext <<_ACEOF
22380 cat confdefs.h
>>conftest.
$ac_ext
22381 cat >>conftest.
$ac_ext <<_ACEOF
22382 /* end confdefs.h. */
22384 /* Override any GCC internal prototype to avoid an error.
22385 Use char because int might match the return type of a GCC
22386 builtin and then its argument prototype would still apply. */
22394 return ber_scanf ();
22399 rm -f conftest.
$ac_objext conftest
$ac_exeext
22400 if { (ac_try
="$ac_link"
22401 case "(($ac_try" in
22402 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_lib_lber_ber_scanf=yes
22419 echo "$as_me: failed program was:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_lib_lber_ber_scanf=no
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22427 LIBS=$ac_check_lib_save_LIBS
22429 { echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_scanf" >&5
22430 echo "${ECHO_T}$ac_cv_lib_lber_ber_scanf" >&6; }
22431 if test $ac_cv_lib_lber_ber_scanf = yes; then
22432 LDAPLIBS="-llber $LDAPLIBS" LIBS="-llber $LIBS"
22435 { echo "$as_me:$LINENO: checking for ldap_open in -lldap" >&5
22436 echo $ECHO_N "checking for ldap_open in -lldap... $ECHO_C" >&6; }
22437 if test "${ac_cv_lib_ldap_ldap_open+set}" = set; then
22438 echo $ECHO_N "(cached) $ECHO_C" >&6
22440 ac_check_lib_save_LIBS=$LIBS
22441 LIBS="-lldap $LIBS"
22442 cat >conftest.$ac_ext <<_ACEOF
22445 cat confdefs.h >>conftest.$ac_ext
22446 cat >>conftest.$ac_ext <<_ACEOF
22447 /* end confdefs.h. */
22449 /* Override any GCC internal prototype to avoid an error.
22450 Use char because int might match the return type of a GCC
22451 builtin and then its argument prototype would still apply. */
22459 return ldap_open ();
22464 rm -f conftest.$ac_objext conftest$ac_exeext
22465 if { (ac_try="$ac_link"
22466 case "(($ac_try" in
22467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22468 *) ac_try_echo
=$ac_try;;
22470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22471 (eval "$ac_link") 2>conftest.er1
22473 grep -v '^ *+' conftest.er1
>conftest.err
22475 cat conftest.err
>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); } && {
22478 test -z "$ac_c_werror_flag" ||
22479 test ! -s conftest.err
22480 } && test -s conftest
$ac_exeext &&
22481 $as_test_x conftest
$ac_exeext; then
22482 ac_cv_lib_ldap_ldap_open
=yes
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.
$ac_ext >&5
22487 ac_cv_lib_ldap_ldap_open
=no
22490 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22491 conftest
$ac_exeext conftest.
$ac_ext
22492 LIBS
=$ac_check_lib_save_LIBS
22494 { echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_open" >&5
22495 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_open" >&6; }
22496 if test $ac_cv_lib_ldap_ldap_open = yes; then
22497 LDAPLIBS
="-lldap $LDAPLIBS" ; LIBS
="-lldap $LIBS"
22500 { echo "$as_me:$LINENO: checking for ldap_search_st" >&5
22501 echo $ECHO_N "checking for ldap_search_st... $ECHO_C" >&6; }
22502 if test "${ac_cv_func_ldap_search_st+set}" = set; then
22503 echo $ECHO_N "(cached) $ECHO_C" >&6
22505 cat >conftest.
$ac_ext <<_ACEOF
22508 cat confdefs.h
>>conftest.
$ac_ext
22509 cat >>conftest.
$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 /* Define ldap_search_st to an innocuous variant, in case <limits.h> declares ldap_search_st.
22512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22513 #define ldap_search_st innocuous_ldap_search_st
22515 /* System header to define __stub macros and hopefully few prototypes,
22516 which can conflict with char ldap_search_st (); below.
22517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22518 <limits.h> exists even on freestanding compilers. */
22521 # include <limits.h>
22523 # include <assert.h>
22526 #undef ldap_search_st
22528 /* Override any GCC internal prototype to avoid an error.
22529 Use char because int might match the return type of a GCC
22530 builtin and then its argument prototype would still apply. */
22534 char ldap_search_st ();
22535 /* The GNU C library defines this for functions which it implements
22536 to always fail with ENOSYS. Some functions are actually named
22537 something starting with __ and the normal name is an alias. */
22538 #if defined __stub_ldap_search_st || defined __stub___ldap_search_st
22545 return ldap_search_st ();
22550 rm -f conftest.
$ac_objext conftest
$ac_exeext
22551 if { (ac_try
="$ac_link"
22552 case "(($ac_try" in
22553 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22554 *) ac_try_echo=$ac_try;;
22556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22557 (eval "$ac_link") 2>conftest.er1
22559 grep -v '^ *+' conftest.er1 >conftest.err
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } && {
22564 test -z "$ac_c_werror_flag" ||
22565 test ! -s conftest.err
22566 } && test -s conftest$ac_exeext &&
22567 $as_test_x conftest$ac_exeext; then
22568 ac_cv_func_ldap_search_st=yes
22570 echo "$as_me: failed program was:" >&5
22571 sed 's/^/| /' conftest.$ac_ext >&5
22573 ac_cv_func_ldap_search_st=no
22576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22577 conftest$ac_exeext conftest.$ac_ext
22579 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_search_st" >&5
22580 echo "${ECHO_T}$ac_cv_func_ldap_search_st" >&6; }
22581 if test $ac_cv_func_ldap_search_st = yes; then
22587 { echo "$as_me:$LINENO: checking for ldap_start_tls_s" >&5
22588 echo $ECHO_N "checking for ldap_start_tls_s... $ECHO_C" >&6; }
22589 if test "${ac_cv_func_ldap_start_tls_s+set}" = set; then
22590 echo $ECHO_N "(cached) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22598 /* Define ldap_start_tls_s to an innocuous variant, in case <limits.h> declares ldap_start_tls_s.
22599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22600 #define ldap_start_tls_s innocuous_ldap_start_tls_s
22602 /* System header to define __stub macros and hopefully few prototypes,
22603 which can conflict with char ldap_start_tls_s (); below.
22604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22605 <limits.h> exists even on freestanding compilers. */
22608 # include <limits.h>
22610 # include <assert.h>
22613 #undef ldap_start_tls_s
22615 /* Override any GCC internal prototype to avoid an error.
22616 Use char because int might match the return type of a GCC
22617 builtin and then its argument prototype would still apply. */
22621 char ldap_start_tls_s ();
22622 /* The GNU C library defines this for functions which it implements
22623 to always fail with ENOSYS. Some functions are actually named
22624 something starting with __ and the normal name is an alias. */
22625 #if defined __stub_ldap_start_tls_s || defined __stub___ldap_start_tls_s
22632 return ldap_start_tls_s ();
22637 rm -f conftest.$ac_objext conftest$ac_exeext
22638 if { (ac_try="$ac_link"
22639 case "(($ac_try" in
22640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22641 *) ac_try_echo
=$ac_try;;
22643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22644 (eval "$ac_link") 2>conftest.er1
22646 grep -v '^ *+' conftest.er1
>conftest.err
22648 cat conftest.err
>&5
22649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22650 (exit $ac_status); } && {
22651 test -z "$ac_c_werror_flag" ||
22652 test ! -s conftest.err
22653 } && test -s conftest
$ac_exeext &&
22654 $as_test_x conftest
$ac_exeext; then
22655 ac_cv_func_ldap_start_tls_s
=yes
22657 echo "$as_me: failed program was:" >&5
22658 sed 's/^/| /' conftest.
$ac_ext >&5
22660 ac_cv_func_ldap_start_tls_s
=no
22663 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22664 conftest
$ac_exeext conftest.
$ac_ext
22666 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_start_tls_s" >&5
22667 echo "${ECHO_T}$ac_cv_func_ldap_start_tls_s" >&6; }
22668 if test $ac_cv_func_ldap_start_tls_s = yes; then
22674 { echo "$as_me:$LINENO: checking for ldap_result2error" >&5
22675 echo $ECHO_N "checking for ldap_result2error... $ECHO_C" >&6; }
22676 if test "${ac_cv_func_ldap_result2error+set}" = set; then
22677 echo $ECHO_N "(cached) $ECHO_C" >&6
22679 cat >conftest.
$ac_ext <<_ACEOF
22682 cat confdefs.h
>>conftest.
$ac_ext
22683 cat >>conftest.
$ac_ext <<_ACEOF
22684 /* end confdefs.h. */
22685 /* Define ldap_result2error to an innocuous variant, in case <limits.h> declares ldap_result2error.
22686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22687 #define ldap_result2error innocuous_ldap_result2error
22689 /* System header to define __stub macros and hopefully few prototypes,
22690 which can conflict with char ldap_result2error (); below.
22691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22692 <limits.h> exists even on freestanding compilers. */
22695 # include <limits.h>
22697 # include <assert.h>
22700 #undef ldap_result2error
22702 /* Override any GCC internal prototype to avoid an error.
22703 Use char because int might match the return type of a GCC
22704 builtin and then its argument prototype would still apply. */
22708 char ldap_result2error ();
22709 /* The GNU C library defines this for functions which it implements
22710 to always fail with ENOSYS. Some functions are actually named
22711 something starting with __ and the normal name is an alias. */
22712 #if defined __stub_ldap_result2error || defined __stub___ldap_result2error
22719 return ldap_result2error ();
22724 rm -f conftest.
$ac_objext conftest
$ac_exeext
22725 if { (ac_try
="$ac_link"
22726 case "(($ac_try" in
22727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_link") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } && {
22738 test -z "$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22740 } && test -s conftest$ac_exeext &&
22741 $as_test_x conftest$ac_exeext; then
22742 ac_cv_func_ldap_result2error=yes
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22747 ac_cv_func_ldap_result2error=no
22750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22751 conftest$ac_exeext conftest.$ac_ext
22753 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_result2error" >&5
22754 echo "${ECHO_T}$ac_cv_func_ldap_result2error" >&6; }
22755 if test $ac_cv_func_ldap_result2error = yes; then
22756 HAVE_LDAP_RESULT2ERROR=1
22758 HAVE_LDAP_RESULT2ERROR=0
22761 { echo "$as_me:$LINENO: checking for ldap_parse_result" >&5
22762 echo $ECHO_N "checking for ldap_parse_result... $ECHO_C" >&6; }
22763 if test "${ac_cv_func_ldap_parse_result+set}" = set; then
22764 echo $ECHO_N "(cached) $ECHO_C" >&6
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 /* Define ldap_parse_result to an innocuous variant, in case <limits.h> declares ldap_parse_result.
22773 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22774 #define ldap_parse_result innocuous_ldap_parse_result
22776 /* System header to define __stub macros and hopefully few prototypes,
22777 which can conflict with char ldap_parse_result (); below.
22778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22779 <limits.h> exists even on freestanding compilers. */
22782 # include <limits.h>
22784 # include <assert.h>
22787 #undef ldap_parse_result
22789 /* Override any GCC internal prototype to avoid an error.
22790 Use char because int might match the return type of a GCC
22791 builtin and then its argument prototype would still apply. */
22795 char ldap_parse_result ();
22796 /* The GNU C library defines this for functions which it implements
22797 to always fail with ENOSYS. Some functions are actually named
22798 something starting with __ and the normal name is an alias. */
22799 #if defined __stub_ldap_parse_result || defined __stub___ldap_parse_result
22806 return ldap_parse_result ();
22811 rm -f conftest.$ac_objext conftest$ac_exeext
22812 if { (ac_try="$ac_link"
22813 case "(($ac_try" in
22814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
22815 *) ac_try_echo
=$ac_try;;
22817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22818 (eval "$ac_link") 2>conftest.er1
22820 grep -v '^ *+' conftest.er1
>conftest.err
22822 cat conftest.err
>&5
22823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest
$ac_exeext &&
22828 $as_test_x conftest
$ac_exeext; then
22829 ac_cv_func_ldap_parse_result
=yes
22831 echo "$as_me: failed program was:" >&5
22832 sed 's/^/| /' conftest.
$ac_ext >&5
22834 ac_cv_func_ldap_parse_result
=no
22837 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
22838 conftest
$ac_exeext conftest.
$ac_ext
22840 { echo "$as_me:$LINENO: result: $ac_cv_func_ldap_parse_result" >&5
22841 echo "${ECHO_T}$ac_cv_func_ldap_parse_result" >&6; }
22842 if test $ac_cv_func_ldap_parse_result = yes; then
22843 HAVE_LDAP_PARSE_RESULT
=1
22845 HAVE_LDAP_PARSE_RESULT
=0
22852 # Check whether --with-authldaprc was given.
22853 if test "${with_authldaprc+set}" = set; then
22854 withval
=$with_authldaprc; authldaprc
="$withval"
22856 authldaprc
="$pkgconfdir/authldaprc"
22862 if test "$HAVE_LDAP" = 1
22864 LIBAUTHLDAP
="libauthldap.la"
22871 if test "$HAVE_LDAP" = 1; then
22873 HAVE_LDAP_FALSE
='#'
22880 cat >>confdefs.h
<<_ACEOF
22881 #define HAVE_LDAP_TLS $HAVE_LDAP_TLS
22885 cat >>confdefs.h
<<_ACEOF
22886 #define HAVE_LDAP_RESULT2ERROR $HAVE_LDAP_RESULT2ERROR
22890 cat >>confdefs.h
<<_ACEOF
22891 #define HAVE_LDAP_PARSE_RESULT $HAVE_LDAP_PARSE_RESULT
22898 # Check whether --with-authpwd was given.
22899 if test "${with_authpwd+set}" = set; then
22900 withval
=$with_authpwd; doauthpwd
="$withval"
22903 test "$HAVE_PAM" = 1 && doauthpwd
="no"
22904 test "$HAVE_LDAP" = 1 && doauthpwd
="no"
22910 if test "$doauthpwd" = "no"
22915 for ac_func
in endpwent
22917 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22918 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22919 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22920 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22921 echo $ECHO_N "(cached) $ECHO_C" >&6
22923 cat >conftest.
$ac_ext <<_ACEOF
22926 cat confdefs.h
>>conftest.
$ac_ext
22927 cat >>conftest.
$ac_ext <<_ACEOF
22928 /* end confdefs.h. */
22929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22931 #define $ac_func innocuous_$ac_func
22933 /* System header to define __stub macros and hopefully few prototypes,
22934 which can conflict with char $ac_func (); below.
22935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22936 <limits.h> exists even on freestanding compilers. */
22939 # include <limits.h>
22941 # include <assert.h>
22946 /* Override any GCC internal prototype to avoid an error.
22947 Use char because int might match the return type of a GCC
22948 builtin and then its argument prototype would still apply. */
22953 /* The GNU C library defines this for functions which it implements
22954 to always fail with ENOSYS. Some functions are actually named
22955 something starting with __ and the normal name is an alias. */
22956 #if defined __stub_$ac_func || defined __stub___$ac_func
22963 return $ac_func ();
22968 rm -f conftest.
$ac_objext conftest
$ac_exeext
22969 if { (ac_try
="$ac_link"
22970 case "(($ac_try" in
22971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
22972 *) ac_try_echo=$ac_try;;
22974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22975 (eval "$ac_link") 2>conftest.er1
22977 grep -v '^ *+' conftest.er1 >conftest.err
22979 cat conftest.err >&5
22980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22981 (exit $ac_status); } && {
22982 test -z "$ac_c_werror_flag" ||
22983 test ! -s conftest.err
22984 } && test -s conftest$ac_exeext &&
22985 $as_test_x conftest$ac_exeext; then
22986 eval "$as_ac_var=yes"
22988 echo "$as_me: failed program was:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 eval "$as_ac_var=no"
22994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22995 conftest$ac_exeext conftest.$ac_ext
22997 ac_res=`eval echo '${'$as_ac_var'}'`
22998 { echo "$as_me:$LINENO: result: $ac_res" >&5
22999 echo "${ECHO_T}$ac_res" >&6; }
23000 if test `eval echo '${'$as_ac_var'}'` = yes; then
23001 cat >>confdefs.h <<_ACEOF
23002 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23013 # Check whether --with-authshadow was given.
23014 if test "${with_authshadow+set}" = set; then
23015 withval=$with_authshadow; doauthshadow="$withval"
23018 test "$HAVE_PAM" = 1 && doauthshadow="no"
23019 test "$HAVE_LDAP" = 1 && doauthshadow="no"
23024 for ac_header in shadow.h
23026 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
23027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23031 echo $ECHO_N "(cached) $ECHO_C" >&6
23033 ac_res=`eval echo '${'$as_ac_Header'}'`
23034 { echo "$as_me:$LINENO: result: $ac_res" >&5
23035 echo "${ECHO_T}$ac_res" >&6; }
23037 # Is the header compilable?
23038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 $ac_includes_default
23047 #include <$ac_header>
23049 rm -f conftest.$ac_objext
23050 if { (ac_try="$ac_compile"
23051 case "(($ac_try" in
23052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23053 *) ac_try_echo
=$ac_try;;
23055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23056 (eval "$ac_compile") 2>conftest.er1
23058 grep -v '^ *+' conftest.er1
>conftest.err
23060 cat conftest.err
>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } && {
23063 test -z "$ac_c_werror_flag" ||
23064 test ! -s conftest.err
23065 } && test -s conftest.
$ac_objext; then
23066 ac_header_compiler
=yes
23068 echo "$as_me: failed program was:" >&5
23069 sed 's/^/| /' conftest.
$ac_ext >&5
23071 ac_header_compiler
=no
23074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
23075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23076 echo "${ECHO_T}$ac_header_compiler" >&6; }
23078 # Is the header present?
23079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23081 cat >conftest.
$ac_ext <<_ACEOF
23084 cat confdefs.h
>>conftest.
$ac_ext
23085 cat >>conftest.
$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 #include <$ac_header>
23089 if { (ac_try
="$ac_cpp conftest.$ac_ext"
23090 case "(($ac_try" in
23091 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); } >/dev/null && {
23102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23105 ac_header_preproc=yes
23107 echo "$as_me: failed program was:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_header_preproc=no
23113 rm -f conftest.err conftest.$ac_ext
23114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23115 echo "${ECHO_T}$ac_header_preproc" >&6; }
23117 # So? What about this header?
23118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23124 ac_header_preproc=yes
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23140 ## ------------------------------------------------- ##
23141 ## Report this to courier-imap@lists.sourceforge.net ##
23142 ## ------------------------------------------------- ##
23144 ) | sed "s/^/$as_me: WARNING: /" >&2
23147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23152 eval "$as_ac_Header=\$ac_header_preproc"
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
23170 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23171 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23172 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23175 ac_check_lib_save_LIBS=$LIBS
23176 LIBS="-lshadow $LIBS"
23177 cat >conftest.$ac_ext <<_ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h. */
23184 /* Override any GCC internal prototype to avoid an error.
23185 Use char because int might match the return type of a GCC
23186 builtin and then its argument prototype would still apply. */
23194 return getspent ();
23199 rm -f conftest.$ac_objext conftest$ac_exeext
23200 if { (ac_try="$ac_link"
23201 case "(($ac_try" in
23202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23203 *) ac_try_echo
=$ac_try;;
23205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23206 (eval "$ac_link") 2>conftest.er1
23208 grep -v '^ *+' conftest.er1
>conftest.err
23210 cat conftest.err
>&5
23211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23212 (exit $ac_status); } && {
23213 test -z "$ac_c_werror_flag" ||
23214 test ! -s conftest.err
23215 } && test -s conftest
$ac_exeext &&
23216 $as_test_x conftest
$ac_exeext; then
23217 ac_cv_lib_shadow_getspent
=yes
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.
$ac_ext >&5
23222 ac_cv_lib_shadow_getspent
=no
23225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23226 conftest
$ac_exeext conftest.
$ac_ext
23227 LIBS
=$ac_check_lib_save_LIBS
23229 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23230 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23231 if test $ac_cv_lib_shadow_getspent = yes; then
23232 SHADOWLIBS
="-lshadow" ; LIBS
="-lshadow $LIBS"
23237 for ac_func
in endspent getspent
23239 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23240 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23241 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23242 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23243 echo $ECHO_N "(cached) $ECHO_C" >&6
23245 cat >conftest.
$ac_ext <<_ACEOF
23248 cat confdefs.h
>>conftest.
$ac_ext
23249 cat >>conftest.
$ac_ext <<_ACEOF
23250 /* end confdefs.h. */
23251 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23252 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23253 #define $ac_func innocuous_$ac_func
23255 /* System header to define __stub macros and hopefully few prototypes,
23256 which can conflict with char $ac_func (); below.
23257 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23258 <limits.h> exists even on freestanding compilers. */
23261 # include <limits.h>
23263 # include <assert.h>
23268 /* Override any GCC internal prototype to avoid an error.
23269 Use char because int might match the return type of a GCC
23270 builtin and then its argument prototype would still apply. */
23275 /* The GNU C library defines this for functions which it implements
23276 to always fail with ENOSYS. Some functions are actually named
23277 something starting with __ and the normal name is an alias. */
23278 #if defined __stub_$ac_func || defined __stub___$ac_func
23285 return $ac_func ();
23290 rm -f conftest.
$ac_objext conftest
$ac_exeext
23291 if { (ac_try
="$ac_link"
23292 case "(($ac_try" in
23293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23294 *) ac_try_echo=$ac_try;;
23296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23297 (eval "$ac_link") 2>conftest.er1
23299 grep -v '^ *+' conftest.er1 >conftest.err
23301 cat conftest.err >&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); } && {
23304 test -z "$ac_c_werror_flag" ||
23305 test ! -s conftest.err
23306 } && test -s conftest$ac_exeext &&
23307 $as_test_x conftest$ac_exeext; then
23308 eval "$as_ac_var=yes"
23310 echo "$as_me: failed program was:" >&5
23311 sed 's/^/| /' conftest.$ac_ext >&5
23313 eval "$as_ac_var=no"
23316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23317 conftest$ac_exeext conftest.$ac_ext
23319 ac_res=`eval echo '${'$as_ac_var'}'`
23320 { echo "$as_me:$LINENO: result: $ac_res" >&5
23321 echo "${ECHO_T}$ac_res" >&6; }
23322 if test `eval echo '${'$as_ac_var'}'` = yes; then
23323 cat >>confdefs.h <<_ACEOF
23324 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
23332 if test "$doauthshadow" = "no"
23339 { echo "$as_me:$LINENO: checking for getspent in -lshadow" >&5
23340 echo $ECHO_N "checking for getspent in -lshadow... $ECHO_C" >&6; }
23341 if test "${ac_cv_lib_shadow_getspent+set}" = set; then
23342 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 ac_check_lib_save_LIBS=$LIBS
23345 LIBS="-lshadow $LIBS"
23346 cat >conftest.$ac_ext <<_ACEOF
23349 cat confdefs.h >>conftest.$ac_ext
23350 cat >>conftest.$ac_ext <<_ACEOF
23351 /* end confdefs.h. */
23353 /* Override any GCC internal prototype to avoid an error.
23354 Use char because int might match the return type of a GCC
23355 builtin and then its argument prototype would still apply. */
23363 return getspent ();
23368 rm -f conftest.$ac_objext conftest$ac_exeext
23369 if { (ac_try="$ac_link"
23370 case "(($ac_try" in
23371 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23372 *) ac_try_echo
=$ac_try;;
23374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23375 (eval "$ac_link") 2>conftest.er1
23377 grep -v '^ *+' conftest.er1
>conftest.err
23379 cat conftest.err
>&5
23380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23381 (exit $ac_status); } && {
23382 test -z "$ac_c_werror_flag" ||
23383 test ! -s conftest.err
23384 } && test -s conftest
$ac_exeext &&
23385 $as_test_x conftest
$ac_exeext; then
23386 ac_cv_lib_shadow_getspent
=yes
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.
$ac_ext >&5
23391 ac_cv_lib_shadow_getspent
=no
23394 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23395 conftest
$ac_exeext conftest.
$ac_ext
23396 LIBS
=$ac_check_lib_save_LIBS
23398 { echo "$as_me:$LINENO: result: $ac_cv_lib_shadow_getspent" >&5
23399 echo "${ECHO_T}$ac_cv_lib_shadow_getspent" >&6; }
23400 if test $ac_cv_lib_shadow_getspent = yes; then
23401 cat >>confdefs.h
<<_ACEOF
23402 #define HAVE_LIBSHADOW 1
23405 LIBS
="-lshadow $LIBS"
23409 { echo "$as_me:$LINENO: checking for getspent" >&5
23410 echo $ECHO_N "checking for getspent... $ECHO_C" >&6; }
23411 if test "${ac_cv_func_getspent+set}" = set; then
23412 echo $ECHO_N "(cached) $ECHO_C" >&6
23414 cat >conftest.
$ac_ext <<_ACEOF
23417 cat confdefs.h
>>conftest.
$ac_ext
23418 cat >>conftest.
$ac_ext <<_ACEOF
23419 /* end confdefs.h. */
23420 /* Define getspent to an innocuous variant, in case <limits.h> declares getspent.
23421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23422 #define getspent innocuous_getspent
23424 /* System header to define __stub macros and hopefully few prototypes,
23425 which can conflict with char getspent (); below.
23426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23427 <limits.h> exists even on freestanding compilers. */
23430 # include <limits.h>
23432 # include <assert.h>
23437 /* Override any GCC internal prototype to avoid an error.
23438 Use char because int might match the return type of a GCC
23439 builtin and then its argument prototype would still apply. */
23444 /* The GNU C library defines this for functions which it implements
23445 to always fail with ENOSYS. Some functions are actually named
23446 something starting with __ and the normal name is an alias. */
23447 #if defined __stub_getspent || defined __stub___getspent
23454 return getspent ();
23459 rm -f conftest.
$ac_objext conftest
$ac_exeext
23460 if { (ac_try
="$ac_link"
23461 case "(($ac_try" in
23462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23463 *) ac_try_echo=$ac_try;;
23465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23466 (eval "$ac_link") 2>conftest.er1
23468 grep -v '^ *+' conftest.er1 >conftest.err
23470 cat conftest.err >&5
23471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23472 (exit $ac_status); } && {
23473 test -z "$ac_c_werror_flag" ||
23474 test ! -s conftest.err
23475 } && test -s conftest$ac_exeext &&
23476 $as_test_x conftest$ac_exeext; then
23477 ac_cv_func_getspent=yes
23479 echo "$as_me: failed program was:" >&5
23480 sed 's/^/| /' conftest.$ac_ext >&5
23482 ac_cv_func_getspent=no
23485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23486 conftest$ac_exeext conftest.$ac_ext
23488 { echo "$as_me:$LINENO: result: $ac_cv_func_getspent" >&5
23489 echo "${ECHO_T}$ac_cv_func_getspent" >&6; }
23490 if test $ac_cv_func_getspent = yes; then
23500 if test "$HAVE_SHADOW" = 1
23502 LIBAUTHSHADOW="libauthshadow.la"
23508 if test "$HAVE_PWD" = 1
23510 LIBAUTHPWD="libauthpwd.la"
23518 # Check whether --with-authpgsqlrc was given.
23519 if test "${with_authpgsqlrc+set}" = set; then
23520 withval=$with_authpgsqlrc; authpgsqlrc="$withval"
23522 authpgsqlrc="$pkgconfdir/authpgsqlrc"
23528 # Check whether --with-authpgsql was given.
23529 if test "${with_authpgsql+set}" = set; then
23530 withval=$with_authpgsql; doauthpgsql="$withval"
23534 for ac_prog in pg_config
23536 # Extract the first word of "$ac_prog", so it can be a program name with args.
23537 set dummy $ac_prog; ac_word=$2
23538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23540 if test "${ac_cv_path_PG_CONFIG+set}" = set; then
23541 echo $ECHO_N "(cached) $ECHO_C" >&6
23545 ac_cv_path_PG_CONFIG="$PG_CONFIG" # Let the user override the test with a path.
23548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23549 for as_dir in $LPATH
23552 test -z "$as_dir" && as_dir=.
23553 for ac_exec_ext in '' $ac_executable_extensions; do
23554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23555 ac_cv_path_PG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23566 PG_CONFIG=$ac_cv_path_PG_CONFIG
23567 if test -n "$PG_CONFIG"; then
23568 { echo "$as_me:$LINENO: result: $PG_CONFIG" >&5
23569 echo "${ECHO_T}$PG_CONFIG" >&6; }
23571 { echo "$as_me:$LINENO: result: no" >&5
23572 echo "${ECHO_T}no" >&6; }
23576 test -n "$PG_CONFIG" && break
23578 test -n "$PG_CONFIG" || PG_CONFIG="pg_config"
23583 # Check whether --with-pgsql-libs was given.
23584 if test "${with_pgsql_libs+set}" = set; then
23585 withval=$with_pgsql_libs; PGSQL_LIBS="-L$withval $PGSQL_LIBS"
23587 if test -x $PG_CONFIG
23589 PGSQL_LIBS="-L`$PG_CONFIG --libdir` $PGSQL_LIBS"
23595 # Check whether --with-pgsql-includes was given.
23596 if test "${with_pgsql_includes+set}" = set; then
23597 withval=$with_pgsql_includes; PGSQL_CFLAGS="-I$withval"
23599 if test -x $PG_CONFIG
23601 PGSQL_CFLAGS="-I`$PG_CONFIG --includedir`"
23607 if test "$doauthpgsql" = ""
23609 LIBS="$PGSQL_LIBS $LIBS"
23610 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23611 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23612 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23613 echo $ECHO_N "(cached) $ECHO_C" >&6
23615 cat >conftest.$ac_ext <<_ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23623 #define PQsetdbLogin innocuous_PQsetdbLogin
23625 /* System header to define __stub macros and hopefully few prototypes,
23626 which can conflict with char PQsetdbLogin (); below.
23627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23628 <limits.h> exists even on freestanding compilers. */
23631 # include <limits.h>
23633 # include <assert.h>
23636 #undef PQsetdbLogin
23638 /* Override any GCC internal prototype to avoid an error.
23639 Use char because int might match the return type of a GCC
23640 builtin and then its argument prototype would still apply. */
23644 char PQsetdbLogin ();
23645 /* The GNU C library defines this for functions which it implements
23646 to always fail with ENOSYS. Some functions are actually named
23647 something starting with __ and the normal name is an alias. */
23648 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23655 return PQsetdbLogin ();
23660 rm -f conftest.$ac_objext conftest$ac_exeext
23661 if { (ac_try="$ac_link"
23662 case "(($ac_try" in
23663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23664 *) ac_try_echo
=$ac_try;;
23666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23667 (eval "$ac_link") 2>conftest.er1
23669 grep -v '^ *+' conftest.er1
>conftest.err
23671 cat conftest.err
>&5
23672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23673 (exit $ac_status); } && {
23674 test -z "$ac_c_werror_flag" ||
23675 test ! -s conftest.err
23676 } && test -s conftest
$ac_exeext &&
23677 $as_test_x conftest
$ac_exeext; then
23678 ac_cv_func_PQsetdbLogin
=yes
23680 echo "$as_me: failed program was:" >&5
23681 sed 's/^/| /' conftest.
$ac_ext >&5
23683 ac_cv_func_PQsetdbLogin
=no
23686 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23687 conftest
$ac_exeext conftest.
$ac_ext
23689 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23690 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23691 if test $ac_cv_func_PQsetdbLogin = yes; then
23699 if test "$doauthpgsql" != "yes"
23705 LIBS
="$PGSQL_LIBS $LIBS"
23706 { echo "$as_me:$LINENO: checking for PQsetdbLogin" >&5
23707 echo $ECHO_N "checking for PQsetdbLogin... $ECHO_C" >&6; }
23708 if test "${ac_cv_func_PQsetdbLogin+set}" = set; then
23709 echo $ECHO_N "(cached) $ECHO_C" >&6
23711 cat >conftest.
$ac_ext <<_ACEOF
23714 cat confdefs.h
>>conftest.
$ac_ext
23715 cat >>conftest.
$ac_ext <<_ACEOF
23716 /* end confdefs.h. */
23717 /* Define PQsetdbLogin to an innocuous variant, in case <limits.h> declares PQsetdbLogin.
23718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23719 #define PQsetdbLogin innocuous_PQsetdbLogin
23721 /* System header to define __stub macros and hopefully few prototypes,
23722 which can conflict with char PQsetdbLogin (); below.
23723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23724 <limits.h> exists even on freestanding compilers. */
23727 # include <limits.h>
23729 # include <assert.h>
23732 #undef PQsetdbLogin
23734 /* Override any GCC internal prototype to avoid an error.
23735 Use char because int might match the return type of a GCC
23736 builtin and then its argument prototype would still apply. */
23740 char PQsetdbLogin ();
23741 /* The GNU C library defines this for functions which it implements
23742 to always fail with ENOSYS. Some functions are actually named
23743 something starting with __ and the normal name is an alias. */
23744 #if defined __stub_PQsetdbLogin || defined __stub___PQsetdbLogin
23751 return PQsetdbLogin ();
23756 rm -f conftest.
$ac_objext conftest
$ac_exeext
23757 if { (ac_try
="$ac_link"
23758 case "(($ac_try" in
23759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
23760 *) ac_try_echo=$ac_try;;
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763 (eval "$ac_link") 2>conftest.er1
23765 grep -v '^ *+' conftest.er1 >conftest.err
23767 cat conftest.err >&5
23768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769 (exit $ac_status); } && {
23770 test -z "$ac_c_werror_flag" ||
23771 test ! -s conftest.err
23772 } && test -s conftest$ac_exeext &&
23773 $as_test_x conftest$ac_exeext; then
23774 ac_cv_func_PQsetdbLogin=yes
23776 echo "$as_me: failed program was:" >&5
23777 sed 's/^/| /' conftest.$ac_ext >&5
23779 ac_cv_func_PQsetdbLogin=no
23782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23783 conftest$ac_exeext conftest.$ac_ext
23785 { echo "$as_me:$LINENO: result: $ac_cv_func_PQsetdbLogin" >&5
23786 echo "${ECHO_T}$ac_cv_func_PQsetdbLogin" >&6; }
23787 if test $ac_cv_func_PQsetdbLogin = yes; then
23788 AUTHPGSQL="authpgsql"
23791 { { echo "$as_me:$LINENO: error: --with-authpgsql specified but no libpq.so" >&5
23792 echo "$as_me: error: --with-authpgsql specified but no libpq.so" >&2;}
23793 { (exit 1); exit 1; }; }
23798 CFLAGS="$PGSQL_CFLAGS $CFLAGS"
23799 LIBAUTHPGSQL="libauthpgsql.la"
23804 if test "$HAVE_AUTHPGSQL" = 1; then
23805 HAVE_AUTHPGSQL_TRUE=
23806 HAVE_AUTHPGSQL_FALSE='#'
23808 HAVE_AUTHPGSQL_TRUE='#'
23809 HAVE_AUTHPGSQL_FALSE=
23817 # Check whether --with-authmysqlrc was given.
23818 if test "${with_authmysqlrc+set}" = set; then
23819 withval=$with_authmysqlrc; authmysqlrc="$withval"
23821 authmysqlrc="$pkgconfdir/authmysqlrc"
23827 # Check whether --with-authmysql was given.
23828 if test "${with_authmysql+set}" = set; then
23829 withval=$with_authmysql; doauthmysql="$withval"
23833 # Check whether --with-mysql-libs was given.
23834 if test "${with_mysql_libs+set}" = set; then
23835 withval=$with_mysql_libs; MYSQL_LIBS="-L$withval -lmysqlclient"
23840 # Check whether --with-mysql-includes was given.
23841 if test "${with_mysql_includes+set}" = set; then
23842 withval=$with_mysql_includes; MYSQL_CFLAGS="-I$withval"
23847 for ac_prog in mysql_config
23849 # Extract the first word of "$ac_prog", so it can be a program name with args.
23850 set dummy $ac_prog; ac_word=$2
23851 { echo "$as_me:$LINENO: checking for $ac_word" >&5
23852 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
23853 if test "${ac_cv_path_MYSQL_CONFIG+set}" = set; then
23854 echo $ECHO_N "(cached) $ECHO_C" >&6
23856 case $MYSQL_CONFIG in
23858 ac_cv_path_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test with a path.
23861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23862 for as_dir in $LPATH
23865 test -z "$as_dir" && as_dir=.
23866 for ac_exec_ext in '' $ac_executable_extensions; do
23867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23868 ac_cv_path_MYSQL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23879 MYSQL_CONFIG=$ac_cv_path_MYSQL_CONFIG
23880 if test -n "$MYSQL_CONFIG"; then
23881 { echo "$as_me:$LINENO: result: $MYSQL_CONFIG" >&5
23882 echo "${ECHO_T}$MYSQL_CONFIG" >&6; }
23884 { echo "$as_me:$LINENO: result: no" >&5
23885 echo "${ECHO_T}no" >&6; }
23889 test -n "$MYSQL_CONFIG" && break
23891 test -n "$MYSQL_CONFIG" || MYSQL_CONFIG="mysql_config"
23894 if test -x "$MYSQL_CONFIG"
23896 MYSQL_CFLAGS="`$MYSQL_CONFIG --cflags`"
23897 MYSQL_LIBS="`$MYSQL_CONFIG --libs`"
23899 eval "MYSQL_CFLAGS=\"\`echo $MYSQL_CFLAGS\
`\""
23900 eval "MYSQL_LIBS=\"\`echo $MYSQL_LIBS\
`\""
23903 if test "$doauthmysql" = ""
23905 LIBS="$MYSQL_LIBS $LIBS"
23906 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
23907 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
23908 if test "${ac_cv_func_mysql_connect+set}" = set; then
23909 echo $ECHO_N "(cached) $ECHO_C" >&6
23911 cat >conftest.$ac_ext <<_ACEOF
23914 cat confdefs.h >>conftest.$ac_ext
23915 cat >>conftest.$ac_ext <<_ACEOF
23916 /* end confdefs.h. */
23917 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
23918 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23919 #define mysql_connect innocuous_mysql_connect
23921 /* System header to define __stub macros and hopefully few prototypes,
23922 which can conflict with char mysql_connect (); below.
23923 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23924 <limits.h> exists even on freestanding compilers. */
23927 # include <limits.h>
23929 # include <assert.h>
23932 #undef mysql_connect
23934 /* Override any GCC internal prototype to avoid an error.
23935 Use char because int might match the return type of a GCC
23936 builtin and then its argument prototype would still apply. */
23940 char mysql_connect ();
23941 /* The GNU C library defines this for functions which it implements
23942 to always fail with ENOSYS. Some functions are actually named
23943 something starting with __ and the normal name is an alias. */
23944 #if defined __stub_mysql_connect || defined __stub___mysql_connect
23951 return mysql_connect ();
23956 rm -f conftest.$ac_objext conftest$ac_exeext
23957 if { (ac_try="$ac_link"
23958 case "(($ac_try" in
23959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
23960 *) ac_try_echo
=$ac_try;;
23962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23963 (eval "$ac_link") 2>conftest.er1
23965 grep -v '^ *+' conftest.er1
>conftest.err
23967 cat conftest.err
>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); } && {
23970 test -z "$ac_c_werror_flag" ||
23971 test ! -s conftest.err
23972 } && test -s conftest
$ac_exeext &&
23973 $as_test_x conftest
$ac_exeext; then
23974 ac_cv_func_mysql_connect
=yes
23976 echo "$as_me: failed program was:" >&5
23977 sed 's/^/| /' conftest.
$ac_ext >&5
23979 ac_cv_func_mysql_connect
=no
23982 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
23983 conftest
$ac_exeext conftest.
$ac_ext
23985 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
23986 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
23987 if test $ac_cv_func_mysql_connect = yes; then
23992 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
23993 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
23994 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
23995 echo $ECHO_N "(cached) $ECHO_C" >&6
23997 cat >conftest.
$ac_ext <<_ACEOF
24000 cat confdefs.h
>>conftest.
$ac_ext
24001 cat >>conftest.
$ac_ext <<_ACEOF
24002 /* end confdefs.h. */
24003 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005 #define mysql_real_connect innocuous_mysql_real_connect
24007 /* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char mysql_real_connect (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24013 # include <limits.h>
24015 # include <assert.h>
24018 #undef mysql_real_connect
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24026 char mysql_real_connect ();
24027 /* The GNU C library defines this for functions which it implements
24028 to always fail with ENOSYS. Some functions are actually named
24029 something starting with __ and the normal name is an alias. */
24030 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24037 return mysql_real_connect ();
24042 rm -f conftest.
$ac_objext conftest
$ac_exeext
24043 if { (ac_try
="$ac_link"
24044 case "(($ac_try" in
24045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24049 (eval "$ac_link") 2>conftest.er1
24051 grep -v '^ *+' conftest.er1 >conftest.err
24053 cat conftest.err >&5
24054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24055 (exit $ac_status); } && {
24056 test -z "$ac_c_werror_flag" ||
24057 test ! -s conftest.err
24058 } && test -s conftest$ac_exeext &&
24059 $as_test_x conftest$ac_exeext; then
24060 ac_cv_func_mysql_real_connect=yes
24062 echo "$as_me: failed program was:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24065 ac_cv_func_mysql_real_connect=no
24068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24069 conftest$ac_exeext conftest.$ac_ext
24071 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24072 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24073 if test $ac_cv_func_mysql_real_connect = yes; then
24081 if test "$doauthmysql" != "yes"
24087 LIBS="$MYSQL_LIBS $LIBS"
24088 { echo "$as_me:$LINENO: checking for mysql_connect" >&5
24089 echo $ECHO_N "checking for mysql_connect... $ECHO_C" >&6; }
24090 if test "${ac_cv_func_mysql_connect+set}" = set; then
24091 echo $ECHO_N "(cached) $ECHO_C" >&6
24093 cat >conftest.$ac_ext <<_ACEOF
24096 cat confdefs.h >>conftest.$ac_ext
24097 cat >>conftest.$ac_ext <<_ACEOF
24098 /* end confdefs.h. */
24099 /* Define mysql_connect to an innocuous variant, in case <limits.h> declares mysql_connect.
24100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24101 #define mysql_connect innocuous_mysql_connect
24103 /* System header to define __stub macros and hopefully few prototypes,
24104 which can conflict with char mysql_connect (); below.
24105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24106 <limits.h> exists even on freestanding compilers. */
24109 # include <limits.h>
24111 # include <assert.h>
24114 #undef mysql_connect
24116 /* Override any GCC internal prototype to avoid an error.
24117 Use char because int might match the return type of a GCC
24118 builtin and then its argument prototype would still apply. */
24122 char mysql_connect ();
24123 /* The GNU C library defines this for functions which it implements
24124 to always fail with ENOSYS. Some functions are actually named
24125 something starting with __ and the normal name is an alias. */
24126 #if defined __stub_mysql_connect || defined __stub___mysql_connect
24133 return mysql_connect ();
24138 rm -f conftest.$ac_objext conftest$ac_exeext
24139 if { (ac_try="$ac_link"
24140 case "(($ac_try" in
24141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24142 *) ac_try_echo
=$ac_try;;
24144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24145 (eval "$ac_link") 2>conftest.er1
24147 grep -v '^ *+' conftest.er1
>conftest.err
24149 cat conftest.err
>&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } && {
24152 test -z "$ac_c_werror_flag" ||
24153 test ! -s conftest.err
24154 } && test -s conftest
$ac_exeext &&
24155 $as_test_x conftest
$ac_exeext; then
24156 ac_cv_func_mysql_connect
=yes
24158 echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.
$ac_ext >&5
24161 ac_cv_func_mysql_connect
=no
24164 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
24165 conftest
$ac_exeext conftest.
$ac_ext
24167 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_connect" >&5
24168 echo "${ECHO_T}$ac_cv_func_mysql_connect" >&6; }
24169 if test $ac_cv_func_mysql_connect = yes; then
24170 LIBAUTHMYSQL
="libauthmysql.la"
24174 { echo "$as_me:$LINENO: checking for mysql_real_connect" >&5
24175 echo $ECHO_N "checking for mysql_real_connect... $ECHO_C" >&6; }
24176 if test "${ac_cv_func_mysql_real_connect+set}" = set; then
24177 echo $ECHO_N "(cached) $ECHO_C" >&6
24179 cat >conftest.
$ac_ext <<_ACEOF
24182 cat confdefs.h
>>conftest.
$ac_ext
24183 cat >>conftest.
$ac_ext <<_ACEOF
24184 /* end confdefs.h. */
24185 /* Define mysql_real_connect to an innocuous variant, in case <limits.h> declares mysql_real_connect.
24186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24187 #define mysql_real_connect innocuous_mysql_real_connect
24189 /* System header to define __stub macros and hopefully few prototypes,
24190 which can conflict with char mysql_real_connect (); below.
24191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24192 <limits.h> exists even on freestanding compilers. */
24195 # include <limits.h>
24197 # include <assert.h>
24200 #undef mysql_real_connect
24202 /* Override any GCC internal prototype to avoid an error.
24203 Use char because int might match the return type of a GCC
24204 builtin and then its argument prototype would still apply. */
24208 char mysql_real_connect ();
24209 /* The GNU C library defines this for functions which it implements
24210 to always fail with ENOSYS. Some functions are actually named
24211 something starting with __ and the normal name is an alias. */
24212 #if defined __stub_mysql_real_connect || defined __stub___mysql_real_connect
24219 return mysql_real_connect ();
24224 rm -f conftest.
$ac_objext conftest
$ac_exeext
24225 if { (ac_try
="$ac_link"
24226 case "(($ac_try" in
24227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24228 *) ac_try_echo=$ac_try;;
24230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24231 (eval "$ac_link") 2>conftest.er1
24233 grep -v '^ *+' conftest.er1 >conftest.err
24235 cat conftest.err >&5
24236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24237 (exit $ac_status); } && {
24238 test -z "$ac_c_werror_flag" ||
24239 test ! -s conftest.err
24240 } && test -s conftest$ac_exeext &&
24241 $as_test_x conftest$ac_exeext; then
24242 ac_cv_func_mysql_real_connect=yes
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24247 ac_cv_func_mysql_real_connect=no
24250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24251 conftest$ac_exeext conftest.$ac_ext
24253 { echo "$as_me:$LINENO: result: $ac_cv_func_mysql_real_connect" >&5
24254 echo "${ECHO_T}$ac_cv_func_mysql_real_connect" >&6; }
24255 if test $ac_cv_func_mysql_real_connect = yes; then
24256 LIBAUTHMYSQL="libauthmysql.la"
24259 { { echo "$as_me:$LINENO: error: --with-authmysql specified but no mysqlclient.so" >&5
24260 echo "$as_me: error: --with-authmysql specified but no mysqlclient.so" >&2;}
24261 { (exit 1); exit 1; }; }
24271 CFLAGS="$MYSQL_CFLAGS $CFLAGS"
24275 if test "$HAVE_AUTHMYSQL" = 1; then
24276 HAVE_AUTHMYSQL_TRUE=
24277 HAVE_AUTHMYSQL_FALSE='#'
24279 HAVE_AUTHMYSQL_TRUE='#'
24280 HAVE_AUTHMYSQL_FALSE=
24290 # Check whether --with-authcustom was given.
24291 if test "${with_authcustom+set}" = set; then
24292 withval=$with_authcustom; doauthcustom="$withval"
24300 if test "$doauthcustom" = "yes"
24302 LIBAUTHCUSTOM="libauthcustom.la"
24305 if test "$AUTHCUSTOM" != ""; then
24307 HAVE_CUSTOM_FALSE='#'
24309 HAVE_CUSTOM_TRUE='#'
24321 # Check whether --with-pipeprog was given.
24322 if test "${with_pipeprog+set}" = set; then
24323 withval=$with_pipeprog; authProg="$withval"
24325 authProg="$pkgconfdir/authProg"
24331 # Check whether --with-authpipe was given.
24332 if test "${with_authpipe+set}" = set; then
24333 withval=$with_authpipe; doauthpipe="$withval"
24341 if test "$doauthpipe" = "yes"
24343 LIBAUTHPIPE="libauthpipe.la"
24346 if test "$AUTHPIPE" != ""; then
24348 HAVE_PIPE_FALSE='#'
24358 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24359 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
24360 if test "${ac_cv_header_stdc+set}" = set; then
24361 echo $ECHO_N "(cached) $ECHO_C" >&6
24363 cat >conftest.$ac_ext <<_ACEOF
24366 cat confdefs.h >>conftest.$ac_ext
24367 cat >>conftest.$ac_ext <<_ACEOF
24368 /* end confdefs.h. */
24369 #include <stdlib.h>
24370 #include <stdarg.h>
24371 #include <string.h>
24382 rm -f conftest.$ac_objext
24383 if { (ac_try="$ac_compile"
24384 case "(($ac_try" in
24385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24386 *) ac_try_echo
=$ac_try;;
24388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24389 (eval "$ac_compile") 2>conftest.er1
24391 grep -v '^ *+' conftest.er1
>conftest.err
24393 cat conftest.err
>&5
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); } && {
24396 test -z "$ac_c_werror_flag" ||
24397 test ! -s conftest.err
24398 } && test -s conftest.
$ac_objext; then
24399 ac_cv_header_stdc
=yes
24401 echo "$as_me: failed program was:" >&5
24402 sed 's/^/| /' conftest.
$ac_ext >&5
24404 ac_cv_header_stdc
=no
24407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24409 if test $ac_cv_header_stdc = yes; then
24410 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24411 cat >conftest.
$ac_ext <<_ACEOF
24414 cat confdefs.h
>>conftest.
$ac_ext
24415 cat >>conftest.
$ac_ext <<_ACEOF
24416 /* end confdefs.h. */
24417 #include <string.h>
24420 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24421 $EGREP "memchr" >/dev
/null
2>&1; then
24424 ac_cv_header_stdc
=no
24430 if test $ac_cv_header_stdc = yes; then
24431 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24432 cat >conftest.
$ac_ext <<_ACEOF
24435 cat confdefs.h
>>conftest.
$ac_ext
24436 cat >>conftest.
$ac_ext <<_ACEOF
24437 /* end confdefs.h. */
24438 #include <stdlib.h>
24441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24442 $EGREP "free" >/dev
/null
2>&1; then
24445 ac_cv_header_stdc
=no
24451 if test $ac_cv_header_stdc = yes; then
24452 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24453 if test "$cross_compiling" = yes; then
24456 cat >conftest.
$ac_ext <<_ACEOF
24459 cat confdefs.h
>>conftest.
$ac_ext
24460 cat >>conftest.
$ac_ext <<_ACEOF
24461 /* end confdefs.h. */
24463 #include <stdlib.h>
24464 #if ((' ' & 0x0FF) == 0x020)
24465 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24466 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24468 # define ISLOWER(c) \
24469 (('a' <= (c) && (c) <= 'i') \
24470 || ('j' <= (c) && (c) <= 'r') \
24471 || ('s' <= (c) && (c) <= 'z'))
24472 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24475 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24480 for (i = 0; i < 256; i++)
24481 if (XOR (islower (i), ISLOWER (i))
24482 || toupper (i) != TOUPPER (i))
24487 rm -f conftest
$ac_exeext
24488 if { (ac_try
="$ac_link"
24489 case "(($ac_try" in
24490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24491 *) ac_try_echo=$ac_try;;
24493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24494 (eval "$ac_link") 2>&5
24496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24497 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24498 { (case "(($ac_try" in
24499 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24500 *) ac_try_echo
=$ac_try;;
24502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24503 (eval "$ac_try") 2>&5
24505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24506 (exit $ac_status); }; }; then
24509 echo "$as_me: program exited with status $ac_status" >&5
24510 echo "$as_me: failed program was:" >&5
24511 sed 's/^/| /' conftest.
$ac_ext >&5
24513 ( exit $ac_status )
24514 ac_cv_header_stdc
=no
24516 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24522 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24523 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
24524 if test $ac_cv_header_stdc = yes; then
24526 cat >>confdefs.h
<<\_ACEOF
24527 #define STDC_HEADERS 1
24532 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
24533 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
24534 if test "${ac_cv_header_sys_wait_h+set}" = set; then
24535 echo $ECHO_N "(cached) $ECHO_C" >&6
24537 cat >conftest.
$ac_ext <<_ACEOF
24540 cat confdefs.h
>>conftest.
$ac_ext
24541 cat >>conftest.
$ac_ext <<_ACEOF
24542 /* end confdefs.h. */
24543 #include <sys/types.h>
24544 #include <sys/wait.h>
24545 #ifndef WEXITSTATUS
24546 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
24549 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
24557 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
24562 rm -f conftest.
$ac_objext
24563 if { (ac_try
="$ac_compile"
24564 case "(($ac_try" in
24565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24566 *) ac_try_echo=$ac_try;;
24568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24569 (eval "$ac_compile") 2>conftest.er1
24571 grep -v '^ *+' conftest.er1 >conftest.err
24573 cat conftest.err >&5
24574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24575 (exit $ac_status); } && {
24576 test -z "$ac_c_werror_flag" ||
24577 test ! -s conftest.err
24578 } && test -s conftest.$ac_objext; then
24579 ac_cv_header_sys_wait_h=yes
24581 echo "$as_me: failed program was:" >&5
24582 sed 's/^/| /' conftest.$ac_ext >&5
24584 ac_cv_header_sys_wait_h=no
24587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24589 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
24590 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
24591 if test $ac_cv_header_sys_wait_h = yes; then
24593 cat >>confdefs.h <<\_ACEOF
24594 #define HAVE_SYS_WAIT_H 1
24607 for ac_header in sys/stat.h sys/time.h sys/wait.h sys/select.h unistd.h fcntl.h crypt.h termios.h
24609 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
24610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24614 echo $ECHO_N "(cached) $ECHO_C" >&6
24616 ac_res=`eval echo '${'$as_ac_Header'}'`
24617 { echo "$as_me:$LINENO: result: $ac_res" >&5
24618 echo "${ECHO_T}$ac_res" >&6; }
24620 # Is the header compilable?
24621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24623 cat >conftest.$ac_ext <<_ACEOF
24626 cat confdefs.h >>conftest.$ac_ext
24627 cat >>conftest.$ac_ext <<_ACEOF
24628 /* end confdefs.h. */
24629 $ac_includes_default
24630 #include <$ac_header>
24632 rm -f conftest.$ac_objext
24633 if { (ac_try="$ac_compile"
24634 case "(($ac_try" in
24635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24636 *) ac_try_echo
=$ac_try;;
24638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24639 (eval "$ac_compile") 2>conftest.er1
24641 grep -v '^ *+' conftest.er1
>conftest.err
24643 cat conftest.err
>&5
24644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24645 (exit $ac_status); } && {
24646 test -z "$ac_c_werror_flag" ||
24647 test ! -s conftest.err
24648 } && test -s conftest.
$ac_objext; then
24649 ac_header_compiler
=yes
24651 echo "$as_me: failed program was:" >&5
24652 sed 's/^/| /' conftest.
$ac_ext >&5
24654 ac_header_compiler
=no
24657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24659 echo "${ECHO_T}$ac_header_compiler" >&6; }
24661 # Is the header present?
24662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24664 cat >conftest.
$ac_ext <<_ACEOF
24667 cat confdefs.h
>>conftest.
$ac_ext
24668 cat >>conftest.
$ac_ext <<_ACEOF
24669 /* end confdefs.h. */
24670 #include <$ac_header>
24672 if { (ac_try
="$ac_cpp conftest.$ac_ext"
24673 case "(($ac_try" in
24674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24675 *) ac_try_echo=$ac_try;;
24677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24680 grep -v '^ *+' conftest.er1 >conftest.err
24682 cat conftest.err >&5
24683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24684 (exit $ac_status); } >/dev/null && {
24685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24686 test ! -s conftest.err
24688 ac_header_preproc=yes
24690 echo "$as_me: failed program was:" >&5
24691 sed 's/^/| /' conftest.$ac_ext >&5
24693 ac_header_preproc=no
24696 rm -f conftest.err conftest.$ac_ext
24697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24698 echo "${ECHO_T}$ac_header_preproc" >&6; }
24700 # So? What about this header?
24701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24707 ac_header_preproc=yes
24710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24723 ## ------------------------------------------------- ##
24724 ## Report this to courier-imap@lists.sourceforge.net ##
24725 ## ------------------------------------------------- ##
24727 ) | sed "s/^/$as_me: WARNING: /" >&2
24730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24733 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 eval "$as_ac_Header=\$ac_header_preproc"
24737 ac_res=`eval echo '${'$as_ac_Header'}'`
24738 { echo "$as_me:$LINENO: result: $ac_res" >&5
24739 echo "${ECHO_T}$ac_res" >&6; }
24742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24743 cat >>confdefs.h <<_ACEOF
24744 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
24752 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
24753 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
24754 if test "${ac_cv_c_const+set}" = set; then
24755 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 cat >conftest.$ac_ext <<_ACEOF
24760 cat confdefs.h >>conftest.$ac_ext
24761 cat >>conftest.$ac_ext <<_ACEOF
24762 /* end confdefs.h. */
24767 /* FIXME: Include the comments suggested by Paul. */
24768 #ifndef __cplusplus
24769 /* Ultrix mips cc rejects this. */
24770 typedef int charset[2];
24772 /* SunOS 4.1.1 cc rejects this. */
24773 char const *const *pcpcc;
24775 /* NEC SVR4.0.2 mips cc rejects this. */
24776 struct point {int x, y;};
24777 static struct point const zero = {0,0};
24778 /* AIX XL C 1.02.0.0 rejects this.
24779 It does not let you subtract one const X* pointer from another in
24780 an arm of an if-expression whose if-part is not a constant
24782 const char *g = "string";
24783 pcpcc = &g + (g ? g-g : 0);
24784 /* HPUX 7.0 cc rejects these. */
24786 ppc = (char**) pcpcc;
24787 pcpcc = (char const *const *) ppc;
24788 { /* SCO 3.2v4 cc rejects this. */
24790 char const *s = 0 ? (char *) 0 : (char const *) 0;
24795 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
24796 int x[] = {25, 17};
24797 const int *foo = &x[0];
24800 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
24801 typedef const int *iptr;
24805 { /* AIX XL C 1.02.0.0 rejects this saying
24806 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
24807 struct s { int j; const int *ap[3]; };
24808 struct s *b; b->j = 5;
24810 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
24811 const int foo = 10;
24812 if (!foo) return 0;
24814 return !cs[0] && !zero.x;
24821 rm -f conftest.$ac_objext
24822 if { (ac_try="$ac_compile"
24823 case "(($ac_try" in
24824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24825 *) ac_try_echo
=$ac_try;;
24827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24828 (eval "$ac_compile") 2>conftest.er1
24830 grep -v '^ *+' conftest.er1
>conftest.err
24832 cat conftest.err
>&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } && {
24835 test -z "$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 } && test -s conftest.
$ac_objext; then
24840 echo "$as_me: failed program was:" >&5
24841 sed 's/^/| /' conftest.
$ac_ext >&5
24846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
24848 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
24849 echo "${ECHO_T}$ac_cv_c_const" >&6; }
24850 if test $ac_cv_c_const = no
; then
24852 cat >>confdefs.h
<<\_ACEOF
24858 { echo "$as_me:$LINENO: checking for pid_t" >&5
24859 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24860 if test "${ac_cv_type_pid_t+set}" = set; then
24861 echo $ECHO_N "(cached) $ECHO_C" >&6
24863 cat >conftest.
$ac_ext <<_ACEOF
24866 cat confdefs.h
>>conftest.
$ac_ext
24867 cat >>conftest.
$ac_ext <<_ACEOF
24868 /* end confdefs.h. */
24869 $ac_includes_default
24870 typedef pid_t ac__type_new_;
24874 if ((ac__type_new_ *) 0)
24876 if (sizeof (ac__type_new_))
24882 rm -f conftest.
$ac_objext
24883 if { (ac_try
="$ac_compile"
24884 case "(($ac_try" in
24885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
24886 *) ac_try_echo=$ac_try;;
24888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24889 (eval "$ac_compile") 2>conftest.er1
24891 grep -v '^ *+' conftest.er1 >conftest.err
24893 cat conftest.err >&5
24894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24895 (exit $ac_status); } && {
24896 test -z "$ac_c_werror_flag" ||
24897 test ! -s conftest.err
24898 } && test -s conftest.$ac_objext; then
24899 ac_cv_type_pid_t=yes
24901 echo "$as_me: failed program was:" >&5
24902 sed 's/^/| /' conftest.$ac_ext >&5
24904 ac_cv_type_pid_t=no
24907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24909 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24910 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24911 if test $ac_cv_type_pid_t = yes; then
24915 cat >>confdefs.h <<_ACEOF
24921 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
24922 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
24923 if test "${ac_cv_type_uid_t+set}" = set; then
24924 echo $ECHO_N "(cached) $ECHO_C" >&6
24926 cat >conftest.$ac_ext <<_ACEOF
24929 cat confdefs.h >>conftest.$ac_ext
24930 cat >>conftest.$ac_ext <<_ACEOF
24931 /* end confdefs.h. */
24932 #include <sys/types.h>
24935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24936 $EGREP "uid_t" >/dev/null 2>&1; then
24937 ac_cv_type_uid_t=yes
24939 ac_cv_type_uid_t=no
24944 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
24945 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
24946 if test $ac_cv_type_uid_t = no; then
24948 cat >>confdefs.h <<\_ACEOF
24953 cat >>confdefs.h <<\_ACEOF
24959 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
24960 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
24961 if test "${ac_cv_type_signal+set}" = set; then
24962 echo $ECHO_N "(cached) $ECHO_C" >&6
24964 cat >conftest.$ac_ext <<_ACEOF
24967 cat confdefs.h >>conftest.$ac_ext
24968 cat >>conftest.$ac_ext <<_ACEOF
24969 /* end confdefs.h. */
24970 #include <sys/types.h>
24971 #include <signal.h>
24976 return *(signal (0, 0)) (0) == 1;
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
24985 *) ac_try_echo
=$ac_try;;
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988 (eval "$ac_compile") 2>conftest.er1
24990 grep -v '^ *+' conftest.er1
>conftest.err
24992 cat conftest.err
>&5
24993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994 (exit $ac_status); } && {
24995 test -z "$ac_c_werror_flag" ||
24996 test ! -s conftest.err
24997 } && test -s conftest.
$ac_objext; then
24998 ac_cv_type_signal
=int
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.
$ac_ext >&5
25003 ac_cv_type_signal
=void
25006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25008 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25009 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
25011 cat >>confdefs.h
<<_ACEOF
25012 #define RETSIGTYPE $ac_cv_type_signal
25019 for ac_func
in setsid setlogin
25021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
25023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
25024 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25025 echo $ECHO_N "(cached) $ECHO_C" >&6
25027 cat >conftest.
$ac_ext <<_ACEOF
25030 cat confdefs.h
>>conftest.
$ac_ext
25031 cat >>conftest.
$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25035 #define $ac_func innocuous_$ac_func
25037 /* System header to define __stub macros and hopefully few prototypes,
25038 which can conflict with char $ac_func (); below.
25039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25040 <limits.h> exists even on freestanding compilers. */
25043 # include <limits.h>
25045 # include <assert.h>
25050 /* Override any GCC internal prototype to avoid an error.
25051 Use char because int might match the return type of a GCC
25052 builtin and then its argument prototype would still apply. */
25057 /* The GNU C library defines this for functions which it implements
25058 to always fail with ENOSYS. Some functions are actually named
25059 something starting with __ and the normal name is an alias. */
25060 #if defined __stub_$ac_func || defined __stub___$ac_func
25067 return $ac_func ();
25072 rm -f conftest.
$ac_objext conftest
$ac_exeext
25073 if { (ac_try
="$ac_link"
25074 case "(($ac_try" in
25075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25076 *) ac_try_echo=$ac_try;;
25078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25079 (eval "$ac_link") 2>conftest.er1
25081 grep -v '^ *+' conftest.er1 >conftest.err
25083 cat conftest.err >&5
25084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25085 (exit $ac_status); } && {
25086 test -z "$ac_c_werror_flag" ||
25087 test ! -s conftest.err
25088 } && test -s conftest$ac_exeext &&
25089 $as_test_x conftest$ac_exeext; then
25090 eval "$as_ac_var=yes"
25092 echo "$as_me: failed program was:" >&5
25093 sed 's/^/| /' conftest.$ac_ext >&5
25095 eval "$as_ac_var=no"
25098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25099 conftest$ac_exeext conftest.$ac_ext
25101 ac_res=`eval echo '${'$as_ac_var'}'`
25102 { echo "$as_me:$LINENO: result: $ac_res" >&5
25103 echo "${ECHO_T}$ac_res" >&6; }
25104 if test `eval echo '${'$as_ac_var'}'` = yes; then
25105 cat >>confdefs.h <<_ACEOF
25106 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
25112 { echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
25113 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6; }
25114 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
25115 echo $ECHO_N "(cached) $ECHO_C" >&6
25117 ac_check_lib_save_LIBS=$LIBS
25118 LIBS="-lcrypt $LIBS"
25119 cat >conftest.$ac_ext <<_ACEOF
25122 cat confdefs.h >>conftest.$ac_ext
25123 cat >>conftest.$ac_ext <<_ACEOF
25124 /* end confdefs.h. */
25126 /* Override any GCC internal prototype to avoid an error.
25127 Use char because int might match the return type of a GCC
25128 builtin and then its argument prototype would still apply. */
25141 rm -f conftest.$ac_objext conftest$ac_exeext
25142 if { (ac_try="$ac_link"
25143 case "(($ac_try" in
25144 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25145 *) ac_try_echo
=$ac_try;;
25147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25148 (eval "$ac_link") 2>conftest.er1
25150 grep -v '^ *+' conftest.er1
>conftest.err
25152 cat conftest.err
>&5
25153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25154 (exit $ac_status); } && {
25155 test -z "$ac_c_werror_flag" ||
25156 test ! -s conftest.err
25157 } && test -s conftest
$ac_exeext &&
25158 $as_test_x conftest
$ac_exeext; then
25159 ac_cv_lib_crypt_crypt
=yes
25161 echo "$as_me: failed program was:" >&5
25162 sed 's/^/| /' conftest.
$ac_ext >&5
25164 ac_cv_lib_crypt_crypt
=no
25167 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
25168 conftest
$ac_exeext conftest.
$ac_ext
25169 LIBS
=$ac_check_lib_save_LIBS
25171 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
25172 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6; }
25173 if test $ac_cv_lib_crypt_crypt = yes; then
25174 CRYPTLIBS
="-lcrypt"
25178 LIBS
="$CRYPTLIBS $LIBS"
25179 { echo "$as_me:$LINENO: checking for crypt" >&5
25180 echo $ECHO_N "checking for crypt... $ECHO_C" >&6; }
25181 if test "${ac_cv_func_crypt+set}" = set; then
25182 echo $ECHO_N "(cached) $ECHO_C" >&6
25184 cat >conftest.
$ac_ext <<_ACEOF
25187 cat confdefs.h
>>conftest.
$ac_ext
25188 cat >>conftest.
$ac_ext <<_ACEOF
25189 /* end confdefs.h. */
25190 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
25191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25192 #define crypt innocuous_crypt
25194 /* System header to define __stub macros and hopefully few prototypes,
25195 which can conflict with char crypt (); below.
25196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25197 <limits.h> exists even on freestanding compilers. */
25200 # include <limits.h>
25202 # include <assert.h>
25207 /* Override any GCC internal prototype to avoid an error.
25208 Use char because int might match the return type of a GCC
25209 builtin and then its argument prototype would still apply. */
25214 /* The GNU C library defines this for functions which it implements
25215 to always fail with ENOSYS. Some functions are actually named
25216 something starting with __ and the normal name is an alias. */
25217 #if defined __stub_crypt || defined __stub___crypt
25229 rm -f conftest.
$ac_objext conftest
$ac_exeext
25230 if { (ac_try
="$ac_link"
25231 case "(($ac_try" in
25232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25233 *) ac_try_echo=$ac_try;;
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236 (eval "$ac_link") 2>conftest.er1
25238 grep -v '^ *+' conftest.er1 >conftest.err
25240 cat conftest.err >&5
25241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242 (exit $ac_status); } && {
25243 test -z "$ac_c_werror_flag" ||
25244 test ! -s conftest.err
25245 } && test -s conftest$ac_exeext &&
25246 $as_test_x conftest$ac_exeext; then
25247 ac_cv_func_crypt=yes
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25252 ac_cv_func_crypt=no
25255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25256 conftest$ac_exeext conftest.$ac_ext
25258 { echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
25259 echo "${ECHO_T}$ac_cv_func_crypt" >&6; }
25260 if test $ac_cv_func_crypt = yes; then
25262 cat >>confdefs.h <<_ACEOF
25263 #define HAVE_CRYPT 1
25269 { echo "$as_me:$LINENO: checking for crypt() prototype" >&5
25270 echo $ECHO_N "checking for crypt() prototype... $ECHO_C" >&6; }
25271 if test "${userdb_cv_NEED_CRYPT_PROTOTYPE+set}" = set; then
25272 echo $ECHO_N "(cached) $ECHO_C" >&6
25274 cat >conftest.$ac_ext <<_ACEOF
25277 cat confdefs.h >>conftest.$ac_ext
25278 cat >>conftest.$ac_ext <<_ACEOF
25279 /* end confdefs.h. */
25285 #include <unistd.h>
25287 int crypt(int, int);
25298 rm -f conftest.$ac_objext
25299 if { (ac_try="$ac_compile"
25300 case "(($ac_try" in
25301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25302 *) ac_try_echo
=$ac_try;;
25304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25305 (eval "$ac_compile") 2>conftest.er1
25307 grep -v '^ *+' conftest.er1
>conftest.err
25309 cat conftest.err
>&5
25310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25311 (exit $ac_status); } && {
25312 test -z "$ac_c_werror_flag" ||
25313 test ! -s conftest.err
25314 } && test -s conftest.
$ac_objext; then
25315 userdb_cv_NEED_CRYPT_PROTOTYPE
=1
25317 echo "$as_me: failed program was:" >&5
25318 sed 's/^/| /' conftest.
$ac_ext >&5
25320 userdb_cv_NEED_CRYPT_PROTOTYPE
=0
25323 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
25327 { echo "$as_me:$LINENO: result: $userdb_cv_NEED_CRYPT_PROTOTYPE" >&5
25328 echo "${ECHO_T}$userdb_cv_NEED_CRYPT_PROTOTYPE" >&6; }
25331 cat >>confdefs.h
<<_ACEOF
25332 #define NEED_CRYPT_PROTOTYPE $userdb_cv_NEED_CRYPT_PROTOTYPE
25341 # Check whether --with-authdaemonrc was given.
25342 if test "${with_authdaemonrc+set}" = set; then
25343 withval
=$with_authdaemonrc; authdaemonrc
="$withval"
25345 authdaemonrc
="$pkgconfdir/authdaemonrc"
25351 # Check whether --with-authdaemonvar was given.
25352 if test "${with_authdaemonvar+set}" = set; then
25353 withval
=$with_authdaemonvar; authdaemonvar
="$withval"
25355 authdaemonvar
="$localstatedir/spool/authdaemon"
25363 rm -f authdaemonrc.h authldaprc.h authmysqlrc.h authpgsqlrc.h vpopmail_config.h
25368 if test -x "$COURIERCONFIG"
25370 $COURIERCONFIG >conftest.out ||
exit 1
25371 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
25373 rm -f conftest.out conftest2.out
25375 cmailuser
="$mailuser"
25376 cmailgroup
="$mailgroup"
25377 result
=" (from courier-config)"
25380 if test -x "$bindir/courierauthconfig"
25382 $bindir/courierauthconfig
--configfiles >conftest.out ||
exit 1
25383 sed -n '/^mail/p' <conftest.out
>conftest2.out ||
exit 1
25385 rm -f conftest.out conftest2.out
25387 cmailuser
="$mailuser"
25388 cmailgroup
="$mailgroup"
25389 result
=" (from previous courierauthconfig)"
25399 { echo "$as_me:$LINENO: checking for mail userid" >&5
25400 echo $ECHO_N "checking for mail userid... $ECHO_C" >&6; }
25403 # Check whether --with-mailuser was given.
25404 if test "${with_mailuser+set}" = set; then
25405 withval
=$with_mailuser; mailuser
="$withval"
25407 if test "$cmailuser" = ""
25409 if test "$cross_compiling" = yes; then
25410 { { echo "$as_me:$LINENO: error: Must use --with-mailuser when cross compiling." >&5
25411 echo "$as_me: error: Must use --with-mailuser when cross compiling." >&2;}
25412 { (exit 1); exit 1; }; }
25414 cat >conftest.
$ac_ext <<_ACEOF
25417 cat confdefs.h
>>conftest.
$ac_ext
25418 cat >>conftest.
$ac_ext <<_ACEOF
25419 /* end confdefs.h. */
25423 #include <stdlib.h>
25425 static const char *ids $LB $RB={"courier","daemon","adm","bin","root", 0};
25433 for (i=0; ids $LB i $RB; i++)
25434 if (getpwnam(ids $LB i $RB)) break;
25436 f=fopen("conftest.out", "w");
25437 if (f && ids $LB i $RB)
25439 fprintf(f, "%s\n", ids $LB i $RB);
25449 rm -f conftest
$ac_exeext
25450 if { (ac_try
="$ac_link"
25451 case "(($ac_try" in
25452 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_link") 2>&5
25458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25460 { (case "(($ac_try" in
25461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25462 *) ac_try_echo
=$ac_try;;
25464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25465 (eval "$ac_try") 2>&5
25467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25468 (exit $ac_status); }; }; then
25469 mailuser
=`cat conftest.out`
25471 echo "$as_me: program exited with status $ac_status" >&5
25472 echo "$as_me: failed program was:" >&5
25473 sed 's/^/| /' conftest.
$ac_ext >&5
25475 ( exit $ac_status )
25476 { { echo "$as_me:$LINENO: error: Cannot determine mail user" >&5
25477 echo "$as_me: error: Cannot determine mail user" >&2;}
25478 { (exit use
--with-mailuser.
); exit use
--with-mailuser.
; }; }
25480 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25485 mailuser
="$cmailuser"
25487 ac_configure_args
="$ac_configure_args --with-mailuser=$mailuser"
25491 { echo "$as_me:$LINENO: result: $mailuser $result" >&5
25492 echo "${ECHO_T}$mailuser $result" >&6; }
25494 { echo "$as_me:$LINENO: checking for mail group id" >&5
25495 echo $ECHO_N "checking for mail group id... $ECHO_C" >&6; }
25498 # Check whether --with-mailgroup was given.
25499 if test "${with_mailgroup+set}" = set; then
25500 withval
=$with_mailgroup; mailgroup
="$withval"
25502 if test "$cmailgroup" = ""
25504 if test "$cross_compiling" = yes; then
25505 { { echo "$as_me:$LINENO: error: Must use --with-mailgroup when cross compiling." >&5
25506 echo "$as_me: error: Must use --with-mailgroup when cross compiling." >&2;}
25507 { (exit 1); exit 1; }; }
25509 cat >conftest.
$ac_ext <<_ACEOF
25512 cat confdefs.h
>>conftest.
$ac_ext
25513 cat >>conftest.
$ac_ext <<_ACEOF
25514 /* end confdefs.h. */
25518 #include <stdlib.h>
25520 static const char *ids $LB $RB={"courier", "daemon","sys","adm", "root", 0};
25527 for (i=0; ids $LB i $RB; i++)
25528 if (getgrnam(ids $LB i $RB)) break;
25530 f=fopen("conftest.out", "w");
25531 if (f && ids $LB i $RB)
25533 fprintf(f, "%s\n", ids $LB i $RB);
25543 rm -f conftest
$ac_exeext
25544 if { (ac_try
="$ac_link"
25545 case "(($ac_try" in
25546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25547 *) ac_try_echo=$ac_try;;
25549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25550 (eval "$ac_link") 2>&5
25552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25554 { (case "(($ac_try" in
25555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
25556 *) ac_try_echo
=$ac_try;;
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_try") 2>&5
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 mailgroup
=`cat conftest.out`
25565 echo "$as_me: program exited with status $ac_status" >&5
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.
$ac_ext >&5
25569 ( exit $ac_status )
25570 { { echo "$as_me:$LINENO: error: Cannot determine mail group" >&5
25571 echo "$as_me: error: Cannot determine mail group" >&2;}
25572 { (exit use
--with-mailgroup.
); exit use
--with-mailgroup.
; }; }
25574 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
25579 mailgroup
="$cmailgroup"
25581 ac_configure_args
="$ac_configure_args --with-mailgroup=$mailgroup"
25585 { echo "$as_me:$LINENO: result: $mailgroup $result" >&5
25586 echo "${ECHO_T}$mailgroup $result" >&6; }
25592 # Check whether --with-stdheaderdir was given.
25593 if test "${with_stdheaderdir+set}" = set; then
25594 withval
=$with_stdheaderdir;
25595 if test "$withval" = "no"
25598 cat >>confdefs.h
<<_ACEOF
25599 #define HAVE_NOSTDHEADERDIR 1
25607 { echo "$as_me:$LINENO: checking for socklen_t" >&5
25608 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6; }
25609 if test "${authlib_cv_hassocklen_t+set}" = set; then
25610 echo $ECHO_N "(cached) $ECHO_C" >&6
25612 cat >conftest.
$ac_ext <<_ACEOF
25615 cat confdefs.h
>>conftest.
$ac_ext
25616 cat >>conftest.
$ac_ext <<_ACEOF
25617 /* end confdefs.h. */
25619 #include <sys/types.h>
25620 #include <sys/socket.h>
25625 rm -f conftest.
$ac_objext
25626 if { (ac_try
="$ac_compile"
25627 case "(($ac_try" in
25628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
25629 *) ac_try_echo=$ac_try;;
25631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25632 (eval "$ac_compile") 2>conftest.er1
25634 grep -v '^ *+' conftest.er1 >conftest.err
25636 cat conftest.err >&5
25637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25638 (exit $ac_status); } && {
25639 test -z "$ac_c_werror_flag" ||
25640 test ! -s conftest.err
25641 } && test -s conftest.$ac_objext; then
25642 authlib_cv_hassocklen_t=yes
25644 echo "$as_me: failed program was:" >&5
25645 sed 's/^/| /' conftest.$ac_ext >&5
25647 authlib_cv_hassocklen_t=no
25650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25653 { echo "$as_me:$LINENO: result: $authlib_cv_hassocklen_t" >&5
25654 echo "${ECHO_T}$authlib_cv_hassocklen_t" >&6; }
25658 if test $authlib_cv_hassocklen_t = yes
25663 cat >>confdefs.h <<_ACEOF
25664 #define socklen_t int
25670 # Check whether --with-repository was given.
25671 if test "${with_repository+set}" = set; then
25672 withval=$with_repository; REPOSITORY="$withval"
25677 if test -d ${srcdir}/docbook; then
25679 HAVE_SGML_FALSE='#'
25685 subdirs="$subdirs libltdl bdbobj gdbmobj md5 sha1 libhmac numlib makedat userdb rfc822 random128 liblock liblog"
25688 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 userdb-test-cram-md5.pl"
25690 cat >confcache <<\_ACEOF
25691 # This file is a shell script that caches the results of configure
25692 # tests run on this system so they can be shared between configure
25693 # scripts and configure runs, see configure's option --config-cache.
25694 # It is not useful on other systems. If it contains results you don't
25695 # want to keep, you may remove or edit it.
25697 # config.status only pays attention to the cache file if you give it
25698 # the --recheck option to rerun configure.
25700 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
25701 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25702 # following values.
25706 # The following way of writing the cache mishandles newlines in values,
25707 # but we know of no workaround that is simple, portable, and efficient.
25708 # So, we kill variables containing newlines.
25709 # Ultrix sh set writes to stderr and can't be redirected directly,
25710 # and sets the high bit in the cache file unless we assign to the vars.
25712 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25713 eval ac_val
=\$
$ac_var
25717 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25718 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25721 _ | IFS | as_nl
) ;; #(
25722 *) $as_unset $ac_var ;;
25728 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25729 *${as_nl}ac_space
=\
*)
25730 # `set' does not quote correctly, so add quotes (double-quote
25731 # substitution turns \\\\ into \\, and sed turns \\ into \).
25734 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25737 # `set' quotes correctly as required by POSIX, so do not add quotes.
25738 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25747 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25749 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25751 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
25752 if test -w "$cache_file"; then
25753 test "x$cache_file" != "x/dev/null" &&
25754 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
25755 echo "$as_me: updating cache $cache_file" >&6;}
25756 cat confcache
>$cache_file
25758 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
25759 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25764 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
25765 # Let make expand exec_prefix.
25766 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
25768 DEFS
=-DHAVE_CONFIG_H
25772 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
25773 # 1. Remove the extension, and $U if already installed.
25774 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
25775 ac_i
=`echo "$ac_i" | sed "$ac_script"`
25776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25777 # will be set to the directory where LIBOBJS objects are built.
25778 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25779 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
25781 LIBOBJS
=$ac_libobjs
25783 LTLIBOBJS
=$ac_ltlibobjs
25786 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25787 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
25788 Usually this means the macro was only invoked conditionally." >&5
25789 echo "$as_me: error: conditional \"AMDEP\" was never defined.
25790 Usually this means the macro was only invoked conditionally." >&2;}
25791 { (exit 1); exit 1; }; }
25793 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25794 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
25795 Usually this means the macro was only invoked conditionally." >&5
25796 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
25797 Usually this means the macro was only invoked conditionally." >&2;}
25798 { (exit 1); exit 1; }; }
25800 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25801 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
25802 Usually this means the macro was only invoked conditionally." >&5
25803 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
25804 Usually this means the macro was only invoked conditionally." >&2;}
25805 { (exit 1); exit 1; }; }
25807 if test -z "${HAVE_LDAP_TRUE}" && test -z "${HAVE_LDAP_FALSE}"; then
25808 { { echo "$as_me:$LINENO: error: conditional \"HAVE_LDAP\" was never defined.
25809 Usually this means the macro was only invoked conditionally." >&5
25810 echo "$as_me: error: conditional \"HAVE_LDAP\" was never defined.
25811 Usually this means the macro was only invoked conditionally." >&2;}
25812 { (exit 1); exit 1; }; }
25814 if test -z "${HAVE_AUTHPGSQL_TRUE}" && test -z "${HAVE_AUTHPGSQL_FALSE}"; then
25815 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25816 Usually this means the macro was only invoked conditionally." >&5
25817 echo "$as_me: error: conditional \"HAVE_AUTHPGSQL\" was never defined.
25818 Usually this means the macro was only invoked conditionally." >&2;}
25819 { (exit 1); exit 1; }; }
25821 if test -z "${HAVE_AUTHMYSQL_TRUE}" && test -z "${HAVE_AUTHMYSQL_FALSE}"; then
25822 { { echo "$as_me:$LINENO: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25823 Usually this means the macro was only invoked conditionally." >&5
25824 echo "$as_me: error: conditional \"HAVE_AUTHMYSQL\" was never defined.
25825 Usually this means the macro was only invoked conditionally." >&2;}
25826 { (exit 1); exit 1; }; }
25828 if test -z "${HAVE_CUSTOM_TRUE}" && test -z "${HAVE_CUSTOM_FALSE}"; then
25829 { { echo "$as_me:$LINENO: error: conditional \"HAVE_CUSTOM\" was never defined.
25830 Usually this means the macro was only invoked conditionally." >&5
25831 echo "$as_me: error: conditional \"HAVE_CUSTOM\" was never defined.
25832 Usually this means the macro was only invoked conditionally." >&2;}
25833 { (exit 1); exit 1; }; }
25835 if test -z "${HAVE_PIPE_TRUE}" && test -z "${HAVE_PIPE_FALSE}"; then
25836 { { echo "$as_me:$LINENO: error: conditional \"HAVE_PIPE\" was never defined.
25837 Usually this means the macro was only invoked conditionally." >&5
25838 echo "$as_me: error: conditional \"HAVE_PIPE\" was never defined.
25839 Usually this means the macro was only invoked conditionally." >&2;}
25840 { (exit 1); exit 1; }; }
25842 if test -z "${HAVE_SGML_TRUE}" && test -z "${HAVE_SGML_FALSE}"; then
25843 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SGML\" was never defined.
25844 Usually this means the macro was only invoked conditionally." >&5
25845 echo "$as_me: error: conditional \"HAVE_SGML\" was never defined.
25846 Usually this means the macro was only invoked conditionally." >&2;}
25847 { (exit 1); exit 1; }; }
25850 : ${CONFIG_STATUS=./config.status}
25851 ac_clean_files_save
=$ac_clean_files
25852 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
25853 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25854 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25855 cat >$CONFIG_STATUS <<_ACEOF
25857 # Generated by $as_me.
25858 # Run this file to recreate the current configuration.
25859 # Compiler output produced by configure, useful for debugging
25860 # configure, is in config.log if it exists.
25863 ac_cs_recheck=false
25865 SHELL=\${CONFIG_SHELL-$SHELL}
25868 cat >>$CONFIG_STATUS <<\_ACEOF
25869 ## --------------------- ##
25870 ## M4sh Initialization. ##
25871 ## --------------------- ##
25873 # Be more Bourne compatible
25874 DUALCASE
=1; export DUALCASE
# for MKS sh
25875 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
25878 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25879 # is contrary to our usage. Disable this feature.
25880 alias -g '${1+"$@"}'='"$@"'
25881 setopt NO_GLOB_SUBST
25883 case `(set -o) 2>/dev/null` in
25884 *posix
*) set -o posix
;;
25893 # Avoid depending upon Character Ranges.
25894 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
25895 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25896 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
25897 as_cr_digits
='0123456789'
25898 as_cr_alnum
=$as_cr_Letters$as_cr_digits
25900 # The user is always right.
25901 if test "${PATH_SEPARATOR+set}" != set; then
25902 echo "#! /bin/sh" >conf$$.sh
25903 echo "exit 0" >>conf$$.sh
25905 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
25913 # Support unset when possible.
25914 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
25922 # We need space, tab and new line, in precisely that order. Quoting is
25923 # there to prevent editors from complaining about space-tab.
25924 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
25925 # splitting by setting IFS to empty value.)
25930 # Find who we are. Look in the path if we contain no directory separator.
25932 *[\\/]* ) as_myself
=$0 ;;
25933 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
25934 for as_dir
in $PATH
25937 test -z "$as_dir" && as_dir
=.
25938 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
25944 # We did not find ourselves, most probably we were run as `sh COMMAND'
25945 # in which case we are not to be found in the path.
25946 if test "x$as_myself" = x
; then
25949 if test ! -f "$as_myself"; then
25950 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25951 { (exit 1); exit 1; }
25954 # Work around bugs in pre-3.0 UWIN ksh.
25955 for as_var
in ENV MAIL MAILPATH
25956 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25964 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25965 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25966 LC_TELEPHONE LC_TIME
25968 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25969 eval $as_var=C
; export $as_var
25971 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
25975 # Required to use basename.
25976 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
25977 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
25983 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25984 as_basename
=basename
25990 # Name of the executable.
25991 as_me
=`$as_basename -- "$0" ||
25992 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25993 X"$0" : 'X\(//\)$' \| \
25994 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25996 sed '/^.*\/\([^/][^/]*\)\/*$/{
26015 as_lineno_1
=$LINENO
26016 as_lineno_2
=$LINENO
26017 test "x$as_lineno_1" != "x$as_lineno_2" &&
26018 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
26020 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26021 # uniformly replaced by the line number. The first 'sed' inserts a
26022 # line-number line after each line using $LINENO; the second 'sed'
26023 # does the real work. The second script uses 'N' to pair each
26024 # line-number line with the line containing $LINENO, and appends
26025 # trailing '-' during substitution so that $LINENO is not a special
26026 # case at line end.
26027 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26028 # scripts with optimization help from Paolo Bonzini. Blame Lee
26029 # E. McMahon (1931-1989) for sed's syntax. :-)
26041 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26044 ' >$as_me.lineno
&&
26045 chmod +x
"$as_me.lineno" ||
26046 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26047 { (exit 1); exit 1; }; }
26049 # Don't try to exec as it changes $[0], causing all sort of problems
26050 # (the dirname of $[0] is not the place where we might find the
26051 # original and so on. Autoconf is especially sensitive to this).
26052 .
"./$as_me.lineno"
26053 # Exit status is that of the last command.
26058 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
26064 ECHO_C
= ECHO_N
= ECHO_T
=
26065 case `echo -n x` in
26067 case `echo 'x\c'` in
26068 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
26075 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
26076 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
26082 rm -f conf$$ conf$$.exe conf$$.
file
26083 if test -d conf$$.dir
; then
26084 rm -f conf$$.dir
/conf$$.
file
26090 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
26092 # ... but there are two gotchas:
26093 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26094 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26095 # In both cases, we have to default to `cp -p'.
26096 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
26098 elif ln conf$$.
file conf$$
2>/dev
/null
; then
26103 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
26104 rmdir conf$$.dir
2>/dev
/null
26106 if mkdir
-p .
2>/dev
/null
; then
26109 test -d .
/-p && rmdir .
/-p
26113 if test -x / >/dev
/null
2>&1; then
26114 as_test_x
='test -x'
26116 if ls -dL / >/dev
/null
2>&1; then
26123 if test -d "$1"; then
26129 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
26130 ???[sx]*):;;*)false;;esac;fi
26134 as_executable_p
=$as_test_x
26136 # Sed expression to map a string onto a valid CPP name.
26137 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26139 # Sed expression to map a string onto a valid variable name.
26140 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26145 # Save the log message, to keep $[0] and so on meaningful, and to
26146 # report actual input values of CONFIG_FILES etc. instead of their
26147 # values after options handling.
26149 This file was extended by courier-authlib $as_me 0.61.0, which was
26150 generated by GNU Autoconf 2.61. Invocation command line was
26152 CONFIG_FILES = $CONFIG_FILES
26153 CONFIG_HEADERS = $CONFIG_HEADERS
26154 CONFIG_LINKS = $CONFIG_LINKS
26155 CONFIG_COMMANDS = $CONFIG_COMMANDS
26158 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26163 cat >>$CONFIG_STATUS <<_ACEOF
26164 # Files that config.status was made for.
26165 config_files="$ac_config_files"
26166 config_headers="$ac_config_headers"
26167 config_commands="$ac_config_commands"
26171 cat >>$CONFIG_STATUS <<\_ACEOF
26173 \`$as_me' instantiates files from templates according to the
26174 current configuration.
26176 Usage: $0 [OPTIONS] [FILE]...
26178 -h, --help print this help, then exit
26179 -V, --version print version number and configuration settings, then exit
26180 -q, --quiet do not print progress messages
26181 -d, --debug don't remove temporary files
26182 --recheck update $as_me by reconfiguring in the same conditions
26183 --file=FILE[:TEMPLATE]
26184 instantiate the configuration file FILE
26185 --header=FILE[:TEMPLATE]
26186 instantiate the configuration header FILE
26188 Configuration files:
26191 Configuration headers:
26194 Configuration commands:
26197 Report bugs to <bug-autoconf@gnu.org>."
26200 cat >>$CONFIG_STATUS <<_ACEOF
26202 courier-authlib config.status 0.61.0
26203 configured by $0, generated by GNU Autoconf 2.61,
26204 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26206 Copyright (C) 2006 Free Software Foundation, Inc.
26207 This config.status script is free software; the Free Software Foundation
26208 gives unlimited permission to copy, distribute and modify it."
26216 cat >>$CONFIG_STATUS <<\_ACEOF
26217 # If no file are specified by the user, then we need to provide default
26218 # value. By we need to know if files were specified by the user.
26224 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
26225 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
26236 # Handling of the options.
26237 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
26239 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
26240 echo "$ac_cs_version"; exit ;;
26241 --debug |
--debu |
--deb |
--de |
--d |
-d )
26243 --file |
--fil |
--fi |
--f )
26245 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
26246 ac_need_defaults
=false
;;
26247 --header |
--heade |
--head |
--hea )
26249 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
26250 ac_need_defaults
=false
;;
26252 # Conflict between --help and --header
26253 { echo "$as_me: error: ambiguous option: $1
26254 Try \`$0 --help' for more information." >&2
26255 { (exit 1); exit 1; }; };;
26256 --help |
--hel |
-h )
26257 echo "$ac_cs_usage"; exit ;;
26258 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
26259 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
26262 # This is an error.
26263 -*) { echo "$as_me: error: unrecognized option: $1
26264 Try \`$0 --help' for more information." >&2
26265 { (exit 1); exit 1; }; } ;;
26267 *) ac_config_targets
="$ac_config_targets $1"
26268 ac_need_defaults
=false
;;
26274 ac_configure_extra_args
=
26276 if $ac_cs_silent; then
26278 ac_configure_extra_args
="$ac_configure_extra_args --silent"
26282 cat >>$CONFIG_STATUS <<_ACEOF
26283 if \$ac_cs_recheck; then
26284 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26285 CONFIG_SHELL=$SHELL
26286 export CONFIG_SHELL
26287 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26291 cat >>$CONFIG_STATUS <<\_ACEOF
26295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26296 ## Running $as_me. ##
26302 cat >>$CONFIG_STATUS <<_ACEOF
26306 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26310 cat >>$CONFIG_STATUS <<\_ACEOF
26312 # Handling of arguments.
26313 for ac_config_target
in $ac_config_targets
26315 case $ac_config_target in
26316 "courier_auth_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS courier_auth_config.h" ;;
26317 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
26318 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
26319 "authdaemond") CONFIG_FILES
="$CONFIG_FILES authdaemond" ;;
26320 "authdaemonrc") CONFIG_FILES
="$CONFIG_FILES authdaemonrc" ;;
26321 "authsystem.passwd") CONFIG_FILES
="$CONFIG_FILES authsystem.passwd" ;;
26322 "README.authdebug.html") CONFIG_FILES
="$CONFIG_FILES README.authdebug.html" ;;
26323 "dbobj.config") CONFIG_FILES
="$CONFIG_FILES dbobj.config" ;;
26324 "dbobj.h") CONFIG_FILES
="$CONFIG_FILES dbobj.h" ;;
26325 "authmigrate") CONFIG_FILES
="$CONFIG_FILES authmigrate" ;;
26326 "courier-authlib.spec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.spec" ;;
26327 "courier-authlib.lpspec") CONFIG_FILES
="$CONFIG_FILES courier-authlib.lpspec" ;;
26328 "courier-authlib.sysvinit") CONFIG_FILES
="$CONFIG_FILES courier-authlib.sysvinit" ;;
26329 "userdb-test-cram-md5.pl") CONFIG_FILES
="$CONFIG_FILES userdb-test-cram-md5.pl" ;;
26331 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26332 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26333 { (exit 1); exit 1; }; };;
26338 # If the user did not use the arguments to specify the items to instantiate,
26339 # then the envvar interface is used. Set only those that are not.
26340 # We use the long form for the default assignment because of an extremely
26341 # bizarre bug on SunOS 4.1.3.
26342 if $ac_need_defaults; then
26343 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
26344 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
26345 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
26348 # Have a temporary directory for convenience. Make it in the build tree
26349 # simply because there is no reason against having it here, and in addition,
26350 # creating and moving files from /tmp can sometimes cause problems.
26351 # Hook for its removal unless debugging.
26352 # Note that there is a small window in which the directory will not be cleaned:
26353 # after its creation but before its name has been assigned to `$tmp'.
26357 trap 'exit_status=$?
26358 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26360 trap '{ (exit 1); exit 1; }' 1 2 13 15
26362 # Create a (secure) tmp directory for tmp files.
26365 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26366 test -n "$tmp" && test -d "$tmp"
26369 tmp
=.
/conf$$
-$RANDOM
26370 (umask 077 && mkdir
"$tmp")
26373 echo "$me: cannot create a temporary directory in ." >&2
26374 { (exit 1); exit 1; }
26378 # Set up the sed scripts for CONFIG_FILES section.
26381 # No need to generate the scripts if there are no CONFIG_FILES.
26382 # This happens for instance when ./config.status config.h
26383 if test -n "$CONFIG_FILES"; then
26390 for ac_last_try
in false false false false false
:; do
26391 cat >conf$
$subs.
sed <<_ACEOF
26392 SHELL!$SHELL$ac_delim
26393 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26394 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26395 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26396 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26397 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26398 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26399 exec_prefix!$exec_prefix$ac_delim
26400 prefix!$prefix$ac_delim
26401 program_transform_name!$program_transform_name$ac_delim
26402 bindir!$bindir$ac_delim
26403 sbindir!$sbindir$ac_delim
26404 libexecdir!$libexecdir$ac_delim
26405 datarootdir!$datarootdir$ac_delim
26406 datadir!$datadir$ac_delim
26407 sysconfdir!$sysconfdir$ac_delim
26408 sharedstatedir!$sharedstatedir$ac_delim
26409 localstatedir!$localstatedir$ac_delim
26410 includedir!$includedir$ac_delim
26411 oldincludedir!$oldincludedir$ac_delim
26412 docdir!$docdir$ac_delim
26413 infodir!$infodir$ac_delim
26414 htmldir!$htmldir$ac_delim
26415 dvidir!$dvidir$ac_delim
26416 pdfdir!$pdfdir$ac_delim
26417 psdir!$psdir$ac_delim
26418 libdir!$libdir$ac_delim
26419 localedir!$localedir$ac_delim
26420 mandir!$mandir$ac_delim
26421 DEFS!$DEFS$ac_delim
26422 ECHO_C!$ECHO_C$ac_delim
26423 ECHO_N!$ECHO_N$ac_delim
26424 ECHO_T!$ECHO_T$ac_delim
26425 LIBS!$LIBS$ac_delim
26426 build_alias!$build_alias$ac_delim
26427 host_alias!$host_alias$ac_delim
26428 target_alias!$target_alias$ac_delim
26429 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26430 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26431 INSTALL_DATA!$INSTALL_DATA$ac_delim
26432 am__isrc!$am__isrc$ac_delim
26433 CYGPATH_W!$CYGPATH_W$ac_delim
26434 PACKAGE!$PACKAGE$ac_delim
26435 VERSION!$VERSION$ac_delim
26436 ACLOCAL!$ACLOCAL$ac_delim
26437 AUTOCONF!$AUTOCONF$ac_delim
26438 AUTOMAKE!$AUTOMAKE$ac_delim
26439 AUTOHEADER!$AUTOHEADER$ac_delim
26440 MAKEINFO!$MAKEINFO$ac_delim
26441 install_sh!$install_sh$ac_delim
26442 STRIP!$STRIP$ac_delim
26443 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
26444 mkdir_p!$mkdir_p$ac_delim
26446 SET_MAKE!$SET_MAKE$ac_delim
26447 am__leading_dot!$am__leading_dot$ac_delim
26448 AMTAR!$AMTAR$ac_delim
26449 am__tar!$am__tar$ac_delim
26450 am__untar!$am__untar$ac_delim
26452 CFLAGS!$CFLAGS$ac_delim
26453 LDFLAGS!$LDFLAGS$ac_delim
26454 CPPFLAGS!$CPPFLAGS$ac_delim
26455 ac_ct_CC!$ac_ct_CC$ac_delim
26456 EXEEXT!$EXEEXT$ac_delim
26457 OBJEXT!$OBJEXT$ac_delim
26458 DEPDIR!$DEPDIR$ac_delim
26459 am__include!$am__include$ac_delim
26460 am__quote!$am__quote$ac_delim
26461 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
26462 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
26463 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
26464 CCDEPMODE!$CCDEPMODE$ac_delim
26465 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
26466 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
26468 LN_S!$LN_S$ac_delim
26469 SYSCONFTOOL_PERL!$SYSCONFTOOL_PERL$ac_delim
26470 SYSCONFTOOL!$SYSCONFTOOL$ac_delim
26471 build!$build$ac_delim
26472 build_cpu!$build_cpu$ac_delim
26473 build_vendor!$build_vendor$ac_delim
26474 build_os!$build_os$ac_delim
26475 host!$host$ac_delim
26476 host_cpu!$host_cpu$ac_delim
26477 host_vendor!$host_vendor$ac_delim
26478 host_os!$host_os$ac_delim
26480 GREP!$GREP$ac_delim
26481 EGREP!$EGREP$ac_delim
26482 ECHO!$ECHO$ac_delim
26484 RANLIB!$RANLIB$ac_delim
26486 CXXFLAGS!$CXXFLAGS$ac_delim
26487 ac_ct_CXX!$ac_ct_CXX$ac_delim
26488 CXXDEPMODE!$CXXDEPMODE$ac_delim
26491 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26493 elif $ac_last_try; then
26494 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26495 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26496 { (exit 1); exit 1; }; }
26498 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26502 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26503 if test -n "$ac_eof"; then
26504 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26505 ac_eof
=`expr $ac_eof + 1`
26508 cat >>$CONFIG_STATUS <<_ACEOF
26509 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26510 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26513 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26514 s/^/s,@/; s/!/@,|#_!!_#|/
26517 s/'"$ac_delim"'$/,g/; t
26519 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26520 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26521 rm -f conf$
$subs.
sed
26522 cat >>$CONFIG_STATUS <<_ACEOF
26528 for ac_last_try
in false false false false false
:; do
26529 cat >conf$
$subs.
sed <<_ACEOF
26530 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
26531 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
26532 CXXCPP!$CXXCPP$ac_delim
26534 FFLAGS!$FFLAGS$ac_delim
26535 ac_ct_F77!$ac_ct_F77$ac_delim
26536 LIBTOOL!$LIBTOOL$ac_delim
26537 LTDLINCL!$LTDLINCL$ac_delim
26538 LIBLTDL!$LIBLTDL$ac_delim
26539 PERL!$PERL$ac_delim
26540 COURIERCONFIG!$COURIERCONFIG$ac_delim
26541 EXPECT!$EXPECT$ac_delim
26542 PASSWD!$PASSWD$ac_delim
26543 NETLIBS!$NETLIBS$ac_delim
26544 USE_GDBM!$USE_GDBM$ac_delim
26545 USE_DB!$USE_DB$ac_delim
26546 dblibrary!$dblibrary$ac_delim
26547 LIBGDBM!$LIBGDBM$ac_delim
26548 LIBDB!$LIBDB$ac_delim
26549 LIBAUTHUSERDB!$LIBAUTHUSERDB$ac_delim
26550 userdb!$userdb$ac_delim
26551 LIBDL!$LIBDL$ac_delim
26552 AUTHPAMCRYPT!$AUTHPAMCRYPT$ac_delim
26553 LIBAUTHPAM!$LIBAUTHPAM$ac_delim
26554 authldaprc!$authldaprc$ac_delim
26555 LDAPLIBS!$LDAPLIBS$ac_delim
26556 LIBAUTHLDAP!$LIBAUTHLDAP$ac_delim
26557 HAVE_LDAP_TRUE!$HAVE_LDAP_TRUE$ac_delim
26558 HAVE_LDAP_FALSE!$HAVE_LDAP_FALSE$ac_delim
26559 SHADOWLIBS!$SHADOWLIBS$ac_delim
26560 LIBAUTHSHADOW!$LIBAUTHSHADOW$ac_delim
26561 LIBAUTHPWD!$LIBAUTHPWD$ac_delim
26562 authpgsqlrc!$authpgsqlrc$ac_delim
26563 PG_CONFIG!$PG_CONFIG$ac_delim
26564 PGSQL_LIBS!$PGSQL_LIBS$ac_delim
26565 LIBAUTHPGSQL!$LIBAUTHPGSQL$ac_delim
26566 HAVE_AUTHPGSQL_TRUE!$HAVE_AUTHPGSQL_TRUE$ac_delim
26567 HAVE_AUTHPGSQL_FALSE!$HAVE_AUTHPGSQL_FALSE$ac_delim
26568 authmysqlrc!$authmysqlrc$ac_delim
26569 MYSQL_CONFIG!$MYSQL_CONFIG$ac_delim
26570 LIBAUTHMYSQL!$LIBAUTHMYSQL$ac_delim
26571 MYSQL_LIBS!$MYSQL_LIBS$ac_delim
26572 HAVE_AUTHMYSQL_TRUE!$HAVE_AUTHMYSQL_TRUE$ac_delim
26573 HAVE_AUTHMYSQL_FALSE!$HAVE_AUTHMYSQL_FALSE$ac_delim
26574 HAVE_CUSTOM_TRUE!$HAVE_CUSTOM_TRUE$ac_delim
26575 HAVE_CUSTOM_FALSE!$HAVE_CUSTOM_FALSE$ac_delim
26576 LIBAUTHCUSTOM!$LIBAUTHCUSTOM$ac_delim
26577 authProg!$authProg$ac_delim
26578 HAVE_PIPE_TRUE!$HAVE_PIPE_TRUE$ac_delim
26579 HAVE_PIPE_FALSE!$HAVE_PIPE_FALSE$ac_delim
26580 LIBAUTHPIPE!$LIBAUTHPIPE$ac_delim
26581 CRYPTLIBS!$CRYPTLIBS$ac_delim
26582 authdaemonrc!$authdaemonrc$ac_delim
26583 authdaemonvar!$authdaemonvar$ac_delim
26584 LIBM!$LIBM$ac_delim
26585 mailuser!$mailuser$ac_delim
26586 mailgroup!$mailgroup$ac_delim
26587 REPOSITORY!$REPOSITORY$ac_delim
26588 HAVE_SGML_TRUE!$HAVE_SGML_TRUE$ac_delim
26589 HAVE_SGML_FALSE!$HAVE_SGML_FALSE$ac_delim
26590 subdirs!$subdirs$ac_delim
26591 LIBOBJS!$LIBOBJS$ac_delim
26592 LTLIBOBJS!$LTLIBOBJS$ac_delim
26595 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 63; then
26597 elif $ac_last_try; then
26598 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26599 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26600 { (exit 1); exit 1; }; }
26602 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
26606 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26607 if test -n "$ac_eof"; then
26608 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
26609 ac_eof
=`expr $ac_eof + 1`
26612 cat >>$CONFIG_STATUS <<_ACEOF
26613 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26614 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26617 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26618 s/^/s,@/; s/!/@,|#_!!_#|/
26621 s/'"$ac_delim"'$/,g/; t
26623 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26624 ' >>$CONFIG_STATUS <conf$
$subs.
sed
26625 rm -f conf$
$subs.
sed
26626 cat >>$CONFIG_STATUS <<_ACEOF
26633 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26634 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26635 # trailing colons and then remove the whole line if VPATH becomes empty
26636 # (actually we leave an empty line to preserve line numbers).
26637 if test "x$srcdir" = x.
; then
26638 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
26639 s/:*\$(srcdir):*/:/
26640 s/:*\${srcdir}:*/:/
26642 s/^\([^=]*=[ ]*\):*/\1/
26648 cat >>$CONFIG_STATUS <<\_ACEOF
26649 fi # test -n "$CONFIG_FILES"
26652 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
26655 :[FHLC
]) ac_mode
=$ac_tag; continue;;
26657 case $ac_mode$ac_tag in
26659 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26660 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26661 { (exit 1); exit 1; }; };;
26662 :[FH
]-) ac_tag
=-:-;;
26663 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
26680 -) ac_f
="$tmp/stdin";;
26681 *) # Look for the file first in the build tree, then in the source tree
26682 # (if the path is not absolute). The absolute path cannot be DOS-style,
26683 # because $ac_f cannot contain `:'.
26687 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
26689 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26690 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26691 { (exit 1); exit 1; }; };;
26693 ac_file_inputs
="$ac_file_inputs $ac_f"
26696 # Let's still pretend it is `configure' which instantiates (i.e., don't
26697 # use $as_me), people would be surprised to read:
26698 # /* config.h. Generated by config.status. */
26699 configure_input
="Generated from "`IFS=:
26700 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26701 if test x
"$ac_file" != x-
; then
26702 configure_input
="$ac_file. $configure_input"
26703 { echo "$as_me:$LINENO: creating $ac_file" >&5
26704 echo "$as_me: creating $ac_file" >&6;}
26708 *:-:* |
*:-) cat >"$tmp/stdin";;
26713 ac_dir
=`$as_dirname -- "$ac_file" ||
26714 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26715 X"$ac_file" : 'X\(//\)[^/]' \| \
26716 X"$ac_file" : 'X\(//\)$' \| \
26717 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26719 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26723 /^X\(\/\/\)[^/].*/{
26738 -*) as_dir
=.
/$as_dir;;
26740 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
26744 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26745 *) as_qdir
=$as_dir;;
26747 as_dirs
="'$as_qdir' $as_dirs"
26748 as_dir
=`$as_dirname -- "$as_dir" ||
26749 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26750 X"$as_dir" : 'X\(//\)[^/]' \| \
26751 X"$as_dir" : 'X\(//\)$' \| \
26752 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26758 /^X\(\/\/\)[^/].*/{
26771 test -d "$as_dir" && break
26773 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
26774 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26775 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26776 { (exit 1); exit 1; }; }; }
26780 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26782 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26783 # A ".." for each directory in $ac_dir_suffix.
26784 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26785 case $ac_top_builddir_sub in
26786 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
26787 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
26790 ac_abs_top_builddir
=$ac_pwd
26791 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
26792 # for backward compatibility:
26793 ac_top_builddir
=$ac_top_build_prefix
26796 .
) # We are building in place.
26798 ac_top_srcdir
=$ac_top_builddir_sub
26799 ac_abs_top_srcdir
=$ac_pwd ;;
26800 [\\/]* | ?
:[\\/]* ) # Absolute name.
26801 ac_srcdir
=$srcdir$ac_dir_suffix;
26802 ac_top_srcdir
=$srcdir
26803 ac_abs_top_srcdir
=$srcdir ;;
26804 *) # Relative name.
26805 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
26806 ac_top_srcdir
=$ac_top_build_prefix$srcdir
26807 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
26809 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
26819 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
26820 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
26822 ac_MKDIR_P
=$MKDIR_P
26824 [\\/$
]* | ?
:[\\/]* ) ;;
26825 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
26829 cat >>$CONFIG_STATUS <<\_ACEOF
26830 # If the template does not know about datarootdir, expand it.
26831 # FIXME: This hack should be removed a few years after 2.60.
26832 ac_datarootdir_hack
=; ac_datarootdir_seen
=
26834 case `sed -n '/datarootdir/ {
26843 ' $ac_file_inputs` in
26844 *datarootdir
*) ac_datarootdir_seen
=yes;;
26845 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
26846 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26847 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26849 cat >>$CONFIG_STATUS <<_ACEOF
26850 ac_datarootdir_hack='
26851 s&@datadir@&$datadir&g
26852 s&@docdir@&$docdir&g
26853 s&@infodir@&$infodir&g
26854 s&@localedir@&$localedir&g
26855 s&@mandir@&$mandir&g
26856 s&\\\${datarootdir}&$datarootdir&g' ;;
26860 # Neutralize VPATH when `$srcdir' = `.'.
26861 # Shell code in configure.ac might set extrasub.
26862 # FIXME: do we really want to maintain this feature?
26863 cat >>$CONFIG_STATUS <<_ACEOF
26867 cat >>$CONFIG_STATUS <<\_ACEOF
26869 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
26870 s
&@configure_input@
&$configure_input&;t t
26871 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
26872 s
&@srcdir@
&$ac_srcdir&;t t
26873 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
26874 s
&@top_srcdir@
&$ac_top_srcdir&;t t
26875 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
26876 s
&@builddir@
&$ac_builddir&;t t
26877 s
&@abs_builddir@
&$ac_abs_builddir&;t t
26878 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
26879 s
&@INSTALL@
&$ac_INSTALL&;t t
26880 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
26881 $ac_datarootdir_hack
26882 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
26884 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26885 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
26886 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
26887 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
26888 which seems to be undefined. Please make sure it is defined." >&5
26889 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
26890 which seems to be undefined. Please make sure it is defined." >&2;}
26894 -) cat "$tmp/out"; rm -f "$tmp/out";;
26895 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
26904 # Transform confdefs.h into a sed script `conftest.defines', that
26905 # substitutes the proper values into config.h.in to produce config.h.
26906 rm -f conftest.defines conftest.
tail
26907 # First, append a space to every undef/define line, to ease matching.
26908 echo 's/$/ /' >conftest.defines
26909 # Then, protect against being on the right side of a sed subst, or in
26910 # an unquoted here document, in config.status. If some macros were
26911 # called several times there might be several #defines for the same
26912 # symbol, which is useless. But do not sort them, since the last
26913 # AC_DEFINE must be honored.
26914 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
26915 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
26916 # NAME is the cpp macro being defined, VALUE is the value it is being given.
26917 # PARAMS is the parameter list in the macro definition--in most cases, it's
26918 # just an empty string.
26919 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
26920 ac_dB
='\\)[ (].*,\\1define\\2'
26928 s/^[ ]*#[ ]*define[ ][ ]*//
26933 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
26934 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
26935 ' >>conftest.defines
26937 # Remove the space that was appended to ease matching.
26938 # Then replace #undef with comments. This is necessary, for
26939 # example, in the case of _POSIX_SOURCE, which is predefined and required
26940 # on some systems where configure will not decide to define it.
26941 # (The regexp can be short, since the line contains either #define or #undef.)
26943 s,^[ #]*u.*,/* & */,' >>conftest.defines
26945 # Break up conftest.defines:
26946 ac_max_sed_lines
=50
26948 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
26949 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
26950 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
26952 ac_in
='$ac_file_inputs'
26953 ac_out
='"$tmp/out1"'
26954 ac_nxt
='"$tmp/out2"'
26958 # Write a here document:
26959 cat >>$CONFIG_STATUS <<_ACEOF
26960 # First, check the format of the line:
26961 cat >"\$tmp/defines.sed" <<\\CEOF
26962 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
26963 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
26967 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
26969 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
26970 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
26971 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
26972 grep . conftest.
tail >/dev
/null ||
break
26973 rm -f conftest.defines
26974 mv conftest.
tail conftest.defines
26976 rm -f conftest.defines conftest.
tail
26978 echo "ac_result=$ac_in" >>$CONFIG_STATUS
26979 cat >>$CONFIG_STATUS <<\_ACEOF
26980 if test x
"$ac_file" != x-
; then
26981 echo "/* $configure_input */" >"$tmp/config.h"
26982 cat "$ac_result" >>"$tmp/config.h"
26983 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
26984 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26985 echo "$as_me: $ac_file is unchanged" >&6;}
26988 mv "$tmp/config.h" $ac_file
26991 echo "/* $configure_input */"
26995 # Compute $ac_file's index in $config_headers.
26998 for _am_header
in $config_headers :; do
26999 case $_am_header in
27000 $_am_arg |
$_am_arg:* )
27003 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
27006 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27007 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27008 X"$_am_arg" : 'X\(//\)[^/]' \| \
27009 X"$_am_arg" : 'X\(//\)$' \| \
27010 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27016 /^X\(\/\/\)[^/].*/{
27028 s/.*/./; q'`/stamp-h
$_am_stamp_count
27031 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27032 echo "$as_me: executing $ac_file commands" >&6;}
27037 case $ac_file$ac_mode in
27038 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
for mf
in $CONFIG_FILES; do
27039 # Strip MF so we end up with the name of the file.
27040 mf
=`echo "$mf" | sed -e 's/:.*$//'`
27041 # Check whether this is an Automake generated Makefile or not.
27042 # We used to match only the files named `Makefile.in', but
27043 # some people rename them; so instead we look at the file content.
27044 # Grep'ing the first line is not enough: some people post-process
27045 # each Makefile.in and add a new line on top of each file to say so.
27046 # Grep'ing the whole file is not good either: AIX grep has a line
27047 # limit of 2048, but all sed's we know have understand at least 4000.
27048 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
27049 dirpart
=`$as_dirname -- "$mf" ||
27050 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27051 X"$mf" : 'X\(//\)[^/]' \| \
27052 X"$mf" : 'X\(//\)$' \| \
27053 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27055 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27059 /^X\(\/\/\)[^/].*/{
27075 # Extract the definition of DEPDIR, am__include, and am__quote
27076 # from the Makefile without running `make'.
27077 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
27078 test -z "$DEPDIR" && continue
27079 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
27080 test -z "am__include" && continue
27081 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
27082 # When using ansi2knr, U may be empty or an underscore; expand it
27083 U
=`sed -n 's/^U = //p' < "$mf"`
27084 # Find all dependency output files, they are included files with
27085 # $(DEPDIR) in their names. We invoke sed twice because it is the
27086 # simplest approach to changing $(DEPDIR) to its actual value in the
27088 for file in `sed -n "
27089 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27090 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27091 # Make sure the directory exists.
27092 test -f "$dirpart/$file" && continue
27093 fdir
=`$as_dirname -- "$file" ||
27094 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27095 X"$file" : 'X\(//\)[^/]' \| \
27096 X"$file" : 'X\(//\)$' \| \
27097 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27103 /^X\(\/\/\)[^/].*/{
27116 { as_dir
=$dirpart/$fdir
27118 -*) as_dir
=.
/$as_dir;;
27120 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27124 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27125 *) as_qdir
=$as_dir;;
27127 as_dirs
="'$as_qdir' $as_dirs"
27128 as_dir
=`$as_dirname -- "$as_dir" ||
27129 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27130 X"$as_dir" : 'X\(//\)[^/]' \| \
27131 X"$as_dir" : 'X\(//\)$' \| \
27132 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27138 /^X\(\/\/\)[^/].*/{
27151 test -d "$as_dir" && break
27153 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27154 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27155 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27156 { (exit 1); exit 1; }; }; }
27157 # echo "creating $dirpart/$file"
27158 echo '# dummy' > "$dirpart/$file"
27167 { (exit 0); exit 0; }
27169 chmod +x
$CONFIG_STATUS
27170 ac_clean_files
=$ac_clean_files_save
27173 # configure is writing to config.log, and then calls config.status.
27174 # config.status does its own redirection, appending to config.log.
27175 # Unfortunately, on DOS this fails, as config.log is still kept open
27176 # by configure, so config.status won't be able to write to it; its
27177 # output is simply discarded. So we exec the FD to /dev/null,
27178 # effectively closing config.log, so it can be properly (re)opened and
27179 # appended to by config.status. When coming back to configure, we
27180 # need to make the FD available again.
27181 if test "$no_create" != yes; then
27183 ac_config_status_args
=
27184 test "$silent" = yes &&
27185 ac_config_status_args
="$ac_config_status_args --quiet"
27187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
27189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27190 # would make configure fail if this is the last instruction.
27191 $ac_cs_success ||
{ (exit 1); exit 1; }
27195 # CONFIG_SUBDIRS section.
27197 if test "$no_recursion" != yes; then
27199 # Remove --cache-file and --srcdir arguments so they do not pile up.
27200 ac_sub_configure_args
=
27202 eval "set x $ac_configure_args"
27206 if test -n "$ac_prev"; then
27211 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
27212 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
27213 ac_prev
=cache_file
;;
27214 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
27215 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
27218 --config-cache |
-C)
27220 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
27222 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
27224 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
27226 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
27230 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27232 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
27236 # Always prepend --prefix to ensure using the same prefix
27237 # in subdir configurations.
27238 ac_arg
="--prefix=$prefix"
27240 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
27242 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
27245 if test "$silent" = yes; then
27246 ac_sub_configure_args
="--silent $ac_sub_configure_args"
27250 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
27252 # Do not complain, so a configure script can configure whichever
27253 # parts of a large source tree are present.
27254 test -d "$srcdir/$ac_dir" ||
continue
27256 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
27257 echo "$as_me:$LINENO: $ac_msg" >&5
27261 -*) as_dir
=.
/$as_dir;;
27263 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
27267 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
27268 *) as_qdir
=$as_dir;;
27270 as_dirs
="'$as_qdir' $as_dirs"
27271 as_dir
=`$as_dirname -- "$as_dir" ||
27272 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27273 X"$as_dir" : 'X\(//\)[^/]' \| \
27274 X"$as_dir" : 'X\(//\)$' \| \
27275 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27281 /^X\(\/\/\)[^/].*/{
27294 test -d "$as_dir" && break
27296 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
27297 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27298 echo "$as_me: error: cannot create directory $as_dir" >&2;}
27299 { (exit 1); exit 1; }; }; }
27303 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27305 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27306 # A ".." for each directory in $ac_dir_suffix.
27307 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
27308 case $ac_top_builddir_sub in
27309 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
27310 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
27313 ac_abs_top_builddir
=$ac_pwd
27314 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
27315 # for backward compatibility:
27316 ac_top_builddir
=$ac_top_build_prefix
27319 .
) # We are building in place.
27321 ac_top_srcdir
=$ac_top_builddir_sub
27322 ac_abs_top_srcdir
=$ac_pwd ;;
27323 [\\/]* | ?
:[\\/]* ) # Absolute name.
27324 ac_srcdir
=$srcdir$ac_dir_suffix;
27325 ac_top_srcdir
=$srcdir
27326 ac_abs_top_srcdir
=$srcdir ;;
27327 *) # Relative name.
27328 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
27329 ac_top_srcdir
=$ac_top_build_prefix$srcdir
27330 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
27332 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
27337 # Check for guested configure; otherwise get Cygnus style configure.
27338 if test -f "$ac_srcdir/configure.gnu"; then
27339 ac_sub_configure
=$ac_srcdir/configure.gnu
27340 elif test -f "$ac_srcdir/configure"; then
27341 ac_sub_configure
=$ac_srcdir/configure
27342 elif test -f "$ac_srcdir/configure.in"; then
27343 # This should be Cygnus configure.
27344 ac_sub_configure
=$ac_aux_dir/configure
27346 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
27347 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
27351 # The recursion is here.
27352 if test -n "$ac_sub_configure"; then
27353 # Make the cache file name correct relative to the subdirectory.
27354 case $cache_file in
27355 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
27356 *) # Relative name.
27357 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
27360 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
27361 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
27362 # The eval makes quoting arguments work.
27363 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
27364 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
27365 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
27366 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
27367 { (exit 1); exit 1; }; }