2 # From configure.in Revision: 1.211 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.57.
6 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
7 # Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 # Support unset when possible.
26 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
45 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
139 if ("$as_dir/$as_base" -c '
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
173 s,^['$as_cr_digits']*\n,,
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
183 # Exit status is that of the last command.
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
195 if expr a : '\(a\)' >/dev/null 2>&1; then
201 rm -f conf$$ conf$$.exe conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
212 elif ln conf$$.file conf$$ 2>/dev/null; then
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
235 # We need space, tab and new line, in precisely that order.
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289 echo_test_string="`eval $cmd`" &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
306 # So, first we look for a working echo in the user's PATH.
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
359 # maybe with a smaller string...
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
375 # Oops. We lost completely, so just stick with echo.
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
428 ac_unique_file="src/main/radiusd.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
433 # include <sys/types.h>
436 # include <sys/stat.h>
447 # if !STDC_HEADERS && HAVE_MEMORY_H
453 # include <strings.h>
456 # include <inttypes.h>
466 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
467 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE HOSTINFO LIBLTDL INCLTDL subdirs MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_CC_set=${CC+set}
910 ac_cv_env_CC_set=${CC+set}
911 ac_cv_env_CC_value=$CC
912 ac_env_CFLAGS_set=${CFLAGS+set}
913 ac_env_CFLAGS_value=$CFLAGS
914 ac_cv_env_CFLAGS_set=${CFLAGS+set}
915 ac_cv_env_CFLAGS_value=$CFLAGS
916 ac_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_env_LDFLAGS_value=$LDFLAGS
918 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_cv_env_LDFLAGS_value=$LDFLAGS
920 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_env_CPPFLAGS_value=$CPPFLAGS
922 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
924 ac_env_CPP_set=${CPP+set}
925 ac_env_CPP_value=$CPP
926 ac_cv_env_CPP_set=${CPP+set}
927 ac_cv_env_CPP_value=$CPP
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CXXCPP_set=${CXXCPP+set}
937 ac_env_CXXCPP_value=$CXXCPP
938 ac_cv_env_CXXCPP_set=${CXXCPP+set}
939 ac_cv_env_CXXCPP_value=$CXXCPP
940 ac_env_F77_set=${F77+set}
941 ac_env_F77_value=$F77
942 ac_cv_env_F77_set=${F77+set}
943 ac_cv_env_F77_value=$F77
944 ac_env_FFLAGS_set=${FFLAGS+set}
945 ac_env_FFLAGS_value=$FFLAGS
946 ac_cv_env_FFLAGS_set=${FFLAGS+set}
947 ac_cv_env_FFLAGS_value=$FFLAGS
950 # Report the --help message.
952 if test "$ac_init_help" = "long"; then
953 # Omit some internal or obsolete options to make the list less imposing.
954 # This message is too long to be a string in the A/UX 3.1 sh.
956 \`configure' configures this package to adapt to many kinds of systems.
958 Usage: $0 [OPTION]... [VAR=VALUE]...
960 To assign environment variables (e.g., CC, CFLAGS...), specify them as
961 VAR=VALUE. See below for descriptions of some of the useful variables.
963 Defaults for the options are specified in brackets.
966 -h, --help display this help and exit
967 --help=short display options specific to this package
968 --help=recursive display the short help of all the included packages
969 -V, --version display version information and exit
970 -q, --quiet, --silent do not print \`checking...' messages
971 --cache-file=FILE cache test results in FILE [disabled]
972 -C, --config-cache alias for \`--cache-file=config.cache'
973 -n, --no-create do not create output files
974 --srcdir=DIR find the sources in DIR [configure dir or \`..']
979 Installation directories:
980 --prefix=PREFIX install architecture-independent files in PREFIX
982 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
985 By default, \`make install' will install all the files in
986 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
987 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
988 for instance \`--prefix=\$HOME'.
990 For better control, use the options below.
992 Fine tuning of the installation directories:
993 --bindir=DIR user executables [EPREFIX/bin]
994 --sbindir=DIR system admin executables [EPREFIX/sbin]
995 --libexecdir=DIR program executables [EPREFIX/libexec]
996 --datadir=DIR read-only architecture-independent data [PREFIX/share]
997 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
998 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
999 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1000 --libdir=DIR object code libraries [EPREFIX/lib]
1001 --includedir=DIR C header files [PREFIX/include]
1002 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1003 --infodir=DIR info documentation [PREFIX/info]
1004 --mandir=DIR man documentation [PREFIX/man]
1010 --build=BUILD configure for building on BUILD [guessed]
1011 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1015 if test -n "$ac_init_help"; then
1020 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1021 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1022 --disable-largefile omit support for large files
1023 --enable-shared[=PKGS]
1024 build shared libraries [default=yes]
1025 --enable-static[=PKGS]
1026 build static libraries [default=yes]
1027 --enable-fast-install[=PKGS]
1028 optimize for fast installation [default=yes]
1029 --disable-libtool-lock avoid locking (might break parallel builds)
1030 --enable-strict-dependencies Fail configure on lack of module dependancy.
1031 --enable-developer Enables features of interest to developers.
1034 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1035 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1036 --with-system-libtool try to use libtool installed in your system default=use our own
1037 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1038 --with-pic try to use only PIC/non-PIC objects [default=use
1041 include additional configurations [automatic]
1042 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1043 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1044 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1045 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1046 --with-threads Use threads, if available. (default=yes)
1047 --with-snmp Compile in SNMP support. (default=yes)
1048 --with-large-files Compile in large (2G+) file support. (default=no)
1049 --with-static-modules=QUOTED-MODULE-LIST
1050 --with-experimental-modules Use experimental and unstable modules. (default=no)
1051 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1052 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1053 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1054 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1055 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1057 Some influential environment variables:
1058 CC C compiler command
1059 CFLAGS C compiler flags
1060 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1061 nonstandard directory <lib dir>
1062 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1063 headers in a nonstandard directory <include dir>
1065 CXX C++ compiler command
1066 CXXFLAGS C++ compiler flags
1067 CXXCPP C++ preprocessor
1068 F77 Fortran 77 compiler command
1069 FFLAGS Fortran 77 compiler flags
1071 Use these variables to override the choices made by `configure' or to help
1072 it to find libraries and programs with nonstandard names/locations.
1077 if test "$ac_init_help" = "recursive"; then
1078 # If there are subdirs, report their specific --help.
1080 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1081 test -d $ac_dir || continue
1084 if test "$ac_dir" != .; then
1085 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1086 # A "../" for each directory in $ac_dir_suffix.
1087 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 ac_dir_suffix= ac_top_builddir=
1093 .) # No --srcdir option. We are building in place.
1095 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100 [\\/]* | ?:[\\/]* ) # Absolute path.
1101 ac_srcdir=$srcdir$ac_dir_suffix;
1102 ac_top_srcdir=$srcdir ;;
1104 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1105 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1110 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1111 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1112 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1115 # Check for guested configure; otherwise get Cygnus style configure.
1116 if test -f $ac_srcdir/configure.gnu; then
1118 $SHELL $ac_srcdir/configure.gnu --help=recursive
1119 elif test -f $ac_srcdir/configure; then
1121 $SHELL $ac_srcdir/configure --help=recursive
1122 elif test -f $ac_srcdir/configure.ac ||
1123 test -f $ac_srcdir/configure.in; then
1125 $ac_configure --help
1127 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1133 test -n "$ac_init_help" && exit 0
1134 if $ac_init_version; then
1137 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1138 Free Software Foundation, Inc.
1139 This configure script is free software; the Free Software Foundation
1140 gives unlimited permission to copy, distribute and modify it.
1146 This file contains any messages produced by compilers while
1147 running configure, to aid debugging if configure makes a mistake.
1149 It was created by $as_me, which was
1150 generated by GNU Autoconf 2.57. Invocation command line was
1161 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1162 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1163 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1164 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1165 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1168 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1170 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1171 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1172 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1173 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1174 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1175 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1176 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1184 test -z "$as_dir" && as_dir=.
1185 echo "PATH: $as_dir"
1200 # Keep a trace of the command line.
1201 # Strip out --no-create and --no-recursion so they do not pile up.
1202 # Strip out --silent because we don't want to record it for future runs.
1203 # Also quote any args containing shell meta-characters.
1204 # Make two passes to allow for proper duplicate-argument suppression.
1209 ac_must_keep_next=false
1215 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1219 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1220 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1223 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1226 if test $ac_must_keep_next = true; then
1227 ac_must_keep_next=false # Got value, back to normal.
1230 *=* | --config-cache | -C | -disable-* | --disable-* \
1231 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1232 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1233 | -with-* | --with-* | -without-* | --without-* | --x)
1234 case "$ac_configure_args0 " in
1235 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1238 -* ) ac_must_keep_next=true ;;
1241 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1242 # Get rid of the leading space.
1248 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1249 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251 # When interrupted or exit'd, cleanup temporary files, and complete
1252 # config.log. We remove comments because anyway the quotes in there
1253 # would cause problems or look ugly.
1254 # WARNING: Be sure not to use single quotes in there, as some shells,
1255 # such as our DU 5.0 friend, will then `close' the trap.
1256 trap 'exit_status=$?
1257 # Save into config.log some information that might help in debugging.
1262 ## ---------------- ##
1263 ## Cache variables. ##
1264 ## ---------------- ##
1267 # The following way of writing the cache mishandles newlines in values,
1270 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1273 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1274 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1278 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1285 ## ----------------- ##
1286 ## Output variables. ##
1287 ## ----------------- ##
1290 for ac_var in $ac_subst_vars
1292 eval ac_val=$`echo $ac_var`
1293 echo "$ac_var='"'"'$ac_val'"'"'"
1297 if test -n "$ac_subst_files"; then
1304 for ac_var in $ac_subst_files
1306 eval ac_val=$`echo $ac_var`
1307 echo "$ac_var='"'"'$ac_val'"'"'"
1312 if test -s confdefs.h; then
1319 sed "/^$/d" confdefs.h | sort
1322 test "$ac_signal" != 0 &&
1323 echo "$as_me: caught signal $ac_signal"
1324 echo "$as_me: exit $exit_status"
1326 rm -f core core.* *.core &&
1327 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1330 for ac_signal in 1 2 13 15; do
1331 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1335 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1336 rm -rf conftest* confdefs.h
1337 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1340 # Predefined preprocessor variables.
1342 cat >>confdefs.h <<_ACEOF
1343 #define PACKAGE_NAME "$PACKAGE_NAME"
1347 cat >>confdefs.h <<_ACEOF
1348 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1352 cat >>confdefs.h <<_ACEOF
1353 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1357 cat >>confdefs.h <<_ACEOF
1358 #define PACKAGE_STRING "$PACKAGE_STRING"
1362 cat >>confdefs.h <<_ACEOF
1363 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1367 # Let the site file select an alternate cache file if it wants to.
1368 # Prefer explicitly selected file to automatically selected ones.
1369 if test -z "$CONFIG_SITE"; then
1370 if test "x$prefix" != xNONE; then
1371 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1376 for ac_site_file in $CONFIG_SITE; do
1377 if test -r "$ac_site_file"; then
1378 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1379 echo "$as_me: loading site script $ac_site_file" >&6;}
1380 sed 's/^/| /' "$ac_site_file" >&5
1385 if test -r "$cache_file"; then
1386 # Some versions of bash will fail to source /dev/null (special
1387 # files actually), so we avoid doing that.
1388 if test -f "$cache_file"; then
1389 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1390 echo "$as_me: loading cache $cache_file" >&6;}
1392 [\\/]* | ?:[\\/]* ) . $cache_file;;
1393 *) . ./$cache_file;;
1397 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1398 echo "$as_me: creating cache $cache_file" >&6;}
1402 # Check that the precious variables saved in the cache have kept the same
1404 ac_cache_corrupted=false
1405 for ac_var in `(set) 2>&1 |
1406 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1407 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1408 eval ac_new_set=\$ac_env_${ac_var}_set
1409 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1410 eval ac_new_val="\$ac_env_${ac_var}_value"
1411 case $ac_old_set,$ac_new_set in
1413 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1414 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1415 ac_cache_corrupted=: ;;
1417 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1418 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1419 ac_cache_corrupted=: ;;
1422 if test "x$ac_old_val" != "x$ac_new_val"; then
1423 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1424 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1425 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1426 echo "$as_me: former value: $ac_old_val" >&2;}
1427 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1428 echo "$as_me: current value: $ac_new_val" >&2;}
1429 ac_cache_corrupted=:
1432 # Pass precious variables to config.status.
1433 if test "$ac_new_set" = set; then
1435 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1436 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1437 *) ac_arg=$ac_var=$ac_new_val ;;
1439 case " $ac_configure_args " in
1440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1441 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1445 if $ac_cache_corrupted; then
1446 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1447 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1448 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1449 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1450 { (exit 1); exit 1; }; }
1454 ac_cpp='$CPP $CPPFLAGS'
1455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1477 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1480 RADIUSD_MAJOR_VERSION=1
1481 RADIUSD_MINOR_VERSION=1.0-pre0
1482 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1486 ac_cpp='$CPP $CPPFLAGS'
1487 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1488 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1489 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1490 if test -n "$ac_tool_prefix"; then
1491 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1492 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1493 echo "$as_me:$LINENO: checking for $ac_word" >&5
1494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1495 if test "${ac_cv_prog_CC+set}" = set; then
1496 echo $ECHO_N "(cached) $ECHO_C" >&6
1498 if test -n "$CC"; then
1499 ac_cv_prog_CC="$CC" # Let the user override the test.
1501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1505 test -z "$as_dir" && as_dir=.
1506 for ac_exec_ext in '' $ac_executable_extensions; do
1507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1508 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1518 if test -n "$CC"; then
1519 echo "$as_me:$LINENO: result: $CC" >&5
1520 echo "${ECHO_T}$CC" >&6
1522 echo "$as_me:$LINENO: result: no" >&5
1523 echo "${ECHO_T}no" >&6
1527 if test -z "$ac_cv_prog_CC"; then
1529 # Extract the first word of "gcc", so it can be a program name with args.
1530 set dummy gcc; ac_word=$2
1531 echo "$as_me:$LINENO: checking for $ac_word" >&5
1532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1533 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1534 echo $ECHO_N "(cached) $ECHO_C" >&6
1536 if test -n "$ac_ct_CC"; then
1537 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1543 test -z "$as_dir" && as_dir=.
1544 for ac_exec_ext in '' $ac_executable_extensions; do
1545 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1546 ac_cv_prog_ac_ct_CC="gcc"
1547 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1555 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1556 if test -n "$ac_ct_CC"; then
1557 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1558 echo "${ECHO_T}$ac_ct_CC" >&6
1560 echo "$as_me:$LINENO: result: no" >&5
1561 echo "${ECHO_T}no" >&6
1569 if test -z "$CC"; then
1570 if test -n "$ac_tool_prefix"; then
1571 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1572 set dummy ${ac_tool_prefix}cc; ac_word=$2
1573 echo "$as_me:$LINENO: checking for $ac_word" >&5
1574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1575 if test "${ac_cv_prog_CC+set}" = set; then
1576 echo $ECHO_N "(cached) $ECHO_C" >&6
1578 if test -n "$CC"; then
1579 ac_cv_prog_CC="$CC" # Let the user override the test.
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 for ac_exec_ext in '' $ac_executable_extensions; do
1587 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1588 ac_cv_prog_CC="${ac_tool_prefix}cc"
1589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1598 if test -n "$CC"; then
1599 echo "$as_me:$LINENO: result: $CC" >&5
1600 echo "${ECHO_T}$CC" >&6
1602 echo "$as_me:$LINENO: result: no" >&5
1603 echo "${ECHO_T}no" >&6
1607 if test -z "$ac_cv_prog_CC"; then
1609 # Extract the first word of "cc", so it can be a program name with args.
1610 set dummy cc; ac_word=$2
1611 echo "$as_me:$LINENO: checking for $ac_word" >&5
1612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1613 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 if test -n "$ac_ct_CC"; then
1617 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1623 test -z "$as_dir" && as_dir=.
1624 for ac_exec_ext in '' $ac_executable_extensions; do
1625 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1626 ac_cv_prog_ac_ct_CC="cc"
1627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1635 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1636 if test -n "$ac_ct_CC"; then
1637 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1638 echo "${ECHO_T}$ac_ct_CC" >&6
1640 echo "$as_me:$LINENO: result: no" >&5
1641 echo "${ECHO_T}no" >&6
1650 if test -z "$CC"; then
1651 # Extract the first word of "cc", so it can be a program name with args.
1652 set dummy cc; ac_word=$2
1653 echo "$as_me:$LINENO: checking for $ac_word" >&5
1654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1655 if test "${ac_cv_prog_CC+set}" = set; then
1656 echo $ECHO_N "(cached) $ECHO_C" >&6
1658 if test -n "$CC"; then
1659 ac_cv_prog_CC="$CC" # Let the user override the test.
1662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1666 test -z "$as_dir" && as_dir=.
1667 for ac_exec_ext in '' $ac_executable_extensions; do
1668 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1669 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1670 ac_prog_rejected=yes
1674 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1680 if test $ac_prog_rejected = yes; then
1681 # We found a bogon in the path, so make sure we never use it.
1682 set dummy $ac_cv_prog_CC
1684 if test $# != 0; then
1685 # We chose a different compiler from the bogus one.
1686 # However, it has the same basename, so the bogon will be chosen
1687 # first if we set CC to just the basename; use the full file name.
1689 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1695 if test -n "$CC"; then
1696 echo "$as_me:$LINENO: result: $CC" >&5
1697 echo "${ECHO_T}$CC" >&6
1699 echo "$as_me:$LINENO: result: no" >&5
1700 echo "${ECHO_T}no" >&6
1704 if test -z "$CC"; then
1705 if test -n "$ac_tool_prefix"; then
1708 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1709 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1710 echo "$as_me:$LINENO: checking for $ac_word" >&5
1711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1712 if test "${ac_cv_prog_CC+set}" = set; then
1713 echo $ECHO_N "(cached) $ECHO_C" >&6
1715 if test -n "$CC"; then
1716 ac_cv_prog_CC="$CC" # Let the user override the test.
1718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 test -z "$as_dir" && as_dir=.
1723 for ac_exec_ext in '' $ac_executable_extensions; do
1724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1725 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1735 if test -n "$CC"; then
1736 echo "$as_me:$LINENO: result: $CC" >&5
1737 echo "${ECHO_T}$CC" >&6
1739 echo "$as_me:$LINENO: result: no" >&5
1740 echo "${ECHO_T}no" >&6
1743 test -n "$CC" && break
1746 if test -z "$CC"; then
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$ac_ct_CC"; then
1758 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_ac_ct_CC="$ac_prog"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1777 if test -n "$ac_ct_CC"; then
1778 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1779 echo "${ECHO_T}$ac_ct_CC" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1785 test -n "$ac_ct_CC" && break
1794 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1795 See \`config.log' for more details." >&5
1796 echo "$as_me: error: no acceptable C compiler found in \$PATH
1797 See \`config.log' for more details." >&2;}
1798 { (exit 1); exit 1; }; }
1800 # Provide some information about the compiler.
1801 echo "$as_me:$LINENO:" \
1802 "checking for C compiler version" >&5
1803 ac_compiler=`set X $ac_compile; echo $2`
1804 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1805 (eval $ac_compiler --version </dev/null >&5) 2>&5
1807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1808 (exit $ac_status); }
1809 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1810 (eval $ac_compiler -v </dev/null >&5) 2>&5
1812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1813 (exit $ac_status); }
1814 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1815 (eval $ac_compiler -V </dev/null >&5) 2>&5
1817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1818 (exit $ac_status); }
1820 cat >conftest.$ac_ext <<_ACEOF
1821 #line $LINENO "configure"
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h. */
1836 ac_clean_files_save=$ac_clean_files
1837 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1838 # Try to create an executable without -o first, disregard a.out.
1839 # It will help us diagnose broken compilers, and finding out an intuition
1841 echo "$as_me:$LINENO: checking for C compiler default output" >&5
1842 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
1843 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1844 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1845 (eval $ac_link_default) 2>&5
1847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1848 (exit $ac_status); }; then
1849 # Find the output, starting from the most likely. This scheme is
1850 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1853 # Be careful to initialize this variable, since it used to be cached.
1854 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1856 # b.out is created by i960 compilers.
1857 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1859 test -f "$ac_file" || continue
1861 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1864 # This is the source file.
1867 # We found the default executable, but exeext='' is most
1871 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1872 # FIXME: I believe we export ac_cv_exeext for Libtool,
1873 # but it would be cool to find out if it's true. Does anybody
1874 # maintain Libtool? --akim.
1882 echo "$as_me: failed program was:" >&5
1883 sed 's/^/| /' conftest.$ac_ext >&5
1885 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1886 See \`config.log' for more details." >&5
1887 echo "$as_me: error: C compiler cannot create executables
1888 See \`config.log' for more details." >&2;}
1889 { (exit 77); exit 77; }; }
1892 ac_exeext=$ac_cv_exeext
1893 echo "$as_me:$LINENO: result: $ac_file" >&5
1894 echo "${ECHO_T}$ac_file" >&6
1896 # Check the compiler produces executables we can run. If not, either
1897 # the compiler is broken, or we cross compile.
1898 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1899 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1900 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1901 # If not cross compiling, check that we can run a simple program.
1902 if test "$cross_compiling" != yes; then
1903 if { ac_try='./$ac_file'
1904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1908 (exit $ac_status); }; }; then
1911 if test "$cross_compiling" = maybe; then
1914 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1915 If you meant to cross compile, use \`--host'.
1916 See \`config.log' for more details." >&5
1917 echo "$as_me: error: cannot run C compiled programs.
1918 If you meant to cross compile, use \`--host'.
1919 See \`config.log' for more details." >&2;}
1920 { (exit 1); exit 1; }; }
1924 echo "$as_me:$LINENO: result: yes" >&5
1925 echo "${ECHO_T}yes" >&6
1927 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1928 ac_clean_files=$ac_clean_files_save
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1932 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1933 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1934 echo "${ECHO_T}$cross_compiling" >&6
1936 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1937 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1938 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1939 (eval $ac_link) 2>&5
1941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1942 (exit $ac_status); }; then
1943 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1944 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1945 # work properly (i.e., refer to `conftest.exe'), while it won't with
1947 for ac_file in conftest.exe conftest conftest.*; do
1948 test -f "$ac_file" || continue
1950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1951 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1958 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1959 See \`config.log' for more details." >&5
1960 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1961 See \`config.log' for more details." >&2;}
1962 { (exit 1); exit 1; }; }
1965 rm -f conftest$ac_cv_exeext
1966 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1967 echo "${ECHO_T}$ac_cv_exeext" >&6
1969 rm -f conftest.$ac_ext
1970 EXEEXT=$ac_cv_exeext
1972 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1973 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1974 if test "${ac_cv_objext+set}" = set; then
1975 echo $ECHO_N "(cached) $ECHO_C" >&6
1977 cat >conftest.$ac_ext <<_ACEOF
1978 #line $LINENO "configure"
1981 cat confdefs.h >>conftest.$ac_ext
1982 cat >>conftest.$ac_ext <<_ACEOF
1983 /* end confdefs.h. */
1993 rm -f conftest.o conftest.obj
1994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1995 (eval $ac_compile) 2>&5
1997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1998 (exit $ac_status); }; then
1999 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2002 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2007 echo "$as_me: failed program was:" >&5
2008 sed 's/^/| /' conftest.$ac_ext >&5
2010 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2011 See \`config.log' for more details." >&5
2012 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2013 See \`config.log' for more details." >&2;}
2014 { (exit 1); exit 1; }; }
2017 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2019 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2020 echo "${ECHO_T}$ac_cv_objext" >&6
2021 OBJEXT=$ac_cv_objext
2023 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2024 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2025 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2026 echo $ECHO_N "(cached) $ECHO_C" >&6
2028 cat >conftest.$ac_ext <<_ACEOF
2029 #line $LINENO "configure"
2032 cat confdefs.h >>conftest.$ac_ext
2033 cat >>conftest.$ac_ext <<_ACEOF
2034 /* end confdefs.h. */
2047 rm -f conftest.$ac_objext
2048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2049 (eval $ac_compile) 2>&5
2051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2052 (exit $ac_status); } &&
2053 { ac_try='test -s conftest.$ac_objext'
2054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2058 (exit $ac_status); }; }; then
2061 echo "$as_me: failed program was:" >&5
2062 sed 's/^/| /' conftest.$ac_ext >&5
2066 rm -f conftest.$ac_objext conftest.$ac_ext
2067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2070 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2071 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2072 GCC=`test $ac_compiler_gnu = yes && echo yes`
2073 ac_test_CFLAGS=${CFLAGS+set}
2074 ac_save_CFLAGS=$CFLAGS
2076 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2077 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2078 if test "${ac_cv_prog_cc_g+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2081 cat >conftest.$ac_ext <<_ACEOF
2082 #line $LINENO "configure"
2085 cat confdefs.h >>conftest.$ac_ext
2086 cat >>conftest.$ac_ext <<_ACEOF
2087 /* end confdefs.h. */
2097 rm -f conftest.$ac_objext
2098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2099 (eval $ac_compile) 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); } &&
2103 { ac_try='test -s conftest.$ac_objext'
2104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2108 (exit $ac_status); }; }; then
2111 echo "$as_me: failed program was:" >&5
2112 sed 's/^/| /' conftest.$ac_ext >&5
2116 rm -f conftest.$ac_objext conftest.$ac_ext
2118 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2119 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2120 if test "$ac_test_CFLAGS" = set; then
2121 CFLAGS=$ac_save_CFLAGS
2122 elif test $ac_cv_prog_cc_g = yes; then
2123 if test "$GCC" = yes; then
2129 if test "$GCC" = yes; then
2135 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2136 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2137 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 ac_cv_prog_cc_stdc=no
2142 cat >conftest.$ac_ext <<_ACEOF
2143 #line $LINENO "configure"
2146 cat confdefs.h >>conftest.$ac_ext
2147 cat >>conftest.$ac_ext <<_ACEOF
2148 /* end confdefs.h. */
2151 #include <sys/types.h>
2152 #include <sys/stat.h>
2153 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2154 struct buf { int x; };
2155 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2156 static char *e (p, i)
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2167 s = g (p, va_arg (v,int));
2171 int test (int i, double x);
2172 struct s1 {int (*f) (int a);};
2173 struct s2 {int (*f) (double a);};
2174 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2180 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2185 # Don't try gcc -ansi; that turns off useful extensions and
2186 # breaks some systems' header files.
2187 # AIX -qlanglvl=ansi
2188 # Ultrix and OSF/1 -std1
2189 # HP-UX 10.20 and later -Ae
2190 # HP-UX older versions -Aa -D_HPUX_SOURCE
2191 # SVR4 -Xc -D__EXTENSIONS__
2192 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2194 CC="$ac_save_CC $ac_arg"
2195 rm -f conftest.$ac_objext
2196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2197 (eval $ac_compile) 2>&5
2199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2200 (exit $ac_status); } &&
2201 { ac_try='test -s conftest.$ac_objext'
2202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2206 (exit $ac_status); }; }; then
2207 ac_cv_prog_cc_stdc=$ac_arg
2210 echo "$as_me: failed program was:" >&5
2211 sed 's/^/| /' conftest.$ac_ext >&5
2214 rm -f conftest.$ac_objext
2216 rm -f conftest.$ac_ext conftest.$ac_objext
2221 case "x$ac_cv_prog_cc_stdc" in
2223 echo "$as_me:$LINENO: result: none needed" >&5
2224 echo "${ECHO_T}none needed" >&6 ;;
2226 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2227 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2228 CC="$CC $ac_cv_prog_cc_stdc" ;;
2231 # Some people use a C++ compiler to compile C. Since we use `exit',
2232 # in C++ we need to declare it. In case someone uses the same compiler
2233 # for both compiling C and C++ we need to have the C++ compiler decide
2234 # the declaration of exit, since it's the most demanding environment.
2235 cat >conftest.$ac_ext <<_ACEOF
2240 rm -f conftest.$ac_objext
2241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2242 (eval $ac_compile) 2>&5
2244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2245 (exit $ac_status); } &&
2246 { ac_try='test -s conftest.$ac_objext'
2247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2251 (exit $ac_status); }; }; then
2252 for ac_declaration in \
2254 '#include <stdlib.h>' \
2255 'extern "C" void std::exit (int) throw (); using std::exit;' \
2256 'extern "C" void std::exit (int); using std::exit;' \
2257 'extern "C" void exit (int) throw ();' \
2258 'extern "C" void exit (int);' \
2261 cat >conftest.$ac_ext <<_ACEOF
2262 #line $LINENO "configure"
2265 cat confdefs.h >>conftest.$ac_ext
2266 cat >>conftest.$ac_ext <<_ACEOF
2267 /* end confdefs.h. */
2278 rm -f conftest.$ac_objext
2279 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2280 (eval $ac_compile) 2>&5
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); } &&
2284 { ac_try='test -s conftest.$ac_objext'
2285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2289 (exit $ac_status); }; }; then
2292 echo "$as_me: failed program was:" >&5
2293 sed 's/^/| /' conftest.$ac_ext >&5
2297 rm -f conftest.$ac_objext conftest.$ac_ext
2298 cat >conftest.$ac_ext <<_ACEOF
2299 #line $LINENO "configure"
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.$ac_objext
2315 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2316 (eval $ac_compile) 2>&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2328 echo "$as_me: failed program was:" >&5
2329 sed 's/^/| /' conftest.$ac_ext >&5
2332 rm -f conftest.$ac_objext conftest.$ac_ext
2335 if test -n "$ac_declaration"; then
2336 echo '#ifdef __cplusplus' >>confdefs.h
2337 echo $ac_declaration >>confdefs.h
2338 echo '#endif' >>confdefs.h
2342 echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2346 rm -f conftest.$ac_objext conftest.$ac_ext
2348 ac_cpp='$CPP $CPPFLAGS'
2349 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2350 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2351 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 ac_cpp='$CPP $CPPFLAGS'
2357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2360 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2361 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2362 # On Suns, sometimes $CPP names a directory.
2363 if test -n "$CPP" && test -d "$CPP"; then
2366 if test -z "$CPP"; then
2367 if test "${ac_cv_prog_CPP+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2370 # Double quotes because CPP needs to be expanded
2371 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2374 for ac_c_preproc_warn_flag in '' yes
2376 # Use a header file that comes with gcc, so configuring glibc
2377 # with a fresh cross-compiler works.
2378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2379 # <limits.h> exists even on freestanding compilers.
2380 # On the NeXT, cc -E runs the code through the compiler's parser,
2381 # not just through cpp. "Syntax error" is here to catch this case.
2382 cat >conftest.$ac_ext <<_ACEOF
2383 #line $LINENO "configure"
2386 cat confdefs.h >>conftest.$ac_ext
2387 cat >>conftest.$ac_ext <<_ACEOF
2388 /* end confdefs.h. */
2390 # include <limits.h>
2392 # include <assert.h>
2396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1 >conftest.err
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } >/dev/null; then
2404 if test -s conftest.err; then
2405 ac_cpp_err=$ac_c_preproc_warn_flag
2412 if test -z "$ac_cpp_err"; then
2415 echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2418 # Broken: fails on valid input.
2421 rm -f conftest.err conftest.$ac_ext
2423 # OK, works on sane cases. Now check whether non-existent headers
2424 # can be detected and how.
2425 cat >conftest.$ac_ext <<_ACEOF
2426 #line $LINENO "configure"
2429 cat confdefs.h >>conftest.$ac_ext
2430 cat >>conftest.$ac_ext <<_ACEOF
2431 /* end confdefs.h. */
2432 #include <ac_nonexistent.h>
2434 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2435 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2437 grep -v '^ *+' conftest.er1 >conftest.err
2439 cat conftest.err >&5
2440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2441 (exit $ac_status); } >/dev/null; then
2442 if test -s conftest.err; then
2443 ac_cpp_err=$ac_c_preproc_warn_flag
2450 if test -z "$ac_cpp_err"; then
2451 # Broken: success on invalid input.
2454 echo "$as_me: failed program was:" >&5
2455 sed 's/^/| /' conftest.$ac_ext >&5
2457 # Passes both tests.
2461 rm -f conftest.err conftest.$ac_ext
2464 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2465 rm -f conftest.err conftest.$ac_ext
2466 if $ac_preproc_ok; then
2478 echo "$as_me:$LINENO: result: $CPP" >&5
2479 echo "${ECHO_T}$CPP" >&6
2481 for ac_c_preproc_warn_flag in '' yes
2483 # Use a header file that comes with gcc, so configuring glibc
2484 # with a fresh cross-compiler works.
2485 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2486 # <limits.h> exists even on freestanding compilers.
2487 # On the NeXT, cc -E runs the code through the compiler's parser,
2488 # not just through cpp. "Syntax error" is here to catch this case.
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h. */
2497 # include <limits.h>
2499 # include <assert.h>
2503 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2504 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2506 grep -v '^ *+' conftest.er1 >conftest.err
2508 cat conftest.err >&5
2509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510 (exit $ac_status); } >/dev/null; then
2511 if test -s conftest.err; then
2512 ac_cpp_err=$ac_c_preproc_warn_flag
2519 if test -z "$ac_cpp_err"; then
2522 echo "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2525 # Broken: fails on valid input.
2528 rm -f conftest.err conftest.$ac_ext
2530 # OK, works on sane cases. Now check whether non-existent headers
2531 # can be detected and how.
2532 cat >conftest.$ac_ext <<_ACEOF
2533 #line $LINENO "configure"
2536 cat confdefs.h >>conftest.$ac_ext
2537 cat >>conftest.$ac_ext <<_ACEOF
2538 /* end confdefs.h. */
2539 #include <ac_nonexistent.h>
2541 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2542 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2544 grep -v '^ *+' conftest.er1 >conftest.err
2546 cat conftest.err >&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); } >/dev/null; then
2549 if test -s conftest.err; then
2550 ac_cpp_err=$ac_c_preproc_warn_flag
2557 if test -z "$ac_cpp_err"; then
2558 # Broken: success on invalid input.
2561 echo "$as_me: failed program was:" >&5
2562 sed 's/^/| /' conftest.$ac_ext >&5
2564 # Passes both tests.
2568 rm -f conftest.err conftest.$ac_ext
2571 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2572 rm -f conftest.err conftest.$ac_ext
2573 if $ac_preproc_ok; then
2576 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2577 See \`config.log' for more details." >&5
2578 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2579 See \`config.log' for more details." >&2;}
2580 { (exit 1); exit 1; }; }
2584 ac_cpp='$CPP $CPPFLAGS'
2585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2590 echo "$as_me:$LINENO: checking for egrep" >&5
2591 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2592 if test "${ac_cv_prog_egrep+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2596 then ac_cv_prog_egrep='grep -E'
2597 else ac_cv_prog_egrep='egrep'
2600 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2601 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2602 EGREP=$ac_cv_prog_egrep
2606 echo "$as_me:$LINENO: checking for AIX" >&5
2607 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2608 cat >conftest.$ac_ext <<_ACEOF
2609 #line $LINENO "configure"
2612 cat confdefs.h >>conftest.$ac_ext
2613 cat >>conftest.$ac_ext <<_ACEOF
2614 /* end confdefs.h. */
2620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2621 $EGREP "yes" >/dev/null 2>&1; then
2622 echo "$as_me:$LINENO: result: yes" >&5
2623 echo "${ECHO_T}yes" >&6
2624 cat >>confdefs.h <<\_ACEOF
2625 #define _ALL_SOURCE 1
2629 echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6
2636 if test $ac_cv_c_compiler_gnu = yes; then
2637 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2638 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2639 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 ac_pattern="Autoconf.*'x'"
2643 cat >conftest.$ac_ext <<_ACEOF
2644 #line $LINENO "configure"
2647 cat confdefs.h >>conftest.$ac_ext
2648 cat >>conftest.$ac_ext <<_ACEOF
2649 /* end confdefs.h. */
2653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2654 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2655 ac_cv_prog_gcc_traditional=yes
2657 ac_cv_prog_gcc_traditional=no
2662 if test $ac_cv_prog_gcc_traditional = no; then
2663 cat >conftest.$ac_ext <<_ACEOF
2664 #line $LINENO "configure"
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2674 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2675 ac_cv_prog_gcc_traditional=yes
2681 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2682 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2683 if test $ac_cv_prog_gcc_traditional = yes; then
2684 CC="$CC -traditional"
2688 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2689 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2690 if test "${ac_cv_prog_suncc+set}" = set; then
2691 echo $ECHO_N "(cached) $ECHO_C" >&6
2693 cat > conftest.c <<EOF
2698 if { ac_try='${CC-cc} -E conftest.c'
2699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2704 ac_cv_prog_suncc=yes
2709 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2710 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2711 if test -n "$ac_tool_prefix"; then
2712 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2713 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2714 echo "$as_me:$LINENO: checking for $ac_word" >&5
2715 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2716 if test "${ac_cv_prog_RANLIB+set}" = set; then
2717 echo $ECHO_N "(cached) $ECHO_C" >&6
2719 if test -n "$RANLIB"; then
2720 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir=.
2727 for ac_exec_ext in '' $ac_executable_extensions; do
2728 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2730 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 RANLIB=$ac_cv_prog_RANLIB
2739 if test -n "$RANLIB"; then
2740 echo "$as_me:$LINENO: result: $RANLIB" >&5
2741 echo "${ECHO_T}$RANLIB" >&6
2743 echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6
2748 if test -z "$ac_cv_prog_RANLIB"; then
2749 ac_ct_RANLIB=$RANLIB
2750 # Extract the first word of "ranlib", so it can be a program name with args.
2751 set dummy ranlib; ac_word=$2
2752 echo "$as_me:$LINENO: checking for $ac_word" >&5
2753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2754 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2757 if test -n "$ac_ct_RANLIB"; then
2758 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 test -z "$as_dir" && as_dir=.
2765 for ac_exec_ext in '' $ac_executable_extensions; do
2766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2767 ac_cv_prog_ac_ct_RANLIB="ranlib"
2768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2774 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2777 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2778 if test -n "$ac_ct_RANLIB"; then
2779 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2780 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2782 echo "$as_me:$LINENO: result: no" >&5
2783 echo "${ECHO_T}no" >&6
2786 RANLIB=$ac_ct_RANLIB
2788 RANLIB="$ac_cv_prog_RANLIB"
2792 abs_top_builddir=`pwd`
2795 # Check whether --enable-largefile or --disable-largefile was given.
2796 if test "${enable_largefile+set}" = set; then
2797 enableval="$enable_largefile"
2800 if test "$enable_largefile" != no; then
2802 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2803 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2804 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2805 echo $ECHO_N "(cached) $ECHO_C" >&6
2807 ac_cv_sys_largefile_CC=no
2808 if test "$GCC" != yes; then
2811 # IRIX 6.2 and later do not support large files by default,
2812 # so use the C compiler's -n32 option if that helps.
2813 cat >conftest.$ac_ext <<_ACEOF
2814 #line $LINENO "configure"
2817 cat confdefs.h >>conftest.$ac_ext
2818 cat >>conftest.$ac_ext <<_ACEOF
2819 /* end confdefs.h. */
2820 #include <sys/types.h>
2821 /* Check that off_t can represent 2**63 - 1 correctly.
2822 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2823 since some C++ compilers masquerading as C compilers
2824 incorrectly reject 9223372036854775807. */
2825 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2826 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2827 && LARGE_OFF_T % 2147483647 == 1)
2837 rm -f conftest.$ac_objext
2838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2839 (eval $ac_compile) 2>&5
2841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2842 (exit $ac_status); } &&
2843 { ac_try='test -s conftest.$ac_objext'
2844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 echo "$as_me: failed program was:" >&5
2852 sed 's/^/| /' conftest.$ac_ext >&5
2855 rm -f conftest.$ac_objext
2857 rm -f conftest.$ac_objext
2858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2859 (eval $ac_compile) 2>&5
2861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2862 (exit $ac_status); } &&
2863 { ac_try='test -s conftest.$ac_objext'
2864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868 (exit $ac_status); }; }; then
2869 ac_cv_sys_largefile_CC=' -n32'; break
2871 echo "$as_me: failed program was:" >&5
2872 sed 's/^/| /' conftest.$ac_ext >&5
2875 rm -f conftest.$ac_objext
2879 rm -f conftest.$ac_ext
2882 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2883 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2884 if test "$ac_cv_sys_largefile_CC" != no; then
2885 CC=$CC$ac_cv_sys_largefile_CC
2888 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2889 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2890 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2891 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 ac_cv_sys_file_offset_bits=no
2895 cat >conftest.$ac_ext <<_ACEOF
2896 #line $LINENO "configure"
2899 cat confdefs.h >>conftest.$ac_ext
2900 cat >>conftest.$ac_ext <<_ACEOF
2901 /* end confdefs.h. */
2902 #include <sys/types.h>
2903 /* Check that off_t can represent 2**63 - 1 correctly.
2904 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2905 since some C++ compilers masquerading as C compilers
2906 incorrectly reject 9223372036854775807. */
2907 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2908 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2909 && LARGE_OFF_T % 2147483647 == 1)
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>&5
2923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924 (exit $ac_status); } &&
2925 { ac_try='test -s conftest.$ac_objext'
2926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; }; then
2933 echo "$as_me: failed program was:" >&5
2934 sed 's/^/| /' conftest.$ac_ext >&5
2937 rm -f conftest.$ac_objext conftest.$ac_ext
2938 cat >conftest.$ac_ext <<_ACEOF
2939 #line $LINENO "configure"
2942 cat confdefs.h >>conftest.$ac_ext
2943 cat >>conftest.$ac_ext <<_ACEOF
2944 /* end confdefs.h. */
2945 #define _FILE_OFFSET_BITS 64
2946 #include <sys/types.h>
2947 /* Check that off_t can represent 2**63 - 1 correctly.
2948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2949 since some C++ compilers masquerading as C compilers
2950 incorrectly reject 9223372036854775807. */
2951 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2953 && LARGE_OFF_T % 2147483647 == 1)
2963 rm -f conftest.$ac_objext
2964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2965 (eval $ac_compile) 2>&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -s conftest.$ac_objext'
2970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2975 ac_cv_sys_file_offset_bits=64; break
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2981 rm -f conftest.$ac_objext conftest.$ac_ext
2985 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
2986 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
2987 if test "$ac_cv_sys_file_offset_bits" != no; then
2989 cat >>confdefs.h <<_ACEOF
2990 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
2995 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
2996 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
2997 if test "${ac_cv_sys_large_files+set}" = set; then
2998 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 ac_cv_sys_large_files=no
3002 cat >conftest.$ac_ext <<_ACEOF
3003 #line $LINENO "configure"
3006 cat confdefs.h >>conftest.$ac_ext
3007 cat >>conftest.$ac_ext <<_ACEOF
3008 /* end confdefs.h. */
3009 #include <sys/types.h>
3010 /* Check that off_t can represent 2**63 - 1 correctly.
3011 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3012 since some C++ compilers masquerading as C compilers
3013 incorrectly reject 9223372036854775807. */
3014 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3015 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3016 && LARGE_OFF_T % 2147483647 == 1)
3026 rm -f conftest.$ac_objext
3027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3028 (eval $ac_compile) 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); } &&
3032 { ac_try='test -s conftest.$ac_objext'
3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }; }; then
3040 echo "$as_me: failed program was:" >&5
3041 sed 's/^/| /' conftest.$ac_ext >&5
3044 rm -f conftest.$ac_objext conftest.$ac_ext
3045 cat >conftest.$ac_ext <<_ACEOF
3046 #line $LINENO "configure"
3049 cat confdefs.h >>conftest.$ac_ext
3050 cat >>conftest.$ac_ext <<_ACEOF
3051 /* end confdefs.h. */
3052 #define _LARGE_FILES 1
3053 #include <sys/types.h>
3054 /* Check that off_t can represent 2**63 - 1 correctly.
3055 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3056 since some C++ compilers masquerading as C compilers
3057 incorrectly reject 9223372036854775807. */
3058 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3059 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3060 && LARGE_OFF_T % 2147483647 == 1)
3070 rm -f conftest.$ac_objext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3072 (eval $ac_compile) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } &&
3076 { ac_try='test -s conftest.$ac_objext'
3077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); }; }; then
3082 ac_cv_sys_large_files=1; break
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3088 rm -f conftest.$ac_objext conftest.$ac_ext
3092 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3093 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3094 if test "$ac_cv_sys_large_files" != no; then
3096 cat >>confdefs.h <<_ACEOF
3097 #define _LARGE_FILES $ac_cv_sys_large_files
3107 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3108 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3109 if test "${ac_cv_c_bigendian+set}" = set; then
3110 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 # See if sys/param.h defines the BYTE_ORDER macro.
3113 cat >conftest.$ac_ext <<_ACEOF
3114 #line $LINENO "configure"
3117 cat confdefs.h >>conftest.$ac_ext
3118 cat >>conftest.$ac_ext <<_ACEOF
3119 /* end confdefs.h. */
3120 #include <sys/types.h>
3121 #include <sys/param.h>
3126 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3134 rm -f conftest.$ac_objext
3135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3136 (eval $ac_compile) 2>&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -s conftest.$ac_objext'
3141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3146 # It does; now see whether it defined to BIG_ENDIAN or not.
3147 cat >conftest.$ac_ext <<_ACEOF
3148 #line $LINENO "configure"
3151 cat confdefs.h >>conftest.$ac_ext
3152 cat >>conftest.$ac_ext <<_ACEOF
3153 /* end confdefs.h. */
3154 #include <sys/types.h>
3155 #include <sys/param.h>
3160 #if BYTE_ORDER != BIG_ENDIAN
3168 rm -f conftest.$ac_objext
3169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3170 (eval $ac_compile) 2>&5
3172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3173 (exit $ac_status); } &&
3174 { ac_try='test -s conftest.$ac_objext'
3175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3179 (exit $ac_status); }; }; then
3180 ac_cv_c_bigendian=yes
3182 echo "$as_me: failed program was:" >&5
3183 sed 's/^/| /' conftest.$ac_ext >&5
3185 ac_cv_c_bigendian=no
3187 rm -f conftest.$ac_objext conftest.$ac_ext
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3192 # It does not; compile a test program.
3193 if test "$cross_compiling" = yes; then
3194 # try to guess the endianness by grepping values into an object file
3195 ac_cv_c_bigendian=unknown
3196 cat >conftest.$ac_ext <<_ACEOF
3197 #line $LINENO "configure"
3200 cat confdefs.h >>conftest.$ac_ext
3201 cat >>conftest.$ac_ext <<_ACEOF
3202 /* end confdefs.h. */
3203 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3204 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3205 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3206 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3207 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3208 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3212 _ascii (); _ebcdic ();
3217 rm -f conftest.$ac_objext
3218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3219 (eval $ac_compile) 2>&5
3221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3222 (exit $ac_status); } &&
3223 { ac_try='test -s conftest.$ac_objext'
3224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }; }; then
3229 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3230 ac_cv_c_bigendian=yes
3232 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3233 if test "$ac_cv_c_bigendian" = unknown; then
3234 ac_cv_c_bigendian=no
3236 # finding both strings is unlikely to happen, but who knows?
3237 ac_cv_c_bigendian=unknown
3241 echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3245 rm -f conftest.$ac_objext conftest.$ac_ext
3247 cat >conftest.$ac_ext <<_ACEOF
3248 #line $LINENO "configure"
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h. */
3257 /* Are we little or big endian? From Harbison&Steele. */
3261 char c[sizeof (long)];
3264 exit (u.c[sizeof (long) - 1] == 1);
3267 rm -f conftest$ac_exeext
3268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3269 (eval $ac_link) 2>&5
3271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); }; }; then
3278 ac_cv_c_bigendian=no
3280 echo "$as_me: program exited with status $ac_status" >&5
3281 echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3285 ac_cv_c_bigendian=yes
3287 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3290 rm -f conftest.$ac_objext conftest.$ac_ext
3292 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3293 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3294 case $ac_cv_c_bigendian in
3297 cat >>confdefs.h <<\_ACEOF
3298 #define WORDS_BIGENDIAN 1
3304 { { echo "$as_me:$LINENO: error: unknown endianness
3305 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3306 echo "$as_me: error: unknown endianness
3307 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3308 { (exit 1); exit 1; }; } ;;
3312 # Extract the first word of "gmake", so it can be a program name with args.
3313 set dummy gmake; ac_word=$2
3314 echo "$as_me:$LINENO: checking for $ac_word" >&5
3315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3316 if test "${ac_cv_prog_GMAKE+set}" = set; then
3317 echo $ECHO_N "(cached) $ECHO_C" >&6
3319 if test -n "$GMAKE"; then
3320 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_GMAKE="yes"
3330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3339 GMAKE=$ac_cv_prog_GMAKE
3340 if test -n "$GMAKE"; then
3341 echo "$as_me:$LINENO: result: $GMAKE" >&5
3342 echo "${ECHO_T}$GMAKE" >&6
3344 echo "$as_me:$LINENO: result: no" >&5
3345 echo "${ECHO_T}no" >&6
3348 if test $GMAKE = no; then
3349 # Extract the first word of "make", so it can be a program name with args.
3350 set dummy make; ac_word=$2
3351 echo "$as_me:$LINENO: checking for $ac_word" >&5
3352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3353 if test "${ac_cv_path_MAKE+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3379 MAKE=$ac_cv_path_MAKE
3381 if test -n "$MAKE"; then
3382 echo "$as_me:$LINENO: result: $MAKE" >&5
3383 echo "${ECHO_T}$MAKE" >&6
3385 echo "$as_me:$LINENO: result: no" >&5
3386 echo "${ECHO_T}no" >&6
3390 # Extract the first word of "gmake", so it can be a program name with args.
3391 set dummy gmake; ac_word=$2
3392 echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3394 if test "${ac_cv_path_MAKE+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3399 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406 test -z "$as_dir" && as_dir=.
3407 for ac_exec_ext in '' $ac_executable_extensions; do
3408 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3409 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3416 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3420 MAKE=$ac_cv_path_MAKE
3422 if test -n "$MAKE"; then
3423 echo "$as_me:$LINENO: result: $MAKE" >&5
3424 echo "${ECHO_T}$MAKE" >&6
3426 echo "$as_me:$LINENO: result: no" >&5
3427 echo "${ECHO_T}no" >&6
3431 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3432 if test -z "$makever"; then
3433 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3434 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3435 echo "$as_me: error: GNU Make is not installed. Please download and install it
3436 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3437 { (exit 1); exit 1; }; }
3440 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3441 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3442 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3443 echo $ECHO_N "(cached) $ECHO_C" >&6
3445 ac_check_lib_save_LIBS=$LIBS
3447 cat >conftest.$ac_ext <<_ACEOF
3448 #line $LINENO "configure"
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h. */
3455 /* Override any gcc2 internal prototype to avoid an error. */
3459 /* We use char because int might match the return type of a gcc2
3460 builtin and then its argument prototype would still apply. */
3470 rm -f conftest.$ac_objext conftest$ac_exeext
3471 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3472 (eval $ac_link) 2>&5
3474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3475 (exit $ac_status); } &&
3476 { ac_try='test -s conftest$ac_exeext'
3477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3481 (exit $ac_status); }; }; then
3482 ac_cv_lib_ltdl_lt_dlinit=yes
3484 echo "$as_me: failed program was:" >&5
3485 sed 's/^/| /' conftest.$ac_ext >&5
3487 ac_cv_lib_ltdl_lt_dlinit=no
3489 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3490 LIBS=$ac_check_lib_save_LIBS
3492 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3493 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3494 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3495 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3497 if test x"$enable_ltdl_install" = xno; then
3498 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3499 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3501 enable_ltdl_install=yes
3506 if test x"$enable_ltdl_install" = x"yes"; then
3507 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3508 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3509 LTDLINCL='-I${top_srcdir}/''libltdl'
3512 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3518 # For backwards non-gettext consistent compatibility...
3522 # Check whether --enable-shared or --disable-shared was given.
3523 if test "${enable_shared+set}" = set; then
3524 enableval="$enable_shared"
3525 p=${PACKAGE-default}
3527 yes) enable_shared=yes ;;
3528 no) enable_shared=no ;;
3531 # Look at the argument we got. We use all the common list separators.
3532 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3533 for pkg in $enableval; do
3535 if test "X$pkg" = "X$p"; then
3546 # Check whether --enable-static or --disable-static was given.
3547 if test "${enable_static+set}" = set; then
3548 enableval="$enable_static"
3549 p=${PACKAGE-default}
3551 yes) enable_static=yes ;;
3552 no) enable_static=no ;;
3555 # Look at the argument we got. We use all the common list separators.
3556 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3557 for pkg in $enableval; do
3559 if test "X$pkg" = "X$p"; then
3570 # Check whether --enable-fast-install or --disable-fast-install was given.
3571 if test "${enable_fast_install+set}" = set; then
3572 enableval="$enable_fast_install"
3573 p=${PACKAGE-default}
3575 yes) enable_fast_install=yes ;;
3576 no) enable_fast_install=no ;;
3578 enable_fast_install=no
3579 # Look at the argument we got. We use all the common list separators.
3580 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3581 for pkg in $enableval; do
3583 if test "X$pkg" = "X$p"; then
3584 enable_fast_install=yes
3591 enable_fast_install=yes
3595 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3596 if test -f $ac_dir/install-sh; then
3598 ac_install_sh="$ac_aux_dir/install-sh -c"
3600 elif test -f $ac_dir/install.sh; then
3602 ac_install_sh="$ac_aux_dir/install.sh -c"
3604 elif test -f $ac_dir/shtool; then
3606 ac_install_sh="$ac_aux_dir/shtool install -c"
3610 if test -z "$ac_aux_dir"; then
3611 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3612 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3613 { (exit 1); exit 1; }; }
3615 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3616 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3617 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3619 # Make sure we can run config.sub.
3620 $ac_config_sub sun4 >/dev/null 2>&1 ||
3621 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3622 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3623 { (exit 1); exit 1; }; }
3625 echo "$as_me:$LINENO: checking build system type" >&5
3626 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3627 if test "${ac_cv_build+set}" = set; then
3628 echo $ECHO_N "(cached) $ECHO_C" >&6
3630 ac_cv_build_alias=$build_alias
3631 test -z "$ac_cv_build_alias" &&
3632 ac_cv_build_alias=`$ac_config_guess`
3633 test -z "$ac_cv_build_alias" &&
3634 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3635 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3636 { (exit 1); exit 1; }; }
3637 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3638 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3639 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3640 { (exit 1); exit 1; }; }
3643 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3644 echo "${ECHO_T}$ac_cv_build" >&6
3646 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3647 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3648 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3651 echo "$as_me:$LINENO: checking host system type" >&5
3652 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3653 if test "${ac_cv_host+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 ac_cv_host_alias=$host_alias
3657 test -z "$ac_cv_host_alias" &&
3658 ac_cv_host_alias=$ac_cv_build_alias
3659 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3660 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3661 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3662 { (exit 1); exit 1; }; }
3665 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3666 echo "${ECHO_T}$ac_cv_host" >&6
3668 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3669 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3670 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3673 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3674 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3675 if test "${lt_cv_path_SED+set}" = set; then
3676 echo $ECHO_N "(cached) $ECHO_C" >&6
3678 # Loop through the user's path and test for sed and gsed.
3679 # Then use that list of sed's as ones to test for truncation.
3680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3684 test -z "$as_dir" && as_dir=.
3685 for lt_ac_prog in sed gsed; do
3686 for ac_exec_ext in '' $ac_executable_extensions; do
3687 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3688 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3695 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3696 # along with /bin/sed that truncates output.
3697 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3698 test ! -f $lt_ac_sed && break
3699 cat /dev/null > conftest.in
3701 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3702 # Check for GNU sed and select it if it is found.
3703 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3704 lt_cv_path_SED=$lt_ac_sed
3708 cat conftest.in conftest.in >conftest.tmp
3709 mv conftest.tmp conftest.in
3710 cp conftest.in conftest.nl
3712 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3713 cmp -s conftest.out conftest.nl || break
3714 # 10000 chars as input seems more than enough
3715 test $lt_ac_count -gt 10 && break
3716 lt_ac_count=`expr $lt_ac_count + 1`
3717 if test $lt_ac_count -gt $lt_ac_max; then
3718 lt_ac_max=$lt_ac_count
3719 lt_cv_path_SED=$lt_ac_sed
3727 echo "$as_me:$LINENO: result: $SED" >&5
3728 echo "${ECHO_T}$SED" >&6
3731 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3732 if test "${with_gnu_ld+set}" = set; then
3733 withval="$with_gnu_ld"
3734 test "$withval" = no || with_gnu_ld=yes
3739 if test "$GCC" = yes; then
3740 # Check if gcc -print-prog-name=ld gives a path.
3741 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3742 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3745 # gcc leaves a trailing carriage return which upsets mingw
3746 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3748 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3751 # Accept absolute paths.
3753 re_direlt='/[^/][^/]*/\.\./'
3754 # Canonicalize the pathname of ld
3755 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3756 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3757 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3759 test -z "$LD" && LD="$ac_prog"
3762 # If it fails, then pretend we aren't using GCC.
3766 # If it is relative, then search for the first ld in PATH.
3770 elif test "$with_gnu_ld" = yes; then
3771 echo "$as_me:$LINENO: checking for GNU ld" >&5
3772 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3774 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3775 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3777 if test "${lt_cv_path_LD+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 if test -z "$LD"; then
3781 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3782 for ac_dir in $PATH; do
3784 test -z "$ac_dir" && ac_dir=.
3785 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3786 lt_cv_path_LD="$ac_dir/$ac_prog"
3787 # Check to see if the program is GNU ld. I'd rather use --version,
3788 # but apparently some GNU ld's only accept -v.
3789 # Break only if it was the GNU/non-GNU ld that we prefer.
3790 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3791 *GNU* | *'with BFD'*)
3792 test "$with_gnu_ld" != no && break
3795 test "$with_gnu_ld" != yes && break
3802 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3807 if test -n "$LD"; then
3808 echo "$as_me:$LINENO: result: $LD" >&5
3809 echo "${ECHO_T}$LD" >&6
3811 echo "$as_me:$LINENO: result: no" >&5
3812 echo "${ECHO_T}no" >&6
3814 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3815 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3816 { (exit 1); exit 1; }; }
3817 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3818 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3819 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3822 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3823 case `$LD -v 2>&1 </dev/null` in
3824 *GNU* | *'with BFD'*)
3825 lt_cv_prog_gnu_ld=yes
3828 lt_cv_prog_gnu_ld=no
3832 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3833 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3834 with_gnu_ld=$lt_cv_prog_gnu_ld
3837 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3838 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3839 if test "${lt_cv_ld_reload_flag+set}" = set; then
3840 echo $ECHO_N "(cached) $ECHO_C" >&6
3842 lt_cv_ld_reload_flag='-r'
3844 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3845 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3846 reload_flag=$lt_cv_ld_reload_flag
3847 case $reload_flag in
3849 *) reload_flag=" $reload_flag" ;;
3851 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3853 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3854 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3855 if test "${lt_cv_path_NM+set}" = set; then
3856 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 if test -n "$NM"; then
3859 # Let the user override the test.
3862 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3863 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3865 test -z "$ac_dir" && ac_dir=.
3866 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3867 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3868 # Check to see if the nm accepts a BSD-compat flag.
3869 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3870 # nm: unknown option "B" ignored
3871 # Tru64's nm complains that /dev/null is an invalid object file
3872 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3873 */dev/null* | *'Invalid file or object type'*)
3874 lt_cv_path_NM="$tmp_nm -B"
3878 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3880 lt_cv_path_NM="$tmp_nm -p"
3884 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3885 continue # so that we can try to find one that supports BSD flags
3892 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3895 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3896 echo "${ECHO_T}$lt_cv_path_NM" >&6
3899 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3900 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3902 if test "$LN_S" = "ln -s"; then
3903 echo "$as_me:$LINENO: result: yes" >&5
3904 echo "${ECHO_T}yes" >&6
3906 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3907 echo "${ECHO_T}no, using $LN_S" >&6
3910 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3911 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3912 if test "${lt_cv_deplibs_check_method+set}" = set; then
3913 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 lt_cv_file_magic_cmd='$MAGIC_CMD'
3916 lt_cv_file_magic_test_file=
3917 lt_cv_deplibs_check_method='unknown'
3918 # Need to set the preceding variable on all platforms that support
3919 # interlibrary dependencies.
3920 # 'none' -- dependencies not supported.
3921 # `unknown' -- same as none, but documents that we really don't know.
3922 # 'pass_all' -- all dependencies passed with no checks.
3923 # 'test_compile' -- check by making test program.
3924 # 'file_magic [[regex]]' -- check by looking for files in library path
3925 # which responds to the $file_magic_cmd with a given extended regex.
3926 # If you have `file' or equivalent on your system and you're not sure
3927 # whether `pass_all' will *always* work, you probably want this one.
3931 lt_cv_deplibs_check_method=pass_all
3935 lt_cv_deplibs_check_method=pass_all
3939 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3940 lt_cv_file_magic_cmd='/usr/bin/file -L'
3941 lt_cv_file_magic_test_file=/shlib/libc.so
3945 # func_win32_libid is a shell function defined in ltmain.sh
3946 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3947 lt_cv_file_magic_cmd='func_win32_libid'
3951 # Base MSYS/MinGW do not provide the 'file' command needed by
3952 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3953 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3954 lt_cv_file_magic_cmd='$OBJDUMP -f'
3957 darwin* | rhapsody*)
3958 lt_cv_deplibs_check_method=pass_all
3961 freebsd* | kfreebsd*-gnu)
3962 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3965 # Not sure whether the presence of OpenBSD here was a mistake.
3966 # Let's accept both of them until this is cleared up.
3967 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3968 lt_cv_file_magic_cmd=/usr/bin/file
3969 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3973 lt_cv_deplibs_check_method=pass_all
3978 lt_cv_deplibs_check_method=pass_all
3981 hpux10.20* | hpux11*)
3982 lt_cv_file_magic_cmd=/usr/bin/file
3985 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3986 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3989 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]'
3990 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3993 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3994 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3999 irix5* | irix6* | nonstopux*)
4001 *-32|*"-32 ") libmagic=32-bit;;
4002 *-n32|*"-n32 ") libmagic=N32;;
4003 *-64|*"-64 ") libmagic=64-bit;;
4004 *) libmagic=never-match;;
4006 lt_cv_deplibs_check_method=pass_all
4009 # This must be Linux ELF.
4011 lt_cv_deplibs_check_method=pass_all
4014 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4015 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4016 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4018 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4024 lt_cv_file_magic_cmd=/usr/bin/file
4025 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4029 lt_cv_deplibs_check_method=unknown
4033 lt_cv_file_magic_cmd=/usr/bin/file
4034 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4035 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4036 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4038 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4042 osf3* | osf4* | osf5*)
4043 lt_cv_deplibs_check_method=pass_all
4047 lt_cv_deplibs_check_method=pass_all
4051 lt_cv_deplibs_check_method=pass_all
4054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4055 case $host_vendor in
4057 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]'
4058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4061 lt_cv_deplibs_check_method=pass_all
4064 lt_cv_file_magic_cmd='/bin/file'
4065 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4068 lt_cv_file_magic_cmd='/bin/file'
4069 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4070 lt_cv_file_magic_test_file=/lib/libc.so
4073 lt_cv_deplibs_check_method=pass_all
4078 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4079 lt_cv_deplibs_check_method=pass_all
4084 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4085 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4086 file_magic_cmd=$lt_cv_file_magic_cmd
4087 deplibs_check_method=$lt_cv_deplibs_check_method
4088 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4093 # If no C compiler was specified, use CC.
4096 # Allow CC to be a program name with arguments.
4099 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4100 if test "${enable_libtool_lock+set}" = set; then
4101 enableval="$enable_libtool_lock"
4104 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4106 # Some flags need to be propagated to the compiler or linker for good
4110 # Find out which ABI we are using.
4111 echo 'int i;' > conftest.$ac_ext
4112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4113 (eval $ac_compile) 2>&5
4115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); }; then
4117 case `/usr/bin/file conftest.$ac_objext` in
4129 # Find out which ABI we are using.
4130 echo '#line 4130 "configure"' > conftest.$ac_ext
4131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4132 (eval $ac_compile) 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; then
4136 if test "$lt_cv_prog_gnu_ld" = yes; then
4137 case `/usr/bin/file conftest.$ac_objext` in
4139 LD="${LD-ld} -melf32bsmip"
4142 LD="${LD-ld} -melf32bmipn32"
4145 LD="${LD-ld} -melf64bmip"
4149 case `/usr/bin/file conftest.$ac_objext` in
4165 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4166 # Find out which ABI we are using.
4167 echo 'int i;' > conftest.$ac_ext
4168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4169 (eval $ac_compile) 2>&5
4171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4172 (exit $ac_status); }; then
4173 case "`/usr/bin/file conftest.o`" in
4177 LD="${LD-ld} -m elf_i386"
4179 ppc64-*linux*|powerpc64-*linux*)
4180 LD="${LD-ld} -m elf32ppclinux"
4183 LD="${LD-ld} -m elf_s390"
4186 LD="${LD-ld} -m elf32_sparc"
4193 LD="${LD-ld} -m elf_x86_64"
4195 ppc*-*linux*|powerpc*-*linux*)
4196 LD="${LD-ld} -m elf64ppc"
4199 LD="${LD-ld} -m elf64_s390"
4202 LD="${LD-ld} -m elf64_sparc"
4212 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4213 SAVE_CFLAGS="$CFLAGS"
4214 CFLAGS="$CFLAGS -belf"
4215 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4216 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4217 if test "${lt_cv_cc_needs_belf+set}" = set; then
4218 echo $ECHO_N "(cached) $ECHO_C" >&6
4221 ac_cpp='$CPP $CPPFLAGS'
4222 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4223 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4224 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4226 cat >conftest.$ac_ext <<_ACEOF
4227 #line $LINENO "configure"
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4244 (eval $ac_link) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); } &&
4248 { ac_try='test -s conftest$ac_exeext'
4249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); }; }; then
4254 lt_cv_cc_needs_belf=yes
4256 echo "$as_me: failed program was:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 lt_cv_cc_needs_belf=no
4261 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4263 ac_cpp='$CPP $CPPFLAGS'
4264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4269 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4270 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4271 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4272 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4273 CFLAGS="$SAVE_CFLAGS"
4279 need_locks="$enable_libtool_lock"
4282 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4283 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4284 if test "${ac_cv_header_stdc+set}" = set; then
4285 echo $ECHO_N "(cached) $ECHO_C" >&6
4287 cat >conftest.$ac_ext <<_ACEOF
4288 #line $LINENO "configure"
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4307 rm -f conftest.$ac_objext
4308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4309 (eval $ac_compile) 2>&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } &&
4313 { ac_try='test -s conftest.$ac_objext'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then
4319 ac_cv_header_stdc=yes
4321 echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4324 ac_cv_header_stdc=no
4326 rm -f conftest.$ac_objext conftest.$ac_ext
4328 if test $ac_cv_header_stdc = yes; then
4329 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4330 cat >conftest.$ac_ext <<_ACEOF
4331 #line $LINENO "configure"
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4340 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4341 $EGREP "memchr" >/dev/null 2>&1; then
4344 ac_cv_header_stdc=no
4350 if test $ac_cv_header_stdc = yes; then
4351 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4352 cat >conftest.$ac_ext <<_ACEOF
4353 #line $LINENO "configure"
4356 cat confdefs.h >>conftest.$ac_ext
4357 cat >>conftest.$ac_ext <<_ACEOF
4358 /* end confdefs.h. */
4362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4363 $EGREP "free" >/dev/null 2>&1; then
4366 ac_cv_header_stdc=no
4372 if test $ac_cv_header_stdc = yes; then
4373 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4374 if test "$cross_compiling" = yes; then
4377 cat >conftest.$ac_ext <<_ACEOF
4378 #line $LINENO "configure"
4381 cat confdefs.h >>conftest.$ac_ext
4382 cat >>conftest.$ac_ext <<_ACEOF
4383 /* end confdefs.h. */
4385 #if ((' ' & 0x0FF) == 0x020)
4386 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4387 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4389 # define ISLOWER(c) \
4390 (('a' <= (c) && (c) <= 'i') \
4391 || ('j' <= (c) && (c) <= 'r') \
4392 || ('s' <= (c) && (c) <= 'z'))
4393 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4396 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4401 for (i = 0; i < 256; i++)
4402 if (XOR (islower (i), ISLOWER (i))
4403 || toupper (i) != TOUPPER (i))
4408 rm -f conftest$ac_exeext
4409 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4410 (eval $ac_link) 2>&5
4412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4418 (exit $ac_status); }; }; then
4421 echo "$as_me: program exited with status $ac_status" >&5
4422 echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4426 ac_cv_header_stdc=no
4428 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4432 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4433 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4434 if test $ac_cv_header_stdc = yes; then
4436 cat >>confdefs.h <<\_ACEOF
4437 #define STDC_HEADERS 1
4442 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4452 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4453 inttypes.h stdint.h unistd.h
4455 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4456 echo "$as_me:$LINENO: checking for $ac_header" >&5
4457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4458 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 cat >conftest.$ac_ext <<_ACEOF
4462 #line $LINENO "configure"
4465 cat confdefs.h >>conftest.$ac_ext
4466 cat >>conftest.$ac_ext <<_ACEOF
4467 /* end confdefs.h. */
4468 $ac_includes_default
4470 #include <$ac_header>
4472 rm -f conftest.$ac_objext
4473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4474 (eval $ac_compile) 2>&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4484 eval "$as_ac_Header=yes"
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4489 eval "$as_ac_Header=no"
4491 rm -f conftest.$ac_objext conftest.$ac_ext
4493 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4494 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4496 cat >>confdefs.h <<_ACEOF
4497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4506 for ac_header in dlfcn.h
4508 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4509 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4510 echo "$as_me:$LINENO: checking for $ac_header" >&5
4511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4512 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4518 # Is the header compilable?
4519 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4520 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4521 cat >conftest.$ac_ext <<_ACEOF
4522 #line $LINENO "configure"
4525 cat confdefs.h >>conftest.$ac_ext
4526 cat >>conftest.$ac_ext <<_ACEOF
4527 /* end confdefs.h. */
4528 $ac_includes_default
4529 #include <$ac_header>
4531 rm -f conftest.$ac_objext
4532 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4533 (eval $ac_compile) 2>&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4543 ac_header_compiler=yes
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4548 ac_header_compiler=no
4550 rm -f conftest.$ac_objext conftest.$ac_ext
4551 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4552 echo "${ECHO_T}$ac_header_compiler" >&6
4554 # Is the header present?
4555 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4556 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4557 cat >conftest.$ac_ext <<_ACEOF
4558 #line $LINENO "configure"
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564 #include <$ac_header>
4566 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4567 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4569 grep -v '^ *+' conftest.er1 >conftest.err
4571 cat conftest.err >&5
4572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4573 (exit $ac_status); } >/dev/null; then
4574 if test -s conftest.err; then
4575 ac_cpp_err=$ac_c_preproc_warn_flag
4582 if test -z "$ac_cpp_err"; then
4583 ac_header_preproc=yes
4585 echo "$as_me: failed program was:" >&5
4586 sed 's/^/| /' conftest.$ac_ext >&5
4588 ac_header_preproc=no
4590 rm -f conftest.err conftest.$ac_ext
4591 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4592 echo "${ECHO_T}$ac_header_preproc" >&6
4594 # So? What about this header?
4595 case $ac_header_compiler:$ac_header_preproc in
4597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4603 ## ------------------------------------ ##
4604 ## Report this to bug-autoconf@gnu.org. ##
4605 ## ------------------------------------ ##
4608 sed "s/^/$as_me: WARNING: /" >&2
4611 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4612 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4613 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4614 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4616 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4619 ## ------------------------------------ ##
4620 ## Report this to bug-autoconf@gnu.org. ##
4621 ## ------------------------------------ ##
4624 sed "s/^/$as_me: WARNING: /" >&2
4627 echo "$as_me:$LINENO: checking for $ac_header" >&5
4628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4629 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4630 echo $ECHO_N "(cached) $ECHO_C" >&6
4632 eval "$as_ac_Header=$ac_header_preproc"
4634 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4635 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4638 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4639 cat >>confdefs.h <<_ACEOF
4640 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4648 ac_cpp='$CXXCPP $CPPFLAGS'
4649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4652 if test -n "$ac_tool_prefix"; then
4653 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4656 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4657 echo "$as_me:$LINENO: checking for $ac_word" >&5
4658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4659 if test "${ac_cv_prog_CXX+set}" = set; then
4660 echo $ECHO_N "(cached) $ECHO_C" >&6
4662 if test -n "$CXX"; then
4663 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 test -z "$as_dir" && as_dir=.
4670 for ac_exec_ext in '' $ac_executable_extensions; do
4671 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4672 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4673 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 if test -n "$CXX"; then
4683 echo "$as_me:$LINENO: result: $CXX" >&5
4684 echo "${ECHO_T}$CXX" >&6
4686 echo "$as_me:$LINENO: result: no" >&5
4687 echo "${ECHO_T}no" >&6
4690 test -n "$CXX" && break
4693 if test -z "$CXX"; then
4695 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4697 # Extract the first word of "$ac_prog", so it can be a program name with args.
4698 set dummy $ac_prog; ac_word=$2
4699 echo "$as_me:$LINENO: checking for $ac_word" >&5
4700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4701 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4702 echo $ECHO_N "(cached) $ECHO_C" >&6
4704 if test -n "$ac_ct_CXX"; then
4705 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4711 test -z "$as_dir" && as_dir=.
4712 for ac_exec_ext in '' $ac_executable_extensions; do
4713 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4714 ac_cv_prog_ac_ct_CXX="$ac_prog"
4715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4723 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4724 if test -n "$ac_ct_CXX"; then
4725 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4726 echo "${ECHO_T}$ac_ct_CXX" >&6
4728 echo "$as_me:$LINENO: result: no" >&5
4729 echo "${ECHO_T}no" >&6
4732 test -n "$ac_ct_CXX" && break
4734 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4740 # Provide some information about the compiler.
4741 echo "$as_me:$LINENO:" \
4742 "checking for C++ compiler version" >&5
4743 ac_compiler=`set X $ac_compile; echo $2`
4744 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4745 (eval $ac_compiler --version </dev/null >&5) 2>&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }
4749 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4750 (eval $ac_compiler -v </dev/null >&5) 2>&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }
4754 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4755 (eval $ac_compiler -V </dev/null >&5) 2>&5
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }
4760 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4761 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4762 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4763 echo $ECHO_N "(cached) $ECHO_C" >&6
4765 cat >conftest.$ac_ext <<_ACEOF
4766 #line $LINENO "configure"
4769 cat confdefs.h >>conftest.$ac_ext
4770 cat >>conftest.$ac_ext <<_ACEOF
4771 /* end confdefs.h. */
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } &&
4790 { ac_try='test -s conftest.$ac_objext'
4791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }; }; then
4798 echo "$as_me: failed program was:" >&5
4799 sed 's/^/| /' conftest.$ac_ext >&5
4803 rm -f conftest.$ac_objext conftest.$ac_ext
4804 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4807 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4808 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4809 GXX=`test $ac_compiler_gnu = yes && echo yes`
4810 ac_test_CXXFLAGS=${CXXFLAGS+set}
4811 ac_save_CXXFLAGS=$CXXFLAGS
4813 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4814 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4815 if test "${ac_cv_prog_cxx_g+set}" = set; then
4816 echo $ECHO_N "(cached) $ECHO_C" >&6
4818 cat >conftest.$ac_ext <<_ACEOF
4819 #line $LINENO "configure"
4822 cat confdefs.h >>conftest.$ac_ext
4823 cat >>conftest.$ac_ext <<_ACEOF
4824 /* end confdefs.h. */
4834 rm -f conftest.$ac_objext
4835 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4836 (eval $ac_compile) 2>&5
4838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839 (exit $ac_status); } &&
4840 { ac_try='test -s conftest.$ac_objext'
4841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); }; }; then
4846 ac_cv_prog_cxx_g=yes
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.$ac_ext >&5
4853 rm -f conftest.$ac_objext conftest.$ac_ext
4855 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4856 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4857 if test "$ac_test_CXXFLAGS" = set; then
4858 CXXFLAGS=$ac_save_CXXFLAGS
4859 elif test $ac_cv_prog_cxx_g = yes; then
4860 if test "$GXX" = yes; then
4866 if test "$GXX" = yes; then
4872 for ac_declaration in \
4874 '#include <stdlib.h>' \
4875 'extern "C" void std::exit (int) throw (); using std::exit;' \
4876 'extern "C" void std::exit (int); using std::exit;' \
4877 'extern "C" void exit (int) throw ();' \
4878 'extern "C" void exit (int);' \
4881 cat >conftest.$ac_ext <<_ACEOF
4882 #line $LINENO "configure"
4885 cat confdefs.h >>conftest.$ac_ext
4886 cat >>conftest.$ac_ext <<_ACEOF
4887 /* end confdefs.h. */
4898 rm -f conftest.$ac_objext
4899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4900 (eval $ac_compile) 2>&5
4902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903 (exit $ac_status); } &&
4904 { ac_try='test -s conftest.$ac_objext'
4905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); }; }; then
4912 echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4917 rm -f conftest.$ac_objext conftest.$ac_ext
4918 cat >conftest.$ac_ext <<_ACEOF
4919 #line $LINENO "configure"
4922 cat confdefs.h >>conftest.$ac_ext
4923 cat >>conftest.$ac_ext <<_ACEOF
4924 /* end confdefs.h. */
4934 rm -f conftest.$ac_objext
4935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936 (eval $ac_compile) 2>&5
4938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939 (exit $ac_status); } &&
4940 { ac_try='test -s conftest.$ac_objext'
4941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }; }; then
4948 echo "$as_me: failed program was:" >&5
4949 sed 's/^/| /' conftest.$ac_ext >&5
4952 rm -f conftest.$ac_objext conftest.$ac_ext
4955 if test -n "$ac_declaration"; then
4956 echo '#ifdef __cplusplus' >>confdefs.h
4957 echo $ac_declaration >>confdefs.h
4958 echo '#endif' >>confdefs.h
4962 ac_cpp='$CXXCPP $CPPFLAGS'
4963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4968 ac_cpp='$CXXCPP $CPPFLAGS'
4969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4972 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4973 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4974 if test -z "$CXXCPP"; then
4975 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4976 echo $ECHO_N "(cached) $ECHO_C" >&6
4978 # Double quotes because CXXCPP needs to be expanded
4979 for CXXCPP in "$CXX -E" "/lib/cpp"
4982 for ac_cxx_preproc_warn_flag in '' yes
4984 # Use a header file that comes with gcc, so configuring glibc
4985 # with a fresh cross-compiler works.
4986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4987 # <limits.h> exists even on freestanding compilers.
4988 # On the NeXT, cc -E runs the code through the compiler's parser,
4989 # not just through cpp. "Syntax error" is here to catch this case.
4990 cat >conftest.$ac_ext <<_ACEOF
4991 #line $LINENO "configure"
4994 cat confdefs.h >>conftest.$ac_ext
4995 cat >>conftest.$ac_ext <<_ACEOF
4996 /* end confdefs.h. */
4998 # include <limits.h>
5000 # include <assert.h>
5004 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5005 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5007 grep -v '^ *+' conftest.er1 >conftest.err
5009 cat conftest.err >&5
5010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5011 (exit $ac_status); } >/dev/null; then
5012 if test -s conftest.err; then
5013 ac_cpp_err=$ac_cxx_preproc_warn_flag
5020 if test -z "$ac_cpp_err"; then
5023 echo "$as_me: failed program was:" >&5
5024 sed 's/^/| /' conftest.$ac_ext >&5
5026 # Broken: fails on valid input.
5029 rm -f conftest.err conftest.$ac_ext
5031 # OK, works on sane cases. Now check whether non-existent headers
5032 # can be detected and how.
5033 cat >conftest.$ac_ext <<_ACEOF
5034 #line $LINENO "configure"
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */
5040 #include <ac_nonexistent.h>
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_cxx_preproc_warn_flag
5058 if test -z "$ac_cpp_err"; then
5059 # Broken: success on invalid input.
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Passes both tests.
5069 rm -f conftest.err conftest.$ac_ext
5072 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5073 rm -f conftest.err conftest.$ac_ext
5074 if $ac_preproc_ok; then
5079 ac_cv_prog_CXXCPP=$CXXCPP
5082 CXXCPP=$ac_cv_prog_CXXCPP
5084 ac_cv_prog_CXXCPP=$CXXCPP
5086 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5087 echo "${ECHO_T}$CXXCPP" >&6
5089 for ac_cxx_preproc_warn_flag in '' yes
5091 # Use a header file that comes with gcc, so configuring glibc
5092 # with a fresh cross-compiler works.
5093 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5094 # <limits.h> exists even on freestanding compilers.
5095 # On the NeXT, cc -E runs the code through the compiler's parser,
5096 # not just through cpp. "Syntax error" is here to catch this case.
5097 cat >conftest.$ac_ext <<_ACEOF
5098 #line $LINENO "configure"
5101 cat confdefs.h >>conftest.$ac_ext
5102 cat >>conftest.$ac_ext <<_ACEOF
5103 /* end confdefs.h. */
5105 # include <limits.h>
5107 # include <assert.h>
5111 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5112 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5114 grep -v '^ *+' conftest.er1 >conftest.err
5116 cat conftest.err >&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); } >/dev/null; then
5119 if test -s conftest.err; then
5120 ac_cpp_err=$ac_cxx_preproc_warn_flag
5127 if test -z "$ac_cpp_err"; then
5130 echo "$as_me: failed program was:" >&5
5131 sed 's/^/| /' conftest.$ac_ext >&5
5133 # Broken: fails on valid input.
5136 rm -f conftest.err conftest.$ac_ext
5138 # OK, works on sane cases. Now check whether non-existent headers
5139 # can be detected and how.
5140 cat >conftest.$ac_ext <<_ACEOF
5141 #line $LINENO "configure"
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5149 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5150 (eval $ac_cpp conftest.$ac_ext) 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); } >/dev/null; then
5157 if test -s conftest.err; then
5158 ac_cpp_err=$ac_cxx_preproc_warn_flag
5165 if test -z "$ac_cpp_err"; then
5166 # Broken: success on invalid input.
5169 echo "$as_me: failed program was:" >&5
5170 sed 's/^/| /' conftest.$ac_ext >&5
5172 # Passes both tests.
5176 rm -f conftest.err conftest.$ac_ext
5179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5180 rm -f conftest.err conftest.$ac_ext
5181 if $ac_preproc_ok; then
5184 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5185 See \`config.log' for more details." >&5
5186 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5187 See \`config.log' for more details." >&2;}
5188 { (exit 1); exit 1; }; }
5192 ac_cpp='$CXXCPP $CPPFLAGS'
5193 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5194 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5195 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5199 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5200 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5202 if test -n "$ac_tool_prefix"; then
5203 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5207 echo "$as_me:$LINENO: checking for $ac_word" >&5
5208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5209 if test "${ac_cv_prog_F77+set}" = set; then
5210 echo $ECHO_N "(cached) $ECHO_C" >&6
5212 if test -n "$F77"; then
5213 ac_cv_prog_F77="$F77" # Let the user override the test.
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5222 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5232 if test -n "$F77"; then
5233 echo "$as_me:$LINENO: result: $F77" >&5
5234 echo "${ECHO_T}$F77" >&6
5236 echo "$as_me:$LINENO: result: no" >&5
5237 echo "${ECHO_T}no" >&6
5240 test -n "$F77" && break
5243 if test -z "$F77"; then
5245 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5247 # Extract the first word of "$ac_prog", so it can be a program name with args.
5248 set dummy $ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 if test -n "$ac_ct_F77"; then
5255 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5261 test -z "$as_dir" && as_dir=.
5262 for ac_exec_ext in '' $ac_executable_extensions; do
5263 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264 ac_cv_prog_ac_ct_F77="$ac_prog"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5273 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5274 if test -n "$ac_ct_F77"; then
5275 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5276 echo "${ECHO_T}$ac_ct_F77" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5282 test -n "$ac_ct_F77" && break
5289 # Provide some information about the compiler.
5290 echo "$as_me:5290:" \
5291 "checking for Fortran 77 compiler version" >&5
5292 ac_compiler=`set X $ac_compile; echo $2`
5293 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5294 (eval $ac_compiler --version </dev/null >&5) 2>&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }
5298 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5299 (eval $ac_compiler -v </dev/null >&5) 2>&5
5301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5302 (exit $ac_status); }
5303 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5304 (eval $ac_compiler -V </dev/null >&5) 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }
5309 # If we don't use `.F' as extension, the preprocessor is not run on the
5313 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5314 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5315 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5318 cat >conftest.$ac_ext <<_ACEOF
5326 rm -f conftest.$ac_objext
5327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5328 (eval $ac_compile) 2>&5
5330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331 (exit $ac_status); } &&
5332 { ac_try='test -s conftest.$ac_objext'
5333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5337 (exit $ac_status); }; }; then
5340 echo "$as_me: failed program was:" >&5
5341 sed 's/^/| /' conftest.$ac_ext >&5
5345 rm -f conftest.$ac_objext conftest.$ac_ext
5346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5349 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5350 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5352 G77=`test $ac_compiler_gnu = yes && echo yes`
5353 ac_test_FFLAGS=${FFLAGS+set}
5354 ac_save_FFLAGS=$FFLAGS
5356 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5357 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5358 if test "${ac_cv_prog_f77_g+set}" = set; then
5359 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 cat >conftest.$ac_ext <<_ACEOF
5367 rm -f conftest.$ac_objext
5368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5369 (eval $ac_compile) 2>&5
5371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5372 (exit $ac_status); } &&
5373 { ac_try='test -s conftest.$ac_objext'
5374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5378 (exit $ac_status); }; }; then
5379 ac_cv_prog_f77_g=yes
5381 echo "$as_me: failed program was:" >&5
5382 sed 's/^/| /' conftest.$ac_ext >&5
5386 rm -f conftest.$ac_objext conftest.$ac_ext
5389 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5390 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5391 if test "$ac_test_FFLAGS" = set; then
5392 FFLAGS=$ac_save_FFLAGS
5393 elif test $ac_cv_prog_f77_g = yes; then
5394 if test "$G77" = yes; then
5400 if test "$G77" = yes; then
5407 ac_cpp='$CPP $CPPFLAGS'
5408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5416 # find the maximum length of command line arguments
5417 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5418 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5419 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5420 echo $ECHO_N "(cached) $ECHO_C" >&6
5427 # On DJGPP, this test can blow up pretty badly due to problems in libc
5428 # (any single argument exceeding 2000 bytes causes a buffer overrun
5429 # during glob expansion). Even if it were fixed, the result of this
5430 # check would be larger than it should be.
5431 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5435 # Under GNU Hurd, this test is not required because there is
5436 # no limit to the length of command line arguments.
5437 # Libtool will interpret -1 as no limit whatsoever
5438 lt_cv_sys_max_cmd_len=-1;
5442 # On Win9x/ME, this test blows up -- it succeeds, but takes
5443 # about 5 minutes as the teststring grows exponentially.
5444 # Worse, since 9x/ME are not pre-emptively multitasking,
5445 # you end up with a "frozen" computer, even though with patience
5446 # the test eventually succeeds (with a max line length of 256k).
5447 # Instead, let's just punt: use the minimum linelength reported by
5448 # all of the supported platforms: 8192 (on NT/2K/XP).
5449 lt_cv_sys_max_cmd_len=8192;
5453 # On AmigaOS with pdksh, this test takes hours, literally.
5454 # So we just punt and use a minimum line length of 8192.
5455 lt_cv_sys_max_cmd_len=8192;
5459 # If test is not a shell built-in, we'll probably end up computing a
5460 # maximum length that is only half of the actual maximum length, but
5462 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5463 = "XX$teststring") >/dev/null 2>&1 &&
5464 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5465 lt_cv_sys_max_cmd_len=$new_result &&
5466 test $i != 17 # 1/2 MB should be enough
5469 teststring=$teststring$teststring
5472 # Add a significant safety factor because C++ compilers can tack on massive
5473 # amounts of additional arguments before passing them to the linker.
5474 # It appears as though 1/2 is a usable value.
5475 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5481 if test -n $lt_cv_sys_max_cmd_len ; then
5482 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5483 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5485 echo "$as_me:$LINENO: result: none" >&5
5486 echo "${ECHO_T}none" >&6
5492 # Check for command to grab the raw symbol name followed by C symbol from nm.
5493 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5494 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5495 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5496 echo $ECHO_N "(cached) $ECHO_C" >&6
5499 # These are sane defaults that work on at least a few old systems.
5500 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5502 # Character class describing NM global symbol codes.
5503 symcode='[BCDEGRST]'
5505 # Regexp to match symbols that can be accessed directly from C.
5506 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5508 # Transform the above into a raw symbol and a C symbol.
5509 symxfrm='\1 \2\3 \3'
5511 # Transform an extracted symbol line into a proper C declaration
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5514 # Transform an extracted symbol line into symbol name and symbol address
5515 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'"
5517 # Define system-specific variables.
5522 cygwin* | mingw* | pw32*)
5523 symcode='[ABCDGISTW]'
5525 hpux*) # Its linker distinguishes data from code symbols
5526 if test "$host_cpu" = ia64; then
5527 symcode='[ABCDEGRST]'
5529 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5530 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'"
5533 symcode='[BCDEGRST]'
5536 symcode='[BCDEGQRST]'
5546 # Handle CRLF in mingw tool chain
5550 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5554 # If we're using GNU nm, then use its standard symbol codes.
5555 case `$NM -V 2>&1` in
5556 *GNU* | *'with BFD'*)
5557 symcode='[ABCDGIRSTW]' ;;
5560 # Try without a prefix undercore, then with it.
5561 for ac_symprfx in "" "_"; do
5563 # Write the raw and C identifiers.
5564 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5566 # Check to see that the pipe works correctly.
5570 cat > conftest.$ac_ext <<EOF
5575 void nm_test_func(){}
5579 int main(){nm_test_var='a';nm_test_func();return(0);}
5582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5583 (eval $ac_compile) 2>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); }; then
5587 # Now try to grab the symbols.
5589 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5590 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && test -s "$nlist"; then
5594 # Try sorting and uniquifying the output.
5595 if sort "$nlist" | uniq > "$nlist"T; then
5596 mv -f "$nlist"T "$nlist"
5601 # Make sure that we snagged all the symbols we need.
5602 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5603 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5604 cat <<EOF > conftest.$ac_ext
5610 # Now generate the symbol file.
5611 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5613 cat <<EOF >> conftest.$ac_ext
5614 #if defined (__STDC__) && __STDC__
5615 # define lt_ptr_t void *
5617 # define lt_ptr_t char *
5621 /* The mapping between symbol names and symbols. */
5626 lt_preloaded_symbols[] =
5629 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5630 cat <<\EOF >> conftest.$ac_ext
5638 # Now try linking the two files.
5639 mv conftest.$ac_objext conftstm.$ac_objext
5640 lt_save_LIBS="$LIBS"
5641 lt_save_CFLAGS="$CFLAGS"
5642 LIBS="conftstm.$ac_objext"
5643 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5645 (eval $ac_link) 2>&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5651 LIBS="$lt_save_LIBS"
5652 CFLAGS="$lt_save_CFLAGS"
5654 echo "cannot find nm_test_func in $nlist" >&5
5657 echo "cannot find nm_test_var in $nlist" >&5
5660 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5663 echo "$progname: failed program was:" >&5
5664 cat conftest.$ac_ext >&5
5666 rm -f conftest* conftst*
5668 # Do not use the global_symbol_pipe unless it works.
5669 if test "$pipe_works" = yes; then
5672 lt_cv_sys_global_symbol_pipe=
5678 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5679 lt_cv_sys_global_symbol_to_cdecl=
5681 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5682 echo "$as_me:$LINENO: result: failed" >&5
5683 echo "${ECHO_T}failed" >&6
5685 echo "$as_me:$LINENO: result: ok" >&5
5686 echo "${ECHO_T}ok" >&6
5689 echo "$as_me:$LINENO: checking for objdir" >&5
5690 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5691 if test "${lt_cv_objdir+set}" = set; then
5692 echo $ECHO_N "(cached) $ECHO_C" >&6
5694 rm -f .libs 2>/dev/null
5695 mkdir .libs 2>/dev/null
5696 if test -d .libs; then
5699 # MS-DOS does not allow filenames that begin with a dot.
5702 rmdir .libs 2>/dev/null
5704 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5705 echo "${ECHO_T}$lt_cv_objdir" >&6
5706 objdir=$lt_cv_objdir
5714 # AIX sometimes has problems with the GCC collect2 program. For some
5715 # reason, if we set the COLLECT_NAMES environment variable, the problems
5716 # vanish in a puff of smoke.
5717 if test "X${COLLECT_NAMES+set}" != Xset; then
5719 export COLLECT_NAMES
5724 # Sed substitution that helps us do robust quoting. It backslashifies
5725 # metacharacters that are still active within double-quoted strings.
5726 Xsed='sed -e s/^X//'
5727 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5729 # Same as above, but do not quote variable references.
5730 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5732 # Sed substitution to delay expansion of an escaped shell variable in a
5733 # double_quote_subst'ed string.
5734 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5736 # Sed substitution to avoid accidental globbing in evaled expressions
5737 no_glob_subst='s/\*/\\\*/g'
5743 default_ofile=libtool
5744 can_build_shared=yes
5746 # All known linkers require a `.a' archive for static linking (except M$VC,
5747 # which needs '.lib').
5749 ltmain="$ac_aux_dir/ltmain.sh"
5750 ofile="$default_ofile"
5751 with_gnu_ld="$lt_cv_prog_gnu_ld"
5753 if test -n "$ac_tool_prefix"; then
5754 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5755 set dummy ${ac_tool_prefix}ar; ac_word=$2
5756 echo "$as_me:$LINENO: checking for $ac_word" >&5
5757 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5758 if test "${ac_cv_prog_AR+set}" = set; then
5759 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 if test -n "$AR"; then
5762 ac_cv_prog_AR="$AR" # Let the user override the test.
5764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5768 test -z "$as_dir" && as_dir=.
5769 for ac_exec_ext in '' $ac_executable_extensions; do
5770 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5771 ac_cv_prog_AR="${ac_tool_prefix}ar"
5772 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5781 if test -n "$AR"; then
5782 echo "$as_me:$LINENO: result: $AR" >&5
5783 echo "${ECHO_T}$AR" >&6
5785 echo "$as_me:$LINENO: result: no" >&5
5786 echo "${ECHO_T}no" >&6
5790 if test -z "$ac_cv_prog_AR"; then
5792 # Extract the first word of "ar", so it can be a program name with args.
5793 set dummy ar; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5797 echo $ECHO_N "(cached) $ECHO_C" >&6
5799 if test -n "$ac_ct_AR"; then
5800 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_ac_ct_AR="ar"
5810 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5816 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5819 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5820 if test -n "$ac_ct_AR"; then
5821 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5822 echo "${ECHO_T}$ac_ct_AR" >&6
5824 echo "$as_me:$LINENO: result: no" >&5
5825 echo "${ECHO_T}no" >&6
5833 if test -n "$ac_tool_prefix"; then
5834 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5835 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5836 echo "$as_me:$LINENO: checking for $ac_word" >&5
5837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5838 if test "${ac_cv_prog_RANLIB+set}" = set; then
5839 echo $ECHO_N "(cached) $ECHO_C" >&6
5841 if test -n "$RANLIB"; then
5842 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5848 test -z "$as_dir" && as_dir=.
5849 for ac_exec_ext in '' $ac_executable_extensions; do
5850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5851 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5860 RANLIB=$ac_cv_prog_RANLIB
5861 if test -n "$RANLIB"; then
5862 echo "$as_me:$LINENO: result: $RANLIB" >&5
5863 echo "${ECHO_T}$RANLIB" >&6
5865 echo "$as_me:$LINENO: result: no" >&5
5866 echo "${ECHO_T}no" >&6
5870 if test -z "$ac_cv_prog_RANLIB"; then
5871 ac_ct_RANLIB=$RANLIB
5872 # Extract the first word of "ranlib", so it can be a program name with args.
5873 set dummy ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5877 echo $ECHO_N "(cached) $ECHO_C" >&6
5879 if test -n "$ac_ct_RANLIB"; then
5880 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_ac_ct_RANLIB="ranlib"
5890 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5899 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5900 if test -n "$ac_ct_RANLIB"; then
5901 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5902 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5904 echo "$as_me:$LINENO: result: no" >&5
5905 echo "${ECHO_T}no" >&6
5908 RANLIB=$ac_ct_RANLIB
5910 RANLIB="$ac_cv_prog_RANLIB"
5913 if test -n "$ac_tool_prefix"; then
5914 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5915 set dummy ${ac_tool_prefix}strip; ac_word=$2
5916 echo "$as_me:$LINENO: checking for $ac_word" >&5
5917 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5918 if test "${ac_cv_prog_STRIP+set}" = set; then
5919 echo $ECHO_N "(cached) $ECHO_C" >&6
5921 if test -n "$STRIP"; then
5922 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5928 test -z "$as_dir" && as_dir=.
5929 for ac_exec_ext in '' $ac_executable_extensions; do
5930 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5931 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 STRIP=$ac_cv_prog_STRIP
5941 if test -n "$STRIP"; then
5942 echo "$as_me:$LINENO: result: $STRIP" >&5
5943 echo "${ECHO_T}$STRIP" >&6
5945 echo "$as_me:$LINENO: result: no" >&5
5946 echo "${ECHO_T}no" >&6
5950 if test -z "$ac_cv_prog_STRIP"; then
5952 # Extract the first word of "strip", so it can be a program name with args.
5953 set dummy strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 if test -n "$ac_ct_STRIP"; then
5960 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5966 test -z "$as_dir" && as_dir=.
5967 for ac_exec_ext in '' $ac_executable_extensions; do
5968 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969 ac_cv_prog_ac_ct_STRIP="strip"
5970 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5976 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5979 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5980 if test -n "$ac_ct_STRIP"; then
5981 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5982 echo "${ECHO_T}$ac_ct_STRIP" >&6
5984 echo "$as_me:$LINENO: result: no" >&5
5985 echo "${ECHO_T}no" >&6
5990 STRIP="$ac_cv_prog_STRIP"
5995 old_CFLAGS="$CFLAGS"
5997 # Set sane defaults for various variables
5998 test -z "$AR" && AR=ar
5999 test -z "$AR_FLAGS" && AR_FLAGS=cru
6000 test -z "$AS" && AS=as
6001 test -z "$CC" && CC=cc
6002 test -z "$LTCC" && LTCC=$CC
6003 test -z "$DLLTOOL" && DLLTOOL=dlltool
6004 test -z "$LD" && LD=ld
6005 test -z "$LN_S" && LN_S="ln -s"
6006 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6007 test -z "$NM" && NM=nm
6008 test -z "$SED" && SED=sed
6009 test -z "$OBJDUMP" && OBJDUMP=objdump
6010 test -z "$RANLIB" && RANLIB=:
6011 test -z "$STRIP" && STRIP=:
6012 test -z "$ac_objext" && ac_objext=o
6014 # Determine commands to create old-style static archives.
6015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6016 old_postinstall_cmds='chmod 644 $oldlib'
6017 old_postuninstall_cmds=
6019 if test -n "$RANLIB"; then
6022 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6025 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6031 # Only perform the check for file, if the check method requires it
6032 case $deplibs_check_method in
6034 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6035 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6036 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6037 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6038 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6045 lt_save_MAGIC_CMD="$MAGIC_CMD"
6046 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6047 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6048 for ac_dir in $ac_dummy; do
6050 test -z "$ac_dir" && ac_dir=.
6051 if test -f $ac_dir/${ac_tool_prefix}file; then
6052 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6053 if test -n "$file_magic_test_file"; then
6054 case $deplibs_check_method in
6056 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6057 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6058 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6059 $EGREP "$file_magic_regex" > /dev/null; then
6064 *** Warning: the command libtool uses to detect shared libraries,
6065 *** $file_magic_cmd, produces output that libtool cannot recognize.
6066 *** The result is that libtool may fail to recognize shared libraries
6067 *** as such. This will affect the creation of libtool libraries that
6068 *** depend on shared libraries, but programs linked with such libtool
6069 *** libraries will work regardless of this problem. Nevertheless, you
6070 *** may want to report the problem to your system manager and/or to
6071 *** bug-libtool@gnu.org
6081 MAGIC_CMD="$lt_save_MAGIC_CMD"
6086 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6087 if test -n "$MAGIC_CMD"; then
6088 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6089 echo "${ECHO_T}$MAGIC_CMD" >&6
6091 echo "$as_me:$LINENO: result: no" >&5
6092 echo "${ECHO_T}no" >&6
6095 if test -z "$lt_cv_path_MAGIC_CMD"; then
6096 if test -n "$ac_tool_prefix"; then
6097 echo "$as_me:$LINENO: checking for file" >&5
6098 echo $ECHO_N "checking for file... $ECHO_C" >&6
6099 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6107 lt_save_MAGIC_CMD="$MAGIC_CMD"
6108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6110 for ac_dir in $ac_dummy; do
6112 test -z "$ac_dir" && ac_dir=.
6113 if test -f $ac_dir/file; then
6114 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6115 if test -n "$file_magic_test_file"; then
6116 case $deplibs_check_method in
6118 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6121 $EGREP "$file_magic_regex" > /dev/null; then
6126 *** Warning: the command libtool uses to detect shared libraries,
6127 *** $file_magic_cmd, produces output that libtool cannot recognize.
6128 *** The result is that libtool may fail to recognize shared libraries
6129 *** as such. This will affect the creation of libtool libraries that
6130 *** depend on shared libraries, but programs linked with such libtool
6131 *** libraries will work regardless of this problem. Nevertheless, you
6132 *** may want to report the problem to your system manager and/or to
6133 *** bug-libtool@gnu.org
6143 MAGIC_CMD="$lt_save_MAGIC_CMD"
6148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6149 if test -n "$MAGIC_CMD"; then
6150 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6151 echo "${ECHO_T}$MAGIC_CMD" >&6
6153 echo "$as_me:$LINENO: result: no" >&5
6154 echo "${ECHO_T}no" >&6
6169 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6170 if test "${enable_libtool_lock+set}" = set; then
6171 enableval="$enable_libtool_lock"
6174 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6177 # Check whether --with-pic or --without-pic was given.
6178 if test "${with_pic+set}" = set; then
6184 test -z "$pic_mode" && pic_mode=default
6186 # Use C for the default configuration in the libtool script
6190 ac_cpp='$CPP $CPPFLAGS'
6191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6196 # Source file extension for C test sources.
6199 # Object file extension for compiled C test sources.
6203 # Code to be used in simple compile tests
6204 lt_simple_compile_test_code="int some_variable = 0;\n"
6206 # Code to be used in simple link tests
6207 lt_simple_link_test_code='int main(){return(0);}\n'
6210 # If no C compiler was specified, use CC.
6213 # Allow CC to be a program name with arguments.
6218 # Check for any special shared library compilation flags.
6221 if test "$GCC" = no; then
6224 lt_prog_cc_shlib='-belf'
6228 if test -n "$lt_prog_cc_shlib"; then
6229 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6230 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6231 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6233 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6234 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6235 lt_cv_prog_cc_can_build_shared=no
6241 # Check to make sure the static flag actually works.
6243 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6244 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6245 if test "${lt_prog_compiler_static_works+set}" = set; then
6246 echo $ECHO_N "(cached) $ECHO_C" >&6
6248 lt_prog_compiler_static_works=no
6249 save_LDFLAGS="$LDFLAGS"
6250 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6251 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6252 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6253 # The compiler can only warn and ignore the option if not recognized
6254 # So say no if there are warnings
6255 if test -s conftest.err; then
6256 # Append any errors to the config.log.
6257 cat conftest.err 1>&5
6259 lt_prog_compiler_static_works=yes
6263 LDFLAGS="$save_LDFLAGS"
6266 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6267 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6269 if test x"$lt_prog_compiler_static_works" = xyes; then
6272 lt_prog_compiler_static=
6278 lt_prog_compiler_no_builtin_flag=
6280 if test "$GCC" = yes; then
6281 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6284 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6285 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6286 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6287 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 lt_cv_prog_compiler_rtti_exceptions=no
6290 ac_outfile=conftest.$ac_objext
6291 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6292 lt_compiler_flag="-fno-rtti -fno-exceptions"
6293 # Insert the option either (1) after the last *FLAGS variable, or
6294 # (2) before a word containing "conftest.", or (3) at the end.
6295 # Note that $ac_compile itself does not contain backslashes and begins
6296 # with a dollar sign (not a hyphen), so the echo should work correctly.
6297 # The option is referenced via a variable to avoid confusing sed.
6298 lt_compile=`echo "$ac_compile" | $SED \
6299 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6300 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6301 -e 's:$: $lt_compiler_flag:'`
6302 (eval echo "\"\$as_me:6302: $lt_compile\"" >&5)
6303 (eval "$lt_compile" 2>conftest.err)
6305 cat conftest.err >&5
6306 echo "$as_me:6306: \$? = $ac_status" >&5
6307 if (exit $ac_status) && test -s "$ac_outfile"; then
6308 # The compiler can only warn and ignore the option if not recognized
6309 # So say no if there are warnings
6310 if test ! -s conftest.err; then
6311 lt_cv_prog_compiler_rtti_exceptions=yes
6317 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6318 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6320 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6321 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6328 lt_prog_compiler_wl=
6329 lt_prog_compiler_pic=
6330 lt_prog_compiler_static=
6332 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6333 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6335 if test "$GCC" = yes; then
6336 lt_prog_compiler_wl='-Wl,'
6337 lt_prog_compiler_static='-static'
6341 # All AIX code is PIC.
6342 if test "$host_cpu" = ia64; then
6343 # AIX 5 now supports IA64 processor
6344 lt_prog_compiler_static='-Bstatic'
6349 # FIXME: we need at least 68020 code to build shared libraries, but
6350 # adding the `-m68020' flag to GCC prevents building anything better,
6352 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6355 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6356 # PIC is the default for these OSes.
6359 mingw* | pw32* | os2*)
6360 # This hack is so that the source file can tell whether it is being
6361 # built for inclusion in a dll (and should export symbols for example).
6362 lt_prog_compiler_pic='-DDLL_EXPORT'
6365 darwin* | rhapsody*)
6366 # PIC is the default on this platform
6367 # Common symbols not allowed in MH_DYLIB files
6368 lt_prog_compiler_pic='-fno-common'
6372 # Just because we use GCC doesn't mean we suddenly get shared libraries
6373 # on systems that don't support them.
6374 lt_prog_compiler_can_build_shared=no
6379 if test -d /usr/nec; then
6380 lt_prog_compiler_pic=-Kconform_pic
6385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6392 lt_prog_compiler_pic='-fPIC'
6398 lt_prog_compiler_pic='-fPIC'
6402 # PORTME Check for flag to pass linker flags through the system compiler.
6405 lt_prog_compiler_wl='-Wl,'
6406 if test "$host_cpu" = ia64; then
6407 # AIX 5 now supports IA64 processor
6408 lt_prog_compiler_static='-Bstatic'
6410 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6414 mingw* | pw32* | os2*)
6415 # This hack is so that the source file can tell whether it is being
6416 # built for inclusion in a dll (and should export symbols for example).
6417 lt_prog_compiler_pic='-DDLL_EXPORT'
6420 hpux9* | hpux10* | hpux11*)
6421 lt_prog_compiler_wl='-Wl,'
6422 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6429 lt_prog_compiler_pic='+Z'
6432 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6433 lt_prog_compiler_static='${wl}-a ${wl}archive'
6436 irix5* | irix6* | nonstopux*)
6437 lt_prog_compiler_wl='-Wl,'
6438 # PIC (with -KPIC) is the default.
6439 lt_prog_compiler_static='-non_shared'
6443 lt_prog_compiler_pic='-KPIC'
6444 lt_prog_compiler_static='-Bstatic'
6450 lt_prog_compiler_wl='-Wl,'
6451 lt_prog_compiler_pic='-KPIC'
6452 lt_prog_compiler_static='-static'
6455 lt_prog_compiler_wl='-Wl,'
6456 # All Alpha code is PIC.
6457 lt_prog_compiler_static='-non_shared'
6462 osf3* | osf4* | osf5*)
6463 lt_prog_compiler_wl='-Wl,'
6464 # All OSF/1 code is PIC.
6465 lt_prog_compiler_static='-non_shared'
6469 lt_prog_compiler_pic='-Kpic'
6470 lt_prog_compiler_static='-dn'
6474 lt_prog_compiler_wl='-Wl,'
6475 lt_prog_compiler_pic='-KPIC'
6476 lt_prog_compiler_static='-Bstatic'
6480 lt_prog_compiler_wl='-Qoption ld '
6481 lt_prog_compiler_pic='-PIC'
6482 lt_prog_compiler_static='-Bstatic'
6485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6486 lt_prog_compiler_wl='-Wl,'
6487 lt_prog_compiler_pic='-KPIC'
6488 lt_prog_compiler_static='-Bstatic'
6492 if test -d /usr/nec ;then
6493 lt_prog_compiler_pic='-Kconform_pic'
6494 lt_prog_compiler_static='-Bstatic'
6499 lt_prog_compiler_pic='-pic'
6500 lt_prog_compiler_static='-Bstatic'
6504 lt_prog_compiler_can_build_shared=no
6509 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6510 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6513 # Check to make sure the PIC flag actually works.
6515 if test -n "$lt_prog_compiler_pic"; then
6517 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6518 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6519 if test "${lt_prog_compiler_pic_works+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 lt_prog_compiler_pic_works=no
6523 ac_outfile=conftest.$ac_objext
6524 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6525 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6526 # Insert the option either (1) after the last *FLAGS variable, or
6527 # (2) before a word containing "conftest.", or (3) at the end.
6528 # Note that $ac_compile itself does not contain backslashes and begins
6529 # with a dollar sign (not a hyphen), so the echo should work correctly.
6530 # The option is referenced via a variable to avoid confusing sed.
6531 lt_compile=`echo "$ac_compile" | $SED \
6532 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6533 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6534 -e 's:$: $lt_compiler_flag:'`
6535 (eval echo "\"\$as_me:6535: $lt_compile\"" >&5)
6536 (eval "$lt_compile" 2>conftest.err)
6538 cat conftest.err >&5
6539 echo "$as_me:6539: \$? = $ac_status" >&5
6540 if (exit $ac_status) && test -s "$ac_outfile"; then
6541 # The compiler can only warn and ignore the option if not recognized
6542 # So say no if there are warnings
6543 if test ! -s conftest.err; then
6544 lt_prog_compiler_pic_works=yes
6550 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6551 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6553 if test x"$lt_prog_compiler_pic_works" = xyes; then
6554 case $lt_prog_compiler_pic in
6556 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6559 lt_prog_compiler_pic=
6560 lt_prog_compiler_can_build_shared=no
6565 # For platforms which do not support PIC, -DPIC is meaningless:
6567 lt_prog_compiler_pic=
6570 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6574 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6575 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6576 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6577 echo $ECHO_N "(cached) $ECHO_C" >&6
6579 lt_cv_prog_compiler_c_o=no
6580 $rm -r conftest 2>/dev/null
6584 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6586 lt_compiler_flag="-o out/conftest2.$ac_objext"
6587 # Insert the option either (1) after the last *FLAGS variable, or
6588 # (2) before a word containing "conftest.", or (3) at the end.
6589 # Note that $ac_compile itself does not contain backslashes and begins
6590 # with a dollar sign (not a hyphen), so the echo should work correctly.
6591 lt_compile=`echo "$ac_compile" | $SED \
6592 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6594 -e 's:$: $lt_compiler_flag:'`
6595 (eval echo "\"\$as_me:6595: $lt_compile\"" >&5)
6596 (eval "$lt_compile" 2>out/conftest.err)
6598 cat out/conftest.err >&5
6599 echo "$as_me:6599: \$? = $ac_status" >&5
6600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6602 # The compiler can only warn and ignore the option if not recognized
6603 # So say no if there are warnings
6604 if test ! -s out/conftest.err; then
6605 lt_cv_prog_compiler_c_o=yes
6610 # SGI C++ compiler will create directory out/ii_files/ for
6611 # template instantiation
6612 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6613 $rm out/* && rmdir out
6619 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6620 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6623 hard_links="nottested"
6624 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6625 # do not overwrite the value of need_locks provided by the user
6626 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6627 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6630 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6632 ln conftest.a conftest.b 2>&5 || hard_links=no
6633 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6634 echo "$as_me:$LINENO: result: $hard_links" >&5
6635 echo "${ECHO_T}$hard_links" >&6
6636 if test "$hard_links" = no; then
6637 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6638 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6645 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6646 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6649 allow_undefined_flag=
6650 enable_shared_with_static_runtimes=no
6652 archive_expsym_cmds=
6653 old_archive_From_new_cmds=
6654 old_archive_from_expsyms_cmds=
6655 export_dynamic_flag_spec=
6656 whole_archive_flag_spec=
6657 thread_safe_flag_spec=
6658 hardcode_libdir_flag_spec=
6659 hardcode_libdir_flag_spec_ld=
6660 hardcode_libdir_separator=
6663 hardcode_shlibpath_var=unsupported
6664 link_all_deplibs=unknown
6665 hardcode_automatic=no
6668 always_export_symbols=no
6669 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6670 # include_expsyms should be a list of space-separated symbols to be *always*
6671 # included in the symbol list
6673 # exclude_expsyms can be an extended regexp of symbols to exclude
6674 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6675 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6676 # as well as any symbol that contains `d'.
6677 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6678 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6679 # platforms (ab)use it in PIC code, but their linkers get confused if
6680 # the symbol is explicitly referenced. Since portable code cannot
6681 # rely on this symbol name, it's probably fine to never include it in
6682 # preloaded symbol tables.
6683 extract_expsyms_cmds=
6686 cygwin* | mingw* | pw32*)
6687 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6688 # When not using gcc, we currently assume that we are using
6689 # Microsoft Visual C++.
6690 if test "$GCC" != yes; then
6700 if test "$with_gnu_ld" = yes; then
6701 # If archive_cmds runs LD, not CC, wlarc should be empty
6704 # See if GNU ld supports shared libraries.
6706 aix3* | aix4* | aix5*)
6707 # On AIX/PPC, the GNU linker is very broken
6708 if test "$host_cpu" != ia64; then
6712 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6713 *** to be unable to reliably create shared libraries on AIX.
6714 *** Therefore, libtool is disabling shared libraries support. If you
6715 *** really care for shared libraries, you may want to modify your PATH
6716 *** so that a non-GNU linker is found, and then restart.
6723 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)'
6724 hardcode_libdir_flag_spec='-L$libdir'
6725 hardcode_minus_L=yes
6727 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6728 # that the semantics of dynamic libraries on AmigaOS, at least up
6729 # to version 4, is to share data among multiple programs linked
6730 # with the same dynamic library. Since this doesn't match the
6731 # behavior of shared libraries on other platforms, we can't use
6737 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6738 allow_undefined_flag=unsupported
6739 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6740 # support --undefined. This deserves some investigation. FIXME
6741 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6747 cygwin* | mingw* | pw32*)
6748 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6749 # as there is no search path for DLLs.
6750 hardcode_libdir_flag_spec='-L$libdir'
6751 allow_undefined_flag=unsupported
6752 always_export_symbols=no
6753 enable_shared_with_static_runtimes=yes
6754 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6756 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6758 # If the export-symbols file already is a .def file (1st line
6759 # is EXPORTS), use it as is; otherwise, prepend...
6760 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6761 cp $export_symbols $output_objdir/$soname.def;
6763 echo EXPORTS > $output_objdir/$soname.def;
6764 cat $export_symbols >> $output_objdir/$soname.def;
6766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6772 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6774 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6777 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6778 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6783 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6787 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6788 *** create shared libraries on Solaris systems. Therefore, libtool
6789 *** is disabling shared libraries support. We urge you to upgrade GNU
6790 *** binutils to release 2.9.1 or newer. Another option is to modify
6791 *** your PATH or compiler configuration so that the native linker is
6792 *** used, and then restart.
6795 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6807 hardcode_shlibpath_var=no
6811 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6813 archive_cmds="$tmp_archive_cmds"
6814 supports_anon_versioning=no
6815 case `$LD -v 2>/dev/null` in
6816 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6817 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6818 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6819 *\ 2.11.*) ;; # other 2.11 versions
6820 *) supports_anon_versioning=yes ;;
6822 if test $supports_anon_versioning = yes; then
6823 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6824 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6825 $echo "local: *; };" >> $output_objdir/$libname.ver~
6826 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6828 archive_expsym_cmds="$tmp_archive_cmds"
6837 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6838 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6839 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6846 if test "$ld_shlibs" = yes; then
6847 runpath_var=LD_RUN_PATH
6848 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6849 export_dynamic_flag_spec='${wl}--export-dynamic'
6850 # ancient GNU ld didn't support --whole-archive et. al.
6851 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6852 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6854 whole_archive_flag_spec=
6858 # PORTME fill in a description of your system's linker (not GNU ld)
6861 allow_undefined_flag=unsupported
6862 always_export_symbols=yes
6863 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'
6864 # Note: this linker hardcodes the directories in LIBPATH if there
6865 # are no directories specified by -L.
6866 hardcode_minus_L=yes
6867 if test "$GCC" = yes && test -z "$link_static_flag"; then
6868 # Neither direct hardcoding nor static linking is supported with a
6870 hardcode_direct=unsupported
6875 if test "$host_cpu" = ia64; then
6876 # On IA64, the linker does run time linking by default, so we don't
6877 # have to do anything special.
6878 aix_use_runtimelinking=no
6879 exp_sym_flag='-Bexport'
6882 # If we're using GNU nm, then we don't want the "-C" option.
6883 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6884 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6885 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'
6887 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'
6889 aix_use_runtimelinking=no
6891 # Test if we are trying to use run time linking or normal
6892 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6893 # need to do runtime linking.
6894 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6895 for ld_flag in $LDFLAGS; do
6896 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6897 aix_use_runtimelinking=yes
6903 exp_sym_flag='-bexport'
6904 no_entry_flag='-bnoentry'
6907 # When large executables or shared objects are built, AIX ld can
6908 # have problems creating the table of contents. If linking a library
6909 # or program results in "error TOC overflow" add -mminimal-toc to
6910 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6911 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6915 hardcode_libdir_separator=':'
6916 link_all_deplibs=yes
6918 if test "$GCC" = yes; then
6919 case $host_os in aix4.012|aix4.012.*)
6920 # We only want to do this on AIX 4.2 and lower, the check
6921 # below for broken collect2 doesn't work under 4.3+
6922 collect2name=`${CC} -print-prog-name=collect2`
6923 if test -f "$collect2name" && \
6924 strings "$collect2name" | grep resolve_lib_name >/dev/null
6926 # We have reworked collect2
6929 # We have old collect2
6930 hardcode_direct=unsupported
6931 # It fails to find uninstalled libraries when the uninstalled
6932 # path is not listed in the libpath. Setting hardcode_minus_L
6933 # to unsupported forces relinking
6934 hardcode_minus_L=yes
6935 hardcode_libdir_flag_spec='-L$libdir'
6936 hardcode_libdir_separator=
6939 shared_flag='-shared'
6942 if test "$host_cpu" = ia64; then
6943 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6944 # chokes on -Wl,-G. The following line is correct:
6947 if test "$aix_use_runtimelinking" = yes; then
6948 shared_flag='${wl}-G'
6950 shared_flag='${wl}-bM:SRE'
6955 # It seems that -bexpall does not export symbols beginning with
6956 # underscore (_), so it is better to generate a list of symbols to export.
6957 always_export_symbols=yes
6958 if test "$aix_use_runtimelinking" = yes; then
6959 # Warning - without using the other runtime loading flags (-brtl),
6960 # -berok will link without error, but may produce a broken library.
6961 allow_undefined_flag='-berok'
6962 # Determine the default libpath from the value encoded in an empty executable.
6963 cat >conftest.$ac_ext <<_ACEOF
6964 #line $LINENO "configure"
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6979 rm -f conftest.$ac_objext conftest$ac_exeext
6980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6981 (eval $ac_link) 2>&5
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); } &&
6985 { ac_try='test -s conftest$ac_exeext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6992 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6994 # Check for a 64-bit object if we didn't find anything.
6995 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7002 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7003 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7005 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7006 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7008 if test "$host_cpu" = ia64; then
7009 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7010 allow_undefined_flag="-z nodefs"
7011 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7013 # Determine the default libpath from the value encoded in an empty executable.
7014 cat >conftest.$ac_ext <<_ACEOF
7015 #line $LINENO "configure"
7018 cat confdefs.h >>conftest.$ac_ext
7019 cat >>conftest.$ac_ext <<_ACEOF
7020 /* end confdefs.h. */
7030 rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7032 (eval $ac_link) 2>&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } &&
7036 { ac_try='test -s conftest$ac_exeext'
7037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); }; }; then
7043 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7045 # Check for a 64-bit object if we didn't find anything.
7046 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7049 echo "$as_me: failed program was:" >&5
7050 sed 's/^/| /' conftest.$ac_ext >&5
7053 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7054 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7056 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7057 # Warning - without using the other run time loading flags,
7058 # -berok will link without error, but may produce a broken library.
7059 no_undefined_flag=' ${wl}-bernotok'
7060 allow_undefined_flag=' ${wl}-berok'
7061 # -bexpall does not export symbols beginning with underscore (_)
7062 always_export_symbols=yes
7063 # Exported symbols can be pulled into shared objects from archives
7064 whole_archive_flag_spec=' '
7065 archive_cmds_need_lc=yes
7066 # This is similar to how AIX traditionally builds it's shared libraries.
7067 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7073 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)'
7074 hardcode_libdir_flag_spec='-L$libdir'
7075 hardcode_minus_L=yes
7076 # see comment about different semantics on the GNU ld section
7081 export_dynamic_flag_spec=-rdynamic
7084 cygwin* | mingw* | pw32*)
7085 # When not using gcc, we currently assume that we are using
7086 # Microsoft Visual C++.
7087 # hardcode_libdir_flag_spec is actually meaningless, as there is
7088 # no search path for DLLs.
7089 hardcode_libdir_flag_spec=' '
7090 allow_undefined_flag=unsupported
7091 # Tell ltmain to make .lib files, not .a files.
7093 # Tell ltmain to make .dll files, not .so files.
7095 # FIXME: Setting linknames here is a bad hack.
7096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7097 # The linker will automatically build a .lib file if we build a DLL.
7098 old_archive_From_new_cmds='true'
7099 # FIXME: Should let the user specify the lib program.
7100 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7101 fix_srcfile_path='`cygpath -w "$srcfile"`'
7102 enable_shared_with_static_runtimes=yes
7105 darwin* | rhapsody*)
7106 if test "$GXX" = yes ; then
7107 archive_cmds_need_lc=no
7109 rhapsody* | darwin1.[012])
7110 allow_undefined_flag='-undefined suppress'
7113 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7114 allow_undefined_flag='-flat_namespace -undefined suppress'
7116 case ${MACOSX_DEPLOYMENT_TARGET} in
7118 allow_undefined_flag='-flat_namespace -undefined suppress'
7121 allow_undefined_flag='-undefined dynamic_lookup'
7127 lt_int_apple_cc_single_mod=no
7128 output_verbose_link_cmd='echo'
7129 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7130 lt_int_apple_cc_single_mod=yes
7132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7133 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7135 archive_cmds='$CC -r ${wl}-bind_at_load -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'
7137 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7138 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7139 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7140 archive_expsym_cmds='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}'
7142 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
7144 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}'
7146 hardcode_automatic=yes
7147 hardcode_shlibpath_var=unsupported
7148 whole_archive_flag_spec='-all_load $convenience'
7149 link_all_deplibs=yes
7156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7157 hardcode_libdir_flag_spec='-L$libdir'
7158 hardcode_shlibpath_var=no
7165 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7166 # support. Future versions do this automatically, but an explicit c++rt0.o
7167 # does not break anything, and helps significantly (at the cost of a little
7170 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7171 hardcode_libdir_flag_spec='-R$libdir'
7173 hardcode_shlibpath_var=no
7176 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7178 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7180 hardcode_minus_L=yes
7181 hardcode_shlibpath_var=no
7184 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7185 freebsd* | kfreebsd*-gnu)
7186 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7187 hardcode_libdir_flag_spec='-R$libdir'
7189 hardcode_shlibpath_var=no
7193 if test "$GCC" = yes; then
7194 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'
7196 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'
7198 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7199 hardcode_libdir_separator=:
7202 # hardcode_minus_L: Not really in the search PATH,
7203 # but as the default location of the library.
7204 hardcode_minus_L=yes
7205 export_dynamic_flag_spec='${wl}-E'
7209 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7212 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7215 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7221 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7224 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7228 if test "$with_gnu_ld" = no; then
7231 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7232 hardcode_libdir_flag_spec_ld='+b $libdir'
7233 hardcode_libdir_separator=:
7235 hardcode_shlibpath_var=no
7238 hardcode_libdir_flag_spec='-L$libdir'
7240 hardcode_shlibpath_var=no
7242 # hardcode_minus_L: Not really in the search PATH,
7243 # but as the default location of the library.
7244 hardcode_minus_L=yes
7247 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7248 hardcode_libdir_separator=:
7250 export_dynamic_flag_spec='${wl}-E'
7252 # hardcode_minus_L: Not really in the search PATH,
7253 # but as the default location of the library.
7254 hardcode_minus_L=yes
7260 irix5* | irix6* | nonstopux*)
7261 if test "$GCC" = yes; then
7262 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'
7264 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'
7265 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7267 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7268 hardcode_libdir_separator=:
7269 link_all_deplibs=yes
7272 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7273 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7274 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7276 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7278 hardcode_libdir_flag_spec='-R$libdir'
7280 hardcode_shlibpath_var=no
7284 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7286 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7287 hardcode_libdir_separator=:
7288 hardcode_shlibpath_var=no
7293 hardcode_shlibpath_var=no
7294 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7295 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7296 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7297 export_dynamic_flag_spec='${wl}-E'
7300 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7301 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7302 hardcode_libdir_flag_spec='-R$libdir'
7305 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7306 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7313 hardcode_libdir_flag_spec='-L$libdir'
7314 hardcode_minus_L=yes
7315 allow_undefined_flag=unsupported
7316 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'
7317 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7321 if test "$GCC" = yes; then
7322 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7323 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'
7325 allow_undefined_flag=' -expect_unresolved \*'
7326 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'
7328 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7329 hardcode_libdir_separator=:
7332 osf4* | osf5*) # as osf3* with the addition of -msym flag
7333 if test "$GCC" = yes; then
7334 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7335 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'
7336 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7338 allow_undefined_flag=' -expect_unresolved \*'
7339 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'
7340 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7341 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7343 # Both c and cxx compiler support -rpath directly
7344 hardcode_libdir_flag_spec='-rpath $libdir'
7346 hardcode_libdir_separator=:
7350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7351 hardcode_shlibpath_var=no
7352 export_dynamic_flag_spec='${wl}-Bexport'
7353 runpath_var=LD_RUN_PATH
7354 hardcode_runpath_var=yes
7358 no_undefined_flag=' -z text'
7359 if test "$GCC" = yes; then
7360 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7361 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7362 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7364 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7365 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7366 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7368 hardcode_libdir_flag_spec='-R$libdir'
7369 hardcode_shlibpath_var=no
7371 solaris2.[0-5] | solaris2.[0-5].*) ;;
7372 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7373 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7375 link_all_deplibs=yes
7379 if test "x$host_vendor" = xsequent; then
7380 # Use $CC to link under sequent, because it throws in some extra .o
7381 # files that make .init and .fini sections work.
7382 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7384 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7386 hardcode_libdir_flag_spec='-L$libdir'
7388 hardcode_minus_L=yes
7389 hardcode_shlibpath_var=no
7393 case $host_vendor in
7395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7396 hardcode_direct=yes # is this really true???
7399 ## LD is ld it makes a PLAMLIB
7400 ## CC just makes a GrossModule.
7401 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7402 reload_cmds='$CC -r -o $output$reload_objs'
7406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7407 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7410 runpath_var='LD_RUN_PATH'
7411 hardcode_shlibpath_var=no
7415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_shlibpath_var=no
7417 export_dynamic_flag_spec='-Bexport'
7421 if test -d /usr/nec; then
7422 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7423 hardcode_shlibpath_var=no
7424 runpath_var=LD_RUN_PATH
7425 hardcode_runpath_var=yes
7431 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7434 hardcode_shlibpath_var=no
7435 hardcode_runpath_var=yes
7436 runpath_var=LD_RUN_PATH
7439 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7440 no_undefined_flag='${wl}-z ${wl}text'
7441 if test "$GCC" = yes; then
7442 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7444 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7446 runpath_var='LD_RUN_PATH'
7447 hardcode_shlibpath_var=no
7451 no_undefined_flag=' -z text'
7452 # $CC -shared without GNU ld will not create a library from C++
7453 # object files and a static libstdc++, better avoid it by now
7454 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7456 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7457 hardcode_libdir_flag_spec=
7458 hardcode_shlibpath_var=no
7459 runpath_var='LD_RUN_PATH'
7463 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464 hardcode_libdir_flag_spec='-L$libdir'
7465 hardcode_shlibpath_var=no
7474 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7475 echo "${ECHO_T}$ld_shlibs" >&6
7476 test "$ld_shlibs" = no && can_build_shared=no
7478 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7479 if test "$GCC" = yes; then
7480 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7484 # Do we need to explicitly link libc?
7486 case "x$archive_cmds_need_lc" in
7488 # Assume -lc should be added
7489 archive_cmds_need_lc=yes
7491 if test "$enable_shared" = yes && test "$GCC" = yes; then
7492 case $archive_cmds in
7494 # FIXME: we may have to deal with multi-command sequences.
7497 # Test whether the compiler implicitly links with -lc since on some
7498 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7499 # to ld, don't add -lc before -lgcc.
7500 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7501 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7503 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7506 (eval $ac_compile) 2>&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } 2>conftest.err; then
7512 libobjs=conftest.$ac_objext
7514 wl=$lt_prog_compiler_wl
7520 lt_save_allow_undefined_flag=$allow_undefined_flag
7521 allow_undefined_flag=
7522 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7523 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7526 (exit $ac_status); }
7528 archive_cmds_need_lc=no
7530 archive_cmds_need_lc=yes
7532 allow_undefined_flag=$lt_save_allow_undefined_flag
7534 cat conftest.err 1>&5
7537 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7538 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7545 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7546 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7548 libname_spec='lib$name'
7556 shlibpath_overrides_runpath=unknown
7558 dynamic_linker="$host_os ld.so"
7559 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7560 if test "$GCC" = yes; then
7561 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7562 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7563 # if the path contains ";" then we assume it to be the separator
7564 # otherwise default to the standard path separator (i.e. ":") - it is
7565 # assumed that no part of a normal pathname contains ";" but that should
7566 # okay in the real world where ";" in dirpaths is itself problematic.
7567 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7569 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7572 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7574 need_lib_prefix=unknown
7575 hardcode_into_libs=no
7577 # when you set need_version to no, make sure it does not cause -set_version
7578 # flags to be left without arguments
7579 need_version=unknown
7584 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7585 shlibpath_var=LIBPATH
7587 # AIX 3 has no versioning support, so we append a major version to the name.
7588 soname_spec='${libname}${release}${shared_ext}$major'
7595 hardcode_into_libs=yes
7596 if test "$host_cpu" = ia64; then
7597 # AIX 5 supports IA64
7598 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7599 shlibpath_var=LD_LIBRARY_PATH
7601 # With GCC up to 2.95.x, collect2 would create an import file
7602 # for dependence libraries. The import file would start with
7603 # the line `#! .'. This would cause the generated library to
7604 # depend on `.', always an invalid library. This was fixed in
7605 # development snapshots of GCC prior to 3.0.
7607 aix4 | aix4.[01] | aix4.[01].*)
7608 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7610 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7617 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7618 # soname into executable. Probably we can add versioning support to
7619 # collect2, so additional links can be useful in future.
7620 if test "$aix_use_runtimelinking" = yes; then
7621 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7622 # instead of lib<name>.a to let people know that these are not
7623 # typical AIX shared libraries.
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7626 # We preserve .a as extension for shared libraries through AIX4.2
7627 # and later when we are not doing run time linking.
7628 library_names_spec='${libname}${release}.a $libname.a'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7631 shlibpath_var=LIBPATH
7636 library_names_spec='$libname.ixlibrary $libname.a'
7637 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7638 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'
7642 library_names_spec='${libname}${shared_ext}'
7643 dynamic_linker="$host_os ld.so"
7644 shlibpath_var=LIBRARY_PATH
7650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7651 soname_spec='${libname}${release}${shared_ext}$major'
7652 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7653 shlibpath_var=LD_LIBRARY_PATH
7654 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7655 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7656 # the default ld.so.conf also contains /usr/contrib/lib and
7657 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7658 # libtool to hard-code these into programs
7661 cygwin* | mingw* | pw32*)
7662 version_type=windows
7667 case $GCC,$host_os in
7668 yes,cygwin* | yes,mingw* | yes,pw32*)
7669 library_names_spec='$libname.dll.a'
7670 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7671 postinstall_cmds='base_file=`basename \${file}`~
7672 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7673 dldir=$destdir/`dirname \$dlpath`~
7674 test -d \$dldir || mkdir -p \$dldir~
7675 $install_prog $dir/$dlname \$dldir/$dlname'
7676 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7677 dlpath=$dir/\$dldll~
7679 shlibpath_overrides_runpath=yes
7683 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7684 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7685 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7688 # MinGW DLLs use traditional 'lib' prefix
7689 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7690 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7691 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7692 # It is most probably a Windows format PATH printed by
7693 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7694 # path with ; separators, and with drive letters. We can handle the
7695 # drive letters (cygwin fileutils understands them), so leave them,
7696 # especially as we might pass files found there to a mingw objdump,
7697 # which wouldn't understand a cygwinified path. Ahh.
7698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7704 # pw32 DLLs use 'pw' prefix rather than 'lib'
7705 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7711 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7714 dynamic_linker='Win32 ld.exe'
7715 # FIXME: first we should search . and the directory the executable is in
7719 darwin* | rhapsody*)
7720 dynamic_linker="$host_os dyld"
7724 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7725 soname_spec='${libname}${release}${major}$shared_ext'
7726 shlibpath_overrides_runpath=yes
7727 shlibpath_var=DYLD_LIBRARY_PATH
7728 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7729 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7730 if test "$GCC" = yes; then
7731 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
7733 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7735 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7743 soname_spec='${libname}${release}${shared_ext}$major'
7744 shlibpath_var=LD_LIBRARY_PATH
7755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7756 soname_spec='${libname}${release}${shared_ext}$major'
7757 shlibpath_var=LD_LIBRARY_PATH
7758 shlibpath_overrides_runpath=no
7759 hardcode_into_libs=yes
7760 dynamic_linker='GNU ld.so'
7764 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7765 version_type=freebsd-$objformat
7766 case $version_type in
7768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7777 shlibpath_var=LD_LIBRARY_PATH
7780 shlibpath_overrides_runpath=yes
7782 freebsd3.01* | freebsdelf3.01*)
7783 shlibpath_overrides_runpath=yes
7784 hardcode_into_libs=yes
7787 shlibpath_overrides_runpath=no
7788 hardcode_into_libs=yes
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7798 soname_spec='${libname}${release}${shared_ext}$major'
7799 shlibpath_var=LD_LIBRARY_PATH
7800 hardcode_into_libs=yes
7803 hpux9* | hpux10* | hpux11*)
7804 # Give a soname corresponding to the major version so that dld.sl refuses to
7805 # link against other versions.
7812 hardcode_into_libs=yes
7813 dynamic_linker="$host_os dld.so"
7814 shlibpath_var=LD_LIBRARY_PATH
7815 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7817 soname_spec='${libname}${release}${shared_ext}$major'
7818 if test "X$HPUX_IA64_MODE" = X32; then
7819 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7821 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7823 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7827 hardcode_into_libs=yes
7828 dynamic_linker="$host_os dld.sl"
7829 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7830 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7832 soname_spec='${libname}${release}${shared_ext}$major'
7833 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7834 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7838 dynamic_linker="$host_os dld.sl"
7839 shlibpath_var=SHLIB_PATH
7840 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7842 soname_spec='${libname}${release}${shared_ext}$major'
7845 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7846 postinstall_cmds='chmod 555 $lib'
7849 irix5* | irix6* | nonstopux*)
7851 nonstopux*) version_type=nonstopux ;;
7853 if test "$lt_cv_prog_gnu_ld" = yes; then
7861 soname_spec='${libname}${release}${shared_ext}$major'
7862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7864 irix5* | nonstopux*)
7868 case $LD in # libtool.m4 will add one of these switches to LD
7869 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7870 libsuff= shlibsuff= libmagic=32-bit;;
7871 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7872 libsuff=32 shlibsuff=N32 libmagic=N32;;
7873 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7874 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7875 *) libsuff= shlibsuff= libmagic=never-match;;
7879 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7880 shlibpath_overrides_runpath=no
7881 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7882 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7883 hardcode_into_libs=yes
7886 # No shared lib support for Linux oldld, aout, or coff.
7887 linux*oldld* | linux*aout* | linux*coff*)
7891 # This must be Linux ELF.
7896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7897 soname_spec='${libname}${release}${shared_ext}$major'
7898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7899 shlibpath_var=LD_LIBRARY_PATH
7900 shlibpath_overrides_runpath=no
7901 # This implies no fast_install, which is unacceptable.
7902 # Some rework will be needed to allow for fast_install
7903 # before this can be enabled.
7904 hardcode_into_libs=yes
7906 # Append ld.so.conf contents to the search path
7907 if test -f /etc/ld.so.conf; then
7908 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7909 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7912 # We used to test for /lib/ld.so.1 and disable shared libraries on
7913 # powerpc, because MkLinux only supported shared libraries with the
7914 # GNU dynamic linker. Since this was broken with cross compilers,
7915 # most powerpc-linux boxes support dynamic linking these days and
7916 # people can always --disable-shared, the test was removed, and we
7917 # assume the GNU/Linux dynamic linker is in use.
7918 dynamic_linker='GNU/Linux ld.so'
7925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7926 soname_spec='${libname}${release}${shared_ext}$major'
7927 shlibpath_var=LD_LIBRARY_PATH
7928 shlibpath_overrides_runpath=no
7929 hardcode_into_libs=yes
7930 dynamic_linker='NetBSD ld.elf_so'
7937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7938 soname_spec='${libname}${release}${shared_ext}$major'
7939 shlibpath_var=LD_LIBRARY_PATH
7940 shlibpath_overrides_runpath=no
7941 hardcode_into_libs=yes
7942 dynamic_linker='GNU ld.so'
7949 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7951 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7952 dynamic_linker='NetBSD (a.out) ld.so'
7954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7955 soname_spec='${libname}${release}${shared_ext}$major'
7956 dynamic_linker='NetBSD ld.elf_so'
7958 shlibpath_var=LD_LIBRARY_PATH
7959 shlibpath_overrides_runpath=yes
7960 hardcode_into_libs=yes
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7966 shlibpath_var=LD_LIBRARY_PATH
7967 shlibpath_overrides_runpath=yes
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7975 soname_spec='${libname}${release}${shared_ext}$major'
7976 shlibpath_var=LD_LIBRARY_PATH
7977 shlibpath_overrides_runpath=yes
7984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7986 shlibpath_var=LD_LIBRARY_PATH
7987 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7989 openbsd2.[89] | openbsd2.[89].*)
7990 shlibpath_overrides_runpath=no
7993 shlibpath_overrides_runpath=yes
7997 shlibpath_overrides_runpath=yes
8002 libname_spec='$name'
8005 library_names_spec='$libname${shared_ext} $libname.a'
8006 dynamic_linker='OS/2 ld.exe'
8007 shlibpath_var=LIBPATH
8010 osf3* | osf4* | osf5*)
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8016 shlibpath_var=LD_LIBRARY_PATH
8017 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8018 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8023 soname_spec='${libname}${release}${shared_ext}$major'
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8025 shlibpath_var=LD_LIBRARY_PATH
8032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8033 soname_spec='${libname}${release}${shared_ext}$major'
8034 shlibpath_var=LD_LIBRARY_PATH
8035 shlibpath_overrides_runpath=yes
8036 hardcode_into_libs=yes
8037 # ldd complains unless libraries are executable
8038 postinstall_cmds='chmod +x $lib'
8043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8044 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8045 shlibpath_var=LD_LIBRARY_PATH
8046 shlibpath_overrides_runpath=yes
8047 if test "$with_gnu_ld" = yes; then
8053 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8057 shlibpath_var=LD_LIBRARY_PATH
8058 case $host_vendor in
8060 shlibpath_overrides_runpath=no
8062 export_dynamic_flag_spec='${wl}-Blargedynsym'
8063 runpath_var=LD_RUN_PATH
8071 shlibpath_overrides_runpath=no
8072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8078 if test -d /usr/nec ;then
8080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8081 soname_spec='$libname${shared_ext}.$major'
8082 shlibpath_var=LD_LIBRARY_PATH
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8089 soname_spec='${libname}${release}${shared_ext}$major'
8090 shlibpath_var=LD_LIBRARY_PATH
8097 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8098 echo "${ECHO_T}$dynamic_linker" >&6
8099 test "$dynamic_linker" = no && can_build_shared=no
8101 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8102 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8104 if test -n "$hardcode_libdir_flag_spec" || \
8105 test -n "$runpath_var " || \
8106 test "X$hardcode_automatic"="Xyes" ; then
8108 # We can hardcode non-existant directories.
8109 if test "$hardcode_direct" != no &&
8110 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8111 # have to relink, otherwise we might link with an installed library
8112 # when we should be linking with a yet-to-be-installed one
8113 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8114 test "$hardcode_minus_L" != no; then
8115 # Linking always hardcodes the temporary library directory.
8116 hardcode_action=relink
8118 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8119 hardcode_action=immediate
8122 # We cannot hardcode anything, or else we can only hardcode existing
8124 hardcode_action=unsupported
8126 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8127 echo "${ECHO_T}$hardcode_action" >&6
8129 if test "$hardcode_action" = relink; then
8130 # Fast installation is not supported
8131 enable_fast_install=no
8132 elif test "$shlibpath_overrides_runpath" = yes ||
8133 test "$enable_shared" = no; then
8134 # Fast installation is not necessary
8135 enable_fast_install=needless
8140 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8141 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8142 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8143 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8144 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8145 echo "$as_me:$LINENO: result: yes" >&5
8146 echo "${ECHO_T}yes" >&6
8148 # FIXME - insert some real tests, host_os isn't really good enough
8151 if test -n "$STRIP" ; then
8152 striplib="$STRIP -x"
8153 echo "$as_me:$LINENO: result: yes" >&5
8154 echo "${ECHO_T}yes" >&6
8156 echo "$as_me:$LINENO: result: no" >&5
8157 echo "${ECHO_T}no" >&6
8161 echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6
8167 if test "x$enable_dlopen" != xyes; then
8168 enable_dlopen=unknown
8169 enable_dlopen_self=unknown
8170 enable_dlopen_self_static=unknown
8177 lt_cv_dlopen="load_add_on"
8179 lt_cv_dlopen_self=yes
8183 lt_cv_dlopen="LoadLibrary"
8188 lt_cv_dlopen="dlopen"
8193 # if libdl is installed we need to link against it
8194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_check_lib_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8202 #line $LINENO "configure"
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8209 /* Override any gcc2 internal prototype to avoid an error. */
8213 /* We use char because int might match the return type of a gcc2
8214 builtin and then its argument prototype would still apply. */
8224 rm -f conftest.$ac_objext conftest$ac_exeext
8225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8226 (eval $ac_link) 2>&5
8228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8229 (exit $ac_status); } &&
8230 { ac_try='test -s conftest$ac_exeext'
8231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); }; }; then
8236 ac_cv_lib_dl_dlopen=yes
8238 echo "$as_me: failed program was:" >&5
8239 sed 's/^/| /' conftest.$ac_ext >&5
8241 ac_cv_lib_dl_dlopen=no
8243 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8244 LIBS=$ac_check_lib_save_LIBS
8246 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8247 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8248 if test $ac_cv_lib_dl_dlopen = yes; then
8249 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8254 lt_cv_dlopen_self=yes
8261 echo "$as_me:$LINENO: checking for shl_load" >&5
8262 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8263 if test "${ac_cv_func_shl_load+set}" = set; then
8264 echo $ECHO_N "(cached) $ECHO_C" >&6
8266 cat >conftest.$ac_ext <<_ACEOF
8267 #line $LINENO "configure"
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8273 /* System header to define __stub macros and hopefully few prototypes,
8274 which can conflict with char shl_load (); below.
8275 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8276 <limits.h> exists even on freestanding compilers. */
8278 # include <limits.h>
8280 # include <assert.h>
8282 /* Override any gcc2 internal prototype to avoid an error. */
8287 /* We use char because int might match the return type of a gcc2
8288 builtin and then its argument prototype would still apply. */
8290 /* The GNU C library defines this for functions which it implements
8291 to always fail with ENOSYS. Some functions are actually named
8292 something starting with __ and the normal name is an alias. */
8293 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8296 char (*f) () = shl_load;
8305 return f != shl_load;
8310 rm -f conftest.$ac_objext conftest$ac_exeext
8311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8312 (eval $ac_link) 2>&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -s conftest$ac_exeext'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; }; then
8322 ac_cv_func_shl_load=yes
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8327 ac_cv_func_shl_load=no
8329 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8331 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8332 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8333 if test $ac_cv_func_shl_load = yes; then
8334 lt_cv_dlopen="shl_load"
8336 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8337 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8338 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8339 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 ac_check_lib_save_LIBS=$LIBS
8343 cat >conftest.$ac_ext <<_ACEOF
8344 #line $LINENO "configure"
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8351 /* Override any gcc2 internal prototype to avoid an error. */
8355 /* We use char because int might match the return type of a gcc2
8356 builtin and then its argument prototype would still apply. */
8366 rm -f conftest.$ac_objext conftest$ac_exeext
8367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8368 (eval $ac_link) 2>&5
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); } &&
8372 { ac_try='test -s conftest$ac_exeext'
8373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8377 (exit $ac_status); }; }; then
8378 ac_cv_lib_dld_shl_load=yes
8380 echo "$as_me: failed program was:" >&5
8381 sed 's/^/| /' conftest.$ac_ext >&5
8383 ac_cv_lib_dld_shl_load=no
8385 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8386 LIBS=$ac_check_lib_save_LIBS
8388 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8389 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8390 if test $ac_cv_lib_dld_shl_load = yes; then
8391 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8393 echo "$as_me:$LINENO: checking for dlopen" >&5
8394 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8395 if test "${ac_cv_func_dlopen+set}" = set; then
8396 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 cat >conftest.$ac_ext <<_ACEOF
8399 #line $LINENO "configure"
8402 cat confdefs.h >>conftest.$ac_ext
8403 cat >>conftest.$ac_ext <<_ACEOF
8404 /* end confdefs.h. */
8405 /* System header to define __stub macros and hopefully few prototypes,
8406 which can conflict with char dlopen (); below.
8407 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8408 <limits.h> exists even on freestanding compilers. */
8410 # include <limits.h>
8412 # include <assert.h>
8414 /* Override any gcc2 internal prototype to avoid an error. */
8419 /* We use char because int might match the return type of a gcc2
8420 builtin and then its argument prototype would still apply. */
8422 /* The GNU C library defines this for functions which it implements
8423 to always fail with ENOSYS. Some functions are actually named
8424 something starting with __ and the normal name is an alias. */
8425 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8428 char (*f) () = dlopen;
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8444 (eval $ac_link) 2>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } &&
8448 { ac_try='test -s conftest$ac_exeext'
8449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453 (exit $ac_status); }; }; then
8454 ac_cv_func_dlopen=yes
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8459 ac_cv_func_dlopen=no
8461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8463 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8464 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8465 if test $ac_cv_func_dlopen = yes; then
8466 lt_cv_dlopen="dlopen"
8468 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 ac_check_lib_save_LIBS=$LIBS
8475 cat >conftest.$ac_ext <<_ACEOF
8476 #line $LINENO "configure"
8479 cat confdefs.h >>conftest.$ac_ext
8480 cat >>conftest.$ac_ext <<_ACEOF
8481 /* end confdefs.h. */
8483 /* Override any gcc2 internal prototype to avoid an error. */
8487 /* We use char because int might match the return type of a gcc2
8488 builtin and then its argument prototype would still apply. */
8498 rm -f conftest.$ac_objext conftest$ac_exeext
8499 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8500 (eval $ac_link) 2>&5
8502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8503 (exit $ac_status); } &&
8504 { ac_try='test -s conftest$ac_exeext'
8505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8509 (exit $ac_status); }; }; then
8510 ac_cv_lib_dl_dlopen=yes
8512 echo "$as_me: failed program was:" >&5
8513 sed 's/^/| /' conftest.$ac_ext >&5
8515 ac_cv_lib_dl_dlopen=no
8517 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8518 LIBS=$ac_check_lib_save_LIBS
8520 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8521 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8522 if test $ac_cv_lib_dl_dlopen = yes; then
8523 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8525 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8526 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8527 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8528 echo $ECHO_N "(cached) $ECHO_C" >&6
8530 ac_check_lib_save_LIBS=$LIBS
8532 cat >conftest.$ac_ext <<_ACEOF
8533 #line $LINENO "configure"
8536 cat confdefs.h >>conftest.$ac_ext
8537 cat >>conftest.$ac_ext <<_ACEOF
8538 /* end confdefs.h. */
8540 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8555 rm -f conftest.$ac_objext conftest$ac_exeext
8556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8557 (eval $ac_link) 2>&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_lib_svld_dlopen=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_lib_svld_dlopen=no
8574 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8575 LIBS=$ac_check_lib_save_LIBS
8577 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8578 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8579 if test $ac_cv_lib_svld_dlopen = yes; then
8580 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8582 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8583 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8584 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 ac_check_lib_save_LIBS=$LIBS
8589 cat >conftest.$ac_ext <<_ACEOF
8590 #line $LINENO "configure"
8593 cat confdefs.h >>conftest.$ac_ext
8594 cat >>conftest.$ac_ext <<_ACEOF
8595 /* end confdefs.h. */
8597 /* Override any gcc2 internal prototype to avoid an error. */
8601 /* We use char because int might match the return type of a gcc2
8602 builtin and then its argument prototype would still apply. */
8612 rm -f conftest.$ac_objext conftest$ac_exeext
8613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8614 (eval $ac_link) 2>&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } &&
8618 { ac_try='test -s conftest$ac_exeext'
8619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8623 (exit $ac_status); }; }; then
8624 ac_cv_lib_dld_dld_link=yes
8626 echo "$as_me: failed program was:" >&5
8627 sed 's/^/| /' conftest.$ac_ext >&5
8629 ac_cv_lib_dld_dld_link=no
8631 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8632 LIBS=$ac_check_lib_save_LIBS
8634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8636 if test $ac_cv_lib_dld_dld_link = yes; then
8637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8658 if test "x$lt_cv_dlopen" != xno; then
8664 case $lt_cv_dlopen in
8666 save_CPPFLAGS="$CPPFLAGS"
8667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8669 save_LDFLAGS="$LDFLAGS"
8670 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8673 LIBS="$lt_cv_dlopen_libs $LIBS"
8675 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8677 if test "${lt_cv_dlopen_self+set}" = set; then
8678 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 if test "$cross_compiling" = yes; then :
8681 lt_cv_dlopen_self=cross
8683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8684 lt_status=$lt_dlunknown
8685 cat > conftest.$ac_ext <<EOF
8686 #line 8686 "configure"
8687 #include "confdefs.h"
8696 # define LT_DLGLOBAL RTLD_GLOBAL
8699 # define LT_DLGLOBAL DL_GLOBAL
8701 # define LT_DLGLOBAL 0
8705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8706 find out it does not work in some platform. */
8707 #ifndef LT_DLLAZY_OR_NOW
8709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8712 # define LT_DLLAZY_OR_NOW DL_LAZY
8715 # define LT_DLLAZY_OR_NOW RTLD_NOW
8718 # define LT_DLLAZY_OR_NOW DL_NOW
8720 # define LT_DLLAZY_OR_NOW 0
8728 extern "C" void exit (int);
8731 void fnord() { int i=42;}
8734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8735 int status = $lt_dlunknown;
8739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8740 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8741 /* dlclose (self); */
8747 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8748 (eval $ac_link) 2>&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8752 (./conftest; exit; ) 2>/dev/null
8755 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8756 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8757 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8760 # compilation failed
8761 lt_cv_dlopen_self=no
8768 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8769 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8771 if test "x$lt_cv_dlopen_self" = xyes; then
8772 LDFLAGS="$LDFLAGS $link_static_flag"
8773 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8774 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8775 if test "${lt_cv_dlopen_self_static+set}" = set; then
8776 echo $ECHO_N "(cached) $ECHO_C" >&6
8778 if test "$cross_compiling" = yes; then :
8779 lt_cv_dlopen_self_static=cross
8781 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8782 lt_status=$lt_dlunknown
8783 cat > conftest.$ac_ext <<EOF
8784 #line 8784 "configure"
8785 #include "confdefs.h"
8794 # define LT_DLGLOBAL RTLD_GLOBAL
8797 # define LT_DLGLOBAL DL_GLOBAL
8799 # define LT_DLGLOBAL 0
8803 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8804 find out it does not work in some platform. */
8805 #ifndef LT_DLLAZY_OR_NOW
8807 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8810 # define LT_DLLAZY_OR_NOW DL_LAZY
8813 # define LT_DLLAZY_OR_NOW RTLD_NOW
8816 # define LT_DLLAZY_OR_NOW DL_NOW
8818 # define LT_DLLAZY_OR_NOW 0
8826 extern "C" void exit (int);
8829 void fnord() { int i=42;}
8832 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8833 int status = $lt_dlunknown;
8837 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8838 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8839 /* dlclose (self); */
8845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8846 (eval $ac_link) 2>&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8850 (./conftest; exit; ) 2>/dev/null
8853 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8854 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8855 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8858 # compilation failed
8859 lt_cv_dlopen_self_static=no
8866 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8867 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8870 CPPFLAGS="$save_CPPFLAGS"
8871 LDFLAGS="$save_LDFLAGS"
8876 case $lt_cv_dlopen_self in
8877 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8878 *) enable_dlopen_self=unknown ;;
8881 case $lt_cv_dlopen_self_static in
8882 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8883 *) enable_dlopen_self_static=unknown ;;
8888 # Report which librarie types wil actually be built
8889 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8890 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8891 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8892 echo "${ECHO_T}$can_build_shared" >&6
8894 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8895 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8896 test "$can_build_shared" = "no" && enable_shared=no
8898 # On AIX, shared libraries and static libraries use the same namespace, and
8899 # are all built from PIC.
8902 test "$enable_shared" = yes && enable_static=no
8903 if test -n "$RANLIB"; then
8904 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8905 postinstall_cmds='$RANLIB $lib'
8910 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8911 test "$enable_shared" = yes && enable_static=no
8914 darwin* | rhapsody*)
8915 if test "$GCC" = yes; then
8916 archive_cmds_need_lc=no
8918 rhapsody* | darwin1.[012])
8919 allow_undefined_flag='-undefined suppress'
8922 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8923 allow_undefined_flag='-flat_namespace -undefined suppress'
8925 case ${MACOSX_DEPLOYMENT_TARGET} in
8927 allow_undefined_flag='-flat_namespace -undefined suppress'
8930 allow_undefined_flag='-undefined dynamic_lookup'
8936 output_verbose_link_cmd='echo'
8937 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8938 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8939 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8940 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}'
8941 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}'
8943 hardcode_automatic=yes
8944 hardcode_shlibpath_var=unsupported
8945 whole_archive_flag_spec='-all_load $convenience'
8946 link_all_deplibs=yes
8952 echo "$as_me:$LINENO: result: $enable_shared" >&5
8953 echo "${ECHO_T}$enable_shared" >&6
8955 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8956 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8957 # Make sure either enable_shared or enable_static is yes.
8958 test "$enable_shared" = yes || enable_static=yes
8959 echo "$as_me:$LINENO: result: $enable_static" >&5
8960 echo "${ECHO_T}$enable_static" >&6
8962 # The else clause should only fire when bootstrapping the
8963 # libtool distribution, otherwise you forgot to ship ltmain.sh
8964 # with your package, and you will get complaints that there are
8965 # no rules to generate ltmain.sh.
8966 if test -f "$ltmain"; then
8967 # See if we are running on zsh, and set the options which allow our commands through
8968 # without removal of \ escapes.
8969 if test -n "${ZSH_VERSION+set}" ; then
8970 setopt NO_GLOB_SUBST
8972 # Now quote all the things that may contain metacharacters while being
8973 # careful not to overquote the AC_SUBSTed values. We take copies of the
8974 # variables and quote the copies for generation of the libtool script.
8975 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8977 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8978 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8979 deplibs_check_method reload_flag reload_cmds need_locks \
8980 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8981 lt_cv_sys_global_symbol_to_c_name_address \
8982 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8983 old_postinstall_cmds old_postuninstall_cmds \
8987 lt_prog_compiler_wl \
8988 lt_prog_compiler_pic \
8989 lt_prog_compiler_static \
8990 lt_prog_compiler_no_builtin_flag \
8991 export_dynamic_flag_spec \
8992 thread_safe_flag_spec \
8993 whole_archive_flag_spec \
8994 enable_shared_with_static_runtimes \
8996 old_archive_from_new_cmds \
9001 compiler_lib_search_path \
9003 archive_expsym_cmds \
9005 postuninstall_cmds \
9006 old_archive_from_expsyms_cmds \
9007 allow_undefined_flag \
9009 export_symbols_cmds \
9010 hardcode_libdir_flag_spec \
9011 hardcode_libdir_flag_spec_ld \
9012 hardcode_libdir_separator \
9013 hardcode_automatic \
9015 module_expsym_cmds \
9016 lt_cv_prog_compiler_c_o \
9021 old_archive_cmds | \
9022 old_archive_from_new_cmds | \
9024 archive_expsym_cmds | \
9026 module_expsym_cmds | \
9027 old_archive_from_expsyms_cmds | \
9028 export_symbols_cmds | \
9029 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9030 postinstall_cmds | postuninstall_cmds | \
9031 old_postinstall_cmds | old_postuninstall_cmds | \
9032 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9033 # Double-quote double-evaled strings.
9034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9037 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9043 *'\$0 --fallback-echo"')
9044 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9049 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9051 { echo "$as_me:$LINENO: creating $ofile" >&5
9052 echo "$as_me: creating $ofile" >&6;}
9054 cat <<__EOF__ >> "$cfgfile"
9057 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9058 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9059 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9061 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9062 # Free Software Foundation, Inc.
9064 # This file is part of GNU Libtool:
9065 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9067 # This program is free software; you can redistribute it and/or modify
9068 # it under the terms of the GNU General Public License as published by
9069 # the Free Software Foundation; either version 2 of the License, or
9070 # (at your option) any later version.
9072 # This program is distributed in the hope that it will be useful, but
9073 # WITHOUT ANY WARRANTY; without even the implied warranty of
9074 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9075 # General Public License for more details.
9077 # You should have received a copy of the GNU General Public License
9078 # along with this program; if not, write to the Free Software
9079 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9081 # As a special exception to the GNU General Public License, if you
9082 # distribute this file as part of a program that contains a
9083 # configuration script generated by Autoconf, you may include it under
9084 # the same distribution terms that you use for the rest of that program.
9086 # A sed program that does not truncate output.
9089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9090 Xsed="$SED -e s/^X//"
9092 # The HP-UX ksh and POSIX shell print the target directory to stdout
9094 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9096 # The names of the tagged configurations supported by this script.
9099 # ### BEGIN LIBTOOL CONFIG
9101 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9103 # Shell to use when invoking shell scripts.
9106 # Whether or not to build shared libraries.
9107 build_libtool_libs=$enable_shared
9109 # Whether or not to build static libraries.
9110 build_old_libs=$enable_static
9112 # Whether or not to add -lc for building shared libraries.
9113 build_libtool_need_lc=$archive_cmds_need_lc
9115 # Whether or not to disallow shared libs when runtime libs are static
9116 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9118 # Whether or not to optimize for fast installation.
9119 fast_install=$enable_fast_install
9122 host_alias=$host_alias
9125 # An echo program that does not interpret backslashes.
9130 AR_FLAGS=$lt_AR_FLAGS
9135 # A language-specific compiler.
9138 # Is the compiler the GNU C compiler?
9144 # The linker used to build libraries.
9147 # Whether we need hard or soft links.
9150 # A BSD-compatible nm program.
9153 # A symbol stripping program
9156 # Used to examine libraries when file_magic_cmd begins "file"
9157 MAGIC_CMD=$MAGIC_CMD
9159 # Used on cygwin: DLL creation program.
9162 # Used on cygwin: object dumper.
9165 # Used on cygwin: assembler.
9168 # The name of the directory that contains temporary libtool files.
9171 # How to create reloadable object files.
9172 reload_flag=$lt_reload_flag
9173 reload_cmds=$lt_reload_cmds
9175 # How to pass a linker flag through the compiler.
9176 wl=$lt_lt_prog_compiler_wl
9178 # Object file suffix (normally "o").
9181 # Old archive suffix (normally "a").
9184 # Shared library suffix (normally ".so").
9185 shrext_cmds='$shrext_cmds'
9187 # Executable file suffix (normally "").
9190 # Additional compiler flags for building library objects.
9191 pic_flag=$lt_lt_prog_compiler_pic
9194 # What is the maximum length of a command?
9195 max_cmd_len=$lt_cv_sys_max_cmd_len
9197 # Does compiler simultaneously support -c and -o options?
9198 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9200 # Must we lock files when doing compilation ?
9201 need_locks=$lt_need_locks
9203 # Do we need the lib prefix for modules?
9204 need_lib_prefix=$need_lib_prefix
9206 # Do we need a version for libraries?
9207 need_version=$need_version
9209 # Whether dlopen is supported.
9210 dlopen_support=$enable_dlopen
9212 # Whether dlopen of programs is supported.
9213 dlopen_self=$enable_dlopen_self
9215 # Whether dlopen of statically linked programs is supported.
9216 dlopen_self_static=$enable_dlopen_self_static
9218 # Compiler flag to prevent dynamic linking.
9219 link_static_flag=$lt_lt_prog_compiler_static
9221 # Compiler flag to turn off builtin functions.
9222 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9224 # Compiler flag to allow reflexive dlopens.
9225 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9227 # Compiler flag to generate shared objects directly from archives.
9228 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9230 # Compiler flag to generate thread-safe objects.
9231 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9233 # Library versioning type.
9234 version_type=$version_type
9236 # Format of library name prefix.
9237 libname_spec=$lt_libname_spec
9239 # List of archive names. First name is the real one, the rest are links.
9240 # The last name is the one that the linker finds with -lNAME.
9241 library_names_spec=$lt_library_names_spec
9243 # The coded name of the library, if different from the real name.
9244 soname_spec=$lt_soname_spec
9246 # Commands used to build and install an old-style archive.
9248 old_archive_cmds=$lt_old_archive_cmds
9249 old_postinstall_cmds=$lt_old_postinstall_cmds
9250 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9252 # Create an old-style archive from a shared archive.
9253 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9255 # Create a temporary old-style archive to link instead of a shared archive.
9256 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9258 # Commands used to build and install a shared archive.
9259 archive_cmds=$lt_archive_cmds
9260 archive_expsym_cmds=$lt_archive_expsym_cmds
9261 postinstall_cmds=$lt_postinstall_cmds
9262 postuninstall_cmds=$lt_postuninstall_cmds
9264 # Commands used to build a loadable module (assumed same as above if empty)
9265 module_cmds=$lt_module_cmds
9266 module_expsym_cmds=$lt_module_expsym_cmds
9268 # Commands to strip libraries.
9269 old_striplib=$lt_old_striplib
9270 striplib=$lt_striplib
9272 # Dependencies to place before the objects being linked to create a
9274 predep_objects=$lt_predep_objects
9276 # Dependencies to place after the objects being linked to create a
9278 postdep_objects=$lt_postdep_objects
9280 # Dependencies to place before the objects being linked to create a
9284 # Dependencies to place after the objects being linked to create a
9286 postdeps=$lt_postdeps
9288 # The library search path used internally by the compiler when linking
9290 compiler_lib_search_path=$lt_compiler_lib_search_path
9292 # Method to check whether dependent libraries are shared objects.
9293 deplibs_check_method=$lt_deplibs_check_method
9295 # Command to use when deplibs_check_method == file_magic.
9296 file_magic_cmd=$lt_file_magic_cmd
9298 # Flag that allows shared libraries with undefined symbols to be built.
9299 allow_undefined_flag=$lt_allow_undefined_flag
9301 # Flag that forces no undefined symbols.
9302 no_undefined_flag=$lt_no_undefined_flag
9304 # Commands used to finish a libtool library installation in a directory.
9305 finish_cmds=$lt_finish_cmds
9307 # Same as above, but a single script fragment to be evaled but not shown.
9308 finish_eval=$lt_finish_eval
9310 # Take the output of nm and produce a listing of raw symbols and C names.
9311 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9313 # Transform the output of nm in a proper C declaration
9314 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9316 # Transform the output of nm in a C name address pair
9317 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9319 # This is the shared library runtime path variable.
9320 runpath_var=$runpath_var
9322 # This is the shared library path variable.
9323 shlibpath_var=$shlibpath_var
9325 # Is shlibpath searched before the hard-coded library search path?
9326 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9328 # How to hardcode a shared library path into an executable.
9329 hardcode_action=$hardcode_action
9331 # Whether we should hardcode library paths into libraries.
9332 hardcode_into_libs=$hardcode_into_libs
9334 # Flag to hardcode \$libdir into a binary during linking.
9335 # This must work even if \$libdir does not exist.
9336 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9338 # If ld is used when linking, flag to hardcode \$libdir into
9339 # a binary during linking. This must work even if \$libdir does
9341 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9343 # Whether we need a single -rpath flag with a separated argument.
9344 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9346 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9348 hardcode_direct=$hardcode_direct
9350 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9352 hardcode_minus_L=$hardcode_minus_L
9354 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9355 # the resulting binary.
9356 hardcode_shlibpath_var=$hardcode_shlibpath_var
9358 # Set to yes if building a shared library automatically hardcodes DIR into the library
9359 # and all subsequent libraries and executables linked against it.
9360 hardcode_automatic=$hardcode_automatic
9362 # Variables whose values should be saved in libtool wrapper scripts and
9363 # restored at relink time.
9364 variables_saved_for_relink="$variables_saved_for_relink"
9366 # Whether libtool must link a program against all its dependency libraries.
9367 link_all_deplibs=$link_all_deplibs
9369 # Compile-time system search path for libraries
9370 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9372 # Run-time system search path for libraries
9373 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9375 # Fix the shell variable \$srcfile for the compiler.
9376 fix_srcfile_path="$fix_srcfile_path"
9378 # Set to yes if exported symbols are required.
9379 always_export_symbols=$always_export_symbols
9381 # The commands to list exported symbols.
9382 export_symbols_cmds=$lt_export_symbols_cmds
9384 # The commands to extract the exported symbol list from a shared archive.
9385 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9387 # Symbols that should not be listed in the preloaded symbols.
9388 exclude_expsyms=$lt_exclude_expsyms
9390 # Symbols that must always be exported.
9391 include_expsyms=$lt_include_expsyms
9393 # ### END LIBTOOL CONFIG
9400 cat <<\EOF >> "$cfgfile"
9402 # AIX sometimes has problems with the GCC collect2 program. For some
9403 # reason, if we set the COLLECT_NAMES environment variable, the problems
9404 # vanish in a puff of smoke.
9405 if test "X${COLLECT_NAMES+set}" != Xset; then
9407 export COLLECT_NAMES
9413 # We use sed instead of cat because bash on DJGPP gets confused if
9414 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9415 # text mode, it properly converts lines to CR/LF. This bash problem
9416 # is reportedly fixed, but why not run on old versions too?
9417 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9419 mv -f "$cfgfile" "$ofile" || \
9420 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9424 # If there is no Makefile yet, we rely on a make rule to execute
9425 # `config.status --recheck' to rerun these tests and create the
9426 # libtool script then.
9427 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9428 if test -f "$ltmain_in"; then
9429 test -f Makefile && make "$ltmain"
9435 ac_cpp='$CPP $CPPFLAGS'
9436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9443 # Check whether --with-tags or --without-tags was given.
9444 if test "${with_tags+set}" = set; then
9445 withval="$with_tags"
9449 if test -f "$ltmain" && test -n "$tagnames"; then
9450 if test ! -f "${ofile}"; then
9451 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9452 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9455 if test -z "$LTCC"; then
9456 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9457 if test -z "$LTCC"; then
9458 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9459 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9461 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9462 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9466 # Extract list of available tagged configurations in $ofile.
9467 # Note that this assumes the entire list is on one line.
9468 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9470 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9471 for tagname in $tagnames; do
9473 # Check whether tagname contains only valid characters
9474 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9476 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9477 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9478 { (exit 1); exit 1; }; }
9482 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9484 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9485 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9486 { (exit 1); exit 1; }; }
9489 # Update the list of available tags.
9490 if test -n "$tagname"; then
9491 echo appending configuration tag \"$tagname\" to $ofile
9495 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9497 ac_cpp='$CXXCPP $CPPFLAGS'
9498 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9499 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9500 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9505 archive_cmds_need_lc_CXX=no
9506 allow_undefined_flag_CXX=
9507 always_export_symbols_CXX=no
9508 archive_expsym_cmds_CXX=
9509 export_dynamic_flag_spec_CXX=
9510 hardcode_direct_CXX=no
9511 hardcode_libdir_flag_spec_CXX=
9512 hardcode_libdir_flag_spec_ld_CXX=
9513 hardcode_libdir_separator_CXX=
9514 hardcode_minus_L_CXX=no
9515 hardcode_automatic_CXX=no
9517 module_expsym_cmds_CXX=
9518 link_all_deplibs_CXX=unknown
9519 old_archive_cmds_CXX=$old_archive_cmds
9520 no_undefined_flag_CXX=
9521 whole_archive_flag_spec_CXX=
9522 enable_shared_with_static_runtimes_CXX=no
9524 # Dependencies to place before and after the object being linked:
9526 postdep_objects_CXX=
9529 compiler_lib_search_path_CXX=
9531 # Source file extension for C++ test sources.
9534 # Object file extension for compiled C++ test sources.
9538 # Code to be used in simple compile tests
9539 lt_simple_compile_test_code="int some_variable = 0;\n"
9541 # Code to be used in simple link tests
9542 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9544 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9546 # If no C compiler was specified, use CC.
9549 # Allow CC to be a program name with arguments.
9553 # Allow CC to be a program name with arguments.
9558 lt_save_with_gnu_ld=$with_gnu_ld
9559 lt_save_path_LD=$lt_cv_path_LD
9560 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9561 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9563 unset lt_cv_prog_gnu_ld
9565 if test -n "${lt_cv_path_LDCXX+set}"; then
9566 lt_cv_path_LD=$lt_cv_path_LDCXX
9570 test -z "${LDCXX+set}" || LD=$LDCXX
9574 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9576 # We don't want -fno-exception wen compiling C++ code, so set the
9577 # no_builtin_flag separately
9578 if test "$GXX" = yes; then
9579 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9581 lt_prog_compiler_no_builtin_flag_CXX=
9584 if test "$GXX" = yes; then
9585 # Set up default GNU C++ configuration
9588 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9589 if test "${with_gnu_ld+set}" = set; then
9590 withval="$with_gnu_ld"
9591 test "$withval" = no || with_gnu_ld=yes
9596 if test "$GCC" = yes; then
9597 # Check if gcc -print-prog-name=ld gives a path.
9598 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9599 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9602 # gcc leaves a trailing carriage return which upsets mingw
9603 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9605 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9608 # Accept absolute paths.
9610 re_direlt='/[^/][^/]*/\.\./'
9611 # Canonicalize the pathname of ld
9612 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9613 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9614 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9616 test -z "$LD" && LD="$ac_prog"
9619 # If it fails, then pretend we aren't using GCC.
9623 # If it is relative, then search for the first ld in PATH.
9627 elif test "$with_gnu_ld" = yes; then
9628 echo "$as_me:$LINENO: checking for GNU ld" >&5
9629 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9631 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9632 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9634 if test "${lt_cv_path_LD+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9637 if test -z "$LD"; then
9638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9639 for ac_dir in $PATH; do
9641 test -z "$ac_dir" && ac_dir=.
9642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9643 lt_cv_path_LD="$ac_dir/$ac_prog"
9644 # Check to see if the program is GNU ld. I'd rather use --version,
9645 # but apparently some GNU ld's only accept -v.
9646 # Break only if it was the GNU/non-GNU ld that we prefer.
9647 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9648 *GNU* | *'with BFD'*)
9649 test "$with_gnu_ld" != no && break
9652 test "$with_gnu_ld" != yes && break
9659 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9664 if test -n "$LD"; then
9665 echo "$as_me:$LINENO: result: $LD" >&5
9666 echo "${ECHO_T}$LD" >&6
9668 echo "$as_me:$LINENO: result: no" >&5
9669 echo "${ECHO_T}no" >&6
9671 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9672 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9673 { (exit 1); exit 1; }; }
9674 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9675 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9676 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9680 case `$LD -v 2>&1 </dev/null` in
9681 *GNU* | *'with BFD'*)
9682 lt_cv_prog_gnu_ld=yes
9685 lt_cv_prog_gnu_ld=no
9689 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9690 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9691 with_gnu_ld=$lt_cv_prog_gnu_ld
9695 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9696 # archiving commands below assume that GNU ld is being used.
9697 if test "$with_gnu_ld" = yes; then
9698 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699 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'
9701 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9702 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9704 # If archive_cmds runs LD, not CC, wlarc should be empty
9705 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9706 # investigate it a little bit more. (MM)
9709 # ancient GNU ld didn't support --whole-archive et. al.
9710 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9711 grep 'no-whole-archive' > /dev/null; then
9712 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9714 whole_archive_flag_spec_CXX=
9720 # A generic and very simple default shared library creation
9721 # command for GNU C++ for the case where it uses the native
9722 # linker, instead of GNU ld. If possible, this setting should
9723 # overridden to take advantage of the native linker features on
9724 # the platform it is being used on.
9725 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9728 # Commands to make compiler produce verbose output that lists
9729 # what "hidden" libraries, object files and flags are used when
9730 # linking a shared library.
9731 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9739 # PORTME: fill in a description of your system's C++ link characteristics
9740 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9741 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9745 # FIXME: insert proper C++ library support
9749 if test "$host_cpu" = ia64; then
9750 # On IA64, the linker does run time linking by default, so we don't
9751 # have to do anything special.
9752 aix_use_runtimelinking=no
9753 exp_sym_flag='-Bexport'
9756 aix_use_runtimelinking=no
9758 # Test if we are trying to use run time linking or normal
9759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9760 # need to do runtime linking.
9761 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9762 for ld_flag in $LDFLAGS; do
9765 aix_use_runtimelinking=yes
9772 exp_sym_flag='-bexport'
9773 no_entry_flag='-bnoentry'
9776 # When large executables or shared objects are built, AIX ld can
9777 # have problems creating the table of contents. If linking a library
9778 # or program results in "error TOC overflow" add -mminimal-toc to
9779 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9780 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9783 hardcode_direct_CXX=yes
9784 hardcode_libdir_separator_CXX=':'
9785 link_all_deplibs_CXX=yes
9787 if test "$GXX" = yes; then
9788 case $host_os in aix4.012|aix4.012.*)
9789 # We only want to do this on AIX 4.2 and lower, the check
9790 # below for broken collect2 doesn't work under 4.3+
9791 collect2name=`${CC} -print-prog-name=collect2`
9792 if test -f "$collect2name" && \
9793 strings "$collect2name" | grep resolve_lib_name >/dev/null
9795 # We have reworked collect2
9796 hardcode_direct_CXX=yes
9798 # We have old collect2
9799 hardcode_direct_CXX=unsupported
9800 # It fails to find uninstalled libraries when the uninstalled
9801 # path is not listed in the libpath. Setting hardcode_minus_L
9802 # to unsupported forces relinking
9803 hardcode_minus_L_CXX=yes
9804 hardcode_libdir_flag_spec_CXX='-L$libdir'
9805 hardcode_libdir_separator_CXX=
9808 shared_flag='-shared'
9811 if test "$host_cpu" = ia64; then
9812 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9813 # chokes on -Wl,-G. The following line is correct:
9816 if test "$aix_use_runtimelinking" = yes; then
9817 shared_flag='${wl}-G'
9819 shared_flag='${wl}-bM:SRE'
9824 # It seems that -bexpall does not export symbols beginning with
9825 # underscore (_), so it is better to generate a list of symbols to export.
9826 always_export_symbols_CXX=yes
9827 if test "$aix_use_runtimelinking" = yes; then
9828 # Warning - without using the other runtime loading flags (-brtl),
9829 # -berok will link without error, but may produce a broken library.
9830 allow_undefined_flag_CXX='-berok'
9831 # Determine the default libpath from the value encoded in an empty executable.
9832 cat >conftest.$ac_ext <<_ACEOF
9833 #line $LINENO "configure"
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */
9848 rm -f conftest.$ac_objext conftest$ac_exeext
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } &&
9854 { ac_try='test -s conftest$ac_exeext'
9855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9859 (exit $ac_status); }; }; then
9861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9863 # Check for a 64-bit object if we didn't find anything.
9864 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9867 echo "$as_me: failed program was:" >&5
9868 sed 's/^/| /' conftest.$ac_ext >&5
9871 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9872 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9874 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9876 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9878 if test "$host_cpu" = ia64; then
9879 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9880 allow_undefined_flag_CXX="-z nodefs"
9881 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9883 # Determine the default libpath from the value encoded in an empty executable.
9884 cat >conftest.$ac_ext <<_ACEOF
9885 #line $LINENO "configure"
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9900 rm -f conftest.$ac_objext conftest$ac_exeext
9901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9902 (eval $ac_link) 2>&5
9904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9905 (exit $ac_status); } &&
9906 { ac_try='test -s conftest$ac_exeext'
9907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9911 (exit $ac_status); }; }; then
9913 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9915 # Check for a 64-bit object if we didn't find anything.
9916 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9923 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9927 # Warning - without using the other run time loading flags,
9928 # -berok will link without error, but may produce a broken library.
9929 no_undefined_flag_CXX=' ${wl}-bernotok'
9930 allow_undefined_flag_CXX=' ${wl}-berok'
9931 # -bexpall does not export symbols beginning with underscore (_)
9932 always_export_symbols_CXX=yes
9933 # Exported symbols can be pulled into shared objects from archives
9934 whole_archive_flag_spec_CXX=' '
9935 archive_cmds_need_lc_CXX=yes
9936 # This is similar to how AIX traditionally builds it's shared libraries.
9937 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9942 case $cc_basename in
9944 # FIXME: insert proper C++ library support
9950 cygwin* | mingw* | pw32*)
9951 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9952 # as there is no search path for DLLs.
9953 hardcode_libdir_flag_spec_CXX='-L$libdir'
9954 allow_undefined_flag_CXX=unsupported
9955 always_export_symbols_CXX=no
9956 enable_shared_with_static_runtimes_CXX=yes
9958 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9960 # If the export-symbols file already is a .def file (1st line
9961 # is EXPORTS), use it as is; otherwise, prepend...
9962 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9963 cp $export_symbols $output_objdir/$soname.def;
9965 echo EXPORTS > $output_objdir/$soname.def;
9966 cat $export_symbols >> $output_objdir/$soname.def;
9968 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9974 darwin* | rhapsody*)
9975 if test "$GXX" = yes; then
9976 archive_cmds_need_lc_CXX=no
9978 rhapsody* | darwin1.[012])
9979 allow_undefined_flag_CXX='-undefined suppress'
9982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9983 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9985 case ${MACOSX_DEPLOYMENT_TARGET} in
9987 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9990 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9996 lt_int_apple_cc_single_mod=no
9997 output_verbose_link_cmd='echo'
9998 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9999 lt_int_apple_cc_single_mod=yes
10001 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10002 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10004 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
10006 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10008 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10009 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10010 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}'
10012 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
10014 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}'
10015 hardcode_direct_CXX=no
10016 hardcode_automatic_CXX=yes
10017 hardcode_shlibpath_var_CXX=unsupported
10018 whole_archive_flag_spec_CXX='-all_load $convenience'
10019 link_all_deplibs_CXX=yes
10026 case $cc_basename in
10028 # FIXME: insert proper C++ library support
10032 # Green Hills C++ Compiler
10033 # FIXME: insert proper C++ library support
10037 # FIXME: insert proper C++ library support
10043 # C++ shared libraries reported to be fairly broken before switch to ELF
10047 archive_cmds_need_lc_CXX=no
10049 freebsd* | kfreebsd*-gnu)
10050 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10057 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10058 hardcode_libdir_separator_CXX=:
10059 export_dynamic_flag_spec_CXX='${wl}-E'
10060 hardcode_direct_CXX=yes
10061 hardcode_minus_L_CXX=yes # Not in the search PATH,
10062 # but as the default
10063 # location of the library.
10065 case $cc_basename in
10067 # FIXME: insert proper C++ library support
10071 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'
10072 # Commands to make compiler produce verbose output that lists
10073 # what "hidden" libraries, object files and flags are used when
10074 # linking a shared library.
10076 # There doesn't appear to be a way to prevent this compiler from
10077 # explicitly linking system object files so we need to strip them
10078 # from the output so that they don't get included in the library
10080 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'
10083 if test "$GXX" = yes; then
10084 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'
10086 # FIXME: insert proper C++ library support
10093 if test $with_gnu_ld = no; then
10094 case "$host_cpu" in
10096 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10097 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10098 hardcode_libdir_separator_CXX=:
10101 hardcode_libdir_flag_spec_CXX='-L$libdir'
10104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10105 hardcode_libdir_separator_CXX=:
10106 export_dynamic_flag_spec_CXX='${wl}-E'
10110 case "$host_cpu" in
10112 hardcode_direct_CXX=no
10113 hardcode_shlibpath_var_CXX=no
10116 hardcode_direct_CXX=no
10117 hardcode_shlibpath_var_CXX=no
10118 hardcode_minus_L_CXX=yes # Not in the search PATH,
10119 # but as the default
10120 # location of the library.
10123 hardcode_direct_CXX=yes
10124 hardcode_minus_L_CXX=yes # Not in the search PATH,
10125 # but as the default
10126 # location of the library.
10130 case $cc_basename in
10132 # FIXME: insert proper C++ library support
10136 case "$host_cpu" in
10138 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10141 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10144 # Commands to make compiler produce verbose output that lists
10145 # what "hidden" libraries, object files and flags are used when
10146 # linking a shared library.
10148 # There doesn't appear to be a way to prevent this compiler from
10149 # explicitly linking system object files so we need to strip them
10150 # from the output so that they don't get included in the library
10152 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'
10155 if test "$GXX" = yes; then
10156 if test $with_gnu_ld = no; then
10157 case "$host_cpu" in
10159 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10162 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'
10167 # FIXME: insert proper C++ library support
10174 case $cc_basename in
10177 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 ${objdir}/so_locations -o $lib'
10179 # Archives containing C++ object files must be created using
10180 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10181 # necessary to make sure instantiated templates are included
10183 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10186 if test "$GXX" = yes; then
10187 if test "$with_gnu_ld" = no; then
10188 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}${objdir}/so_locations -o $lib'
10190 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'
10193 link_all_deplibs_CXX=yes
10196 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10197 hardcode_libdir_separator_CXX=:
10200 case $cc_basename in
10202 # Kuck and Associates, Inc. (KAI) C++ Compiler
10204 # KCC will only create a shared library if the output file
10205 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10206 # to its proper name (with version) after linking.
10207 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'
10208 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'
10209 # Commands to make compiler produce verbose output that lists
10210 # what "hidden" libraries, object files and flags are used when
10211 # linking a shared library.
10213 # There doesn't appear to be a way to prevent this compiler from
10214 # explicitly linking system object files so we need to strip them
10215 # from the output so that they don't get included in the library
10217 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'
10219 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10222 # Archives containing C++ object files must be created using
10223 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10224 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10229 archive_cmds_need_lc_CXX=no
10230 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10231 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'
10232 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10233 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10234 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10238 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10239 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'
10241 runpath_var=LD_RUN_PATH
10242 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10243 hardcode_libdir_separator_CXX=:
10245 # Commands to make compiler produce verbose output that lists
10246 # what "hidden" libraries, object files and flags are used when
10247 # linking a shared library.
10249 # There doesn't appear to be a way to prevent this compiler from
10250 # explicitly linking system object files so we need to strip them
10251 # from the output so that they don't get included in the library
10253 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'
10258 # FIXME: insert proper C++ library support
10262 # FIXME: insert proper C++ library support
10266 case $cc_basename in
10268 # FIXME: insert proper C++ library support
10272 # FIXME: insert proper C++ library support
10277 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10278 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10279 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10281 hardcode_libdir_flag_spec_CXX='-R$libdir'
10282 hardcode_direct_CXX=yes
10283 hardcode_shlibpath_var_CXX=no
10285 # Workaround some broken pre-1.5 toolchains
10286 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10289 case $cc_basename in
10291 # Kuck and Associates, Inc. (KAI) C++ Compiler
10293 # KCC will only create a shared library if the output file
10294 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10295 # to its proper name (with version) after linking.
10296 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'
10298 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10299 hardcode_libdir_separator_CXX=:
10301 # Archives containing C++ object files must be created using
10302 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10303 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10307 # Rational C++ 2.4.1
10308 # FIXME: insert proper C++ library support
10312 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10313 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 ${objdir}/so_locations -o $lib'
10315 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10316 hardcode_libdir_separator_CXX=:
10318 # Commands to make compiler produce verbose output that lists
10319 # what "hidden" libraries, object files and flags are used when
10320 # linking a shared library.
10322 # There doesn't appear to be a way to prevent this compiler from
10323 # explicitly linking system object files so we need to strip them
10324 # from the output so that they don't get included in the library
10326 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'
10329 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10330 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10331 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}${objdir}/so_locations -o $lib'
10333 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10334 hardcode_libdir_separator_CXX=:
10336 # Commands to make compiler produce verbose output that lists
10337 # what "hidden" libraries, object files and flags are used when
10338 # linking a shared library.
10339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10342 # FIXME: insert proper C++ library support
10349 case $cc_basename in
10351 # Kuck and Associates, Inc. (KAI) C++ Compiler
10353 # KCC will only create a shared library if the output file
10354 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10355 # to its proper name (with version) after linking.
10356 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'
10358 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10359 hardcode_libdir_separator_CXX=:
10361 # Archives containing C++ object files must be created using
10362 # the KAI C++ compiler.
10363 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10366 # Rational C++ 2.4.1
10367 # FIXME: insert proper C++ library support
10371 allow_undefined_flag_CXX=' -expect_unresolved \*'
10372 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 ${objdir}/so_locations -o $lib'
10373 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10374 echo "-hidden">> $lib.exp~
10375 $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 $objdir/so_locations -o $lib~
10378 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10379 hardcode_libdir_separator_CXX=:
10381 # Commands to make compiler produce verbose output that lists
10382 # what "hidden" libraries, object files and flags are used when
10383 # linking a shared library.
10385 # There doesn't appear to be a way to prevent this compiler from
10386 # explicitly linking system object files so we need to strip them
10387 # from the output so that they don't get included in the library
10389 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'
10392 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10393 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10394 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}${objdir}/so_locations -o $lib'
10396 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10397 hardcode_libdir_separator_CXX=:
10399 # Commands to make compiler produce verbose output that lists
10400 # what "hidden" libraries, object files and flags are used when
10401 # linking a shared library.
10402 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10405 # FIXME: insert proper C++ library support
10412 # FIXME: insert proper C++ library support
10416 archive_cmds_need_lc_CXX=no
10417 case $cc_basename in
10419 # FIXME: insert proper C++ library support
10423 # FIXME: insert proper C++ library support
10429 case $cc_basename in
10432 # FIXME: insert proper C++ library support
10437 # FIXME: insert proper C++ library support
10441 # FIXME: insert proper C++ library support
10447 case $cc_basename in
10449 # Sun C++ 4.2, 5.x and Centerline C++
10450 no_undefined_flag_CXX=' -zdefs'
10451 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10452 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10453 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10455 hardcode_libdir_flag_spec_CXX='-R$libdir'
10456 hardcode_shlibpath_var_CXX=no
10458 solaris2.0-5 | solaris2.0-5.*) ;;
10460 # The C++ compiler is used as linker so we must use $wl
10461 # flag to pass the commands to the underlying system
10463 # Supported since Solaris 2.6 (maybe 2.5.1?)
10464 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10467 link_all_deplibs_CXX=yes
10469 # Commands to make compiler produce verbose output that lists
10470 # what "hidden" libraries, object files and flags are used when
10471 # linking a shared library.
10473 # There doesn't appear to be a way to prevent this compiler from
10474 # explicitly linking system object files so we need to strip them
10475 # from the output so that they don't get included in the library
10477 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10479 # Archives containing C++ object files must be created using
10480 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10481 # necessary to make sure instantiated templates are included
10483 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10486 # Green Hills C++ Compiler
10487 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10489 # The C++ compiler must be used to create the archive.
10490 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10493 # GNU C++ compiler with Solaris linker
10494 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10495 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10496 if $CC --version | grep -v '^2\.7' > /dev/null; then
10497 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10498 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10499 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10501 # Commands to make compiler produce verbose output that lists
10502 # what "hidden" libraries, object files and flags are used when
10503 # linking a shared library.
10504 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10506 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10508 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10509 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10510 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10512 # Commands to make compiler produce verbose output that lists
10513 # what "hidden" libraries, object files and flags are used when
10514 # linking a shared library.
10515 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10518 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10523 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10524 archive_cmds_need_lc_CXX=no
10527 case $cc_basename in
10529 # NonStop-UX NCC 3.20
10530 # FIXME: insert proper C++ library support
10534 # FIXME: insert proper C++ library support
10540 # FIXME: insert proper C++ library support
10544 # FIXME: insert proper C++ library support
10548 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10549 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10550 test "$ld_shlibs_CXX" = no && can_build_shared=no
10556 cat > conftest.$ac_ext <<EOF
10560 Foo (void) { a = 0; }
10566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10567 (eval $ac_compile) 2>&5
10569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10570 (exit $ac_status); }; then
10571 # Parse the compiler output and extract the necessary
10572 # objects, libraries and library flags.
10574 # Sentinel used to keep track of whether or not we are before
10575 # the conftest object file.
10576 pre_test_object_deps_done=no
10578 # The `*' in the case matches for architectures that use `case' in
10579 # $output_verbose_cmd can trigger glob expansion during the loop
10580 # eval without this substitution.
10581 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10583 for p in `eval $output_verbose_link_cmd`; do
10587 # Some compilers place space between "-{L,R}" and the path.
10588 # Remove the space.
10589 if test $p = "-L" \
10590 || test $p = "-R"; then
10597 if test "$pre_test_object_deps_done" = no; then
10600 # Internal compiler library paths should come after those
10601 # provided the user. The postdeps already come after the
10602 # user supplied libs so there is no need to process them.
10603 if test -z "$compiler_lib_search_path_CXX"; then
10604 compiler_lib_search_path_CXX="${prev}${p}"
10606 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10609 # The "-l" case would never come before the object being
10610 # linked, so don't bother handling this case.
10613 if test -z "$postdeps_CXX"; then
10614 postdeps_CXX="${prev}${p}"
10616 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10622 # This assumes that the test object file only shows up
10623 # once in the compiler output.
10624 if test "$p" = "conftest.$objext"; then
10625 pre_test_object_deps_done=yes
10629 if test "$pre_test_object_deps_done" = no; then
10630 if test -z "$predep_objects_CXX"; then
10631 predep_objects_CXX="$p"
10633 predep_objects_CXX="$predep_objects_CXX $p"
10636 if test -z "$postdep_objects_CXX"; then
10637 postdep_objects_CXX="$p"
10639 postdep_objects_CXX="$postdep_objects_CXX $p"
10644 *) ;; # Ignore the rest.
10652 echo "libtool.m4: error: problem compiling CXX test program"
10655 $rm -f confest.$objext
10657 case " $postdeps_CXX " in
10658 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10661 lt_prog_compiler_wl_CXX=
10662 lt_prog_compiler_pic_CXX=
10663 lt_prog_compiler_static_CXX=
10665 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10666 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10668 # C++ specific cases for pic, static, wl, etc.
10669 if test "$GXX" = yes; then
10670 lt_prog_compiler_wl_CXX='-Wl,'
10671 lt_prog_compiler_static_CXX='-static'
10675 # All AIX code is PIC.
10676 if test "$host_cpu" = ia64; then
10677 # AIX 5 now supports IA64 processor
10678 lt_prog_compiler_static_CXX='-Bstatic'
10682 # FIXME: we need at least 68020 code to build shared libraries, but
10683 # adding the `-m68020' flag to GCC prevents building anything better,
10685 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10687 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10688 # PIC is the default for these OSes.
10690 mingw* | os2* | pw32*)
10691 # This hack is so that the source file can tell whether it is being
10692 # built for inclusion in a dll (and should export symbols for example).
10693 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10695 darwin* | rhapsody*)
10696 # PIC is the default on this platform
10697 # Common symbols not allowed in MH_DYLIB files
10698 lt_prog_compiler_pic_CXX='-fno-common'
10701 # DJGPP does not support shared libraries at all
10702 lt_prog_compiler_pic_CXX=
10705 if test -d /usr/nec; then
10706 lt_prog_compiler_pic_CXX=-Kconform_pic
10710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10711 # not for PA HP-UX.
10712 case "$host_cpu" in
10716 lt_prog_compiler_pic_CXX='-fPIC'
10721 lt_prog_compiler_pic_CXX='-fPIC'
10727 # All AIX code is PIC.
10728 if test "$host_cpu" = ia64; then
10729 # AIX 5 now supports IA64 processor
10730 lt_prog_compiler_static_CXX='-Bstatic'
10732 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10736 case $cc_basename in
10738 # Green Hills C++ Compiler
10739 # _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"
10744 case $cc_basename in
10746 lt_prog_compiler_pic_CXX='-KPIC'
10749 # Green Hills C++ Compiler
10750 lt_prog_compiler_pic_CXX='-pic'
10756 freebsd* | kfreebsd*-gnu)
10757 # FreeBSD uses GNU C++
10759 hpux9* | hpux10* | hpux11*)
10760 case $cc_basename in
10762 lt_prog_compiler_wl_CXX='-Wl,'
10763 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10764 if test "$host_cpu" != ia64; then
10765 lt_prog_compiler_pic_CXX='+Z'
10769 lt_prog_compiler_wl_CXX='-Wl,'
10770 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10771 case "$host_cpu" in
10776 lt_prog_compiler_pic_CXX='+Z'
10784 irix5* | irix6* | nonstopux*)
10785 case $cc_basename in
10787 lt_prog_compiler_wl_CXX='-Wl,'
10788 lt_prog_compiler_static_CXX='-non_shared'
10789 # CC pic flag -KPIC is the default.
10796 case $cc_basename in
10799 lt_prog_compiler_wl_CXX='--backend -Wl,'
10800 lt_prog_compiler_pic_CXX='-fPIC'
10804 lt_prog_compiler_wl_CXX='-Wl,'
10805 lt_prog_compiler_pic_CXX='-KPIC'
10806 lt_prog_compiler_static_CXX='-static'
10810 # Make sure the PIC flag is empty. It appears that all Alpha
10811 # Linux and Compaq Tru64 Unix objects are PIC.
10812 lt_prog_compiler_pic_CXX=
10813 lt_prog_compiler_static_CXX='-non_shared'
10824 case $cc_basename in
10826 lt_prog_compiler_pic_CXX='-W c,exportall'
10832 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10834 osf3* | osf4* | osf5*)
10835 case $cc_basename in
10837 lt_prog_compiler_wl_CXX='--backend -Wl,'
10840 # Rational C++ 2.4.1
10841 lt_prog_compiler_pic_CXX='-pic'
10844 # Digital/Compaq C++
10845 lt_prog_compiler_wl_CXX='-Wl,'
10846 # Make sure the PIC flag is empty. It appears that all Alpha
10847 # Linux and Compaq Tru64 Unix objects are PIC.
10848 lt_prog_compiler_pic_CXX=
10849 lt_prog_compiler_static_CXX='-non_shared'
10858 case $cc_basename in
10860 lt_prog_compiler_pic_CXX='-fPIC'
10867 case $cc_basename in
10869 # Sun C++ 4.2, 5.x and Centerline C++
10870 lt_prog_compiler_pic_CXX='-KPIC'
10871 lt_prog_compiler_static_CXX='-Bstatic'
10872 lt_prog_compiler_wl_CXX='-Qoption ld '
10875 # Green Hills C++ Compiler
10876 lt_prog_compiler_pic_CXX='-PIC'
10883 case $cc_basename in
10886 lt_prog_compiler_pic_CXX='-pic'
10887 lt_prog_compiler_static_CXX='-Bstatic'
10891 lt_prog_compiler_pic_CXX='-pic'
10898 case $cc_basename in
10900 # NonStop-UX NCC 3.20
10901 lt_prog_compiler_pic_CXX='-KPIC'
10912 lt_prog_compiler_can_build_shared_CXX=no
10917 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10918 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10921 # Check to make sure the PIC flag actually works.
10923 if test -n "$lt_prog_compiler_pic_CXX"; then
10925 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10926 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10927 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 lt_prog_compiler_pic_works_CXX=no
10931 ac_outfile=conftest.$ac_objext
10932 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10933 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10934 # Insert the option either (1) after the last *FLAGS variable, or
10935 # (2) before a word containing "conftest.", or (3) at the end.
10936 # Note that $ac_compile itself does not contain backslashes and begins
10937 # with a dollar sign (not a hyphen), so the echo should work correctly.
10938 # The option is referenced via a variable to avoid confusing sed.
10939 lt_compile=`echo "$ac_compile" | $SED \
10940 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10941 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10942 -e 's:$: $lt_compiler_flag:'`
10943 (eval echo "\"\$as_me:10943: $lt_compile\"" >&5)
10944 (eval "$lt_compile" 2>conftest.err)
10946 cat conftest.err >&5
10947 echo "$as_me:10947: \$? = $ac_status" >&5
10948 if (exit $ac_status) && test -s "$ac_outfile"; then
10949 # The compiler can only warn and ignore the option if not recognized
10950 # So say no if there are warnings
10951 if test ! -s conftest.err; then
10952 lt_prog_compiler_pic_works_CXX=yes
10958 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10959 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10961 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10962 case $lt_prog_compiler_pic_CXX in
10964 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10967 lt_prog_compiler_pic_CXX=
10968 lt_prog_compiler_can_build_shared_CXX=no
10973 # For platforms which do not support PIC, -DPIC is meaningless:
10975 lt_prog_compiler_pic_CXX=
10978 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10982 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10983 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10984 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10985 echo $ECHO_N "(cached) $ECHO_C" >&6
10987 lt_cv_prog_compiler_c_o_CXX=no
10988 $rm -r conftest 2>/dev/null
10992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10994 lt_compiler_flag="-o out/conftest2.$ac_objext"
10995 # Insert the option either (1) after the last *FLAGS variable, or
10996 # (2) before a word containing "conftest.", or (3) at the end.
10997 # Note that $ac_compile itself does not contain backslashes and begins
10998 # with a dollar sign (not a hyphen), so the echo should work correctly.
10999 lt_compile=`echo "$ac_compile" | $SED \
11000 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11001 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11002 -e 's:$: $lt_compiler_flag:'`
11003 (eval echo "\"\$as_me:11003: $lt_compile\"" >&5)
11004 (eval "$lt_compile" 2>out/conftest.err)
11006 cat out/conftest.err >&5
11007 echo "$as_me:11007: \$? = $ac_status" >&5
11008 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11010 # The compiler can only warn and ignore the option if not recognized
11011 # So say no if there are warnings
11012 if test ! -s out/conftest.err; then
11013 lt_cv_prog_compiler_c_o_CXX=yes
11018 # SGI C++ compiler will create directory out/ii_files/ for
11019 # template instantiation
11020 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11021 $rm out/* && rmdir out
11027 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11028 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11031 hard_links="nottested"
11032 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11033 # do not overwrite the value of need_locks provided by the user
11034 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11035 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11038 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11040 ln conftest.a conftest.b 2>&5 || hard_links=no
11041 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11042 echo "$as_me:$LINENO: result: $hard_links" >&5
11043 echo "${ECHO_T}$hard_links" >&6
11044 if test "$hard_links" = no; then
11045 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11046 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11053 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11054 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11056 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11059 # If we're using GNU nm, then we don't want the "-C" option.
11060 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11061 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11062 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'
11064 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'
11068 export_symbols_cmds_CXX="$ltdll_cmds"
11071 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11074 link_all_deplibs_CXX=no
11077 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11081 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11082 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11083 test "$ld_shlibs_CXX" = no && can_build_shared=no
11085 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11086 if test "$GCC" = yes; then
11087 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11091 # Do we need to explicitly link libc?
11093 case "x$archive_cmds_need_lc_CXX" in
11095 # Assume -lc should be added
11096 archive_cmds_need_lc_CXX=yes
11098 if test "$enable_shared" = yes && test "$GCC" = yes; then
11099 case $archive_cmds_CXX in
11101 # FIXME: we may have to deal with multi-command sequences.
11104 # Test whether the compiler implicitly links with -lc since on some
11105 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11106 # to ld, don't add -lc before -lgcc.
11107 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11108 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11110 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11113 (eval $ac_compile) 2>&5
11115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11116 (exit $ac_status); } 2>conftest.err; then
11119 libobjs=conftest.$ac_objext
11121 wl=$lt_prog_compiler_wl_CXX
11127 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11128 allow_undefined_flag_CXX=
11129 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11130 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }
11135 archive_cmds_need_lc_CXX=no
11137 archive_cmds_need_lc_CXX=yes
11139 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11141 cat conftest.err 1>&5
11144 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11145 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11152 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11153 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11154 library_names_spec=
11155 libname_spec='lib$name'
11159 postuninstall_cmds=
11163 shlibpath_overrides_runpath=unknown
11165 dynamic_linker="$host_os ld.so"
11166 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11167 if test "$GCC" = yes; then
11168 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11169 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11170 # if the path contains ";" then we assume it to be the separator
11171 # otherwise default to the standard path separator (i.e. ":") - it is
11172 # assumed that no part of a normal pathname contains ";" but that should
11173 # okay in the real world where ";" in dirpaths is itself problematic.
11174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11176 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11179 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11181 need_lib_prefix=unknown
11182 hardcode_into_libs=no
11184 # when you set need_version to no, make sure it does not cause -set_version
11185 # flags to be left without arguments
11186 need_version=unknown
11191 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11192 shlibpath_var=LIBPATH
11194 # AIX 3 has no versioning support, so we append a major version to the name.
11195 soname_spec='${libname}${release}${shared_ext}$major'
11202 hardcode_into_libs=yes
11203 if test "$host_cpu" = ia64; then
11204 # AIX 5 supports IA64
11205 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11206 shlibpath_var=LD_LIBRARY_PATH
11208 # With GCC up to 2.95.x, collect2 would create an import file
11209 # for dependence libraries. The import file would start with
11210 # the line `#! .'. This would cause the generated library to
11211 # depend on `.', always an invalid library. This was fixed in
11212 # development snapshots of GCC prior to 3.0.
11214 aix4 | aix4.[01] | aix4.[01].*)
11215 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11217 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11220 can_build_shared=no
11224 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11225 # soname into executable. Probably we can add versioning support to
11226 # collect2, so additional links can be useful in future.
11227 if test "$aix_use_runtimelinking" = yes; then
11228 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11229 # instead of lib<name>.a to let people know that these are not
11230 # typical AIX shared libraries.
11231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11233 # We preserve .a as extension for shared libraries through AIX4.2
11234 # and later when we are not doing run time linking.
11235 library_names_spec='${libname}${release}.a $libname.a'
11236 soname_spec='${libname}${release}${shared_ext}$major'
11238 shlibpath_var=LIBPATH
11243 library_names_spec='$libname.ixlibrary $libname.a'
11244 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11245 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'
11249 library_names_spec='${libname}${shared_ext}'
11250 dynamic_linker="$host_os ld.so"
11251 shlibpath_var=LIBRARY_PATH
11257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11258 soname_spec='${libname}${release}${shared_ext}$major'
11259 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11260 shlibpath_var=LD_LIBRARY_PATH
11261 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11262 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11263 # the default ld.so.conf also contains /usr/contrib/lib and
11264 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11265 # libtool to hard-code these into programs
11268 cygwin* | mingw* | pw32*)
11269 version_type=windows
11274 case $GCC,$host_os in
11275 yes,cygwin* | yes,mingw* | yes,pw32*)
11276 library_names_spec='$libname.dll.a'
11277 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11278 postinstall_cmds='base_file=`basename \${file}`~
11279 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11280 dldir=$destdir/`dirname \$dlpath`~
11281 test -d \$dldir || mkdir -p \$dldir~
11282 $install_prog $dir/$dlname \$dldir/$dlname'
11283 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11284 dlpath=$dir/\$dldll~
11286 shlibpath_overrides_runpath=yes
11290 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11291 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11292 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11295 # MinGW DLLs use traditional 'lib' prefix
11296 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11297 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11298 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11299 # It is most probably a Windows format PATH printed by
11300 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11301 # path with ; separators, and with drive letters. We can handle the
11302 # drive letters (cygwin fileutils understands them), so leave them,
11303 # especially as we might pass files found there to a mingw objdump,
11304 # which wouldn't understand a cygwinified path. Ahh.
11305 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11307 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11311 # pw32 DLLs use 'pw' prefix rather than 'lib'
11312 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11318 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11321 dynamic_linker='Win32 ld.exe'
11322 # FIXME: first we should search . and the directory the executable is in
11326 darwin* | rhapsody*)
11327 dynamic_linker="$host_os dyld"
11328 version_type=darwin
11331 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11332 soname_spec='${libname}${release}${major}$shared_ext'
11333 shlibpath_overrides_runpath=yes
11334 shlibpath_var=DYLD_LIBRARY_PATH
11335 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11336 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11337 if test "$GCC" = yes; then
11338 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
11340 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11342 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11350 soname_spec='${libname}${release}${shared_ext}$major'
11351 shlibpath_var=LD_LIBRARY_PATH
11362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11363 soname_spec='${libname}${release}${shared_ext}$major'
11364 shlibpath_var=LD_LIBRARY_PATH
11365 shlibpath_overrides_runpath=no
11366 hardcode_into_libs=yes
11367 dynamic_linker='GNU ld.so'
11371 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11372 version_type=freebsd-$objformat
11373 case $version_type in
11375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11380 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11384 shlibpath_var=LD_LIBRARY_PATH
11387 shlibpath_overrides_runpath=yes
11389 freebsd3.01* | freebsdelf3.01*)
11390 shlibpath_overrides_runpath=yes
11391 hardcode_into_libs=yes
11394 shlibpath_overrides_runpath=no
11395 hardcode_into_libs=yes
11404 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11405 soname_spec='${libname}${release}${shared_ext}$major'
11406 shlibpath_var=LD_LIBRARY_PATH
11407 hardcode_into_libs=yes
11410 hpux9* | hpux10* | hpux11*)
11411 # Give a soname corresponding to the major version so that dld.sl refuses to
11412 # link against other versions.
11416 case "$host_cpu" in
11419 hardcode_into_libs=yes
11420 dynamic_linker="$host_os dld.so"
11421 shlibpath_var=LD_LIBRARY_PATH
11422 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11423 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11424 soname_spec='${libname}${release}${shared_ext}$major'
11425 if test "X$HPUX_IA64_MODE" = X32; then
11426 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11428 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11430 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11434 hardcode_into_libs=yes
11435 dynamic_linker="$host_os dld.sl"
11436 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11437 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11439 soname_spec='${libname}${release}${shared_ext}$major'
11440 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11441 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11445 dynamic_linker="$host_os dld.sl"
11446 shlibpath_var=SHLIB_PATH
11447 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11449 soname_spec='${libname}${release}${shared_ext}$major'
11452 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11453 postinstall_cmds='chmod 555 $lib'
11456 irix5* | irix6* | nonstopux*)
11458 nonstopux*) version_type=nonstopux ;;
11460 if test "$lt_cv_prog_gnu_ld" = yes; then
11468 soname_spec='${libname}${release}${shared_ext}$major'
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11471 irix5* | nonstopux*)
11472 libsuff= shlibsuff=
11475 case $LD in # libtool.m4 will add one of these switches to LD
11476 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11477 libsuff= shlibsuff= libmagic=32-bit;;
11478 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11479 libsuff=32 shlibsuff=N32 libmagic=N32;;
11480 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11481 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11482 *) libsuff= shlibsuff= libmagic=never-match;;
11486 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11487 shlibpath_overrides_runpath=no
11488 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11489 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11490 hardcode_into_libs=yes
11493 # No shared lib support for Linux oldld, aout, or coff.
11494 linux*oldld* | linux*aout* | linux*coff*)
11498 # This must be Linux ELF.
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11506 shlibpath_var=LD_LIBRARY_PATH
11507 shlibpath_overrides_runpath=no
11508 # This implies no fast_install, which is unacceptable.
11509 # Some rework will be needed to allow for fast_install
11510 # before this can be enabled.
11511 hardcode_into_libs=yes
11513 # Append ld.so.conf contents to the search path
11514 if test -f /etc/ld.so.conf; then
11515 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11516 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11519 # We used to test for /lib/ld.so.1 and disable shared libraries on
11520 # powerpc, because MkLinux only supported shared libraries with the
11521 # GNU dynamic linker. Since this was broken with cross compilers,
11522 # most powerpc-linux boxes support dynamic linking these days and
11523 # people can always --disable-shared, the test was removed, and we
11524 # assume the GNU/Linux dynamic linker is in use.
11525 dynamic_linker='GNU/Linux ld.so'
11532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 shlibpath_var=LD_LIBRARY_PATH
11535 shlibpath_overrides_runpath=no
11536 hardcode_into_libs=yes
11537 dynamic_linker='NetBSD ld.elf_so'
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 shlibpath_var=LD_LIBRARY_PATH
11547 shlibpath_overrides_runpath=no
11548 hardcode_into_libs=yes
11549 dynamic_linker='GNU ld.so'
11556 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11559 dynamic_linker='NetBSD (a.out) ld.so'
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 dynamic_linker='NetBSD ld.elf_so'
11565 shlibpath_var=LD_LIBRARY_PATH
11566 shlibpath_overrides_runpath=yes
11567 hardcode_into_libs=yes
11572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11573 shlibpath_var=LD_LIBRARY_PATH
11574 shlibpath_overrides_runpath=yes
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11592 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11593 shlibpath_var=LD_LIBRARY_PATH
11594 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11596 openbsd2.[89] | openbsd2.[89].*)
11597 shlibpath_overrides_runpath=no
11600 shlibpath_overrides_runpath=yes
11604 shlibpath_overrides_runpath=yes
11609 libname_spec='$name'
11612 library_names_spec='$libname${shared_ext} $libname.a'
11613 dynamic_linker='OS/2 ld.exe'
11614 shlibpath_var=LIBPATH
11617 osf3* | osf4* | osf5*)
11621 soname_spec='${libname}${release}${shared_ext}$major'
11622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11623 shlibpath_var=LD_LIBRARY_PATH
11624 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11625 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11630 soname_spec='${libname}${release}${shared_ext}$major'
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 shlibpath_var=LD_LIBRARY_PATH
11639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11640 soname_spec='${libname}${release}${shared_ext}$major'
11641 shlibpath_var=LD_LIBRARY_PATH
11642 shlibpath_overrides_runpath=yes
11643 hardcode_into_libs=yes
11644 # ldd complains unless libraries are executable
11645 postinstall_cmds='chmod +x $lib'
11650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11651 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=yes
11654 if test "$with_gnu_ld" = yes; then
11660 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11663 soname_spec='${libname}${release}${shared_ext}$major'
11664 shlibpath_var=LD_LIBRARY_PATH
11665 case $host_vendor in
11667 shlibpath_overrides_runpath=no
11669 export_dynamic_flag_spec='${wl}-Blargedynsym'
11670 runpath_var=LD_RUN_PATH
11678 shlibpath_overrides_runpath=no
11679 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11685 if test -d /usr/nec ;then
11687 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11688 soname_spec='$libname${shared_ext}.$major'
11689 shlibpath_var=LD_LIBRARY_PATH
11695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11696 soname_spec='${libname}${release}${shared_ext}$major'
11697 shlibpath_var=LD_LIBRARY_PATH
11704 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11705 echo "${ECHO_T}$dynamic_linker" >&6
11706 test "$dynamic_linker" = no && can_build_shared=no
11708 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11709 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11710 hardcode_action_CXX=
11711 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11712 test -n "$runpath_var CXX" || \
11713 test "X$hardcode_automatic_CXX"="Xyes" ; then
11715 # We can hardcode non-existant directories.
11716 if test "$hardcode_direct_CXX" != no &&
11717 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11718 # have to relink, otherwise we might link with an installed library
11719 # when we should be linking with a yet-to-be-installed one
11720 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11721 test "$hardcode_minus_L_CXX" != no; then
11722 # Linking always hardcodes the temporary library directory.
11723 hardcode_action_CXX=relink
11725 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11726 hardcode_action_CXX=immediate
11729 # We cannot hardcode anything, or else we can only hardcode existing
11731 hardcode_action_CXX=unsupported
11733 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11734 echo "${ECHO_T}$hardcode_action_CXX" >&6
11736 if test "$hardcode_action_CXX" = relink; then
11737 # Fast installation is not supported
11738 enable_fast_install=no
11739 elif test "$shlibpath_overrides_runpath" = yes ||
11740 test "$enable_shared" = no; then
11741 # Fast installation is not necessary
11742 enable_fast_install=needless
11747 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11748 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11749 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11750 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11751 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11752 echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6
11755 # FIXME - insert some real tests, host_os isn't really good enough
11758 if test -n "$STRIP" ; then
11759 striplib="$STRIP -x"
11760 echo "$as_me:$LINENO: result: yes" >&5
11761 echo "${ECHO_T}yes" >&6
11763 echo "$as_me:$LINENO: result: no" >&5
11764 echo "${ECHO_T}no" >&6
11768 echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6
11774 if test "x$enable_dlopen" != xyes; then
11775 enable_dlopen=unknown
11776 enable_dlopen_self=unknown
11777 enable_dlopen_self_static=unknown
11784 lt_cv_dlopen="load_add_on"
11786 lt_cv_dlopen_self=yes
11790 lt_cv_dlopen="LoadLibrary"
11795 lt_cv_dlopen="dlopen"
11800 # if libdl is installed we need to link against it
11801 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11802 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11803 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11804 echo $ECHO_N "(cached) $ECHO_C" >&6
11806 ac_check_lib_save_LIBS=$LIBS
11808 cat >conftest.$ac_ext <<_ACEOF
11809 #line $LINENO "configure"
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11816 /* Override any gcc2 internal prototype to avoid an error. */
11820 /* We use char because int might match the return type of a gcc2
11821 builtin and then its argument prototype would still apply. */
11831 rm -f conftest.$ac_objext conftest$ac_exeext
11832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11833 (eval $ac_link) 2>&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } &&
11837 { ac_try='test -s conftest$ac_exeext'
11838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11839 (eval $ac_try) 2>&5
11841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842 (exit $ac_status); }; }; then
11843 ac_cv_lib_dl_dlopen=yes
11845 echo "$as_me: failed program was:" >&5
11846 sed 's/^/| /' conftest.$ac_ext >&5
11848 ac_cv_lib_dl_dlopen=no
11850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11851 LIBS=$ac_check_lib_save_LIBS
11853 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11854 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11855 if test $ac_cv_lib_dl_dlopen = yes; then
11856 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11859 lt_cv_dlopen="dyld"
11861 lt_cv_dlopen_self=yes
11868 echo "$as_me:$LINENO: checking for shl_load" >&5
11869 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11870 if test "${ac_cv_func_shl_load+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.$ac_ext <<_ACEOF
11874 #line $LINENO "configure"
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11880 /* System header to define __stub macros and hopefully few prototypes,
11881 which can conflict with char shl_load (); below.
11882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11883 <limits.h> exists even on freestanding compilers. */
11885 # include <limits.h>
11887 # include <assert.h>
11889 /* Override any gcc2 internal prototype to avoid an error. */
11894 /* We use char because int might match the return type of a gcc2
11895 builtin and then its argument prototype would still apply. */
11897 /* The GNU C library defines this for functions which it implements
11898 to always fail with ENOSYS. Some functions are actually named
11899 something starting with __ and the normal name is an alias. */
11900 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11903 char (*f) () = shl_load;
11912 return f != shl_load;
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11919 (eval $ac_link) 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11925 (eval $ac_try) 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 ac_cv_func_shl_load=yes
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 ac_cv_func_shl_load=no
11936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11938 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11939 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11940 if test $ac_cv_func_shl_load = yes; then
11941 lt_cv_dlopen="shl_load"
11943 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11944 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11945 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 ac_check_lib_save_LIBS=$LIBS
11950 cat >conftest.$ac_ext <<_ACEOF
11951 #line $LINENO "configure"
11954 cat confdefs.h >>conftest.$ac_ext
11955 cat >>conftest.$ac_ext <<_ACEOF
11956 /* end confdefs.h. */
11958 /* Override any gcc2 internal prototype to avoid an error. */
11962 /* We use char because int might match the return type of a gcc2
11963 builtin and then its argument prototype would still apply. */
11973 rm -f conftest.$ac_objext conftest$ac_exeext
11974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11975 (eval $ac_link) 2>&5
11977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978 (exit $ac_status); } &&
11979 { ac_try='test -s conftest$ac_exeext'
11980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11981 (eval $ac_try) 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_lib_dld_shl_load=yes
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_cv_lib_dld_shl_load=no
11992 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11993 LIBS=$ac_check_lib_save_LIBS
11995 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11996 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11997 if test $ac_cv_lib_dld_shl_load = yes; then
11998 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12000 echo "$as_me:$LINENO: checking for dlopen" >&5
12001 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12002 if test "${ac_cv_func_dlopen+set}" = set; then
12003 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 cat >conftest.$ac_ext <<_ACEOF
12006 #line $LINENO "configure"
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 /* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char dlopen (); below.
12014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 <limits.h> exists even on freestanding compilers. */
12017 # include <limits.h>
12019 # include <assert.h>
12021 /* Override any gcc2 internal prototype to avoid an error. */
12026 /* We use char because int might match the return type of a gcc2
12027 builtin and then its argument prototype would still apply. */
12029 /* The GNU C library defines this for functions which it implements
12030 to always fail with ENOSYS. Some functions are actually named
12031 something starting with __ and the normal name is an alias. */
12032 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12035 char (*f) () = dlopen;
12044 return f != dlopen;
12049 rm -f conftest.$ac_objext conftest$ac_exeext
12050 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12051 (eval $ac_link) 2>&5
12053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12054 (exit $ac_status); } &&
12055 { ac_try='test -s conftest$ac_exeext'
12056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12057 (eval $ac_try) 2>&5
12059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12060 (exit $ac_status); }; }; then
12061 ac_cv_func_dlopen=yes
12063 echo "$as_me: failed program was:" >&5
12064 sed 's/^/| /' conftest.$ac_ext >&5
12066 ac_cv_func_dlopen=no
12068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12070 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12071 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12072 if test $ac_cv_func_dlopen = yes; then
12073 lt_cv_dlopen="dlopen"
12075 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12076 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12077 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12080 ac_check_lib_save_LIBS=$LIBS
12082 cat >conftest.$ac_ext <<_ACEOF
12083 #line $LINENO "configure"
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12090 /* Override any gcc2 internal prototype to avoid an error. */
12094 /* We use char because int might match the return type of a gcc2
12095 builtin and then its argument prototype would still apply. */
12105 rm -f conftest.$ac_objext conftest$ac_exeext
12106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12107 (eval $ac_link) 2>&5
12109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12110 (exit $ac_status); } &&
12111 { ac_try='test -s conftest$ac_exeext'
12112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12113 (eval $ac_try) 2>&5
12115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12116 (exit $ac_status); }; }; then
12117 ac_cv_lib_dl_dlopen=yes
12119 echo "$as_me: failed program was:" >&5
12120 sed 's/^/| /' conftest.$ac_ext >&5
12122 ac_cv_lib_dl_dlopen=no
12124 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12125 LIBS=$ac_check_lib_save_LIBS
12127 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12128 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12129 if test $ac_cv_lib_dl_dlopen = yes; then
12130 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12132 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12133 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12134 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12135 echo $ECHO_N "(cached) $ECHO_C" >&6
12137 ac_check_lib_save_LIBS=$LIBS
12138 LIBS="-lsvld $LIBS"
12139 cat >conftest.$ac_ext <<_ACEOF
12140 #line $LINENO "configure"
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 /* Override any gcc2 internal prototype to avoid an error. */
12151 /* We use char because int might match the return type of a gcc2
12152 builtin and then its argument prototype would still apply. */
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12164 (eval $ac_link) 2>&5
12166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12167 (exit $ac_status); } &&
12168 { ac_try='test -s conftest$ac_exeext'
12169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12170 (eval $ac_try) 2>&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); }; }; then
12174 ac_cv_lib_svld_dlopen=yes
12176 echo "$as_me: failed program was:" >&5
12177 sed 's/^/| /' conftest.$ac_ext >&5
12179 ac_cv_lib_svld_dlopen=no
12181 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12182 LIBS=$ac_check_lib_save_LIBS
12184 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12185 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12186 if test $ac_cv_lib_svld_dlopen = yes; then
12187 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12189 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12190 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12191 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12192 echo $ECHO_N "(cached) $ECHO_C" >&6
12194 ac_check_lib_save_LIBS=$LIBS
12196 cat >conftest.$ac_ext <<_ACEOF
12197 #line $LINENO "configure"
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12204 /* Override any gcc2 internal prototype to avoid an error. */
12208 /* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>&5
12223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12224 (exit $ac_status); } &&
12225 { ac_try='test -s conftest$ac_exeext'
12226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12227 (eval $ac_try) 2>&5
12229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); }; }; then
12231 ac_cv_lib_dld_dld_link=yes
12233 echo "$as_me: failed program was:" >&5
12234 sed 's/^/| /' conftest.$ac_ext >&5
12236 ac_cv_lib_dld_dld_link=no
12238 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12243 if test $ac_cv_lib_dld_dld_link = yes; then
12244 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12265 if test "x$lt_cv_dlopen" != xno; then
12271 case $lt_cv_dlopen in
12273 save_CPPFLAGS="$CPPFLAGS"
12274 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12276 save_LDFLAGS="$LDFLAGS"
12277 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12280 LIBS="$lt_cv_dlopen_libs $LIBS"
12282 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12283 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12284 if test "${lt_cv_dlopen_self+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 if test "$cross_compiling" = yes; then :
12288 lt_cv_dlopen_self=cross
12290 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12291 lt_status=$lt_dlunknown
12292 cat > conftest.$ac_ext <<EOF
12293 #line 12293 "configure"
12294 #include "confdefs.h"
12303 # define LT_DLGLOBAL RTLD_GLOBAL
12306 # define LT_DLGLOBAL DL_GLOBAL
12308 # define LT_DLGLOBAL 0
12312 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12313 find out it does not work in some platform. */
12314 #ifndef LT_DLLAZY_OR_NOW
12316 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12319 # define LT_DLLAZY_OR_NOW DL_LAZY
12322 # define LT_DLLAZY_OR_NOW RTLD_NOW
12325 # define LT_DLLAZY_OR_NOW DL_NOW
12327 # define LT_DLLAZY_OR_NOW 0
12335 extern "C" void exit (int);
12338 void fnord() { int i=42;}
12341 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12342 int status = $lt_dlunknown;
12346 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12347 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12348 /* dlclose (self); */
12354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12355 (eval $ac_link) 2>&5
12357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12359 (./conftest; exit; ) 2>/dev/null
12361 case x$lt_status in
12362 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12363 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12364 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12367 # compilation failed
12368 lt_cv_dlopen_self=no
12375 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12376 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12378 if test "x$lt_cv_dlopen_self" = xyes; then
12379 LDFLAGS="$LDFLAGS $link_static_flag"
12380 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12381 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12382 if test "${lt_cv_dlopen_self_static+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 if test "$cross_compiling" = yes; then :
12386 lt_cv_dlopen_self_static=cross
12388 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12389 lt_status=$lt_dlunknown
12390 cat > conftest.$ac_ext <<EOF
12391 #line 12391 "configure"
12392 #include "confdefs.h"
12401 # define LT_DLGLOBAL RTLD_GLOBAL
12404 # define LT_DLGLOBAL DL_GLOBAL
12406 # define LT_DLGLOBAL 0
12410 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12411 find out it does not work in some platform. */
12412 #ifndef LT_DLLAZY_OR_NOW
12414 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12417 # define LT_DLLAZY_OR_NOW DL_LAZY
12420 # define LT_DLLAZY_OR_NOW RTLD_NOW
12423 # define LT_DLLAZY_OR_NOW DL_NOW
12425 # define LT_DLLAZY_OR_NOW 0
12433 extern "C" void exit (int);
12436 void fnord() { int i=42;}
12439 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12440 int status = $lt_dlunknown;
12444 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12445 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12446 /* dlclose (self); */
12452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12453 (eval $ac_link) 2>&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12457 (./conftest; exit; ) 2>/dev/null
12459 case x$lt_status in
12460 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12461 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12462 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12465 # compilation failed
12466 lt_cv_dlopen_self_static=no
12473 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12474 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12477 CPPFLAGS="$save_CPPFLAGS"
12478 LDFLAGS="$save_LDFLAGS"
12483 case $lt_cv_dlopen_self in
12484 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12485 *) enable_dlopen_self=unknown ;;
12488 case $lt_cv_dlopen_self_static in
12489 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12490 *) enable_dlopen_self_static=unknown ;;
12495 # The else clause should only fire when bootstrapping the
12496 # libtool distribution, otherwise you forgot to ship ltmain.sh
12497 # with your package, and you will get complaints that there are
12498 # no rules to generate ltmain.sh.
12499 if test -f "$ltmain"; then
12500 # See if we are running on zsh, and set the options which allow our commands through
12501 # without removal of \ escapes.
12502 if test -n "${ZSH_VERSION+set}" ; then
12503 setopt NO_GLOB_SUBST
12505 # Now quote all the things that may contain metacharacters while being
12506 # careful not to overquote the AC_SUBSTed values. We take copies of the
12507 # variables and quote the copies for generation of the libtool script.
12508 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12510 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12511 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12512 deplibs_check_method reload_flag reload_cmds need_locks \
12513 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12514 lt_cv_sys_global_symbol_to_c_name_address \
12515 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12516 old_postinstall_cmds old_postuninstall_cmds \
12520 lt_prog_compiler_wl_CXX \
12521 lt_prog_compiler_pic_CXX \
12522 lt_prog_compiler_static_CXX \
12523 lt_prog_compiler_no_builtin_flag_CXX \
12524 export_dynamic_flag_spec_CXX \
12525 thread_safe_flag_spec_CXX \
12526 whole_archive_flag_spec_CXX \
12527 enable_shared_with_static_runtimes_CXX \
12528 old_archive_cmds_CXX \
12529 old_archive_from_new_cmds_CXX \
12530 predep_objects_CXX \
12531 postdep_objects_CXX \
12534 compiler_lib_search_path_CXX \
12536 archive_expsym_cmds_CXX \
12537 postinstall_cmds_CXX \
12538 postuninstall_cmds_CXX \
12539 old_archive_from_expsyms_cmds_CXX \
12540 allow_undefined_flag_CXX \
12541 no_undefined_flag_CXX \
12542 export_symbols_cmds_CXX \
12543 hardcode_libdir_flag_spec_CXX \
12544 hardcode_libdir_flag_spec_ld_CXX \
12545 hardcode_libdir_separator_CXX \
12546 hardcode_automatic_CXX \
12548 module_expsym_cmds_CXX \
12549 lt_cv_prog_compiler_c_o_CXX \
12550 exclude_expsyms_CXX \
12551 include_expsyms_CXX; do
12554 old_archive_cmds_CXX | \
12555 old_archive_from_new_cmds_CXX | \
12556 archive_cmds_CXX | \
12557 archive_expsym_cmds_CXX | \
12558 module_cmds_CXX | \
12559 module_expsym_cmds_CXX | \
12560 old_archive_from_expsyms_cmds_CXX | \
12561 export_symbols_cmds_CXX | \
12562 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12563 postinstall_cmds | postuninstall_cmds | \
12564 old_postinstall_cmds | old_postuninstall_cmds | \
12565 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12566 # Double-quote double-evaled strings.
12567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12570 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12576 *'\$0 --fallback-echo"')
12577 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12583 cat <<__EOF__ >> "$cfgfile"
12584 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12586 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12588 # Shell to use when invoking shell scripts.
12591 # Whether or not to build shared libraries.
12592 build_libtool_libs=$enable_shared
12594 # Whether or not to build static libraries.
12595 build_old_libs=$enable_static
12597 # Whether or not to add -lc for building shared libraries.
12598 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12600 # Whether or not to disallow shared libs when runtime libs are static
12601 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12603 # Whether or not to optimize for fast installation.
12604 fast_install=$enable_fast_install
12607 host_alias=$host_alias
12610 # An echo program that does not interpret backslashes.
12615 AR_FLAGS=$lt_AR_FLAGS
12620 # A language-specific compiler.
12621 CC=$lt_compiler_CXX
12623 # Is the compiler the GNU C compiler?
12629 # The linker used to build libraries.
12632 # Whether we need hard or soft links.
12635 # A BSD-compatible nm program.
12638 # A symbol stripping program
12641 # Used to examine libraries when file_magic_cmd begins "file"
12642 MAGIC_CMD=$MAGIC_CMD
12644 # Used on cygwin: DLL creation program.
12647 # Used on cygwin: object dumper.
12650 # Used on cygwin: assembler.
12653 # The name of the directory that contains temporary libtool files.
12656 # How to create reloadable object files.
12657 reload_flag=$lt_reload_flag
12658 reload_cmds=$lt_reload_cmds
12660 # How to pass a linker flag through the compiler.
12661 wl=$lt_lt_prog_compiler_wl_CXX
12663 # Object file suffix (normally "o").
12664 objext="$ac_objext"
12666 # Old archive suffix (normally "a").
12669 # Shared library suffix (normally ".so").
12670 shrext_cmds='$shrext_cmds'
12672 # Executable file suffix (normally "").
12675 # Additional compiler flags for building library objects.
12676 pic_flag=$lt_lt_prog_compiler_pic_CXX
12679 # What is the maximum length of a command?
12680 max_cmd_len=$lt_cv_sys_max_cmd_len
12682 # Does compiler simultaneously support -c and -o options?
12683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12685 # Must we lock files when doing compilation ?
12686 need_locks=$lt_need_locks
12688 # Do we need the lib prefix for modules?
12689 need_lib_prefix=$need_lib_prefix
12691 # Do we need a version for libraries?
12692 need_version=$need_version
12694 # Whether dlopen is supported.
12695 dlopen_support=$enable_dlopen
12697 # Whether dlopen of programs is supported.
12698 dlopen_self=$enable_dlopen_self
12700 # Whether dlopen of statically linked programs is supported.
12701 dlopen_self_static=$enable_dlopen_self_static
12703 # Compiler flag to prevent dynamic linking.
12704 link_static_flag=$lt_lt_prog_compiler_static_CXX
12706 # Compiler flag to turn off builtin functions.
12707 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12709 # Compiler flag to allow reflexive dlopens.
12710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12712 # Compiler flag to generate shared objects directly from archives.
12713 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12715 # Compiler flag to generate thread-safe objects.
12716 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12718 # Library versioning type.
12719 version_type=$version_type
12721 # Format of library name prefix.
12722 libname_spec=$lt_libname_spec
12724 # List of archive names. First name is the real one, the rest are links.
12725 # The last name is the one that the linker finds with -lNAME.
12726 library_names_spec=$lt_library_names_spec
12728 # The coded name of the library, if different from the real name.
12729 soname_spec=$lt_soname_spec
12731 # Commands used to build and install an old-style archive.
12733 old_archive_cmds=$lt_old_archive_cmds_CXX
12734 old_postinstall_cmds=$lt_old_postinstall_cmds
12735 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12737 # Create an old-style archive from a shared archive.
12738 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12740 # Create a temporary old-style archive to link instead of a shared archive.
12741 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12743 # Commands used to build and install a shared archive.
12744 archive_cmds=$lt_archive_cmds_CXX
12745 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12746 postinstall_cmds=$lt_postinstall_cmds
12747 postuninstall_cmds=$lt_postuninstall_cmds
12749 # Commands used to build a loadable module (assumed same as above if empty)
12750 module_cmds=$lt_module_cmds_CXX
12751 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12753 # Commands to strip libraries.
12754 old_striplib=$lt_old_striplib
12755 striplib=$lt_striplib
12757 # Dependencies to place before the objects being linked to create a
12759 predep_objects=$lt_predep_objects_CXX
12761 # Dependencies to place after the objects being linked to create a
12763 postdep_objects=$lt_postdep_objects_CXX
12765 # Dependencies to place before the objects being linked to create a
12767 predeps=$lt_predeps_CXX
12769 # Dependencies to place after the objects being linked to create a
12771 postdeps=$lt_postdeps_CXX
12773 # The library search path used internally by the compiler when linking
12774 # a shared library.
12775 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12777 # Method to check whether dependent libraries are shared objects.
12778 deplibs_check_method=$lt_deplibs_check_method
12780 # Command to use when deplibs_check_method == file_magic.
12781 file_magic_cmd=$lt_file_magic_cmd
12783 # Flag that allows shared libraries with undefined symbols to be built.
12784 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12786 # Flag that forces no undefined symbols.
12787 no_undefined_flag=$lt_no_undefined_flag_CXX
12789 # Commands used to finish a libtool library installation in a directory.
12790 finish_cmds=$lt_finish_cmds
12792 # Same as above, but a single script fragment to be evaled but not shown.
12793 finish_eval=$lt_finish_eval
12795 # Take the output of nm and produce a listing of raw symbols and C names.
12796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12798 # Transform the output of nm in a proper C declaration
12799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12801 # Transform the output of nm in a C name address pair
12802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12804 # This is the shared library runtime path variable.
12805 runpath_var=$runpath_var
12807 # This is the shared library path variable.
12808 shlibpath_var=$shlibpath_var
12810 # Is shlibpath searched before the hard-coded library search path?
12811 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12813 # How to hardcode a shared library path into an executable.
12814 hardcode_action=$hardcode_action_CXX
12816 # Whether we should hardcode library paths into libraries.
12817 hardcode_into_libs=$hardcode_into_libs
12819 # Flag to hardcode \$libdir into a binary during linking.
12820 # This must work even if \$libdir does not exist.
12821 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12823 # If ld is used when linking, flag to hardcode \$libdir into
12824 # a binary during linking. This must work even if \$libdir does
12826 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12828 # Whether we need a single -rpath flag with a separated argument.
12829 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12831 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12832 # resulting binary.
12833 hardcode_direct=$hardcode_direct_CXX
12835 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12836 # resulting binary.
12837 hardcode_minus_L=$hardcode_minus_L_CXX
12839 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12840 # the resulting binary.
12841 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12843 # Set to yes if building a shared library automatically hardcodes DIR into the library
12844 # and all subsequent libraries and executables linked against it.
12845 hardcode_automatic=$hardcode_automatic_CXX
12847 # Variables whose values should be saved in libtool wrapper scripts and
12848 # restored at relink time.
12849 variables_saved_for_relink="$variables_saved_for_relink"
12851 # Whether libtool must link a program against all its dependency libraries.
12852 link_all_deplibs=$link_all_deplibs_CXX
12854 # Compile-time system search path for libraries
12855 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12857 # Run-time system search path for libraries
12858 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12860 # Fix the shell variable \$srcfile for the compiler.
12861 fix_srcfile_path="$fix_srcfile_path_CXX"
12863 # Set to yes if exported symbols are required.
12864 always_export_symbols=$always_export_symbols_CXX
12866 # The commands to list exported symbols.
12867 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12869 # The commands to extract the exported symbol list from a shared archive.
12870 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12872 # Symbols that should not be listed in the preloaded symbols.
12873 exclude_expsyms=$lt_exclude_expsyms_CXX
12875 # Symbols that must always be exported.
12876 include_expsyms=$lt_include_expsyms_CXX
12878 # ### END LIBTOOL TAG CONFIG: $tagname
12884 # If there is no Makefile yet, we rely on a make rule to execute
12885 # `config.status --recheck' to rerun these tests and create the
12886 # libtool script then.
12887 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12888 if test -f "$ltmain_in"; then
12889 test -f Makefile && make "$ltmain"
12895 ac_cpp='$CPP $CPPFLAGS'
12896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12904 with_gnu_ldcxx=$with_gnu_ld
12905 with_gnu_ld=$lt_save_with_gnu_ld
12906 lt_cv_path_LDCXX=$lt_cv_path_LD
12907 lt_cv_path_LD=$lt_save_path_LD
12908 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12909 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12917 if test -n "$F77" && test "X$F77" != "Xno"; then
12920 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12921 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12922 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12925 archive_cmds_need_lc_F77=no
12926 allow_undefined_flag_F77=
12927 always_export_symbols_F77=no
12928 archive_expsym_cmds_F77=
12929 export_dynamic_flag_spec_F77=
12930 hardcode_direct_F77=no
12931 hardcode_libdir_flag_spec_F77=
12932 hardcode_libdir_flag_spec_ld_F77=
12933 hardcode_libdir_separator_F77=
12934 hardcode_minus_L_F77=no
12935 hardcode_automatic_F77=no
12937 module_expsym_cmds_F77=
12938 link_all_deplibs_F77=unknown
12939 old_archive_cmds_F77=$old_archive_cmds
12940 no_undefined_flag_F77=
12941 whole_archive_flag_spec_F77=
12942 enable_shared_with_static_runtimes_F77=no
12944 # Source file extension for f77 test sources.
12947 # Object file extension for compiled f77 test sources.
12951 # Code to be used in simple compile tests
12952 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12954 # Code to be used in simple link tests
12955 lt_simple_link_test_code=" program t\n end\n"
12957 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12959 # If no C compiler was specified, use CC.
12962 # Allow CC to be a program name with arguments.
12966 # Allow CC to be a program name with arguments.
12971 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12973 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12974 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12975 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12976 echo "${ECHO_T}$can_build_shared" >&6
12978 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12979 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12980 test "$can_build_shared" = "no" && enable_shared=no
12982 # On AIX, shared libraries and static libraries use the same namespace, and
12983 # are all built from PIC.
12986 test "$enable_shared" = yes && enable_static=no
12987 if test -n "$RANLIB"; then
12988 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12989 postinstall_cmds='$RANLIB $lib'
12993 test "$enable_shared" = yes && enable_static=no
12996 echo "$as_me:$LINENO: result: $enable_shared" >&5
12997 echo "${ECHO_T}$enable_shared" >&6
12999 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13000 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13001 # Make sure either enable_shared or enable_static is yes.
13002 test "$enable_shared" = yes || enable_static=yes
13003 echo "$as_me:$LINENO: result: $enable_static" >&5
13004 echo "${ECHO_T}$enable_static" >&6
13006 test "$ld_shlibs_F77" = no && can_build_shared=no
13011 lt_prog_compiler_wl_F77=
13012 lt_prog_compiler_pic_F77=
13013 lt_prog_compiler_static_F77=
13015 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13016 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13018 if test "$GCC" = yes; then
13019 lt_prog_compiler_wl_F77='-Wl,'
13020 lt_prog_compiler_static_F77='-static'
13024 # All AIX code is PIC.
13025 if test "$host_cpu" = ia64; then
13026 # AIX 5 now supports IA64 processor
13027 lt_prog_compiler_static_F77='-Bstatic'
13032 # FIXME: we need at least 68020 code to build shared libraries, but
13033 # adding the `-m68020' flag to GCC prevents building anything better,
13035 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13038 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13039 # PIC is the default for these OSes.
13042 mingw* | pw32* | os2*)
13043 # This hack is so that the source file can tell whether it is being
13044 # built for inclusion in a dll (and should export symbols for example).
13045 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13048 darwin* | rhapsody*)
13049 # PIC is the default on this platform
13050 # Common symbols not allowed in MH_DYLIB files
13051 lt_prog_compiler_pic_F77='-fno-common'
13055 # Just because we use GCC doesn't mean we suddenly get shared libraries
13056 # on systems that don't support them.
13057 lt_prog_compiler_can_build_shared_F77=no
13062 if test -d /usr/nec; then
13063 lt_prog_compiler_pic_F77=-Kconform_pic
13068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13069 # not for PA HP-UX.
13070 case "$host_cpu" in
13075 lt_prog_compiler_pic_F77='-fPIC'
13081 lt_prog_compiler_pic_F77='-fPIC'
13085 # PORTME Check for flag to pass linker flags through the system compiler.
13088 lt_prog_compiler_wl_F77='-Wl,'
13089 if test "$host_cpu" = ia64; then
13090 # AIX 5 now supports IA64 processor
13091 lt_prog_compiler_static_F77='-Bstatic'
13093 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13097 mingw* | pw32* | os2*)
13098 # This hack is so that the source file can tell whether it is being
13099 # built for inclusion in a dll (and should export symbols for example).
13100 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13103 hpux9* | hpux10* | hpux11*)
13104 lt_prog_compiler_wl_F77='-Wl,'
13105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13106 # not for PA HP-UX.
13107 case "$host_cpu" in
13112 lt_prog_compiler_pic_F77='+Z'
13115 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13116 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13119 irix5* | irix6* | nonstopux*)
13120 lt_prog_compiler_wl_F77='-Wl,'
13121 # PIC (with -KPIC) is the default.
13122 lt_prog_compiler_static_F77='-non_shared'
13126 lt_prog_compiler_pic_F77='-KPIC'
13127 lt_prog_compiler_static_F77='-Bstatic'
13133 lt_prog_compiler_wl_F77='-Wl,'
13134 lt_prog_compiler_pic_F77='-KPIC'
13135 lt_prog_compiler_static_F77='-static'
13138 lt_prog_compiler_wl_F77='-Wl,'
13139 # All Alpha code is PIC.
13140 lt_prog_compiler_static_F77='-non_shared'
13145 osf3* | osf4* | osf5*)
13146 lt_prog_compiler_wl_F77='-Wl,'
13147 # All OSF/1 code is PIC.
13148 lt_prog_compiler_static_F77='-non_shared'
13152 lt_prog_compiler_pic_F77='-Kpic'
13153 lt_prog_compiler_static_F77='-dn'
13157 lt_prog_compiler_wl_F77='-Wl,'
13158 lt_prog_compiler_pic_F77='-KPIC'
13159 lt_prog_compiler_static_F77='-Bstatic'
13163 lt_prog_compiler_wl_F77='-Qoption ld '
13164 lt_prog_compiler_pic_F77='-PIC'
13165 lt_prog_compiler_static_F77='-Bstatic'
13168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13169 lt_prog_compiler_wl_F77='-Wl,'
13170 lt_prog_compiler_pic_F77='-KPIC'
13171 lt_prog_compiler_static_F77='-Bstatic'
13175 if test -d /usr/nec ;then
13176 lt_prog_compiler_pic_F77='-Kconform_pic'
13177 lt_prog_compiler_static_F77='-Bstatic'
13182 lt_prog_compiler_pic_F77='-pic'
13183 lt_prog_compiler_static_F77='-Bstatic'
13187 lt_prog_compiler_can_build_shared_F77=no
13192 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13193 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13196 # Check to make sure the PIC flag actually works.
13198 if test -n "$lt_prog_compiler_pic_F77"; then
13200 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13201 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13202 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13203 echo $ECHO_N "(cached) $ECHO_C" >&6
13205 lt_prog_compiler_pic_works_F77=no
13206 ac_outfile=conftest.$ac_objext
13207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13208 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13209 # Insert the option either (1) after the last *FLAGS variable, or
13210 # (2) before a word containing "conftest.", or (3) at the end.
13211 # Note that $ac_compile itself does not contain backslashes and begins
13212 # with a dollar sign (not a hyphen), so the echo should work correctly.
13213 # The option is referenced via a variable to avoid confusing sed.
13214 lt_compile=`echo "$ac_compile" | $SED \
13215 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13217 -e 's:$: $lt_compiler_flag:'`
13218 (eval echo "\"\$as_me:13218: $lt_compile\"" >&5)
13219 (eval "$lt_compile" 2>conftest.err)
13221 cat conftest.err >&5
13222 echo "$as_me:13222: \$? = $ac_status" >&5
13223 if (exit $ac_status) && test -s "$ac_outfile"; then
13224 # The compiler can only warn and ignore the option if not recognized
13225 # So say no if there are warnings
13226 if test ! -s conftest.err; then
13227 lt_prog_compiler_pic_works_F77=yes
13233 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13234 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13236 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13237 case $lt_prog_compiler_pic_F77 in
13239 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13242 lt_prog_compiler_pic_F77=
13243 lt_prog_compiler_can_build_shared_F77=no
13248 # For platforms which do not support PIC, -DPIC is meaningless:
13250 lt_prog_compiler_pic_F77=
13253 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13257 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13258 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13259 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13260 echo $ECHO_N "(cached) $ECHO_C" >&6
13262 lt_cv_prog_compiler_c_o_F77=no
13263 $rm -r conftest 2>/dev/null
13267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13269 lt_compiler_flag="-o out/conftest2.$ac_objext"
13270 # Insert the option either (1) after the last *FLAGS variable, or
13271 # (2) before a word containing "conftest.", or (3) at the end.
13272 # Note that $ac_compile itself does not contain backslashes and begins
13273 # with a dollar sign (not a hyphen), so the echo should work correctly.
13274 lt_compile=`echo "$ac_compile" | $SED \
13275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13277 -e 's:$: $lt_compiler_flag:'`
13278 (eval echo "\"\$as_me:13278: $lt_compile\"" >&5)
13279 (eval "$lt_compile" 2>out/conftest.err)
13281 cat out/conftest.err >&5
13282 echo "$as_me:13282: \$? = $ac_status" >&5
13283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13285 # The compiler can only warn and ignore the option if not recognized
13286 # So say no if there are warnings
13287 if test ! -s out/conftest.err; then
13288 lt_cv_prog_compiler_c_o_F77=yes
13293 # SGI C++ compiler will create directory out/ii_files/ for
13294 # template instantiation
13295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13296 $rm out/* && rmdir out
13302 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13303 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13306 hard_links="nottested"
13307 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13308 # do not overwrite the value of need_locks provided by the user
13309 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13310 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13313 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13315 ln conftest.a conftest.b 2>&5 || hard_links=no
13316 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13317 echo "$as_me:$LINENO: result: $hard_links" >&5
13318 echo "${ECHO_T}$hard_links" >&6
13319 if test "$hard_links" = no; then
13320 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13321 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13328 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13329 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13332 allow_undefined_flag_F77=
13333 enable_shared_with_static_runtimes_F77=no
13335 archive_expsym_cmds_F77=
13336 old_archive_From_new_cmds_F77=
13337 old_archive_from_expsyms_cmds_F77=
13338 export_dynamic_flag_spec_F77=
13339 whole_archive_flag_spec_F77=
13340 thread_safe_flag_spec_F77=
13341 hardcode_libdir_flag_spec_F77=
13342 hardcode_libdir_flag_spec_ld_F77=
13343 hardcode_libdir_separator_F77=
13344 hardcode_direct_F77=no
13345 hardcode_minus_L_F77=no
13346 hardcode_shlibpath_var_F77=unsupported
13347 link_all_deplibs_F77=unknown
13348 hardcode_automatic_F77=no
13350 module_expsym_cmds_F77=
13351 always_export_symbols_F77=no
13352 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13353 # include_expsyms should be a list of space-separated symbols to be *always*
13354 # included in the symbol list
13355 include_expsyms_F77=
13356 # exclude_expsyms can be an extended regexp of symbols to exclude
13357 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13359 # as well as any symbol that contains `d'.
13360 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13362 # platforms (ab)use it in PIC code, but their linkers get confused if
13363 # the symbol is explicitly referenced. Since portable code cannot
13364 # rely on this symbol name, it's probably fine to never include it in
13365 # preloaded symbol tables.
13366 extract_expsyms_cmds=
13369 cygwin* | mingw* | pw32*)
13370 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13371 # When not using gcc, we currently assume that we are using
13372 # Microsoft Visual C++.
13373 if test "$GCC" != yes; then
13383 if test "$with_gnu_ld" = yes; then
13384 # If archive_cmds runs LD, not CC, wlarc should be empty
13387 # See if GNU ld supports shared libraries.
13389 aix3* | aix4* | aix5*)
13390 # On AIX/PPC, the GNU linker is very broken
13391 if test "$host_cpu" != ia64; then
13395 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13396 *** to be unable to reliably create shared libraries on AIX.
13397 *** Therefore, libtool is disabling shared libraries support. If you
13398 *** really care for shared libraries, you may want to modify your PATH
13399 *** so that a non-GNU linker is found, and then restart.
13406 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)'
13407 hardcode_libdir_flag_spec_F77='-L$libdir'
13408 hardcode_minus_L_F77=yes
13410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13411 # that the semantics of dynamic libraries on AmigaOS, at least up
13412 # to version 4, is to share data among multiple programs linked
13413 # with the same dynamic library. Since this doesn't match the
13414 # behavior of shared libraries on other platforms, we can't use
13420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13421 allow_undefined_flag_F77=unsupported
13422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13423 # support --undefined. This deserves some investigation. FIXME
13424 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13430 cygwin* | mingw* | pw32*)
13431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13432 # as there is no search path for DLLs.
13433 hardcode_libdir_flag_spec_F77='-L$libdir'
13434 allow_undefined_flag_F77=unsupported
13435 always_export_symbols_F77=no
13436 enable_shared_with_static_runtimes_F77=yes
13437 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13440 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13441 # If the export-symbols file already is a .def file (1st line
13442 # is EXPORTS), use it as is; otherwise, prepend...
13443 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13444 cp $export_symbols $output_objdir/$soname.def;
13446 echo EXPORTS > $output_objdir/$soname.def;
13447 cat $export_symbols >> $output_objdir/$soname.def;
13449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13455 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13457 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13460 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13461 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13466 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13470 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13471 *** create shared libraries on Solaris systems. Therefore, libtool
13472 *** is disabling shared libraries support. We urge you to upgrade GNU
13473 *** binutils to release 2.9.1 or newer. Another option is to modify
13474 *** your PATH or compiler configuration so that the native linker is
13475 *** used, and then restart.
13478 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13479 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13480 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13487 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13489 hardcode_direct_F77=yes
13490 hardcode_shlibpath_var_F77=no
13494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13495 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13496 archive_cmds_F77="$tmp_archive_cmds"
13497 supports_anon_versioning=no
13498 case `$LD -v 2>/dev/null` in
13499 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13502 *\ 2.11.*) ;; # other 2.11 versions
13503 *) supports_anon_versioning=yes ;;
13505 if test $supports_anon_versioning = yes; then
13506 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13507 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13508 $echo "local: *; };" >> $output_objdir/$libname.ver~
13509 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13511 archive_expsym_cmds_F77="$tmp_archive_cmds"
13513 link_all_deplibs_F77=no
13520 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13522 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13529 if test "$ld_shlibs_F77" = yes; then
13530 runpath_var=LD_RUN_PATH
13531 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13532 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13533 # ancient GNU ld didn't support --whole-archive et. al.
13534 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13535 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13537 whole_archive_flag_spec_F77=
13541 # PORTME fill in a description of your system's linker (not GNU ld)
13544 allow_undefined_flag_F77=unsupported
13545 always_export_symbols_F77=yes
13546 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'
13547 # Note: this linker hardcodes the directories in LIBPATH if there
13548 # are no directories specified by -L.
13549 hardcode_minus_L_F77=yes
13550 if test "$GCC" = yes && test -z "$link_static_flag"; then
13551 # Neither direct hardcoding nor static linking is supported with a
13553 hardcode_direct_F77=unsupported
13558 if test "$host_cpu" = ia64; then
13559 # On IA64, the linker does run time linking by default, so we don't
13560 # have to do anything special.
13561 aix_use_runtimelinking=no
13562 exp_sym_flag='-Bexport'
13565 # If we're using GNU nm, then we don't want the "-C" option.
13566 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13567 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13568 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'
13570 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'
13572 aix_use_runtimelinking=no
13574 # Test if we are trying to use run time linking or normal
13575 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13576 # need to do runtime linking.
13577 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13578 for ld_flag in $LDFLAGS; do
13579 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13580 aix_use_runtimelinking=yes
13586 exp_sym_flag='-bexport'
13587 no_entry_flag='-bnoentry'
13590 # When large executables or shared objects are built, AIX ld can
13591 # have problems creating the table of contents. If linking a library
13592 # or program results in "error TOC overflow" add -mminimal-toc to
13593 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13594 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13596 archive_cmds_F77=''
13597 hardcode_direct_F77=yes
13598 hardcode_libdir_separator_F77=':'
13599 link_all_deplibs_F77=yes
13601 if test "$GCC" = yes; then
13602 case $host_os in aix4.012|aix4.012.*)
13603 # We only want to do this on AIX 4.2 and lower, the check
13604 # below for broken collect2 doesn't work under 4.3+
13605 collect2name=`${CC} -print-prog-name=collect2`
13606 if test -f "$collect2name" && \
13607 strings "$collect2name" | grep resolve_lib_name >/dev/null
13609 # We have reworked collect2
13610 hardcode_direct_F77=yes
13612 # We have old collect2
13613 hardcode_direct_F77=unsupported
13614 # It fails to find uninstalled libraries when the uninstalled
13615 # path is not listed in the libpath. Setting hardcode_minus_L
13616 # to unsupported forces relinking
13617 hardcode_minus_L_F77=yes
13618 hardcode_libdir_flag_spec_F77='-L$libdir'
13619 hardcode_libdir_separator_F77=
13622 shared_flag='-shared'
13625 if test "$host_cpu" = ia64; then
13626 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13627 # chokes on -Wl,-G. The following line is correct:
13630 if test "$aix_use_runtimelinking" = yes; then
13631 shared_flag='${wl}-G'
13633 shared_flag='${wl}-bM:SRE'
13638 # It seems that -bexpall does not export symbols beginning with
13639 # underscore (_), so it is better to generate a list of symbols to export.
13640 always_export_symbols_F77=yes
13641 if test "$aix_use_runtimelinking" = yes; then
13642 # Warning - without using the other runtime loading flags (-brtl),
13643 # -berok will link without error, but may produce a broken library.
13644 allow_undefined_flag_F77='-berok'
13645 # Determine the default libpath from the value encoded in an empty executable.
13646 cat >conftest.$ac_ext <<_ACEOF
13651 rm -f conftest.$ac_objext conftest$ac_exeext
13652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13653 (eval $ac_link) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } &&
13657 { ac_try='test -s conftest$ac_exeext'
13658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13659 (eval $ac_try) 2>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); }; }; then
13664 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13666 # Check for a 64-bit object if we didn't find anything.
13667 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13670 echo "$as_me: failed program was:" >&5
13671 sed 's/^/| /' conftest.$ac_ext >&5
13674 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13675 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13677 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13678 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13680 if test "$host_cpu" = ia64; then
13681 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13682 allow_undefined_flag_F77="-z nodefs"
13683 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13685 # Determine the default libpath from the value encoded in an empty executable.
13686 cat >conftest.$ac_ext <<_ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13699 (eval $ac_try) 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; }; then
13704 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13706 # Check for a 64-bit object if we didn't find anything.
13707 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13710 echo "$as_me: failed program was:" >&5
13711 sed 's/^/| /' conftest.$ac_ext >&5
13714 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13715 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13717 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13718 # Warning - without using the other run time loading flags,
13719 # -berok will link without error, but may produce a broken library.
13720 no_undefined_flag_F77=' ${wl}-bernotok'
13721 allow_undefined_flag_F77=' ${wl}-berok'
13722 # -bexpall does not export symbols beginning with underscore (_)
13723 always_export_symbols_F77=yes
13724 # Exported symbols can be pulled into shared objects from archives
13725 whole_archive_flag_spec_F77=' '
13726 archive_cmds_need_lc_F77=yes
13727 # This is similar to how AIX traditionally builds it's shared libraries.
13728 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13734 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)'
13735 hardcode_libdir_flag_spec_F77='-L$libdir'
13736 hardcode_minus_L_F77=yes
13737 # see comment about different semantics on the GNU ld section
13742 export_dynamic_flag_spec_F77=-rdynamic
13745 cygwin* | mingw* | pw32*)
13746 # When not using gcc, we currently assume that we are using
13747 # Microsoft Visual C++.
13748 # hardcode_libdir_flag_spec is actually meaningless, as there is
13749 # no search path for DLLs.
13750 hardcode_libdir_flag_spec_F77=' '
13751 allow_undefined_flag_F77=unsupported
13752 # Tell ltmain to make .lib files, not .a files.
13754 # Tell ltmain to make .dll files, not .so files.
13756 # FIXME: Setting linknames here is a bad hack.
13757 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13758 # The linker will automatically build a .lib file if we build a DLL.
13759 old_archive_From_new_cmds_F77='true'
13760 # FIXME: Should let the user specify the lib program.
13761 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13762 fix_srcfile_path='`cygpath -w "$srcfile"`'
13763 enable_shared_with_static_runtimes_F77=yes
13766 darwin* | rhapsody*)
13767 if test "$GXX" = yes ; then
13768 archive_cmds_need_lc_F77=no
13770 rhapsody* | darwin1.[012])
13771 allow_undefined_flag_F77='-undefined suppress'
13774 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13775 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13777 case ${MACOSX_DEPLOYMENT_TARGET} in
13779 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13782 allow_undefined_flag_F77='-undefined dynamic_lookup'
13788 lt_int_apple_cc_single_mod=no
13789 output_verbose_link_cmd='echo'
13790 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13791 lt_int_apple_cc_single_mod=yes
13793 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13794 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13796 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
13798 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13799 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13800 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13801 archive_expsym_cmds_F77='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}'
13803 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
13805 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}'
13806 hardcode_direct_F77=no
13807 hardcode_automatic_F77=yes
13808 hardcode_shlibpath_var_F77=unsupported
13809 whole_archive_flag_spec_F77='-all_load $convenience'
13810 link_all_deplibs_F77=yes
13817 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_libdir_flag_spec_F77='-L$libdir'
13819 hardcode_shlibpath_var_F77=no
13826 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13827 # support. Future versions do this automatically, but an explicit c++rt0.o
13828 # does not break anything, and helps significantly (at the cost of a little
13831 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13832 hardcode_libdir_flag_spec_F77='-R$libdir'
13833 hardcode_direct_F77=yes
13834 hardcode_shlibpath_var_F77=no
13837 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13839 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13840 hardcode_direct_F77=yes
13841 hardcode_minus_L_F77=yes
13842 hardcode_shlibpath_var_F77=no
13845 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13846 freebsd* | kfreebsd*-gnu)
13847 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13848 hardcode_libdir_flag_spec_F77='-R$libdir'
13849 hardcode_direct_F77=yes
13850 hardcode_shlibpath_var_F77=no
13854 if test "$GCC" = yes; then
13855 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'
13857 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'
13859 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13860 hardcode_libdir_separator_F77=:
13861 hardcode_direct_F77=yes
13863 # hardcode_minus_L: Not really in the search PATH,
13864 # but as the default location of the library.
13865 hardcode_minus_L_F77=yes
13866 export_dynamic_flag_spec_F77='${wl}-E'
13870 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13871 case "$host_cpu" in
13873 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13876 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13880 case "$host_cpu" in
13882 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13885 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13889 if test "$with_gnu_ld" = no; then
13890 case "$host_cpu" in
13892 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13893 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13894 hardcode_libdir_separator_F77=:
13895 hardcode_direct_F77=no
13896 hardcode_shlibpath_var_F77=no
13899 hardcode_libdir_flag_spec_F77='-L$libdir'
13900 hardcode_direct_F77=no
13901 hardcode_shlibpath_var_F77=no
13903 # hardcode_minus_L: Not really in the search PATH,
13904 # but as the default location of the library.
13905 hardcode_minus_L_F77=yes
13908 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13909 hardcode_libdir_separator_F77=:
13910 hardcode_direct_F77=yes
13911 export_dynamic_flag_spec_F77='${wl}-E'
13913 # hardcode_minus_L: Not really in the search PATH,
13914 # but as the default location of the library.
13915 hardcode_minus_L_F77=yes
13921 irix5* | irix6* | nonstopux*)
13922 if test "$GCC" = yes; then
13923 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'
13925 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'
13926 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13928 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13929 hardcode_libdir_separator_F77=:
13930 link_all_deplibs_F77=yes
13933 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13934 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13935 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13937 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13939 hardcode_libdir_flag_spec_F77='-R$libdir'
13940 hardcode_direct_F77=yes
13941 hardcode_shlibpath_var_F77=no
13945 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13946 hardcode_direct_F77=yes
13947 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13948 hardcode_libdir_separator_F77=:
13949 hardcode_shlibpath_var_F77=no
13953 hardcode_direct_F77=yes
13954 hardcode_shlibpath_var_F77=no
13955 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13956 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13957 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13958 export_dynamic_flag_spec_F77='${wl}-E'
13961 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13962 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13963 hardcode_libdir_flag_spec_F77='-R$libdir'
13966 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13967 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13974 hardcode_libdir_flag_spec_F77='-L$libdir'
13975 hardcode_minus_L_F77=yes
13976 allow_undefined_flag_F77=unsupported
13977 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'
13978 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13982 if test "$GCC" = yes; then
13983 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13984 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'
13986 allow_undefined_flag_F77=' -expect_unresolved \*'
13987 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'
13989 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13990 hardcode_libdir_separator_F77=:
13993 osf4* | osf5*) # as osf3* with the addition of -msym flag
13994 if test "$GCC" = yes; then
13995 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13996 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'
13997 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13999 allow_undefined_flag_F77=' -expect_unresolved \*'
14000 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'
14001 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~
14002 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
14004 # Both c and cxx compiler support -rpath directly
14005 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14007 hardcode_libdir_separator_F77=:
14011 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012 hardcode_shlibpath_var_F77=no
14013 export_dynamic_flag_spec_F77='${wl}-Bexport'
14014 runpath_var=LD_RUN_PATH
14015 hardcode_runpath_var=yes
14019 no_undefined_flag_F77=' -z text'
14020 if test "$GCC" = yes; then
14021 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14022 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14023 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14025 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14026 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14027 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14029 hardcode_libdir_flag_spec_F77='-R$libdir'
14030 hardcode_shlibpath_var_F77=no
14032 solaris2.[0-5] | solaris2.[0-5].*) ;;
14033 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14034 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14036 link_all_deplibs_F77=yes
14040 if test "x$host_vendor" = xsequent; then
14041 # Use $CC to link under sequent, because it throws in some extra .o
14042 # files that make .init and .fini sections work.
14043 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14045 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14047 hardcode_libdir_flag_spec_F77='-L$libdir'
14048 hardcode_direct_F77=yes
14049 hardcode_minus_L_F77=yes
14050 hardcode_shlibpath_var_F77=no
14054 case $host_vendor in
14056 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14057 hardcode_direct_F77=yes # is this really true???
14060 ## LD is ld it makes a PLAMLIB
14061 ## CC just makes a GrossModule.
14062 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14063 reload_cmds_F77='$CC -r -o $output$reload_objs'
14064 hardcode_direct_F77=no
14067 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14068 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14071 runpath_var='LD_RUN_PATH'
14072 hardcode_shlibpath_var_F77=no
14076 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14077 hardcode_shlibpath_var_F77=no
14078 export_dynamic_flag_spec_F77='-Bexport'
14082 if test -d /usr/nec; then
14083 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14084 hardcode_shlibpath_var_F77=no
14085 runpath_var=LD_RUN_PATH
14086 hardcode_runpath_var=yes
14092 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_direct_F77=yes
14094 hardcode_minus_L_F77=no
14095 hardcode_shlibpath_var_F77=no
14096 hardcode_runpath_var=yes
14097 runpath_var=LD_RUN_PATH
14100 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14101 no_undefined_flag_F77='${wl}-z ${wl}text'
14102 if test "$GCC" = yes; then
14103 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14105 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14107 runpath_var='LD_RUN_PATH'
14108 hardcode_shlibpath_var_F77=no
14112 no_undefined_flag_F77=' -z text'
14113 # $CC -shared without GNU ld will not create a library from C++
14114 # object files and a static libstdc++, better avoid it by now
14115 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14116 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14117 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14118 hardcode_libdir_flag_spec_F77=
14119 hardcode_shlibpath_var_F77=no
14120 runpath_var='LD_RUN_PATH'
14124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14125 hardcode_libdir_flag_spec_F77='-L$libdir'
14126 hardcode_shlibpath_var_F77=no
14135 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14136 echo "${ECHO_T}$ld_shlibs_F77" >&6
14137 test "$ld_shlibs_F77" = no && can_build_shared=no
14139 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14140 if test "$GCC" = yes; then
14141 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14145 # Do we need to explicitly link libc?
14147 case "x$archive_cmds_need_lc_F77" in
14149 # Assume -lc should be added
14150 archive_cmds_need_lc_F77=yes
14152 if test "$enable_shared" = yes && test "$GCC" = yes; then
14153 case $archive_cmds_F77 in
14155 # FIXME: we may have to deal with multi-command sequences.
14158 # Test whether the compiler implicitly links with -lc since on some
14159 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14160 # to ld, don't add -lc before -lgcc.
14161 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14162 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14167 (eval $ac_compile) 2>&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } 2>conftest.err; then
14173 libobjs=conftest.$ac_objext
14175 wl=$lt_prog_compiler_wl_F77
14181 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14182 allow_undefined_flag_F77=
14183 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14184 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }
14189 archive_cmds_need_lc_F77=no
14191 archive_cmds_need_lc_F77=yes
14193 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14195 cat conftest.err 1>&5
14198 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14199 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14206 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14207 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14208 library_names_spec=
14209 libname_spec='lib$name'
14213 postuninstall_cmds=
14217 shlibpath_overrides_runpath=unknown
14219 dynamic_linker="$host_os ld.so"
14220 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14221 if test "$GCC" = yes; then
14222 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14223 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14224 # if the path contains ";" then we assume it to be the separator
14225 # otherwise default to the standard path separator (i.e. ":") - it is
14226 # assumed that no part of a normal pathname contains ";" but that should
14227 # okay in the real world where ";" in dirpaths is itself problematic.
14228 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14230 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14233 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14235 need_lib_prefix=unknown
14236 hardcode_into_libs=no
14238 # when you set need_version to no, make sure it does not cause -set_version
14239 # flags to be left without arguments
14240 need_version=unknown
14245 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14246 shlibpath_var=LIBPATH
14248 # AIX 3 has no versioning support, so we append a major version to the name.
14249 soname_spec='${libname}${release}${shared_ext}$major'
14256 hardcode_into_libs=yes
14257 if test "$host_cpu" = ia64; then
14258 # AIX 5 supports IA64
14259 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14260 shlibpath_var=LD_LIBRARY_PATH
14262 # With GCC up to 2.95.x, collect2 would create an import file
14263 # for dependence libraries. The import file would start with
14264 # the line `#! .'. This would cause the generated library to
14265 # depend on `.', always an invalid library. This was fixed in
14266 # development snapshots of GCC prior to 3.0.
14268 aix4 | aix4.[01] | aix4.[01].*)
14269 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14271 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14274 can_build_shared=no
14278 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14279 # soname into executable. Probably we can add versioning support to
14280 # collect2, so additional links can be useful in future.
14281 if test "$aix_use_runtimelinking" = yes; then
14282 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14283 # instead of lib<name>.a to let people know that these are not
14284 # typical AIX shared libraries.
14285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 # We preserve .a as extension for shared libraries through AIX4.2
14288 # and later when we are not doing run time linking.
14289 library_names_spec='${libname}${release}.a $libname.a'
14290 soname_spec='${libname}${release}${shared_ext}$major'
14292 shlibpath_var=LIBPATH
14297 library_names_spec='$libname.ixlibrary $libname.a'
14298 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14299 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'
14303 library_names_spec='${libname}${shared_ext}'
14304 dynamic_linker="$host_os ld.so"
14305 shlibpath_var=LIBRARY_PATH
14311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14312 soname_spec='${libname}${release}${shared_ext}$major'
14313 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14314 shlibpath_var=LD_LIBRARY_PATH
14315 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14316 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14317 # the default ld.so.conf also contains /usr/contrib/lib and
14318 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14319 # libtool to hard-code these into programs
14322 cygwin* | mingw* | pw32*)
14323 version_type=windows
14328 case $GCC,$host_os in
14329 yes,cygwin* | yes,mingw* | yes,pw32*)
14330 library_names_spec='$libname.dll.a'
14331 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14332 postinstall_cmds='base_file=`basename \${file}`~
14333 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14334 dldir=$destdir/`dirname \$dlpath`~
14335 test -d \$dldir || mkdir -p \$dldir~
14336 $install_prog $dir/$dlname \$dldir/$dlname'
14337 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14338 dlpath=$dir/\$dldll~
14340 shlibpath_overrides_runpath=yes
14344 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14345 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14346 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14349 # MinGW DLLs use traditional 'lib' prefix
14350 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14351 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14352 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14353 # It is most probably a Windows format PATH printed by
14354 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14355 # path with ; separators, and with drive letters. We can handle the
14356 # drive letters (cygwin fileutils understands them), so leave them,
14357 # especially as we might pass files found there to a mingw objdump,
14358 # which wouldn't understand a cygwinified path. Ahh.
14359 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14361 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14365 # pw32 DLLs use 'pw' prefix rather than 'lib'
14366 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14372 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14375 dynamic_linker='Win32 ld.exe'
14376 # FIXME: first we should search . and the directory the executable is in
14380 darwin* | rhapsody*)
14381 dynamic_linker="$host_os dyld"
14382 version_type=darwin
14385 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14386 soname_spec='${libname}${release}${major}$shared_ext'
14387 shlibpath_overrides_runpath=yes
14388 shlibpath_var=DYLD_LIBRARY_PATH
14389 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14390 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14391 if test "$GCC" = yes; then
14392 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14394 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14396 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14404 soname_spec='${libname}${release}${shared_ext}$major'
14405 shlibpath_var=LD_LIBRARY_PATH
14416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14417 soname_spec='${libname}${release}${shared_ext}$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=no
14420 hardcode_into_libs=yes
14421 dynamic_linker='GNU ld.so'
14425 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14426 version_type=freebsd-$objformat
14427 case $version_type in
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14434 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14438 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=yes
14443 freebsd3.01* | freebsdelf3.01*)
14444 shlibpath_overrides_runpath=yes
14445 hardcode_into_libs=yes
14448 shlibpath_overrides_runpath=no
14449 hardcode_into_libs=yes
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14461 hardcode_into_libs=yes
14464 hpux9* | hpux10* | hpux11*)
14465 # Give a soname corresponding to the major version so that dld.sl refuses to
14466 # link against other versions.
14470 case "$host_cpu" in
14473 hardcode_into_libs=yes
14474 dynamic_linker="$host_os dld.so"
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 if test "X$HPUX_IA64_MODE" = X32; then
14480 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14482 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14484 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.sl"
14490 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493 soname_spec='${libname}${release}${shared_ext}$major'
14494 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14499 dynamic_linker="$host_os dld.sl"
14500 shlibpath_var=SHLIB_PATH
14501 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14506 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14507 postinstall_cmds='chmod 555 $lib'
14510 irix5* | irix6* | nonstopux*)
14512 nonstopux*) version_type=nonstopux ;;
14514 if test "$lt_cv_prog_gnu_ld" = yes; then
14522 soname_spec='${libname}${release}${shared_ext}$major'
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14525 irix5* | nonstopux*)
14526 libsuff= shlibsuff=
14529 case $LD in # libtool.m4 will add one of these switches to LD
14530 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14531 libsuff= shlibsuff= libmagic=32-bit;;
14532 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14533 libsuff=32 shlibsuff=N32 libmagic=N32;;
14534 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14535 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14536 *) libsuff= shlibsuff= libmagic=never-match;;
14540 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14541 shlibpath_overrides_runpath=no
14542 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14543 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14544 hardcode_into_libs=yes
14547 # No shared lib support for Linux oldld, aout, or coff.
14548 linux*oldld* | linux*aout* | linux*coff*)
14552 # This must be Linux ELF.
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 shlibpath_overrides_runpath=no
14562 # This implies no fast_install, which is unacceptable.
14563 # Some rework will be needed to allow for fast_install
14564 # before this can be enabled.
14565 hardcode_into_libs=yes
14567 # Append ld.so.conf contents to the search path
14568 if test -f /etc/ld.so.conf; then
14569 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14570 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14573 # We used to test for /lib/ld.so.1 and disable shared libraries on
14574 # powerpc, because MkLinux only supported shared libraries with the
14575 # GNU dynamic linker. Since this was broken with cross compilers,
14576 # most powerpc-linux boxes support dynamic linking these days and
14577 # people can always --disable-shared, the test was removed, and we
14578 # assume the GNU/Linux dynamic linker is in use.
14579 dynamic_linker='GNU/Linux ld.so'
14586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14587 soname_spec='${libname}${release}${shared_ext}$major'
14588 shlibpath_var=LD_LIBRARY_PATH
14589 shlibpath_overrides_runpath=no
14590 hardcode_into_libs=yes
14591 dynamic_linker='NetBSD ld.elf_so'
14598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14599 soname_spec='${libname}${release}${shared_ext}$major'
14600 shlibpath_var=LD_LIBRARY_PATH
14601 shlibpath_overrides_runpath=no
14602 hardcode_into_libs=yes
14603 dynamic_linker='GNU ld.so'
14610 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14612 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14613 dynamic_linker='NetBSD (a.out) ld.so'
14615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14616 soname_spec='${libname}${release}${shared_ext}$major'
14617 dynamic_linker='NetBSD ld.elf_so'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14627 shlibpath_var=LD_LIBRARY_PATH
14628 shlibpath_overrides_runpath=yes
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 shlibpath_var=LD_LIBRARY_PATH
14638 shlibpath_overrides_runpath=yes
14645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14646 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14647 shlibpath_var=LD_LIBRARY_PATH
14648 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14650 openbsd2.[89] | openbsd2.[89].*)
14651 shlibpath_overrides_runpath=no
14654 shlibpath_overrides_runpath=yes
14658 shlibpath_overrides_runpath=yes
14663 libname_spec='$name'
14666 library_names_spec='$libname${shared_ext} $libname.a'
14667 dynamic_linker='OS/2 ld.exe'
14668 shlibpath_var=LIBPATH
14671 osf3* | osf4* | osf5*)
14675 soname_spec='${libname}${release}${shared_ext}$major'
14676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14679 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14684 soname_spec='${libname}${release}${shared_ext}$major'
14685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14686 shlibpath_var=LD_LIBRARY_PATH
14693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14694 soname_spec='${libname}${release}${shared_ext}$major'
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=yes
14697 hardcode_into_libs=yes
14698 # ldd complains unless libraries are executable
14699 postinstall_cmds='chmod +x $lib'
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14705 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes
14708 if test "$with_gnu_ld" = yes; then
14714 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14716 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14717 soname_spec='${libname}${release}${shared_ext}$major'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 case $host_vendor in
14721 shlibpath_overrides_runpath=no
14723 export_dynamic_flag_spec='${wl}-Blargedynsym'
14724 runpath_var=LD_RUN_PATH
14732 shlibpath_overrides_runpath=no
14733 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14739 if test -d /usr/nec ;then
14741 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14742 soname_spec='$libname${shared_ext}.$major'
14743 shlibpath_var=LD_LIBRARY_PATH
14749 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14750 soname_spec='${libname}${release}${shared_ext}$major'
14751 shlibpath_var=LD_LIBRARY_PATH
14758 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14759 echo "${ECHO_T}$dynamic_linker" >&6
14760 test "$dynamic_linker" = no && can_build_shared=no
14762 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14763 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14764 hardcode_action_F77=
14765 if test -n "$hardcode_libdir_flag_spec_F77" || \
14766 test -n "$runpath_var F77" || \
14767 test "X$hardcode_automatic_F77"="Xyes" ; then
14769 # We can hardcode non-existant directories.
14770 if test "$hardcode_direct_F77" != no &&
14771 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14772 # have to relink, otherwise we might link with an installed library
14773 # when we should be linking with a yet-to-be-installed one
14774 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14775 test "$hardcode_minus_L_F77" != no; then
14776 # Linking always hardcodes the temporary library directory.
14777 hardcode_action_F77=relink
14779 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14780 hardcode_action_F77=immediate
14783 # We cannot hardcode anything, or else we can only hardcode existing
14785 hardcode_action_F77=unsupported
14787 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14788 echo "${ECHO_T}$hardcode_action_F77" >&6
14790 if test "$hardcode_action_F77" = relink; then
14791 # Fast installation is not supported
14792 enable_fast_install=no
14793 elif test "$shlibpath_overrides_runpath" = yes ||
14794 test "$enable_shared" = no; then
14795 # Fast installation is not necessary
14796 enable_fast_install=needless
14801 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14802 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14803 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14804 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14805 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14806 echo "$as_me:$LINENO: result: yes" >&5
14807 echo "${ECHO_T}yes" >&6
14809 # FIXME - insert some real tests, host_os isn't really good enough
14812 if test -n "$STRIP" ; then
14813 striplib="$STRIP -x"
14814 echo "$as_me:$LINENO: result: yes" >&5
14815 echo "${ECHO_T}yes" >&6
14817 echo "$as_me:$LINENO: result: no" >&5
14818 echo "${ECHO_T}no" >&6
14822 echo "$as_me:$LINENO: result: no" >&5
14823 echo "${ECHO_T}no" >&6
14830 # The else clause should only fire when bootstrapping the
14831 # libtool distribution, otherwise you forgot to ship ltmain.sh
14832 # with your package, and you will get complaints that there are
14833 # no rules to generate ltmain.sh.
14834 if test -f "$ltmain"; then
14835 # See if we are running on zsh, and set the options which allow our commands through
14836 # without removal of \ escapes.
14837 if test -n "${ZSH_VERSION+set}" ; then
14838 setopt NO_GLOB_SUBST
14840 # Now quote all the things that may contain metacharacters while being
14841 # careful not to overquote the AC_SUBSTed values. We take copies of the
14842 # variables and quote the copies for generation of the libtool script.
14843 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14845 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14846 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14847 deplibs_check_method reload_flag reload_cmds need_locks \
14848 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14849 lt_cv_sys_global_symbol_to_c_name_address \
14850 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14851 old_postinstall_cmds old_postuninstall_cmds \
14855 lt_prog_compiler_wl_F77 \
14856 lt_prog_compiler_pic_F77 \
14857 lt_prog_compiler_static_F77 \
14858 lt_prog_compiler_no_builtin_flag_F77 \
14859 export_dynamic_flag_spec_F77 \
14860 thread_safe_flag_spec_F77 \
14861 whole_archive_flag_spec_F77 \
14862 enable_shared_with_static_runtimes_F77 \
14863 old_archive_cmds_F77 \
14864 old_archive_from_new_cmds_F77 \
14865 predep_objects_F77 \
14866 postdep_objects_F77 \
14869 compiler_lib_search_path_F77 \
14871 archive_expsym_cmds_F77 \
14872 postinstall_cmds_F77 \
14873 postuninstall_cmds_F77 \
14874 old_archive_from_expsyms_cmds_F77 \
14875 allow_undefined_flag_F77 \
14876 no_undefined_flag_F77 \
14877 export_symbols_cmds_F77 \
14878 hardcode_libdir_flag_spec_F77 \
14879 hardcode_libdir_flag_spec_ld_F77 \
14880 hardcode_libdir_separator_F77 \
14881 hardcode_automatic_F77 \
14883 module_expsym_cmds_F77 \
14884 lt_cv_prog_compiler_c_o_F77 \
14885 exclude_expsyms_F77 \
14886 include_expsyms_F77; do
14889 old_archive_cmds_F77 | \
14890 old_archive_from_new_cmds_F77 | \
14891 archive_cmds_F77 | \
14892 archive_expsym_cmds_F77 | \
14893 module_cmds_F77 | \
14894 module_expsym_cmds_F77 | \
14895 old_archive_from_expsyms_cmds_F77 | \
14896 export_symbols_cmds_F77 | \
14897 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14898 postinstall_cmds | postuninstall_cmds | \
14899 old_postinstall_cmds | old_postuninstall_cmds | \
14900 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14901 # Double-quote double-evaled strings.
14902 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14905 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14911 *'\$0 --fallback-echo"')
14912 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14918 cat <<__EOF__ >> "$cfgfile"
14919 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14921 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14923 # Shell to use when invoking shell scripts.
14926 # Whether or not to build shared libraries.
14927 build_libtool_libs=$enable_shared
14929 # Whether or not to build static libraries.
14930 build_old_libs=$enable_static
14932 # Whether or not to add -lc for building shared libraries.
14933 build_libtool_need_lc=$archive_cmds_need_lc_F77
14935 # Whether or not to disallow shared libs when runtime libs are static
14936 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14938 # Whether or not to optimize for fast installation.
14939 fast_install=$enable_fast_install
14942 host_alias=$host_alias
14945 # An echo program that does not interpret backslashes.
14950 AR_FLAGS=$lt_AR_FLAGS
14955 # A language-specific compiler.
14956 CC=$lt_compiler_F77
14958 # Is the compiler the GNU C compiler?
14964 # The linker used to build libraries.
14967 # Whether we need hard or soft links.
14970 # A BSD-compatible nm program.
14973 # A symbol stripping program
14976 # Used to examine libraries when file_magic_cmd begins "file"
14977 MAGIC_CMD=$MAGIC_CMD
14979 # Used on cygwin: DLL creation program.
14982 # Used on cygwin: object dumper.
14985 # Used on cygwin: assembler.
14988 # The name of the directory that contains temporary libtool files.
14991 # How to create reloadable object files.
14992 reload_flag=$lt_reload_flag
14993 reload_cmds=$lt_reload_cmds
14995 # How to pass a linker flag through the compiler.
14996 wl=$lt_lt_prog_compiler_wl_F77
14998 # Object file suffix (normally "o").
14999 objext="$ac_objext"
15001 # Old archive suffix (normally "a").
15004 # Shared library suffix (normally ".so").
15005 shrext_cmds='$shrext_cmds'
15007 # Executable file suffix (normally "").
15010 # Additional compiler flags for building library objects.
15011 pic_flag=$lt_lt_prog_compiler_pic_F77
15014 # What is the maximum length of a command?
15015 max_cmd_len=$lt_cv_sys_max_cmd_len
15017 # Does compiler simultaneously support -c and -o options?
15018 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15020 # Must we lock files when doing compilation ?
15021 need_locks=$lt_need_locks
15023 # Do we need the lib prefix for modules?
15024 need_lib_prefix=$need_lib_prefix
15026 # Do we need a version for libraries?
15027 need_version=$need_version
15029 # Whether dlopen is supported.
15030 dlopen_support=$enable_dlopen
15032 # Whether dlopen of programs is supported.
15033 dlopen_self=$enable_dlopen_self
15035 # Whether dlopen of statically linked programs is supported.
15036 dlopen_self_static=$enable_dlopen_self_static
15038 # Compiler flag to prevent dynamic linking.
15039 link_static_flag=$lt_lt_prog_compiler_static_F77
15041 # Compiler flag to turn off builtin functions.
15042 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15044 # Compiler flag to allow reflexive dlopens.
15045 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15047 # Compiler flag to generate shared objects directly from archives.
15048 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15050 # Compiler flag to generate thread-safe objects.
15051 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15053 # Library versioning type.
15054 version_type=$version_type
15056 # Format of library name prefix.
15057 libname_spec=$lt_libname_spec
15059 # List of archive names. First name is the real one, the rest are links.
15060 # The last name is the one that the linker finds with -lNAME.
15061 library_names_spec=$lt_library_names_spec
15063 # The coded name of the library, if different from the real name.
15064 soname_spec=$lt_soname_spec
15066 # Commands used to build and install an old-style archive.
15068 old_archive_cmds=$lt_old_archive_cmds_F77
15069 old_postinstall_cmds=$lt_old_postinstall_cmds
15070 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15072 # Create an old-style archive from a shared archive.
15073 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15075 # Create a temporary old-style archive to link instead of a shared archive.
15076 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15078 # Commands used to build and install a shared archive.
15079 archive_cmds=$lt_archive_cmds_F77
15080 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15081 postinstall_cmds=$lt_postinstall_cmds
15082 postuninstall_cmds=$lt_postuninstall_cmds
15084 # Commands used to build a loadable module (assumed same as above if empty)
15085 module_cmds=$lt_module_cmds_F77
15086 module_expsym_cmds=$lt_module_expsym_cmds_F77
15088 # Commands to strip libraries.
15089 old_striplib=$lt_old_striplib
15090 striplib=$lt_striplib
15092 # Dependencies to place before the objects being linked to create a
15094 predep_objects=$lt_predep_objects_F77
15096 # Dependencies to place after the objects being linked to create a
15098 postdep_objects=$lt_postdep_objects_F77
15100 # Dependencies to place before the objects being linked to create a
15102 predeps=$lt_predeps_F77
15104 # Dependencies to place after the objects being linked to create a
15106 postdeps=$lt_postdeps_F77
15108 # The library search path used internally by the compiler when linking
15109 # a shared library.
15110 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15112 # Method to check whether dependent libraries are shared objects.
15113 deplibs_check_method=$lt_deplibs_check_method
15115 # Command to use when deplibs_check_method == file_magic.
15116 file_magic_cmd=$lt_file_magic_cmd
15118 # Flag that allows shared libraries with undefined symbols to be built.
15119 allow_undefined_flag=$lt_allow_undefined_flag_F77
15121 # Flag that forces no undefined symbols.
15122 no_undefined_flag=$lt_no_undefined_flag_F77
15124 # Commands used to finish a libtool library installation in a directory.
15125 finish_cmds=$lt_finish_cmds
15127 # Same as above, but a single script fragment to be evaled but not shown.
15128 finish_eval=$lt_finish_eval
15130 # Take the output of nm and produce a listing of raw symbols and C names.
15131 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15133 # Transform the output of nm in a proper C declaration
15134 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15136 # Transform the output of nm in a C name address pair
15137 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15139 # This is the shared library runtime path variable.
15140 runpath_var=$runpath_var
15142 # This is the shared library path variable.
15143 shlibpath_var=$shlibpath_var
15145 # Is shlibpath searched before the hard-coded library search path?
15146 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15148 # How to hardcode a shared library path into an executable.
15149 hardcode_action=$hardcode_action_F77
15151 # Whether we should hardcode library paths into libraries.
15152 hardcode_into_libs=$hardcode_into_libs
15154 # Flag to hardcode \$libdir into a binary during linking.
15155 # This must work even if \$libdir does not exist.
15156 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15158 # If ld is used when linking, flag to hardcode \$libdir into
15159 # a binary during linking. This must work even if \$libdir does
15161 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15163 # Whether we need a single -rpath flag with a separated argument.
15164 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15166 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15167 # resulting binary.
15168 hardcode_direct=$hardcode_direct_F77
15170 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15171 # resulting binary.
15172 hardcode_minus_L=$hardcode_minus_L_F77
15174 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15175 # the resulting binary.
15176 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15178 # Set to yes if building a shared library automatically hardcodes DIR into the library
15179 # and all subsequent libraries and executables linked against it.
15180 hardcode_automatic=$hardcode_automatic_F77
15182 # Variables whose values should be saved in libtool wrapper scripts and
15183 # restored at relink time.
15184 variables_saved_for_relink="$variables_saved_for_relink"
15186 # Whether libtool must link a program against all its dependency libraries.
15187 link_all_deplibs=$link_all_deplibs_F77
15189 # Compile-time system search path for libraries
15190 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15192 # Run-time system search path for libraries
15193 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15195 # Fix the shell variable \$srcfile for the compiler.
15196 fix_srcfile_path="$fix_srcfile_path_F77"
15198 # Set to yes if exported symbols are required.
15199 always_export_symbols=$always_export_symbols_F77
15201 # The commands to list exported symbols.
15202 export_symbols_cmds=$lt_export_symbols_cmds_F77
15204 # The commands to extract the exported symbol list from a shared archive.
15205 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15207 # Symbols that should not be listed in the preloaded symbols.
15208 exclude_expsyms=$lt_exclude_expsyms_F77
15210 # Symbols that must always be exported.
15211 include_expsyms=$lt_include_expsyms_F77
15213 # ### END LIBTOOL TAG CONFIG: $tagname
15219 # If there is no Makefile yet, we rely on a make rule to execute
15220 # `config.status --recheck' to rerun these tests and create the
15221 # libtool script then.
15222 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15223 if test -f "$ltmain_in"; then
15224 test -f Makefile && make "$ltmain"
15230 ac_cpp='$CPP $CPPFLAGS'
15231 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15232 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15233 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15243 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15247 # Source file extension for Java test sources.
15250 # Object file extension for compiled Java test sources.
15254 # Code to be used in simple compile tests
15255 lt_simple_compile_test_code="class foo {}\n"
15257 # Code to be used in simple link tests
15258 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15260 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15262 # If no C compiler was specified, use CC.
15265 # Allow CC to be a program name with arguments.
15269 # Allow CC to be a program name with arguments.
15275 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15276 archive_cmds_need_lc_GCJ=no
15279 lt_prog_compiler_no_builtin_flag_GCJ=
15281 if test "$GCC" = yes; then
15282 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15285 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15286 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15287 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15288 echo $ECHO_N "(cached) $ECHO_C" >&6
15290 lt_cv_prog_compiler_rtti_exceptions=no
15291 ac_outfile=conftest.$ac_objext
15292 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15293 lt_compiler_flag="-fno-rtti -fno-exceptions"
15294 # Insert the option either (1) after the last *FLAGS variable, or
15295 # (2) before a word containing "conftest.", or (3) at the end.
15296 # Note that $ac_compile itself does not contain backslashes and begins
15297 # with a dollar sign (not a hyphen), so the echo should work correctly.
15298 # The option is referenced via a variable to avoid confusing sed.
15299 lt_compile=`echo "$ac_compile" | $SED \
15300 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15301 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15302 -e 's:$: $lt_compiler_flag:'`
15303 (eval echo "\"\$as_me:15303: $lt_compile\"" >&5)
15304 (eval "$lt_compile" 2>conftest.err)
15306 cat conftest.err >&5
15307 echo "$as_me:15307: \$? = $ac_status" >&5
15308 if (exit $ac_status) && test -s "$ac_outfile"; then
15309 # The compiler can only warn and ignore the option if not recognized
15310 # So say no if there are warnings
15311 if test ! -s conftest.err; then
15312 lt_cv_prog_compiler_rtti_exceptions=yes
15318 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15319 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15321 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15322 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15329 lt_prog_compiler_wl_GCJ=
15330 lt_prog_compiler_pic_GCJ=
15331 lt_prog_compiler_static_GCJ=
15333 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15334 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15336 if test "$GCC" = yes; then
15337 lt_prog_compiler_wl_GCJ='-Wl,'
15338 lt_prog_compiler_static_GCJ='-static'
15342 # All AIX code is PIC.
15343 if test "$host_cpu" = ia64; then
15344 # AIX 5 now supports IA64 processor
15345 lt_prog_compiler_static_GCJ='-Bstatic'
15350 # FIXME: we need at least 68020 code to build shared libraries, but
15351 # adding the `-m68020' flag to GCC prevents building anything better,
15353 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15356 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15357 # PIC is the default for these OSes.
15360 mingw* | pw32* | os2*)
15361 # This hack is so that the source file can tell whether it is being
15362 # built for inclusion in a dll (and should export symbols for example).
15363 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15366 darwin* | rhapsody*)
15367 # PIC is the default on this platform
15368 # Common symbols not allowed in MH_DYLIB files
15369 lt_prog_compiler_pic_GCJ='-fno-common'
15373 # Just because we use GCC doesn't mean we suddenly get shared libraries
15374 # on systems that don't support them.
15375 lt_prog_compiler_can_build_shared_GCJ=no
15380 if test -d /usr/nec; then
15381 lt_prog_compiler_pic_GCJ=-Kconform_pic
15386 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15387 # not for PA HP-UX.
15388 case "$host_cpu" in
15393 lt_prog_compiler_pic_GCJ='-fPIC'
15399 lt_prog_compiler_pic_GCJ='-fPIC'
15403 # PORTME Check for flag to pass linker flags through the system compiler.
15406 lt_prog_compiler_wl_GCJ='-Wl,'
15407 if test "$host_cpu" = ia64; then
15408 # AIX 5 now supports IA64 processor
15409 lt_prog_compiler_static_GCJ='-Bstatic'
15411 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15415 mingw* | pw32* | os2*)
15416 # This hack is so that the source file can tell whether it is being
15417 # built for inclusion in a dll (and should export symbols for example).
15418 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15421 hpux9* | hpux10* | hpux11*)
15422 lt_prog_compiler_wl_GCJ='-Wl,'
15423 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15424 # not for PA HP-UX.
15425 case "$host_cpu" in
15430 lt_prog_compiler_pic_GCJ='+Z'
15433 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15434 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15437 irix5* | irix6* | nonstopux*)
15438 lt_prog_compiler_wl_GCJ='-Wl,'
15439 # PIC (with -KPIC) is the default.
15440 lt_prog_compiler_static_GCJ='-non_shared'
15444 lt_prog_compiler_pic_GCJ='-KPIC'
15445 lt_prog_compiler_static_GCJ='-Bstatic'
15451 lt_prog_compiler_wl_GCJ='-Wl,'
15452 lt_prog_compiler_pic_GCJ='-KPIC'
15453 lt_prog_compiler_static_GCJ='-static'
15456 lt_prog_compiler_wl_GCJ='-Wl,'
15457 # All Alpha code is PIC.
15458 lt_prog_compiler_static_GCJ='-non_shared'
15463 osf3* | osf4* | osf5*)
15464 lt_prog_compiler_wl_GCJ='-Wl,'
15465 # All OSF/1 code is PIC.
15466 lt_prog_compiler_static_GCJ='-non_shared'
15470 lt_prog_compiler_pic_GCJ='-Kpic'
15471 lt_prog_compiler_static_GCJ='-dn'
15475 lt_prog_compiler_wl_GCJ='-Wl,'
15476 lt_prog_compiler_pic_GCJ='-KPIC'
15477 lt_prog_compiler_static_GCJ='-Bstatic'
15481 lt_prog_compiler_wl_GCJ='-Qoption ld '
15482 lt_prog_compiler_pic_GCJ='-PIC'
15483 lt_prog_compiler_static_GCJ='-Bstatic'
15486 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15487 lt_prog_compiler_wl_GCJ='-Wl,'
15488 lt_prog_compiler_pic_GCJ='-KPIC'
15489 lt_prog_compiler_static_GCJ='-Bstatic'
15493 if test -d /usr/nec ;then
15494 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15495 lt_prog_compiler_static_GCJ='-Bstatic'
15500 lt_prog_compiler_pic_GCJ='-pic'
15501 lt_prog_compiler_static_GCJ='-Bstatic'
15505 lt_prog_compiler_can_build_shared_GCJ=no
15510 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15511 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15514 # Check to make sure the PIC flag actually works.
15516 if test -n "$lt_prog_compiler_pic_GCJ"; then
15518 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15519 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15520 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15521 echo $ECHO_N "(cached) $ECHO_C" >&6
15523 lt_prog_compiler_pic_works_GCJ=no
15524 ac_outfile=conftest.$ac_objext
15525 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15526 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15527 # Insert the option either (1) after the last *FLAGS variable, or
15528 # (2) before a word containing "conftest.", or (3) at the end.
15529 # Note that $ac_compile itself does not contain backslashes and begins
15530 # with a dollar sign (not a hyphen), so the echo should work correctly.
15531 # The option is referenced via a variable to avoid confusing sed.
15532 lt_compile=`echo "$ac_compile" | $SED \
15533 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15534 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15535 -e 's:$: $lt_compiler_flag:'`
15536 (eval echo "\"\$as_me:15536: $lt_compile\"" >&5)
15537 (eval "$lt_compile" 2>conftest.err)
15539 cat conftest.err >&5
15540 echo "$as_me:15540: \$? = $ac_status" >&5
15541 if (exit $ac_status) && test -s "$ac_outfile"; then
15542 # The compiler can only warn and ignore the option if not recognized
15543 # So say no if there are warnings
15544 if test ! -s conftest.err; then
15545 lt_prog_compiler_pic_works_GCJ=yes
15551 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15552 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15554 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15555 case $lt_prog_compiler_pic_GCJ in
15557 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15560 lt_prog_compiler_pic_GCJ=
15561 lt_prog_compiler_can_build_shared_GCJ=no
15566 # For platforms which do not support PIC, -DPIC is meaningless:
15568 lt_prog_compiler_pic_GCJ=
15571 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15575 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15576 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15577 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15578 echo $ECHO_N "(cached) $ECHO_C" >&6
15580 lt_cv_prog_compiler_c_o_GCJ=no
15581 $rm -r conftest 2>/dev/null
15585 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15587 lt_compiler_flag="-o out/conftest2.$ac_objext"
15588 # Insert the option either (1) after the last *FLAGS variable, or
15589 # (2) before a word containing "conftest.", or (3) at the end.
15590 # Note that $ac_compile itself does not contain backslashes and begins
15591 # with a dollar sign (not a hyphen), so the echo should work correctly.
15592 lt_compile=`echo "$ac_compile" | $SED \
15593 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15594 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15595 -e 's:$: $lt_compiler_flag:'`
15596 (eval echo "\"\$as_me:15596: $lt_compile\"" >&5)
15597 (eval "$lt_compile" 2>out/conftest.err)
15599 cat out/conftest.err >&5
15600 echo "$as_me:15600: \$? = $ac_status" >&5
15601 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15603 # The compiler can only warn and ignore the option if not recognized
15604 # So say no if there are warnings
15605 if test ! -s out/conftest.err; then
15606 lt_cv_prog_compiler_c_o_GCJ=yes
15611 # SGI C++ compiler will create directory out/ii_files/ for
15612 # template instantiation
15613 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15614 $rm out/* && rmdir out
15620 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15621 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15624 hard_links="nottested"
15625 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15626 # do not overwrite the value of need_locks provided by the user
15627 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15628 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15631 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15633 ln conftest.a conftest.b 2>&5 || hard_links=no
15634 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15635 echo "$as_me:$LINENO: result: $hard_links" >&5
15636 echo "${ECHO_T}$hard_links" >&6
15637 if test "$hard_links" = no; then
15638 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15639 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15646 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15647 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15650 allow_undefined_flag_GCJ=
15651 enable_shared_with_static_runtimes_GCJ=no
15653 archive_expsym_cmds_GCJ=
15654 old_archive_From_new_cmds_GCJ=
15655 old_archive_from_expsyms_cmds_GCJ=
15656 export_dynamic_flag_spec_GCJ=
15657 whole_archive_flag_spec_GCJ=
15658 thread_safe_flag_spec_GCJ=
15659 hardcode_libdir_flag_spec_GCJ=
15660 hardcode_libdir_flag_spec_ld_GCJ=
15661 hardcode_libdir_separator_GCJ=
15662 hardcode_direct_GCJ=no
15663 hardcode_minus_L_GCJ=no
15664 hardcode_shlibpath_var_GCJ=unsupported
15665 link_all_deplibs_GCJ=unknown
15666 hardcode_automatic_GCJ=no
15668 module_expsym_cmds_GCJ=
15669 always_export_symbols_GCJ=no
15670 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15671 # include_expsyms should be a list of space-separated symbols to be *always*
15672 # included in the symbol list
15673 include_expsyms_GCJ=
15674 # exclude_expsyms can be an extended regexp of symbols to exclude
15675 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15676 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15677 # as well as any symbol that contains `d'.
15678 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15679 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15680 # platforms (ab)use it in PIC code, but their linkers get confused if
15681 # the symbol is explicitly referenced. Since portable code cannot
15682 # rely on this symbol name, it's probably fine to never include it in
15683 # preloaded symbol tables.
15684 extract_expsyms_cmds=
15687 cygwin* | mingw* | pw32*)
15688 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15689 # When not using gcc, we currently assume that we are using
15690 # Microsoft Visual C++.
15691 if test "$GCC" != yes; then
15701 if test "$with_gnu_ld" = yes; then
15702 # If archive_cmds runs LD, not CC, wlarc should be empty
15705 # See if GNU ld supports shared libraries.
15707 aix3* | aix4* | aix5*)
15708 # On AIX/PPC, the GNU linker is very broken
15709 if test "$host_cpu" != ia64; then
15713 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15714 *** to be unable to reliably create shared libraries on AIX.
15715 *** Therefore, libtool is disabling shared libraries support. If you
15716 *** really care for shared libraries, you may want to modify your PATH
15717 *** so that a non-GNU linker is found, and then restart.
15724 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)'
15725 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15726 hardcode_minus_L_GCJ=yes
15728 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15729 # that the semantics of dynamic libraries on AmigaOS, at least up
15730 # to version 4, is to share data among multiple programs linked
15731 # with the same dynamic library. Since this doesn't match the
15732 # behavior of shared libraries on other platforms, we can't use
15738 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15739 allow_undefined_flag_GCJ=unsupported
15740 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15741 # support --undefined. This deserves some investigation. FIXME
15742 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15748 cygwin* | mingw* | pw32*)
15749 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15750 # as there is no search path for DLLs.
15751 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15752 allow_undefined_flag_GCJ=unsupported
15753 always_export_symbols_GCJ=no
15754 enable_shared_with_static_runtimes_GCJ=yes
15755 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15757 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15758 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15759 # If the export-symbols file already is a .def file (1st line
15760 # is EXPORTS), use it as is; otherwise, prepend...
15761 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15762 cp $export_symbols $output_objdir/$soname.def;
15764 echo EXPORTS > $output_objdir/$soname.def;
15765 cat $export_symbols >> $output_objdir/$soname.def;
15767 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15773 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15774 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15775 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15778 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15779 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15784 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15788 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15789 *** create shared libraries on Solaris systems. Therefore, libtool
15790 *** is disabling shared libraries support. We urge you to upgrade GNU
15791 *** binutils to release 2.9.1 or newer. Another option is to modify
15792 *** your PATH or compiler configuration so that the native linker is
15793 *** used, and then restart.
15796 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15797 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15798 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15805 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15807 hardcode_direct_GCJ=yes
15808 hardcode_shlibpath_var_GCJ=no
15812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15813 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 archive_cmds_GCJ="$tmp_archive_cmds"
15815 supports_anon_versioning=no
15816 case `$LD -v 2>/dev/null` in
15817 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15820 *\ 2.11.*) ;; # other 2.11 versions
15821 *) supports_anon_versioning=yes ;;
15823 if test $supports_anon_versioning = yes; then
15824 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15826 $echo "local: *; };" >> $output_objdir/$libname.ver~
15827 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15829 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15831 link_all_deplibs_GCJ=no
15838 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15839 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15840 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15847 if test "$ld_shlibs_GCJ" = yes; then
15848 runpath_var=LD_RUN_PATH
15849 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15850 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15851 # ancient GNU ld didn't support --whole-archive et. al.
15852 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15853 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15855 whole_archive_flag_spec_GCJ=
15859 # PORTME fill in a description of your system's linker (not GNU ld)
15862 allow_undefined_flag_GCJ=unsupported
15863 always_export_symbols_GCJ=yes
15864 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'
15865 # Note: this linker hardcodes the directories in LIBPATH if there
15866 # are no directories specified by -L.
15867 hardcode_minus_L_GCJ=yes
15868 if test "$GCC" = yes && test -z "$link_static_flag"; then
15869 # Neither direct hardcoding nor static linking is supported with a
15871 hardcode_direct_GCJ=unsupported
15876 if test "$host_cpu" = ia64; then
15877 # On IA64, the linker does run time linking by default, so we don't
15878 # have to do anything special.
15879 aix_use_runtimelinking=no
15880 exp_sym_flag='-Bexport'
15883 # If we're using GNU nm, then we don't want the "-C" option.
15884 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15885 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15886 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'
15888 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'
15890 aix_use_runtimelinking=no
15892 # Test if we are trying to use run time linking or normal
15893 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15894 # need to do runtime linking.
15895 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15896 for ld_flag in $LDFLAGS; do
15897 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15898 aix_use_runtimelinking=yes
15904 exp_sym_flag='-bexport'
15905 no_entry_flag='-bnoentry'
15908 # When large executables or shared objects are built, AIX ld can
15909 # have problems creating the table of contents. If linking a library
15910 # or program results in "error TOC overflow" add -mminimal-toc to
15911 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15912 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15914 archive_cmds_GCJ=''
15915 hardcode_direct_GCJ=yes
15916 hardcode_libdir_separator_GCJ=':'
15917 link_all_deplibs_GCJ=yes
15919 if test "$GCC" = yes; then
15920 case $host_os in aix4.012|aix4.012.*)
15921 # We only want to do this on AIX 4.2 and lower, the check
15922 # below for broken collect2 doesn't work under 4.3+
15923 collect2name=`${CC} -print-prog-name=collect2`
15924 if test -f "$collect2name" && \
15925 strings "$collect2name" | grep resolve_lib_name >/dev/null
15927 # We have reworked collect2
15928 hardcode_direct_GCJ=yes
15930 # We have old collect2
15931 hardcode_direct_GCJ=unsupported
15932 # It fails to find uninstalled libraries when the uninstalled
15933 # path is not listed in the libpath. Setting hardcode_minus_L
15934 # to unsupported forces relinking
15935 hardcode_minus_L_GCJ=yes
15936 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15937 hardcode_libdir_separator_GCJ=
15940 shared_flag='-shared'
15943 if test "$host_cpu" = ia64; then
15944 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15945 # chokes on -Wl,-G. The following line is correct:
15948 if test "$aix_use_runtimelinking" = yes; then
15949 shared_flag='${wl}-G'
15951 shared_flag='${wl}-bM:SRE'
15956 # It seems that -bexpall does not export symbols beginning with
15957 # underscore (_), so it is better to generate a list of symbols to export.
15958 always_export_symbols_GCJ=yes
15959 if test "$aix_use_runtimelinking" = yes; then
15960 # Warning - without using the other runtime loading flags (-brtl),
15961 # -berok will link without error, but may produce a broken library.
15962 allow_undefined_flag_GCJ='-berok'
15963 # Determine the default libpath from the value encoded in an empty executable.
15964 cat >conftest.$ac_ext <<_ACEOF
15965 #line $LINENO "configure"
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15980 rm -f conftest.$ac_objext conftest$ac_exeext
15981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15982 (eval $ac_link) 2>&5
15984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15985 (exit $ac_status); } &&
15986 { ac_try='test -s conftest$ac_exeext'
15987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15988 (eval $ac_try) 2>&5
15990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15991 (exit $ac_status); }; }; then
15993 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15995 # Check for a 64-bit object if we didn't find anything.
15996 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16003 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16004 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16006 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16007 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16009 if test "$host_cpu" = ia64; then
16010 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16011 allow_undefined_flag_GCJ="-z nodefs"
16012 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
16014 # Determine the default libpath from the value encoded in an empty executable.
16015 cat >conftest.$ac_ext <<_ACEOF
16016 #line $LINENO "configure"
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16031 rm -f conftest.$ac_objext conftest$ac_exeext
16032 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16033 (eval $ac_link) 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); } &&
16037 { ac_try='test -s conftest$ac_exeext'
16038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16039 (eval $ac_try) 2>&5
16041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); }; }; then
16044 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16046 # Check for a 64-bit object if we didn't find anything.
16047 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16050 echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16054 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16055 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16057 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16058 # Warning - without using the other run time loading flags,
16059 # -berok will link without error, but may produce a broken library.
16060 no_undefined_flag_GCJ=' ${wl}-bernotok'
16061 allow_undefined_flag_GCJ=' ${wl}-berok'
16062 # -bexpall does not export symbols beginning with underscore (_)
16063 always_export_symbols_GCJ=yes
16064 # Exported symbols can be pulled into shared objects from archives
16065 whole_archive_flag_spec_GCJ=' '
16066 archive_cmds_need_lc_GCJ=yes
16067 # This is similar to how AIX traditionally builds it's shared libraries.
16068 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16074 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)'
16075 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16076 hardcode_minus_L_GCJ=yes
16077 # see comment about different semantics on the GNU ld section
16082 export_dynamic_flag_spec_GCJ=-rdynamic
16085 cygwin* | mingw* | pw32*)
16086 # When not using gcc, we currently assume that we are using
16087 # Microsoft Visual C++.
16088 # hardcode_libdir_flag_spec is actually meaningless, as there is
16089 # no search path for DLLs.
16090 hardcode_libdir_flag_spec_GCJ=' '
16091 allow_undefined_flag_GCJ=unsupported
16092 # Tell ltmain to make .lib files, not .a files.
16094 # Tell ltmain to make .dll files, not .so files.
16096 # FIXME: Setting linknames here is a bad hack.
16097 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16098 # The linker will automatically build a .lib file if we build a DLL.
16099 old_archive_From_new_cmds_GCJ='true'
16100 # FIXME: Should let the user specify the lib program.
16101 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16102 fix_srcfile_path='`cygpath -w "$srcfile"`'
16103 enable_shared_with_static_runtimes_GCJ=yes
16106 darwin* | rhapsody*)
16107 if test "$GXX" = yes ; then
16108 archive_cmds_need_lc_GCJ=no
16110 rhapsody* | darwin1.[012])
16111 allow_undefined_flag_GCJ='-undefined suppress'
16114 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16115 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16117 case ${MACOSX_DEPLOYMENT_TARGET} in
16119 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16122 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16128 lt_int_apple_cc_single_mod=no
16129 output_verbose_link_cmd='echo'
16130 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16131 lt_int_apple_cc_single_mod=yes
16133 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16134 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16136 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
16138 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16139 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16140 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16141 archive_expsym_cmds_GCJ='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}'
16143 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
16145 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}'
16146 hardcode_direct_GCJ=no
16147 hardcode_automatic_GCJ=yes
16148 hardcode_shlibpath_var_GCJ=unsupported
16149 whole_archive_flag_spec_GCJ='-all_load $convenience'
16150 link_all_deplibs_GCJ=yes
16157 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16158 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16159 hardcode_shlibpath_var_GCJ=no
16166 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16167 # support. Future versions do this automatically, but an explicit c++rt0.o
16168 # does not break anything, and helps significantly (at the cost of a little
16171 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16172 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16173 hardcode_direct_GCJ=yes
16174 hardcode_shlibpath_var_GCJ=no
16177 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16179 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16180 hardcode_direct_GCJ=yes
16181 hardcode_minus_L_GCJ=yes
16182 hardcode_shlibpath_var_GCJ=no
16185 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16186 freebsd* | kfreebsd*-gnu)
16187 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16188 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16189 hardcode_direct_GCJ=yes
16190 hardcode_shlibpath_var_GCJ=no
16194 if test "$GCC" = yes; then
16195 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'
16197 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'
16199 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16200 hardcode_libdir_separator_GCJ=:
16201 hardcode_direct_GCJ=yes
16203 # hardcode_minus_L: Not really in the search PATH,
16204 # but as the default location of the library.
16205 hardcode_minus_L_GCJ=yes
16206 export_dynamic_flag_spec_GCJ='${wl}-E'
16210 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16211 case "$host_cpu" in
16213 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16216 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16220 case "$host_cpu" in
16222 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16225 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16229 if test "$with_gnu_ld" = no; then
16230 case "$host_cpu" in
16232 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16233 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16234 hardcode_libdir_separator_GCJ=:
16235 hardcode_direct_GCJ=no
16236 hardcode_shlibpath_var_GCJ=no
16239 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16240 hardcode_direct_GCJ=no
16241 hardcode_shlibpath_var_GCJ=no
16243 # hardcode_minus_L: Not really in the search PATH,
16244 # but as the default location of the library.
16245 hardcode_minus_L_GCJ=yes
16248 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16249 hardcode_libdir_separator_GCJ=:
16250 hardcode_direct_GCJ=yes
16251 export_dynamic_flag_spec_GCJ='${wl}-E'
16253 # hardcode_minus_L: Not really in the search PATH,
16254 # but as the default location of the library.
16255 hardcode_minus_L_GCJ=yes
16261 irix5* | irix6* | nonstopux*)
16262 if test "$GCC" = yes; then
16263 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'
16265 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'
16266 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16268 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16269 hardcode_libdir_separator_GCJ=:
16270 link_all_deplibs_GCJ=yes
16273 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16274 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16275 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16277 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16279 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16280 hardcode_direct_GCJ=yes
16281 hardcode_shlibpath_var_GCJ=no
16285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16286 hardcode_direct_GCJ=yes
16287 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16288 hardcode_libdir_separator_GCJ=:
16289 hardcode_shlibpath_var_GCJ=no
16293 hardcode_direct_GCJ=yes
16294 hardcode_shlibpath_var_GCJ=no
16295 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16296 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16297 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16298 export_dynamic_flag_spec_GCJ='${wl}-E'
16301 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16302 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16303 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16306 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16307 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16314 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16315 hardcode_minus_L_GCJ=yes
16316 allow_undefined_flag_GCJ=unsupported
16317 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'
16318 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16322 if test "$GCC" = yes; then
16323 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16324 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'
16326 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16327 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'
16329 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16330 hardcode_libdir_separator_GCJ=:
16333 osf4* | osf5*) # as osf3* with the addition of -msym flag
16334 if test "$GCC" = yes; then
16335 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16336 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'
16337 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16339 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16340 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'
16341 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~
16342 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16344 # Both c and cxx compiler support -rpath directly
16345 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16347 hardcode_libdir_separator_GCJ=:
16351 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16352 hardcode_shlibpath_var_GCJ=no
16353 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16354 runpath_var=LD_RUN_PATH
16355 hardcode_runpath_var=yes
16359 no_undefined_flag_GCJ=' -z text'
16360 if test "$GCC" = yes; then
16361 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16362 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16363 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16365 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16366 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16367 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16369 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16370 hardcode_shlibpath_var_GCJ=no
16372 solaris2.[0-5] | solaris2.[0-5].*) ;;
16373 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16374 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16376 link_all_deplibs_GCJ=yes
16380 if test "x$host_vendor" = xsequent; then
16381 # Use $CC to link under sequent, because it throws in some extra .o
16382 # files that make .init and .fini sections work.
16383 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16385 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16387 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16388 hardcode_direct_GCJ=yes
16389 hardcode_minus_L_GCJ=yes
16390 hardcode_shlibpath_var_GCJ=no
16394 case $host_vendor in
16396 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16397 hardcode_direct_GCJ=yes # is this really true???
16400 ## LD is ld it makes a PLAMLIB
16401 ## CC just makes a GrossModule.
16402 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16403 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16404 hardcode_direct_GCJ=no
16407 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16408 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16411 runpath_var='LD_RUN_PATH'
16412 hardcode_shlibpath_var_GCJ=no
16416 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16417 hardcode_shlibpath_var_GCJ=no
16418 export_dynamic_flag_spec_GCJ='-Bexport'
16422 if test -d /usr/nec; then
16423 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16424 hardcode_shlibpath_var_GCJ=no
16425 runpath_var=LD_RUN_PATH
16426 hardcode_runpath_var=yes
16432 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16433 hardcode_direct_GCJ=yes
16434 hardcode_minus_L_GCJ=no
16435 hardcode_shlibpath_var_GCJ=no
16436 hardcode_runpath_var=yes
16437 runpath_var=LD_RUN_PATH
16440 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16441 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16442 if test "$GCC" = yes; then
16443 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16445 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16447 runpath_var='LD_RUN_PATH'
16448 hardcode_shlibpath_var_GCJ=no
16452 no_undefined_flag_GCJ=' -z text'
16453 # $CC -shared without GNU ld will not create a library from C++
16454 # object files and a static libstdc++, better avoid it by now
16455 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16457 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16458 hardcode_libdir_flag_spec_GCJ=
16459 hardcode_shlibpath_var_GCJ=no
16460 runpath_var='LD_RUN_PATH'
16464 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16465 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16466 hardcode_shlibpath_var_GCJ=no
16475 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16476 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16477 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16479 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16480 if test "$GCC" = yes; then
16481 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16485 # Do we need to explicitly link libc?
16487 case "x$archive_cmds_need_lc_GCJ" in
16489 # Assume -lc should be added
16490 archive_cmds_need_lc_GCJ=yes
16492 if test "$enable_shared" = yes && test "$GCC" = yes; then
16493 case $archive_cmds_GCJ in
16495 # FIXME: we may have to deal with multi-command sequences.
16498 # Test whether the compiler implicitly links with -lc since on some
16499 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16500 # to ld, don't add -lc before -lgcc.
16501 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16502 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16504 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16507 (eval $ac_compile) 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); } 2>conftest.err; then
16513 libobjs=conftest.$ac_objext
16515 wl=$lt_prog_compiler_wl_GCJ
16521 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16522 allow_undefined_flag_GCJ=
16523 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16524 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); }
16529 archive_cmds_need_lc_GCJ=no
16531 archive_cmds_need_lc_GCJ=yes
16533 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16535 cat conftest.err 1>&5
16538 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16539 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16546 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16547 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16548 library_names_spec=
16549 libname_spec='lib$name'
16553 postuninstall_cmds=
16557 shlibpath_overrides_runpath=unknown
16559 dynamic_linker="$host_os ld.so"
16560 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16561 if test "$GCC" = yes; then
16562 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16563 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16564 # if the path contains ";" then we assume it to be the separator
16565 # otherwise default to the standard path separator (i.e. ":") - it is
16566 # assumed that no part of a normal pathname contains ";" but that should
16567 # okay in the real world where ";" in dirpaths is itself problematic.
16568 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16570 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16573 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16575 need_lib_prefix=unknown
16576 hardcode_into_libs=no
16578 # when you set need_version to no, make sure it does not cause -set_version
16579 # flags to be left without arguments
16580 need_version=unknown
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16586 shlibpath_var=LIBPATH
16588 # AIX 3 has no versioning support, so we append a major version to the name.
16589 soname_spec='${libname}${release}${shared_ext}$major'
16596 hardcode_into_libs=yes
16597 if test "$host_cpu" = ia64; then
16598 # AIX 5 supports IA64
16599 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16600 shlibpath_var=LD_LIBRARY_PATH
16602 # With GCC up to 2.95.x, collect2 would create an import file
16603 # for dependence libraries. The import file would start with
16604 # the line `#! .'. This would cause the generated library to
16605 # depend on `.', always an invalid library. This was fixed in
16606 # development snapshots of GCC prior to 3.0.
16608 aix4 | aix4.[01] | aix4.[01].*)
16609 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16611 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16614 can_build_shared=no
16618 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16619 # soname into executable. Probably we can add versioning support to
16620 # collect2, so additional links can be useful in future.
16621 if test "$aix_use_runtimelinking" = yes; then
16622 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16623 # instead of lib<name>.a to let people know that these are not
16624 # typical AIX shared libraries.
16625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16627 # We preserve .a as extension for shared libraries through AIX4.2
16628 # and later when we are not doing run time linking.
16629 library_names_spec='${libname}${release}.a $libname.a'
16630 soname_spec='${libname}${release}${shared_ext}$major'
16632 shlibpath_var=LIBPATH
16637 library_names_spec='$libname.ixlibrary $libname.a'
16638 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16639 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'
16643 library_names_spec='${libname}${shared_ext}'
16644 dynamic_linker="$host_os ld.so"
16645 shlibpath_var=LIBRARY_PATH
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 soname_spec='${libname}${release}${shared_ext}$major'
16653 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16654 shlibpath_var=LD_LIBRARY_PATH
16655 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16656 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16657 # the default ld.so.conf also contains /usr/contrib/lib and
16658 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16659 # libtool to hard-code these into programs
16662 cygwin* | mingw* | pw32*)
16663 version_type=windows
16668 case $GCC,$host_os in
16669 yes,cygwin* | yes,mingw* | yes,pw32*)
16670 library_names_spec='$libname.dll.a'
16671 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16672 postinstall_cmds='base_file=`basename \${file}`~
16673 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16674 dldir=$destdir/`dirname \$dlpath`~
16675 test -d \$dldir || mkdir -p \$dldir~
16676 $install_prog $dir/$dlname \$dldir/$dlname'
16677 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16678 dlpath=$dir/\$dldll~
16680 shlibpath_overrides_runpath=yes
16684 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16685 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16686 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16689 # MinGW DLLs use traditional 'lib' prefix
16690 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16692 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16693 # It is most probably a Windows format PATH printed by
16694 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16695 # path with ; separators, and with drive letters. We can handle the
16696 # drive letters (cygwin fileutils understands them), so leave them,
16697 # especially as we might pass files found there to a mingw objdump,
16698 # which wouldn't understand a cygwinified path. Ahh.
16699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16701 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16705 # pw32 DLLs use 'pw' prefix rather than 'lib'
16706 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16712 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16715 dynamic_linker='Win32 ld.exe'
16716 # FIXME: first we should search . and the directory the executable is in
16720 darwin* | rhapsody*)
16721 dynamic_linker="$host_os dyld"
16722 version_type=darwin
16725 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16726 soname_spec='${libname}${release}${major}$shared_ext'
16727 shlibpath_overrides_runpath=yes
16728 shlibpath_var=DYLD_LIBRARY_PATH
16729 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16730 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16731 if test "$GCC" = yes; then
16732 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16734 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16736 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16744 soname_spec='${libname}${release}${shared_ext}$major'
16745 shlibpath_var=LD_LIBRARY_PATH
16756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16757 soname_spec='${libname}${release}${shared_ext}$major'
16758 shlibpath_var=LD_LIBRARY_PATH
16759 shlibpath_overrides_runpath=no
16760 hardcode_into_libs=yes
16761 dynamic_linker='GNU ld.so'
16765 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16766 version_type=freebsd-$objformat
16767 case $version_type in
16769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16774 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16778 shlibpath_var=LD_LIBRARY_PATH
16781 shlibpath_overrides_runpath=yes
16783 freebsd3.01* | freebsdelf3.01*)
16784 shlibpath_overrides_runpath=yes
16785 hardcode_into_libs=yes
16788 shlibpath_overrides_runpath=no
16789 hardcode_into_libs=yes
16798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16799 soname_spec='${libname}${release}${shared_ext}$major'
16800 shlibpath_var=LD_LIBRARY_PATH
16801 hardcode_into_libs=yes
16804 hpux9* | hpux10* | hpux11*)
16805 # Give a soname corresponding to the major version so that dld.sl refuses to
16806 # link against other versions.
16810 case "$host_cpu" in
16813 hardcode_into_libs=yes
16814 dynamic_linker="$host_os dld.so"
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 if test "X$HPUX_IA64_MODE" = X32; then
16820 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16822 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16824 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16828 hardcode_into_libs=yes
16829 dynamic_linker="$host_os dld.sl"
16830 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16831 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16833 soname_spec='${libname}${release}${shared_ext}$major'
16834 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16835 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16839 dynamic_linker="$host_os dld.sl"
16840 shlibpath_var=SHLIB_PATH
16841 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16843 soname_spec='${libname}${release}${shared_ext}$major'
16846 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16847 postinstall_cmds='chmod 555 $lib'
16850 irix5* | irix6* | nonstopux*)
16852 nonstopux*) version_type=nonstopux ;;
16854 if test "$lt_cv_prog_gnu_ld" = yes; then
16862 soname_spec='${libname}${release}${shared_ext}$major'
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16865 irix5* | nonstopux*)
16866 libsuff= shlibsuff=
16869 case $LD in # libtool.m4 will add one of these switches to LD
16870 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16871 libsuff= shlibsuff= libmagic=32-bit;;
16872 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16873 libsuff=32 shlibsuff=N32 libmagic=N32;;
16874 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16875 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16876 *) libsuff= shlibsuff= libmagic=never-match;;
16880 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16881 shlibpath_overrides_runpath=no
16882 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16883 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16884 hardcode_into_libs=yes
16887 # No shared lib support for Linux oldld, aout, or coff.
16888 linux*oldld* | linux*aout* | linux*coff*)
16892 # This must be Linux ELF.
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16900 shlibpath_var=LD_LIBRARY_PATH
16901 shlibpath_overrides_runpath=no
16902 # This implies no fast_install, which is unacceptable.
16903 # Some rework will be needed to allow for fast_install
16904 # before this can be enabled.
16905 hardcode_into_libs=yes
16907 # Append ld.so.conf contents to the search path
16908 if test -f /etc/ld.so.conf; then
16909 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16910 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16913 # We used to test for /lib/ld.so.1 and disable shared libraries on
16914 # powerpc, because MkLinux only supported shared libraries with the
16915 # GNU dynamic linker. Since this was broken with cross compilers,
16916 # most powerpc-linux boxes support dynamic linking these days and
16917 # people can always --disable-shared, the test was removed, and we
16918 # assume the GNU/Linux dynamic linker is in use.
16919 dynamic_linker='GNU/Linux ld.so'
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 shlibpath_overrides_runpath=no
16930 hardcode_into_libs=yes
16931 dynamic_linker='NetBSD ld.elf_so'
16938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16939 soname_spec='${libname}${release}${shared_ext}$major'
16940 shlibpath_var=LD_LIBRARY_PATH
16941 shlibpath_overrides_runpath=no
16942 hardcode_into_libs=yes
16943 dynamic_linker='GNU ld.so'
16950 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16952 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16953 dynamic_linker='NetBSD (a.out) ld.so'
16955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16956 soname_spec='${libname}${release}${shared_ext}$major'
16957 dynamic_linker='NetBSD ld.elf_so'
16959 shlibpath_var=LD_LIBRARY_PATH
16960 shlibpath_overrides_runpath=yes
16961 hardcode_into_libs=yes
16966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16967 shlibpath_var=LD_LIBRARY_PATH
16968 shlibpath_overrides_runpath=yes
16975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16976 soname_spec='${libname}${release}${shared_ext}$major'
16977 shlibpath_var=LD_LIBRARY_PATH
16978 shlibpath_overrides_runpath=yes
16985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16987 shlibpath_var=LD_LIBRARY_PATH
16988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16990 openbsd2.[89] | openbsd2.[89].*)
16991 shlibpath_overrides_runpath=no
16994 shlibpath_overrides_runpath=yes
16998 shlibpath_overrides_runpath=yes
17003 libname_spec='$name'
17006 library_names_spec='$libname${shared_ext} $libname.a'
17007 dynamic_linker='OS/2 ld.exe'
17008 shlibpath_var=LIBPATH
17011 osf3* | osf4* | osf5*)
17015 soname_spec='${libname}${release}${shared_ext}$major'
17016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17017 shlibpath_var=LD_LIBRARY_PATH
17018 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17019 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17024 soname_spec='${libname}${release}${shared_ext}$major'
17025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17026 shlibpath_var=LD_LIBRARY_PATH
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17034 soname_spec='${libname}${release}${shared_ext}$major'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 shlibpath_overrides_runpath=yes
17037 hardcode_into_libs=yes
17038 # ldd complains unless libraries are executable
17039 postinstall_cmds='chmod +x $lib'
17044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17046 shlibpath_var=LD_LIBRARY_PATH
17047 shlibpath_overrides_runpath=yes
17048 if test "$with_gnu_ld" = yes; then
17054 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17057 soname_spec='${libname}${release}${shared_ext}$major'
17058 shlibpath_var=LD_LIBRARY_PATH
17059 case $host_vendor in
17061 shlibpath_overrides_runpath=no
17063 export_dynamic_flag_spec='${wl}-Blargedynsym'
17064 runpath_var=LD_RUN_PATH
17072 shlibpath_overrides_runpath=no
17073 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17079 if test -d /usr/nec ;then
17081 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17082 soname_spec='$libname${shared_ext}.$major'
17083 shlibpath_var=LD_LIBRARY_PATH
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17090 soname_spec='${libname}${release}${shared_ext}$major'
17091 shlibpath_var=LD_LIBRARY_PATH
17098 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17099 echo "${ECHO_T}$dynamic_linker" >&6
17100 test "$dynamic_linker" = no && can_build_shared=no
17102 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17103 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17104 hardcode_action_GCJ=
17105 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17106 test -n "$runpath_var GCJ" || \
17107 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17109 # We can hardcode non-existant directories.
17110 if test "$hardcode_direct_GCJ" != no &&
17111 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17112 # have to relink, otherwise we might link with an installed library
17113 # when we should be linking with a yet-to-be-installed one
17114 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17115 test "$hardcode_minus_L_GCJ" != no; then
17116 # Linking always hardcodes the temporary library directory.
17117 hardcode_action_GCJ=relink
17119 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17120 hardcode_action_GCJ=immediate
17123 # We cannot hardcode anything, or else we can only hardcode existing
17125 hardcode_action_GCJ=unsupported
17127 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17128 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17130 if test "$hardcode_action_GCJ" = relink; then
17131 # Fast installation is not supported
17132 enable_fast_install=no
17133 elif test "$shlibpath_overrides_runpath" = yes ||
17134 test "$enable_shared" = no; then
17135 # Fast installation is not necessary
17136 enable_fast_install=needless
17141 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17142 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17143 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17144 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17145 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17146 echo "$as_me:$LINENO: result: yes" >&5
17147 echo "${ECHO_T}yes" >&6
17149 # FIXME - insert some real tests, host_os isn't really good enough
17152 if test -n "$STRIP" ; then
17153 striplib="$STRIP -x"
17154 echo "$as_me:$LINENO: result: yes" >&5
17155 echo "${ECHO_T}yes" >&6
17157 echo "$as_me:$LINENO: result: no" >&5
17158 echo "${ECHO_T}no" >&6
17162 echo "$as_me:$LINENO: result: no" >&5
17163 echo "${ECHO_T}no" >&6
17168 if test "x$enable_dlopen" != xyes; then
17169 enable_dlopen=unknown
17170 enable_dlopen_self=unknown
17171 enable_dlopen_self_static=unknown
17178 lt_cv_dlopen="load_add_on"
17180 lt_cv_dlopen_self=yes
17184 lt_cv_dlopen="LoadLibrary"
17189 lt_cv_dlopen="dlopen"
17194 # if libdl is installed we need to link against it
17195 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17196 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17197 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 ac_check_lib_save_LIBS=$LIBS
17202 cat >conftest.$ac_ext <<_ACEOF
17203 #line $LINENO "configure"
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17210 /* Override any gcc2 internal prototype to avoid an error. */
17214 /* We use char because int might match the return type of a gcc2
17215 builtin and then its argument prototype would still apply. */
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17227 (eval $ac_link) 2>&5
17229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } &&
17231 { ac_try='test -s conftest$ac_exeext'
17232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17233 (eval $ac_try) 2>&5
17235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17236 (exit $ac_status); }; }; then
17237 ac_cv_lib_dl_dlopen=yes
17239 echo "$as_me: failed program was:" >&5
17240 sed 's/^/| /' conftest.$ac_ext >&5
17242 ac_cv_lib_dl_dlopen=no
17244 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17245 LIBS=$ac_check_lib_save_LIBS
17247 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17248 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17249 if test $ac_cv_lib_dl_dlopen = yes; then
17250 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17253 lt_cv_dlopen="dyld"
17255 lt_cv_dlopen_self=yes
17262 echo "$as_me:$LINENO: checking for shl_load" >&5
17263 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17264 if test "${ac_cv_func_shl_load+set}" = set; then
17265 echo $ECHO_N "(cached) $ECHO_C" >&6
17267 cat >conftest.$ac_ext <<_ACEOF
17268 #line $LINENO "configure"
17271 cat confdefs.h >>conftest.$ac_ext
17272 cat >>conftest.$ac_ext <<_ACEOF
17273 /* end confdefs.h. */
17274 /* System header to define __stub macros and hopefully few prototypes,
17275 which can conflict with char shl_load (); below.
17276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17277 <limits.h> exists even on freestanding compilers. */
17279 # include <limits.h>
17281 # include <assert.h>
17283 /* Override any gcc2 internal prototype to avoid an error. */
17288 /* We use char because int might match the return type of a gcc2
17289 builtin and then its argument prototype would still apply. */
17291 /* The GNU C library defines this for functions which it implements
17292 to always fail with ENOSYS. Some functions are actually named
17293 something starting with __ and the normal name is an alias. */
17294 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17297 char (*f) () = shl_load;
17306 return f != shl_load;
17311 rm -f conftest.$ac_objext conftest$ac_exeext
17312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17313 (eval $ac_link) 2>&5
17315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17316 (exit $ac_status); } &&
17317 { ac_try='test -s conftest$ac_exeext'
17318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17319 (eval $ac_try) 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; }; then
17323 ac_cv_func_shl_load=yes
17325 echo "$as_me: failed program was:" >&5
17326 sed 's/^/| /' conftest.$ac_ext >&5
17328 ac_cv_func_shl_load=no
17330 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17332 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17333 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17334 if test $ac_cv_func_shl_load = yes; then
17335 lt_cv_dlopen="shl_load"
17337 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17338 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17339 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17340 echo $ECHO_N "(cached) $ECHO_C" >&6
17342 ac_check_lib_save_LIBS=$LIBS
17344 cat >conftest.$ac_ext <<_ACEOF
17345 #line $LINENO "configure"
17348 cat confdefs.h >>conftest.$ac_ext
17349 cat >>conftest.$ac_ext <<_ACEOF
17350 /* end confdefs.h. */
17352 /* Override any gcc2 internal prototype to avoid an error. */
17356 /* We use char because int might match the return type of a gcc2
17357 builtin and then its argument prototype would still apply. */
17367 rm -f conftest.$ac_objext conftest$ac_exeext
17368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17369 (eval $ac_link) 2>&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -s conftest$ac_exeext'
17374 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17375 (eval $ac_try) 2>&5
17377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17378 (exit $ac_status); }; }; then
17379 ac_cv_lib_dld_shl_load=yes
17381 echo "$as_me: failed program was:" >&5
17382 sed 's/^/| /' conftest.$ac_ext >&5
17384 ac_cv_lib_dld_shl_load=no
17386 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17387 LIBS=$ac_check_lib_save_LIBS
17389 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17390 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17391 if test $ac_cv_lib_dld_shl_load = yes; then
17392 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17394 echo "$as_me:$LINENO: checking for dlopen" >&5
17395 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17396 if test "${ac_cv_func_dlopen+set}" = set; then
17397 echo $ECHO_N "(cached) $ECHO_C" >&6
17399 cat >conftest.$ac_ext <<_ACEOF
17400 #line $LINENO "configure"
17403 cat confdefs.h >>conftest.$ac_ext
17404 cat >>conftest.$ac_ext <<_ACEOF
17405 /* end confdefs.h. */
17406 /* System header to define __stub macros and hopefully few prototypes,
17407 which can conflict with char dlopen (); below.
17408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17409 <limits.h> exists even on freestanding compilers. */
17411 # include <limits.h>
17413 # include <assert.h>
17415 /* Override any gcc2 internal prototype to avoid an error. */
17420 /* We use char because int might match the return type of a gcc2
17421 builtin and then its argument prototype would still apply. */
17423 /* The GNU C library defines this for functions which it implements
17424 to always fail with ENOSYS. Some functions are actually named
17425 something starting with __ and the normal name is an alias. */
17426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17429 char (*f) () = dlopen;
17438 return f != dlopen;
17443 rm -f conftest.$ac_objext conftest$ac_exeext
17444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17445 (eval $ac_link) 2>&5
17447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } &&
17449 { ac_try='test -s conftest$ac_exeext'
17450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17451 (eval $ac_try) 2>&5
17453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17454 (exit $ac_status); }; }; then
17455 ac_cv_func_dlopen=yes
17457 echo "$as_me: failed program was:" >&5
17458 sed 's/^/| /' conftest.$ac_ext >&5
17460 ac_cv_func_dlopen=no
17462 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17464 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17465 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17466 if test $ac_cv_func_dlopen = yes; then
17467 lt_cv_dlopen="dlopen"
17469 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17470 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17471 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17472 echo $ECHO_N "(cached) $ECHO_C" >&6
17474 ac_check_lib_save_LIBS=$LIBS
17476 cat >conftest.$ac_ext <<_ACEOF
17477 #line $LINENO "configure"
17480 cat confdefs.h >>conftest.$ac_ext
17481 cat >>conftest.$ac_ext <<_ACEOF
17482 /* end confdefs.h. */
17484 /* Override any gcc2 internal prototype to avoid an error. */
17488 /* We use char because int might match the return type of a gcc2
17489 builtin and then its argument prototype would still apply. */
17499 rm -f conftest.$ac_objext conftest$ac_exeext
17500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17501 (eval $ac_link) 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); } &&
17505 { ac_try='test -s conftest$ac_exeext'
17506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17507 (eval $ac_try) 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_lib_dl_dlopen=yes
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_cv_lib_dl_dlopen=no
17518 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17519 LIBS=$ac_check_lib_save_LIBS
17521 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17522 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17523 if test $ac_cv_lib_dl_dlopen = yes; then
17524 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17526 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17527 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17528 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17529 echo $ECHO_N "(cached) $ECHO_C" >&6
17531 ac_check_lib_save_LIBS=$LIBS
17532 LIBS="-lsvld $LIBS"
17533 cat >conftest.$ac_ext <<_ACEOF
17534 #line $LINENO "configure"
17537 cat confdefs.h >>conftest.$ac_ext
17538 cat >>conftest.$ac_ext <<_ACEOF
17539 /* end confdefs.h. */
17541 /* Override any gcc2 internal prototype to avoid an error. */
17545 /* We use char because int might match the return type of a gcc2
17546 builtin and then its argument prototype would still apply. */
17556 rm -f conftest.$ac_objext conftest$ac_exeext
17557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17558 (eval $ac_link) 2>&5
17560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561 (exit $ac_status); } &&
17562 { ac_try='test -s conftest$ac_exeext'
17563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564 (eval $ac_try) 2>&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); }; }; then
17568 ac_cv_lib_svld_dlopen=yes
17570 echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_cv_lib_svld_dlopen=no
17575 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17579 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17580 if test $ac_cv_lib_svld_dlopen = yes; then
17581 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17583 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17584 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17585 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 ac_check_lib_save_LIBS=$LIBS
17590 cat >conftest.$ac_ext <<_ACEOF
17591 #line $LINENO "configure"
17594 cat confdefs.h >>conftest.$ac_ext
17595 cat >>conftest.$ac_ext <<_ACEOF
17596 /* end confdefs.h. */
17598 /* Override any gcc2 internal prototype to avoid an error. */
17602 /* We use char because int might match the return type of a gcc2
17603 builtin and then its argument prototype would still apply. */
17613 rm -f conftest.$ac_objext conftest$ac_exeext
17614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17615 (eval $ac_link) 2>&5
17617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17618 (exit $ac_status); } &&
17619 { ac_try='test -s conftest$ac_exeext'
17620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17621 (eval $ac_try) 2>&5
17623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17624 (exit $ac_status); }; }; then
17625 ac_cv_lib_dld_dld_link=yes
17627 echo "$as_me: failed program was:" >&5
17628 sed 's/^/| /' conftest.$ac_ext >&5
17630 ac_cv_lib_dld_dld_link=no
17632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17633 LIBS=$ac_check_lib_save_LIBS
17635 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17636 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17637 if test $ac_cv_lib_dld_dld_link = yes; then
17638 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17659 if test "x$lt_cv_dlopen" != xno; then
17665 case $lt_cv_dlopen in
17667 save_CPPFLAGS="$CPPFLAGS"
17668 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17670 save_LDFLAGS="$LDFLAGS"
17671 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17674 LIBS="$lt_cv_dlopen_libs $LIBS"
17676 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17677 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17678 if test "${lt_cv_dlopen_self+set}" = set; then
17679 echo $ECHO_N "(cached) $ECHO_C" >&6
17681 if test "$cross_compiling" = yes; then :
17682 lt_cv_dlopen_self=cross
17684 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17685 lt_status=$lt_dlunknown
17686 cat > conftest.$ac_ext <<EOF
17687 #line 17687 "configure"
17688 #include "confdefs.h"
17697 # define LT_DLGLOBAL RTLD_GLOBAL
17700 # define LT_DLGLOBAL DL_GLOBAL
17702 # define LT_DLGLOBAL 0
17706 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17707 find out it does not work in some platform. */
17708 #ifndef LT_DLLAZY_OR_NOW
17710 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17713 # define LT_DLLAZY_OR_NOW DL_LAZY
17716 # define LT_DLLAZY_OR_NOW RTLD_NOW
17719 # define LT_DLLAZY_OR_NOW DL_NOW
17721 # define LT_DLLAZY_OR_NOW 0
17729 extern "C" void exit (int);
17732 void fnord() { int i=42;}
17735 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17736 int status = $lt_dlunknown;
17740 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17741 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17742 /* dlclose (self); */
17748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17749 (eval $ac_link) 2>&5
17751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17752 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17753 (./conftest; exit; ) 2>/dev/null
17755 case x$lt_status in
17756 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17757 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17758 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17761 # compilation failed
17762 lt_cv_dlopen_self=no
17769 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17770 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17772 if test "x$lt_cv_dlopen_self" = xyes; then
17773 LDFLAGS="$LDFLAGS $link_static_flag"
17774 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17775 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17776 if test "${lt_cv_dlopen_self_static+set}" = set; then
17777 echo $ECHO_N "(cached) $ECHO_C" >&6
17779 if test "$cross_compiling" = yes; then :
17780 lt_cv_dlopen_self_static=cross
17782 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17783 lt_status=$lt_dlunknown
17784 cat > conftest.$ac_ext <<EOF
17785 #line 17785 "configure"
17786 #include "confdefs.h"
17795 # define LT_DLGLOBAL RTLD_GLOBAL
17798 # define LT_DLGLOBAL DL_GLOBAL
17800 # define LT_DLGLOBAL 0
17804 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17805 find out it does not work in some platform. */
17806 #ifndef LT_DLLAZY_OR_NOW
17808 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17811 # define LT_DLLAZY_OR_NOW DL_LAZY
17814 # define LT_DLLAZY_OR_NOW RTLD_NOW
17817 # define LT_DLLAZY_OR_NOW DL_NOW
17819 # define LT_DLLAZY_OR_NOW 0
17827 extern "C" void exit (int);
17830 void fnord() { int i=42;}
17833 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17834 int status = $lt_dlunknown;
17838 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17839 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17840 /* dlclose (self); */
17846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17847 (eval $ac_link) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17851 (./conftest; exit; ) 2>/dev/null
17853 case x$lt_status in
17854 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17855 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17856 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17859 # compilation failed
17860 lt_cv_dlopen_self_static=no
17867 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17868 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17871 CPPFLAGS="$save_CPPFLAGS"
17872 LDFLAGS="$save_LDFLAGS"
17877 case $lt_cv_dlopen_self in
17878 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17879 *) enable_dlopen_self=unknown ;;
17882 case $lt_cv_dlopen_self_static in
17883 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17884 *) enable_dlopen_self_static=unknown ;;
17889 # The else clause should only fire when bootstrapping the
17890 # libtool distribution, otherwise you forgot to ship ltmain.sh
17891 # with your package, and you will get complaints that there are
17892 # no rules to generate ltmain.sh.
17893 if test -f "$ltmain"; then
17894 # See if we are running on zsh, and set the options which allow our commands through
17895 # without removal of \ escapes.
17896 if test -n "${ZSH_VERSION+set}" ; then
17897 setopt NO_GLOB_SUBST
17899 # Now quote all the things that may contain metacharacters while being
17900 # careful not to overquote the AC_SUBSTed values. We take copies of the
17901 # variables and quote the copies for generation of the libtool script.
17902 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17904 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17905 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17906 deplibs_check_method reload_flag reload_cmds need_locks \
17907 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17908 lt_cv_sys_global_symbol_to_c_name_address \
17909 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17910 old_postinstall_cmds old_postuninstall_cmds \
17914 lt_prog_compiler_wl_GCJ \
17915 lt_prog_compiler_pic_GCJ \
17916 lt_prog_compiler_static_GCJ \
17917 lt_prog_compiler_no_builtin_flag_GCJ \
17918 export_dynamic_flag_spec_GCJ \
17919 thread_safe_flag_spec_GCJ \
17920 whole_archive_flag_spec_GCJ \
17921 enable_shared_with_static_runtimes_GCJ \
17922 old_archive_cmds_GCJ \
17923 old_archive_from_new_cmds_GCJ \
17924 predep_objects_GCJ \
17925 postdep_objects_GCJ \
17928 compiler_lib_search_path_GCJ \
17930 archive_expsym_cmds_GCJ \
17931 postinstall_cmds_GCJ \
17932 postuninstall_cmds_GCJ \
17933 old_archive_from_expsyms_cmds_GCJ \
17934 allow_undefined_flag_GCJ \
17935 no_undefined_flag_GCJ \
17936 export_symbols_cmds_GCJ \
17937 hardcode_libdir_flag_spec_GCJ \
17938 hardcode_libdir_flag_spec_ld_GCJ \
17939 hardcode_libdir_separator_GCJ \
17940 hardcode_automatic_GCJ \
17942 module_expsym_cmds_GCJ \
17943 lt_cv_prog_compiler_c_o_GCJ \
17944 exclude_expsyms_GCJ \
17945 include_expsyms_GCJ; do
17948 old_archive_cmds_GCJ | \
17949 old_archive_from_new_cmds_GCJ | \
17950 archive_cmds_GCJ | \
17951 archive_expsym_cmds_GCJ | \
17952 module_cmds_GCJ | \
17953 module_expsym_cmds_GCJ | \
17954 old_archive_from_expsyms_cmds_GCJ | \
17955 export_symbols_cmds_GCJ | \
17956 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17957 postinstall_cmds | postuninstall_cmds | \
17958 old_postinstall_cmds | old_postuninstall_cmds | \
17959 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17960 # Double-quote double-evaled strings.
17961 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17964 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17970 *'\$0 --fallback-echo"')
17971 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17977 cat <<__EOF__ >> "$cfgfile"
17978 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17980 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17982 # Shell to use when invoking shell scripts.
17985 # Whether or not to build shared libraries.
17986 build_libtool_libs=$enable_shared
17988 # Whether or not to build static libraries.
17989 build_old_libs=$enable_static
17991 # Whether or not to add -lc for building shared libraries.
17992 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17994 # Whether or not to disallow shared libs when runtime libs are static
17995 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17997 # Whether or not to optimize for fast installation.
17998 fast_install=$enable_fast_install
18001 host_alias=$host_alias
18004 # An echo program that does not interpret backslashes.
18009 AR_FLAGS=$lt_AR_FLAGS
18014 # A language-specific compiler.
18015 CC=$lt_compiler_GCJ
18017 # Is the compiler the GNU C compiler?
18023 # The linker used to build libraries.
18026 # Whether we need hard or soft links.
18029 # A BSD-compatible nm program.
18032 # A symbol stripping program
18035 # Used to examine libraries when file_magic_cmd begins "file"
18036 MAGIC_CMD=$MAGIC_CMD
18038 # Used on cygwin: DLL creation program.
18041 # Used on cygwin: object dumper.
18044 # Used on cygwin: assembler.
18047 # The name of the directory that contains temporary libtool files.
18050 # How to create reloadable object files.
18051 reload_flag=$lt_reload_flag
18052 reload_cmds=$lt_reload_cmds
18054 # How to pass a linker flag through the compiler.
18055 wl=$lt_lt_prog_compiler_wl_GCJ
18057 # Object file suffix (normally "o").
18058 objext="$ac_objext"
18060 # Old archive suffix (normally "a").
18063 # Shared library suffix (normally ".so").
18064 shrext_cmds='$shrext_cmds'
18066 # Executable file suffix (normally "").
18069 # Additional compiler flags for building library objects.
18070 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18073 # What is the maximum length of a command?
18074 max_cmd_len=$lt_cv_sys_max_cmd_len
18076 # Does compiler simultaneously support -c and -o options?
18077 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18079 # Must we lock files when doing compilation ?
18080 need_locks=$lt_need_locks
18082 # Do we need the lib prefix for modules?
18083 need_lib_prefix=$need_lib_prefix
18085 # Do we need a version for libraries?
18086 need_version=$need_version
18088 # Whether dlopen is supported.
18089 dlopen_support=$enable_dlopen
18091 # Whether dlopen of programs is supported.
18092 dlopen_self=$enable_dlopen_self
18094 # Whether dlopen of statically linked programs is supported.
18095 dlopen_self_static=$enable_dlopen_self_static
18097 # Compiler flag to prevent dynamic linking.
18098 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18100 # Compiler flag to turn off builtin functions.
18101 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18103 # Compiler flag to allow reflexive dlopens.
18104 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18106 # Compiler flag to generate shared objects directly from archives.
18107 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18109 # Compiler flag to generate thread-safe objects.
18110 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18112 # Library versioning type.
18113 version_type=$version_type
18115 # Format of library name prefix.
18116 libname_spec=$lt_libname_spec
18118 # List of archive names. First name is the real one, the rest are links.
18119 # The last name is the one that the linker finds with -lNAME.
18120 library_names_spec=$lt_library_names_spec
18122 # The coded name of the library, if different from the real name.
18123 soname_spec=$lt_soname_spec
18125 # Commands used to build and install an old-style archive.
18127 old_archive_cmds=$lt_old_archive_cmds_GCJ
18128 old_postinstall_cmds=$lt_old_postinstall_cmds
18129 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18131 # Create an old-style archive from a shared archive.
18132 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18134 # Create a temporary old-style archive to link instead of a shared archive.
18135 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18137 # Commands used to build and install a shared archive.
18138 archive_cmds=$lt_archive_cmds_GCJ
18139 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18140 postinstall_cmds=$lt_postinstall_cmds
18141 postuninstall_cmds=$lt_postuninstall_cmds
18143 # Commands used to build a loadable module (assumed same as above if empty)
18144 module_cmds=$lt_module_cmds_GCJ
18145 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18147 # Commands to strip libraries.
18148 old_striplib=$lt_old_striplib
18149 striplib=$lt_striplib
18151 # Dependencies to place before the objects being linked to create a
18153 predep_objects=$lt_predep_objects_GCJ
18155 # Dependencies to place after the objects being linked to create a
18157 postdep_objects=$lt_postdep_objects_GCJ
18159 # Dependencies to place before the objects being linked to create a
18161 predeps=$lt_predeps_GCJ
18163 # Dependencies to place after the objects being linked to create a
18165 postdeps=$lt_postdeps_GCJ
18167 # The library search path used internally by the compiler when linking
18168 # a shared library.
18169 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18171 # Method to check whether dependent libraries are shared objects.
18172 deplibs_check_method=$lt_deplibs_check_method
18174 # Command to use when deplibs_check_method == file_magic.
18175 file_magic_cmd=$lt_file_magic_cmd
18177 # Flag that allows shared libraries with undefined symbols to be built.
18178 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18180 # Flag that forces no undefined symbols.
18181 no_undefined_flag=$lt_no_undefined_flag_GCJ
18183 # Commands used to finish a libtool library installation in a directory.
18184 finish_cmds=$lt_finish_cmds
18186 # Same as above, but a single script fragment to be evaled but not shown.
18187 finish_eval=$lt_finish_eval
18189 # Take the output of nm and produce a listing of raw symbols and C names.
18190 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18192 # Transform the output of nm in a proper C declaration
18193 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18195 # Transform the output of nm in a C name address pair
18196 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18198 # This is the shared library runtime path variable.
18199 runpath_var=$runpath_var
18201 # This is the shared library path variable.
18202 shlibpath_var=$shlibpath_var
18204 # Is shlibpath searched before the hard-coded library search path?
18205 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18207 # How to hardcode a shared library path into an executable.
18208 hardcode_action=$hardcode_action_GCJ
18210 # Whether we should hardcode library paths into libraries.
18211 hardcode_into_libs=$hardcode_into_libs
18213 # Flag to hardcode \$libdir into a binary during linking.
18214 # This must work even if \$libdir does not exist.
18215 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18217 # If ld is used when linking, flag to hardcode \$libdir into
18218 # a binary during linking. This must work even if \$libdir does
18220 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18222 # Whether we need a single -rpath flag with a separated argument.
18223 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18225 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18226 # resulting binary.
18227 hardcode_direct=$hardcode_direct_GCJ
18229 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18230 # resulting binary.
18231 hardcode_minus_L=$hardcode_minus_L_GCJ
18233 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18234 # the resulting binary.
18235 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18237 # Set to yes if building a shared library automatically hardcodes DIR into the library
18238 # and all subsequent libraries and executables linked against it.
18239 hardcode_automatic=$hardcode_automatic_GCJ
18241 # Variables whose values should be saved in libtool wrapper scripts and
18242 # restored at relink time.
18243 variables_saved_for_relink="$variables_saved_for_relink"
18245 # Whether libtool must link a program against all its dependency libraries.
18246 link_all_deplibs=$link_all_deplibs_GCJ
18248 # Compile-time system search path for libraries
18249 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18251 # Run-time system search path for libraries
18252 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18254 # Fix the shell variable \$srcfile for the compiler.
18255 fix_srcfile_path="$fix_srcfile_path_GCJ"
18257 # Set to yes if exported symbols are required.
18258 always_export_symbols=$always_export_symbols_GCJ
18260 # The commands to list exported symbols.
18261 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18263 # The commands to extract the exported symbol list from a shared archive.
18264 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18266 # Symbols that should not be listed in the preloaded symbols.
18267 exclude_expsyms=$lt_exclude_expsyms_GCJ
18269 # Symbols that must always be exported.
18270 include_expsyms=$lt_include_expsyms_GCJ
18272 # ### END LIBTOOL TAG CONFIG: $tagname
18278 # If there is no Makefile yet, we rely on a make rule to execute
18279 # `config.status --recheck' to rerun these tests and create the
18280 # libtool script then.
18281 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18282 if test -f "$ltmain_in"; then
18283 test -f Makefile && make "$ltmain"
18289 ac_cpp='$CPP $CPPFLAGS'
18290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18305 # Source file extension for RC test sources.
18308 # Object file extension for compiled RC test sources.
18312 # Code to be used in simple compile tests
18313 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18315 # Code to be used in simple link tests
18316 lt_simple_link_test_code="$lt_simple_compile_test_code"
18318 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18320 # If no C compiler was specified, use CC.
18323 # Allow CC to be a program name with arguments.
18327 # Allow CC to be a program name with arguments.
18332 lt_cv_prog_compiler_c_o_RC=yes
18334 # The else clause should only fire when bootstrapping the
18335 # libtool distribution, otherwise you forgot to ship ltmain.sh
18336 # with your package, and you will get complaints that there are
18337 # no rules to generate ltmain.sh.
18338 if test -f "$ltmain"; then
18339 # See if we are running on zsh, and set the options which allow our commands through
18340 # without removal of \ escapes.
18341 if test -n "${ZSH_VERSION+set}" ; then
18342 setopt NO_GLOB_SUBST
18344 # Now quote all the things that may contain metacharacters while being
18345 # careful not to overquote the AC_SUBSTed values. We take copies of the
18346 # variables and quote the copies for generation of the libtool script.
18347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18351 deplibs_check_method reload_flag reload_cmds need_locks \
18352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18353 lt_cv_sys_global_symbol_to_c_name_address \
18354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18355 old_postinstall_cmds old_postuninstall_cmds \
18359 lt_prog_compiler_wl_RC \
18360 lt_prog_compiler_pic_RC \
18361 lt_prog_compiler_static_RC \
18362 lt_prog_compiler_no_builtin_flag_RC \
18363 export_dynamic_flag_spec_RC \
18364 thread_safe_flag_spec_RC \
18365 whole_archive_flag_spec_RC \
18366 enable_shared_with_static_runtimes_RC \
18367 old_archive_cmds_RC \
18368 old_archive_from_new_cmds_RC \
18369 predep_objects_RC \
18370 postdep_objects_RC \
18373 compiler_lib_search_path_RC \
18375 archive_expsym_cmds_RC \
18376 postinstall_cmds_RC \
18377 postuninstall_cmds_RC \
18378 old_archive_from_expsyms_cmds_RC \
18379 allow_undefined_flag_RC \
18380 no_undefined_flag_RC \
18381 export_symbols_cmds_RC \
18382 hardcode_libdir_flag_spec_RC \
18383 hardcode_libdir_flag_spec_ld_RC \
18384 hardcode_libdir_separator_RC \
18385 hardcode_automatic_RC \
18387 module_expsym_cmds_RC \
18388 lt_cv_prog_compiler_c_o_RC \
18389 exclude_expsyms_RC \
18390 include_expsyms_RC; do
18393 old_archive_cmds_RC | \
18394 old_archive_from_new_cmds_RC | \
18395 archive_cmds_RC | \
18396 archive_expsym_cmds_RC | \
18398 module_expsym_cmds_RC | \
18399 old_archive_from_expsyms_cmds_RC | \
18400 export_symbols_cmds_RC | \
18401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18402 postinstall_cmds | postuninstall_cmds | \
18403 old_postinstall_cmds | old_postuninstall_cmds | \
18404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18405 # Double-quote double-evaled strings.
18406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18415 *'\$0 --fallback-echo"')
18416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18422 cat <<__EOF__ >> "$cfgfile"
18423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18427 # Shell to use when invoking shell scripts.
18430 # Whether or not to build shared libraries.
18431 build_libtool_libs=$enable_shared
18433 # Whether or not to build static libraries.
18434 build_old_libs=$enable_static
18436 # Whether or not to add -lc for building shared libraries.
18437 build_libtool_need_lc=$archive_cmds_need_lc_RC
18439 # Whether or not to disallow shared libs when runtime libs are static
18440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18442 # Whether or not to optimize for fast installation.
18443 fast_install=$enable_fast_install
18446 host_alias=$host_alias
18449 # An echo program that does not interpret backslashes.
18454 AR_FLAGS=$lt_AR_FLAGS
18459 # A language-specific compiler.
18462 # Is the compiler the GNU C compiler?
18468 # The linker used to build libraries.
18471 # Whether we need hard or soft links.
18474 # A BSD-compatible nm program.
18477 # A symbol stripping program
18480 # Used to examine libraries when file_magic_cmd begins "file"
18481 MAGIC_CMD=$MAGIC_CMD
18483 # Used on cygwin: DLL creation program.
18486 # Used on cygwin: object dumper.
18489 # Used on cygwin: assembler.
18492 # The name of the directory that contains temporary libtool files.
18495 # How to create reloadable object files.
18496 reload_flag=$lt_reload_flag
18497 reload_cmds=$lt_reload_cmds
18499 # How to pass a linker flag through the compiler.
18500 wl=$lt_lt_prog_compiler_wl_RC
18502 # Object file suffix (normally "o").
18503 objext="$ac_objext"
18505 # Old archive suffix (normally "a").
18508 # Shared library suffix (normally ".so").
18509 shrext_cmds='$shrext_cmds'
18511 # Executable file suffix (normally "").
18514 # Additional compiler flags for building library objects.
18515 pic_flag=$lt_lt_prog_compiler_pic_RC
18518 # What is the maximum length of a command?
18519 max_cmd_len=$lt_cv_sys_max_cmd_len
18521 # Does compiler simultaneously support -c and -o options?
18522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18524 # Must we lock files when doing compilation ?
18525 need_locks=$lt_need_locks
18527 # Do we need the lib prefix for modules?
18528 need_lib_prefix=$need_lib_prefix
18530 # Do we need a version for libraries?
18531 need_version=$need_version
18533 # Whether dlopen is supported.
18534 dlopen_support=$enable_dlopen
18536 # Whether dlopen of programs is supported.
18537 dlopen_self=$enable_dlopen_self
18539 # Whether dlopen of statically linked programs is supported.
18540 dlopen_self_static=$enable_dlopen_self_static
18542 # Compiler flag to prevent dynamic linking.
18543 link_static_flag=$lt_lt_prog_compiler_static_RC
18545 # Compiler flag to turn off builtin functions.
18546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18548 # Compiler flag to allow reflexive dlopens.
18549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18551 # Compiler flag to generate shared objects directly from archives.
18552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18554 # Compiler flag to generate thread-safe objects.
18555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18557 # Library versioning type.
18558 version_type=$version_type
18560 # Format of library name prefix.
18561 libname_spec=$lt_libname_spec
18563 # List of archive names. First name is the real one, the rest are links.
18564 # The last name is the one that the linker finds with -lNAME.
18565 library_names_spec=$lt_library_names_spec
18567 # The coded name of the library, if different from the real name.
18568 soname_spec=$lt_soname_spec
18570 # Commands used to build and install an old-style archive.
18572 old_archive_cmds=$lt_old_archive_cmds_RC
18573 old_postinstall_cmds=$lt_old_postinstall_cmds
18574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18576 # Create an old-style archive from a shared archive.
18577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18579 # Create a temporary old-style archive to link instead of a shared archive.
18580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18582 # Commands used to build and install a shared archive.
18583 archive_cmds=$lt_archive_cmds_RC
18584 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18585 postinstall_cmds=$lt_postinstall_cmds
18586 postuninstall_cmds=$lt_postuninstall_cmds
18588 # Commands used to build a loadable module (assumed same as above if empty)
18589 module_cmds=$lt_module_cmds_RC
18590 module_expsym_cmds=$lt_module_expsym_cmds_RC
18592 # Commands to strip libraries.
18593 old_striplib=$lt_old_striplib
18594 striplib=$lt_striplib
18596 # Dependencies to place before the objects being linked to create a
18598 predep_objects=$lt_predep_objects_RC
18600 # Dependencies to place after the objects being linked to create a
18602 postdep_objects=$lt_postdep_objects_RC
18604 # Dependencies to place before the objects being linked to create a
18606 predeps=$lt_predeps_RC
18608 # Dependencies to place after the objects being linked to create a
18610 postdeps=$lt_postdeps_RC
18612 # The library search path used internally by the compiler when linking
18613 # a shared library.
18614 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18616 # Method to check whether dependent libraries are shared objects.
18617 deplibs_check_method=$lt_deplibs_check_method
18619 # Command to use when deplibs_check_method == file_magic.
18620 file_magic_cmd=$lt_file_magic_cmd
18622 # Flag that allows shared libraries with undefined symbols to be built.
18623 allow_undefined_flag=$lt_allow_undefined_flag_RC
18625 # Flag that forces no undefined symbols.
18626 no_undefined_flag=$lt_no_undefined_flag_RC
18628 # Commands used to finish a libtool library installation in a directory.
18629 finish_cmds=$lt_finish_cmds
18631 # Same as above, but a single script fragment to be evaled but not shown.
18632 finish_eval=$lt_finish_eval
18634 # Take the output of nm and produce a listing of raw symbols and C names.
18635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18637 # Transform the output of nm in a proper C declaration
18638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18640 # Transform the output of nm in a C name address pair
18641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18643 # This is the shared library runtime path variable.
18644 runpath_var=$runpath_var
18646 # This is the shared library path variable.
18647 shlibpath_var=$shlibpath_var
18649 # Is shlibpath searched before the hard-coded library search path?
18650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18652 # How to hardcode a shared library path into an executable.
18653 hardcode_action=$hardcode_action_RC
18655 # Whether we should hardcode library paths into libraries.
18656 hardcode_into_libs=$hardcode_into_libs
18658 # Flag to hardcode \$libdir into a binary during linking.
18659 # This must work even if \$libdir does not exist.
18660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18662 # If ld is used when linking, flag to hardcode \$libdir into
18663 # a binary during linking. This must work even if \$libdir does
18665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18667 # Whether we need a single -rpath flag with a separated argument.
18668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18671 # resulting binary.
18672 hardcode_direct=$hardcode_direct_RC
18674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18675 # resulting binary.
18676 hardcode_minus_L=$hardcode_minus_L_RC
18678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18679 # the resulting binary.
18680 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18682 # Set to yes if building a shared library automatically hardcodes DIR into the library
18683 # and all subsequent libraries and executables linked against it.
18684 hardcode_automatic=$hardcode_automatic_RC
18686 # Variables whose values should be saved in libtool wrapper scripts and
18687 # restored at relink time.
18688 variables_saved_for_relink="$variables_saved_for_relink"
18690 # Whether libtool must link a program against all its dependency libraries.
18691 link_all_deplibs=$link_all_deplibs_RC
18693 # Compile-time system search path for libraries
18694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18696 # Run-time system search path for libraries
18697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18699 # Fix the shell variable \$srcfile for the compiler.
18700 fix_srcfile_path="$fix_srcfile_path_RC"
18702 # Set to yes if exported symbols are required.
18703 always_export_symbols=$always_export_symbols_RC
18705 # The commands to list exported symbols.
18706 export_symbols_cmds=$lt_export_symbols_cmds_RC
18708 # The commands to extract the exported symbol list from a shared archive.
18709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18711 # Symbols that should not be listed in the preloaded symbols.
18712 exclude_expsyms=$lt_exclude_expsyms_RC
18714 # Symbols that must always be exported.
18715 include_expsyms=$lt_include_expsyms_RC
18717 # ### END LIBTOOL TAG CONFIG: $tagname
18723 # If there is no Makefile yet, we rely on a make rule to execute
18724 # `config.status --recheck' to rerun these tests and create the
18725 # libtool script then.
18726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18727 if test -f "$ltmain_in"; then
18728 test -f Makefile && make "$ltmain"
18734 ac_cpp='$CPP $CPPFLAGS'
18735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18744 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18745 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18746 { (exit 1); exit 1; }; }
18750 # Append the new tag name to the list of available tags.
18751 if test -n "$tagname" ; then
18752 available_tags="$available_tags $tagname"
18758 # Now substitute the updated list of available tags.
18759 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18760 mv "${ofile}T" "$ofile"
18764 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18765 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18766 { (exit 1); exit 1; }; }
18772 # This can be used to rebuild libtool when needed
18773 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18775 # Always use our own libtool.
18776 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18778 # Prevent multiple expansion
18791 # Check whether --with-system-libtool or --without-system-libtool was given.
18792 if test "${with_system_libtool+set}" = set; then
18793 withval="$with_system_libtool"
18794 # Extract the first word of "libtool", so it can be a program name with args.
18795 set dummy libtool; ac_word=$2
18796 echo "$as_me:$LINENO: checking for $ac_word" >&5
18797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18798 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18799 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18807 as_dummy="$PATH:/usr/local/bin"
18808 for as_dir in $as_dummy
18811 test -z "$as_dir" && as_dir=.
18812 for ac_exec_ext in '' $ac_executable_extensions; do
18813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18814 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18824 LIBTOOL=$ac_cv_path_LIBTOOL
18826 if test -n "$LIBTOOL"; then
18827 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18828 echo "${ECHO_T}$LIBTOOL" >&6
18830 echo "$as_me:$LINENO: result: no" >&5
18831 echo "${ECHO_T}no" >&6
18836 LIBTOOL="`pwd`/libtool"
18855 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18856 if test "${enable_strict_dependencies+set}" = set; then
18857 enableval="$enable_strict_dependencies"
18861 logdir='${localstatedir}/log/radius'
18862 echo "$as_me:$LINENO: checking logdir" >&5
18863 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18865 # Check whether --with-logdir or --without-logdir was given.
18866 if test "${with_logdir+set}" = set; then
18867 withval="$with_logdir"
18870 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18871 echo "$as_me: error: Need logdir" >&2;}
18872 { (exit 1); exit 1; }; }
18883 echo "$as_me:$LINENO: result: $logdir" >&5
18884 echo "${ECHO_T}$logdir" >&6
18886 radacctdir='${logdir}/radacct'
18887 echo "$as_me:$LINENO: checking radacctdir" >&5
18888 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18890 # Check whether --with-radacctdir or --without-radacctdir was given.
18891 if test "${with_radacctdir+set}" = set; then
18892 withval="$with_radacctdir"
18895 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18896 echo "$as_me: error: Need radacctdir" >&2;}
18897 { (exit 1); exit 1; }; }
18902 radacctdir="$withval"
18908 echo "$as_me:$LINENO: result: $radacctdir" >&5
18909 echo "${ECHO_T}$radacctdir" >&6
18911 raddbdir='${sysconfdir}/raddb'
18912 echo "$as_me:$LINENO: checking raddbdir" >&5
18913 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18915 # Check whether --with-raddbdir or --without-raddbdir was given.
18916 if test "${with_raddbdir+set}" = set; then
18917 withval="$with_raddbdir"
18920 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18921 echo "$as_me: error: Need raddbdir" >&2;}
18922 { (exit 1); exit 1; }; }
18927 raddbdir="$withval"
18933 echo "$as_me:$LINENO: result: $raddbdir" >&5
18934 echo "${ECHO_T}$raddbdir" >&6
18938 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18939 if test "${with_ascend_binary+set}" = set; then
18940 withval="$with_ascend_binary"
18949 if test "X$ASCEND_BINARY" = "Xyes"; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define ASCEND_BINARY
18959 # Check whether --with-threads or --without-threads was given.
18960 if test "${with_threads+set}" = set; then
18961 withval="$with_threads"
18973 # Check whether --with-snmp or --without-snmp was given.
18974 if test "${with_snmp+set}" = set; then
18975 withval="$with_snmp"
18985 rad_enable_largefiles=no
18987 # Check whether --with-large-files or --without-large-files was given.
18988 if test "${with_large_files+set}" = set; then
18989 withval="$with_large_files"
18992 rad_enable_largefiles=yes
19004 # Check whether --with-static_modules or --without-static_modules was given.
19005 if test "${with_static_modules+set}" = set; then
19006 withval="$with_static_modules"
19008 for i in $withval; do
19009 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19014 # Check whether --enable-developer or --disable-developer was given.
19015 if test "${enable_developer+set}" = set; then
19016 enableval="$enable_developer"
19017 case "$enableval" in
19027 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19033 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19034 if test "${with_experimental_modules+set}" = set; then
19035 withval="$with_experimental_modules"
19046 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19047 if test "${with_openssl_includes+set}" = set; then
19048 withval="$with_openssl_includes"
19050 *) OPENSSL_INCLUDE_DIR="$withval"
19057 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19058 if test "${with_openssl_libraries+set}" = set; then
19059 withval="$with_openssl_libraries"
19061 *) OPENSSL_LIB_DIR="$withval"
19069 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19070 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19071 withval="$with_rlm_FOO_lib_dir"
19080 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19081 if test "${with_rlm_FOO_include_dir+set}" = set; then
19082 withval="$with_rlm_FOO_include_dir"
19093 # Check whether --with-udpfromto or --without-udpfromto was given.
19094 if test "${with_udpfromto+set}" = set; then
19095 withval="$with_udpfromto"
19106 if test "x$WITH_UDPFROMTO" = "xyes"; then
19108 cat >>confdefs.h <<\_ACEOF
19109 #define WITH_UDPFROMTO
19115 CHECKRAD=checkrad.pl
19116 # Extract the first word of "perl", so it can be a program name with args.
19117 set dummy perl; ac_word=$2
19118 echo "$as_me:$LINENO: checking for $ac_word" >&5
19119 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19120 if test "${ac_cv_path_PERL+set}" = set; then
19121 echo $ECHO_N "(cached) $ECHO_C" >&6
19125 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19129 for as_dir in $PATH
19132 test -z "$as_dir" && as_dir=.
19133 for ac_exec_ext in '' $ac_executable_extensions; do
19134 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19135 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19136 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19146 PERL=$ac_cv_path_PERL
19148 if test -n "$PERL"; then
19149 echo "$as_me:$LINENO: result: $PERL" >&5
19150 echo "${ECHO_T}$PERL" >&6
19152 echo "$as_me:$LINENO: result: no" >&5
19153 echo "${ECHO_T}no" >&6
19156 if test "x$ac_cv_path_PERL" = "x"; then
19157 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19158 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19160 # Extract the first word of "snmpget", so it can be a program name with args.
19161 set dummy snmpget; ac_word=$2
19162 echo "$as_me:$LINENO: checking for $ac_word" >&5
19163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19164 if test "${ac_cv_path_SNMPGET+set}" = set; then
19165 echo $ECHO_N "(cached) $ECHO_C" >&6
19169 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19173 for as_dir in $PATH
19176 test -z "$as_dir" && as_dir=.
19177 for ac_exec_ext in '' $ac_executable_extensions; do
19178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19179 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19189 SNMPGET=$ac_cv_path_SNMPGET
19191 if test -n "$SNMPGET"; then
19192 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19193 echo "${ECHO_T}$SNMPGET" >&6
19195 echo "$as_me:$LINENO: result: no" >&5
19196 echo "${ECHO_T}no" >&6
19199 if test "x$ac_cv_path_SNMPGET" = "x"; then
19200 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19201 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19204 # Extract the first word of "snmpwalk", so it can be a program name with args.
19205 set dummy snmpwalk; ac_word=$2
19206 echo "$as_me:$LINENO: checking for $ac_word" >&5
19207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19208 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19209 echo $ECHO_N "(cached) $ECHO_C" >&6
19213 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217 for as_dir in $PATH
19220 test -z "$as_dir" && as_dir=.
19221 for ac_exec_ext in '' $ac_executable_extensions; do
19222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19233 SNMPWALK=$ac_cv_path_SNMPWALK
19235 if test -n "$SNMPWALK"; then
19236 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19237 echo "${ECHO_T}$SNMPWALK" >&6
19239 echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19243 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19244 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19245 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19248 # Extract the first word of "rusers", so it can be a program name with args.
19249 set dummy rusers; ac_word=$2
19250 echo "$as_me:$LINENO: checking for $ac_word" >&5
19251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19252 if test "${ac_cv_path_RUSERS+set}" = set; then
19253 echo $ECHO_N "(cached) $ECHO_C" >&6
19257 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19261 for as_dir in $PATH
19264 test -z "$as_dir" && as_dir=.
19265 for ac_exec_ext in '' $ac_executable_extensions; do
19266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19267 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19274 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19278 RUSERS=$ac_cv_path_RUSERS
19280 if test -n "$RUSERS"; then
19281 echo "$as_me:$LINENO: result: $RUSERS" >&5
19282 echo "${ECHO_T}$RUSERS" >&6
19284 echo "$as_me:$LINENO: result: no" >&5
19285 echo "${ECHO_T}no" >&6
19289 missing_dir=`cd $ac_aux_dir && pwd`
19290 # expand $ac_aux_dir to an absolute path
19291 am_aux_dir=`cd $ac_aux_dir && pwd`
19293 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
19294 # Use eval to expand $SHELL
19295 if eval "$MISSING --run true"; then
19296 am_missing_run="$MISSING --run "
19299 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
19300 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
19304 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
19307 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
19310 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
19313 # Extract the first word of "locate", so it can be a program name with args.
19314 set dummy locate; ac_word=$2
19315 echo "$as_me:$LINENO: checking for $ac_word" >&5
19316 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19317 if test "${ac_cv_path_LOCATE+set}" = set; then
19318 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19326 for as_dir in $PATH
19329 test -z "$as_dir" && as_dir=.
19330 for ac_exec_ext in '' $ac_executable_extensions; do
19331 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19332 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19333 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19342 LOCATE=$ac_cv_path_LOCATE
19344 if test -n "$LOCATE"; then
19345 echo "$as_me:$LINENO: result: $LOCATE" >&5
19346 echo "${ECHO_T}$LOCATE" >&6
19348 echo "$as_me:$LINENO: result: no" >&5
19349 echo "${ECHO_T}no" >&6
19352 # Extract the first word of "dirname", so it can be a program name with args.
19353 set dummy dirname; ac_word=$2
19354 echo "$as_me:$LINENO: checking for $ac_word" >&5
19355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19356 if test "${ac_cv_path_DIRNAME+set}" = set; then
19357 echo $ECHO_N "(cached) $ECHO_C" >&6
19361 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19365 for as_dir in $PATH
19368 test -z "$as_dir" && as_dir=.
19369 for ac_exec_ext in '' $ac_executable_extensions; do
19370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19371 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19381 DIRNAME=$ac_cv_path_DIRNAME
19383 if test -n "$DIRNAME"; then
19384 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19385 echo "${ECHO_T}$DIRNAME" >&6
19387 echo "$as_me:$LINENO: result: no" >&5
19388 echo "${ECHO_T}no" >&6
19391 # Extract the first word of "grep", so it can be a program name with args.
19392 set dummy grep; ac_word=$2
19393 echo "$as_me:$LINENO: checking for $ac_word" >&5
19394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19395 if test "${ac_cv_path_GREP+set}" = set; then
19396 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19404 for as_dir in $PATH
19407 test -z "$as_dir" && as_dir=.
19408 for ac_exec_ext in '' $ac_executable_extensions; do
19409 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19410 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19420 GREP=$ac_cv_path_GREP
19422 if test -n "$GREP"; then
19423 echo "$as_me:$LINENO: result: $GREP" >&5
19424 echo "${ECHO_T}$GREP" >&6
19426 echo "$as_me:$LINENO: result: no" >&5
19427 echo "${ECHO_T}no" >&6
19433 if test "x$WITH_THREADS" = "xyes"; then
19434 if test $ac_cv_prog_suncc = "yes"; then
19435 CFLAGS="$CFLAGS -mt"
19439 for ac_header in pthread.h
19441 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19442 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19443 echo "$as_me:$LINENO: checking for $ac_header" >&5
19444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19446 echo $ECHO_N "(cached) $ECHO_C" >&6
19448 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19449 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19451 # Is the header compilable?
19452 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19453 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19455 #line $LINENO "configure"
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19462 #include <$ac_header>
19464 rm -f conftest.$ac_objext
19465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19466 (eval $ac_compile) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_header_compiler=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_header_compiler=no
19483 rm -f conftest.$ac_objext conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19485 echo "${ECHO_T}$ac_header_compiler" >&6
19487 # Is the header present?
19488 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19489 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19490 cat >conftest.$ac_ext <<_ACEOF
19491 #line $LINENO "configure"
19494 cat confdefs.h >>conftest.$ac_ext
19495 cat >>conftest.$ac_ext <<_ACEOF
19496 /* end confdefs.h. */
19497 #include <$ac_header>
19499 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506 (exit $ac_status); } >/dev/null; then
19507 if test -s conftest.err; then
19508 ac_cpp_err=$ac_c_preproc_warn_flag
19515 if test -z "$ac_cpp_err"; then
19516 ac_header_preproc=yes
19518 echo "$as_me: failed program was:" >&5
19519 sed 's/^/| /' conftest.$ac_ext >&5
19521 ac_header_preproc=no
19523 rm -f conftest.err conftest.$ac_ext
19524 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19525 echo "${ECHO_T}$ac_header_preproc" >&6
19527 # So? What about this header?
19528 case $ac_header_compiler:$ac_header_preproc in
19530 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19531 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19536 ## ------------------------------------ ##
19537 ## Report this to bug-autoconf@gnu.org. ##
19538 ## ------------------------------------ ##
19541 sed "s/^/$as_me: WARNING: /" >&2
19544 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19545 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19546 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19547 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19552 ## ------------------------------------ ##
19553 ## Report this to bug-autoconf@gnu.org. ##
19554 ## ------------------------------------ ##
19557 sed "s/^/$as_me: WARNING: /" >&2
19560 echo "$as_me:$LINENO: checking for $ac_header" >&5
19561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19562 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 eval "$as_ac_Header=$ac_header_preproc"
19567 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19568 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19571 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19572 cat >>confdefs.h <<_ACEOF
19573 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19583 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19584 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19585 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19588 ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-lpthread $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 #line $LINENO "configure"
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19598 /* Override any gcc2 internal prototype to avoid an error. */
19602 /* We use char because int might match the return type of a gcc2
19603 builtin and then its argument prototype would still apply. */
19604 char pthread_create ();
19613 rm -f conftest.$ac_objext conftest$ac_exeext
19614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19615 (eval $ac_link) 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); } &&
19619 { ac_try='test -s conftest$ac_exeext'
19620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19621 (eval $ac_try) 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 ac_cv_lib_pthread_pthread_create=yes
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_pthread_pthread_create=no
19632 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19633 LIBS=$ac_check_lib_save_LIBS
19635 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19636 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19637 if test $ac_cv_lib_pthread_pthread_create = yes; then
19638 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19639 LIBS="$LIBS -lpthread"
19641 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19642 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19643 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19644 echo $ECHO_N "(cached) $ECHO_C" >&6
19646 ac_check_lib_save_LIBS=$LIBS
19648 cat >conftest.$ac_ext <<_ACEOF
19649 #line $LINENO "configure"
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19656 /* Override any gcc2 internal prototype to avoid an error. */
19660 /* We use char because int might match the return type of a gcc2
19661 builtin and then its argument prototype would still apply. */
19662 char pthread_create ();
19671 rm -f conftest.$ac_objext conftest$ac_exeext
19672 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19673 (eval $ac_link) 2>&5
19675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19676 (exit $ac_status); } &&
19677 { ac_try='test -s conftest$ac_exeext'
19678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19679 (eval $ac_try) 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_lib_c_r_pthread_create=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_lib_c_r_pthread_create=no
19690 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19691 LIBS=$ac_check_lib_save_LIBS
19693 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19694 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19695 if test $ac_cv_lib_c_r_pthread_create = yes; then
19696 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19707 if test "x$WITH_THREADS" != "xyes"; then
19709 ac_cv_header_pthread_h="no"
19713 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19714 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19715 if test "${ac_cv_search_sem_init+set}" = set; then
19716 echo $ECHO_N "(cached) $ECHO_C" >&6
19718 ac_func_search_save_LIBS=$LIBS
19719 ac_cv_search_sem_init=no
19720 cat >conftest.$ac_ext <<_ACEOF
19721 #line $LINENO "configure"
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19728 /* Override any gcc2 internal prototype to avoid an error. */
19732 /* We use char because int might match the return type of a gcc2
19733 builtin and then its argument prototype would still apply. */
19743 rm -f conftest.$ac_objext conftest$ac_exeext
19744 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19745 (eval $ac_link) 2>&5
19747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748 (exit $ac_status); } &&
19749 { ac_try='test -s conftest$ac_exeext'
19750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19751 (eval $ac_try) 2>&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); }; }; then
19755 ac_cv_search_sem_init="none required"
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19761 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19762 if test "$ac_cv_search_sem_init" = no; then
19763 for ac_lib in pthread sem posix4 rt; do
19764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19766 #line $LINENO "configure"
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h. */
19773 /* Override any gcc2 internal prototype to avoid an error. */
19777 /* We use char because int might match the return type of a gcc2
19778 builtin and then its argument prototype would still apply. */
19788 rm -f conftest.$ac_objext conftest$ac_exeext
19789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19790 (eval $ac_link) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -s conftest$ac_exeext'
19795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19796 (eval $ac_try) 2>&5
19798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); }; }; then
19800 ac_cv_search_sem_init="-l$ac_lib"
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19807 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19810 LIBS=$ac_func_search_save_LIBS
19812 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19813 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19814 if test "$ac_cv_search_sem_init" != no; then
19815 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19818 { { echo "$as_me:$LINENO: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&5
19819 echo "$as_me: error: -lsem not found. You may want to download it from ftp://ftp.to.gd-es.com/pub/BSDI/libsem.tar.bz2 or ftp://ftp.freeradius.org/pub/radius/contrib/libsem.tar.gz" >&2;}
19820 { (exit 1); exit 1; }; }
19827 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19828 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19829 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lsocket $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 #line $LINENO "configure"
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19842 /* Override any gcc2 internal prototype to avoid an error. */
19846 /* We use char because int might match the return type of a gcc2
19847 builtin and then its argument prototype would still apply. */
19848 char getsockname ();
19857 rm -f conftest.$ac_objext conftest$ac_exeext
19858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19859 (eval $ac_link) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); } &&
19863 { ac_try='test -s conftest$ac_exeext'
19864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19865 (eval $ac_try) 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; }; then
19869 ac_cv_lib_socket_getsockname=yes
19871 echo "$as_me: failed program was:" >&5
19872 sed 's/^/| /' conftest.$ac_ext >&5
19874 ac_cv_lib_socket_getsockname=no
19876 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19877 LIBS=$ac_check_lib_save_LIBS
19879 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19880 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19881 if test $ac_cv_lib_socket_getsockname = yes; then
19882 cat >>confdefs.h <<_ACEOF
19883 #define HAVE_LIBSOCKET 1
19886 LIBS="-lsocket $LIBS"
19892 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19893 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19894 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19895 echo $ECHO_N "(cached) $ECHO_C" >&6
19897 ac_check_lib_save_LIBS=$LIBS
19898 LIBS="-lresolv $LIBS"
19899 cat >conftest.$ac_ext <<_ACEOF
19900 #line $LINENO "configure"
19903 cat confdefs.h >>conftest.$ac_ext
19904 cat >>conftest.$ac_ext <<_ACEOF
19905 /* end confdefs.h. */
19907 /* Override any gcc2 internal prototype to avoid an error. */
19911 /* We use char because int might match the return type of a gcc2
19912 builtin and then its argument prototype would still apply. */
19922 rm -f conftest.$ac_objext conftest$ac_exeext
19923 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19924 (eval $ac_link) 2>&5
19926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19927 (exit $ac_status); } &&
19928 { ac_try='test -s conftest$ac_exeext'
19929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19930 (eval $ac_try) 2>&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); }; }; then
19934 ac_cv_lib_resolv_inet_aton=yes
19936 echo "$as_me: failed program was:" >&5
19937 sed 's/^/| /' conftest.$ac_ext >&5
19939 ac_cv_lib_resolv_inet_aton=no
19941 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19942 LIBS=$ac_check_lib_save_LIBS
19944 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19945 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19946 if test $ac_cv_lib_resolv_inet_aton = yes; then
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_LIBRESOLV 1
19951 LIBS="-lresolv $LIBS"
19957 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19958 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19959 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19960 echo $ECHO_N "(cached) $ECHO_C" >&6
19962 ac_check_lib_save_LIBS=$LIBS
19964 cat >conftest.$ac_ext <<_ACEOF
19965 #line $LINENO "configure"
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19972 /* Override any gcc2 internal prototype to avoid an error. */
19976 /* We use char because int might match the return type of a gcc2
19977 builtin and then its argument prototype would still apply. */
19987 rm -f conftest.$ac_objext conftest$ac_exeext
19988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19989 (eval $ac_link) 2>&5
19991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19992 (exit $ac_status); } &&
19993 { ac_try='test -s conftest$ac_exeext'
19994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19995 (eval $ac_try) 2>&5
19997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19998 (exit $ac_status); }; }; then
19999 ac_cv_lib_nsl_inet_ntoa=yes
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20004 ac_cv_lib_nsl_inet_ntoa=no
20006 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20007 LIBS=$ac_check_lib_save_LIBS
20009 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20010 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20011 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20012 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_LIBNSL 1
20024 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20033 ac_header_dirent=no
20034 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20035 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20036 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20037 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20039 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 cat >conftest.$ac_ext <<_ACEOF
20042 #line $LINENO "configure"
20045 cat confdefs.h >>conftest.$ac_ext
20046 cat >>conftest.$ac_ext <<_ACEOF
20047 /* end confdefs.h. */
20048 #include <sys/types.h>
20060 rm -f conftest.$ac_objext
20061 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20062 (eval $ac_compile) 2>&5
20064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20065 (exit $ac_status); } &&
20066 { ac_try='test -s conftest.$ac_objext'
20067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20068 (eval $ac_try) 2>&5
20070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20071 (exit $ac_status); }; }; then
20072 eval "$as_ac_Header=yes"
20074 echo "$as_me: failed program was:" >&5
20075 sed 's/^/| /' conftest.$ac_ext >&5
20077 eval "$as_ac_Header=no"
20079 rm -f conftest.$ac_objext conftest.$ac_ext
20081 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20082 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20083 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20088 ac_header_dirent=$ac_hdr; break
20092 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20093 if test $ac_header_dirent = dirent.h; then
20094 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20095 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20096 if test "${ac_cv_search_opendir+set}" = set; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20099 ac_func_search_save_LIBS=$LIBS
20100 ac_cv_search_opendir=no
20101 cat >conftest.$ac_ext <<_ACEOF
20102 #line $LINENO "configure"
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20109 /* Override any gcc2 internal prototype to avoid an error. */
20113 /* We use char because int might match the return type of a gcc2
20114 builtin and then its argument prototype would still apply. */
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20126 (eval $ac_link) 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); } &&
20130 { ac_try='test -s conftest$ac_exeext'
20131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20132 (eval $ac_try) 2>&5
20134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20135 (exit $ac_status); }; }; then
20136 ac_cv_search_opendir="none required"
20138 echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20142 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20143 if test "$ac_cv_search_opendir" = no; then
20144 for ac_lib in dir; do
20145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20146 cat >conftest.$ac_ext <<_ACEOF
20147 #line $LINENO "configure"
20150 cat confdefs.h >>conftest.$ac_ext
20151 cat >>conftest.$ac_ext <<_ACEOF
20152 /* end confdefs.h. */
20154 /* Override any gcc2 internal prototype to avoid an error. */
20158 /* We use char because int might match the return type of a gcc2
20159 builtin and then its argument prototype would still apply. */
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20171 (eval $ac_link) 2>&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -s conftest$ac_exeext'
20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20177 (eval $ac_try) 2>&5
20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20180 (exit $ac_status); }; }; then
20181 ac_cv_search_opendir="-l$ac_lib"
20184 echo "$as_me: failed program was:" >&5
20185 sed 's/^/| /' conftest.$ac_ext >&5
20188 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20191 LIBS=$ac_func_search_save_LIBS
20193 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20194 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20195 if test "$ac_cv_search_opendir" != no; then
20196 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20201 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20202 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20203 if test "${ac_cv_search_opendir+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20206 ac_func_search_save_LIBS=$LIBS
20207 ac_cv_search_opendir=no
20208 cat >conftest.$ac_ext <<_ACEOF
20209 #line $LINENO "configure"
20212 cat confdefs.h >>conftest.$ac_ext
20213 cat >>conftest.$ac_ext <<_ACEOF
20214 /* end confdefs.h. */
20216 /* Override any gcc2 internal prototype to avoid an error. */
20220 /* We use char because int might match the return type of a gcc2
20221 builtin and then its argument prototype would still apply. */
20231 rm -f conftest.$ac_objext conftest$ac_exeext
20232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20233 (eval $ac_link) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_search_opendir="none required"
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20249 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20250 if test "$ac_cv_search_opendir" = no; then
20251 for ac_lib in x; do
20252 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20253 cat >conftest.$ac_ext <<_ACEOF
20254 #line $LINENO "configure"
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 /* Override any gcc2 internal prototype to avoid an error. */
20265 /* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 { ac_try='test -s conftest$ac_exeext'
20283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20284 (eval $ac_try) 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20288 ac_cv_search_opendir="-l$ac_lib"
20291 echo "$as_me: failed program was:" >&5
20292 sed 's/^/| /' conftest.$ac_ext >&5
20295 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20298 LIBS=$ac_func_search_save_LIBS
20300 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20301 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20302 if test "$ac_cv_search_opendir" != no; then
20303 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20309 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20310 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20311 if test "${ac_cv_header_stdc+set}" = set; then
20312 echo $ECHO_N "(cached) $ECHO_C" >&6
20314 cat >conftest.$ac_ext <<_ACEOF
20315 #line $LINENO "configure"
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20321 #include <stdlib.h>
20322 #include <stdarg.h>
20323 #include <string.h>
20334 rm -f conftest.$ac_objext
20335 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20336 (eval $ac_compile) 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } &&
20340 { ac_try='test -s conftest.$ac_objext'
20341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20342 (eval $ac_try) 2>&5
20344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20345 (exit $ac_status); }; }; then
20346 ac_cv_header_stdc=yes
20348 echo "$as_me: failed program was:" >&5
20349 sed 's/^/| /' conftest.$ac_ext >&5
20351 ac_cv_header_stdc=no
20353 rm -f conftest.$ac_objext conftest.$ac_ext
20355 if test $ac_cv_header_stdc = yes; then
20356 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20357 cat >conftest.$ac_ext <<_ACEOF
20358 #line $LINENO "configure"
20361 cat confdefs.h >>conftest.$ac_ext
20362 cat >>conftest.$ac_ext <<_ACEOF
20363 /* end confdefs.h. */
20364 #include <string.h>
20367 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20368 $EGREP "memchr" >/dev/null 2>&1; then
20371 ac_cv_header_stdc=no
20377 if test $ac_cv_header_stdc = yes; then
20378 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20379 cat >conftest.$ac_ext <<_ACEOF
20380 #line $LINENO "configure"
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 #include <stdlib.h>
20389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20390 $EGREP "free" >/dev/null 2>&1; then
20393 ac_cv_header_stdc=no
20399 if test $ac_cv_header_stdc = yes; then
20400 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20401 if test "$cross_compiling" = yes; then
20404 cat >conftest.$ac_ext <<_ACEOF
20405 #line $LINENO "configure"
20408 cat confdefs.h >>conftest.$ac_ext
20409 cat >>conftest.$ac_ext <<_ACEOF
20410 /* end confdefs.h. */
20412 #if ((' ' & 0x0FF) == 0x020)
20413 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20414 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20416 # define ISLOWER(c) \
20417 (('a' <= (c) && (c) <= 'i') \
20418 || ('j' <= (c) && (c) <= 'r') \
20419 || ('s' <= (c) && (c) <= 'z'))
20420 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20423 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20428 for (i = 0; i < 256; i++)
20429 if (XOR (islower (i), ISLOWER (i))
20430 || toupper (i) != TOUPPER (i))
20435 rm -f conftest$ac_exeext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20437 (eval $ac_link) 2>&5
20439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20442 (eval $ac_try) 2>&5
20444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20445 (exit $ac_status); }; }; then
20448 echo "$as_me: program exited with status $ac_status" >&5
20449 echo "$as_me: failed program was:" >&5
20450 sed 's/^/| /' conftest.$ac_ext >&5
20452 ( exit $ac_status )
20453 ac_cv_header_stdc=no
20455 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20459 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20460 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20461 if test $ac_cv_header_stdc = yes; then
20463 cat >>confdefs.h <<\_ACEOF
20464 #define STDC_HEADERS 1
20469 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20470 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20471 if test "${ac_cv_header_time+set}" = set; then
20472 echo $ECHO_N "(cached) $ECHO_C" >&6
20474 cat >conftest.$ac_ext <<_ACEOF
20475 #line $LINENO "configure"
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20481 #include <sys/types.h>
20482 #include <sys/time.h>
20488 if ((struct tm *) 0)
20494 rm -f conftest.$ac_objext
20495 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20496 (eval $ac_compile) 2>&5
20498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20499 (exit $ac_status); } &&
20500 { ac_try='test -s conftest.$ac_objext'
20501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20502 (eval $ac_try) 2>&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); }; }; then
20506 ac_cv_header_time=yes
20508 echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20511 ac_cv_header_time=no
20513 rm -f conftest.$ac_objext conftest.$ac_ext
20515 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20516 echo "${ECHO_T}$ac_cv_header_time" >&6
20517 if test $ac_cv_header_time = yes; then
20519 cat >>confdefs.h <<\_ACEOF
20520 #define TIME_WITH_SYS_TIME 1
20525 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20526 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20527 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20528 echo $ECHO_N "(cached) $ECHO_C" >&6
20530 cat >conftest.$ac_ext <<_ACEOF
20531 #line $LINENO "configure"
20534 cat confdefs.h >>conftest.$ac_ext
20535 cat >>conftest.$ac_ext <<_ACEOF
20536 /* end confdefs.h. */
20537 #include <sys/types.h>
20538 #include <sys/wait.h>
20539 #ifndef WEXITSTATUS
20540 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20543 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20551 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20556 rm -f conftest.$ac_objext
20557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20558 (eval $ac_compile) 2>&5
20560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20561 (exit $ac_status); } &&
20562 { ac_try='test -s conftest.$ac_objext'
20563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20564 (eval $ac_try) 2>&5
20566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20567 (exit $ac_status); }; }; then
20568 ac_cv_header_sys_wait_h=yes
20570 echo "$as_me: failed program was:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_header_sys_wait_h=no
20575 rm -f conftest.$ac_objext conftest.$ac_ext
20577 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20578 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20579 if test $ac_cv_header_sys_wait_h = yes; then
20581 cat >>confdefs.h <<\_ACEOF
20582 #define HAVE_SYS_WAIT_H 1
20647 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20649 echo "$as_me:$LINENO: checking for $ac_header" >&5
20650 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20652 echo $ECHO_N "(cached) $ECHO_C" >&6
20654 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20655 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20657 # Is the header compilable?
20658 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20660 cat >conftest.$ac_ext <<_ACEOF
20661 #line $LINENO "configure"
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 $ac_includes_default
20668 #include <$ac_header>
20670 rm -f conftest.$ac_objext
20671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20672 (eval $ac_compile) 2>&5
20674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20675 (exit $ac_status); } &&
20676 { ac_try='test -s conftest.$ac_objext'
20677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20678 (eval $ac_try) 2>&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); }; }; then
20682 ac_header_compiler=yes
20684 echo "$as_me: failed program was:" >&5
20685 sed 's/^/| /' conftest.$ac_ext >&5
20687 ac_header_compiler=no
20689 rm -f conftest.$ac_objext conftest.$ac_ext
20690 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20691 echo "${ECHO_T}$ac_header_compiler" >&6
20693 # Is the header present?
20694 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20695 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20696 cat >conftest.$ac_ext <<_ACEOF
20697 #line $LINENO "configure"
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20703 #include <$ac_header>
20705 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20706 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20708 grep -v '^ *+' conftest.er1 >conftest.err
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } >/dev/null; then
20713 if test -s conftest.err; then
20714 ac_cpp_err=$ac_c_preproc_warn_flag
20721 if test -z "$ac_cpp_err"; then
20722 ac_header_preproc=yes
20724 echo "$as_me: failed program was:" >&5
20725 sed 's/^/| /' conftest.$ac_ext >&5
20727 ac_header_preproc=no
20729 rm -f conftest.err conftest.$ac_ext
20730 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20731 echo "${ECHO_T}$ac_header_preproc" >&6
20733 # So? What about this header?
20734 case $ac_header_compiler:$ac_header_preproc in
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20739 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20742 ## ------------------------------------ ##
20743 ## Report this to bug-autoconf@gnu.org. ##
20744 ## ------------------------------------ ##
20747 sed "s/^/$as_me: WARNING: /" >&2
20750 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20751 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20753 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20755 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20758 ## ------------------------------------ ##
20759 ## Report this to bug-autoconf@gnu.org. ##
20760 ## ------------------------------------ ##
20763 sed "s/^/$as_me: WARNING: /" >&2
20766 echo "$as_me:$LINENO: checking for $ac_header" >&5
20767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20768 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 eval "$as_ac_Header=$ac_header_preproc"
20773 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20774 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20778 cat >>confdefs.h <<_ACEOF
20779 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20788 if test "${ac_cv_header_regex_h+set}" = set; then
20789 echo "$as_me:$LINENO: checking for regex.h" >&5
20790 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20791 if test "${ac_cv_header_regex_h+set}" = set; then
20792 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20795 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20797 # Is the header compilable?
20798 echo "$as_me:$LINENO: checking regex.h usability" >&5
20799 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20800 cat >conftest.$ac_ext <<_ACEOF
20801 #line $LINENO "configure"
20804 cat confdefs.h >>conftest.$ac_ext
20805 cat >>conftest.$ac_ext <<_ACEOF
20806 /* end confdefs.h. */
20807 $ac_includes_default
20810 rm -f conftest.$ac_objext
20811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20812 (eval $ac_compile) 2>&5
20814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20815 (exit $ac_status); } &&
20816 { ac_try='test -s conftest.$ac_objext'
20817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20818 (eval $ac_try) 2>&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); }; }; then
20822 ac_header_compiler=yes
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20827 ac_header_compiler=no
20829 rm -f conftest.$ac_objext conftest.$ac_ext
20830 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20831 echo "${ECHO_T}$ac_header_compiler" >&6
20833 # Is the header present?
20834 echo "$as_me:$LINENO: checking regex.h presence" >&5
20835 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20836 cat >conftest.$ac_ext <<_ACEOF
20837 #line $LINENO "configure"
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } >/dev/null; then
20853 if test -s conftest.err; then
20854 ac_cpp_err=$ac_c_preproc_warn_flag
20861 if test -z "$ac_cpp_err"; then
20862 ac_header_preproc=yes
20864 echo "$as_me: failed program was:" >&5
20865 sed 's/^/| /' conftest.$ac_ext >&5
20867 ac_header_preproc=no
20869 rm -f conftest.err conftest.$ac_ext
20870 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20871 echo "${ECHO_T}$ac_header_preproc" >&6
20873 # So? What about this header?
20874 case $ac_header_compiler:$ac_header_preproc in
20876 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20877 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20878 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20879 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20882 ## ------------------------------------ ##
20883 ## Report this to bug-autoconf@gnu.org. ##
20884 ## ------------------------------------ ##
20887 sed "s/^/$as_me: WARNING: /" >&2
20890 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20891 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20892 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20893 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20894 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20895 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20898 ## ------------------------------------ ##
20899 ## Report this to bug-autoconf@gnu.org. ##
20900 ## ------------------------------------ ##
20903 sed "s/^/$as_me: WARNING: /" >&2
20906 echo "$as_me:$LINENO: checking for regex.h" >&5
20907 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20908 if test "${ac_cv_header_regex_h+set}" = set; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20911 ac_cv_header_regex_h=$ac_header_preproc
20913 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20914 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20917 if test $ac_cv_header_regex_h = yes; then
20919 cat >>confdefs.h <<\_ACEOF
20920 #define HAVE_REGEX_H
20926 if test "x$ac_cv_header_regex_h" = "xyes"; then
20929 cat >conftest.$ac_ext <<_ACEOF
20930 #line $LINENO "configure"
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20937 #ifdef REG_EXTENDED
20942 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20943 $EGREP "yes" >/dev/null 2>&1; then
20945 cat >>confdefs.h <<\_ACEOF
20946 #define HAVE_REG_EXTENDED
20956 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20959 cat >>confdefs.h <<\_ACEOF
20965 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20968 cat >>confdefs.h <<\_ACEOF
20974 smart_try_dir="$OPENSSL_INCLUDE_DIR"
20975 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
20978 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
20979 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20980 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20985 old_CFLAGS="$CFLAGS"
20986 cat >conftest.$ac_ext <<_ACEOF
20987 #line $LINENO "configure"
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20994 #include <openssl/ssl.h>
21003 rm -f conftest.$ac_objext
21004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21005 (eval $ac_compile) 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); } &&
21009 { ac_try='test -s conftest.$ac_objext'
21010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21011 (eval $ac_try) 2>&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); }; }; then
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21022 rm -f conftest.$ac_objext conftest.$ac_ext
21024 if test "x$smart_include" = "x"; then
21027 if test "x$LOCATE" != "x"; then
21031 for x in `${LOCATE} $file 2>/dev/null`; do
21032 base=`echo $x | sed "s%/${file}%%"`
21033 if test "x$x" = "x$base"; then
21037 dir=`${DIRNAME} $x 2>/dev/null`
21038 exclude=`echo ${dir} | ${GREP} /home`
21039 if test "x$exclude" != "x"; then
21043 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21044 if test "x$already" = "x"; then
21050 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21053 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21054 CFLAGS="$old_CFLAGS -I$try"
21056 cat >conftest.$ac_ext <<_ACEOF
21057 #line $LINENO "configure"
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 #include <openssl/ssl.h>
21073 rm -f conftest.$ac_objext
21074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21075 (eval $ac_compile) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); } &&
21079 { ac_try='test -s conftest.$ac_objext'
21080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21081 (eval $ac_try) 2>&5
21083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); }; }; then
21085 smart_include="-I$try"
21087 echo "$as_me: failed program was:" >&5
21088 sed 's/^/| /' conftest.$ac_ext >&5
21092 rm -f conftest.$ac_objext conftest.$ac_ext
21094 if test "x$smart_include" != "x"; then
21098 CFLAGS="$old_CFLAGS"
21101 if test "x$smart_include" != "x"; then
21102 echo "$as_me:$LINENO: result: yes" >&5
21103 echo "${ECHO_T}yes" >&6
21104 eval "ac_cv_header_$ac_safe=yes"
21105 CFLAGS="$old_CFLAGS $smart_include"
21106 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21108 echo "$as_me:$LINENO: result: no" >&5
21109 echo "${ECHO_T}no" >&6
21114 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21116 cat >>confdefs.h <<\_ACEOF
21117 #define HAVE_OPENSSL_SSL_H
21120 old_CPPFLAGS="$CPPFLAGS"
21121 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21122 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21136 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21137 echo "$as_me:$LINENO: checking for $ac_header" >&5
21138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21140 echo $ECHO_N "(cached) $ECHO_C" >&6
21142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21145 # Is the header compilable?
21146 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21147 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21148 cat >conftest.$ac_ext <<_ACEOF
21149 #line $LINENO "configure"
21152 cat confdefs.h >>conftest.$ac_ext
21153 cat >>conftest.$ac_ext <<_ACEOF
21154 /* end confdefs.h. */
21155 $ac_includes_default
21156 #include <$ac_header>
21158 rm -f conftest.$ac_objext
21159 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21160 (eval $ac_compile) 2>&5
21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21163 (exit $ac_status); } &&
21164 { ac_try='test -s conftest.$ac_objext'
21165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21166 (eval $ac_try) 2>&5
21168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21169 (exit $ac_status); }; }; then
21170 ac_header_compiler=yes
21172 echo "$as_me: failed program was:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_header_compiler=no
21177 rm -f conftest.$ac_objext conftest.$ac_ext
21178 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21179 echo "${ECHO_T}$ac_header_compiler" >&6
21181 # Is the header present?
21182 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21183 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21184 cat >conftest.$ac_ext <<_ACEOF
21185 #line $LINENO "configure"
21188 cat confdefs.h >>conftest.$ac_ext
21189 cat >>conftest.$ac_ext <<_ACEOF
21190 /* end confdefs.h. */
21191 #include <$ac_header>
21193 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21194 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21196 grep -v '^ *+' conftest.er1 >conftest.err
21198 cat conftest.err >&5
21199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21200 (exit $ac_status); } >/dev/null; then
21201 if test -s conftest.err; then
21202 ac_cpp_err=$ac_c_preproc_warn_flag
21209 if test -z "$ac_cpp_err"; then
21210 ac_header_preproc=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_header_preproc=no
21217 rm -f conftest.err conftest.$ac_ext
21218 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21219 echo "${ECHO_T}$ac_header_preproc" >&6
21221 # So? What about this header?
21222 case $ac_header_compiler:$ac_header_preproc in
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21230 ## ------------------------------------ ##
21231 ## Report this to bug-autoconf@gnu.org. ##
21232 ## ------------------------------------ ##
21235 sed "s/^/$as_me: WARNING: /" >&2
21238 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21239 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21240 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21241 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21242 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21243 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21246 ## ------------------------------------ ##
21247 ## Report this to bug-autoconf@gnu.org. ##
21248 ## ------------------------------------ ##
21251 sed "s/^/$as_me: WARNING: /" >&2
21254 echo "$as_me:$LINENO: checking for $ac_header" >&5
21255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21256 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21257 echo $ECHO_N "(cached) $ECHO_C" >&6
21259 eval "$as_ac_Header=$ac_header_preproc"
21261 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21262 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21265 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21266 cat >>confdefs.h <<_ACEOF
21267 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21274 CPPFLAGS="$old_CPPFLAGS"
21276 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21277 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21278 old_CPPFLAGS=$CPPFLAGS
21280 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21281 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21283 cat >conftest.$ac_ext <<_ACEOF
21284 #line $LINENO "configure"
21287 cat confdefs.h >>conftest.$ac_ext
21288 cat >>conftest.$ac_ext <<_ACEOF
21289 /* end confdefs.h. */
21290 #include <openssl/crypto.h>
21291 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21297 $EGREP "yes" >/dev/null 2>&1; then
21302 if test "x$goodssl" != "xyes"; then
21303 echo "$as_me:$LINENO: result: no" >&5
21304 echo "${ECHO_T}no" >&6
21308 echo "$as_me:$LINENO: result: yes" >&5
21309 echo "${ECHO_T}yes" >&6
21311 # Look for the OpenSSL libraries.
21312 smart_try_dir=$OPENSSL_LIB_DIR
21315 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21316 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21317 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21318 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21324 LIBS="$LIBS -lcrypto"
21325 cat >conftest.$ac_ext <<_ACEOF
21326 #line $LINENO "configure"
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 extern char DH_new();
21341 rm -f conftest.$ac_objext conftest$ac_exeext
21342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21343 (eval $ac_link) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); } &&
21347 { ac_try='test -s conftest$ac_exeext'
21348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21349 (eval $ac_try) 2>&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); }; }; then
21353 smart_lib="-lcrypto"
21355 echo "$as_me: failed program was:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21359 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21361 if test "x$smart_lib" = "x"; then
21364 if test "x$LOCATE" != "x"; then
21366 file=libcrypto${libltdl_cv_shlibext}
21368 for x in `${LOCATE} $file 2>/dev/null`; do
21369 base=`echo $x | sed "s%/${file}%%"`
21370 if test "x$x" = "x$base"; then
21374 dir=`${DIRNAME} $x 2>/dev/null`
21375 exclude=`echo ${dir} | ${GREP} /home`
21376 if test "x$exclude" != "x"; then
21380 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21381 if test "x$already" = "x"; then
21387 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21391 if test "x$LOCATE" != "x"; then
21395 for x in `${LOCATE} $file 2>/dev/null`; do
21396 base=`echo $x | sed "s%/${file}%%"`
21397 if test "x$x" = "x$base"; then
21401 dir=`${DIRNAME} $x 2>/dev/null`
21402 exclude=`echo ${dir} | ${GREP} /home`
21403 if test "x$exclude" != "x"; then
21407 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21408 if test "x$already" = "x"; then
21414 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21417 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21418 LIBS="$old_LIBS -L$try -lcrypto"
21420 cat >conftest.$ac_ext <<_ACEOF
21421 #line $LINENO "configure"
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 extern char DH_new();
21436 rm -f conftest.$ac_objext conftest$ac_exeext
21437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21438 (eval $ac_link) 2>&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
21442 { ac_try='test -s conftest$ac_exeext'
21443 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21444 (eval $ac_try) 2>&5
21446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447 (exit $ac_status); }; }; then
21448 smart_lib="-L$try -lcrypto"
21450 echo "$as_me: failed program was:" >&5
21451 sed 's/^/| /' conftest.$ac_ext >&5
21454 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21455 if test "x$smart_lib" != "x"; then
21462 if test "x$smart_lib" != "x"; then
21463 echo "$as_me:$LINENO: result: yes" >&5
21464 echo "${ECHO_T}yes" >&6
21465 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21466 LIBS="$old_LIBS $smart_lib"
21467 SMART_LIBS="$SMART_LIBS $smart_lib"
21469 echo "$as_me:$LINENO: result: no" >&5
21470 echo "${ECHO_T}no" >&6
21473 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21476 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21477 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21478 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21479 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21486 cat >conftest.$ac_ext <<_ACEOF
21487 #line $LINENO "configure"
21490 cat confdefs.h >>conftest.$ac_ext
21491 cat >>conftest.$ac_ext <<_ACEOF
21492 /* end confdefs.h. */
21493 extern char SSL_new();
21502 rm -f conftest.$ac_objext conftest$ac_exeext
21503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21504 (eval $ac_link) 2>&5
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); } &&
21508 { ac_try='test -s conftest$ac_exeext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21522 if test "x$smart_lib" = "x"; then
21525 if test "x$LOCATE" != "x"; then
21527 file=libssl${libltdl_cv_shlibext}
21529 for x in `${LOCATE} $file 2>/dev/null`; do
21530 base=`echo $x | sed "s%/${file}%%"`
21531 if test "x$x" = "x$base"; then
21535 dir=`${DIRNAME} $x 2>/dev/null`
21536 exclude=`echo ${dir} | ${GREP} /home`
21537 if test "x$exclude" != "x"; then
21541 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21542 if test "x$already" = "x"; then
21548 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21552 if test "x$LOCATE" != "x"; then
21556 for x in `${LOCATE} $file 2>/dev/null`; do
21557 base=`echo $x | sed "s%/${file}%%"`
21558 if test "x$x" = "x$base"; then
21562 dir=`${DIRNAME} $x 2>/dev/null`
21563 exclude=`echo ${dir} | ${GREP} /home`
21564 if test "x$exclude" != "x"; then
21568 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21569 if test "x$already" = "x"; then
21575 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21578 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21579 LIBS="$old_LIBS -L$try -lssl"
21581 cat >conftest.$ac_ext <<_ACEOF
21582 #line $LINENO "configure"
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 extern char SSL_new();
21597 rm -f conftest.$ac_objext conftest$ac_exeext
21598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21599 (eval $ac_link) 2>&5
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 smart_lib="-L$try -lssl"
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21615 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21616 if test "x$smart_lib" != "x"; then
21623 if test "x$smart_lib" != "x"; then
21624 echo "$as_me:$LINENO: result: yes" >&5
21625 echo "${ECHO_T}yes" >&6
21626 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21627 LIBS="$old_LIBS $smart_lib"
21628 SMART_LIBS="$SMART_LIBS $smart_lib"
21630 echo "$as_me:$LINENO: result: no" >&5
21631 echo "${ECHO_T}no" >&6
21634 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21635 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21636 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21638 if test "x$OPENSSL_LIB_DIR" != "x"; then
21639 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21641 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21648 CPPFLAGS=$old_CPPFLAGS
21653 export OPENSSL_LIBS
21656 echo "$as_me:$LINENO: checking for off_t" >&5
21657 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21658 if test "${ac_cv_type_off_t+set}" = set; then
21659 echo $ECHO_N "(cached) $ECHO_C" >&6
21661 cat >conftest.$ac_ext <<_ACEOF
21662 #line $LINENO "configure"
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h. */
21668 $ac_includes_default
21674 if (sizeof (off_t))
21680 rm -f conftest.$ac_objext
21681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21682 (eval $ac_compile) 2>&5
21684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685 (exit $ac_status); } &&
21686 { ac_try='test -s conftest.$ac_objext'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; }; then
21692 ac_cv_type_off_t=yes
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21697 ac_cv_type_off_t=no
21699 rm -f conftest.$ac_objext conftest.$ac_ext
21701 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21702 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21703 if test $ac_cv_type_off_t = yes; then
21707 cat >>confdefs.h <<_ACEOF
21713 echo "$as_me:$LINENO: checking for pid_t" >&5
21714 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21715 if test "${ac_cv_type_pid_t+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21718 cat >conftest.$ac_ext <<_ACEOF
21719 #line $LINENO "configure"
21722 cat confdefs.h >>conftest.$ac_ext
21723 cat >>conftest.$ac_ext <<_ACEOF
21724 /* end confdefs.h. */
21725 $ac_includes_default
21731 if (sizeof (pid_t))
21737 rm -f conftest.$ac_objext
21738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21739 (eval $ac_compile) 2>&5
21741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21742 (exit $ac_status); } &&
21743 { ac_try='test -s conftest.$ac_objext'
21744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21745 (eval $ac_try) 2>&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); }; }; then
21749 ac_cv_type_pid_t=yes
21751 echo "$as_me: failed program was:" >&5
21752 sed 's/^/| /' conftest.$ac_ext >&5
21754 ac_cv_type_pid_t=no
21756 rm -f conftest.$ac_objext conftest.$ac_ext
21758 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21759 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21760 if test $ac_cv_type_pid_t = yes; then
21764 cat >>confdefs.h <<_ACEOF
21770 echo "$as_me:$LINENO: checking for size_t" >&5
21771 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21772 if test "${ac_cv_type_size_t+set}" = set; then
21773 echo $ECHO_N "(cached) $ECHO_C" >&6
21775 cat >conftest.$ac_ext <<_ACEOF
21776 #line $LINENO "configure"
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 $ac_includes_default
21788 if (sizeof (size_t))
21794 rm -f conftest.$ac_objext
21795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21796 (eval $ac_compile) 2>&5
21798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21799 (exit $ac_status); } &&
21800 { ac_try='test -s conftest.$ac_objext'
21801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21802 (eval $ac_try) 2>&5
21804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21805 (exit $ac_status); }; }; then
21806 ac_cv_type_size_t=yes
21808 echo "$as_me: failed program was:" >&5
21809 sed 's/^/| /' conftest.$ac_ext >&5
21811 ac_cv_type_size_t=no
21813 rm -f conftest.$ac_objext conftest.$ac_ext
21815 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21816 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21817 if test $ac_cv_type_size_t = yes; then
21821 cat >>confdefs.h <<_ACEOF
21822 #define size_t unsigned
21827 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21828 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21829 if test "${ac_cv_type_uid_t+set}" = set; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21832 cat >conftest.$ac_ext <<_ACEOF
21833 #line $LINENO "configure"
21836 cat confdefs.h >>conftest.$ac_ext
21837 cat >>conftest.$ac_ext <<_ACEOF
21838 /* end confdefs.h. */
21839 #include <sys/types.h>
21842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21843 $EGREP "uid_t" >/dev/null 2>&1; then
21844 ac_cv_type_uid_t=yes
21846 ac_cv_type_uid_t=no
21851 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21852 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21853 if test $ac_cv_type_uid_t = no; then
21855 cat >>confdefs.h <<\_ACEOF
21860 cat >>confdefs.h <<\_ACEOF
21868 echo "$as_me:$LINENO: checking for socklen_t" >&5
21869 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21870 if test "${ac_cv_type_socklen_t+set}" = set; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21873 ac_cv_type_socklen_t=no
21874 cat >conftest.$ac_ext <<_ACEOF
21875 #line $LINENO "configure"
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h. */
21881 #ifdef HAVE_SYS_TYPES_H
21882 #include <sys/types.h>
21884 #ifdef HAVE_SYS_SOCKET_H
21885 #include <sys/socket.h>
21896 rm -f conftest.$ac_objext
21897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21898 (eval $ac_compile) 2>&5
21900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21901 (exit $ac_status); } &&
21902 { ac_try='test -s conftest.$ac_objext'
21903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21904 (eval $ac_try) 2>&5
21906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21907 (exit $ac_status); }; }; then
21908 ac_cv_type_socklen_t=yes
21910 echo "$as_me: failed program was:" >&5
21911 sed 's/^/| /' conftest.$ac_ext >&5
21914 rm -f conftest.$ac_objext conftest.$ac_ext
21918 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21919 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21921 if test "$ac_cv_type_socklen_t" != "yes"; then
21923 cat >>confdefs.h <<\_ACEOF
21924 #define socklen_t int
21931 echo "$as_me:$LINENO: checking for uint8_t" >&5
21932 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21933 if test "${ac_cv_type_uint8_t+set}" = set; then
21934 echo $ECHO_N "(cached) $ECHO_C" >&6
21936 ac_cv_type_uint8_t=no
21937 cat >conftest.$ac_ext <<_ACEOF
21938 #line $LINENO "configure"
21941 cat confdefs.h >>conftest.$ac_ext
21942 cat >>conftest.$ac_ext <<_ACEOF
21943 /* end confdefs.h. */
21944 #ifdef HAVE_INTTYPES_H
21945 #include <inttypes.h>
21947 #ifdef HAVE_STDINT_H
21948 #include <stdint.h>
21959 rm -f conftest.$ac_objext
21960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21961 (eval $ac_compile) 2>&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } &&
21965 { ac_try='test -s conftest.$ac_objext'
21966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21967 (eval $ac_try) 2>&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); }; }; then
21971 ac_cv_type_uint8_t=yes
21973 echo "$as_me: failed program was:" >&5
21974 sed 's/^/| /' conftest.$ac_ext >&5
21977 rm -f conftest.$ac_objext conftest.$ac_ext
21981 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21982 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21984 if test "$ac_cv_type_uint8_t" != "yes"; then
21986 cat >>confdefs.h <<\_ACEOF
21987 #define uint8_t unsigned char
21994 echo "$as_me:$LINENO: checking for uint16_t" >&5
21995 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21996 if test "${ac_cv_type_uint16_t+set}" = set; then
21997 echo $ECHO_N "(cached) $ECHO_C" >&6
21999 ac_cv_type_uint16_t=no
22000 cat >conftest.$ac_ext <<_ACEOF
22001 #line $LINENO "configure"
22004 cat confdefs.h >>conftest.$ac_ext
22005 cat >>conftest.$ac_ext <<_ACEOF
22006 /* end confdefs.h. */
22007 #ifdef HAVE_INTTYPES_H
22008 #include <inttypes.h>
22010 #ifdef HAVE_STDINT_H
22011 #include <stdint.h>
22022 rm -f conftest.$ac_objext
22023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22024 (eval $ac_compile) 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); } &&
22028 { ac_try='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22034 ac_cv_type_uint16_t=yes
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22040 rm -f conftest.$ac_objext conftest.$ac_ext
22044 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22045 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22047 if test "$ac_cv_type_uint16_t" != "yes"; then
22049 cat >>confdefs.h <<\_ACEOF
22050 #define uint16_t unsigned short
22057 echo "$as_me:$LINENO: checking for uint32_t" >&5
22058 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22059 if test "${ac_cv_type_uint32_t+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22062 ac_cv_type_uint32_t=no
22063 cat >conftest.$ac_ext <<_ACEOF
22064 #line $LINENO "configure"
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #ifdef HAVE_INTTYPES_H
22071 #include <inttypes.h>
22073 #ifdef HAVE_STDINT_H
22074 #include <stdint.h>
22085 rm -f conftest.$ac_objext
22086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22087 (eval $ac_compile) 2>&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } &&
22091 { ac_try='test -s conftest.$ac_objext'
22092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22093 (eval $ac_try) 2>&5
22095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22096 (exit $ac_status); }; }; then
22097 ac_cv_type_uint32_t=yes
22099 echo "$as_me: failed program was:" >&5
22100 sed 's/^/| /' conftest.$ac_ext >&5
22103 rm -f conftest.$ac_objext conftest.$ac_ext
22107 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22108 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22110 if test "$ac_cv_type_uint32_t" != "yes"; then
22112 cat >>confdefs.h <<\_ACEOF
22113 #define uint32_t unsigned int
22119 echo "$as_me:$LINENO: checking for struct in6_addr" >&5
22120 echo $ECHO_N "checking for struct in6_addr... $ECHO_C" >&6
22121 if test "${ac_cv_type_struct_in6_addr+set}" = set; then
22122 echo $ECHO_N "(cached) $ECHO_C" >&6
22124 cat >conftest.$ac_ext <<_ACEOF
22125 #line $LINENO "configure"
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22132 #ifdef HAVE_NETINET_IN_H
22133 #include <netinet/in.h>
22140 if ((struct in6_addr *) 0)
22142 if (sizeof (struct in6_addr))
22148 rm -f conftest.$ac_objext
22149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22150 (eval $ac_compile) 2>&5
22152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } &&
22154 { ac_try='test -s conftest.$ac_objext'
22155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22156 (eval $ac_try) 2>&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); }; }; then
22160 ac_cv_type_struct_in6_addr=yes
22162 echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22165 ac_cv_type_struct_in6_addr=no
22167 rm -f conftest.$ac_objext conftest.$ac_ext
22169 echo "$as_me:$LINENO: result: $ac_cv_type_struct_in6_addr" >&5
22170 echo "${ECHO_T}$ac_cv_type_struct_in6_addr" >&6
22171 if test $ac_cv_type_struct_in6_addr = yes; then
22173 cat >>confdefs.h <<\_ACEOF
22174 #define HAVE_STRUCT_IN6_ADDR 1
22180 echo "$as_me:$LINENO: checking for struct sockaddr_storage" >&5
22181 echo $ECHO_N "checking for struct sockaddr_storage... $ECHO_C" >&6
22182 if test "${ac_cv_type_struct_sockaddr_storage+set}" = set; then
22183 echo $ECHO_N "(cached) $ECHO_C" >&6
22185 cat >conftest.$ac_ext <<_ACEOF
22186 #line $LINENO "configure"
22189 cat confdefs.h >>conftest.$ac_ext
22190 cat >>conftest.$ac_ext <<_ACEOF
22191 /* end confdefs.h. */
22193 #ifdef HAVE_NETINET_IN_H
22194 #include <netinet/in.h>
22201 if ((struct sockaddr_storage *) 0)
22203 if (sizeof (struct sockaddr_storage))
22209 rm -f conftest.$ac_objext
22210 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22211 (eval $ac_compile) 2>&5
22213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22214 (exit $ac_status); } &&
22215 { ac_try='test -s conftest.$ac_objext'
22216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22217 (eval $ac_try) 2>&5
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; }; then
22221 ac_cv_type_struct_sockaddr_storage=yes
22223 echo "$as_me: failed program was:" >&5
22224 sed 's/^/| /' conftest.$ac_ext >&5
22226 ac_cv_type_struct_sockaddr_storage=no
22228 rm -f conftest.$ac_objext conftest.$ac_ext
22230 echo "$as_me:$LINENO: result: $ac_cv_type_struct_sockaddr_storage" >&5
22231 echo "${ECHO_T}$ac_cv_type_struct_sockaddr_storage" >&6
22232 if test $ac_cv_type_struct_sockaddr_storage = yes; then
22234 cat >>confdefs.h <<\_ACEOF
22235 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
22294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22295 echo "$as_me:$LINENO: checking for $ac_func" >&5
22296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22297 if eval "test \"\${$as_ac_var+set}\" = set"; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22300 cat >conftest.$ac_ext <<_ACEOF
22301 #line $LINENO "configure"
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 /* System header to define __stub macros and hopefully few prototypes,
22308 which can conflict with char $ac_func (); below.
22309 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22310 <limits.h> exists even on freestanding compilers. */
22312 # include <limits.h>
22314 # include <assert.h>
22316 /* Override any gcc2 internal prototype to avoid an error. */
22321 /* We use char because int might match the return type of a gcc2
22322 builtin and then its argument prototype would still apply. */
22324 /* The GNU C library defines this for functions which it implements
22325 to always fail with ENOSYS. Some functions are actually named
22326 something starting with __ and the normal name is an alias. */
22327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22330 char (*f) () = $ac_func;
22339 return f != $ac_func;
22344 rm -f conftest.$ac_objext conftest$ac_exeext
22345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22346 (eval $ac_link) 2>&5
22348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22349 (exit $ac_status); } &&
22350 { ac_try='test -s conftest$ac_exeext'
22351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22352 (eval $ac_try) 2>&5
22354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22355 (exit $ac_status); }; }; then
22356 eval "$as_ac_var=yes"
22358 echo "$as_me: failed program was:" >&5
22359 sed 's/^/| /' conftest.$ac_ext >&5
22361 eval "$as_ac_var=no"
22363 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22365 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22366 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22367 if test `eval echo '${'$as_ac_var'}'` = yes; then
22368 cat >>confdefs.h <<_ACEOF
22369 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22386 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22387 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22388 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22389 echo $ECHO_N "(cached) $ECHO_C" >&6
22391 cat >conftest.$ac_ext <<_ACEOF
22392 #line $LINENO "configure"
22395 cat confdefs.h >>conftest.$ac_ext
22396 cat >>conftest.$ac_ext <<_ACEOF
22397 /* end confdefs.h. */
22400 #include <string.h>
22401 #ifdef HAVE_UNISTD_H
22402 #include <unistd.h>
22404 #ifdef HAVE_CRYPT_H
22407 #ifdef HAVE_ERRNO_H
22410 #ifdef HAVE_RESOURCE_H
22411 #include <resource.h>
22413 #ifdef HAVE_GETOPT_H
22414 #include <getopt.h>
22416 #ifdef HAVE_MALLOC_H
22417 #include <malloc.h>
22422 #ifdef HAVE_UTMPX_H
22425 #ifdef HAVE_SYS_SELECT_H
22426 #include <sys/select.h>
22428 #ifdef HAVE_DLFCN_H
22431 #ifdef HAVE_REGEX_H
22434 #ifdef HAVE_SYSLOG_H
22435 #include <syslog.h>
22437 #ifdef HAVE_INTTYPES_H
22438 #include <inttypes.h>
22440 #ifdef HAVE_STDINT_H
22441 #include <stdint.h>
22443 #ifdef HAVE_ARPA_INET_H
22444 #include <arpa/inet.h>
22450 char *(*pfn) = (char *(*)) $ac_func
22455 rm -f conftest.$ac_objext
22456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22457 (eval $ac_compile) 2>&5
22459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22460 (exit $ac_status); } &&
22461 { ac_try='test -s conftest.$ac_objext'
22462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22463 (eval $ac_try) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 eval "radius_cv_decl_needed_$ac_func=no"
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22472 eval "radius_cv_decl_needed_$ac_func=yes"
22474 rm -f conftest.$ac_objext conftest.$ac_ext
22477 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22478 echo "$as_me:$LINENO: result: yes" >&5
22479 echo "${ECHO_T}yes" >&6
22480 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22481 cat >>confdefs.h <<_ACEOF
22482 #define $radius_tr_decl 1
22486 echo "$as_me:$LINENO: result: no" >&5
22487 echo "${ECHO_T}no" >&6
22493 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22494 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22495 if test "${ac_cv_type_signal+set}" = set; then
22496 echo $ECHO_N "(cached) $ECHO_C" >&6
22498 cat >conftest.$ac_ext <<_ACEOF
22499 #line $LINENO "configure"
22502 cat confdefs.h >>conftest.$ac_ext
22503 cat >>conftest.$ac_ext <<_ACEOF
22504 /* end confdefs.h. */
22505 #include <sys/types.h>
22506 #include <signal.h>
22511 extern "C" void (*signal (int, void (*)(int)))(int);
22513 void (*signal ()) ();
22524 rm -f conftest.$ac_objext
22525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22526 (eval $ac_compile) 2>&5
22528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22529 (exit $ac_status); } &&
22530 { ac_try='test -s conftest.$ac_objext'
22531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22532 (eval $ac_try) 2>&5
22534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 ac_cv_type_signal=void
22538 echo "$as_me: failed program was:" >&5
22539 sed 's/^/| /' conftest.$ac_ext >&5
22541 ac_cv_type_signal=int
22543 rm -f conftest.$ac_objext conftest.$ac_ext
22545 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22546 echo "${ECHO_T}$ac_cv_type_signal" >&6
22548 cat >>confdefs.h <<_ACEOF
22549 #define RETSIGTYPE $ac_cv_type_signal
22554 if test "x$ac_cv_header_utmpx_h" = "xyes"
22557 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22558 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22561 cat >conftest.$ac_ext <<_ACEOF
22562 #line $LINENO "configure"
22565 cat confdefs.h >>conftest.$ac_ext
22566 cat >>conftest.$ac_ext <<_ACEOF
22567 /* end confdefs.h. */
22571 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22577 int foo = offsetof(struct utmpx, ut_xtime)
22582 rm -f conftest.$ac_objext
22583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22584 (eval $ac_compile) 2>&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } &&
22588 { ac_try='test -s conftest.$ac_objext'
22589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590 (eval $ac_try) 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; }; then
22596 echo "$as_me: failed program was:" >&5
22597 sed 's/^/| /' conftest.$ac_ext >&5
22601 rm -f conftest.$ac_objext conftest.$ac_ext
22603 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22604 if test "x$has_element" != "x"; then
22605 echo "$as_me:$LINENO: result: yes" >&5
22606 echo "${ECHO_T}yes" >&6
22607 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22609 echo "$as_me:$LINENO: result: no" >&5
22610 echo "${ECHO_T}no" >&6
22611 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22614 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22617 cat >>confdefs.h <<\_ACEOF
22618 #define ut_xtime ut_tv.tv_sec
22625 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22626 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22629 cat >conftest.$ac_ext <<_ACEOF
22630 #line $LINENO "configure"
22633 cat confdefs.h >>conftest.$ac_ext
22634 cat >>conftest.$ac_ext <<_ACEOF
22635 /* end confdefs.h. */
22637 #include <netinet/in.h>
22639 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22645 int foo = offsetof(struct in_pktinfo, ipi_addr)
22650 rm -f conftest.$ac_objext
22651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22652 (eval $ac_compile) 2>&5
22654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655 (exit $ac_status); } &&
22656 { ac_try='test -s conftest.$ac_objext'
22657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22658 (eval $ac_try) 2>&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); }; }; then
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22669 rm -f conftest.$ac_objext conftest.$ac_ext
22671 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22672 if test "x$has_element" != "x"; then
22673 echo "$as_me:$LINENO: result: yes" >&5
22674 echo "${ECHO_T}yes" >&6
22675 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22677 echo "$as_me:$LINENO: result: no" >&5
22678 echo "${ECHO_T}no" >&6
22679 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22682 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22685 cat >>confdefs.h <<\_ACEOF
22686 #define HAVE_IP_PKTINFO
22692 echo "$as_me:$LINENO: checking for ipi6_addr in struct in6_pktinfo" >&5
22693 echo $ECHO_N "checking for ipi6_addr in struct in6_pktinfo... $ECHO_C" >&6
22696 cat >conftest.$ac_ext <<_ACEOF
22697 #line $LINENO "configure"
22700 cat confdefs.h >>conftest.$ac_ext
22701 cat >>conftest.$ac_ext <<_ACEOF
22702 /* end confdefs.h. */
22704 #include <netinet/in.h>
22706 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22712 int foo = offsetof(struct in6_pktinfo, ipi6_addr)
22717 rm -f conftest.$ac_objext
22718 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22719 (eval $ac_compile) 2>&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } &&
22723 { ac_try='test -s conftest.$ac_objext'
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; }; then
22731 echo "$as_me: failed program was:" >&5
22732 sed 's/^/| /' conftest.$ac_ext >&5
22736 rm -f conftest.$ac_objext conftest.$ac_ext
22738 ac_safe_type=`echo "struct in6_pktinfo" | sed 'y% %_%'`
22739 if test "x$has_element" != "x"; then
22740 echo "$as_me:$LINENO: result: yes" >&5
22741 echo "${ECHO_T}yes" >&6
22742 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr=yes"
22744 echo "$as_me:$LINENO: result: no" >&5
22745 echo "${ECHO_T}no" >&6
22746 eval "ac_cv_type_${ac_safe_type}_has_ipi6_addr="
22749 if test "x$ac_cv_type_struct_in6_pktinfo_has_ipi6_addr" = "xyes"
22752 cat >>confdefs.h <<\_ACEOF
22753 #define HAVE_IN6_PKTINFO
22759 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22760 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22761 if test "${ac_cv_c_const+set}" = set; then
22762 echo $ECHO_N "(cached) $ECHO_C" >&6
22764 cat >conftest.$ac_ext <<_ACEOF
22765 #line $LINENO "configure"
22768 cat confdefs.h >>conftest.$ac_ext
22769 cat >>conftest.$ac_ext <<_ACEOF
22770 /* end confdefs.h. */
22775 /* FIXME: Include the comments suggested by Paul. */
22776 #ifndef __cplusplus
22777 /* Ultrix mips cc rejects this. */
22778 typedef int charset[2];
22780 /* SunOS 4.1.1 cc rejects this. */
22781 char const *const *ccp;
22783 /* NEC SVR4.0.2 mips cc rejects this. */
22784 struct point {int x, y;};
22785 static struct point const zero = {0,0};
22786 /* AIX XL C 1.02.0.0 rejects this.
22787 It does not let you subtract one const X* pointer from another in
22788 an arm of an if-expression whose if-part is not a constant
22790 const char *g = "string";
22791 ccp = &g + (g ? g-g : 0);
22792 /* HPUX 7.0 cc rejects these. */
22795 ccp = (char const *const *) p;
22796 { /* SCO 3.2v4 cc rejects this. */
22798 char const *s = 0 ? (char *) 0 : (char const *) 0;
22802 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22803 int x[] = {25, 17};
22804 const int *foo = &x[0];
22807 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22808 typedef const int *iptr;
22812 { /* AIX XL C 1.02.0.0 rejects this saying
22813 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22814 struct s { int j; const int *ap[3]; };
22815 struct s *b; b->j = 5;
22817 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22818 const int foo = 10;
22826 rm -f conftest.$ac_objext
22827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22828 (eval $ac_compile) 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } &&
22832 { ac_try='test -s conftest.$ac_objext'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; }; then
22840 echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22845 rm -f conftest.$ac_objext conftest.$ac_ext
22847 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22848 echo "${ECHO_T}$ac_cv_c_const" >&6
22849 if test $ac_cv_c_const = no; then
22851 cat >>confdefs.h <<\_ACEOF
22858 echo "$as_me:$LINENO: checking type of OS" >&5
22859 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22861 echo "$as_me:$LINENO: result: $OS" >&5
22862 echo "${ECHO_T}$OS" >&6
22863 if test "$OS" = "OS/2"; then
22870 if test "x$GCC" = "xyes"; then
22871 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22874 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22875 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22876 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22877 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22878 CFLAGS="$CFLAGS $devflags"
22880 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22881 echo "${ECHO_T}yes. Using $devflags" >&6
22884 CFLAGS="$CFLAGS -DNDEBUG"
22886 echo "$as_me:$LINENO: result: no." >&5
22887 echo "${ECHO_T}no." >&6
22891 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22892 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22893 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22894 echo $ECHO_N "(cached) $ECHO_C" >&6
22896 ac_check_lib_save_LIBS=$LIBS
22897 LIBS="-lcrypt $LIBS"
22898 cat >conftest.$ac_ext <<_ACEOF
22899 #line $LINENO "configure"
22902 cat confdefs.h >>conftest.$ac_ext
22903 cat >>conftest.$ac_ext <<_ACEOF
22904 /* end confdefs.h. */
22906 /* Override any gcc2 internal prototype to avoid an error. */
22910 /* We use char because int might match the return type of a gcc2
22911 builtin and then its argument prototype would still apply. */
22921 rm -f conftest.$ac_objext conftest$ac_exeext
22922 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22923 (eval $ac_link) 2>&5
22925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22926 (exit $ac_status); } &&
22927 { ac_try='test -s conftest$ac_exeext'
22928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22929 (eval $ac_try) 2>&5
22931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22932 (exit $ac_status); }; }; then
22933 ac_cv_lib_crypt_crypt=yes
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22938 ac_cv_lib_crypt_crypt=no
22940 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22941 LIBS=$ac_check_lib_save_LIBS
22943 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22944 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22945 if test $ac_cv_lib_crypt_crypt = yes; then
22950 if test "$CRYPTLIB" != ""; then
22952 cat >>confdefs.h <<\_ACEOF
22957 echo "$as_me:$LINENO: checking for crypt" >&5
22958 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22959 if test "${ac_cv_func_crypt+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 cat >conftest.$ac_ext <<_ACEOF
22963 #line $LINENO "configure"
22966 cat confdefs.h >>conftest.$ac_ext
22967 cat >>conftest.$ac_ext <<_ACEOF
22968 /* end confdefs.h. */
22969 /* System header to define __stub macros and hopefully few prototypes,
22970 which can conflict with char crypt (); below.
22971 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22972 <limits.h> exists even on freestanding compilers. */
22974 # include <limits.h>
22976 # include <assert.h>
22978 /* Override any gcc2 internal prototype to avoid an error. */
22983 /* We use char because int might match the return type of a gcc2
22984 builtin and then its argument prototype would still apply. */
22986 /* The GNU C library defines this for functions which it implements
22987 to always fail with ENOSYS. Some functions are actually named
22988 something starting with __ and the normal name is an alias. */
22989 #if defined (__stub_crypt) || defined (__stub___crypt)
22992 char (*f) () = crypt;
23006 rm -f conftest.$ac_objext conftest$ac_exeext
23007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23008 (eval $ac_link) 2>&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -s conftest$ac_exeext'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; }; then
23018 ac_cv_func_crypt=yes
23020 echo "$as_me: failed program was:" >&5
23021 sed 's/^/| /' conftest.$ac_ext >&5
23023 ac_cv_func_crypt=no
23025 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23027 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23028 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23029 if test $ac_cv_func_crypt = yes; then
23031 cat >>confdefs.h <<\_ACEOF
23039 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23040 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23041 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23042 echo $ECHO_N "(cached) $ECHO_C" >&6
23044 ac_check_lib_save_LIBS=$LIBS
23045 LIBS="-lcipher $LIBS"
23046 cat >conftest.$ac_ext <<_ACEOF
23047 #line $LINENO "configure"
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23054 /* Override any gcc2 internal prototype to avoid an error. */
23058 /* We use char because int might match the return type of a gcc2
23059 builtin and then its argument prototype would still apply. */
23069 rm -f conftest.$ac_objext conftest$ac_exeext
23070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23071 (eval $ac_link) 2>&5
23073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23074 (exit $ac_status); } &&
23075 { ac_try='test -s conftest$ac_exeext'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; }; then
23081 ac_cv_lib_cipher_setkey=yes
23083 echo "$as_me: failed program was:" >&5
23084 sed 's/^/| /' conftest.$ac_ext >&5
23086 ac_cv_lib_cipher_setkey=no
23088 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23089 LIBS=$ac_check_lib_save_LIBS
23091 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23092 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23093 if test $ac_cv_lib_cipher_setkey = yes; then
23094 CRYPTLIB="${CRYPTLIB} -lcipher"
23100 if test "x$WITH_SNMP" = "xyes"; then
23105 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23106 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23108 cat >conftest.$ac_ext <<_ACEOF
23109 #line $LINENO "configure"
23112 cat confdefs.h >>conftest.$ac_ext
23113 cat >>conftest.$ac_ext <<_ACEOF
23114 /* end confdefs.h. */
23116 #ifdef HAVE_SYS_TYPES_H
23117 #include <sys/types.h>
23119 #ifdef HAVE_STDINT_H
23120 #include <stdint.h>
23122 #ifdef HAVE_STDIO_H
23125 #ifdef HAVE_NETDB_H
23128 #ifdef HAVE_UNISTD_H
23129 #include <unistd.h>
23131 #include <ucd-snmp/ucd-snmp-config.h>
23132 #include <ucd-snmp/asn1.h>
23133 #include <ucd-snmp/snmp.h>
23134 #include <ucd-snmp/snmp_impl.h>
23143 rm -f conftest.$ac_objext
23144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23145 (eval $ac_compile) 2>&5
23147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } &&
23149 { ac_try='test -s conftest.$ac_objext'
23150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23151 (eval $ac_try) 2>&5
23153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154 (exit $ac_status); }; }; then
23155 SNMP_INCLUDE="";ucdsnmp=yes
23157 echo "$as_me: failed program was:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23162 rm -f conftest.$ac_objext conftest.$ac_ext
23164 if test "x$ucdsnmp" = "x"; then
23165 old_CFLAGS="$CFLAGS"
23166 for try in /usr/include /usr/local/include $snmp_include_dir; do
23167 CFLAGS="$old_CFLAGS -I$try"
23168 cat >conftest.$ac_ext <<_ACEOF
23169 #line $LINENO "configure"
23172 cat confdefs.h >>conftest.$ac_ext
23173 cat >>conftest.$ac_ext <<_ACEOF
23174 /* end confdefs.h. */
23176 #ifdef HAVE_SYS_TYPES_H
23177 #include <sys/types.h>
23179 #ifdef HAVE_STDINT_H
23180 #include <stdint.h>
23182 #ifdef HAVE_STDIO_H
23185 #ifdef HAVE_NETDB_H
23188 #ifdef HAVE_UNISTD_H
23189 #include <unistd.h>
23191 #include <ucd-snmp/ucd-snmp-config.h>
23192 #include <ucd-snmp/asn1.h>
23193 #include <ucd-snmp/snmp.h>
23194 #include <ucd-snmp/snmp_impl.h>
23203 rm -f conftest.$ac_objext
23204 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23205 (eval $ac_compile) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); } &&
23209 { ac_try='test -s conftest.$ac_objext'
23210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23211 (eval $ac_try) 2>&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; }; then
23215 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23222 rm -f conftest.$ac_objext conftest.$ac_ext
23223 if test "x$ucdsnmp" != "x"; then
23227 CFLAGS="$old_CFLAGS"
23230 if test "x$ucdsnmp" = "x"; then
23231 old_CFLAGS="$CFLAGS"
23232 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23233 CFLAGS="$old_CFLAGS -I$try"
23234 cat >conftest.$ac_ext <<_ACEOF
23235 #line $LINENO "configure"
23238 cat confdefs.h >>conftest.$ac_ext
23239 cat >>conftest.$ac_ext <<_ACEOF
23240 /* end confdefs.h. */
23242 #ifdef HAVE_SYS_TYPES_H
23243 #include <sys/types.h>
23245 #ifdef HAVE_STDINT_H
23246 #include <stdint.h>
23248 #ifdef HAVE_STDIO_H
23251 #ifdef HAVE_NETDB_H
23254 #ifdef HAVE_UNISTD_H
23255 #include <unistd.h>
23259 #include <snmp_impl.h>
23268 rm -f conftest.$ac_objext
23269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23270 (eval $ac_compile) 2>&5
23272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273 (exit $ac_status); } &&
23274 { ac_try='test -s conftest.$ac_objext'
23275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23276 (eval $ac_try) 2>&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); }; }; then
23280 SNMP_INCLUDE="";ucdsnmp=no
23282 echo "$as_me: failed program was:" >&5
23283 sed 's/^/| /' conftest.$ac_ext >&5
23287 rm -f conftest.$ac_objext conftest.$ac_ext
23288 if test "x$ucdsnmp" != "x"; then
23292 CFLAGS="$old_CFLAGS"
23295 if test "x$ucdsnmp" = "x"; then
23296 old_CFLAGS="$CFLAGS"
23297 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23298 CFLAGS="$old_CFLAGS -I$try"
23299 cat >conftest.$ac_ext <<_ACEOF
23300 #line $LINENO "configure"
23303 cat confdefs.h >>conftest.$ac_ext
23304 cat >>conftest.$ac_ext <<_ACEOF
23305 /* end confdefs.h. */
23307 #ifdef HAVE_SYS_TYPES_H
23308 #include <sys/types.h>
23310 #ifdef HAVE_STDINT_H
23311 #include <stdint.h>
23313 #ifdef HAVE_STDIO_H
23316 #ifdef HAVE_NETDB_H
23319 #ifdef HAVE_UNISTD_H
23320 #include <unistd.h>
23324 #include <snmp_impl.h>
23333 rm -f conftest.$ac_objext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23335 (eval $ac_compile) 2>&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
23339 { ac_try='test -s conftest.$ac_objext'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; }; then
23345 SNMP_INCLUDE="-I$try";ucdsnmp=no
23347 echo "$as_me: failed program was:" >&5
23348 sed 's/^/| /' conftest.$ac_ext >&5
23352 rm -f conftest.$ac_objext conftest.$ac_ext
23353 if test "x$ucdsnmp" != "x"; then
23357 CFLAGS="$old_CFLAGS"
23360 if test "x$ucdsnmp" = "x"; then
23361 echo "$as_me:$LINENO: result: no" >&5
23362 echo "${ECHO_T}no" >&6
23364 if test "x$ucdsnmp" = "xyes"; then
23365 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23366 echo "${ECHO_T}(ucd-snmp)yes" >&6
23368 cat >>confdefs.h <<\_ACEOF
23369 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
23373 echo "$as_me:$LINENO: result: yes" >&5
23374 echo "${ECHO_T}yes" >&6
23376 cat >>confdefs.h <<\_ACEOF
23377 #define HAVE_ASN1_SNMP_SNMPIMPL_H
23381 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23382 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23385 LIBS="$old_LIBS -lsnmp"
23386 cat >conftest.$ac_ext <<_ACEOF
23387 #line $LINENO "configure"
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23393 extern char snmp_build_var_op();
23397 snmp_build_var_op()
23402 rm -f conftest.$ac_objext conftest$ac_exeext
23403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23404 (eval $ac_link) 2>&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
23408 { ac_try='test -s conftest$ac_exeext'
23409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23410 (eval $ac_try) 2>&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); }; }; then
23416 echo "$as_me: failed program was:" >&5
23417 sed 's/^/| /' conftest.$ac_ext >&5
23421 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23423 if test "x$SNMP_LIBS" = "x"; then
23424 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23425 LIBS="$old_LIBS -L$try -lsnmp"
23426 cat >conftest.$ac_ext <<_ACEOF
23427 #line $LINENO "configure"
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 extern char snmp_build_var_op();
23437 snmp_build_var_op()
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23444 (eval $ac_link) 2>&5
23446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23447 (exit $ac_status); } &&
23448 { ac_try='test -s conftest$ac_exeext'
23449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23450 (eval $ac_try) 2>&5
23452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23453 (exit $ac_status); }; }; then
23454 SNMP_LIBS="-L$try -lsnmp"
23456 echo "$as_me: failed program was:" >&5
23457 sed 's/^/| /' conftest.$ac_ext >&5
23461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23462 if test "x$SNMP_LIBS" != "x"; then
23465 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23466 cat >conftest.$ac_ext <<_ACEOF
23467 #line $LINENO "configure"
23470 cat confdefs.h >>conftest.$ac_ext
23471 cat >>conftest.$ac_ext <<_ACEOF
23472 /* end confdefs.h. */
23473 extern char snmp_build_var_op();
23477 snmp_build_var_op()
23482 rm -f conftest.$ac_objext conftest$ac_exeext
23483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23484 (eval $ac_link) 2>&5
23486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23487 (exit $ac_status); } &&
23488 { ac_try='test -s conftest$ac_exeext'
23489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23490 (eval $ac_try) 2>&5
23492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23493 (exit $ac_status); }; }; then
23494 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23496 echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23501 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23502 if test "x$SNMP_LIBS" != "x"; then
23505 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23506 cat >conftest.$ac_ext <<_ACEOF
23507 #line $LINENO "configure"
23510 cat confdefs.h >>conftest.$ac_ext
23511 cat >>conftest.$ac_ext <<_ACEOF
23512 /* end confdefs.h. */
23513 extern char snmp_build_var_op();
23517 snmp_build_var_op()
23522 rm -f conftest.$ac_objext conftest$ac_exeext
23523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23524 (eval $ac_link) 2>&5
23526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23527 (exit $ac_status); } &&
23528 { ac_try='test -s conftest$ac_exeext'
23529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23530 (eval $ac_try) 2>&5
23532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23533 (exit $ac_status); }; }; then
23534 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23536 echo "$as_me: failed program was:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23541 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23542 if test "x$SNMP_LIBS" != "x"; then
23549 CFLAGS="$old_CFLAGS"
23550 if test "x$SNMP_LIBS" = "x"; then
23551 echo "$as_me:$LINENO: result: no" >&5
23552 echo "${ECHO_T}no" >&6
23555 echo "$as_me:$LINENO: result: yes" >&5
23556 echo "${ECHO_T}yes" >&6
23558 cat >>confdefs.h <<\_ACEOF
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_LIBSNMP
23573 cat >>confdefs.h <<\_ACEOF
23578 cat >>confdefs.h <<\_ACEOF
23579 #define SYSVSTYLE 2
23583 cat >>confdefs.h <<\_ACEOF
23587 gethostbyaddrrstyle=""
23588 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23589 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23593 cat >>confdefs.h <<\_ACEOF
23594 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23597 gethostbyaddrrstyle=BSD
23598 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23599 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23602 if test "x$gethostbyaddrrstyle" = "x"; then
23603 cat >conftest.$ac_ext <<_ACEOF
23604 #line $LINENO "configure"
23607 cat confdefs.h >>conftest.$ac_ext
23608 cat >>conftest.$ac_ext <<_ACEOF
23609 /* end confdefs.h. */
23617 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23622 rm -f conftest.$ac_objext conftest$ac_exeext
23623 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23624 (eval $ac_link) 2>&5
23626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23627 (exit $ac_status); } &&
23628 { ac_try='test -s conftest$ac_exeext'
23629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23630 (eval $ac_try) 2>&5
23632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23633 (exit $ac_status); }; }; then
23636 cat >>confdefs.h <<\_ACEOF
23637 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23640 gethostbyaddrrstyle=GNU
23643 echo "$as_me: failed program was:" >&5
23644 sed 's/^/| /' conftest.$ac_ext >&5
23647 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23649 if test "x$gethostbyaddrrstyle" = "x"; then
23650 cat >conftest.$ac_ext <<_ACEOF
23651 #line $LINENO "configure"
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23664 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23669 rm -f conftest.$ac_objext conftest$ac_exeext
23670 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23671 (eval $ac_link) 2>&5
23673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23674 (exit $ac_status); } &&
23675 { ac_try='test -s conftest$ac_exeext'
23676 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23677 (eval $ac_try) 2>&5
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23683 cat >>confdefs.h <<\_ACEOF
23684 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23687 gethostbyaddrrstyle=SYSV
23690 echo "$as_me: failed program was:" >&5
23691 sed 's/^/| /' conftest.$ac_ext >&5
23694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23696 if test "x$gethostbyaddrrstyle" = "x"; then
23697 cat >conftest.$ac_ext <<_ACEOF
23698 #line $LINENO "configure"
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23711 gethostbyaddr(NULL, 0, 0)
23716 rm -f conftest.$ac_objext conftest$ac_exeext
23717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23718 (eval $ac_link) 2>&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
23722 { ac_try='test -s conftest$ac_exeext'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; }; then
23730 cat >>confdefs.h <<\_ACEOF
23731 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23734 gethostbyaddrrstyle=BSD
23737 echo "$as_me: failed program was:" >&5
23738 sed 's/^/| /' conftest.$ac_ext >&5
23741 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23744 if test "x$gethostbyaddrrstyle" = "x"; then
23745 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23746 echo "${ECHO_T}none! It must not exist, here." >&6
23748 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23749 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23752 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23753 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23754 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23757 gethostbynamerstyle=""
23758 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23759 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23760 cat >conftest.$ac_ext <<_ACEOF
23761 #line $LINENO "configure"
23764 cat confdefs.h >>conftest.$ac_ext
23765 cat >>conftest.$ac_ext <<_ACEOF
23766 /* end confdefs.h. */
23774 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23779 rm -f conftest.$ac_objext conftest$ac_exeext
23780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23781 (eval $ac_link) 2>&5
23783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23784 (exit $ac_status); } &&
23785 { ac_try='test -s conftest$ac_exeext'
23786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23787 (eval $ac_try) 2>&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); }; }; then
23793 cat >>confdefs.h <<\_ACEOF
23794 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23797 gethostbynamerstyle=GNU
23800 echo "$as_me: failed program was:" >&5
23801 sed 's/^/| /' conftest.$ac_ext >&5
23804 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23805 if test "x$gethostbynamerstyle" = "x"; then
23806 cat >conftest.$ac_ext <<_ACEOF
23807 #line $LINENO "configure"
23810 cat confdefs.h >>conftest.$ac_ext
23811 cat >>conftest.$ac_ext <<_ACEOF
23812 /* end confdefs.h. */
23820 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23825 rm -f conftest.$ac_objext conftest$ac_exeext
23826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23827 (eval $ac_link) 2>&5
23829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23830 (exit $ac_status); } &&
23831 { ac_try='test -s conftest$ac_exeext'
23832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23833 (eval $ac_try) 2>&5
23835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23836 (exit $ac_status); }; }; then
23839 cat >>confdefs.h <<\_ACEOF
23840 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23843 gethostbynamerstyle=SYSV
23846 echo "$as_me: failed program was:" >&5
23847 sed 's/^/| /' conftest.$ac_ext >&5
23850 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23852 if test "x$gethostbynamerstyle" = "x"; then
23853 cat >conftest.$ac_ext <<_ACEOF
23854 #line $LINENO "configure"
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23867 gethostbyname(NULL)
23872 rm -f conftest.$ac_objext conftest$ac_exeext
23873 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23874 (eval $ac_link) 2>&5
23876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } &&
23878 { ac_try='test -s conftest$ac_exeext'
23879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23880 (eval $ac_try) 2>&5
23882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23883 (exit $ac_status); }; }; then
23886 cat >>confdefs.h <<\_ACEOF
23887 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23890 gethostbynamerstyle=BSD
23893 echo "$as_me: failed program was:" >&5
23894 sed 's/^/| /' conftest.$ac_ext >&5
23897 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23900 if test "x$gethostbynamerstyle" = "x"; then
23901 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23902 echo "${ECHO_T}none! It must not exist, here." >&6
23904 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23905 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23908 if test "x$gethostbynamerstyle" = "xBSD"; then
23909 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23910 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23914 cat >>confdefs.h <<\_ACEOF
23915 #define POSIXSTYLE 1
23919 cat >>confdefs.h <<\_ACEOF
23920 #define SOLARISSTYLE 2
23924 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23925 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23926 cat >conftest.$ac_ext <<_ACEOF
23927 #line $LINENO "configure"
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23939 ctime_r(NULL, NULL, 0)
23944 rm -f conftest.$ac_objext conftest$ac_exeext
23945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23946 (eval $ac_link) 2>&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
23950 { ac_try='test -s conftest$ac_exeext'
23951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23952 (eval $ac_try) 2>&5
23954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); }; }; then
23958 cat >>confdefs.h <<\_ACEOF
23959 #define CTIMERSTYLE SOLARISSTYLE
23962 ctimerstyle="SOLARIS"
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23969 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23970 if test "x$ctimerstyle" = "x"; then
23971 cat >conftest.$ac_ext <<_ACEOF
23972 #line $LINENO "configure"
23975 cat confdefs.h >>conftest.$ac_ext
23976 cat >>conftest.$ac_ext <<_ACEOF
23977 /* end confdefs.h. */
23984 ctime_r(NULL, NULL)
23989 rm -f conftest.$ac_objext conftest$ac_exeext
23990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23991 (eval $ac_link) 2>&5
23993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23994 (exit $ac_status); } &&
23995 { ac_try='test -s conftest$ac_exeext'
23996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23997 (eval $ac_try) 2>&5
23999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24000 (exit $ac_status); }; }; then
24003 cat >>confdefs.h <<\_ACEOF
24004 #define CTIMERSTYLE POSIXSTYLE
24007 ctimerstyle="POSIX"
24010 echo "$as_me: failed program was:" >&5
24011 sed 's/^/| /' conftest.$ac_ext >&5
24014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
24017 if test "x$ctimerstyle" = "x"; then
24018 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24019 echo "${ECHO_T}none! It must not exist, here." >&6
24021 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24022 echo "${ECHO_T}${ctimerstyle}-style" >&6
24030 export top_builddir
24031 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24032 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24036 if test "x$INCLTDL" != "x";then
24037 INCLTDL='-I${top_builddir}/''libltdl'
24042 mysubdirs="$LIBLTDLPATH"
24043 if test "x$EXPERIMENTAL" = "xyes"; then
24044 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24045 mysubdirs=`echo $mysubdirs $bar`
24047 for bar in `cat src/modules/stable`; do
24048 if test -f src/modules/$bar/configure; then
24049 mysubdirs="$mysubdirs src/modules/$bar"
24055 if test "x$EXPERIMENTAL" = "xyes"; then
24056 for foo in `ls -1 src/modules | grep rlm_`; do
24057 MODULES="$MODULES $foo"
24060 for foo in `cat src/modules/stable`; do
24061 MODULES="$MODULES $foo"
24067 subdirs="$subdirs $mysubdirs"
24072 ac_config_commands="$ac_config_commands stamp-h"
24074 ac_config_commands="$ac_config_commands build-radpaths-h"
24076 ac_config_commands="$ac_config_commands main-chmod"
24078 ac_config_commands="$ac_config_commands scripts-chmod"
24084 USE_SHARED_LIBS=$enable_shared
24086 USE_STATIC_LIBS=$enable_static
24092 export CFLAGS LIBS LDFLAGS CPPFLAGS
24094 ac_config_files="$ac_config_files ./Make.inc ./src/include/build-radpaths-h ./src/main/Makefile ./src/main/checkrad.pl ./src/main/radlast ./src/main/radtest ./scripts/rc.radiusd ./scripts/radwatch ./scripts/check-radiusd-config ./scripts/radiusd.cron.daily ./scripts/radiusd.cron.monthly ./scripts/cryptpasswd ./raddb/dictionary ./raddb/radiusd.conf"
24095 cat >confcache <<\_ACEOF
24096 # This file is a shell script that caches the results of configure
24097 # tests run on this system so they can be shared between configure
24098 # scripts and configure runs, see configure's option --config-cache.
24099 # It is not useful on other systems. If it contains results you don't
24100 # want to keep, you may remove or edit it.
24102 # config.status only pays attention to the cache file if you give it
24103 # the --recheck option to rerun configure.
24105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24107 # following values.
24111 # The following way of writing the cache mishandles newlines in values,
24112 # but we know of no workaround that is simple, portable, and efficient.
24113 # So, don't put newlines in cache variables' values.
24114 # Ultrix sh set writes to stderr and can't be redirected directly,
24115 # and sets the high bit in the cache file unless we assign to the vars.
24118 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24120 # `set' does not quote correctly, so add quotes (double-quote
24121 # substitution turns \\\\ into \\, and sed turns \\ into \).
24124 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24127 # `set' quotes correctly as required by POSIX, so do not add quotes.
24129 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24136 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24138 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24140 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24141 if test -w $cache_file; then
24142 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24143 cat confcache >$cache_file
24145 echo "not updating unwritable cache $cache_file"
24150 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24151 # Let make expand exec_prefix.
24152 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24154 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24155 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24156 # trailing colons and then remove the whole line if VPATH becomes empty
24157 # (actually we leave an empty line to preserve line numbers).
24158 if test "x$srcdir" = x.; then
24159 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24160 s/:*\$(srcdir):*/:/;
24161 s/:*\${srcdir}:*/:/;
24163 s/^\([^=]*=[ ]*\):*/\1/;
24169 DEFS=-DHAVE_CONFIG_H
24173 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24174 # 1. Remove the extension, and $U if already installed.
24175 ac_i=`echo "$ac_i" |
24176 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24178 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24179 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24181 LIBOBJS=$ac_libobjs
24183 LTLIBOBJS=$ac_ltlibobjs
24187 : ${CONFIG_STATUS=./config.status}
24188 ac_clean_files_save=$ac_clean_files
24189 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24190 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24191 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24192 cat >$CONFIG_STATUS <<_ACEOF
24194 # Generated by $as_me.
24195 # Run this file to recreate the current configuration.
24196 # Compiler output produced by configure, useful for debugging
24197 # configure, is in config.log if it exists.
24200 ac_cs_recheck=false
24202 SHELL=\${CONFIG_SHELL-$SHELL}
24205 cat >>$CONFIG_STATUS <<\_ACEOF
24206 ## --------------------- ##
24207 ## M4sh Initialization. ##
24208 ## --------------------- ##
24210 # Be Bourne compatible
24211 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24214 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24215 # is contrary to our usage. Disable this feature.
24216 alias -g '${1+"$@"}'='"$@"'
24217 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24221 # Support unset when possible.
24222 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
24229 # Work around bugs in pre-3.0 UWIN ksh.
24230 $as_unset ENV MAIL MAILPATH
24237 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24238 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24239 LC_TELEPHONE LC_TIME
24241 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
24242 eval $as_var=C; export $as_var
24248 # Required to use basename.
24249 if expr a : '\(a\)' >/dev/null 2>&1; then
24255 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24256 as_basename=basename
24262 # Name of the executable.
24263 as_me=`$as_basename "$0" ||
24264 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24265 X"$0" : 'X\(//\)$' \| \
24266 X"$0" : 'X\(/\)$' \| \
24267 . : '\(.\)' 2>/dev/null ||
24269 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24270 /^X\/\(\/\/\)$/{ s//\1/; q; }
24271 /^X\/\(\/\).*/{ s//\1/; q; }
24275 # PATH needs CR, and LINENO needs CR and PATH.
24276 # Avoid depending upon Character Ranges.
24277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24280 as_cr_digits='0123456789'
24281 as_cr_alnum=$as_cr_Letters$as_cr_digits
24283 # The user is always right.
24284 if test "${PATH_SEPARATOR+set}" != set; then
24285 echo "#! /bin/sh" >conf$$.sh
24286 echo "exit 0" >>conf$$.sh
24288 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24297 as_lineno_1=$LINENO
24298 as_lineno_2=$LINENO
24299 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24300 test "x$as_lineno_1" != "x$as_lineno_2" &&
24301 test "x$as_lineno_3" = "x$as_lineno_2" || {
24302 # Find who we are. Look in the path if we contain no path at all
24305 *[\\/]* ) as_myself=$0 ;;
24306 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24307 for as_dir in $PATH
24310 test -z "$as_dir" && as_dir=.
24311 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24316 # We did not find ourselves, most probably we were run as `sh COMMAND'
24317 # in which case we are not to be found in the path.
24318 if test "x$as_myself" = x; then
24321 if test ! -f "$as_myself"; then
24322 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24323 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24324 { (exit 1); exit 1; }; }
24326 case $CONFIG_SHELL in
24328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24329 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24332 test -z "$as_dir" && as_dir=.
24333 for as_base in sh bash ksh sh5; do
24336 if ("$as_dir/$as_base" -c '
24337 as_lineno_1=$LINENO
24338 as_lineno_2=$LINENO
24339 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24340 test "x$as_lineno_1" != "x$as_lineno_2" &&
24341 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24342 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24343 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24344 CONFIG_SHELL=$as_dir/$as_base
24345 export CONFIG_SHELL
24346 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24354 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24355 # uniformly replaced by the line number. The first 'sed' inserts a
24356 # line-number line before each line; the second 'sed' does the real
24357 # work. The second script uses 'N' to pair each line-number line
24358 # with the numbered line, and appends trailing '-' during
24359 # substitution so that $LINENO is not a special case at line end.
24360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24361 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24362 sed '=' <$as_myself |
24367 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24370 s,^['$as_cr_digits']*\n,,
24371 ' >$as_me.lineno &&
24372 chmod +x $as_me.lineno ||
24373 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24374 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24375 { (exit 1); exit 1; }; }
24377 # Don't try to exec as it changes $[0], causing all sort of problems
24378 # (the dirname of $[0] is not the place where we might find the
24379 # original and so on. Autoconf is especially sensible to this).
24381 # Exit status is that of the last command.
24386 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24387 *c*,-n*) ECHO_N= ECHO_C='
24389 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24390 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24393 if expr a : '\(a\)' >/dev/null 2>&1; then
24399 rm -f conf$$ conf$$.exe conf$$.file
24401 if ln -s conf$$.file conf$$ 2>/dev/null; then
24402 # We could just check for DJGPP; but this test a) works b) is more generic
24403 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24404 if test -f conf$$.exe; then
24405 # Don't use ln at all; we don't have any links
24410 elif ln conf$$.file conf$$ 2>/dev/null; then
24415 rm -f conf$$ conf$$.exe conf$$.file
24417 if mkdir -p . 2>/dev/null; then
24423 as_executable_p="test -f"
24425 # Sed expression to map a string onto a valid CPP name.
24426 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
24428 # Sed expression to map a string onto a valid variable name.
24429 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
24433 # We need space, tab and new line, in precisely that order.
24443 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24444 # report actual input values of CONFIG_FILES etc. instead of their
24445 # values after options handling. Logging --version etc. is OK.
24449 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24450 ## Running $as_me. ##
24455 This file was extended by $as_me, which was
24456 generated by GNU Autoconf 2.57. Invocation command line was
24458 CONFIG_FILES = $CONFIG_FILES
24459 CONFIG_HEADERS = $CONFIG_HEADERS
24460 CONFIG_LINKS = $CONFIG_LINKS
24461 CONFIG_COMMANDS = $CONFIG_COMMANDS
24465 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24469 # Files that config.status was made for.
24470 if test -n "$ac_config_files"; then
24471 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24474 if test -n "$ac_config_headers"; then
24475 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24478 if test -n "$ac_config_links"; then
24479 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24482 if test -n "$ac_config_commands"; then
24483 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24486 cat >>$CONFIG_STATUS <<\_ACEOF
24489 \`$as_me' instantiates files from templates according to the
24490 current configuration.
24492 Usage: $0 [OPTIONS] [FILE]...
24494 -h, --help print this help, then exit
24495 -V, --version print version number, then exit
24496 -q, --quiet do not print progress messages
24497 -d, --debug don't remove temporary files
24498 --recheck update $as_me by reconfiguring in the same conditions
24499 --file=FILE[:TEMPLATE]
24500 instantiate the configuration file FILE
24501 --header=FILE[:TEMPLATE]
24502 instantiate the configuration header FILE
24504 Configuration files:
24507 Configuration headers:
24510 Configuration commands:
24513 Report bugs to <bug-autoconf@gnu.org>."
24516 cat >>$CONFIG_STATUS <<_ACEOF
24519 configured by $0, generated by GNU Autoconf 2.57,
24520 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24522 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
24523 Free Software Foundation, Inc.
24524 This config.status script is free software; the Free Software Foundation
24525 gives unlimited permission to copy, distribute and modify it."
24529 cat >>$CONFIG_STATUS <<\_ACEOF
24530 # If no file are specified by the user, then we need to provide default
24531 # value. By we need to know if files were specified by the user.
24537 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24538 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24546 *) # This is not an option, so the user has probably given explicit
24549 ac_need_defaults=false;;
24553 # Handling of the options.
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24558 --version | --vers* | -V )
24559 echo "$ac_cs_version"; exit 0 ;;
24561 # Conflict between --help and --header
24562 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24563 Try \`$0 --help' for more information." >&5
24564 echo "$as_me: error: ambiguous option: $1
24565 Try \`$0 --help' for more information." >&2;}
24566 { (exit 1); exit 1; }; };;
24567 --help | --hel | -h )
24568 echo "$ac_cs_usage"; exit 0 ;;
24569 --debug | --d* | -d )
24571 --file | --fil | --fi | --f )
24573 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24574 ac_need_defaults=false;;
24575 --header | --heade | --head | --hea )
24577 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24578 ac_need_defaults=false;;
24579 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24580 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24583 # This is an error.
24584 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24585 Try \`$0 --help' for more information." >&5
24586 echo "$as_me: error: unrecognized option: $1
24587 Try \`$0 --help' for more information." >&2;}
24588 { (exit 1); exit 1; }; } ;;
24590 *) ac_config_targets="$ac_config_targets $1" ;;
24596 ac_configure_extra_args=
24598 if $ac_cs_silent; then
24600 ac_configure_extra_args="$ac_configure_extra_args --silent"
24604 cat >>$CONFIG_STATUS <<_ACEOF
24605 if \$ac_cs_recheck; then
24606 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24607 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24616 cat >>$CONFIG_STATUS <<\_ACEOF
24617 for ac_config_target in $ac_config_targets
24619 case "$ac_config_target" in
24620 # Handling of arguments.
24621 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24622 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24623 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24624 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24625 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24626 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24627 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24628 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24629 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24630 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24631 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24632 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24633 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24634 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24635 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24636 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24637 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24638 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24639 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24640 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24641 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24642 { (exit 1); exit 1; }; };;
24646 # If the user did not use the arguments to specify the items to instantiate,
24647 # then the envvar interface is used. Set only those that are not.
24648 # We use the long form for the default assignment because of an extremely
24649 # bizarre bug on SunOS 4.1.3.
24650 if $ac_need_defaults; then
24651 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24652 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24653 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24656 # Have a temporary directory for convenience. Make it in the build tree
24657 # simply because there is no reason to put it here, and in addition,
24658 # creating and moving files from /tmp can sometimes cause problems.
24659 # Create a temporary directory, and hook for its removal unless debugging.
24662 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24663 trap '{ (exit 1); exit 1; }' 1 2 13 15
24666 # Create a (secure) tmp directory for tmp files.
24669 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24670 test -n "$tmp" && test -d "$tmp"
24673 tmp=./confstat$$-$RANDOM
24674 (umask 077 && mkdir $tmp)
24677 echo "$me: cannot create a temporary directory in ." >&2
24678 { (exit 1); exit 1; }
24683 cat >>$CONFIG_STATUS <<_ACEOF
24686 # CONFIG_FILES section.
24689 # No need to generate the scripts if there are no CONFIG_FILES.
24690 # This happens for instance when ./config.status config.h
24691 if test -n "\$CONFIG_FILES"; then
24692 # Protect against being on the right side of a sed subst in config.status.
24693 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24694 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24695 s,@SHELL@,$SHELL,;t t
24696 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24697 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24698 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24699 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24700 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24701 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24702 s,@exec_prefix@,$exec_prefix,;t t
24703 s,@prefix@,$prefix,;t t
24704 s,@program_transform_name@,$program_transform_name,;t t
24705 s,@bindir@,$bindir,;t t
24706 s,@sbindir@,$sbindir,;t t
24707 s,@libexecdir@,$libexecdir,;t t
24708 s,@datadir@,$datadir,;t t
24709 s,@sysconfdir@,$sysconfdir,;t t
24710 s,@sharedstatedir@,$sharedstatedir,;t t
24711 s,@localstatedir@,$localstatedir,;t t
24712 s,@libdir@,$libdir,;t t
24713 s,@includedir@,$includedir,;t t
24714 s,@oldincludedir@,$oldincludedir,;t t
24715 s,@infodir@,$infodir,;t t
24716 s,@mandir@,$mandir,;t t
24717 s,@build_alias@,$build_alias,;t t
24718 s,@host_alias@,$host_alias,;t t
24719 s,@target_alias@,$target_alias,;t t
24720 s,@DEFS@,$DEFS,;t t
24721 s,@ECHO_C@,$ECHO_C,;t t
24722 s,@ECHO_N@,$ECHO_N,;t t
24723 s,@ECHO_T@,$ECHO_T,;t t
24724 s,@LIBS@,$LIBS,;t t
24726 s,@CFLAGS@,$CFLAGS,;t t
24727 s,@LDFLAGS@,$LDFLAGS,;t t
24728 s,@CPPFLAGS@,$CPPFLAGS,;t t
24729 s,@ac_ct_CC@,$ac_ct_CC,;t t
24730 s,@EXEEXT@,$EXEEXT,;t t
24731 s,@OBJEXT@,$OBJEXT,;t t
24733 s,@EGREP@,$EGREP,;t t
24734 s,@RANLIB@,$RANLIB,;t t
24735 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24736 s,@abs_top_builddir@,$abs_top_builddir,;t t
24737 s,@GMAKE@,$GMAKE,;t t
24738 s,@MAKE@,$MAKE,;t t
24739 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24740 s,@LIBTOOL@,$LIBTOOL,;t t
24741 s,@build@,$build,;t t
24742 s,@build_cpu@,$build_cpu,;t t
24743 s,@build_vendor@,$build_vendor,;t t
24744 s,@build_os@,$build_os,;t t
24745 s,@host@,$host,;t t
24746 s,@host_cpu@,$host_cpu,;t t
24747 s,@host_vendor@,$host_vendor,;t t
24748 s,@host_os@,$host_os,;t t
24749 s,@LN_S@,$LN_S,;t t
24750 s,@ECHO@,$ECHO,;t t
24752 s,@ac_ct_AR@,$ac_ct_AR,;t t
24753 s,@STRIP@,$STRIP,;t t
24754 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24756 s,@CXXFLAGS@,$CXXFLAGS,;t t
24757 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24758 s,@CXXCPP@,$CXXCPP,;t t
24760 s,@FFLAGS@,$FFLAGS,;t t
24761 s,@ac_ct_F77@,$ac_ct_F77,;t t
24762 s,@logdir@,$logdir,;t t
24763 s,@radacctdir@,$radacctdir,;t t
24764 s,@raddbdir@,$raddbdir,;t t
24765 s,@PERL@,$PERL,;t t
24766 s,@SNMPGET@,$SNMPGET,;t t
24767 s,@SNMPWALK@,$SNMPWALK,;t t
24768 s,@RUSERS@,$RUSERS,;t t
24769 s,@ACLOCAL@,$ACLOCAL,;t t
24770 s,@AUTOCONF@,$AUTOCONF,;t t
24771 s,@AUTOHEADER@,$AUTOHEADER,;t t
24772 s,@LOCATE@,$LOCATE,;t t
24773 s,@DIRNAME@,$DIRNAME,;t t
24774 s,@GREP@,$GREP,;t t
24775 s,@REGEX@,$REGEX,;t t
24776 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24777 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24778 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24779 s,@LIBPREFIX@,$LIBPREFIX,;t t
24780 s,@CRYPTLIB@,$CRYPTLIB,;t t
24781 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24782 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24783 s,@HOSTINFO@,$HOSTINFO,;t t
24784 s,@LIBLTDL@,$LIBLTDL,;t t
24785 s,@INCLTDL@,$INCLTDL,;t t
24786 s,@subdirs@,$subdirs,;t t
24787 s,@MODULES@,$MODULES,;t t
24788 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24789 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24790 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24791 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24792 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24793 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24794 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24795 s,@LIBOBJS@,$LIBOBJS,;t t
24796 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24801 cat >>$CONFIG_STATUS <<\_ACEOF
24802 # Split the substitutions into bite-sized pieces for seds with
24803 # small command number limits, like on Digital OSF/1 and HP-UX.
24804 ac_max_sed_lines=48
24805 ac_sed_frag=1 # Number of current file.
24806 ac_beg=1 # First line for current file.
24807 ac_end=$ac_max_sed_lines # Line after last line for current file.
24810 while $ac_more_lines; do
24811 if test $ac_beg -gt 1; then
24812 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24814 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24816 if test ! -s $tmp/subs.frag; then
24817 ac_more_lines=false
24819 # The purpose of the label and of the branching condition is to
24820 # speed up the sed processing (if there are no `@' at all, there
24821 # is no need to browse any of the substitutions).
24822 # These are the two extra sed commands mentioned above.
24824 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24825 if test -z "$ac_sed_cmds"; then
24826 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24828 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24830 ac_sed_frag=`expr $ac_sed_frag + 1`
24832 ac_end=`expr $ac_end + $ac_max_sed_lines`
24835 if test -z "$ac_sed_cmds"; then
24838 fi # test -n "$CONFIG_FILES"
24841 cat >>$CONFIG_STATUS <<\_ACEOF
24842 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24843 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24845 - | *:- | *:-:* ) # input from stdin
24847 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24848 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24849 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24850 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24851 * ) ac_file_in=$ac_file.in ;;
24854 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24855 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24856 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24857 X"$ac_file" : 'X\(//\)[^/]' \| \
24858 X"$ac_file" : 'X\(//\)$' \| \
24859 X"$ac_file" : 'X\(/\)' \| \
24860 . : '\(.\)' 2>/dev/null ||
24862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24864 /^X\(\/\/\)$/{ s//\1/; q; }
24865 /^X\(\/\).*/{ s//\1/; q; }
24867 { if $as_mkdir_p; then
24872 while test ! -d "$as_dir"; do
24873 as_dirs="$as_dir $as_dirs"
24874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24876 X"$as_dir" : 'X\(//\)[^/]' \| \
24877 X"$as_dir" : 'X\(//\)$' \| \
24878 X"$as_dir" : 'X\(/\)' \| \
24879 . : '\(.\)' 2>/dev/null ||
24881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24883 /^X\(\/\/\)$/{ s//\1/; q; }
24884 /^X\(\/\).*/{ s//\1/; q; }
24887 test ! -n "$as_dirs" || mkdir $as_dirs
24888 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24889 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24890 { (exit 1); exit 1; }; }; }
24894 if test "$ac_dir" != .; then
24895 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24896 # A "../" for each directory in $ac_dir_suffix.
24897 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24899 ac_dir_suffix= ac_top_builddir=
24903 .) # No --srcdir option. We are building in place.
24905 if test -z "$ac_top_builddir"; then
24908 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24910 [\\/]* | ?:[\\/]* ) # Absolute path.
24911 ac_srcdir=$srcdir$ac_dir_suffix;
24912 ac_top_srcdir=$srcdir ;;
24913 *) # Relative path.
24914 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24915 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24917 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24919 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24920 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24921 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24922 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24926 if test x"$ac_file" != x-; then
24927 { echo "$as_me:$LINENO: creating $ac_file" >&5
24928 echo "$as_me: creating $ac_file" >&6;}
24931 # Let's still pretend it is `configure' which instantiates (i.e., don't
24932 # use $as_me), people would be surprised to read:
24933 # /* config.h. Generated by config.status. */
24934 if test x"$ac_file" = x-; then
24937 configure_input="$ac_file. "
24939 configure_input=$configure_input"Generated from `echo $ac_file_in |
24940 sed 's,.*/,,'` by configure."
24942 # First look for the input files in the build tree, otherwise in the
24944 ac_file_inputs=`IFS=:
24945 for f in $ac_file_in; do
24947 -) echo $tmp/stdin ;;
24949 # Absolute (can't be DOS-style, as IFS=:)
24950 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24951 echo "$as_me: error: cannot find input file: $f" >&2;}
24952 { (exit 1); exit 1; }; }
24955 if test -f "$f"; then
24958 elif test -f "$srcdir/$f"; then
24963 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24964 echo "$as_me: error: cannot find input file: $f" >&2;}
24965 { (exit 1); exit 1; }; }
24968 done` || { (exit 1); exit 1; }
24970 cat >>$CONFIG_STATUS <<_ACEOF
24974 cat >>$CONFIG_STATUS <<\_ACEOF
24976 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24977 s,@configure_input@,$configure_input,;t t
24978 s,@srcdir@,$ac_srcdir,;t t
24979 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24980 s,@top_srcdir@,$ac_top_srcdir,;t t
24981 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24982 s,@builddir@,$ac_builddir,;t t
24983 s,@abs_builddir@,$ac_abs_builddir,;t t
24984 s,@top_builddir@,$ac_top_builddir,;t t
24985 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24986 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24988 if test x"$ac_file" != x-; then
24989 mv $tmp/out $ac_file
24997 cat >>$CONFIG_STATUS <<\_ACEOF
25000 # CONFIG_HEADER section.
25003 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25004 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25006 # ac_d sets the value in "#define NAME VALUE" lines.
25007 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25008 ac_dB='[ ].*$,\1#\2'
25011 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25012 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25013 ac_uB='$,\1#\2define\3'
25017 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25018 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25020 - | *:- | *:-:* ) # input from stdin
25022 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25023 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25024 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25025 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25026 * ) ac_file_in=$ac_file.in ;;
25029 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25030 echo "$as_me: creating $ac_file" >&6;}
25032 # First look for the input files in the build tree, otherwise in the
25034 ac_file_inputs=`IFS=:
25035 for f in $ac_file_in; do
25037 -) echo $tmp/stdin ;;
25039 # Absolute (can't be DOS-style, as IFS=:)
25040 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25041 echo "$as_me: error: cannot find input file: $f" >&2;}
25042 { (exit 1); exit 1; }; }
25045 if test -f "$f"; then
25048 elif test -f "$srcdir/$f"; then
25053 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25054 echo "$as_me: error: cannot find input file: $f" >&2;}
25055 { (exit 1); exit 1; }; }
25058 done` || { (exit 1); exit 1; }
25059 # Remove the trailing spaces.
25060 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25064 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25065 # `conftest.undefs', that substitutes the proper values into
25066 # config.h.in to produce config.h. The first handles `#define'
25067 # templates, and the second `#undef' templates.
25068 # And first: Protect against being on the right side of a sed subst in
25069 # config.status. Protect against being in an unquoted here document
25070 # in config.status.
25071 rm -f conftest.defines conftest.undefs
25072 # Using a here document instead of a string reduces the quoting nightmare.
25073 # Putting comments in sed scripts is not portable.
25075 # `end' is used to avoid that the second main sed command (meant for
25076 # 0-ary CPP macros) applies to n-ary macro definitions.
25077 # See the Autoconf documentation for `clear'.
25078 cat >confdef2sed.sed <<\_ACEOF
25083 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25085 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25088 # If some macros were called several times there might be several times
25089 # the same #defines, which is useless. Nevertheless, we may not want to
25090 # sort them, since we want the *last* AC-DEFINE to be honored.
25091 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25092 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25093 rm -f confdef2sed.sed
25095 # This sed command replaces #undef with comments. This is necessary, for
25096 # example, in the case of _POSIX_SOURCE, which is predefined and required
25097 # on some systems where configure will not decide to define it.
25098 cat >>conftest.undefs <<\_ACEOF
25099 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25102 # Break up conftest.defines because some shells have a limit on the size
25103 # of here documents, and old seds have small limits too (100 cmds).
25104 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25105 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25106 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25107 echo ' :' >>$CONFIG_STATUS
25108 rm -f conftest.tail
25109 while grep . conftest.defines >/dev/null
25111 # Write a limited-size here document to $tmp/defines.sed.
25112 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25113 # Speed up: don't consider the non `#define' lines.
25114 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25115 # Work around the forget-to-reset-the-flag bug.
25116 echo 't clr' >>$CONFIG_STATUS
25117 echo ': clr' >>$CONFIG_STATUS
25118 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25120 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25122 mv $tmp/out $tmp/in
25124 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25125 rm -f conftest.defines
25126 mv conftest.tail conftest.defines
25128 rm -f conftest.defines
25129 echo ' fi # grep' >>$CONFIG_STATUS
25130 echo >>$CONFIG_STATUS
25132 # Break up conftest.undefs because some shells have a limit on the size
25133 # of here documents, and old seds have small limits too (100 cmds).
25134 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25135 rm -f conftest.tail
25136 while grep . conftest.undefs >/dev/null
25138 # Write a limited-size here document to $tmp/undefs.sed.
25139 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25140 # Speed up: don't consider the non `#undef'
25141 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25142 # Work around the forget-to-reset-the-flag bug.
25143 echo 't clr' >>$CONFIG_STATUS
25144 echo ': clr' >>$CONFIG_STATUS
25145 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25147 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25149 mv $tmp/out $tmp/in
25151 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25152 rm -f conftest.undefs
25153 mv conftest.tail conftest.undefs
25155 rm -f conftest.undefs
25157 cat >>$CONFIG_STATUS <<\_ACEOF
25158 # Let's still pretend it is `configure' which instantiates (i.e., don't
25159 # use $as_me), people would be surprised to read:
25160 # /* config.h. Generated by config.status. */
25161 if test x"$ac_file" = x-; then
25162 echo "/* Generated by configure. */" >$tmp/config.h
25164 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25166 cat $tmp/in >>$tmp/config.h
25168 if test x"$ac_file" != x-; then
25169 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25170 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25171 echo "$as_me: $ac_file is unchanged" >&6;}
25173 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25174 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25175 X"$ac_file" : 'X\(//\)[^/]' \| \
25176 X"$ac_file" : 'X\(//\)$' \| \
25177 X"$ac_file" : 'X\(/\)' \| \
25178 . : '\(.\)' 2>/dev/null ||
25180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25181 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25182 /^X\(\/\/\)$/{ s//\1/; q; }
25183 /^X\(\/\).*/{ s//\1/; q; }
25185 { if $as_mkdir_p; then
25190 while test ! -d "$as_dir"; do
25191 as_dirs="$as_dir $as_dirs"
25192 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25193 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25194 X"$as_dir" : 'X\(//\)[^/]' \| \
25195 X"$as_dir" : 'X\(//\)$' \| \
25196 X"$as_dir" : 'X\(/\)' \| \
25197 . : '\(.\)' 2>/dev/null ||
25199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25200 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25201 /^X\(\/\/\)$/{ s//\1/; q; }
25202 /^X\(\/\).*/{ s//\1/; q; }
25205 test ! -n "$as_dirs" || mkdir $as_dirs
25206 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25207 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25208 { (exit 1); exit 1; }; }; }
25211 mv $tmp/config.h $ac_file
25215 rm -f $tmp/config.h
25219 cat >>$CONFIG_STATUS <<\_ACEOF
25222 # CONFIG_COMMANDS section.
25224 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25225 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25226 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25227 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25228 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25229 X"$ac_dest" : 'X\(//\)[^/]' \| \
25230 X"$ac_dest" : 'X\(//\)$' \| \
25231 X"$ac_dest" : 'X\(/\)' \| \
25232 . : '\(.\)' 2>/dev/null ||
25234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25235 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25236 /^X\(\/\/\)$/{ s//\1/; q; }
25237 /^X\(\/\).*/{ s//\1/; q; }
25241 if test "$ac_dir" != .; then
25242 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25243 # A "../" for each directory in $ac_dir_suffix.
25244 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25246 ac_dir_suffix= ac_top_builddir=
25250 .) # No --srcdir option. We are building in place.
25252 if test -z "$ac_top_builddir"; then
25255 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25257 [\\/]* | ?:[\\/]* ) # Absolute path.
25258 ac_srcdir=$srcdir$ac_dir_suffix;
25259 ac_top_srcdir=$srcdir ;;
25260 *) # Relative path.
25261 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25262 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25264 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25266 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25267 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25268 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25269 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25272 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25273 echo "$as_me: executing $ac_dest commands" >&6;}
25275 stamp-h ) echo timestamp > src/include/stamp-h ;;
25276 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25277 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
25278 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25285 { (exit 0); exit 0; }
25287 chmod +x $CONFIG_STATUS
25288 ac_clean_files=$ac_clean_files_save
25291 # configure is writing to config.log, and then calls config.status.
25292 # config.status does its own redirection, appending to config.log.
25293 # Unfortunately, on DOS this fails, as config.log is still kept open
25294 # by configure, so config.status won't be able to write to it; its
25295 # output is simply discarded. So we exec the FD to /dev/null,
25296 # effectively closing config.log, so it can be properly (re)opened and
25297 # appended to by config.status. When coming back to configure, we
25298 # need to make the FD available again.
25299 if test "$no_create" != yes; then
25301 ac_config_status_args=
25302 test "$silent" = yes &&
25303 ac_config_status_args="$ac_config_status_args --quiet"
25305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25308 # would make configure fail if this is the last instruction.
25309 $ac_cs_success || { (exit 1); exit 1; }
25313 # CONFIG_SUBDIRS section.
25315 if test "$no_recursion" != yes; then
25317 # Remove --cache-file and --srcdir arguments so they do not pile up.
25318 ac_sub_configure_args=
25320 for ac_arg in $ac_configure_args; do
25321 if test -n "$ac_prev"; then
25326 -cache-file | --cache-file | --cache-fil | --cache-fi \
25327 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25328 ac_prev=cache_file ;;
25329 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25330 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25333 --config-cache | -C)
25335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25339 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25341 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25343 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25347 # Always prepend --prefix to ensure using the same prefix
25348 # in subdir configurations.
25349 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25352 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25354 # Do not complain, so a configure script can configure whichever
25355 # parts of a large source tree are present.
25356 test -d $srcdir/$ac_dir || continue
25358 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25359 echo "$as_me: configuring in $ac_dir" >&6;}
25360 { if $as_mkdir_p; then
25365 while test ! -d "$as_dir"; do
25366 as_dirs="$as_dir $as_dirs"
25367 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25369 X"$as_dir" : 'X\(//\)[^/]' \| \
25370 X"$as_dir" : 'X\(//\)$' \| \
25371 X"$as_dir" : 'X\(/\)' \| \
25372 . : '\(.\)' 2>/dev/null ||
25374 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25375 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25376 /^X\(\/\/\)$/{ s//\1/; q; }
25377 /^X\(\/\).*/{ s//\1/; q; }
25380 test ! -n "$as_dirs" || mkdir $as_dirs
25381 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25382 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25383 { (exit 1); exit 1; }; }; }
25387 if test "$ac_dir" != .; then
25388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25389 # A "../" for each directory in $ac_dir_suffix.
25390 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25392 ac_dir_suffix= ac_top_builddir=
25396 .) # No --srcdir option. We are building in place.
25398 if test -z "$ac_top_builddir"; then
25401 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25403 [\\/]* | ?:[\\/]* ) # Absolute path.
25404 ac_srcdir=$srcdir$ac_dir_suffix;
25405 ac_top_srcdir=$srcdir ;;
25406 *) # Relative path.
25407 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25408 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25410 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
25412 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
25413 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
25414 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
25415 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
25420 # Check for guested configure; otherwise get Cygnus style configure.
25421 if test -f $ac_srcdir/configure.gnu; then
25422 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25423 elif test -f $ac_srcdir/configure; then
25424 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25425 elif test -f $ac_srcdir/configure.in; then
25426 ac_sub_configure=$ac_configure
25428 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25429 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25433 # The recursion is here.
25434 if test -n "$ac_sub_configure"; then
25435 # Make the cache file name correct relative to the subdirectory.
25436 case $cache_file in
25437 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25438 *) # Relative path.
25439 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25442 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25443 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25444 # The eval makes quoting arguments work.
25445 eval $ac_sub_configure $ac_sub_configure_args \
25446 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25447 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25448 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25449 { (exit 1); exit 1; }; }