2 # From configure.in Revision: 1.203 .
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 ac_subdirs_all="$ac_subdirs_all libltdl"
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
468 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 subdirs 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 GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures this package to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --build=BUILD configure for building on BUILD [guessed]
1012 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 if test -n "$ac_init_help"; then
1021 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1022 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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
2355 ac_cpp='$CPP $CPPFLAGS'
2356 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2357 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2358 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2359 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2360 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2361 # On Suns, sometimes $CPP names a directory.
2362 if test -n "$CPP" && test -d "$CPP"; then
2365 if test -z "$CPP"; then
2366 if test "${ac_cv_prog_CPP+set}" = set; then
2367 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 # Double quotes because CPP needs to be expanded
2370 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2373 for ac_c_preproc_warn_flag in '' yes
2375 # Use a header file that comes with gcc, so configuring glibc
2376 # with a fresh cross-compiler works.
2377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2378 # <limits.h> exists even on freestanding compilers.
2379 # On the NeXT, cc -E runs the code through the compiler's parser,
2380 # not just through cpp. "Syntax error" is here to catch this case.
2381 cat >conftest.$ac_ext <<_ACEOF
2382 #line $LINENO "configure"
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2389 # include <limits.h>
2391 # include <assert.h>
2395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } >/dev/null; then
2403 if test -s conftest.err; then
2404 ac_cpp_err=$ac_c_preproc_warn_flag
2411 if test -z "$ac_cpp_err"; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2417 # Broken: fails on valid input.
2420 rm -f conftest.err conftest.$ac_ext
2422 # OK, works on sane cases. Now check whether non-existent headers
2423 # can be detected and how.
2424 cat >conftest.$ac_ext <<_ACEOF
2425 #line $LINENO "configure"
2428 cat confdefs.h >>conftest.$ac_ext
2429 cat >>conftest.$ac_ext <<_ACEOF
2430 /* end confdefs.h. */
2431 #include <ac_nonexistent.h>
2433 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2434 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2436 grep -v '^ *+' conftest.er1 >conftest.err
2438 cat conftest.err >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); } >/dev/null; then
2441 if test -s conftest.err; then
2442 ac_cpp_err=$ac_c_preproc_warn_flag
2449 if test -z "$ac_cpp_err"; then
2450 # Broken: success on invalid input.
2453 echo "$as_me: failed program was:" >&5
2454 sed 's/^/| /' conftest.$ac_ext >&5
2456 # Passes both tests.
2460 rm -f conftest.err conftest.$ac_ext
2463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2464 rm -f conftest.err conftest.$ac_ext
2465 if $ac_preproc_ok; then
2477 echo "$as_me:$LINENO: result: $CPP" >&5
2478 echo "${ECHO_T}$CPP" >&6
2480 for ac_c_preproc_warn_flag in '' yes
2482 # Use a header file that comes with gcc, so configuring glibc
2483 # with a fresh cross-compiler works.
2484 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2485 # <limits.h> exists even on freestanding compilers.
2486 # On the NeXT, cc -E runs the code through the compiler's parser,
2487 # not just through cpp. "Syntax error" is here to catch this case.
2488 cat >conftest.$ac_ext <<_ACEOF
2489 #line $LINENO "configure"
2492 cat confdefs.h >>conftest.$ac_ext
2493 cat >>conftest.$ac_ext <<_ACEOF
2494 /* end confdefs.h. */
2496 # include <limits.h>
2498 # include <assert.h>
2502 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2503 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2505 grep -v '^ *+' conftest.er1 >conftest.err
2507 cat conftest.err >&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); } >/dev/null; then
2510 if test -s conftest.err; then
2511 ac_cpp_err=$ac_c_preproc_warn_flag
2518 if test -z "$ac_cpp_err"; then
2521 echo "$as_me: failed program was:" >&5
2522 sed 's/^/| /' conftest.$ac_ext >&5
2524 # Broken: fails on valid input.
2527 rm -f conftest.err conftest.$ac_ext
2529 # OK, works on sane cases. Now check whether non-existent headers
2530 # can be detected and how.
2531 cat >conftest.$ac_ext <<_ACEOF
2532 #line $LINENO "configure"
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2538 #include <ac_nonexistent.h>
2540 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2541 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2543 grep -v '^ *+' conftest.er1 >conftest.err
2545 cat conftest.err >&5
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); } >/dev/null; then
2548 if test -s conftest.err; then
2549 ac_cpp_err=$ac_c_preproc_warn_flag
2556 if test -z "$ac_cpp_err"; then
2557 # Broken: success on invalid input.
2560 echo "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2563 # Passes both tests.
2567 rm -f conftest.err conftest.$ac_ext
2570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2571 rm -f conftest.err conftest.$ac_ext
2572 if $ac_preproc_ok; then
2575 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2576 See \`config.log' for more details." >&5
2577 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2578 See \`config.log' for more details." >&2;}
2579 { (exit 1); exit 1; }; }
2583 ac_cpp='$CPP $CPPFLAGS'
2584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2589 echo "$as_me:$LINENO: checking for egrep" >&5
2590 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2591 if test "${ac_cv_prog_egrep+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2595 then ac_cv_prog_egrep='grep -E'
2596 else ac_cv_prog_egrep='egrep'
2599 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2600 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2601 EGREP=$ac_cv_prog_egrep
2604 if test $ac_cv_c_compiler_gnu = yes; then
2605 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2606 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2607 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2608 echo $ECHO_N "(cached) $ECHO_C" >&6
2610 ac_pattern="Autoconf.*'x'"
2611 cat >conftest.$ac_ext <<_ACEOF
2612 #line $LINENO "configure"
2615 cat confdefs.h >>conftest.$ac_ext
2616 cat >>conftest.$ac_ext <<_ACEOF
2617 /* end confdefs.h. */
2621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2622 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2623 ac_cv_prog_gcc_traditional=yes
2625 ac_cv_prog_gcc_traditional=no
2630 if test $ac_cv_prog_gcc_traditional = no; then
2631 cat >conftest.$ac_ext <<_ACEOF
2632 #line $LINENO "configure"
2635 cat confdefs.h >>conftest.$ac_ext
2636 cat >>conftest.$ac_ext <<_ACEOF
2637 /* end confdefs.h. */
2641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2642 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2643 ac_cv_prog_gcc_traditional=yes
2649 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2650 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2651 if test $ac_cv_prog_gcc_traditional = yes; then
2652 CC="$CC -traditional"
2656 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2657 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2658 if test "${ac_cv_prog_suncc+set}" = set; then
2659 echo $ECHO_N "(cached) $ECHO_C" >&6
2661 cat > conftest.c <<EOF
2666 if { ac_try='${CC-cc} -E conftest.c'
2667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2672 ac_cv_prog_suncc=yes
2677 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2678 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2679 if test -n "$ac_tool_prefix"; then
2680 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2681 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2682 echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2684 if test "${ac_cv_prog_RANLIB+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if test -n "$RANLIB"; then
2688 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2694 test -z "$as_dir" && as_dir=.
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2697 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2698 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2706 RANLIB=$ac_cv_prog_RANLIB
2707 if test -n "$RANLIB"; then
2708 echo "$as_me:$LINENO: result: $RANLIB" >&5
2709 echo "${ECHO_T}$RANLIB" >&6
2711 echo "$as_me:$LINENO: result: no" >&5
2712 echo "${ECHO_T}no" >&6
2716 if test -z "$ac_cv_prog_RANLIB"; then
2717 ac_ct_RANLIB=$RANLIB
2718 # Extract the first word of "ranlib", so it can be a program name with args.
2719 set dummy ranlib; ac_word=$2
2720 echo "$as_me:$LINENO: checking for $ac_word" >&5
2721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2722 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2723 echo $ECHO_N "(cached) $ECHO_C" >&6
2725 if test -n "$ac_ct_RANLIB"; then
2726 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2732 test -z "$as_dir" && as_dir=.
2733 for ac_exec_ext in '' $ac_executable_extensions; do
2734 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2735 ac_cv_prog_ac_ct_RANLIB="ranlib"
2736 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2742 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2745 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2746 if test -n "$ac_ct_RANLIB"; then
2747 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2748 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2750 echo "$as_me:$LINENO: result: no" >&5
2751 echo "${ECHO_T}no" >&6
2754 RANLIB=$ac_ct_RANLIB
2756 RANLIB="$ac_cv_prog_RANLIB"
2760 abs_top_builddir=`pwd`
2767 echo "$as_me:$LINENO: checking for AIX" >&5
2768 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2769 cat >conftest.$ac_ext <<_ACEOF
2770 #line $LINENO "configure"
2773 cat confdefs.h >>conftest.$ac_ext
2774 cat >>conftest.$ac_ext <<_ACEOF
2775 /* end confdefs.h. */
2781 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2782 $EGREP "yes" >/dev/null 2>&1; then
2783 echo "$as_me:$LINENO: result: yes" >&5
2784 echo "${ECHO_T}yes" >&6
2785 cat >>confdefs.h <<\_ACEOF
2786 #define _ALL_SOURCE 1
2790 echo "$as_me:$LINENO: result: no" >&5
2791 echo "${ECHO_T}no" >&6
2797 # Extract the first word of "gmake", so it can be a program name with args.
2798 set dummy gmake; ac_word=$2
2799 echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2801 if test "${ac_cv_prog_GMAKE+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2804 if test -n "$GMAKE"; then
2805 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2814 ac_cv_prog_GMAKE="yes"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2821 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2824 GMAKE=$ac_cv_prog_GMAKE
2825 if test -n "$GMAKE"; then
2826 echo "$as_me:$LINENO: result: $GMAKE" >&5
2827 echo "${ECHO_T}$GMAKE" >&6
2829 echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6
2833 if test $GMAKE = no; then
2834 # Extract the first word of "make", so it can be a program name with args.
2835 set dummy make; ac_word=$2
2836 echo "$as_me:$LINENO: checking for $ac_word" >&5
2837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2838 if test "${ac_cv_path_MAKE+set}" = set; then
2839 echo $ECHO_N "(cached) $ECHO_C" >&6
2843 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2850 test -z "$as_dir" && as_dir=.
2851 for ac_exec_ext in '' $ac_executable_extensions; do
2852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2853 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2864 MAKE=$ac_cv_path_MAKE
2866 if test -n "$MAKE"; then
2867 echo "$as_me:$LINENO: result: $MAKE" >&5
2868 echo "${ECHO_T}$MAKE" >&6
2870 echo "$as_me:$LINENO: result: no" >&5
2871 echo "${ECHO_T}no" >&6
2875 # Extract the first word of "gmake", so it can be a program name with args.
2876 set dummy gmake; ac_word=$2
2877 echo "$as_me:$LINENO: checking for $ac_word" >&5
2878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2879 if test "${ac_cv_path_MAKE+set}" = set; then
2880 echo $ECHO_N "(cached) $ECHO_C" >&6
2884 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2891 test -z "$as_dir" && as_dir=.
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2905 MAKE=$ac_cv_path_MAKE
2907 if test -n "$MAKE"; then
2908 echo "$as_me:$LINENO: result: $MAKE" >&5
2909 echo "${ECHO_T}$MAKE" >&6
2911 echo "$as_me:$LINENO: result: no" >&5
2912 echo "${ECHO_T}no" >&6
2916 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
2917 if test -z "$makever"; then
2918 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
2919 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
2920 echo "$as_me: error: GNU Make is not installed. Please download and install it
2921 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
2922 { (exit 1); exit 1; }; }
2925 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
2926 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
2927 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 ac_check_lib_save_LIBS=$LIBS
2932 cat >conftest.$ac_ext <<_ACEOF
2933 #line $LINENO "configure"
2936 cat confdefs.h >>conftest.$ac_ext
2937 cat >>conftest.$ac_ext <<_ACEOF
2938 /* end confdefs.h. */
2940 /* Override any gcc2 internal prototype to avoid an error. */
2944 /* We use char because int might match the return type of a gcc2
2945 builtin and then its argument prototype would still apply. */
2955 rm -f conftest.$ac_objext conftest$ac_exeext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2957 (eval $ac_link) 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -s conftest$ac_exeext'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; }; then
2967 ac_cv_lib_ltdl_lt_dlinit=yes
2969 echo "$as_me: failed program was:" >&5
2970 sed 's/^/| /' conftest.$ac_ext >&5
2972 ac_cv_lib_ltdl_lt_dlinit=no
2974 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
2975 LIBS=$ac_check_lib_save_LIBS
2977 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
2978 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
2979 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
2980 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
2982 if test x"$enable_ltdl_install" = xno; then
2983 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
2984 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
2986 enable_ltdl_install=yes
2991 if test x"$enable_ltdl_install" = x"yes"; then
2992 ac_configure_args="$ac_configure_args --enable-ltdl-install"
2993 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
2994 LTDLINCL='-I${top_srcdir}/''libltdl'
2996 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3000 # For backwards non-gettext consistent compatibility...
3004 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3005 if test -f $ac_dir/install-sh; then
3007 ac_install_sh="$ac_aux_dir/install-sh -c"
3009 elif test -f $ac_dir/install.sh; then
3011 ac_install_sh="$ac_aux_dir/install.sh -c"
3013 elif test -f $ac_dir/shtool; then
3015 ac_install_sh="$ac_aux_dir/shtool install -c"
3019 if test -z "$ac_aux_dir"; then
3020 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3021 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3022 { (exit 1); exit 1; }; }
3024 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3025 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3026 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3030 if test x"$enable_ltdl_install" = x"yes"; then
3033 subdirs="$subdirs libltdl"
3040 # Check whether --enable-shared or --disable-shared was given.
3041 if test "${enable_shared+set}" = set; then
3042 enableval="$enable_shared"
3043 p=${PACKAGE-default}
3045 yes) enable_shared=yes ;;
3046 no) enable_shared=no ;;
3049 # Look at the argument we got. We use all the common list separators.
3050 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3051 for pkg in $enableval; do
3053 if test "X$pkg" = "X$p"; then
3064 # Check whether --enable-static or --disable-static was given.
3065 if test "${enable_static+set}" = set; then
3066 enableval="$enable_static"
3067 p=${PACKAGE-default}
3069 yes) enable_static=yes ;;
3070 no) enable_static=no ;;
3073 # Look at the argument we got. We use all the common list separators.
3074 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3075 for pkg in $enableval; do
3077 if test "X$pkg" = "X$p"; then
3088 # Check whether --enable-fast-install or --disable-fast-install was given.
3089 if test "${enable_fast_install+set}" = set; then
3090 enableval="$enable_fast_install"
3091 p=${PACKAGE-default}
3093 yes) enable_fast_install=yes ;;
3094 no) enable_fast_install=no ;;
3096 enable_fast_install=no
3097 # Look at the argument we got. We use all the common list separators.
3098 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3099 for pkg in $enableval; do
3101 if test "X$pkg" = "X$p"; then
3102 enable_fast_install=yes
3109 enable_fast_install=yes
3112 # Make sure we can run config.sub.
3113 $ac_config_sub sun4 >/dev/null 2>&1 ||
3114 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3115 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3116 { (exit 1); exit 1; }; }
3118 echo "$as_me:$LINENO: checking build system type" >&5
3119 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3120 if test "${ac_cv_build+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3123 ac_cv_build_alias=$build_alias
3124 test -z "$ac_cv_build_alias" &&
3125 ac_cv_build_alias=`$ac_config_guess`
3126 test -z "$ac_cv_build_alias" &&
3127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3129 { (exit 1); exit 1; }; }
3130 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3131 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3132 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3133 { (exit 1); exit 1; }; }
3136 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3137 echo "${ECHO_T}$ac_cv_build" >&6
3139 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3140 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3141 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3144 echo "$as_me:$LINENO: checking host system type" >&5
3145 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3146 if test "${ac_cv_host+set}" = set; then
3147 echo $ECHO_N "(cached) $ECHO_C" >&6
3149 ac_cv_host_alias=$host_alias
3150 test -z "$ac_cv_host_alias" &&
3151 ac_cv_host_alias=$ac_cv_build_alias
3152 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3153 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3154 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3155 { (exit 1); exit 1; }; }
3158 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3159 echo "${ECHO_T}$ac_cv_host" >&6
3161 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3162 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3163 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3166 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3167 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3168 if test "${lt_cv_path_SED+set}" = set; then
3169 echo $ECHO_N "(cached) $ECHO_C" >&6
3171 # Loop through the user's path and test for sed and gsed.
3172 # Then use that list of sed's as ones to test for truncation.
3173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3177 test -z "$as_dir" && as_dir=.
3178 for lt_ac_prog in sed gsed; do
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3181 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3188 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3189 # along with /bin/sed that truncates output.
3190 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3191 test ! -f $lt_ac_sed && break
3192 cat /dev/null > conftest.in
3194 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3195 # Check for GNU sed and select it if it is found.
3196 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3197 lt_cv_path_SED=$lt_ac_sed
3201 cat conftest.in conftest.in >conftest.tmp
3202 mv conftest.tmp conftest.in
3203 cp conftest.in conftest.nl
3205 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3206 cmp -s conftest.out conftest.nl || break
3207 # 10000 chars as input seems more than enough
3208 test $lt_ac_count -gt 10 && break
3209 lt_ac_count=`expr $lt_ac_count + 1`
3210 if test $lt_ac_count -gt $lt_ac_max; then
3211 lt_ac_max=$lt_ac_count
3212 lt_cv_path_SED=$lt_ac_sed
3220 echo "$as_me:$LINENO: result: $SED" >&5
3221 echo "${ECHO_T}$SED" >&6
3224 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3225 if test "${with_gnu_ld+set}" = set; then
3226 withval="$with_gnu_ld"
3227 test "$withval" = no || with_gnu_ld=yes
3232 if test "$GCC" = yes; then
3233 # Check if gcc -print-prog-name=ld gives a path.
3234 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3235 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3238 # gcc leaves a trailing carriage return which upsets mingw
3239 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3241 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3244 # Accept absolute paths.
3246 re_direlt='/[^/][^/]*/\.\./'
3247 # Canonicalize the pathname of ld
3248 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3249 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3250 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3252 test -z "$LD" && LD="$ac_prog"
3255 # If it fails, then pretend we aren't using GCC.
3259 # If it is relative, then search for the first ld in PATH.
3263 elif test "$with_gnu_ld" = yes; then
3264 echo "$as_me:$LINENO: checking for GNU ld" >&5
3265 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3267 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3268 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3270 if test "${lt_cv_path_LD+set}" = set; then
3271 echo $ECHO_N "(cached) $ECHO_C" >&6
3273 if test -z "$LD"; then
3274 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3275 for ac_dir in $PATH; do
3277 test -z "$ac_dir" && ac_dir=.
3278 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3279 lt_cv_path_LD="$ac_dir/$ac_prog"
3280 # Check to see if the program is GNU ld. I'd rather use --version,
3281 # but apparently some GNU ld's only accept -v.
3282 # Break only if it was the GNU/non-GNU ld that we prefer.
3283 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3284 *GNU* | *'with BFD'*)
3285 test "$with_gnu_ld" != no && break
3288 test "$with_gnu_ld" != yes && break
3295 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3300 if test -n "$LD"; then
3301 echo "$as_me:$LINENO: result: $LD" >&5
3302 echo "${ECHO_T}$LD" >&6
3304 echo "$as_me:$LINENO: result: no" >&5
3305 echo "${ECHO_T}no" >&6
3307 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3308 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3309 { (exit 1); exit 1; }; }
3310 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3311 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3312 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3313 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3316 case `$LD -v 2>&1 </dev/null` in
3317 *GNU* | *'with BFD'*)
3318 lt_cv_prog_gnu_ld=yes
3321 lt_cv_prog_gnu_ld=no
3325 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3326 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3327 with_gnu_ld=$lt_cv_prog_gnu_ld
3330 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3331 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3332 if test "${lt_cv_ld_reload_flag+set}" = set; then
3333 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 lt_cv_ld_reload_flag='-r'
3337 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3338 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3339 reload_flag=$lt_cv_ld_reload_flag
3340 case $reload_flag in
3342 *) reload_flag=" $reload_flag" ;;
3344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3346 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3347 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3348 if test "${lt_cv_path_NM+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$NM"; then
3352 # Let the user override the test.
3355 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3356 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3358 test -z "$ac_dir" && ac_dir=.
3359 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3360 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3361 # Check to see if the nm accepts a BSD-compat flag.
3362 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3363 # nm: unknown option "B" ignored
3364 # Tru64's nm complains that /dev/null is an invalid object file
3365 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3366 */dev/null* | *'Invalid file or object type'*)
3367 lt_cv_path_NM="$tmp_nm -B"
3371 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3373 lt_cv_path_NM="$tmp_nm -p"
3377 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3378 continue # so that we can try to find one that supports BSD flags
3385 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3388 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3389 echo "${ECHO_T}$lt_cv_path_NM" >&6
3392 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3393 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3395 if test "$LN_S" = "ln -s"; then
3396 echo "$as_me:$LINENO: result: yes" >&5
3397 echo "${ECHO_T}yes" >&6
3399 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3400 echo "${ECHO_T}no, using $LN_S" >&6
3403 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3404 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3405 if test "${lt_cv_deplibs_check_method+set}" = set; then
3406 echo $ECHO_N "(cached) $ECHO_C" >&6
3408 lt_cv_file_magic_cmd='$MAGIC_CMD'
3409 lt_cv_file_magic_test_file=
3410 lt_cv_deplibs_check_method='unknown'
3411 # Need to set the preceding variable on all platforms that support
3412 # interlibrary dependencies.
3413 # 'none' -- dependencies not supported.
3414 # `unknown' -- same as none, but documents that we really don't know.
3415 # 'pass_all' -- all dependencies passed with no checks.
3416 # 'test_compile' -- check by making test program.
3417 # 'file_magic [[regex]]' -- check by looking for files in library path
3418 # which responds to the $file_magic_cmd with a given extended regex.
3419 # If you have `file' or equivalent on your system and you're not sure
3420 # whether `pass_all' will *always* work, you probably want this one.
3424 lt_cv_deplibs_check_method=pass_all
3428 lt_cv_deplibs_check_method=pass_all
3432 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3433 lt_cv_file_magic_cmd='/usr/bin/file -L'
3434 lt_cv_file_magic_test_file=/shlib/libc.so
3438 # func_win32_libid is a shell function defined in ltmain.sh
3439 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3440 lt_cv_file_magic_cmd='func_win32_libid'
3444 # Base MSYS/MinGW do not provide the 'file' command needed by
3445 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3446 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3447 lt_cv_file_magic_cmd='$OBJDUMP -f'
3450 darwin* | rhapsody*)
3451 lt_cv_deplibs_check_method=pass_all
3454 freebsd* | kfreebsd*-gnu)
3455 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3458 # Not sure whether the presence of OpenBSD here was a mistake.
3459 # Let's accept both of them until this is cleared up.
3460 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3461 lt_cv_file_magic_cmd=/usr/bin/file
3462 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3466 lt_cv_deplibs_check_method=pass_all
3471 lt_cv_deplibs_check_method=pass_all
3474 hpux10.20* | hpux11*)
3475 lt_cv_file_magic_cmd=/usr/bin/file
3478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3479 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3482 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]'
3483 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3487 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3492 irix5* | irix6* | nonstopux*)
3494 *-32|*"-32 ") libmagic=32-bit;;
3495 *-n32|*"-n32 ") libmagic=N32;;
3496 *-64|*"-64 ") libmagic=64-bit;;
3497 *) libmagic=never-match;;
3499 lt_cv_deplibs_check_method=pass_all
3502 # This must be Linux ELF.
3504 lt_cv_deplibs_check_method=pass_all
3507 netbsd* | knetbsd*-gnu)
3508 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3511 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3516 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3517 lt_cv_file_magic_cmd=/usr/bin/file
3518 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3522 lt_cv_deplibs_check_method=unknown
3526 lt_cv_file_magic_cmd=/usr/bin/file
3527 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3528 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3531 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3535 osf3* | osf4* | osf5*)
3536 lt_cv_deplibs_check_method=pass_all
3540 lt_cv_deplibs_check_method=pass_all
3544 lt_cv_deplibs_check_method=pass_all
3547 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3548 case $host_vendor in
3550 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]'
3551 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3554 lt_cv_deplibs_check_method=pass_all
3557 lt_cv_file_magic_cmd='/bin/file'
3558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3561 lt_cv_file_magic_cmd='/bin/file'
3562 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3563 lt_cv_file_magic_test_file=/lib/libc.so
3566 lt_cv_deplibs_check_method=pass_all
3571 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3572 lt_cv_deplibs_check_method=pass_all
3577 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3578 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3579 file_magic_cmd=$lt_cv_file_magic_cmd
3580 deplibs_check_method=$lt_cv_deplibs_check_method
3581 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3586 # If no C compiler was specified, use CC.
3589 # Allow CC to be a program name with arguments.
3592 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3593 if test "${enable_libtool_lock+set}" = set; then
3594 enableval="$enable_libtool_lock"
3597 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3599 # Some flags need to be propagated to the compiler or linker for good
3603 # Find out which ABI we are using.
3604 echo 'int i;' > conftest.$ac_ext
3605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3606 (eval $ac_compile) 2>&5
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }; then
3610 case `/usr/bin/file conftest.$ac_objext` in
3622 # Find out which ABI we are using.
3623 echo '#line 3623 "configure"' > conftest.$ac_ext
3624 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3625 (eval $ac_compile) 2>&5
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; then
3629 if test "$lt_cv_prog_gnu_ld" = yes; then
3630 case `/usr/bin/file conftest.$ac_objext` in
3632 LD="${LD-ld} -melf32bsmip"
3635 LD="${LD-ld} -melf32bmipn32"
3638 LD="${LD-ld} -melf64bmip"
3642 case `/usr/bin/file conftest.$ac_objext` in
3658 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3659 # Find out which ABI we are using.
3660 echo 'int i;' > conftest.$ac_ext
3661 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3662 (eval $ac_compile) 2>&5
3664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3665 (exit $ac_status); }; then
3666 case "`/usr/bin/file conftest.o`" in
3670 LD="${LD-ld} -m elf_i386"
3672 ppc64-*linux*|powerpc64-*linux*)
3673 LD="${LD-ld} -m elf32ppclinux"
3676 LD="${LD-ld} -m elf_s390"
3679 LD="${LD-ld} -m elf32_sparc"
3686 LD="${LD-ld} -m elf_x86_64"
3688 ppc*-*linux*|powerpc*-*linux*)
3689 LD="${LD-ld} -m elf64ppc"
3692 LD="${LD-ld} -m elf64_s390"
3695 LD="${LD-ld} -m elf64_sparc"
3705 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3706 SAVE_CFLAGS="$CFLAGS"
3707 CFLAGS="$CFLAGS -belf"
3708 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3709 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3710 if test "${lt_cv_cc_needs_belf+set}" = set; then
3711 echo $ECHO_N "(cached) $ECHO_C" >&6
3714 ac_cpp='$CPP $CPPFLAGS'
3715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719 cat >conftest.$ac_ext <<_ACEOF
3720 #line $LINENO "configure"
3723 cat confdefs.h >>conftest.$ac_ext
3724 cat >>conftest.$ac_ext <<_ACEOF
3725 /* end confdefs.h. */
3735 rm -f conftest.$ac_objext conftest$ac_exeext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3737 (eval $ac_link) 2>&5
3739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 (exit $ac_status); } &&
3741 { ac_try='test -s conftest$ac_exeext'
3742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3746 (exit $ac_status); }; }; then
3747 lt_cv_cc_needs_belf=yes
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3752 lt_cv_cc_needs_belf=no
3754 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3763 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3764 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3765 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3766 CFLAGS="$SAVE_CFLAGS"
3772 need_locks="$enable_libtool_lock"
3775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3777 if test "${ac_cv_header_stdc+set}" = set; then
3778 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 cat >conftest.$ac_ext <<_ACEOF
3781 #line $LINENO "configure"
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3800 rm -f conftest.$ac_objext
3801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3802 (eval $ac_compile) 2>&5
3804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3805 (exit $ac_status); } &&
3806 { ac_try='test -s conftest.$ac_objext'
3807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; }; then
3812 ac_cv_header_stdc=yes
3814 echo "$as_me: failed program was:" >&5
3815 sed 's/^/| /' conftest.$ac_ext >&5
3817 ac_cv_header_stdc=no
3819 rm -f conftest.$ac_objext conftest.$ac_ext
3821 if test $ac_cv_header_stdc = yes; then
3822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3823 cat >conftest.$ac_ext <<_ACEOF
3824 #line $LINENO "configure"
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3834 $EGREP "memchr" >/dev/null 2>&1; then
3837 ac_cv_header_stdc=no
3843 if test $ac_cv_header_stdc = yes; then
3844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3845 cat >conftest.$ac_ext <<_ACEOF
3846 #line $LINENO "configure"
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3856 $EGREP "free" >/dev/null 2>&1; then
3859 ac_cv_header_stdc=no
3865 if test $ac_cv_header_stdc = yes; then
3866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3867 if test "$cross_compiling" = yes; then
3870 cat >conftest.$ac_ext <<_ACEOF
3871 #line $LINENO "configure"
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3878 #if ((' ' & 0x0FF) == 0x020)
3879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3882 # define ISLOWER(c) \
3883 (('a' <= (c) && (c) <= 'i') \
3884 || ('j' <= (c) && (c) <= 'r') \
3885 || ('s' <= (c) && (c) <= 'z'))
3886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3894 for (i = 0; i < 256; i++)
3895 if (XOR (islower (i), ISLOWER (i))
3896 || toupper (i) != TOUPPER (i))
3901 rm -f conftest$ac_exeext
3902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903 (eval $ac_link) 2>&5
3905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); }; }; then
3914 echo "$as_me: program exited with status $ac_status" >&5
3915 echo "$as_me: failed program was:" >&5
3916 sed 's/^/| /' conftest.$ac_ext >&5
3919 ac_cv_header_stdc=no
3921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3927 if test $ac_cv_header_stdc = yes; then
3929 cat >>confdefs.h <<\_ACEOF
3930 #define STDC_HEADERS 1
3935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3946 inttypes.h stdint.h unistd.h
3948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3949 echo "$as_me:$LINENO: checking for $ac_header" >&5
3950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3952 echo $ECHO_N "(cached) $ECHO_C" >&6
3954 cat >conftest.$ac_ext <<_ACEOF
3955 #line $LINENO "configure"
3958 cat confdefs.h >>conftest.$ac_ext
3959 cat >>conftest.$ac_ext <<_ACEOF
3960 /* end confdefs.h. */
3961 $ac_includes_default
3963 #include <$ac_header>
3965 rm -f conftest.$ac_objext
3966 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3967 (eval $ac_compile) 2>&5
3969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970 (exit $ac_status); } &&
3971 { ac_try='test -s conftest.$ac_objext'
3972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3977 eval "$as_ac_Header=yes"
3979 echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3982 eval "$as_ac_Header=no"
3984 rm -f conftest.$ac_objext conftest.$ac_ext
3986 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3987 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3989 cat >>confdefs.h <<_ACEOF
3990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3999 for ac_header in dlfcn.h
4001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4003 echo "$as_me:$LINENO: checking for $ac_header" >&5
4004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4005 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4006 echo $ECHO_N "(cached) $ECHO_C" >&6
4008 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4009 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4011 # Is the header compilable?
4012 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4014 cat >conftest.$ac_ext <<_ACEOF
4015 #line $LINENO "configure"
4018 cat confdefs.h >>conftest.$ac_ext
4019 cat >>conftest.$ac_ext <<_ACEOF
4020 /* end confdefs.h. */
4021 $ac_includes_default
4022 #include <$ac_header>
4024 rm -f conftest.$ac_objext
4025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4026 (eval $ac_compile) 2>&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -s conftest.$ac_objext'
4031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); }; }; then
4036 ac_header_compiler=yes
4038 echo "$as_me: failed program was:" >&5
4039 sed 's/^/| /' conftest.$ac_ext >&5
4041 ac_header_compiler=no
4043 rm -f conftest.$ac_objext conftest.$ac_ext
4044 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4045 echo "${ECHO_T}$ac_header_compiler" >&6
4047 # Is the header present?
4048 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4049 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4050 cat >conftest.$ac_ext <<_ACEOF
4051 #line $LINENO "configure"
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <$ac_header>
4059 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4060 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); } >/dev/null; then
4067 if test -s conftest.err; then
4068 ac_cpp_err=$ac_c_preproc_warn_flag
4075 if test -z "$ac_cpp_err"; then
4076 ac_header_preproc=yes
4078 echo "$as_me: failed program was:" >&5
4079 sed 's/^/| /' conftest.$ac_ext >&5
4081 ac_header_preproc=no
4083 rm -f conftest.err conftest.$ac_ext
4084 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4085 echo "${ECHO_T}$ac_header_preproc" >&6
4087 # So? What about this header?
4088 case $ac_header_compiler:$ac_header_preproc in
4090 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4091 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4096 ## ------------------------------------ ##
4097 ## Report this to bug-autoconf@gnu.org. ##
4098 ## ------------------------------------ ##
4101 sed "s/^/$as_me: WARNING: /" >&2
4104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4108 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4109 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4112 ## ------------------------------------ ##
4113 ## Report this to bug-autoconf@gnu.org. ##
4114 ## ------------------------------------ ##
4117 sed "s/^/$as_me: WARNING: /" >&2
4120 echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 eval "$as_ac_Header=$ac_header_preproc"
4127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4128 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4132 cat >>confdefs.h <<_ACEOF
4133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4141 ac_cpp='$CXXCPP $CPPFLAGS'
4142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4145 if test -n "$ac_tool_prefix"; then
4146 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4148 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4149 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4150 echo "$as_me:$LINENO: checking for $ac_word" >&5
4151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4152 if test "${ac_cv_prog_CXX+set}" = set; then
4153 echo $ECHO_N "(cached) $ECHO_C" >&6
4155 if test -n "$CXX"; then
4156 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 test -z "$as_dir" && as_dir=.
4163 for ac_exec_ext in '' $ac_executable_extensions; do
4164 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4165 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 if test -n "$CXX"; then
4176 echo "$as_me:$LINENO: result: $CXX" >&5
4177 echo "${ECHO_T}$CXX" >&6
4179 echo "$as_me:$LINENO: result: no" >&5
4180 echo "${ECHO_T}no" >&6
4183 test -n "$CXX" && break
4186 if test -z "$CXX"; then
4188 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4190 # Extract the first word of "$ac_prog", so it can be a program name with args.
4191 set dummy $ac_prog; ac_word=$2
4192 echo "$as_me:$LINENO: checking for $ac_word" >&5
4193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4194 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4195 echo $ECHO_N "(cached) $ECHO_C" >&6
4197 if test -n "$ac_ct_CXX"; then
4198 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 test -z "$as_dir" && as_dir=.
4205 for ac_exec_ext in '' $ac_executable_extensions; do
4206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4207 ac_cv_prog_ac_ct_CXX="$ac_prog"
4208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4217 if test -n "$ac_ct_CXX"; then
4218 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4219 echo "${ECHO_T}$ac_ct_CXX" >&6
4221 echo "$as_me:$LINENO: result: no" >&5
4222 echo "${ECHO_T}no" >&6
4225 test -n "$ac_ct_CXX" && break
4227 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4233 # Provide some information about the compiler.
4234 echo "$as_me:$LINENO:" \
4235 "checking for C++ compiler version" >&5
4236 ac_compiler=`set X $ac_compile; echo $2`
4237 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4238 (eval $ac_compiler --version </dev/null >&5) 2>&5
4240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4241 (exit $ac_status); }
4242 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4243 (eval $ac_compiler -v </dev/null >&5) 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); }
4247 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4248 (eval $ac_compiler -V </dev/null >&5) 2>&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); }
4253 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4254 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4255 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4258 cat >conftest.$ac_ext <<_ACEOF
4259 #line $LINENO "configure"
4262 cat confdefs.h >>conftest.$ac_ext
4263 cat >>conftest.$ac_ext <<_ACEOF
4264 /* end confdefs.h. */
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } &&
4283 { ac_try='test -s conftest.$ac_objext'
4284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); }; }; then
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4296 rm -f conftest.$ac_objext conftest.$ac_ext
4297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4300 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4301 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4302 GXX=`test $ac_compiler_gnu = yes && echo yes`
4303 ac_test_CXXFLAGS=${CXXFLAGS+set}
4304 ac_save_CXXFLAGS=$CXXFLAGS
4306 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4307 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4308 if test "${ac_cv_prog_cxx_g+set}" = set; then
4309 echo $ECHO_N "(cached) $ECHO_C" >&6
4311 cat >conftest.$ac_ext <<_ACEOF
4312 #line $LINENO "configure"
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4327 rm -f conftest.$ac_objext
4328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4329 (eval $ac_compile) 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); }; }; then
4339 ac_cv_prog_cxx_g=yes
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4346 rm -f conftest.$ac_objext conftest.$ac_ext
4348 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4349 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4350 if test "$ac_test_CXXFLAGS" = set; then
4351 CXXFLAGS=$ac_save_CXXFLAGS
4352 elif test $ac_cv_prog_cxx_g = yes; then
4353 if test "$GXX" = yes; then
4359 if test "$GXX" = yes; then
4365 for ac_declaration in \
4367 '#include <stdlib.h>' \
4368 'extern "C" void std::exit (int) throw (); using std::exit;' \
4369 'extern "C" void std::exit (int); using std::exit;' \
4370 'extern "C" void exit (int) throw ();' \
4371 'extern "C" void exit (int);' \
4374 cat >conftest.$ac_ext <<_ACEOF
4375 #line $LINENO "configure"
4378 cat confdefs.h >>conftest.$ac_ext
4379 cat >>conftest.$ac_ext <<_ACEOF
4380 /* end confdefs.h. */
4391 rm -f conftest.$ac_objext
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); } &&
4397 { ac_try='test -s conftest.$ac_objext'
4398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402 (exit $ac_status); }; }; then
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4410 rm -f conftest.$ac_objext conftest.$ac_ext
4411 cat >conftest.$ac_ext <<_ACEOF
4412 #line $LINENO "configure"
4415 cat confdefs.h >>conftest.$ac_ext
4416 cat >>conftest.$ac_ext <<_ACEOF
4417 /* end confdefs.h. */
4427 rm -f conftest.$ac_objext
4428 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4429 (eval $ac_compile) 2>&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -s conftest.$ac_objext'
4434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4438 (exit $ac_status); }; }; then
4441 echo "$as_me: failed program was:" >&5
4442 sed 's/^/| /' conftest.$ac_ext >&5
4445 rm -f conftest.$ac_objext conftest.$ac_ext
4448 if test -n "$ac_declaration"; then
4449 echo '#ifdef __cplusplus' >>confdefs.h
4450 echo $ac_declaration >>confdefs.h
4451 echo '#endif' >>confdefs.h
4455 ac_cpp='$CXXCPP $CPPFLAGS'
4456 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4457 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4458 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4461 ac_cpp='$CXXCPP $CPPFLAGS'
4462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4465 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4466 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4467 if test -z "$CXXCPP"; then
4468 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4471 # Double quotes because CXXCPP needs to be expanded
4472 for CXXCPP in "$CXX -E" "/lib/cpp"
4475 for ac_cxx_preproc_warn_flag in '' yes
4477 # Use a header file that comes with gcc, so configuring glibc
4478 # with a fresh cross-compiler works.
4479 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4480 # <limits.h> exists even on freestanding compilers.
4481 # On the NeXT, cc -E runs the code through the compiler's parser,
4482 # not just through cpp. "Syntax error" is here to catch this case.
4483 cat >conftest.$ac_ext <<_ACEOF
4484 #line $LINENO "configure"
4487 cat confdefs.h >>conftest.$ac_ext
4488 cat >>conftest.$ac_ext <<_ACEOF
4489 /* end confdefs.h. */
4491 # include <limits.h>
4493 # include <assert.h>
4497 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4498 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4500 grep -v '^ *+' conftest.er1 >conftest.err
4502 cat conftest.err >&5
4503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4504 (exit $ac_status); } >/dev/null; then
4505 if test -s conftest.err; then
4506 ac_cpp_err=$ac_cxx_preproc_warn_flag
4513 if test -z "$ac_cpp_err"; then
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # Broken: fails on valid input.
4522 rm -f conftest.err conftest.$ac_ext
4524 # OK, works on sane cases. Now check whether non-existent headers
4525 # can be detected and how.
4526 cat >conftest.$ac_ext <<_ACEOF
4527 #line $LINENO "configure"
4530 cat confdefs.h >>conftest.$ac_ext
4531 cat >>conftest.$ac_ext <<_ACEOF
4532 /* end confdefs.h. */
4533 #include <ac_nonexistent.h>
4535 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4536 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4538 grep -v '^ *+' conftest.er1 >conftest.err
4540 cat conftest.err >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); } >/dev/null; then
4543 if test -s conftest.err; then
4544 ac_cpp_err=$ac_cxx_preproc_warn_flag
4551 if test -z "$ac_cpp_err"; then
4552 # Broken: success on invalid input.
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Passes both tests.
4562 rm -f conftest.err conftest.$ac_ext
4565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4566 rm -f conftest.err conftest.$ac_ext
4567 if $ac_preproc_ok; then
4572 ac_cv_prog_CXXCPP=$CXXCPP
4575 CXXCPP=$ac_cv_prog_CXXCPP
4577 ac_cv_prog_CXXCPP=$CXXCPP
4579 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4580 echo "${ECHO_T}$CXXCPP" >&6
4582 for ac_cxx_preproc_warn_flag in '' yes
4584 # Use a header file that comes with gcc, so configuring glibc
4585 # with a fresh cross-compiler works.
4586 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4587 # <limits.h> exists even on freestanding compilers.
4588 # On the NeXT, cc -E runs the code through the compiler's parser,
4589 # not just through cpp. "Syntax error" is here to catch this case.
4590 cat >conftest.$ac_ext <<_ACEOF
4591 #line $LINENO "configure"
4594 cat confdefs.h >>conftest.$ac_ext
4595 cat >>conftest.$ac_ext <<_ACEOF
4596 /* end confdefs.h. */
4598 # include <limits.h>
4600 # include <assert.h>
4604 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4605 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4607 grep -v '^ *+' conftest.er1 >conftest.err
4609 cat conftest.err >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); } >/dev/null; then
4612 if test -s conftest.err; then
4613 ac_cpp_err=$ac_cxx_preproc_warn_flag
4620 if test -z "$ac_cpp_err"; then
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 # Broken: fails on valid input.
4629 rm -f conftest.err conftest.$ac_ext
4631 # OK, works on sane cases. Now check whether non-existent headers
4632 # can be detected and how.
4633 cat >conftest.$ac_ext <<_ACEOF
4634 #line $LINENO "configure"
4637 cat confdefs.h >>conftest.$ac_ext
4638 cat >>conftest.$ac_ext <<_ACEOF
4639 /* end confdefs.h. */
4640 #include <ac_nonexistent.h>
4642 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4643 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4645 grep -v '^ *+' conftest.er1 >conftest.err
4647 cat conftest.err >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); } >/dev/null; then
4650 if test -s conftest.err; then
4651 ac_cpp_err=$ac_cxx_preproc_warn_flag
4658 if test -z "$ac_cpp_err"; then
4659 # Broken: success on invalid input.
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.$ac_ext >&5
4665 # Passes both tests.
4669 rm -f conftest.err conftest.$ac_ext
4672 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4673 rm -f conftest.err conftest.$ac_ext
4674 if $ac_preproc_ok; then
4677 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4678 See \`config.log' for more details." >&5
4679 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4680 See \`config.log' for more details." >&2;}
4681 { (exit 1); exit 1; }; }
4685 ac_cpp='$CXXCPP $CPPFLAGS'
4686 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4687 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4688 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4692 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4693 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4695 if test -n "$ac_tool_prefix"; then
4696 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4698 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4699 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4700 echo "$as_me:$LINENO: checking for $ac_word" >&5
4701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4702 if test "${ac_cv_prog_F77+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 if test -n "$F77"; then
4706 ac_cv_prog_F77="$F77" # Let the user override the test.
4708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 test -z "$as_dir" && as_dir=.
4713 for ac_exec_ext in '' $ac_executable_extensions; do
4714 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4715 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4725 if test -n "$F77"; then
4726 echo "$as_me:$LINENO: result: $F77" >&5
4727 echo "${ECHO_T}$F77" >&6
4729 echo "$as_me:$LINENO: result: no" >&5
4730 echo "${ECHO_T}no" >&6
4733 test -n "$F77" && break
4736 if test -z "$F77"; then
4738 for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
4740 # Extract the first word of "$ac_prog", so it can be a program name with args.
4741 set dummy $ac_prog; ac_word=$2
4742 echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4744 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$ac_ct_F77"; then
4748 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir=.
4755 for ac_exec_ext in '' $ac_executable_extensions; do
4756 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4757 ac_cv_prog_ac_ct_F77="$ac_prog"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4766 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4767 if test -n "$ac_ct_F77"; then
4768 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4769 echo "${ECHO_T}$ac_ct_F77" >&6
4771 echo "$as_me:$LINENO: result: no" >&5
4772 echo "${ECHO_T}no" >&6
4775 test -n "$ac_ct_F77" && break
4782 # Provide some information about the compiler.
4783 echo "$as_me:4783:" \
4784 "checking for Fortran 77 compiler version" >&5
4785 ac_compiler=`set X $ac_compile; echo $2`
4786 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4787 (eval $ac_compiler --version </dev/null >&5) 2>&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); }
4791 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4792 (eval $ac_compiler -v </dev/null >&5) 2>&5
4794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4795 (exit $ac_status); }
4796 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4797 (eval $ac_compiler -V </dev/null >&5) 2>&5
4799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4800 (exit $ac_status); }
4802 # If we don't use `.F' as extension, the preprocessor is not run on the
4806 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4807 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4808 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4809 echo $ECHO_N "(cached) $ECHO_C" >&6
4811 cat >conftest.$ac_ext <<_ACEOF
4819 rm -f conftest.$ac_objext
4820 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4821 (eval $ac_compile) 2>&5
4823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4824 (exit $ac_status); } &&
4825 { ac_try='test -s conftest.$ac_objext'
4826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4830 (exit $ac_status); }; }; then
4833 echo "$as_me: failed program was:" >&5
4834 sed 's/^/| /' conftest.$ac_ext >&5
4838 rm -f conftest.$ac_objext conftest.$ac_ext
4839 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4842 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4843 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4845 G77=`test $ac_compiler_gnu = yes && echo yes`
4846 ac_test_FFLAGS=${FFLAGS+set}
4847 ac_save_FFLAGS=$FFLAGS
4849 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4850 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4851 if test "${ac_cv_prog_f77_g+set}" = set; then
4852 echo $ECHO_N "(cached) $ECHO_C" >&6
4855 cat >conftest.$ac_ext <<_ACEOF
4860 rm -f conftest.$ac_objext
4861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4862 (eval $ac_compile) 2>&5
4864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865 (exit $ac_status); } &&
4866 { ac_try='test -s conftest.$ac_objext'
4867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); }; }; then
4872 ac_cv_prog_f77_g=yes
4874 echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4879 rm -f conftest.$ac_objext conftest.$ac_ext
4882 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4883 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4884 if test "$ac_test_FFLAGS" = set; then
4885 FFLAGS=$ac_save_FFLAGS
4886 elif test $ac_cv_prog_f77_g = yes; then
4887 if test "$G77" = yes; then
4893 if test "$G77" = yes; then
4900 ac_cpp='$CPP $CPPFLAGS'
4901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4907 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4909 # find the maximum length of command line arguments
4910 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4911 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4912 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4920 # On DJGPP, this test can blow up pretty badly due to problems in libc
4921 # (any single argument exceeding 2000 bytes causes a buffer overrun
4922 # during glob expansion). Even if it were fixed, the result of this
4923 # check would be larger than it should be.
4924 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4928 # Under GNU Hurd, this test is not required because there is
4929 # no limit to the length of command line arguments.
4930 # Libtool will interpret -1 as no limit whatsoever
4931 lt_cv_sys_max_cmd_len=-1;
4935 # On Win9x/ME, this test blows up -- it succeeds, but takes
4936 # about 5 minutes as the teststring grows exponentially.
4937 # Worse, since 9x/ME are not pre-emptively multitasking,
4938 # you end up with a "frozen" computer, even though with patience
4939 # the test eventually succeeds (with a max line length of 256k).
4940 # Instead, let's just punt: use the minimum linelength reported by
4941 # all of the supported platforms: 8192 (on NT/2K/XP).
4942 lt_cv_sys_max_cmd_len=8192;
4946 # On AmigaOS with pdksh, this test takes hours, literally.
4947 # So we just punt and use a minimum line length of 8192.
4948 lt_cv_sys_max_cmd_len=8192;
4952 # If test is not a shell built-in, we'll probably end up computing a
4953 # maximum length that is only half of the actual maximum length, but
4955 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4956 = "XX$teststring") >/dev/null 2>&1 &&
4957 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4958 lt_cv_sys_max_cmd_len=$new_result &&
4959 test $i != 17 # 1/2 MB should be enough
4962 teststring=$teststring$teststring
4965 # Add a significant safety factor because C++ compilers can tack on massive
4966 # amounts of additional arguments before passing them to the linker.
4967 # It appears as though 1/2 is a usable value.
4968 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4974 if test -n $lt_cv_sys_max_cmd_len ; then
4975 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4976 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4978 echo "$as_me:$LINENO: result: none" >&5
4979 echo "${ECHO_T}none" >&6
4985 # Check for command to grab the raw symbol name followed by C symbol from nm.
4986 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4987 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4988 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4989 echo $ECHO_N "(cached) $ECHO_C" >&6
4992 # These are sane defaults that work on at least a few old systems.
4993 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4995 # Character class describing NM global symbol codes.
4996 symcode='[BCDEGRST]'
4998 # Regexp to match symbols that can be accessed directly from C.
4999 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5001 # Transform the above into a raw symbol and a C symbol.
5002 symxfrm='\1 \2\3 \3'
5004 # Transform an extracted symbol line into a proper C declaration
5005 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5007 # Transform an extracted symbol line into symbol name and symbol address
5008 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'"
5010 # Define system-specific variables.
5015 cygwin* | mingw* | pw32*)
5016 symcode='[ABCDGISTW]'
5018 hpux*) # Its linker distinguishes data from code symbols
5019 if test "$host_cpu" = ia64; then
5020 symcode='[ABCDEGRST]'
5022 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5023 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'"
5026 symcode='[BCDEGRST]'
5029 symcode='[BCDEGQRST]'
5039 # Handle CRLF in mingw tool chain
5043 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5047 # If we're using GNU nm, then use its standard symbol codes.
5048 case `$NM -V 2>&1` in
5049 *GNU* | *'with BFD'*)
5050 symcode='[ABCDGIRSTW]' ;;
5053 # Try without a prefix undercore, then with it.
5054 for ac_symprfx in "" "_"; do
5056 # Write the raw and C identifiers.
5057 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5059 # Check to see that the pipe works correctly.
5063 cat > conftest.$ac_ext <<EOF
5068 void nm_test_func(){}
5072 int main(){nm_test_var='a';nm_test_func();return(0);}
5075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5076 (eval $ac_compile) 2>&5
5078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); }; then
5080 # Now try to grab the symbols.
5082 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5083 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5086 (exit $ac_status); } && test -s "$nlist"; then
5087 # Try sorting and uniquifying the output.
5088 if sort "$nlist" | uniq > "$nlist"T; then
5089 mv -f "$nlist"T "$nlist"
5094 # Make sure that we snagged all the symbols we need.
5095 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5096 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5097 cat <<EOF > conftest.$ac_ext
5103 # Now generate the symbol file.
5104 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5106 cat <<EOF >> conftest.$ac_ext
5107 #if defined (__STDC__) && __STDC__
5108 # define lt_ptr_t void *
5110 # define lt_ptr_t char *
5114 /* The mapping between symbol names and symbols. */
5119 lt_preloaded_symbols[] =
5122 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5123 cat <<\EOF >> conftest.$ac_ext
5131 # Now try linking the two files.
5132 mv conftest.$ac_objext conftstm.$ac_objext
5133 lt_save_LIBS="$LIBS"
5134 lt_save_CFLAGS="$CFLAGS"
5135 LIBS="conftstm.$ac_objext"
5136 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5138 (eval $ac_link) 2>&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5144 LIBS="$lt_save_LIBS"
5145 CFLAGS="$lt_save_CFLAGS"
5147 echo "cannot find nm_test_func in $nlist" >&5
5150 echo "cannot find nm_test_var in $nlist" >&5
5153 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5156 echo "$progname: failed program was:" >&5
5157 cat conftest.$ac_ext >&5
5159 rm -f conftest* conftst*
5161 # Do not use the global_symbol_pipe unless it works.
5162 if test "$pipe_works" = yes; then
5165 lt_cv_sys_global_symbol_pipe=
5171 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5172 lt_cv_sys_global_symbol_to_cdecl=
5174 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5175 echo "$as_me:$LINENO: result: failed" >&5
5176 echo "${ECHO_T}failed" >&6
5178 echo "$as_me:$LINENO: result: ok" >&5
5179 echo "${ECHO_T}ok" >&6
5182 echo "$as_me:$LINENO: checking for objdir" >&5
5183 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5184 if test "${lt_cv_objdir+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 rm -f .libs 2>/dev/null
5188 mkdir .libs 2>/dev/null
5189 if test -d .libs; then
5192 # MS-DOS does not allow filenames that begin with a dot.
5195 rmdir .libs 2>/dev/null
5197 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5198 echo "${ECHO_T}$lt_cv_objdir" >&6
5199 objdir=$lt_cv_objdir
5207 # AIX sometimes has problems with the GCC collect2 program. For some
5208 # reason, if we set the COLLECT_NAMES environment variable, the problems
5209 # vanish in a puff of smoke.
5210 if test "X${COLLECT_NAMES+set}" != Xset; then
5212 export COLLECT_NAMES
5217 # Sed substitution that helps us do robust quoting. It backslashifies
5218 # metacharacters that are still active within double-quoted strings.
5219 Xsed='sed -e s/^X//'
5220 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5222 # Same as above, but do not quote variable references.
5223 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5225 # Sed substitution to delay expansion of an escaped shell variable in a
5226 # double_quote_subst'ed string.
5227 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5229 # Sed substitution to avoid accidental globbing in evaled expressions
5230 no_glob_subst='s/\*/\\\*/g'
5236 default_ofile=libtool
5237 can_build_shared=yes
5239 # All known linkers require a `.a' archive for static linking (except M$VC,
5240 # which needs '.lib').
5242 ltmain="$ac_aux_dir/ltmain.sh"
5243 ofile="$default_ofile"
5244 with_gnu_ld="$lt_cv_prog_gnu_ld"
5246 if test -n "$ac_tool_prefix"; then
5247 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5248 set dummy ${ac_tool_prefix}ar; 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_AR+set}" = set; then
5252 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 if test -n "$AR"; then
5255 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar"
5265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5274 if test -n "$AR"; then
5275 echo "$as_me:$LINENO: result: $AR" >&5
5276 echo "${ECHO_T}$AR" >&6
5278 echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5283 if test -z "$ac_cv_prog_AR"; then
5285 # Extract the first word of "ar", so it can be a program name with args.
5286 set dummy ar; ac_word=$2
5287 echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5289 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 if test -n "$ac_ct_AR"; then
5293 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 test -z "$as_dir" && as_dir=.
5300 for ac_exec_ext in '' $ac_executable_extensions; do
5301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5302 ac_cv_prog_ac_ct_AR="ar"
5303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5312 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5313 if test -n "$ac_ct_AR"; then
5314 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5315 echo "${ECHO_T}$ac_ct_AR" >&6
5317 echo "$as_me:$LINENO: result: no" >&5
5318 echo "${ECHO_T}no" >&6
5326 if test -n "$ac_tool_prefix"; then
5327 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5328 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5329 echo "$as_me:$LINENO: checking for $ac_word" >&5
5330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5331 if test "${ac_cv_prog_RANLIB+set}" = set; then
5332 echo $ECHO_N "(cached) $ECHO_C" >&6
5334 if test -n "$RANLIB"; then
5335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5341 test -z "$as_dir" && as_dir=.
5342 for ac_exec_ext in '' $ac_executable_extensions; do
5343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5344 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 RANLIB=$ac_cv_prog_RANLIB
5354 if test -n "$RANLIB"; then
5355 echo "$as_me:$LINENO: result: $RANLIB" >&5
5356 echo "${ECHO_T}$RANLIB" >&6
5358 echo "$as_me:$LINENO: result: no" >&5
5359 echo "${ECHO_T}no" >&6
5363 if test -z "$ac_cv_prog_RANLIB"; then
5364 ac_ct_RANLIB=$RANLIB
5365 # Extract the first word of "ranlib", so it can be a program name with args.
5366 set dummy ranlib; ac_word=$2
5367 echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5369 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 if test -n "$ac_ct_RANLIB"; then
5373 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir=.
5380 for ac_exec_ext in '' $ac_executable_extensions; do
5381 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_prog_ac_ct_RANLIB="ranlib"
5383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5392 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5393 if test -n "$ac_ct_RANLIB"; then
5394 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5395 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5397 echo "$as_me:$LINENO: result: no" >&5
5398 echo "${ECHO_T}no" >&6
5401 RANLIB=$ac_ct_RANLIB
5403 RANLIB="$ac_cv_prog_RANLIB"
5406 if test -n "$ac_tool_prefix"; then
5407 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5408 set dummy ${ac_tool_prefix}strip; ac_word=$2
5409 echo "$as_me:$LINENO: checking for $ac_word" >&5
5410 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5411 if test "${ac_cv_prog_STRIP+set}" = set; then
5412 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 if test -n "$STRIP"; then
5415 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 test -z "$as_dir" && as_dir=.
5422 for ac_exec_ext in '' $ac_executable_extensions; do
5423 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5424 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 STRIP=$ac_cv_prog_STRIP
5434 if test -n "$STRIP"; then
5435 echo "$as_me:$LINENO: result: $STRIP" >&5
5436 echo "${ECHO_T}$STRIP" >&6
5438 echo "$as_me:$LINENO: result: no" >&5
5439 echo "${ECHO_T}no" >&6
5443 if test -z "$ac_cv_prog_STRIP"; then
5445 # Extract the first word of "strip", so it can be a program name with args.
5446 set dummy strip; ac_word=$2
5447 echo "$as_me:$LINENO: checking for $ac_word" >&5
5448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5449 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 if test -n "$ac_ct_STRIP"; then
5453 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir=.
5460 for ac_exec_ext in '' $ac_executable_extensions; do
5461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_prog_ac_ct_STRIP="strip"
5463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5469 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5472 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5473 if test -n "$ac_ct_STRIP"; then
5474 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5475 echo "${ECHO_T}$ac_ct_STRIP" >&6
5477 echo "$as_me:$LINENO: result: no" >&5
5478 echo "${ECHO_T}no" >&6
5483 STRIP="$ac_cv_prog_STRIP"
5488 old_CFLAGS="$CFLAGS"
5490 # Set sane defaults for various variables
5491 test -z "$AR" && AR=ar
5492 test -z "$AR_FLAGS" && AR_FLAGS=cru
5493 test -z "$AS" && AS=as
5494 test -z "$CC" && CC=cc
5495 test -z "$LTCC" && LTCC=$CC
5496 test -z "$DLLTOOL" && DLLTOOL=dlltool
5497 test -z "$LD" && LD=ld
5498 test -z "$LN_S" && LN_S="ln -s"
5499 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5500 test -z "$NM" && NM=nm
5501 test -z "$SED" && SED=sed
5502 test -z "$OBJDUMP" && OBJDUMP=objdump
5503 test -z "$RANLIB" && RANLIB=:
5504 test -z "$STRIP" && STRIP=:
5505 test -z "$ac_objext" && ac_objext=o
5507 # Determine commands to create old-style static archives.
5508 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5509 old_postinstall_cmds='chmod 644 $oldlib'
5510 old_postuninstall_cmds=
5512 if test -n "$RANLIB"; then
5515 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5518 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5521 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5524 # Only perform the check for file, if the check method requires it
5525 case $deplibs_check_method in
5527 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5528 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5529 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5530 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5531 echo $ECHO_N "(cached) $ECHO_C" >&6
5535 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5538 lt_save_MAGIC_CMD="$MAGIC_CMD"
5539 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5541 for ac_dir in $ac_dummy; do
5543 test -z "$ac_dir" && ac_dir=.
5544 if test -f $ac_dir/${ac_tool_prefix}file; then
5545 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5546 if test -n "$file_magic_test_file"; then
5547 case $deplibs_check_method in
5549 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5550 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5552 $EGREP "$file_magic_regex" > /dev/null; then
5557 *** Warning: the command libtool uses to detect shared libraries,
5558 *** $file_magic_cmd, produces output that libtool cannot recognize.
5559 *** The result is that libtool may fail to recognize shared libraries
5560 *** as such. This will affect the creation of libtool libraries that
5561 *** depend on shared libraries, but programs linked with such libtool
5562 *** libraries will work regardless of this problem. Nevertheless, you
5563 *** may want to report the problem to your system manager and/or to
5564 *** bug-libtool@gnu.org
5574 MAGIC_CMD="$lt_save_MAGIC_CMD"
5579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5580 if test -n "$MAGIC_CMD"; then
5581 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5582 echo "${ECHO_T}$MAGIC_CMD" >&6
5584 echo "$as_me:$LINENO: result: no" >&5
5585 echo "${ECHO_T}no" >&6
5588 if test -z "$lt_cv_path_MAGIC_CMD"; then
5589 if test -n "$ac_tool_prefix"; then
5590 echo "$as_me:$LINENO: checking for file" >&5
5591 echo $ECHO_N "checking for file... $ECHO_C" >&6
5592 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5597 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5600 lt_save_MAGIC_CMD="$MAGIC_CMD"
5601 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5602 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5603 for ac_dir in $ac_dummy; do
5605 test -z "$ac_dir" && ac_dir=.
5606 if test -f $ac_dir/file; then
5607 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5608 if test -n "$file_magic_test_file"; then
5609 case $deplibs_check_method in
5611 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5612 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5613 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5614 $EGREP "$file_magic_regex" > /dev/null; then
5619 *** Warning: the command libtool uses to detect shared libraries,
5620 *** $file_magic_cmd, produces output that libtool cannot recognize.
5621 *** The result is that libtool may fail to recognize shared libraries
5622 *** as such. This will affect the creation of libtool libraries that
5623 *** depend on shared libraries, but programs linked with such libtool
5624 *** libraries will work regardless of this problem. Nevertheless, you
5625 *** may want to report the problem to your system manager and/or to
5626 *** bug-libtool@gnu.org
5636 MAGIC_CMD="$lt_save_MAGIC_CMD"
5641 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5642 if test -n "$MAGIC_CMD"; then
5643 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5644 echo "${ECHO_T}$MAGIC_CMD" >&6
5646 echo "$as_me:$LINENO: result: no" >&5
5647 echo "${ECHO_T}no" >&6
5662 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5663 if test "${enable_libtool_lock+set}" = set; then
5664 enableval="$enable_libtool_lock"
5667 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5670 # Check whether --with-pic or --without-pic was given.
5671 if test "${with_pic+set}" = set; then
5677 test -z "$pic_mode" && pic_mode=default
5679 # Use C for the default configuration in the libtool script
5683 ac_cpp='$CPP $CPPFLAGS'
5684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5689 # Source file extension for C test sources.
5692 # Object file extension for compiled C test sources.
5696 # Code to be used in simple compile tests
5697 lt_simple_compile_test_code="int some_variable = 0;\n"
5699 # Code to be used in simple link tests
5700 lt_simple_link_test_code='int main(){return(0);}\n'
5703 # If no C compiler was specified, use CC.
5706 # Allow CC to be a program name with arguments.
5711 # Check for any special shared library compilation flags.
5714 if test "$GCC" = no; then
5717 lt_prog_cc_shlib='-belf'
5721 if test -n "$lt_prog_cc_shlib"; then
5722 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5723 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5724 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5726 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5727 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5728 lt_cv_prog_cc_can_build_shared=no
5734 # Check to make sure the static flag actually works.
5736 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5737 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5738 if test "${lt_prog_compiler_static_works+set}" = set; then
5739 echo $ECHO_N "(cached) $ECHO_C" >&6
5741 lt_prog_compiler_static_works=no
5742 save_LDFLAGS="$LDFLAGS"
5743 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5744 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5745 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5746 # The compiler can only warn and ignore the option if not recognized
5747 # So say no if there are warnings
5748 if test -s conftest.err; then
5749 # Append any errors to the config.log.
5750 cat conftest.err 1>&5
5752 lt_prog_compiler_static_works=yes
5756 LDFLAGS="$save_LDFLAGS"
5759 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5760 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5762 if test x"$lt_prog_compiler_static_works" = xyes; then
5765 lt_prog_compiler_static=
5771 lt_prog_compiler_no_builtin_flag=
5773 if test "$GCC" = yes; then
5774 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5777 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5778 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5779 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 lt_cv_prog_compiler_rtti_exceptions=no
5783 ac_outfile=conftest.$ac_objext
5784 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5785 lt_compiler_flag="-fno-rtti -fno-exceptions"
5786 # Insert the option either (1) after the last *FLAGS variable, or
5787 # (2) before a word containing "conftest.", or (3) at the end.
5788 # Note that $ac_compile itself does not contain backslashes and begins
5789 # with a dollar sign (not a hyphen), so the echo should work correctly.
5790 # The option is referenced via a variable to avoid confusing sed.
5791 lt_compile=`echo "$ac_compile" | $SED \
5792 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5794 -e 's:$: $lt_compiler_flag:'`
5795 (eval echo "\"\$as_me:5795: $lt_compile\"" >&5)
5796 (eval "$lt_compile" 2>conftest.err)
5798 cat conftest.err >&5
5799 echo "$as_me:5799: \$? = $ac_status" >&5
5800 if (exit $ac_status) && test -s "$ac_outfile"; then
5801 # The compiler can only warn and ignore the option if not recognized
5802 # So say no if there are warnings
5803 if test ! -s conftest.err; then
5804 lt_cv_prog_compiler_rtti_exceptions=yes
5810 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5811 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5813 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5814 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5821 lt_prog_compiler_wl=
5822 lt_prog_compiler_pic=
5823 lt_prog_compiler_static=
5825 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5826 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5828 if test "$GCC" = yes; then
5829 lt_prog_compiler_wl='-Wl,'
5830 lt_prog_compiler_static='-static'
5834 # All AIX code is PIC.
5835 if test "$host_cpu" = ia64; then
5836 # AIX 5 now supports IA64 processor
5837 lt_prog_compiler_static='-Bstatic'
5842 # FIXME: we need at least 68020 code to build shared libraries, but
5843 # adding the `-m68020' flag to GCC prevents building anything better,
5845 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5848 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5849 # PIC is the default for these OSes.
5852 mingw* | pw32* | os2*)
5853 # This hack is so that the source file can tell whether it is being
5854 # built for inclusion in a dll (and should export symbols for example).
5855 lt_prog_compiler_pic='-DDLL_EXPORT'
5858 darwin* | rhapsody*)
5859 # PIC is the default on this platform
5860 # Common symbols not allowed in MH_DYLIB files
5861 lt_prog_compiler_pic='-fno-common'
5865 # Just because we use GCC doesn't mean we suddenly get shared libraries
5866 # on systems that don't support them.
5867 lt_prog_compiler_can_build_shared=no
5872 if test -d /usr/nec; then
5873 lt_prog_compiler_pic=-Kconform_pic
5878 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5885 lt_prog_compiler_pic='-fPIC'
5891 lt_prog_compiler_pic='-fPIC'
5895 # PORTME Check for flag to pass linker flags through the system compiler.
5898 lt_prog_compiler_wl='-Wl,'
5899 if test "$host_cpu" = ia64; then
5900 # AIX 5 now supports IA64 processor
5901 lt_prog_compiler_static='-Bstatic'
5903 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5907 mingw* | pw32* | os2*)
5908 # This hack is so that the source file can tell whether it is being
5909 # built for inclusion in a dll (and should export symbols for example).
5910 lt_prog_compiler_pic='-DDLL_EXPORT'
5913 hpux9* | hpux10* | hpux11*)
5914 lt_prog_compiler_wl='-Wl,'
5915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5922 lt_prog_compiler_pic='+Z'
5925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5926 lt_prog_compiler_static='${wl}-a ${wl}archive'
5929 irix5* | irix6* | nonstopux*)
5930 lt_prog_compiler_wl='-Wl,'
5931 # PIC (with -KPIC) is the default.
5932 lt_prog_compiler_static='-non_shared'
5936 lt_prog_compiler_pic='-KPIC'
5937 lt_prog_compiler_static='-Bstatic'
5943 lt_prog_compiler_wl='-Wl,'
5944 lt_prog_compiler_pic='-KPIC'
5945 lt_prog_compiler_static='-static'
5948 lt_prog_compiler_wl='-Wl,'
5949 # All Alpha code is PIC.
5950 lt_prog_compiler_static='-non_shared'
5955 osf3* | osf4* | osf5*)
5956 lt_prog_compiler_wl='-Wl,'
5957 # All OSF/1 code is PIC.
5958 lt_prog_compiler_static='-non_shared'
5962 lt_prog_compiler_pic='-Kpic'
5963 lt_prog_compiler_static='-dn'
5967 lt_prog_compiler_wl='-Wl,'
5968 lt_prog_compiler_pic='-KPIC'
5969 lt_prog_compiler_static='-Bstatic'
5973 lt_prog_compiler_wl='-Qoption ld '
5974 lt_prog_compiler_pic='-PIC'
5975 lt_prog_compiler_static='-Bstatic'
5978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5979 lt_prog_compiler_wl='-Wl,'
5980 lt_prog_compiler_pic='-KPIC'
5981 lt_prog_compiler_static='-Bstatic'
5985 if test -d /usr/nec ;then
5986 lt_prog_compiler_pic='-Kconform_pic'
5987 lt_prog_compiler_static='-Bstatic'
5992 lt_prog_compiler_pic='-pic'
5993 lt_prog_compiler_static='-Bstatic'
5997 lt_prog_compiler_can_build_shared=no
6002 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6003 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6006 # Check to make sure the PIC flag actually works.
6008 if test -n "$lt_prog_compiler_pic"; then
6010 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6011 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6012 if test "${lt_prog_compiler_pic_works+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 lt_prog_compiler_pic_works=no
6016 ac_outfile=conftest.$ac_objext
6017 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6018 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6019 # Insert the option either (1) after the last *FLAGS variable, or
6020 # (2) before a word containing "conftest.", or (3) at the end.
6021 # Note that $ac_compile itself does not contain backslashes and begins
6022 # with a dollar sign (not a hyphen), so the echo should work correctly.
6023 # The option is referenced via a variable to avoid confusing sed.
6024 lt_compile=`echo "$ac_compile" | $SED \
6025 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6026 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6027 -e 's:$: $lt_compiler_flag:'`
6028 (eval echo "\"\$as_me:6028: $lt_compile\"" >&5)
6029 (eval "$lt_compile" 2>conftest.err)
6031 cat conftest.err >&5
6032 echo "$as_me:6032: \$? = $ac_status" >&5
6033 if (exit $ac_status) && test -s "$ac_outfile"; then
6034 # The compiler can only warn and ignore the option if not recognized
6035 # So say no if there are warnings
6036 if test ! -s conftest.err; then
6037 lt_prog_compiler_pic_works=yes
6043 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6044 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6046 if test x"$lt_prog_compiler_pic_works" = xyes; then
6047 case $lt_prog_compiler_pic in
6049 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6052 lt_prog_compiler_pic=
6053 lt_prog_compiler_can_build_shared=no
6058 # For platforms which do not support PIC, -DPIC is meaningless:
6060 lt_prog_compiler_pic=
6063 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6067 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6068 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6069 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6072 lt_cv_prog_compiler_c_o=no
6073 $rm -r conftest 2>/dev/null
6077 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6079 lt_compiler_flag="-o out/conftest2.$ac_objext"
6080 # Insert the option either (1) after the last *FLAGS variable, or
6081 # (2) before a word containing "conftest.", or (3) at the end.
6082 # Note that $ac_compile itself does not contain backslashes and begins
6083 # with a dollar sign (not a hyphen), so the echo should work correctly.
6084 lt_compile=`echo "$ac_compile" | $SED \
6085 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6086 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6087 -e 's:$: $lt_compiler_flag:'`
6088 (eval echo "\"\$as_me:6088: $lt_compile\"" >&5)
6089 (eval "$lt_compile" 2>out/conftest.err)
6091 cat out/conftest.err >&5
6092 echo "$as_me:6092: \$? = $ac_status" >&5
6093 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6095 # The compiler can only warn and ignore the option if not recognized
6096 # So say no if there are warnings
6097 if test ! -s out/conftest.err; then
6098 lt_cv_prog_compiler_c_o=yes
6103 # SGI C++ compiler will create directory out/ii_files/ for
6104 # template instantiation
6105 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6106 $rm out/* && rmdir out
6112 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6113 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6116 hard_links="nottested"
6117 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6118 # do not overwrite the value of need_locks provided by the user
6119 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6120 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6123 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6125 ln conftest.a conftest.b 2>&5 || hard_links=no
6126 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6127 echo "$as_me:$LINENO: result: $hard_links" >&5
6128 echo "${ECHO_T}$hard_links" >&6
6129 if test "$hard_links" = no; then
6130 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6131 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6138 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6139 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6142 allow_undefined_flag=
6143 enable_shared_with_static_runtimes=no
6145 archive_expsym_cmds=
6146 old_archive_From_new_cmds=
6147 old_archive_from_expsyms_cmds=
6148 export_dynamic_flag_spec=
6149 whole_archive_flag_spec=
6150 thread_safe_flag_spec=
6151 hardcode_libdir_flag_spec=
6152 hardcode_libdir_flag_spec_ld=
6153 hardcode_libdir_separator=
6156 hardcode_shlibpath_var=unsupported
6157 link_all_deplibs=unknown
6158 hardcode_automatic=no
6161 always_export_symbols=no
6162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6163 # include_expsyms should be a list of space-separated symbols to be *always*
6164 # included in the symbol list
6166 # exclude_expsyms can be an extended regexp of symbols to exclude
6167 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6168 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6169 # as well as any symbol that contains `d'.
6170 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6172 # platforms (ab)use it in PIC code, but their linkers get confused if
6173 # the symbol is explicitly referenced. Since portable code cannot
6174 # rely on this symbol name, it's probably fine to never include it in
6175 # preloaded symbol tables.
6176 extract_expsyms_cmds=
6179 cygwin* | mingw* | pw32*)
6180 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6181 # When not using gcc, we currently assume that we are using
6182 # Microsoft Visual C++.
6183 if test "$GCC" != yes; then
6193 if test "$with_gnu_ld" = yes; then
6194 # If archive_cmds runs LD, not CC, wlarc should be empty
6197 # See if GNU ld supports shared libraries.
6199 aix3* | aix4* | aix5*)
6200 # On AIX/PPC, the GNU linker is very broken
6201 if test "$host_cpu" != ia64; then
6205 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6206 *** to be unable to reliably create shared libraries on AIX.
6207 *** Therefore, libtool is disabling shared libraries support. If you
6208 *** really care for shared libraries, you may want to modify your PATH
6209 *** so that a non-GNU linker is found, and then restart.
6216 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)'
6217 hardcode_libdir_flag_spec='-L$libdir'
6218 hardcode_minus_L=yes
6220 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6221 # that the semantics of dynamic libraries on AmigaOS, at least up
6222 # to version 4, is to share data among multiple programs linked
6223 # with the same dynamic library. Since this doesn't match the
6224 # behavior of shared libraries on other platforms, we can't use
6230 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6231 allow_undefined_flag=unsupported
6232 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6233 # support --undefined. This deserves some investigation. FIXME
6234 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6240 cygwin* | mingw* | pw32*)
6241 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6242 # as there is no search path for DLLs.
6243 hardcode_libdir_flag_spec='-L$libdir'
6244 allow_undefined_flag=unsupported
6245 always_export_symbols=no
6246 enable_shared_with_static_runtimes=yes
6247 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6249 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6250 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6251 # If the export-symbols file already is a .def file (1st line
6252 # is EXPORTS), use it as is; otherwise, prepend...
6253 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6254 cp $export_symbols $output_objdir/$soname.def;
6256 echo EXPORTS > $output_objdir/$soname.def;
6257 cat $export_symbols >> $output_objdir/$soname.def;
6259 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6265 netbsd* | knetbsd*-gnu)
6266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6267 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6271 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6276 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6280 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6281 *** create shared libraries on Solaris systems. Therefore, libtool
6282 *** is disabling shared libraries support. We urge you to upgrade GNU
6283 *** binutils to release 2.9.1 or newer. Another option is to modify
6284 *** your PATH or compiler configuration so that the native linker is
6285 *** used, and then restart.
6288 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6289 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6290 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6297 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6300 hardcode_shlibpath_var=no
6304 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6305 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6306 archive_cmds="$tmp_archive_cmds"
6307 supports_anon_versioning=no
6308 case `$LD -v 2>/dev/null` in
6309 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6310 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6311 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6312 *\ 2.11.*) ;; # other 2.11 versions
6313 *) supports_anon_versioning=yes ;;
6315 if test $supports_anon_versioning = yes; then
6316 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6317 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6318 $echo "local: *; };" >> $output_objdir/$libname.ver~
6319 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6321 archive_expsym_cmds="$tmp_archive_cmds"
6330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6331 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6332 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6339 if test "$ld_shlibs" = yes; then
6340 runpath_var=LD_RUN_PATH
6341 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6342 export_dynamic_flag_spec='${wl}--export-dynamic'
6343 # ancient GNU ld didn't support --whole-archive et. al.
6344 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6345 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6347 whole_archive_flag_spec=
6351 # PORTME fill in a description of your system's linker (not GNU ld)
6354 allow_undefined_flag=unsupported
6355 always_export_symbols=yes
6356 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'
6357 # Note: this linker hardcodes the directories in LIBPATH if there
6358 # are no directories specified by -L.
6359 hardcode_minus_L=yes
6360 if test "$GCC" = yes && test -z "$link_static_flag"; then
6361 # Neither direct hardcoding nor static linking is supported with a
6363 hardcode_direct=unsupported
6368 if test "$host_cpu" = ia64; then
6369 # On IA64, the linker does run time linking by default, so we don't
6370 # have to do anything special.
6371 aix_use_runtimelinking=no
6372 exp_sym_flag='-Bexport'
6375 # If we're using GNU nm, then we don't want the "-C" option.
6376 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6377 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6378 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'
6380 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'
6382 aix_use_runtimelinking=no
6384 # Test if we are trying to use run time linking or normal
6385 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6386 # need to do runtime linking.
6387 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6388 for ld_flag in $LDFLAGS; do
6389 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6390 aix_use_runtimelinking=yes
6396 exp_sym_flag='-bexport'
6397 no_entry_flag='-bnoentry'
6400 # When large executables or shared objects are built, AIX ld can
6401 # have problems creating the table of contents. If linking a library
6402 # or program results in "error TOC overflow" add -mminimal-toc to
6403 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6404 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6408 hardcode_libdir_separator=':'
6409 link_all_deplibs=yes
6411 if test "$GCC" = yes; then
6412 case $host_os in aix4.012|aix4.012.*)
6413 # We only want to do this on AIX 4.2 and lower, the check
6414 # below for broken collect2 doesn't work under 4.3+
6415 collect2name=`${CC} -print-prog-name=collect2`
6416 if test -f "$collect2name" && \
6417 strings "$collect2name" | grep resolve_lib_name >/dev/null
6419 # We have reworked collect2
6422 # We have old collect2
6423 hardcode_direct=unsupported
6424 # It fails to find uninstalled libraries when the uninstalled
6425 # path is not listed in the libpath. Setting hardcode_minus_L
6426 # to unsupported forces relinking
6427 hardcode_minus_L=yes
6428 hardcode_libdir_flag_spec='-L$libdir'
6429 hardcode_libdir_separator=
6432 shared_flag='-shared'
6435 if test "$host_cpu" = ia64; then
6436 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6437 # chokes on -Wl,-G. The following line is correct:
6440 if test "$aix_use_runtimelinking" = yes; then
6441 shared_flag='${wl}-G'
6443 shared_flag='${wl}-bM:SRE'
6448 # It seems that -bexpall does not export symbols beginning with
6449 # underscore (_), so it is better to generate a list of symbols to export.
6450 always_export_symbols=yes
6451 if test "$aix_use_runtimelinking" = yes; then
6452 # Warning - without using the other runtime loading flags (-brtl),
6453 # -berok will link without error, but may produce a broken library.
6454 allow_undefined_flag='-berok'
6455 # Determine the default libpath from the value encoded in an empty executable.
6456 cat >conftest.$ac_ext <<_ACEOF
6457 #line $LINENO "configure"
6460 cat confdefs.h >>conftest.$ac_ext
6461 cat >>conftest.$ac_ext <<_ACEOF
6462 /* end confdefs.h. */
6472 rm -f conftest.$ac_objext conftest$ac_exeext
6473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6474 (eval $ac_link) 2>&5
6476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6477 (exit $ac_status); } &&
6478 { ac_try='test -s conftest$ac_exeext'
6479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6485 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6487 # Check for a 64-bit object if we didn't find anything.
6488 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; }
6491 echo "$as_me: failed program was:" >&5
6492 sed 's/^/| /' conftest.$ac_ext >&5
6495 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6496 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6499 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"
6501 if test "$host_cpu" = ia64; then
6502 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6503 allow_undefined_flag="-z nodefs"
6504 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"
6506 # Determine the default libpath from the value encoded in an empty executable.
6507 cat >conftest.$ac_ext <<_ACEOF
6508 #line $LINENO "configure"
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6523 rm -f conftest.$ac_objext conftest$ac_exeext
6524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6525 (eval $ac_link) 2>&5
6527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6528 (exit $ac_status); } &&
6529 { ac_try='test -s conftest$ac_exeext'
6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6538 # Check for a 64-bit object if we didn't find anything.
6539 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; }
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6546 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
6547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6550 # Warning - without using the other run time loading flags,
6551 # -berok will link without error, but may produce a broken library.
6552 no_undefined_flag=' ${wl}-bernotok'
6553 allow_undefined_flag=' ${wl}-berok'
6554 # -bexpall does not export symbols beginning with underscore (_)
6555 always_export_symbols=yes
6556 # Exported symbols can be pulled into shared objects from archives
6557 whole_archive_flag_spec=' '
6558 archive_cmds_need_lc=yes
6559 # This is similar to how AIX traditionally builds it's shared libraries.
6560 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'
6566 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)'
6567 hardcode_libdir_flag_spec='-L$libdir'
6568 hardcode_minus_L=yes
6569 # see comment about different semantics on the GNU ld section
6574 export_dynamic_flag_spec=-rdynamic
6577 cygwin* | mingw* | pw32*)
6578 # When not using gcc, we currently assume that we are using
6579 # Microsoft Visual C++.
6580 # hardcode_libdir_flag_spec is actually meaningless, as there is
6581 # no search path for DLLs.
6582 hardcode_libdir_flag_spec=' '
6583 allow_undefined_flag=unsupported
6584 # Tell ltmain to make .lib files, not .a files.
6586 # Tell ltmain to make .dll files, not .so files.
6588 # FIXME: Setting linknames here is a bad hack.
6589 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6590 # The linker will automatically build a .lib file if we build a DLL.
6591 old_archive_From_new_cmds='true'
6592 # FIXME: Should let the user specify the lib program.
6593 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6594 fix_srcfile_path='`cygpath -w "$srcfile"`'
6595 enable_shared_with_static_runtimes=yes
6598 darwin* | rhapsody*)
6599 if test "$GXX" = yes ; then
6600 archive_cmds_need_lc=no
6602 rhapsody* | darwin1.[012])
6603 allow_undefined_flag='-undefined suppress'
6606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6607 allow_undefined_flag='-flat_namespace -undefined suppress'
6609 case ${MACOSX_DEPLOYMENT_TARGET} in
6611 allow_undefined_flag='-flat_namespace -undefined suppress'
6614 allow_undefined_flag='-undefined dynamic_lookup'
6620 lt_int_apple_cc_single_mod=no
6621 output_verbose_link_cmd='echo'
6622 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6623 lt_int_apple_cc_single_mod=yes
6625 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6626 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6628 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'
6630 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6631 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6633 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}'
6635 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}'
6637 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}'
6639 hardcode_automatic=yes
6640 hardcode_shlibpath_var=unsupported
6641 whole_archive_flag_spec='-all_load $convenience'
6642 link_all_deplibs=yes
6649 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6650 hardcode_libdir_flag_spec='-L$libdir'
6651 hardcode_shlibpath_var=no
6658 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6659 # support. Future versions do this automatically, but an explicit c++rt0.o
6660 # does not break anything, and helps significantly (at the cost of a little
6663 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6664 hardcode_libdir_flag_spec='-R$libdir'
6666 hardcode_shlibpath_var=no
6669 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6673 hardcode_minus_L=yes
6674 hardcode_shlibpath_var=no
6677 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6678 freebsd* | kfreebsd*-gnu)
6679 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6680 hardcode_libdir_flag_spec='-R$libdir'
6682 hardcode_shlibpath_var=no
6686 if test "$GCC" = yes; then
6687 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'
6689 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'
6691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6692 hardcode_libdir_separator=:
6695 # hardcode_minus_L: Not really in the search PATH,
6696 # but as the default location of the library.
6697 hardcode_minus_L=yes
6698 export_dynamic_flag_spec='${wl}-E'
6702 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6705 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6708 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6714 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6717 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6721 if test "$with_gnu_ld" = no; then
6724 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6725 hardcode_libdir_flag_spec_ld='+b $libdir'
6726 hardcode_libdir_separator=:
6728 hardcode_shlibpath_var=no
6731 hardcode_libdir_flag_spec='-L$libdir'
6733 hardcode_shlibpath_var=no
6735 # hardcode_minus_L: Not really in the search PATH,
6736 # but as the default location of the library.
6737 hardcode_minus_L=yes
6740 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6741 hardcode_libdir_separator=:
6743 export_dynamic_flag_spec='${wl}-E'
6745 # hardcode_minus_L: Not really in the search PATH,
6746 # but as the default location of the library.
6747 hardcode_minus_L=yes
6753 irix5* | irix6* | nonstopux*)
6754 if test "$GCC" = yes; then
6755 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'
6757 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'
6758 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6760 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6761 hardcode_libdir_separator=:
6762 link_all_deplibs=yes
6765 netbsd* | knetbsd*-gnu)
6766 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6767 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6769 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6771 hardcode_libdir_flag_spec='-R$libdir'
6773 hardcode_shlibpath_var=no
6777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6780 hardcode_libdir_separator=:
6781 hardcode_shlibpath_var=no
6786 hardcode_shlibpath_var=no
6787 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6788 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6789 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6790 export_dynamic_flag_spec='${wl}-E'
6793 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6795 hardcode_libdir_flag_spec='-R$libdir'
6798 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6799 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6806 hardcode_libdir_flag_spec='-L$libdir'
6807 hardcode_minus_L=yes
6808 allow_undefined_flag=unsupported
6809 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'
6810 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6814 if test "$GCC" = yes; then
6815 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6816 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'
6818 allow_undefined_flag=' -expect_unresolved \*'
6819 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'
6821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6822 hardcode_libdir_separator=:
6825 osf4* | osf5*) # as osf3* with the addition of -msym flag
6826 if test "$GCC" = yes; then
6827 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6828 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'
6829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6831 allow_undefined_flag=' -expect_unresolved \*'
6832 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'
6833 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6834 $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'
6836 # Both c and cxx compiler support -rpath directly
6837 hardcode_libdir_flag_spec='-rpath $libdir'
6839 hardcode_libdir_separator=:
6843 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6844 hardcode_shlibpath_var=no
6845 export_dynamic_flag_spec='${wl}-Bexport'
6846 runpath_var=LD_RUN_PATH
6847 hardcode_runpath_var=yes
6851 no_undefined_flag=' -z text'
6852 if test "$GCC" = yes; then
6853 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6854 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6855 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6857 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6858 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6859 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6861 hardcode_libdir_flag_spec='-R$libdir'
6862 hardcode_shlibpath_var=no
6864 solaris2.[0-5] | solaris2.[0-5].*) ;;
6865 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6866 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6868 link_all_deplibs=yes
6872 if test "x$host_vendor" = xsequent; then
6873 # Use $CC to link under sequent, because it throws in some extra .o
6874 # files that make .init and .fini sections work.
6875 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6877 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6879 hardcode_libdir_flag_spec='-L$libdir'
6881 hardcode_minus_L=yes
6882 hardcode_shlibpath_var=no
6886 case $host_vendor in
6888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6889 hardcode_direct=yes # is this really true???
6892 ## LD is ld it makes a PLAMLIB
6893 ## CC just makes a GrossModule.
6894 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6895 reload_cmds='$CC -r -o $output$reload_objs'
6899 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6900 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6903 runpath_var='LD_RUN_PATH'
6904 hardcode_shlibpath_var=no
6908 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6909 hardcode_shlibpath_var=no
6910 export_dynamic_flag_spec='-Bexport'
6914 if test -d /usr/nec; then
6915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6916 hardcode_shlibpath_var=no
6917 runpath_var=LD_RUN_PATH
6918 hardcode_runpath_var=yes
6924 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6927 hardcode_shlibpath_var=no
6928 hardcode_runpath_var=yes
6929 runpath_var=LD_RUN_PATH
6932 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6933 no_undefined_flag='${wl}-z ${wl}text'
6934 if test "$GCC" = yes; then
6935 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6937 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6939 runpath_var='LD_RUN_PATH'
6940 hardcode_shlibpath_var=no
6944 no_undefined_flag=' -z text'
6945 # $CC -shared without GNU ld will not create a library from C++
6946 # object files and a static libstdc++, better avoid it by now
6947 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6948 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6949 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6950 hardcode_libdir_flag_spec=
6951 hardcode_shlibpath_var=no
6952 runpath_var='LD_RUN_PATH'
6956 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6957 hardcode_libdir_flag_spec='-L$libdir'
6958 hardcode_shlibpath_var=no
6967 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6968 echo "${ECHO_T}$ld_shlibs" >&6
6969 test "$ld_shlibs" = no && can_build_shared=no
6971 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6972 if test "$GCC" = yes; then
6973 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6977 # Do we need to explicitly link libc?
6979 case "x$archive_cmds_need_lc" in
6981 # Assume -lc should be added
6982 archive_cmds_need_lc=yes
6984 if test "$enable_shared" = yes && test "$GCC" = yes; then
6985 case $archive_cmds in
6987 # FIXME: we may have to deal with multi-command sequences.
6990 # Test whether the compiler implicitly links with -lc since on some
6991 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6992 # to ld, don't add -lc before -lgcc.
6993 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6994 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6996 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6998 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6999 (eval $ac_compile) 2>&5
7001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7002 (exit $ac_status); } 2>conftest.err; then
7005 libobjs=conftest.$ac_objext
7007 wl=$lt_prog_compiler_wl
7013 lt_save_allow_undefined_flag=$allow_undefined_flag
7014 allow_undefined_flag=
7015 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7016 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); }
7021 archive_cmds_need_lc=no
7023 archive_cmds_need_lc=yes
7025 allow_undefined_flag=$lt_save_allow_undefined_flag
7027 cat conftest.err 1>&5
7030 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7031 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7038 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7039 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7041 libname_spec='lib$name'
7049 shlibpath_overrides_runpath=unknown
7051 dynamic_linker="$host_os ld.so"
7052 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7053 if test "$GCC" = yes; then
7054 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7055 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7056 # if the path contains ";" then we assume it to be the separator
7057 # otherwise default to the standard path separator (i.e. ":") - it is
7058 # assumed that no part of a normal pathname contains ";" but that should
7059 # okay in the real world where ";" in dirpaths is itself problematic.
7060 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7062 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7065 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7067 need_lib_prefix=unknown
7068 hardcode_into_libs=no
7070 # when you set need_version to no, make sure it does not cause -set_version
7071 # flags to be left without arguments
7072 need_version=unknown
7077 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7078 shlibpath_var=LIBPATH
7080 # AIX 3 has no versioning support, so we append a major version to the name.
7081 soname_spec='${libname}${release}${shared_ext}$major'
7088 hardcode_into_libs=yes
7089 if test "$host_cpu" = ia64; then
7090 # AIX 5 supports IA64
7091 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7092 shlibpath_var=LD_LIBRARY_PATH
7094 # With GCC up to 2.95.x, collect2 would create an import file
7095 # for dependence libraries. The import file would start with
7096 # the line `#! .'. This would cause the generated library to
7097 # depend on `.', always an invalid library. This was fixed in
7098 # development snapshots of GCC prior to 3.0.
7100 aix4 | aix4.[01] | aix4.[01].*)
7101 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7103 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7110 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7111 # soname into executable. Probably we can add versioning support to
7112 # collect2, so additional links can be useful in future.
7113 if test "$aix_use_runtimelinking" = yes; then
7114 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7115 # instead of lib<name>.a to let people know that these are not
7116 # typical AIX shared libraries.
7117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7119 # We preserve .a as extension for shared libraries through AIX4.2
7120 # and later when we are not doing run time linking.
7121 library_names_spec='${libname}${release}.a $libname.a'
7122 soname_spec='${libname}${release}${shared_ext}$major'
7124 shlibpath_var=LIBPATH
7129 library_names_spec='$libname.ixlibrary $libname.a'
7130 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7131 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'
7135 library_names_spec='${libname}${shared_ext}'
7136 dynamic_linker="$host_os ld.so"
7137 shlibpath_var=LIBRARY_PATH
7143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7144 soname_spec='${libname}${release}${shared_ext}$major'
7145 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7146 shlibpath_var=LD_LIBRARY_PATH
7147 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7148 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7149 # the default ld.so.conf also contains /usr/contrib/lib and
7150 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7151 # libtool to hard-code these into programs
7154 cygwin* | mingw* | pw32*)
7155 version_type=windows
7160 case $GCC,$host_os in
7161 yes,cygwin* | yes,mingw* | yes,pw32*)
7162 library_names_spec='$libname.dll.a'
7163 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7164 postinstall_cmds='base_file=`basename \${file}`~
7165 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7166 dldir=$destdir/`dirname \$dlpath`~
7167 test -d \$dldir || mkdir -p \$dldir~
7168 $install_prog $dir/$dlname \$dldir/$dlname'
7169 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7170 dlpath=$dir/\$dldll~
7172 shlibpath_overrides_runpath=yes
7176 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7177 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7178 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7181 # MinGW DLLs use traditional 'lib' prefix
7182 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7183 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7184 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7185 # It is most probably a Windows format PATH printed by
7186 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7187 # path with ; separators, and with drive letters. We can handle the
7188 # drive letters (cygwin fileutils understands them), so leave them,
7189 # especially as we might pass files found there to a mingw objdump,
7190 # which wouldn't understand a cygwinified path. Ahh.
7191 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7193 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7197 # pw32 DLLs use 'pw' prefix rather than 'lib'
7198 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7204 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7207 dynamic_linker='Win32 ld.exe'
7208 # FIXME: first we should search . and the directory the executable is in
7212 darwin* | rhapsody*)
7213 dynamic_linker="$host_os dyld"
7217 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7218 soname_spec='${libname}${release}${major}$shared_ext'
7219 shlibpath_overrides_runpath=yes
7220 shlibpath_var=DYLD_LIBRARY_PATH
7221 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7222 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7223 if test "$GCC" = yes; then
7224 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"`
7226 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7236 soname_spec='${libname}${release}${shared_ext}$major'
7237 shlibpath_var=LD_LIBRARY_PATH
7248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7249 soname_spec='${libname}${release}${shared_ext}$major'
7250 shlibpath_var=LD_LIBRARY_PATH
7251 shlibpath_overrides_runpath=no
7252 hardcode_into_libs=yes
7253 dynamic_linker='GNU ld.so'
7257 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7258 version_type=freebsd-$objformat
7259 case $version_type in
7261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7270 shlibpath_var=LD_LIBRARY_PATH
7273 shlibpath_overrides_runpath=yes
7275 freebsd3.01* | freebsdelf3.01*)
7276 shlibpath_overrides_runpath=yes
7277 hardcode_into_libs=yes
7280 shlibpath_overrides_runpath=no
7281 hardcode_into_libs=yes
7290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 shlibpath_var=LD_LIBRARY_PATH
7293 hardcode_into_libs=yes
7296 hpux9* | hpux10* | hpux11*)
7297 # Give a soname corresponding to the major version so that dld.sl refuses to
7298 # link against other versions.
7305 hardcode_into_libs=yes
7306 dynamic_linker="$host_os dld.so"
7307 shlibpath_var=LD_LIBRARY_PATH
7308 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7310 soname_spec='${libname}${release}${shared_ext}$major'
7311 if test "X$HPUX_IA64_MODE" = X32; then
7312 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7314 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7316 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7320 hardcode_into_libs=yes
7321 dynamic_linker="$host_os dld.sl"
7322 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7323 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7325 soname_spec='${libname}${release}${shared_ext}$major'
7326 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7327 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7331 dynamic_linker="$host_os dld.sl"
7332 shlibpath_var=SHLIB_PATH
7333 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7335 soname_spec='${libname}${release}${shared_ext}$major'
7338 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7339 postinstall_cmds='chmod 555 $lib'
7342 irix5* | irix6* | nonstopux*)
7344 nonstopux*) version_type=nonstopux ;;
7346 if test "$lt_cv_prog_gnu_ld" = yes; then
7354 soname_spec='${libname}${release}${shared_ext}$major'
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7357 irix5* | nonstopux*)
7361 case $LD in # libtool.m4 will add one of these switches to LD
7362 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7363 libsuff= shlibsuff= libmagic=32-bit;;
7364 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7365 libsuff=32 shlibsuff=N32 libmagic=N32;;
7366 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7367 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7368 *) libsuff= shlibsuff= libmagic=never-match;;
7372 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7373 shlibpath_overrides_runpath=no
7374 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7375 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7376 hardcode_into_libs=yes
7379 # No shared lib support for Linux oldld, aout, or coff.
7380 linux*oldld* | linux*aout* | linux*coff*)
7384 # This must be Linux ELF.
7389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7390 soname_spec='${libname}${release}${shared_ext}$major'
7391 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7392 shlibpath_var=LD_LIBRARY_PATH
7393 shlibpath_overrides_runpath=no
7394 # This implies no fast_install, which is unacceptable.
7395 # Some rework will be needed to allow for fast_install
7396 # before this can be enabled.
7397 hardcode_into_libs=yes
7399 # Append ld.so.conf contents to the search path
7400 if test -f /etc/ld.so.conf; then
7401 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7402 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7405 # We used to test for /lib/ld.so.1 and disable shared libraries on
7406 # powerpc, because MkLinux only supported shared libraries with the
7407 # GNU dynamic linker. Since this was broken with cross compilers,
7408 # most powerpc-linux boxes support dynamic linking these days and
7409 # people can always --disable-shared, the test was removed, and we
7410 # assume the GNU/Linux dynamic linker is in use.
7411 dynamic_linker='GNU/Linux ld.so'
7418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7419 soname_spec='${libname}${release}${shared_ext}$major'
7420 shlibpath_var=LD_LIBRARY_PATH
7421 shlibpath_overrides_runpath=no
7422 hardcode_into_libs=yes
7423 dynamic_linker='GNU ld.so'
7430 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7432 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7433 dynamic_linker='NetBSD (a.out) ld.so'
7435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7436 soname_spec='${libname}${release}${shared_ext}$major'
7437 dynamic_linker='NetBSD ld.elf_so'
7439 shlibpath_var=LD_LIBRARY_PATH
7440 shlibpath_overrides_runpath=yes
7441 hardcode_into_libs=yes
7446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7447 shlibpath_var=LD_LIBRARY_PATH
7448 shlibpath_overrides_runpath=yes
7455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7456 soname_spec='${libname}${release}${shared_ext}$major'
7457 shlibpath_var=LD_LIBRARY_PATH
7458 shlibpath_overrides_runpath=yes
7465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7467 shlibpath_var=LD_LIBRARY_PATH
7468 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7470 openbsd2.[89] | openbsd2.[89].*)
7471 shlibpath_overrides_runpath=no
7474 shlibpath_overrides_runpath=yes
7478 shlibpath_overrides_runpath=yes
7483 libname_spec='$name'
7486 library_names_spec='$libname${shared_ext} $libname.a'
7487 dynamic_linker='OS/2 ld.exe'
7488 shlibpath_var=LIBPATH
7491 osf3* | osf4* | osf5*)
7495 soname_spec='${libname}${release}${shared_ext}$major'
7496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7497 shlibpath_var=LD_LIBRARY_PATH
7498 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7499 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7504 soname_spec='${libname}${release}${shared_ext}$major'
7505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7506 shlibpath_var=LD_LIBRARY_PATH
7513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7514 soname_spec='${libname}${release}${shared_ext}$major'
7515 shlibpath_var=LD_LIBRARY_PATH
7516 shlibpath_overrides_runpath=yes
7517 hardcode_into_libs=yes
7518 # ldd complains unless libraries are executable
7519 postinstall_cmds='chmod +x $lib'
7524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7525 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7526 shlibpath_var=LD_LIBRARY_PATH
7527 shlibpath_overrides_runpath=yes
7528 if test "$with_gnu_ld" = yes; then
7534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7537 soname_spec='${libname}${release}${shared_ext}$major'
7538 shlibpath_var=LD_LIBRARY_PATH
7539 case $host_vendor in
7541 shlibpath_overrides_runpath=no
7543 export_dynamic_flag_spec='${wl}-Blargedynsym'
7544 runpath_var=LD_RUN_PATH
7552 shlibpath_overrides_runpath=no
7553 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7559 if test -d /usr/nec ;then
7561 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7562 soname_spec='$libname${shared_ext}.$major'
7563 shlibpath_var=LD_LIBRARY_PATH
7569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7570 soname_spec='${libname}${release}${shared_ext}$major'
7571 shlibpath_var=LD_LIBRARY_PATH
7578 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7579 echo "${ECHO_T}$dynamic_linker" >&6
7580 test "$dynamic_linker" = no && can_build_shared=no
7582 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7583 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7585 if test -n "$hardcode_libdir_flag_spec" || \
7586 test -n "$runpath_var " || \
7587 test "X$hardcode_automatic"="Xyes" ; then
7589 # We can hardcode non-existant directories.
7590 if test "$hardcode_direct" != no &&
7591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7592 # have to relink, otherwise we might link with an installed library
7593 # when we should be linking with a yet-to-be-installed one
7594 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7595 test "$hardcode_minus_L" != no; then
7596 # Linking always hardcodes the temporary library directory.
7597 hardcode_action=relink
7599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7600 hardcode_action=immediate
7603 # We cannot hardcode anything, or else we can only hardcode existing
7605 hardcode_action=unsupported
7607 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7608 echo "${ECHO_T}$hardcode_action" >&6
7610 if test "$hardcode_action" = relink; then
7611 # Fast installation is not supported
7612 enable_fast_install=no
7613 elif test "$shlibpath_overrides_runpath" = yes ||
7614 test "$enable_shared" = no; then
7615 # Fast installation is not necessary
7616 enable_fast_install=needless
7621 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7622 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7623 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7624 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7625 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7626 echo "$as_me:$LINENO: result: yes" >&5
7627 echo "${ECHO_T}yes" >&6
7629 # FIXME - insert some real tests, host_os isn't really good enough
7632 if test -n "$STRIP" ; then
7633 striplib="$STRIP -x"
7634 echo "$as_me:$LINENO: result: yes" >&5
7635 echo "${ECHO_T}yes" >&6
7637 echo "$as_me:$LINENO: result: no" >&5
7638 echo "${ECHO_T}no" >&6
7642 echo "$as_me:$LINENO: result: no" >&5
7643 echo "${ECHO_T}no" >&6
7648 if test "x$enable_dlopen" != xyes; then
7649 enable_dlopen=unknown
7650 enable_dlopen_self=unknown
7651 enable_dlopen_self_static=unknown
7658 lt_cv_dlopen="load_add_on"
7660 lt_cv_dlopen_self=yes
7664 lt_cv_dlopen="LoadLibrary"
7669 lt_cv_dlopen="dlopen"
7674 # if libdl is installed we need to link against it
7675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7678 echo $ECHO_N "(cached) $ECHO_C" >&6
7680 ac_check_lib_save_LIBS=$LIBS
7682 cat >conftest.$ac_ext <<_ACEOF
7683 #line $LINENO "configure"
7686 cat confdefs.h >>conftest.$ac_ext
7687 cat >>conftest.$ac_ext <<_ACEOF
7688 /* end confdefs.h. */
7690 /* Override any gcc2 internal prototype to avoid an error. */
7694 /* We use char because int might match the return type of a gcc2
7695 builtin and then its argument prototype would still apply. */
7705 rm -f conftest.$ac_objext conftest$ac_exeext
7706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7707 (eval $ac_link) 2>&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -s conftest$ac_exeext'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; }; then
7717 ac_cv_lib_dl_dlopen=yes
7719 echo "$as_me: failed program was:" >&5
7720 sed 's/^/| /' conftest.$ac_ext >&5
7722 ac_cv_lib_dl_dlopen=no
7724 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7725 LIBS=$ac_check_lib_save_LIBS
7727 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7728 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7729 if test $ac_cv_lib_dl_dlopen = yes; then
7730 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7735 lt_cv_dlopen_self=yes
7742 echo "$as_me:$LINENO: checking for shl_load" >&5
7743 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7744 if test "${ac_cv_func_shl_load+set}" = set; then
7745 echo $ECHO_N "(cached) $ECHO_C" >&6
7747 cat >conftest.$ac_ext <<_ACEOF
7748 #line $LINENO "configure"
7751 cat confdefs.h >>conftest.$ac_ext
7752 cat >>conftest.$ac_ext <<_ACEOF
7753 /* end confdefs.h. */
7754 /* System header to define __stub macros and hopefully few prototypes,
7755 which can conflict with char shl_load (); below.
7756 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7757 <limits.h> exists even on freestanding compilers. */
7759 # include <limits.h>
7761 # include <assert.h>
7763 /* Override any gcc2 internal prototype to avoid an error. */
7768 /* We use char because int might match the return type of a gcc2
7769 builtin and then its argument prototype would still apply. */
7771 /* The GNU C library defines this for functions which it implements
7772 to always fail with ENOSYS. Some functions are actually named
7773 something starting with __ and the normal name is an alias. */
7774 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7777 char (*f) () = shl_load;
7786 return f != shl_load;
7791 rm -f conftest.$ac_objext conftest$ac_exeext
7792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7793 (eval $ac_link) 2>&5
7795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7796 (exit $ac_status); } &&
7797 { ac_try='test -s conftest$ac_exeext'
7798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7802 (exit $ac_status); }; }; then
7803 ac_cv_func_shl_load=yes
7805 echo "$as_me: failed program was:" >&5
7806 sed 's/^/| /' conftest.$ac_ext >&5
7808 ac_cv_func_shl_load=no
7810 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7812 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7813 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7814 if test $ac_cv_func_shl_load = yes; then
7815 lt_cv_dlopen="shl_load"
7817 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7818 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7819 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7820 echo $ECHO_N "(cached) $ECHO_C" >&6
7822 ac_check_lib_save_LIBS=$LIBS
7824 cat >conftest.$ac_ext <<_ACEOF
7825 #line $LINENO "configure"
7828 cat confdefs.h >>conftest.$ac_ext
7829 cat >>conftest.$ac_ext <<_ACEOF
7830 /* end confdefs.h. */
7832 /* Override any gcc2 internal prototype to avoid an error. */
7836 /* We use char because int might match the return type of a gcc2
7837 builtin and then its argument prototype would still apply. */
7847 rm -f conftest.$ac_objext conftest$ac_exeext
7848 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7849 (eval $ac_link) 2>&5
7851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7852 (exit $ac_status); } &&
7853 { ac_try='test -s conftest$ac_exeext'
7854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); }; }; then
7859 ac_cv_lib_dld_shl_load=yes
7861 echo "$as_me: failed program was:" >&5
7862 sed 's/^/| /' conftest.$ac_ext >&5
7864 ac_cv_lib_dld_shl_load=no
7866 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7867 LIBS=$ac_check_lib_save_LIBS
7869 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7870 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7871 if test $ac_cv_lib_dld_shl_load = yes; then
7872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7874 echo "$as_me:$LINENO: checking for dlopen" >&5
7875 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7876 if test "${ac_cv_func_dlopen+set}" = set; then
7877 echo $ECHO_N "(cached) $ECHO_C" >&6
7879 cat >conftest.$ac_ext <<_ACEOF
7880 #line $LINENO "configure"
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7886 /* System header to define __stub macros and hopefully few prototypes,
7887 which can conflict with char dlopen (); below.
7888 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7889 <limits.h> exists even on freestanding compilers. */
7891 # include <limits.h>
7893 # include <assert.h>
7895 /* Override any gcc2 internal prototype to avoid an error. */
7900 /* We use char because int might match the return type of a gcc2
7901 builtin and then its argument prototype would still apply. */
7903 /* The GNU C library defines this for functions which it implements
7904 to always fail with ENOSYS. Some functions are actually named
7905 something starting with __ and the normal name is an alias. */
7906 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7909 char (*f) () = dlopen;
7923 rm -f conftest.$ac_objext conftest$ac_exeext
7924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7925 (eval $ac_link) 2>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); } &&
7929 { ac_try='test -s conftest$ac_exeext'
7930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; }; then
7935 ac_cv_func_dlopen=yes
7937 echo "$as_me: failed program was:" >&5
7938 sed 's/^/| /' conftest.$ac_ext >&5
7940 ac_cv_func_dlopen=no
7942 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7944 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7945 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7946 if test $ac_cv_func_dlopen = yes; then
7947 lt_cv_dlopen="dlopen"
7949 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7950 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7951 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7952 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 ac_check_lib_save_LIBS=$LIBS
7956 cat >conftest.$ac_ext <<_ACEOF
7957 #line $LINENO "configure"
7960 cat confdefs.h >>conftest.$ac_ext
7961 cat >>conftest.$ac_ext <<_ACEOF
7962 /* end confdefs.h. */
7964 /* Override any gcc2 internal prototype to avoid an error. */
7968 /* We use char because int might match the return type of a gcc2
7969 builtin and then its argument prototype would still apply. */
7979 rm -f conftest.$ac_objext conftest$ac_exeext
7980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7981 (eval $ac_link) 2>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -s conftest$ac_exeext'
7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); }; }; then
7991 ac_cv_lib_dl_dlopen=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.$ac_ext >&5
7996 ac_cv_lib_dl_dlopen=no
7998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7999 LIBS=$ac_check_lib_save_LIBS
8001 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8002 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8003 if test $ac_cv_lib_dl_dlopen = yes; then
8004 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8006 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8007 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8008 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8009 echo $ECHO_N "(cached) $ECHO_C" >&6
8011 ac_check_lib_save_LIBS=$LIBS
8013 cat >conftest.$ac_ext <<_ACEOF
8014 #line $LINENO "configure"
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8021 /* Override any gcc2 internal prototype to avoid an error. */
8025 /* We use char because int might match the return type of a gcc2
8026 builtin and then its argument prototype would still apply. */
8036 rm -f conftest.$ac_objext conftest$ac_exeext
8037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8038 (eval $ac_link) 2>&5
8040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8041 (exit $ac_status); } &&
8042 { ac_try='test -s conftest$ac_exeext'
8043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; }; then
8048 ac_cv_lib_svld_dlopen=yes
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8053 ac_cv_lib_svld_dlopen=no
8055 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8056 LIBS=$ac_check_lib_save_LIBS
8058 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8059 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8060 if test $ac_cv_lib_svld_dlopen = yes; then
8061 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8063 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8064 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8065 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8066 echo $ECHO_N "(cached) $ECHO_C" >&6
8068 ac_check_lib_save_LIBS=$LIBS
8070 cat >conftest.$ac_ext <<_ACEOF
8071 #line $LINENO "configure"
8074 cat confdefs.h >>conftest.$ac_ext
8075 cat >>conftest.$ac_ext <<_ACEOF
8076 /* end confdefs.h. */
8078 /* Override any gcc2 internal prototype to avoid an error. */
8082 /* We use char because int might match the return type of a gcc2
8083 builtin and then its argument prototype would still apply. */
8093 rm -f conftest.$ac_objext conftest$ac_exeext
8094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8095 (eval $ac_link) 2>&5
8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098 (exit $ac_status); } &&
8099 { ac_try='test -s conftest$ac_exeext'
8100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8104 (exit $ac_status); }; }; then
8105 ac_cv_lib_dld_dld_link=yes
8107 echo "$as_me: failed program was:" >&5
8108 sed 's/^/| /' conftest.$ac_ext >&5
8110 ac_cv_lib_dld_dld_link=no
8112 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8113 LIBS=$ac_check_lib_save_LIBS
8115 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8116 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8117 if test $ac_cv_lib_dld_dld_link = yes; then
8118 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8139 if test "x$lt_cv_dlopen" != xno; then
8145 case $lt_cv_dlopen in
8147 save_CPPFLAGS="$CPPFLAGS"
8148 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8150 save_LDFLAGS="$LDFLAGS"
8151 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8154 LIBS="$lt_cv_dlopen_libs $LIBS"
8156 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8157 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8158 if test "${lt_cv_dlopen_self+set}" = set; then
8159 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 if test "$cross_compiling" = yes; then :
8162 lt_cv_dlopen_self=cross
8164 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8165 lt_status=$lt_dlunknown
8166 cat > conftest.$ac_ext <<EOF
8167 #line 8167 "configure"
8168 #include "confdefs.h"
8177 # define LT_DLGLOBAL RTLD_GLOBAL
8180 # define LT_DLGLOBAL DL_GLOBAL
8182 # define LT_DLGLOBAL 0
8186 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8187 find out it does not work in some platform. */
8188 #ifndef LT_DLLAZY_OR_NOW
8190 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8193 # define LT_DLLAZY_OR_NOW DL_LAZY
8196 # define LT_DLLAZY_OR_NOW RTLD_NOW
8199 # define LT_DLLAZY_OR_NOW DL_NOW
8201 # define LT_DLLAZY_OR_NOW 0
8209 extern "C" void exit (int);
8212 void fnord() { int i=42;}
8215 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8216 int status = $lt_dlunknown;
8220 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8221 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8222 /* dlclose (self); */
8228 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8229 (eval $ac_link) 2>&5
8231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8232 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8233 (./conftest; exit; ) 2>/dev/null
8236 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8237 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8238 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8241 # compilation failed
8242 lt_cv_dlopen_self=no
8249 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8250 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8252 if test "x$lt_cv_dlopen_self" = xyes; then
8253 LDFLAGS="$LDFLAGS $link_static_flag"
8254 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8255 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8256 if test "${lt_cv_dlopen_self_static+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8259 if test "$cross_compiling" = yes; then :
8260 lt_cv_dlopen_self_static=cross
8262 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8263 lt_status=$lt_dlunknown
8264 cat > conftest.$ac_ext <<EOF
8265 #line 8265 "configure"
8266 #include "confdefs.h"
8275 # define LT_DLGLOBAL RTLD_GLOBAL
8278 # define LT_DLGLOBAL DL_GLOBAL
8280 # define LT_DLGLOBAL 0
8284 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8285 find out it does not work in some platform. */
8286 #ifndef LT_DLLAZY_OR_NOW
8288 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8291 # define LT_DLLAZY_OR_NOW DL_LAZY
8294 # define LT_DLLAZY_OR_NOW RTLD_NOW
8297 # define LT_DLLAZY_OR_NOW DL_NOW
8299 # define LT_DLLAZY_OR_NOW 0
8307 extern "C" void exit (int);
8310 void fnord() { int i=42;}
8313 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8314 int status = $lt_dlunknown;
8318 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8319 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8320 /* dlclose (self); */
8326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8327 (eval $ac_link) 2>&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8331 (./conftest; exit; ) 2>/dev/null
8334 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8335 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8336 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8339 # compilation failed
8340 lt_cv_dlopen_self_static=no
8347 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8348 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8351 CPPFLAGS="$save_CPPFLAGS"
8352 LDFLAGS="$save_LDFLAGS"
8357 case $lt_cv_dlopen_self in
8358 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8359 *) enable_dlopen_self=unknown ;;
8362 case $lt_cv_dlopen_self_static in
8363 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8364 *) enable_dlopen_self_static=unknown ;;
8369 # Report which librarie types wil actually be built
8370 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8371 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8372 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8373 echo "${ECHO_T}$can_build_shared" >&6
8375 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8376 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8377 test "$can_build_shared" = "no" && enable_shared=no
8379 # On AIX, shared libraries and static libraries use the same namespace, and
8380 # are all built from PIC.
8383 test "$enable_shared" = yes && enable_static=no
8384 if test -n "$RANLIB"; then
8385 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8386 postinstall_cmds='$RANLIB $lib'
8391 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8392 test "$enable_shared" = yes && enable_static=no
8395 darwin* | rhapsody*)
8396 if test "$GCC" = yes; then
8397 archive_cmds_need_lc=no
8399 rhapsody* | darwin1.[012])
8400 allow_undefined_flag='-undefined suppress'
8403 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8404 allow_undefined_flag='-flat_namespace -undefined suppress'
8406 case ${MACOSX_DEPLOYMENT_TARGET} in
8408 allow_undefined_flag='-flat_namespace -undefined suppress'
8411 allow_undefined_flag='-undefined dynamic_lookup'
8417 output_verbose_link_cmd='echo'
8418 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8419 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8420 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8421 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}'
8422 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}'
8424 hardcode_automatic=yes
8425 hardcode_shlibpath_var=unsupported
8426 whole_archive_flag_spec='-all_load $convenience'
8427 link_all_deplibs=yes
8433 echo "$as_me:$LINENO: result: $enable_shared" >&5
8434 echo "${ECHO_T}$enable_shared" >&6
8436 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8437 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8438 # Make sure either enable_shared or enable_static is yes.
8439 test "$enable_shared" = yes || enable_static=yes
8440 echo "$as_me:$LINENO: result: $enable_static" >&5
8441 echo "${ECHO_T}$enable_static" >&6
8443 # The else clause should only fire when bootstrapping the
8444 # libtool distribution, otherwise you forgot to ship ltmain.sh
8445 # with your package, and you will get complaints that there are
8446 # no rules to generate ltmain.sh.
8447 if test -f "$ltmain"; then
8448 # See if we are running on zsh, and set the options which allow our commands through
8449 # without removal of \ escapes.
8450 if test -n "${ZSH_VERSION+set}" ; then
8451 setopt NO_GLOB_SUBST
8453 # Now quote all the things that may contain metacharacters while being
8454 # careful not to overquote the AC_SUBSTed values. We take copies of the
8455 # variables and quote the copies for generation of the libtool script.
8456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8460 deplibs_check_method reload_flag reload_cmds need_locks \
8461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8462 lt_cv_sys_global_symbol_to_c_name_address \
8463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8464 old_postinstall_cmds old_postuninstall_cmds \
8468 lt_prog_compiler_wl \
8469 lt_prog_compiler_pic \
8470 lt_prog_compiler_static \
8471 lt_prog_compiler_no_builtin_flag \
8472 export_dynamic_flag_spec \
8473 thread_safe_flag_spec \
8474 whole_archive_flag_spec \
8475 enable_shared_with_static_runtimes \
8477 old_archive_from_new_cmds \
8482 compiler_lib_search_path \
8484 archive_expsym_cmds \
8486 postuninstall_cmds \
8487 old_archive_from_expsyms_cmds \
8488 allow_undefined_flag \
8490 export_symbols_cmds \
8491 hardcode_libdir_flag_spec \
8492 hardcode_libdir_flag_spec_ld \
8493 hardcode_libdir_separator \
8494 hardcode_automatic \
8496 module_expsym_cmds \
8497 lt_cv_prog_compiler_c_o \
8502 old_archive_cmds | \
8503 old_archive_from_new_cmds | \
8505 archive_expsym_cmds | \
8507 module_expsym_cmds | \
8508 old_archive_from_expsyms_cmds | \
8509 export_symbols_cmds | \
8510 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8511 postinstall_cmds | postuninstall_cmds | \
8512 old_postinstall_cmds | old_postuninstall_cmds | \
8513 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8514 # Double-quote double-evaled strings.
8515 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8518 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8524 *'\$0 --fallback-echo"')
8525 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8530 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8532 { echo "$as_me:$LINENO: creating $ofile" >&5
8533 echo "$as_me: creating $ofile" >&6;}
8535 cat <<__EOF__ >> "$cfgfile"
8538 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8539 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8540 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8542 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8543 # Free Software Foundation, Inc.
8545 # This file is part of GNU Libtool:
8546 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8548 # This program is free software; you can redistribute it and/or modify
8549 # it under the terms of the GNU General Public License as published by
8550 # the Free Software Foundation; either version 2 of the License, or
8551 # (at your option) any later version.
8553 # This program is distributed in the hope that it will be useful, but
8554 # WITHOUT ANY WARRANTY; without even the implied warranty of
8555 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8556 # General Public License for more details.
8558 # You should have received a copy of the GNU General Public License
8559 # along with this program; if not, write to the Free Software
8560 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8562 # As a special exception to the GNU General Public License, if you
8563 # distribute this file as part of a program that contains a
8564 # configuration script generated by Autoconf, you may include it under
8565 # the same distribution terms that you use for the rest of that program.
8567 # A sed program that does not truncate output.
8570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8571 Xsed="$SED -e s/^X//"
8573 # The HP-UX ksh and POSIX shell print the target directory to stdout
8575 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8577 # The names of the tagged configurations supported by this script.
8580 # ### BEGIN LIBTOOL CONFIG
8582 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8584 # Shell to use when invoking shell scripts.
8587 # Whether or not to build shared libraries.
8588 build_libtool_libs=$enable_shared
8590 # Whether or not to build static libraries.
8591 build_old_libs=$enable_static
8593 # Whether or not to add -lc for building shared libraries.
8594 build_libtool_need_lc=$archive_cmds_need_lc
8596 # Whether or not to disallow shared libs when runtime libs are static
8597 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8599 # Whether or not to optimize for fast installation.
8600 fast_install=$enable_fast_install
8603 host_alias=$host_alias
8606 # An echo program that does not interpret backslashes.
8611 AR_FLAGS=$lt_AR_FLAGS
8616 # A language-specific compiler.
8619 # Is the compiler the GNU C compiler?
8625 # The linker used to build libraries.
8628 # Whether we need hard or soft links.
8631 # A BSD-compatible nm program.
8634 # A symbol stripping program
8637 # Used to examine libraries when file_magic_cmd begins "file"
8638 MAGIC_CMD=$MAGIC_CMD
8640 # Used on cygwin: DLL creation program.
8643 # Used on cygwin: object dumper.
8646 # Used on cygwin: assembler.
8649 # The name of the directory that contains temporary libtool files.
8652 # How to create reloadable object files.
8653 reload_flag=$lt_reload_flag
8654 reload_cmds=$lt_reload_cmds
8656 # How to pass a linker flag through the compiler.
8657 wl=$lt_lt_prog_compiler_wl
8659 # Object file suffix (normally "o").
8662 # Old archive suffix (normally "a").
8665 # Shared library suffix (normally ".so").
8666 shrext_cmds='$shrext_cmds'
8668 # Executable file suffix (normally "").
8671 # Additional compiler flags for building library objects.
8672 pic_flag=$lt_lt_prog_compiler_pic
8675 # What is the maximum length of a command?
8676 max_cmd_len=$lt_cv_sys_max_cmd_len
8678 # Does compiler simultaneously support -c and -o options?
8679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8681 # Must we lock files when doing compilation ?
8682 need_locks=$lt_need_locks
8684 # Do we need the lib prefix for modules?
8685 need_lib_prefix=$need_lib_prefix
8687 # Do we need a version for libraries?
8688 need_version=$need_version
8690 # Whether dlopen is supported.
8691 dlopen_support=$enable_dlopen
8693 # Whether dlopen of programs is supported.
8694 dlopen_self=$enable_dlopen_self
8696 # Whether dlopen of statically linked programs is supported.
8697 dlopen_self_static=$enable_dlopen_self_static
8699 # Compiler flag to prevent dynamic linking.
8700 link_static_flag=$lt_lt_prog_compiler_static
8702 # Compiler flag to turn off builtin functions.
8703 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8705 # Compiler flag to allow reflexive dlopens.
8706 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8708 # Compiler flag to generate shared objects directly from archives.
8709 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8711 # Compiler flag to generate thread-safe objects.
8712 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8714 # Library versioning type.
8715 version_type=$version_type
8717 # Format of library name prefix.
8718 libname_spec=$lt_libname_spec
8720 # List of archive names. First name is the real one, the rest are links.
8721 # The last name is the one that the linker finds with -lNAME.
8722 library_names_spec=$lt_library_names_spec
8724 # The coded name of the library, if different from the real name.
8725 soname_spec=$lt_soname_spec
8727 # Commands used to build and install an old-style archive.
8729 old_archive_cmds=$lt_old_archive_cmds
8730 old_postinstall_cmds=$lt_old_postinstall_cmds
8731 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8733 # Create an old-style archive from a shared archive.
8734 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8736 # Create a temporary old-style archive to link instead of a shared archive.
8737 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8739 # Commands used to build and install a shared archive.
8740 archive_cmds=$lt_archive_cmds
8741 archive_expsym_cmds=$lt_archive_expsym_cmds
8742 postinstall_cmds=$lt_postinstall_cmds
8743 postuninstall_cmds=$lt_postuninstall_cmds
8745 # Commands used to build a loadable module (assumed same as above if empty)
8746 module_cmds=$lt_module_cmds
8747 module_expsym_cmds=$lt_module_expsym_cmds
8749 # Commands to strip libraries.
8750 old_striplib=$lt_old_striplib
8751 striplib=$lt_striplib
8753 # Dependencies to place before the objects being linked to create a
8755 predep_objects=$lt_predep_objects
8757 # Dependencies to place after the objects being linked to create a
8759 postdep_objects=$lt_postdep_objects
8761 # Dependencies to place before the objects being linked to create a
8765 # Dependencies to place after the objects being linked to create a
8767 postdeps=$lt_postdeps
8769 # The library search path used internally by the compiler when linking
8771 compiler_lib_search_path=$lt_compiler_lib_search_path
8773 # Method to check whether dependent libraries are shared objects.
8774 deplibs_check_method=$lt_deplibs_check_method
8776 # Command to use when deplibs_check_method == file_magic.
8777 file_magic_cmd=$lt_file_magic_cmd
8779 # Flag that allows shared libraries with undefined symbols to be built.
8780 allow_undefined_flag=$lt_allow_undefined_flag
8782 # Flag that forces no undefined symbols.
8783 no_undefined_flag=$lt_no_undefined_flag
8785 # Commands used to finish a libtool library installation in a directory.
8786 finish_cmds=$lt_finish_cmds
8788 # Same as above, but a single script fragment to be evaled but not shown.
8789 finish_eval=$lt_finish_eval
8791 # Take the output of nm and produce a listing of raw symbols and C names.
8792 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8794 # Transform the output of nm in a proper C declaration
8795 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8797 # Transform the output of nm in a C name address pair
8798 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8800 # This is the shared library runtime path variable.
8801 runpath_var=$runpath_var
8803 # This is the shared library path variable.
8804 shlibpath_var=$shlibpath_var
8806 # Is shlibpath searched before the hard-coded library search path?
8807 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8809 # How to hardcode a shared library path into an executable.
8810 hardcode_action=$hardcode_action
8812 # Whether we should hardcode library paths into libraries.
8813 hardcode_into_libs=$hardcode_into_libs
8815 # Flag to hardcode \$libdir into a binary during linking.
8816 # This must work even if \$libdir does not exist.
8817 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8819 # If ld is used when linking, flag to hardcode \$libdir into
8820 # a binary during linking. This must work even if \$libdir does
8822 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8824 # Whether we need a single -rpath flag with a separated argument.
8825 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8827 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8829 hardcode_direct=$hardcode_direct
8831 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8833 hardcode_minus_L=$hardcode_minus_L
8835 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8836 # the resulting binary.
8837 hardcode_shlibpath_var=$hardcode_shlibpath_var
8839 # Set to yes if building a shared library automatically hardcodes DIR into the library
8840 # and all subsequent libraries and executables linked against it.
8841 hardcode_automatic=$hardcode_automatic
8843 # Variables whose values should be saved in libtool wrapper scripts and
8844 # restored at relink time.
8845 variables_saved_for_relink="$variables_saved_for_relink"
8847 # Whether libtool must link a program against all its dependency libraries.
8848 link_all_deplibs=$link_all_deplibs
8850 # Compile-time system search path for libraries
8851 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8853 # Run-time system search path for libraries
8854 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8856 # Fix the shell variable \$srcfile for the compiler.
8857 fix_srcfile_path="$fix_srcfile_path"
8859 # Set to yes if exported symbols are required.
8860 always_export_symbols=$always_export_symbols
8862 # The commands to list exported symbols.
8863 export_symbols_cmds=$lt_export_symbols_cmds
8865 # The commands to extract the exported symbol list from a shared archive.
8866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8868 # Symbols that should not be listed in the preloaded symbols.
8869 exclude_expsyms=$lt_exclude_expsyms
8871 # Symbols that must always be exported.
8872 include_expsyms=$lt_include_expsyms
8874 # ### END LIBTOOL CONFIG
8881 cat <<\EOF >> "$cfgfile"
8883 # AIX sometimes has problems with the GCC collect2 program. For some
8884 # reason, if we set the COLLECT_NAMES environment variable, the problems
8885 # vanish in a puff of smoke.
8886 if test "X${COLLECT_NAMES+set}" != Xset; then
8888 export COLLECT_NAMES
8894 # We use sed instead of cat because bash on DJGPP gets confused if
8895 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8896 # text mode, it properly converts lines to CR/LF. This bash problem
8897 # is reportedly fixed, but why not run on old versions too?
8898 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8900 mv -f "$cfgfile" "$ofile" || \
8901 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8905 # If there is no Makefile yet, we rely on a make rule to execute
8906 # `config.status --recheck' to rerun these tests and create the
8907 # libtool script then.
8908 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8909 if test -f "$ltmain_in"; then
8910 test -f Makefile && make "$ltmain"
8916 ac_cpp='$CPP $CPPFLAGS'
8917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8924 # Check whether --with-tags or --without-tags was given.
8925 if test "${with_tags+set}" = set; then
8926 withval="$with_tags"
8930 if test -f "$ltmain" && test -n "$tagnames"; then
8931 if test ! -f "${ofile}"; then
8932 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8933 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8936 if test -z "$LTCC"; then
8937 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8938 if test -z "$LTCC"; then
8939 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8940 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8942 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8943 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8947 # Extract list of available tagged configurations in $ofile.
8948 # Note that this assumes the entire list is on one line.
8949 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8951 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8952 for tagname in $tagnames; do
8954 # Check whether tagname contains only valid characters
8955 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8957 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8958 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8959 { (exit 1); exit 1; }; }
8963 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8965 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8966 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8967 { (exit 1); exit 1; }; }
8970 # Update the list of available tags.
8971 if test -n "$tagname"; then
8972 echo appending configuration tag \"$tagname\" to $ofile
8976 if test -n "$CXX" && test "X$CXX" != "Xno"; then
8978 ac_cpp='$CXXCPP $CPPFLAGS'
8979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8986 archive_cmds_need_lc_CXX=no
8987 allow_undefined_flag_CXX=
8988 always_export_symbols_CXX=no
8989 archive_expsym_cmds_CXX=
8990 export_dynamic_flag_spec_CXX=
8991 hardcode_direct_CXX=no
8992 hardcode_libdir_flag_spec_CXX=
8993 hardcode_libdir_flag_spec_ld_CXX=
8994 hardcode_libdir_separator_CXX=
8995 hardcode_minus_L_CXX=no
8996 hardcode_automatic_CXX=no
8998 module_expsym_cmds_CXX=
8999 link_all_deplibs_CXX=unknown
9000 old_archive_cmds_CXX=$old_archive_cmds
9001 no_undefined_flag_CXX=
9002 whole_archive_flag_spec_CXX=
9003 enable_shared_with_static_runtimes_CXX=no
9005 # Dependencies to place before and after the object being linked:
9007 postdep_objects_CXX=
9010 compiler_lib_search_path_CXX=
9012 # Source file extension for C++ test sources.
9015 # Object file extension for compiled C++ test sources.
9019 # Code to be used in simple compile tests
9020 lt_simple_compile_test_code="int some_variable = 0;\n"
9022 # Code to be used in simple link tests
9023 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9025 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9027 # If no C compiler was specified, use CC.
9030 # Allow CC to be a program name with arguments.
9034 # Allow CC to be a program name with arguments.
9039 lt_save_with_gnu_ld=$with_gnu_ld
9040 lt_save_path_LD=$lt_cv_path_LD
9041 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9042 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9044 unset lt_cv_prog_gnu_ld
9046 if test -n "${lt_cv_path_LDCXX+set}"; then
9047 lt_cv_path_LD=$lt_cv_path_LDCXX
9051 test -z "${LDCXX+set}" || LD=$LDCXX
9055 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9057 # We don't want -fno-exception wen compiling C++ code, so set the
9058 # no_builtin_flag separately
9059 if test "$GXX" = yes; then
9060 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9062 lt_prog_compiler_no_builtin_flag_CXX=
9065 if test "$GXX" = yes; then
9066 # Set up default GNU C++ configuration
9069 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9070 if test "${with_gnu_ld+set}" = set; then
9071 withval="$with_gnu_ld"
9072 test "$withval" = no || with_gnu_ld=yes
9077 if test "$GCC" = yes; then
9078 # Check if gcc -print-prog-name=ld gives a path.
9079 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9080 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9083 # gcc leaves a trailing carriage return which upsets mingw
9084 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9086 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9089 # Accept absolute paths.
9091 re_direlt='/[^/][^/]*/\.\./'
9092 # Canonicalize the pathname of ld
9093 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9094 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9095 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9097 test -z "$LD" && LD="$ac_prog"
9100 # If it fails, then pretend we aren't using GCC.
9104 # If it is relative, then search for the first ld in PATH.
9108 elif test "$with_gnu_ld" = yes; then
9109 echo "$as_me:$LINENO: checking for GNU ld" >&5
9110 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9112 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9113 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9115 if test "${lt_cv_path_LD+set}" = set; then
9116 echo $ECHO_N "(cached) $ECHO_C" >&6
9118 if test -z "$LD"; then
9119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9120 for ac_dir in $PATH; do
9122 test -z "$ac_dir" && ac_dir=.
9123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9124 lt_cv_path_LD="$ac_dir/$ac_prog"
9125 # Check to see if the program is GNU ld. I'd rather use --version,
9126 # but apparently some GNU ld's only accept -v.
9127 # Break only if it was the GNU/non-GNU ld that we prefer.
9128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9129 *GNU* | *'with BFD'*)
9130 test "$with_gnu_ld" != no && break
9133 test "$with_gnu_ld" != yes && break
9140 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9145 if test -n "$LD"; then
9146 echo "$as_me:$LINENO: result: $LD" >&5
9147 echo "${ECHO_T}$LD" >&6
9149 echo "$as_me:$LINENO: result: no" >&5
9150 echo "${ECHO_T}no" >&6
9152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9154 { (exit 1); exit 1; }; }
9155 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9157 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9158 echo $ECHO_N "(cached) $ECHO_C" >&6
9160 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9161 case `$LD -v 2>&1 </dev/null` in
9162 *GNU* | *'with BFD'*)
9163 lt_cv_prog_gnu_ld=yes
9166 lt_cv_prog_gnu_ld=no
9170 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9172 with_gnu_ld=$lt_cv_prog_gnu_ld
9176 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9177 # archiving commands below assume that GNU ld is being used.
9178 if test "$with_gnu_ld" = yes; then
9179 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9180 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'
9182 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9183 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9185 # If archive_cmds runs LD, not CC, wlarc should be empty
9186 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9187 # investigate it a little bit more. (MM)
9190 # ancient GNU ld didn't support --whole-archive et. al.
9191 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9192 grep 'no-whole-archive' > /dev/null; then
9193 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9195 whole_archive_flag_spec_CXX=
9201 # A generic and very simple default shared library creation
9202 # command for GNU C++ for the case where it uses the native
9203 # linker, instead of GNU ld. If possible, this setting should
9204 # overridden to take advantage of the native linker features on
9205 # the platform it is being used on.
9206 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9209 # Commands to make compiler produce verbose output that lists
9210 # what "hidden" libraries, object files and flags are used when
9211 # linking a shared library.
9212 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9220 # PORTME: fill in a description of your system's C++ link characteristics
9221 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9222 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9226 # FIXME: insert proper C++ library support
9230 if test "$host_cpu" = ia64; then
9231 # On IA64, the linker does run time linking by default, so we don't
9232 # have to do anything special.
9233 aix_use_runtimelinking=no
9234 exp_sym_flag='-Bexport'
9237 aix_use_runtimelinking=no
9239 # Test if we are trying to use run time linking or normal
9240 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9241 # need to do runtime linking.
9242 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9243 for ld_flag in $LDFLAGS; do
9246 aix_use_runtimelinking=yes
9253 exp_sym_flag='-bexport'
9254 no_entry_flag='-bnoentry'
9257 # When large executables or shared objects are built, AIX ld can
9258 # have problems creating the table of contents. If linking a library
9259 # or program results in "error TOC overflow" add -mminimal-toc to
9260 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9261 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9264 hardcode_direct_CXX=yes
9265 hardcode_libdir_separator_CXX=':'
9266 link_all_deplibs_CXX=yes
9268 if test "$GXX" = yes; then
9269 case $host_os in aix4.012|aix4.012.*)
9270 # We only want to do this on AIX 4.2 and lower, the check
9271 # below for broken collect2 doesn't work under 4.3+
9272 collect2name=`${CC} -print-prog-name=collect2`
9273 if test -f "$collect2name" && \
9274 strings "$collect2name" | grep resolve_lib_name >/dev/null
9276 # We have reworked collect2
9277 hardcode_direct_CXX=yes
9279 # We have old collect2
9280 hardcode_direct_CXX=unsupported
9281 # It fails to find uninstalled libraries when the uninstalled
9282 # path is not listed in the libpath. Setting hardcode_minus_L
9283 # to unsupported forces relinking
9284 hardcode_minus_L_CXX=yes
9285 hardcode_libdir_flag_spec_CXX='-L$libdir'
9286 hardcode_libdir_separator_CXX=
9289 shared_flag='-shared'
9292 if test "$host_cpu" = ia64; then
9293 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9294 # chokes on -Wl,-G. The following line is correct:
9297 if test "$aix_use_runtimelinking" = yes; then
9298 shared_flag='${wl}-G'
9300 shared_flag='${wl}-bM:SRE'
9305 # It seems that -bexpall does not export symbols beginning with
9306 # underscore (_), so it is better to generate a list of symbols to export.
9307 always_export_symbols_CXX=yes
9308 if test "$aix_use_runtimelinking" = yes; then
9309 # Warning - without using the other runtime loading flags (-brtl),
9310 # -berok will link without error, but may produce a broken library.
9311 allow_undefined_flag_CXX='-berok'
9312 # Determine the default libpath from the value encoded in an empty executable.
9313 cat >conftest.$ac_ext <<_ACEOF
9314 #line $LINENO "configure"
9317 cat confdefs.h >>conftest.$ac_ext
9318 cat >>conftest.$ac_ext <<_ACEOF
9319 /* end confdefs.h. */
9329 rm -f conftest.$ac_objext conftest$ac_exeext
9330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9331 (eval $ac_link) 2>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } &&
9335 { ac_try='test -s conftest$ac_exeext'
9336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9340 (exit $ac_status); }; }; then
9342 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9344 # Check for a 64-bit object if we didn't find anything.
9345 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; }
9348 echo "$as_me: failed program was:" >&5
9349 sed 's/^/| /' conftest.$ac_ext >&5
9352 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9353 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9355 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9357 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"
9359 if test "$host_cpu" = ia64; then
9360 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9361 allow_undefined_flag_CXX="-z nodefs"
9362 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"
9364 # Determine the default libpath from the value encoded in an empty executable.
9365 cat >conftest.$ac_ext <<_ACEOF
9366 #line $LINENO "configure"
9369 cat confdefs.h >>conftest.$ac_ext
9370 cat >>conftest.$ac_ext <<_ACEOF
9371 /* end confdefs.h. */
9381 rm -f conftest.$ac_objext conftest$ac_exeext
9382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9383 (eval $ac_link) 2>&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -s conftest$ac_exeext'
9388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9392 (exit $ac_status); }; }; then
9394 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9396 # Check for a 64-bit object if we didn't find anything.
9397 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; }
9400 echo "$as_me: failed program was:" >&5
9401 sed 's/^/| /' conftest.$ac_ext >&5
9404 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9405 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9407 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9408 # Warning - without using the other run time loading flags,
9409 # -berok will link without error, but may produce a broken library.
9410 no_undefined_flag_CXX=' ${wl}-bernotok'
9411 allow_undefined_flag_CXX=' ${wl}-berok'
9412 # -bexpall does not export symbols beginning with underscore (_)
9413 always_export_symbols_CXX=yes
9414 # Exported symbols can be pulled into shared objects from archives
9415 whole_archive_flag_spec_CXX=' '
9416 archive_cmds_need_lc_CXX=yes
9417 # This is similar to how AIX traditionally builds it's shared libraries.
9418 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'
9423 case $cc_basename in
9425 # FIXME: insert proper C++ library support
9431 cygwin* | mingw* | pw32*)
9432 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9433 # as there is no search path for DLLs.
9434 hardcode_libdir_flag_spec_CXX='-L$libdir'
9435 allow_undefined_flag_CXX=unsupported
9436 always_export_symbols_CXX=no
9437 enable_shared_with_static_runtimes_CXX=yes
9439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9440 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'
9441 # If the export-symbols file already is a .def file (1st line
9442 # is EXPORTS), use it as is; otherwise, prepend...
9443 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9444 cp $export_symbols $output_objdir/$soname.def;
9446 echo EXPORTS > $output_objdir/$soname.def;
9447 cat $export_symbols >> $output_objdir/$soname.def;
9449 $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'
9455 darwin* | rhapsody*)
9456 if test "$GXX" = yes; then
9457 archive_cmds_need_lc_CXX=no
9459 rhapsody* | darwin1.[012])
9460 allow_undefined_flag_CXX='-undefined suppress'
9463 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9464 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9466 case ${MACOSX_DEPLOYMENT_TARGET} in
9468 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9471 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9477 lt_int_apple_cc_single_mod=no
9478 output_verbose_link_cmd='echo'
9479 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9480 lt_int_apple_cc_single_mod=yes
9482 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9483 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9485 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'
9487 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9491 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}'
9493 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}'
9495 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}'
9496 hardcode_direct_CXX=no
9497 hardcode_automatic_CXX=yes
9498 hardcode_shlibpath_var_CXX=unsupported
9499 whole_archive_flag_spec_CXX='-all_load $convenience'
9500 link_all_deplibs_CXX=yes
9507 case $cc_basename in
9509 # FIXME: insert proper C++ library support
9513 # Green Hills C++ Compiler
9514 # FIXME: insert proper C++ library support
9518 # FIXME: insert proper C++ library support
9524 # C++ shared libraries reported to be fairly broken before switch to ELF
9528 archive_cmds_need_lc_CXX=no
9530 freebsd* | kfreebsd*-gnu)
9531 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9538 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9539 hardcode_libdir_separator_CXX=:
9540 export_dynamic_flag_spec_CXX='${wl}-E'
9541 hardcode_direct_CXX=yes
9542 hardcode_minus_L_CXX=yes # Not in the search PATH,
9543 # but as the default
9544 # location of the library.
9546 case $cc_basename in
9548 # FIXME: insert proper C++ library support
9552 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'
9553 # Commands to make compiler produce verbose output that lists
9554 # what "hidden" libraries, object files and flags are used when
9555 # linking a shared library.
9557 # There doesn't appear to be a way to prevent this compiler from
9558 # explicitly linking system object files so we need to strip them
9559 # from the output so that they don't get included in the library
9561 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'
9564 if test "$GXX" = yes; then
9565 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'
9567 # FIXME: insert proper C++ library support
9574 if test $with_gnu_ld = no; then
9577 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9578 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9579 hardcode_libdir_separator_CXX=:
9582 hardcode_libdir_flag_spec_CXX='-L$libdir'
9585 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9586 hardcode_libdir_separator_CXX=:
9587 export_dynamic_flag_spec_CXX='${wl}-E'
9593 hardcode_direct_CXX=no
9594 hardcode_shlibpath_var_CXX=no
9597 hardcode_direct_CXX=no
9598 hardcode_shlibpath_var_CXX=no
9599 hardcode_minus_L_CXX=yes # Not in the search PATH,
9600 # but as the default
9601 # location of the library.
9604 hardcode_direct_CXX=yes
9605 hardcode_minus_L_CXX=yes # Not in the search PATH,
9606 # but as the default
9607 # location of the library.
9611 case $cc_basename in
9613 # FIXME: insert proper C++ library support
9619 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9622 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9625 # Commands to make compiler produce verbose output that lists
9626 # what "hidden" libraries, object files and flags are used when
9627 # linking a shared library.
9629 # There doesn't appear to be a way to prevent this compiler from
9630 # explicitly linking system object files so we need to strip them
9631 # from the output so that they don't get included in the library
9633 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'
9636 if test "$GXX" = yes; then
9637 if test $with_gnu_ld = no; then
9640 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9643 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'
9648 # FIXME: insert proper C++ library support
9655 case $cc_basename in
9658 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'
9660 # Archives containing C++ object files must be created using
9661 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9662 # necessary to make sure instantiated templates are included
9664 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9667 if test "$GXX" = yes; then
9668 if test "$with_gnu_ld" = no; then
9669 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'
9671 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'
9674 link_all_deplibs_CXX=yes
9677 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9678 hardcode_libdir_separator_CXX=:
9681 case $cc_basename in
9683 # Kuck and Associates, Inc. (KAI) C++ Compiler
9685 # KCC will only create a shared library if the output file
9686 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9687 # to its proper name (with version) after linking.
9688 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'
9689 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'
9690 # Commands to make compiler produce verbose output that lists
9691 # what "hidden" libraries, object files and flags are used when
9692 # linking a shared library.
9694 # There doesn't appear to be a way to prevent this compiler from
9695 # explicitly linking system object files so we need to strip them
9696 # from the output so that they don't get included in the library
9698 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'
9700 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9703 # Archives containing C++ object files must be created using
9704 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9705 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9710 archive_cmds_need_lc_CXX=no
9711 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9712 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'
9713 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9714 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9715 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9719 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9720 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'
9722 runpath_var=LD_RUN_PATH
9723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9724 hardcode_libdir_separator_CXX=:
9726 # Commands to make compiler produce verbose output that lists
9727 # what "hidden" libraries, object files and flags are used when
9728 # linking a shared library.
9730 # There doesn't appear to be a way to prevent this compiler from
9731 # explicitly linking system object files so we need to strip them
9732 # from the output so that they don't get included in the library
9734 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'
9739 # FIXME: insert proper C++ library support
9743 # FIXME: insert proper C++ library support
9747 case $cc_basename in
9749 # FIXME: insert proper C++ library support
9753 # FIXME: insert proper C++ library support
9758 netbsd* | knetbsd*-gnu)
9759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9760 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9762 hardcode_libdir_flag_spec_CXX='-R$libdir'
9763 hardcode_direct_CXX=yes
9764 hardcode_shlibpath_var_CXX=no
9766 # Workaround some broken pre-1.5 toolchains
9767 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9770 case $cc_basename in
9772 # Kuck and Associates, Inc. (KAI) C++ Compiler
9774 # KCC will only create a shared library if the output file
9775 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9776 # to its proper name (with version) after linking.
9777 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'
9779 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9780 hardcode_libdir_separator_CXX=:
9782 # Archives containing C++ object files must be created using
9783 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9784 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9788 # Rational C++ 2.4.1
9789 # FIXME: insert proper C++ library support
9793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9794 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'
9796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9797 hardcode_libdir_separator_CXX=:
9799 # Commands to make compiler produce verbose output that lists
9800 # what "hidden" libraries, object files and flags are used when
9801 # linking a shared library.
9803 # There doesn't appear to be a way to prevent this compiler from
9804 # explicitly linking system object files so we need to strip them
9805 # from the output so that they don't get included in the library
9807 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'
9810 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9811 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9812 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'
9814 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9815 hardcode_libdir_separator_CXX=:
9817 # Commands to make compiler produce verbose output that lists
9818 # what "hidden" libraries, object files and flags are used when
9819 # linking a shared library.
9820 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9823 # FIXME: insert proper C++ library support
9830 case $cc_basename in
9832 # Kuck and Associates, Inc. (KAI) C++ Compiler
9834 # KCC will only create a shared library if the output file
9835 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9836 # to its proper name (with version) after linking.
9837 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'
9839 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9840 hardcode_libdir_separator_CXX=:
9842 # Archives containing C++ object files must be created using
9843 # the KAI C++ compiler.
9844 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9847 # Rational C++ 2.4.1
9848 # FIXME: insert proper C++ library support
9852 allow_undefined_flag_CXX=' -expect_unresolved \*'
9853 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'
9854 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9855 echo "-hidden">> $lib.exp~
9856 $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~
9859 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9860 hardcode_libdir_separator_CXX=:
9862 # Commands to make compiler produce verbose output that lists
9863 # what "hidden" libraries, object files and flags are used when
9864 # linking a shared library.
9866 # There doesn't appear to be a way to prevent this compiler from
9867 # explicitly linking system object files so we need to strip them
9868 # from the output so that they don't get included in the library
9870 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'
9873 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9874 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9875 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'
9877 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9878 hardcode_libdir_separator_CXX=:
9880 # Commands to make compiler produce verbose output that lists
9881 # what "hidden" libraries, object files and flags are used when
9882 # linking a shared library.
9883 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9886 # FIXME: insert proper C++ library support
9893 # FIXME: insert proper C++ library support
9897 archive_cmds_need_lc_CXX=no
9898 case $cc_basename in
9900 # FIXME: insert proper C++ library support
9904 # FIXME: insert proper C++ library support
9910 case $cc_basename in
9913 # FIXME: insert proper C++ library support
9918 # FIXME: insert proper C++ library support
9922 # FIXME: insert proper C++ library support
9928 case $cc_basename in
9930 # Sun C++ 4.2, 5.x and Centerline C++
9931 no_undefined_flag_CXX=' -zdefs'
9932 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9933 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9934 $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'
9936 hardcode_libdir_flag_spec_CXX='-R$libdir'
9937 hardcode_shlibpath_var_CXX=no
9939 solaris2.0-5 | solaris2.0-5.*) ;;
9941 # The C++ compiler is used as linker so we must use $wl
9942 # flag to pass the commands to the underlying system
9944 # Supported since Solaris 2.6 (maybe 2.5.1?)
9945 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9948 link_all_deplibs_CXX=yes
9950 # Commands to make compiler produce verbose output that lists
9951 # what "hidden" libraries, object files and flags are used when
9952 # linking a shared library.
9954 # There doesn't appear to be a way to prevent this compiler from
9955 # explicitly linking system object files so we need to strip them
9956 # from the output so that they don't get included in the library
9958 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'
9960 # Archives containing C++ object files must be created using
9961 # "CC -xar", where "CC" is the Sun C++ compiler. This is
9962 # necessary to make sure instantiated templates are included
9964 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
9967 # Green Hills C++ Compiler
9968 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9970 # The C++ compiler must be used to create the archive.
9971 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
9974 # GNU C++ compiler with Solaris linker
9975 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9976 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
9977 if $CC --version | grep -v '^2\.7' > /dev/null; then
9978 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9979 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9980 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9982 # Commands to make compiler produce verbose output that lists
9983 # what "hidden" libraries, object files and flags are used when
9984 # linking a shared library.
9985 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9987 # g++ 2.7 appears to require `-G' NOT `-shared' on this
9989 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
9990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9991 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
9993 # Commands to make compiler produce verbose output that lists
9994 # what "hidden" libraries, object files and flags are used when
9995 # linking a shared library.
9996 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
9999 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10004 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10005 archive_cmds_need_lc_CXX=no
10008 case $cc_basename in
10010 # NonStop-UX NCC 3.20
10011 # FIXME: insert proper C++ library support
10015 # FIXME: insert proper C++ library support
10021 # FIXME: insert proper C++ library support
10025 # FIXME: insert proper C++ library support
10029 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10030 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10031 test "$ld_shlibs_CXX" = no && can_build_shared=no
10037 cat > conftest.$ac_ext <<EOF
10041 Foo (void) { a = 0; }
10047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10048 (eval $ac_compile) 2>&5
10050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10051 (exit $ac_status); }; then
10052 # Parse the compiler output and extract the necessary
10053 # objects, libraries and library flags.
10055 # Sentinel used to keep track of whether or not we are before
10056 # the conftest object file.
10057 pre_test_object_deps_done=no
10059 # The `*' in the case matches for architectures that use `case' in
10060 # $output_verbose_cmd can trigger glob expansion during the loop
10061 # eval without this substitution.
10062 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10064 for p in `eval $output_verbose_link_cmd`; do
10068 # Some compilers place space between "-{L,R}" and the path.
10069 # Remove the space.
10070 if test $p = "-L" \
10071 || test $p = "-R"; then
10078 if test "$pre_test_object_deps_done" = no; then
10081 # Internal compiler library paths should come after those
10082 # provided the user. The postdeps already come after the
10083 # user supplied libs so there is no need to process them.
10084 if test -z "$compiler_lib_search_path_CXX"; then
10085 compiler_lib_search_path_CXX="${prev}${p}"
10087 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10090 # The "-l" case would never come before the object being
10091 # linked, so don't bother handling this case.
10094 if test -z "$postdeps_CXX"; then
10095 postdeps_CXX="${prev}${p}"
10097 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10103 # This assumes that the test object file only shows up
10104 # once in the compiler output.
10105 if test "$p" = "conftest.$objext"; then
10106 pre_test_object_deps_done=yes
10110 if test "$pre_test_object_deps_done" = no; then
10111 if test -z "$predep_objects_CXX"; then
10112 predep_objects_CXX="$p"
10114 predep_objects_CXX="$predep_objects_CXX $p"
10117 if test -z "$postdep_objects_CXX"; then
10118 postdep_objects_CXX="$p"
10120 postdep_objects_CXX="$postdep_objects_CXX $p"
10125 *) ;; # Ignore the rest.
10133 echo "libtool.m4: error: problem compiling CXX test program"
10136 $rm -f confest.$objext
10138 case " $postdeps_CXX " in
10139 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10142 lt_prog_compiler_wl_CXX=
10143 lt_prog_compiler_pic_CXX=
10144 lt_prog_compiler_static_CXX=
10146 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10147 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10149 # C++ specific cases for pic, static, wl, etc.
10150 if test "$GXX" = yes; then
10151 lt_prog_compiler_wl_CXX='-Wl,'
10152 lt_prog_compiler_static_CXX='-static'
10156 # All AIX code is PIC.
10157 if test "$host_cpu" = ia64; then
10158 # AIX 5 now supports IA64 processor
10159 lt_prog_compiler_static_CXX='-Bstatic'
10163 # FIXME: we need at least 68020 code to build shared libraries, but
10164 # adding the `-m68020' flag to GCC prevents building anything better,
10166 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10168 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10169 # PIC is the default for these OSes.
10171 mingw* | os2* | pw32*)
10172 # This hack is so that the source file can tell whether it is being
10173 # built for inclusion in a dll (and should export symbols for example).
10174 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10176 darwin* | rhapsody*)
10177 # PIC is the default on this platform
10178 # Common symbols not allowed in MH_DYLIB files
10179 lt_prog_compiler_pic_CXX='-fno-common'
10182 # DJGPP does not support shared libraries at all
10183 lt_prog_compiler_pic_CXX=
10186 if test -d /usr/nec; then
10187 lt_prog_compiler_pic_CXX=-Kconform_pic
10191 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10192 # not for PA HP-UX.
10193 case "$host_cpu" in
10197 lt_prog_compiler_pic_CXX='-fPIC'
10202 lt_prog_compiler_pic_CXX='-fPIC'
10208 # All AIX code is PIC.
10209 if test "$host_cpu" = ia64; then
10210 # AIX 5 now supports IA64 processor
10211 lt_prog_compiler_static_CXX='-Bstatic'
10213 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10217 case $cc_basename in
10219 # Green Hills C++ Compiler
10220 # _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"
10225 case $cc_basename in
10227 lt_prog_compiler_pic_CXX='-KPIC'
10230 # Green Hills C++ Compiler
10231 lt_prog_compiler_pic_CXX='-pic'
10237 freebsd* | kfreebsd*-gnu)
10238 # FreeBSD uses GNU C++
10240 hpux9* | hpux10* | hpux11*)
10241 case $cc_basename in
10243 lt_prog_compiler_wl_CXX='-Wl,'
10244 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10245 if test "$host_cpu" != ia64; then
10246 lt_prog_compiler_pic_CXX='+Z'
10250 lt_prog_compiler_wl_CXX='-Wl,'
10251 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10252 case "$host_cpu" in
10257 lt_prog_compiler_pic_CXX='+Z'
10265 irix5* | irix6* | nonstopux*)
10266 case $cc_basename in
10268 lt_prog_compiler_wl_CXX='-Wl,'
10269 lt_prog_compiler_static_CXX='-non_shared'
10270 # CC pic flag -KPIC is the default.
10277 case $cc_basename in
10280 lt_prog_compiler_wl_CXX='--backend -Wl,'
10281 lt_prog_compiler_pic_CXX='-fPIC'
10285 lt_prog_compiler_wl_CXX='-Wl,'
10286 lt_prog_compiler_pic_CXX='-KPIC'
10287 lt_prog_compiler_static_CXX='-static'
10291 # Make sure the PIC flag is empty. It appears that all Alpha
10292 # Linux and Compaq Tru64 Unix objects are PIC.
10293 lt_prog_compiler_pic_CXX=
10294 lt_prog_compiler_static_CXX='-non_shared'
10305 case $cc_basename in
10307 lt_prog_compiler_pic_CXX='-W c,exportall'
10313 netbsd* | knetbsd*-gnu)
10315 osf3* | osf4* | osf5*)
10316 case $cc_basename in
10318 lt_prog_compiler_wl_CXX='--backend -Wl,'
10321 # Rational C++ 2.4.1
10322 lt_prog_compiler_pic_CXX='-pic'
10325 # Digital/Compaq C++
10326 lt_prog_compiler_wl_CXX='-Wl,'
10327 # Make sure the PIC flag is empty. It appears that all Alpha
10328 # Linux and Compaq Tru64 Unix objects are PIC.
10329 lt_prog_compiler_pic_CXX=
10330 lt_prog_compiler_static_CXX='-non_shared'
10339 case $cc_basename in
10341 lt_prog_compiler_pic_CXX='-fPIC'
10348 case $cc_basename in
10350 # Sun C++ 4.2, 5.x and Centerline C++
10351 lt_prog_compiler_pic_CXX='-KPIC'
10352 lt_prog_compiler_static_CXX='-Bstatic'
10353 lt_prog_compiler_wl_CXX='-Qoption ld '
10356 # Green Hills C++ Compiler
10357 lt_prog_compiler_pic_CXX='-PIC'
10364 case $cc_basename in
10367 lt_prog_compiler_pic_CXX='-pic'
10368 lt_prog_compiler_static_CXX='-Bstatic'
10372 lt_prog_compiler_pic_CXX='-pic'
10379 case $cc_basename in
10381 # NonStop-UX NCC 3.20
10382 lt_prog_compiler_pic_CXX='-KPIC'
10393 lt_prog_compiler_can_build_shared_CXX=no
10398 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10399 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10402 # Check to make sure the PIC flag actually works.
10404 if test -n "$lt_prog_compiler_pic_CXX"; then
10406 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10407 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10408 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10409 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 lt_prog_compiler_pic_works_CXX=no
10412 ac_outfile=conftest.$ac_objext
10413 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10414 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10415 # Insert the option either (1) after the last *FLAGS variable, or
10416 # (2) before a word containing "conftest.", or (3) at the end.
10417 # Note that $ac_compile itself does not contain backslashes and begins
10418 # with a dollar sign (not a hyphen), so the echo should work correctly.
10419 # The option is referenced via a variable to avoid confusing sed.
10420 lt_compile=`echo "$ac_compile" | $SED \
10421 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10423 -e 's:$: $lt_compiler_flag:'`
10424 (eval echo "\"\$as_me:10424: $lt_compile\"" >&5)
10425 (eval "$lt_compile" 2>conftest.err)
10427 cat conftest.err >&5
10428 echo "$as_me:10428: \$? = $ac_status" >&5
10429 if (exit $ac_status) && test -s "$ac_outfile"; then
10430 # The compiler can only warn and ignore the option if not recognized
10431 # So say no if there are warnings
10432 if test ! -s conftest.err; then
10433 lt_prog_compiler_pic_works_CXX=yes
10439 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10440 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10442 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10443 case $lt_prog_compiler_pic_CXX in
10445 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10448 lt_prog_compiler_pic_CXX=
10449 lt_prog_compiler_can_build_shared_CXX=no
10454 # For platforms which do not support PIC, -DPIC is meaningless:
10456 lt_prog_compiler_pic_CXX=
10459 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10463 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10464 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10465 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 lt_cv_prog_compiler_c_o_CXX=no
10469 $rm -r conftest 2>/dev/null
10473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10475 lt_compiler_flag="-o out/conftest2.$ac_objext"
10476 # Insert the option either (1) after the last *FLAGS variable, or
10477 # (2) before a word containing "conftest.", or (3) at the end.
10478 # Note that $ac_compile itself does not contain backslashes and begins
10479 # with a dollar sign (not a hyphen), so the echo should work correctly.
10480 lt_compile=`echo "$ac_compile" | $SED \
10481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10483 -e 's:$: $lt_compiler_flag:'`
10484 (eval echo "\"\$as_me:10484: $lt_compile\"" >&5)
10485 (eval "$lt_compile" 2>out/conftest.err)
10487 cat out/conftest.err >&5
10488 echo "$as_me:10488: \$? = $ac_status" >&5
10489 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10491 # The compiler can only warn and ignore the option if not recognized
10492 # So say no if there are warnings
10493 if test ! -s out/conftest.err; then
10494 lt_cv_prog_compiler_c_o_CXX=yes
10499 # SGI C++ compiler will create directory out/ii_files/ for
10500 # template instantiation
10501 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10502 $rm out/* && rmdir out
10508 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10509 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10512 hard_links="nottested"
10513 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10514 # do not overwrite the value of need_locks provided by the user
10515 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10516 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10519 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10521 ln conftest.a conftest.b 2>&5 || hard_links=no
10522 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10523 echo "$as_me:$LINENO: result: $hard_links" >&5
10524 echo "${ECHO_T}$hard_links" >&6
10525 if test "$hard_links" = no; then
10526 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10527 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10534 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10535 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10537 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10540 # If we're using GNU nm, then we don't want the "-C" option.
10541 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10542 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10543 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'
10545 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'
10549 export_symbols_cmds_CXX="$ltdll_cmds"
10552 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10555 link_all_deplibs_CXX=no
10558 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10562 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10563 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10564 test "$ld_shlibs_CXX" = no && can_build_shared=no
10566 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10567 if test "$GCC" = yes; then
10568 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10572 # Do we need to explicitly link libc?
10574 case "x$archive_cmds_need_lc_CXX" in
10576 # Assume -lc should be added
10577 archive_cmds_need_lc_CXX=yes
10579 if test "$enable_shared" = yes && test "$GCC" = yes; then
10580 case $archive_cmds_CXX in
10582 # FIXME: we may have to deal with multi-command sequences.
10585 # Test whether the compiler implicitly links with -lc since on some
10586 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10587 # to ld, don't add -lc before -lgcc.
10588 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10589 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10591 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10594 (eval $ac_compile) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); } 2>conftest.err; then
10600 libobjs=conftest.$ac_objext
10602 wl=$lt_prog_compiler_wl_CXX
10608 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10609 allow_undefined_flag_CXX=
10610 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10611 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); }
10616 archive_cmds_need_lc_CXX=no
10618 archive_cmds_need_lc_CXX=yes
10620 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10622 cat conftest.err 1>&5
10625 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10626 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10633 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10634 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10635 library_names_spec=
10636 libname_spec='lib$name'
10640 postuninstall_cmds=
10644 shlibpath_overrides_runpath=unknown
10646 dynamic_linker="$host_os ld.so"
10647 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10648 if test "$GCC" = yes; then
10649 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10650 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10651 # if the path contains ";" then we assume it to be the separator
10652 # otherwise default to the standard path separator (i.e. ":") - it is
10653 # assumed that no part of a normal pathname contains ";" but that should
10654 # okay in the real world where ";" in dirpaths is itself problematic.
10655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10662 need_lib_prefix=unknown
10663 hardcode_into_libs=no
10665 # when you set need_version to no, make sure it does not cause -set_version
10666 # flags to be left without arguments
10667 need_version=unknown
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10673 shlibpath_var=LIBPATH
10675 # AIX 3 has no versioning support, so we append a major version to the name.
10676 soname_spec='${libname}${release}${shared_ext}$major'
10683 hardcode_into_libs=yes
10684 if test "$host_cpu" = ia64; then
10685 # AIX 5 supports IA64
10686 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10687 shlibpath_var=LD_LIBRARY_PATH
10689 # With GCC up to 2.95.x, collect2 would create an import file
10690 # for dependence libraries. The import file would start with
10691 # the line `#! .'. This would cause the generated library to
10692 # depend on `.', always an invalid library. This was fixed in
10693 # development snapshots of GCC prior to 3.0.
10695 aix4 | aix4.[01] | aix4.[01].*)
10696 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10698 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10701 can_build_shared=no
10705 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10706 # soname into executable. Probably we can add versioning support to
10707 # collect2, so additional links can be useful in future.
10708 if test "$aix_use_runtimelinking" = yes; then
10709 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10710 # instead of lib<name>.a to let people know that these are not
10711 # typical AIX shared libraries.
10712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714 # We preserve .a as extension for shared libraries through AIX4.2
10715 # and later when we are not doing run time linking.
10716 library_names_spec='${libname}${release}.a $libname.a'
10717 soname_spec='${libname}${release}${shared_ext}$major'
10719 shlibpath_var=LIBPATH
10724 library_names_spec='$libname.ixlibrary $libname.a'
10725 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10726 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'
10730 library_names_spec='${libname}${shared_ext}'
10731 dynamic_linker="$host_os ld.so"
10732 shlibpath_var=LIBRARY_PATH
10738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739 soname_spec='${libname}${release}${shared_ext}$major'
10740 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10741 shlibpath_var=LD_LIBRARY_PATH
10742 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10743 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10744 # the default ld.so.conf also contains /usr/contrib/lib and
10745 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10746 # libtool to hard-code these into programs
10749 cygwin* | mingw* | pw32*)
10750 version_type=windows
10755 case $GCC,$host_os in
10756 yes,cygwin* | yes,mingw* | yes,pw32*)
10757 library_names_spec='$libname.dll.a'
10758 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10759 postinstall_cmds='base_file=`basename \${file}`~
10760 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10761 dldir=$destdir/`dirname \$dlpath`~
10762 test -d \$dldir || mkdir -p \$dldir~
10763 $install_prog $dir/$dlname \$dldir/$dlname'
10764 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10765 dlpath=$dir/\$dldll~
10767 shlibpath_overrides_runpath=yes
10771 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10772 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10773 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10776 # MinGW DLLs use traditional 'lib' prefix
10777 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10778 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10779 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10780 # It is most probably a Windows format PATH printed by
10781 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10782 # path with ; separators, and with drive letters. We can handle the
10783 # drive letters (cygwin fileutils understands them), so leave them,
10784 # especially as we might pass files found there to a mingw objdump,
10785 # which wouldn't understand a cygwinified path. Ahh.
10786 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10792 # pw32 DLLs use 'pw' prefix rather than 'lib'
10793 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10799 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10802 dynamic_linker='Win32 ld.exe'
10803 # FIXME: first we should search . and the directory the executable is in
10807 darwin* | rhapsody*)
10808 dynamic_linker="$host_os dyld"
10809 version_type=darwin
10812 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10813 soname_spec='${libname}${release}${major}$shared_ext'
10814 shlibpath_overrides_runpath=yes
10815 shlibpath_var=DYLD_LIBRARY_PATH
10816 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10817 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10818 if test "$GCC" = yes; then
10819 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"`
10821 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10823 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10831 soname_spec='${libname}${release}${shared_ext}$major'
10832 shlibpath_var=LD_LIBRARY_PATH
10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10844 soname_spec='${libname}${release}${shared_ext}$major'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847 hardcode_into_libs=yes
10848 dynamic_linker='GNU ld.so'
10852 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10853 version_type=freebsd-$objformat
10854 case $version_type in
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10865 shlibpath_var=LD_LIBRARY_PATH
10868 shlibpath_overrides_runpath=yes
10870 freebsd3.01* | freebsdelf3.01*)
10871 shlibpath_overrides_runpath=yes
10872 hardcode_into_libs=yes
10875 shlibpath_overrides_runpath=no
10876 hardcode_into_libs=yes
10885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 shlibpath_var=LD_LIBRARY_PATH
10888 hardcode_into_libs=yes
10891 hpux9* | hpux10* | hpux11*)
10892 # Give a soname corresponding to the major version so that dld.sl refuses to
10893 # link against other versions.
10897 case "$host_cpu" in
10900 hardcode_into_libs=yes
10901 dynamic_linker="$host_os dld.so"
10902 shlibpath_var=LD_LIBRARY_PATH
10903 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10905 soname_spec='${libname}${release}${shared_ext}$major'
10906 if test "X$HPUX_IA64_MODE" = X32; then
10907 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10909 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10911 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10915 hardcode_into_libs=yes
10916 dynamic_linker="$host_os dld.sl"
10917 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10918 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10920 soname_spec='${libname}${release}${shared_ext}$major'
10921 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10922 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10926 dynamic_linker="$host_os dld.sl"
10927 shlibpath_var=SHLIB_PATH
10928 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10930 soname_spec='${libname}${release}${shared_ext}$major'
10933 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10934 postinstall_cmds='chmod 555 $lib'
10937 irix5* | irix6* | nonstopux*)
10939 nonstopux*) version_type=nonstopux ;;
10941 if test "$lt_cv_prog_gnu_ld" = yes; then
10949 soname_spec='${libname}${release}${shared_ext}$major'
10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10952 irix5* | nonstopux*)
10953 libsuff= shlibsuff=
10956 case $LD in # libtool.m4 will add one of these switches to LD
10957 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10958 libsuff= shlibsuff= libmagic=32-bit;;
10959 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10960 libsuff=32 shlibsuff=N32 libmagic=N32;;
10961 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10962 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10963 *) libsuff= shlibsuff= libmagic=never-match;;
10967 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10968 shlibpath_overrides_runpath=no
10969 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10970 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10971 hardcode_into_libs=yes
10974 # No shared lib support for Linux oldld, aout, or coff.
10975 linux*oldld* | linux*aout* | linux*coff*)
10979 # This must be Linux ELF.
10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10985 soname_spec='${libname}${release}${shared_ext}$major'
10986 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10987 shlibpath_var=LD_LIBRARY_PATH
10988 shlibpath_overrides_runpath=no
10989 # This implies no fast_install, which is unacceptable.
10990 # Some rework will be needed to allow for fast_install
10991 # before this can be enabled.
10992 hardcode_into_libs=yes
10994 # Append ld.so.conf contents to the search path
10995 if test -f /etc/ld.so.conf; then
10996 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
10997 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11000 # We used to test for /lib/ld.so.1 and disable shared libraries on
11001 # powerpc, because MkLinux only supported shared libraries with the
11002 # GNU dynamic linker. Since this was broken with cross compilers,
11003 # most powerpc-linux boxes support dynamic linking these days and
11004 # people can always --disable-shared, the test was removed, and we
11005 # assume the GNU/Linux dynamic linker is in use.
11006 dynamic_linker='GNU/Linux ld.so'
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11014 soname_spec='${libname}${release}${shared_ext}$major'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 shlibpath_overrides_runpath=no
11017 hardcode_into_libs=yes
11018 dynamic_linker='GNU ld.so'
11025 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11028 dynamic_linker='NetBSD (a.out) ld.so'
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 dynamic_linker='NetBSD ld.elf_so'
11034 shlibpath_var=LD_LIBRARY_PATH
11035 shlibpath_overrides_runpath=yes
11036 hardcode_into_libs=yes
11041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042 shlibpath_var=LD_LIBRARY_PATH
11043 shlibpath_overrides_runpath=yes
11050 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11051 soname_spec='${libname}${release}${shared_ext}$major'
11052 shlibpath_var=LD_LIBRARY_PATH
11053 shlibpath_overrides_runpath=yes
11060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11061 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11062 shlibpath_var=LD_LIBRARY_PATH
11063 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11065 openbsd2.[89] | openbsd2.[89].*)
11066 shlibpath_overrides_runpath=no
11069 shlibpath_overrides_runpath=yes
11073 shlibpath_overrides_runpath=yes
11078 libname_spec='$name'
11081 library_names_spec='$libname${shared_ext} $libname.a'
11082 dynamic_linker='OS/2 ld.exe'
11083 shlibpath_var=LIBPATH
11086 osf3* | osf4* | osf5*)
11090 soname_spec='${libname}${release}${shared_ext}$major'
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11092 shlibpath_var=LD_LIBRARY_PATH
11093 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11094 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11099 soname_spec='${libname}${release}${shared_ext}$major'
11100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11101 shlibpath_var=LD_LIBRARY_PATH
11108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11109 soname_spec='${libname}${release}${shared_ext}$major'
11110 shlibpath_var=LD_LIBRARY_PATH
11111 shlibpath_overrides_runpath=yes
11112 hardcode_into_libs=yes
11113 # ldd complains unless libraries are executable
11114 postinstall_cmds='chmod +x $lib'
11119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11120 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11121 shlibpath_var=LD_LIBRARY_PATH
11122 shlibpath_overrides_runpath=yes
11123 if test "$with_gnu_ld" = yes; then
11129 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11132 soname_spec='${libname}${release}${shared_ext}$major'
11133 shlibpath_var=LD_LIBRARY_PATH
11134 case $host_vendor in
11136 shlibpath_overrides_runpath=no
11138 export_dynamic_flag_spec='${wl}-Blargedynsym'
11139 runpath_var=LD_RUN_PATH
11147 shlibpath_overrides_runpath=no
11148 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11154 if test -d /usr/nec ;then
11156 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11157 soname_spec='$libname${shared_ext}.$major'
11158 shlibpath_var=LD_LIBRARY_PATH
11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11165 soname_spec='${libname}${release}${shared_ext}$major'
11166 shlibpath_var=LD_LIBRARY_PATH
11173 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11174 echo "${ECHO_T}$dynamic_linker" >&6
11175 test "$dynamic_linker" = no && can_build_shared=no
11177 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11178 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11179 hardcode_action_CXX=
11180 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11181 test -n "$runpath_var CXX" || \
11182 test "X$hardcode_automatic_CXX"="Xyes" ; then
11184 # We can hardcode non-existant directories.
11185 if test "$hardcode_direct_CXX" != no &&
11186 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11187 # have to relink, otherwise we might link with an installed library
11188 # when we should be linking with a yet-to-be-installed one
11189 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11190 test "$hardcode_minus_L_CXX" != no; then
11191 # Linking always hardcodes the temporary library directory.
11192 hardcode_action_CXX=relink
11194 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11195 hardcode_action_CXX=immediate
11198 # We cannot hardcode anything, or else we can only hardcode existing
11200 hardcode_action_CXX=unsupported
11202 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11203 echo "${ECHO_T}$hardcode_action_CXX" >&6
11205 if test "$hardcode_action_CXX" = relink; then
11206 # Fast installation is not supported
11207 enable_fast_install=no
11208 elif test "$shlibpath_overrides_runpath" = yes ||
11209 test "$enable_shared" = no; then
11210 # Fast installation is not necessary
11211 enable_fast_install=needless
11216 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11217 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11218 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11219 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11220 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11221 echo "$as_me:$LINENO: result: yes" >&5
11222 echo "${ECHO_T}yes" >&6
11224 # FIXME - insert some real tests, host_os isn't really good enough
11227 if test -n "$STRIP" ; then
11228 striplib="$STRIP -x"
11229 echo "$as_me:$LINENO: result: yes" >&5
11230 echo "${ECHO_T}yes" >&6
11232 echo "$as_me:$LINENO: result: no" >&5
11233 echo "${ECHO_T}no" >&6
11237 echo "$as_me:$LINENO: result: no" >&5
11238 echo "${ECHO_T}no" >&6
11243 if test "x$enable_dlopen" != xyes; then
11244 enable_dlopen=unknown
11245 enable_dlopen_self=unknown
11246 enable_dlopen_self_static=unknown
11253 lt_cv_dlopen="load_add_on"
11255 lt_cv_dlopen_self=yes
11259 lt_cv_dlopen="LoadLibrary"
11264 lt_cv_dlopen="dlopen"
11269 # if libdl is installed we need to link against it
11270 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11271 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11272 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11273 echo $ECHO_N "(cached) $ECHO_C" >&6
11275 ac_check_lib_save_LIBS=$LIBS
11277 cat >conftest.$ac_ext <<_ACEOF
11278 #line $LINENO "configure"
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11285 /* Override any gcc2 internal prototype to avoid an error. */
11289 /* We use char because int might match the return type of a gcc2
11290 builtin and then its argument prototype would still apply. */
11300 rm -f conftest.$ac_objext conftest$ac_exeext
11301 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11302 (eval $ac_link) 2>&5
11304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } &&
11306 { ac_try='test -s conftest$ac_exeext'
11307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11308 (eval $ac_try) 2>&5
11310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11311 (exit $ac_status); }; }; then
11312 ac_cv_lib_dl_dlopen=yes
11314 echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11317 ac_cv_lib_dl_dlopen=no
11319 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11320 LIBS=$ac_check_lib_save_LIBS
11322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11324 if test $ac_cv_lib_dl_dlopen = yes; then
11325 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11328 lt_cv_dlopen="dyld"
11330 lt_cv_dlopen_self=yes
11337 echo "$as_me:$LINENO: checking for shl_load" >&5
11338 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11339 if test "${ac_cv_func_shl_load+set}" = set; then
11340 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 cat >conftest.$ac_ext <<_ACEOF
11343 #line $LINENO "configure"
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 /* System header to define __stub macros and hopefully few prototypes,
11350 which can conflict with char shl_load (); below.
11351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11352 <limits.h> exists even on freestanding compilers. */
11354 # include <limits.h>
11356 # include <assert.h>
11358 /* Override any gcc2 internal prototype to avoid an error. */
11363 /* We use char because int might match the return type of a gcc2
11364 builtin and then its argument prototype would still apply. */
11366 /* The GNU C library defines this for functions which it implements
11367 to always fail with ENOSYS. Some functions are actually named
11368 something starting with __ and the normal name is an alias. */
11369 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11372 char (*f) () = shl_load;
11381 return f != shl_load;
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11388 (eval $ac_link) 2>&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } &&
11392 { ac_try='test -s conftest$ac_exeext'
11393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11394 (eval $ac_try) 2>&5
11396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11397 (exit $ac_status); }; }; then
11398 ac_cv_func_shl_load=yes
11400 echo "$as_me: failed program was:" >&5
11401 sed 's/^/| /' conftest.$ac_ext >&5
11403 ac_cv_func_shl_load=no
11405 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11407 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11408 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11409 if test $ac_cv_func_shl_load = yes; then
11410 lt_cv_dlopen="shl_load"
11412 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11413 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11414 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11417 ac_check_lib_save_LIBS=$LIBS
11419 cat >conftest.$ac_ext <<_ACEOF
11420 #line $LINENO "configure"
11423 cat confdefs.h >>conftest.$ac_ext
11424 cat >>conftest.$ac_ext <<_ACEOF
11425 /* end confdefs.h. */
11427 /* Override any gcc2 internal prototype to avoid an error. */
11431 /* We use char because int might match the return type of a gcc2
11432 builtin and then its argument prototype would still apply. */
11442 rm -f conftest.$ac_objext conftest$ac_exeext
11443 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11444 (eval $ac_link) 2>&5
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } &&
11448 { ac_try='test -s conftest$ac_exeext'
11449 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11450 (eval $ac_try) 2>&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); }; }; then
11454 ac_cv_lib_dld_shl_load=yes
11456 echo "$as_me: failed program was:" >&5
11457 sed 's/^/| /' conftest.$ac_ext >&5
11459 ac_cv_lib_dld_shl_load=no
11461 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11462 LIBS=$ac_check_lib_save_LIBS
11464 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11465 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11466 if test $ac_cv_lib_dld_shl_load = yes; then
11467 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11469 echo "$as_me:$LINENO: checking for dlopen" >&5
11470 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11471 if test "${ac_cv_func_dlopen+set}" = set; then
11472 echo $ECHO_N "(cached) $ECHO_C" >&6
11474 cat >conftest.$ac_ext <<_ACEOF
11475 #line $LINENO "configure"
11478 cat confdefs.h >>conftest.$ac_ext
11479 cat >>conftest.$ac_ext <<_ACEOF
11480 /* end confdefs.h. */
11481 /* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char dlopen (); below.
11483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484 <limits.h> exists even on freestanding compilers. */
11486 # include <limits.h>
11488 # include <assert.h>
11490 /* Override any gcc2 internal prototype to avoid an error. */
11495 /* We use char because int might match the return type of a gcc2
11496 builtin and then its argument prototype would still apply. */
11498 /* The GNU C library defines this for functions which it implements
11499 to always fail with ENOSYS. Some functions are actually named
11500 something starting with __ and the normal name is an alias. */
11501 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11504 char (*f) () = dlopen;
11513 return f != dlopen;
11518 rm -f conftest.$ac_objext conftest$ac_exeext
11519 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11520 (eval $ac_link) 2>&5
11522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11523 (exit $ac_status); } &&
11524 { ac_try='test -s conftest$ac_exeext'
11525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11526 (eval $ac_try) 2>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 ac_cv_func_dlopen=yes
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11535 ac_cv_func_dlopen=no
11537 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11539 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11540 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11541 if test $ac_cv_func_dlopen = yes; then
11542 lt_cv_dlopen="dlopen"
11544 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11547 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 ac_check_lib_save_LIBS=$LIBS
11551 cat >conftest.$ac_ext <<_ACEOF
11552 #line $LINENO "configure"
11555 cat confdefs.h >>conftest.$ac_ext
11556 cat >>conftest.$ac_ext <<_ACEOF
11557 /* end confdefs.h. */
11559 /* Override any gcc2 internal prototype to avoid an error. */
11563 /* We use char because int might match the return type of a gcc2
11564 builtin and then its argument prototype would still apply. */
11574 rm -f conftest.$ac_objext conftest$ac_exeext
11575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11576 (eval $ac_link) 2>&5
11578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11579 (exit $ac_status); } &&
11580 { ac_try='test -s conftest$ac_exeext'
11581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11582 (eval $ac_try) 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; }; then
11586 ac_cv_lib_dl_dlopen=yes
11588 echo "$as_me: failed program was:" >&5
11589 sed 's/^/| /' conftest.$ac_ext >&5
11591 ac_cv_lib_dl_dlopen=no
11593 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11594 LIBS=$ac_check_lib_save_LIBS
11596 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11597 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11598 if test $ac_cv_lib_dl_dlopen = yes; then
11599 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11601 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11602 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11603 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11604 echo $ECHO_N "(cached) $ECHO_C" >&6
11606 ac_check_lib_save_LIBS=$LIBS
11607 LIBS="-lsvld $LIBS"
11608 cat >conftest.$ac_ext <<_ACEOF
11609 #line $LINENO "configure"
11612 cat confdefs.h >>conftest.$ac_ext
11613 cat >>conftest.$ac_ext <<_ACEOF
11614 /* end confdefs.h. */
11616 /* Override any gcc2 internal prototype to avoid an error. */
11620 /* We use char because int might match the return type of a gcc2
11621 builtin and then its argument prototype would still apply. */
11631 rm -f conftest.$ac_objext conftest$ac_exeext
11632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11633 (eval $ac_link) 2>&5
11635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11636 (exit $ac_status); } &&
11637 { ac_try='test -s conftest$ac_exeext'
11638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11639 (eval $ac_try) 2>&5
11641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642 (exit $ac_status); }; }; then
11643 ac_cv_lib_svld_dlopen=yes
11645 echo "$as_me: failed program was:" >&5
11646 sed 's/^/| /' conftest.$ac_ext >&5
11648 ac_cv_lib_svld_dlopen=no
11650 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11651 LIBS=$ac_check_lib_save_LIBS
11653 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11654 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11655 if test $ac_cv_lib_svld_dlopen = yes; then
11656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11658 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11659 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11660 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11663 ac_check_lib_save_LIBS=$LIBS
11665 cat >conftest.$ac_ext <<_ACEOF
11666 #line $LINENO "configure"
11669 cat confdefs.h >>conftest.$ac_ext
11670 cat >>conftest.$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11673 /* Override any gcc2 internal prototype to avoid an error. */
11677 /* We use char because int might match the return type of a gcc2
11678 builtin and then its argument prototype would still apply. */
11688 rm -f conftest.$ac_objext conftest$ac_exeext
11689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11690 (eval $ac_link) 2>&5
11692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11693 (exit $ac_status); } &&
11694 { ac_try='test -s conftest$ac_exeext'
11695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11696 (eval $ac_try) 2>&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); }; }; then
11700 ac_cv_lib_dld_dld_link=yes
11702 echo "$as_me: failed program was:" >&5
11703 sed 's/^/| /' conftest.$ac_ext >&5
11705 ac_cv_lib_dld_dld_link=no
11707 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11708 LIBS=$ac_check_lib_save_LIBS
11710 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11711 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11712 if test $ac_cv_lib_dld_dld_link = yes; then
11713 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11734 if test "x$lt_cv_dlopen" != xno; then
11740 case $lt_cv_dlopen in
11742 save_CPPFLAGS="$CPPFLAGS"
11743 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11745 save_LDFLAGS="$LDFLAGS"
11746 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11749 LIBS="$lt_cv_dlopen_libs $LIBS"
11751 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11752 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11753 if test "${lt_cv_dlopen_self+set}" = set; then
11754 echo $ECHO_N "(cached) $ECHO_C" >&6
11756 if test "$cross_compiling" = yes; then :
11757 lt_cv_dlopen_self=cross
11759 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11760 lt_status=$lt_dlunknown
11761 cat > conftest.$ac_ext <<EOF
11762 #line 11762 "configure"
11763 #include "confdefs.h"
11772 # define LT_DLGLOBAL RTLD_GLOBAL
11775 # define LT_DLGLOBAL DL_GLOBAL
11777 # define LT_DLGLOBAL 0
11781 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11782 find out it does not work in some platform. */
11783 #ifndef LT_DLLAZY_OR_NOW
11785 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11788 # define LT_DLLAZY_OR_NOW DL_LAZY
11791 # define LT_DLLAZY_OR_NOW RTLD_NOW
11794 # define LT_DLLAZY_OR_NOW DL_NOW
11796 # define LT_DLLAZY_OR_NOW 0
11804 extern "C" void exit (int);
11807 void fnord() { int i=42;}
11810 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11811 int status = $lt_dlunknown;
11815 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11816 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11817 /* dlclose (self); */
11823 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11824 (eval $ac_link) 2>&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11828 (./conftest; exit; ) 2>/dev/null
11830 case x$lt_status in
11831 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11832 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11833 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11836 # compilation failed
11837 lt_cv_dlopen_self=no
11844 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11845 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11847 if test "x$lt_cv_dlopen_self" = xyes; then
11848 LDFLAGS="$LDFLAGS $link_static_flag"
11849 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11850 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11851 if test "${lt_cv_dlopen_self_static+set}" = set; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 if test "$cross_compiling" = yes; then :
11855 lt_cv_dlopen_self_static=cross
11857 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11858 lt_status=$lt_dlunknown
11859 cat > conftest.$ac_ext <<EOF
11860 #line 11860 "configure"
11861 #include "confdefs.h"
11870 # define LT_DLGLOBAL RTLD_GLOBAL
11873 # define LT_DLGLOBAL DL_GLOBAL
11875 # define LT_DLGLOBAL 0
11879 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11880 find out it does not work in some platform. */
11881 #ifndef LT_DLLAZY_OR_NOW
11883 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11886 # define LT_DLLAZY_OR_NOW DL_LAZY
11889 # define LT_DLLAZY_OR_NOW RTLD_NOW
11892 # define LT_DLLAZY_OR_NOW DL_NOW
11894 # define LT_DLLAZY_OR_NOW 0
11902 extern "C" void exit (int);
11905 void fnord() { int i=42;}
11908 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11909 int status = $lt_dlunknown;
11913 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11914 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11915 /* dlclose (self); */
11921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11922 (eval $ac_link) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11926 (./conftest; exit; ) 2>/dev/null
11928 case x$lt_status in
11929 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11930 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11931 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
11934 # compilation failed
11935 lt_cv_dlopen_self_static=no
11942 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11943 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
11946 CPPFLAGS="$save_CPPFLAGS"
11947 LDFLAGS="$save_LDFLAGS"
11952 case $lt_cv_dlopen_self in
11953 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11954 *) enable_dlopen_self=unknown ;;
11957 case $lt_cv_dlopen_self_static in
11958 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11959 *) enable_dlopen_self_static=unknown ;;
11964 # The else clause should only fire when bootstrapping the
11965 # libtool distribution, otherwise you forgot to ship ltmain.sh
11966 # with your package, and you will get complaints that there are
11967 # no rules to generate ltmain.sh.
11968 if test -f "$ltmain"; then
11969 # See if we are running on zsh, and set the options which allow our commands through
11970 # without removal of \ escapes.
11971 if test -n "${ZSH_VERSION+set}" ; then
11972 setopt NO_GLOB_SUBST
11974 # Now quote all the things that may contain metacharacters while being
11975 # careful not to overquote the AC_SUBSTed values. We take copies of the
11976 # variables and quote the copies for generation of the libtool script.
11977 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11979 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11980 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11981 deplibs_check_method reload_flag reload_cmds need_locks \
11982 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11983 lt_cv_sys_global_symbol_to_c_name_address \
11984 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11985 old_postinstall_cmds old_postuninstall_cmds \
11989 lt_prog_compiler_wl_CXX \
11990 lt_prog_compiler_pic_CXX \
11991 lt_prog_compiler_static_CXX \
11992 lt_prog_compiler_no_builtin_flag_CXX \
11993 export_dynamic_flag_spec_CXX \
11994 thread_safe_flag_spec_CXX \
11995 whole_archive_flag_spec_CXX \
11996 enable_shared_with_static_runtimes_CXX \
11997 old_archive_cmds_CXX \
11998 old_archive_from_new_cmds_CXX \
11999 predep_objects_CXX \
12000 postdep_objects_CXX \
12003 compiler_lib_search_path_CXX \
12005 archive_expsym_cmds_CXX \
12006 postinstall_cmds_CXX \
12007 postuninstall_cmds_CXX \
12008 old_archive_from_expsyms_cmds_CXX \
12009 allow_undefined_flag_CXX \
12010 no_undefined_flag_CXX \
12011 export_symbols_cmds_CXX \
12012 hardcode_libdir_flag_spec_CXX \
12013 hardcode_libdir_flag_spec_ld_CXX \
12014 hardcode_libdir_separator_CXX \
12015 hardcode_automatic_CXX \
12017 module_expsym_cmds_CXX \
12018 lt_cv_prog_compiler_c_o_CXX \
12019 exclude_expsyms_CXX \
12020 include_expsyms_CXX; do
12023 old_archive_cmds_CXX | \
12024 old_archive_from_new_cmds_CXX | \
12025 archive_cmds_CXX | \
12026 archive_expsym_cmds_CXX | \
12027 module_cmds_CXX | \
12028 module_expsym_cmds_CXX | \
12029 old_archive_from_expsyms_cmds_CXX | \
12030 export_symbols_cmds_CXX | \
12031 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12032 postinstall_cmds | postuninstall_cmds | \
12033 old_postinstall_cmds | old_postuninstall_cmds | \
12034 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12035 # Double-quote double-evaled strings.
12036 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12039 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12045 *'\$0 --fallback-echo"')
12046 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12052 cat <<__EOF__ >> "$cfgfile"
12053 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12055 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12057 # Shell to use when invoking shell scripts.
12060 # Whether or not to build shared libraries.
12061 build_libtool_libs=$enable_shared
12063 # Whether or not to build static libraries.
12064 build_old_libs=$enable_static
12066 # Whether or not to add -lc for building shared libraries.
12067 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12069 # Whether or not to disallow shared libs when runtime libs are static
12070 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12072 # Whether or not to optimize for fast installation.
12073 fast_install=$enable_fast_install
12076 host_alias=$host_alias
12079 # An echo program that does not interpret backslashes.
12084 AR_FLAGS=$lt_AR_FLAGS
12089 # A language-specific compiler.
12090 CC=$lt_compiler_CXX
12092 # Is the compiler the GNU C compiler?
12098 # The linker used to build libraries.
12101 # Whether we need hard or soft links.
12104 # A BSD-compatible nm program.
12107 # A symbol stripping program
12110 # Used to examine libraries when file_magic_cmd begins "file"
12111 MAGIC_CMD=$MAGIC_CMD
12113 # Used on cygwin: DLL creation program.
12116 # Used on cygwin: object dumper.
12119 # Used on cygwin: assembler.
12122 # The name of the directory that contains temporary libtool files.
12125 # How to create reloadable object files.
12126 reload_flag=$lt_reload_flag
12127 reload_cmds=$lt_reload_cmds
12129 # How to pass a linker flag through the compiler.
12130 wl=$lt_lt_prog_compiler_wl_CXX
12132 # Object file suffix (normally "o").
12133 objext="$ac_objext"
12135 # Old archive suffix (normally "a").
12138 # Shared library suffix (normally ".so").
12139 shrext_cmds='$shrext_cmds'
12141 # Executable file suffix (normally "").
12144 # Additional compiler flags for building library objects.
12145 pic_flag=$lt_lt_prog_compiler_pic_CXX
12148 # What is the maximum length of a command?
12149 max_cmd_len=$lt_cv_sys_max_cmd_len
12151 # Does compiler simultaneously support -c and -o options?
12152 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12154 # Must we lock files when doing compilation ?
12155 need_locks=$lt_need_locks
12157 # Do we need the lib prefix for modules?
12158 need_lib_prefix=$need_lib_prefix
12160 # Do we need a version for libraries?
12161 need_version=$need_version
12163 # Whether dlopen is supported.
12164 dlopen_support=$enable_dlopen
12166 # Whether dlopen of programs is supported.
12167 dlopen_self=$enable_dlopen_self
12169 # Whether dlopen of statically linked programs is supported.
12170 dlopen_self_static=$enable_dlopen_self_static
12172 # Compiler flag to prevent dynamic linking.
12173 link_static_flag=$lt_lt_prog_compiler_static_CXX
12175 # Compiler flag to turn off builtin functions.
12176 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12178 # Compiler flag to allow reflexive dlopens.
12179 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12181 # Compiler flag to generate shared objects directly from archives.
12182 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12184 # Compiler flag to generate thread-safe objects.
12185 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12187 # Library versioning type.
12188 version_type=$version_type
12190 # Format of library name prefix.
12191 libname_spec=$lt_libname_spec
12193 # List of archive names. First name is the real one, the rest are links.
12194 # The last name is the one that the linker finds with -lNAME.
12195 library_names_spec=$lt_library_names_spec
12197 # The coded name of the library, if different from the real name.
12198 soname_spec=$lt_soname_spec
12200 # Commands used to build and install an old-style archive.
12202 old_archive_cmds=$lt_old_archive_cmds_CXX
12203 old_postinstall_cmds=$lt_old_postinstall_cmds
12204 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12206 # Create an old-style archive from a shared archive.
12207 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12209 # Create a temporary old-style archive to link instead of a shared archive.
12210 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12212 # Commands used to build and install a shared archive.
12213 archive_cmds=$lt_archive_cmds_CXX
12214 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12215 postinstall_cmds=$lt_postinstall_cmds
12216 postuninstall_cmds=$lt_postuninstall_cmds
12218 # Commands used to build a loadable module (assumed same as above if empty)
12219 module_cmds=$lt_module_cmds_CXX
12220 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12222 # Commands to strip libraries.
12223 old_striplib=$lt_old_striplib
12224 striplib=$lt_striplib
12226 # Dependencies to place before the objects being linked to create a
12228 predep_objects=$lt_predep_objects_CXX
12230 # Dependencies to place after the objects being linked to create a
12232 postdep_objects=$lt_postdep_objects_CXX
12234 # Dependencies to place before the objects being linked to create a
12236 predeps=$lt_predeps_CXX
12238 # Dependencies to place after the objects being linked to create a
12240 postdeps=$lt_postdeps_CXX
12242 # The library search path used internally by the compiler when linking
12243 # a shared library.
12244 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12246 # Method to check whether dependent libraries are shared objects.
12247 deplibs_check_method=$lt_deplibs_check_method
12249 # Command to use when deplibs_check_method == file_magic.
12250 file_magic_cmd=$lt_file_magic_cmd
12252 # Flag that allows shared libraries with undefined symbols to be built.
12253 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12255 # Flag that forces no undefined symbols.
12256 no_undefined_flag=$lt_no_undefined_flag_CXX
12258 # Commands used to finish a libtool library installation in a directory.
12259 finish_cmds=$lt_finish_cmds
12261 # Same as above, but a single script fragment to be evaled but not shown.
12262 finish_eval=$lt_finish_eval
12264 # Take the output of nm and produce a listing of raw symbols and C names.
12265 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12267 # Transform the output of nm in a proper C declaration
12268 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12270 # Transform the output of nm in a C name address pair
12271 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12273 # This is the shared library runtime path variable.
12274 runpath_var=$runpath_var
12276 # This is the shared library path variable.
12277 shlibpath_var=$shlibpath_var
12279 # Is shlibpath searched before the hard-coded library search path?
12280 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12282 # How to hardcode a shared library path into an executable.
12283 hardcode_action=$hardcode_action_CXX
12285 # Whether we should hardcode library paths into libraries.
12286 hardcode_into_libs=$hardcode_into_libs
12288 # Flag to hardcode \$libdir into a binary during linking.
12289 # This must work even if \$libdir does not exist.
12290 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12292 # If ld is used when linking, flag to hardcode \$libdir into
12293 # a binary during linking. This must work even if \$libdir does
12295 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12297 # Whether we need a single -rpath flag with a separated argument.
12298 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12300 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12301 # resulting binary.
12302 hardcode_direct=$hardcode_direct_CXX
12304 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12305 # resulting binary.
12306 hardcode_minus_L=$hardcode_minus_L_CXX
12308 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12309 # the resulting binary.
12310 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12312 # Set to yes if building a shared library automatically hardcodes DIR into the library
12313 # and all subsequent libraries and executables linked against it.
12314 hardcode_automatic=$hardcode_automatic_CXX
12316 # Variables whose values should be saved in libtool wrapper scripts and
12317 # restored at relink time.
12318 variables_saved_for_relink="$variables_saved_for_relink"
12320 # Whether libtool must link a program against all its dependency libraries.
12321 link_all_deplibs=$link_all_deplibs_CXX
12323 # Compile-time system search path for libraries
12324 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12326 # Run-time system search path for libraries
12327 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12329 # Fix the shell variable \$srcfile for the compiler.
12330 fix_srcfile_path="$fix_srcfile_path_CXX"
12332 # Set to yes if exported symbols are required.
12333 always_export_symbols=$always_export_symbols_CXX
12335 # The commands to list exported symbols.
12336 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12338 # The commands to extract the exported symbol list from a shared archive.
12339 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12341 # Symbols that should not be listed in the preloaded symbols.
12342 exclude_expsyms=$lt_exclude_expsyms_CXX
12344 # Symbols that must always be exported.
12345 include_expsyms=$lt_include_expsyms_CXX
12347 # ### END LIBTOOL TAG CONFIG: $tagname
12353 # If there is no Makefile yet, we rely on a make rule to execute
12354 # `config.status --recheck' to rerun these tests and create the
12355 # libtool script then.
12356 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12357 if test -f "$ltmain_in"; then
12358 test -f Makefile && make "$ltmain"
12364 ac_cpp='$CPP $CPPFLAGS'
12365 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12366 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12367 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373 with_gnu_ldcxx=$with_gnu_ld
12374 with_gnu_ld=$lt_save_with_gnu_ld
12375 lt_cv_path_LDCXX=$lt_cv_path_LD
12376 lt_cv_path_LD=$lt_save_path_LD
12377 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12378 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12386 if test -n "$F77" && test "X$F77" != "Xno"; then
12389 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12390 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12394 archive_cmds_need_lc_F77=no
12395 allow_undefined_flag_F77=
12396 always_export_symbols_F77=no
12397 archive_expsym_cmds_F77=
12398 export_dynamic_flag_spec_F77=
12399 hardcode_direct_F77=no
12400 hardcode_libdir_flag_spec_F77=
12401 hardcode_libdir_flag_spec_ld_F77=
12402 hardcode_libdir_separator_F77=
12403 hardcode_minus_L_F77=no
12404 hardcode_automatic_F77=no
12406 module_expsym_cmds_F77=
12407 link_all_deplibs_F77=unknown
12408 old_archive_cmds_F77=$old_archive_cmds
12409 no_undefined_flag_F77=
12410 whole_archive_flag_spec_F77=
12411 enable_shared_with_static_runtimes_F77=no
12413 # Source file extension for f77 test sources.
12416 # Object file extension for compiled f77 test sources.
12420 # Code to be used in simple compile tests
12421 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12423 # Code to be used in simple link tests
12424 lt_simple_link_test_code=" program t\n end\n"
12426 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12428 # If no C compiler was specified, use CC.
12431 # Allow CC to be a program name with arguments.
12435 # Allow CC to be a program name with arguments.
12440 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12442 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12443 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12444 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12445 echo "${ECHO_T}$can_build_shared" >&6
12447 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12448 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12449 test "$can_build_shared" = "no" && enable_shared=no
12451 # On AIX, shared libraries and static libraries use the same namespace, and
12452 # are all built from PIC.
12455 test "$enable_shared" = yes && enable_static=no
12456 if test -n "$RANLIB"; then
12457 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12458 postinstall_cmds='$RANLIB $lib'
12462 test "$enable_shared" = yes && enable_static=no
12465 echo "$as_me:$LINENO: result: $enable_shared" >&5
12466 echo "${ECHO_T}$enable_shared" >&6
12468 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12469 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12470 # Make sure either enable_shared or enable_static is yes.
12471 test "$enable_shared" = yes || enable_static=yes
12472 echo "$as_me:$LINENO: result: $enable_static" >&5
12473 echo "${ECHO_T}$enable_static" >&6
12475 test "$ld_shlibs_F77" = no && can_build_shared=no
12480 lt_prog_compiler_wl_F77=
12481 lt_prog_compiler_pic_F77=
12482 lt_prog_compiler_static_F77=
12484 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12485 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12487 if test "$GCC" = yes; then
12488 lt_prog_compiler_wl_F77='-Wl,'
12489 lt_prog_compiler_static_F77='-static'
12493 # All AIX code is PIC.
12494 if test "$host_cpu" = ia64; then
12495 # AIX 5 now supports IA64 processor
12496 lt_prog_compiler_static_F77='-Bstatic'
12501 # FIXME: we need at least 68020 code to build shared libraries, but
12502 # adding the `-m68020' flag to GCC prevents building anything better,
12504 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12507 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12508 # PIC is the default for these OSes.
12511 mingw* | pw32* | os2*)
12512 # This hack is so that the source file can tell whether it is being
12513 # built for inclusion in a dll (and should export symbols for example).
12514 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12517 darwin* | rhapsody*)
12518 # PIC is the default on this platform
12519 # Common symbols not allowed in MH_DYLIB files
12520 lt_prog_compiler_pic_F77='-fno-common'
12524 # Just because we use GCC doesn't mean we suddenly get shared libraries
12525 # on systems that don't support them.
12526 lt_prog_compiler_can_build_shared_F77=no
12531 if test -d /usr/nec; then
12532 lt_prog_compiler_pic_F77=-Kconform_pic
12537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12538 # not for PA HP-UX.
12539 case "$host_cpu" in
12544 lt_prog_compiler_pic_F77='-fPIC'
12550 lt_prog_compiler_pic_F77='-fPIC'
12554 # PORTME Check for flag to pass linker flags through the system compiler.
12557 lt_prog_compiler_wl_F77='-Wl,'
12558 if test "$host_cpu" = ia64; then
12559 # AIX 5 now supports IA64 processor
12560 lt_prog_compiler_static_F77='-Bstatic'
12562 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12566 mingw* | pw32* | os2*)
12567 # This hack is so that the source file can tell whether it is being
12568 # built for inclusion in a dll (and should export symbols for example).
12569 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12572 hpux9* | hpux10* | hpux11*)
12573 lt_prog_compiler_wl_F77='-Wl,'
12574 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12575 # not for PA HP-UX.
12576 case "$host_cpu" in
12581 lt_prog_compiler_pic_F77='+Z'
12584 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12585 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12588 irix5* | irix6* | nonstopux*)
12589 lt_prog_compiler_wl_F77='-Wl,'
12590 # PIC (with -KPIC) is the default.
12591 lt_prog_compiler_static_F77='-non_shared'
12595 lt_prog_compiler_pic_F77='-KPIC'
12596 lt_prog_compiler_static_F77='-Bstatic'
12602 lt_prog_compiler_wl_F77='-Wl,'
12603 lt_prog_compiler_pic_F77='-KPIC'
12604 lt_prog_compiler_static_F77='-static'
12607 lt_prog_compiler_wl_F77='-Wl,'
12608 # All Alpha code is PIC.
12609 lt_prog_compiler_static_F77='-non_shared'
12614 osf3* | osf4* | osf5*)
12615 lt_prog_compiler_wl_F77='-Wl,'
12616 # All OSF/1 code is PIC.
12617 lt_prog_compiler_static_F77='-non_shared'
12621 lt_prog_compiler_pic_F77='-Kpic'
12622 lt_prog_compiler_static_F77='-dn'
12626 lt_prog_compiler_wl_F77='-Wl,'
12627 lt_prog_compiler_pic_F77='-KPIC'
12628 lt_prog_compiler_static_F77='-Bstatic'
12632 lt_prog_compiler_wl_F77='-Qoption ld '
12633 lt_prog_compiler_pic_F77='-PIC'
12634 lt_prog_compiler_static_F77='-Bstatic'
12637 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12638 lt_prog_compiler_wl_F77='-Wl,'
12639 lt_prog_compiler_pic_F77='-KPIC'
12640 lt_prog_compiler_static_F77='-Bstatic'
12644 if test -d /usr/nec ;then
12645 lt_prog_compiler_pic_F77='-Kconform_pic'
12646 lt_prog_compiler_static_F77='-Bstatic'
12651 lt_prog_compiler_pic_F77='-pic'
12652 lt_prog_compiler_static_F77='-Bstatic'
12656 lt_prog_compiler_can_build_shared_F77=no
12661 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12662 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12665 # Check to make sure the PIC flag actually works.
12667 if test -n "$lt_prog_compiler_pic_F77"; then
12669 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12670 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12671 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12672 echo $ECHO_N "(cached) $ECHO_C" >&6
12674 lt_prog_compiler_pic_works_F77=no
12675 ac_outfile=conftest.$ac_objext
12676 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12677 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12678 # Insert the option either (1) after the last *FLAGS variable, or
12679 # (2) before a word containing "conftest.", or (3) at the end.
12680 # Note that $ac_compile itself does not contain backslashes and begins
12681 # with a dollar sign (not a hyphen), so the echo should work correctly.
12682 # The option is referenced via a variable to avoid confusing sed.
12683 lt_compile=`echo "$ac_compile" | $SED \
12684 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12685 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12686 -e 's:$: $lt_compiler_flag:'`
12687 (eval echo "\"\$as_me:12687: $lt_compile\"" >&5)
12688 (eval "$lt_compile" 2>conftest.err)
12690 cat conftest.err >&5
12691 echo "$as_me:12691: \$? = $ac_status" >&5
12692 if (exit $ac_status) && test -s "$ac_outfile"; then
12693 # The compiler can only warn and ignore the option if not recognized
12694 # So say no if there are warnings
12695 if test ! -s conftest.err; then
12696 lt_prog_compiler_pic_works_F77=yes
12702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12703 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12705 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12706 case $lt_prog_compiler_pic_F77 in
12708 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12711 lt_prog_compiler_pic_F77=
12712 lt_prog_compiler_can_build_shared_F77=no
12717 # For platforms which do not support PIC, -DPIC is meaningless:
12719 lt_prog_compiler_pic_F77=
12722 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12726 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12727 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12728 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12731 lt_cv_prog_compiler_c_o_F77=no
12732 $rm -r conftest 2>/dev/null
12736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12738 lt_compiler_flag="-o out/conftest2.$ac_objext"
12739 # Insert the option either (1) after the last *FLAGS variable, or
12740 # (2) before a word containing "conftest.", or (3) at the end.
12741 # Note that $ac_compile itself does not contain backslashes and begins
12742 # with a dollar sign (not a hyphen), so the echo should work correctly.
12743 lt_compile=`echo "$ac_compile" | $SED \
12744 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12745 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12746 -e 's:$: $lt_compiler_flag:'`
12747 (eval echo "\"\$as_me:12747: $lt_compile\"" >&5)
12748 (eval "$lt_compile" 2>out/conftest.err)
12750 cat out/conftest.err >&5
12751 echo "$as_me:12751: \$? = $ac_status" >&5
12752 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12754 # The compiler can only warn and ignore the option if not recognized
12755 # So say no if there are warnings
12756 if test ! -s out/conftest.err; then
12757 lt_cv_prog_compiler_c_o_F77=yes
12762 # SGI C++ compiler will create directory out/ii_files/ for
12763 # template instantiation
12764 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12765 $rm out/* && rmdir out
12771 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12772 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12775 hard_links="nottested"
12776 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12777 # do not overwrite the value of need_locks provided by the user
12778 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12779 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12782 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12784 ln conftest.a conftest.b 2>&5 || hard_links=no
12785 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12786 echo "$as_me:$LINENO: result: $hard_links" >&5
12787 echo "${ECHO_T}$hard_links" >&6
12788 if test "$hard_links" = no; then
12789 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12790 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12797 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12798 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12801 allow_undefined_flag_F77=
12802 enable_shared_with_static_runtimes_F77=no
12804 archive_expsym_cmds_F77=
12805 old_archive_From_new_cmds_F77=
12806 old_archive_from_expsyms_cmds_F77=
12807 export_dynamic_flag_spec_F77=
12808 whole_archive_flag_spec_F77=
12809 thread_safe_flag_spec_F77=
12810 hardcode_libdir_flag_spec_F77=
12811 hardcode_libdir_flag_spec_ld_F77=
12812 hardcode_libdir_separator_F77=
12813 hardcode_direct_F77=no
12814 hardcode_minus_L_F77=no
12815 hardcode_shlibpath_var_F77=unsupported
12816 link_all_deplibs_F77=unknown
12817 hardcode_automatic_F77=no
12819 module_expsym_cmds_F77=
12820 always_export_symbols_F77=no
12821 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12822 # include_expsyms should be a list of space-separated symbols to be *always*
12823 # included in the symbol list
12824 include_expsyms_F77=
12825 # exclude_expsyms can be an extended regexp of symbols to exclude
12826 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12827 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12828 # as well as any symbol that contains `d'.
12829 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12830 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12831 # platforms (ab)use it in PIC code, but their linkers get confused if
12832 # the symbol is explicitly referenced. Since portable code cannot
12833 # rely on this symbol name, it's probably fine to never include it in
12834 # preloaded symbol tables.
12835 extract_expsyms_cmds=
12838 cygwin* | mingw* | pw32*)
12839 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12840 # When not using gcc, we currently assume that we are using
12841 # Microsoft Visual C++.
12842 if test "$GCC" != yes; then
12852 if test "$with_gnu_ld" = yes; then
12853 # If archive_cmds runs LD, not CC, wlarc should be empty
12856 # See if GNU ld supports shared libraries.
12858 aix3* | aix4* | aix5*)
12859 # On AIX/PPC, the GNU linker is very broken
12860 if test "$host_cpu" != ia64; then
12864 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12865 *** to be unable to reliably create shared libraries on AIX.
12866 *** Therefore, libtool is disabling shared libraries support. If you
12867 *** really care for shared libraries, you may want to modify your PATH
12868 *** so that a non-GNU linker is found, and then restart.
12875 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)'
12876 hardcode_libdir_flag_spec_F77='-L$libdir'
12877 hardcode_minus_L_F77=yes
12879 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12880 # that the semantics of dynamic libraries on AmigaOS, at least up
12881 # to version 4, is to share data among multiple programs linked
12882 # with the same dynamic library. Since this doesn't match the
12883 # behavior of shared libraries on other platforms, we can't use
12889 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12890 allow_undefined_flag_F77=unsupported
12891 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12892 # support --undefined. This deserves some investigation. FIXME
12893 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12899 cygwin* | mingw* | pw32*)
12900 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
12901 # as there is no search path for DLLs.
12902 hardcode_libdir_flag_spec_F77='-L$libdir'
12903 allow_undefined_flag_F77=unsupported
12904 always_export_symbols_F77=no
12905 enable_shared_with_static_runtimes_F77=yes
12906 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12908 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12909 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12910 # If the export-symbols file already is a .def file (1st line
12911 # is EXPORTS), use it as is; otherwise, prepend...
12912 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12913 cp $export_symbols $output_objdir/$soname.def;
12915 echo EXPORTS > $output_objdir/$soname.def;
12916 cat $export_symbols >> $output_objdir/$soname.def;
12918 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12924 netbsd* | knetbsd*-gnu)
12925 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12926 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12935 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12939 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12940 *** create shared libraries on Solaris systems. Therefore, libtool
12941 *** is disabling shared libraries support. We urge you to upgrade GNU
12942 *** binutils to release 2.9.1 or newer. Another option is to modify
12943 *** your PATH or compiler configuration so that the native linker is
12944 *** used, and then restart.
12947 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12948 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12949 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12956 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12958 hardcode_direct_F77=yes
12959 hardcode_shlibpath_var_F77=no
12963 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12964 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12965 archive_cmds_F77="$tmp_archive_cmds"
12966 supports_anon_versioning=no
12967 case `$LD -v 2>/dev/null` in
12968 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12969 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12970 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12971 *\ 2.11.*) ;; # other 2.11 versions
12972 *) supports_anon_versioning=yes ;;
12974 if test $supports_anon_versioning = yes; then
12975 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
12976 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12977 $echo "local: *; };" >> $output_objdir/$libname.ver~
12978 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12980 archive_expsym_cmds_F77="$tmp_archive_cmds"
12982 link_all_deplibs_F77=no
12989 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12990 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12991 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12998 if test "$ld_shlibs_F77" = yes; then
12999 runpath_var=LD_RUN_PATH
13000 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13001 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13002 # ancient GNU ld didn't support --whole-archive et. al.
13003 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13004 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13006 whole_archive_flag_spec_F77=
13010 # PORTME fill in a description of your system's linker (not GNU ld)
13013 allow_undefined_flag_F77=unsupported
13014 always_export_symbols_F77=yes
13015 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'
13016 # Note: this linker hardcodes the directories in LIBPATH if there
13017 # are no directories specified by -L.
13018 hardcode_minus_L_F77=yes
13019 if test "$GCC" = yes && test -z "$link_static_flag"; then
13020 # Neither direct hardcoding nor static linking is supported with a
13022 hardcode_direct_F77=unsupported
13027 if test "$host_cpu" = ia64; then
13028 # On IA64, the linker does run time linking by default, so we don't
13029 # have to do anything special.
13030 aix_use_runtimelinking=no
13031 exp_sym_flag='-Bexport'
13034 # If we're using GNU nm, then we don't want the "-C" option.
13035 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13036 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13037 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'
13039 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'
13041 aix_use_runtimelinking=no
13043 # Test if we are trying to use run time linking or normal
13044 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13045 # need to do runtime linking.
13046 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13047 for ld_flag in $LDFLAGS; do
13048 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13049 aix_use_runtimelinking=yes
13055 exp_sym_flag='-bexport'
13056 no_entry_flag='-bnoentry'
13059 # When large executables or shared objects are built, AIX ld can
13060 # have problems creating the table of contents. If linking a library
13061 # or program results in "error TOC overflow" add -mminimal-toc to
13062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13065 archive_cmds_F77=''
13066 hardcode_direct_F77=yes
13067 hardcode_libdir_separator_F77=':'
13068 link_all_deplibs_F77=yes
13070 if test "$GCC" = yes; then
13071 case $host_os in aix4.012|aix4.012.*)
13072 # We only want to do this on AIX 4.2 and lower, the check
13073 # below for broken collect2 doesn't work under 4.3+
13074 collect2name=`${CC} -print-prog-name=collect2`
13075 if test -f "$collect2name" && \
13076 strings "$collect2name" | grep resolve_lib_name >/dev/null
13078 # We have reworked collect2
13079 hardcode_direct_F77=yes
13081 # We have old collect2
13082 hardcode_direct_F77=unsupported
13083 # It fails to find uninstalled libraries when the uninstalled
13084 # path is not listed in the libpath. Setting hardcode_minus_L
13085 # to unsupported forces relinking
13086 hardcode_minus_L_F77=yes
13087 hardcode_libdir_flag_spec_F77='-L$libdir'
13088 hardcode_libdir_separator_F77=
13091 shared_flag='-shared'
13094 if test "$host_cpu" = ia64; then
13095 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13096 # chokes on -Wl,-G. The following line is correct:
13099 if test "$aix_use_runtimelinking" = yes; then
13100 shared_flag='${wl}-G'
13102 shared_flag='${wl}-bM:SRE'
13107 # It seems that -bexpall does not export symbols beginning with
13108 # underscore (_), so it is better to generate a list of symbols to export.
13109 always_export_symbols_F77=yes
13110 if test "$aix_use_runtimelinking" = yes; then
13111 # Warning - without using the other runtime loading flags (-brtl),
13112 # -berok will link without error, but may produce a broken library.
13113 allow_undefined_flag_F77='-berok'
13114 # Determine the default libpath from the value encoded in an empty executable.
13115 cat >conftest.$ac_ext <<_ACEOF
13120 rm -f conftest.$ac_objext conftest$ac_exeext
13121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13122 (eval $ac_link) 2>&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } &&
13126 { ac_try='test -s conftest$ac_exeext'
13127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13128 (eval $ac_try) 2>&5
13130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13131 (exit $ac_status); }; }; then
13133 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13135 # Check for a 64-bit object if we didn't find anything.
13136 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; }
13139 echo "$as_me: failed program was:" >&5
13140 sed 's/^/| /' conftest.$ac_ext >&5
13143 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13144 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13146 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13147 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"
13149 if test "$host_cpu" = ia64; then
13150 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13151 allow_undefined_flag_F77="-z nodefs"
13152 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"
13154 # Determine the default libpath from the value encoded in an empty executable.
13155 cat >conftest.$ac_ext <<_ACEOF
13160 rm -f conftest.$ac_objext conftest$ac_exeext
13161 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13162 (eval $ac_link) 2>&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } &&
13166 { ac_try='test -s conftest$ac_exeext'
13167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13168 (eval $ac_try) 2>&5
13170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13171 (exit $ac_status); }; }; then
13173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13175 # Check for a 64-bit object if we didn't find anything.
13176 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; }
13179 echo "$as_me: failed program was:" >&5
13180 sed 's/^/| /' conftest.$ac_ext >&5
13183 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13184 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13186 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13187 # Warning - without using the other run time loading flags,
13188 # -berok will link without error, but may produce a broken library.
13189 no_undefined_flag_F77=' ${wl}-bernotok'
13190 allow_undefined_flag_F77=' ${wl}-berok'
13191 # -bexpall does not export symbols beginning with underscore (_)
13192 always_export_symbols_F77=yes
13193 # Exported symbols can be pulled into shared objects from archives
13194 whole_archive_flag_spec_F77=' '
13195 archive_cmds_need_lc_F77=yes
13196 # This is similar to how AIX traditionally builds it's shared libraries.
13197 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'
13203 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)'
13204 hardcode_libdir_flag_spec_F77='-L$libdir'
13205 hardcode_minus_L_F77=yes
13206 # see comment about different semantics on the GNU ld section
13211 export_dynamic_flag_spec_F77=-rdynamic
13214 cygwin* | mingw* | pw32*)
13215 # When not using gcc, we currently assume that we are using
13216 # Microsoft Visual C++.
13217 # hardcode_libdir_flag_spec is actually meaningless, as there is
13218 # no search path for DLLs.
13219 hardcode_libdir_flag_spec_F77=' '
13220 allow_undefined_flag_F77=unsupported
13221 # Tell ltmain to make .lib files, not .a files.
13223 # Tell ltmain to make .dll files, not .so files.
13225 # FIXME: Setting linknames here is a bad hack.
13226 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13227 # The linker will automatically build a .lib file if we build a DLL.
13228 old_archive_From_new_cmds_F77='true'
13229 # FIXME: Should let the user specify the lib program.
13230 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13231 fix_srcfile_path='`cygpath -w "$srcfile"`'
13232 enable_shared_with_static_runtimes_F77=yes
13235 darwin* | rhapsody*)
13236 if test "$GXX" = yes ; then
13237 archive_cmds_need_lc_F77=no
13239 rhapsody* | darwin1.[012])
13240 allow_undefined_flag_F77='-undefined suppress'
13243 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13244 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13246 case ${MACOSX_DEPLOYMENT_TARGET} in
13248 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13251 allow_undefined_flag_F77='-undefined dynamic_lookup'
13257 lt_int_apple_cc_single_mod=no
13258 output_verbose_link_cmd='echo'
13259 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13260 lt_int_apple_cc_single_mod=yes
13262 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13263 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13265 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'
13267 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13268 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13269 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13270 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}'
13272 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}'
13274 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}'
13275 hardcode_direct_F77=no
13276 hardcode_automatic_F77=yes
13277 hardcode_shlibpath_var_F77=unsupported
13278 whole_archive_flag_spec_F77='-all_load $convenience'
13279 link_all_deplibs_F77=yes
13286 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13287 hardcode_libdir_flag_spec_F77='-L$libdir'
13288 hardcode_shlibpath_var_F77=no
13295 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13296 # support. Future versions do this automatically, but an explicit c++rt0.o
13297 # does not break anything, and helps significantly (at the cost of a little
13300 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13301 hardcode_libdir_flag_spec_F77='-R$libdir'
13302 hardcode_direct_F77=yes
13303 hardcode_shlibpath_var_F77=no
13306 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13308 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13309 hardcode_direct_F77=yes
13310 hardcode_minus_L_F77=yes
13311 hardcode_shlibpath_var_F77=no
13314 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13315 freebsd* | kfreebsd*-gnu)
13316 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13317 hardcode_libdir_flag_spec_F77='-R$libdir'
13318 hardcode_direct_F77=yes
13319 hardcode_shlibpath_var_F77=no
13323 if test "$GCC" = yes; then
13324 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'
13326 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'
13328 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13329 hardcode_libdir_separator_F77=:
13330 hardcode_direct_F77=yes
13332 # hardcode_minus_L: Not really in the search PATH,
13333 # but as the default location of the library.
13334 hardcode_minus_L_F77=yes
13335 export_dynamic_flag_spec_F77='${wl}-E'
13339 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13340 case "$host_cpu" in
13342 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13345 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13349 case "$host_cpu" in
13351 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13354 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13358 if test "$with_gnu_ld" = no; then
13359 case "$host_cpu" in
13361 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13362 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13363 hardcode_libdir_separator_F77=:
13364 hardcode_direct_F77=no
13365 hardcode_shlibpath_var_F77=no
13368 hardcode_libdir_flag_spec_F77='-L$libdir'
13369 hardcode_direct_F77=no
13370 hardcode_shlibpath_var_F77=no
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L_F77=yes
13377 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13378 hardcode_libdir_separator_F77=:
13379 hardcode_direct_F77=yes
13380 export_dynamic_flag_spec_F77='${wl}-E'
13382 # hardcode_minus_L: Not really in the search PATH,
13383 # but as the default location of the library.
13384 hardcode_minus_L_F77=yes
13390 irix5* | irix6* | nonstopux*)
13391 if test "$GCC" = yes; then
13392 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'
13394 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'
13395 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13397 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13398 hardcode_libdir_separator_F77=:
13399 link_all_deplibs_F77=yes
13402 netbsd* | knetbsd*-gnu)
13403 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13404 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13406 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13408 hardcode_libdir_flag_spec_F77='-R$libdir'
13409 hardcode_direct_F77=yes
13410 hardcode_shlibpath_var_F77=no
13414 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415 hardcode_direct_F77=yes
13416 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13417 hardcode_libdir_separator_F77=:
13418 hardcode_shlibpath_var_F77=no
13422 hardcode_direct_F77=yes
13423 hardcode_shlibpath_var_F77=no
13424 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13425 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13426 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13427 export_dynamic_flag_spec_F77='${wl}-E'
13430 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13431 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13432 hardcode_libdir_flag_spec_F77='-R$libdir'
13435 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13436 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13443 hardcode_libdir_flag_spec_F77='-L$libdir'
13444 hardcode_minus_L_F77=yes
13445 allow_undefined_flag_F77=unsupported
13446 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'
13447 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13451 if test "$GCC" = yes; then
13452 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13453 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'
13455 allow_undefined_flag_F77=' -expect_unresolved \*'
13456 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'
13458 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13459 hardcode_libdir_separator_F77=:
13462 osf4* | osf5*) # as osf3* with the addition of -msym flag
13463 if test "$GCC" = yes; then
13464 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13465 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'
13466 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13468 allow_undefined_flag_F77=' -expect_unresolved \*'
13469 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'
13470 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~
13471 $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'
13473 # Both c and cxx compiler support -rpath directly
13474 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13476 hardcode_libdir_separator_F77=:
13480 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13481 hardcode_shlibpath_var_F77=no
13482 export_dynamic_flag_spec_F77='${wl}-Bexport'
13483 runpath_var=LD_RUN_PATH
13484 hardcode_runpath_var=yes
13488 no_undefined_flag_F77=' -z text'
13489 if test "$GCC" = yes; then
13490 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13491 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13492 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13494 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13496 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13498 hardcode_libdir_flag_spec_F77='-R$libdir'
13499 hardcode_shlibpath_var_F77=no
13501 solaris2.[0-5] | solaris2.[0-5].*) ;;
13502 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13503 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13505 link_all_deplibs_F77=yes
13509 if test "x$host_vendor" = xsequent; then
13510 # Use $CC to link under sequent, because it throws in some extra .o
13511 # files that make .init and .fini sections work.
13512 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13514 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13516 hardcode_libdir_flag_spec_F77='-L$libdir'
13517 hardcode_direct_F77=yes
13518 hardcode_minus_L_F77=yes
13519 hardcode_shlibpath_var_F77=no
13523 case $host_vendor in
13525 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct_F77=yes # is this really true???
13529 ## LD is ld it makes a PLAMLIB
13530 ## CC just makes a GrossModule.
13531 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13532 reload_cmds_F77='$CC -r -o $output$reload_objs'
13533 hardcode_direct_F77=no
13536 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13537 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13540 runpath_var='LD_RUN_PATH'
13541 hardcode_shlibpath_var_F77=no
13545 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13546 hardcode_shlibpath_var_F77=no
13547 export_dynamic_flag_spec_F77='-Bexport'
13551 if test -d /usr/nec; then
13552 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13553 hardcode_shlibpath_var_F77=no
13554 runpath_var=LD_RUN_PATH
13555 hardcode_runpath_var=yes
13561 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13562 hardcode_direct_F77=yes
13563 hardcode_minus_L_F77=no
13564 hardcode_shlibpath_var_F77=no
13565 hardcode_runpath_var=yes
13566 runpath_var=LD_RUN_PATH
13569 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13570 no_undefined_flag_F77='${wl}-z ${wl}text'
13571 if test "$GCC" = yes; then
13572 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13574 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13576 runpath_var='LD_RUN_PATH'
13577 hardcode_shlibpath_var_F77=no
13581 no_undefined_flag_F77=' -z text'
13582 # $CC -shared without GNU ld will not create a library from C++
13583 # object files and a static libstdc++, better avoid it by now
13584 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13585 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13586 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13587 hardcode_libdir_flag_spec_F77=
13588 hardcode_shlibpath_var_F77=no
13589 runpath_var='LD_RUN_PATH'
13593 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13594 hardcode_libdir_flag_spec_F77='-L$libdir'
13595 hardcode_shlibpath_var_F77=no
13604 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13605 echo "${ECHO_T}$ld_shlibs_F77" >&6
13606 test "$ld_shlibs_F77" = no && can_build_shared=no
13608 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13609 if test "$GCC" = yes; then
13610 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13614 # Do we need to explicitly link libc?
13616 case "x$archive_cmds_need_lc_F77" in
13618 # Assume -lc should be added
13619 archive_cmds_need_lc_F77=yes
13621 if test "$enable_shared" = yes && test "$GCC" = yes; then
13622 case $archive_cmds_F77 in
13624 # FIXME: we may have to deal with multi-command sequences.
13627 # Test whether the compiler implicitly links with -lc since on some
13628 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13629 # to ld, don't add -lc before -lgcc.
13630 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13631 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13633 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13636 (eval $ac_compile) 2>&5
13638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13639 (exit $ac_status); } 2>conftest.err; then
13642 libobjs=conftest.$ac_objext
13644 wl=$lt_prog_compiler_wl_F77
13650 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13651 allow_undefined_flag_F77=
13652 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13653 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); }
13658 archive_cmds_need_lc_F77=no
13660 archive_cmds_need_lc_F77=yes
13662 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13664 cat conftest.err 1>&5
13667 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13668 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13675 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13676 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13677 library_names_spec=
13678 libname_spec='lib$name'
13682 postuninstall_cmds=
13686 shlibpath_overrides_runpath=unknown
13688 dynamic_linker="$host_os ld.so"
13689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13690 if test "$GCC" = yes; then
13691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13692 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13693 # if the path contains ";" then we assume it to be the separator
13694 # otherwise default to the standard path separator (i.e. ":") - it is
13695 # assumed that no part of a normal pathname contains ";" but that should
13696 # okay in the real world where ";" in dirpaths is itself problematic.
13697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13704 need_lib_prefix=unknown
13705 hardcode_into_libs=no
13707 # when you set need_version to no, make sure it does not cause -set_version
13708 # flags to be left without arguments
13709 need_version=unknown
13714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13715 shlibpath_var=LIBPATH
13717 # AIX 3 has no versioning support, so we append a major version to the name.
13718 soname_spec='${libname}${release}${shared_ext}$major'
13725 hardcode_into_libs=yes
13726 if test "$host_cpu" = ia64; then
13727 # AIX 5 supports IA64
13728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13729 shlibpath_var=LD_LIBRARY_PATH
13731 # With GCC up to 2.95.x, collect2 would create an import file
13732 # for dependence libraries. The import file would start with
13733 # the line `#! .'. This would cause the generated library to
13734 # depend on `.', always an invalid library. This was fixed in
13735 # development snapshots of GCC prior to 3.0.
13737 aix4 | aix4.[01] | aix4.[01].*)
13738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13740 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13743 can_build_shared=no
13747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13748 # soname into executable. Probably we can add versioning support to
13749 # collect2, so additional links can be useful in future.
13750 if test "$aix_use_runtimelinking" = yes; then
13751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13752 # instead of lib<name>.a to let people know that these are not
13753 # typical AIX shared libraries.
13754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 # We preserve .a as extension for shared libraries through AIX4.2
13757 # and later when we are not doing run time linking.
13758 library_names_spec='${libname}${release}.a $libname.a'
13759 soname_spec='${libname}${release}${shared_ext}$major'
13761 shlibpath_var=LIBPATH
13766 library_names_spec='$libname.ixlibrary $libname.a'
13767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13768 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'
13772 library_names_spec='${libname}${shared_ext}'
13773 dynamic_linker="$host_os ld.so"
13774 shlibpath_var=LIBRARY_PATH
13780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13781 soname_spec='${libname}${release}${shared_ext}$major'
13782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13783 shlibpath_var=LD_LIBRARY_PATH
13784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13786 # the default ld.so.conf also contains /usr/contrib/lib and
13787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13788 # libtool to hard-code these into programs
13791 cygwin* | mingw* | pw32*)
13792 version_type=windows
13797 case $GCC,$host_os in
13798 yes,cygwin* | yes,mingw* | yes,pw32*)
13799 library_names_spec='$libname.dll.a'
13800 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13801 postinstall_cmds='base_file=`basename \${file}`~
13802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13803 dldir=$destdir/`dirname \$dlpath`~
13804 test -d \$dldir || mkdir -p \$dldir~
13805 $install_prog $dir/$dlname \$dldir/$dlname'
13806 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13807 dlpath=$dir/\$dldll~
13809 shlibpath_overrides_runpath=yes
13813 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13814 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13815 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13818 # MinGW DLLs use traditional 'lib' prefix
13819 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13820 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13821 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13822 # It is most probably a Windows format PATH printed by
13823 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13824 # path with ; separators, and with drive letters. We can handle the
13825 # drive letters (cygwin fileutils understands them), so leave them,
13826 # especially as we might pass files found there to a mingw objdump,
13827 # which wouldn't understand a cygwinified path. Ahh.
13828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13834 # pw32 DLLs use 'pw' prefix rather than 'lib'
13835 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13841 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13844 dynamic_linker='Win32 ld.exe'
13845 # FIXME: first we should search . and the directory the executable is in
13849 darwin* | rhapsody*)
13850 dynamic_linker="$host_os dyld"
13851 version_type=darwin
13854 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13855 soname_spec='${libname}${release}${major}$shared_ext'
13856 shlibpath_overrides_runpath=yes
13857 shlibpath_var=DYLD_LIBRARY_PATH
13858 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13859 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13860 if test "$GCC" = yes; then
13861 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"`
13863 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13865 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13873 soname_spec='${libname}${release}${shared_ext}$major'
13874 shlibpath_var=LD_LIBRARY_PATH
13885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13886 soname_spec='${libname}${release}${shared_ext}$major'
13887 shlibpath_var=LD_LIBRARY_PATH
13888 shlibpath_overrides_runpath=no
13889 hardcode_into_libs=yes
13890 dynamic_linker='GNU ld.so'
13894 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13895 version_type=freebsd-$objformat
13896 case $version_type in
13898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13907 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13912 freebsd3.01* | freebsdelf3.01*)
13913 shlibpath_overrides_runpath=yes
13914 hardcode_into_libs=yes
13917 shlibpath_overrides_runpath=no
13918 hardcode_into_libs=yes
13927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13928 soname_spec='${libname}${release}${shared_ext}$major'
13929 shlibpath_var=LD_LIBRARY_PATH
13930 hardcode_into_libs=yes
13933 hpux9* | hpux10* | hpux11*)
13934 # Give a soname corresponding to the major version so that dld.sl refuses to
13935 # link against other versions.
13939 case "$host_cpu" in
13942 hardcode_into_libs=yes
13943 dynamic_linker="$host_os dld.so"
13944 shlibpath_var=LD_LIBRARY_PATH
13945 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13947 soname_spec='${libname}${release}${shared_ext}$major'
13948 if test "X$HPUX_IA64_MODE" = X32; then
13949 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13951 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13953 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13957 hardcode_into_libs=yes
13958 dynamic_linker="$host_os dld.sl"
13959 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13964 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13968 dynamic_linker="$host_os dld.sl"
13969 shlibpath_var=SHLIB_PATH
13970 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13972 soname_spec='${libname}${release}${shared_ext}$major'
13975 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13976 postinstall_cmds='chmod 555 $lib'
13979 irix5* | irix6* | nonstopux*)
13981 nonstopux*) version_type=nonstopux ;;
13983 if test "$lt_cv_prog_gnu_ld" = yes; then
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13994 irix5* | nonstopux*)
13995 libsuff= shlibsuff=
13998 case $LD in # libtool.m4 will add one of these switches to LD
13999 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14000 libsuff= shlibsuff= libmagic=32-bit;;
14001 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14002 libsuff=32 shlibsuff=N32 libmagic=N32;;
14003 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14004 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14005 *) libsuff= shlibsuff= libmagic=never-match;;
14009 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14010 shlibpath_overrides_runpath=no
14011 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14012 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14013 hardcode_into_libs=yes
14016 # No shared lib support for Linux oldld, aout, or coff.
14017 linux*oldld* | linux*aout* | linux*coff*)
14021 # This must be Linux ELF.
14026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14027 soname_spec='${libname}${release}${shared_ext}$major'
14028 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14029 shlibpath_var=LD_LIBRARY_PATH
14030 shlibpath_overrides_runpath=no
14031 # This implies no fast_install, which is unacceptable.
14032 # Some rework will be needed to allow for fast_install
14033 # before this can be enabled.
14034 hardcode_into_libs=yes
14036 # Append ld.so.conf contents to the search path
14037 if test -f /etc/ld.so.conf; then
14038 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14039 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14042 # We used to test for /lib/ld.so.1 and disable shared libraries on
14043 # powerpc, because MkLinux only supported shared libraries with the
14044 # GNU dynamic linker. Since this was broken with cross compilers,
14045 # most powerpc-linux boxes support dynamic linking these days and
14046 # people can always --disable-shared, the test was removed, and we
14047 # assume the GNU/Linux dynamic linker is in use.
14048 dynamic_linker='GNU/Linux ld.so'
14055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14056 soname_spec='${libname}${release}${shared_ext}$major'
14057 shlibpath_var=LD_LIBRARY_PATH
14058 shlibpath_overrides_runpath=no
14059 hardcode_into_libs=yes
14060 dynamic_linker='GNU ld.so'
14067 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14070 dynamic_linker='NetBSD (a.out) ld.so'
14072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14073 soname_spec='${libname}${release}${shared_ext}$major'
14074 dynamic_linker='NetBSD ld.elf_so'
14076 shlibpath_var=LD_LIBRARY_PATH
14077 shlibpath_overrides_runpath=yes
14078 hardcode_into_libs=yes
14083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14084 shlibpath_var=LD_LIBRARY_PATH
14085 shlibpath_overrides_runpath=yes
14092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14093 soname_spec='${libname}${release}${shared_ext}$major'
14094 shlibpath_var=LD_LIBRARY_PATH
14095 shlibpath_overrides_runpath=yes
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14103 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14104 shlibpath_var=LD_LIBRARY_PATH
14105 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14107 openbsd2.[89] | openbsd2.[89].*)
14108 shlibpath_overrides_runpath=no
14111 shlibpath_overrides_runpath=yes
14115 shlibpath_overrides_runpath=yes
14120 libname_spec='$name'
14123 library_names_spec='$libname${shared_ext} $libname.a'
14124 dynamic_linker='OS/2 ld.exe'
14125 shlibpath_var=LIBPATH
14128 osf3* | osf4* | osf5*)
14132 soname_spec='${libname}${release}${shared_ext}$major'
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 shlibpath_var=LD_LIBRARY_PATH
14135 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14136 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14141 soname_spec='${libname}${release}${shared_ext}$major'
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14143 shlibpath_var=LD_LIBRARY_PATH
14150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14151 soname_spec='${libname}${release}${shared_ext}$major'
14152 shlibpath_var=LD_LIBRARY_PATH
14153 shlibpath_overrides_runpath=yes
14154 hardcode_into_libs=yes
14155 # ldd complains unless libraries are executable
14156 postinstall_cmds='chmod +x $lib'
14161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14162 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14163 shlibpath_var=LD_LIBRARY_PATH
14164 shlibpath_overrides_runpath=yes
14165 if test "$with_gnu_ld" = yes; then
14171 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174 soname_spec='${libname}${release}${shared_ext}$major'
14175 shlibpath_var=LD_LIBRARY_PATH
14176 case $host_vendor in
14178 shlibpath_overrides_runpath=no
14180 export_dynamic_flag_spec='${wl}-Blargedynsym'
14181 runpath_var=LD_RUN_PATH
14189 shlibpath_overrides_runpath=no
14190 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14196 if test -d /usr/nec ;then
14198 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14199 soname_spec='$libname${shared_ext}.$major'
14200 shlibpath_var=LD_LIBRARY_PATH
14206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14207 soname_spec='${libname}${release}${shared_ext}$major'
14208 shlibpath_var=LD_LIBRARY_PATH
14215 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14216 echo "${ECHO_T}$dynamic_linker" >&6
14217 test "$dynamic_linker" = no && can_build_shared=no
14219 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14220 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14221 hardcode_action_F77=
14222 if test -n "$hardcode_libdir_flag_spec_F77" || \
14223 test -n "$runpath_var F77" || \
14224 test "X$hardcode_automatic_F77"="Xyes" ; then
14226 # We can hardcode non-existant directories.
14227 if test "$hardcode_direct_F77" != no &&
14228 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14229 # have to relink, otherwise we might link with an installed library
14230 # when we should be linking with a yet-to-be-installed one
14231 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14232 test "$hardcode_minus_L_F77" != no; then
14233 # Linking always hardcodes the temporary library directory.
14234 hardcode_action_F77=relink
14236 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14237 hardcode_action_F77=immediate
14240 # We cannot hardcode anything, or else we can only hardcode existing
14242 hardcode_action_F77=unsupported
14244 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14245 echo "${ECHO_T}$hardcode_action_F77" >&6
14247 if test "$hardcode_action_F77" = relink; then
14248 # Fast installation is not supported
14249 enable_fast_install=no
14250 elif test "$shlibpath_overrides_runpath" = yes ||
14251 test "$enable_shared" = no; then
14252 # Fast installation is not necessary
14253 enable_fast_install=needless
14258 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14259 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14260 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14261 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14262 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14263 echo "$as_me:$LINENO: result: yes" >&5
14264 echo "${ECHO_T}yes" >&6
14266 # FIXME - insert some real tests, host_os isn't really good enough
14269 if test -n "$STRIP" ; then
14270 striplib="$STRIP -x"
14271 echo "$as_me:$LINENO: result: yes" >&5
14272 echo "${ECHO_T}yes" >&6
14274 echo "$as_me:$LINENO: result: no" >&5
14275 echo "${ECHO_T}no" >&6
14279 echo "$as_me:$LINENO: result: no" >&5
14280 echo "${ECHO_T}no" >&6
14287 # The else clause should only fire when bootstrapping the
14288 # libtool distribution, otherwise you forgot to ship ltmain.sh
14289 # with your package, and you will get complaints that there are
14290 # no rules to generate ltmain.sh.
14291 if test -f "$ltmain"; then
14292 # See if we are running on zsh, and set the options which allow our commands through
14293 # without removal of \ escapes.
14294 if test -n "${ZSH_VERSION+set}" ; then
14295 setopt NO_GLOB_SUBST
14297 # Now quote all the things that may contain metacharacters while being
14298 # careful not to overquote the AC_SUBSTed values. We take copies of the
14299 # variables and quote the copies for generation of the libtool script.
14300 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14302 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14303 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14304 deplibs_check_method reload_flag reload_cmds need_locks \
14305 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14306 lt_cv_sys_global_symbol_to_c_name_address \
14307 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14308 old_postinstall_cmds old_postuninstall_cmds \
14312 lt_prog_compiler_wl_F77 \
14313 lt_prog_compiler_pic_F77 \
14314 lt_prog_compiler_static_F77 \
14315 lt_prog_compiler_no_builtin_flag_F77 \
14316 export_dynamic_flag_spec_F77 \
14317 thread_safe_flag_spec_F77 \
14318 whole_archive_flag_spec_F77 \
14319 enable_shared_with_static_runtimes_F77 \
14320 old_archive_cmds_F77 \
14321 old_archive_from_new_cmds_F77 \
14322 predep_objects_F77 \
14323 postdep_objects_F77 \
14326 compiler_lib_search_path_F77 \
14328 archive_expsym_cmds_F77 \
14329 postinstall_cmds_F77 \
14330 postuninstall_cmds_F77 \
14331 old_archive_from_expsyms_cmds_F77 \
14332 allow_undefined_flag_F77 \
14333 no_undefined_flag_F77 \
14334 export_symbols_cmds_F77 \
14335 hardcode_libdir_flag_spec_F77 \
14336 hardcode_libdir_flag_spec_ld_F77 \
14337 hardcode_libdir_separator_F77 \
14338 hardcode_automatic_F77 \
14340 module_expsym_cmds_F77 \
14341 lt_cv_prog_compiler_c_o_F77 \
14342 exclude_expsyms_F77 \
14343 include_expsyms_F77; do
14346 old_archive_cmds_F77 | \
14347 old_archive_from_new_cmds_F77 | \
14348 archive_cmds_F77 | \
14349 archive_expsym_cmds_F77 | \
14350 module_cmds_F77 | \
14351 module_expsym_cmds_F77 | \
14352 old_archive_from_expsyms_cmds_F77 | \
14353 export_symbols_cmds_F77 | \
14354 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14355 postinstall_cmds | postuninstall_cmds | \
14356 old_postinstall_cmds | old_postuninstall_cmds | \
14357 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14358 # Double-quote double-evaled strings.
14359 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14362 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14368 *'\$0 --fallback-echo"')
14369 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14375 cat <<__EOF__ >> "$cfgfile"
14376 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14378 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14380 # Shell to use when invoking shell scripts.
14383 # Whether or not to build shared libraries.
14384 build_libtool_libs=$enable_shared
14386 # Whether or not to build static libraries.
14387 build_old_libs=$enable_static
14389 # Whether or not to add -lc for building shared libraries.
14390 build_libtool_need_lc=$archive_cmds_need_lc_F77
14392 # Whether or not to disallow shared libs when runtime libs are static
14393 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14395 # Whether or not to optimize for fast installation.
14396 fast_install=$enable_fast_install
14399 host_alias=$host_alias
14402 # An echo program that does not interpret backslashes.
14407 AR_FLAGS=$lt_AR_FLAGS
14412 # A language-specific compiler.
14413 CC=$lt_compiler_F77
14415 # Is the compiler the GNU C compiler?
14421 # The linker used to build libraries.
14424 # Whether we need hard or soft links.
14427 # A BSD-compatible nm program.
14430 # A symbol stripping program
14433 # Used to examine libraries when file_magic_cmd begins "file"
14434 MAGIC_CMD=$MAGIC_CMD
14436 # Used on cygwin: DLL creation program.
14439 # Used on cygwin: object dumper.
14442 # Used on cygwin: assembler.
14445 # The name of the directory that contains temporary libtool files.
14448 # How to create reloadable object files.
14449 reload_flag=$lt_reload_flag
14450 reload_cmds=$lt_reload_cmds
14452 # How to pass a linker flag through the compiler.
14453 wl=$lt_lt_prog_compiler_wl_F77
14455 # Object file suffix (normally "o").
14456 objext="$ac_objext"
14458 # Old archive suffix (normally "a").
14461 # Shared library suffix (normally ".so").
14462 shrext_cmds='$shrext_cmds'
14464 # Executable file suffix (normally "").
14467 # Additional compiler flags for building library objects.
14468 pic_flag=$lt_lt_prog_compiler_pic_F77
14471 # What is the maximum length of a command?
14472 max_cmd_len=$lt_cv_sys_max_cmd_len
14474 # Does compiler simultaneously support -c and -o options?
14475 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14477 # Must we lock files when doing compilation ?
14478 need_locks=$lt_need_locks
14480 # Do we need the lib prefix for modules?
14481 need_lib_prefix=$need_lib_prefix
14483 # Do we need a version for libraries?
14484 need_version=$need_version
14486 # Whether dlopen is supported.
14487 dlopen_support=$enable_dlopen
14489 # Whether dlopen of programs is supported.
14490 dlopen_self=$enable_dlopen_self
14492 # Whether dlopen of statically linked programs is supported.
14493 dlopen_self_static=$enable_dlopen_self_static
14495 # Compiler flag to prevent dynamic linking.
14496 link_static_flag=$lt_lt_prog_compiler_static_F77
14498 # Compiler flag to turn off builtin functions.
14499 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14501 # Compiler flag to allow reflexive dlopens.
14502 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14504 # Compiler flag to generate shared objects directly from archives.
14505 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14507 # Compiler flag to generate thread-safe objects.
14508 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14510 # Library versioning type.
14511 version_type=$version_type
14513 # Format of library name prefix.
14514 libname_spec=$lt_libname_spec
14516 # List of archive names. First name is the real one, the rest are links.
14517 # The last name is the one that the linker finds with -lNAME.
14518 library_names_spec=$lt_library_names_spec
14520 # The coded name of the library, if different from the real name.
14521 soname_spec=$lt_soname_spec
14523 # Commands used to build and install an old-style archive.
14525 old_archive_cmds=$lt_old_archive_cmds_F77
14526 old_postinstall_cmds=$lt_old_postinstall_cmds
14527 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14529 # Create an old-style archive from a shared archive.
14530 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14532 # Create a temporary old-style archive to link instead of a shared archive.
14533 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14535 # Commands used to build and install a shared archive.
14536 archive_cmds=$lt_archive_cmds_F77
14537 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14538 postinstall_cmds=$lt_postinstall_cmds
14539 postuninstall_cmds=$lt_postuninstall_cmds
14541 # Commands used to build a loadable module (assumed same as above if empty)
14542 module_cmds=$lt_module_cmds_F77
14543 module_expsym_cmds=$lt_module_expsym_cmds_F77
14545 # Commands to strip libraries.
14546 old_striplib=$lt_old_striplib
14547 striplib=$lt_striplib
14549 # Dependencies to place before the objects being linked to create a
14551 predep_objects=$lt_predep_objects_F77
14553 # Dependencies to place after the objects being linked to create a
14555 postdep_objects=$lt_postdep_objects_F77
14557 # Dependencies to place before the objects being linked to create a
14559 predeps=$lt_predeps_F77
14561 # Dependencies to place after the objects being linked to create a
14563 postdeps=$lt_postdeps_F77
14565 # The library search path used internally by the compiler when linking
14566 # a shared library.
14567 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14569 # Method to check whether dependent libraries are shared objects.
14570 deplibs_check_method=$lt_deplibs_check_method
14572 # Command to use when deplibs_check_method == file_magic.
14573 file_magic_cmd=$lt_file_magic_cmd
14575 # Flag that allows shared libraries with undefined symbols to be built.
14576 allow_undefined_flag=$lt_allow_undefined_flag_F77
14578 # Flag that forces no undefined symbols.
14579 no_undefined_flag=$lt_no_undefined_flag_F77
14581 # Commands used to finish a libtool library installation in a directory.
14582 finish_cmds=$lt_finish_cmds
14584 # Same as above, but a single script fragment to be evaled but not shown.
14585 finish_eval=$lt_finish_eval
14587 # Take the output of nm and produce a listing of raw symbols and C names.
14588 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14590 # Transform the output of nm in a proper C declaration
14591 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14593 # Transform the output of nm in a C name address pair
14594 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14596 # This is the shared library runtime path variable.
14597 runpath_var=$runpath_var
14599 # This is the shared library path variable.
14600 shlibpath_var=$shlibpath_var
14602 # Is shlibpath searched before the hard-coded library search path?
14603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14605 # How to hardcode a shared library path into an executable.
14606 hardcode_action=$hardcode_action_F77
14608 # Whether we should hardcode library paths into libraries.
14609 hardcode_into_libs=$hardcode_into_libs
14611 # Flag to hardcode \$libdir into a binary during linking.
14612 # This must work even if \$libdir does not exist.
14613 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14615 # If ld is used when linking, flag to hardcode \$libdir into
14616 # a binary during linking. This must work even if \$libdir does
14618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14620 # Whether we need a single -rpath flag with a separated argument.
14621 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14623 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14624 # resulting binary.
14625 hardcode_direct=$hardcode_direct_F77
14627 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14628 # resulting binary.
14629 hardcode_minus_L=$hardcode_minus_L_F77
14631 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14632 # the resulting binary.
14633 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14635 # Set to yes if building a shared library automatically hardcodes DIR into the library
14636 # and all subsequent libraries and executables linked against it.
14637 hardcode_automatic=$hardcode_automatic_F77
14639 # Variables whose values should be saved in libtool wrapper scripts and
14640 # restored at relink time.
14641 variables_saved_for_relink="$variables_saved_for_relink"
14643 # Whether libtool must link a program against all its dependency libraries.
14644 link_all_deplibs=$link_all_deplibs_F77
14646 # Compile-time system search path for libraries
14647 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14649 # Run-time system search path for libraries
14650 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14652 # Fix the shell variable \$srcfile for the compiler.
14653 fix_srcfile_path="$fix_srcfile_path_F77"
14655 # Set to yes if exported symbols are required.
14656 always_export_symbols=$always_export_symbols_F77
14658 # The commands to list exported symbols.
14659 export_symbols_cmds=$lt_export_symbols_cmds_F77
14661 # The commands to extract the exported symbol list from a shared archive.
14662 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14664 # Symbols that should not be listed in the preloaded symbols.
14665 exclude_expsyms=$lt_exclude_expsyms_F77
14667 # Symbols that must always be exported.
14668 include_expsyms=$lt_include_expsyms_F77
14670 # ### END LIBTOOL TAG CONFIG: $tagname
14676 # If there is no Makefile yet, we rely on a make rule to execute
14677 # `config.status --recheck' to rerun these tests and create the
14678 # libtool script then.
14679 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14680 if test -f "$ltmain_in"; then
14681 test -f Makefile && make "$ltmain"
14687 ac_cpp='$CPP $CPPFLAGS'
14688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14700 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14704 # Source file extension for Java test sources.
14707 # Object file extension for compiled Java test sources.
14711 # Code to be used in simple compile tests
14712 lt_simple_compile_test_code="class foo {}\n"
14714 # Code to be used in simple link tests
14715 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14717 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14719 # If no C compiler was specified, use CC.
14722 # Allow CC to be a program name with arguments.
14726 # Allow CC to be a program name with arguments.
14732 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14733 archive_cmds_need_lc_GCJ=no
14736 lt_prog_compiler_no_builtin_flag_GCJ=
14738 if test "$GCC" = yes; then
14739 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14742 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14743 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14744 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14745 echo $ECHO_N "(cached) $ECHO_C" >&6
14747 lt_cv_prog_compiler_rtti_exceptions=no
14748 ac_outfile=conftest.$ac_objext
14749 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14750 lt_compiler_flag="-fno-rtti -fno-exceptions"
14751 # Insert the option either (1) after the last *FLAGS variable, or
14752 # (2) before a word containing "conftest.", or (3) at the end.
14753 # Note that $ac_compile itself does not contain backslashes and begins
14754 # with a dollar sign (not a hyphen), so the echo should work correctly.
14755 # The option is referenced via a variable to avoid confusing sed.
14756 lt_compile=`echo "$ac_compile" | $SED \
14757 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14758 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14759 -e 's:$: $lt_compiler_flag:'`
14760 (eval echo "\"\$as_me:14760: $lt_compile\"" >&5)
14761 (eval "$lt_compile" 2>conftest.err)
14763 cat conftest.err >&5
14764 echo "$as_me:14764: \$? = $ac_status" >&5
14765 if (exit $ac_status) && test -s "$ac_outfile"; then
14766 # The compiler can only warn and ignore the option if not recognized
14767 # So say no if there are warnings
14768 if test ! -s conftest.err; then
14769 lt_cv_prog_compiler_rtti_exceptions=yes
14775 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14776 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14778 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14779 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14786 lt_prog_compiler_wl_GCJ=
14787 lt_prog_compiler_pic_GCJ=
14788 lt_prog_compiler_static_GCJ=
14790 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14791 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14793 if test "$GCC" = yes; then
14794 lt_prog_compiler_wl_GCJ='-Wl,'
14795 lt_prog_compiler_static_GCJ='-static'
14799 # All AIX code is PIC.
14800 if test "$host_cpu" = ia64; then
14801 # AIX 5 now supports IA64 processor
14802 lt_prog_compiler_static_GCJ='-Bstatic'
14807 # FIXME: we need at least 68020 code to build shared libraries, but
14808 # adding the `-m68020' flag to GCC prevents building anything better,
14810 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14813 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14814 # PIC is the default for these OSes.
14817 mingw* | pw32* | os2*)
14818 # This hack is so that the source file can tell whether it is being
14819 # built for inclusion in a dll (and should export symbols for example).
14820 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14823 darwin* | rhapsody*)
14824 # PIC is the default on this platform
14825 # Common symbols not allowed in MH_DYLIB files
14826 lt_prog_compiler_pic_GCJ='-fno-common'
14830 # Just because we use GCC doesn't mean we suddenly get shared libraries
14831 # on systems that don't support them.
14832 lt_prog_compiler_can_build_shared_GCJ=no
14837 if test -d /usr/nec; then
14838 lt_prog_compiler_pic_GCJ=-Kconform_pic
14843 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14844 # not for PA HP-UX.
14845 case "$host_cpu" in
14850 lt_prog_compiler_pic_GCJ='-fPIC'
14856 lt_prog_compiler_pic_GCJ='-fPIC'
14860 # PORTME Check for flag to pass linker flags through the system compiler.
14863 lt_prog_compiler_wl_GCJ='-Wl,'
14864 if test "$host_cpu" = ia64; then
14865 # AIX 5 now supports IA64 processor
14866 lt_prog_compiler_static_GCJ='-Bstatic'
14868 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
14872 mingw* | pw32* | os2*)
14873 # This hack is so that the source file can tell whether it is being
14874 # built for inclusion in a dll (and should export symbols for example).
14875 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14878 hpux9* | hpux10* | hpux11*)
14879 lt_prog_compiler_wl_GCJ='-Wl,'
14880 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14881 # not for PA HP-UX.
14882 case "$host_cpu" in
14887 lt_prog_compiler_pic_GCJ='+Z'
14890 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14891 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
14894 irix5* | irix6* | nonstopux*)
14895 lt_prog_compiler_wl_GCJ='-Wl,'
14896 # PIC (with -KPIC) is the default.
14897 lt_prog_compiler_static_GCJ='-non_shared'
14901 lt_prog_compiler_pic_GCJ='-KPIC'
14902 lt_prog_compiler_static_GCJ='-Bstatic'
14908 lt_prog_compiler_wl_GCJ='-Wl,'
14909 lt_prog_compiler_pic_GCJ='-KPIC'
14910 lt_prog_compiler_static_GCJ='-static'
14913 lt_prog_compiler_wl_GCJ='-Wl,'
14914 # All Alpha code is PIC.
14915 lt_prog_compiler_static_GCJ='-non_shared'
14920 osf3* | osf4* | osf5*)
14921 lt_prog_compiler_wl_GCJ='-Wl,'
14922 # All OSF/1 code is PIC.
14923 lt_prog_compiler_static_GCJ='-non_shared'
14927 lt_prog_compiler_pic_GCJ='-Kpic'
14928 lt_prog_compiler_static_GCJ='-dn'
14932 lt_prog_compiler_wl_GCJ='-Wl,'
14933 lt_prog_compiler_pic_GCJ='-KPIC'
14934 lt_prog_compiler_static_GCJ='-Bstatic'
14938 lt_prog_compiler_wl_GCJ='-Qoption ld '
14939 lt_prog_compiler_pic_GCJ='-PIC'
14940 lt_prog_compiler_static_GCJ='-Bstatic'
14943 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14944 lt_prog_compiler_wl_GCJ='-Wl,'
14945 lt_prog_compiler_pic_GCJ='-KPIC'
14946 lt_prog_compiler_static_GCJ='-Bstatic'
14950 if test -d /usr/nec ;then
14951 lt_prog_compiler_pic_GCJ='-Kconform_pic'
14952 lt_prog_compiler_static_GCJ='-Bstatic'
14957 lt_prog_compiler_pic_GCJ='-pic'
14958 lt_prog_compiler_static_GCJ='-Bstatic'
14962 lt_prog_compiler_can_build_shared_GCJ=no
14967 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
14968 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
14971 # Check to make sure the PIC flag actually works.
14973 if test -n "$lt_prog_compiler_pic_GCJ"; then
14975 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
14976 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
14977 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
14978 echo $ECHO_N "(cached) $ECHO_C" >&6
14980 lt_prog_compiler_pic_works_GCJ=no
14981 ac_outfile=conftest.$ac_objext
14982 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14983 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
14984 # Insert the option either (1) after the last *FLAGS variable, or
14985 # (2) before a word containing "conftest.", or (3) at the end.
14986 # Note that $ac_compile itself does not contain backslashes and begins
14987 # with a dollar sign (not a hyphen), so the echo should work correctly.
14988 # The option is referenced via a variable to avoid confusing sed.
14989 lt_compile=`echo "$ac_compile" | $SED \
14990 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14991 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14992 -e 's:$: $lt_compiler_flag:'`
14993 (eval echo "\"\$as_me:14993: $lt_compile\"" >&5)
14994 (eval "$lt_compile" 2>conftest.err)
14996 cat conftest.err >&5
14997 echo "$as_me:14997: \$? = $ac_status" >&5
14998 if (exit $ac_status) && test -s "$ac_outfile"; then
14999 # The compiler can only warn and ignore the option if not recognized
15000 # So say no if there are warnings
15001 if test ! -s conftest.err; then
15002 lt_prog_compiler_pic_works_GCJ=yes
15008 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15009 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15011 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15012 case $lt_prog_compiler_pic_GCJ in
15014 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15017 lt_prog_compiler_pic_GCJ=
15018 lt_prog_compiler_can_build_shared_GCJ=no
15023 # For platforms which do not support PIC, -DPIC is meaningless:
15025 lt_prog_compiler_pic_GCJ=
15028 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15032 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15033 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15034 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15035 echo $ECHO_N "(cached) $ECHO_C" >&6
15037 lt_cv_prog_compiler_c_o_GCJ=no
15038 $rm -r conftest 2>/dev/null
15042 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15044 lt_compiler_flag="-o out/conftest2.$ac_objext"
15045 # Insert the option either (1) after the last *FLAGS variable, or
15046 # (2) before a word containing "conftest.", or (3) at the end.
15047 # Note that $ac_compile itself does not contain backslashes and begins
15048 # with a dollar sign (not a hyphen), so the echo should work correctly.
15049 lt_compile=`echo "$ac_compile" | $SED \
15050 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15051 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15052 -e 's:$: $lt_compiler_flag:'`
15053 (eval echo "\"\$as_me:15053: $lt_compile\"" >&5)
15054 (eval "$lt_compile" 2>out/conftest.err)
15056 cat out/conftest.err >&5
15057 echo "$as_me:15057: \$? = $ac_status" >&5
15058 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15060 # The compiler can only warn and ignore the option if not recognized
15061 # So say no if there are warnings
15062 if test ! -s out/conftest.err; then
15063 lt_cv_prog_compiler_c_o_GCJ=yes
15068 # SGI C++ compiler will create directory out/ii_files/ for
15069 # template instantiation
15070 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15071 $rm out/* && rmdir out
15077 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15078 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15081 hard_links="nottested"
15082 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15083 # do not overwrite the value of need_locks provided by the user
15084 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15085 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15088 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15090 ln conftest.a conftest.b 2>&5 || hard_links=no
15091 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15092 echo "$as_me:$LINENO: result: $hard_links" >&5
15093 echo "${ECHO_T}$hard_links" >&6
15094 if test "$hard_links" = no; then
15095 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15096 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15103 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15104 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15107 allow_undefined_flag_GCJ=
15108 enable_shared_with_static_runtimes_GCJ=no
15110 archive_expsym_cmds_GCJ=
15111 old_archive_From_new_cmds_GCJ=
15112 old_archive_from_expsyms_cmds_GCJ=
15113 export_dynamic_flag_spec_GCJ=
15114 whole_archive_flag_spec_GCJ=
15115 thread_safe_flag_spec_GCJ=
15116 hardcode_libdir_flag_spec_GCJ=
15117 hardcode_libdir_flag_spec_ld_GCJ=
15118 hardcode_libdir_separator_GCJ=
15119 hardcode_direct_GCJ=no
15120 hardcode_minus_L_GCJ=no
15121 hardcode_shlibpath_var_GCJ=unsupported
15122 link_all_deplibs_GCJ=unknown
15123 hardcode_automatic_GCJ=no
15125 module_expsym_cmds_GCJ=
15126 always_export_symbols_GCJ=no
15127 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15128 # include_expsyms should be a list of space-separated symbols to be *always*
15129 # included in the symbol list
15130 include_expsyms_GCJ=
15131 # exclude_expsyms can be an extended regexp of symbols to exclude
15132 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15133 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15134 # as well as any symbol that contains `d'.
15135 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15136 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15137 # platforms (ab)use it in PIC code, but their linkers get confused if
15138 # the symbol is explicitly referenced. Since portable code cannot
15139 # rely on this symbol name, it's probably fine to never include it in
15140 # preloaded symbol tables.
15141 extract_expsyms_cmds=
15144 cygwin* | mingw* | pw32*)
15145 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15146 # When not using gcc, we currently assume that we are using
15147 # Microsoft Visual C++.
15148 if test "$GCC" != yes; then
15158 if test "$with_gnu_ld" = yes; then
15159 # If archive_cmds runs LD, not CC, wlarc should be empty
15162 # See if GNU ld supports shared libraries.
15164 aix3* | aix4* | aix5*)
15165 # On AIX/PPC, the GNU linker is very broken
15166 if test "$host_cpu" != ia64; then
15170 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15171 *** to be unable to reliably create shared libraries on AIX.
15172 *** Therefore, libtool is disabling shared libraries support. If you
15173 *** really care for shared libraries, you may want to modify your PATH
15174 *** so that a non-GNU linker is found, and then restart.
15181 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)'
15182 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15183 hardcode_minus_L_GCJ=yes
15185 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15186 # that the semantics of dynamic libraries on AmigaOS, at least up
15187 # to version 4, is to share data among multiple programs linked
15188 # with the same dynamic library. Since this doesn't match the
15189 # behavior of shared libraries on other platforms, we can't use
15195 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15196 allow_undefined_flag_GCJ=unsupported
15197 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15198 # support --undefined. This deserves some investigation. FIXME
15199 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15205 cygwin* | mingw* | pw32*)
15206 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15207 # as there is no search path for DLLs.
15208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15209 allow_undefined_flag_GCJ=unsupported
15210 always_export_symbols_GCJ=no
15211 enable_shared_with_static_runtimes_GCJ=yes
15212 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15214 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15215 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15216 # If the export-symbols file already is a .def file (1st line
15217 # is EXPORTS), use it as is; otherwise, prepend...
15218 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15219 cp $export_symbols $output_objdir/$soname.def;
15221 echo EXPORTS > $output_objdir/$soname.def;
15222 cat $export_symbols >> $output_objdir/$soname.def;
15224 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15230 netbsd* | knetbsd*-gnu)
15231 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15232 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15235 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15236 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15241 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15245 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15246 *** create shared libraries on Solaris systems. Therefore, libtool
15247 *** is disabling shared libraries support. We urge you to upgrade GNU
15248 *** binutils to release 2.9.1 or newer. Another option is to modify
15249 *** your PATH or compiler configuration so that the native linker is
15250 *** used, and then restart.
15253 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15254 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15255 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15262 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15264 hardcode_direct_GCJ=yes
15265 hardcode_shlibpath_var_GCJ=no
15269 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15270 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15271 archive_cmds_GCJ="$tmp_archive_cmds"
15272 supports_anon_versioning=no
15273 case `$LD -v 2>/dev/null` in
15274 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15275 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15276 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15277 *\ 2.11.*) ;; # other 2.11 versions
15278 *) supports_anon_versioning=yes ;;
15280 if test $supports_anon_versioning = yes; then
15281 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15282 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15283 $echo "local: *; };" >> $output_objdir/$libname.ver~
15284 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15286 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15288 link_all_deplibs_GCJ=no
15295 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15296 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15297 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15304 if test "$ld_shlibs_GCJ" = yes; then
15305 runpath_var=LD_RUN_PATH
15306 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15307 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15308 # ancient GNU ld didn't support --whole-archive et. al.
15309 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15310 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15312 whole_archive_flag_spec_GCJ=
15316 # PORTME fill in a description of your system's linker (not GNU ld)
15319 allow_undefined_flag_GCJ=unsupported
15320 always_export_symbols_GCJ=yes
15321 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'
15322 # Note: this linker hardcodes the directories in LIBPATH if there
15323 # are no directories specified by -L.
15324 hardcode_minus_L_GCJ=yes
15325 if test "$GCC" = yes && test -z "$link_static_flag"; then
15326 # Neither direct hardcoding nor static linking is supported with a
15328 hardcode_direct_GCJ=unsupported
15333 if test "$host_cpu" = ia64; then
15334 # On IA64, the linker does run time linking by default, so we don't
15335 # have to do anything special.
15336 aix_use_runtimelinking=no
15337 exp_sym_flag='-Bexport'
15340 # If we're using GNU nm, then we don't want the "-C" option.
15341 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15342 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15343 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'
15345 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'
15347 aix_use_runtimelinking=no
15349 # Test if we are trying to use run time linking or normal
15350 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15351 # need to do runtime linking.
15352 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15353 for ld_flag in $LDFLAGS; do
15354 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15355 aix_use_runtimelinking=yes
15361 exp_sym_flag='-bexport'
15362 no_entry_flag='-bnoentry'
15365 # When large executables or shared objects are built, AIX ld can
15366 # have problems creating the table of contents. If linking a library
15367 # or program results in "error TOC overflow" add -mminimal-toc to
15368 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15369 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15371 archive_cmds_GCJ=''
15372 hardcode_direct_GCJ=yes
15373 hardcode_libdir_separator_GCJ=':'
15374 link_all_deplibs_GCJ=yes
15376 if test "$GCC" = yes; then
15377 case $host_os in aix4.012|aix4.012.*)
15378 # We only want to do this on AIX 4.2 and lower, the check
15379 # below for broken collect2 doesn't work under 4.3+
15380 collect2name=`${CC} -print-prog-name=collect2`
15381 if test -f "$collect2name" && \
15382 strings "$collect2name" | grep resolve_lib_name >/dev/null
15384 # We have reworked collect2
15385 hardcode_direct_GCJ=yes
15387 # We have old collect2
15388 hardcode_direct_GCJ=unsupported
15389 # It fails to find uninstalled libraries when the uninstalled
15390 # path is not listed in the libpath. Setting hardcode_minus_L
15391 # to unsupported forces relinking
15392 hardcode_minus_L_GCJ=yes
15393 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15394 hardcode_libdir_separator_GCJ=
15397 shared_flag='-shared'
15400 if test "$host_cpu" = ia64; then
15401 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15402 # chokes on -Wl,-G. The following line is correct:
15405 if test "$aix_use_runtimelinking" = yes; then
15406 shared_flag='${wl}-G'
15408 shared_flag='${wl}-bM:SRE'
15413 # It seems that -bexpall does not export symbols beginning with
15414 # underscore (_), so it is better to generate a list of symbols to export.
15415 always_export_symbols_GCJ=yes
15416 if test "$aix_use_runtimelinking" = yes; then
15417 # Warning - without using the other runtime loading flags (-brtl),
15418 # -berok will link without error, but may produce a broken library.
15419 allow_undefined_flag_GCJ='-berok'
15420 # Determine the default libpath from the value encoded in an empty executable.
15421 cat >conftest.$ac_ext <<_ACEOF
15422 #line $LINENO "configure"
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15437 rm -f conftest.$ac_objext conftest$ac_exeext
15438 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15439 (eval $ac_link) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } &&
15443 { ac_try='test -s conftest$ac_exeext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15452 # Check for a 64-bit object if we didn't find anything.
15453 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; }
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15460 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15461 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15463 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15464 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"
15466 if test "$host_cpu" = ia64; then
15467 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15468 allow_undefined_flag_GCJ="-z nodefs"
15469 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"
15471 # Determine the default libpath from the value encoded in an empty executable.
15472 cat >conftest.$ac_ext <<_ACEOF
15473 #line $LINENO "configure"
15476 cat confdefs.h >>conftest.$ac_ext
15477 cat >>conftest.$ac_ext <<_ACEOF
15478 /* end confdefs.h. */
15488 rm -f conftest.$ac_objext conftest$ac_exeext
15489 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15490 (eval $ac_link) 2>&5
15492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } &&
15494 { ac_try='test -s conftest$ac_exeext'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; }; then
15501 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15503 # Check for a 64-bit object if we didn't find anything.
15504 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; }
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15511 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15512 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15514 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15515 # Warning - without using the other run time loading flags,
15516 # -berok will link without error, but may produce a broken library.
15517 no_undefined_flag_GCJ=' ${wl}-bernotok'
15518 allow_undefined_flag_GCJ=' ${wl}-berok'
15519 # -bexpall does not export symbols beginning with underscore (_)
15520 always_export_symbols_GCJ=yes
15521 # Exported symbols can be pulled into shared objects from archives
15522 whole_archive_flag_spec_GCJ=' '
15523 archive_cmds_need_lc_GCJ=yes
15524 # This is similar to how AIX traditionally builds it's shared libraries.
15525 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'
15531 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)'
15532 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15533 hardcode_minus_L_GCJ=yes
15534 # see comment about different semantics on the GNU ld section
15539 export_dynamic_flag_spec_GCJ=-rdynamic
15542 cygwin* | mingw* | pw32*)
15543 # When not using gcc, we currently assume that we are using
15544 # Microsoft Visual C++.
15545 # hardcode_libdir_flag_spec is actually meaningless, as there is
15546 # no search path for DLLs.
15547 hardcode_libdir_flag_spec_GCJ=' '
15548 allow_undefined_flag_GCJ=unsupported
15549 # Tell ltmain to make .lib files, not .a files.
15551 # Tell ltmain to make .dll files, not .so files.
15553 # FIXME: Setting linknames here is a bad hack.
15554 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15555 # The linker will automatically build a .lib file if we build a DLL.
15556 old_archive_From_new_cmds_GCJ='true'
15557 # FIXME: Should let the user specify the lib program.
15558 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15559 fix_srcfile_path='`cygpath -w "$srcfile"`'
15560 enable_shared_with_static_runtimes_GCJ=yes
15563 darwin* | rhapsody*)
15564 if test "$GXX" = yes ; then
15565 archive_cmds_need_lc_GCJ=no
15567 rhapsody* | darwin1.[012])
15568 allow_undefined_flag_GCJ='-undefined suppress'
15571 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15572 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15574 case ${MACOSX_DEPLOYMENT_TARGET} in
15576 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15579 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15585 lt_int_apple_cc_single_mod=no
15586 output_verbose_link_cmd='echo'
15587 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15588 lt_int_apple_cc_single_mod=yes
15590 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15591 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15593 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'
15595 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15596 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15597 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15598 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}'
15600 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}'
15602 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}'
15603 hardcode_direct_GCJ=no
15604 hardcode_automatic_GCJ=yes
15605 hardcode_shlibpath_var_GCJ=unsupported
15606 whole_archive_flag_spec_GCJ='-all_load $convenience'
15607 link_all_deplibs_GCJ=yes
15614 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15616 hardcode_shlibpath_var_GCJ=no
15623 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15624 # support. Future versions do this automatically, but an explicit c++rt0.o
15625 # does not break anything, and helps significantly (at the cost of a little
15628 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15629 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15630 hardcode_direct_GCJ=yes
15631 hardcode_shlibpath_var_GCJ=no
15634 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15636 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15637 hardcode_direct_GCJ=yes
15638 hardcode_minus_L_GCJ=yes
15639 hardcode_shlibpath_var_GCJ=no
15642 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15643 freebsd* | kfreebsd*-gnu)
15644 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15645 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15646 hardcode_direct_GCJ=yes
15647 hardcode_shlibpath_var_GCJ=no
15651 if test "$GCC" = yes; then
15652 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'
15654 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'
15656 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15657 hardcode_libdir_separator_GCJ=:
15658 hardcode_direct_GCJ=yes
15660 # hardcode_minus_L: Not really in the search PATH,
15661 # but as the default location of the library.
15662 hardcode_minus_L_GCJ=yes
15663 export_dynamic_flag_spec_GCJ='${wl}-E'
15667 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15668 case "$host_cpu" in
15670 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15673 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15677 case "$host_cpu" in
15679 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15682 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15686 if test "$with_gnu_ld" = no; then
15687 case "$host_cpu" in
15689 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15690 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15691 hardcode_libdir_separator_GCJ=:
15692 hardcode_direct_GCJ=no
15693 hardcode_shlibpath_var_GCJ=no
15696 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15697 hardcode_direct_GCJ=no
15698 hardcode_shlibpath_var_GCJ=no
15700 # hardcode_minus_L: Not really in the search PATH,
15701 # but as the default location of the library.
15702 hardcode_minus_L_GCJ=yes
15705 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15706 hardcode_libdir_separator_GCJ=:
15707 hardcode_direct_GCJ=yes
15708 export_dynamic_flag_spec_GCJ='${wl}-E'
15710 # hardcode_minus_L: Not really in the search PATH,
15711 # but as the default location of the library.
15712 hardcode_minus_L_GCJ=yes
15718 irix5* | irix6* | nonstopux*)
15719 if test "$GCC" = yes; then
15720 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'
15722 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'
15723 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15725 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15726 hardcode_libdir_separator_GCJ=:
15727 link_all_deplibs_GCJ=yes
15730 netbsd* | knetbsd*-gnu)
15731 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15732 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15734 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15736 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15737 hardcode_direct_GCJ=yes
15738 hardcode_shlibpath_var_GCJ=no
15742 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15743 hardcode_direct_GCJ=yes
15744 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15745 hardcode_libdir_separator_GCJ=:
15746 hardcode_shlibpath_var_GCJ=no
15750 hardcode_direct_GCJ=yes
15751 hardcode_shlibpath_var_GCJ=no
15752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15753 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15754 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15755 export_dynamic_flag_spec_GCJ='${wl}-E'
15758 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15759 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15760 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15763 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15764 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15771 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15772 hardcode_minus_L_GCJ=yes
15773 allow_undefined_flag_GCJ=unsupported
15774 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'
15775 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15779 if test "$GCC" = yes; then
15780 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15781 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'
15783 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15784 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'
15786 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15787 hardcode_libdir_separator_GCJ=:
15790 osf4* | osf5*) # as osf3* with the addition of -msym flag
15791 if test "$GCC" = yes; then
15792 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15793 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'
15794 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15796 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15797 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'
15798 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~
15799 $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'
15801 # Both c and cxx compiler support -rpath directly
15802 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
15804 hardcode_libdir_separator_GCJ=:
15808 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15809 hardcode_shlibpath_var_GCJ=no
15810 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
15811 runpath_var=LD_RUN_PATH
15812 hardcode_runpath_var=yes
15816 no_undefined_flag_GCJ=' -z text'
15817 if test "$GCC" = yes; then
15818 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15819 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15820 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15822 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15823 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15826 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15827 hardcode_shlibpath_var_GCJ=no
15829 solaris2.[0-5] | solaris2.[0-5].*) ;;
15830 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
15831 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
15833 link_all_deplibs_GCJ=yes
15837 if test "x$host_vendor" = xsequent; then
15838 # Use $CC to link under sequent, because it throws in some extra .o
15839 # files that make .init and .fini sections work.
15840 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15842 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15845 hardcode_direct_GCJ=yes
15846 hardcode_minus_L_GCJ=yes
15847 hardcode_shlibpath_var_GCJ=no
15851 case $host_vendor in
15853 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15854 hardcode_direct_GCJ=yes # is this really true???
15857 ## LD is ld it makes a PLAMLIB
15858 ## CC just makes a GrossModule.
15859 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15860 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
15861 hardcode_direct_GCJ=no
15864 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15865 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
15868 runpath_var='LD_RUN_PATH'
15869 hardcode_shlibpath_var_GCJ=no
15873 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15874 hardcode_shlibpath_var_GCJ=no
15875 export_dynamic_flag_spec_GCJ='-Bexport'
15879 if test -d /usr/nec; then
15880 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15881 hardcode_shlibpath_var_GCJ=no
15882 runpath_var=LD_RUN_PATH
15883 hardcode_runpath_var=yes
15889 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15890 hardcode_direct_GCJ=yes
15891 hardcode_minus_L_GCJ=no
15892 hardcode_shlibpath_var_GCJ=no
15893 hardcode_runpath_var=yes
15894 runpath_var=LD_RUN_PATH
15897 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
15898 no_undefined_flag_GCJ='${wl}-z ${wl}text'
15899 if test "$GCC" = yes; then
15900 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15902 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15904 runpath_var='LD_RUN_PATH'
15905 hardcode_shlibpath_var_GCJ=no
15909 no_undefined_flag_GCJ=' -z text'
15910 # $CC -shared without GNU ld will not create a library from C++
15911 # object files and a static libstdc++, better avoid it by now
15912 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15913 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15914 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15915 hardcode_libdir_flag_spec_GCJ=
15916 hardcode_shlibpath_var_GCJ=no
15917 runpath_var='LD_RUN_PATH'
15921 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15923 hardcode_shlibpath_var_GCJ=no
15932 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
15933 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
15934 test "$ld_shlibs_GCJ" = no && can_build_shared=no
15936 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15937 if test "$GCC" = yes; then
15938 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15942 # Do we need to explicitly link libc?
15944 case "x$archive_cmds_need_lc_GCJ" in
15946 # Assume -lc should be added
15947 archive_cmds_need_lc_GCJ=yes
15949 if test "$enable_shared" = yes && test "$GCC" = yes; then
15950 case $archive_cmds_GCJ in
15952 # FIXME: we may have to deal with multi-command sequences.
15955 # Test whether the compiler implicitly links with -lc since on some
15956 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15957 # to ld, don't add -lc before -lgcc.
15958 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15959 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15961 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15964 (eval $ac_compile) 2>&5
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); } 2>conftest.err; then
15970 libobjs=conftest.$ac_objext
15972 wl=$lt_prog_compiler_wl_GCJ
15978 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
15979 allow_undefined_flag_GCJ=
15980 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15981 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15984 (exit $ac_status); }
15986 archive_cmds_need_lc_GCJ=no
15988 archive_cmds_need_lc_GCJ=yes
15990 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
15992 cat conftest.err 1>&5
15995 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
15996 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16003 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16004 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16005 library_names_spec=
16006 libname_spec='lib$name'
16010 postuninstall_cmds=
16014 shlibpath_overrides_runpath=unknown
16016 dynamic_linker="$host_os ld.so"
16017 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16018 if test "$GCC" = yes; then
16019 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16020 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16021 # if the path contains ";" then we assume it to be the separator
16022 # otherwise default to the standard path separator (i.e. ":") - it is
16023 # assumed that no part of a normal pathname contains ";" but that should
16024 # okay in the real world where ";" in dirpaths is itself problematic.
16025 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16027 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16030 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16032 need_lib_prefix=unknown
16033 hardcode_into_libs=no
16035 # when you set need_version to no, make sure it does not cause -set_version
16036 # flags to be left without arguments
16037 need_version=unknown
16042 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16043 shlibpath_var=LIBPATH
16045 # AIX 3 has no versioning support, so we append a major version to the name.
16046 soname_spec='${libname}${release}${shared_ext}$major'
16053 hardcode_into_libs=yes
16054 if test "$host_cpu" = ia64; then
16055 # AIX 5 supports IA64
16056 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16057 shlibpath_var=LD_LIBRARY_PATH
16059 # With GCC up to 2.95.x, collect2 would create an import file
16060 # for dependence libraries. The import file would start with
16061 # the line `#! .'. This would cause the generated library to
16062 # depend on `.', always an invalid library. This was fixed in
16063 # development snapshots of GCC prior to 3.0.
16065 aix4 | aix4.[01] | aix4.[01].*)
16066 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16068 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16071 can_build_shared=no
16075 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16076 # soname into executable. Probably we can add versioning support to
16077 # collect2, so additional links can be useful in future.
16078 if test "$aix_use_runtimelinking" = yes; then
16079 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16080 # instead of lib<name>.a to let people know that these are not
16081 # typical AIX shared libraries.
16082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16084 # We preserve .a as extension for shared libraries through AIX4.2
16085 # and later when we are not doing run time linking.
16086 library_names_spec='${libname}${release}.a $libname.a'
16087 soname_spec='${libname}${release}${shared_ext}$major'
16089 shlibpath_var=LIBPATH
16094 library_names_spec='$libname.ixlibrary $libname.a'
16095 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16096 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'
16100 library_names_spec='${libname}${shared_ext}'
16101 dynamic_linker="$host_os ld.so"
16102 shlibpath_var=LIBRARY_PATH
16108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16109 soname_spec='${libname}${release}${shared_ext}$major'
16110 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16111 shlibpath_var=LD_LIBRARY_PATH
16112 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16113 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16114 # the default ld.so.conf also contains /usr/contrib/lib and
16115 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16116 # libtool to hard-code these into programs
16119 cygwin* | mingw* | pw32*)
16120 version_type=windows
16125 case $GCC,$host_os in
16126 yes,cygwin* | yes,mingw* | yes,pw32*)
16127 library_names_spec='$libname.dll.a'
16128 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16129 postinstall_cmds='base_file=`basename \${file}`~
16130 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16131 dldir=$destdir/`dirname \$dlpath`~
16132 test -d \$dldir || mkdir -p \$dldir~
16133 $install_prog $dir/$dlname \$dldir/$dlname'
16134 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16135 dlpath=$dir/\$dldll~
16137 shlibpath_overrides_runpath=yes
16141 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16142 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16143 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16146 # MinGW DLLs use traditional 'lib' prefix
16147 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16148 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16149 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16150 # It is most probably a Windows format PATH printed by
16151 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16152 # path with ; separators, and with drive letters. We can handle the
16153 # drive letters (cygwin fileutils understands them), so leave them,
16154 # especially as we might pass files found there to a mingw objdump,
16155 # which wouldn't understand a cygwinified path. Ahh.
16156 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16158 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16162 # pw32 DLLs use 'pw' prefix rather than 'lib'
16163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16169 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16172 dynamic_linker='Win32 ld.exe'
16173 # FIXME: first we should search . and the directory the executable is in
16177 darwin* | rhapsody*)
16178 dynamic_linker="$host_os dyld"
16179 version_type=darwin
16182 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16183 soname_spec='${libname}${release}${major}$shared_ext'
16184 shlibpath_overrides_runpath=yes
16185 shlibpath_var=DYLD_LIBRARY_PATH
16186 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16187 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16188 if test "$GCC" = yes; then
16189 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"`
16191 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16200 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16201 soname_spec='${libname}${release}${shared_ext}$major'
16202 shlibpath_var=LD_LIBRARY_PATH
16213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16214 soname_spec='${libname}${release}${shared_ext}$major'
16215 shlibpath_var=LD_LIBRARY_PATH
16216 shlibpath_overrides_runpath=no
16217 hardcode_into_libs=yes
16218 dynamic_linker='GNU ld.so'
16222 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16223 version_type=freebsd-$objformat
16224 case $version_type in
16226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16235 shlibpath_var=LD_LIBRARY_PATH
16238 shlibpath_overrides_runpath=yes
16240 freebsd3.01* | freebsdelf3.01*)
16241 shlibpath_overrides_runpath=yes
16242 hardcode_into_libs=yes
16245 shlibpath_overrides_runpath=no
16246 hardcode_into_libs=yes
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16256 soname_spec='${libname}${release}${shared_ext}$major'
16257 shlibpath_var=LD_LIBRARY_PATH
16258 hardcode_into_libs=yes
16261 hpux9* | hpux10* | hpux11*)
16262 # Give a soname corresponding to the major version so that dld.sl refuses to
16263 # link against other versions.
16267 case "$host_cpu" in
16270 hardcode_into_libs=yes
16271 dynamic_linker="$host_os dld.so"
16272 shlibpath_var=LD_LIBRARY_PATH
16273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16275 soname_spec='${libname}${release}${shared_ext}$major'
16276 if test "X$HPUX_IA64_MODE" = X32; then
16277 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16279 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16285 hardcode_into_libs=yes
16286 dynamic_linker="$host_os dld.sl"
16287 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16288 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16292 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16296 dynamic_linker="$host_os dld.sl"
16297 shlibpath_var=SHLIB_PATH
16298 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16300 soname_spec='${libname}${release}${shared_ext}$major'
16303 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16304 postinstall_cmds='chmod 555 $lib'
16307 irix5* | irix6* | nonstopux*)
16309 nonstopux*) version_type=nonstopux ;;
16311 if test "$lt_cv_prog_gnu_ld" = yes; then
16319 soname_spec='${libname}${release}${shared_ext}$major'
16320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16322 irix5* | nonstopux*)
16323 libsuff= shlibsuff=
16326 case $LD in # libtool.m4 will add one of these switches to LD
16327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16328 libsuff= shlibsuff= libmagic=32-bit;;
16329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16330 libsuff=32 shlibsuff=N32 libmagic=N32;;
16331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16332 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16333 *) libsuff= shlibsuff= libmagic=never-match;;
16337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16338 shlibpath_overrides_runpath=no
16339 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16340 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16341 hardcode_into_libs=yes
16344 # No shared lib support for Linux oldld, aout, or coff.
16345 linux*oldld* | linux*aout* | linux*coff*)
16349 # This must be Linux ELF.
16354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16355 soname_spec='${libname}${release}${shared_ext}$major'
16356 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16357 shlibpath_var=LD_LIBRARY_PATH
16358 shlibpath_overrides_runpath=no
16359 # This implies no fast_install, which is unacceptable.
16360 # Some rework will be needed to allow for fast_install
16361 # before this can be enabled.
16362 hardcode_into_libs=yes
16364 # Append ld.so.conf contents to the search path
16365 if test -f /etc/ld.so.conf; then
16366 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16367 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16370 # We used to test for /lib/ld.so.1 and disable shared libraries on
16371 # powerpc, because MkLinux only supported shared libraries with the
16372 # GNU dynamic linker. Since this was broken with cross compilers,
16373 # most powerpc-linux boxes support dynamic linking these days and
16374 # people can always --disable-shared, the test was removed, and we
16375 # assume the GNU/Linux dynamic linker is in use.
16376 dynamic_linker='GNU/Linux ld.so'
16383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16384 soname_spec='${libname}${release}${shared_ext}$major'
16385 shlibpath_var=LD_LIBRARY_PATH
16386 shlibpath_overrides_runpath=no
16387 hardcode_into_libs=yes
16388 dynamic_linker='GNU ld.so'
16395 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16397 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16398 dynamic_linker='NetBSD (a.out) ld.so'
16400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16401 soname_spec='${libname}${release}${shared_ext}$major'
16402 dynamic_linker='NetBSD ld.elf_so'
16404 shlibpath_var=LD_LIBRARY_PATH
16405 shlibpath_overrides_runpath=yes
16406 hardcode_into_libs=yes
16411 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=yes
16420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16421 soname_spec='${libname}${release}${shared_ext}$major'
16422 shlibpath_var=LD_LIBRARY_PATH
16423 shlibpath_overrides_runpath=yes
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16431 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16432 shlibpath_var=LD_LIBRARY_PATH
16433 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16435 openbsd2.[89] | openbsd2.[89].*)
16436 shlibpath_overrides_runpath=no
16439 shlibpath_overrides_runpath=yes
16443 shlibpath_overrides_runpath=yes
16448 libname_spec='$name'
16451 library_names_spec='$libname${shared_ext} $libname.a'
16452 dynamic_linker='OS/2 ld.exe'
16453 shlibpath_var=LIBPATH
16456 osf3* | osf4* | osf5*)
16460 soname_spec='${libname}${release}${shared_ext}$major'
16461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16464 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16469 soname_spec='${libname}${release}${shared_ext}$major'
16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16471 shlibpath_var=LD_LIBRARY_PATH
16478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16479 soname_spec='${libname}${release}${shared_ext}$major'
16480 shlibpath_var=LD_LIBRARY_PATH
16481 shlibpath_overrides_runpath=yes
16482 hardcode_into_libs=yes
16483 # ldd complains unless libraries are executable
16484 postinstall_cmds='chmod +x $lib'
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16490 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16491 shlibpath_var=LD_LIBRARY_PATH
16492 shlibpath_overrides_runpath=yes
16493 if test "$with_gnu_ld" = yes; then
16499 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16503 shlibpath_var=LD_LIBRARY_PATH
16504 case $host_vendor in
16506 shlibpath_overrides_runpath=no
16508 export_dynamic_flag_spec='${wl}-Blargedynsym'
16509 runpath_var=LD_RUN_PATH
16517 shlibpath_overrides_runpath=no
16518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16524 if test -d /usr/nec ;then
16526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16527 soname_spec='$libname${shared_ext}.$major'
16528 shlibpath_var=LD_LIBRARY_PATH
16534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16535 soname_spec='${libname}${release}${shared_ext}$major'
16536 shlibpath_var=LD_LIBRARY_PATH
16543 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16544 echo "${ECHO_T}$dynamic_linker" >&6
16545 test "$dynamic_linker" = no && can_build_shared=no
16547 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16548 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16549 hardcode_action_GCJ=
16550 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16551 test -n "$runpath_var GCJ" || \
16552 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16554 # We can hardcode non-existant directories.
16555 if test "$hardcode_direct_GCJ" != no &&
16556 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16557 # have to relink, otherwise we might link with an installed library
16558 # when we should be linking with a yet-to-be-installed one
16559 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16560 test "$hardcode_minus_L_GCJ" != no; then
16561 # Linking always hardcodes the temporary library directory.
16562 hardcode_action_GCJ=relink
16564 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16565 hardcode_action_GCJ=immediate
16568 # We cannot hardcode anything, or else we can only hardcode existing
16570 hardcode_action_GCJ=unsupported
16572 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16573 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16575 if test "$hardcode_action_GCJ" = relink; then
16576 # Fast installation is not supported
16577 enable_fast_install=no
16578 elif test "$shlibpath_overrides_runpath" = yes ||
16579 test "$enable_shared" = no; then
16580 # Fast installation is not necessary
16581 enable_fast_install=needless
16586 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16587 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16588 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16589 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16590 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16591 echo "$as_me:$LINENO: result: yes" >&5
16592 echo "${ECHO_T}yes" >&6
16594 # FIXME - insert some real tests, host_os isn't really good enough
16597 if test -n "$STRIP" ; then
16598 striplib="$STRIP -x"
16599 echo "$as_me:$LINENO: result: yes" >&5
16600 echo "${ECHO_T}yes" >&6
16602 echo "$as_me:$LINENO: result: no" >&5
16603 echo "${ECHO_T}no" >&6
16607 echo "$as_me:$LINENO: result: no" >&5
16608 echo "${ECHO_T}no" >&6
16613 if test "x$enable_dlopen" != xyes; then
16614 enable_dlopen=unknown
16615 enable_dlopen_self=unknown
16616 enable_dlopen_self_static=unknown
16623 lt_cv_dlopen="load_add_on"
16625 lt_cv_dlopen_self=yes
16629 lt_cv_dlopen="LoadLibrary"
16634 lt_cv_dlopen="dlopen"
16639 # if libdl is installed we need to link against it
16640 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16641 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16642 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16643 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 ac_check_lib_save_LIBS=$LIBS
16647 cat >conftest.$ac_ext <<_ACEOF
16648 #line $LINENO "configure"
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16655 /* Override any gcc2 internal prototype to avoid an error. */
16659 /* We use char because int might match the return type of a gcc2
16660 builtin and then its argument prototype would still apply. */
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16672 (eval $ac_link) 2>&5
16674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16675 (exit $ac_status); } &&
16676 { ac_try='test -s conftest$ac_exeext'
16677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16678 (eval $ac_try) 2>&5
16680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); }; }; then
16682 ac_cv_lib_dl_dlopen=yes
16684 echo "$as_me: failed program was:" >&5
16685 sed 's/^/| /' conftest.$ac_ext >&5
16687 ac_cv_lib_dl_dlopen=no
16689 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16690 LIBS=$ac_check_lib_save_LIBS
16692 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16693 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16694 if test $ac_cv_lib_dl_dlopen = yes; then
16695 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16698 lt_cv_dlopen="dyld"
16700 lt_cv_dlopen_self=yes
16707 echo "$as_me:$LINENO: checking for shl_load" >&5
16708 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16709 if test "${ac_cv_func_shl_load+set}" = set; then
16710 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 cat >conftest.$ac_ext <<_ACEOF
16713 #line $LINENO "configure"
16716 cat confdefs.h >>conftest.$ac_ext
16717 cat >>conftest.$ac_ext <<_ACEOF
16718 /* end confdefs.h. */
16719 /* System header to define __stub macros and hopefully few prototypes,
16720 which can conflict with char shl_load (); below.
16721 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16722 <limits.h> exists even on freestanding compilers. */
16724 # include <limits.h>
16726 # include <assert.h>
16728 /* Override any gcc2 internal prototype to avoid an error. */
16733 /* We use char because int might match the return type of a gcc2
16734 builtin and then its argument prototype would still apply. */
16736 /* The GNU C library defines this for functions which it implements
16737 to always fail with ENOSYS. Some functions are actually named
16738 something starting with __ and the normal name is an alias. */
16739 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16742 char (*f) () = shl_load;
16751 return f != shl_load;
16756 rm -f conftest.$ac_objext conftest$ac_exeext
16757 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16758 (eval $ac_link) 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } &&
16762 { ac_try='test -s conftest$ac_exeext'
16763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16764 (eval $ac_try) 2>&5
16766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16767 (exit $ac_status); }; }; then
16768 ac_cv_func_shl_load=yes
16770 echo "$as_me: failed program was:" >&5
16771 sed 's/^/| /' conftest.$ac_ext >&5
16773 ac_cv_func_shl_load=no
16775 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16777 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
16778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
16779 if test $ac_cv_func_shl_load = yes; then
16780 lt_cv_dlopen="shl_load"
16782 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
16783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
16784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 ac_check_lib_save_LIBS=$LIBS
16789 cat >conftest.$ac_ext <<_ACEOF
16790 #line $LINENO "configure"
16793 cat confdefs.h >>conftest.$ac_ext
16794 cat >>conftest.$ac_ext <<_ACEOF
16795 /* end confdefs.h. */
16797 /* Override any gcc2 internal prototype to avoid an error. */
16801 /* We use char because int might match the return type of a gcc2
16802 builtin and then its argument prototype would still apply. */
16812 rm -f conftest.$ac_objext conftest$ac_exeext
16813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16814 (eval $ac_link) 2>&5
16816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16817 (exit $ac_status); } &&
16818 { ac_try='test -s conftest$ac_exeext'
16819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16820 (eval $ac_try) 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; }; then
16824 ac_cv_lib_dld_shl_load=yes
16826 echo "$as_me: failed program was:" >&5
16827 sed 's/^/| /' conftest.$ac_ext >&5
16829 ac_cv_lib_dld_shl_load=no
16831 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16832 LIBS=$ac_check_lib_save_LIBS
16834 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
16835 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
16836 if test $ac_cv_lib_dld_shl_load = yes; then
16837 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
16839 echo "$as_me:$LINENO: checking for dlopen" >&5
16840 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
16841 if test "${ac_cv_func_dlopen+set}" = set; then
16842 echo $ECHO_N "(cached) $ECHO_C" >&6
16844 cat >conftest.$ac_ext <<_ACEOF
16845 #line $LINENO "configure"
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 /* System header to define __stub macros and hopefully few prototypes,
16852 which can conflict with char dlopen (); below.
16853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16854 <limits.h> exists even on freestanding compilers. */
16856 # include <limits.h>
16858 # include <assert.h>
16860 /* Override any gcc2 internal prototype to avoid an error. */
16865 /* We use char because int might match the return type of a gcc2
16866 builtin and then its argument prototype would still apply. */
16868 /* The GNU C library defines this for functions which it implements
16869 to always fail with ENOSYS. Some functions are actually named
16870 something starting with __ and the normal name is an alias. */
16871 #if defined (__stub_dlopen) || defined (__stub___dlopen)
16874 char (*f) () = dlopen;
16883 return f != dlopen;
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16890 (eval $ac_link) 2>&5
16892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16893 (exit $ac_status); } &&
16894 { ac_try='test -s conftest$ac_exeext'
16895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16896 (eval $ac_try) 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; }; then
16900 ac_cv_func_dlopen=yes
16902 echo "$as_me: failed program was:" >&5
16903 sed 's/^/| /' conftest.$ac_ext >&5
16905 ac_cv_func_dlopen=no
16907 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16909 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
16910 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
16911 if test $ac_cv_func_dlopen = yes; then
16912 lt_cv_dlopen="dlopen"
16914 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16915 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16916 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16917 echo $ECHO_N "(cached) $ECHO_C" >&6
16919 ac_check_lib_save_LIBS=$LIBS
16921 cat >conftest.$ac_ext <<_ACEOF
16922 #line $LINENO "configure"
16925 cat confdefs.h >>conftest.$ac_ext
16926 cat >>conftest.$ac_ext <<_ACEOF
16927 /* end confdefs.h. */
16929 /* Override any gcc2 internal prototype to avoid an error. */
16933 /* We use char because int might match the return type of a gcc2
16934 builtin and then its argument prototype would still apply. */
16944 rm -f conftest.$ac_objext conftest$ac_exeext
16945 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16946 (eval $ac_link) 2>&5
16948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949 (exit $ac_status); } &&
16950 { ac_try='test -s conftest$ac_exeext'
16951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16952 (eval $ac_try) 2>&5
16954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16955 (exit $ac_status); }; }; then
16956 ac_cv_lib_dl_dlopen=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16961 ac_cv_lib_dl_dlopen=no
16963 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
16964 LIBS=$ac_check_lib_save_LIBS
16966 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16967 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16968 if test $ac_cv_lib_dl_dlopen = yes; then
16969 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16971 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
16972 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
16973 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
16974 echo $ECHO_N "(cached) $ECHO_C" >&6
16976 ac_check_lib_save_LIBS=$LIBS
16977 LIBS="-lsvld $LIBS"
16978 cat >conftest.$ac_ext <<_ACEOF
16979 #line $LINENO "configure"
16982 cat confdefs.h >>conftest.$ac_ext
16983 cat >>conftest.$ac_ext <<_ACEOF
16984 /* end confdefs.h. */
16986 /* Override any gcc2 internal prototype to avoid an error. */
16990 /* We use char because int might match the return type of a gcc2
16991 builtin and then its argument prototype would still apply. */
17001 rm -f conftest.$ac_objext conftest$ac_exeext
17002 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17003 (eval $ac_link) 2>&5
17005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17006 (exit $ac_status); } &&
17007 { ac_try='test -s conftest$ac_exeext'
17008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17009 (eval $ac_try) 2>&5
17011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17012 (exit $ac_status); }; }; then
17013 ac_cv_lib_svld_dlopen=yes
17015 echo "$as_me: failed program was:" >&5
17016 sed 's/^/| /' conftest.$ac_ext >&5
17018 ac_cv_lib_svld_dlopen=no
17020 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17021 LIBS=$ac_check_lib_save_LIBS
17023 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17024 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17025 if test $ac_cv_lib_svld_dlopen = yes; then
17026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17028 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17029 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17030 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17031 echo $ECHO_N "(cached) $ECHO_C" >&6
17033 ac_check_lib_save_LIBS=$LIBS
17035 cat >conftest.$ac_ext <<_ACEOF
17036 #line $LINENO "configure"
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 /* Override any gcc2 internal prototype to avoid an error. */
17047 /* We use char because int might match the return type of a gcc2
17048 builtin and then its argument prototype would still apply. */
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17060 (eval $ac_link) 2>&5
17062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17063 (exit $ac_status); } &&
17064 { ac_try='test -s conftest$ac_exeext'
17065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17066 (eval $ac_try) 2>&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); }; }; then
17070 ac_cv_lib_dld_dld_link=yes
17072 echo "$as_me: failed program was:" >&5
17073 sed 's/^/| /' conftest.$ac_ext >&5
17075 ac_cv_lib_dld_dld_link=no
17077 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17078 LIBS=$ac_check_lib_save_LIBS
17080 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17081 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17082 if test $ac_cv_lib_dld_dld_link = yes; then
17083 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17104 if test "x$lt_cv_dlopen" != xno; then
17110 case $lt_cv_dlopen in
17112 save_CPPFLAGS="$CPPFLAGS"
17113 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17115 save_LDFLAGS="$LDFLAGS"
17116 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17119 LIBS="$lt_cv_dlopen_libs $LIBS"
17121 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17122 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17123 if test "${lt_cv_dlopen_self+set}" = set; then
17124 echo $ECHO_N "(cached) $ECHO_C" >&6
17126 if test "$cross_compiling" = yes; then :
17127 lt_cv_dlopen_self=cross
17129 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17130 lt_status=$lt_dlunknown
17131 cat > conftest.$ac_ext <<EOF
17132 #line 17132 "configure"
17133 #include "confdefs.h"
17142 # define LT_DLGLOBAL RTLD_GLOBAL
17145 # define LT_DLGLOBAL DL_GLOBAL
17147 # define LT_DLGLOBAL 0
17151 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17152 find out it does not work in some platform. */
17153 #ifndef LT_DLLAZY_OR_NOW
17155 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17158 # define LT_DLLAZY_OR_NOW DL_LAZY
17161 # define LT_DLLAZY_OR_NOW RTLD_NOW
17164 # define LT_DLLAZY_OR_NOW DL_NOW
17166 # define LT_DLLAZY_OR_NOW 0
17174 extern "C" void exit (int);
17177 void fnord() { int i=42;}
17180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17181 int status = $lt_dlunknown;
17185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17186 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17187 /* dlclose (self); */
17193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17194 (eval $ac_link) 2>&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17198 (./conftest; exit; ) 2>/dev/null
17200 case x$lt_status in
17201 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17202 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17203 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17206 # compilation failed
17207 lt_cv_dlopen_self=no
17214 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17215 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17217 if test "x$lt_cv_dlopen_self" = xyes; then
17218 LDFLAGS="$LDFLAGS $link_static_flag"
17219 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17220 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17221 if test "${lt_cv_dlopen_self_static+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17224 if test "$cross_compiling" = yes; then :
17225 lt_cv_dlopen_self_static=cross
17227 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17228 lt_status=$lt_dlunknown
17229 cat > conftest.$ac_ext <<EOF
17230 #line 17230 "configure"
17231 #include "confdefs.h"
17240 # define LT_DLGLOBAL RTLD_GLOBAL
17243 # define LT_DLGLOBAL DL_GLOBAL
17245 # define LT_DLGLOBAL 0
17249 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17250 find out it does not work in some platform. */
17251 #ifndef LT_DLLAZY_OR_NOW
17253 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17256 # define LT_DLLAZY_OR_NOW DL_LAZY
17259 # define LT_DLLAZY_OR_NOW RTLD_NOW
17262 # define LT_DLLAZY_OR_NOW DL_NOW
17264 # define LT_DLLAZY_OR_NOW 0
17272 extern "C" void exit (int);
17275 void fnord() { int i=42;}
17278 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17279 int status = $lt_dlunknown;
17283 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17284 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17285 /* dlclose (self); */
17291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17292 (eval $ac_link) 2>&5
17294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17295 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17296 (./conftest; exit; ) 2>/dev/null
17298 case x$lt_status in
17299 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17300 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17301 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17304 # compilation failed
17305 lt_cv_dlopen_self_static=no
17312 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17313 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17316 CPPFLAGS="$save_CPPFLAGS"
17317 LDFLAGS="$save_LDFLAGS"
17322 case $lt_cv_dlopen_self in
17323 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17324 *) enable_dlopen_self=unknown ;;
17327 case $lt_cv_dlopen_self_static in
17328 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17329 *) enable_dlopen_self_static=unknown ;;
17334 # The else clause should only fire when bootstrapping the
17335 # libtool distribution, otherwise you forgot to ship ltmain.sh
17336 # with your package, and you will get complaints that there are
17337 # no rules to generate ltmain.sh.
17338 if test -f "$ltmain"; then
17339 # See if we are running on zsh, and set the options which allow our commands through
17340 # without removal of \ escapes.
17341 if test -n "${ZSH_VERSION+set}" ; then
17342 setopt NO_GLOB_SUBST
17344 # Now quote all the things that may contain metacharacters while being
17345 # careful not to overquote the AC_SUBSTed values. We take copies of the
17346 # variables and quote the copies for generation of the libtool script.
17347 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17349 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17350 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17351 deplibs_check_method reload_flag reload_cmds need_locks \
17352 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17353 lt_cv_sys_global_symbol_to_c_name_address \
17354 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17355 old_postinstall_cmds old_postuninstall_cmds \
17359 lt_prog_compiler_wl_GCJ \
17360 lt_prog_compiler_pic_GCJ \
17361 lt_prog_compiler_static_GCJ \
17362 lt_prog_compiler_no_builtin_flag_GCJ \
17363 export_dynamic_flag_spec_GCJ \
17364 thread_safe_flag_spec_GCJ \
17365 whole_archive_flag_spec_GCJ \
17366 enable_shared_with_static_runtimes_GCJ \
17367 old_archive_cmds_GCJ \
17368 old_archive_from_new_cmds_GCJ \
17369 predep_objects_GCJ \
17370 postdep_objects_GCJ \
17373 compiler_lib_search_path_GCJ \
17375 archive_expsym_cmds_GCJ \
17376 postinstall_cmds_GCJ \
17377 postuninstall_cmds_GCJ \
17378 old_archive_from_expsyms_cmds_GCJ \
17379 allow_undefined_flag_GCJ \
17380 no_undefined_flag_GCJ \
17381 export_symbols_cmds_GCJ \
17382 hardcode_libdir_flag_spec_GCJ \
17383 hardcode_libdir_flag_spec_ld_GCJ \
17384 hardcode_libdir_separator_GCJ \
17385 hardcode_automatic_GCJ \
17387 module_expsym_cmds_GCJ \
17388 lt_cv_prog_compiler_c_o_GCJ \
17389 exclude_expsyms_GCJ \
17390 include_expsyms_GCJ; do
17393 old_archive_cmds_GCJ | \
17394 old_archive_from_new_cmds_GCJ | \
17395 archive_cmds_GCJ | \
17396 archive_expsym_cmds_GCJ | \
17397 module_cmds_GCJ | \
17398 module_expsym_cmds_GCJ | \
17399 old_archive_from_expsyms_cmds_GCJ | \
17400 export_symbols_cmds_GCJ | \
17401 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17402 postinstall_cmds | postuninstall_cmds | \
17403 old_postinstall_cmds | old_postuninstall_cmds | \
17404 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17405 # Double-quote double-evaled strings.
17406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17409 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17415 *'\$0 --fallback-echo"')
17416 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17422 cat <<__EOF__ >> "$cfgfile"
17423 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17425 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17427 # Shell to use when invoking shell scripts.
17430 # Whether or not to build shared libraries.
17431 build_libtool_libs=$enable_shared
17433 # Whether or not to build static libraries.
17434 build_old_libs=$enable_static
17436 # Whether or not to add -lc for building shared libraries.
17437 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17439 # Whether or not to disallow shared libs when runtime libs are static
17440 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17442 # Whether or not to optimize for fast installation.
17443 fast_install=$enable_fast_install
17446 host_alias=$host_alias
17449 # An echo program that does not interpret backslashes.
17454 AR_FLAGS=$lt_AR_FLAGS
17459 # A language-specific compiler.
17460 CC=$lt_compiler_GCJ
17462 # Is the compiler the GNU C compiler?
17468 # The linker used to build libraries.
17471 # Whether we need hard or soft links.
17474 # A BSD-compatible nm program.
17477 # A symbol stripping program
17480 # Used to examine libraries when file_magic_cmd begins "file"
17481 MAGIC_CMD=$MAGIC_CMD
17483 # Used on cygwin: DLL creation program.
17486 # Used on cygwin: object dumper.
17489 # Used on cygwin: assembler.
17492 # The name of the directory that contains temporary libtool files.
17495 # How to create reloadable object files.
17496 reload_flag=$lt_reload_flag
17497 reload_cmds=$lt_reload_cmds
17499 # How to pass a linker flag through the compiler.
17500 wl=$lt_lt_prog_compiler_wl_GCJ
17502 # Object file suffix (normally "o").
17503 objext="$ac_objext"
17505 # Old archive suffix (normally "a").
17508 # Shared library suffix (normally ".so").
17509 shrext_cmds='$shrext_cmds'
17511 # Executable file suffix (normally "").
17514 # Additional compiler flags for building library objects.
17515 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17518 # What is the maximum length of a command?
17519 max_cmd_len=$lt_cv_sys_max_cmd_len
17521 # Does compiler simultaneously support -c and -o options?
17522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17524 # Must we lock files when doing compilation ?
17525 need_locks=$lt_need_locks
17527 # Do we need the lib prefix for modules?
17528 need_lib_prefix=$need_lib_prefix
17530 # Do we need a version for libraries?
17531 need_version=$need_version
17533 # Whether dlopen is supported.
17534 dlopen_support=$enable_dlopen
17536 # Whether dlopen of programs is supported.
17537 dlopen_self=$enable_dlopen_self
17539 # Whether dlopen of statically linked programs is supported.
17540 dlopen_self_static=$enable_dlopen_self_static
17542 # Compiler flag to prevent dynamic linking.
17543 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17545 # Compiler flag to turn off builtin functions.
17546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17548 # Compiler flag to allow reflexive dlopens.
17549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17551 # Compiler flag to generate shared objects directly from archives.
17552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17554 # Compiler flag to generate thread-safe objects.
17555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17557 # Library versioning type.
17558 version_type=$version_type
17560 # Format of library name prefix.
17561 libname_spec=$lt_libname_spec
17563 # List of archive names. First name is the real one, the rest are links.
17564 # The last name is the one that the linker finds with -lNAME.
17565 library_names_spec=$lt_library_names_spec
17567 # The coded name of the library, if different from the real name.
17568 soname_spec=$lt_soname_spec
17570 # Commands used to build and install an old-style archive.
17572 old_archive_cmds=$lt_old_archive_cmds_GCJ
17573 old_postinstall_cmds=$lt_old_postinstall_cmds
17574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17576 # Create an old-style archive from a shared archive.
17577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17579 # Create a temporary old-style archive to link instead of a shared archive.
17580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17582 # Commands used to build and install a shared archive.
17583 archive_cmds=$lt_archive_cmds_GCJ
17584 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17585 postinstall_cmds=$lt_postinstall_cmds
17586 postuninstall_cmds=$lt_postuninstall_cmds
17588 # Commands used to build a loadable module (assumed same as above if empty)
17589 module_cmds=$lt_module_cmds_GCJ
17590 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17592 # Commands to strip libraries.
17593 old_striplib=$lt_old_striplib
17594 striplib=$lt_striplib
17596 # Dependencies to place before the objects being linked to create a
17598 predep_objects=$lt_predep_objects_GCJ
17600 # Dependencies to place after the objects being linked to create a
17602 postdep_objects=$lt_postdep_objects_GCJ
17604 # Dependencies to place before the objects being linked to create a
17606 predeps=$lt_predeps_GCJ
17608 # Dependencies to place after the objects being linked to create a
17610 postdeps=$lt_postdeps_GCJ
17612 # The library search path used internally by the compiler when linking
17613 # a shared library.
17614 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17616 # Method to check whether dependent libraries are shared objects.
17617 deplibs_check_method=$lt_deplibs_check_method
17619 # Command to use when deplibs_check_method == file_magic.
17620 file_magic_cmd=$lt_file_magic_cmd
17622 # Flag that allows shared libraries with undefined symbols to be built.
17623 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17625 # Flag that forces no undefined symbols.
17626 no_undefined_flag=$lt_no_undefined_flag_GCJ
17628 # Commands used to finish a libtool library installation in a directory.
17629 finish_cmds=$lt_finish_cmds
17631 # Same as above, but a single script fragment to be evaled but not shown.
17632 finish_eval=$lt_finish_eval
17634 # Take the output of nm and produce a listing of raw symbols and C names.
17635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17637 # Transform the output of nm in a proper C declaration
17638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17640 # Transform the output of nm in a C name address pair
17641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17643 # This is the shared library runtime path variable.
17644 runpath_var=$runpath_var
17646 # This is the shared library path variable.
17647 shlibpath_var=$shlibpath_var
17649 # Is shlibpath searched before the hard-coded library search path?
17650 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17652 # How to hardcode a shared library path into an executable.
17653 hardcode_action=$hardcode_action_GCJ
17655 # Whether we should hardcode library paths into libraries.
17656 hardcode_into_libs=$hardcode_into_libs
17658 # Flag to hardcode \$libdir into a binary during linking.
17659 # This must work even if \$libdir does not exist.
17660 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17662 # If ld is used when linking, flag to hardcode \$libdir into
17663 # a binary during linking. This must work even if \$libdir does
17665 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17667 # Whether we need a single -rpath flag with a separated argument.
17668 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17670 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17671 # resulting binary.
17672 hardcode_direct=$hardcode_direct_GCJ
17674 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17675 # resulting binary.
17676 hardcode_minus_L=$hardcode_minus_L_GCJ
17678 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17679 # the resulting binary.
17680 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17682 # Set to yes if building a shared library automatically hardcodes DIR into the library
17683 # and all subsequent libraries and executables linked against it.
17684 hardcode_automatic=$hardcode_automatic_GCJ
17686 # Variables whose values should be saved in libtool wrapper scripts and
17687 # restored at relink time.
17688 variables_saved_for_relink="$variables_saved_for_relink"
17690 # Whether libtool must link a program against all its dependency libraries.
17691 link_all_deplibs=$link_all_deplibs_GCJ
17693 # Compile-time system search path for libraries
17694 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17696 # Run-time system search path for libraries
17697 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17699 # Fix the shell variable \$srcfile for the compiler.
17700 fix_srcfile_path="$fix_srcfile_path_GCJ"
17702 # Set to yes if exported symbols are required.
17703 always_export_symbols=$always_export_symbols_GCJ
17705 # The commands to list exported symbols.
17706 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17708 # The commands to extract the exported symbol list from a shared archive.
17709 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17711 # Symbols that should not be listed in the preloaded symbols.
17712 exclude_expsyms=$lt_exclude_expsyms_GCJ
17714 # Symbols that must always be exported.
17715 include_expsyms=$lt_include_expsyms_GCJ
17717 # ### END LIBTOOL TAG CONFIG: $tagname
17723 # If there is no Makefile yet, we rely on a make rule to execute
17724 # `config.status --recheck' to rerun these tests and create the
17725 # libtool script then.
17726 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17727 if test -f "$ltmain_in"; then
17728 test -f Makefile && make "$ltmain"
17734 ac_cpp='$CPP $CPPFLAGS'
17735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17750 # Source file extension for RC test sources.
17753 # Object file extension for compiled RC test sources.
17757 # Code to be used in simple compile tests
17758 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17760 # Code to be used in simple link tests
17761 lt_simple_link_test_code="$lt_simple_compile_test_code"
17763 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17765 # If no C compiler was specified, use CC.
17768 # Allow CC to be a program name with arguments.
17772 # Allow CC to be a program name with arguments.
17777 lt_cv_prog_compiler_c_o_RC=yes
17779 # The else clause should only fire when bootstrapping the
17780 # libtool distribution, otherwise you forgot to ship ltmain.sh
17781 # with your package, and you will get complaints that there are
17782 # no rules to generate ltmain.sh.
17783 if test -f "$ltmain"; then
17784 # See if we are running on zsh, and set the options which allow our commands through
17785 # without removal of \ escapes.
17786 if test -n "${ZSH_VERSION+set}" ; then
17787 setopt NO_GLOB_SUBST
17789 # Now quote all the things that may contain metacharacters while being
17790 # careful not to overquote the AC_SUBSTed values. We take copies of the
17791 # variables and quote the copies for generation of the libtool script.
17792 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17794 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17795 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17796 deplibs_check_method reload_flag reload_cmds need_locks \
17797 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17798 lt_cv_sys_global_symbol_to_c_name_address \
17799 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17800 old_postinstall_cmds old_postuninstall_cmds \
17804 lt_prog_compiler_wl_RC \
17805 lt_prog_compiler_pic_RC \
17806 lt_prog_compiler_static_RC \
17807 lt_prog_compiler_no_builtin_flag_RC \
17808 export_dynamic_flag_spec_RC \
17809 thread_safe_flag_spec_RC \
17810 whole_archive_flag_spec_RC \
17811 enable_shared_with_static_runtimes_RC \
17812 old_archive_cmds_RC \
17813 old_archive_from_new_cmds_RC \
17814 predep_objects_RC \
17815 postdep_objects_RC \
17818 compiler_lib_search_path_RC \
17820 archive_expsym_cmds_RC \
17821 postinstall_cmds_RC \
17822 postuninstall_cmds_RC \
17823 old_archive_from_expsyms_cmds_RC \
17824 allow_undefined_flag_RC \
17825 no_undefined_flag_RC \
17826 export_symbols_cmds_RC \
17827 hardcode_libdir_flag_spec_RC \
17828 hardcode_libdir_flag_spec_ld_RC \
17829 hardcode_libdir_separator_RC \
17830 hardcode_automatic_RC \
17832 module_expsym_cmds_RC \
17833 lt_cv_prog_compiler_c_o_RC \
17834 exclude_expsyms_RC \
17835 include_expsyms_RC; do
17838 old_archive_cmds_RC | \
17839 old_archive_from_new_cmds_RC | \
17840 archive_cmds_RC | \
17841 archive_expsym_cmds_RC | \
17843 module_expsym_cmds_RC | \
17844 old_archive_from_expsyms_cmds_RC | \
17845 export_symbols_cmds_RC | \
17846 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17847 postinstall_cmds | postuninstall_cmds | \
17848 old_postinstall_cmds | old_postuninstall_cmds | \
17849 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17850 # Double-quote double-evaled strings.
17851 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17854 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17860 *'\$0 --fallback-echo"')
17861 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17867 cat <<__EOF__ >> "$cfgfile"
17868 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17870 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17872 # Shell to use when invoking shell scripts.
17875 # Whether or not to build shared libraries.
17876 build_libtool_libs=$enable_shared
17878 # Whether or not to build static libraries.
17879 build_old_libs=$enable_static
17881 # Whether or not to add -lc for building shared libraries.
17882 build_libtool_need_lc=$archive_cmds_need_lc_RC
17884 # Whether or not to disallow shared libs when runtime libs are static
17885 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
17887 # Whether or not to optimize for fast installation.
17888 fast_install=$enable_fast_install
17891 host_alias=$host_alias
17894 # An echo program that does not interpret backslashes.
17899 AR_FLAGS=$lt_AR_FLAGS
17904 # A language-specific compiler.
17907 # Is the compiler the GNU C compiler?
17913 # The linker used to build libraries.
17916 # Whether we need hard or soft links.
17919 # A BSD-compatible nm program.
17922 # A symbol stripping program
17925 # Used to examine libraries when file_magic_cmd begins "file"
17926 MAGIC_CMD=$MAGIC_CMD
17928 # Used on cygwin: DLL creation program.
17931 # Used on cygwin: object dumper.
17934 # Used on cygwin: assembler.
17937 # The name of the directory that contains temporary libtool files.
17940 # How to create reloadable object files.
17941 reload_flag=$lt_reload_flag
17942 reload_cmds=$lt_reload_cmds
17944 # How to pass a linker flag through the compiler.
17945 wl=$lt_lt_prog_compiler_wl_RC
17947 # Object file suffix (normally "o").
17948 objext="$ac_objext"
17950 # Old archive suffix (normally "a").
17953 # Shared library suffix (normally ".so").
17954 shrext_cmds='$shrext_cmds'
17956 # Executable file suffix (normally "").
17959 # Additional compiler flags for building library objects.
17960 pic_flag=$lt_lt_prog_compiler_pic_RC
17963 # What is the maximum length of a command?
17964 max_cmd_len=$lt_cv_sys_max_cmd_len
17966 # Does compiler simultaneously support -c and -o options?
17967 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
17969 # Must we lock files when doing compilation ?
17970 need_locks=$lt_need_locks
17972 # Do we need the lib prefix for modules?
17973 need_lib_prefix=$need_lib_prefix
17975 # Do we need a version for libraries?
17976 need_version=$need_version
17978 # Whether dlopen is supported.
17979 dlopen_support=$enable_dlopen
17981 # Whether dlopen of programs is supported.
17982 dlopen_self=$enable_dlopen_self
17984 # Whether dlopen of statically linked programs is supported.
17985 dlopen_self_static=$enable_dlopen_self_static
17987 # Compiler flag to prevent dynamic linking.
17988 link_static_flag=$lt_lt_prog_compiler_static_RC
17990 # Compiler flag to turn off builtin functions.
17991 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
17993 # Compiler flag to allow reflexive dlopens.
17994 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
17996 # Compiler flag to generate shared objects directly from archives.
17997 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
17999 # Compiler flag to generate thread-safe objects.
18000 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18002 # Library versioning type.
18003 version_type=$version_type
18005 # Format of library name prefix.
18006 libname_spec=$lt_libname_spec
18008 # List of archive names. First name is the real one, the rest are links.
18009 # The last name is the one that the linker finds with -lNAME.
18010 library_names_spec=$lt_library_names_spec
18012 # The coded name of the library, if different from the real name.
18013 soname_spec=$lt_soname_spec
18015 # Commands used to build and install an old-style archive.
18017 old_archive_cmds=$lt_old_archive_cmds_RC
18018 old_postinstall_cmds=$lt_old_postinstall_cmds
18019 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18021 # Create an old-style archive from a shared archive.
18022 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18024 # Create a temporary old-style archive to link instead of a shared archive.
18025 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18027 # Commands used to build and install a shared archive.
18028 archive_cmds=$lt_archive_cmds_RC
18029 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18030 postinstall_cmds=$lt_postinstall_cmds
18031 postuninstall_cmds=$lt_postuninstall_cmds
18033 # Commands used to build a loadable module (assumed same as above if empty)
18034 module_cmds=$lt_module_cmds_RC
18035 module_expsym_cmds=$lt_module_expsym_cmds_RC
18037 # Commands to strip libraries.
18038 old_striplib=$lt_old_striplib
18039 striplib=$lt_striplib
18041 # Dependencies to place before the objects being linked to create a
18043 predep_objects=$lt_predep_objects_RC
18045 # Dependencies to place after the objects being linked to create a
18047 postdep_objects=$lt_postdep_objects_RC
18049 # Dependencies to place before the objects being linked to create a
18051 predeps=$lt_predeps_RC
18053 # Dependencies to place after the objects being linked to create a
18055 postdeps=$lt_postdeps_RC
18057 # The library search path used internally by the compiler when linking
18058 # a shared library.
18059 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18061 # Method to check whether dependent libraries are shared objects.
18062 deplibs_check_method=$lt_deplibs_check_method
18064 # Command to use when deplibs_check_method == file_magic.
18065 file_magic_cmd=$lt_file_magic_cmd
18067 # Flag that allows shared libraries with undefined symbols to be built.
18068 allow_undefined_flag=$lt_allow_undefined_flag_RC
18070 # Flag that forces no undefined symbols.
18071 no_undefined_flag=$lt_no_undefined_flag_RC
18073 # Commands used to finish a libtool library installation in a directory.
18074 finish_cmds=$lt_finish_cmds
18076 # Same as above, but a single script fragment to be evaled but not shown.
18077 finish_eval=$lt_finish_eval
18079 # Take the output of nm and produce a listing of raw symbols and C names.
18080 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18082 # Transform the output of nm in a proper C declaration
18083 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18085 # Transform the output of nm in a C name address pair
18086 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18088 # This is the shared library runtime path variable.
18089 runpath_var=$runpath_var
18091 # This is the shared library path variable.
18092 shlibpath_var=$shlibpath_var
18094 # Is shlibpath searched before the hard-coded library search path?
18095 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18097 # How to hardcode a shared library path into an executable.
18098 hardcode_action=$hardcode_action_RC
18100 # Whether we should hardcode library paths into libraries.
18101 hardcode_into_libs=$hardcode_into_libs
18103 # Flag to hardcode \$libdir into a binary during linking.
18104 # This must work even if \$libdir does not exist.
18105 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18107 # If ld is used when linking, flag to hardcode \$libdir into
18108 # a binary during linking. This must work even if \$libdir does
18110 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18112 # Whether we need a single -rpath flag with a separated argument.
18113 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18115 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18116 # resulting binary.
18117 hardcode_direct=$hardcode_direct_RC
18119 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18120 # resulting binary.
18121 hardcode_minus_L=$hardcode_minus_L_RC
18123 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18124 # the resulting binary.
18125 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18127 # Set to yes if building a shared library automatically hardcodes DIR into the library
18128 # and all subsequent libraries and executables linked against it.
18129 hardcode_automatic=$hardcode_automatic_RC
18131 # Variables whose values should be saved in libtool wrapper scripts and
18132 # restored at relink time.
18133 variables_saved_for_relink="$variables_saved_for_relink"
18135 # Whether libtool must link a program against all its dependency libraries.
18136 link_all_deplibs=$link_all_deplibs_RC
18138 # Compile-time system search path for libraries
18139 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18141 # Run-time system search path for libraries
18142 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18144 # Fix the shell variable \$srcfile for the compiler.
18145 fix_srcfile_path="$fix_srcfile_path_RC"
18147 # Set to yes if exported symbols are required.
18148 always_export_symbols=$always_export_symbols_RC
18150 # The commands to list exported symbols.
18151 export_symbols_cmds=$lt_export_symbols_cmds_RC
18153 # The commands to extract the exported symbol list from a shared archive.
18154 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18156 # Symbols that should not be listed in the preloaded symbols.
18157 exclude_expsyms=$lt_exclude_expsyms_RC
18159 # Symbols that must always be exported.
18160 include_expsyms=$lt_include_expsyms_RC
18162 # ### END LIBTOOL TAG CONFIG: $tagname
18168 # If there is no Makefile yet, we rely on a make rule to execute
18169 # `config.status --recheck' to rerun these tests and create the
18170 # libtool script then.
18171 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18172 if test -f "$ltmain_in"; then
18173 test -f Makefile && make "$ltmain"
18179 ac_cpp='$CPP $CPPFLAGS'
18180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18189 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18190 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18191 { (exit 1); exit 1; }; }
18195 # Append the new tag name to the list of available tags.
18196 if test -n "$tagname" ; then
18197 available_tags="$available_tags $tagname"
18203 # Now substitute the updated list of available tags.
18204 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18205 mv "${ofile}T" "$ofile"
18209 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18210 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18211 { (exit 1); exit 1; }; }
18217 # This can be used to rebuild libtool when needed
18218 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18220 # Always use our own libtool.
18221 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18223 # Prevent multiple expansion
18236 # Check whether --with-system-libtool or --without-system-libtool was given.
18237 if test "${with_system_libtool+set}" = set; then
18238 withval="$with_system_libtool"
18239 # Extract the first word of "libtool", so it can be a program name with args.
18240 set dummy libtool; ac_word=$2
18241 echo "$as_me:$LINENO: checking for $ac_word" >&5
18242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18243 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18244 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 as_dummy="$PATH:/usr/local/bin"
18253 for as_dir in $as_dummy
18256 test -z "$as_dir" && as_dir=.
18257 for ac_exec_ext in '' $ac_executable_extensions; do
18258 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18269 LIBTOOL=$ac_cv_path_LIBTOOL
18271 if test -n "$LIBTOOL"; then
18272 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18273 echo "${ECHO_T}$LIBTOOL" >&6
18275 echo "$as_me:$LINENO: result: no" >&5
18276 echo "${ECHO_T}no" >&6
18281 LIBTOOL="`pwd`/libtool"
18300 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18301 if test "${enable_strict_dependencies+set}" = set; then
18302 enableval="$enable_strict_dependencies"
18306 logdir='${localstatedir}/log/radius'
18307 echo "$as_me:$LINENO: checking logdir" >&5
18308 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18310 # Check whether --with-logdir or --without-logdir was given.
18311 if test "${with_logdir+set}" = set; then
18312 withval="$with_logdir"
18315 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18316 echo "$as_me: error: Need logdir" >&2;}
18317 { (exit 1); exit 1; }; }
18328 echo "$as_me:$LINENO: result: $logdir" >&5
18329 echo "${ECHO_T}$logdir" >&6
18331 radacctdir='${logdir}/radacct'
18332 echo "$as_me:$LINENO: checking radacctdir" >&5
18333 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18335 # Check whether --with-radacctdir or --without-radacctdir was given.
18336 if test "${with_radacctdir+set}" = set; then
18337 withval="$with_radacctdir"
18340 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18341 echo "$as_me: error: Need radacctdir" >&2;}
18342 { (exit 1); exit 1; }; }
18347 radacctdir="$withval"
18353 echo "$as_me:$LINENO: result: $radacctdir" >&5
18354 echo "${ECHO_T}$radacctdir" >&6
18356 raddbdir='${sysconfdir}/raddb'
18357 echo "$as_me:$LINENO: checking raddbdir" >&5
18358 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18360 # Check whether --with-raddbdir or --without-raddbdir was given.
18361 if test "${with_raddbdir+set}" = set; then
18362 withval="$with_raddbdir"
18365 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18366 echo "$as_me: error: Need raddbdir" >&2;}
18367 { (exit 1); exit 1; }; }
18372 raddbdir="$withval"
18378 echo "$as_me:$LINENO: result: $raddbdir" >&5
18379 echo "${ECHO_T}$raddbdir" >&6
18383 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18384 if test "${with_ascend_binary+set}" = set; then
18385 withval="$with_ascend_binary"
18394 if test "X$ASCEND_BINARY" = "Xyes"; then
18395 cat >>confdefs.h <<\_ACEOF
18396 #define ASCEND_BINARY 1
18403 # Check whether --with-threads or --without-threads was given.
18404 if test "${with_threads+set}" = set; then
18405 withval="$with_threads"
18417 # Check whether --with-snmp or --without-snmp was given.
18418 if test "${with_snmp+set}" = set; then
18419 withval="$with_snmp"
18429 rad_enable_largefiles=no
18431 # Check whether --with-large-files or --without-large-files was given.
18432 if test "${with_large_files+set}" = set; then
18433 withval="$with_large_files"
18436 rad_enable_largefiles=yes
18448 # Check whether --with-static_modules or --without-static_modules was given.
18449 if test "${with_static_modules+set}" = set; then
18450 withval="$with_static_modules"
18452 for i in $withval; do
18453 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18458 # Check whether --enable-developer or --disable-developer was given.
18459 if test "${enable_developer+set}" = set; then
18460 enableval="$enable_developer"
18461 case "$enableval" in
18471 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18477 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18478 if test "${with_experimental_modules+set}" = set; then
18479 withval="$with_experimental_modules"
18490 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18491 if test "${with_openssl_includes+set}" = set; then
18492 withval="$with_openssl_includes"
18494 *) OPENSSL_INCLUDE_DIR="$withval"
18501 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18502 if test "${with_openssl_libraries+set}" = set; then
18503 withval="$with_openssl_libraries"
18505 *) OPENSSL_LIB_DIR="$withval"
18513 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18514 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18515 withval="$with_rlm_FOO_lib_dir"
18524 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18525 if test "${with_rlm_FOO_include_dir+set}" = set; then
18526 withval="$with_rlm_FOO_include_dir"
18537 # Check whether --with-udpfromto or --without-udpfromto was given.
18538 if test "${with_udpfromto+set}" = set; then
18539 withval="$with_udpfromto"
18550 if test "x$WITH_UDPFROMTO" = "xyes"; then
18551 cat >>confdefs.h <<\_ACEOF
18552 #define WITH_UDPFROMTO 1
18558 CHECKRAD=checkrad.pl
18559 # Extract the first word of "perl", so it can be a program name with args.
18560 set dummy perl; ac_word=$2
18561 echo "$as_me:$LINENO: checking for $ac_word" >&5
18562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18563 if test "${ac_cv_path_PERL+set}" = set; then
18564 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18572 for as_dir in $PATH
18575 test -z "$as_dir" && as_dir=.
18576 for ac_exec_ext in '' $ac_executable_extensions; do
18577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18578 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18585 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18589 PERL=$ac_cv_path_PERL
18591 if test -n "$PERL"; then
18592 echo "$as_me:$LINENO: result: $PERL" >&5
18593 echo "${ECHO_T}$PERL" >&6
18595 echo "$as_me:$LINENO: result: no" >&5
18596 echo "${ECHO_T}no" >&6
18599 if test "x$ac_cv_path_PERL" = "x"; then
18600 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18601 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18603 # Extract the first word of "snmpget", so it can be a program name with args.
18604 set dummy snmpget; ac_word=$2
18605 echo "$as_me:$LINENO: checking for $ac_word" >&5
18606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18607 if test "${ac_cv_path_SNMPGET+set}" = set; then
18608 echo $ECHO_N "(cached) $ECHO_C" >&6
18612 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18616 for as_dir in $PATH
18619 test -z "$as_dir" && as_dir=.
18620 for ac_exec_ext in '' $ac_executable_extensions; do
18621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18622 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18632 SNMPGET=$ac_cv_path_SNMPGET
18634 if test -n "$SNMPGET"; then
18635 echo "$as_me:$LINENO: result: $SNMPGET" >&5
18636 echo "${ECHO_T}$SNMPGET" >&6
18638 echo "$as_me:$LINENO: result: no" >&5
18639 echo "${ECHO_T}no" >&6
18642 if test "x$ac_cv_path_SNMPGET" = "x"; then
18643 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18644 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18647 # Extract the first word of "snmpwalk", so it can be a program name with args.
18648 set dummy snmpwalk; ac_word=$2
18649 echo "$as_me:$LINENO: checking for $ac_word" >&5
18650 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18651 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18652 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18660 for as_dir in $PATH
18663 test -z "$as_dir" && as_dir=.
18664 for ac_exec_ext in '' $ac_executable_extensions; do
18665 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18666 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18676 SNMPWALK=$ac_cv_path_SNMPWALK
18678 if test -n "$SNMPWALK"; then
18679 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18680 echo "${ECHO_T}$SNMPWALK" >&6
18682 echo "$as_me:$LINENO: result: no" >&5
18683 echo "${ECHO_T}no" >&6
18686 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18687 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18688 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18691 # Extract the first word of "rusers", so it can be a program name with args.
18692 set dummy rusers; ac_word=$2
18693 echo "$as_me:$LINENO: checking for $ac_word" >&5
18694 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18695 if test "${ac_cv_path_RUSERS+set}" = set; then
18696 echo $ECHO_N "(cached) $ECHO_C" >&6
18700 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18704 for as_dir in $PATH
18707 test -z "$as_dir" && as_dir=.
18708 for ac_exec_ext in '' $ac_executable_extensions; do
18709 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18710 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18717 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18721 RUSERS=$ac_cv_path_RUSERS
18723 if test -n "$RUSERS"; then
18724 echo "$as_me:$LINENO: result: $RUSERS" >&5
18725 echo "${ECHO_T}$RUSERS" >&6
18727 echo "$as_me:$LINENO: result: no" >&5
18728 echo "${ECHO_T}no" >&6
18732 missing_dir=`cd $ac_aux_dir && pwd`
18733 echo "$as_me:$LINENO: checking for working aclocal" >&5
18734 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18735 # Run test in a subshell; some versions of sh will print an error if
18736 # an executable is not found, even if stderr is redirected.
18737 # Redirect stdin to placate older versions of autoconf. Sigh.
18738 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18740 echo "$as_me:$LINENO: result: found" >&5
18741 echo "${ECHO_T}found" >&6
18743 ACLOCAL="$missing_dir/missing aclocal"
18744 echo "$as_me:$LINENO: result: missing" >&5
18745 echo "${ECHO_T}missing" >&6
18748 echo "$as_me:$LINENO: checking for working autoconf" >&5
18749 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
18750 # Run test in a subshell; some versions of sh will print an error if
18751 # an executable is not found, even if stderr is redirected.
18752 # Redirect stdin to placate older versions of autoconf. Sigh.
18753 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
18755 echo "$as_me:$LINENO: result: found" >&5
18756 echo "${ECHO_T}found" >&6
18758 AUTOCONF="$missing_dir/missing autoconf"
18759 echo "$as_me:$LINENO: result: missing" >&5
18760 echo "${ECHO_T}missing" >&6
18763 echo "$as_me:$LINENO: checking for working autoheader" >&5
18764 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
18765 # Run test in a subshell; some versions of sh will print an error if
18766 # an executable is not found, even if stderr is redirected.
18767 # Redirect stdin to placate older versions of autoconf. Sigh.
18768 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
18769 AUTOHEADER=autoheader
18770 echo "$as_me:$LINENO: result: found" >&5
18771 echo "${ECHO_T}found" >&6
18773 AUTOHEADER="$missing_dir/missing autoheader"
18774 echo "$as_me:$LINENO: result: missing" >&5
18775 echo "${ECHO_T}missing" >&6
18779 # Extract the first word of "locate", so it can be a program name with args.
18780 set dummy locate; ac_word=$2
18781 echo "$as_me:$LINENO: checking for $ac_word" >&5
18782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18783 if test "${ac_cv_path_LOCATE+set}" = set; then
18784 echo $ECHO_N "(cached) $ECHO_C" >&6
18788 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
18791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18792 for as_dir in $PATH
18795 test -z "$as_dir" && as_dir=.
18796 for ac_exec_ext in '' $ac_executable_extensions; do
18797 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18798 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
18799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18808 LOCATE=$ac_cv_path_LOCATE
18810 if test -n "$LOCATE"; then
18811 echo "$as_me:$LINENO: result: $LOCATE" >&5
18812 echo "${ECHO_T}$LOCATE" >&6
18814 echo "$as_me:$LINENO: result: no" >&5
18815 echo "${ECHO_T}no" >&6
18818 # Extract the first word of "dirname", so it can be a program name with args.
18819 set dummy dirname; ac_word=$2
18820 echo "$as_me:$LINENO: checking for $ac_word" >&5
18821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18822 if test "${ac_cv_path_DIRNAME+set}" = set; then
18823 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
18830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18831 for as_dir in $PATH
18834 test -z "$as_dir" && as_dir=.
18835 for ac_exec_ext in '' $ac_executable_extensions; do
18836 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18837 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
18838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18847 DIRNAME=$ac_cv_path_DIRNAME
18849 if test -n "$DIRNAME"; then
18850 echo "$as_me:$LINENO: result: $DIRNAME" >&5
18851 echo "${ECHO_T}$DIRNAME" >&6
18853 echo "$as_me:$LINENO: result: no" >&5
18854 echo "${ECHO_T}no" >&6
18857 # Extract the first word of "grep", so it can be a program name with args.
18858 set dummy grep; ac_word=$2
18859 echo "$as_me:$LINENO: checking for $ac_word" >&5
18860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18861 if test "${ac_cv_path_GREP+set}" = set; then
18862 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
18869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18870 for as_dir in $PATH
18873 test -z "$as_dir" && as_dir=.
18874 for ac_exec_ext in '' $ac_executable_extensions; do
18875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18876 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
18877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18886 GREP=$ac_cv_path_GREP
18888 if test -n "$GREP"; then
18889 echo "$as_me:$LINENO: result: $GREP" >&5
18890 echo "${ECHO_T}$GREP" >&6
18892 echo "$as_me:$LINENO: result: no" >&5
18893 echo "${ECHO_T}no" >&6
18899 if test "x$WITH_THREADS" = "xyes"; then
18900 if test $ac_cv_prog_suncc = "yes"; then
18901 CFLAGS="$CFLAGS -mt"
18905 for ac_header in pthread.h
18907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18908 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18909 echo "$as_me:$LINENO: checking for $ac_header" >&5
18910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18911 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18912 echo $ECHO_N "(cached) $ECHO_C" >&6
18914 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18915 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18917 # Is the header compilable?
18918 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18919 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h. */
18927 $ac_includes_default
18928 #include <$ac_header>
18930 rm -f conftest.$ac_objext
18931 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18932 (eval $ac_compile) 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); } &&
18936 { ac_try='test -s conftest.$ac_objext'
18937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18938 (eval $ac_try) 2>&5
18940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18941 (exit $ac_status); }; }; then
18942 ac_header_compiler=yes
18944 echo "$as_me: failed program was:" >&5
18945 sed 's/^/| /' conftest.$ac_ext >&5
18947 ac_header_compiler=no
18949 rm -f conftest.$ac_objext conftest.$ac_ext
18950 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18951 echo "${ECHO_T}$ac_header_compiler" >&6
18953 # Is the header present?
18954 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18955 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18956 cat >conftest.$ac_ext <<_ACEOF
18957 #line $LINENO "configure"
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 #include <$ac_header>
18965 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18966 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18968 grep -v '^ *+' conftest.er1 >conftest.err
18970 cat conftest.err >&5
18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18972 (exit $ac_status); } >/dev/null; then
18973 if test -s conftest.err; then
18974 ac_cpp_err=$ac_c_preproc_warn_flag
18981 if test -z "$ac_cpp_err"; then
18982 ac_header_preproc=yes
18984 echo "$as_me: failed program was:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 ac_header_preproc=no
18989 rm -f conftest.err conftest.$ac_ext
18990 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18991 echo "${ECHO_T}$ac_header_preproc" >&6
18993 # So? What about this header?
18994 case $ac_header_compiler:$ac_header_preproc in
18996 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18997 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19002 ## ------------------------------------ ##
19003 ## Report this to bug-autoconf@gnu.org. ##
19004 ## ------------------------------------ ##
19007 sed "s/^/$as_me: WARNING: /" >&2
19010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19014 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19015 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19018 ## ------------------------------------ ##
19019 ## Report this to bug-autoconf@gnu.org. ##
19020 ## ------------------------------------ ##
19023 sed "s/^/$as_me: WARNING: /" >&2
19026 echo "$as_me:$LINENO: checking for $ac_header" >&5
19027 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19028 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19029 echo $ECHO_N "(cached) $ECHO_C" >&6
19031 eval "$as_ac_Header=$ac_header_preproc"
19033 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19034 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19038 cat >>confdefs.h <<_ACEOF
19039 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19049 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19050 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19051 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_check_lib_save_LIBS=$LIBS
19055 LIBS="-lpthread $LIBS"
19056 cat >conftest.$ac_ext <<_ACEOF
19057 #line $LINENO "configure"
19060 cat confdefs.h >>conftest.$ac_ext
19061 cat >>conftest.$ac_ext <<_ACEOF
19062 /* end confdefs.h. */
19064 /* Override any gcc2 internal prototype to avoid an error. */
19068 /* We use char because int might match the return type of a gcc2
19069 builtin and then its argument prototype would still apply. */
19070 char pthread_create ();
19079 rm -f conftest.$ac_objext conftest$ac_exeext
19080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19081 (eval $ac_link) 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); } &&
19085 { ac_try='test -s conftest$ac_exeext'
19086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19087 (eval $ac_try) 2>&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); }; }; then
19091 ac_cv_lib_pthread_pthread_create=yes
19093 echo "$as_me: failed program was:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_cv_lib_pthread_pthread_create=no
19098 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19099 LIBS=$ac_check_lib_save_LIBS
19101 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19102 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19103 if test $ac_cv_lib_pthread_pthread_create = yes; then
19104 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19105 LIBS="$LIBS -lpthread"
19107 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19108 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19109 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 ac_check_lib_save_LIBS=$LIBS
19114 cat >conftest.$ac_ext <<_ACEOF
19115 #line $LINENO "configure"
19118 cat confdefs.h >>conftest.$ac_ext
19119 cat >>conftest.$ac_ext <<_ACEOF
19120 /* end confdefs.h. */
19122 /* Override any gcc2 internal prototype to avoid an error. */
19126 /* We use char because int might match the return type of a gcc2
19127 builtin and then its argument prototype would still apply. */
19128 char pthread_create ();
19137 rm -f conftest.$ac_objext conftest$ac_exeext
19138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19139 (eval $ac_link) 2>&5
19141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19142 (exit $ac_status); } &&
19143 { ac_try='test -s conftest$ac_exeext'
19144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19145 (eval $ac_try) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; }; then
19149 ac_cv_lib_c_r_pthread_create=yes
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_lib_c_r_pthread_create=no
19156 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19157 LIBS=$ac_check_lib_save_LIBS
19159 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19160 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19161 if test $ac_cv_lib_c_r_pthread_create = yes; then
19162 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19173 if test "x$WITH_THREADS" != "xyes"; then
19175 ac_cv_header_pthread_h="no"
19179 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19180 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19181 if test "${ac_cv_search_sem_init+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 ac_func_search_save_LIBS=$LIBS
19185 ac_cv_search_sem_init=no
19186 cat >conftest.$ac_ext <<_ACEOF
19187 #line $LINENO "configure"
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any gcc2 internal prototype to avoid an error. */
19198 /* We use char because int might match the return type of a gcc2
19199 builtin and then its argument prototype would still apply. */
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19211 (eval $ac_link) 2>&5
19213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19214 (exit $ac_status); } &&
19215 { ac_try='test -s conftest$ac_exeext'
19216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19217 (eval $ac_try) 2>&5
19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19220 (exit $ac_status); }; }; then
19221 ac_cv_search_sem_init="none required"
19223 echo "$as_me: failed program was:" >&5
19224 sed 's/^/| /' conftest.$ac_ext >&5
19227 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19228 if test "$ac_cv_search_sem_init" = no; then
19229 for ac_lib in pthread sem posix4 rt; do
19230 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19231 cat >conftest.$ac_ext <<_ACEOF
19232 #line $LINENO "configure"
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19239 /* Override any gcc2 internal prototype to avoid an error. */
19243 /* We use char because int might match the return type of a gcc2
19244 builtin and then its argument prototype would still apply. */
19254 rm -f conftest.$ac_objext conftest$ac_exeext
19255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19256 (eval $ac_link) 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); } &&
19260 { ac_try='test -s conftest$ac_exeext'
19261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19262 (eval $ac_try) 2>&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); }; }; then
19266 ac_cv_search_sem_init="-l$ac_lib"
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19273 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19276 LIBS=$ac_func_search_save_LIBS
19278 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19279 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19280 if test "$ac_cv_search_sem_init" != no; then
19281 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19284 { { 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
19285 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;}
19286 { (exit 1); exit 1; }; }
19293 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19294 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19295 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19296 echo $ECHO_N "(cached) $ECHO_C" >&6
19298 ac_check_lib_save_LIBS=$LIBS
19299 LIBS="-lsocket $LIBS"
19300 cat >conftest.$ac_ext <<_ACEOF
19301 #line $LINENO "configure"
19304 cat confdefs.h >>conftest.$ac_ext
19305 cat >>conftest.$ac_ext <<_ACEOF
19306 /* end confdefs.h. */
19308 /* Override any gcc2 internal prototype to avoid an error. */
19312 /* We use char because int might match the return type of a gcc2
19313 builtin and then its argument prototype would still apply. */
19314 char getsockname ();
19323 rm -f conftest.$ac_objext conftest$ac_exeext
19324 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19325 (eval $ac_link) 2>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try='test -s conftest$ac_exeext'
19330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19331 (eval $ac_try) 2>&5
19333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19334 (exit $ac_status); }; }; then
19335 ac_cv_lib_socket_getsockname=yes
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19340 ac_cv_lib_socket_getsockname=no
19342 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19346 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19347 if test $ac_cv_lib_socket_getsockname = yes; then
19348 cat >>confdefs.h <<_ACEOF
19349 #define HAVE_LIBSOCKET 1
19352 LIBS="-lsocket $LIBS"
19358 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19359 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19360 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19361 echo $ECHO_N "(cached) $ECHO_C" >&6
19363 ac_check_lib_save_LIBS=$LIBS
19364 LIBS="-lresolv $LIBS"
19365 cat >conftest.$ac_ext <<_ACEOF
19366 #line $LINENO "configure"
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19373 /* Override any gcc2 internal prototype to avoid an error. */
19377 /* We use char because int might match the return type of a gcc2
19378 builtin and then its argument prototype would still apply. */
19388 rm -f conftest.$ac_objext conftest$ac_exeext
19389 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19390 (eval $ac_link) 2>&5
19392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19393 (exit $ac_status); } &&
19394 { ac_try='test -s conftest$ac_exeext'
19395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19396 (eval $ac_try) 2>&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); }; }; then
19400 ac_cv_lib_resolv_inet_aton=yes
19402 echo "$as_me: failed program was:" >&5
19403 sed 's/^/| /' conftest.$ac_ext >&5
19405 ac_cv_lib_resolv_inet_aton=no
19407 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19408 LIBS=$ac_check_lib_save_LIBS
19410 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19411 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19412 if test $ac_cv_lib_resolv_inet_aton = yes; then
19413 cat >>confdefs.h <<_ACEOF
19414 #define HAVE_LIBRESOLV 1
19417 LIBS="-lresolv $LIBS"
19423 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19424 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19425 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19426 echo $ECHO_N "(cached) $ECHO_C" >&6
19428 ac_check_lib_save_LIBS=$LIBS
19430 cat >conftest.$ac_ext <<_ACEOF
19431 #line $LINENO "configure"
19434 cat confdefs.h >>conftest.$ac_ext
19435 cat >>conftest.$ac_ext <<_ACEOF
19436 /* end confdefs.h. */
19438 /* Override any gcc2 internal prototype to avoid an error. */
19442 /* We use char because int might match the return type of a gcc2
19443 builtin and then its argument prototype would still apply. */
19453 rm -f conftest.$ac_objext conftest$ac_exeext
19454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19455 (eval $ac_link) 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); } &&
19459 { ac_try='test -s conftest$ac_exeext'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; }; then
19465 ac_cv_lib_nsl_inet_ntoa=yes
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_lib_nsl_inet_ntoa=no
19472 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19473 LIBS=$ac_check_lib_save_LIBS
19475 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19476 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19477 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_LIBNSL 1
19490 CFLAGS="$CFLAGS -D_ALL_SOURCE"
19499 ac_header_dirent=no
19500 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19501 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19502 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19503 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
19504 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 cat >conftest.$ac_ext <<_ACEOF
19508 #line $LINENO "configure"
19511 cat confdefs.h >>conftest.$ac_ext
19512 cat >>conftest.$ac_ext <<_ACEOF
19513 /* end confdefs.h. */
19514 #include <sys/types.h>
19526 rm -f conftest.$ac_objext
19527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19528 (eval $ac_compile) 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); } &&
19532 { ac_try='test -s conftest.$ac_objext'
19533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19534 (eval $ac_try) 2>&5
19536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19537 (exit $ac_status); }; }; then
19538 eval "$as_ac_Header=yes"
19540 echo "$as_me: failed program was:" >&5
19541 sed 's/^/| /' conftest.$ac_ext >&5
19543 eval "$as_ac_Header=no"
19545 rm -f conftest.$ac_objext conftest.$ac_ext
19547 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19548 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19550 cat >>confdefs.h <<_ACEOF
19551 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
19554 ac_header_dirent=$ac_hdr; break
19558 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
19559 if test $ac_header_dirent = dirent.h; then
19560 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19561 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19562 if test "${ac_cv_search_opendir+set}" = set; then
19563 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 ac_func_search_save_LIBS=$LIBS
19566 ac_cv_search_opendir=no
19567 cat >conftest.$ac_ext <<_ACEOF
19568 #line $LINENO "configure"
19571 cat confdefs.h >>conftest.$ac_ext
19572 cat >>conftest.$ac_ext <<_ACEOF
19573 /* end confdefs.h. */
19575 /* Override any gcc2 internal prototype to avoid an error. */
19579 /* We use char because int might match the return type of a gcc2
19580 builtin and then its argument prototype would still apply. */
19590 rm -f conftest.$ac_objext conftest$ac_exeext
19591 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19592 (eval $ac_link) 2>&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -s conftest$ac_exeext'
19597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19598 (eval $ac_try) 2>&5
19600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601 (exit $ac_status); }; }; then
19602 ac_cv_search_opendir="none required"
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19608 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19609 if test "$ac_cv_search_opendir" = no; then
19610 for ac_lib in dir; do
19611 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19612 cat >conftest.$ac_ext <<_ACEOF
19613 #line $LINENO "configure"
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any gcc2 internal prototype to avoid an error. */
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>&5
19639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19640 (exit $ac_status); } &&
19641 { ac_try='test -s conftest$ac_exeext'
19642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19643 (eval $ac_try) 2>&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); }; }; then
19647 ac_cv_search_opendir="-l$ac_lib"
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19654 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_func_search_save_LIBS
19659 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19660 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19661 if test "$ac_cv_search_opendir" != no; then
19662 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19667 echo "$as_me:$LINENO: checking for library containing opendir" >&5
19668 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
19669 if test "${ac_cv_search_opendir+set}" = set; then
19670 echo $ECHO_N "(cached) $ECHO_C" >&6
19672 ac_func_search_save_LIBS=$LIBS
19673 ac_cv_search_opendir=no
19674 cat >conftest.$ac_ext <<_ACEOF
19675 #line $LINENO "configure"
19678 cat confdefs.h >>conftest.$ac_ext
19679 cat >>conftest.$ac_ext <<_ACEOF
19680 /* end confdefs.h. */
19682 /* Override any gcc2 internal prototype to avoid an error. */
19686 /* We use char because int might match the return type of a gcc2
19687 builtin and then its argument prototype would still apply. */
19697 rm -f conftest.$ac_objext conftest$ac_exeext
19698 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19699 (eval $ac_link) 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); } &&
19703 { ac_try='test -s conftest$ac_exeext'
19704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19705 (eval $ac_try) 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_search_opendir="none required"
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19715 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19716 if test "$ac_cv_search_opendir" = no; then
19717 for ac_lib in x; do
19718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 #line $LINENO "configure"
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19727 /* Override any gcc2 internal prototype to avoid an error. */
19731 /* We use char because int might match the return type of a gcc2
19732 builtin and then its argument prototype would still apply. */
19742 rm -f conftest.$ac_objext conftest$ac_exeext
19743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19744 (eval $ac_link) 2>&5
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } &&
19748 { ac_try='test -s conftest$ac_exeext'
19749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19750 (eval $ac_try) 2>&5
19752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19753 (exit $ac_status); }; }; then
19754 ac_cv_search_opendir="-l$ac_lib"
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
19764 LIBS=$ac_func_search_save_LIBS
19766 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
19767 echo "${ECHO_T}$ac_cv_search_opendir" >&6
19768 if test "$ac_cv_search_opendir" != no; then
19769 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
19775 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
19776 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
19777 if test "${ac_cv_header_stdc+set}" = set; then
19778 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 cat >conftest.$ac_ext <<_ACEOF
19781 #line $LINENO "configure"
19784 cat confdefs.h >>conftest.$ac_ext
19785 cat >>conftest.$ac_ext <<_ACEOF
19786 /* end confdefs.h. */
19787 #include <stdlib.h>
19788 #include <stdarg.h>
19789 #include <string.h>
19800 rm -f conftest.$ac_objext
19801 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19802 (eval $ac_compile) 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -s conftest.$ac_objext'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; }; then
19812 ac_cv_header_stdc=yes
19814 echo "$as_me: failed program was:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_header_stdc=no
19819 rm -f conftest.$ac_objext conftest.$ac_ext
19821 if test $ac_cv_header_stdc = yes; then
19822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19823 cat >conftest.$ac_ext <<_ACEOF
19824 #line $LINENO "configure"
19827 cat confdefs.h >>conftest.$ac_ext
19828 cat >>conftest.$ac_ext <<_ACEOF
19829 /* end confdefs.h. */
19830 #include <string.h>
19833 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19834 $EGREP "memchr" >/dev/null 2>&1; then
19837 ac_cv_header_stdc=no
19843 if test $ac_cv_header_stdc = yes; then
19844 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19845 cat >conftest.$ac_ext <<_ACEOF
19846 #line $LINENO "configure"
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19852 #include <stdlib.h>
19855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19856 $EGREP "free" >/dev/null 2>&1; then
19859 ac_cv_header_stdc=no
19865 if test $ac_cv_header_stdc = yes; then
19866 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19867 if test "$cross_compiling" = yes; then
19870 cat >conftest.$ac_ext <<_ACEOF
19871 #line $LINENO "configure"
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19878 #if ((' ' & 0x0FF) == 0x020)
19879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19882 # define ISLOWER(c) \
19883 (('a' <= (c) && (c) <= 'i') \
19884 || ('j' <= (c) && (c) <= 'r') \
19885 || ('s' <= (c) && (c) <= 'z'))
19886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19894 for (i = 0; i < 256; i++)
19895 if (XOR (islower (i), ISLOWER (i))
19896 || toupper (i) != TOUPPER (i))
19901 rm -f conftest$ac_exeext
19902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19903 (eval $ac_link) 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19908 (eval $ac_try) 2>&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); }; }; then
19914 echo "$as_me: program exited with status $ac_status" >&5
19915 echo "$as_me: failed program was:" >&5
19916 sed 's/^/| /' conftest.$ac_ext >&5
19918 ( exit $ac_status )
19919 ac_cv_header_stdc=no
19921 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19927 if test $ac_cv_header_stdc = yes; then
19929 cat >>confdefs.h <<\_ACEOF
19930 #define STDC_HEADERS 1
19935 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
19936 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
19937 if test "${ac_cv_header_time+set}" = set; then
19938 echo $ECHO_N "(cached) $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19941 #line $LINENO "configure"
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 #include <sys/types.h>
19948 #include <sys/time.h>
19954 if ((struct tm *) 0)
19960 rm -f conftest.$ac_objext
19961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19962 (eval $ac_compile) 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -s conftest.$ac_objext'
19967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19968 (eval $ac_try) 2>&5
19970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19971 (exit $ac_status); }; }; then
19972 ac_cv_header_time=yes
19974 echo "$as_me: failed program was:" >&5
19975 sed 's/^/| /' conftest.$ac_ext >&5
19977 ac_cv_header_time=no
19979 rm -f conftest.$ac_objext conftest.$ac_ext
19981 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
19982 echo "${ECHO_T}$ac_cv_header_time" >&6
19983 if test $ac_cv_header_time = yes; then
19985 cat >>confdefs.h <<\_ACEOF
19986 #define TIME_WITH_SYS_TIME 1
19991 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
19992 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
19993 if test "${ac_cv_header_sys_wait_h+set}" = set; then
19994 echo $ECHO_N "(cached) $ECHO_C" >&6
19996 cat >conftest.$ac_ext <<_ACEOF
19997 #line $LINENO "configure"
20000 cat confdefs.h >>conftest.$ac_ext
20001 cat >>conftest.$ac_ext <<_ACEOF
20002 /* end confdefs.h. */
20003 #include <sys/types.h>
20004 #include <sys/wait.h>
20005 #ifndef WEXITSTATUS
20006 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20022 rm -f conftest.$ac_objext
20023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20024 (eval $ac_compile) 2>&5
20026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20027 (exit $ac_status); } &&
20028 { ac_try='test -s conftest.$ac_objext'
20029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20030 (eval $ac_try) 2>&5
20032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20033 (exit $ac_status); }; }; then
20034 ac_cv_header_sys_wait_h=yes
20036 echo "$as_me: failed program was:" >&5
20037 sed 's/^/| /' conftest.$ac_ext >&5
20039 ac_cv_header_sys_wait_h=no
20041 rm -f conftest.$ac_objext conftest.$ac_ext
20043 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20044 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20045 if test $ac_cv_header_sys_wait_h = yes; then
20047 cat >>confdefs.h <<\_ACEOF
20048 #define HAVE_SYS_WAIT_H 1
20113 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20114 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20115 echo "$as_me:$LINENO: checking for $ac_header" >&5
20116 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20117 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20120 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20121 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20123 # Is the header compilable?
20124 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20125 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20126 cat >conftest.$ac_ext <<_ACEOF
20127 #line $LINENO "configure"
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 $ac_includes_default
20134 #include <$ac_header>
20136 rm -f conftest.$ac_objext
20137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20138 (eval $ac_compile) 2>&5
20140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20141 (exit $ac_status); } &&
20142 { ac_try='test -s conftest.$ac_objext'
20143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20144 (eval $ac_try) 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 ac_header_compiler=yes
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 ac_header_compiler=no
20155 rm -f conftest.$ac_objext conftest.$ac_ext
20156 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20157 echo "${ECHO_T}$ac_header_compiler" >&6
20159 # Is the header present?
20160 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20161 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20162 cat >conftest.$ac_ext <<_ACEOF
20163 #line $LINENO "configure"
20166 cat confdefs.h >>conftest.$ac_ext
20167 cat >>conftest.$ac_ext <<_ACEOF
20168 /* end confdefs.h. */
20169 #include <$ac_header>
20171 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20172 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20174 grep -v '^ *+' conftest.er1 >conftest.err
20176 cat conftest.err >&5
20177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20178 (exit $ac_status); } >/dev/null; then
20179 if test -s conftest.err; then
20180 ac_cpp_err=$ac_c_preproc_warn_flag
20187 if test -z "$ac_cpp_err"; then
20188 ac_header_preproc=yes
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 ac_header_preproc=no
20195 rm -f conftest.err conftest.$ac_ext
20196 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20197 echo "${ECHO_T}$ac_header_preproc" >&6
20199 # So? What about this header?
20200 case $ac_header_compiler:$ac_header_preproc in
20202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20205 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20208 ## ------------------------------------ ##
20209 ## Report this to bug-autoconf@gnu.org. ##
20210 ## ------------------------------------ ##
20213 sed "s/^/$as_me: WARNING: /" >&2
20216 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20217 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20218 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20219 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20220 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20221 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20224 ## ------------------------------------ ##
20225 ## Report this to bug-autoconf@gnu.org. ##
20226 ## ------------------------------------ ##
20229 sed "s/^/$as_me: WARNING: /" >&2
20232 echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20234 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 eval "$as_ac_Header=$ac_header_preproc"
20239 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20240 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20244 cat >>confdefs.h <<_ACEOF
20245 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20254 if test "${ac_cv_header_regex_h+set}" = set; then
20255 echo "$as_me:$LINENO: checking for regex.h" >&5
20256 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20257 if test "${ac_cv_header_regex_h+set}" = set; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20260 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20261 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20263 # Is the header compilable?
20264 echo "$as_me:$LINENO: checking regex.h usability" >&5
20265 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20266 cat >conftest.$ac_ext <<_ACEOF
20267 #line $LINENO "configure"
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20276 rm -f conftest.$ac_objext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20278 (eval $ac_compile) 2>&5
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); } &&
20282 { ac_try='test -s conftest.$ac_objext'
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_header_compiler=yes
20290 echo "$as_me: failed program was:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_header_compiler=no
20295 rm -f conftest.$ac_objext conftest.$ac_ext
20296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20297 echo "${ECHO_T}$ac_header_compiler" >&6
20299 # Is the header present?
20300 echo "$as_me:$LINENO: checking regex.h presence" >&5
20301 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20302 cat >conftest.$ac_ext <<_ACEOF
20303 #line $LINENO "configure"
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20314 grep -v '^ *+' conftest.er1 >conftest.err
20316 cat conftest.err >&5
20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20318 (exit $ac_status); } >/dev/null; then
20319 if test -s conftest.err; then
20320 ac_cpp_err=$ac_c_preproc_warn_flag
20327 if test -z "$ac_cpp_err"; then
20328 ac_header_preproc=yes
20330 echo "$as_me: failed program was:" >&5
20331 sed 's/^/| /' conftest.$ac_ext >&5
20333 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc in
20342 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20343 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20344 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20345 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20348 ## ------------------------------------ ##
20349 ## Report this to bug-autoconf@gnu.org. ##
20350 ## ------------------------------------ ##
20353 sed "s/^/$as_me: WARNING: /" >&2
20356 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20357 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20359 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20361 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20364 ## ------------------------------------ ##
20365 ## Report this to bug-autoconf@gnu.org. ##
20366 ## ------------------------------------ ##
20369 sed "s/^/$as_me: WARNING: /" >&2
20372 echo "$as_me:$LINENO: checking for regex.h" >&5
20373 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20374 if test "${ac_cv_header_regex_h+set}" = set; then
20375 echo $ECHO_N "(cached) $ECHO_C" >&6
20377 ac_cv_header_regex_h=$ac_header_preproc
20379 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20380 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20383 if test $ac_cv_header_regex_h = yes; then
20384 cat >>confdefs.h <<\_ACEOF
20385 #define HAVE_REGEX_H 1
20391 if test "x$ac_cv_header_regex_h" = "xyes"; then
20394 cat >conftest.$ac_ext <<_ACEOF
20395 #line $LINENO "configure"
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20402 #ifdef REG_EXTENDED
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408 $EGREP "yes" >/dev/null 2>&1; then
20409 cat >>confdefs.h <<\_ACEOF
20410 #define HAVE_REG_EXTENDED 1
20420 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
20422 cat >>confdefs.h <<\_ACEOF
20428 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
20430 cat >>confdefs.h <<\_ACEOF
20436 smart_try_dir="$OPENSSL_INCLUDE_DIR"
20437 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
20440 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
20441 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
20442 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
20447 old_CFLAGS="$CFLAGS"
20448 cat >conftest.$ac_ext <<_ACEOF
20449 #line $LINENO "configure"
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 #include <openssl/ssl.h>
20465 rm -f conftest.$ac_objext
20466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20467 (eval $ac_compile) 2>&5
20469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470 (exit $ac_status); } &&
20471 { ac_try='test -s conftest.$ac_objext'
20472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20473 (eval $ac_try) 2>&5
20475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20476 (exit $ac_status); }; }; then
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20484 rm -f conftest.$ac_objext conftest.$ac_ext
20486 if test "x$smart_include" = "x"; then
20489 if test "x$LOCATE" != "x"; then
20493 for x in `${LOCATE} $file 2>/dev/null`; do
20494 base=`echo $x | sed "s%/${file}%%"`
20495 if test "x$x" = "x$base"; then
20499 dir=`${DIRNAME} $x 2>/dev/null`
20500 exclude=`echo ${dir} | ${GREP} /home`
20501 if test "x$exclude" != "x"; then
20505 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
20506 if test "x$already" = "x"; then
20512 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
20515 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
20516 CFLAGS="$old_CFLAGS -I$try"
20518 cat >conftest.$ac_ext <<_ACEOF
20519 #line $LINENO "configure"
20522 cat confdefs.h >>conftest.$ac_ext
20523 cat >>conftest.$ac_ext <<_ACEOF
20524 /* end confdefs.h. */
20526 #include <openssl/ssl.h>
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try='test -s conftest.$ac_objext'
20542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20543 (eval $ac_try) 2>&5
20545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20546 (exit $ac_status); }; }; then
20547 smart_include="-I$try"
20549 echo "$as_me: failed program was:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20554 rm -f conftest.$ac_objext conftest.$ac_ext
20556 if test "x$smart_include" != "x"; then
20560 CFLAGS="$old_CFLAGS"
20563 if test "x$smart_include" != "x"; then
20564 echo "$as_me:$LINENO: result: yes" >&5
20565 echo "${ECHO_T}yes" >&6
20566 eval "ac_cv_header_$ac_safe=yes"
20567 CFLAGS="$old_CFLAGS $smart_include"
20568 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
20570 echo "$as_me:$LINENO: result: no" >&5
20571 echo "${ECHO_T}no" >&6
20576 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
20577 cat >>confdefs.h <<\_ACEOF
20578 #define HAVE_OPENSSL_SSL_H 1
20581 old_CPPFLAGS="$CPPFLAGS"
20582 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20583 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
20596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20597 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20598 echo "$as_me:$LINENO: checking for $ac_header" >&5
20599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20600 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20601 echo $ECHO_N "(cached) $ECHO_C" >&6
20603 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20604 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20606 # Is the header compilable?
20607 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20609 cat >conftest.$ac_ext <<_ACEOF
20610 #line $LINENO "configure"
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 $ac_includes_default
20617 #include <$ac_header>
20619 rm -f conftest.$ac_objext
20620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20621 (eval $ac_compile) 2>&5
20623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } &&
20625 { ac_try='test -s conftest.$ac_objext'
20626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20627 (eval $ac_try) 2>&5
20629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20630 (exit $ac_status); }; }; then
20631 ac_header_compiler=yes
20633 echo "$as_me: failed program was:" >&5
20634 sed 's/^/| /' conftest.$ac_ext >&5
20636 ac_header_compiler=no
20638 rm -f conftest.$ac_objext conftest.$ac_ext
20639 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20640 echo "${ECHO_T}$ac_header_compiler" >&6
20642 # Is the header present?
20643 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20644 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20645 cat >conftest.$ac_ext <<_ACEOF
20646 #line $LINENO "configure"
20649 cat confdefs.h >>conftest.$ac_ext
20650 cat >>conftest.$ac_ext <<_ACEOF
20651 /* end confdefs.h. */
20652 #include <$ac_header>
20654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20655 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20657 grep -v '^ *+' conftest.er1 >conftest.err
20659 cat conftest.err >&5
20660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20661 (exit $ac_status); } >/dev/null; then
20662 if test -s conftest.err; then
20663 ac_cpp_err=$ac_c_preproc_warn_flag
20670 if test -z "$ac_cpp_err"; then
20671 ac_header_preproc=yes
20673 echo "$as_me: failed program was:" >&5
20674 sed 's/^/| /' conftest.$ac_ext >&5
20676 ac_header_preproc=no
20678 rm -f conftest.err conftest.$ac_ext
20679 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20680 echo "${ECHO_T}$ac_header_preproc" >&6
20682 # So? What about this header?
20683 case $ac_header_compiler:$ac_header_preproc in
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20686 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20687 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20688 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20691 ## ------------------------------------ ##
20692 ## Report this to bug-autoconf@gnu.org. ##
20693 ## ------------------------------------ ##
20696 sed "s/^/$as_me: WARNING: /" >&2
20699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20703 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20704 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20707 ## ------------------------------------ ##
20708 ## Report this to bug-autoconf@gnu.org. ##
20709 ## ------------------------------------ ##
20712 sed "s/^/$as_me: WARNING: /" >&2
20715 echo "$as_me:$LINENO: checking for $ac_header" >&5
20716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20718 echo $ECHO_N "(cached) $ECHO_C" >&6
20720 eval "$as_ac_Header=$ac_header_preproc"
20722 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20723 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20726 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20727 cat >>confdefs.h <<_ACEOF
20728 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20735 CPPFLAGS="$old_CPPFLAGS"
20737 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
20738 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
20739 old_CPPFLAGS=$CPPFLAGS
20741 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
20742 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
20744 cat >conftest.$ac_ext <<_ACEOF
20745 #line $LINENO "configure"
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <openssl/crypto.h>
20752 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
20757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20758 $EGREP "yes" >/dev/null 2>&1; then
20763 if test "x$goodssl" != "xyes"; then
20764 echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6
20769 echo "$as_me:$LINENO: result: yes" >&5
20770 echo "${ECHO_T}yes" >&6
20772 # Look for the OpenSSL libraries.
20773 smart_try_dir=$OPENSSL_LIB_DIR
20776 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
20777 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
20778 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
20779 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
20785 LIBS="$LIBS -lcrypto"
20786 cat >conftest.$ac_ext <<_ACEOF
20787 #line $LINENO "configure"
20790 cat confdefs.h >>conftest.$ac_ext
20791 cat >>conftest.$ac_ext <<_ACEOF
20792 /* end confdefs.h. */
20793 extern char DH_new();
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804 (eval $ac_link) 2>&5
20806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } &&
20808 { ac_try='test -s conftest$ac_exeext'
20809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20810 (eval $ac_try) 2>&5
20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20813 (exit $ac_status); }; }; then
20814 smart_lib="-lcrypto"
20816 echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20820 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20822 if test "x$smart_lib" = "x"; then
20825 if test "x$LOCATE" != "x"; then
20827 file=libcrypto${libltdl_cv_shlibext}
20829 for x in `${LOCATE} $file 2>/dev/null`; do
20830 base=`echo $x | sed "s%/${file}%%"`
20831 if test "x$x" = "x$base"; then
20835 dir=`${DIRNAME} $x 2>/dev/null`
20836 exclude=`echo ${dir} | ${GREP} /home`
20837 if test "x$exclude" != "x"; then
20841 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
20842 if test "x$already" = "x"; then
20848 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
20852 if test "x$LOCATE" != "x"; then
20856 for x in `${LOCATE} $file 2>/dev/null`; do
20857 base=`echo $x | sed "s%/${file}%%"`
20858 if test "x$x" = "x$base"; then
20862 dir=`${DIRNAME} $x 2>/dev/null`
20863 exclude=`echo ${dir} | ${GREP} /home`
20864 if test "x$exclude" != "x"; then
20868 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
20869 if test "x$already" = "x"; then
20875 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
20878 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
20879 LIBS="$old_LIBS -L$try -lcrypto"
20881 cat >conftest.$ac_ext <<_ACEOF
20882 #line $LINENO "configure"
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 extern char DH_new();
20897 rm -f conftest.$ac_objext conftest$ac_exeext
20898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20899 (eval $ac_link) 2>&5
20901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20902 (exit $ac_status); } &&
20903 { ac_try='test -s conftest$ac_exeext'
20904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20905 (eval $ac_try) 2>&5
20907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20908 (exit $ac_status); }; }; then
20909 smart_lib="-L$try -lcrypto"
20911 echo "$as_me: failed program was:" >&5
20912 sed 's/^/| /' conftest.$ac_ext >&5
20915 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20916 if test "x$smart_lib" != "x"; then
20923 if test "x$smart_lib" != "x"; then
20924 echo "$as_me:$LINENO: result: yes" >&5
20925 echo "${ECHO_T}yes" >&6
20926 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
20927 LIBS="$old_LIBS $smart_lib"
20928 SMART_LIBS="$SMART_LIBS $smart_lib"
20930 echo "$as_me:$LINENO: result: no" >&5
20931 echo "${ECHO_T}no" >&6
20934 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
20937 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
20938 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
20939 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
20940 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
20947 cat >conftest.$ac_ext <<_ACEOF
20948 #line $LINENO "configure"
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20954 extern char SSL_new();
20963 rm -f conftest.$ac_objext conftest$ac_exeext
20964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20965 (eval $ac_link) 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); } &&
20969 { ac_try='test -s conftest$ac_exeext'
20970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20971 (eval $ac_try) 2>&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); }; }; then
20977 echo "$as_me: failed program was:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20981 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
20983 if test "x$smart_lib" = "x"; then
20986 if test "x$LOCATE" != "x"; then
20988 file=libssl${libltdl_cv_shlibext}
20990 for x in `${LOCATE} $file 2>/dev/null`; do
20991 base=`echo $x | sed "s%/${file}%%"`
20992 if test "x$x" = "x$base"; then
20996 dir=`${DIRNAME} $x 2>/dev/null`
20997 exclude=`echo ${dir} | ${GREP} /home`
20998 if test "x$exclude" != "x"; then
21002 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21003 if test "x$already" = "x"; then
21009 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21013 if test "x$LOCATE" != "x"; then
21017 for x in `${LOCATE} $file 2>/dev/null`; do
21018 base=`echo $x | sed "s%/${file}%%"`
21019 if test "x$x" = "x$base"; then
21023 dir=`${DIRNAME} $x 2>/dev/null`
21024 exclude=`echo ${dir} | ${GREP} /home`
21025 if test "x$exclude" != "x"; then
21029 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21030 if test "x$already" = "x"; then
21036 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21039 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21040 LIBS="$old_LIBS -L$try -lssl"
21042 cat >conftest.$ac_ext <<_ACEOF
21043 #line $LINENO "configure"
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 extern char SSL_new();
21058 rm -f conftest.$ac_objext conftest$ac_exeext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21060 (eval $ac_link) 2>&5
21062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21063 (exit $ac_status); } &&
21064 { ac_try='test -s conftest$ac_exeext'
21065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21066 (eval $ac_try) 2>&5
21068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21069 (exit $ac_status); }; }; then
21070 smart_lib="-L$try -lssl"
21072 echo "$as_me: failed program was:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21076 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21077 if test "x$smart_lib" != "x"; then
21084 if test "x$smart_lib" != "x"; then
21085 echo "$as_me:$LINENO: result: yes" >&5
21086 echo "${ECHO_T}yes" >&6
21087 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21088 LIBS="$old_LIBS $smart_lib"
21089 SMART_LIBS="$SMART_LIBS $smart_lib"
21091 echo "$as_me:$LINENO: result: no" >&5
21092 echo "${ECHO_T}no" >&6
21095 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21096 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21097 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21099 if test "x$OPENSSL_LIB_DIR" != "x"; then
21100 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21102 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21109 CPPFLAGS=$old_CPPFLAGS
21114 export OPENSSL_LIBS
21117 echo "$as_me:$LINENO: checking for off_t" >&5
21118 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21119 if test "${ac_cv_type_off_t+set}" = set; then
21120 echo $ECHO_N "(cached) $ECHO_C" >&6
21122 cat >conftest.$ac_ext <<_ACEOF
21123 #line $LINENO "configure"
21126 cat confdefs.h >>conftest.$ac_ext
21127 cat >>conftest.$ac_ext <<_ACEOF
21128 /* end confdefs.h. */
21129 $ac_includes_default
21135 if (sizeof (off_t))
21141 rm -f conftest.$ac_objext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143 (eval $ac_compile) 2>&5
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); } &&
21147 { ac_try='test -s conftest.$ac_objext'
21148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21149 (eval $ac_try) 2>&5
21151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21152 (exit $ac_status); }; }; then
21153 ac_cv_type_off_t=yes
21155 echo "$as_me: failed program was:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_cv_type_off_t=no
21160 rm -f conftest.$ac_objext conftest.$ac_ext
21162 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21163 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21164 if test $ac_cv_type_off_t = yes; then
21168 cat >>confdefs.h <<_ACEOF
21174 echo "$as_me:$LINENO: checking for pid_t" >&5
21175 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21176 if test "${ac_cv_type_pid_t+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21179 cat >conftest.$ac_ext <<_ACEOF
21180 #line $LINENO "configure"
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21192 if (sizeof (pid_t))
21198 rm -f conftest.$ac_objext
21199 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21200 (eval $ac_compile) 2>&5
21202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21203 (exit $ac_status); } &&
21204 { ac_try='test -s conftest.$ac_objext'
21205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21206 (eval $ac_try) 2>&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); }; }; then
21210 ac_cv_type_pid_t=yes
21212 echo "$as_me: failed program was:" >&5
21213 sed 's/^/| /' conftest.$ac_ext >&5
21215 ac_cv_type_pid_t=no
21217 rm -f conftest.$ac_objext conftest.$ac_ext
21219 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21220 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21221 if test $ac_cv_type_pid_t = yes; then
21225 cat >>confdefs.h <<_ACEOF
21231 echo "$as_me:$LINENO: checking for size_t" >&5
21232 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21233 if test "${ac_cv_type_size_t+set}" = set; then
21234 echo $ECHO_N "(cached) $ECHO_C" >&6
21236 cat >conftest.$ac_ext <<_ACEOF
21237 #line $LINENO "configure"
21240 cat confdefs.h >>conftest.$ac_ext
21241 cat >>conftest.$ac_ext <<_ACEOF
21242 /* end confdefs.h. */
21243 $ac_includes_default
21249 if (sizeof (size_t))
21255 rm -f conftest.$ac_objext
21256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21257 (eval $ac_compile) 2>&5
21259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21260 (exit $ac_status); } &&
21261 { ac_try='test -s conftest.$ac_objext'
21262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21263 (eval $ac_try) 2>&5
21265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21266 (exit $ac_status); }; }; then
21267 ac_cv_type_size_t=yes
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21272 ac_cv_type_size_t=no
21274 rm -f conftest.$ac_objext conftest.$ac_ext
21276 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21277 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21278 if test $ac_cv_type_size_t = yes; then
21282 cat >>confdefs.h <<_ACEOF
21283 #define size_t unsigned
21288 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21289 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21290 if test "${ac_cv_type_uid_t+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 cat >conftest.$ac_ext <<_ACEOF
21294 #line $LINENO "configure"
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 #include <sys/types.h>
21303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21304 $EGREP "uid_t" >/dev/null 2>&1; then
21305 ac_cv_type_uid_t=yes
21307 ac_cv_type_uid_t=no
21312 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21313 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21314 if test $ac_cv_type_uid_t = no; then
21316 cat >>confdefs.h <<\_ACEOF
21321 cat >>confdefs.h <<\_ACEOF
21329 echo "$as_me:$LINENO: checking for socklen_t" >&5
21330 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21331 if test "${ac_cv_type_socklen_t+set}" = set; then
21332 echo $ECHO_N "(cached) $ECHO_C" >&6
21334 ac_cv_type_socklen_t=no
21335 cat >conftest.$ac_ext <<_ACEOF
21336 #line $LINENO "configure"
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #ifdef HAVE_SYS_TYPES_H
21343 #include <sys/types.h>
21345 #ifdef HAVE_SYS_SOCKET_H
21346 #include <sys/socket.h>
21357 rm -f conftest.$ac_objext
21358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21359 (eval $ac_compile) 2>&5
21361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21362 (exit $ac_status); } &&
21363 { ac_try='test -s conftest.$ac_objext'
21364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21365 (eval $ac_try) 2>&5
21367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21368 (exit $ac_status); }; }; then
21369 ac_cv_type_socklen_t=yes
21371 echo "$as_me: failed program was:" >&5
21372 sed 's/^/| /' conftest.$ac_ext >&5
21375 rm -f conftest.$ac_objext conftest.$ac_ext
21379 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21380 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21382 if test "$ac_cv_type_socklen_t" != "yes"; then
21383 cat >>confdefs.h <<\_ACEOF
21384 #define socklen_t int
21391 echo "$as_me:$LINENO: checking for uint8_t" >&5
21392 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21393 if test "${ac_cv_type_uint8_t+set}" = set; then
21394 echo $ECHO_N "(cached) $ECHO_C" >&6
21396 ac_cv_type_uint8_t=no
21397 cat >conftest.$ac_ext <<_ACEOF
21398 #line $LINENO "configure"
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 #ifdef HAVE_INTTYPES_H
21405 #include <inttypes.h>
21407 #ifdef HAVE_STDINT_H
21408 #include <stdint.h>
21419 rm -f conftest.$ac_objext
21420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21421 (eval $ac_compile) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_type_uint8_t=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21437 rm -f conftest.$ac_objext conftest.$ac_ext
21441 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21442 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21444 if test "$ac_cv_type_uint8_t" != "yes"; then
21445 cat >>confdefs.h <<\_ACEOF
21446 #define uint8_t unsigned char
21453 echo "$as_me:$LINENO: checking for uint16_t" >&5
21454 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21455 if test "${ac_cv_type_uint16_t+set}" = set; then
21456 echo $ECHO_N "(cached) $ECHO_C" >&6
21458 ac_cv_type_uint16_t=no
21459 cat >conftest.$ac_ext <<_ACEOF
21460 #line $LINENO "configure"
21463 cat confdefs.h >>conftest.$ac_ext
21464 cat >>conftest.$ac_ext <<_ACEOF
21465 /* end confdefs.h. */
21466 #ifdef HAVE_INTTYPES_H
21467 #include <inttypes.h>
21469 #ifdef HAVE_STDINT_H
21470 #include <stdint.h>
21481 rm -f conftest.$ac_objext
21482 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21483 (eval $ac_compile) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); } &&
21487 { ac_try='test -s conftest.$ac_objext'
21488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21489 (eval $ac_try) 2>&5
21491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21492 (exit $ac_status); }; }; then
21493 ac_cv_type_uint16_t=yes
21495 echo "$as_me: failed program was:" >&5
21496 sed 's/^/| /' conftest.$ac_ext >&5
21499 rm -f conftest.$ac_objext conftest.$ac_ext
21503 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21504 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21506 if test "$ac_cv_type_uint16_t" != "yes"; then
21507 cat >>confdefs.h <<\_ACEOF
21508 #define uint16_t unsigned short
21515 echo "$as_me:$LINENO: checking for uint32_t" >&5
21516 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21517 if test "${ac_cv_type_uint32_t+set}" = set; then
21518 echo $ECHO_N "(cached) $ECHO_C" >&6
21520 ac_cv_type_uint32_t=no
21521 cat >conftest.$ac_ext <<_ACEOF
21522 #line $LINENO "configure"
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #ifdef HAVE_INTTYPES_H
21529 #include <inttypes.h>
21531 #ifdef HAVE_STDINT_H
21532 #include <stdint.h>
21543 rm -f conftest.$ac_objext
21544 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21545 (eval $ac_compile) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_type_uint32_t=yes
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21561 rm -f conftest.$ac_objext conftest.$ac_ext
21565 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21566 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21568 if test "$ac_cv_type_uint32_t" != "yes"; then
21569 cat >>confdefs.h <<\_ACEOF
21570 #define uint32_t unsigned int
21625 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21626 echo "$as_me:$LINENO: checking for $ac_func" >&5
21627 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21628 if eval "test \"\${$as_ac_var+set}\" = set"; then
21629 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 cat >conftest.$ac_ext <<_ACEOF
21632 #line $LINENO "configure"
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 /* System header to define __stub macros and hopefully few prototypes,
21639 which can conflict with char $ac_func (); below.
21640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21641 <limits.h> exists even on freestanding compilers. */
21643 # include <limits.h>
21645 # include <assert.h>
21647 /* Override any gcc2 internal prototype to avoid an error. */
21652 /* We use char because int might match the return type of a gcc2
21653 builtin and then its argument prototype would still apply. */
21655 /* The GNU C library defines this for functions which it implements
21656 to always fail with ENOSYS. Some functions are actually named
21657 something starting with __ and the normal name is an alias. */
21658 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21661 char (*f) () = $ac_func;
21670 return f != $ac_func;
21675 rm -f conftest.$ac_objext conftest$ac_exeext
21676 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21677 (eval $ac_link) 2>&5
21679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21680 (exit $ac_status); } &&
21681 { ac_try='test -s conftest$ac_exeext'
21682 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21683 (eval $ac_try) 2>&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); }; }; then
21687 eval "$as_ac_var=yes"
21689 echo "$as_me: failed program was:" >&5
21690 sed 's/^/| /' conftest.$ac_ext >&5
21692 eval "$as_ac_var=no"
21694 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
21696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21697 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21698 if test `eval echo '${'$as_ac_var'}'` = yes; then
21699 cat >>confdefs.h <<_ACEOF
21700 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21717 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21718 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21719 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21720 echo $ECHO_N "(cached) $ECHO_C" >&6
21722 cat >conftest.$ac_ext <<_ACEOF
21723 #line $LINENO "configure"
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21731 #include <string.h>
21732 #ifdef HAVE_UNISTD_H
21733 #include <unistd.h>
21735 #ifdef HAVE_CRYPT_H
21738 #ifdef HAVE_ERRNO_H
21741 #ifdef HAVE_RESOURCE_H
21742 #include <resource.h>
21744 #ifdef HAVE_GETOPT_H
21745 #include <getopt.h>
21747 #ifdef HAVE_MALLOC_H
21748 #include <malloc.h>
21753 #ifdef HAVE_UTMPX_H
21756 #ifdef HAVE_SYS_SELECT_H
21757 #include <sys/select.h>
21759 #ifdef HAVE_DLFCN_H
21762 #ifdef HAVE_REGEX_H
21765 #ifdef HAVE_SYSLOG_H
21766 #include <syslog.h>
21768 #ifdef HAVE_INTTYPES_H
21769 #include <inttypes.h>
21771 #ifdef HAVE_STDINT_H
21772 #include <stdint.h>
21774 #ifdef HAVE_ARPA_INET_H
21775 #include <arpa/inet.h>
21781 char *(*pfn) = (char *(*)) $ac_func
21786 rm -f conftest.$ac_objext
21787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21788 (eval $ac_compile) 2>&5
21790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21791 (exit $ac_status); } &&
21792 { ac_try='test -s conftest.$ac_objext'
21793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21794 (eval $ac_try) 2>&5
21796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21797 (exit $ac_status); }; }; then
21798 eval "radius_cv_decl_needed_$ac_func=no"
21800 echo "$as_me: failed program was:" >&5
21801 sed 's/^/| /' conftest.$ac_ext >&5
21803 eval "radius_cv_decl_needed_$ac_func=yes"
21805 rm -f conftest.$ac_objext conftest.$ac_ext
21808 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
21809 echo "$as_me:$LINENO: result: yes" >&5
21810 echo "${ECHO_T}yes" >&6
21811 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
21812 cat >>confdefs.h <<_ACEOF
21813 #define $radius_tr_decl 1
21817 echo "$as_me:$LINENO: result: no" >&5
21818 echo "${ECHO_T}no" >&6
21824 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
21825 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
21826 if test "${ac_cv_type_signal+set}" = set; then
21827 echo $ECHO_N "(cached) $ECHO_C" >&6
21829 cat >conftest.$ac_ext <<_ACEOF
21830 #line $LINENO "configure"
21833 cat confdefs.h >>conftest.$ac_ext
21834 cat >>conftest.$ac_ext <<_ACEOF
21835 /* end confdefs.h. */
21836 #include <sys/types.h>
21837 #include <signal.h>
21842 extern "C" void (*signal (int, void (*)(int)))(int);
21844 void (*signal ()) ();
21855 rm -f conftest.$ac_objext
21856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21857 (eval $ac_compile) 2>&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -s conftest.$ac_objext'
21862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21863 (eval $ac_try) 2>&5
21865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21866 (exit $ac_status); }; }; then
21867 ac_cv_type_signal=void
21869 echo "$as_me: failed program was:" >&5
21870 sed 's/^/| /' conftest.$ac_ext >&5
21872 ac_cv_type_signal=int
21874 rm -f conftest.$ac_objext conftest.$ac_ext
21876 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
21877 echo "${ECHO_T}$ac_cv_type_signal" >&6
21879 cat >>confdefs.h <<_ACEOF
21880 #define RETSIGTYPE $ac_cv_type_signal
21885 if test "x$ac_cv_header_utmpx_h" = "xyes"
21888 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
21889 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
21892 cat >conftest.$ac_ext <<_ACEOF
21893 #line $LINENO "configure"
21896 cat confdefs.h >>conftest.$ac_ext
21897 cat >>conftest.$ac_ext <<_ACEOF
21898 /* end confdefs.h. */
21902 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21908 int foo = offsetof(struct utmpx, ut_xtime)
21913 rm -f conftest.$ac_objext
21914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21915 (eval $ac_compile) 2>&5
21917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21918 (exit $ac_status); } &&
21919 { ac_try='test -s conftest.$ac_objext'
21920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21921 (eval $ac_try) 2>&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); }; }; then
21927 echo "$as_me: failed program was:" >&5
21928 sed 's/^/| /' conftest.$ac_ext >&5
21932 rm -f conftest.$ac_objext conftest.$ac_ext
21934 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
21935 if test "x$has_element" != "x"; then
21936 echo "$as_me:$LINENO: result: yes" >&5
21937 echo "${ECHO_T}yes" >&6
21938 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
21940 echo "$as_me:$LINENO: result: no" >&5
21941 echo "${ECHO_T}no" >&6
21942 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
21945 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
21947 cat >>confdefs.h <<\_ACEOF
21948 #define ut_xtime ut_tv.tv_sec
21955 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
21956 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
21959 cat >conftest.$ac_ext <<_ACEOF
21960 #line $LINENO "configure"
21963 cat confdefs.h >>conftest.$ac_ext
21964 cat >>conftest.$ac_ext <<_ACEOF
21965 /* end confdefs.h. */
21967 #include <netinet/in.h>
21969 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
21975 int foo = offsetof(struct in_pktinfo, ipi_addr)
21980 rm -f conftest.$ac_objext
21981 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21982 (eval $ac_compile) 2>&5
21984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21985 (exit $ac_status); } &&
21986 { ac_try='test -s conftest.$ac_objext'
21987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21988 (eval $ac_try) 2>&5
21990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21991 (exit $ac_status); }; }; then
21994 echo "$as_me: failed program was:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21999 rm -f conftest.$ac_objext conftest.$ac_ext
22001 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22002 if test "x$has_element" != "x"; then
22003 echo "$as_me:$LINENO: result: yes" >&5
22004 echo "${ECHO_T}yes" >&6
22005 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22007 echo "$as_me:$LINENO: result: no" >&5
22008 echo "${ECHO_T}no" >&6
22009 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22012 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22014 cat >>confdefs.h <<\_ACEOF
22015 #define HAVE_IP_PKTINFO 1
22021 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22022 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22023 if test "${ac_cv_c_const+set}" = set; then
22024 echo $ECHO_N "(cached) $ECHO_C" >&6
22026 cat >conftest.$ac_ext <<_ACEOF
22027 #line $LINENO "configure"
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h. */
22037 /* FIXME: Include the comments suggested by Paul. */
22038 #ifndef __cplusplus
22039 /* Ultrix mips cc rejects this. */
22040 typedef int charset[2];
22042 /* SunOS 4.1.1 cc rejects this. */
22043 char const *const *ccp;
22045 /* NEC SVR4.0.2 mips cc rejects this. */
22046 struct point {int x, y;};
22047 static struct point const zero = {0,0};
22048 /* AIX XL C 1.02.0.0 rejects this.
22049 It does not let you subtract one const X* pointer from another in
22050 an arm of an if-expression whose if-part is not a constant
22052 const char *g = "string";
22053 ccp = &g + (g ? g-g : 0);
22054 /* HPUX 7.0 cc rejects these. */
22057 ccp = (char const *const *) p;
22058 { /* SCO 3.2v4 cc rejects this. */
22060 char const *s = 0 ? (char *) 0 : (char const *) 0;
22064 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22065 int x[] = {25, 17};
22066 const int *foo = &x[0];
22069 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22070 typedef const int *iptr;
22074 { /* AIX XL C 1.02.0.0 rejects this saying
22075 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22076 struct s { int j; const int *ap[3]; };
22077 struct s *b; b->j = 5;
22079 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22080 const int foo = 10;
22088 rm -f conftest.$ac_objext
22089 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22090 (eval $ac_compile) 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); } &&
22094 { ac_try='test -s conftest.$ac_objext'
22095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22096 (eval $ac_try) 2>&5
22098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22099 (exit $ac_status); }; }; then
22102 echo "$as_me: failed program was:" >&5
22103 sed 's/^/| /' conftest.$ac_ext >&5
22107 rm -f conftest.$ac_objext conftest.$ac_ext
22109 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22110 echo "${ECHO_T}$ac_cv_c_const" >&6
22111 if test $ac_cv_c_const = no; then
22113 cat >>confdefs.h <<\_ACEOF
22120 echo "$as_me:$LINENO: checking type of OS" >&5
22121 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22123 echo "$as_me:$LINENO: result: $OS" >&5
22124 echo "${ECHO_T}$OS" >&6
22125 if test "$OS" = "OS/2"; then
22132 if test "x$GCC" = "xyes"; then
22133 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22136 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22137 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22138 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22139 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22140 CFLAGS="$CFLAGS $devflags"
22142 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22143 echo "${ECHO_T}yes. Using $devflags" >&6
22146 CFLAGS="$CFLAGS -DNDEBUG"
22148 echo "$as_me:$LINENO: result: no." >&5
22149 echo "${ECHO_T}no." >&6
22153 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22154 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22155 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22156 echo $ECHO_N "(cached) $ECHO_C" >&6
22158 ac_check_lib_save_LIBS=$LIBS
22159 LIBS="-lcrypt $LIBS"
22160 cat >conftest.$ac_ext <<_ACEOF
22161 #line $LINENO "configure"
22164 cat confdefs.h >>conftest.$ac_ext
22165 cat >>conftest.$ac_ext <<_ACEOF
22166 /* end confdefs.h. */
22168 /* Override any gcc2 internal prototype to avoid an error. */
22172 /* We use char because int might match the return type of a gcc2
22173 builtin and then its argument prototype would still apply. */
22183 rm -f conftest.$ac_objext conftest$ac_exeext
22184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22185 (eval $ac_link) 2>&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
22189 { ac_try='test -s conftest$ac_exeext'
22190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22191 (eval $ac_try) 2>&5
22193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); }; }; then
22195 ac_cv_lib_crypt_crypt=yes
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22200 ac_cv_lib_crypt_crypt=no
22202 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22203 LIBS=$ac_check_lib_save_LIBS
22205 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22206 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22207 if test $ac_cv_lib_crypt_crypt = yes; then
22212 if test "$CRYPTLIB" != ""; then
22213 cat >>confdefs.h <<\_ACEOF
22214 #define HAVE_CRYPT 1
22218 echo "$as_me:$LINENO: checking for crypt" >&5
22219 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22220 if test "${ac_cv_func_crypt+set}" = set; then
22221 echo $ECHO_N "(cached) $ECHO_C" >&6
22223 cat >conftest.$ac_ext <<_ACEOF
22224 #line $LINENO "configure"
22227 cat confdefs.h >>conftest.$ac_ext
22228 cat >>conftest.$ac_ext <<_ACEOF
22229 /* end confdefs.h. */
22230 /* System header to define __stub macros and hopefully few prototypes,
22231 which can conflict with char crypt (); below.
22232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22233 <limits.h> exists even on freestanding compilers. */
22235 # include <limits.h>
22237 # include <assert.h>
22239 /* Override any gcc2 internal prototype to avoid an error. */
22244 /* We use char because int might match the return type of a gcc2
22245 builtin and then its argument prototype would still apply. */
22247 /* The GNU C library defines this for functions which it implements
22248 to always fail with ENOSYS. Some functions are actually named
22249 something starting with __ and the normal name is an alias. */
22250 #if defined (__stub_crypt) || defined (__stub___crypt)
22253 char (*f) () = crypt;
22267 rm -f conftest.$ac_objext conftest$ac_exeext
22268 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22269 (eval $ac_link) 2>&5
22271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22272 (exit $ac_status); } &&
22273 { ac_try='test -s conftest$ac_exeext'
22274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22275 (eval $ac_try) 2>&5
22277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22278 (exit $ac_status); }; }; then
22279 ac_cv_func_crypt=yes
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22284 ac_cv_func_crypt=no
22286 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22288 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22289 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22290 if test $ac_cv_func_crypt = yes; then
22291 cat >>confdefs.h <<\_ACEOF
22292 #define HAVE_CRYPT 1
22299 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22300 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22301 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22302 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 ac_check_lib_save_LIBS=$LIBS
22305 LIBS="-lcipher $LIBS"
22306 cat >conftest.$ac_ext <<_ACEOF
22307 #line $LINENO "configure"
22310 cat confdefs.h >>conftest.$ac_ext
22311 cat >>conftest.$ac_ext <<_ACEOF
22312 /* end confdefs.h. */
22314 /* Override any gcc2 internal prototype to avoid an error. */
22318 /* We use char because int might match the return type of a gcc2
22319 builtin and then its argument prototype would still apply. */
22329 rm -f conftest.$ac_objext conftest$ac_exeext
22330 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22331 (eval $ac_link) 2>&5
22333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22334 (exit $ac_status); } &&
22335 { ac_try='test -s conftest$ac_exeext'
22336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22337 (eval $ac_try) 2>&5
22339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 ac_cv_lib_cipher_setkey=yes
22343 echo "$as_me: failed program was:" >&5
22344 sed 's/^/| /' conftest.$ac_ext >&5
22346 ac_cv_lib_cipher_setkey=no
22348 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22349 LIBS=$ac_check_lib_save_LIBS
22351 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22352 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22353 if test $ac_cv_lib_cipher_setkey = yes; then
22354 CRYPTLIB="${CRYPTLIB} -lcipher"
22360 if test "x$WITH_SNMP" = "xyes"; then
22365 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22366 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22368 cat >conftest.$ac_ext <<_ACEOF
22369 #line $LINENO "configure"
22372 cat confdefs.h >>conftest.$ac_ext
22373 cat >>conftest.$ac_ext <<_ACEOF
22374 /* end confdefs.h. */
22376 #ifdef HAVE_SYS_TYPES_H
22377 #include <sys/types.h>
22379 #ifdef HAVE_STDINT_H
22380 #include <stdint.h>
22382 #ifdef HAVE_STDIO_H
22385 #ifdef HAVE_NETDB_H
22388 #ifdef HAVE_UNISTD_H
22389 #include <unistd.h>
22391 #include <ucd-snmp/asn1.h>
22392 #include <ucd-snmp/snmp.h>
22393 #include <ucd-snmp/snmp_impl.h>
22402 rm -f conftest.$ac_objext
22403 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22404 (eval $ac_compile) 2>&5
22406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22407 (exit $ac_status); } &&
22408 { ac_try='test -s conftest.$ac_objext'
22409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22410 (eval $ac_try) 2>&5
22412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22413 (exit $ac_status); }; }; then
22414 SNMP_INCLUDE="";ucdsnmp=yes
22416 echo "$as_me: failed program was:" >&5
22417 sed 's/^/| /' conftest.$ac_ext >&5
22421 rm -f conftest.$ac_objext conftest.$ac_ext
22423 if test "x$ucdsnmp" = "x"; then
22424 old_CFLAGS="$CFLAGS"
22425 for try in /usr/include /usr/local/include $snmp_include_dir; do
22426 CFLAGS="$old_CFLAGS -I$try"
22427 cat >conftest.$ac_ext <<_ACEOF
22428 #line $LINENO "configure"
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22435 #ifdef HAVE_SYS_TYPES_H
22436 #include <sys/types.h>
22438 #ifdef HAVE_STDINT_H
22439 #include <stdint.h>
22441 #ifdef HAVE_STDIO_H
22444 #ifdef HAVE_NETDB_H
22447 #ifdef HAVE_UNISTD_H
22448 #include <unistd.h>
22450 #include <ucd-snmp/asn1.h>
22451 #include <ucd-snmp/snmp.h>
22452 #include <ucd-snmp/snmp_impl.h>
22461 rm -f conftest.$ac_objext
22462 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22463 (eval $ac_compile) 2>&5
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); } &&
22467 { ac_try='test -s conftest.$ac_objext'
22468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22469 (eval $ac_try) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); }; }; then
22473 SNMP_INCLUDE="-I$try";ucdsnmp=yes
22475 echo "$as_me: failed program was:" >&5
22476 sed 's/^/| /' conftest.$ac_ext >&5
22480 rm -f conftest.$ac_objext conftest.$ac_ext
22481 if test "x$ucdsnmp" != "x"; then
22485 CFLAGS="$old_CFLAGS"
22488 if test "x$ucdsnmp" = "x"; then
22489 old_CFLAGS="$CFLAGS"
22490 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
22491 CFLAGS="$old_CFLAGS -I$try"
22492 cat >conftest.$ac_ext <<_ACEOF
22493 #line $LINENO "configure"
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22500 #ifdef HAVE_SYS_TYPES_H
22501 #include <sys/types.h>
22503 #ifdef HAVE_STDINT_H
22504 #include <stdint.h>
22506 #ifdef HAVE_STDIO_H
22509 #ifdef HAVE_NETDB_H
22512 #ifdef HAVE_UNISTD_H
22513 #include <unistd.h>
22517 #include <snmp_impl.h>
22526 rm -f conftest.$ac_objext
22527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22528 (eval $ac_compile) 2>&5
22530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22531 (exit $ac_status); } &&
22532 { ac_try='test -s conftest.$ac_objext'
22533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22534 (eval $ac_try) 2>&5
22536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22537 (exit $ac_status); }; }; then
22538 SNMP_INCLUDE="";ucdsnmp=no
22540 echo "$as_me: failed program was:" >&5
22541 sed 's/^/| /' conftest.$ac_ext >&5
22545 rm -f conftest.$ac_objext conftest.$ac_ext
22546 if test "x$ucdsnmp" != "x"; then
22550 CFLAGS="$old_CFLAGS"
22553 if test "x$ucdsnmp" = "x"; then
22554 old_CFLAGS="$CFLAGS"
22555 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
22556 CFLAGS="$old_CFLAGS -I$try"
22557 cat >conftest.$ac_ext <<_ACEOF
22558 #line $LINENO "configure"
22561 cat confdefs.h >>conftest.$ac_ext
22562 cat >>conftest.$ac_ext <<_ACEOF
22563 /* end confdefs.h. */
22565 #ifdef HAVE_SYS_TYPES_H
22566 #include <sys/types.h>
22568 #ifdef HAVE_STDINT_H
22569 #include <stdint.h>
22571 #ifdef HAVE_STDIO_H
22574 #ifdef HAVE_NETDB_H
22577 #ifdef HAVE_UNISTD_H
22578 #include <unistd.h>
22582 #include <snmp_impl.h>
22591 rm -f conftest.$ac_objext
22592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22593 (eval $ac_compile) 2>&5
22595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22596 (exit $ac_status); } &&
22597 { ac_try='test -s conftest.$ac_objext'
22598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22599 (eval $ac_try) 2>&5
22601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22602 (exit $ac_status); }; }; then
22603 SNMP_INCLUDE="-I$try";ucdsnmp=no
22605 echo "$as_me: failed program was:" >&5
22606 sed 's/^/| /' conftest.$ac_ext >&5
22610 rm -f conftest.$ac_objext conftest.$ac_ext
22611 if test "x$ucdsnmp" != "x"; then
22615 CFLAGS="$old_CFLAGS"
22618 if test "x$ucdsnmp" = "x"; then
22619 echo "$as_me:$LINENO: result: no" >&5
22620 echo "${ECHO_T}no" >&6
22622 if test "x$ucdsnmp" = "xyes"; then
22623 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22624 echo "${ECHO_T}(ucd-snmp)yes" >&6
22625 cat >>confdefs.h <<\_ACEOF
22626 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22630 echo "$as_me:$LINENO: result: yes" >&5
22631 echo "${ECHO_T}yes" >&6
22632 cat >>confdefs.h <<\_ACEOF
22633 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22637 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22638 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22641 LIBS="$old_LIBS -lsnmp"
22642 cat >conftest.$ac_ext <<_ACEOF
22643 #line $LINENO "configure"
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 extern char snmp_build_var_op();
22653 snmp_build_var_op()
22658 rm -f conftest.$ac_objext conftest$ac_exeext
22659 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22660 (eval $ac_link) 2>&5
22662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22663 (exit $ac_status); } &&
22664 { ac_try='test -s conftest$ac_exeext'
22665 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22666 (eval $ac_try) 2>&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); }; }; then
22672 echo "$as_me: failed program was:" >&5
22673 sed 's/^/| /' conftest.$ac_ext >&5
22677 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22679 if test "x$SNMP_LIBS" = "x"; then
22680 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
22681 LIBS="$old_LIBS -L$try -lsnmp"
22682 cat >conftest.$ac_ext <<_ACEOF
22683 #line $LINENO "configure"
22686 cat confdefs.h >>conftest.$ac_ext
22687 cat >>conftest.$ac_ext <<_ACEOF
22688 /* end confdefs.h. */
22689 extern char snmp_build_var_op();
22693 snmp_build_var_op()
22698 rm -f conftest.$ac_objext conftest$ac_exeext
22699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22700 (eval $ac_link) 2>&5
22702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703 (exit $ac_status); } &&
22704 { ac_try='test -s conftest$ac_exeext'
22705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22706 (eval $ac_try) 2>&5
22708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); }; }; then
22710 SNMP_LIBS="-L$try -lsnmp"
22712 echo "$as_me: failed program was:" >&5
22713 sed 's/^/| /' conftest.$ac_ext >&5
22717 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22718 if test "x$SNMP_LIBS" != "x"; then
22721 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
22722 cat >conftest.$ac_ext <<_ACEOF
22723 #line $LINENO "configure"
22726 cat confdefs.h >>conftest.$ac_ext
22727 cat >>conftest.$ac_ext <<_ACEOF
22728 /* end confdefs.h. */
22729 extern char snmp_build_var_op();
22733 snmp_build_var_op()
22738 rm -f conftest.$ac_objext conftest$ac_exeext
22739 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22740 (eval $ac_link) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); } &&
22744 { ac_try='test -s conftest$ac_exeext'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 SNMP_LIBS="-L$try -lsnmp -lcrypto"
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22758 if test "x$SNMP_LIBS" != "x"; then
22765 CFLAGS="$old_CFLAGS"
22766 if test "x$SNMP_LIBS" = "x"; then
22767 echo "$as_me:$LINENO: result: no" >&5
22768 echo "${ECHO_T}no" >&6
22771 echo "$as_me:$LINENO: result: yes" >&5
22772 echo "${ECHO_T}yes" >&6
22773 cat >>confdefs.h <<\_ACEOF
22774 #define WITH_SNMP 1
22777 cat >>confdefs.h <<\_ACEOF
22778 #define HAVE_LIBSNMP 1
22786 gethostbyaddrrstyle=""
22787 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
22788 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
22791 cat >>confdefs.h <<\_ACEOF
22792 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22795 gethostbyaddrrstyle=BSD
22796 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
22797 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
22800 if test "x$gethostbyaddrrstyle" = "x"; then
22801 cat >conftest.$ac_ext <<_ACEOF
22802 #line $LINENO "configure"
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22815 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
22820 rm -f conftest.$ac_objext conftest$ac_exeext
22821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22822 (eval $ac_link) 2>&5
22824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22825 (exit $ac_status); } &&
22826 { ac_try='test -s conftest$ac_exeext'
22827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22828 (eval $ac_try) 2>&5
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); }; }; then
22833 cat >>confdefs.h <<\_ACEOF
22834 #define GETHOSTBYADDRRSTYLE GNUSTYLE
22837 gethostbyaddrrstyle=GNU
22840 echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22844 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22846 if test "x$gethostbyaddrrstyle" = "x"; then
22847 cat >conftest.$ac_ext <<_ACEOF
22848 #line $LINENO "configure"
22851 cat confdefs.h >>conftest.$ac_ext
22852 cat >>conftest.$ac_ext <<_ACEOF
22853 /* end confdefs.h. */
22861 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22868 (eval $ac_link) 2>&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -s conftest$ac_exeext'
22873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22874 (eval $ac_try) 2>&5
22876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22877 (exit $ac_status); }; }; then
22879 cat >>confdefs.h <<\_ACEOF
22880 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
22883 gethostbyaddrrstyle=SYSV
22886 echo "$as_me: failed program was:" >&5
22887 sed 's/^/| /' conftest.$ac_ext >&5
22890 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22892 if test "x$gethostbyaddrrstyle" = "x"; then
22893 cat >conftest.$ac_ext <<_ACEOF
22894 #line $LINENO "configure"
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22907 gethostbyaddr(NULL, 0, 0)
22912 rm -f conftest.$ac_objext conftest$ac_exeext
22913 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22914 (eval $ac_link) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } &&
22918 { ac_try='test -s conftest$ac_exeext'
22919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22920 (eval $ac_try) 2>&5
22922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22923 (exit $ac_status); }; }; then
22925 cat >>confdefs.h <<\_ACEOF
22926 #define GETHOSTBYADDRRSTYLE BSDSTYLE
22929 gethostbyaddrrstyle=BSD
22932 echo "$as_me: failed program was:" >&5
22933 sed 's/^/| /' conftest.$ac_ext >&5
22936 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22939 if test "x$gethostbyaddrrstyle" = "x"; then
22940 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
22941 echo "${ECHO_T}none! It must not exist, here." >&6
22943 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
22944 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
22947 if test "x$gethostbyaddrrstyle" = "xBSD"; then
22948 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
22949 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
22952 gethostbynamerstyle=""
22953 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
22954 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
22955 cat >conftest.$ac_ext <<_ACEOF
22956 #line $LINENO "configure"
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22969 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
22974 rm -f conftest.$ac_objext conftest$ac_exeext
22975 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22976 (eval $ac_link) 2>&5
22978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22979 (exit $ac_status); } &&
22980 { ac_try='test -s conftest$ac_exeext'
22981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22982 (eval $ac_try) 2>&5
22984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22985 (exit $ac_status); }; }; then
22987 cat >>confdefs.h <<\_ACEOF
22988 #define GETHOSTBYNAMERSTYLE GNUSTYLE
22991 gethostbynamerstyle=GNU
22994 echo "$as_me: failed program was:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22998 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
22999 if test "x$gethostbynamerstyle" = "x"; then
23000 cat >conftest.$ac_ext <<_ACEOF
23001 #line $LINENO "configure"
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23014 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>&5
23023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23024 (exit $ac_status); } &&
23025 { ac_try='test -s conftest$ac_exeext'
23026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23027 (eval $ac_try) 2>&5
23029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23030 (exit $ac_status); }; }; then
23032 cat >>confdefs.h <<\_ACEOF
23033 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23036 gethostbynamerstyle=SYSV
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23043 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23045 if test "x$gethostbynamerstyle" = "x"; then
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. */
23060 gethostbyname(NULL)
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067 (eval $ac_link) 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } &&
23071 { ac_try='test -s conftest$ac_exeext'
23072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23073 (eval $ac_try) 2>&5
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23078 cat >>confdefs.h <<\_ACEOF
23079 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23082 gethostbynamerstyle=BSD
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23089 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23092 if test "x$gethostbynamerstyle" = "x"; then
23093 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23094 echo "${ECHO_T}none! It must not exist, here." >&6
23096 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23097 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23100 if test "x$gethostbynamerstyle" = "xBSD"; then
23101 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23102 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23106 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23107 echo $ECHO_N "checking ctime_r() syntax... $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. */
23121 ctime_r(NULL, NULL, 0)
23126 rm -f conftest.$ac_objext conftest$ac_exeext
23127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23128 (eval $ac_link) 2>&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } &&
23132 { ac_try='test -s conftest$ac_exeext'
23133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23134 (eval $ac_try) 2>&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); }; }; then
23139 cat >>confdefs.h <<\_ACEOF
23140 #define CTIMERSTYLE SOLARISSTYLE
23143 ctimerstyle="SOLARIS"
23146 echo "$as_me: failed program was:" >&5
23147 sed 's/^/| /' conftest.$ac_ext >&5
23150 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23151 if test "x$ctimerstyle" = "x"; then
23152 cat >conftest.$ac_ext <<_ACEOF
23153 #line $LINENO "configure"
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23165 ctime_r(NULL, NULL)
23170 rm -f conftest.$ac_objext conftest$ac_exeext
23171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23172 (eval $ac_link) 2>&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } &&
23176 { ac_try='test -s conftest$ac_exeext'
23177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23178 (eval $ac_try) 2>&5
23180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23181 (exit $ac_status); }; }; then
23183 cat >>confdefs.h <<\_ACEOF
23184 #define CTIMERSTYLE POSIXSTYLE
23187 ctimerstyle="POSIX"
23190 echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23194 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
23197 if test "x$ctimerstyle" = "x"; then
23198 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23199 echo "${ECHO_T}none! It must not exist, here." >&6
23201 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23202 echo "${ECHO_T}${ctimerstyle}-style" >&6
23206 if test x"$rad_enable_largefiles" = xyes ; then
23207 echo "$as_me:$LINENO: checking for largefile linkage" >&5
23208 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23211 echo "$as_me:$LINENO: result: no" >&5
23212 echo "${ECHO_T}no" >&6
23213 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23214 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23215 { (exit 1); exit 1; }; }
23218 echo "$as_me:$LINENO: result: ok" >&5
23219 echo "${ECHO_T}ok" >&6
23220 LFS_CFLAGS="-D_LARGE_FILES"
23225 echo "$as_me:$LINENO: result: ok" >&5
23226 echo "${ECHO_T}ok" >&6
23227 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23232 echo "$as_me:$LINENO: result: no" >&5
23233 echo "${ECHO_T}no" >&6
23234 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23235 echo "$as_me: error: Large files not supported on this platform" >&2;}
23236 { (exit 1); exit 1; }; }
23239 echo "$as_me:$LINENO: result: maybe" >&5
23240 echo "${ECHO_T}maybe" >&6
23241 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23245 cat >>confdefs.h <<\_ACEOF
23246 #define _GNU_SOURCE 1
23251 echo "$as_me:$LINENO: result: ok" >&5
23252 echo "${ECHO_T}ok" >&6
23253 # Extract the first word of "getconf", so it can be a program name with args.
23254 set dummy getconf; ac_word=$2
23255 echo "$as_me:$LINENO: checking for $ac_word" >&5
23256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23257 if test "${ac_cv_path_GETCONF+set}" = set; then
23258 echo $ECHO_N "(cached) $ECHO_C" >&6
23262 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23266 for as_dir in $PATH
23269 test -z "$as_dir" && as_dir=.
23270 for ac_exec_ext in '' $ac_executable_extensions; do
23271 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23272 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23282 GETCONF=$ac_cv_path_GETCONF
23284 if test -n "$GETCONF"; then
23285 echo "$as_me:$LINENO: result: $GETCONF" >&5
23286 echo "${ECHO_T}$GETCONF" >&6
23288 echo "$as_me:$LINENO: result: no" >&5
23289 echo "${ECHO_T}no" >&6
23292 if test -z "$GETCONF" ; then
23293 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23294 echo "$as_me: error: getconf required to configure large file support" >&2;}
23295 { (exit 1); exit 1; }; }
23297 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23298 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23299 LFS_LIBS=`$GETCONF LFS_LIBS`
23302 echo "$as_me:$LINENO: result: maybe" >&5
23303 echo "${ECHO_T}maybe" >&6
23304 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23319 export top_builddir
23320 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23321 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23325 if test "x$INCLTDL" != "x";then
23326 INCLTDL='-I${top_builddir}/''libltdl'
23332 if test "x$EXPERIMENTAL" = "xyes"; then
23333 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23334 mysubdirs=`echo $bar`
23336 for bar in `cat src/modules/stable`; do
23337 if test -f src/modules/$bar/configure; then
23338 mysubdirs="$mysubdirs src/modules/$bar"
23344 if test "x$EXPERIMENTAL" = "xyes"; then
23345 for foo in `ls -1 src/modules | grep rlm_`; do
23346 MODULES="$MODULES $foo"
23349 for foo in `cat src/modules/stable`; do
23350 MODULES="$MODULES $foo"
23356 subdirs="$subdirs $mysubdirs"
23364 USE_SHARED_LIBS=$enable_shared
23366 USE_STATIC_LIBS=$enable_static
23374 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"
23375 cat >confcache <<\_ACEOF
23376 # This file is a shell script that caches the results of configure
23377 # tests run on this system so they can be shared between configure
23378 # scripts and configure runs, see configure's option --config-cache.
23379 # It is not useful on other systems. If it contains results you don't
23380 # want to keep, you may remove or edit it.
23382 # config.status only pays attention to the cache file if you give it
23383 # the --recheck option to rerun configure.
23385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23387 # following values.
23391 # The following way of writing the cache mishandles newlines in values,
23392 # but we know of no workaround that is simple, portable, and efficient.
23393 # So, don't put newlines in cache variables' values.
23394 # Ultrix sh set writes to stderr and can't be redirected directly,
23395 # and sets the high bit in the cache file unless we assign to the vars.
23398 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23400 # `set' does not quote correctly, so add quotes (double-quote
23401 # substitution turns \\\\ into \\, and sed turns \\ into \).
23404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23407 # `set' quotes correctly as required by POSIX, so do not add quotes.
23409 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23416 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23418 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23420 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23421 if test -w $cache_file; then
23422 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23423 cat confcache >$cache_file
23425 echo "not updating unwritable cache $cache_file"
23430 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23431 # Let make expand exec_prefix.
23432 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23434 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23435 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23436 # trailing colons and then remove the whole line if VPATH becomes empty
23437 # (actually we leave an empty line to preserve line numbers).
23438 if test "x$srcdir" = x.; then
23439 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23440 s/:*\$(srcdir):*/:/;
23441 s/:*\${srcdir}:*/:/;
23443 s/^\([^=]*=[ ]*\):*/\1/;
23449 DEFS=-DHAVE_CONFIG_H
23453 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23454 # 1. Remove the extension, and $U if already installed.
23455 ac_i=`echo "$ac_i" |
23456 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23458 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23459 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23461 LIBOBJS=$ac_libobjs
23463 LTLIBOBJS=$ac_ltlibobjs
23467 : ${CONFIG_STATUS=./config.status}
23468 ac_clean_files_save=$ac_clean_files
23469 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23470 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23471 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23472 cat >$CONFIG_STATUS <<_ACEOF
23474 # Generated by $as_me.
23475 # Run this file to recreate the current configuration.
23476 # Compiler output produced by configure, useful for debugging
23477 # configure, is in config.log if it exists.
23480 ac_cs_recheck=false
23482 SHELL=\${CONFIG_SHELL-$SHELL}
23485 cat >>$CONFIG_STATUS <<\_ACEOF
23486 ## --------------------- ##
23487 ## M4sh Initialization. ##
23488 ## --------------------- ##
23490 # Be Bourne compatible
23491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23495 # is contrary to our usage. Disable this feature.
23496 alias -g '${1+"$@"}'='"$@"'
23497 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23501 # Support unset when possible.
23502 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
23509 # Work around bugs in pre-3.0 UWIN ksh.
23510 $as_unset ENV MAIL MAILPATH
23517 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23518 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23519 LC_TELEPHONE LC_TIME
23521 if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
23522 eval $as_var=C; export $as_var
23528 # Required to use basename.
23529 if expr a : '\(a\)' >/dev/null 2>&1; then
23535 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23536 as_basename=basename
23542 # Name of the executable.
23543 as_me=`$as_basename "$0" ||
23544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23545 X"$0" : 'X\(//\)$' \| \
23546 X"$0" : 'X\(/\)$' \| \
23547 . : '\(.\)' 2>/dev/null ||
23549 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23550 /^X\/\(\/\/\)$/{ s//\1/; q; }
23551 /^X\/\(\/\).*/{ s//\1/; q; }
23555 # PATH needs CR, and LINENO needs CR and PATH.
23556 # Avoid depending upon Character Ranges.
23557 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23558 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23559 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23560 as_cr_digits='0123456789'
23561 as_cr_alnum=$as_cr_Letters$as_cr_digits
23563 # The user is always right.
23564 if test "${PATH_SEPARATOR+set}" != set; then
23565 echo "#! /bin/sh" >conf$$.sh
23566 echo "exit 0" >>conf$$.sh
23568 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23577 as_lineno_1=$LINENO
23578 as_lineno_2=$LINENO
23579 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23580 test "x$as_lineno_1" != "x$as_lineno_2" &&
23581 test "x$as_lineno_3" = "x$as_lineno_2" || {
23582 # Find who we are. Look in the path if we contain no path at all
23585 *[\\/]* ) as_myself=$0 ;;
23586 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23587 for as_dir in $PATH
23590 test -z "$as_dir" && as_dir=.
23591 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23596 # We did not find ourselves, most probably we were run as `sh COMMAND'
23597 # in which case we are not to be found in the path.
23598 if test "x$as_myself" = x; then
23601 if test ! -f "$as_myself"; then
23602 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23603 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23604 { (exit 1); exit 1; }; }
23606 case $CONFIG_SHELL in
23608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23609 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23612 test -z "$as_dir" && as_dir=.
23613 for as_base in sh bash ksh sh5; do
23616 if ("$as_dir/$as_base" -c '
23617 as_lineno_1=$LINENO
23618 as_lineno_2=$LINENO
23619 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23620 test "x$as_lineno_1" != "x$as_lineno_2" &&
23621 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23622 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23623 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23624 CONFIG_SHELL=$as_dir/$as_base
23625 export CONFIG_SHELL
23626 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23634 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23635 # uniformly replaced by the line number. The first 'sed' inserts a
23636 # line-number line before each line; the second 'sed' does the real
23637 # work. The second script uses 'N' to pair each line-number line
23638 # with the numbered line, and appends trailing '-' during
23639 # substitution so that $LINENO is not a special case at line end.
23640 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23641 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23642 sed '=' <$as_myself |
23647 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23650 s,^['$as_cr_digits']*\n,,
23651 ' >$as_me.lineno &&
23652 chmod +x $as_me.lineno ||
23653 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23654 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23655 { (exit 1); exit 1; }; }
23657 # Don't try to exec as it changes $[0], causing all sort of problems
23658 # (the dirname of $[0] is not the place where we might find the
23659 # original and so on. Autoconf is especially sensible to this).
23661 # Exit status is that of the last command.
23666 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23667 *c*,-n*) ECHO_N= ECHO_C='
23669 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23670 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23673 if expr a : '\(a\)' >/dev/null 2>&1; then
23679 rm -f conf$$ conf$$.exe conf$$.file
23681 if ln -s conf$$.file conf$$ 2>/dev/null; then
23682 # We could just check for DJGPP; but this test a) works b) is more generic
23683 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23684 if test -f conf$$.exe; then
23685 # Don't use ln at all; we don't have any links
23690 elif ln conf$$.file conf$$ 2>/dev/null; then
23695 rm -f conf$$ conf$$.exe conf$$.file
23697 if mkdir -p . 2>/dev/null; then
23703 as_executable_p="test -f"
23705 # Sed expression to map a string onto a valid CPP name.
23706 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
23708 # Sed expression to map a string onto a valid variable name.
23709 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
23713 # We need space, tab and new line, in precisely that order.
23723 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23724 # report actual input values of CONFIG_FILES etc. instead of their
23725 # values after options handling. Logging --version etc. is OK.
23729 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23730 ## Running $as_me. ##
23735 This file was extended by $as_me, which was
23736 generated by GNU Autoconf 2.57. Invocation command line was
23738 CONFIG_FILES = $CONFIG_FILES
23739 CONFIG_HEADERS = $CONFIG_HEADERS
23740 CONFIG_LINKS = $CONFIG_LINKS
23741 CONFIG_COMMANDS = $CONFIG_COMMANDS
23745 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23749 # Files that config.status was made for.
23750 if test -n "$ac_config_files"; then
23751 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23754 if test -n "$ac_config_headers"; then
23755 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23758 if test -n "$ac_config_links"; then
23759 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23762 if test -n "$ac_config_commands"; then
23763 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23766 cat >>$CONFIG_STATUS <<\_ACEOF
23769 \`$as_me' instantiates files from templates according to the
23770 current configuration.
23772 Usage: $0 [OPTIONS] [FILE]...
23774 -h, --help print this help, then exit
23775 -V, --version print version number, then exit
23776 -q, --quiet do not print progress messages
23777 -d, --debug don't remove temporary files
23778 --recheck update $as_me by reconfiguring in the same conditions
23779 --file=FILE[:TEMPLATE]
23780 instantiate the configuration file FILE
23781 --header=FILE[:TEMPLATE]
23782 instantiate the configuration header FILE
23784 Configuration files:
23787 Configuration headers:
23790 Report bugs to <bug-autoconf@gnu.org>."
23793 cat >>$CONFIG_STATUS <<_ACEOF
23796 configured by $0, generated by GNU Autoconf 2.57,
23797 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23799 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
23800 Free Software Foundation, Inc.
23801 This config.status script is free software; the Free Software Foundation
23802 gives unlimited permission to copy, distribute and modify it."
23806 cat >>$CONFIG_STATUS <<\_ACEOF
23807 # If no file are specified by the user, then we need to provide default
23808 # value. By we need to know if files were specified by the user.
23814 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23815 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23823 *) # This is not an option, so the user has probably given explicit
23826 ac_need_defaults=false;;
23830 # Handling of the options.
23832 cat >>$CONFIG_STATUS <<\_ACEOF
23833 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23835 --version | --vers* | -V )
23836 echo "$ac_cs_version"; exit 0 ;;
23838 # Conflict between --help and --header
23839 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23840 Try \`$0 --help' for more information." >&5
23841 echo "$as_me: error: ambiguous option: $1
23842 Try \`$0 --help' for more information." >&2;}
23843 { (exit 1); exit 1; }; };;
23844 --help | --hel | -h )
23845 echo "$ac_cs_usage"; exit 0 ;;
23846 --debug | --d* | -d )
23848 --file | --fil | --fi | --f )
23850 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23851 ac_need_defaults=false;;
23852 --header | --heade | --head | --hea )
23854 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23855 ac_need_defaults=false;;
23856 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23857 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23860 # This is an error.
23861 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23862 Try \`$0 --help' for more information." >&5
23863 echo "$as_me: error: unrecognized option: $1
23864 Try \`$0 --help' for more information." >&2;}
23865 { (exit 1); exit 1; }; } ;;
23867 *) ac_config_targets="$ac_config_targets $1" ;;
23873 ac_configure_extra_args=
23875 if $ac_cs_silent; then
23877 ac_configure_extra_args="$ac_configure_extra_args --silent"
23881 cat >>$CONFIG_STATUS <<_ACEOF
23882 if \$ac_cs_recheck; then
23883 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23884 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23893 cat >>$CONFIG_STATUS <<\_ACEOF
23894 for ac_config_target in $ac_config_targets
23896 case "$ac_config_target" in
23897 # Handling of arguments.
23898 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
23899 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
23900 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
23901 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
23902 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
23903 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
23904 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
23905 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
23906 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
23907 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
23908 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
23909 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
23910 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
23911 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
23912 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
23913 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23914 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23915 { (exit 1); exit 1; }; };;
23919 # If the user did not use the arguments to specify the items to instantiate,
23920 # then the envvar interface is used. Set only those that are not.
23921 # We use the long form for the default assignment because of an extremely
23922 # bizarre bug on SunOS 4.1.3.
23923 if $ac_need_defaults; then
23924 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23925 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23928 # Have a temporary directory for convenience. Make it in the build tree
23929 # simply because there is no reason to put it here, and in addition,
23930 # creating and moving files from /tmp can sometimes cause problems.
23931 # Create a temporary directory, and hook for its removal unless debugging.
23934 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23935 trap '{ (exit 1); exit 1; }' 1 2 13 15
23938 # Create a (secure) tmp directory for tmp files.
23941 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23942 test -n "$tmp" && test -d "$tmp"
23945 tmp=./confstat$$-$RANDOM
23946 (umask 077 && mkdir $tmp)
23949 echo "$me: cannot create a temporary directory in ." >&2
23950 { (exit 1); exit 1; }
23955 cat >>$CONFIG_STATUS <<_ACEOF
23958 # CONFIG_FILES section.
23961 # No need to generate the scripts if there are no CONFIG_FILES.
23962 # This happens for instance when ./config.status config.h
23963 if test -n "\$CONFIG_FILES"; then
23964 # Protect against being on the right side of a sed subst in config.status.
23965 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23966 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23967 s,@SHELL@,$SHELL,;t t
23968 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23969 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23970 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23971 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
23972 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
23973 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
23974 s,@exec_prefix@,$exec_prefix,;t t
23975 s,@prefix@,$prefix,;t t
23976 s,@program_transform_name@,$program_transform_name,;t t
23977 s,@bindir@,$bindir,;t t
23978 s,@sbindir@,$sbindir,;t t
23979 s,@libexecdir@,$libexecdir,;t t
23980 s,@datadir@,$datadir,;t t
23981 s,@sysconfdir@,$sysconfdir,;t t
23982 s,@sharedstatedir@,$sharedstatedir,;t t
23983 s,@localstatedir@,$localstatedir,;t t
23984 s,@libdir@,$libdir,;t t
23985 s,@includedir@,$includedir,;t t
23986 s,@oldincludedir@,$oldincludedir,;t t
23987 s,@infodir@,$infodir,;t t
23988 s,@mandir@,$mandir,;t t
23989 s,@build_alias@,$build_alias,;t t
23990 s,@host_alias@,$host_alias,;t t
23991 s,@target_alias@,$target_alias,;t t
23992 s,@DEFS@,$DEFS,;t t
23993 s,@ECHO_C@,$ECHO_C,;t t
23994 s,@ECHO_N@,$ECHO_N,;t t
23995 s,@ECHO_T@,$ECHO_T,;t t
23996 s,@LIBS@,$LIBS,;t t
23998 s,@CFLAGS@,$CFLAGS,;t t
23999 s,@LDFLAGS@,$LDFLAGS,;t t
24000 s,@CPPFLAGS@,$CPPFLAGS,;t t
24001 s,@ac_ct_CC@,$ac_ct_CC,;t t
24002 s,@EXEEXT@,$EXEEXT,;t t
24003 s,@OBJEXT@,$OBJEXT,;t t
24005 s,@EGREP@,$EGREP,;t t
24006 s,@RANLIB@,$RANLIB,;t t
24007 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24008 s,@abs_top_builddir@,$abs_top_builddir,;t t
24009 s,@GMAKE@,$GMAKE,;t t
24010 s,@MAKE@,$MAKE,;t t
24011 s,@subdirs@,$subdirs,;t t
24012 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
24013 s,@LIBTOOL@,$LIBTOOL,;t t
24014 s,@build@,$build,;t t
24015 s,@build_cpu@,$build_cpu,;t t
24016 s,@build_vendor@,$build_vendor,;t t
24017 s,@build_os@,$build_os,;t t
24018 s,@host@,$host,;t t
24019 s,@host_cpu@,$host_cpu,;t t
24020 s,@host_vendor@,$host_vendor,;t t
24021 s,@host_os@,$host_os,;t t
24022 s,@LN_S@,$LN_S,;t t
24023 s,@ECHO@,$ECHO,;t t
24025 s,@ac_ct_AR@,$ac_ct_AR,;t t
24026 s,@STRIP@,$STRIP,;t t
24027 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24029 s,@CXXFLAGS@,$CXXFLAGS,;t t
24030 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24031 s,@CXXCPP@,$CXXCPP,;t t
24033 s,@FFLAGS@,$FFLAGS,;t t
24034 s,@ac_ct_F77@,$ac_ct_F77,;t t
24035 s,@logdir@,$logdir,;t t
24036 s,@radacctdir@,$radacctdir,;t t
24037 s,@raddbdir@,$raddbdir,;t t
24038 s,@PERL@,$PERL,;t t
24039 s,@SNMPGET@,$SNMPGET,;t t
24040 s,@SNMPWALK@,$SNMPWALK,;t t
24041 s,@RUSERS@,$RUSERS,;t t
24042 s,@ACLOCAL@,$ACLOCAL,;t t
24043 s,@AUTOCONF@,$AUTOCONF,;t t
24044 s,@AUTOHEADER@,$AUTOHEADER,;t t
24045 s,@LOCATE@,$LOCATE,;t t
24046 s,@DIRNAME@,$DIRNAME,;t t
24047 s,@GREP@,$GREP,;t t
24048 s,@REGEX@,$REGEX,;t t
24049 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24050 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24051 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24052 s,@LIBPREFIX@,$LIBPREFIX,;t t
24053 s,@CRYPTLIB@,$CRYPTLIB,;t t
24054 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24055 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24056 s,@GETCONF@,$GETCONF,;t t
24057 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24058 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24059 s,@LFS_LIBS@,$LFS_LIBS,;t t
24060 s,@HOSTINFO@,$HOSTINFO,;t t
24061 s,@LIBLTDL@,$LIBLTDL,;t t
24062 s,@INCLTDL@,$INCLTDL,;t t
24063 s,@MODULES@,$MODULES,;t t
24064 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24065 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24066 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24067 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24068 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24069 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24070 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24071 s,@LIBOBJS@,$LIBOBJS,;t t
24072 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24077 cat >>$CONFIG_STATUS <<\_ACEOF
24078 # Split the substitutions into bite-sized pieces for seds with
24079 # small command number limits, like on Digital OSF/1 and HP-UX.
24080 ac_max_sed_lines=48
24081 ac_sed_frag=1 # Number of current file.
24082 ac_beg=1 # First line for current file.
24083 ac_end=$ac_max_sed_lines # Line after last line for current file.
24086 while $ac_more_lines; do
24087 if test $ac_beg -gt 1; then
24088 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24090 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24092 if test ! -s $tmp/subs.frag; then
24093 ac_more_lines=false
24095 # The purpose of the label and of the branching condition is to
24096 # speed up the sed processing (if there are no `@' at all, there
24097 # is no need to browse any of the substitutions).
24098 # These are the two extra sed commands mentioned above.
24100 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24101 if test -z "$ac_sed_cmds"; then
24102 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24104 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24106 ac_sed_frag=`expr $ac_sed_frag + 1`
24108 ac_end=`expr $ac_end + $ac_max_sed_lines`
24111 if test -z "$ac_sed_cmds"; then
24114 fi # test -n "$CONFIG_FILES"
24117 cat >>$CONFIG_STATUS <<\_ACEOF
24118 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24119 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24121 - | *:- | *:-:* ) # input from stdin
24123 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24124 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24125 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24126 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24127 * ) ac_file_in=$ac_file.in ;;
24130 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24131 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24132 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24133 X"$ac_file" : 'X\(//\)[^/]' \| \
24134 X"$ac_file" : 'X\(//\)$' \| \
24135 X"$ac_file" : 'X\(/\)' \| \
24136 . : '\(.\)' 2>/dev/null ||
24138 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24139 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24140 /^X\(\/\/\)$/{ s//\1/; q; }
24141 /^X\(\/\).*/{ s//\1/; q; }
24143 { if $as_mkdir_p; then
24148 while test ! -d "$as_dir"; do
24149 as_dirs="$as_dir $as_dirs"
24150 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24151 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24152 X"$as_dir" : 'X\(//\)[^/]' \| \
24153 X"$as_dir" : 'X\(//\)$' \| \
24154 X"$as_dir" : 'X\(/\)' \| \
24155 . : '\(.\)' 2>/dev/null ||
24157 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24158 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24159 /^X\(\/\/\)$/{ s//\1/; q; }
24160 /^X\(\/\).*/{ s//\1/; q; }
24163 test ! -n "$as_dirs" || mkdir $as_dirs
24164 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24165 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24166 { (exit 1); exit 1; }; }; }
24170 if test "$ac_dir" != .; then
24171 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24172 # A "../" for each directory in $ac_dir_suffix.
24173 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24175 ac_dir_suffix= ac_top_builddir=
24179 .) # No --srcdir option. We are building in place.
24181 if test -z "$ac_top_builddir"; then
24184 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24186 [\\/]* | ?:[\\/]* ) # Absolute path.
24187 ac_srcdir=$srcdir$ac_dir_suffix;
24188 ac_top_srcdir=$srcdir ;;
24189 *) # Relative path.
24190 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24191 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24193 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24195 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24196 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24197 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24198 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24202 if test x"$ac_file" != x-; then
24203 { echo "$as_me:$LINENO: creating $ac_file" >&5
24204 echo "$as_me: creating $ac_file" >&6;}
24207 # Let's still pretend it is `configure' which instantiates (i.e., don't
24208 # use $as_me), people would be surprised to read:
24209 # /* config.h. Generated by config.status. */
24210 if test x"$ac_file" = x-; then
24213 configure_input="$ac_file. "
24215 configure_input=$configure_input"Generated from `echo $ac_file_in |
24216 sed 's,.*/,,'` by configure."
24218 # First look for the input files in the build tree, otherwise in the
24220 ac_file_inputs=`IFS=:
24221 for f in $ac_file_in; do
24223 -) echo $tmp/stdin ;;
24225 # Absolute (can't be DOS-style, as IFS=:)
24226 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24227 echo "$as_me: error: cannot find input file: $f" >&2;}
24228 { (exit 1); exit 1; }; }
24231 if test -f "$f"; then
24234 elif test -f "$srcdir/$f"; then
24239 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24240 echo "$as_me: error: cannot find input file: $f" >&2;}
24241 { (exit 1); exit 1; }; }
24244 done` || { (exit 1); exit 1; }
24246 cat >>$CONFIG_STATUS <<_ACEOF
24250 cat >>$CONFIG_STATUS <<\_ACEOF
24252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24253 s,@configure_input@,$configure_input,;t t
24254 s,@srcdir@,$ac_srcdir,;t t
24255 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24256 s,@top_srcdir@,$ac_top_srcdir,;t t
24257 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24258 s,@builddir@,$ac_builddir,;t t
24259 s,@abs_builddir@,$ac_abs_builddir,;t t
24260 s,@top_builddir@,$ac_top_builddir,;t t
24261 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24262 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24264 if test x"$ac_file" != x-; then
24265 mv $tmp/out $ac_file
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24276 # CONFIG_HEADER section.
24279 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24280 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24282 # ac_d sets the value in "#define NAME VALUE" lines.
24283 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24284 ac_dB='[ ].*$,\1#\2'
24287 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24288 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24289 ac_uB='$,\1#\2define\3'
24293 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24294 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24296 - | *:- | *:-:* ) # input from stdin
24298 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24299 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24300 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24301 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24302 * ) ac_file_in=$ac_file.in ;;
24305 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24306 echo "$as_me: creating $ac_file" >&6;}
24308 # First look for the input files in the build tree, otherwise in the
24310 ac_file_inputs=`IFS=:
24311 for f in $ac_file_in; do
24313 -) echo $tmp/stdin ;;
24315 # Absolute (can't be DOS-style, as IFS=:)
24316 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24317 echo "$as_me: error: cannot find input file: $f" >&2;}
24318 { (exit 1); exit 1; }; }
24321 if test -f "$f"; then
24324 elif test -f "$srcdir/$f"; then
24329 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24330 echo "$as_me: error: cannot find input file: $f" >&2;}
24331 { (exit 1); exit 1; }; }
24334 done` || { (exit 1); exit 1; }
24335 # Remove the trailing spaces.
24336 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24340 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24341 # `conftest.undefs', that substitutes the proper values into
24342 # config.h.in to produce config.h. The first handles `#define'
24343 # templates, and the second `#undef' templates.
24344 # And first: Protect against being on the right side of a sed subst in
24345 # config.status. Protect against being in an unquoted here document
24346 # in config.status.
24347 rm -f conftest.defines conftest.undefs
24348 # Using a here document instead of a string reduces the quoting nightmare.
24349 # Putting comments in sed scripts is not portable.
24351 # `end' is used to avoid that the second main sed command (meant for
24352 # 0-ary CPP macros) applies to n-ary macro definitions.
24353 # See the Autoconf documentation for `clear'.
24354 cat >confdef2sed.sed <<\_ACEOF
24359 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24361 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24364 # If some macros were called several times there might be several times
24365 # the same #defines, which is useless. Nevertheless, we may not want to
24366 # sort them, since we want the *last* AC-DEFINE to be honored.
24367 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24368 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24369 rm -f confdef2sed.sed
24371 # This sed command replaces #undef with comments. This is necessary, for
24372 # example, in the case of _POSIX_SOURCE, which is predefined and required
24373 # on some systems where configure will not decide to define it.
24374 cat >>conftest.undefs <<\_ACEOF
24375 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24378 # Break up conftest.defines because some shells have a limit on the size
24379 # of here documents, and old seds have small limits too (100 cmds).
24380 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24381 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24382 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24383 echo ' :' >>$CONFIG_STATUS
24384 rm -f conftest.tail
24385 while grep . conftest.defines >/dev/null
24387 # Write a limited-size here document to $tmp/defines.sed.
24388 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24389 # Speed up: don't consider the non `#define' lines.
24390 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24391 # Work around the forget-to-reset-the-flag bug.
24392 echo 't clr' >>$CONFIG_STATUS
24393 echo ': clr' >>$CONFIG_STATUS
24394 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24396 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24398 mv $tmp/out $tmp/in
24400 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24401 rm -f conftest.defines
24402 mv conftest.tail conftest.defines
24404 rm -f conftest.defines
24405 echo ' fi # grep' >>$CONFIG_STATUS
24406 echo >>$CONFIG_STATUS
24408 # Break up conftest.undefs because some shells have a limit on the size
24409 # of here documents, and old seds have small limits too (100 cmds).
24410 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24411 rm -f conftest.tail
24412 while grep . conftest.undefs >/dev/null
24414 # Write a limited-size here document to $tmp/undefs.sed.
24415 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24416 # Speed up: don't consider the non `#undef'
24417 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24418 # Work around the forget-to-reset-the-flag bug.
24419 echo 't clr' >>$CONFIG_STATUS
24420 echo ': clr' >>$CONFIG_STATUS
24421 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24423 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24425 mv $tmp/out $tmp/in
24427 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24428 rm -f conftest.undefs
24429 mv conftest.tail conftest.undefs
24431 rm -f conftest.undefs
24433 cat >>$CONFIG_STATUS <<\_ACEOF
24434 # Let's still pretend it is `configure' which instantiates (i.e., don't
24435 # use $as_me), people would be surprised to read:
24436 # /* config.h. Generated by config.status. */
24437 if test x"$ac_file" = x-; then
24438 echo "/* Generated by configure. */" >$tmp/config.h
24440 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24442 cat $tmp/in >>$tmp/config.h
24444 if test x"$ac_file" != x-; then
24445 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24446 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24447 echo "$as_me: $ac_file is unchanged" >&6;}
24449 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24450 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24451 X"$ac_file" : 'X\(//\)[^/]' \| \
24452 X"$ac_file" : 'X\(//\)$' \| \
24453 X"$ac_file" : 'X\(/\)' \| \
24454 . : '\(.\)' 2>/dev/null ||
24456 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24457 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24458 /^X\(\/\/\)$/{ s//\1/; q; }
24459 /^X\(\/\).*/{ s//\1/; q; }
24461 { if $as_mkdir_p; then
24466 while test ! -d "$as_dir"; do
24467 as_dirs="$as_dir $as_dirs"
24468 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24469 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24470 X"$as_dir" : 'X\(//\)[^/]' \| \
24471 X"$as_dir" : 'X\(//\)$' \| \
24472 X"$as_dir" : 'X\(/\)' \| \
24473 . : '\(.\)' 2>/dev/null ||
24475 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24476 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24477 /^X\(\/\/\)$/{ s//\1/; q; }
24478 /^X\(\/\).*/{ s//\1/; q; }
24481 test ! -n "$as_dirs" || mkdir $as_dirs
24482 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24483 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24484 { (exit 1); exit 1; }; }; }
24487 mv $tmp/config.h $ac_file
24491 rm -f $tmp/config.h
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24498 { (exit 0); exit 0; }
24500 chmod +x $CONFIG_STATUS
24501 ac_clean_files=$ac_clean_files_save
24504 # configure is writing to config.log, and then calls config.status.
24505 # config.status does its own redirection, appending to config.log.
24506 # Unfortunately, on DOS this fails, as config.log is still kept open
24507 # by configure, so config.status won't be able to write to it; its
24508 # output is simply discarded. So we exec the FD to /dev/null,
24509 # effectively closing config.log, so it can be properly (re)opened and
24510 # appended to by config.status. When coming back to configure, we
24511 # need to make the FD available again.
24512 if test "$no_create" != yes; then
24514 ac_config_status_args=
24515 test "$silent" = yes &&
24516 ac_config_status_args="$ac_config_status_args --quiet"
24518 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24520 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24521 # would make configure fail if this is the last instruction.
24522 $ac_cs_success || { (exit 1); exit 1; }
24526 # CONFIG_SUBDIRS section.
24528 if test "$no_recursion" != yes; then
24530 # Remove --cache-file and --srcdir arguments so they do not pile up.
24531 ac_sub_configure_args=
24533 for ac_arg in $ac_configure_args; do
24534 if test -n "$ac_prev"; then
24539 -cache-file | --cache-file | --cache-fil | --cache-fi \
24540 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
24541 ac_prev=cache_file ;;
24542 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
24543 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
24546 --config-cache | -C)
24548 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
24550 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
24552 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
24554 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
24556 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
24560 # Always prepend --prefix to ensure using the same prefix
24561 # in subdir configurations.
24562 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
24565 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
24567 # Do not complain, so a configure script can configure whichever
24568 # parts of a large source tree are present.
24569 test -d $srcdir/$ac_dir || continue
24571 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
24572 echo "$as_me: configuring in $ac_dir" >&6;}
24573 { if $as_mkdir_p; then
24578 while test ! -d "$as_dir"; do
24579 as_dirs="$as_dir $as_dirs"
24580 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24581 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24582 X"$as_dir" : 'X\(//\)[^/]' \| \
24583 X"$as_dir" : 'X\(//\)$' \| \
24584 X"$as_dir" : 'X\(/\)' \| \
24585 . : '\(.\)' 2>/dev/null ||
24587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24588 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24589 /^X\(\/\/\)$/{ s//\1/; q; }
24590 /^X\(\/\).*/{ s//\1/; q; }
24593 test ! -n "$as_dirs" || mkdir $as_dirs
24594 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24595 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24596 { (exit 1); exit 1; }; }; }
24600 if test "$ac_dir" != .; then
24601 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24602 # A "../" for each directory in $ac_dir_suffix.
24603 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24605 ac_dir_suffix= ac_top_builddir=
24609 .) # No --srcdir option. We are building in place.
24611 if test -z "$ac_top_builddir"; then
24614 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24616 [\\/]* | ?:[\\/]* ) # Absolute path.
24617 ac_srcdir=$srcdir$ac_dir_suffix;
24618 ac_top_srcdir=$srcdir ;;
24619 *) # Relative path.
24620 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24621 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24623 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
24625 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
24626 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
24627 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
24628 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
24633 # Check for guested configure; otherwise get Cygnus style configure.
24634 if test -f $ac_srcdir/configure.gnu; then
24635 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
24636 elif test -f $ac_srcdir/configure; then
24637 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
24638 elif test -f $ac_srcdir/configure.in; then
24639 ac_sub_configure=$ac_configure
24641 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
24642 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
24646 # The recursion is here.
24647 if test -n "$ac_sub_configure"; then
24648 # Make the cache file name correct relative to the subdirectory.
24649 case $cache_file in
24650 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
24651 *) # Relative path.
24652 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
24655 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
24656 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
24657 # The eval makes quoting arguments work.
24658 eval $ac_sub_configure $ac_sub_configure_args \
24659 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
24660 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
24661 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
24662 { (exit 1); exit 1; }; }
24670 ac_config_commands="$ac_config_commands default-1"
24672 ac_config_commands="$ac_config_commands default-2"
24674 ac_config_commands="$ac_config_commands default-3"
24676 ac_config_commands="$ac_config_commands default-4"