2 # From configure.in Revision: 1.198.2.15.2.10 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/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 -z "`(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
222 test -d ./-p && rmdir ./-p
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
236 # We need space, tab and new line, in precisely that order.
246 # Check that we are running under the correct shell.
247 SHELL=${CONFIG_SHELL-/bin/sh}
251 # Remove one level of quotation (which was required for Make).
252 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
257 if test "X$1" = X--no-reexec; then
258 # Discard the --no-reexec flag, and continue.
260 elif test "X$1" = X--fallback-echo; then
261 # Avoid inline document here, it may be left over
263 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
264 # Yippee, $echo works!
267 # Restart under the correct shell.
268 exec $SHELL "$0" --no-reexec ${1+"$@"}
271 if test "X$1" = X--fallback-echo; then
272 # used as fallback echo
280 # The HP-UX ksh and POSIX shell print the target directory to stdout
282 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
284 if test -z "$ECHO"; then
285 if test "X${echo_test_string+set}" != Xset; then
286 # find a string as large as possible, as long as the shell can cope with it
287 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
288 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
289 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
290 echo_test_string=`eval $cmd` &&
291 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
298 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
299 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
300 test "X$echo_testing_string" = "X$echo_test_string"; then
303 # The Solaris, AIX, and Digital Unix default echo programs unquote
304 # backslashes. This makes it impossible to quote backslashes using
305 # echo "$something" | sed 's/\\/\\\\/g'
307 # So, first we look for a working echo in the user's PATH.
309 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
310 for dir in $PATH /usr/ucb; do
312 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
313 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
314 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
315 test "X$echo_testing_string" = "X$echo_test_string"; then
322 if test "X$echo" = Xecho; then
323 # We didn't find a better echo, so look for alternatives.
324 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
325 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
326 test "X$echo_testing_string" = "X$echo_test_string"; then
327 # This shell has a builtin print -r that does the trick.
329 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
330 test "X$CONFIG_SHELL" != X/bin/ksh; then
331 # If we have ksh, try running configure again with it.
332 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
333 export ORIGINAL_CONFIG_SHELL
334 CONFIG_SHELL=/bin/ksh
336 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
340 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
341 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
342 test "X$echo_testing_string" = "X$echo_test_string"; then
345 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
346 test "X$echo_testing_string" = 'X\t' &&
347 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
348 test "X$echo_testing_string" = "X$echo_test_string"; then
349 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
351 SHELL="$CONFIG_SHELL"
353 echo="$CONFIG_SHELL $0 --fallback-echo"
354 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
355 test "X$echo_testing_string" = 'X\t' &&
356 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
357 test "X$echo_testing_string" = "X$echo_test_string"; then
358 echo="$CONFIG_SHELL $0 --fallback-echo"
360 # maybe with a smaller string...
363 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
364 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
371 if test "$prev" != 'sed 50q "$0"'; then
372 echo_test_string=`eval $prev`
373 export echo_test_string
374 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
376 # Oops. We lost completely, so just stick with echo.
385 # Copy echo and quote the copy suitably for passing to libtool from
386 # the Makefile, instead of quoting the original, which is used later.
388 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
389 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
395 tagnames=${tagnames+${tagnames},}CXX
397 tagnames=${tagnames+${tagnames},}F77
400 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
401 # so uname gets run too.
402 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
409 ac_default_prefix=/usr/local
410 ac_config_libobj_dir=.
415 SHELL=${CONFIG_SHELL-/bin/sh}
417 # Maximum number of lines to put in a shell here document.
418 # This variable seems obsolete. It should probably be removed, and
419 # only ac_max_sed_lines should be used.
420 : ${ac_max_here_lines=38}
422 # Identity of this package.
429 ac_unique_file="src/main/radiusd.c"
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 $LTDL_SUBDIRS $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 LTDL_SUBDIRS 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 docdir 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 subdirs 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-docdir=DIR Directory for documentation DATADIR/doc/freeradius
1043 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1044 --with-radacctdir=DIR Directory for detail files LOGDIR/radacct
1045 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1046 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1047 --with-threads Use threads, if available. (default=yes)
1048 --with-snmp Compile in SNMP support. (default=yes)
1049 --with-large-files Compile in large (2G+) file support. (default=no)
1050 --with-static-modules=QUOTED-MODULE-LIST
1051 --with-modules=QUOTED-MODULE-LIST
1052 --with-experimental-modules Use experimental and unstable modules. (default=no)
1053 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1054 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1055 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1056 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1057 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1058 --with-edir Enable Novell eDirectory integration. (default=no)
1060 Some influential environment variables:
1061 CC C compiler command
1062 CFLAGS C compiler flags
1063 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1064 nonstandard directory <lib dir>
1065 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1066 headers in a nonstandard directory <include dir>
1068 CXX C++ compiler command
1069 CXXFLAGS C++ compiler flags
1070 CXXCPP C++ preprocessor
1071 F77 Fortran 77 compiler command
1072 FFLAGS Fortran 77 compiler flags
1074 Use these variables to override the choices made by `configure' or to help
1075 it to find libraries and programs with nonstandard names/locations.
1080 if test "$ac_init_help" = "recursive"; then
1081 # If there are subdirs, report their specific --help.
1083 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1084 test -d $ac_dir || continue
1087 if test "$ac_dir" != .; then
1088 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1089 # A "../" for each directory in $ac_dir_suffix.
1090 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1092 ac_dir_suffix= ac_top_builddir=
1096 .) # No --srcdir option. We are building in place.
1098 if test -z "$ac_top_builddir"; then
1101 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1103 [\\/]* | ?:[\\/]* ) # Absolute path.
1104 ac_srcdir=$srcdir$ac_dir_suffix;
1105 ac_top_srcdir=$srcdir ;;
1107 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1108 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 # Do not use `cd foo && pwd` to compute absolute paths, because
1112 # the directories may not exist.
1114 .) ac_abs_builddir="$ac_dir";;
1117 .) ac_abs_builddir=`pwd`;;
1118 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1119 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122 case $ac_abs_builddir in
1123 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1125 case ${ac_top_builddir}. in
1126 .) ac_abs_top_builddir=$ac_abs_builddir;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1128 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131 case $ac_abs_builddir in
1132 .) ac_abs_srcdir=$ac_srcdir;;
1135 .) ac_abs_srcdir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1137 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1143 case $ac_top_srcdir in
1144 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1146 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1151 # Check for guested configure; otherwise get Cygnus style configure.
1152 if test -f $ac_srcdir/configure.gnu; then
1154 $SHELL $ac_srcdir/configure.gnu --help=recursive
1155 elif test -f $ac_srcdir/configure; then
1157 $SHELL $ac_srcdir/configure --help=recursive
1158 elif test -f $ac_srcdir/configure.ac ||
1159 test -f $ac_srcdir/configure.in; then
1161 $ac_configure --help
1163 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1169 test -n "$ac_init_help" && exit 0
1170 if $ac_init_version; then
1173 Copyright (C) 2003 Free Software Foundation, Inc.
1174 This configure script is free software; the Free Software Foundation
1175 gives unlimited permission to copy, distribute and modify it.
1181 This file contains any messages produced by compilers while
1182 running configure, to aid debugging if configure makes a mistake.
1184 It was created by $as_me, which was
1185 generated by GNU Autoconf 2.59. Invocation command line was
1196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1208 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1219 test -z "$as_dir" && as_dir=.
1220 echo "PATH: $as_dir"
1235 # Keep a trace of the command line.
1236 # Strip out --no-create and --no-recursion so they do not pile up.
1237 # Strip out --silent because we don't want to record it for future runs.
1238 # Also quote any args containing shell meta-characters.
1239 # Make two passes to allow for proper duplicate-argument suppression.
1244 ac_must_keep_next=false
1250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1254 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1255 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1260 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1261 if test $ac_must_keep_next = true; then
1262 ac_must_keep_next=false # Got value, back to normal.
1265 *=* | --config-cache | -C | -disable-* | --disable-* \
1266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1268 | -with-* | --with-* | -without-* | --without-* | --x)
1269 case "$ac_configure_args0 " in
1270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273 -* ) ac_must_keep_next=true ;;
1276 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1277 # Get rid of the leading space.
1283 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1284 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1286 # When interrupted or exit'd, cleanup temporary files, and complete
1287 # config.log. We remove comments because anyway the quotes in there
1288 # would cause problems or look ugly.
1289 # WARNING: Be sure not to use single quotes in there, as some shells,
1290 # such as our DU 5.0 friend, will then `close' the trap.
1291 trap 'exit_status=$?
1292 # Save into config.log some information that might help in debugging.
1297 ## ---------------- ##
1298 ## Cache variables. ##
1299 ## ---------------- ##
1302 # The following way of writing the cache mishandles newlines in values,
1305 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1309 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1313 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1320 ## ----------------- ##
1321 ## Output variables. ##
1322 ## ----------------- ##
1325 for ac_var in $ac_subst_vars
1327 eval ac_val=$`echo $ac_var`
1328 echo "$ac_var='"'"'$ac_val'"'"'"
1332 if test -n "$ac_subst_files"; then
1339 for ac_var in $ac_subst_files
1341 eval ac_val=$`echo $ac_var`
1342 echo "$ac_var='"'"'$ac_val'"'"'"
1347 if test -s confdefs.h; then
1354 sed "/^$/d" confdefs.h | sort
1357 test "$ac_signal" != 0 &&
1358 echo "$as_me: caught signal $ac_signal"
1359 echo "$as_me: exit $exit_status"
1361 rm -f core *.core &&
1362 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365 for ac_signal in 1 2 13 15; do
1366 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1370 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1371 rm -rf conftest* confdefs.h
1372 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375 # Predefined preprocessor variables.
1377 cat >>confdefs.h <<_ACEOF
1378 #define PACKAGE_NAME "$PACKAGE_NAME"
1382 cat >>confdefs.h <<_ACEOF
1383 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1387 cat >>confdefs.h <<_ACEOF
1388 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1392 cat >>confdefs.h <<_ACEOF
1393 #define PACKAGE_STRING "$PACKAGE_STRING"
1397 cat >>confdefs.h <<_ACEOF
1398 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1402 # Let the site file select an alternate cache file if it wants to.
1403 # Prefer explicitly selected file to automatically selected ones.
1404 if test -z "$CONFIG_SITE"; then
1405 if test "x$prefix" != xNONE; then
1406 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1408 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411 for ac_site_file in $CONFIG_SITE; do
1412 if test -r "$ac_site_file"; then
1413 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1414 echo "$as_me: loading site script $ac_site_file" >&6;}
1415 sed 's/^/| /' "$ac_site_file" >&5
1420 if test -r "$cache_file"; then
1421 # Some versions of bash will fail to source /dev/null (special
1422 # files actually), so we avoid doing that.
1423 if test -f "$cache_file"; then
1424 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1425 echo "$as_me: loading cache $cache_file" >&6;}
1427 [\\/]* | ?:[\\/]* ) . $cache_file;;
1428 *) . ./$cache_file;;
1432 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1433 echo "$as_me: creating cache $cache_file" >&6;}
1437 # Check that the precious variables saved in the cache have kept the same
1439 ac_cache_corrupted=false
1440 for ac_var in `(set) 2>&1 |
1441 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1442 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1443 eval ac_new_set=\$ac_env_${ac_var}_set
1444 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1445 eval ac_new_val="\$ac_env_${ac_var}_value"
1446 case $ac_old_set,$ac_new_set in
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1452 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1453 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1454 ac_cache_corrupted=: ;;
1457 if test "x$ac_old_val" != "x$ac_new_val"; then
1458 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1459 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1460 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1461 echo "$as_me: former value: $ac_old_val" >&2;}
1462 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1463 echo "$as_me: current value: $ac_new_val" >&2;}
1464 ac_cache_corrupted=:
1467 # Pass precious variables to config.status.
1468 if test "$ac_new_set" = set; then
1470 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1471 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1472 *) ac_arg=$ac_var=$ac_new_val ;;
1474 case " $ac_configure_args " in
1475 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1476 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1480 if $ac_cache_corrupted; then
1481 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1482 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1483 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1484 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1485 { (exit 1); exit 1; }; }
1489 ac_cpp='$CPP $CPPFLAGS'
1490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1492 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1512 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1516 RADIUSD_MAJOR_VERSION=1
1517 RADIUSD_MINOR_VERSION=1.3
1518 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1522 ac_cpp='$CPP $CPPFLAGS'
1523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1526 if test -n "$ac_tool_prefix"; then
1527 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1528 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1529 echo "$as_me:$LINENO: checking for $ac_word" >&5
1530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1531 if test "${ac_cv_prog_CC+set}" = set; then
1532 echo $ECHO_N "(cached) $ECHO_C" >&6
1534 if test -n "$CC"; then
1535 ac_cv_prog_CC="$CC" # Let the user override the test.
1537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1541 test -z "$as_dir" && as_dir=.
1542 for ac_exec_ext in '' $ac_executable_extensions; do
1543 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1544 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1545 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1554 if test -n "$CC"; then
1555 echo "$as_me:$LINENO: result: $CC" >&5
1556 echo "${ECHO_T}$CC" >&6
1558 echo "$as_me:$LINENO: result: no" >&5
1559 echo "${ECHO_T}no" >&6
1563 if test -z "$ac_cv_prog_CC"; then
1565 # Extract the first word of "gcc", so it can be a program name with args.
1566 set dummy gcc; ac_word=$2
1567 echo "$as_me:$LINENO: checking for $ac_word" >&5
1568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1569 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 if test -n "$ac_ct_CC"; then
1573 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1579 test -z "$as_dir" && as_dir=.
1580 for ac_exec_ext in '' $ac_executable_extensions; do
1581 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1582 ac_cv_prog_ac_ct_CC="gcc"
1583 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1591 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1592 if test -n "$ac_ct_CC"; then
1593 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1594 echo "${ECHO_T}$ac_ct_CC" >&6
1596 echo "$as_me:$LINENO: result: no" >&5
1597 echo "${ECHO_T}no" >&6
1605 if test -z "$CC"; then
1606 if test -n "$ac_tool_prefix"; then
1607 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1608 set dummy ${ac_tool_prefix}cc; ac_word=$2
1609 echo "$as_me:$LINENO: checking for $ac_word" >&5
1610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1611 if test "${ac_cv_prog_CC+set}" = set; then
1612 echo $ECHO_N "(cached) $ECHO_C" >&6
1614 if test -n "$CC"; then
1615 ac_cv_prog_CC="$CC" # Let the user override the test.
1617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1621 test -z "$as_dir" && as_dir=.
1622 for ac_exec_ext in '' $ac_executable_extensions; do
1623 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1624 ac_cv_prog_CC="${ac_tool_prefix}cc"
1625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1634 if test -n "$CC"; then
1635 echo "$as_me:$LINENO: result: $CC" >&5
1636 echo "${ECHO_T}$CC" >&6
1638 echo "$as_me:$LINENO: result: no" >&5
1639 echo "${ECHO_T}no" >&6
1643 if test -z "$ac_cv_prog_CC"; then
1645 # Extract the first word of "cc", so it can be a program name with args.
1646 set dummy cc; ac_word=$2
1647 echo "$as_me:$LINENO: checking for $ac_word" >&5
1648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1649 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1650 echo $ECHO_N "(cached) $ECHO_C" >&6
1652 if test -n "$ac_ct_CC"; then
1653 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1659 test -z "$as_dir" && as_dir=.
1660 for ac_exec_ext in '' $ac_executable_extensions; do
1661 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1662 ac_cv_prog_ac_ct_CC="cc"
1663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1671 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1672 if test -n "$ac_ct_CC"; then
1673 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1674 echo "${ECHO_T}$ac_ct_CC" >&6
1676 echo "$as_me:$LINENO: result: no" >&5
1677 echo "${ECHO_T}no" >&6
1686 if test -z "$CC"; then
1687 # Extract the first word of "cc", so it can be a program name with args.
1688 set dummy cc; ac_word=$2
1689 echo "$as_me:$LINENO: checking for $ac_word" >&5
1690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1691 if test "${ac_cv_prog_CC+set}" = set; then
1692 echo $ECHO_N "(cached) $ECHO_C" >&6
1694 if test -n "$CC"; then
1695 ac_cv_prog_CC="$CC" # Let the user override the test.
1698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1702 test -z "$as_dir" && as_dir=.
1703 for ac_exec_ext in '' $ac_executable_extensions; do
1704 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1705 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1706 ac_prog_rejected=yes
1710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1716 if test $ac_prog_rejected = yes; then
1717 # We found a bogon in the path, so make sure we never use it.
1718 set dummy $ac_cv_prog_CC
1720 if test $# != 0; then
1721 # We chose a different compiler from the bogus one.
1722 # However, it has the same basename, so the bogon will be chosen
1723 # first if we set CC to just the basename; use the full file name.
1725 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1731 if test -n "$CC"; then
1732 echo "$as_me:$LINENO: result: $CC" >&5
1733 echo "${ECHO_T}$CC" >&6
1735 echo "$as_me:$LINENO: result: no" >&5
1736 echo "${ECHO_T}no" >&6
1740 if test -z "$CC"; then
1741 if test -n "$ac_tool_prefix"; then
1744 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1745 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1746 echo "$as_me:$LINENO: checking for $ac_word" >&5
1747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1748 if test "${ac_cv_prog_CC+set}" = set; then
1749 echo $ECHO_N "(cached) $ECHO_C" >&6
1751 if test -n "$CC"; then
1752 ac_cv_prog_CC="$CC" # Let the user override the test.
1754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1758 test -z "$as_dir" && as_dir=.
1759 for ac_exec_ext in '' $ac_executable_extensions; do
1760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1761 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771 if test -n "$CC"; then
1772 echo "$as_me:$LINENO: result: $CC" >&5
1773 echo "${ECHO_T}$CC" >&6
1775 echo "$as_me:$LINENO: result: no" >&5
1776 echo "${ECHO_T}no" >&6
1779 test -n "$CC" && break
1782 if test -z "$CC"; then
1786 # Extract the first word of "$ac_prog", so it can be a program name with args.
1787 set dummy $ac_prog; ac_word=$2
1788 echo "$as_me:$LINENO: checking for $ac_word" >&5
1789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1790 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1791 echo $ECHO_N "(cached) $ECHO_C" >&6
1793 if test -n "$ac_ct_CC"; then
1794 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 test -z "$as_dir" && as_dir=.
1801 for ac_exec_ext in '' $ac_executable_extensions; do
1802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1803 ac_cv_prog_ac_ct_CC="$ac_prog"
1804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1812 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1813 if test -n "$ac_ct_CC"; then
1814 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1815 echo "${ECHO_T}$ac_ct_CC" >&6
1817 echo "$as_me:$LINENO: result: no" >&5
1818 echo "${ECHO_T}no" >&6
1821 test -n "$ac_ct_CC" && break
1830 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&5
1832 echo "$as_me: error: no acceptable C compiler found in \$PATH
1833 See \`config.log' for more details." >&2;}
1834 { (exit 1); exit 1; }; }
1836 # Provide some information about the compiler.
1837 echo "$as_me:$LINENO:" \
1838 "checking for C compiler version" >&5
1839 ac_compiler=`set X $ac_compile; echo $2`
1840 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1841 (eval $ac_compiler --version </dev/null >&5) 2>&5
1843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1844 (exit $ac_status); }
1845 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1846 (eval $ac_compiler -v </dev/null >&5) 2>&5
1848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1849 (exit $ac_status); }
1850 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1851 (eval $ac_compiler -V </dev/null >&5) 2>&5
1853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1854 (exit $ac_status); }
1856 cat >conftest.$ac_ext <<_ACEOF
1859 cat confdefs.h >>conftest.$ac_ext
1860 cat >>conftest.$ac_ext <<_ACEOF
1861 /* end confdefs.h. */
1871 ac_clean_files_save=$ac_clean_files
1872 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1873 # Try to create an executable without -o first, disregard a.out.
1874 # It will help us diagnose broken compilers, and finding out an intuition
1876 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1877 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1878 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1879 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1880 (eval $ac_link_default) 2>&5
1882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1883 (exit $ac_status); }; then
1884 # Find the output, starting from the most likely. This scheme is
1885 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1888 # Be careful to initialize this variable, since it used to be cached.
1889 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1891 # b.out is created by i960 compilers.
1892 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1894 test -f "$ac_file" || continue
1896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1899 # This is the source file.
1902 # We found the default executable, but exeext='' is most
1906 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1907 # FIXME: I believe we export ac_cv_exeext for Libtool,
1908 # but it would be cool to find out if it's true. Does anybody
1909 # maintain Libtool? --akim.
1917 echo "$as_me: failed program was:" >&5
1918 sed 's/^/| /' conftest.$ac_ext >&5
1920 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&5
1922 echo "$as_me: error: C compiler cannot create executables
1923 See \`config.log' for more details." >&2;}
1924 { (exit 77); exit 77; }; }
1927 ac_exeext=$ac_cv_exeext
1928 echo "$as_me:$LINENO: result: $ac_file" >&5
1929 echo "${ECHO_T}$ac_file" >&6
1931 # Check the compiler produces executables we can run. If not, either
1932 # the compiler is broken, or we cross compile.
1933 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1934 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1935 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1936 # If not cross compiling, check that we can run a simple program.
1937 if test "$cross_compiling" != yes; then
1938 if { ac_try='./$ac_file'
1939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1943 (exit $ac_status); }; }; then
1946 if test "$cross_compiling" = maybe; then
1949 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&5
1952 echo "$as_me: error: cannot run C compiled programs.
1953 If you meant to cross compile, use \`--host'.
1954 See \`config.log' for more details." >&2;}
1955 { (exit 1); exit 1; }; }
1959 echo "$as_me:$LINENO: result: yes" >&5
1960 echo "${ECHO_T}yes" >&6
1962 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1963 ac_clean_files=$ac_clean_files_save
1964 # Check the compiler produces executables we can run. If not, either
1965 # the compiler is broken, or we cross compile.
1966 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1967 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1968 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1969 echo "${ECHO_T}$cross_compiling" >&6
1971 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1972 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1974 (eval $ac_link) 2>&5
1976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1977 (exit $ac_status); }; then
1978 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1979 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1980 # work properly (i.e., refer to `conftest.exe'), while it won't with
1982 for ac_file in conftest.exe conftest conftest.*; do
1983 test -f "$ac_file" || continue
1985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1986 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&5
1995 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1996 See \`config.log' for more details." >&2;}
1997 { (exit 1); exit 1; }; }
2000 rm -f conftest$ac_cv_exeext
2001 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2002 echo "${ECHO_T}$ac_cv_exeext" >&6
2004 rm -f conftest.$ac_ext
2005 EXEEXT=$ac_cv_exeext
2007 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2008 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2009 if test "${ac_cv_objext+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2012 cat >conftest.$ac_ext <<_ACEOF
2015 cat confdefs.h >>conftest.$ac_ext
2016 cat >>conftest.$ac_ext <<_ACEOF
2017 /* end confdefs.h. */
2027 rm -f conftest.o conftest.obj
2028 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2029 (eval $ac_compile) 2>&5
2031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2032 (exit $ac_status); }; then
2033 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2035 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2036 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2041 echo "$as_me: failed program was:" >&5
2042 sed 's/^/| /' conftest.$ac_ext >&5
2044 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&5
2046 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2047 See \`config.log' for more details." >&2;}
2048 { (exit 1); exit 1; }; }
2051 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2053 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2054 echo "${ECHO_T}$ac_cv_objext" >&6
2055 OBJEXT=$ac_cv_objext
2057 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2058 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2059 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 cat >conftest.$ac_ext <<_ACEOF
2065 cat confdefs.h >>conftest.$ac_ext
2066 cat >>conftest.$ac_ext <<_ACEOF
2067 /* end confdefs.h. */
2080 rm -f conftest.$ac_objext
2081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2082 (eval $ac_compile) 2>conftest.er1
2084 grep -v '^ *+' conftest.er1 >conftest.err
2086 cat conftest.err >&5
2087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2088 (exit $ac_status); } &&
2089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }; } &&
2095 { ac_try='test -s conftest.$ac_objext'
2096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2100 (exit $ac_status); }; }; then
2103 echo "$as_me: failed program was:" >&5
2104 sed 's/^/| /' conftest.$ac_ext >&5
2108 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2109 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2112 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2113 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2114 GCC=`test $ac_compiler_gnu = yes && echo yes`
2115 ac_test_CFLAGS=${CFLAGS+set}
2116 ac_save_CFLAGS=$CFLAGS
2118 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2119 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2120 if test "${ac_cv_prog_cc_g+set}" = set; then
2121 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 cat >conftest.$ac_ext <<_ACEOF
2126 cat confdefs.h >>conftest.$ac_ext
2127 cat >>conftest.$ac_ext <<_ACEOF
2128 /* end confdefs.h. */
2138 rm -f conftest.$ac_objext
2139 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2140 (eval $ac_compile) 2>conftest.er1
2142 grep -v '^ *+' conftest.er1 >conftest.err
2144 cat conftest.err >&5
2145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2146 (exit $ac_status); } &&
2147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2152 (exit $ac_status); }; } &&
2153 { ac_try='test -s conftest.$ac_objext'
2154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2158 (exit $ac_status); }; }; then
2161 echo "$as_me: failed program was:" >&5
2162 sed 's/^/| /' conftest.$ac_ext >&5
2166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2168 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2169 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2170 if test "$ac_test_CFLAGS" = set; then
2171 CFLAGS=$ac_save_CFLAGS
2172 elif test $ac_cv_prog_cc_g = yes; then
2173 if test "$GCC" = yes; then
2179 if test "$GCC" = yes; then
2185 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2186 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2187 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2188 echo $ECHO_N "(cached) $ECHO_C" >&6
2190 ac_cv_prog_cc_stdc=no
2192 cat >conftest.$ac_ext <<_ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2200 #include <sys/types.h>
2201 #include <sys/stat.h>
2202 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2203 struct buf { int x; };
2204 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2205 static char *e (p, i)
2211 static char *f (char * (*g) (char **, int), char **p, ...)
2216 s = g (p, va_arg (v,int));
2221 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2222 function prototypes and stuff, but not '\xHH' hex character constants.
2223 These don't provoke an error unfortunately, instead are silently treated
2224 as 'x'. The following induces an error, until -std1 is added to get
2225 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2226 array size at least. It's necessary to write '\x00'==0 to get something
2227 that's true only with -std1. */
2228 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2230 int test (int i, double x);
2231 struct s1 {int (*f) (int a);};
2232 struct s2 {int (*f) (double a);};
2233 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2239 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2244 # Don't try gcc -ansi; that turns off useful extensions and
2245 # breaks some systems' header files.
2246 # AIX -qlanglvl=ansi
2247 # Ultrix and OSF/1 -std1
2248 # HP-UX 10.20 and later -Ae
2249 # HP-UX older versions -Aa -D_HPUX_SOURCE
2250 # SVR4 -Xc -D__EXTENSIONS__
2251 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2253 CC="$ac_save_CC $ac_arg"
2254 rm -f conftest.$ac_objext
2255 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2258 grep -v '^ *+' conftest.er1 >conftest.err
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 ac_cv_prog_cc_stdc=$ac_arg
2278 echo "$as_me: failed program was:" >&5
2279 sed 's/^/| /' conftest.$ac_ext >&5
2282 rm -f conftest.err conftest.$ac_objext
2284 rm -f conftest.$ac_ext conftest.$ac_objext
2289 case "x$ac_cv_prog_cc_stdc" in
2291 echo "$as_me:$LINENO: result: none needed" >&5
2292 echo "${ECHO_T}none needed" >&6 ;;
2294 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2295 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2296 CC="$CC $ac_cv_prog_cc_stdc" ;;
2299 # Some people use a C++ compiler to compile C. Since we use `exit',
2300 # in C++ we need to declare it. In case someone uses the same compiler
2301 # for both compiling C and C++ we need to have the C++ compiler decide
2302 # the declaration of exit, since it's the most demanding environment.
2303 cat >conftest.$ac_ext <<_ACEOF
2308 rm -f conftest.$ac_objext
2309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2310 (eval $ac_compile) 2>conftest.er1
2312 grep -v '^ *+' conftest.er1 >conftest.err
2314 cat conftest.err >&5
2315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316 (exit $ac_status); } &&
2317 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2322 (exit $ac_status); }; } &&
2323 { ac_try='test -s conftest.$ac_objext'
2324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; }; then
2329 for ac_declaration in \
2331 'extern "C" void std::exit (int) throw (); using std::exit;' \
2332 'extern "C" void std::exit (int); using std::exit;' \
2333 'extern "C" void exit (int) throw ();' \
2334 'extern "C" void exit (int);' \
2337 cat >conftest.$ac_ext <<_ACEOF
2340 cat confdefs.h >>conftest.$ac_ext
2341 cat >>conftest.$ac_ext <<_ACEOF
2342 /* end confdefs.h. */
2353 rm -f conftest.$ac_objext
2354 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2355 (eval $ac_compile) 2>conftest.er1
2357 grep -v '^ *+' conftest.er1 >conftest.err
2359 cat conftest.err >&5
2360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2361 (exit $ac_status); } &&
2362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }; } &&
2368 { ac_try='test -s conftest.$ac_objext'
2369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2373 (exit $ac_status); }; }; then
2376 echo "$as_me: failed program was:" >&5
2377 sed 's/^/| /' conftest.$ac_ext >&5
2381 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2382 cat >conftest.$ac_ext <<_ACEOF
2385 cat confdefs.h >>conftest.$ac_ext
2386 cat >>conftest.$ac_ext <<_ACEOF
2387 /* end confdefs.h. */
2397 rm -f conftest.$ac_objext
2398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2399 (eval $ac_compile) 2>conftest.er1
2401 grep -v '^ *+' conftest.er1 >conftest.err
2403 cat conftest.err >&5
2404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2405 (exit $ac_status); } &&
2406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; } &&
2412 { ac_try='test -s conftest.$ac_objext'
2413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417 (exit $ac_status); }; }; then
2420 echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2427 if test -n "$ac_declaration"; then
2428 echo '#ifdef __cplusplus' >>confdefs.h
2429 echo $ac_declaration >>confdefs.h
2430 echo '#endif' >>confdefs.h
2434 echo "$as_me: failed program was:" >&5
2435 sed 's/^/| /' conftest.$ac_ext >&5
2438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2440 ac_cpp='$CPP $CPPFLAGS'
2441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2448 ac_cpp='$CPP $CPPFLAGS'
2449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2453 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2454 # On Suns, sometimes $CPP names a directory.
2455 if test -n "$CPP" && test -d "$CPP"; then
2458 if test -z "$CPP"; then
2459 if test "${ac_cv_prog_CPP+set}" = set; then
2460 echo $ECHO_N "(cached) $ECHO_C" >&6
2462 # Double quotes because CPP needs to be expanded
2463 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2466 for ac_c_preproc_warn_flag in '' yes
2468 # Use a header file that comes with gcc, so configuring glibc
2469 # with a fresh cross-compiler works.
2470 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2471 # <limits.h> exists even on freestanding compilers.
2472 # On the NeXT, cc -E runs the code through the compiler's parser,
2473 # not just through cpp. "Syntax error" is here to catch this case.
2474 cat >conftest.$ac_ext <<_ACEOF
2477 cat confdefs.h >>conftest.$ac_ext
2478 cat >>conftest.$ac_ext <<_ACEOF
2479 /* end confdefs.h. */
2481 # include <limits.h>
2483 # include <assert.h>
2487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2488 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2490 grep -v '^ *+' conftest.er1 >conftest.err
2492 cat conftest.err >&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); } >/dev/null; then
2495 if test -s conftest.err; then
2496 ac_cpp_err=$ac_c_preproc_warn_flag
2497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2504 if test -z "$ac_cpp_err"; then
2507 echo "$as_me: failed program was:" >&5
2508 sed 's/^/| /' conftest.$ac_ext >&5
2510 # Broken: fails on valid input.
2513 rm -f conftest.err conftest.$ac_ext
2515 # OK, works on sane cases. Now check whether non-existent headers
2516 # can be detected and how.
2517 cat >conftest.$ac_ext <<_ACEOF
2520 cat confdefs.h >>conftest.$ac_ext
2521 cat >>conftest.$ac_ext <<_ACEOF
2522 /* end confdefs.h. */
2523 #include <ac_nonexistent.h>
2525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2526 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2528 grep -v '^ *+' conftest.er1 >conftest.err
2530 cat conftest.err >&5
2531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2532 (exit $ac_status); } >/dev/null; then
2533 if test -s conftest.err; then
2534 ac_cpp_err=$ac_c_preproc_warn_flag
2535 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2542 if test -z "$ac_cpp_err"; then
2543 # Broken: success on invalid input.
2546 echo "$as_me: failed program was:" >&5
2547 sed 's/^/| /' conftest.$ac_ext >&5
2549 # Passes both tests.
2553 rm -f conftest.err conftest.$ac_ext
2556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2557 rm -f conftest.err conftest.$ac_ext
2558 if $ac_preproc_ok; then
2570 echo "$as_me:$LINENO: result: $CPP" >&5
2571 echo "${ECHO_T}$CPP" >&6
2573 for ac_c_preproc_warn_flag in '' yes
2575 # Use a header file that comes with gcc, so configuring glibc
2576 # with a fresh cross-compiler works.
2577 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2578 # <limits.h> exists even on freestanding compilers.
2579 # On the NeXT, cc -E runs the code through the compiler's parser,
2580 # not just through cpp. "Syntax error" is here to catch this case.
2581 cat >conftest.$ac_ext <<_ACEOF
2584 cat confdefs.h >>conftest.$ac_ext
2585 cat >>conftest.$ac_ext <<_ACEOF
2586 /* end confdefs.h. */
2588 # include <limits.h>
2590 # include <assert.h>
2594 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2595 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2597 grep -v '^ *+' conftest.er1 >conftest.err
2599 cat conftest.err >&5
2600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601 (exit $ac_status); } >/dev/null; then
2602 if test -s conftest.err; then
2603 ac_cpp_err=$ac_c_preproc_warn_flag
2604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2611 if test -z "$ac_cpp_err"; then
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2617 # Broken: fails on valid input.
2620 rm -f conftest.err conftest.$ac_ext
2622 # OK, works on sane cases. Now check whether non-existent headers
2623 # can be detected and how.
2624 cat >conftest.$ac_ext <<_ACEOF
2627 cat confdefs.h >>conftest.$ac_ext
2628 cat >>conftest.$ac_ext <<_ACEOF
2629 /* end confdefs.h. */
2630 #include <ac_nonexistent.h>
2632 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2633 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2635 grep -v '^ *+' conftest.er1 >conftest.err
2637 cat conftest.err >&5
2638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2639 (exit $ac_status); } >/dev/null; then
2640 if test -s conftest.err; then
2641 ac_cpp_err=$ac_c_preproc_warn_flag
2642 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2649 if test -z "$ac_cpp_err"; then
2650 # Broken: success on invalid input.
2653 echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 # Passes both tests.
2660 rm -f conftest.err conftest.$ac_ext
2663 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2664 rm -f conftest.err conftest.$ac_ext
2665 if $ac_preproc_ok; then
2668 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&5
2670 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2671 See \`config.log' for more details." >&2;}
2672 { (exit 1); exit 1; }; }
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2682 echo "$as_me:$LINENO: checking for egrep" >&5
2683 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2684 if test "${ac_cv_prog_egrep+set}" = set; then
2685 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2688 then ac_cv_prog_egrep='grep -E'
2689 else ac_cv_prog_egrep='egrep'
2692 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2693 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2694 EGREP=$ac_cv_prog_egrep
2698 echo "$as_me:$LINENO: checking for AIX" >&5
2699 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2712 $EGREP "yes" >/dev/null 2>&1; then
2713 echo "$as_me:$LINENO: result: yes" >&5
2714 echo "${ECHO_T}yes" >&6
2715 cat >>confdefs.h <<\_ACEOF
2716 #define _ALL_SOURCE 1
2720 echo "$as_me:$LINENO: result: no" >&5
2721 echo "${ECHO_T}no" >&6
2727 if test $ac_cv_c_compiler_gnu = yes; then
2728 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2729 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2730 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2731 echo $ECHO_N "(cached) $ECHO_C" >&6
2733 ac_pattern="Autoconf.*'x'"
2734 cat >conftest.$ac_ext <<_ACEOF
2737 cat confdefs.h >>conftest.$ac_ext
2738 cat >>conftest.$ac_ext <<_ACEOF
2739 /* end confdefs.h. */
2743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2744 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2745 ac_cv_prog_gcc_traditional=yes
2747 ac_cv_prog_gcc_traditional=no
2752 if test $ac_cv_prog_gcc_traditional = no; then
2753 cat >conftest.$ac_ext <<_ACEOF
2756 cat confdefs.h >>conftest.$ac_ext
2757 cat >>conftest.$ac_ext <<_ACEOF
2758 /* end confdefs.h. */
2762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2763 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2764 ac_cv_prog_gcc_traditional=yes
2770 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2771 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2772 if test $ac_cv_prog_gcc_traditional = yes; then
2773 CC="$CC -traditional"
2777 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2778 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2779 if test "${ac_cv_prog_suncc+set}" = set; then
2780 echo $ECHO_N "(cached) $ECHO_C" >&6
2782 cat > conftest.c <<EOF
2787 if { ac_try='${CC-cc} -E conftest.c'
2788 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2792 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2793 ac_cv_prog_suncc=yes
2798 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2799 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2800 if test -n "$ac_tool_prefix"; then
2801 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2802 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2803 echo "$as_me:$LINENO: checking for $ac_word" >&5
2804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2805 if test "${ac_cv_prog_RANLIB+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 if test -n "$RANLIB"; then
2809 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 test -z "$as_dir" && as_dir=.
2816 for ac_exec_ext in '' $ac_executable_extensions; do
2817 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2818 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2827 RANLIB=$ac_cv_prog_RANLIB
2828 if test -n "$RANLIB"; then
2829 echo "$as_me:$LINENO: result: $RANLIB" >&5
2830 echo "${ECHO_T}$RANLIB" >&6
2832 echo "$as_me:$LINENO: result: no" >&5
2833 echo "${ECHO_T}no" >&6
2837 if test -z "$ac_cv_prog_RANLIB"; then
2838 ac_ct_RANLIB=$RANLIB
2839 # Extract the first word of "ranlib", so it can be a program name with args.
2840 set dummy ranlib; ac_word=$2
2841 echo "$as_me:$LINENO: checking for $ac_word" >&5
2842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2843 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2844 echo $ECHO_N "(cached) $ECHO_C" >&6
2846 if test -n "$ac_ct_RANLIB"; then
2847 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 test -z "$as_dir" && as_dir=.
2854 for ac_exec_ext in '' $ac_executable_extensions; do
2855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2856 ac_cv_prog_ac_ct_RANLIB="ranlib"
2857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2863 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2866 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2867 if test -n "$ac_ct_RANLIB"; then
2868 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2869 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2871 echo "$as_me:$LINENO: result: no" >&5
2872 echo "${ECHO_T}no" >&6
2875 RANLIB=$ac_ct_RANLIB
2877 RANLIB="$ac_cv_prog_RANLIB"
2881 abs_top_builddir=`pwd`
2887 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2888 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2889 if test "${ac_cv_c_bigendian+set}" = set; then
2890 echo $ECHO_N "(cached) $ECHO_C" >&6
2892 # See if sys/param.h defines the BYTE_ORDER macro.
2893 cat >conftest.$ac_ext <<_ACEOF
2896 cat confdefs.h >>conftest.$ac_ext
2897 cat >>conftest.$ac_ext <<_ACEOF
2898 /* end confdefs.h. */
2899 #include <sys/types.h>
2900 #include <sys/param.h>
2905 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2913 rm -f conftest.$ac_objext
2914 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2915 (eval $ac_compile) 2>conftest.er1
2917 grep -v '^ *+' conftest.er1 >conftest.err
2919 cat conftest.err >&5
2920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2921 (exit $ac_status); } &&
2922 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); }; } &&
2928 { ac_try='test -s conftest.$ac_objext'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; }; then
2934 # It does; now see whether it defined to BIG_ENDIAN or not.
2935 cat >conftest.$ac_ext <<_ACEOF
2938 cat confdefs.h >>conftest.$ac_ext
2939 cat >>conftest.$ac_ext <<_ACEOF
2940 /* end confdefs.h. */
2941 #include <sys/types.h>
2942 #include <sys/param.h>
2947 #if BYTE_ORDER != BIG_ENDIAN
2955 rm -f conftest.$ac_objext
2956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2957 (eval $ac_compile) 2>conftest.er1
2959 grep -v '^ *+' conftest.er1 >conftest.err
2961 cat conftest.err >&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); } &&
2964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2969 (exit $ac_status); }; } &&
2970 { ac_try='test -s conftest.$ac_objext'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2976 ac_cv_c_bigendian=yes
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2981 ac_cv_c_bigendian=no
2983 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2985 echo "$as_me: failed program was:" >&5
2986 sed 's/^/| /' conftest.$ac_ext >&5
2988 # It does not; compile a test program.
2989 if test "$cross_compiling" = yes; then
2990 # try to guess the endianness by grepping values into an object file
2991 ac_cv_c_bigendian=unknown
2992 cat >conftest.$ac_ext <<_ACEOF
2995 cat confdefs.h >>conftest.$ac_ext
2996 cat >>conftest.$ac_ext <<_ACEOF
2997 /* end confdefs.h. */
2998 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
2999 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3000 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3001 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3002 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3003 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3007 _ascii (); _ebcdic ();
3012 rm -f conftest.$ac_objext
3013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3014 (eval $ac_compile) 2>conftest.er1
3016 grep -v '^ *+' conftest.er1 >conftest.err
3018 cat conftest.err >&5
3019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020 (exit $ac_status); } &&
3021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; } &&
3027 { ac_try='test -s conftest.$ac_objext'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; }; then
3033 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3034 ac_cv_c_bigendian=yes
3036 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3037 if test "$ac_cv_c_bigendian" = unknown; then
3038 ac_cv_c_bigendian=no
3040 # finding both strings is unlikely to happen, but who knows?
3041 ac_cv_c_bigendian=unknown
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3060 /* Are we little or big endian? From Harbison&Steele. */
3064 char c[sizeof (long)];
3067 exit (u.c[sizeof (long) - 1] == 1);
3070 rm -f conftest$ac_exeext
3071 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3072 (eval $ac_link) 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; }; then
3081 ac_cv_c_bigendian=no
3083 echo "$as_me: program exited with status $ac_status" >&5
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3088 ac_cv_c_bigendian=yes
3090 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3095 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3096 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3097 case $ac_cv_c_bigendian in
3100 cat >>confdefs.h <<\_ACEOF
3101 #define WORDS_BIGENDIAN 1
3107 { { echo "$as_me:$LINENO: error: unknown endianness
3108 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3109 echo "$as_me: error: unknown endianness
3110 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3111 { (exit 1); exit 1; }; } ;;
3115 # Extract the first word of "gmake", so it can be a program name with args.
3116 set dummy gmake; ac_word=$2
3117 echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3119 if test "${ac_cv_prog_GMAKE+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$GMAKE"; then
3123 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir=.
3130 for ac_exec_ext in '' $ac_executable_extensions; do
3131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3132 ac_cv_prog_GMAKE="yes"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3142 GMAKE=$ac_cv_prog_GMAKE
3143 if test -n "$GMAKE"; then
3144 echo "$as_me:$LINENO: result: $GMAKE" >&5
3145 echo "${ECHO_T}$GMAKE" >&6
3147 echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6
3151 if test $GMAKE = no; then
3152 # Extract the first word of "make", so it can be a program name with args.
3153 set dummy make; ac_word=$2
3154 echo "$as_me:$LINENO: checking for $ac_word" >&5
3155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3156 if test "${ac_cv_path_MAKE+set}" = set; then
3157 echo $ECHO_N "(cached) $ECHO_C" >&6
3161 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168 test -z "$as_dir" && as_dir=.
3169 for ac_exec_ext in '' $ac_executable_extensions; do
3170 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3171 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3182 MAKE=$ac_cv_path_MAKE
3184 if test -n "$MAKE"; then
3185 echo "$as_me:$LINENO: result: $MAKE" >&5
3186 echo "${ECHO_T}$MAKE" >&6
3188 echo "$as_me:$LINENO: result: no" >&5
3189 echo "${ECHO_T}no" >&6
3193 # Extract the first word of "gmake", so it can be a program name with args.
3194 set dummy gmake; ac_word=$2
3195 echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3197 if test "${ac_cv_path_MAKE+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3202 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3223 MAKE=$ac_cv_path_MAKE
3225 if test -n "$MAKE"; then
3226 echo "$as_me:$LINENO: result: $MAKE" >&5
3227 echo "${ECHO_T}$MAKE" >&6
3229 echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6
3234 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3235 if test -z "$makever"; then
3236 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3237 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3238 echo "$as_me: error: GNU Make is not installed. Please download and install it
3239 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3240 { (exit 1); exit 1; }; }
3243 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3244 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3245 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 ac_check_lib_save_LIBS=$LIBS
3250 cat >conftest.$ac_ext <<_ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3257 /* Override any gcc2 internal prototype to avoid an error. */
3261 /* We use char because int might match the return type of a gcc2
3262 builtin and then its argument prototype would still apply. */
3272 rm -f conftest.$ac_objext conftest$ac_exeext
3273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3274 (eval $ac_link) 2>conftest.er1
3276 grep -v '^ *+' conftest.er1 >conftest.err
3278 cat conftest.err >&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); } &&
3281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3286 (exit $ac_status); }; } &&
3287 { ac_try='test -s conftest$ac_exeext'
3288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3292 (exit $ac_status); }; }; then
3293 ac_cv_lib_ltdl_lt_dlinit=yes
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3298 ac_cv_lib_ltdl_lt_dlinit=no
3300 rm -f conftest.err conftest.$ac_objext \
3301 conftest$ac_exeext conftest.$ac_ext
3302 LIBS=$ac_check_lib_save_LIBS
3304 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3305 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3306 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3307 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3309 if test x"$enable_ltdl_install" = xno; then
3310 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3311 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3313 enable_ltdl_install=yes
3318 if test x"$enable_ltdl_install" = x"yes"; then
3319 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3320 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3321 LTDLINCL='-I${top_srcdir}/''libltdl'
3323 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3327 # For backwards non-gettext consistent compatibility...
3331 if test x"$enable_ltdl_install" = x"yes"; then
3332 LTDL_SUBDIRS=libltdl
3336 # Check whether --enable-shared or --disable-shared was given.
3337 if test "${enable_shared+set}" = set; then
3338 enableval="$enable_shared"
3339 p=${PACKAGE-default}
3341 yes) enable_shared=yes ;;
3342 no) enable_shared=no ;;
3345 # Look at the argument we got. We use all the common list separators.
3346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3347 for pkg in $enableval; do
3349 if test "X$pkg" = "X$p"; then
3360 # Check whether --enable-static or --disable-static was given.
3361 if test "${enable_static+set}" = set; then
3362 enableval="$enable_static"
3363 p=${PACKAGE-default}
3365 yes) enable_static=yes ;;
3366 no) enable_static=no ;;
3369 # Look at the argument we got. We use all the common list separators.
3370 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3371 for pkg in $enableval; do
3373 if test "X$pkg" = "X$p"; then
3384 # Check whether --enable-fast-install or --disable-fast-install was given.
3385 if test "${enable_fast_install+set}" = set; then
3386 enableval="$enable_fast_install"
3387 p=${PACKAGE-default}
3389 yes) enable_fast_install=yes ;;
3390 no) enable_fast_install=no ;;
3392 enable_fast_install=no
3393 # Look at the argument we got. We use all the common list separators.
3394 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3395 for pkg in $enableval; do
3397 if test "X$pkg" = "X$p"; then
3398 enable_fast_install=yes
3405 enable_fast_install=yes
3409 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3410 if test -f $ac_dir/install-sh; then
3412 ac_install_sh="$ac_aux_dir/install-sh -c"
3414 elif test -f $ac_dir/install.sh; then
3416 ac_install_sh="$ac_aux_dir/install.sh -c"
3418 elif test -f $ac_dir/shtool; then
3420 ac_install_sh="$ac_aux_dir/shtool install -c"
3424 if test -z "$ac_aux_dir"; then
3425 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3426 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3427 { (exit 1); exit 1; }; }
3429 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3430 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3431 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3433 # Make sure we can run config.sub.
3434 $ac_config_sub sun4 >/dev/null 2>&1 ||
3435 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3436 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3437 { (exit 1); exit 1; }; }
3439 echo "$as_me:$LINENO: checking build system type" >&5
3440 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3441 if test "${ac_cv_build+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 ac_cv_build_alias=$build_alias
3445 test -z "$ac_cv_build_alias" &&
3446 ac_cv_build_alias=`$ac_config_guess`
3447 test -z "$ac_cv_build_alias" &&
3448 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3449 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3450 { (exit 1); exit 1; }; }
3451 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3452 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3453 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3454 { (exit 1); exit 1; }; }
3457 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3458 echo "${ECHO_T}$ac_cv_build" >&6
3460 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3461 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3462 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3465 echo "$as_me:$LINENO: checking host system type" >&5
3466 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3467 if test "${ac_cv_host+set}" = set; then
3468 echo $ECHO_N "(cached) $ECHO_C" >&6
3470 ac_cv_host_alias=$host_alias
3471 test -z "$ac_cv_host_alias" &&
3472 ac_cv_host_alias=$ac_cv_build_alias
3473 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3474 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3475 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3476 { (exit 1); exit 1; }; }
3479 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3480 echo "${ECHO_T}$ac_cv_host" >&6
3482 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3483 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3484 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3487 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3488 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3489 if test "${lt_cv_path_SED+set}" = set; then
3490 echo $ECHO_N "(cached) $ECHO_C" >&6
3492 # Loop through the user's path and test for sed and gsed.
3493 # Then use that list of sed's as ones to test for truncation.
3494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3498 test -z "$as_dir" && as_dir=.
3499 for lt_ac_prog in sed gsed; do
3500 for ac_exec_ext in '' $ac_executable_extensions; do
3501 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3502 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3509 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3510 # along with /bin/sed that truncates output.
3511 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3512 test ! -f $lt_ac_sed && continue
3513 cat /dev/null > conftest.in
3515 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3516 # Check for GNU sed and select it if it is found.
3517 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3518 lt_cv_path_SED=$lt_ac_sed
3522 cat conftest.in conftest.in >conftest.tmp
3523 mv conftest.tmp conftest.in
3524 cp conftest.in conftest.nl
3526 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3527 cmp -s conftest.out conftest.nl || break
3528 # 10000 chars as input seems more than enough
3529 test $lt_ac_count -gt 10 && break
3530 lt_ac_count=`expr $lt_ac_count + 1`
3531 if test $lt_ac_count -gt $lt_ac_max; then
3532 lt_ac_max=$lt_ac_count
3533 lt_cv_path_SED=$lt_ac_sed
3541 echo "$as_me:$LINENO: result: $SED" >&5
3542 echo "${ECHO_T}$SED" >&6
3545 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3546 if test "${with_gnu_ld+set}" = set; then
3547 withval="$with_gnu_ld"
3548 test "$withval" = no || with_gnu_ld=yes
3553 if test "$GCC" = yes; then
3554 # Check if gcc -print-prog-name=ld gives a path.
3555 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3556 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3559 # gcc leaves a trailing carriage return which upsets mingw
3560 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3562 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3565 # Accept absolute paths.
3567 re_direlt='/[^/][^/]*/\.\./'
3568 # Canonicalize the pathname of ld
3569 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3570 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3571 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3573 test -z "$LD" && LD="$ac_prog"
3576 # If it fails, then pretend we aren't using GCC.
3580 # If it is relative, then search for the first ld in PATH.
3584 elif test "$with_gnu_ld" = yes; then
3585 echo "$as_me:$LINENO: checking for GNU ld" >&5
3586 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3588 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3589 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3591 if test "${lt_cv_path_LD+set}" = set; then
3592 echo $ECHO_N "(cached) $ECHO_C" >&6
3594 if test -z "$LD"; then
3595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3596 for ac_dir in $PATH; do
3598 test -z "$ac_dir" && ac_dir=.
3599 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3600 lt_cv_path_LD="$ac_dir/$ac_prog"
3601 # Check to see if the program is GNU ld. I'd rather use --version,
3602 # but apparently some variants of GNU ld only accept -v.
3603 # Break only if it was the GNU/non-GNU ld that we prefer.
3604 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3605 *GNU* | *'with BFD'*)
3606 test "$with_gnu_ld" != no && break
3609 test "$with_gnu_ld" != yes && break
3616 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3621 if test -n "$LD"; then
3622 echo "$as_me:$LINENO: result: $LD" >&5
3623 echo "${ECHO_T}$LD" >&6
3625 echo "$as_me:$LINENO: result: no" >&5
3626 echo "${ECHO_T}no" >&6
3628 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3629 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3630 { (exit 1); exit 1; }; }
3631 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3632 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3633 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3637 case `$LD -v 2>&1 </dev/null` in
3638 *GNU* | *'with BFD'*)
3639 lt_cv_prog_gnu_ld=yes
3642 lt_cv_prog_gnu_ld=no
3646 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3647 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3648 with_gnu_ld=$lt_cv_prog_gnu_ld
3651 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3652 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3653 if test "${lt_cv_ld_reload_flag+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 lt_cv_ld_reload_flag='-r'
3658 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3659 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3660 reload_flag=$lt_cv_ld_reload_flag
3661 case $reload_flag in
3663 *) reload_flag=" $reload_flag" ;;
3665 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3668 if test "$GCC" = yes; then
3669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3671 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3676 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3677 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3678 if test "${lt_cv_path_NM+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3681 if test -n "$NM"; then
3682 # Let the user override the test.
3685 lt_nm_to_check="${ac_tool_prefix}nm"
3686 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3687 lt_nm_to_check="$lt_nm_to_check nm"
3689 for lt_tmp_nm in $lt_nm_to_check; do
3690 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3691 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3693 test -z "$ac_dir" && ac_dir=.
3694 tmp_nm="$ac_dir/$lt_tmp_nm"
3695 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3696 # Check to see if the nm accepts a BSD-compat flag.
3697 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3698 # nm: unknown option "B" ignored
3699 # Tru64's nm complains that /dev/null is an invalid object file
3700 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3701 */dev/null* | *'Invalid file or object type'*)
3702 lt_cv_path_NM="$tmp_nm -B"
3706 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3708 lt_cv_path_NM="$tmp_nm -p"
3712 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3713 continue # so that we can try to find one that supports BSD flags
3722 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3725 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3726 echo "${ECHO_T}$lt_cv_path_NM" >&6
3729 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3732 if test "$LN_S" = "ln -s"; then
3733 echo "$as_me:$LINENO: result: yes" >&5
3734 echo "${ECHO_T}yes" >&6
3736 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3737 echo "${ECHO_T}no, using $LN_S" >&6
3740 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3741 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3742 if test "${lt_cv_deplibs_check_method+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 lt_cv_file_magic_cmd='$MAGIC_CMD'
3746 lt_cv_file_magic_test_file=
3747 lt_cv_deplibs_check_method='unknown'
3748 # Need to set the preceding variable on all platforms that support
3749 # interlibrary dependencies.
3750 # 'none' -- dependencies not supported.
3751 # `unknown' -- same as none, but documents that we really don't know.
3752 # 'pass_all' -- all dependencies passed with no checks.
3753 # 'test_compile' -- check by making test program.
3754 # 'file_magic [[regex]]' -- check by looking for files in library path
3755 # which responds to the $file_magic_cmd with a given extended regex.
3756 # If you have `file' or equivalent on your system and you're not sure
3757 # whether `pass_all' will *always* work, you probably want this one.
3761 lt_cv_deplibs_check_method=pass_all
3765 lt_cv_deplibs_check_method=pass_all
3769 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3770 lt_cv_file_magic_cmd='/usr/bin/file -L'
3771 lt_cv_file_magic_test_file=/shlib/libc.so
3775 # func_win32_libid is a shell function defined in ltmain.sh
3776 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3777 lt_cv_file_magic_cmd='func_win32_libid'
3781 # Base MSYS/MinGW do not provide the 'file' command needed by
3782 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3783 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3784 lt_cv_file_magic_cmd='$OBJDUMP -f'
3787 darwin* | rhapsody*)
3788 lt_cv_deplibs_check_method=pass_all
3791 freebsd* | kfreebsd*-gnu | dragonfly*)
3792 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3795 # Not sure whether the presence of OpenBSD here was a mistake.
3796 # Let's accept both of them until this is cleared up.
3797 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3798 lt_cv_file_magic_cmd=/usr/bin/file
3799 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3803 lt_cv_deplibs_check_method=pass_all
3808 lt_cv_deplibs_check_method=pass_all
3811 hpux10.20* | hpux11*)
3812 lt_cv_file_magic_cmd=/usr/bin/file
3815 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3816 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3819 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]'
3820 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3824 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3830 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3831 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3834 irix5* | irix6* | nonstopux*)
3836 *-32|*"-32 ") libmagic=32-bit;;
3837 *-n32|*"-n32 ") libmagic=N32;;
3838 *-64|*"-64 ") libmagic=64-bit;;
3839 *) libmagic=never-match;;
3841 lt_cv_deplibs_check_method=pass_all
3844 # This must be Linux ELF.
3846 lt_cv_deplibs_check_method=pass_all
3850 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3851 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3853 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3858 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3859 lt_cv_file_magic_cmd=/usr/bin/file
3860 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3864 lt_cv_deplibs_check_method=unknown
3868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3869 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3871 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3875 osf3* | osf4* | osf5*)
3876 lt_cv_deplibs_check_method=pass_all
3880 lt_cv_deplibs_check_method=pass_all
3884 case $host_vendor in
3886 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]'
3887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3890 lt_cv_deplibs_check_method=pass_all
3893 lt_cv_file_magic_cmd='/bin/file'
3894 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3897 lt_cv_file_magic_cmd='/bin/file'
3898 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3899 lt_cv_file_magic_test_file=/lib/libc.so
3902 lt_cv_deplibs_check_method=pass_all
3905 lt_cv_deplibs_check_method=pass_all
3910 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3911 lt_cv_deplibs_check_method=pass_all
3916 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3917 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3918 file_magic_cmd=$lt_cv_file_magic_cmd
3919 deplibs_check_method=$lt_cv_deplibs_check_method
3920 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3925 # If no C compiler was specified, use CC.
3928 # If no C compiler flags were specified, use CFLAGS.
3929 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3931 # Allow CC to be a program name with arguments.
3934 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3935 if test "${enable_libtool_lock+set}" = set; then
3936 enableval="$enable_libtool_lock"
3939 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3941 # Some flags need to be propagated to the compiler or linker for good
3945 # Find out which ABI we are using.
3946 echo 'int i;' > conftest.$ac_ext
3947 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3948 (eval $ac_compile) 2>&5
3950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3951 (exit $ac_status); }; then
3952 case `/usr/bin/file conftest.$ac_objext` in
3964 # Find out which ABI we are using.
3965 echo '#line 3965 "configure"' > conftest.$ac_ext
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); }; then
3971 if test "$lt_cv_prog_gnu_ld" = yes; then
3972 case `/usr/bin/file conftest.$ac_objext` in
3974 LD="${LD-ld} -melf32bsmip"
3977 LD="${LD-ld} -melf32bmipn32"
3980 LD="${LD-ld} -melf64bmip"
3984 case `/usr/bin/file conftest.$ac_objext` in
4000 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4001 # Find out which ABI we are using.
4002 echo 'int i;' > conftest.$ac_ext
4003 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4004 (eval $ac_compile) 2>&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); }; then
4008 case `/usr/bin/file conftest.o` in
4012 LD="${LD-ld} -m elf_i386"
4014 ppc64-*linux*|powerpc64-*linux*)
4015 LD="${LD-ld} -m elf32ppclinux"
4018 LD="${LD-ld} -m elf_s390"
4021 LD="${LD-ld} -m elf32_sparc"
4028 LD="${LD-ld} -m elf_x86_64"
4030 ppc*-*linux*|powerpc*-*linux*)
4031 LD="${LD-ld} -m elf64ppc"
4034 LD="${LD-ld} -m elf64_s390"
4037 LD="${LD-ld} -m elf64_sparc"
4047 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4048 SAVE_CFLAGS="$CFLAGS"
4049 CFLAGS="$CFLAGS -belf"
4050 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4051 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4052 if test "${lt_cv_cc_needs_belf+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 ac_cpp='$CPP $CPPFLAGS'
4057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 cat >conftest.$ac_ext <<_ACEOF
4064 cat confdefs.h >>conftest.$ac_ext
4065 cat >>conftest.$ac_ext <<_ACEOF
4066 /* end confdefs.h. */
4076 rm -f conftest.$ac_objext conftest$ac_exeext
4077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4078 (eval $ac_link) 2>conftest.er1
4080 grep -v '^ *+' conftest.er1 >conftest.err
4082 cat conftest.err >&5
4083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4084 (exit $ac_status); } &&
4085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4090 (exit $ac_status); }; } &&
4091 { ac_try='test -s conftest$ac_exeext'
4092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4096 (exit $ac_status); }; }; then
4097 lt_cv_cc_needs_belf=yes
4099 echo "$as_me: failed program was:" >&5
4100 sed 's/^/| /' conftest.$ac_ext >&5
4102 lt_cv_cc_needs_belf=no
4104 rm -f conftest.err conftest.$ac_objext \
4105 conftest$ac_exeext conftest.$ac_ext
4107 ac_cpp='$CPP $CPPFLAGS'
4108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4114 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4115 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4116 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4117 CFLAGS="$SAVE_CFLAGS"
4121 # Find out which ABI we are using.
4122 echo 'int i;' > conftest.$ac_ext
4123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4124 (eval $ac_compile) 2>&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; then
4128 case `/usr/bin/file conftest.o` in
4130 case $lt_cv_prog_gnu_ld in
4131 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4132 *) LD="${LD-ld} -64" ;;
4143 need_locks="$enable_libtool_lock"
4146 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4147 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4148 if test "${ac_cv_header_stdc+set}" = set; then
4149 echo $ECHO_N "(cached) $ECHO_C" >&6
4151 cat >conftest.$ac_ext <<_ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4170 rm -f conftest.$ac_objext
4171 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4172 (eval $ac_compile) 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); }; } &&
4185 { ac_try='test -s conftest.$ac_objext'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then
4191 ac_cv_header_stdc=yes
4193 echo "$as_me: failed program was:" >&5
4194 sed 's/^/| /' conftest.$ac_ext >&5
4196 ac_cv_header_stdc=no
4198 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4215 ac_cv_header_stdc=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4236 ac_cv_header_stdc=no
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4254 #if ((' ' & 0x0FF) == 0x020)
4255 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4256 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4258 # define ISLOWER(c) \
4259 (('a' <= (c) && (c) <= 'i') \
4260 || ('j' <= (c) && (c) <= 'r') \
4261 || ('s' <= (c) && (c) <= 'z'))
4262 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4265 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4270 for (i = 0; i < 256; i++)
4271 if (XOR (islower (i), ISLOWER (i))
4272 || toupper (i) != TOUPPER (i))
4277 rm -f conftest$ac_exeext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4279 (eval $ac_link) 2>&5
4281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4282 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; }; then
4290 echo "$as_me: program exited with status $ac_status" >&5
4291 echo "$as_me: failed program was:" >&5
4292 sed 's/^/| /' conftest.$ac_ext >&5
4295 ac_cv_header_stdc=no
4297 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4301 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4302 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4303 if test $ac_cv_header_stdc = yes; then
4305 cat >>confdefs.h <<\_ACEOF
4306 #define STDC_HEADERS 1
4311 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4321 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4322 inttypes.h stdint.h unistd.h
4324 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4325 echo "$as_me:$LINENO: checking for $ac_header" >&5
4326 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4327 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4328 echo $ECHO_N "(cached) $ECHO_C" >&6
4330 cat >conftest.$ac_ext <<_ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 $ac_includes_default
4338 #include <$ac_header>
4340 rm -f conftest.$ac_objext
4341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4342 (eval $ac_compile) 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); } &&
4349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); }; } &&
4355 { ac_try='test -s conftest.$ac_objext'
4356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360 (exit $ac_status); }; }; then
4361 eval "$as_ac_Header=yes"
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4366 eval "$as_ac_Header=no"
4368 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4370 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4371 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4373 cat >>confdefs.h <<_ACEOF
4374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4383 for ac_header in dlfcn.h
4385 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4387 echo "$as_me:$LINENO: checking for $ac_header" >&5
4388 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4389 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4393 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4395 # Is the header compilable?
4396 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4397 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4398 cat >conftest.$ac_ext <<_ACEOF
4401 cat confdefs.h >>conftest.$ac_ext
4402 cat >>conftest.$ac_ext <<_ACEOF
4403 /* end confdefs.h. */
4404 $ac_includes_default
4405 #include <$ac_header>
4407 rm -f conftest.$ac_objext
4408 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4409 (eval $ac_compile) 2>conftest.er1
4411 grep -v '^ *+' conftest.er1 >conftest.err
4413 cat conftest.err >&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); } &&
4416 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; } &&
4422 { ac_try='test -s conftest.$ac_objext'
4423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); }; }; then
4428 ac_header_compiler=yes
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 ac_header_compiler=no
4435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4437 echo "${ECHO_T}$ac_header_compiler" >&6
4439 # Is the header present?
4440 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4441 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4442 cat >conftest.$ac_ext <<_ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <$ac_header>
4450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4453 grep -v '^ *+' conftest.er1 >conftest.err
4455 cat conftest.err >&5
4456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } >/dev/null; then
4458 if test -s conftest.err; then
4459 ac_cpp_err=$ac_c_preproc_warn_flag
4460 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4467 if test -z "$ac_cpp_err"; then
4468 ac_header_preproc=yes
4470 echo "$as_me: failed program was:" >&5
4471 sed 's/^/| /' conftest.$ac_ext >&5
4473 ac_header_preproc=no
4475 rm -f conftest.err conftest.$ac_ext
4476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4477 echo "${ECHO_T}$ac_header_preproc" >&6
4479 # So? What about this header?
4480 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4483 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4485 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4486 ac_header_preproc=yes
4489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4490 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4492 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4494 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4496 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4498 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4500 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4503 ## ------------------------------------------ ##
4504 ## Report this to the AC_PACKAGE_NAME lists. ##
4505 ## ------------------------------------------ ##
4508 sed "s/^/$as_me: WARNING: /" >&2
4511 echo "$as_me:$LINENO: checking for $ac_header" >&5
4512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4514 echo $ECHO_N "(cached) $ECHO_C" >&6
4516 eval "$as_ac_Header=\$ac_header_preproc"
4518 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4519 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4522 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4523 cat >>confdefs.h <<_ACEOF
4524 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532 ac_cpp='$CXXCPP $CPPFLAGS'
4533 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4534 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4535 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4536 if test -n "$ac_tool_prefix"; then
4537 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4539 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4540 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4541 echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4543 if test "${ac_cv_prog_CXX+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 if test -n "$CXX"; then
4547 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4556 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 if test -n "$CXX"; then
4567 echo "$as_me:$LINENO: result: $CXX" >&5
4568 echo "${ECHO_T}$CXX" >&6
4570 echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6
4574 test -n "$CXX" && break
4577 if test -z "$CXX"; then
4579 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4581 # Extract the first word of "$ac_prog", so it can be a program name with args.
4582 set dummy $ac_prog; ac_word=$2
4583 echo "$as_me:$LINENO: checking for $ac_word" >&5
4584 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4585 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4586 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 if test -n "$ac_ct_CXX"; then
4589 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 test -z "$as_dir" && as_dir=.
4596 for ac_exec_ext in '' $ac_executable_extensions; do
4597 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4598 ac_cv_prog_ac_ct_CXX="$ac_prog"
4599 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4608 if test -n "$ac_ct_CXX"; then
4609 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4610 echo "${ECHO_T}$ac_ct_CXX" >&6
4612 echo "$as_me:$LINENO: result: no" >&5
4613 echo "${ECHO_T}no" >&6
4616 test -n "$ac_ct_CXX" && break
4618 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4624 # Provide some information about the compiler.
4625 echo "$as_me:$LINENO:" \
4626 "checking for C++ compiler version" >&5
4627 ac_compiler=`set X $ac_compile; echo $2`
4628 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4629 (eval $ac_compiler --version </dev/null >&5) 2>&5
4631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4632 (exit $ac_status); }
4633 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4634 (eval $ac_compiler -v </dev/null >&5) 2>&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); }
4638 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4639 (eval $ac_compiler -V </dev/null >&5) 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }
4644 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4645 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4646 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4647 echo $ECHO_N "(cached) $ECHO_C" >&6
4649 cat >conftest.$ac_ext <<_ACEOF
4652 cat confdefs.h >>conftest.$ac_ext
4653 cat >>conftest.$ac_ext <<_ACEOF
4654 /* end confdefs.h. */
4667 rm -f conftest.$ac_objext
4668 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4669 (eval $ac_compile) 2>conftest.er1
4671 grep -v '^ *+' conftest.er1 >conftest.err
4673 cat conftest.err >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); } &&
4676 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; } &&
4682 { ac_try='test -s conftest.$ac_objext'
4683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }; }; then
4690 echo "$as_me: failed program was:" >&5
4691 sed 's/^/| /' conftest.$ac_ext >&5
4695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4696 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4699 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4700 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4701 GXX=`test $ac_compiler_gnu = yes && echo yes`
4702 ac_test_CXXFLAGS=${CXXFLAGS+set}
4703 ac_save_CXXFLAGS=$CXXFLAGS
4705 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4706 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4707 if test "${ac_cv_prog_cxx_g+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 cat >conftest.$ac_ext <<_ACEOF
4713 cat confdefs.h >>conftest.$ac_ext
4714 cat >>conftest.$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4725 rm -f conftest.$ac_objext
4726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4727 (eval $ac_compile) 2>conftest.er1
4729 grep -v '^ *+' conftest.er1 >conftest.err
4731 cat conftest.err >&5
4732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4733 (exit $ac_status); } &&
4734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4739 (exit $ac_status); }; } &&
4740 { ac_try='test -s conftest.$ac_objext'
4741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); }; }; then
4746 ac_cv_prog_cxx_g=yes
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4755 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4756 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4757 if test "$ac_test_CXXFLAGS" = set; then
4758 CXXFLAGS=$ac_save_CXXFLAGS
4759 elif test $ac_cv_prog_cxx_g = yes; then
4760 if test "$GXX" = yes; then
4766 if test "$GXX" = yes; then
4772 for ac_declaration in \
4774 'extern "C" void std::exit (int) throw (); using std::exit;' \
4775 'extern "C" void std::exit (int); using std::exit;' \
4776 'extern "C" void exit (int) throw ();' \
4777 'extern "C" void exit (int);' \
4780 cat >conftest.$ac_ext <<_ACEOF
4783 cat confdefs.h >>conftest.$ac_ext
4784 cat >>conftest.$ac_ext <<_ACEOF
4785 /* end confdefs.h. */
4796 rm -f conftest.$ac_objext
4797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4798 (eval $ac_compile) 2>conftest.er1
4800 grep -v '^ *+' conftest.er1 >conftest.err
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } &&
4805 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); }; } &&
4811 { ac_try='test -s conftest.$ac_objext'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; }; then
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4840 rm -f conftest.$ac_objext
4841 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4842 (eval $ac_compile) 2>conftest.er1
4844 grep -v '^ *+' conftest.er1 >conftest.err
4846 cat conftest.err >&5
4847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4848 (exit $ac_status); } &&
4849 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); }; } &&
4855 { ac_try='test -s conftest.$ac_objext'
4856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); }; }; then
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4870 if test -n "$ac_declaration"; then
4871 echo '#ifdef __cplusplus' >>confdefs.h
4872 echo $ac_declaration >>confdefs.h
4873 echo '#endif' >>confdefs.h
4877 ac_cpp='$CXXCPP $CPPFLAGS'
4878 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4879 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4880 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4884 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4885 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4886 (test "X$CXX" != "Xg++"))) ; then
4888 ac_cpp='$CXXCPP $CPPFLAGS'
4889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4892 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4893 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4894 if test -z "$CXXCPP"; then
4895 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4896 echo $ECHO_N "(cached) $ECHO_C" >&6
4898 # Double quotes because CXXCPP needs to be expanded
4899 for CXXCPP in "$CXX -E" "/lib/cpp"
4902 for ac_cxx_preproc_warn_flag in '' yes
4904 # Use a header file that comes with gcc, so configuring glibc
4905 # with a fresh cross-compiler works.
4906 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4907 # <limits.h> exists even on freestanding compilers.
4908 # On the NeXT, cc -E runs the code through the compiler's parser,
4909 # not just through cpp. "Syntax error" is here to catch this case.
4910 cat >conftest.$ac_ext <<_ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4917 # include <limits.h>
4919 # include <assert.h>
4923 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4924 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4926 grep -v '^ *+' conftest.er1 >conftest.err
4928 cat conftest.err >&5
4929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4930 (exit $ac_status); } >/dev/null; then
4931 if test -s conftest.err; then
4932 ac_cpp_err=$ac_cxx_preproc_warn_flag
4933 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4940 if test -z "$ac_cpp_err"; then
4943 echo "$as_me: failed program was:" >&5
4944 sed 's/^/| /' conftest.$ac_ext >&5
4946 # Broken: fails on valid input.
4949 rm -f conftest.err conftest.$ac_ext
4951 # OK, works on sane cases. Now check whether non-existent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4961 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4962 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4964 grep -v '^ *+' conftest.er1 >conftest.err
4966 cat conftest.err >&5
4967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4968 (exit $ac_status); } >/dev/null; then
4969 if test -s conftest.err; then
4970 ac_cpp_err=$ac_cxx_preproc_warn_flag
4971 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4978 if test -z "$ac_cpp_err"; then
4979 # Broken: success on invalid input.
4982 echo "$as_me: failed program was:" >&5
4983 sed 's/^/| /' conftest.$ac_ext >&5
4985 # Passes both tests.
4989 rm -f conftest.err conftest.$ac_ext
4992 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4993 rm -f conftest.err conftest.$ac_ext
4994 if $ac_preproc_ok; then
4999 ac_cv_prog_CXXCPP=$CXXCPP
5002 CXXCPP=$ac_cv_prog_CXXCPP
5004 ac_cv_prog_CXXCPP=$CXXCPP
5006 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5007 echo "${ECHO_T}$CXXCPP" >&6
5009 for ac_cxx_preproc_warn_flag in '' yes
5011 # Use a header file that comes with gcc, so configuring glibc
5012 # with a fresh cross-compiler works.
5013 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5014 # <limits.h> exists even on freestanding compilers.
5015 # On the NeXT, cc -E runs the code through the compiler's parser,
5016 # not just through cpp. "Syntax error" is here to catch this case.
5017 cat >conftest.$ac_ext <<_ACEOF
5020 cat confdefs.h >>conftest.$ac_ext
5021 cat >>conftest.$ac_ext <<_ACEOF
5022 /* end confdefs.h. */
5024 # include <limits.h>
5026 # include <assert.h>
5030 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5031 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5033 grep -v '^ *+' conftest.er1 >conftest.err
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } >/dev/null; then
5038 if test -s conftest.err; then
5039 ac_cpp_err=$ac_cxx_preproc_warn_flag
5040 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5047 if test -z "$ac_cpp_err"; then
5050 echo "$as_me: failed program was:" >&5
5051 sed 's/^/| /' conftest.$ac_ext >&5
5053 # Broken: fails on valid input.
5056 rm -f conftest.err conftest.$ac_ext
5058 # OK, works on sane cases. Now check whether non-existent headers
5059 # can be detected and how.
5060 cat >conftest.$ac_ext <<_ACEOF
5063 cat confdefs.h >>conftest.$ac_ext
5064 cat >>conftest.$ac_ext <<_ACEOF
5065 /* end confdefs.h. */
5066 #include <ac_nonexistent.h>
5068 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5069 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5071 grep -v '^ *+' conftest.er1 >conftest.err
5073 cat conftest.err >&5
5074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5075 (exit $ac_status); } >/dev/null; then
5076 if test -s conftest.err; then
5077 ac_cpp_err=$ac_cxx_preproc_warn_flag
5078 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5085 if test -z "$ac_cpp_err"; then
5086 # Broken: success on invalid input.
5089 echo "$as_me: failed program was:" >&5
5090 sed 's/^/| /' conftest.$ac_ext >&5
5092 # Passes both tests.
5096 rm -f conftest.err conftest.$ac_ext
5099 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5100 rm -f conftest.err conftest.$ac_ext
5101 if $ac_preproc_ok; then
5104 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5105 See \`config.log' for more details." >&5
5106 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5107 See \`config.log' for more details." >&2;}
5108 { (exit 1); exit 1; }; }
5112 ac_cpp='$CXXCPP $CPPFLAGS'
5113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5121 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5122 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5123 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5124 if test -n "$ac_tool_prefix"; then
5125 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5127 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5128 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5129 echo "$as_me:$LINENO: checking for $ac_word" >&5
5130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5131 if test "${ac_cv_prog_F77+set}" = set; then
5132 echo $ECHO_N "(cached) $ECHO_C" >&6
5134 if test -n "$F77"; then
5135 ac_cv_prog_F77="$F77" # Let the user override the test.
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir=.
5142 for ac_exec_ext in '' $ac_executable_extensions; do
5143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5144 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 if test -n "$F77"; then
5155 echo "$as_me:$LINENO: result: $F77" >&5
5156 echo "${ECHO_T}$F77" >&6
5158 echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6
5162 test -n "$F77" && break
5165 if test -z "$F77"; then
5167 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5169 # Extract the first word of "$ac_prog", so it can be a program name with args.
5170 set dummy $ac_prog; ac_word=$2
5171 echo "$as_me:$LINENO: checking for $ac_word" >&5
5172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5173 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5174 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 if test -n "$ac_ct_F77"; then
5177 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_ac_ct_F77="$ac_prog"
5187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5196 if test -n "$ac_ct_F77"; then
5197 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5198 echo "${ECHO_T}$ac_ct_F77" >&6
5200 echo "$as_me:$LINENO: result: no" >&5
5201 echo "${ECHO_T}no" >&6
5204 test -n "$ac_ct_F77" && break
5211 # Provide some information about the compiler.
5212 echo "$as_me:5212:" \
5213 "checking for Fortran 77 compiler version" >&5
5214 ac_compiler=`set X $ac_compile; echo $2`
5215 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5216 (eval $ac_compiler --version </dev/null >&5) 2>&5
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }
5220 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5221 (eval $ac_compiler -v </dev/null >&5) 2>&5
5223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); }
5225 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5226 (eval $ac_compiler -V </dev/null >&5) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }
5232 # If we don't use `.F' as extension, the preprocessor is not run on the
5233 # input file. (Note that this only needs to work for GNU compilers.)
5236 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5237 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5238 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5241 cat >conftest.$ac_ext <<_ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5253 grep -v '^ *+' conftest.er1 >conftest.err
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5278 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5281 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5282 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5284 ac_test_FFLAGS=${FFLAGS+set}
5285 ac_save_FFLAGS=$FFLAGS
5287 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5288 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5289 if test "${ac_cv_prog_f77_g+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5293 cat >conftest.$ac_ext <<_ACEOF
5298 rm -f conftest.$ac_objext
5299 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5300 (eval $ac_compile) 2>conftest.er1
5302 grep -v '^ *+' conftest.er1 >conftest.err
5304 cat conftest.err >&5
5305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5306 (exit $ac_status); } &&
5307 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5312 (exit $ac_status); }; } &&
5313 { ac_try='test -s conftest.$ac_objext'
5314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318 (exit $ac_status); }; }; then
5319 ac_cv_prog_f77_g=yes
5321 echo "$as_me: failed program was:" >&5
5322 sed 's/^/| /' conftest.$ac_ext >&5
5326 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5329 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5330 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5331 if test "$ac_test_FFLAGS" = set; then
5332 FFLAGS=$ac_save_FFLAGS
5333 elif test $ac_cv_prog_f77_g = yes; then
5334 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5340 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5347 G77=`test $ac_compiler_gnu = yes && echo yes`
5349 ac_cpp='$CPP $CPPFLAGS'
5350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5356 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5358 # find the maximum length of command line arguments
5359 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5360 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5361 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5362 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 # On DJGPP, this test can blow up pretty badly due to problems in libc
5370 # (any single argument exceeding 2000 bytes causes a buffer overrun
5371 # during glob expansion). Even if it were fixed, the result of this
5372 # check would be larger than it should be.
5373 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5377 # Under GNU Hurd, this test is not required because there is
5378 # no limit to the length of command line arguments.
5379 # Libtool will interpret -1 as no limit whatsoever
5380 lt_cv_sys_max_cmd_len=-1;
5384 # On Win9x/ME, this test blows up -- it succeeds, but takes
5385 # about 5 minutes as the teststring grows exponentially.
5386 # Worse, since 9x/ME are not pre-emptively multitasking,
5387 # you end up with a "frozen" computer, even though with patience
5388 # the test eventually succeeds (with a max line length of 256k).
5389 # Instead, let's just punt: use the minimum linelength reported by
5390 # all of the supported platforms: 8192 (on NT/2K/XP).
5391 lt_cv_sys_max_cmd_len=8192;
5395 # On AmigaOS with pdksh, this test takes hours, literally.
5396 # So we just punt and use a minimum line length of 8192.
5397 lt_cv_sys_max_cmd_len=8192;
5400 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5401 # This has been around since 386BSD, at least. Likely further.
5402 if test -x /sbin/sysctl; then
5403 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5404 elif test -x /usr/sbin/sysctl; then
5405 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5407 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5409 # And add a safety zone
5410 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5411 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5415 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5416 lt_cv_sys_max_cmd_len=196608
5420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5422 # nice to cause kernel panics so lets avoid the loop below.
5423 # First set a reasonable default.
5424 lt_cv_sys_max_cmd_len=16384
5426 if test -x /sbin/sysconfig; then
5427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5428 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5433 lt_cv_sys_max_cmd_len=102400
5435 sysv5* | sco5v6* | sysv4.2uw2*)
5436 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5437 if test -n "$kargmax"; then
5438 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5440 lt_cv_sys_max_cmd_len=32768
5444 # If test is not a shell built-in, we'll probably end up computing a
5445 # maximum length that is only half of the actual maximum length, but
5447 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5448 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5449 = "XX$teststring") >/dev/null 2>&1 &&
5450 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5451 lt_cv_sys_max_cmd_len=$new_result &&
5452 test $i != 17 # 1/2 MB should be enough
5455 teststring=$teststring$teststring
5458 # Add a significant safety factor because C++ compilers can tack on massive
5459 # amounts of additional arguments before passing them to the linker.
5460 # It appears as though 1/2 is a usable value.
5461 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5467 if test -n $lt_cv_sys_max_cmd_len ; then
5468 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5469 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5471 echo "$as_me:$LINENO: result: none" >&5
5472 echo "${ECHO_T}none" >&6
5478 # Check for command to grab the raw symbol name followed by C symbol from nm.
5479 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5480 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5481 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5482 echo $ECHO_N "(cached) $ECHO_C" >&6
5485 # These are sane defaults that work on at least a few old systems.
5486 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5488 # Character class describing NM global symbol codes.
5489 symcode='[BCDEGRST]'
5491 # Regexp to match symbols that can be accessed directly from C.
5492 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5494 # Transform an extracted symbol line into a proper C declaration
5495 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5497 # Transform an extracted symbol line into symbol name and symbol address
5498 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'"
5500 # Define system-specific variables.
5505 cygwin* | mingw* | pw32*)
5506 symcode='[ABCDGISTW]'
5508 hpux*) # Its linker distinguishes data from code symbols
5509 if test "$host_cpu" = ia64; then
5510 symcode='[ABCDEGRST]'
5512 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5513 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'"
5516 if test "$host_cpu" = ia64; then
5517 symcode='[ABCDGIRSTW]'
5518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5519 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'"
5523 symcode='[BCDEGRST]'
5526 symcode='[BCDEGQRST]'
5537 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5545 # Handle CRLF in mingw tool chain
5549 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5553 # If we're using GNU nm, then use its standard symbol codes.
5554 case `$NM -V 2>&1` in
5555 *GNU* | *'with BFD'*)
5556 symcode='[ABCDGIRSTW]' ;;
5559 # Try without a prefix undercore, then with it.
5560 for ac_symprfx in "" "_"; do
5562 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5563 symxfrm="\\1 $ac_symprfx\\2 \\2"
5565 # Write the raw and C identifiers.
5566 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5568 # Check to see that the pipe works correctly.
5572 cat > conftest.$ac_ext <<EOF
5577 void nm_test_func(){}
5581 int main(){nm_test_var='a';nm_test_func();return(0);}
5584 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5585 (eval $ac_compile) 2>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; then
5589 # Now try to grab the symbols.
5591 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5592 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5595 (exit $ac_status); } && test -s "$nlist"; then
5596 # Try sorting and uniquifying the output.
5597 if sort "$nlist" | uniq > "$nlist"T; then
5598 mv -f "$nlist"T "$nlist"
5603 # Make sure that we snagged all the symbols we need.
5604 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5605 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5606 cat <<EOF > conftest.$ac_ext
5612 # Now generate the symbol file.
5613 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5615 cat <<EOF >> conftest.$ac_ext
5616 #if defined (__STDC__) && __STDC__
5617 # define lt_ptr_t void *
5619 # define lt_ptr_t char *
5623 /* The mapping between symbol names and symbols. */
5628 lt_preloaded_symbols[] =
5631 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5632 cat <<\EOF >> conftest.$ac_ext
5640 # Now try linking the two files.
5641 mv conftest.$ac_objext conftstm.$ac_objext
5642 lt_save_LIBS="$LIBS"
5643 lt_save_CFLAGS="$CFLAGS"
5644 LIBS="conftstm.$ac_objext"
5645 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5647 (eval $ac_link) 2>&5
5649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5650 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5653 LIBS="$lt_save_LIBS"
5654 CFLAGS="$lt_save_CFLAGS"
5656 echo "cannot find nm_test_func in $nlist" >&5
5659 echo "cannot find nm_test_var in $nlist" >&5
5662 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5665 echo "$progname: failed program was:" >&5
5666 cat conftest.$ac_ext >&5
5668 rm -f conftest* conftst*
5670 # Do not use the global_symbol_pipe unless it works.
5671 if test "$pipe_works" = yes; then
5674 lt_cv_sys_global_symbol_pipe=
5680 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5681 lt_cv_sys_global_symbol_to_cdecl=
5683 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5684 echo "$as_me:$LINENO: result: failed" >&5
5685 echo "${ECHO_T}failed" >&6
5687 echo "$as_me:$LINENO: result: ok" >&5
5688 echo "${ECHO_T}ok" >&6
5691 echo "$as_me:$LINENO: checking for objdir" >&5
5692 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5693 if test "${lt_cv_objdir+set}" = set; then
5694 echo $ECHO_N "(cached) $ECHO_C" >&6
5696 rm -f .libs 2>/dev/null
5697 mkdir .libs 2>/dev/null
5698 if test -d .libs; then
5701 # MS-DOS does not allow filenames that begin with a dot.
5704 rmdir .libs 2>/dev/null
5706 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5707 echo "${ECHO_T}$lt_cv_objdir" >&6
5708 objdir=$lt_cv_objdir
5716 # AIX sometimes has problems with the GCC collect2 program. For some
5717 # reason, if we set the COLLECT_NAMES environment variable, the problems
5718 # vanish in a puff of smoke.
5719 if test "X${COLLECT_NAMES+set}" != Xset; then
5721 export COLLECT_NAMES
5726 # Sed substitution that helps us do robust quoting. It backslashifies
5727 # metacharacters that are still active within double-quoted strings.
5728 Xsed='sed -e 1s/^X//'
5729 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5731 # Same as above, but do not quote variable references.
5732 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5734 # Sed substitution to delay expansion of an escaped shell variable in a
5735 # double_quote_subst'ed string.
5736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5738 # Sed substitution to avoid accidental globbing in evaled expressions
5739 no_glob_subst='s/\*/\\\*/g'
5745 default_ofile=libtool
5746 can_build_shared=yes
5748 # All known linkers require a `.a' archive for static linking (except MSVC,
5749 # which needs '.lib').
5751 ltmain="$ac_aux_dir/ltmain.sh"
5752 ofile="$default_ofile"
5753 with_gnu_ld="$lt_cv_prog_gnu_ld"
5755 if test -n "$ac_tool_prefix"; then
5756 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5757 set dummy ${ac_tool_prefix}ar; ac_word=$2
5758 echo "$as_me:$LINENO: checking for $ac_word" >&5
5759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5760 if test "${ac_cv_prog_AR+set}" = set; then
5761 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 if test -n "$AR"; then
5764 ac_cv_prog_AR="$AR" # Let the user override the test.
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5770 test -z "$as_dir" && as_dir=.
5771 for ac_exec_ext in '' $ac_executable_extensions; do
5772 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5773 ac_cv_prog_AR="${ac_tool_prefix}ar"
5774 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5783 if test -n "$AR"; then
5784 echo "$as_me:$LINENO: result: $AR" >&5
5785 echo "${ECHO_T}$AR" >&6
5787 echo "$as_me:$LINENO: result: no" >&5
5788 echo "${ECHO_T}no" >&6
5792 if test -z "$ac_cv_prog_AR"; then
5794 # Extract the first word of "ar", so it can be a program name with args.
5795 set dummy ar; ac_word=$2
5796 echo "$as_me:$LINENO: checking for $ac_word" >&5
5797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5798 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5799 echo $ECHO_N "(cached) $ECHO_C" >&6
5801 if test -n "$ac_ct_AR"; then
5802 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5808 test -z "$as_dir" && as_dir=.
5809 for ac_exec_ext in '' $ac_executable_extensions; do
5810 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5811 ac_cv_prog_ac_ct_AR="ar"
5812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5818 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5821 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5822 if test -n "$ac_ct_AR"; then
5823 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5824 echo "${ECHO_T}$ac_ct_AR" >&6
5826 echo "$as_me:$LINENO: result: no" >&5
5827 echo "${ECHO_T}no" >&6
5835 if test -n "$ac_tool_prefix"; then
5836 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5837 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5838 echo "$as_me:$LINENO: checking for $ac_word" >&5
5839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5840 if test "${ac_cv_prog_RANLIB+set}" = set; then
5841 echo $ECHO_N "(cached) $ECHO_C" >&6
5843 if test -n "$RANLIB"; then
5844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5862 RANLIB=$ac_cv_prog_RANLIB
5863 if test -n "$RANLIB"; then
5864 echo "$as_me:$LINENO: result: $RANLIB" >&5
5865 echo "${ECHO_T}$RANLIB" >&6
5867 echo "$as_me:$LINENO: result: no" >&5
5868 echo "${ECHO_T}no" >&6
5872 if test -z "$ac_cv_prog_RANLIB"; then
5873 ac_ct_RANLIB=$RANLIB
5874 # Extract the first word of "ranlib", so it can be a program name with args.
5875 set dummy ranlib; ac_word=$2
5876 echo "$as_me:$LINENO: checking for $ac_word" >&5
5877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5878 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5879 echo $ECHO_N "(cached) $ECHO_C" >&6
5881 if test -n "$ac_ct_RANLIB"; then
5882 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888 test -z "$as_dir" && as_dir=.
5889 for ac_exec_ext in '' $ac_executable_extensions; do
5890 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5891 ac_cv_prog_ac_ct_RANLIB="ranlib"
5892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5898 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5901 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5902 if test -n "$ac_ct_RANLIB"; then
5903 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5904 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5906 echo "$as_me:$LINENO: result: no" >&5
5907 echo "${ECHO_T}no" >&6
5910 RANLIB=$ac_ct_RANLIB
5912 RANLIB="$ac_cv_prog_RANLIB"
5915 if test -n "$ac_tool_prefix"; then
5916 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5917 set dummy ${ac_tool_prefix}strip; ac_word=$2
5918 echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920 if test "${ac_cv_prog_STRIP+set}" = set; then
5921 echo $ECHO_N "(cached) $ECHO_C" >&6
5923 if test -n "$STRIP"; then
5924 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5930 test -z "$as_dir" && as_dir=.
5931 for ac_exec_ext in '' $ac_executable_extensions; do
5932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 STRIP=$ac_cv_prog_STRIP
5943 if test -n "$STRIP"; then
5944 echo "$as_me:$LINENO: result: $STRIP" >&5
5945 echo "${ECHO_T}$STRIP" >&6
5947 echo "$as_me:$LINENO: result: no" >&5
5948 echo "${ECHO_T}no" >&6
5952 if test -z "$ac_cv_prog_STRIP"; then
5954 # Extract the first word of "strip", so it can be a program name with args.
5955 set dummy strip; ac_word=$2
5956 echo "$as_me:$LINENO: checking for $ac_word" >&5
5957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5958 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5961 if test -n "$ac_ct_STRIP"; then
5962 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5968 test -z "$as_dir" && as_dir=.
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_ac_ct_STRIP="strip"
5972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5978 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5981 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5982 if test -n "$ac_ct_STRIP"; then
5983 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5984 echo "${ECHO_T}$ac_ct_STRIP" >&6
5986 echo "$as_me:$LINENO: result: no" >&5
5987 echo "${ECHO_T}no" >&6
5992 STRIP="$ac_cv_prog_STRIP"
5997 old_CFLAGS="$CFLAGS"
5999 # Set sane defaults for various variables
6000 test -z "$AR" && AR=ar
6001 test -z "$AR_FLAGS" && AR_FLAGS=cru
6002 test -z "$AS" && AS=as
6003 test -z "$CC" && CC=cc
6004 test -z "$LTCC" && LTCC=$CC
6005 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6006 test -z "$DLLTOOL" && DLLTOOL=dlltool
6007 test -z "$LD" && LD=ld
6008 test -z "$LN_S" && LN_S="ln -s"
6009 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6010 test -z "$NM" && NM=nm
6011 test -z "$SED" && SED=sed
6012 test -z "$OBJDUMP" && OBJDUMP=objdump
6013 test -z "$RANLIB" && RANLIB=:
6014 test -z "$STRIP" && STRIP=:
6015 test -z "$ac_objext" && ac_objext=o
6017 # Determine commands to create old-style static archives.
6018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6019 old_postinstall_cmds='chmod 644 $oldlib'
6020 old_postuninstall_cmds=
6022 if test -n "$RANLIB"; then
6025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6034 for cc_temp in $compiler""; do
6036 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6037 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6042 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6045 # Only perform the check for file, if the check method requires it
6046 case $deplibs_check_method in
6048 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6049 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6059 lt_save_MAGIC_CMD="$MAGIC_CMD"
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062 for ac_dir in $ac_dummy; do
6064 test -z "$ac_dir" && ac_dir=.
6065 if test -f $ac_dir/${ac_tool_prefix}file; then
6066 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6067 if test -n "$file_magic_test_file"; then
6068 case $deplibs_check_method in
6070 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073 $EGREP "$file_magic_regex" > /dev/null; then
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such. This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem. Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6095 MAGIC_CMD="$lt_save_MAGIC_CMD"
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6105 echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then
6110 if test -n "$ac_tool_prefix"; then
6111 echo "$as_me:$LINENO: checking for file" >&5
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114 echo $ECHO_N "(cached) $ECHO_C" >&6
6118 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6121 lt_save_MAGIC_CMD="$MAGIC_CMD"
6122 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124 for ac_dir in $ac_dummy; do
6126 test -z "$ac_dir" && ac_dir=.
6127 if test -f $ac_dir/file; then
6128 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6129 if test -n "$file_magic_test_file"; then
6130 case $deplibs_check_method in
6132 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135 $EGREP "$file_magic_regex" > /dev/null; then
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such. This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem. Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6157 MAGIC_CMD="$lt_save_MAGIC_CMD"
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6167 echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6184 if test "${enable_libtool_lock+set}" = set; then
6185 enableval="$enable_libtool_lock"
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6191 # Check whether --with-pic or --without-pic was given.
6192 if test "${with_pic+set}" = set; then
6198 test -z "$pic_mode" && pic_mode=default
6200 # Use C for the default configuration in the libtool script
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6210 # Source file extension for C test sources.
6213 # Object file extension for compiled C test sources.
6217 # Code to be used in simple compile tests
6218 lt_simple_compile_test_code="int some_variable = 0;\n"
6220 # Code to be used in simple link tests
6221 lt_simple_link_test_code='int main(){return(0);}\n'
6224 # If no C compiler was specified, use CC.
6227 # If no C compiler flags were specified, use CFLAGS.
6228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6230 # Allow CC to be a program name with arguments.
6234 # save warnings/boilerplate of simple test code
6235 ac_outfile=conftest.$ac_objext
6236 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6238 _lt_compiler_boilerplate=`cat conftest.err`
6241 ac_outfile=conftest.$ac_objext
6242 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6244 _lt_linker_boilerplate=`cat conftest.err`
6249 ## There is no encapsulation within the following macros, do not change
6250 ## the running order or otherwise move them around unless you know exactly
6251 ## what you are doing...
6253 lt_prog_compiler_no_builtin_flag=
6255 if test "$GCC" = yes; then
6256 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6259 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6260 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6261 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6262 echo $ECHO_N "(cached) $ECHO_C" >&6
6264 lt_cv_prog_compiler_rtti_exceptions=no
6265 ac_outfile=conftest.$ac_objext
6266 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6267 lt_compiler_flag="-fno-rtti -fno-exceptions"
6268 # Insert the option either (1) after the last *FLAGS variable, or
6269 # (2) before a word containing "conftest.", or (3) at the end.
6270 # Note that $ac_compile itself does not contain backslashes and begins
6271 # with a dollar sign (not a hyphen), so the echo should work correctly.
6272 # The option is referenced via a variable to avoid confusing sed.
6273 lt_compile=`echo "$ac_compile" | $SED \
6274 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6275 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6276 -e 's:$: $lt_compiler_flag:'`
6277 (eval echo "\"\$as_me:6277: $lt_compile\"" >&5)
6278 (eval "$lt_compile" 2>conftest.err)
6280 cat conftest.err >&5
6281 echo "$as_me:6281: \$? = $ac_status" >&5
6282 if (exit $ac_status) && test -s "$ac_outfile"; then
6283 # The compiler can only warn and ignore the option if not recognized
6284 # So say no if there are warnings other than the usual output.
6285 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6286 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6287 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6288 lt_cv_prog_compiler_rtti_exceptions=yes
6294 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6295 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6297 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6298 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6305 lt_prog_compiler_wl=
6306 lt_prog_compiler_pic=
6307 lt_prog_compiler_static=
6309 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6310 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6312 if test "$GCC" = yes; then
6313 lt_prog_compiler_wl='-Wl,'
6314 lt_prog_compiler_static='-static'
6318 # All AIX code is PIC.
6319 if test "$host_cpu" = ia64; then
6320 # AIX 5 now supports IA64 processor
6321 lt_prog_compiler_static='-Bstatic'
6326 # FIXME: we need at least 68020 code to build shared libraries, but
6327 # adding the `-m68020' flag to GCC prevents building anything better,
6329 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6332 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6333 # PIC is the default for these OSes.
6336 mingw* | pw32* | os2*)
6337 # This hack is so that the source file can tell whether it is being
6338 # built for inclusion in a dll (and should export symbols for example).
6339 lt_prog_compiler_pic='-DDLL_EXPORT'
6342 darwin* | rhapsody*)
6343 # PIC is the default on this platform
6344 # Common symbols not allowed in MH_DYLIB files
6345 lt_prog_compiler_pic='-fno-common'
6349 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6350 # Instead, we relocate shared libraries at runtime.
6354 # Just because we use GCC doesn't mean we suddenly get shared libraries
6355 # on systems that don't support them.
6356 lt_prog_compiler_can_build_shared=no
6361 if test -d /usr/nec; then
6362 lt_prog_compiler_pic=-Kconform_pic
6367 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6374 lt_prog_compiler_pic='-fPIC'
6380 lt_prog_compiler_pic='-fPIC'
6384 # PORTME Check for flag to pass linker flags through the system compiler.
6387 lt_prog_compiler_wl='-Wl,'
6388 if test "$host_cpu" = ia64; then
6389 # AIX 5 now supports IA64 processor
6390 lt_prog_compiler_static='-Bstatic'
6392 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6396 # PIC is the default on this platform
6397 # Common symbols not allowed in MH_DYLIB files
6398 case $cc_basename in
6400 lt_prog_compiler_pic='-qnocommon'
6401 lt_prog_compiler_wl='-Wl,'
6406 mingw* | pw32* | os2*)
6407 # This hack is so that the source file can tell whether it is being
6408 # built for inclusion in a dll (and should export symbols for example).
6409 lt_prog_compiler_pic='-DDLL_EXPORT'
6412 hpux9* | hpux10* | hpux11*)
6413 lt_prog_compiler_wl='-Wl,'
6414 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6421 lt_prog_compiler_pic='+Z'
6424 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6425 lt_prog_compiler_static='${wl}-a ${wl}archive'
6428 irix5* | irix6* | nonstopux*)
6429 lt_prog_compiler_wl='-Wl,'
6430 # PIC (with -KPIC) is the default.
6431 lt_prog_compiler_static='-non_shared'
6435 lt_prog_compiler_pic='-KPIC'
6436 lt_prog_compiler_static='-Bstatic'
6440 case $cc_basename in
6442 lt_prog_compiler_wl='-Wl,'
6443 lt_prog_compiler_pic='-KPIC'
6444 lt_prog_compiler_static='-static'
6446 pgcc* | pgf77* | pgf90* | pgf95*)
6447 # Portland Group compilers (*not* the Pentium gcc compiler,
6448 # which looks to be a dead project)
6449 lt_prog_compiler_wl='-Wl,'
6450 lt_prog_compiler_pic='-fpic'
6451 lt_prog_compiler_static='-Bstatic'
6454 lt_prog_compiler_wl='-Wl,'
6455 # All Alpha code is PIC.
6456 lt_prog_compiler_static='-non_shared'
6461 osf3* | osf4* | osf5*)
6462 lt_prog_compiler_wl='-Wl,'
6463 # All OSF/1 code is PIC.
6464 lt_prog_compiler_static='-non_shared'
6468 lt_prog_compiler_pic='-KPIC'
6469 lt_prog_compiler_static='-Bstatic'
6470 case $cc_basename in
6472 lt_prog_compiler_wl='-Qoption ld ';;
6474 lt_prog_compiler_wl='-Wl,';;
6479 lt_prog_compiler_wl='-Qoption ld '
6480 lt_prog_compiler_pic='-PIC'
6481 lt_prog_compiler_static='-Bstatic'
6484 sysv4 | sysv4.2uw2* | sysv4.3*)
6485 lt_prog_compiler_wl='-Wl,'
6486 lt_prog_compiler_pic='-KPIC'
6487 lt_prog_compiler_static='-Bstatic'
6491 if test -d /usr/nec ;then
6492 lt_prog_compiler_pic='-Kconform_pic'
6493 lt_prog_compiler_static='-Bstatic'
6497 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6498 lt_prog_compiler_wl='-Wl,'
6499 lt_prog_compiler_pic='-KPIC'
6500 lt_prog_compiler_static='-Bstatic'
6504 lt_prog_compiler_wl='-Wl,'
6505 lt_prog_compiler_can_build_shared=no
6509 lt_prog_compiler_pic='-pic'
6510 lt_prog_compiler_static='-Bstatic'
6514 lt_prog_compiler_can_build_shared=no
6519 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6520 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6523 # Check to make sure the PIC flag actually works.
6525 if test -n "$lt_prog_compiler_pic"; then
6527 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6528 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6529 if test "${lt_prog_compiler_pic_works+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 lt_prog_compiler_pic_works=no
6533 ac_outfile=conftest.$ac_objext
6534 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6535 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6536 # Insert the option either (1) after the last *FLAGS variable, or
6537 # (2) before a word containing "conftest.", or (3) at the end.
6538 # Note that $ac_compile itself does not contain backslashes and begins
6539 # with a dollar sign (not a hyphen), so the echo should work correctly.
6540 # The option is referenced via a variable to avoid confusing sed.
6541 lt_compile=`echo "$ac_compile" | $SED \
6542 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6543 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6544 -e 's:$: $lt_compiler_flag:'`
6545 (eval echo "\"\$as_me:6545: $lt_compile\"" >&5)
6546 (eval "$lt_compile" 2>conftest.err)
6548 cat conftest.err >&5
6549 echo "$as_me:6549: \$? = $ac_status" >&5
6550 if (exit $ac_status) && test -s "$ac_outfile"; then
6551 # The compiler can only warn and ignore the option if not recognized
6552 # So say no if there are warnings other than the usual output.
6553 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6554 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6555 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6556 lt_prog_compiler_pic_works=yes
6562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6563 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6565 if test x"$lt_prog_compiler_pic_works" = xyes; then
6566 case $lt_prog_compiler_pic in
6568 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6571 lt_prog_compiler_pic=
6572 lt_prog_compiler_can_build_shared=no
6577 # For platforms which do not support PIC, -DPIC is meaningless:
6579 lt_prog_compiler_pic=
6582 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6587 # Check to make sure the static flag actually works.
6589 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6590 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6591 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6592 if test "${lt_prog_compiler_static_works+set}" = set; then
6593 echo $ECHO_N "(cached) $ECHO_C" >&6
6595 lt_prog_compiler_static_works=no
6596 save_LDFLAGS="$LDFLAGS"
6597 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6598 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6599 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6600 # The linker can only warn and ignore the option if not recognized
6601 # So say no if there are warnings
6602 if test -s conftest.err; then
6603 # Append any errors to the config.log.
6604 cat conftest.err 1>&5
6605 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6606 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6607 if diff conftest.exp conftest.er2 >/dev/null; then
6608 lt_prog_compiler_static_works=yes
6611 lt_prog_compiler_static_works=yes
6615 LDFLAGS="$save_LDFLAGS"
6618 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6619 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6621 if test x"$lt_prog_compiler_static_works" = xyes; then
6624 lt_prog_compiler_static=
6628 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6629 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6630 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6631 echo $ECHO_N "(cached) $ECHO_C" >&6
6633 lt_cv_prog_compiler_c_o=no
6634 $rm -r conftest 2>/dev/null
6638 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6640 lt_compiler_flag="-o out/conftest2.$ac_objext"
6641 # Insert the option either (1) after the last *FLAGS variable, or
6642 # (2) before a word containing "conftest.", or (3) at the end.
6643 # Note that $ac_compile itself does not contain backslashes and begins
6644 # with a dollar sign (not a hyphen), so the echo should work correctly.
6645 lt_compile=`echo "$ac_compile" | $SED \
6646 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6647 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6648 -e 's:$: $lt_compiler_flag:'`
6649 (eval echo "\"\$as_me:6649: $lt_compile\"" >&5)
6650 (eval "$lt_compile" 2>out/conftest.err)
6652 cat out/conftest.err >&5
6653 echo "$as_me:6653: \$? = $ac_status" >&5
6654 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6656 # The compiler can only warn and ignore the option if not recognized
6657 # So say no if there are warnings
6658 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6659 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6660 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6661 lt_cv_prog_compiler_c_o=yes
6666 # SGI C++ compiler will create directory out/ii_files/ for
6667 # template instantiation
6668 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6669 $rm out/* && rmdir out
6675 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6676 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6679 hard_links="nottested"
6680 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6681 # do not overwrite the value of need_locks provided by the user
6682 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6683 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6688 ln conftest.a conftest.b 2>&5 || hard_links=no
6689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6690 echo "$as_me:$LINENO: result: $hard_links" >&5
6691 echo "${ECHO_T}$hard_links" >&6
6692 if test "$hard_links" = no; then
6693 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6694 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6701 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6702 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6705 allow_undefined_flag=
6706 enable_shared_with_static_runtimes=no
6708 archive_expsym_cmds=
6709 old_archive_From_new_cmds=
6710 old_archive_from_expsyms_cmds=
6711 export_dynamic_flag_spec=
6712 whole_archive_flag_spec=
6713 thread_safe_flag_spec=
6714 hardcode_libdir_flag_spec=
6715 hardcode_libdir_flag_spec_ld=
6716 hardcode_libdir_separator=
6719 hardcode_shlibpath_var=unsupported
6720 link_all_deplibs=unknown
6721 hardcode_automatic=no
6724 always_export_symbols=no
6725 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6726 # include_expsyms should be a list of space-separated symbols to be *always*
6727 # included in the symbol list
6729 # exclude_expsyms can be an extended regexp of symbols to exclude
6730 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6731 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6732 # as well as any symbol that contains `d'.
6733 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6734 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6735 # platforms (ab)use it in PIC code, but their linkers get confused if
6736 # the symbol is explicitly referenced. Since portable code cannot
6737 # rely on this symbol name, it's probably fine to never include it in
6738 # preloaded symbol tables.
6739 extract_expsyms_cmds=
6740 # Just being paranoid about ensuring that cc_basename is set.
6741 for cc_temp in $compiler""; do
6743 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6744 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6749 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6752 cygwin* | mingw* | pw32*)
6753 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6754 # When not using gcc, we currently assume that we are using
6755 # Microsoft Visual C++.
6756 if test "$GCC" != yes; then
6761 # we just hope/assume this is gcc and not c89 (= MSVC++)
6770 if test "$with_gnu_ld" = yes; then
6771 # If archive_cmds runs LD, not CC, wlarc should be empty
6774 # Set some defaults for GNU ld with shared library support. These
6775 # are reset later if shared libraries are not supported. Putting them
6776 # here allows them to be overridden if necessary.
6777 runpath_var=LD_RUN_PATH
6778 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6779 export_dynamic_flag_spec='${wl}--export-dynamic'
6780 # ancient GNU ld didn't support --whole-archive et. al.
6781 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6782 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6784 whole_archive_flag_spec=
6786 supports_anon_versioning=no
6787 case `$LD -v 2>/dev/null` in
6788 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6789 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6790 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6791 *\ 2.11.*) ;; # other 2.11 versions
6792 *) supports_anon_versioning=yes ;;
6795 # See if GNU ld supports shared libraries.
6797 aix3* | aix4* | aix5*)
6798 # On AIX/PPC, the GNU linker is very broken
6799 if test "$host_cpu" != ia64; then
6803 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6804 *** to be unable to reliably create shared libraries on AIX.
6805 *** Therefore, libtool is disabling shared libraries support. If you
6806 *** really care for shared libraries, you may want to modify your PATH
6807 *** so that a non-GNU linker is found, and then restart.
6814 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)'
6815 hardcode_libdir_flag_spec='-L$libdir'
6816 hardcode_minus_L=yes
6818 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6819 # that the semantics of dynamic libraries on AmigaOS, at least up
6820 # to version 4, is to share data among multiple programs linked
6821 # with the same dynamic library. Since this doesn't match the
6822 # behavior of shared libraries on other platforms, we can't use
6828 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6829 allow_undefined_flag=unsupported
6830 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6831 # support --undefined. This deserves some investigation. FIXME
6832 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6838 cygwin* | mingw* | pw32*)
6839 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6840 # as there is no search path for DLLs.
6841 hardcode_libdir_flag_spec='-L$libdir'
6842 allow_undefined_flag=unsupported
6843 always_export_symbols=no
6844 enable_shared_with_static_runtimes=yes
6845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6847 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6849 # If the export-symbols file already is a .def file (1st line
6850 # is EXPORTS), use it as is; otherwise, prepend...
6851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6852 cp $export_symbols $output_objdir/$soname.def;
6854 echo EXPORTS > $output_objdir/$soname.def;
6855 cat $export_symbols >> $output_objdir/$soname.def;
6857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6865 hardcode_shlibpath_var=no
6866 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6867 export_dynamic_flag_spec='${wl}-E'
6868 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6869 # Instead, shared libraries are loaded at an image base (0x10000000 by
6870 # default) and relocated if they conflict, which is a slow very memory
6871 # consuming and fragmenting process. To avoid this, we pick a random,
6872 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6873 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6874 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6875 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6879 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6881 case $cc_basename,$host_cpu in
6882 pgcc*) # Portland Group C compiler
6883 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6884 tmp_addflag=' $pic_flag'
6886 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6887 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
6888 tmp_addflag=' $pic_flag -Mnomain' ;;
6889 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6890 tmp_addflag=' -i_dynamic' ;;
6891 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6892 tmp_addflag=' -i_dynamic -nofor_main' ;;
6893 ifc* | ifort*) # Intel Fortran compiler
6894 tmp_addflag=' -nofor_main' ;;
6896 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6898 if test $supports_anon_versioning = yes; then
6899 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6900 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6901 $echo "local: *; };" >> $output_objdir/$libname.ver~
6902 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6910 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6911 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6914 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6920 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6924 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6925 *** create shared libraries on Solaris systems. Therefore, libtool
6926 *** is disabling shared libraries support. We urge you to upgrade GNU
6927 *** binutils to release 2.9.1 or newer. Another option is to modify
6928 *** your PATH or compiler configuration so that the native linker is
6929 *** used, and then restart.
6932 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6933 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6934 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6940 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6941 case `$LD -v 2>&1` in
6942 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6946 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6947 *** reliably create shared libraries on SCO systems. Therefore, libtool
6948 *** is disabling shared libraries support. We urge you to upgrade GNU
6949 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6950 *** your PATH or compiler configuration so that the native linker is
6951 *** used, and then restart.
6956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6957 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6958 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6959 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6968 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6971 hardcode_shlibpath_var=no
6975 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6984 if test "$ld_shlibs" = no; then
6986 hardcode_libdir_flag_spec=
6987 export_dynamic_flag_spec=
6988 whole_archive_flag_spec=
6991 # PORTME fill in a description of your system's linker (not GNU ld)
6994 allow_undefined_flag=unsupported
6995 always_export_symbols=yes
6996 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'
6997 # Note: this linker hardcodes the directories in LIBPATH if there
6998 # are no directories specified by -L.
6999 hardcode_minus_L=yes
7000 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7001 # Neither direct hardcoding nor static linking is supported with a
7003 hardcode_direct=unsupported
7008 if test "$host_cpu" = ia64; then
7009 # On IA64, the linker does run time linking by default, so we don't
7010 # have to do anything special.
7011 aix_use_runtimelinking=no
7012 exp_sym_flag='-Bexport'
7015 # If we're using GNU nm, then we don't want the "-C" option.
7016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7017 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7018 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'
7020 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'
7022 aix_use_runtimelinking=no
7024 # Test if we are trying to use run time linking or normal
7025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7026 # need to do runtime linking.
7027 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7028 for ld_flag in $LDFLAGS; do
7029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7030 aix_use_runtimelinking=yes
7037 exp_sym_flag='-bexport'
7038 no_entry_flag='-bnoentry'
7041 # When large executables or shared objects are built, AIX ld can
7042 # have problems creating the table of contents. If linking a library
7043 # or program results in "error TOC overflow" add -mminimal-toc to
7044 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7045 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7049 hardcode_libdir_separator=':'
7050 link_all_deplibs=yes
7052 if test "$GCC" = yes; then
7053 case $host_os in aix4.[012]|aix4.[012].*)
7054 # We only want to do this on AIX 4.2 and lower, the check
7055 # below for broken collect2 doesn't work under 4.3+
7056 collect2name=`${CC} -print-prog-name=collect2`
7057 if test -f "$collect2name" && \
7058 strings "$collect2name" | grep resolve_lib_name >/dev/null
7060 # We have reworked collect2
7063 # We have old collect2
7064 hardcode_direct=unsupported
7065 # It fails to find uninstalled libraries when the uninstalled
7066 # path is not listed in the libpath. Setting hardcode_minus_L
7067 # to unsupported forces relinking
7068 hardcode_minus_L=yes
7069 hardcode_libdir_flag_spec='-L$libdir'
7070 hardcode_libdir_separator=
7074 shared_flag='-shared'
7075 if test "$aix_use_runtimelinking" = yes; then
7076 shared_flag="$shared_flag "'${wl}-G'
7080 if test "$host_cpu" = ia64; then
7081 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7082 # chokes on -Wl,-G. The following line is correct:
7085 if test "$aix_use_runtimelinking" = yes; then
7086 shared_flag='${wl}-G'
7088 shared_flag='${wl}-bM:SRE'
7093 # It seems that -bexpall does not export symbols beginning with
7094 # underscore (_), so it is better to generate a list of symbols to export.
7095 always_export_symbols=yes
7096 if test "$aix_use_runtimelinking" = yes; then
7097 # Warning - without using the other runtime loading flags (-brtl),
7098 # -berok will link without error, but may produce a broken library.
7099 allow_undefined_flag='-berok'
7100 # Determine the default libpath from the value encoded in an empty executable.
7101 cat >conftest.$ac_ext <<_ACEOF
7104 cat confdefs.h >>conftest.$ac_ext
7105 cat >>conftest.$ac_ext <<_ACEOF
7106 /* end confdefs.h. */
7116 rm -f conftest.$ac_objext conftest$ac_exeext
7117 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7118 (eval $ac_link) 2>conftest.er1
7120 grep -v '^ *+' conftest.er1 >conftest.err
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } &&
7125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7130 (exit $ac_status); }; } &&
7131 { ac_try='test -s conftest$ac_exeext'
7132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); }; }; then
7138 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7140 # Check for a 64-bit object if we didn't find anything.
7141 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; }
7144 echo "$as_me: failed program was:" >&5
7145 sed 's/^/| /' conftest.$ac_ext >&5
7148 rm -f conftest.err conftest.$ac_objext \
7149 conftest$ac_exeext conftest.$ac_ext
7150 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7152 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7153 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7155 if test "$host_cpu" = ia64; then
7156 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7157 allow_undefined_flag="-z nodefs"
7158 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7160 # Determine the default libpath from the value encoded in an empty executable.
7161 cat >conftest.$ac_ext <<_ACEOF
7164 cat confdefs.h >>conftest.$ac_ext
7165 cat >>conftest.$ac_ext <<_ACEOF
7166 /* end confdefs.h. */
7176 rm -f conftest.$ac_objext conftest$ac_exeext
7177 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7178 (eval $ac_link) 2>conftest.er1
7180 grep -v '^ *+' conftest.er1 >conftest.err
7182 cat conftest.err >&5
7183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7184 (exit $ac_status); } &&
7185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); }; } &&
7191 { ac_try='test -s conftest$ac_exeext'
7192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7196 (exit $ac_status); }; }; then
7198 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7200 # Check for a 64-bit object if we didn't find anything.
7201 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; }
7204 echo "$as_me: failed program was:" >&5
7205 sed 's/^/| /' conftest.$ac_ext >&5
7208 rm -f conftest.err conftest.$ac_objext \
7209 conftest$ac_exeext conftest.$ac_ext
7210 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7212 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7213 # Warning - without using the other run time loading flags,
7214 # -berok will link without error, but may produce a broken library.
7215 no_undefined_flag=' ${wl}-bernotok'
7216 allow_undefined_flag=' ${wl}-berok'
7217 # Exported symbols can be pulled into shared objects from archives
7218 whole_archive_flag_spec='$convenience'
7219 archive_cmds_need_lc=yes
7220 # This is similar to how AIX traditionally builds its shared libraries.
7221 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7227 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)'
7228 hardcode_libdir_flag_spec='-L$libdir'
7229 hardcode_minus_L=yes
7230 # see comment about different semantics on the GNU ld section
7235 export_dynamic_flag_spec=-rdynamic
7238 cygwin* | mingw* | pw32*)
7239 # When not using gcc, we currently assume that we are using
7240 # Microsoft Visual C++.
7241 # hardcode_libdir_flag_spec is actually meaningless, as there is
7242 # no search path for DLLs.
7243 hardcode_libdir_flag_spec=' '
7244 allow_undefined_flag=unsupported
7245 # Tell ltmain to make .lib files, not .a files.
7247 # Tell ltmain to make .dll files, not .so files.
7249 # FIXME: Setting linknames here is a bad hack.
7250 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7251 # The linker will automatically build a .lib file if we build a DLL.
7252 old_archive_From_new_cmds='true'
7253 # FIXME: Should let the user specify the lib program.
7254 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7255 fix_srcfile_path='`cygpath -w "$srcfile"`'
7256 enable_shared_with_static_runtimes=yes
7259 darwin* | rhapsody*)
7261 rhapsody* | darwin1.[012])
7262 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7265 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7266 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7268 case ${MACOSX_DEPLOYMENT_TARGET} in
7270 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7273 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7279 archive_cmds_need_lc=no
7281 hardcode_automatic=yes
7282 hardcode_shlibpath_var=unsupported
7283 whole_archive_flag_spec=''
7284 link_all_deplibs=yes
7285 if test "$GCC" = yes ; then
7286 output_verbose_link_cmd='echo'
7287 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7288 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7289 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7290 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}'
7291 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}'
7293 case $cc_basename in
7295 output_verbose_link_cmd='echo'
7296 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7297 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7298 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7299 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7300 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}'
7310 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7311 hardcode_libdir_flag_spec='-L$libdir'
7312 hardcode_shlibpath_var=no
7319 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7320 # support. Future versions do this automatically, but an explicit c++rt0.o
7321 # does not break anything, and helps significantly (at the cost of a little
7324 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7325 hardcode_libdir_flag_spec='-R$libdir'
7327 hardcode_shlibpath_var=no
7330 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7332 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7334 hardcode_minus_L=yes
7335 hardcode_shlibpath_var=no
7338 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7339 freebsd* | kfreebsd*-gnu | dragonfly*)
7340 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7341 hardcode_libdir_flag_spec='-R$libdir'
7343 hardcode_shlibpath_var=no
7347 if test "$GCC" = yes; then
7348 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'
7350 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'
7352 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7353 hardcode_libdir_separator=:
7356 # hardcode_minus_L: Not really in the search PATH,
7357 # but as the default location of the library.
7358 hardcode_minus_L=yes
7359 export_dynamic_flag_spec='${wl}-E'
7363 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7364 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7366 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7368 if test "$with_gnu_ld" = no; then
7369 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7370 hardcode_libdir_separator=:
7373 export_dynamic_flag_spec='${wl}-E'
7375 # hardcode_minus_L: Not really in the search PATH,
7376 # but as the default location of the library.
7377 hardcode_minus_L=yes
7382 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7385 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7388 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7391 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7397 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7400 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7403 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7407 if test "$with_gnu_ld" = no; then
7408 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7409 hardcode_libdir_separator=:
7413 hardcode_libdir_flag_spec_ld='+b $libdir'
7415 hardcode_shlibpath_var=no
7419 export_dynamic_flag_spec='${wl}-E'
7421 # hardcode_minus_L: Not really in the search PATH,
7422 # but as the default location of the library.
7423 hardcode_minus_L=yes
7429 irix5* | irix6* | nonstopux*)
7430 if test "$GCC" = yes; then
7431 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'
7433 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'
7434 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7436 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7437 hardcode_libdir_separator=:
7438 link_all_deplibs=yes
7442 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7443 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7445 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7447 hardcode_libdir_flag_spec='-R$libdir'
7449 hardcode_shlibpath_var=no
7453 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7455 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7456 hardcode_libdir_separator=:
7457 hardcode_shlibpath_var=no
7462 hardcode_shlibpath_var=no
7463 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7464 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7465 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7466 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7467 export_dynamic_flag_spec='${wl}-E'
7470 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7471 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7472 hardcode_libdir_flag_spec='-R$libdir'
7475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7476 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7483 hardcode_libdir_flag_spec='-L$libdir'
7484 hardcode_minus_L=yes
7485 allow_undefined_flag=unsupported
7486 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'
7487 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7491 if test "$GCC" = yes; then
7492 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7493 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'
7495 allow_undefined_flag=' -expect_unresolved \*'
7496 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'
7498 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7499 hardcode_libdir_separator=:
7502 osf4* | osf5*) # as osf3* with the addition of -msym flag
7503 if test "$GCC" = yes; then
7504 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7505 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'
7506 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7508 allow_undefined_flag=' -expect_unresolved \*'
7509 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'
7510 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7511 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7513 # Both c and cxx compiler support -rpath directly
7514 hardcode_libdir_flag_spec='-rpath $libdir'
7516 hardcode_libdir_separator=:
7520 no_undefined_flag=' -z text'
7521 if test "$GCC" = yes; then
7523 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7524 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7525 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7528 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7529 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7530 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7532 hardcode_libdir_flag_spec='-R$libdir'
7533 hardcode_shlibpath_var=no
7535 solaris2.[0-5] | solaris2.[0-5].*) ;;
7537 # The compiler driver will combine linker options so we
7538 # cannot just pass the convience library names through
7539 # without $wl, iff we do not link with $LD.
7540 # Luckily, gcc supports the same syntax we need for Sun Studio.
7541 # Supported since Solaris 2.6 (maybe 2.5.1?)
7544 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7546 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7549 link_all_deplibs=yes
7553 if test "x$host_vendor" = xsequent; then
7554 # Use $CC to link under sequent, because it throws in some extra .o
7555 # files that make .init and .fini sections work.
7556 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7558 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7560 hardcode_libdir_flag_spec='-L$libdir'
7562 hardcode_minus_L=yes
7563 hardcode_shlibpath_var=no
7567 case $host_vendor in
7569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7570 hardcode_direct=yes # is this really true???
7573 ## LD is ld it makes a PLAMLIB
7574 ## CC just makes a GrossModule.
7575 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7576 reload_cmds='$CC -r -o $output$reload_objs'
7580 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7581 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7584 runpath_var='LD_RUN_PATH'
7585 hardcode_shlibpath_var=no
7589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7590 hardcode_shlibpath_var=no
7591 export_dynamic_flag_spec='-Bexport'
7595 if test -d /usr/nec; then
7596 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7597 hardcode_shlibpath_var=no
7598 runpath_var=LD_RUN_PATH
7599 hardcode_runpath_var=yes
7604 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7605 no_undefined_flag='${wl}-z,text'
7606 archive_cmds_need_lc=no
7607 hardcode_shlibpath_var=no
7608 runpath_var='LD_RUN_PATH'
7610 if test "$GCC" = yes; then
7611 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7612 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7614 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7615 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7619 sysv5* | sco3.2v5* | sco5v6*)
7620 # Note: We can NOT use -z defs as we might desire, because we do not
7621 # link with -lc, and that would cause any symbols used from libc to
7622 # always be unresolved, which means just about no library would
7623 # ever link correctly. If we're not using GNU ld we use -z text
7624 # though, which does catch some bad symbols but isn't as heavy-handed
7626 no_undefined_flag='${wl}-z,text'
7627 allow_undefined_flag='${wl}-z,nodefs'
7628 archive_cmds_need_lc=no
7629 hardcode_shlibpath_var=no
7630 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7631 hardcode_libdir_separator=':'
7632 link_all_deplibs=yes
7633 export_dynamic_flag_spec='${wl}-Bexport'
7634 runpath_var='LD_RUN_PATH'
7636 if test "$GCC" = yes; then
7637 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7640 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7646 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7647 hardcode_libdir_flag_spec='-L$libdir'
7648 hardcode_shlibpath_var=no
7657 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7658 echo "${ECHO_T}$ld_shlibs" >&6
7659 test "$ld_shlibs" = no && can_build_shared=no
7662 # Do we need to explicitly link libc?
7664 case "x$archive_cmds_need_lc" in
7666 # Assume -lc should be added
7667 archive_cmds_need_lc=yes
7669 if test "$enable_shared" = yes && test "$GCC" = yes; then
7670 case $archive_cmds in
7672 # FIXME: we may have to deal with multi-command sequences.
7675 # Test whether the compiler implicitly links with -lc since on some
7676 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7677 # to ld, don't add -lc before -lgcc.
7678 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7679 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7684 (eval $ac_compile) 2>&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } 2>conftest.err; then
7690 libobjs=conftest.$ac_objext
7692 wl=$lt_prog_compiler_wl
7693 pic_flag=$lt_prog_compiler_pic
7699 lt_save_allow_undefined_flag=$allow_undefined_flag
7700 allow_undefined_flag=
7701 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7702 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); }
7707 archive_cmds_need_lc=no
7709 archive_cmds_need_lc=yes
7711 allow_undefined_flag=$lt_save_allow_undefined_flag
7713 cat conftest.err 1>&5
7716 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7717 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7724 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7725 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7727 libname_spec='lib$name'
7735 shlibpath_overrides_runpath=unknown
7737 dynamic_linker="$host_os ld.so"
7738 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7739 if test "$GCC" = yes; then
7740 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7741 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7742 # if the path contains ";" then we assume it to be the separator
7743 # otherwise default to the standard path separator (i.e. ":") - it is
7744 # assumed that no part of a normal pathname contains ";" but that should
7745 # okay in the real world where ";" in dirpaths is itself problematic.
7746 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7748 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7751 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7753 need_lib_prefix=unknown
7754 hardcode_into_libs=no
7756 # when you set need_version to no, make sure it does not cause -set_version
7757 # flags to be left without arguments
7758 need_version=unknown
7763 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7764 shlibpath_var=LIBPATH
7766 # AIX 3 has no versioning support, so we append a major version to the name.
7767 soname_spec='${libname}${release}${shared_ext}$major'
7774 hardcode_into_libs=yes
7775 if test "$host_cpu" = ia64; then
7776 # AIX 5 supports IA64
7777 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7778 shlibpath_var=LD_LIBRARY_PATH
7780 # With GCC up to 2.95.x, collect2 would create an import file
7781 # for dependence libraries. The import file would start with
7782 # the line `#! .'. This would cause the generated library to
7783 # depend on `.', always an invalid library. This was fixed in
7784 # development snapshots of GCC prior to 3.0.
7786 aix4 | aix4.[01] | aix4.[01].*)
7787 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7789 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7796 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7797 # soname into executable. Probably we can add versioning support to
7798 # collect2, so additional links can be useful in future.
7799 if test "$aix_use_runtimelinking" = yes; then
7800 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7801 # instead of lib<name>.a to let people know that these are not
7802 # typical AIX shared libraries.
7803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7805 # We preserve .a as extension for shared libraries through AIX4.2
7806 # and later when we are not doing run time linking.
7807 library_names_spec='${libname}${release}.a $libname.a'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7810 shlibpath_var=LIBPATH
7815 library_names_spec='$libname.ixlibrary $libname.a'
7816 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7817 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'
7821 library_names_spec='${libname}${shared_ext}'
7822 dynamic_linker="$host_os ld.so"
7823 shlibpath_var=LIBRARY_PATH
7829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7830 soname_spec='${libname}${release}${shared_ext}$major'
7831 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7832 shlibpath_var=LD_LIBRARY_PATH
7833 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7834 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7835 # the default ld.so.conf also contains /usr/contrib/lib and
7836 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7837 # libtool to hard-code these into programs
7840 cygwin* | mingw* | pw32*)
7841 version_type=windows
7846 case $GCC,$host_os in
7847 yes,cygwin* | yes,mingw* | yes,pw32*)
7848 library_names_spec='$libname.dll.a'
7849 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7850 postinstall_cmds='base_file=`basename \${file}`~
7851 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7852 dldir=$destdir/`dirname \$dlpath`~
7853 test -d \$dldir || mkdir -p \$dldir~
7854 $install_prog $dir/$dlname \$dldir/$dlname~
7855 chmod a+x \$dldir/$dlname'
7856 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7857 dlpath=$dir/\$dldll~
7859 shlibpath_overrides_runpath=yes
7863 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7864 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7865 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7868 # MinGW DLLs use traditional 'lib' prefix
7869 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7870 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7871 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7872 # It is most probably a Windows format PATH printed by
7873 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7874 # path with ; separators, and with drive letters. We can handle the
7875 # drive letters (cygwin fileutils understands them), so leave them,
7876 # especially as we might pass files found there to a mingw objdump,
7877 # which wouldn't understand a cygwinified path. Ahh.
7878 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7880 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7884 # pw32 DLLs use 'pw' prefix rather than 'lib'
7885 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7891 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7894 dynamic_linker='Win32 ld.exe'
7895 # FIXME: first we should search . and the directory the executable is in
7899 darwin* | rhapsody*)
7900 dynamic_linker="$host_os dyld"
7904 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7905 soname_spec='${libname}${release}${major}$shared_ext'
7906 shlibpath_overrides_runpath=yes
7907 shlibpath_var=DYLD_LIBRARY_PATH
7908 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7909 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7910 if test "$GCC" = yes; then
7911 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"`
7913 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7915 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7923 soname_spec='${libname}${release}${shared_ext}$major'
7924 shlibpath_var=LD_LIBRARY_PATH
7935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7936 soname_spec='${libname}${release}${shared_ext}$major'
7937 shlibpath_var=LD_LIBRARY_PATH
7938 shlibpath_overrides_runpath=no
7939 hardcode_into_libs=yes
7940 dynamic_linker='GNU ld.so'
7943 freebsd* | dragonfly*)
7944 # DragonFly does not have aout. When/if they implement a new
7945 # versioning mechanism, adjust this.
7946 if test -x /usr/bin/objformat; then
7947 objformat=`/usr/bin/objformat`
7950 freebsd[123]*) objformat=aout ;;
7954 version_type=freebsd-$objformat
7955 case $version_type in
7957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7966 shlibpath_var=LD_LIBRARY_PATH
7969 shlibpath_overrides_runpath=yes
7971 freebsd3.[01]* | freebsdelf3.[01]*)
7972 shlibpath_overrides_runpath=yes
7973 hardcode_into_libs=yes
7975 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7976 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7977 shlibpath_overrides_runpath=no
7978 hardcode_into_libs=yes
7980 freebsd*) # from 4.6 on
7981 shlibpath_overrides_runpath=yes
7982 hardcode_into_libs=yes
7991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7992 soname_spec='${libname}${release}${shared_ext}$major'
7993 shlibpath_var=LD_LIBRARY_PATH
7994 hardcode_into_libs=yes
7997 hpux9* | hpux10* | hpux11*)
7998 # Give a soname corresponding to the major version so that dld.sl refuses to
7999 # link against other versions.
8006 hardcode_into_libs=yes
8007 dynamic_linker="$host_os dld.so"
8008 shlibpath_var=LD_LIBRARY_PATH
8009 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8011 soname_spec='${libname}${release}${shared_ext}$major'
8012 if test "X$HPUX_IA64_MODE" = X32; then
8013 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8015 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8017 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8021 hardcode_into_libs=yes
8022 dynamic_linker="$host_os dld.sl"
8023 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8024 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8026 soname_spec='${libname}${release}${shared_ext}$major'
8027 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8028 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8032 dynamic_linker="$host_os dld.sl"
8033 shlibpath_var=SHLIB_PATH
8034 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8036 soname_spec='${libname}${release}${shared_ext}$major'
8039 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8040 postinstall_cmds='chmod 555 $lib'
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8048 soname_spec='${libname}${release}${shared_ext}$major'
8049 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8050 shlibpath_var=LD_LIBRARY_PATH
8051 shlibpath_overrides_runpath=no
8052 hardcode_into_libs=yes
8055 irix5* | irix6* | nonstopux*)
8057 nonstopux*) version_type=nonstopux ;;
8059 if test "$lt_cv_prog_gnu_ld" = yes; then
8067 soname_spec='${libname}${release}${shared_ext}$major'
8068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8070 irix5* | nonstopux*)
8074 case $LD in # libtool.m4 will add one of these switches to LD
8075 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8076 libsuff= shlibsuff= libmagic=32-bit;;
8077 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8078 libsuff=32 shlibsuff=N32 libmagic=N32;;
8079 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8080 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8081 *) libsuff= shlibsuff= libmagic=never-match;;
8085 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8086 shlibpath_overrides_runpath=no
8087 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8088 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8089 hardcode_into_libs=yes
8092 # No shared lib support for Linux oldld, aout, or coff.
8093 linux*oldld* | linux*aout* | linux*coff*)
8097 # This must be Linux ELF.
8102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8103 soname_spec='${libname}${release}${shared_ext}$major'
8104 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8105 shlibpath_var=LD_LIBRARY_PATH
8106 shlibpath_overrides_runpath=no
8107 # This implies no fast_install, which is unacceptable.
8108 # Some rework will be needed to allow for fast_install
8109 # before this can be enabled.
8110 hardcode_into_libs=yes
8112 # Append ld.so.conf contents to the search path
8113 if test -f /etc/ld.so.conf; then
8114 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8115 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8118 # We used to test for /lib/ld.so.1 and disable shared libraries on
8119 # powerpc, because MkLinux only supported shared libraries with the
8120 # GNU dynamic linker. Since this was broken with cross compilers,
8121 # most powerpc-linux boxes support dynamic linking these days and
8122 # people can always --disable-shared, the test was removed, and we
8123 # assume the GNU/Linux dynamic linker is in use.
8124 dynamic_linker='GNU/Linux ld.so'
8131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132 soname_spec='${libname}${release}${shared_ext}$major'
8133 shlibpath_var=LD_LIBRARY_PATH
8134 shlibpath_overrides_runpath=no
8135 hardcode_into_libs=yes
8136 dynamic_linker='GNU ld.so'
8143 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8146 dynamic_linker='NetBSD (a.out) ld.so'
8148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8149 soname_spec='${libname}${release}${shared_ext}$major'
8150 dynamic_linker='NetBSD ld.elf_so'
8152 shlibpath_var=LD_LIBRARY_PATH
8153 shlibpath_overrides_runpath=yes
8154 hardcode_into_libs=yes
8159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8160 shlibpath_var=LD_LIBRARY_PATH
8161 shlibpath_overrides_runpath=yes
8168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8169 soname_spec='${libname}${release}${shared_ext}$major'
8170 shlibpath_var=LD_LIBRARY_PATH
8171 shlibpath_overrides_runpath=yes
8176 sys_lib_dlsearch_path_spec="/usr/lib"
8178 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8180 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8181 *) need_version=no ;;
8183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8184 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8185 shlibpath_var=LD_LIBRARY_PATH
8186 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8188 openbsd2.[89] | openbsd2.[89].*)
8189 shlibpath_overrides_runpath=no
8192 shlibpath_overrides_runpath=yes
8196 shlibpath_overrides_runpath=yes
8201 libname_spec='$name'
8204 library_names_spec='$libname${shared_ext} $libname.a'
8205 dynamic_linker='OS/2 ld.exe'
8206 shlibpath_var=LIBPATH
8209 osf3* | osf4* | osf5*)
8213 soname_spec='${libname}${release}${shared_ext}$major'
8214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215 shlibpath_var=LD_LIBRARY_PATH
8216 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8217 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8225 soname_spec='${libname}${release}${shared_ext}$major'
8226 shlibpath_var=LD_LIBRARY_PATH
8227 shlibpath_overrides_runpath=yes
8228 hardcode_into_libs=yes
8229 # ldd complains unless libraries are executable
8230 postinstall_cmds='chmod +x $lib'
8235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8236 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8237 shlibpath_var=LD_LIBRARY_PATH
8238 shlibpath_overrides_runpath=yes
8239 if test "$with_gnu_ld" = yes; then
8247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8248 soname_spec='${libname}${release}${shared_ext}$major'
8249 shlibpath_var=LD_LIBRARY_PATH
8250 case $host_vendor in
8252 shlibpath_overrides_runpath=no
8254 export_dynamic_flag_spec='${wl}-Blargedynsym'
8255 runpath_var=LD_RUN_PATH
8263 shlibpath_overrides_runpath=no
8264 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8270 if test -d /usr/nec ;then
8272 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8273 soname_spec='$libname${shared_ext}.$major'
8274 shlibpath_var=LD_LIBRARY_PATH
8278 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8279 version_type=freebsd-elf
8282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8283 soname_spec='${libname}${release}${shared_ext}$major'
8284 shlibpath_var=LD_LIBRARY_PATH
8285 hardcode_into_libs=yes
8286 if test "$with_gnu_ld" = yes; then
8287 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8288 shlibpath_overrides_runpath=no
8290 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8291 shlibpath_overrides_runpath=yes
8294 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8298 sys_lib_dlsearch_path_spec='/usr/lib'
8303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8304 soname_spec='${libname}${release}${shared_ext}$major'
8305 shlibpath_var=LD_LIBRARY_PATH
8312 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8313 echo "${ECHO_T}$dynamic_linker" >&6
8314 test "$dynamic_linker" = no && can_build_shared=no
8316 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8317 if test "$GCC" = yes; then
8318 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8321 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8322 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8324 if test -n "$hardcode_libdir_flag_spec" || \
8325 test -n "$runpath_var" || \
8326 test "X$hardcode_automatic" = "Xyes" ; then
8328 # We can hardcode non-existant directories.
8329 if test "$hardcode_direct" != no &&
8330 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8331 # have to relink, otherwise we might link with an installed library
8332 # when we should be linking with a yet-to-be-installed one
8333 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8334 test "$hardcode_minus_L" != no; then
8335 # Linking always hardcodes the temporary library directory.
8336 hardcode_action=relink
8338 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8339 hardcode_action=immediate
8342 # We cannot hardcode anything, or else we can only hardcode existing
8344 hardcode_action=unsupported
8346 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8347 echo "${ECHO_T}$hardcode_action" >&6
8349 if test "$hardcode_action" = relink; then
8350 # Fast installation is not supported
8351 enable_fast_install=no
8352 elif test "$shlibpath_overrides_runpath" = yes ||
8353 test "$enable_shared" = no; then
8354 # Fast installation is not necessary
8355 enable_fast_install=needless
8360 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8361 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8362 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8363 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8364 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8365 echo "$as_me:$LINENO: result: yes" >&5
8366 echo "${ECHO_T}yes" >&6
8368 # FIXME - insert some real tests, host_os isn't really good enough
8371 if test -n "$STRIP" ; then
8372 striplib="$STRIP -x"
8373 echo "$as_me:$LINENO: result: yes" >&5
8374 echo "${ECHO_T}yes" >&6
8376 echo "$as_me:$LINENO: result: no" >&5
8377 echo "${ECHO_T}no" >&6
8381 echo "$as_me:$LINENO: result: no" >&5
8382 echo "${ECHO_T}no" >&6
8387 if test "x$enable_dlopen" != xyes; then
8388 enable_dlopen=unknown
8389 enable_dlopen_self=unknown
8390 enable_dlopen_self_static=unknown
8397 lt_cv_dlopen="load_add_on"
8399 lt_cv_dlopen_self=yes
8403 lt_cv_dlopen="LoadLibrary"
8408 lt_cv_dlopen="dlopen"
8413 # if libdl is installed we need to link against it
8414 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8415 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8416 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8417 echo $ECHO_N "(cached) $ECHO_C" >&6
8419 ac_check_lib_save_LIBS=$LIBS
8421 cat >conftest.$ac_ext <<_ACEOF
8424 cat confdefs.h >>conftest.$ac_ext
8425 cat >>conftest.$ac_ext <<_ACEOF
8426 /* end confdefs.h. */
8428 /* Override any gcc2 internal prototype to avoid an error. */
8432 /* We use char because int might match the return type of a gcc2
8433 builtin and then its argument prototype would still apply. */
8443 rm -f conftest.$ac_objext conftest$ac_exeext
8444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8445 (eval $ac_link) 2>conftest.er1
8447 grep -v '^ *+' conftest.er1 >conftest.err
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; } &&
8458 { ac_try='test -s conftest$ac_exeext'
8459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8463 (exit $ac_status); }; }; then
8464 ac_cv_lib_dl_dlopen=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8469 ac_cv_lib_dl_dlopen=no
8471 rm -f conftest.err conftest.$ac_objext \
8472 conftest$ac_exeext conftest.$ac_ext
8473 LIBS=$ac_check_lib_save_LIBS
8475 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8476 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8477 if test $ac_cv_lib_dl_dlopen = yes; then
8478 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8483 lt_cv_dlopen_self=yes
8490 echo "$as_me:$LINENO: checking for shl_load" >&5
8491 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8492 if test "${ac_cv_func_shl_load+set}" = set; then
8493 echo $ECHO_N "(cached) $ECHO_C" >&6
8495 cat >conftest.$ac_ext <<_ACEOF
8498 cat confdefs.h >>conftest.$ac_ext
8499 cat >>conftest.$ac_ext <<_ACEOF
8500 /* end confdefs.h. */
8501 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8503 #define shl_load innocuous_shl_load
8505 /* System header to define __stub macros and hopefully few prototypes,
8506 which can conflict with char shl_load (); below.
8507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8508 <limits.h> exists even on freestanding compilers. */
8511 # include <limits.h>
8513 # include <assert.h>
8518 /* Override any gcc2 internal prototype to avoid an error. */
8523 /* We use char because int might match the return type of a gcc2
8524 builtin and then its argument prototype would still apply. */
8526 /* The GNU C library defines this for functions which it implements
8527 to always fail with ENOSYS. Some functions are actually named
8528 something starting with __ and the normal name is an alias. */
8529 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8532 char (*f) () = shl_load;
8541 return f != shl_load;
8546 rm -f conftest.$ac_objext conftest$ac_exeext
8547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8548 (eval $ac_link) 2>conftest.er1
8550 grep -v '^ *+' conftest.er1 >conftest.err
8552 cat conftest.err >&5
8553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8554 (exit $ac_status); } &&
8555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8560 (exit $ac_status); }; } &&
8561 { ac_try='test -s conftest$ac_exeext'
8562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); }; }; then
8567 ac_cv_func_shl_load=yes
8569 echo "$as_me: failed program was:" >&5
8570 sed 's/^/| /' conftest.$ac_ext >&5
8572 ac_cv_func_shl_load=no
8574 rm -f conftest.err conftest.$ac_objext \
8575 conftest$ac_exeext conftest.$ac_ext
8577 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8578 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8579 if test $ac_cv_func_shl_load = yes; then
8580 lt_cv_dlopen="shl_load"
8582 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8583 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8584 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8585 echo $ECHO_N "(cached) $ECHO_C" >&6
8587 ac_check_lib_save_LIBS=$LIBS
8589 cat >conftest.$ac_ext <<_ACEOF
8592 cat confdefs.h >>conftest.$ac_ext
8593 cat >>conftest.$ac_ext <<_ACEOF
8594 /* end confdefs.h. */
8596 /* Override any gcc2 internal prototype to avoid an error. */
8600 /* We use char because int might match the return type of a gcc2
8601 builtin and then its argument prototype would still apply. */
8611 rm -f conftest.$ac_objext conftest$ac_exeext
8612 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8613 (eval $ac_link) 2>conftest.er1
8615 grep -v '^ *+' conftest.er1 >conftest.err
8617 cat conftest.err >&5
8618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8619 (exit $ac_status); } &&
8620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); }; } &&
8626 { ac_try='test -s conftest$ac_exeext'
8627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); }; }; then
8632 ac_cv_lib_dld_shl_load=yes
8634 echo "$as_me: failed program was:" >&5
8635 sed 's/^/| /' conftest.$ac_ext >&5
8637 ac_cv_lib_dld_shl_load=no
8639 rm -f conftest.err conftest.$ac_objext \
8640 conftest$ac_exeext conftest.$ac_ext
8641 LIBS=$ac_check_lib_save_LIBS
8643 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8644 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8645 if test $ac_cv_lib_dld_shl_load = yes; then
8646 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8648 echo "$as_me:$LINENO: checking for dlopen" >&5
8649 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8650 if test "${ac_cv_func_dlopen+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8661 #define dlopen innocuous_dlopen
8663 /* System header to define __stub macros and hopefully few prototypes,
8664 which can conflict with char dlopen (); below.
8665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8666 <limits.h> exists even on freestanding compilers. */
8669 # include <limits.h>
8671 # include <assert.h>
8676 /* Override any gcc2 internal prototype to avoid an error. */
8681 /* We use char because int might match the return type of a gcc2
8682 builtin and then its argument prototype would still apply. */
8684 /* The GNU C library defines this for functions which it implements
8685 to always fail with ENOSYS. Some functions are actually named
8686 something starting with __ and the normal name is an alias. */
8687 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8690 char (*f) () = dlopen;
8704 rm -f conftest.$ac_objext conftest$ac_exeext
8705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8706 (eval $ac_link) 2>conftest.er1
8708 grep -v '^ *+' conftest.er1 >conftest.err
8710 cat conftest.err >&5
8711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8712 (exit $ac_status); } &&
8713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); }; } &&
8719 { ac_try='test -s conftest$ac_exeext'
8720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8724 (exit $ac_status); }; }; then
8725 ac_cv_func_dlopen=yes
8727 echo "$as_me: failed program was:" >&5
8728 sed 's/^/| /' conftest.$ac_ext >&5
8730 ac_cv_func_dlopen=no
8732 rm -f conftest.err conftest.$ac_objext \
8733 conftest$ac_exeext conftest.$ac_ext
8735 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8736 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8737 if test $ac_cv_func_dlopen = yes; then
8738 lt_cv_dlopen="dlopen"
8740 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8741 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8742 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 ac_check_lib_save_LIBS=$LIBS
8747 cat >conftest.$ac_ext <<_ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8754 /* Override any gcc2 internal prototype to avoid an error. */
8758 /* We use char because int might match the return type of a gcc2
8759 builtin and then its argument prototype would still apply. */
8769 rm -f conftest.$ac_objext conftest$ac_exeext
8770 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8771 (eval $ac_link) 2>conftest.er1
8773 grep -v '^ *+' conftest.er1 >conftest.err
8775 cat conftest.err >&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); } &&
8778 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8783 (exit $ac_status); }; } &&
8784 { ac_try='test -s conftest$ac_exeext'
8785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8789 (exit $ac_status); }; }; then
8790 ac_cv_lib_dl_dlopen=yes
8792 echo "$as_me: failed program was:" >&5
8793 sed 's/^/| /' conftest.$ac_ext >&5
8795 ac_cv_lib_dl_dlopen=no
8797 rm -f conftest.err conftest.$ac_objext \
8798 conftest$ac_exeext conftest.$ac_ext
8799 LIBS=$ac_check_lib_save_LIBS
8801 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8802 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8803 if test $ac_cv_lib_dl_dlopen = yes; then
8804 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8806 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8807 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8808 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8811 ac_check_lib_save_LIBS=$LIBS
8813 cat >conftest.$ac_ext <<_ACEOF
8816 cat confdefs.h >>conftest.$ac_ext
8817 cat >>conftest.$ac_ext <<_ACEOF
8818 /* end confdefs.h. */
8820 /* Override any gcc2 internal prototype to avoid an error. */
8824 /* We use char because int might match the return type of a gcc2
8825 builtin and then its argument prototype would still apply. */
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8837 (eval $ac_link) 2>conftest.er1
8839 grep -v '^ *+' conftest.er1 >conftest.err
8841 cat conftest.err >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); } &&
8844 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8849 (exit $ac_status); }; } &&
8850 { ac_try='test -s conftest$ac_exeext'
8851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; }; then
8856 ac_cv_lib_svld_dlopen=yes
8858 echo "$as_me: failed program was:" >&5
8859 sed 's/^/| /' conftest.$ac_ext >&5
8861 ac_cv_lib_svld_dlopen=no
8863 rm -f conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8865 LIBS=$ac_check_lib_save_LIBS
8867 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8868 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8869 if test $ac_cv_lib_svld_dlopen = yes; then
8870 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8872 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8873 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8874 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 ac_check_lib_save_LIBS=$LIBS
8879 cat >conftest.$ac_ext <<_ACEOF
8882 cat confdefs.h >>conftest.$ac_ext
8883 cat >>conftest.$ac_ext <<_ACEOF
8884 /* end confdefs.h. */
8886 /* Override any gcc2 internal prototype to avoid an error. */
8890 /* We use char because int might match the return type of a gcc2
8891 builtin and then its argument prototype would still apply. */
8901 rm -f conftest.$ac_objext conftest$ac_exeext
8902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8903 (eval $ac_link) 2>conftest.er1
8905 grep -v '^ *+' conftest.er1 >conftest.err
8907 cat conftest.err >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } &&
8910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 (exit $ac_status); }; } &&
8916 { ac_try='test -s conftest$ac_exeext'
8917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8921 (exit $ac_status); }; }; then
8922 ac_cv_lib_dld_dld_link=yes
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8927 ac_cv_lib_dld_dld_link=no
8929 rm -f conftest.err conftest.$ac_objext \
8930 conftest$ac_exeext conftest.$ac_ext
8931 LIBS=$ac_check_lib_save_LIBS
8933 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8934 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8935 if test $ac_cv_lib_dld_dld_link = yes; then
8936 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8957 if test "x$lt_cv_dlopen" != xno; then
8963 case $lt_cv_dlopen in
8965 save_CPPFLAGS="$CPPFLAGS"
8966 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8968 save_LDFLAGS="$LDFLAGS"
8969 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8972 LIBS="$lt_cv_dlopen_libs $LIBS"
8974 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8975 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8976 if test "${lt_cv_dlopen_self+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 if test "$cross_compiling" = yes; then :
8980 lt_cv_dlopen_self=cross
8982 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8983 lt_status=$lt_dlunknown
8984 cat > conftest.$ac_ext <<EOF
8985 #line 8985 "configure"
8986 #include "confdefs.h"
8995 # define LT_DLGLOBAL RTLD_GLOBAL
8998 # define LT_DLGLOBAL DL_GLOBAL
9000 # define LT_DLGLOBAL 0
9004 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9005 find out it does not work in some platform. */
9006 #ifndef LT_DLLAZY_OR_NOW
9008 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9011 # define LT_DLLAZY_OR_NOW DL_LAZY
9014 # define LT_DLLAZY_OR_NOW RTLD_NOW
9017 # define LT_DLLAZY_OR_NOW DL_NOW
9019 # define LT_DLLAZY_OR_NOW 0
9027 extern "C" void exit (int);
9030 void fnord() { int i=42;}
9033 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9034 int status = $lt_dlunknown;
9038 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9039 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9040 /* dlclose (self); */
9048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9049 (eval $ac_link) 2>&5
9051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9052 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9053 (./conftest; exit; ) >&5 2>/dev/null
9056 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9057 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9058 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9061 # compilation failed
9062 lt_cv_dlopen_self=no
9069 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9070 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9072 if test "x$lt_cv_dlopen_self" = xyes; then
9073 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9074 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9075 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9076 if test "${lt_cv_dlopen_self_static+set}" = set; then
9077 echo $ECHO_N "(cached) $ECHO_C" >&6
9079 if test "$cross_compiling" = yes; then :
9080 lt_cv_dlopen_self_static=cross
9082 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9083 lt_status=$lt_dlunknown
9084 cat > conftest.$ac_ext <<EOF
9085 #line 9085 "configure"
9086 #include "confdefs.h"
9095 # define LT_DLGLOBAL RTLD_GLOBAL
9098 # define LT_DLGLOBAL DL_GLOBAL
9100 # define LT_DLGLOBAL 0
9104 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9105 find out it does not work in some platform. */
9106 #ifndef LT_DLLAZY_OR_NOW
9108 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9111 # define LT_DLLAZY_OR_NOW DL_LAZY
9114 # define LT_DLLAZY_OR_NOW RTLD_NOW
9117 # define LT_DLLAZY_OR_NOW DL_NOW
9119 # define LT_DLLAZY_OR_NOW 0
9127 extern "C" void exit (int);
9130 void fnord() { int i=42;}
9133 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9134 int status = $lt_dlunknown;
9138 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9139 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9140 /* dlclose (self); */
9148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9149 (eval $ac_link) 2>&5
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9153 (./conftest; exit; ) >&5 2>/dev/null
9156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9161 # compilation failed
9162 lt_cv_dlopen_self_static=no
9169 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9170 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9173 CPPFLAGS="$save_CPPFLAGS"
9174 LDFLAGS="$save_LDFLAGS"
9179 case $lt_cv_dlopen_self in
9180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9181 *) enable_dlopen_self=unknown ;;
9184 case $lt_cv_dlopen_self_static in
9185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9186 *) enable_dlopen_self_static=unknown ;;
9191 # Report which library types will actually be built
9192 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9193 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9194 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9195 echo "${ECHO_T}$can_build_shared" >&6
9197 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9198 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9199 test "$can_build_shared" = "no" && enable_shared=no
9201 # On AIX, shared libraries and static libraries use the same namespace, and
9202 # are all built from PIC.
9205 test "$enable_shared" = yes && enable_static=no
9206 if test -n "$RANLIB"; then
9207 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9208 postinstall_cmds='$RANLIB $lib'
9213 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9214 test "$enable_shared" = yes && enable_static=no
9218 echo "$as_me:$LINENO: result: $enable_shared" >&5
9219 echo "${ECHO_T}$enable_shared" >&6
9221 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9222 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9223 # Make sure either enable_shared or enable_static is yes.
9224 test "$enable_shared" = yes || enable_static=yes
9225 echo "$as_me:$LINENO: result: $enable_static" >&5
9226 echo "${ECHO_T}$enable_static" >&6
9228 # The else clause should only fire when bootstrapping the
9229 # libtool distribution, otherwise you forgot to ship ltmain.sh
9230 # with your package, and you will get complaints that there are
9231 # no rules to generate ltmain.sh.
9232 if test -f "$ltmain"; then
9233 # See if we are running on zsh, and set the options which allow our commands through
9234 # without removal of \ escapes.
9235 if test -n "${ZSH_VERSION+set}" ; then
9236 setopt NO_GLOB_SUBST
9238 # Now quote all the things that may contain metacharacters while being
9239 # careful not to overquote the AC_SUBSTed values. We take copies of the
9240 # variables and quote the copies for generation of the libtool script.
9241 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9243 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9244 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9245 deplibs_check_method reload_flag reload_cmds need_locks \
9246 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9247 lt_cv_sys_global_symbol_to_c_name_address \
9248 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9249 old_postinstall_cmds old_postuninstall_cmds \
9253 lt_prog_compiler_wl \
9254 lt_prog_compiler_pic \
9255 lt_prog_compiler_static \
9256 lt_prog_compiler_no_builtin_flag \
9257 export_dynamic_flag_spec \
9258 thread_safe_flag_spec \
9259 whole_archive_flag_spec \
9260 enable_shared_with_static_runtimes \
9262 old_archive_from_new_cmds \
9267 compiler_lib_search_path \
9269 archive_expsym_cmds \
9271 postuninstall_cmds \
9272 old_archive_from_expsyms_cmds \
9273 allow_undefined_flag \
9275 export_symbols_cmds \
9276 hardcode_libdir_flag_spec \
9277 hardcode_libdir_flag_spec_ld \
9278 hardcode_libdir_separator \
9279 hardcode_automatic \
9281 module_expsym_cmds \
9282 lt_cv_prog_compiler_c_o \
9287 old_archive_cmds | \
9288 old_archive_from_new_cmds | \
9290 archive_expsym_cmds | \
9292 module_expsym_cmds | \
9293 old_archive_from_expsyms_cmds | \
9294 export_symbols_cmds | \
9295 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9296 postinstall_cmds | postuninstall_cmds | \
9297 old_postinstall_cmds | old_postuninstall_cmds | \
9298 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9299 # Double-quote double-evaled strings.
9300 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9309 *'\$0 --fallback-echo"')
9310 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9315 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9317 { echo "$as_me:$LINENO: creating $ofile" >&5
9318 echo "$as_me: creating $ofile" >&6;}
9320 cat <<__EOF__ >> "$cfgfile"
9323 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9324 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9325 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9327 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9328 # Free Software Foundation, Inc.
9330 # This file is part of GNU Libtool:
9331 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9333 # This program is free software; you can redistribute it and/or modify
9334 # it under the terms of the GNU General Public License as published by
9335 # the Free Software Foundation; either version 2 of the License, or
9336 # (at your option) any later version.
9338 # This program is distributed in the hope that it will be useful, but
9339 # WITHOUT ANY WARRANTY; without even the implied warranty of
9340 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9341 # General Public License for more details.
9343 # You should have received a copy of the GNU General Public License
9344 # along with this program; if not, write to the Free Software
9345 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9347 # As a special exception to the GNU General Public License, if you
9348 # distribute this file as part of a program that contains a
9349 # configuration script generated by Autoconf, you may include it under
9350 # the same distribution terms that you use for the rest of that program.
9352 # A sed program that does not truncate output.
9355 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9356 Xsed="$SED -e 1s/^X//"
9358 # The HP-UX ksh and POSIX shell print the target directory to stdout
9360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9362 # The names of the tagged configurations supported by this script.
9365 # ### BEGIN LIBTOOL CONFIG
9367 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9369 # Shell to use when invoking shell scripts.
9372 # Whether or not to build shared libraries.
9373 build_libtool_libs=$enable_shared
9375 # Whether or not to build static libraries.
9376 build_old_libs=$enable_static
9378 # Whether or not to add -lc for building shared libraries.
9379 build_libtool_need_lc=$archive_cmds_need_lc
9381 # Whether or not to disallow shared libs when runtime libs are static
9382 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9384 # Whether or not to optimize for fast installation.
9385 fast_install=$enable_fast_install
9388 host_alias=$host_alias
9393 build_alias=$build_alias
9397 # An echo program that does not interpret backslashes.
9402 AR_FLAGS=$lt_AR_FLAGS
9407 # LTCC compiler flags.
9408 LTCFLAGS=$lt_LTCFLAGS
9410 # A language-specific compiler.
9413 # Is the compiler the GNU C compiler?
9419 # The linker used to build libraries.
9422 # Whether we need hard or soft links.
9425 # A BSD-compatible nm program.
9428 # A symbol stripping program
9431 # Used to examine libraries when file_magic_cmd begins "file"
9432 MAGIC_CMD=$MAGIC_CMD
9434 # Used on cygwin: DLL creation program.
9437 # Used on cygwin: object dumper.
9440 # Used on cygwin: assembler.
9443 # The name of the directory that contains temporary libtool files.
9446 # How to create reloadable object files.
9447 reload_flag=$lt_reload_flag
9448 reload_cmds=$lt_reload_cmds
9450 # How to pass a linker flag through the compiler.
9451 wl=$lt_lt_prog_compiler_wl
9453 # Object file suffix (normally "o").
9456 # Old archive suffix (normally "a").
9459 # Shared library suffix (normally ".so").
9460 shrext_cmds='$shrext_cmds'
9462 # Executable file suffix (normally "").
9465 # Additional compiler flags for building library objects.
9466 pic_flag=$lt_lt_prog_compiler_pic
9469 # What is the maximum length of a command?
9470 max_cmd_len=$lt_cv_sys_max_cmd_len
9472 # Does compiler simultaneously support -c and -o options?
9473 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9475 # Must we lock files when doing compilation?
9476 need_locks=$lt_need_locks
9478 # Do we need the lib prefix for modules?
9479 need_lib_prefix=$need_lib_prefix
9481 # Do we need a version for libraries?
9482 need_version=$need_version
9484 # Whether dlopen is supported.
9485 dlopen_support=$enable_dlopen
9487 # Whether dlopen of programs is supported.
9488 dlopen_self=$enable_dlopen_self
9490 # Whether dlopen of statically linked programs is supported.
9491 dlopen_self_static=$enable_dlopen_self_static
9493 # Compiler flag to prevent dynamic linking.
9494 link_static_flag=$lt_lt_prog_compiler_static
9496 # Compiler flag to turn off builtin functions.
9497 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9499 # Compiler flag to allow reflexive dlopens.
9500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9502 # Compiler flag to generate shared objects directly from archives.
9503 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9505 # Compiler flag to generate thread-safe objects.
9506 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9508 # Library versioning type.
9509 version_type=$version_type
9511 # Format of library name prefix.
9512 libname_spec=$lt_libname_spec
9514 # List of archive names. First name is the real one, the rest are links.
9515 # The last name is the one that the linker finds with -lNAME.
9516 library_names_spec=$lt_library_names_spec
9518 # The coded name of the library, if different from the real name.
9519 soname_spec=$lt_soname_spec
9521 # Commands used to build and install an old-style archive.
9523 old_archive_cmds=$lt_old_archive_cmds
9524 old_postinstall_cmds=$lt_old_postinstall_cmds
9525 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9527 # Create an old-style archive from a shared archive.
9528 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9530 # Create a temporary old-style archive to link instead of a shared archive.
9531 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9533 # Commands used to build and install a shared archive.
9534 archive_cmds=$lt_archive_cmds
9535 archive_expsym_cmds=$lt_archive_expsym_cmds
9536 postinstall_cmds=$lt_postinstall_cmds
9537 postuninstall_cmds=$lt_postuninstall_cmds
9539 # Commands used to build a loadable module (assumed same as above if empty)
9540 module_cmds=$lt_module_cmds
9541 module_expsym_cmds=$lt_module_expsym_cmds
9543 # Commands to strip libraries.
9544 old_striplib=$lt_old_striplib
9545 striplib=$lt_striplib
9547 # Dependencies to place before the objects being linked to create a
9549 predep_objects=$lt_predep_objects
9551 # Dependencies to place after the objects being linked to create a
9553 postdep_objects=$lt_postdep_objects
9555 # Dependencies to place before the objects being linked to create a
9559 # Dependencies to place after the objects being linked to create a
9561 postdeps=$lt_postdeps
9563 # The library search path used internally by the compiler when linking
9565 compiler_lib_search_path=$lt_compiler_lib_search_path
9567 # Method to check whether dependent libraries are shared objects.
9568 deplibs_check_method=$lt_deplibs_check_method
9570 # Command to use when deplibs_check_method == file_magic.
9571 file_magic_cmd=$lt_file_magic_cmd
9573 # Flag that allows shared libraries with undefined symbols to be built.
9574 allow_undefined_flag=$lt_allow_undefined_flag
9576 # Flag that forces no undefined symbols.
9577 no_undefined_flag=$lt_no_undefined_flag
9579 # Commands used to finish a libtool library installation in a directory.
9580 finish_cmds=$lt_finish_cmds
9582 # Same as above, but a single script fragment to be evaled but not shown.
9583 finish_eval=$lt_finish_eval
9585 # Take the output of nm and produce a listing of raw symbols and C names.
9586 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9588 # Transform the output of nm in a proper C declaration
9589 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9591 # Transform the output of nm in a C name address pair
9592 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9594 # This is the shared library runtime path variable.
9595 runpath_var=$runpath_var
9597 # This is the shared library path variable.
9598 shlibpath_var=$shlibpath_var
9600 # Is shlibpath searched before the hard-coded library search path?
9601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9603 # How to hardcode a shared library path into an executable.
9604 hardcode_action=$hardcode_action
9606 # Whether we should hardcode library paths into libraries.
9607 hardcode_into_libs=$hardcode_into_libs
9609 # Flag to hardcode \$libdir into a binary during linking.
9610 # This must work even if \$libdir does not exist.
9611 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9613 # If ld is used when linking, flag to hardcode \$libdir into
9614 # a binary during linking. This must work even if \$libdir does
9616 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9618 # Whether we need a single -rpath flag with a separated argument.
9619 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9621 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9623 hardcode_direct=$hardcode_direct
9625 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9627 hardcode_minus_L=$hardcode_minus_L
9629 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9630 # the resulting binary.
9631 hardcode_shlibpath_var=$hardcode_shlibpath_var
9633 # Set to yes if building a shared library automatically hardcodes DIR into the library
9634 # and all subsequent libraries and executables linked against it.
9635 hardcode_automatic=$hardcode_automatic
9637 # Variables whose values should be saved in libtool wrapper scripts and
9638 # restored at relink time.
9639 variables_saved_for_relink="$variables_saved_for_relink"
9641 # Whether libtool must link a program against all its dependency libraries.
9642 link_all_deplibs=$link_all_deplibs
9644 # Compile-time system search path for libraries
9645 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9647 # Run-time system search path for libraries
9648 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9650 # Fix the shell variable \$srcfile for the compiler.
9651 fix_srcfile_path="$fix_srcfile_path"
9653 # Set to yes if exported symbols are required.
9654 always_export_symbols=$always_export_symbols
9656 # The commands to list exported symbols.
9657 export_symbols_cmds=$lt_export_symbols_cmds
9659 # The commands to extract the exported symbol list from a shared archive.
9660 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9662 # Symbols that should not be listed in the preloaded symbols.
9663 exclude_expsyms=$lt_exclude_expsyms
9665 # Symbols that must always be exported.
9666 include_expsyms=$lt_include_expsyms
9668 # ### END LIBTOOL CONFIG
9675 cat <<\EOF >> "$cfgfile"
9677 # AIX sometimes has problems with the GCC collect2 program. For some
9678 # reason, if we set the COLLECT_NAMES environment variable, the problems
9679 # vanish in a puff of smoke.
9680 if test "X${COLLECT_NAMES+set}" != Xset; then
9682 export COLLECT_NAMES
9688 # We use sed instead of cat because bash on DJGPP gets confused if
9689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9690 # text mode, it properly converts lines to CR/LF. This bash problem
9691 # is reportedly fixed, but why not run on old versions too?
9692 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9694 mv -f "$cfgfile" "$ofile" || \
9695 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9699 # If there is no Makefile yet, we rely on a make rule to execute
9700 # `config.status --recheck' to rerun these tests and create the
9701 # libtool script then.
9702 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9703 if test -f "$ltmain_in"; then
9704 test -f Makefile && make "$ltmain"
9710 ac_cpp='$CPP $CPPFLAGS'
9711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9718 # Check whether --with-tags or --without-tags was given.
9719 if test "${with_tags+set}" = set; then
9720 withval="$with_tags"
9724 if test -f "$ltmain" && test -n "$tagnames"; then
9725 if test ! -f "${ofile}"; then
9726 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9727 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9730 if test -z "$LTCC"; then
9731 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9732 if test -z "$LTCC"; then
9733 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9734 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9736 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9737 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9740 if test -z "$LTCFLAGS"; then
9741 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9744 # Extract list of available tagged configurations in $ofile.
9745 # Note that this assumes the entire list is on one line.
9746 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9748 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9749 for tagname in $tagnames; do
9751 # Check whether tagname contains only valid characters
9752 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9754 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9755 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9756 { (exit 1); exit 1; }; }
9760 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9762 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9763 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9764 { (exit 1); exit 1; }; }
9767 # Update the list of available tags.
9768 if test -n "$tagname"; then
9769 echo appending configuration tag \"$tagname\" to $ofile
9773 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9774 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9775 (test "X$CXX" != "Xg++"))) ; then
9777 ac_cpp='$CXXCPP $CPPFLAGS'
9778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9785 archive_cmds_need_lc_CXX=no
9786 allow_undefined_flag_CXX=
9787 always_export_symbols_CXX=no
9788 archive_expsym_cmds_CXX=
9789 export_dynamic_flag_spec_CXX=
9790 hardcode_direct_CXX=no
9791 hardcode_libdir_flag_spec_CXX=
9792 hardcode_libdir_flag_spec_ld_CXX=
9793 hardcode_libdir_separator_CXX=
9794 hardcode_minus_L_CXX=no
9795 hardcode_shlibpath_var_CXX=unsupported
9796 hardcode_automatic_CXX=no
9798 module_expsym_cmds_CXX=
9799 link_all_deplibs_CXX=unknown
9800 old_archive_cmds_CXX=$old_archive_cmds
9801 no_undefined_flag_CXX=
9802 whole_archive_flag_spec_CXX=
9803 enable_shared_with_static_runtimes_CXX=no
9805 # Dependencies to place before and after the object being linked:
9807 postdep_objects_CXX=
9810 compiler_lib_search_path_CXX=
9812 # Source file extension for C++ test sources.
9815 # Object file extension for compiled C++ test sources.
9819 # Code to be used in simple compile tests
9820 lt_simple_compile_test_code="int some_variable = 0;\n"
9822 # Code to be used in simple link tests
9823 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9825 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9827 # If no C compiler was specified, use CC.
9830 # If no C compiler flags were specified, use CFLAGS.
9831 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9833 # Allow CC to be a program name with arguments.
9837 # save warnings/boilerplate of simple test code
9838 ac_outfile=conftest.$ac_objext
9839 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9840 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9841 _lt_compiler_boilerplate=`cat conftest.err`
9844 ac_outfile=conftest.$ac_objext
9845 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9846 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9847 _lt_linker_boilerplate=`cat conftest.err`
9851 # Allow CC to be a program name with arguments.
9856 lt_save_with_gnu_ld=$with_gnu_ld
9857 lt_save_path_LD=$lt_cv_path_LD
9858 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9859 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9861 $as_unset lt_cv_prog_gnu_ld
9863 if test -n "${lt_cv_path_LDCXX+set}"; then
9864 lt_cv_path_LD=$lt_cv_path_LDCXX
9866 $as_unset lt_cv_path_LD
9868 test -z "${LDCXX+set}" || LD=$LDCXX
9872 for cc_temp in $compiler""; do
9874 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9875 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9880 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9883 # We don't want -fno-exception wen compiling C++ code, so set the
9884 # no_builtin_flag separately
9885 if test "$GXX" = yes; then
9886 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9888 lt_prog_compiler_no_builtin_flag_CXX=
9891 if test "$GXX" = yes; then
9892 # Set up default GNU C++ configuration
9895 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9896 if test "${with_gnu_ld+set}" = set; then
9897 withval="$with_gnu_ld"
9898 test "$withval" = no || with_gnu_ld=yes
9903 if test "$GCC" = yes; then
9904 # Check if gcc -print-prog-name=ld gives a path.
9905 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9906 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9909 # gcc leaves a trailing carriage return which upsets mingw
9910 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9912 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9915 # Accept absolute paths.
9917 re_direlt='/[^/][^/]*/\.\./'
9918 # Canonicalize the pathname of ld
9919 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9920 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9921 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9923 test -z "$LD" && LD="$ac_prog"
9926 # If it fails, then pretend we aren't using GCC.
9930 # If it is relative, then search for the first ld in PATH.
9934 elif test "$with_gnu_ld" = yes; then
9935 echo "$as_me:$LINENO: checking for GNU ld" >&5
9936 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9938 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9939 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9941 if test "${lt_cv_path_LD+set}" = set; then
9942 echo $ECHO_N "(cached) $ECHO_C" >&6
9944 if test -z "$LD"; then
9945 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9946 for ac_dir in $PATH; do
9948 test -z "$ac_dir" && ac_dir=.
9949 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9950 lt_cv_path_LD="$ac_dir/$ac_prog"
9951 # Check to see if the program is GNU ld. I'd rather use --version,
9952 # but apparently some variants of GNU ld only accept -v.
9953 # Break only if it was the GNU/non-GNU ld that we prefer.
9954 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9955 *GNU* | *'with BFD'*)
9956 test "$with_gnu_ld" != no && break
9959 test "$with_gnu_ld" != yes && break
9966 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9971 if test -n "$LD"; then
9972 echo "$as_me:$LINENO: result: $LD" >&5
9973 echo "${ECHO_T}$LD" >&6
9975 echo "$as_me:$LINENO: result: no" >&5
9976 echo "${ECHO_T}no" >&6
9978 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9979 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9980 { (exit 1); exit 1; }; }
9981 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9982 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9983 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 # I'd rather use --version here, but apparently some GNU lds only accept -v.
9987 case `$LD -v 2>&1 </dev/null` in
9988 *GNU* | *'with BFD'*)
9989 lt_cv_prog_gnu_ld=yes
9992 lt_cv_prog_gnu_ld=no
9996 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9997 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9998 with_gnu_ld=$lt_cv_prog_gnu_ld
10002 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10003 # archiving commands below assume that GNU ld is being used.
10004 if test "$with_gnu_ld" = yes; then
10005 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10006 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'
10008 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10009 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10011 # If archive_cmds runs LD, not CC, wlarc should be empty
10012 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10013 # investigate it a little bit more. (MM)
10016 # ancient GNU ld didn't support --whole-archive et. al.
10017 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10018 grep 'no-whole-archive' > /dev/null; then
10019 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10021 whole_archive_flag_spec_CXX=
10027 # A generic and very simple default shared library creation
10028 # command for GNU C++ for the case where it uses the native
10029 # linker, instead of GNU ld. If possible, this setting should
10030 # overridden to take advantage of the native linker features on
10031 # the platform it is being used on.
10032 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10035 # Commands to make compiler produce verbose output that lists
10036 # what "hidden" libraries, object files and flags are used when
10037 # linking a shared library.
10038 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10046 # PORTME: fill in a description of your system's C++ link characteristics
10047 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10048 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10052 # FIXME: insert proper C++ library support
10056 if test "$host_cpu" = ia64; then
10057 # On IA64, the linker does run time linking by default, so we don't
10058 # have to do anything special.
10059 aix_use_runtimelinking=no
10060 exp_sym_flag='-Bexport'
10063 aix_use_runtimelinking=no
10065 # Test if we are trying to use run time linking or normal
10066 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10067 # need to do runtime linking.
10068 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10069 for ld_flag in $LDFLAGS; do
10072 aix_use_runtimelinking=yes
10080 exp_sym_flag='-bexport'
10081 no_entry_flag='-bnoentry'
10084 # When large executables or shared objects are built, AIX ld can
10085 # have problems creating the table of contents. If linking a library
10086 # or program results in "error TOC overflow" add -mminimal-toc to
10087 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10088 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10090 archive_cmds_CXX=''
10091 hardcode_direct_CXX=yes
10092 hardcode_libdir_separator_CXX=':'
10093 link_all_deplibs_CXX=yes
10095 if test "$GXX" = yes; then
10096 case $host_os in aix4.[012]|aix4.[012].*)
10097 # We only want to do this on AIX 4.2 and lower, the check
10098 # below for broken collect2 doesn't work under 4.3+
10099 collect2name=`${CC} -print-prog-name=collect2`
10100 if test -f "$collect2name" && \
10101 strings "$collect2name" | grep resolve_lib_name >/dev/null
10103 # We have reworked collect2
10104 hardcode_direct_CXX=yes
10106 # We have old collect2
10107 hardcode_direct_CXX=unsupported
10108 # It fails to find uninstalled libraries when the uninstalled
10109 # path is not listed in the libpath. Setting hardcode_minus_L
10110 # to unsupported forces relinking
10111 hardcode_minus_L_CXX=yes
10112 hardcode_libdir_flag_spec_CXX='-L$libdir'
10113 hardcode_libdir_separator_CXX=
10117 shared_flag='-shared'
10118 if test "$aix_use_runtimelinking" = yes; then
10119 shared_flag="$shared_flag "'${wl}-G'
10123 if test "$host_cpu" = ia64; then
10124 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10125 # chokes on -Wl,-G. The following line is correct:
10128 if test "$aix_use_runtimelinking" = yes; then
10129 shared_flag='${wl}-G'
10131 shared_flag='${wl}-bM:SRE'
10136 # It seems that -bexpall does not export symbols beginning with
10137 # underscore (_), so it is better to generate a list of symbols to export.
10138 always_export_symbols_CXX=yes
10139 if test "$aix_use_runtimelinking" = yes; then
10140 # Warning - without using the other runtime loading flags (-brtl),
10141 # -berok will link without error, but may produce a broken library.
10142 allow_undefined_flag_CXX='-berok'
10143 # Determine the default libpath from the value encoded in an empty executable.
10144 cat >conftest.$ac_ext <<_ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10159 rm -f conftest.$ac_objext conftest$ac_exeext
10160 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10161 (eval $ac_link) 2>conftest.er1
10163 grep -v '^ *+' conftest.er1 >conftest.err
10165 cat conftest.err >&5
10166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10167 (exit $ac_status); } &&
10168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10170 (eval $ac_try) 2>&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); }; } &&
10174 { ac_try='test -s conftest$ac_exeext'
10175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10176 (eval $ac_try) 2>&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); }; }; then
10181 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10183 # Check for a 64-bit object if we didn't find anything.
10184 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; }
10187 echo "$as_me: failed program was:" >&5
10188 sed 's/^/| /' conftest.$ac_ext >&5
10191 rm -f conftest.err conftest.$ac_objext \
10192 conftest$ac_exeext conftest.$ac_ext
10193 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10195 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10197 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10199 if test "$host_cpu" = ia64; then
10200 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10201 allow_undefined_flag_CXX="-z nodefs"
10202 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10204 # Determine the default libpath from the value encoded in an empty executable.
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10220 rm -f conftest.$ac_objext conftest$ac_exeext
10221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10222 (eval $ac_link) 2>conftest.er1
10224 grep -v '^ *+' conftest.er1 >conftest.err
10226 cat conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 (exit $ac_status); } &&
10229 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10231 (eval $ac_try) 2>&5
10233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10234 (exit $ac_status); }; } &&
10235 { ac_try='test -s conftest$ac_exeext'
10236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10237 (eval $ac_try) 2>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); }; }; then
10242 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10244 # Check for a 64-bit object if we didn't find anything.
10245 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; }
10248 echo "$as_me: failed program was:" >&5
10249 sed 's/^/| /' conftest.$ac_ext >&5
10252 rm -f conftest.err conftest.$ac_objext \
10253 conftest$ac_exeext conftest.$ac_ext
10254 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10256 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10257 # Warning - without using the other run time loading flags,
10258 # -berok will link without error, but may produce a broken library.
10259 no_undefined_flag_CXX=' ${wl}-bernotok'
10260 allow_undefined_flag_CXX=' ${wl}-berok'
10261 # Exported symbols can be pulled into shared objects from archives
10262 whole_archive_flag_spec_CXX='$convenience'
10263 archive_cmds_need_lc_CXX=yes
10264 # This is similar to how AIX traditionally builds its shared libraries.
10265 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10271 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10272 allow_undefined_flag_CXX=unsupported
10273 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10274 # support --undefined. This deserves some investigation. FIXME
10275 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10282 case $cc_basename in
10284 # FIXME: insert proper C++ library support
10290 cygwin* | mingw* | pw32*)
10291 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10292 # as there is no search path for DLLs.
10293 hardcode_libdir_flag_spec_CXX='-L$libdir'
10294 allow_undefined_flag_CXX=unsupported
10295 always_export_symbols_CXX=no
10296 enable_shared_with_static_runtimes_CXX=yes
10298 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10299 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10300 # If the export-symbols file already is a .def file (1st line
10301 # is EXPORTS), use it as is; otherwise, prepend...
10302 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10303 cp $export_symbols $output_objdir/$soname.def;
10305 echo EXPORTS > $output_objdir/$soname.def;
10306 cat $export_symbols >> $output_objdir/$soname.def;
10308 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10313 darwin* | rhapsody*)
10315 rhapsody* | darwin1.[012])
10316 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10319 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10320 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10322 case ${MACOSX_DEPLOYMENT_TARGET} in
10324 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10327 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10333 archive_cmds_need_lc_CXX=no
10334 hardcode_direct_CXX=no
10335 hardcode_automatic_CXX=yes
10336 hardcode_shlibpath_var_CXX=unsupported
10337 whole_archive_flag_spec_CXX=''
10338 link_all_deplibs_CXX=yes
10340 if test "$GXX" = yes ; then
10341 lt_int_apple_cc_single_mod=no
10342 output_verbose_link_cmd='echo'
10343 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10344 lt_int_apple_cc_single_mod=yes
10346 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10347 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10349 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10351 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10352 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10353 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10354 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}'
10356 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10358 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}'
10360 case $cc_basename in
10362 output_verbose_link_cmd='echo'
10363 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10364 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10365 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10366 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10367 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}'
10377 case $cc_basename in
10379 # FIXME: insert proper C++ library support
10383 # Green Hills C++ Compiler
10384 # FIXME: insert proper C++ library support
10388 # FIXME: insert proper C++ library support
10394 # C++ shared libraries reported to be fairly broken before switch to ELF
10398 archive_cmds_need_lc_CXX=no
10400 freebsd* | kfreebsd*-gnu | dragonfly*)
10401 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10408 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10409 hardcode_libdir_separator_CXX=:
10410 export_dynamic_flag_spec_CXX='${wl}-E'
10411 hardcode_direct_CXX=yes
10412 hardcode_minus_L_CXX=yes # Not in the search PATH,
10413 # but as the default
10414 # location of the library.
10416 case $cc_basename in
10418 # FIXME: insert proper C++ library support
10422 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'
10423 # Commands to make compiler produce verbose output that lists
10424 # what "hidden" libraries, object files and flags are used when
10425 # linking a shared library.
10427 # There doesn't appear to be a way to prevent this compiler from
10428 # explicitly linking system object files so we need to strip them
10429 # from the output so that they don't get included in the library
10431 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'
10434 if test "$GXX" = yes; then
10435 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'
10437 # FIXME: insert proper C++ library support
10444 if test $with_gnu_ld = no; then
10445 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10446 hardcode_libdir_separator_CXX=:
10450 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10453 export_dynamic_flag_spec_CXX='${wl}-E'
10459 hardcode_direct_CXX=no
10460 hardcode_shlibpath_var_CXX=no
10463 hardcode_direct_CXX=yes
10464 hardcode_minus_L_CXX=yes # Not in the search PATH,
10465 # but as the default
10466 # location of the library.
10470 case $cc_basename in
10472 # FIXME: insert proper C++ library support
10478 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10481 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10484 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10487 # Commands to make compiler produce verbose output that lists
10488 # what "hidden" libraries, object files and flags are used when
10489 # linking a shared library.
10491 # There doesn't appear to be a way to prevent this compiler from
10492 # explicitly linking system object files so we need to strip them
10493 # from the output so that they don't get included in the library
10495 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'
10498 if test "$GXX" = yes; then
10499 if test $with_gnu_ld = no; then
10502 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10505 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10508 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'
10513 # FIXME: insert proper C++ library support
10520 hardcode_direct_CXX=no
10521 hardcode_shlibpath_var_CXX=no
10522 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10523 export_dynamic_flag_spec_CXX='${wl}-E'
10524 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10525 # Instead, shared libraries are loaded at an image base (0x10000000 by
10526 # default) and relocated if they conflict, which is a slow very memory
10527 # consuming and fragmenting process. To avoid this, we pick a random,
10528 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10529 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10530 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10531 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10534 case $cc_basename in
10537 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10539 # Archives containing C++ object files must be created using
10540 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10541 # necessary to make sure instantiated templates are included
10543 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10546 if test "$GXX" = yes; then
10547 if test "$with_gnu_ld" = no; then
10548 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10550 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'
10553 link_all_deplibs_CXX=yes
10556 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10557 hardcode_libdir_separator_CXX=:
10560 case $cc_basename in
10562 # Kuck and Associates, Inc. (KAI) C++ Compiler
10564 # KCC will only create a shared library if the output file
10565 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10566 # to its proper name (with version) after linking.
10567 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'
10568 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'
10569 # Commands to make compiler produce verbose output that lists
10570 # what "hidden" libraries, object files and flags are used when
10571 # linking a shared library.
10573 # There doesn't appear to be a way to prevent this compiler from
10574 # explicitly linking system object files so we need to strip them
10575 # from the output so that they don't get included in the library
10577 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'
10579 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10580 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10582 # Archives containing C++ object files must be created using
10583 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10584 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10589 # version 8.0 and above of icpc choke on multiply defined symbols
10590 # if we add $predep_objects and $postdep_objects, however 7.1 and
10591 # earlier do not add the objects themselves.
10592 case `$CC -V 2>&1` in
10594 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10595 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'
10597 *) # Version 8.0 or newer
10600 ia64*) tmp_idyn=' -i_dynamic';;
10602 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10603 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10606 archive_cmds_need_lc_CXX=no
10607 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10608 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10609 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10612 # Portland Group C++ compiler
10613 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10614 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10616 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10617 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10618 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10622 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10623 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'
10625 runpath_var=LD_RUN_PATH
10626 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10627 hardcode_libdir_separator_CXX=:
10629 # Commands to make compiler produce verbose output that lists
10630 # what "hidden" libraries, object files and flags are used when
10631 # linking a shared library.
10633 # There doesn't appear to be a way to prevent this compiler from
10634 # explicitly linking system object files so we need to strip them
10635 # from the output so that they don't get included in the library
10637 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'
10642 # FIXME: insert proper C++ library support
10646 # FIXME: insert proper C++ library support
10650 case $cc_basename in
10652 # FIXME: insert proper C++ library support
10656 # FIXME: insert proper C++ library support
10662 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10663 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10665 hardcode_libdir_flag_spec_CXX='-R$libdir'
10666 hardcode_direct_CXX=yes
10667 hardcode_shlibpath_var_CXX=no
10669 # Workaround some broken pre-1.5 toolchains
10670 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10673 # C++ shared libraries are fairly broken
10677 hardcode_direct_CXX=yes
10678 hardcode_shlibpath_var_CXX=no
10679 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10680 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10682 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10683 export_dynamic_flag_spec_CXX='${wl}-E'
10684 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10686 output_verbose_link_cmd='echo'
10689 case $cc_basename in
10691 # Kuck and Associates, Inc. (KAI) C++ Compiler
10693 # KCC will only create a shared library if the output file
10694 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10695 # to its proper name (with version) after linking.
10696 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'
10698 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10699 hardcode_libdir_separator_CXX=:
10701 # Archives containing C++ object files must be created using
10702 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10703 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10707 # Rational C++ 2.4.1
10708 # FIXME: insert proper C++ library support
10712 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10713 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10715 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10716 hardcode_libdir_separator_CXX=:
10718 # Commands to make compiler produce verbose output that lists
10719 # what "hidden" libraries, object files and flags are used when
10720 # linking a shared library.
10722 # There doesn't appear to be a way to prevent this compiler from
10723 # explicitly linking system object files so we need to strip them
10724 # from the output so that they don't get included in the library
10726 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'
10729 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10730 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10731 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10733 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10734 hardcode_libdir_separator_CXX=:
10736 # Commands to make compiler produce verbose output that lists
10737 # what "hidden" libraries, object files and flags are used when
10738 # linking a shared library.
10739 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10742 # FIXME: insert proper C++ library support
10749 case $cc_basename in
10751 # Kuck and Associates, Inc. (KAI) C++ Compiler
10753 # KCC will only create a shared library if the output file
10754 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10755 # to its proper name (with version) after linking.
10756 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'
10758 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10759 hardcode_libdir_separator_CXX=:
10761 # Archives containing C++ object files must be created using
10762 # the KAI C++ compiler.
10763 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10766 # Rational C++ 2.4.1
10767 # FIXME: insert proper C++ library support
10771 allow_undefined_flag_CXX=' -expect_unresolved \*'
10772 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10773 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10774 echo "-hidden">> $lib.exp~
10775 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10778 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10779 hardcode_libdir_separator_CXX=:
10781 # Commands to make compiler produce verbose output that lists
10782 # what "hidden" libraries, object files and flags are used when
10783 # linking a shared library.
10785 # There doesn't appear to be a way to prevent this compiler from
10786 # explicitly linking system object files so we need to strip them
10787 # from the output so that they don't get included in the library
10789 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'
10792 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10793 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10794 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10796 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10797 hardcode_libdir_separator_CXX=:
10799 # Commands to make compiler produce verbose output that lists
10800 # what "hidden" libraries, object files and flags are used when
10801 # linking a shared library.
10802 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10805 # FIXME: insert proper C++ library support
10812 # FIXME: insert proper C++ library support
10816 case $cc_basename in
10819 # FIXME: insert proper C++ library support
10824 # FIXME: insert proper C++ library support
10828 # FIXME: insert proper C++ library support
10834 case $cc_basename in
10836 # Sun C++ 4.2, 5.x and Centerline C++
10837 archive_cmds_need_lc_CXX=yes
10838 no_undefined_flag_CXX=' -zdefs'
10839 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10840 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10841 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10843 hardcode_libdir_flag_spec_CXX='-R$libdir'
10844 hardcode_shlibpath_var_CXX=no
10846 solaris2.[0-5] | solaris2.[0-5].*) ;;
10848 # The C++ compiler is used as linker so we must use $wl
10849 # flag to pass the commands to the underlying system
10850 # linker. We must also pass each convience library through
10851 # to the system linker between allextract/defaultextract.
10852 # The C++ compiler will combine linker options so we
10853 # cannot just pass the convience library names through
10855 # Supported since Solaris 2.6 (maybe 2.5.1?)
10856 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
10859 link_all_deplibs_CXX=yes
10861 output_verbose_link_cmd='echo'
10863 # Archives containing C++ object files must be created using
10864 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10865 # necessary to make sure instantiated templates are included
10867 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10870 # Green Hills C++ Compiler
10871 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10873 # The C++ compiler must be used to create the archive.
10874 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10877 # GNU C++ compiler with Solaris linker
10878 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10879 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10880 if $CC --version | grep -v '^2\.7' > /dev/null; then
10881 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10882 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10883 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10885 # Commands to make compiler produce verbose output that lists
10886 # what "hidden" libraries, object files and flags are used when
10887 # linking a shared library.
10888 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10890 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10892 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10893 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10894 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10896 # Commands to make compiler produce verbose output that lists
10897 # what "hidden" libraries, object files and flags are used when
10898 # linking a shared library.
10899 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10902 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10907 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10908 no_undefined_flag_CXX='${wl}-z,text'
10909 archive_cmds_need_lc_CXX=no
10910 hardcode_shlibpath_var_CXX=no
10911 runpath_var='LD_RUN_PATH'
10913 case $cc_basename in
10915 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10916 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10919 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10920 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10924 sysv5* | sco3.2v5* | sco5v6*)
10925 # Note: We can NOT use -z defs as we might desire, because we do not
10926 # link with -lc, and that would cause any symbols used from libc to
10927 # always be unresolved, which means just about no library would
10928 # ever link correctly. If we're not using GNU ld we use -z text
10929 # though, which does catch some bad symbols but isn't as heavy-handed
10931 # For security reasons, it is highly recommended that you always
10932 # use absolute paths for naming shared libraries, and exclude the
10933 # DT_RUNPATH tag from executables and libraries. But doing so
10934 # requires that you compile everything twice, which is a pain.
10935 # So that behaviour is only enabled if SCOABSPATH is set to a
10936 # non-empty value in the environment. Most likely only useful for
10937 # creating official distributions of packages.
10938 # This is a hack until libtool officially supports absolute path
10939 # names for shared libraries.
10940 no_undefined_flag_CXX='${wl}-z,text'
10941 allow_undefined_flag_CXX='${wl}-z,nodefs'
10942 archive_cmds_need_lc_CXX=no
10943 hardcode_shlibpath_var_CXX=no
10944 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10945 hardcode_libdir_separator_CXX=':'
10946 link_all_deplibs_CXX=yes
10947 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10948 runpath_var='LD_RUN_PATH'
10950 case $cc_basename in
10952 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10956 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10957 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10962 case $cc_basename in
10964 # NonStop-UX NCC 3.20
10965 # FIXME: insert proper C++ library support
10969 # FIXME: insert proper C++ library support
10975 # FIXME: insert proper C++ library support
10979 # FIXME: insert proper C++ library support
10983 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10984 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10985 test "$ld_shlibs_CXX" = no && can_build_shared=no
10991 ## There is no encapsulation within the following macros, do not change
10992 ## the running order or otherwise move them around unless you know exactly
10993 ## what you are doing...
10995 cat > conftest.$ac_ext <<EOF
10999 Foo (void) { a = 0; }
11005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11006 (eval $ac_compile) 2>&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); }; then
11010 # Parse the compiler output and extract the necessary
11011 # objects, libraries and library flags.
11013 # Sentinel used to keep track of whether or not we are before
11014 # the conftest object file.
11015 pre_test_object_deps_done=no
11017 # The `*' in the case matches for architectures that use `case' in
11018 # $output_verbose_cmd can trigger glob expansion during the loop
11019 # eval without this substitution.
11020 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11022 for p in `eval $output_verbose_link_cmd`; do
11026 # Some compilers place space between "-{L,R}" and the path.
11027 # Remove the space.
11028 if test $p = "-L" \
11029 || test $p = "-R"; then
11036 if test "$pre_test_object_deps_done" = no; then
11039 # Internal compiler library paths should come after those
11040 # provided the user. The postdeps already come after the
11041 # user supplied libs so there is no need to process them.
11042 if test -z "$compiler_lib_search_path_CXX"; then
11043 compiler_lib_search_path_CXX="${prev}${p}"
11045 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11048 # The "-l" case would never come before the object being
11049 # linked, so don't bother handling this case.
11052 if test -z "$postdeps_CXX"; then
11053 postdeps_CXX="${prev}${p}"
11055 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11061 # This assumes that the test object file only shows up
11062 # once in the compiler output.
11063 if test "$p" = "conftest.$objext"; then
11064 pre_test_object_deps_done=yes
11068 if test "$pre_test_object_deps_done" = no; then
11069 if test -z "$predep_objects_CXX"; then
11070 predep_objects_CXX="$p"
11072 predep_objects_CXX="$predep_objects_CXX $p"
11075 if test -z "$postdep_objects_CXX"; then
11076 postdep_objects_CXX="$p"
11078 postdep_objects_CXX="$postdep_objects_CXX $p"
11083 *) ;; # Ignore the rest.
11091 echo "libtool.m4: error: problem compiling CXX test program"
11094 $rm -f confest.$objext
11096 # PORTME: override above test on systems where it is broken
11099 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11100 # hack all around it, let's just trust "g++" to DTRT.
11101 predep_objects_CXX=
11102 postdep_objects_CXX=
11107 case $cc_basename in
11109 # Adding this requires a known-good setup of shared libraries for
11110 # Sun compiler versions before 5.6, else PIC objects from an old
11111 # archive will be linked into the output, leading to subtle bugs.
11112 postdeps_CXX='-lCstd -lCrun'
11119 case " $postdeps_CXX " in
11120 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11123 lt_prog_compiler_wl_CXX=
11124 lt_prog_compiler_pic_CXX=
11125 lt_prog_compiler_static_CXX=
11127 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11128 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11130 # C++ specific cases for pic, static, wl, etc.
11131 if test "$GXX" = yes; then
11132 lt_prog_compiler_wl_CXX='-Wl,'
11133 lt_prog_compiler_static_CXX='-static'
11137 # All AIX code is PIC.
11138 if test "$host_cpu" = ia64; then
11139 # AIX 5 now supports IA64 processor
11140 lt_prog_compiler_static_CXX='-Bstatic'
11144 # FIXME: we need at least 68020 code to build shared libraries, but
11145 # adding the `-m68020' flag to GCC prevents building anything better,
11147 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11149 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11150 # PIC is the default for these OSes.
11152 mingw* | os2* | pw32*)
11153 # This hack is so that the source file can tell whether it is being
11154 # built for inclusion in a dll (and should export symbols for example).
11155 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11157 darwin* | rhapsody*)
11158 # PIC is the default on this platform
11159 # Common symbols not allowed in MH_DYLIB files
11160 lt_prog_compiler_pic_CXX='-fno-common'
11163 # DJGPP does not support shared libraries at all
11164 lt_prog_compiler_pic_CXX=
11167 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11168 # Instead, we relocate shared libraries at runtime.
11171 if test -d /usr/nec; then
11172 lt_prog_compiler_pic_CXX=-Kconform_pic
11176 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11177 # not for PA HP-UX.
11182 lt_prog_compiler_pic_CXX='-fPIC'
11187 lt_prog_compiler_pic_CXX='-fPIC'
11193 # All AIX code is PIC.
11194 if test "$host_cpu" = ia64; then
11195 # AIX 5 now supports IA64 processor
11196 lt_prog_compiler_static_CXX='-Bstatic'
11198 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11202 case $cc_basename in
11204 # Green Hills C++ Compiler
11205 # _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"
11210 # PIC is the default on this platform
11211 # Common symbols not allowed in MH_DYLIB files
11212 case $cc_basename in
11214 lt_prog_compiler_pic_CXX='-qnocommon'
11215 lt_prog_compiler_wl_CXX='-Wl,'
11220 case $cc_basename in
11222 lt_prog_compiler_pic_CXX='-KPIC'
11225 # Green Hills C++ Compiler
11226 lt_prog_compiler_pic_CXX='-pic'
11232 freebsd* | kfreebsd*-gnu | dragonfly*)
11233 # FreeBSD uses GNU C++
11235 hpux9* | hpux10* | hpux11*)
11236 case $cc_basename in
11238 lt_prog_compiler_wl_CXX='-Wl,'
11239 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11240 if test "$host_cpu" != ia64; then
11241 lt_prog_compiler_pic_CXX='+Z'
11245 lt_prog_compiler_wl_CXX='-Wl,'
11246 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11252 lt_prog_compiler_pic_CXX='+Z'
11261 # This is c89, which is MS Visual C++ (no shared libs)
11262 # Anyone wants to do a port?
11264 irix5* | irix6* | nonstopux*)
11265 case $cc_basename in
11267 lt_prog_compiler_wl_CXX='-Wl,'
11268 lt_prog_compiler_static_CXX='-non_shared'
11269 # CC pic flag -KPIC is the default.
11276 case $cc_basename in
11279 lt_prog_compiler_wl_CXX='--backend -Wl,'
11280 lt_prog_compiler_pic_CXX='-fPIC'
11284 lt_prog_compiler_wl_CXX='-Wl,'
11285 lt_prog_compiler_pic_CXX='-KPIC'
11286 lt_prog_compiler_static_CXX='-static'
11289 # Portland Group C++ compiler.
11290 lt_prog_compiler_wl_CXX='-Wl,'
11291 lt_prog_compiler_pic_CXX='-fpic'
11292 lt_prog_compiler_static_CXX='-Bstatic'
11296 # Make sure the PIC flag is empty. It appears that all Alpha
11297 # Linux and Compaq Tru64 Unix objects are PIC.
11298 lt_prog_compiler_pic_CXX=
11299 lt_prog_compiler_static_CXX='-non_shared'
11310 case $cc_basename in
11312 lt_prog_compiler_pic_CXX='-W c,exportall'
11320 osf3* | osf4* | osf5*)
11321 case $cc_basename in
11323 lt_prog_compiler_wl_CXX='--backend -Wl,'
11326 # Rational C++ 2.4.1
11327 lt_prog_compiler_pic_CXX='-pic'
11330 # Digital/Compaq C++
11331 lt_prog_compiler_wl_CXX='-Wl,'
11332 # Make sure the PIC flag is empty. It appears that all Alpha
11333 # Linux and Compaq Tru64 Unix objects are PIC.
11334 lt_prog_compiler_pic_CXX=
11335 lt_prog_compiler_static_CXX='-non_shared'
11344 case $cc_basename in
11346 # Sun C++ 4.2, 5.x and Centerline C++
11347 lt_prog_compiler_pic_CXX='-KPIC'
11348 lt_prog_compiler_static_CXX='-Bstatic'
11349 lt_prog_compiler_wl_CXX='-Qoption ld '
11352 # Green Hills C++ Compiler
11353 lt_prog_compiler_pic_CXX='-PIC'
11360 case $cc_basename in
11363 lt_prog_compiler_pic_CXX='-pic'
11364 lt_prog_compiler_static_CXX='-Bstatic'
11368 lt_prog_compiler_pic_CXX='-pic'
11375 case $cc_basename in
11377 # NonStop-UX NCC 3.20
11378 lt_prog_compiler_pic_CXX='-KPIC'
11384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11385 case $cc_basename in
11387 lt_prog_compiler_wl_CXX='-Wl,'
11388 lt_prog_compiler_pic_CXX='-KPIC'
11389 lt_prog_compiler_static_CXX='-Bstatic'
11396 lt_prog_compiler_can_build_shared_CXX=no
11401 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11402 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11405 # Check to make sure the PIC flag actually works.
11407 if test -n "$lt_prog_compiler_pic_CXX"; then
11409 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11410 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11411 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11412 echo $ECHO_N "(cached) $ECHO_C" >&6
11414 lt_prog_compiler_pic_works_CXX=no
11415 ac_outfile=conftest.$ac_objext
11416 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11417 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11418 # Insert the option either (1) after the last *FLAGS variable, or
11419 # (2) before a word containing "conftest.", or (3) at the end.
11420 # Note that $ac_compile itself does not contain backslashes and begins
11421 # with a dollar sign (not a hyphen), so the echo should work correctly.
11422 # The option is referenced via a variable to avoid confusing sed.
11423 lt_compile=`echo "$ac_compile" | $SED \
11424 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11425 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11426 -e 's:$: $lt_compiler_flag:'`
11427 (eval echo "\"\$as_me:11427: $lt_compile\"" >&5)
11428 (eval "$lt_compile" 2>conftest.err)
11430 cat conftest.err >&5
11431 echo "$as_me:11431: \$? = $ac_status" >&5
11432 if (exit $ac_status) && test -s "$ac_outfile"; then
11433 # The compiler can only warn and ignore the option if not recognized
11434 # So say no if there are warnings other than the usual output.
11435 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11436 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11437 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11438 lt_prog_compiler_pic_works_CXX=yes
11444 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11445 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11447 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11448 case $lt_prog_compiler_pic_CXX in
11450 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11453 lt_prog_compiler_pic_CXX=
11454 lt_prog_compiler_can_build_shared_CXX=no
11459 # For platforms which do not support PIC, -DPIC is meaningless:
11461 lt_prog_compiler_pic_CXX=
11464 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11469 # Check to make sure the static flag actually works.
11471 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11472 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11473 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11474 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11475 echo $ECHO_N "(cached) $ECHO_C" >&6
11477 lt_prog_compiler_static_works_CXX=no
11478 save_LDFLAGS="$LDFLAGS"
11479 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11480 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11481 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11482 # The linker can only warn and ignore the option if not recognized
11483 # So say no if there are warnings
11484 if test -s conftest.err; then
11485 # Append any errors to the config.log.
11486 cat conftest.err 1>&5
11487 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11488 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11489 if diff conftest.exp conftest.er2 >/dev/null; then
11490 lt_prog_compiler_static_works_CXX=yes
11493 lt_prog_compiler_static_works_CXX=yes
11497 LDFLAGS="$save_LDFLAGS"
11500 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11501 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11503 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11506 lt_prog_compiler_static_CXX=
11510 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11511 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11512 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11513 echo $ECHO_N "(cached) $ECHO_C" >&6
11515 lt_cv_prog_compiler_c_o_CXX=no
11516 $rm -r conftest 2>/dev/null
11520 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11522 lt_compiler_flag="-o out/conftest2.$ac_objext"
11523 # Insert the option either (1) after the last *FLAGS variable, or
11524 # (2) before a word containing "conftest.", or (3) at the end.
11525 # Note that $ac_compile itself does not contain backslashes and begins
11526 # with a dollar sign (not a hyphen), so the echo should work correctly.
11527 lt_compile=`echo "$ac_compile" | $SED \
11528 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11529 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11530 -e 's:$: $lt_compiler_flag:'`
11531 (eval echo "\"\$as_me:11531: $lt_compile\"" >&5)
11532 (eval "$lt_compile" 2>out/conftest.err)
11534 cat out/conftest.err >&5
11535 echo "$as_me:11535: \$? = $ac_status" >&5
11536 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11538 # The compiler can only warn and ignore the option if not recognized
11539 # So say no if there are warnings
11540 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11541 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11542 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11543 lt_cv_prog_compiler_c_o_CXX=yes
11548 # SGI C++ compiler will create directory out/ii_files/ for
11549 # template instantiation
11550 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11551 $rm out/* && rmdir out
11557 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11558 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11561 hard_links="nottested"
11562 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11563 # do not overwrite the value of need_locks provided by the user
11564 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11565 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11568 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11570 ln conftest.a conftest.b 2>&5 || hard_links=no
11571 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11572 echo "$as_me:$LINENO: result: $hard_links" >&5
11573 echo "${ECHO_T}$hard_links" >&6
11574 if test "$hard_links" = no; then
11575 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11576 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11583 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11584 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11586 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11589 # If we're using GNU nm, then we don't want the "-C" option.
11590 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11591 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11592 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'
11594 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'
11598 export_symbols_cmds_CXX="$ltdll_cmds"
11601 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11604 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11608 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11609 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11610 test "$ld_shlibs_CXX" = no && can_build_shared=no
11613 # Do we need to explicitly link libc?
11615 case "x$archive_cmds_need_lc_CXX" in
11617 # Assume -lc should be added
11618 archive_cmds_need_lc_CXX=yes
11620 if test "$enable_shared" = yes && test "$GCC" = yes; then
11621 case $archive_cmds_CXX in
11623 # FIXME: we may have to deal with multi-command sequences.
11626 # Test whether the compiler implicitly links with -lc since on some
11627 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11628 # to ld, don't add -lc before -lgcc.
11629 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11630 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11632 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11634 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11635 (eval $ac_compile) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); } 2>conftest.err; then
11641 libobjs=conftest.$ac_objext
11643 wl=$lt_prog_compiler_wl_CXX
11644 pic_flag=$lt_prog_compiler_pic_CXX
11650 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11651 allow_undefined_flag_CXX=
11652 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11653 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); }
11658 archive_cmds_need_lc_CXX=no
11660 archive_cmds_need_lc_CXX=yes
11662 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11664 cat conftest.err 1>&5
11667 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11668 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11675 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11676 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11677 library_names_spec=
11678 libname_spec='lib$name'
11682 postuninstall_cmds=
11686 shlibpath_overrides_runpath=unknown
11688 dynamic_linker="$host_os ld.so"
11689 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11690 if test "$GCC" = yes; then
11691 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11692 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11693 # if the path contains ";" then we assume it to be the separator
11694 # otherwise default to the standard path separator (i.e. ":") - it is
11695 # assumed that no part of a normal pathname contains ";" but that should
11696 # okay in the real world where ";" in dirpaths is itself problematic.
11697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11699 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11702 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11704 need_lib_prefix=unknown
11705 hardcode_into_libs=no
11707 # when you set need_version to no, make sure it does not cause -set_version
11708 # flags to be left without arguments
11709 need_version=unknown
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11715 shlibpath_var=LIBPATH
11717 # AIX 3 has no versioning support, so we append a major version to the name.
11718 soname_spec='${libname}${release}${shared_ext}$major'
11725 hardcode_into_libs=yes
11726 if test "$host_cpu" = ia64; then
11727 # AIX 5 supports IA64
11728 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11729 shlibpath_var=LD_LIBRARY_PATH
11731 # With GCC up to 2.95.x, collect2 would create an import file
11732 # for dependence libraries. The import file would start with
11733 # the line `#! .'. This would cause the generated library to
11734 # depend on `.', always an invalid library. This was fixed in
11735 # development snapshots of GCC prior to 3.0.
11737 aix4 | aix4.[01] | aix4.[01].*)
11738 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11740 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11743 can_build_shared=no
11747 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11748 # soname into executable. Probably we can add versioning support to
11749 # collect2, so additional links can be useful in future.
11750 if test "$aix_use_runtimelinking" = yes; then
11751 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11752 # instead of lib<name>.a to let people know that these are not
11753 # typical AIX shared libraries.
11754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11756 # We preserve .a as extension for shared libraries through AIX4.2
11757 # and later when we are not doing run time linking.
11758 library_names_spec='${libname}${release}.a $libname.a'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11761 shlibpath_var=LIBPATH
11766 library_names_spec='$libname.ixlibrary $libname.a'
11767 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11768 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'
11772 library_names_spec='${libname}${shared_ext}'
11773 dynamic_linker="$host_os ld.so"
11774 shlibpath_var=LIBRARY_PATH
11780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec='${libname}${release}${shared_ext}$major'
11782 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11783 shlibpath_var=LD_LIBRARY_PATH
11784 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11785 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11786 # the default ld.so.conf also contains /usr/contrib/lib and
11787 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11788 # libtool to hard-code these into programs
11791 cygwin* | mingw* | pw32*)
11792 version_type=windows
11797 case $GCC,$host_os in
11798 yes,cygwin* | yes,mingw* | yes,pw32*)
11799 library_names_spec='$libname.dll.a'
11800 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11801 postinstall_cmds='base_file=`basename \${file}`~
11802 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11803 dldir=$destdir/`dirname \$dlpath`~
11804 test -d \$dldir || mkdir -p \$dldir~
11805 $install_prog $dir/$dlname \$dldir/$dlname~
11806 chmod a+x \$dldir/$dlname'
11807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11808 dlpath=$dir/\$dldll~
11810 shlibpath_overrides_runpath=yes
11814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11819 # MinGW DLLs use traditional 'lib' prefix
11820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11823 # It is most probably a Windows format PATH printed by
11824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11825 # path with ; separators, and with drive letters. We can handle the
11826 # drive letters (cygwin fileutils understands them), so leave them,
11827 # especially as we might pass files found there to a mingw objdump,
11828 # which wouldn't understand a cygwinified path. Ahh.
11829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11835 # pw32 DLLs use 'pw' prefix rather than 'lib'
11836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11845 dynamic_linker='Win32 ld.exe'
11846 # FIXME: first we should search . and the directory the executable is in
11850 darwin* | rhapsody*)
11851 dynamic_linker="$host_os dyld"
11852 version_type=darwin
11855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11856 soname_spec='${libname}${release}${major}$shared_ext'
11857 shlibpath_overrides_runpath=yes
11858 shlibpath_var=DYLD_LIBRARY_PATH
11859 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11861 if test "$GCC" = yes; then
11862 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"`
11864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11887 soname_spec='${libname}${release}${shared_ext}$major'
11888 shlibpath_var=LD_LIBRARY_PATH
11889 shlibpath_overrides_runpath=no
11890 hardcode_into_libs=yes
11891 dynamic_linker='GNU ld.so'
11894 freebsd* | dragonfly*)
11895 # DragonFly does not have aout. When/if they implement a new
11896 # versioning mechanism, adjust this.
11897 if test -x /usr/bin/objformat; then
11898 objformat=`/usr/bin/objformat`
11901 freebsd[123]*) objformat=aout ;;
11902 *) objformat=elf ;;
11905 version_type=freebsd-$objformat
11906 case $version_type in
11908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11913 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11917 shlibpath_var=LD_LIBRARY_PATH
11920 shlibpath_overrides_runpath=yes
11922 freebsd3.[01]* | freebsdelf3.[01]*)
11923 shlibpath_overrides_runpath=yes
11924 hardcode_into_libs=yes
11926 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11927 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11928 shlibpath_overrides_runpath=no
11929 hardcode_into_libs=yes
11931 freebsd*) # from 4.6 on
11932 shlibpath_overrides_runpath=yes
11933 hardcode_into_libs=yes
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 hardcode_into_libs=yes
11948 hpux9* | hpux10* | hpux11*)
11949 # Give a soname corresponding to the major version so that dld.sl refuses to
11950 # link against other versions.
11957 hardcode_into_libs=yes
11958 dynamic_linker="$host_os dld.so"
11959 shlibpath_var=LD_LIBRARY_PATH
11960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11962 soname_spec='${libname}${release}${shared_ext}$major'
11963 if test "X$HPUX_IA64_MODE" = X32; then
11964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11966 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11972 hardcode_into_libs=yes
11973 dynamic_linker="$host_os dld.sl"
11974 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11977 soname_spec='${libname}${release}${shared_ext}$major'
11978 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11983 dynamic_linker="$host_os dld.sl"
11984 shlibpath_var=SHLIB_PATH
11985 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11987 soname_spec='${libname}${release}${shared_ext}$major'
11990 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11991 postinstall_cmds='chmod 555 $lib'
11998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11999 soname_spec='${libname}${release}${shared_ext}$major'
12000 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12001 shlibpath_var=LD_LIBRARY_PATH
12002 shlibpath_overrides_runpath=no
12003 hardcode_into_libs=yes
12006 irix5* | irix6* | nonstopux*)
12008 nonstopux*) version_type=nonstopux ;;
12010 if test "$lt_cv_prog_gnu_ld" = yes; then
12018 soname_spec='${libname}${release}${shared_ext}$major'
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12021 irix5* | nonstopux*)
12022 libsuff= shlibsuff=
12025 case $LD in # libtool.m4 will add one of these switches to LD
12026 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12027 libsuff= shlibsuff= libmagic=32-bit;;
12028 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12029 libsuff=32 shlibsuff=N32 libmagic=N32;;
12030 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12031 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12032 *) libsuff= shlibsuff= libmagic=never-match;;
12036 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12037 shlibpath_overrides_runpath=no
12038 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12039 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12040 hardcode_into_libs=yes
12043 # No shared lib support for Linux oldld, aout, or coff.
12044 linux*oldld* | linux*aout* | linux*coff*)
12048 # This must be Linux ELF.
12053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12054 soname_spec='${libname}${release}${shared_ext}$major'
12055 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12056 shlibpath_var=LD_LIBRARY_PATH
12057 shlibpath_overrides_runpath=no
12058 # This implies no fast_install, which is unacceptable.
12059 # Some rework will be needed to allow for fast_install
12060 # before this can be enabled.
12061 hardcode_into_libs=yes
12063 # Append ld.so.conf contents to the search path
12064 if test -f /etc/ld.so.conf; then
12065 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12066 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12069 # We used to test for /lib/ld.so.1 and disable shared libraries on
12070 # powerpc, because MkLinux only supported shared libraries with the
12071 # GNU dynamic linker. Since this was broken with cross compilers,
12072 # most powerpc-linux boxes support dynamic linking these days and
12073 # people can always --disable-shared, the test was removed, and we
12074 # assume the GNU/Linux dynamic linker is in use.
12075 dynamic_linker='GNU/Linux ld.so'
12082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12083 soname_spec='${libname}${release}${shared_ext}$major'
12084 shlibpath_var=LD_LIBRARY_PATH
12085 shlibpath_overrides_runpath=no
12086 hardcode_into_libs=yes
12087 dynamic_linker='GNU ld.so'
12094 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12096 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12097 dynamic_linker='NetBSD (a.out) ld.so'
12099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12100 soname_spec='${libname}${release}${shared_ext}$major'
12101 dynamic_linker='NetBSD ld.elf_so'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12105 hardcode_into_libs=yes
12110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12111 shlibpath_var=LD_LIBRARY_PATH
12112 shlibpath_overrides_runpath=yes
12119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12120 soname_spec='${libname}${release}${shared_ext}$major'
12121 shlibpath_var=LD_LIBRARY_PATH
12122 shlibpath_overrides_runpath=yes
12127 sys_lib_dlsearch_path_spec="/usr/lib"
12129 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12131 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12132 *) need_version=no ;;
12134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12135 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12136 shlibpath_var=LD_LIBRARY_PATH
12137 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12139 openbsd2.[89] | openbsd2.[89].*)
12140 shlibpath_overrides_runpath=no
12143 shlibpath_overrides_runpath=yes
12147 shlibpath_overrides_runpath=yes
12152 libname_spec='$name'
12155 library_names_spec='$libname${shared_ext} $libname.a'
12156 dynamic_linker='OS/2 ld.exe'
12157 shlibpath_var=LIBPATH
12160 osf3* | osf4* | osf5*)
12164 soname_spec='${libname}${release}${shared_ext}$major'
12165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12166 shlibpath_var=LD_LIBRARY_PATH
12167 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12168 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12176 soname_spec='${libname}${release}${shared_ext}$major'
12177 shlibpath_var=LD_LIBRARY_PATH
12178 shlibpath_overrides_runpath=yes
12179 hardcode_into_libs=yes
12180 # ldd complains unless libraries are executable
12181 postinstall_cmds='chmod +x $lib'
12186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12187 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12188 shlibpath_var=LD_LIBRARY_PATH
12189 shlibpath_overrides_runpath=yes
12190 if test "$with_gnu_ld" = yes; then
12198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12199 soname_spec='${libname}${release}${shared_ext}$major'
12200 shlibpath_var=LD_LIBRARY_PATH
12201 case $host_vendor in
12203 shlibpath_overrides_runpath=no
12205 export_dynamic_flag_spec='${wl}-Blargedynsym'
12206 runpath_var=LD_RUN_PATH
12214 shlibpath_overrides_runpath=no
12215 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12221 if test -d /usr/nec ;then
12223 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12224 soname_spec='$libname${shared_ext}.$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12229 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12230 version_type=freebsd-elf
12233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12234 soname_spec='${libname}${release}${shared_ext}$major'
12235 shlibpath_var=LD_LIBRARY_PATH
12236 hardcode_into_libs=yes
12237 if test "$with_gnu_ld" = yes; then
12238 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12239 shlibpath_overrides_runpath=no
12241 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12242 shlibpath_overrides_runpath=yes
12245 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12249 sys_lib_dlsearch_path_spec='/usr/lib'
12254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12255 soname_spec='${libname}${release}${shared_ext}$major'
12256 shlibpath_var=LD_LIBRARY_PATH
12263 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12264 echo "${ECHO_T}$dynamic_linker" >&6
12265 test "$dynamic_linker" = no && can_build_shared=no
12267 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12268 if test "$GCC" = yes; then
12269 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12272 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12273 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12274 hardcode_action_CXX=
12275 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12276 test -n "$runpath_var_CXX" || \
12277 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12279 # We can hardcode non-existant directories.
12280 if test "$hardcode_direct_CXX" != no &&
12281 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12282 # have to relink, otherwise we might link with an installed library
12283 # when we should be linking with a yet-to-be-installed one
12284 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12285 test "$hardcode_minus_L_CXX" != no; then
12286 # Linking always hardcodes the temporary library directory.
12287 hardcode_action_CXX=relink
12289 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12290 hardcode_action_CXX=immediate
12293 # We cannot hardcode anything, or else we can only hardcode existing
12295 hardcode_action_CXX=unsupported
12297 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12298 echo "${ECHO_T}$hardcode_action_CXX" >&6
12300 if test "$hardcode_action_CXX" = relink; then
12301 # Fast installation is not supported
12302 enable_fast_install=no
12303 elif test "$shlibpath_overrides_runpath" = yes ||
12304 test "$enable_shared" = no; then
12305 # Fast installation is not necessary
12306 enable_fast_install=needless
12310 # The else clause should only fire when bootstrapping the
12311 # libtool distribution, otherwise you forgot to ship ltmain.sh
12312 # with your package, and you will get complaints that there are
12313 # no rules to generate ltmain.sh.
12314 if test -f "$ltmain"; then
12315 # See if we are running on zsh, and set the options which allow our commands through
12316 # without removal of \ escapes.
12317 if test -n "${ZSH_VERSION+set}" ; then
12318 setopt NO_GLOB_SUBST
12320 # Now quote all the things that may contain metacharacters while being
12321 # careful not to overquote the AC_SUBSTed values. We take copies of the
12322 # variables and quote the copies for generation of the libtool script.
12323 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12325 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12326 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12327 deplibs_check_method reload_flag reload_cmds need_locks \
12328 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12329 lt_cv_sys_global_symbol_to_c_name_address \
12330 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12331 old_postinstall_cmds old_postuninstall_cmds \
12335 lt_prog_compiler_wl_CXX \
12336 lt_prog_compiler_pic_CXX \
12337 lt_prog_compiler_static_CXX \
12338 lt_prog_compiler_no_builtin_flag_CXX \
12339 export_dynamic_flag_spec_CXX \
12340 thread_safe_flag_spec_CXX \
12341 whole_archive_flag_spec_CXX \
12342 enable_shared_with_static_runtimes_CXX \
12343 old_archive_cmds_CXX \
12344 old_archive_from_new_cmds_CXX \
12345 predep_objects_CXX \
12346 postdep_objects_CXX \
12349 compiler_lib_search_path_CXX \
12351 archive_expsym_cmds_CXX \
12352 postinstall_cmds_CXX \
12353 postuninstall_cmds_CXX \
12354 old_archive_from_expsyms_cmds_CXX \
12355 allow_undefined_flag_CXX \
12356 no_undefined_flag_CXX \
12357 export_symbols_cmds_CXX \
12358 hardcode_libdir_flag_spec_CXX \
12359 hardcode_libdir_flag_spec_ld_CXX \
12360 hardcode_libdir_separator_CXX \
12361 hardcode_automatic_CXX \
12363 module_expsym_cmds_CXX \
12364 lt_cv_prog_compiler_c_o_CXX \
12365 exclude_expsyms_CXX \
12366 include_expsyms_CXX; do
12369 old_archive_cmds_CXX | \
12370 old_archive_from_new_cmds_CXX | \
12371 archive_cmds_CXX | \
12372 archive_expsym_cmds_CXX | \
12373 module_cmds_CXX | \
12374 module_expsym_cmds_CXX | \
12375 old_archive_from_expsyms_cmds_CXX | \
12376 export_symbols_cmds_CXX | \
12377 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12378 postinstall_cmds | postuninstall_cmds | \
12379 old_postinstall_cmds | old_postuninstall_cmds | \
12380 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12381 # Double-quote double-evaled strings.
12382 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12385 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12391 *'\$0 --fallback-echo"')
12392 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12398 cat <<__EOF__ >> "$cfgfile"
12399 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12401 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12403 # Shell to use when invoking shell scripts.
12406 # Whether or not to build shared libraries.
12407 build_libtool_libs=$enable_shared
12409 # Whether or not to build static libraries.
12410 build_old_libs=$enable_static
12412 # Whether or not to add -lc for building shared libraries.
12413 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12415 # Whether or not to disallow shared libs when runtime libs are static
12416 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12418 # Whether or not to optimize for fast installation.
12419 fast_install=$enable_fast_install
12422 host_alias=$host_alias
12426 # The build system.
12427 build_alias=$build_alias
12431 # An echo program that does not interpret backslashes.
12436 AR_FLAGS=$lt_AR_FLAGS
12441 # LTCC compiler flags.
12442 LTCFLAGS=$lt_LTCFLAGS
12444 # A language-specific compiler.
12445 CC=$lt_compiler_CXX
12447 # Is the compiler the GNU C compiler?
12453 # The linker used to build libraries.
12456 # Whether we need hard or soft links.
12459 # A BSD-compatible nm program.
12462 # A symbol stripping program
12465 # Used to examine libraries when file_magic_cmd begins "file"
12466 MAGIC_CMD=$MAGIC_CMD
12468 # Used on cygwin: DLL creation program.
12471 # Used on cygwin: object dumper.
12474 # Used on cygwin: assembler.
12477 # The name of the directory that contains temporary libtool files.
12480 # How to create reloadable object files.
12481 reload_flag=$lt_reload_flag
12482 reload_cmds=$lt_reload_cmds
12484 # How to pass a linker flag through the compiler.
12485 wl=$lt_lt_prog_compiler_wl_CXX
12487 # Object file suffix (normally "o").
12488 objext="$ac_objext"
12490 # Old archive suffix (normally "a").
12493 # Shared library suffix (normally ".so").
12494 shrext_cmds='$shrext_cmds'
12496 # Executable file suffix (normally "").
12499 # Additional compiler flags for building library objects.
12500 pic_flag=$lt_lt_prog_compiler_pic_CXX
12503 # What is the maximum length of a command?
12504 max_cmd_len=$lt_cv_sys_max_cmd_len
12506 # Does compiler simultaneously support -c and -o options?
12507 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12509 # Must we lock files when doing compilation?
12510 need_locks=$lt_need_locks
12512 # Do we need the lib prefix for modules?
12513 need_lib_prefix=$need_lib_prefix
12515 # Do we need a version for libraries?
12516 need_version=$need_version
12518 # Whether dlopen is supported.
12519 dlopen_support=$enable_dlopen
12521 # Whether dlopen of programs is supported.
12522 dlopen_self=$enable_dlopen_self
12524 # Whether dlopen of statically linked programs is supported.
12525 dlopen_self_static=$enable_dlopen_self_static
12527 # Compiler flag to prevent dynamic linking.
12528 link_static_flag=$lt_lt_prog_compiler_static_CXX
12530 # Compiler flag to turn off builtin functions.
12531 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12533 # Compiler flag to allow reflexive dlopens.
12534 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12536 # Compiler flag to generate shared objects directly from archives.
12537 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12539 # Compiler flag to generate thread-safe objects.
12540 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12542 # Library versioning type.
12543 version_type=$version_type
12545 # Format of library name prefix.
12546 libname_spec=$lt_libname_spec
12548 # List of archive names. First name is the real one, the rest are links.
12549 # The last name is the one that the linker finds with -lNAME.
12550 library_names_spec=$lt_library_names_spec
12552 # The coded name of the library, if different from the real name.
12553 soname_spec=$lt_soname_spec
12555 # Commands used to build and install an old-style archive.
12557 old_archive_cmds=$lt_old_archive_cmds_CXX
12558 old_postinstall_cmds=$lt_old_postinstall_cmds
12559 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12561 # Create an old-style archive from a shared archive.
12562 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12564 # Create a temporary old-style archive to link instead of a shared archive.
12565 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12567 # Commands used to build and install a shared archive.
12568 archive_cmds=$lt_archive_cmds_CXX
12569 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12570 postinstall_cmds=$lt_postinstall_cmds
12571 postuninstall_cmds=$lt_postuninstall_cmds
12573 # Commands used to build a loadable module (assumed same as above if empty)
12574 module_cmds=$lt_module_cmds_CXX
12575 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12577 # Commands to strip libraries.
12578 old_striplib=$lt_old_striplib
12579 striplib=$lt_striplib
12581 # Dependencies to place before the objects being linked to create a
12583 predep_objects=$lt_predep_objects_CXX
12585 # Dependencies to place after the objects being linked to create a
12587 postdep_objects=$lt_postdep_objects_CXX
12589 # Dependencies to place before the objects being linked to create a
12591 predeps=$lt_predeps_CXX
12593 # Dependencies to place after the objects being linked to create a
12595 postdeps=$lt_postdeps_CXX
12597 # The library search path used internally by the compiler when linking
12598 # a shared library.
12599 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12601 # Method to check whether dependent libraries are shared objects.
12602 deplibs_check_method=$lt_deplibs_check_method
12604 # Command to use when deplibs_check_method == file_magic.
12605 file_magic_cmd=$lt_file_magic_cmd
12607 # Flag that allows shared libraries with undefined symbols to be built.
12608 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12610 # Flag that forces no undefined symbols.
12611 no_undefined_flag=$lt_no_undefined_flag_CXX
12613 # Commands used to finish a libtool library installation in a directory.
12614 finish_cmds=$lt_finish_cmds
12616 # Same as above, but a single script fragment to be evaled but not shown.
12617 finish_eval=$lt_finish_eval
12619 # Take the output of nm and produce a listing of raw symbols and C names.
12620 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12622 # Transform the output of nm in a proper C declaration
12623 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12625 # Transform the output of nm in a C name address pair
12626 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12628 # This is the shared library runtime path variable.
12629 runpath_var=$runpath_var
12631 # This is the shared library path variable.
12632 shlibpath_var=$shlibpath_var
12634 # Is shlibpath searched before the hard-coded library search path?
12635 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12637 # How to hardcode a shared library path into an executable.
12638 hardcode_action=$hardcode_action_CXX
12640 # Whether we should hardcode library paths into libraries.
12641 hardcode_into_libs=$hardcode_into_libs
12643 # Flag to hardcode \$libdir into a binary during linking.
12644 # This must work even if \$libdir does not exist.
12645 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12647 # If ld is used when linking, flag to hardcode \$libdir into
12648 # a binary during linking. This must work even if \$libdir does
12650 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12652 # Whether we need a single -rpath flag with a separated argument.
12653 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12655 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12656 # resulting binary.
12657 hardcode_direct=$hardcode_direct_CXX
12659 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12660 # resulting binary.
12661 hardcode_minus_L=$hardcode_minus_L_CXX
12663 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12664 # the resulting binary.
12665 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12667 # Set to yes if building a shared library automatically hardcodes DIR into the library
12668 # and all subsequent libraries and executables linked against it.
12669 hardcode_automatic=$hardcode_automatic_CXX
12671 # Variables whose values should be saved in libtool wrapper scripts and
12672 # restored at relink time.
12673 variables_saved_for_relink="$variables_saved_for_relink"
12675 # Whether libtool must link a program against all its dependency libraries.
12676 link_all_deplibs=$link_all_deplibs_CXX
12678 # Compile-time system search path for libraries
12679 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12681 # Run-time system search path for libraries
12682 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12684 # Fix the shell variable \$srcfile for the compiler.
12685 fix_srcfile_path="$fix_srcfile_path_CXX"
12687 # Set to yes if exported symbols are required.
12688 always_export_symbols=$always_export_symbols_CXX
12690 # The commands to list exported symbols.
12691 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12693 # The commands to extract the exported symbol list from a shared archive.
12694 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12696 # Symbols that should not be listed in the preloaded symbols.
12697 exclude_expsyms=$lt_exclude_expsyms_CXX
12699 # Symbols that must always be exported.
12700 include_expsyms=$lt_include_expsyms_CXX
12702 # ### END LIBTOOL TAG CONFIG: $tagname
12708 # If there is no Makefile yet, we rely on a make rule to execute
12709 # `config.status --recheck' to rerun these tests and create the
12710 # libtool script then.
12711 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12712 if test -f "$ltmain_in"; then
12713 test -f Makefile && make "$ltmain"
12719 ac_cpp='$CPP $CPPFLAGS'
12720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12728 with_gnu_ldcxx=$with_gnu_ld
12729 with_gnu_ld=$lt_save_with_gnu_ld
12730 lt_cv_path_LDCXX=$lt_cv_path_LD
12731 lt_cv_path_LD=$lt_save_path_LD
12732 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12733 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12741 if test -n "$F77" && test "X$F77" != "Xno"; then
12744 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12745 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12749 archive_cmds_need_lc_F77=no
12750 allow_undefined_flag_F77=
12751 always_export_symbols_F77=no
12752 archive_expsym_cmds_F77=
12753 export_dynamic_flag_spec_F77=
12754 hardcode_direct_F77=no
12755 hardcode_libdir_flag_spec_F77=
12756 hardcode_libdir_flag_spec_ld_F77=
12757 hardcode_libdir_separator_F77=
12758 hardcode_minus_L_F77=no
12759 hardcode_automatic_F77=no
12761 module_expsym_cmds_F77=
12762 link_all_deplibs_F77=unknown
12763 old_archive_cmds_F77=$old_archive_cmds
12764 no_undefined_flag_F77=
12765 whole_archive_flag_spec_F77=
12766 enable_shared_with_static_runtimes_F77=no
12768 # Source file extension for f77 test sources.
12771 # Object file extension for compiled f77 test sources.
12775 # Code to be used in simple compile tests
12776 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12778 # Code to be used in simple link tests
12779 lt_simple_link_test_code=" program t\n end\n"
12781 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12783 # If no C compiler was specified, use CC.
12786 # If no C compiler flags were specified, use CFLAGS.
12787 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12789 # Allow CC to be a program name with arguments.
12793 # save warnings/boilerplate of simple test code
12794 ac_outfile=conftest.$ac_objext
12795 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12796 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12797 _lt_compiler_boilerplate=`cat conftest.err`
12800 ac_outfile=conftest.$ac_objext
12801 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12802 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12803 _lt_linker_boilerplate=`cat conftest.err`
12807 # Allow CC to be a program name with arguments.
12812 for cc_temp in $compiler""; do
12814 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12815 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12820 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12823 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12824 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12825 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12826 echo "${ECHO_T}$can_build_shared" >&6
12828 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12829 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12830 test "$can_build_shared" = "no" && enable_shared=no
12832 # On AIX, shared libraries and static libraries use the same namespace, and
12833 # are all built from PIC.
12836 test "$enable_shared" = yes && enable_static=no
12837 if test -n "$RANLIB"; then
12838 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12839 postinstall_cmds='$RANLIB $lib'
12843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12844 test "$enable_shared" = yes && enable_static=no
12848 echo "$as_me:$LINENO: result: $enable_shared" >&5
12849 echo "${ECHO_T}$enable_shared" >&6
12851 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12852 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12853 # Make sure either enable_shared or enable_static is yes.
12854 test "$enable_shared" = yes || enable_static=yes
12855 echo "$as_me:$LINENO: result: $enable_static" >&5
12856 echo "${ECHO_T}$enable_static" >&6
12861 lt_prog_compiler_wl_F77=
12862 lt_prog_compiler_pic_F77=
12863 lt_prog_compiler_static_F77=
12865 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12866 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12868 if test "$GCC" = yes; then
12869 lt_prog_compiler_wl_F77='-Wl,'
12870 lt_prog_compiler_static_F77='-static'
12874 # All AIX code is PIC.
12875 if test "$host_cpu" = ia64; then
12876 # AIX 5 now supports IA64 processor
12877 lt_prog_compiler_static_F77='-Bstatic'
12882 # FIXME: we need at least 68020 code to build shared libraries, but
12883 # adding the `-m68020' flag to GCC prevents building anything better,
12885 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12888 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12889 # PIC is the default for these OSes.
12892 mingw* | pw32* | os2*)
12893 # This hack is so that the source file can tell whether it is being
12894 # built for inclusion in a dll (and should export symbols for example).
12895 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12898 darwin* | rhapsody*)
12899 # PIC is the default on this platform
12900 # Common symbols not allowed in MH_DYLIB files
12901 lt_prog_compiler_pic_F77='-fno-common'
12905 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12906 # Instead, we relocate shared libraries at runtime.
12910 # Just because we use GCC doesn't mean we suddenly get shared libraries
12911 # on systems that don't support them.
12912 lt_prog_compiler_can_build_shared_F77=no
12917 if test -d /usr/nec; then
12918 lt_prog_compiler_pic_F77=-Kconform_pic
12923 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12924 # not for PA HP-UX.
12930 lt_prog_compiler_pic_F77='-fPIC'
12936 lt_prog_compiler_pic_F77='-fPIC'
12940 # PORTME Check for flag to pass linker flags through the system compiler.
12943 lt_prog_compiler_wl_F77='-Wl,'
12944 if test "$host_cpu" = ia64; then
12945 # AIX 5 now supports IA64 processor
12946 lt_prog_compiler_static_F77='-Bstatic'
12948 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12952 # PIC is the default on this platform
12953 # Common symbols not allowed in MH_DYLIB files
12954 case $cc_basename in
12956 lt_prog_compiler_pic_F77='-qnocommon'
12957 lt_prog_compiler_wl_F77='-Wl,'
12962 mingw* | pw32* | os2*)
12963 # This hack is so that the source file can tell whether it is being
12964 # built for inclusion in a dll (and should export symbols for example).
12965 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12968 hpux9* | hpux10* | hpux11*)
12969 lt_prog_compiler_wl_F77='-Wl,'
12970 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12971 # not for PA HP-UX.
12977 lt_prog_compiler_pic_F77='+Z'
12980 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12981 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12984 irix5* | irix6* | nonstopux*)
12985 lt_prog_compiler_wl_F77='-Wl,'
12986 # PIC (with -KPIC) is the default.
12987 lt_prog_compiler_static_F77='-non_shared'
12991 lt_prog_compiler_pic_F77='-KPIC'
12992 lt_prog_compiler_static_F77='-Bstatic'
12996 case $cc_basename in
12998 lt_prog_compiler_wl_F77='-Wl,'
12999 lt_prog_compiler_pic_F77='-KPIC'
13000 lt_prog_compiler_static_F77='-static'
13002 pgcc* | pgf77* | pgf90* | pgf95*)
13003 # Portland Group compilers (*not* the Pentium gcc compiler,
13004 # which looks to be a dead project)
13005 lt_prog_compiler_wl_F77='-Wl,'
13006 lt_prog_compiler_pic_F77='-fpic'
13007 lt_prog_compiler_static_F77='-Bstatic'
13010 lt_prog_compiler_wl_F77='-Wl,'
13011 # All Alpha code is PIC.
13012 lt_prog_compiler_static_F77='-non_shared'
13017 osf3* | osf4* | osf5*)
13018 lt_prog_compiler_wl_F77='-Wl,'
13019 # All OSF/1 code is PIC.
13020 lt_prog_compiler_static_F77='-non_shared'
13024 lt_prog_compiler_pic_F77='-KPIC'
13025 lt_prog_compiler_static_F77='-Bstatic'
13026 case $cc_basename in
13027 f77* | f90* | f95*)
13028 lt_prog_compiler_wl_F77='-Qoption ld ';;
13030 lt_prog_compiler_wl_F77='-Wl,';;
13035 lt_prog_compiler_wl_F77='-Qoption ld '
13036 lt_prog_compiler_pic_F77='-PIC'
13037 lt_prog_compiler_static_F77='-Bstatic'
13040 sysv4 | sysv4.2uw2* | sysv4.3*)
13041 lt_prog_compiler_wl_F77='-Wl,'
13042 lt_prog_compiler_pic_F77='-KPIC'
13043 lt_prog_compiler_static_F77='-Bstatic'
13047 if test -d /usr/nec ;then
13048 lt_prog_compiler_pic_F77='-Kconform_pic'
13049 lt_prog_compiler_static_F77='-Bstatic'
13053 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13054 lt_prog_compiler_wl_F77='-Wl,'
13055 lt_prog_compiler_pic_F77='-KPIC'
13056 lt_prog_compiler_static_F77='-Bstatic'
13060 lt_prog_compiler_wl_F77='-Wl,'
13061 lt_prog_compiler_can_build_shared_F77=no
13065 lt_prog_compiler_pic_F77='-pic'
13066 lt_prog_compiler_static_F77='-Bstatic'
13070 lt_prog_compiler_can_build_shared_F77=no
13075 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13076 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13079 # Check to make sure the PIC flag actually works.
13081 if test -n "$lt_prog_compiler_pic_F77"; then
13083 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13084 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13085 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 lt_prog_compiler_pic_works_F77=no
13089 ac_outfile=conftest.$ac_objext
13090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13091 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13092 # Insert the option either (1) after the last *FLAGS variable, or
13093 # (2) before a word containing "conftest.", or (3) at the end.
13094 # Note that $ac_compile itself does not contain backslashes and begins
13095 # with a dollar sign (not a hyphen), so the echo should work correctly.
13096 # The option is referenced via a variable to avoid confusing sed.
13097 lt_compile=`echo "$ac_compile" | $SED \
13098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13100 -e 's:$: $lt_compiler_flag:'`
13101 (eval echo "\"\$as_me:13101: $lt_compile\"" >&5)
13102 (eval "$lt_compile" 2>conftest.err)
13104 cat conftest.err >&5
13105 echo "$as_me:13105: \$? = $ac_status" >&5
13106 if (exit $ac_status) && test -s "$ac_outfile"; then
13107 # The compiler can only warn and ignore the option if not recognized
13108 # So say no if there are warnings other than the usual output.
13109 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13110 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13111 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13112 lt_prog_compiler_pic_works_F77=yes
13118 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13119 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13121 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13122 case $lt_prog_compiler_pic_F77 in
13124 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13127 lt_prog_compiler_pic_F77=
13128 lt_prog_compiler_can_build_shared_F77=no
13133 # For platforms which do not support PIC, -DPIC is meaningless:
13135 lt_prog_compiler_pic_F77=
13138 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13143 # Check to make sure the static flag actually works.
13145 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13146 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13147 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13148 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 lt_prog_compiler_static_works_F77=no
13152 save_LDFLAGS="$LDFLAGS"
13153 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13154 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13155 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13156 # The linker can only warn and ignore the option if not recognized
13157 # So say no if there are warnings
13158 if test -s conftest.err; then
13159 # Append any errors to the config.log.
13160 cat conftest.err 1>&5
13161 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13162 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13163 if diff conftest.exp conftest.er2 >/dev/null; then
13164 lt_prog_compiler_static_works_F77=yes
13167 lt_prog_compiler_static_works_F77=yes
13171 LDFLAGS="$save_LDFLAGS"
13174 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13175 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13177 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13180 lt_prog_compiler_static_F77=
13184 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13185 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13186 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 lt_cv_prog_compiler_c_o_F77=no
13190 $rm -r conftest 2>/dev/null
13194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13196 lt_compiler_flag="-o out/conftest2.$ac_objext"
13197 # Insert the option either (1) after the last *FLAGS variable, or
13198 # (2) before a word containing "conftest.", or (3) at the end.
13199 # Note that $ac_compile itself does not contain backslashes and begins
13200 # with a dollar sign (not a hyphen), so the echo should work correctly.
13201 lt_compile=`echo "$ac_compile" | $SED \
13202 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13203 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13204 -e 's:$: $lt_compiler_flag:'`
13205 (eval echo "\"\$as_me:13205: $lt_compile\"" >&5)
13206 (eval "$lt_compile" 2>out/conftest.err)
13208 cat out/conftest.err >&5
13209 echo "$as_me:13209: \$? = $ac_status" >&5
13210 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13212 # The compiler can only warn and ignore the option if not recognized
13213 # So say no if there are warnings
13214 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13215 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13216 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13217 lt_cv_prog_compiler_c_o_F77=yes
13222 # SGI C++ compiler will create directory out/ii_files/ for
13223 # template instantiation
13224 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13225 $rm out/* && rmdir out
13231 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13232 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13235 hard_links="nottested"
13236 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13237 # do not overwrite the value of need_locks provided by the user
13238 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13239 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13242 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13244 ln conftest.a conftest.b 2>&5 || hard_links=no
13245 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13246 echo "$as_me:$LINENO: result: $hard_links" >&5
13247 echo "${ECHO_T}$hard_links" >&6
13248 if test "$hard_links" = no; then
13249 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13250 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13257 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13258 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13261 allow_undefined_flag_F77=
13262 enable_shared_with_static_runtimes_F77=no
13264 archive_expsym_cmds_F77=
13265 old_archive_From_new_cmds_F77=
13266 old_archive_from_expsyms_cmds_F77=
13267 export_dynamic_flag_spec_F77=
13268 whole_archive_flag_spec_F77=
13269 thread_safe_flag_spec_F77=
13270 hardcode_libdir_flag_spec_F77=
13271 hardcode_libdir_flag_spec_ld_F77=
13272 hardcode_libdir_separator_F77=
13273 hardcode_direct_F77=no
13274 hardcode_minus_L_F77=no
13275 hardcode_shlibpath_var_F77=unsupported
13276 link_all_deplibs_F77=unknown
13277 hardcode_automatic_F77=no
13279 module_expsym_cmds_F77=
13280 always_export_symbols_F77=no
13281 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13282 # include_expsyms should be a list of space-separated symbols to be *always*
13283 # included in the symbol list
13284 include_expsyms_F77=
13285 # exclude_expsyms can be an extended regexp of symbols to exclude
13286 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13287 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13288 # as well as any symbol that contains `d'.
13289 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13290 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13291 # platforms (ab)use it in PIC code, but their linkers get confused if
13292 # the symbol is explicitly referenced. Since portable code cannot
13293 # rely on this symbol name, it's probably fine to never include it in
13294 # preloaded symbol tables.
13295 extract_expsyms_cmds=
13296 # Just being paranoid about ensuring that cc_basename is set.
13297 for cc_temp in $compiler""; do
13299 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13300 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13305 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13308 cygwin* | mingw* | pw32*)
13309 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13310 # When not using gcc, we currently assume that we are using
13311 # Microsoft Visual C++.
13312 if test "$GCC" != yes; then
13317 # we just hope/assume this is gcc and not c89 (= MSVC++)
13326 if test "$with_gnu_ld" = yes; then
13327 # If archive_cmds runs LD, not CC, wlarc should be empty
13330 # Set some defaults for GNU ld with shared library support. These
13331 # are reset later if shared libraries are not supported. Putting them
13332 # here allows them to be overridden if necessary.
13333 runpath_var=LD_RUN_PATH
13334 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13335 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13336 # ancient GNU ld didn't support --whole-archive et. al.
13337 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13338 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13340 whole_archive_flag_spec_F77=
13342 supports_anon_versioning=no
13343 case `$LD -v 2>/dev/null` in
13344 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13345 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13346 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13347 *\ 2.11.*) ;; # other 2.11 versions
13348 *) supports_anon_versioning=yes ;;
13351 # See if GNU ld supports shared libraries.
13353 aix3* | aix4* | aix5*)
13354 # On AIX/PPC, the GNU linker is very broken
13355 if test "$host_cpu" != ia64; then
13359 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13360 *** to be unable to reliably create shared libraries on AIX.
13361 *** Therefore, libtool is disabling shared libraries support. If you
13362 *** really care for shared libraries, you may want to modify your PATH
13363 *** so that a non-GNU linker is found, and then restart.
13370 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)'
13371 hardcode_libdir_flag_spec_F77='-L$libdir'
13372 hardcode_minus_L_F77=yes
13374 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13375 # that the semantics of dynamic libraries on AmigaOS, at least up
13376 # to version 4, is to share data among multiple programs linked
13377 # with the same dynamic library. Since this doesn't match the
13378 # behavior of shared libraries on other platforms, we can't use
13384 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13385 allow_undefined_flag_F77=unsupported
13386 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13387 # support --undefined. This deserves some investigation. FIXME
13388 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13394 cygwin* | mingw* | pw32*)
13395 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13396 # as there is no search path for DLLs.
13397 hardcode_libdir_flag_spec_F77='-L$libdir'
13398 allow_undefined_flag_F77=unsupported
13399 always_export_symbols_F77=no
13400 enable_shared_with_static_runtimes_F77=yes
13401 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13403 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13404 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13405 # If the export-symbols file already is a .def file (1st line
13406 # is EXPORTS), use it as is; otherwise, prepend...
13407 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13408 cp $export_symbols $output_objdir/$soname.def;
13410 echo EXPORTS > $output_objdir/$soname.def;
13411 cat $export_symbols >> $output_objdir/$soname.def;
13413 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13420 hardcode_direct_F77=no
13421 hardcode_shlibpath_var_F77=no
13422 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13423 export_dynamic_flag_spec_F77='${wl}-E'
13424 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13425 # Instead, shared libraries are loaded at an image base (0x10000000 by
13426 # default) and relocated if they conflict, which is a slow very memory
13427 # consuming and fragmenting process. To avoid this, we pick a random,
13428 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13429 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13430 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13431 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13435 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13437 case $cc_basename,$host_cpu in
13438 pgcc*) # Portland Group C compiler
13439 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13440 tmp_addflag=' $pic_flag'
13442 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13443 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13444 tmp_addflag=' $pic_flag -Mnomain' ;;
13445 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13446 tmp_addflag=' -i_dynamic' ;;
13447 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13448 tmp_addflag=' -i_dynamic -nofor_main' ;;
13449 ifc* | ifort*) # Intel Fortran compiler
13450 tmp_addflag=' -nofor_main' ;;
13452 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13454 if test $supports_anon_versioning = yes; then
13455 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13456 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13457 $echo "local: *; };" >> $output_objdir/$libname.ver~
13458 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13466 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13467 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13470 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13471 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13476 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13480 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13481 *** create shared libraries on Solaris systems. Therefore, libtool
13482 *** is disabling shared libraries support. We urge you to upgrade GNU
13483 *** binutils to release 2.9.1 or newer. Another option is to modify
13484 *** your PATH or compiler configuration so that the native linker is
13485 *** used, and then restart.
13488 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13489 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13490 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13496 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13497 case `$LD -v 2>&1` in
13498 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13502 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13503 *** reliably create shared libraries on SCO systems. Therefore, libtool
13504 *** is disabling shared libraries support. We urge you to upgrade GNU
13505 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13506 *** your PATH or compiler configuration so that the native linker is
13507 *** used, and then restart.
13512 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13513 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13514 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13515 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13524 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13526 hardcode_direct_F77=yes
13527 hardcode_shlibpath_var_F77=no
13531 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13532 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13533 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13540 if test "$ld_shlibs_F77" = no; then
13542 hardcode_libdir_flag_spec_F77=
13543 export_dynamic_flag_spec_F77=
13544 whole_archive_flag_spec_F77=
13547 # PORTME fill in a description of your system's linker (not GNU ld)
13550 allow_undefined_flag_F77=unsupported
13551 always_export_symbols_F77=yes
13552 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'
13553 # Note: this linker hardcodes the directories in LIBPATH if there
13554 # are no directories specified by -L.
13555 hardcode_minus_L_F77=yes
13556 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13557 # Neither direct hardcoding nor static linking is supported with a
13559 hardcode_direct_F77=unsupported
13564 if test "$host_cpu" = ia64; then
13565 # On IA64, the linker does run time linking by default, so we don't
13566 # have to do anything special.
13567 aix_use_runtimelinking=no
13568 exp_sym_flag='-Bexport'
13571 # If we're using GNU nm, then we don't want the "-C" option.
13572 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13573 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13574 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'
13576 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'
13578 aix_use_runtimelinking=no
13580 # Test if we are trying to use run time linking or normal
13581 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13582 # need to do runtime linking.
13583 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13584 for ld_flag in $LDFLAGS; do
13585 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13586 aix_use_runtimelinking=yes
13593 exp_sym_flag='-bexport'
13594 no_entry_flag='-bnoentry'
13597 # When large executables or shared objects are built, AIX ld can
13598 # have problems creating the table of contents. If linking a library
13599 # or program results in "error TOC overflow" add -mminimal-toc to
13600 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13601 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13603 archive_cmds_F77=''
13604 hardcode_direct_F77=yes
13605 hardcode_libdir_separator_F77=':'
13606 link_all_deplibs_F77=yes
13608 if test "$GCC" = yes; then
13609 case $host_os in aix4.[012]|aix4.[012].*)
13610 # We only want to do this on AIX 4.2 and lower, the check
13611 # below for broken collect2 doesn't work under 4.3+
13612 collect2name=`${CC} -print-prog-name=collect2`
13613 if test -f "$collect2name" && \
13614 strings "$collect2name" | grep resolve_lib_name >/dev/null
13616 # We have reworked collect2
13617 hardcode_direct_F77=yes
13619 # We have old collect2
13620 hardcode_direct_F77=unsupported
13621 # It fails to find uninstalled libraries when the uninstalled
13622 # path is not listed in the libpath. Setting hardcode_minus_L
13623 # to unsupported forces relinking
13624 hardcode_minus_L_F77=yes
13625 hardcode_libdir_flag_spec_F77='-L$libdir'
13626 hardcode_libdir_separator_F77=
13630 shared_flag='-shared'
13631 if test "$aix_use_runtimelinking" = yes; then
13632 shared_flag="$shared_flag "'${wl}-G'
13636 if test "$host_cpu" = ia64; then
13637 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13638 # chokes on -Wl,-G. The following line is correct:
13641 if test "$aix_use_runtimelinking" = yes; then
13642 shared_flag='${wl}-G'
13644 shared_flag='${wl}-bM:SRE'
13649 # It seems that -bexpall does not export symbols beginning with
13650 # underscore (_), so it is better to generate a list of symbols to export.
13651 always_export_symbols_F77=yes
13652 if test "$aix_use_runtimelinking" = yes; then
13653 # Warning - without using the other runtime loading flags (-brtl),
13654 # -berok will link without error, but may produce a broken library.
13655 allow_undefined_flag_F77='-berok'
13656 # Determine the default libpath from the value encoded in an empty executable.
13657 cat >conftest.$ac_ext <<_ACEOF
13662 rm -f conftest.$ac_objext conftest$ac_exeext
13663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13664 (eval $ac_link) 2>conftest.er1
13666 grep -v '^ *+' conftest.er1 >conftest.err
13668 cat conftest.err >&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); } &&
13671 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; } &&
13677 { ac_try='test -s conftest$ac_exeext'
13678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13679 (eval $ac_try) 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13684 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13686 # Check for a 64-bit object if we didn't find anything.
13687 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; }
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13694 rm -f conftest.err conftest.$ac_objext \
13695 conftest$ac_exeext conftest.$ac_ext
13696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13698 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13699 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13701 if test "$host_cpu" = ia64; then
13702 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13703 allow_undefined_flag_F77="-z nodefs"
13704 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13706 # Determine the default libpath from the value encoded in an empty executable.
13707 cat >conftest.$ac_ext <<_ACEOF
13712 rm -f conftest.$ac_objext conftest$ac_exeext
13713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13714 (eval $ac_link) 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13723 (eval $ac_try) 2>&5
13725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13726 (exit $ac_status); }; } &&
13727 { ac_try='test -s conftest$ac_exeext'
13728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13729 (eval $ac_try) 2>&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); }; }; then
13734 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13736 # Check for a 64-bit object if we didn't find anything.
13737 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; }
13740 echo "$as_me: failed program was:" >&5
13741 sed 's/^/| /' conftest.$ac_ext >&5
13744 rm -f conftest.err conftest.$ac_objext \
13745 conftest$ac_exeext conftest.$ac_ext
13746 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13748 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13749 # Warning - without using the other run time loading flags,
13750 # -berok will link without error, but may produce a broken library.
13751 no_undefined_flag_F77=' ${wl}-bernotok'
13752 allow_undefined_flag_F77=' ${wl}-berok'
13753 # Exported symbols can be pulled into shared objects from archives
13754 whole_archive_flag_spec_F77='$convenience'
13755 archive_cmds_need_lc_F77=yes
13756 # This is similar to how AIX traditionally builds its shared libraries.
13757 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13763 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)'
13764 hardcode_libdir_flag_spec_F77='-L$libdir'
13765 hardcode_minus_L_F77=yes
13766 # see comment about different semantics on the GNU ld section
13771 export_dynamic_flag_spec_F77=-rdynamic
13774 cygwin* | mingw* | pw32*)
13775 # When not using gcc, we currently assume that we are using
13776 # Microsoft Visual C++.
13777 # hardcode_libdir_flag_spec is actually meaningless, as there is
13778 # no search path for DLLs.
13779 hardcode_libdir_flag_spec_F77=' '
13780 allow_undefined_flag_F77=unsupported
13781 # Tell ltmain to make .lib files, not .a files.
13783 # Tell ltmain to make .dll files, not .so files.
13785 # FIXME: Setting linknames here is a bad hack.
13786 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13787 # The linker will automatically build a .lib file if we build a DLL.
13788 old_archive_From_new_cmds_F77='true'
13789 # FIXME: Should let the user specify the lib program.
13790 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13791 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13792 enable_shared_with_static_runtimes_F77=yes
13795 darwin* | rhapsody*)
13797 rhapsody* | darwin1.[012])
13798 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13801 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13802 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13804 case ${MACOSX_DEPLOYMENT_TARGET} in
13806 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13809 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13815 archive_cmds_need_lc_F77=no
13816 hardcode_direct_F77=no
13817 hardcode_automatic_F77=yes
13818 hardcode_shlibpath_var_F77=unsupported
13819 whole_archive_flag_spec_F77=''
13820 link_all_deplibs_F77=yes
13821 if test "$GCC" = yes ; then
13822 output_verbose_link_cmd='echo'
13823 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13824 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13825 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13826 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13827 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}'
13829 case $cc_basename in
13831 output_verbose_link_cmd='echo'
13832 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13833 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13834 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13835 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13836 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}'
13846 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13847 hardcode_libdir_flag_spec_F77='-L$libdir'
13848 hardcode_shlibpath_var_F77=no
13855 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13856 # support. Future versions do this automatically, but an explicit c++rt0.o
13857 # does not break anything, and helps significantly (at the cost of a little
13860 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13861 hardcode_libdir_flag_spec_F77='-R$libdir'
13862 hardcode_direct_F77=yes
13863 hardcode_shlibpath_var_F77=no
13866 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13868 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13869 hardcode_direct_F77=yes
13870 hardcode_minus_L_F77=yes
13871 hardcode_shlibpath_var_F77=no
13874 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13875 freebsd* | kfreebsd*-gnu | dragonfly*)
13876 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13877 hardcode_libdir_flag_spec_F77='-R$libdir'
13878 hardcode_direct_F77=yes
13879 hardcode_shlibpath_var_F77=no
13883 if test "$GCC" = yes; then
13884 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'
13886 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'
13888 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13889 hardcode_libdir_separator_F77=:
13890 hardcode_direct_F77=yes
13892 # hardcode_minus_L: Not really in the search PATH,
13893 # but as the default location of the library.
13894 hardcode_minus_L_F77=yes
13895 export_dynamic_flag_spec_F77='${wl}-E'
13899 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13900 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13902 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13904 if test "$with_gnu_ld" = no; then
13905 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13906 hardcode_libdir_separator_F77=:
13908 hardcode_direct_F77=yes
13909 export_dynamic_flag_spec_F77='${wl}-E'
13911 # hardcode_minus_L: Not really in the search PATH,
13912 # but as the default location of the library.
13913 hardcode_minus_L_F77=yes
13918 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13921 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13924 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13927 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13933 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13936 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13939 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13943 if test "$with_gnu_ld" = no; then
13944 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13945 hardcode_libdir_separator_F77=:
13949 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13950 hardcode_direct_F77=no
13951 hardcode_shlibpath_var_F77=no
13954 hardcode_direct_F77=yes
13955 export_dynamic_flag_spec_F77='${wl}-E'
13957 # hardcode_minus_L: Not really in the search PATH,
13958 # but as the default location of the library.
13959 hardcode_minus_L_F77=yes
13965 irix5* | irix6* | nonstopux*)
13966 if test "$GCC" = yes; then
13967 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'
13969 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'
13970 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13972 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13973 hardcode_libdir_separator_F77=:
13974 link_all_deplibs_F77=yes
13978 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13979 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13981 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13983 hardcode_libdir_flag_spec_F77='-R$libdir'
13984 hardcode_direct_F77=yes
13985 hardcode_shlibpath_var_F77=no
13989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13990 hardcode_direct_F77=yes
13991 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13992 hardcode_libdir_separator_F77=:
13993 hardcode_shlibpath_var_F77=no
13997 hardcode_direct_F77=yes
13998 hardcode_shlibpath_var_F77=no
13999 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14000 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14001 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14002 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14003 export_dynamic_flag_spec_F77='${wl}-E'
14006 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14008 hardcode_libdir_flag_spec_F77='-R$libdir'
14011 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14012 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14019 hardcode_libdir_flag_spec_F77='-L$libdir'
14020 hardcode_minus_L_F77=yes
14021 allow_undefined_flag_F77=unsupported
14022 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'
14023 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14027 if test "$GCC" = yes; then
14028 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14029 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'
14031 allow_undefined_flag_F77=' -expect_unresolved \*'
14032 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'
14034 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14035 hardcode_libdir_separator_F77=:
14038 osf4* | osf5*) # as osf3* with the addition of -msym flag
14039 if test "$GCC" = yes; then
14040 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14041 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'
14042 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14044 allow_undefined_flag_F77=' -expect_unresolved \*'
14045 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'
14046 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~
14047 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14049 # Both c and cxx compiler support -rpath directly
14050 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14052 hardcode_libdir_separator_F77=:
14056 no_undefined_flag_F77=' -z text'
14057 if test "$GCC" = yes; then
14059 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14061 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14064 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14065 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14068 hardcode_libdir_flag_spec_F77='-R$libdir'
14069 hardcode_shlibpath_var_F77=no
14071 solaris2.[0-5] | solaris2.[0-5].*) ;;
14073 # The compiler driver will combine linker options so we
14074 # cannot just pass the convience library names through
14075 # without $wl, iff we do not link with $LD.
14076 # Luckily, gcc supports the same syntax we need for Sun Studio.
14077 # Supported since Solaris 2.6 (maybe 2.5.1?)
14080 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14082 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14085 link_all_deplibs_F77=yes
14089 if test "x$host_vendor" = xsequent; then
14090 # Use $CC to link under sequent, because it throws in some extra .o
14091 # files that make .init and .fini sections work.
14092 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14094 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14096 hardcode_libdir_flag_spec_F77='-L$libdir'
14097 hardcode_direct_F77=yes
14098 hardcode_minus_L_F77=yes
14099 hardcode_shlibpath_var_F77=no
14103 case $host_vendor in
14105 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14106 hardcode_direct_F77=yes # is this really true???
14109 ## LD is ld it makes a PLAMLIB
14110 ## CC just makes a GrossModule.
14111 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14112 reload_cmds_F77='$CC -r -o $output$reload_objs'
14113 hardcode_direct_F77=no
14116 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14117 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14120 runpath_var='LD_RUN_PATH'
14121 hardcode_shlibpath_var_F77=no
14125 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14126 hardcode_shlibpath_var_F77=no
14127 export_dynamic_flag_spec_F77='-Bexport'
14131 if test -d /usr/nec; then
14132 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14133 hardcode_shlibpath_var_F77=no
14134 runpath_var=LD_RUN_PATH
14135 hardcode_runpath_var=yes
14140 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14141 no_undefined_flag_F77='${wl}-z,text'
14142 archive_cmds_need_lc_F77=no
14143 hardcode_shlibpath_var_F77=no
14144 runpath_var='LD_RUN_PATH'
14146 if test "$GCC" = yes; then
14147 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14148 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14150 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14151 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14155 sysv5* | sco3.2v5* | sco5v6*)
14156 # Note: We can NOT use -z defs as we might desire, because we do not
14157 # link with -lc, and that would cause any symbols used from libc to
14158 # always be unresolved, which means just about no library would
14159 # ever link correctly. If we're not using GNU ld we use -z text
14160 # though, which does catch some bad symbols but isn't as heavy-handed
14162 no_undefined_flag_F77='${wl}-z,text'
14163 allow_undefined_flag_F77='${wl}-z,nodefs'
14164 archive_cmds_need_lc_F77=no
14165 hardcode_shlibpath_var_F77=no
14166 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14167 hardcode_libdir_separator_F77=':'
14168 link_all_deplibs_F77=yes
14169 export_dynamic_flag_spec_F77='${wl}-Bexport'
14170 runpath_var='LD_RUN_PATH'
14172 if test "$GCC" = yes; then
14173 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14174 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14176 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14177 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_libdir_flag_spec_F77='-L$libdir'
14184 hardcode_shlibpath_var_F77=no
14193 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14194 echo "${ECHO_T}$ld_shlibs_F77" >&6
14195 test "$ld_shlibs_F77" = no && can_build_shared=no
14198 # Do we need to explicitly link libc?
14200 case "x$archive_cmds_need_lc_F77" in
14202 # Assume -lc should be added
14203 archive_cmds_need_lc_F77=yes
14205 if test "$enable_shared" = yes && test "$GCC" = yes; then
14206 case $archive_cmds_F77 in
14208 # FIXME: we may have to deal with multi-command sequences.
14211 # Test whether the compiler implicitly links with -lc since on some
14212 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14213 # to ld, don't add -lc before -lgcc.
14214 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14215 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14217 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14219 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14220 (eval $ac_compile) 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); } 2>conftest.err; then
14226 libobjs=conftest.$ac_objext
14228 wl=$lt_prog_compiler_wl_F77
14229 pic_flag=$lt_prog_compiler_pic_F77
14235 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14236 allow_undefined_flag_F77=
14237 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14238 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14241 (exit $ac_status); }
14243 archive_cmds_need_lc_F77=no
14245 archive_cmds_need_lc_F77=yes
14247 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14249 cat conftest.err 1>&5
14252 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14253 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14260 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14261 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14262 library_names_spec=
14263 libname_spec='lib$name'
14267 postuninstall_cmds=
14271 shlibpath_overrides_runpath=unknown
14273 dynamic_linker="$host_os ld.so"
14274 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14275 if test "$GCC" = yes; then
14276 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14277 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14278 # if the path contains ";" then we assume it to be the separator
14279 # otherwise default to the standard path separator (i.e. ":") - it is
14280 # assumed that no part of a normal pathname contains ";" but that should
14281 # okay in the real world where ";" in dirpaths is itself problematic.
14282 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14284 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14287 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14289 need_lib_prefix=unknown
14290 hardcode_into_libs=no
14292 # when you set need_version to no, make sure it does not cause -set_version
14293 # flags to be left without arguments
14294 need_version=unknown
14299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14300 shlibpath_var=LIBPATH
14302 # AIX 3 has no versioning support, so we append a major version to the name.
14303 soname_spec='${libname}${release}${shared_ext}$major'
14310 hardcode_into_libs=yes
14311 if test "$host_cpu" = ia64; then
14312 # AIX 5 supports IA64
14313 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14314 shlibpath_var=LD_LIBRARY_PATH
14316 # With GCC up to 2.95.x, collect2 would create an import file
14317 # for dependence libraries. The import file would start with
14318 # the line `#! .'. This would cause the generated library to
14319 # depend on `.', always an invalid library. This was fixed in
14320 # development snapshots of GCC prior to 3.0.
14322 aix4 | aix4.[01] | aix4.[01].*)
14323 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14325 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14328 can_build_shared=no
14332 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14333 # soname into executable. Probably we can add versioning support to
14334 # collect2, so additional links can be useful in future.
14335 if test "$aix_use_runtimelinking" = yes; then
14336 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14337 # instead of lib<name>.a to let people know that these are not
14338 # typical AIX shared libraries.
14339 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14341 # We preserve .a as extension for shared libraries through AIX4.2
14342 # and later when we are not doing run time linking.
14343 library_names_spec='${libname}${release}.a $libname.a'
14344 soname_spec='${libname}${release}${shared_ext}$major'
14346 shlibpath_var=LIBPATH
14351 library_names_spec='$libname.ixlibrary $libname.a'
14352 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14353 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'
14357 library_names_spec='${libname}${shared_ext}'
14358 dynamic_linker="$host_os ld.so"
14359 shlibpath_var=LIBRARY_PATH
14365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14366 soname_spec='${libname}${release}${shared_ext}$major'
14367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14368 shlibpath_var=LD_LIBRARY_PATH
14369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14371 # the default ld.so.conf also contains /usr/contrib/lib and
14372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14373 # libtool to hard-code these into programs
14376 cygwin* | mingw* | pw32*)
14377 version_type=windows
14382 case $GCC,$host_os in
14383 yes,cygwin* | yes,mingw* | yes,pw32*)
14384 library_names_spec='$libname.dll.a'
14385 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14386 postinstall_cmds='base_file=`basename \${file}`~
14387 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14388 dldir=$destdir/`dirname \$dlpath`~
14389 test -d \$dldir || mkdir -p \$dldir~
14390 $install_prog $dir/$dlname \$dldir/$dlname~
14391 chmod a+x \$dldir/$dlname'
14392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14393 dlpath=$dir/\$dldll~
14395 shlibpath_overrides_runpath=yes
14399 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14401 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14404 # MinGW DLLs use traditional 'lib' prefix
14405 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14406 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14407 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14408 # It is most probably a Windows format PATH printed by
14409 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14410 # path with ; separators, and with drive letters. We can handle the
14411 # drive letters (cygwin fileutils understands them), so leave them,
14412 # especially as we might pass files found there to a mingw objdump,
14413 # which wouldn't understand a cygwinified path. Ahh.
14414 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14420 # pw32 DLLs use 'pw' prefix rather than 'lib'
14421 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14427 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14430 dynamic_linker='Win32 ld.exe'
14431 # FIXME: first we should search . and the directory the executable is in
14435 darwin* | rhapsody*)
14436 dynamic_linker="$host_os dyld"
14437 version_type=darwin
14440 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14441 soname_spec='${libname}${release}${major}$shared_ext'
14442 shlibpath_overrides_runpath=yes
14443 shlibpath_var=DYLD_LIBRARY_PATH
14444 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14445 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14446 if test "$GCC" = yes; then
14447 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"`
14449 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14451 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14459 soname_spec='${libname}${release}${shared_ext}$major'
14460 shlibpath_var=LD_LIBRARY_PATH
14471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14472 soname_spec='${libname}${release}${shared_ext}$major'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=no
14475 hardcode_into_libs=yes
14476 dynamic_linker='GNU ld.so'
14479 freebsd* | dragonfly*)
14480 # DragonFly does not have aout. When/if they implement a new
14481 # versioning mechanism, adjust this.
14482 if test -x /usr/bin/objformat; then
14483 objformat=`/usr/bin/objformat`
14486 freebsd[123]*) objformat=aout ;;
14487 *) objformat=elf ;;
14490 version_type=freebsd-$objformat
14491 case $version_type in
14493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14498 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14502 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=yes
14507 freebsd3.[01]* | freebsdelf3.[01]*)
14508 shlibpath_overrides_runpath=yes
14509 hardcode_into_libs=yes
14511 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14512 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14513 shlibpath_overrides_runpath=no
14514 hardcode_into_libs=yes
14516 freebsd*) # from 4.6 on
14517 shlibpath_overrides_runpath=yes
14518 hardcode_into_libs=yes
14527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14528 soname_spec='${libname}${release}${shared_ext}$major'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 hardcode_into_libs=yes
14533 hpux9* | hpux10* | hpux11*)
14534 # Give a soname corresponding to the major version so that dld.sl refuses to
14535 # link against other versions.
14542 hardcode_into_libs=yes
14543 dynamic_linker="$host_os dld.so"
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14546 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14547 soname_spec='${libname}${release}${shared_ext}$major'
14548 if test "X$HPUX_IA64_MODE" = X32; then
14549 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14551 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14553 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14557 hardcode_into_libs=yes
14558 dynamic_linker="$host_os dld.sl"
14559 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14564 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14568 dynamic_linker="$host_os dld.sl"
14569 shlibpath_var=SHLIB_PATH
14570 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14572 soname_spec='${libname}${release}${shared_ext}$major'
14575 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14576 postinstall_cmds='chmod 555 $lib'
14583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14584 soname_spec='${libname}${release}${shared_ext}$major'
14585 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14586 shlibpath_var=LD_LIBRARY_PATH
14587 shlibpath_overrides_runpath=no
14588 hardcode_into_libs=yes
14591 irix5* | irix6* | nonstopux*)
14593 nonstopux*) version_type=nonstopux ;;
14595 if test "$lt_cv_prog_gnu_ld" = yes; then
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14606 irix5* | nonstopux*)
14607 libsuff= shlibsuff=
14610 case $LD in # libtool.m4 will add one of these switches to LD
14611 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14612 libsuff= shlibsuff= libmagic=32-bit;;
14613 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14614 libsuff=32 shlibsuff=N32 libmagic=N32;;
14615 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14616 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14617 *) libsuff= shlibsuff= libmagic=never-match;;
14621 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14622 shlibpath_overrides_runpath=no
14623 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14624 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14625 hardcode_into_libs=yes
14628 # No shared lib support for Linux oldld, aout, or coff.
14629 linux*oldld* | linux*aout* | linux*coff*)
14633 # This must be Linux ELF.
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 # This implies no fast_install, which is unacceptable.
14644 # Some rework will be needed to allow for fast_install
14645 # before this can be enabled.
14646 hardcode_into_libs=yes
14648 # Append ld.so.conf contents to the search path
14649 if test -f /etc/ld.so.conf; then
14650 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14651 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14654 # We used to test for /lib/ld.so.1 and disable shared libraries on
14655 # powerpc, because MkLinux only supported shared libraries with the
14656 # GNU dynamic linker. Since this was broken with cross compilers,
14657 # most powerpc-linux boxes support dynamic linking these days and
14658 # people can always --disable-shared, the test was removed, and we
14659 # assume the GNU/Linux dynamic linker is in use.
14660 dynamic_linker='GNU/Linux ld.so'
14667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14668 soname_spec='${libname}${release}${shared_ext}$major'
14669 shlibpath_var=LD_LIBRARY_PATH
14670 shlibpath_overrides_runpath=no
14671 hardcode_into_libs=yes
14672 dynamic_linker='GNU ld.so'
14679 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14681 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14682 dynamic_linker='NetBSD (a.out) ld.so'
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14685 soname_spec='${libname}${release}${shared_ext}$major'
14686 dynamic_linker='NetBSD ld.elf_so'
14688 shlibpath_var=LD_LIBRARY_PATH
14689 shlibpath_overrides_runpath=yes
14690 hardcode_into_libs=yes
14695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705 soname_spec='${libname}${release}${shared_ext}$major'
14706 shlibpath_var=LD_LIBRARY_PATH
14707 shlibpath_overrides_runpath=yes
14712 sys_lib_dlsearch_path_spec="/usr/lib"
14714 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14716 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14717 *) need_version=no ;;
14719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14724 openbsd2.[89] | openbsd2.[89].*)
14725 shlibpath_overrides_runpath=no
14728 shlibpath_overrides_runpath=yes
14732 shlibpath_overrides_runpath=yes
14737 libname_spec='$name'
14740 library_names_spec='$libname${shared_ext} $libname.a'
14741 dynamic_linker='OS/2 ld.exe'
14742 shlibpath_var=LIBPATH
14745 osf3* | osf4* | osf5*)
14749 soname_spec='${libname}${release}${shared_ext}$major'
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14751 shlibpath_var=LD_LIBRARY_PATH
14752 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14753 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14761 soname_spec='${libname}${release}${shared_ext}$major'
14762 shlibpath_var=LD_LIBRARY_PATH
14763 shlibpath_overrides_runpath=yes
14764 hardcode_into_libs=yes
14765 # ldd complains unless libraries are executable
14766 postinstall_cmds='chmod +x $lib'
14771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=yes
14775 if test "$with_gnu_ld" = yes; then
14783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14784 soname_spec='${libname}${release}${shared_ext}$major'
14785 shlibpath_var=LD_LIBRARY_PATH
14786 case $host_vendor in
14788 shlibpath_overrides_runpath=no
14790 export_dynamic_flag_spec='${wl}-Blargedynsym'
14791 runpath_var=LD_RUN_PATH
14799 shlibpath_overrides_runpath=no
14800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14806 if test -d /usr/nec ;then
14808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14809 soname_spec='$libname${shared_ext}.$major'
14810 shlibpath_var=LD_LIBRARY_PATH
14814 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14815 version_type=freebsd-elf
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 hardcode_into_libs=yes
14822 if test "$with_gnu_ld" = yes; then
14823 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14824 shlibpath_overrides_runpath=no
14826 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14827 shlibpath_overrides_runpath=yes
14830 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14834 sys_lib_dlsearch_path_spec='/usr/lib'
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14848 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14849 echo "${ECHO_T}$dynamic_linker" >&6
14850 test "$dynamic_linker" = no && can_build_shared=no
14852 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14853 if test "$GCC" = yes; then
14854 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14857 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14858 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14859 hardcode_action_F77=
14860 if test -n "$hardcode_libdir_flag_spec_F77" || \
14861 test -n "$runpath_var_F77" || \
14862 test "X$hardcode_automatic_F77" = "Xyes" ; then
14864 # We can hardcode non-existant directories.
14865 if test "$hardcode_direct_F77" != no &&
14866 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14867 # have to relink, otherwise we might link with an installed library
14868 # when we should be linking with a yet-to-be-installed one
14869 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14870 test "$hardcode_minus_L_F77" != no; then
14871 # Linking always hardcodes the temporary library directory.
14872 hardcode_action_F77=relink
14874 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14875 hardcode_action_F77=immediate
14878 # We cannot hardcode anything, or else we can only hardcode existing
14880 hardcode_action_F77=unsupported
14882 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14883 echo "${ECHO_T}$hardcode_action_F77" >&6
14885 if test "$hardcode_action_F77" = relink; then
14886 # Fast installation is not supported
14887 enable_fast_install=no
14888 elif test "$shlibpath_overrides_runpath" = yes ||
14889 test "$enable_shared" = no; then
14890 # Fast installation is not necessary
14891 enable_fast_install=needless
14895 # The else clause should only fire when bootstrapping the
14896 # libtool distribution, otherwise you forgot to ship ltmain.sh
14897 # with your package, and you will get complaints that there are
14898 # no rules to generate ltmain.sh.
14899 if test -f "$ltmain"; then
14900 # See if we are running on zsh, and set the options which allow our commands through
14901 # without removal of \ escapes.
14902 if test -n "${ZSH_VERSION+set}" ; then
14903 setopt NO_GLOB_SUBST
14905 # Now quote all the things that may contain metacharacters while being
14906 # careful not to overquote the AC_SUBSTed values. We take copies of the
14907 # variables and quote the copies for generation of the libtool script.
14908 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14910 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14911 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14912 deplibs_check_method reload_flag reload_cmds need_locks \
14913 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14914 lt_cv_sys_global_symbol_to_c_name_address \
14915 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14916 old_postinstall_cmds old_postuninstall_cmds \
14920 lt_prog_compiler_wl_F77 \
14921 lt_prog_compiler_pic_F77 \
14922 lt_prog_compiler_static_F77 \
14923 lt_prog_compiler_no_builtin_flag_F77 \
14924 export_dynamic_flag_spec_F77 \
14925 thread_safe_flag_spec_F77 \
14926 whole_archive_flag_spec_F77 \
14927 enable_shared_with_static_runtimes_F77 \
14928 old_archive_cmds_F77 \
14929 old_archive_from_new_cmds_F77 \
14930 predep_objects_F77 \
14931 postdep_objects_F77 \
14934 compiler_lib_search_path_F77 \
14936 archive_expsym_cmds_F77 \
14937 postinstall_cmds_F77 \
14938 postuninstall_cmds_F77 \
14939 old_archive_from_expsyms_cmds_F77 \
14940 allow_undefined_flag_F77 \
14941 no_undefined_flag_F77 \
14942 export_symbols_cmds_F77 \
14943 hardcode_libdir_flag_spec_F77 \
14944 hardcode_libdir_flag_spec_ld_F77 \
14945 hardcode_libdir_separator_F77 \
14946 hardcode_automatic_F77 \
14948 module_expsym_cmds_F77 \
14949 lt_cv_prog_compiler_c_o_F77 \
14950 exclude_expsyms_F77 \
14951 include_expsyms_F77; do
14954 old_archive_cmds_F77 | \
14955 old_archive_from_new_cmds_F77 | \
14956 archive_cmds_F77 | \
14957 archive_expsym_cmds_F77 | \
14958 module_cmds_F77 | \
14959 module_expsym_cmds_F77 | \
14960 old_archive_from_expsyms_cmds_F77 | \
14961 export_symbols_cmds_F77 | \
14962 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14963 postinstall_cmds | postuninstall_cmds | \
14964 old_postinstall_cmds | old_postuninstall_cmds | \
14965 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14966 # Double-quote double-evaled strings.
14967 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14970 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14976 *'\$0 --fallback-echo"')
14977 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14983 cat <<__EOF__ >> "$cfgfile"
14984 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14988 # Shell to use when invoking shell scripts.
14991 # Whether or not to build shared libraries.
14992 build_libtool_libs=$enable_shared
14994 # Whether or not to build static libraries.
14995 build_old_libs=$enable_static
14997 # Whether or not to add -lc for building shared libraries.
14998 build_libtool_need_lc=$archive_cmds_need_lc_F77
15000 # Whether or not to disallow shared libs when runtime libs are static
15001 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15003 # Whether or not to optimize for fast installation.
15004 fast_install=$enable_fast_install
15007 host_alias=$host_alias
15011 # The build system.
15012 build_alias=$build_alias
15016 # An echo program that does not interpret backslashes.
15021 AR_FLAGS=$lt_AR_FLAGS
15026 # LTCC compiler flags.
15027 LTCFLAGS=$lt_LTCFLAGS
15029 # A language-specific compiler.
15030 CC=$lt_compiler_F77
15032 # Is the compiler the GNU C compiler?
15038 # The linker used to build libraries.
15041 # Whether we need hard or soft links.
15044 # A BSD-compatible nm program.
15047 # A symbol stripping program
15050 # Used to examine libraries when file_magic_cmd begins "file"
15051 MAGIC_CMD=$MAGIC_CMD
15053 # Used on cygwin: DLL creation program.
15056 # Used on cygwin: object dumper.
15059 # Used on cygwin: assembler.
15062 # The name of the directory that contains temporary libtool files.
15065 # How to create reloadable object files.
15066 reload_flag=$lt_reload_flag
15067 reload_cmds=$lt_reload_cmds
15069 # How to pass a linker flag through the compiler.
15070 wl=$lt_lt_prog_compiler_wl_F77
15072 # Object file suffix (normally "o").
15073 objext="$ac_objext"
15075 # Old archive suffix (normally "a").
15078 # Shared library suffix (normally ".so").
15079 shrext_cmds='$shrext_cmds'
15081 # Executable file suffix (normally "").
15084 # Additional compiler flags for building library objects.
15085 pic_flag=$lt_lt_prog_compiler_pic_F77
15088 # What is the maximum length of a command?
15089 max_cmd_len=$lt_cv_sys_max_cmd_len
15091 # Does compiler simultaneously support -c and -o options?
15092 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15094 # Must we lock files when doing compilation?
15095 need_locks=$lt_need_locks
15097 # Do we need the lib prefix for modules?
15098 need_lib_prefix=$need_lib_prefix
15100 # Do we need a version for libraries?
15101 need_version=$need_version
15103 # Whether dlopen is supported.
15104 dlopen_support=$enable_dlopen
15106 # Whether dlopen of programs is supported.
15107 dlopen_self=$enable_dlopen_self
15109 # Whether dlopen of statically linked programs is supported.
15110 dlopen_self_static=$enable_dlopen_self_static
15112 # Compiler flag to prevent dynamic linking.
15113 link_static_flag=$lt_lt_prog_compiler_static_F77
15115 # Compiler flag to turn off builtin functions.
15116 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15118 # Compiler flag to allow reflexive dlopens.
15119 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15121 # Compiler flag to generate shared objects directly from archives.
15122 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15124 # Compiler flag to generate thread-safe objects.
15125 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15127 # Library versioning type.
15128 version_type=$version_type
15130 # Format of library name prefix.
15131 libname_spec=$lt_libname_spec
15133 # List of archive names. First name is the real one, the rest are links.
15134 # The last name is the one that the linker finds with -lNAME.
15135 library_names_spec=$lt_library_names_spec
15137 # The coded name of the library, if different from the real name.
15138 soname_spec=$lt_soname_spec
15140 # Commands used to build and install an old-style archive.
15142 old_archive_cmds=$lt_old_archive_cmds_F77
15143 old_postinstall_cmds=$lt_old_postinstall_cmds
15144 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15146 # Create an old-style archive from a shared archive.
15147 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15149 # Create a temporary old-style archive to link instead of a shared archive.
15150 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15152 # Commands used to build and install a shared archive.
15153 archive_cmds=$lt_archive_cmds_F77
15154 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15155 postinstall_cmds=$lt_postinstall_cmds
15156 postuninstall_cmds=$lt_postuninstall_cmds
15158 # Commands used to build a loadable module (assumed same as above if empty)
15159 module_cmds=$lt_module_cmds_F77
15160 module_expsym_cmds=$lt_module_expsym_cmds_F77
15162 # Commands to strip libraries.
15163 old_striplib=$lt_old_striplib
15164 striplib=$lt_striplib
15166 # Dependencies to place before the objects being linked to create a
15168 predep_objects=$lt_predep_objects_F77
15170 # Dependencies to place after the objects being linked to create a
15172 postdep_objects=$lt_postdep_objects_F77
15174 # Dependencies to place before the objects being linked to create a
15176 predeps=$lt_predeps_F77
15178 # Dependencies to place after the objects being linked to create a
15180 postdeps=$lt_postdeps_F77
15182 # The library search path used internally by the compiler when linking
15183 # a shared library.
15184 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15186 # Method to check whether dependent libraries are shared objects.
15187 deplibs_check_method=$lt_deplibs_check_method
15189 # Command to use when deplibs_check_method == file_magic.
15190 file_magic_cmd=$lt_file_magic_cmd
15192 # Flag that allows shared libraries with undefined symbols to be built.
15193 allow_undefined_flag=$lt_allow_undefined_flag_F77
15195 # Flag that forces no undefined symbols.
15196 no_undefined_flag=$lt_no_undefined_flag_F77
15198 # Commands used to finish a libtool library installation in a directory.
15199 finish_cmds=$lt_finish_cmds
15201 # Same as above, but a single script fragment to be evaled but not shown.
15202 finish_eval=$lt_finish_eval
15204 # Take the output of nm and produce a listing of raw symbols and C names.
15205 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15207 # Transform the output of nm in a proper C declaration
15208 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15210 # Transform the output of nm in a C name address pair
15211 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15213 # This is the shared library runtime path variable.
15214 runpath_var=$runpath_var
15216 # This is the shared library path variable.
15217 shlibpath_var=$shlibpath_var
15219 # Is shlibpath searched before the hard-coded library search path?
15220 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15222 # How to hardcode a shared library path into an executable.
15223 hardcode_action=$hardcode_action_F77
15225 # Whether we should hardcode library paths into libraries.
15226 hardcode_into_libs=$hardcode_into_libs
15228 # Flag to hardcode \$libdir into a binary during linking.
15229 # This must work even if \$libdir does not exist.
15230 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15232 # If ld is used when linking, flag to hardcode \$libdir into
15233 # a binary during linking. This must work even if \$libdir does
15235 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15237 # Whether we need a single -rpath flag with a separated argument.
15238 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15240 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15241 # resulting binary.
15242 hardcode_direct=$hardcode_direct_F77
15244 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15245 # resulting binary.
15246 hardcode_minus_L=$hardcode_minus_L_F77
15248 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15249 # the resulting binary.
15250 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15252 # Set to yes if building a shared library automatically hardcodes DIR into the library
15253 # and all subsequent libraries and executables linked against it.
15254 hardcode_automatic=$hardcode_automatic_F77
15256 # Variables whose values should be saved in libtool wrapper scripts and
15257 # restored at relink time.
15258 variables_saved_for_relink="$variables_saved_for_relink"
15260 # Whether libtool must link a program against all its dependency libraries.
15261 link_all_deplibs=$link_all_deplibs_F77
15263 # Compile-time system search path for libraries
15264 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15266 # Run-time system search path for libraries
15267 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15269 # Fix the shell variable \$srcfile for the compiler.
15270 fix_srcfile_path="$fix_srcfile_path_F77"
15272 # Set to yes if exported symbols are required.
15273 always_export_symbols=$always_export_symbols_F77
15275 # The commands to list exported symbols.
15276 export_symbols_cmds=$lt_export_symbols_cmds_F77
15278 # The commands to extract the exported symbol list from a shared archive.
15279 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15281 # Symbols that should not be listed in the preloaded symbols.
15282 exclude_expsyms=$lt_exclude_expsyms_F77
15284 # Symbols that must always be exported.
15285 include_expsyms=$lt_include_expsyms_F77
15287 # ### END LIBTOOL TAG CONFIG: $tagname
15293 # If there is no Makefile yet, we rely on a make rule to execute
15294 # `config.status --recheck' to rerun these tests and create the
15295 # libtool script then.
15296 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15297 if test -f "$ltmain_in"; then
15298 test -f Makefile && make "$ltmain"
15304 ac_cpp='$CPP $CPPFLAGS'
15305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15317 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15321 # Source file extension for Java test sources.
15324 # Object file extension for compiled Java test sources.
15328 # Code to be used in simple compile tests
15329 lt_simple_compile_test_code="class foo {}\n"
15331 # Code to be used in simple link tests
15332 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15334 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15336 # If no C compiler was specified, use CC.
15339 # If no C compiler flags were specified, use CFLAGS.
15340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15342 # Allow CC to be a program name with arguments.
15346 # save warnings/boilerplate of simple test code
15347 ac_outfile=conftest.$ac_objext
15348 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15349 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15350 _lt_compiler_boilerplate=`cat conftest.err`
15353 ac_outfile=conftest.$ac_objext
15354 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15355 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15356 _lt_linker_boilerplate=`cat conftest.err`
15360 # Allow CC to be a program name with arguments.
15365 for cc_temp in $compiler""; do
15367 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15368 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15373 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15376 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15377 archive_cmds_need_lc_GCJ=no
15379 old_archive_cmds_GCJ=$old_archive_cmds
15382 ## There is no encapsulation within the following macros, do not change
15383 ## the running order or otherwise move them around unless you know exactly
15384 ## what you are doing...
15386 lt_prog_compiler_no_builtin_flag_GCJ=
15388 if test "$GCC" = yes; then
15389 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15392 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15393 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15394 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15395 echo $ECHO_N "(cached) $ECHO_C" >&6
15397 lt_cv_prog_compiler_rtti_exceptions=no
15398 ac_outfile=conftest.$ac_objext
15399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15400 lt_compiler_flag="-fno-rtti -fno-exceptions"
15401 # Insert the option either (1) after the last *FLAGS variable, or
15402 # (2) before a word containing "conftest.", or (3) at the end.
15403 # Note that $ac_compile itself does not contain backslashes and begins
15404 # with a dollar sign (not a hyphen), so the echo should work correctly.
15405 # The option is referenced via a variable to avoid confusing sed.
15406 lt_compile=`echo "$ac_compile" | $SED \
15407 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15408 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15409 -e 's:$: $lt_compiler_flag:'`
15410 (eval echo "\"\$as_me:15410: $lt_compile\"" >&5)
15411 (eval "$lt_compile" 2>conftest.err)
15413 cat conftest.err >&5
15414 echo "$as_me:15414: \$? = $ac_status" >&5
15415 if (exit $ac_status) && test -s "$ac_outfile"; then
15416 # The compiler can only warn and ignore the option if not recognized
15417 # So say no if there are warnings other than the usual output.
15418 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15419 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15420 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15421 lt_cv_prog_compiler_rtti_exceptions=yes
15427 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15428 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15430 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15431 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15438 lt_prog_compiler_wl_GCJ=
15439 lt_prog_compiler_pic_GCJ=
15440 lt_prog_compiler_static_GCJ=
15442 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15443 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15445 if test "$GCC" = yes; then
15446 lt_prog_compiler_wl_GCJ='-Wl,'
15447 lt_prog_compiler_static_GCJ='-static'
15451 # All AIX code is PIC.
15452 if test "$host_cpu" = ia64; then
15453 # AIX 5 now supports IA64 processor
15454 lt_prog_compiler_static_GCJ='-Bstatic'
15459 # FIXME: we need at least 68020 code to build shared libraries, but
15460 # adding the `-m68020' flag to GCC prevents building anything better,
15462 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15465 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15466 # PIC is the default for these OSes.
15469 mingw* | pw32* | os2*)
15470 # This hack is so that the source file can tell whether it is being
15471 # built for inclusion in a dll (and should export symbols for example).
15472 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15475 darwin* | rhapsody*)
15476 # PIC is the default on this platform
15477 # Common symbols not allowed in MH_DYLIB files
15478 lt_prog_compiler_pic_GCJ='-fno-common'
15482 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15483 # Instead, we relocate shared libraries at runtime.
15487 # Just because we use GCC doesn't mean we suddenly get shared libraries
15488 # on systems that don't support them.
15489 lt_prog_compiler_can_build_shared_GCJ=no
15494 if test -d /usr/nec; then
15495 lt_prog_compiler_pic_GCJ=-Kconform_pic
15500 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15501 # not for PA HP-UX.
15507 lt_prog_compiler_pic_GCJ='-fPIC'
15513 lt_prog_compiler_pic_GCJ='-fPIC'
15517 # PORTME Check for flag to pass linker flags through the system compiler.
15520 lt_prog_compiler_wl_GCJ='-Wl,'
15521 if test "$host_cpu" = ia64; then
15522 # AIX 5 now supports IA64 processor
15523 lt_prog_compiler_static_GCJ='-Bstatic'
15525 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15529 # PIC is the default on this platform
15530 # Common symbols not allowed in MH_DYLIB files
15531 case $cc_basename in
15533 lt_prog_compiler_pic_GCJ='-qnocommon'
15534 lt_prog_compiler_wl_GCJ='-Wl,'
15539 mingw* | pw32* | os2*)
15540 # This hack is so that the source file can tell whether it is being
15541 # built for inclusion in a dll (and should export symbols for example).
15542 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15545 hpux9* | hpux10* | hpux11*)
15546 lt_prog_compiler_wl_GCJ='-Wl,'
15547 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15548 # not for PA HP-UX.
15554 lt_prog_compiler_pic_GCJ='+Z'
15557 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15558 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15561 irix5* | irix6* | nonstopux*)
15562 lt_prog_compiler_wl_GCJ='-Wl,'
15563 # PIC (with -KPIC) is the default.
15564 lt_prog_compiler_static_GCJ='-non_shared'
15568 lt_prog_compiler_pic_GCJ='-KPIC'
15569 lt_prog_compiler_static_GCJ='-Bstatic'
15573 case $cc_basename in
15575 lt_prog_compiler_wl_GCJ='-Wl,'
15576 lt_prog_compiler_pic_GCJ='-KPIC'
15577 lt_prog_compiler_static_GCJ='-static'
15579 pgcc* | pgf77* | pgf90* | pgf95*)
15580 # Portland Group compilers (*not* the Pentium gcc compiler,
15581 # which looks to be a dead project)
15582 lt_prog_compiler_wl_GCJ='-Wl,'
15583 lt_prog_compiler_pic_GCJ='-fpic'
15584 lt_prog_compiler_static_GCJ='-Bstatic'
15587 lt_prog_compiler_wl_GCJ='-Wl,'
15588 # All Alpha code is PIC.
15589 lt_prog_compiler_static_GCJ='-non_shared'
15594 osf3* | osf4* | osf5*)
15595 lt_prog_compiler_wl_GCJ='-Wl,'
15596 # All OSF/1 code is PIC.
15597 lt_prog_compiler_static_GCJ='-non_shared'
15601 lt_prog_compiler_pic_GCJ='-KPIC'
15602 lt_prog_compiler_static_GCJ='-Bstatic'
15603 case $cc_basename in
15604 f77* | f90* | f95*)
15605 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15607 lt_prog_compiler_wl_GCJ='-Wl,';;
15612 lt_prog_compiler_wl_GCJ='-Qoption ld '
15613 lt_prog_compiler_pic_GCJ='-PIC'
15614 lt_prog_compiler_static_GCJ='-Bstatic'
15617 sysv4 | sysv4.2uw2* | sysv4.3*)
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 lt_prog_compiler_pic_GCJ='-KPIC'
15620 lt_prog_compiler_static_GCJ='-Bstatic'
15624 if test -d /usr/nec ;then
15625 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15626 lt_prog_compiler_static_GCJ='-Bstatic'
15630 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15631 lt_prog_compiler_wl_GCJ='-Wl,'
15632 lt_prog_compiler_pic_GCJ='-KPIC'
15633 lt_prog_compiler_static_GCJ='-Bstatic'
15637 lt_prog_compiler_wl_GCJ='-Wl,'
15638 lt_prog_compiler_can_build_shared_GCJ=no
15642 lt_prog_compiler_pic_GCJ='-pic'
15643 lt_prog_compiler_static_GCJ='-Bstatic'
15647 lt_prog_compiler_can_build_shared_GCJ=no
15652 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15653 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15656 # Check to make sure the PIC flag actually works.
15658 if test -n "$lt_prog_compiler_pic_GCJ"; then
15660 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15661 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15662 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 lt_prog_compiler_pic_works_GCJ=no
15666 ac_outfile=conftest.$ac_objext
15667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15668 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15669 # Insert the option either (1) after the last *FLAGS variable, or
15670 # (2) before a word containing "conftest.", or (3) at the end.
15671 # Note that $ac_compile itself does not contain backslashes and begins
15672 # with a dollar sign (not a hyphen), so the echo should work correctly.
15673 # The option is referenced via a variable to avoid confusing sed.
15674 lt_compile=`echo "$ac_compile" | $SED \
15675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15677 -e 's:$: $lt_compiler_flag:'`
15678 (eval echo "\"\$as_me:15678: $lt_compile\"" >&5)
15679 (eval "$lt_compile" 2>conftest.err)
15681 cat conftest.err >&5
15682 echo "$as_me:15682: \$? = $ac_status" >&5
15683 if (exit $ac_status) && test -s "$ac_outfile"; then
15684 # The compiler can only warn and ignore the option if not recognized
15685 # So say no if there are warnings other than the usual output.
15686 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15689 lt_prog_compiler_pic_works_GCJ=yes
15695 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15696 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15698 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15699 case $lt_prog_compiler_pic_GCJ in
15701 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15704 lt_prog_compiler_pic_GCJ=
15705 lt_prog_compiler_can_build_shared_GCJ=no
15710 # For platforms which do not support PIC, -DPIC is meaningless:
15712 lt_prog_compiler_pic_GCJ=
15715 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15720 # Check to make sure the static flag actually works.
15722 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15723 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15724 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15725 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15726 echo $ECHO_N "(cached) $ECHO_C" >&6
15728 lt_prog_compiler_static_works_GCJ=no
15729 save_LDFLAGS="$LDFLAGS"
15730 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15731 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15732 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15733 # The linker can only warn and ignore the option if not recognized
15734 # So say no if there are warnings
15735 if test -s conftest.err; then
15736 # Append any errors to the config.log.
15737 cat conftest.err 1>&5
15738 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15739 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15740 if diff conftest.exp conftest.er2 >/dev/null; then
15741 lt_prog_compiler_static_works_GCJ=yes
15744 lt_prog_compiler_static_works_GCJ=yes
15748 LDFLAGS="$save_LDFLAGS"
15751 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15752 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15754 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15757 lt_prog_compiler_static_GCJ=
15761 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15762 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15763 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15764 echo $ECHO_N "(cached) $ECHO_C" >&6
15766 lt_cv_prog_compiler_c_o_GCJ=no
15767 $rm -r conftest 2>/dev/null
15771 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15773 lt_compiler_flag="-o out/conftest2.$ac_objext"
15774 # Insert the option either (1) after the last *FLAGS variable, or
15775 # (2) before a word containing "conftest.", or (3) at the end.
15776 # Note that $ac_compile itself does not contain backslashes and begins
15777 # with a dollar sign (not a hyphen), so the echo should work correctly.
15778 lt_compile=`echo "$ac_compile" | $SED \
15779 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15780 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15781 -e 's:$: $lt_compiler_flag:'`
15782 (eval echo "\"\$as_me:15782: $lt_compile\"" >&5)
15783 (eval "$lt_compile" 2>out/conftest.err)
15785 cat out/conftest.err >&5
15786 echo "$as_me:15786: \$? = $ac_status" >&5
15787 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15789 # The compiler can only warn and ignore the option if not recognized
15790 # So say no if there are warnings
15791 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15792 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15793 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15794 lt_cv_prog_compiler_c_o_GCJ=yes
15799 # SGI C++ compiler will create directory out/ii_files/ for
15800 # template instantiation
15801 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15802 $rm out/* && rmdir out
15808 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15809 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15812 hard_links="nottested"
15813 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15814 # do not overwrite the value of need_locks provided by the user
15815 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15816 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15819 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15821 ln conftest.a conftest.b 2>&5 || hard_links=no
15822 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15823 echo "$as_me:$LINENO: result: $hard_links" >&5
15824 echo "${ECHO_T}$hard_links" >&6
15825 if test "$hard_links" = no; then
15826 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15827 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15834 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15835 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15838 allow_undefined_flag_GCJ=
15839 enable_shared_with_static_runtimes_GCJ=no
15841 archive_expsym_cmds_GCJ=
15842 old_archive_From_new_cmds_GCJ=
15843 old_archive_from_expsyms_cmds_GCJ=
15844 export_dynamic_flag_spec_GCJ=
15845 whole_archive_flag_spec_GCJ=
15846 thread_safe_flag_spec_GCJ=
15847 hardcode_libdir_flag_spec_GCJ=
15848 hardcode_libdir_flag_spec_ld_GCJ=
15849 hardcode_libdir_separator_GCJ=
15850 hardcode_direct_GCJ=no
15851 hardcode_minus_L_GCJ=no
15852 hardcode_shlibpath_var_GCJ=unsupported
15853 link_all_deplibs_GCJ=unknown
15854 hardcode_automatic_GCJ=no
15856 module_expsym_cmds_GCJ=
15857 always_export_symbols_GCJ=no
15858 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15859 # include_expsyms should be a list of space-separated symbols to be *always*
15860 # included in the symbol list
15861 include_expsyms_GCJ=
15862 # exclude_expsyms can be an extended regexp of symbols to exclude
15863 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15864 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15865 # as well as any symbol that contains `d'.
15866 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15867 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15868 # platforms (ab)use it in PIC code, but their linkers get confused if
15869 # the symbol is explicitly referenced. Since portable code cannot
15870 # rely on this symbol name, it's probably fine to never include it in
15871 # preloaded symbol tables.
15872 extract_expsyms_cmds=
15873 # Just being paranoid about ensuring that cc_basename is set.
15874 for cc_temp in $compiler""; do
15876 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15877 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15882 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15885 cygwin* | mingw* | pw32*)
15886 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15887 # When not using gcc, we currently assume that we are using
15888 # Microsoft Visual C++.
15889 if test "$GCC" != yes; then
15894 # we just hope/assume this is gcc and not c89 (= MSVC++)
15903 if test "$with_gnu_ld" = yes; then
15904 # If archive_cmds runs LD, not CC, wlarc should be empty
15907 # Set some defaults for GNU ld with shared library support. These
15908 # are reset later if shared libraries are not supported. Putting them
15909 # here allows them to be overridden if necessary.
15910 runpath_var=LD_RUN_PATH
15911 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15912 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15913 # ancient GNU ld didn't support --whole-archive et. al.
15914 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15915 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15917 whole_archive_flag_spec_GCJ=
15919 supports_anon_versioning=no
15920 case `$LD -v 2>/dev/null` in
15921 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15922 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15923 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15924 *\ 2.11.*) ;; # other 2.11 versions
15925 *) supports_anon_versioning=yes ;;
15928 # See if GNU ld supports shared libraries.
15930 aix3* | aix4* | aix5*)
15931 # On AIX/PPC, the GNU linker is very broken
15932 if test "$host_cpu" != ia64; then
15936 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15937 *** to be unable to reliably create shared libraries on AIX.
15938 *** Therefore, libtool is disabling shared libraries support. If you
15939 *** really care for shared libraries, you may want to modify your PATH
15940 *** so that a non-GNU linker is found, and then restart.
15947 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)'
15948 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15949 hardcode_minus_L_GCJ=yes
15951 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15952 # that the semantics of dynamic libraries on AmigaOS, at least up
15953 # to version 4, is to share data among multiple programs linked
15954 # with the same dynamic library. Since this doesn't match the
15955 # behavior of shared libraries on other platforms, we can't use
15961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15962 allow_undefined_flag_GCJ=unsupported
15963 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15964 # support --undefined. This deserves some investigation. FIXME
15965 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15971 cygwin* | mingw* | pw32*)
15972 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15973 # as there is no search path for DLLs.
15974 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15975 allow_undefined_flag_GCJ=unsupported
15976 always_export_symbols_GCJ=no
15977 enable_shared_with_static_runtimes_GCJ=yes
15978 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15980 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15982 # If the export-symbols file already is a .def file (1st line
15983 # is EXPORTS), use it as is; otherwise, prepend...
15984 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15985 cp $export_symbols $output_objdir/$soname.def;
15987 echo EXPORTS > $output_objdir/$soname.def;
15988 cat $export_symbols >> $output_objdir/$soname.def;
15990 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15997 hardcode_direct_GCJ=no
15998 hardcode_shlibpath_var_GCJ=no
15999 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16000 export_dynamic_flag_spec_GCJ='${wl}-E'
16001 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16002 # Instead, shared libraries are loaded at an image base (0x10000000 by
16003 # default) and relocated if they conflict, which is a slow very memory
16004 # consuming and fragmenting process. To avoid this, we pick a random,
16005 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16006 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16007 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16008 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16012 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16014 case $cc_basename,$host_cpu in
16015 pgcc*) # Portland Group C compiler
16016 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16017 tmp_addflag=' $pic_flag'
16019 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16020 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16021 tmp_addflag=' $pic_flag -Mnomain' ;;
16022 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16023 tmp_addflag=' -i_dynamic' ;;
16024 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16025 tmp_addflag=' -i_dynamic -nofor_main' ;;
16026 ifc* | ifort*) # Intel Fortran compiler
16027 tmp_addflag=' -nofor_main' ;;
16029 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16031 if test $supports_anon_versioning = yes; then
16032 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16034 $echo "local: *; };" >> $output_objdir/$libname.ver~
16035 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16043 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16044 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16047 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16048 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16053 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16057 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16058 *** create shared libraries on Solaris systems. Therefore, libtool
16059 *** is disabling shared libraries support. We urge you to upgrade GNU
16060 *** binutils to release 2.9.1 or newer. Another option is to modify
16061 *** your PATH or compiler configuration so that the native linker is
16062 *** used, and then restart.
16065 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16066 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16067 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16073 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16074 case `$LD -v 2>&1` in
16075 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16079 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16080 *** reliably create shared libraries on SCO systems. Therefore, libtool
16081 *** is disabling shared libraries support. We urge you to upgrade GNU
16082 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16083 *** your PATH or compiler configuration so that the native linker is
16084 *** used, and then restart.
16089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16090 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16091 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16092 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16101 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16103 hardcode_direct_GCJ=yes
16104 hardcode_shlibpath_var_GCJ=no
16108 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16109 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16110 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16117 if test "$ld_shlibs_GCJ" = no; then
16119 hardcode_libdir_flag_spec_GCJ=
16120 export_dynamic_flag_spec_GCJ=
16121 whole_archive_flag_spec_GCJ=
16124 # PORTME fill in a description of your system's linker (not GNU ld)
16127 allow_undefined_flag_GCJ=unsupported
16128 always_export_symbols_GCJ=yes
16129 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'
16130 # Note: this linker hardcodes the directories in LIBPATH if there
16131 # are no directories specified by -L.
16132 hardcode_minus_L_GCJ=yes
16133 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16134 # Neither direct hardcoding nor static linking is supported with a
16136 hardcode_direct_GCJ=unsupported
16141 if test "$host_cpu" = ia64; then
16142 # On IA64, the linker does run time linking by default, so we don't
16143 # have to do anything special.
16144 aix_use_runtimelinking=no
16145 exp_sym_flag='-Bexport'
16148 # If we're using GNU nm, then we don't want the "-C" option.
16149 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16150 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16151 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'
16153 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'
16155 aix_use_runtimelinking=no
16157 # Test if we are trying to use run time linking or normal
16158 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16159 # need to do runtime linking.
16160 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16161 for ld_flag in $LDFLAGS; do
16162 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16163 aix_use_runtimelinking=yes
16170 exp_sym_flag='-bexport'
16171 no_entry_flag='-bnoentry'
16174 # When large executables or shared objects are built, AIX ld can
16175 # have problems creating the table of contents. If linking a library
16176 # or program results in "error TOC overflow" add -mminimal-toc to
16177 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16178 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16180 archive_cmds_GCJ=''
16181 hardcode_direct_GCJ=yes
16182 hardcode_libdir_separator_GCJ=':'
16183 link_all_deplibs_GCJ=yes
16185 if test "$GCC" = yes; then
16186 case $host_os in aix4.[012]|aix4.[012].*)
16187 # We only want to do this on AIX 4.2 and lower, the check
16188 # below for broken collect2 doesn't work under 4.3+
16189 collect2name=`${CC} -print-prog-name=collect2`
16190 if test -f "$collect2name" && \
16191 strings "$collect2name" | grep resolve_lib_name >/dev/null
16193 # We have reworked collect2
16194 hardcode_direct_GCJ=yes
16196 # We have old collect2
16197 hardcode_direct_GCJ=unsupported
16198 # It fails to find uninstalled libraries when the uninstalled
16199 # path is not listed in the libpath. Setting hardcode_minus_L
16200 # to unsupported forces relinking
16201 hardcode_minus_L_GCJ=yes
16202 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16203 hardcode_libdir_separator_GCJ=
16207 shared_flag='-shared'
16208 if test "$aix_use_runtimelinking" = yes; then
16209 shared_flag="$shared_flag "'${wl}-G'
16213 if test "$host_cpu" = ia64; then
16214 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16215 # chokes on -Wl,-G. The following line is correct:
16218 if test "$aix_use_runtimelinking" = yes; then
16219 shared_flag='${wl}-G'
16221 shared_flag='${wl}-bM:SRE'
16226 # It seems that -bexpall does not export symbols beginning with
16227 # underscore (_), so it is better to generate a list of symbols to export.
16228 always_export_symbols_GCJ=yes
16229 if test "$aix_use_runtimelinking" = yes; then
16230 # Warning - without using the other runtime loading flags (-brtl),
16231 # -berok will link without error, but may produce a broken library.
16232 allow_undefined_flag_GCJ='-berok'
16233 # Determine the default libpath from the value encoded in an empty executable.
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16249 rm -f conftest.$ac_objext conftest$ac_exeext
16250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16251 (eval $ac_link) 2>conftest.er1
16253 grep -v '^ *+' conftest.er1 >conftest.err
16255 cat conftest.err >&5
16256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16257 (exit $ac_status); } &&
16258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16260 (eval $ac_try) 2>&5
16262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16263 (exit $ac_status); }; } &&
16264 { ac_try='test -s conftest$ac_exeext'
16265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16266 (eval $ac_try) 2>&5
16268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16269 (exit $ac_status); }; }; then
16271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16273 # Check for a 64-bit object if we didn't find anything.
16274 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; }
16277 echo "$as_me: failed program was:" >&5
16278 sed 's/^/| /' conftest.$ac_ext >&5
16281 rm -f conftest.err conftest.$ac_objext \
16282 conftest$ac_exeext conftest.$ac_ext
16283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16285 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16286 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16288 if test "$host_cpu" = ia64; then
16289 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16290 allow_undefined_flag_GCJ="-z nodefs"
16291 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16293 # Determine the default libpath from the value encoded in an empty executable.
16294 cat >conftest.$ac_ext <<_ACEOF
16297 cat confdefs.h >>conftest.$ac_ext
16298 cat >>conftest.$ac_ext <<_ACEOF
16299 /* end confdefs.h. */
16309 rm -f conftest.$ac_objext conftest$ac_exeext
16310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16311 (eval $ac_link) 2>conftest.er1
16313 grep -v '^ *+' conftest.er1 >conftest.err
16315 cat conftest.err >&5
16316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16317 (exit $ac_status); } &&
16318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16320 (eval $ac_try) 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; } &&
16324 { ac_try='test -s conftest$ac_exeext'
16325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16326 (eval $ac_try) 2>&5
16328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16329 (exit $ac_status); }; }; then
16331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16333 # Check for a 64-bit object if we didn't find anything.
16334 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; }
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16341 rm -f conftest.err conftest.$ac_objext \
16342 conftest$ac_exeext conftest.$ac_ext
16343 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16345 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16346 # Warning - without using the other run time loading flags,
16347 # -berok will link without error, but may produce a broken library.
16348 no_undefined_flag_GCJ=' ${wl}-bernotok'
16349 allow_undefined_flag_GCJ=' ${wl}-berok'
16350 # Exported symbols can be pulled into shared objects from archives
16351 whole_archive_flag_spec_GCJ='$convenience'
16352 archive_cmds_need_lc_GCJ=yes
16353 # This is similar to how AIX traditionally builds its shared libraries.
16354 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16360 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)'
16361 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16362 hardcode_minus_L_GCJ=yes
16363 # see comment about different semantics on the GNU ld section
16368 export_dynamic_flag_spec_GCJ=-rdynamic
16371 cygwin* | mingw* | pw32*)
16372 # When not using gcc, we currently assume that we are using
16373 # Microsoft Visual C++.
16374 # hardcode_libdir_flag_spec is actually meaningless, as there is
16375 # no search path for DLLs.
16376 hardcode_libdir_flag_spec_GCJ=' '
16377 allow_undefined_flag_GCJ=unsupported
16378 # Tell ltmain to make .lib files, not .a files.
16380 # Tell ltmain to make .dll files, not .so files.
16382 # FIXME: Setting linknames here is a bad hack.
16383 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16384 # The linker will automatically build a .lib file if we build a DLL.
16385 old_archive_From_new_cmds_GCJ='true'
16386 # FIXME: Should let the user specify the lib program.
16387 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16388 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16389 enable_shared_with_static_runtimes_GCJ=yes
16392 darwin* | rhapsody*)
16394 rhapsody* | darwin1.[012])
16395 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16398 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16399 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16401 case ${MACOSX_DEPLOYMENT_TARGET} in
16403 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16406 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16412 archive_cmds_need_lc_GCJ=no
16413 hardcode_direct_GCJ=no
16414 hardcode_automatic_GCJ=yes
16415 hardcode_shlibpath_var_GCJ=unsupported
16416 whole_archive_flag_spec_GCJ=''
16417 link_all_deplibs_GCJ=yes
16418 if test "$GCC" = yes ; then
16419 output_verbose_link_cmd='echo'
16420 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16421 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16422 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16423 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16424 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}'
16426 case $cc_basename in
16428 output_verbose_link_cmd='echo'
16429 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16430 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16431 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16432 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16433 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}'
16443 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16444 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16445 hardcode_shlibpath_var_GCJ=no
16452 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16453 # support. Future versions do this automatically, but an explicit c++rt0.o
16454 # does not break anything, and helps significantly (at the cost of a little
16457 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16458 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16459 hardcode_direct_GCJ=yes
16460 hardcode_shlibpath_var_GCJ=no
16463 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16465 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16466 hardcode_direct_GCJ=yes
16467 hardcode_minus_L_GCJ=yes
16468 hardcode_shlibpath_var_GCJ=no
16471 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16472 freebsd* | kfreebsd*-gnu | dragonfly*)
16473 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16474 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16475 hardcode_direct_GCJ=yes
16476 hardcode_shlibpath_var_GCJ=no
16480 if test "$GCC" = yes; then
16481 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'
16483 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'
16485 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16486 hardcode_libdir_separator_GCJ=:
16487 hardcode_direct_GCJ=yes
16489 # hardcode_minus_L: Not really in the search PATH,
16490 # but as the default location of the library.
16491 hardcode_minus_L_GCJ=yes
16492 export_dynamic_flag_spec_GCJ='${wl}-E'
16496 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16497 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16499 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16501 if test "$with_gnu_ld" = no; then
16502 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16503 hardcode_libdir_separator_GCJ=:
16505 hardcode_direct_GCJ=yes
16506 export_dynamic_flag_spec_GCJ='${wl}-E'
16508 # hardcode_minus_L: Not really in the search PATH,
16509 # but as the default location of the library.
16510 hardcode_minus_L_GCJ=yes
16515 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16518 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16521 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16524 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16530 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16533 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16536 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16540 if test "$with_gnu_ld" = no; then
16541 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16542 hardcode_libdir_separator_GCJ=:
16546 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16547 hardcode_direct_GCJ=no
16548 hardcode_shlibpath_var_GCJ=no
16551 hardcode_direct_GCJ=yes
16552 export_dynamic_flag_spec_GCJ='${wl}-E'
16554 # hardcode_minus_L: Not really in the search PATH,
16555 # but as the default location of the library.
16556 hardcode_minus_L_GCJ=yes
16562 irix5* | irix6* | nonstopux*)
16563 if test "$GCC" = yes; then
16564 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'
16566 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'
16567 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16569 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16570 hardcode_libdir_separator_GCJ=:
16571 link_all_deplibs_GCJ=yes
16575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16576 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16578 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16580 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16581 hardcode_direct_GCJ=yes
16582 hardcode_shlibpath_var_GCJ=no
16586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_direct_GCJ=yes
16588 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16589 hardcode_libdir_separator_GCJ=:
16590 hardcode_shlibpath_var_GCJ=no
16594 hardcode_direct_GCJ=yes
16595 hardcode_shlibpath_var_GCJ=no
16596 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16597 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16598 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16599 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16600 export_dynamic_flag_spec_GCJ='${wl}-E'
16603 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16604 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16605 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16609 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16616 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16617 hardcode_minus_L_GCJ=yes
16618 allow_undefined_flag_GCJ=unsupported
16619 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'
16620 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16624 if test "$GCC" = yes; then
16625 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16626 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'
16628 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16629 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'
16631 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16632 hardcode_libdir_separator_GCJ=:
16635 osf4* | osf5*) # as osf3* with the addition of -msym flag
16636 if test "$GCC" = yes; then
16637 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16638 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'
16639 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16641 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16642 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'
16643 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~
16644 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16646 # Both c and cxx compiler support -rpath directly
16647 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16649 hardcode_libdir_separator_GCJ=:
16653 no_undefined_flag_GCJ=' -z text'
16654 if test "$GCC" = yes; then
16656 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16657 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16658 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16661 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16663 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16665 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16666 hardcode_shlibpath_var_GCJ=no
16668 solaris2.[0-5] | solaris2.[0-5].*) ;;
16670 # The compiler driver will combine linker options so we
16671 # cannot just pass the convience library names through
16672 # without $wl, iff we do not link with $LD.
16673 # Luckily, gcc supports the same syntax we need for Sun Studio.
16674 # Supported since Solaris 2.6 (maybe 2.5.1?)
16677 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16679 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16682 link_all_deplibs_GCJ=yes
16686 if test "x$host_vendor" = xsequent; then
16687 # Use $CC to link under sequent, because it throws in some extra .o
16688 # files that make .init and .fini sections work.
16689 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16691 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16693 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16694 hardcode_direct_GCJ=yes
16695 hardcode_minus_L_GCJ=yes
16696 hardcode_shlibpath_var_GCJ=no
16700 case $host_vendor in
16702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_direct_GCJ=yes # is this really true???
16706 ## LD is ld it makes a PLAMLIB
16707 ## CC just makes a GrossModule.
16708 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16709 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16710 hardcode_direct_GCJ=no
16713 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16714 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16717 runpath_var='LD_RUN_PATH'
16718 hardcode_shlibpath_var_GCJ=no
16722 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723 hardcode_shlibpath_var_GCJ=no
16724 export_dynamic_flag_spec_GCJ='-Bexport'
16728 if test -d /usr/nec; then
16729 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730 hardcode_shlibpath_var_GCJ=no
16731 runpath_var=LD_RUN_PATH
16732 hardcode_runpath_var=yes
16737 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16738 no_undefined_flag_GCJ='${wl}-z,text'
16739 archive_cmds_need_lc_GCJ=no
16740 hardcode_shlibpath_var_GCJ=no
16741 runpath_var='LD_RUN_PATH'
16743 if test "$GCC" = yes; then
16744 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16745 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16747 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16752 sysv5* | sco3.2v5* | sco5v6*)
16753 # Note: We can NOT use -z defs as we might desire, because we do not
16754 # link with -lc, and that would cause any symbols used from libc to
16755 # always be unresolved, which means just about no library would
16756 # ever link correctly. If we're not using GNU ld we use -z text
16757 # though, which does catch some bad symbols but isn't as heavy-handed
16759 no_undefined_flag_GCJ='${wl}-z,text'
16760 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16761 archive_cmds_need_lc_GCJ=no
16762 hardcode_shlibpath_var_GCJ=no
16763 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16764 hardcode_libdir_separator_GCJ=':'
16765 link_all_deplibs_GCJ=yes
16766 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16767 runpath_var='LD_RUN_PATH'
16769 if test "$GCC" = yes; then
16770 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16771 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16773 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16774 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16779 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16780 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16781 hardcode_shlibpath_var_GCJ=no
16790 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16791 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16792 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16795 # Do we need to explicitly link libc?
16797 case "x$archive_cmds_need_lc_GCJ" in
16799 # Assume -lc should be added
16800 archive_cmds_need_lc_GCJ=yes
16802 if test "$enable_shared" = yes && test "$GCC" = yes; then
16803 case $archive_cmds_GCJ in
16805 # FIXME: we may have to deal with multi-command sequences.
16808 # Test whether the compiler implicitly links with -lc since on some
16809 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16810 # to ld, don't add -lc before -lgcc.
16811 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16812 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16814 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16817 (eval $ac_compile) 2>&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } 2>conftest.err; then
16823 libobjs=conftest.$ac_objext
16825 wl=$lt_prog_compiler_wl_GCJ
16826 pic_flag=$lt_prog_compiler_pic_GCJ
16832 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16833 allow_undefined_flag_GCJ=
16834 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16835 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); }
16840 archive_cmds_need_lc_GCJ=no
16842 archive_cmds_need_lc_GCJ=yes
16844 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16846 cat conftest.err 1>&5
16849 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16850 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16857 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16858 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16859 library_names_spec=
16860 libname_spec='lib$name'
16864 postuninstall_cmds=
16868 shlibpath_overrides_runpath=unknown
16870 dynamic_linker="$host_os ld.so"
16871 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16872 if test "$GCC" = yes; then
16873 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16874 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16875 # if the path contains ";" then we assume it to be the separator
16876 # otherwise default to the standard path separator (i.e. ":") - it is
16877 # assumed that no part of a normal pathname contains ";" but that should
16878 # okay in the real world where ";" in dirpaths is itself problematic.
16879 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16881 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16886 need_lib_prefix=unknown
16887 hardcode_into_libs=no
16889 # when you set need_version to no, make sure it does not cause -set_version
16890 # flags to be left without arguments
16891 need_version=unknown
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16897 shlibpath_var=LIBPATH
16899 # AIX 3 has no versioning support, so we append a major version to the name.
16900 soname_spec='${libname}${release}${shared_ext}$major'
16907 hardcode_into_libs=yes
16908 if test "$host_cpu" = ia64; then
16909 # AIX 5 supports IA64
16910 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16911 shlibpath_var=LD_LIBRARY_PATH
16913 # With GCC up to 2.95.x, collect2 would create an import file
16914 # for dependence libraries. The import file would start with
16915 # the line `#! .'. This would cause the generated library to
16916 # depend on `.', always an invalid library. This was fixed in
16917 # development snapshots of GCC prior to 3.0.
16919 aix4 | aix4.[01] | aix4.[01].*)
16920 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16922 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16925 can_build_shared=no
16929 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16930 # soname into executable. Probably we can add versioning support to
16931 # collect2, so additional links can be useful in future.
16932 if test "$aix_use_runtimelinking" = yes; then
16933 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16934 # instead of lib<name>.a to let people know that these are not
16935 # typical AIX shared libraries.
16936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 # We preserve .a as extension for shared libraries through AIX4.2
16939 # and later when we are not doing run time linking.
16940 library_names_spec='${libname}${release}.a $libname.a'
16941 soname_spec='${libname}${release}${shared_ext}$major'
16943 shlibpath_var=LIBPATH
16948 library_names_spec='$libname.ixlibrary $libname.a'
16949 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16950 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'
16954 library_names_spec='${libname}${shared_ext}'
16955 dynamic_linker="$host_os ld.so"
16956 shlibpath_var=LIBRARY_PATH
16962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16963 soname_spec='${libname}${release}${shared_ext}$major'
16964 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16965 shlibpath_var=LD_LIBRARY_PATH
16966 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16967 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16968 # the default ld.so.conf also contains /usr/contrib/lib and
16969 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16970 # libtool to hard-code these into programs
16973 cygwin* | mingw* | pw32*)
16974 version_type=windows
16979 case $GCC,$host_os in
16980 yes,cygwin* | yes,mingw* | yes,pw32*)
16981 library_names_spec='$libname.dll.a'
16982 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16983 postinstall_cmds='base_file=`basename \${file}`~
16984 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16985 dldir=$destdir/`dirname \$dlpath`~
16986 test -d \$dldir || mkdir -p \$dldir~
16987 $install_prog $dir/$dlname \$dldir/$dlname~
16988 chmod a+x \$dldir/$dlname'
16989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16990 dlpath=$dir/\$dldll~
16992 shlibpath_overrides_runpath=yes
16996 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16997 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16998 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17001 # MinGW DLLs use traditional 'lib' prefix
17002 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17003 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17004 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17005 # It is most probably a Windows format PATH printed by
17006 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17007 # path with ; separators, and with drive letters. We can handle the
17008 # drive letters (cygwin fileutils understands them), so leave them,
17009 # especially as we might pass files found there to a mingw objdump,
17010 # which wouldn't understand a cygwinified path. Ahh.
17011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17017 # pw32 DLLs use 'pw' prefix rather than 'lib'
17018 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17024 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17027 dynamic_linker='Win32 ld.exe'
17028 # FIXME: first we should search . and the directory the executable is in
17032 darwin* | rhapsody*)
17033 dynamic_linker="$host_os dyld"
17034 version_type=darwin
17037 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17038 soname_spec='${libname}${release}${major}$shared_ext'
17039 shlibpath_overrides_runpath=yes
17040 shlibpath_var=DYLD_LIBRARY_PATH
17041 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17042 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17043 if test "$GCC" = yes; then
17044 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"`
17046 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17048 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 shlibpath_var=LD_LIBRARY_PATH
17068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17069 soname_spec='${libname}${release}${shared_ext}$major'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=no
17072 hardcode_into_libs=yes
17073 dynamic_linker='GNU ld.so'
17076 freebsd* | dragonfly*)
17077 # DragonFly does not have aout. When/if they implement a new
17078 # versioning mechanism, adjust this.
17079 if test -x /usr/bin/objformat; then
17080 objformat=`/usr/bin/objformat`
17083 freebsd[123]*) objformat=aout ;;
17084 *) objformat=elf ;;
17087 version_type=freebsd-$objformat
17088 case $version_type in
17090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17099 shlibpath_var=LD_LIBRARY_PATH
17102 shlibpath_overrides_runpath=yes
17104 freebsd3.[01]* | freebsdelf3.[01]*)
17105 shlibpath_overrides_runpath=yes
17106 hardcode_into_libs=yes
17108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17110 shlibpath_overrides_runpath=no
17111 hardcode_into_libs=yes
17113 freebsd*) # from 4.6 on
17114 shlibpath_overrides_runpath=yes
17115 hardcode_into_libs=yes
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17125 soname_spec='${libname}${release}${shared_ext}$major'
17126 shlibpath_var=LD_LIBRARY_PATH
17127 hardcode_into_libs=yes
17130 hpux9* | hpux10* | hpux11*)
17131 # Give a soname corresponding to the major version so that dld.sl refuses to
17132 # link against other versions.
17139 hardcode_into_libs=yes
17140 dynamic_linker="$host_os dld.so"
17141 shlibpath_var=LD_LIBRARY_PATH
17142 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 if test "X$HPUX_IA64_MODE" = X32; then
17146 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17148 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17150 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17154 hardcode_into_libs=yes
17155 dynamic_linker="$host_os dld.sl"
17156 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17157 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17159 soname_spec='${libname}${release}${shared_ext}$major'
17160 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17165 dynamic_linker="$host_os dld.sl"
17166 shlibpath_var=SHLIB_PATH
17167 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17168 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17169 soname_spec='${libname}${release}${shared_ext}$major'
17172 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17173 postinstall_cmds='chmod 555 $lib'
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17183 shlibpath_var=LD_LIBRARY_PATH
17184 shlibpath_overrides_runpath=no
17185 hardcode_into_libs=yes
17188 irix5* | irix6* | nonstopux*)
17190 nonstopux*) version_type=nonstopux ;;
17192 if test "$lt_cv_prog_gnu_ld" = yes; then
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17203 irix5* | nonstopux*)
17204 libsuff= shlibsuff=
17207 case $LD in # libtool.m4 will add one of these switches to LD
17208 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17209 libsuff= shlibsuff= libmagic=32-bit;;
17210 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17211 libsuff=32 shlibsuff=N32 libmagic=N32;;
17212 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17213 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17214 *) libsuff= shlibsuff= libmagic=never-match;;
17218 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17219 shlibpath_overrides_runpath=no
17220 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17221 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17222 hardcode_into_libs=yes
17225 # No shared lib support for Linux oldld, aout, or coff.
17226 linux*oldld* | linux*aout* | linux*coff*)
17230 # This must be Linux ELF.
17235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17236 soname_spec='${libname}${release}${shared_ext}$major'
17237 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17238 shlibpath_var=LD_LIBRARY_PATH
17239 shlibpath_overrides_runpath=no
17240 # This implies no fast_install, which is unacceptable.
17241 # Some rework will be needed to allow for fast_install
17242 # before this can be enabled.
17243 hardcode_into_libs=yes
17245 # Append ld.so.conf contents to the search path
17246 if test -f /etc/ld.so.conf; then
17247 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17248 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17251 # We used to test for /lib/ld.so.1 and disable shared libraries on
17252 # powerpc, because MkLinux only supported shared libraries with the
17253 # GNU dynamic linker. Since this was broken with cross compilers,
17254 # most powerpc-linux boxes support dynamic linking these days and
17255 # people can always --disable-shared, the test was removed, and we
17256 # assume the GNU/Linux dynamic linker is in use.
17257 dynamic_linker='GNU/Linux ld.so'
17264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17265 soname_spec='${libname}${release}${shared_ext}$major'
17266 shlibpath_var=LD_LIBRARY_PATH
17267 shlibpath_overrides_runpath=no
17268 hardcode_into_libs=yes
17269 dynamic_linker='GNU ld.so'
17276 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17278 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17279 dynamic_linker='NetBSD (a.out) ld.so'
17281 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17282 soname_spec='${libname}${release}${shared_ext}$major'
17283 dynamic_linker='NetBSD ld.elf_so'
17285 shlibpath_var=LD_LIBRARY_PATH
17286 shlibpath_overrides_runpath=yes
17287 hardcode_into_libs=yes
17292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17293 shlibpath_var=LD_LIBRARY_PATH
17294 shlibpath_overrides_runpath=yes
17301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17302 soname_spec='${libname}${release}${shared_ext}$major'
17303 shlibpath_var=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath=yes
17309 sys_lib_dlsearch_path_spec="/usr/lib"
17311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17314 *) need_version=no ;;
17316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17321 openbsd2.[89] | openbsd2.[89].*)
17322 shlibpath_overrides_runpath=no
17325 shlibpath_overrides_runpath=yes
17329 shlibpath_overrides_runpath=yes
17334 libname_spec='$name'
17337 library_names_spec='$libname${shared_ext} $libname.a'
17338 dynamic_linker='OS/2 ld.exe'
17339 shlibpath_var=LIBPATH
17342 osf3* | osf4* | osf5*)
17346 soname_spec='${libname}${release}${shared_ext}$major'
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17359 shlibpath_var=LD_LIBRARY_PATH
17360 shlibpath_overrides_runpath=yes
17361 hardcode_into_libs=yes
17362 # ldd complains unless libraries are executable
17363 postinstall_cmds='chmod +x $lib'
17368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17369 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17370 shlibpath_var=LD_LIBRARY_PATH
17371 shlibpath_overrides_runpath=yes
17372 if test "$with_gnu_ld" = yes; then
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 soname_spec='${libname}${release}${shared_ext}$major'
17382 shlibpath_var=LD_LIBRARY_PATH
17383 case $host_vendor in
17385 shlibpath_overrides_runpath=no
17387 export_dynamic_flag_spec='${wl}-Blargedynsym'
17388 runpath_var=LD_RUN_PATH
17396 shlibpath_overrides_runpath=no
17397 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17403 if test -d /usr/nec ;then
17405 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17406 soname_spec='$libname${shared_ext}.$major'
17407 shlibpath_var=LD_LIBRARY_PATH
17411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17412 version_type=freebsd-elf
17415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17416 soname_spec='${libname}${release}${shared_ext}$major'
17417 shlibpath_var=LD_LIBRARY_PATH
17418 hardcode_into_libs=yes
17419 if test "$with_gnu_ld" = yes; then
17420 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17421 shlibpath_overrides_runpath=no
17423 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17424 shlibpath_overrides_runpath=yes
17427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17431 sys_lib_dlsearch_path_spec='/usr/lib'
17436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17437 soname_spec='${libname}${release}${shared_ext}$major'
17438 shlibpath_var=LD_LIBRARY_PATH
17445 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17446 echo "${ECHO_T}$dynamic_linker" >&6
17447 test "$dynamic_linker" = no && can_build_shared=no
17449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17450 if test "$GCC" = yes; then
17451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17454 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17455 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17456 hardcode_action_GCJ=
17457 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17458 test -n "$runpath_var_GCJ" || \
17459 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17461 # We can hardcode non-existant directories.
17462 if test "$hardcode_direct_GCJ" != no &&
17463 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17464 # have to relink, otherwise we might link with an installed library
17465 # when we should be linking with a yet-to-be-installed one
17466 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17467 test "$hardcode_minus_L_GCJ" != no; then
17468 # Linking always hardcodes the temporary library directory.
17469 hardcode_action_GCJ=relink
17471 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17472 hardcode_action_GCJ=immediate
17475 # We cannot hardcode anything, or else we can only hardcode existing
17477 hardcode_action_GCJ=unsupported
17479 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17480 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17482 if test "$hardcode_action_GCJ" = relink; then
17483 # Fast installation is not supported
17484 enable_fast_install=no
17485 elif test "$shlibpath_overrides_runpath" = yes ||
17486 test "$enable_shared" = no; then
17487 # Fast installation is not necessary
17488 enable_fast_install=needless
17492 # The else clause should only fire when bootstrapping the
17493 # libtool distribution, otherwise you forgot to ship ltmain.sh
17494 # with your package, and you will get complaints that there are
17495 # no rules to generate ltmain.sh.
17496 if test -f "$ltmain"; then
17497 # See if we are running on zsh, and set the options which allow our commands through
17498 # without removal of \ escapes.
17499 if test -n "${ZSH_VERSION+set}" ; then
17500 setopt NO_GLOB_SUBST
17502 # Now quote all the things that may contain metacharacters while being
17503 # careful not to overquote the AC_SUBSTed values. We take copies of the
17504 # variables and quote the copies for generation of the libtool script.
17505 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17507 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17508 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17509 deplibs_check_method reload_flag reload_cmds need_locks \
17510 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17511 lt_cv_sys_global_symbol_to_c_name_address \
17512 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17513 old_postinstall_cmds old_postuninstall_cmds \
17517 lt_prog_compiler_wl_GCJ \
17518 lt_prog_compiler_pic_GCJ \
17519 lt_prog_compiler_static_GCJ \
17520 lt_prog_compiler_no_builtin_flag_GCJ \
17521 export_dynamic_flag_spec_GCJ \
17522 thread_safe_flag_spec_GCJ \
17523 whole_archive_flag_spec_GCJ \
17524 enable_shared_with_static_runtimes_GCJ \
17525 old_archive_cmds_GCJ \
17526 old_archive_from_new_cmds_GCJ \
17527 predep_objects_GCJ \
17528 postdep_objects_GCJ \
17531 compiler_lib_search_path_GCJ \
17533 archive_expsym_cmds_GCJ \
17534 postinstall_cmds_GCJ \
17535 postuninstall_cmds_GCJ \
17536 old_archive_from_expsyms_cmds_GCJ \
17537 allow_undefined_flag_GCJ \
17538 no_undefined_flag_GCJ \
17539 export_symbols_cmds_GCJ \
17540 hardcode_libdir_flag_spec_GCJ \
17541 hardcode_libdir_flag_spec_ld_GCJ \
17542 hardcode_libdir_separator_GCJ \
17543 hardcode_automatic_GCJ \
17545 module_expsym_cmds_GCJ \
17546 lt_cv_prog_compiler_c_o_GCJ \
17547 exclude_expsyms_GCJ \
17548 include_expsyms_GCJ; do
17551 old_archive_cmds_GCJ | \
17552 old_archive_from_new_cmds_GCJ | \
17553 archive_cmds_GCJ | \
17554 archive_expsym_cmds_GCJ | \
17555 module_cmds_GCJ | \
17556 module_expsym_cmds_GCJ | \
17557 old_archive_from_expsyms_cmds_GCJ | \
17558 export_symbols_cmds_GCJ | \
17559 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17560 postinstall_cmds | postuninstall_cmds | \
17561 old_postinstall_cmds | old_postuninstall_cmds | \
17562 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17563 # Double-quote double-evaled strings.
17564 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17567 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17573 *'\$0 --fallback-echo"')
17574 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17580 cat <<__EOF__ >> "$cfgfile"
17581 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17583 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17585 # Shell to use when invoking shell scripts.
17588 # Whether or not to build shared libraries.
17589 build_libtool_libs=$enable_shared
17591 # Whether or not to build static libraries.
17592 build_old_libs=$enable_static
17594 # Whether or not to add -lc for building shared libraries.
17595 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17597 # Whether or not to disallow shared libs when runtime libs are static
17598 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17600 # Whether or not to optimize for fast installation.
17601 fast_install=$enable_fast_install
17604 host_alias=$host_alias
17608 # The build system.
17609 build_alias=$build_alias
17613 # An echo program that does not interpret backslashes.
17618 AR_FLAGS=$lt_AR_FLAGS
17623 # LTCC compiler flags.
17624 LTCFLAGS=$lt_LTCFLAGS
17626 # A language-specific compiler.
17627 CC=$lt_compiler_GCJ
17629 # Is the compiler the GNU C compiler?
17635 # The linker used to build libraries.
17638 # Whether we need hard or soft links.
17641 # A BSD-compatible nm program.
17644 # A symbol stripping program
17647 # Used to examine libraries when file_magic_cmd begins "file"
17648 MAGIC_CMD=$MAGIC_CMD
17650 # Used on cygwin: DLL creation program.
17653 # Used on cygwin: object dumper.
17656 # Used on cygwin: assembler.
17659 # The name of the directory that contains temporary libtool files.
17662 # How to create reloadable object files.
17663 reload_flag=$lt_reload_flag
17664 reload_cmds=$lt_reload_cmds
17666 # How to pass a linker flag through the compiler.
17667 wl=$lt_lt_prog_compiler_wl_GCJ
17669 # Object file suffix (normally "o").
17670 objext="$ac_objext"
17672 # Old archive suffix (normally "a").
17675 # Shared library suffix (normally ".so").
17676 shrext_cmds='$shrext_cmds'
17678 # Executable file suffix (normally "").
17681 # Additional compiler flags for building library objects.
17682 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17685 # What is the maximum length of a command?
17686 max_cmd_len=$lt_cv_sys_max_cmd_len
17688 # Does compiler simultaneously support -c and -o options?
17689 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17691 # Must we lock files when doing compilation?
17692 need_locks=$lt_need_locks
17694 # Do we need the lib prefix for modules?
17695 need_lib_prefix=$need_lib_prefix
17697 # Do we need a version for libraries?
17698 need_version=$need_version
17700 # Whether dlopen is supported.
17701 dlopen_support=$enable_dlopen
17703 # Whether dlopen of programs is supported.
17704 dlopen_self=$enable_dlopen_self
17706 # Whether dlopen of statically linked programs is supported.
17707 dlopen_self_static=$enable_dlopen_self_static
17709 # Compiler flag to prevent dynamic linking.
17710 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17712 # Compiler flag to turn off builtin functions.
17713 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17715 # Compiler flag to allow reflexive dlopens.
17716 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17718 # Compiler flag to generate shared objects directly from archives.
17719 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17721 # Compiler flag to generate thread-safe objects.
17722 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17724 # Library versioning type.
17725 version_type=$version_type
17727 # Format of library name prefix.
17728 libname_spec=$lt_libname_spec
17730 # List of archive names. First name is the real one, the rest are links.
17731 # The last name is the one that the linker finds with -lNAME.
17732 library_names_spec=$lt_library_names_spec
17734 # The coded name of the library, if different from the real name.
17735 soname_spec=$lt_soname_spec
17737 # Commands used to build and install an old-style archive.
17739 old_archive_cmds=$lt_old_archive_cmds_GCJ
17740 old_postinstall_cmds=$lt_old_postinstall_cmds
17741 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17743 # Create an old-style archive from a shared archive.
17744 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17746 # Create a temporary old-style archive to link instead of a shared archive.
17747 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17749 # Commands used to build and install a shared archive.
17750 archive_cmds=$lt_archive_cmds_GCJ
17751 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17752 postinstall_cmds=$lt_postinstall_cmds
17753 postuninstall_cmds=$lt_postuninstall_cmds
17755 # Commands used to build a loadable module (assumed same as above if empty)
17756 module_cmds=$lt_module_cmds_GCJ
17757 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17759 # Commands to strip libraries.
17760 old_striplib=$lt_old_striplib
17761 striplib=$lt_striplib
17763 # Dependencies to place before the objects being linked to create a
17765 predep_objects=$lt_predep_objects_GCJ
17767 # Dependencies to place after the objects being linked to create a
17769 postdep_objects=$lt_postdep_objects_GCJ
17771 # Dependencies to place before the objects being linked to create a
17773 predeps=$lt_predeps_GCJ
17775 # Dependencies to place after the objects being linked to create a
17777 postdeps=$lt_postdeps_GCJ
17779 # The library search path used internally by the compiler when linking
17780 # a shared library.
17781 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17783 # Method to check whether dependent libraries are shared objects.
17784 deplibs_check_method=$lt_deplibs_check_method
17786 # Command to use when deplibs_check_method == file_magic.
17787 file_magic_cmd=$lt_file_magic_cmd
17789 # Flag that allows shared libraries with undefined symbols to be built.
17790 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17792 # Flag that forces no undefined symbols.
17793 no_undefined_flag=$lt_no_undefined_flag_GCJ
17795 # Commands used to finish a libtool library installation in a directory.
17796 finish_cmds=$lt_finish_cmds
17798 # Same as above, but a single script fragment to be evaled but not shown.
17799 finish_eval=$lt_finish_eval
17801 # Take the output of nm and produce a listing of raw symbols and C names.
17802 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17804 # Transform the output of nm in a proper C declaration
17805 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17807 # Transform the output of nm in a C name address pair
17808 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17810 # This is the shared library runtime path variable.
17811 runpath_var=$runpath_var
17813 # This is the shared library path variable.
17814 shlibpath_var=$shlibpath_var
17816 # Is shlibpath searched before the hard-coded library search path?
17817 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17819 # How to hardcode a shared library path into an executable.
17820 hardcode_action=$hardcode_action_GCJ
17822 # Whether we should hardcode library paths into libraries.
17823 hardcode_into_libs=$hardcode_into_libs
17825 # Flag to hardcode \$libdir into a binary during linking.
17826 # This must work even if \$libdir does not exist.
17827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17829 # If ld is used when linking, flag to hardcode \$libdir into
17830 # a binary during linking. This must work even if \$libdir does
17832 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17834 # Whether we need a single -rpath flag with a separated argument.
17835 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17837 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17838 # resulting binary.
17839 hardcode_direct=$hardcode_direct_GCJ
17841 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17842 # resulting binary.
17843 hardcode_minus_L=$hardcode_minus_L_GCJ
17845 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17846 # the resulting binary.
17847 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17849 # Set to yes if building a shared library automatically hardcodes DIR into the library
17850 # and all subsequent libraries and executables linked against it.
17851 hardcode_automatic=$hardcode_automatic_GCJ
17853 # Variables whose values should be saved in libtool wrapper scripts and
17854 # restored at relink time.
17855 variables_saved_for_relink="$variables_saved_for_relink"
17857 # Whether libtool must link a program against all its dependency libraries.
17858 link_all_deplibs=$link_all_deplibs_GCJ
17860 # Compile-time system search path for libraries
17861 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17863 # Run-time system search path for libraries
17864 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17866 # Fix the shell variable \$srcfile for the compiler.
17867 fix_srcfile_path="$fix_srcfile_path_GCJ"
17869 # Set to yes if exported symbols are required.
17870 always_export_symbols=$always_export_symbols_GCJ
17872 # The commands to list exported symbols.
17873 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17875 # The commands to extract the exported symbol list from a shared archive.
17876 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17878 # Symbols that should not be listed in the preloaded symbols.
17879 exclude_expsyms=$lt_exclude_expsyms_GCJ
17881 # Symbols that must always be exported.
17882 include_expsyms=$lt_include_expsyms_GCJ
17884 # ### END LIBTOOL TAG CONFIG: $tagname
17890 # If there is no Makefile yet, we rely on a make rule to execute
17891 # `config.status --recheck' to rerun these tests and create the
17892 # libtool script then.
17893 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17894 if test -f "$ltmain_in"; then
17895 test -f Makefile && make "$ltmain"
17901 ac_cpp='$CPP $CPPFLAGS'
17902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17917 # Source file extension for RC test sources.
17920 # Object file extension for compiled RC test sources.
17924 # Code to be used in simple compile tests
17925 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17927 # Code to be used in simple link tests
17928 lt_simple_link_test_code="$lt_simple_compile_test_code"
17930 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17932 # If no C compiler was specified, use CC.
17935 # If no C compiler flags were specified, use CFLAGS.
17936 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17938 # Allow CC to be a program name with arguments.
17942 # save warnings/boilerplate of simple test code
17943 ac_outfile=conftest.$ac_objext
17944 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17945 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17946 _lt_compiler_boilerplate=`cat conftest.err`
17949 ac_outfile=conftest.$ac_objext
17950 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17951 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17952 _lt_linker_boilerplate=`cat conftest.err`
17956 # Allow CC to be a program name with arguments.
17961 for cc_temp in $compiler""; do
17963 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17964 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17969 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17971 lt_cv_prog_compiler_c_o_RC=yes
17973 # The else clause should only fire when bootstrapping the
17974 # libtool distribution, otherwise you forgot to ship ltmain.sh
17975 # with your package, and you will get complaints that there are
17976 # no rules to generate ltmain.sh.
17977 if test -f "$ltmain"; then
17978 # See if we are running on zsh, and set the options which allow our commands through
17979 # without removal of \ escapes.
17980 if test -n "${ZSH_VERSION+set}" ; then
17981 setopt NO_GLOB_SUBST
17983 # Now quote all the things that may contain metacharacters while being
17984 # careful not to overquote the AC_SUBSTed values. We take copies of the
17985 # variables and quote the copies for generation of the libtool script.
17986 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17988 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17989 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17990 deplibs_check_method reload_flag reload_cmds need_locks \
17991 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17992 lt_cv_sys_global_symbol_to_c_name_address \
17993 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17994 old_postinstall_cmds old_postuninstall_cmds \
17998 lt_prog_compiler_wl_RC \
17999 lt_prog_compiler_pic_RC \
18000 lt_prog_compiler_static_RC \
18001 lt_prog_compiler_no_builtin_flag_RC \
18002 export_dynamic_flag_spec_RC \
18003 thread_safe_flag_spec_RC \
18004 whole_archive_flag_spec_RC \
18005 enable_shared_with_static_runtimes_RC \
18006 old_archive_cmds_RC \
18007 old_archive_from_new_cmds_RC \
18008 predep_objects_RC \
18009 postdep_objects_RC \
18012 compiler_lib_search_path_RC \
18014 archive_expsym_cmds_RC \
18015 postinstall_cmds_RC \
18016 postuninstall_cmds_RC \
18017 old_archive_from_expsyms_cmds_RC \
18018 allow_undefined_flag_RC \
18019 no_undefined_flag_RC \
18020 export_symbols_cmds_RC \
18021 hardcode_libdir_flag_spec_RC \
18022 hardcode_libdir_flag_spec_ld_RC \
18023 hardcode_libdir_separator_RC \
18024 hardcode_automatic_RC \
18026 module_expsym_cmds_RC \
18027 lt_cv_prog_compiler_c_o_RC \
18028 exclude_expsyms_RC \
18029 include_expsyms_RC; do
18032 old_archive_cmds_RC | \
18033 old_archive_from_new_cmds_RC | \
18034 archive_cmds_RC | \
18035 archive_expsym_cmds_RC | \
18037 module_expsym_cmds_RC | \
18038 old_archive_from_expsyms_cmds_RC | \
18039 export_symbols_cmds_RC | \
18040 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18041 postinstall_cmds | postuninstall_cmds | \
18042 old_postinstall_cmds | old_postuninstall_cmds | \
18043 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18044 # Double-quote double-evaled strings.
18045 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18054 *'\$0 --fallback-echo"')
18055 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18061 cat <<__EOF__ >> "$cfgfile"
18062 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18064 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18066 # Shell to use when invoking shell scripts.
18069 # Whether or not to build shared libraries.
18070 build_libtool_libs=$enable_shared
18072 # Whether or not to build static libraries.
18073 build_old_libs=$enable_static
18075 # Whether or not to add -lc for building shared libraries.
18076 build_libtool_need_lc=$archive_cmds_need_lc_RC
18078 # Whether or not to disallow shared libs when runtime libs are static
18079 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18081 # Whether or not to optimize for fast installation.
18082 fast_install=$enable_fast_install
18085 host_alias=$host_alias
18089 # The build system.
18090 build_alias=$build_alias
18094 # An echo program that does not interpret backslashes.
18099 AR_FLAGS=$lt_AR_FLAGS
18104 # LTCC compiler flags.
18105 LTCFLAGS=$lt_LTCFLAGS
18107 # A language-specific compiler.
18110 # Is the compiler the GNU C compiler?
18116 # The linker used to build libraries.
18119 # Whether we need hard or soft links.
18122 # A BSD-compatible nm program.
18125 # A symbol stripping program
18128 # Used to examine libraries when file_magic_cmd begins "file"
18129 MAGIC_CMD=$MAGIC_CMD
18131 # Used on cygwin: DLL creation program.
18134 # Used on cygwin: object dumper.
18137 # Used on cygwin: assembler.
18140 # The name of the directory that contains temporary libtool files.
18143 # How to create reloadable object files.
18144 reload_flag=$lt_reload_flag
18145 reload_cmds=$lt_reload_cmds
18147 # How to pass a linker flag through the compiler.
18148 wl=$lt_lt_prog_compiler_wl_RC
18150 # Object file suffix (normally "o").
18151 objext="$ac_objext"
18153 # Old archive suffix (normally "a").
18156 # Shared library suffix (normally ".so").
18157 shrext_cmds='$shrext_cmds'
18159 # Executable file suffix (normally "").
18162 # Additional compiler flags for building library objects.
18163 pic_flag=$lt_lt_prog_compiler_pic_RC
18166 # What is the maximum length of a command?
18167 max_cmd_len=$lt_cv_sys_max_cmd_len
18169 # Does compiler simultaneously support -c and -o options?
18170 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18172 # Must we lock files when doing compilation?
18173 need_locks=$lt_need_locks
18175 # Do we need the lib prefix for modules?
18176 need_lib_prefix=$need_lib_prefix
18178 # Do we need a version for libraries?
18179 need_version=$need_version
18181 # Whether dlopen is supported.
18182 dlopen_support=$enable_dlopen
18184 # Whether dlopen of programs is supported.
18185 dlopen_self=$enable_dlopen_self
18187 # Whether dlopen of statically linked programs is supported.
18188 dlopen_self_static=$enable_dlopen_self_static
18190 # Compiler flag to prevent dynamic linking.
18191 link_static_flag=$lt_lt_prog_compiler_static_RC
18193 # Compiler flag to turn off builtin functions.
18194 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18196 # Compiler flag to allow reflexive dlopens.
18197 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18199 # Compiler flag to generate shared objects directly from archives.
18200 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18202 # Compiler flag to generate thread-safe objects.
18203 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18205 # Library versioning type.
18206 version_type=$version_type
18208 # Format of library name prefix.
18209 libname_spec=$lt_libname_spec
18211 # List of archive names. First name is the real one, the rest are links.
18212 # The last name is the one that the linker finds with -lNAME.
18213 library_names_spec=$lt_library_names_spec
18215 # The coded name of the library, if different from the real name.
18216 soname_spec=$lt_soname_spec
18218 # Commands used to build and install an old-style archive.
18220 old_archive_cmds=$lt_old_archive_cmds_RC
18221 old_postinstall_cmds=$lt_old_postinstall_cmds
18222 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18224 # Create an old-style archive from a shared archive.
18225 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18227 # Create a temporary old-style archive to link instead of a shared archive.
18228 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18230 # Commands used to build and install a shared archive.
18231 archive_cmds=$lt_archive_cmds_RC
18232 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18233 postinstall_cmds=$lt_postinstall_cmds
18234 postuninstall_cmds=$lt_postuninstall_cmds
18236 # Commands used to build a loadable module (assumed same as above if empty)
18237 module_cmds=$lt_module_cmds_RC
18238 module_expsym_cmds=$lt_module_expsym_cmds_RC
18240 # Commands to strip libraries.
18241 old_striplib=$lt_old_striplib
18242 striplib=$lt_striplib
18244 # Dependencies to place before the objects being linked to create a
18246 predep_objects=$lt_predep_objects_RC
18248 # Dependencies to place after the objects being linked to create a
18250 postdep_objects=$lt_postdep_objects_RC
18252 # Dependencies to place before the objects being linked to create a
18254 predeps=$lt_predeps_RC
18256 # Dependencies to place after the objects being linked to create a
18258 postdeps=$lt_postdeps_RC
18260 # The library search path used internally by the compiler when linking
18261 # a shared library.
18262 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18264 # Method to check whether dependent libraries are shared objects.
18265 deplibs_check_method=$lt_deplibs_check_method
18267 # Command to use when deplibs_check_method == file_magic.
18268 file_magic_cmd=$lt_file_magic_cmd
18270 # Flag that allows shared libraries with undefined symbols to be built.
18271 allow_undefined_flag=$lt_allow_undefined_flag_RC
18273 # Flag that forces no undefined symbols.
18274 no_undefined_flag=$lt_no_undefined_flag_RC
18276 # Commands used to finish a libtool library installation in a directory.
18277 finish_cmds=$lt_finish_cmds
18279 # Same as above, but a single script fragment to be evaled but not shown.
18280 finish_eval=$lt_finish_eval
18282 # Take the output of nm and produce a listing of raw symbols and C names.
18283 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18285 # Transform the output of nm in a proper C declaration
18286 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18288 # Transform the output of nm in a C name address pair
18289 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18291 # This is the shared library runtime path variable.
18292 runpath_var=$runpath_var
18294 # This is the shared library path variable.
18295 shlibpath_var=$shlibpath_var
18297 # Is shlibpath searched before the hard-coded library search path?
18298 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18300 # How to hardcode a shared library path into an executable.
18301 hardcode_action=$hardcode_action_RC
18303 # Whether we should hardcode library paths into libraries.
18304 hardcode_into_libs=$hardcode_into_libs
18306 # Flag to hardcode \$libdir into a binary during linking.
18307 # This must work even if \$libdir does not exist.
18308 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18310 # If ld is used when linking, flag to hardcode \$libdir into
18311 # a binary during linking. This must work even if \$libdir does
18313 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18315 # Whether we need a single -rpath flag with a separated argument.
18316 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18318 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18319 # resulting binary.
18320 hardcode_direct=$hardcode_direct_RC
18322 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18323 # resulting binary.
18324 hardcode_minus_L=$hardcode_minus_L_RC
18326 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18327 # the resulting binary.
18328 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18330 # Set to yes if building a shared library automatically hardcodes DIR into the library
18331 # and all subsequent libraries and executables linked against it.
18332 hardcode_automatic=$hardcode_automatic_RC
18334 # Variables whose values should be saved in libtool wrapper scripts and
18335 # restored at relink time.
18336 variables_saved_for_relink="$variables_saved_for_relink"
18338 # Whether libtool must link a program against all its dependency libraries.
18339 link_all_deplibs=$link_all_deplibs_RC
18341 # Compile-time system search path for libraries
18342 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18344 # Run-time system search path for libraries
18345 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18347 # Fix the shell variable \$srcfile for the compiler.
18348 fix_srcfile_path="$fix_srcfile_path_RC"
18350 # Set to yes if exported symbols are required.
18351 always_export_symbols=$always_export_symbols_RC
18353 # The commands to list exported symbols.
18354 export_symbols_cmds=$lt_export_symbols_cmds_RC
18356 # The commands to extract the exported symbol list from a shared archive.
18357 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18359 # Symbols that should not be listed in the preloaded symbols.
18360 exclude_expsyms=$lt_exclude_expsyms_RC
18362 # Symbols that must always be exported.
18363 include_expsyms=$lt_include_expsyms_RC
18365 # ### END LIBTOOL TAG CONFIG: $tagname
18371 # If there is no Makefile yet, we rely on a make rule to execute
18372 # `config.status --recheck' to rerun these tests and create the
18373 # libtool script then.
18374 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18375 if test -f "$ltmain_in"; then
18376 test -f Makefile && make "$ltmain"
18382 ac_cpp='$CPP $CPPFLAGS'
18383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18392 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18393 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18394 { (exit 1); exit 1; }; }
18398 # Append the new tag name to the list of available tags.
18399 if test -n "$tagname" ; then
18400 available_tags="$available_tags $tagname"
18406 # Now substitute the updated list of available tags.
18407 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18408 mv "${ofile}T" "$ofile"
18412 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18413 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18414 { (exit 1); exit 1; }; }
18420 # This can be used to rebuild libtool when needed
18421 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18423 # Always use our own libtool.
18424 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18426 # Prevent multiple expansion
18439 # Check whether --with-system-libtool or --without-system-libtool was given.
18440 if test "${with_system_libtool+set}" = set; then
18441 withval="$with_system_libtool"
18442 # Extract the first word of "libtool", so it can be a program name with args.
18443 set dummy libtool; ac_word=$2
18444 echo "$as_me:$LINENO: checking for $ac_word" >&5
18445 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18446 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18455 as_dummy="$PATH:/usr/local/bin"
18456 for as_dir in $as_dummy
18459 test -z "$as_dir" && as_dir=.
18460 for ac_exec_ext in '' $ac_executable_extensions; do
18461 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18462 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18472 LIBTOOL=$ac_cv_path_LIBTOOL
18474 if test -n "$LIBTOOL"; then
18475 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18476 echo "${ECHO_T}$LIBTOOL" >&6
18478 echo "$as_me:$LINENO: result: no" >&5
18479 echo "${ECHO_T}no" >&6
18484 LIBTOOL="`pwd`/libtool"
18503 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18504 if test "${enable_strict_dependencies+set}" = set; then
18505 enableval="$enable_strict_dependencies"
18509 docdir='${datadir}/doc/freeradius'
18510 echo "$as_me:$LINENO: checking docdir" >&5
18511 echo $ECHO_N "checking docdir... $ECHO_C" >&6
18513 # Check whether --with-docdir or --without-docdir was given.
18514 if test "${with_docdir+set}" = set; then
18515 withval="$with_docdir"
18518 { { echo "$as_me:$LINENO: error: Need docdir" >&5
18519 echo "$as_me: error: Need docdir" >&2;}
18520 { (exit 1); exit 1; }; }
18524 [\\/$]* | ?:[\\/]* )
18528 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-docdir: $withval" >&5
18529 echo "$as_me: error: expected an absolute directory name for --with-docdir: $withval" >&2;}
18530 { (exit 1); exit 1; }; }
18536 echo "$as_me:$LINENO: result: $docdir" >&5
18537 echo "${ECHO_T}$docdir" >&6
18539 logdir='${localstatedir}/log/radius'
18540 echo "$as_me:$LINENO: checking logdir" >&5
18541 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18543 # Check whether --with-logdir or --without-logdir was given.
18544 if test "${with_logdir+set}" = set; then
18545 withval="$with_logdir"
18548 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18549 echo "$as_me: error: Need logdir" >&2;}
18550 { (exit 1); exit 1; }; }
18554 [\\/$]* | ?:[\\/]* )
18558 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-logdir: $withval" >&5
18559 echo "$as_me: error: expected an absolute directory name for --with-logdir: $withval" >&2;}
18560 { (exit 1); exit 1; }; }
18566 echo "$as_me:$LINENO: result: $logdir" >&5
18567 echo "${ECHO_T}$logdir" >&6
18569 radacctdir='${logdir}/radacct'
18570 echo "$as_me:$LINENO: checking radacctdir" >&5
18571 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18573 # Check whether --with-radacctdir or --without-radacctdir was given.
18574 if test "${with_radacctdir+set}" = set; then
18575 withval="$with_radacctdir"
18578 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18579 echo "$as_me: error: Need radacctdir" >&2;}
18580 { (exit 1); exit 1; }; }
18584 [\\/$]* | ?:[\\/]* )
18585 radacctdir="$withval"
18588 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-radacctdir: $withval" >&5
18589 echo "$as_me: error: expected an absolute directory name for --with-radacctdir: $withval" >&2;}
18590 { (exit 1); exit 1; }; }
18596 echo "$as_me:$LINENO: result: $radacctdir" >&5
18597 echo "${ECHO_T}$radacctdir" >&6
18599 raddbdir='${sysconfdir}/raddb'
18600 echo "$as_me:$LINENO: checking raddbdir" >&5
18601 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18603 # Check whether --with-raddbdir or --without-raddbdir was given.
18604 if test "${with_raddbdir+set}" = set; then
18605 withval="$with_raddbdir"
18608 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18609 echo "$as_me: error: Need raddbdir" >&2;}
18610 { (exit 1); exit 1; }; }
18614 [\\/$]* | ?:[\\/]* )
18615 raddbdir="$withval"
18618 { { echo "$as_me:$LINENO: error: expected an absolute directory name for --with-raddbdir: $withval" >&5
18619 echo "$as_me: error: expected an absolute directory name for --with-raddbdir: $withval" >&2;}
18620 { (exit 1); exit 1; }; }
18626 echo "$as_me:$LINENO: result: $raddbdir" >&5
18627 echo "${ECHO_T}$raddbdir" >&6
18631 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18632 if test "${with_ascend_binary+set}" = set; then
18633 withval="$with_ascend_binary"
18642 if test "X$ASCEND_BINARY" = "Xyes"; then
18643 cat >>confdefs.h <<\_ACEOF
18644 #define ASCEND_BINARY 1
18651 # Check whether --with-threads or --without-threads was given.
18652 if test "${with_threads+set}" = set; then
18653 withval="$with_threads"
18665 # Check whether --with-snmp or --without-snmp was given.
18666 if test "${with_snmp+set}" = set; then
18667 withval="$with_snmp"
18677 rad_enable_largefiles=no
18679 # Check whether --with-large-files or --without-large-files was given.
18680 if test "${with_large_files+set}" = set; then
18681 withval="$with_large_files"
18684 rad_enable_largefiles=yes
18695 # Check whether --with-static_modules or --without-static_modules was given.
18696 if test "${with_static_modules+set}" = set; then
18697 withval="$with_static_modules"
18699 for i in $withval; do
18700 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18707 # Check whether --with-modules or --without-modules was given.
18708 if test "${with_modules+set}" = set; then
18709 withval="$with_modules"
18711 for i in $withval; do
18712 MODULES="$MODULES $i"
18717 # Check whether --enable-developer or --disable-developer was given.
18718 if test "${enable_developer+set}" = set; then
18719 enableval="$enable_developer"
18720 case "$enableval" in
18730 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18736 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18737 if test "${with_experimental_modules+set}" = set; then
18738 withval="$with_experimental_modules"
18748 OPENSSL_INCLUDE_DIR=
18750 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18751 if test "${with_openssl_includes+set}" = set; then
18752 withval="$with_openssl_includes"
18754 *) OPENSSL_INCLUDE_DIR="$withval"
18762 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18763 if test "${with_openssl_libraries+set}" = set; then
18764 withval="$with_openssl_libraries"
18766 *) OPENSSL_LIB_DIR="$withval"
18774 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18775 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18776 withval="$with_rlm_FOO_lib_dir"
18785 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18786 if test "${with_rlm_FOO_include_dir+set}" = set; then
18787 withval="$with_rlm_FOO_include_dir"
18798 # Check whether --with-udpfromto or --without-udpfromto was given.
18799 if test "${with_udpfromto+set}" = set; then
18800 withval="$with_udpfromto"
18811 if test "x$WITH_UDPFROMTO" = "xyes"; then
18812 cat >>confdefs.h <<\_ACEOF
18813 #define WITH_UDPFROMTO 1
18819 # Check whether --with-edir or --without-edir was given.
18820 if test "${with_edir+set}" = set; then
18821 withval="$with_edir"
18826 CHECKRAD=checkrad.pl
18827 # Extract the first word of "perl", so it can be a program name with args.
18828 set dummy perl; ac_word=$2
18829 echo "$as_me:$LINENO: checking for $ac_word" >&5
18830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18831 if test "${ac_cv_path_PERL+set}" = set; then
18832 echo $ECHO_N "(cached) $ECHO_C" >&6
18836 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18840 for as_dir in $PATH
18843 test -z "$as_dir" && as_dir=.
18844 for ac_exec_ext in '' $ac_executable_extensions; do
18845 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18846 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18847 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18853 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18857 PERL=$ac_cv_path_PERL
18859 if test -n "$PERL"; then
18860 echo "$as_me:$LINENO: result: $PERL" >&5
18861 echo "${ECHO_T}$PERL" >&6
18863 echo "$as_me:$LINENO: result: no" >&5
18864 echo "${ECHO_T}no" >&6
18867 if test "x$ac_cv_path_PERL" = "x"; then
18868 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18869 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18871 # Extract the first word of "snmpget", so it can be a program name with args.
18872 set dummy snmpget; ac_word=$2
18873 echo "$as_me:$LINENO: checking for $ac_word" >&5
18874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875 if test "${ac_cv_path_SNMPGET+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18880 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18900 SNMPGET=$ac_cv_path_SNMPGET
18902 if test -n "$SNMPGET"; then
18903 echo "$as_me:$LINENO: result: $SNMPGET" >&5
18904 echo "${ECHO_T}$SNMPGET" >&6
18906 echo "$as_me:$LINENO: result: no" >&5
18907 echo "${ECHO_T}no" >&6
18910 if test "x$ac_cv_path_SNMPGET" = "x"; then
18911 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18912 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18915 # Extract the first word of "snmpwalk", so it can be a program name with args.
18916 set dummy snmpwalk; ac_word=$2
18917 echo "$as_me:$LINENO: checking for $ac_word" >&5
18918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18919 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18920 echo $ECHO_N "(cached) $ECHO_C" >&6
18924 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18928 for as_dir in $PATH
18931 test -z "$as_dir" && as_dir=.
18932 for ac_exec_ext in '' $ac_executable_extensions; do
18933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18934 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18944 SNMPWALK=$ac_cv_path_SNMPWALK
18946 if test -n "$SNMPWALK"; then
18947 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18948 echo "${ECHO_T}$SNMPWALK" >&6
18950 echo "$as_me:$LINENO: result: no" >&5
18951 echo "${ECHO_T}no" >&6
18954 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18955 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18956 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18959 # Extract the first word of "rusers", so it can be a program name with args.
18960 set dummy rusers; ac_word=$2
18961 echo "$as_me:$LINENO: checking for $ac_word" >&5
18962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18963 if test "${ac_cv_path_RUSERS+set}" = set; then
18964 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18972 for as_dir in $PATH
18975 test -z "$as_dir" && as_dir=.
18976 for ac_exec_ext in '' $ac_executable_extensions; do
18977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18978 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18985 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18989 RUSERS=$ac_cv_path_RUSERS
18991 if test -n "$RUSERS"; then
18992 echo "$as_me:$LINENO: result: $RUSERS" >&5
18993 echo "${ECHO_T}$RUSERS" >&6
18995 echo "$as_me:$LINENO: result: no" >&5
18996 echo "${ECHO_T}no" >&6
19000 missing_dir=`cd $ac_aux_dir && pwd`
19001 echo "$as_me:$LINENO: checking for working aclocal" >&5
19002 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19003 # Run test in a subshell; some versions of sh will print an error if
19004 # an executable is not found, even if stderr is redirected.
19005 # Redirect stdin to placate older versions of autoconf. Sigh.
19006 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19008 echo "$as_me:$LINENO: result: found" >&5
19009 echo "${ECHO_T}found" >&6
19011 ACLOCAL="$missing_dir/missing aclocal"
19012 echo "$as_me:$LINENO: result: missing" >&5
19013 echo "${ECHO_T}missing" >&6
19016 echo "$as_me:$LINENO: checking for working autoconf" >&5
19017 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19018 # Run test in a subshell; some versions of sh will print an error if
19019 # an executable is not found, even if stderr is redirected.
19020 # Redirect stdin to placate older versions of autoconf. Sigh.
19021 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19023 echo "$as_me:$LINENO: result: found" >&5
19024 echo "${ECHO_T}found" >&6
19026 AUTOCONF="$missing_dir/missing autoconf"
19027 echo "$as_me:$LINENO: result: missing" >&5
19028 echo "${ECHO_T}missing" >&6
19031 echo "$as_me:$LINENO: checking for working autoheader" >&5
19032 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19033 # Run test in a subshell; some versions of sh will print an error if
19034 # an executable is not found, even if stderr is redirected.
19035 # Redirect stdin to placate older versions of autoconf. Sigh.
19036 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19037 AUTOHEADER=autoheader
19038 echo "$as_me:$LINENO: result: found" >&5
19039 echo "${ECHO_T}found" >&6
19041 AUTOHEADER="$missing_dir/missing autoheader"
19042 echo "$as_me:$LINENO: result: missing" >&5
19043 echo "${ECHO_T}missing" >&6
19047 # Extract the first word of "locate", so it can be a program name with args.
19048 set dummy locate; ac_word=$2
19049 echo "$as_me:$LINENO: checking for $ac_word" >&5
19050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19051 if test "${ac_cv_path_LOCATE+set}" = set; then
19052 echo $ECHO_N "(cached) $ECHO_C" >&6
19056 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19060 for as_dir in $PATH
19063 test -z "$as_dir" && as_dir=.
19064 for ac_exec_ext in '' $ac_executable_extensions; do
19065 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19066 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19076 LOCATE=$ac_cv_path_LOCATE
19078 if test -n "$LOCATE"; then
19079 echo "$as_me:$LINENO: result: $LOCATE" >&5
19080 echo "${ECHO_T}$LOCATE" >&6
19082 echo "$as_me:$LINENO: result: no" >&5
19083 echo "${ECHO_T}no" >&6
19086 # Extract the first word of "dirname", so it can be a program name with args.
19087 set dummy dirname; ac_word=$2
19088 echo "$as_me:$LINENO: checking for $ac_word" >&5
19089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19090 if test "${ac_cv_path_DIRNAME+set}" = set; then
19091 echo $ECHO_N "(cached) $ECHO_C" >&6
19095 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19099 for as_dir in $PATH
19102 test -z "$as_dir" && as_dir=.
19103 for ac_exec_ext in '' $ac_executable_extensions; do
19104 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19105 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19115 DIRNAME=$ac_cv_path_DIRNAME
19117 if test -n "$DIRNAME"; then
19118 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19119 echo "${ECHO_T}$DIRNAME" >&6
19121 echo "$as_me:$LINENO: result: no" >&5
19122 echo "${ECHO_T}no" >&6
19125 # Extract the first word of "grep", so it can be a program name with args.
19126 set dummy grep; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_path_GREP+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19138 for as_dir in $PATH
19141 test -z "$as_dir" && as_dir=.
19142 for ac_exec_ext in '' $ac_executable_extensions; do
19143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19144 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19154 GREP=$ac_cv_path_GREP
19156 if test -n "$GREP"; then
19157 echo "$as_me:$LINENO: result: $GREP" >&5
19158 echo "${ECHO_T}$GREP" >&6
19160 echo "$as_me:$LINENO: result: no" >&5
19161 echo "${ECHO_T}no" >&6
19167 if test "x$WITH_THREADS" = "xyes"; then
19168 if test $ac_cv_prog_suncc = "yes"; then
19169 CFLAGS="$CFLAGS -mt"
19173 for ac_header in pthread.h
19175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19176 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19177 echo "$as_me:$LINENO: checking for $ac_header" >&5
19178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19179 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19180 echo $ECHO_N "(cached) $ECHO_C" >&6
19182 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19183 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19185 # Is the header compilable?
19186 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19188 cat >conftest.$ac_ext <<_ACEOF
19191 cat confdefs.h >>conftest.$ac_ext
19192 cat >>conftest.$ac_ext <<_ACEOF
19193 /* end confdefs.h. */
19194 $ac_includes_default
19195 #include <$ac_header>
19197 rm -f conftest.$ac_objext
19198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19199 (eval $ac_compile) 2>conftest.er1
19201 grep -v '^ *+' conftest.er1 >conftest.err
19203 cat conftest.err >&5
19204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19205 (exit $ac_status); } &&
19206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19208 (eval $ac_try) 2>&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); }; } &&
19212 { ac_try='test -s conftest.$ac_objext'
19213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19214 (eval $ac_try) 2>&5
19216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19217 (exit $ac_status); }; }; then
19218 ac_header_compiler=yes
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_header_compiler=no
19225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19227 echo "${ECHO_T}$ac_header_compiler" >&6
19229 # Is the header present?
19230 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19231 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19232 cat >conftest.$ac_ext <<_ACEOF
19235 cat confdefs.h >>conftest.$ac_ext
19236 cat >>conftest.$ac_ext <<_ACEOF
19237 /* end confdefs.h. */
19238 #include <$ac_header>
19240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19243 grep -v '^ *+' conftest.er1 >conftest.err
19245 cat conftest.err >&5
19246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19247 (exit $ac_status); } >/dev/null; then
19248 if test -s conftest.err; then
19249 ac_cpp_err=$ac_c_preproc_warn_flag
19250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19257 if test -z "$ac_cpp_err"; then
19258 ac_header_preproc=yes
19260 echo "$as_me: failed program was:" >&5
19261 sed 's/^/| /' conftest.$ac_ext >&5
19263 ac_header_preproc=no
19265 rm -f conftest.err conftest.$ac_ext
19266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19267 echo "${ECHO_T}$ac_header_preproc" >&6
19269 # So? What about this header?
19270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19273 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19276 ac_header_preproc=yes
19279 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19280 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19281 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19282 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19283 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19284 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19285 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19286 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19289 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19290 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19293 ## ------------------------------------------ ##
19294 ## Report this to the AC_PACKAGE_NAME lists. ##
19295 ## ------------------------------------------ ##
19298 sed "s/^/$as_me: WARNING: /" >&2
19301 echo "$as_me:$LINENO: checking for $ac_header" >&5
19302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19303 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19306 eval "$as_ac_Header=\$ac_header_preproc"
19308 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19309 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19312 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19324 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19325 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19326 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19327 echo $ECHO_N "(cached) $ECHO_C" >&6
19329 ac_check_lib_save_LIBS=$LIBS
19330 LIBS="-lpthread $LIBS"
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19338 /* Override any gcc2 internal prototype to avoid an error. */
19342 /* We use char because int might match the return type of a gcc2
19343 builtin and then its argument prototype would still apply. */
19344 char pthread_create ();
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19355 (eval $ac_link) 2>conftest.er1
19357 grep -v '^ *+' conftest.er1 >conftest.err
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } &&
19362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19364 (eval $ac_try) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }; } &&
19368 { ac_try='test -s conftest$ac_exeext'
19369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19370 (eval $ac_try) 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; }; then
19374 ac_cv_lib_pthread_pthread_create=yes
19376 echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19379 ac_cv_lib_pthread_pthread_create=no
19381 rm -f conftest.err conftest.$ac_objext \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19385 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19386 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19387 if test $ac_cv_lib_pthread_pthread_create = yes; then
19388 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19389 LIBS="$LIBS -lpthread"
19391 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19392 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19393 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19394 echo $ECHO_N "(cached) $ECHO_C" >&6
19396 ac_check_lib_save_LIBS=$LIBS
19398 cat >conftest.$ac_ext <<_ACEOF
19401 cat confdefs.h >>conftest.$ac_ext
19402 cat >>conftest.$ac_ext <<_ACEOF
19403 /* end confdefs.h. */
19405 /* Override any gcc2 internal prototype to avoid an error. */
19409 /* We use char because int might match the return type of a gcc2
19410 builtin and then its argument prototype would still apply. */
19411 char pthread_create ();
19420 rm -f conftest.$ac_objext conftest$ac_exeext
19421 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19422 (eval $ac_link) 2>conftest.er1
19424 grep -v '^ *+' conftest.er1 >conftest.err
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } &&
19429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19431 (eval $ac_try) 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest$ac_exeext'
19436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19437 (eval $ac_try) 2>&5
19439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19440 (exit $ac_status); }; }; then
19441 ac_cv_lib_c_r_pthread_create=yes
19443 echo "$as_me: failed program was:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_c_r_pthread_create=no
19448 rm -f conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19450 LIBS=$ac_check_lib_save_LIBS
19452 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19453 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19454 if test $ac_cv_lib_c_r_pthread_create = yes; then
19455 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19466 if test "x$WITH_THREADS" != "xyes"; then
19468 ac_cv_header_pthread_h="no"
19472 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19473 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19474 if test "${ac_cv_search_sem_init+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 ac_func_search_save_LIBS=$LIBS
19478 ac_cv_search_sem_init=no
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19486 /* Override any gcc2 internal prototype to avoid an error. */
19490 /* We use char because int might match the return type of a gcc2
19491 builtin and then its argument prototype would still apply. */
19501 rm -f conftest.$ac_objext conftest$ac_exeext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19503 (eval $ac_link) 2>conftest.er1
19505 grep -v '^ *+' conftest.er1 >conftest.err
19507 cat conftest.err >&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); } &&
19510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19512 (eval $ac_try) 2>&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); }; } &&
19516 { ac_try='test -s conftest$ac_exeext'
19517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19518 (eval $ac_try) 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; }; then
19522 ac_cv_search_sem_init="none required"
19524 echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19528 rm -f conftest.err conftest.$ac_objext \
19529 conftest$ac_exeext conftest.$ac_ext
19530 if test "$ac_cv_search_sem_init" = no; then
19531 for ac_lib in pthread sem posix4 rt; do
19532 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19533 cat >conftest.$ac_ext <<_ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19540 /* Override any gcc2 internal prototype to avoid an error. */
19544 /* We use char because int might match the return type of a gcc2
19545 builtin and then its argument prototype would still apply. */
19555 rm -f conftest.$ac_objext conftest$ac_exeext
19556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19557 (eval $ac_link) 2>conftest.er1
19559 grep -v '^ *+' conftest.er1 >conftest.err
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } &&
19564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; } &&
19570 { ac_try='test -s conftest$ac_exeext'
19571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19572 (eval $ac_try) 2>&5
19574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19575 (exit $ac_status); }; }; then
19576 ac_cv_search_sem_init="-l$ac_lib"
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19583 rm -f conftest.err conftest.$ac_objext \
19584 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_func_search_save_LIBS
19589 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19590 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19591 if test "$ac_cv_search_sem_init" != no; then
19592 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19595 { { 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
19596 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;}
19597 { (exit 1); exit 1; }; }
19604 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19605 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19606 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19607 echo $ECHO_N "(cached) $ECHO_C" >&6
19609 ac_check_lib_save_LIBS=$LIBS
19610 LIBS="-lsocket $LIBS"
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19618 /* Override any gcc2 internal prototype to avoid an error. */
19622 /* We use char because int might match the return type of a gcc2
19623 builtin and then its argument prototype would still apply. */
19624 char getsockname ();
19633 rm -f conftest.$ac_objext conftest$ac_exeext
19634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19635 (eval $ac_link) 2>conftest.er1
19637 grep -v '^ *+' conftest.er1 >conftest.err
19639 cat conftest.err >&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); } &&
19642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19644 (eval $ac_try) 2>&5
19646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19647 (exit $ac_status); }; } &&
19648 { ac_try='test -s conftest$ac_exeext'
19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19650 (eval $ac_try) 2>&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); }; }; then
19654 ac_cv_lib_socket_getsockname=yes
19656 echo "$as_me: failed program was:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_socket_getsockname=no
19661 rm -f conftest.err conftest.$ac_objext \
19662 conftest$ac_exeext conftest.$ac_ext
19663 LIBS=$ac_check_lib_save_LIBS
19665 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19666 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19667 if test $ac_cv_lib_socket_getsockname = yes; then
19668 cat >>confdefs.h <<_ACEOF
19669 #define HAVE_LIBSOCKET 1
19672 LIBS="-lsocket $LIBS"
19678 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19679 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19680 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19681 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 ac_check_lib_save_LIBS=$LIBS
19684 LIBS="-lresolv $LIBS"
19685 cat >conftest.$ac_ext <<_ACEOF
19688 cat confdefs.h >>conftest.$ac_ext
19689 cat >>conftest.$ac_ext <<_ACEOF
19690 /* end confdefs.h. */
19692 /* Override any gcc2 internal prototype to avoid an error. */
19696 /* We use char because int might match the return type of a gcc2
19697 builtin and then its argument prototype would still apply. */
19707 rm -f conftest.$ac_objext conftest$ac_exeext
19708 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19709 (eval $ac_link) 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19715 (exit $ac_status); } &&
19716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19718 (eval $ac_try) 2>&5
19720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721 (exit $ac_status); }; } &&
19722 { ac_try='test -s conftest$ac_exeext'
19723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19724 (eval $ac_try) 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 ac_cv_lib_resolv_inet_aton=yes
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 ac_cv_lib_resolv_inet_aton=no
19735 rm -f conftest.err conftest.$ac_objext \
19736 conftest$ac_exeext conftest.$ac_ext
19737 LIBS=$ac_check_lib_save_LIBS
19739 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19740 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19741 if test $ac_cv_lib_resolv_inet_aton = yes; then
19742 cat >>confdefs.h <<_ACEOF
19743 #define HAVE_LIBRESOLV 1
19746 LIBS="-lresolv $LIBS"
19752 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19753 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19754 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19757 ac_check_lib_save_LIBS=$LIBS
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any gcc2 internal prototype to avoid an error. */
19770 /* We use char because int might match the return type of a gcc2
19771 builtin and then its argument prototype would still apply. */
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19783 (eval $ac_link) 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); } &&
19790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest$ac_exeext'
19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19798 (eval $ac_try) 2>&5
19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19801 (exit $ac_status); }; }; then
19802 ac_cv_lib_nsl_inet_ntoa=yes
19804 echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19807 ac_cv_lib_nsl_inet_ntoa=no
19809 rm -f conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19813 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19814 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19815 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19816 cat >>confdefs.h <<_ACEOF
19817 #define HAVE_LIBNSL 1
19827 if test "x$OPENSSL_LIB_DIR" != "x"; then
19828 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19830 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19831 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19832 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19833 echo $ECHO_N "(cached) $ECHO_C" >&6
19835 ac_check_lib_save_LIBS=$LIBS
19836 LIBS="-lcrypto $LIBS"
19837 cat >conftest.$ac_ext <<_ACEOF
19840 cat confdefs.h >>conftest.$ac_ext
19841 cat >>conftest.$ac_ext <<_ACEOF
19842 /* end confdefs.h. */
19844 /* Override any gcc2 internal prototype to avoid an error. */
19848 /* We use char because int might match the return type of a gcc2
19849 builtin and then its argument prototype would still apply. */
19859 rm -f conftest.$ac_objext conftest$ac_exeext
19860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19861 (eval $ac_link) 2>conftest.er1
19863 grep -v '^ *+' conftest.er1 >conftest.err
19865 cat conftest.err >&5
19866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19867 (exit $ac_status); } &&
19868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19870 (eval $ac_try) 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest$ac_exeext'
19875 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19876 (eval $ac_try) 2>&5
19878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879 (exit $ac_status); }; }; then
19880 ac_cv_lib_crypto_DH_new=yes
19882 echo "$as_me: failed program was:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_lib_crypto_DH_new=no
19887 rm -f conftest.err conftest.$ac_objext \
19888 conftest$ac_exeext conftest.$ac_ext
19889 LIBS=$ac_check_lib_save_LIBS
19891 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19892 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19893 if test $ac_cv_lib_crypto_DH_new = yes; then
19896 cat >>confdefs.h <<\_ACEOF
19897 #define HAVE_LIBCRYPTO 1
19900 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19901 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19902 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 ac_check_lib_save_LIBS=$LIBS
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any gcc2 internal prototype to avoid an error. */
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19940 (eval $ac_try) 2>&5
19942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); }; } &&
19944 { ac_try='test -s conftest$ac_exeext'
19945 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19946 (eval $ac_try) 2>&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); }; }; then
19950 ac_cv_lib_ssl_SSL_new=yes
19952 echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19955 ac_cv_lib_ssl_SSL_new=no
19957 rm -f conftest.err conftest.$ac_objext \
19958 conftest$ac_exeext conftest.$ac_ext
19959 LIBS=$ac_check_lib_save_LIBS
19961 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19962 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19963 if test $ac_cv_lib_ssl_SSL_new = yes; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_LIBSSL 1
19970 if test "x$OPENSSL_LIB_DIR" != "x"; then
19971 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19973 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19985 CFLAGS="$CFLAGS -D_ALL_SOURCE"
19988 CFLAGS="$CFLAGS -DDARWIN"
19997 ac_header_dirent=no
19998 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19999 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20000 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20001 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20011 #include <sys/types.h>
20023 rm -f conftest.$ac_objext
20024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20025 (eval $ac_compile) 2>conftest.er1
20027 grep -v '^ *+' conftest.er1 >conftest.err
20029 cat conftest.err >&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20034 (eval $ac_try) 2>&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); }; } &&
20038 { ac_try='test -s conftest.$ac_objext'
20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20040 (eval $ac_try) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }; }; then
20044 eval "$as_ac_Header=yes"
20046 echo "$as_me: failed program was:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 eval "$as_ac_Header=no"
20051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20055 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20060 ac_header_dirent=$ac_hdr; break
20064 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20065 if test $ac_header_dirent = dirent.h; then
20066 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20067 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20068 if test "${ac_cv_search_opendir+set}" = set; then
20069 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 ac_func_search_save_LIBS=$LIBS
20072 ac_cv_search_opendir=no
20073 cat >conftest.$ac_ext <<_ACEOF
20076 cat confdefs.h >>conftest.$ac_ext
20077 cat >>conftest.$ac_ext <<_ACEOF
20078 /* end confdefs.h. */
20080 /* Override any gcc2 internal prototype to avoid an error. */
20084 /* We use char because int might match the return type of a gcc2
20085 builtin and then its argument prototype would still apply. */
20095 rm -f conftest.$ac_objext conftest$ac_exeext
20096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20097 (eval $ac_link) 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } &&
20104 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20106 (eval $ac_try) 2>&5
20108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20109 (exit $ac_status); }; } &&
20110 { ac_try='test -s conftest$ac_exeext'
20111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20112 (eval $ac_try) 2>&5
20114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20115 (exit $ac_status); }; }; then
20116 ac_cv_search_opendir="none required"
20118 echo "$as_me: failed program was:" >&5
20119 sed 's/^/| /' conftest.$ac_ext >&5
20122 rm -f conftest.err conftest.$ac_objext \
20123 conftest$ac_exeext conftest.$ac_ext
20124 if test "$ac_cv_search_opendir" = no; then
20125 for ac_lib in dir; do
20126 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20127 cat >conftest.$ac_ext <<_ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20134 /* Override any gcc2 internal prototype to avoid an error. */
20138 /* We use char because int might match the return type of a gcc2
20139 builtin and then its argument prototype would still apply. */
20149 rm -f conftest.$ac_objext conftest$ac_exeext
20150 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20151 (eval $ac_link) 2>conftest.er1
20153 grep -v '^ *+' conftest.er1 >conftest.err
20155 cat conftest.err >&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); } &&
20158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20160 (eval $ac_try) 2>&5
20162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20163 (exit $ac_status); }; } &&
20164 { ac_try='test -s conftest$ac_exeext'
20165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20166 (eval $ac_try) 2>&5
20168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; }; then
20170 ac_cv_search_opendir="-l$ac_lib"
20173 echo "$as_me: failed program was:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20177 rm -f conftest.err conftest.$ac_objext \
20178 conftest$ac_exeext conftest.$ac_ext
20181 LIBS=$ac_func_search_save_LIBS
20183 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20184 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20185 if test "$ac_cv_search_opendir" != no; then
20186 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20191 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20192 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20193 if test "${ac_cv_search_opendir+set}" = set; then
20194 echo $ECHO_N "(cached) $ECHO_C" >&6
20196 ac_func_search_save_LIBS=$LIBS
20197 ac_cv_search_opendir=no
20198 cat >conftest.$ac_ext <<_ACEOF
20201 cat confdefs.h >>conftest.$ac_ext
20202 cat >>conftest.$ac_ext <<_ACEOF
20203 /* end confdefs.h. */
20205 /* Override any gcc2 internal prototype to avoid an error. */
20209 /* We use char because int might match the return type of a gcc2
20210 builtin and then its argument prototype would still apply. */
20220 rm -f conftest.$ac_objext conftest$ac_exeext
20221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20222 (eval $ac_link) 2>conftest.er1
20224 grep -v '^ *+' conftest.er1 >conftest.err
20226 cat conftest.err >&5
20227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20228 (exit $ac_status); } &&
20229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20231 (eval $ac_try) 2>&5
20233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20234 (exit $ac_status); }; } &&
20235 { ac_try='test -s conftest$ac_exeext'
20236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20237 (eval $ac_try) 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; }; then
20241 ac_cv_search_opendir="none required"
20243 echo "$as_me: failed program was:" >&5
20244 sed 's/^/| /' conftest.$ac_ext >&5
20247 rm -f conftest.err conftest.$ac_objext \
20248 conftest$ac_exeext conftest.$ac_ext
20249 if test "$ac_cv_search_opendir" = no; then
20250 for ac_lib in x; do
20251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any gcc2 internal prototype to avoid an error. */
20263 /* We use char because int might match the return type of a gcc2
20264 builtin and then its argument prototype would still apply. */
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20276 (eval $ac_link) 2>conftest.er1
20278 grep -v '^ *+' conftest.er1 >conftest.err
20280 cat conftest.err >&5
20281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20282 (exit $ac_status); } &&
20283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20285 (eval $ac_try) 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest$ac_exeext'
20290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20291 (eval $ac_try) 2>&5
20293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20294 (exit $ac_status); }; }; then
20295 ac_cv_search_opendir="-l$ac_lib"
20298 echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20302 rm -f conftest.err conftest.$ac_objext \
20303 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_func_search_save_LIBS
20308 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20309 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20310 if test "$ac_cv_search_opendir" != no; then
20311 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20317 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20318 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20319 if test "${ac_cv_header_stdc+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20322 cat >conftest.$ac_ext <<_ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <stdlib.h>
20329 #include <stdarg.h>
20330 #include <string.h>
20341 rm -f conftest.$ac_objext
20342 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20343 (eval $ac_compile) 2>conftest.er1
20345 grep -v '^ *+' conftest.er1 >conftest.err
20347 cat conftest.err >&5
20348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20349 (exit $ac_status); } &&
20350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20352 (eval $ac_try) 2>&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); }; } &&
20356 { ac_try='test -s conftest.$ac_objext'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; }; then
20362 ac_cv_header_stdc=yes
20364 echo "$as_me: failed program was:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_header_stdc=no
20369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20371 if test $ac_cv_header_stdc = yes; then
20372 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20373 cat >conftest.$ac_ext <<_ACEOF
20376 cat confdefs.h >>conftest.$ac_ext
20377 cat >>conftest.$ac_ext <<_ACEOF
20378 /* end confdefs.h. */
20379 #include <string.h>
20382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20383 $EGREP "memchr" >/dev/null 2>&1; then
20386 ac_cv_header_stdc=no
20392 if test $ac_cv_header_stdc = yes; then
20393 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 #include <stdlib.h>
20403 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20404 $EGREP "free" >/dev/null 2>&1; then
20407 ac_cv_header_stdc=no
20413 if test $ac_cv_header_stdc = yes; then
20414 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20415 if test "$cross_compiling" = yes; then
20418 cat >conftest.$ac_ext <<_ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20425 #if ((' ' & 0x0FF) == 0x020)
20426 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20427 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20429 # define ISLOWER(c) \
20430 (('a' <= (c) && (c) <= 'i') \
20431 || ('j' <= (c) && (c) <= 'r') \
20432 || ('s' <= (c) && (c) <= 'z'))
20433 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20436 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20441 for (i = 0; i < 256; i++)
20442 if (XOR (islower (i), ISLOWER (i))
20443 || toupper (i) != TOUPPER (i))
20448 rm -f conftest$ac_exeext
20449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20450 (eval $ac_link) 2>&5
20452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20455 (eval $ac_try) 2>&5
20457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20458 (exit $ac_status); }; }; then
20461 echo "$as_me: program exited with status $ac_status" >&5
20462 echo "$as_me: failed program was:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ( exit $ac_status )
20466 ac_cv_header_stdc=no
20468 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20472 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20473 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20474 if test $ac_cv_header_stdc = yes; then
20476 cat >>confdefs.h <<\_ACEOF
20477 #define STDC_HEADERS 1
20482 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20483 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20484 if test "${ac_cv_header_time+set}" = set; then
20485 echo $ECHO_N "(cached) $ECHO_C" >&6
20487 cat >conftest.$ac_ext <<_ACEOF
20490 cat confdefs.h >>conftest.$ac_ext
20491 cat >>conftest.$ac_ext <<_ACEOF
20492 /* end confdefs.h. */
20493 #include <sys/types.h>
20494 #include <sys/time.h>
20500 if ((struct tm *) 0)
20506 rm -f conftest.$ac_objext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20508 (eval $ac_compile) 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20517 (eval $ac_try) 2>&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); }; } &&
20521 { ac_try='test -s conftest.$ac_objext'
20522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20523 (eval $ac_try) 2>&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); }; }; then
20527 ac_cv_header_time=yes
20529 echo "$as_me: failed program was:" >&5
20530 sed 's/^/| /' conftest.$ac_ext >&5
20532 ac_cv_header_time=no
20534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20536 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20537 echo "${ECHO_T}$ac_cv_header_time" >&6
20538 if test $ac_cv_header_time = yes; then
20540 cat >>confdefs.h <<\_ACEOF
20541 #define TIME_WITH_SYS_TIME 1
20546 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20547 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20548 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20549 echo $ECHO_N "(cached) $ECHO_C" >&6
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20557 #include <sys/types.h>
20558 #include <sys/wait.h>
20559 #ifndef WEXITSTATUS
20560 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20563 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20571 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20576 rm -f conftest.$ac_objext
20577 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20578 (eval $ac_compile) 2>conftest.er1
20580 grep -v '^ *+' conftest.er1 >conftest.err
20582 cat conftest.err >&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); } &&
20585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20587 (eval $ac_try) 2>&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); }; } &&
20591 { ac_try='test -s conftest.$ac_objext'
20592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20593 (eval $ac_try) 2>&5
20595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20596 (exit $ac_status); }; }; then
20597 ac_cv_header_sys_wait_h=yes
20599 echo "$as_me: failed program was:" >&5
20600 sed 's/^/| /' conftest.$ac_ext >&5
20602 ac_cv_header_sys_wait_h=no
20604 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20606 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20607 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20608 if test $ac_cv_header_sys_wait_h = yes; then
20610 cat >>confdefs.h <<\_ACEOF
20611 #define HAVE_SYS_WAIT_H 1
20680 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20681 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20682 echo "$as_me:$LINENO: checking for $ac_header" >&5
20683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20685 echo $ECHO_N "(cached) $ECHO_C" >&6
20687 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20688 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20690 # Is the header compilable?
20691 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20692 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20693 cat >conftest.$ac_ext <<_ACEOF
20696 cat confdefs.h >>conftest.$ac_ext
20697 cat >>conftest.$ac_ext <<_ACEOF
20698 /* end confdefs.h. */
20699 $ac_includes_default
20700 #include <$ac_header>
20702 rm -f conftest.$ac_objext
20703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20704 (eval $ac_compile) 2>conftest.er1
20706 grep -v '^ *+' conftest.er1 >conftest.err
20708 cat conftest.err >&5
20709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20710 (exit $ac_status); } &&
20711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20713 (eval $ac_try) 2>&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest.$ac_objext'
20718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20719 (eval $ac_try) 2>&5
20721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20722 (exit $ac_status); }; }; then
20723 ac_header_compiler=yes
20725 echo "$as_me: failed program was:" >&5
20726 sed 's/^/| /' conftest.$ac_ext >&5
20728 ac_header_compiler=no
20730 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20731 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20732 echo "${ECHO_T}$ac_header_compiler" >&6
20734 # Is the header present?
20735 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20736 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20737 cat >conftest.$ac_ext <<_ACEOF
20740 cat confdefs.h >>conftest.$ac_ext
20741 cat >>conftest.$ac_ext <<_ACEOF
20742 /* end confdefs.h. */
20743 #include <$ac_header>
20745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } >/dev/null; then
20753 if test -s conftest.err; then
20754 ac_cpp_err=$ac_c_preproc_warn_flag
20755 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20762 if test -z "$ac_cpp_err"; then
20763 ac_header_preproc=yes
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20768 ac_header_preproc=no
20770 rm -f conftest.err conftest.$ac_ext
20771 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20772 echo "${ECHO_T}$ac_header_preproc" >&6
20774 # So? What about this header?
20775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20777 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20778 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20780 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20781 ac_header_preproc=yes
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20785 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20787 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20788 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20789 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20790 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20791 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20793 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20794 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20795 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20798 ## ------------------------------------------ ##
20799 ## Report this to the AC_PACKAGE_NAME lists. ##
20800 ## ------------------------------------------ ##
20803 sed "s/^/$as_me: WARNING: /" >&2
20806 echo "$as_me:$LINENO: checking for $ac_header" >&5
20807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20809 echo $ECHO_N "(cached) $ECHO_C" >&6
20811 eval "$as_ac_Header=\$ac_header_preproc"
20813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20814 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20817 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20818 cat >>confdefs.h <<_ACEOF
20819 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20828 if test "${ac_cv_header_regex_h+set}" = set; then
20829 echo "$as_me:$LINENO: checking for regex.h" >&5
20830 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20831 if test "${ac_cv_header_regex_h+set}" = set; then
20832 echo $ECHO_N "(cached) $ECHO_C" >&6
20834 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20835 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20837 # Is the header compilable?
20838 echo "$as_me:$LINENO: checking regex.h usability" >&5
20839 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20840 cat >conftest.$ac_ext <<_ACEOF
20843 cat confdefs.h >>conftest.$ac_ext
20844 cat >>conftest.$ac_ext <<_ACEOF
20845 /* end confdefs.h. */
20846 $ac_includes_default
20849 rm -f conftest.$ac_objext
20850 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20851 (eval $ac_compile) 2>conftest.er1
20853 grep -v '^ *+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20857 (exit $ac_status); } &&
20858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20860 (eval $ac_try) 2>&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); }; } &&
20864 { ac_try='test -s conftest.$ac_objext'
20865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20866 (eval $ac_try) 2>&5
20868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20869 (exit $ac_status); }; }; then
20870 ac_header_compiler=yes
20872 echo "$as_me: failed program was:" >&5
20873 sed 's/^/| /' conftest.$ac_ext >&5
20875 ac_header_compiler=no
20877 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20878 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20879 echo "${ECHO_T}$ac_header_compiler" >&6
20881 # Is the header present?
20882 echo "$as_me:$LINENO: checking regex.h presence" >&5
20883 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20884 cat >conftest.$ac_ext <<_ACEOF
20887 cat confdefs.h >>conftest.$ac_ext
20888 cat >>conftest.$ac_ext <<_ACEOF
20889 /* end confdefs.h. */
20892 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20893 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20895 grep -v '^ *+' conftest.er1 >conftest.err
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } >/dev/null; then
20900 if test -s conftest.err; then
20901 ac_cpp_err=$ac_c_preproc_warn_flag
20902 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20909 if test -z "$ac_cpp_err"; then
20910 ac_header_preproc=yes
20912 echo "$as_me: failed program was:" >&5
20913 sed 's/^/| /' conftest.$ac_ext >&5
20915 ac_header_preproc=no
20917 rm -f conftest.err conftest.$ac_ext
20918 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20919 echo "${ECHO_T}$ac_header_preproc" >&6
20921 # So? What about this header?
20922 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20924 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20925 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20926 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20927 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20928 ac_header_preproc=yes
20931 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20932 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20933 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20934 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20936 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20937 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20938 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20939 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20940 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20942 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20945 ## ------------------------------------------ ##
20946 ## Report this to the AC_PACKAGE_NAME lists. ##
20947 ## ------------------------------------------ ##
20950 sed "s/^/$as_me: WARNING: /" >&2
20953 echo "$as_me:$LINENO: checking for regex.h" >&5
20954 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20955 if test "${ac_cv_header_regex_h+set}" = set; then
20956 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 ac_cv_header_regex_h=$ac_header_preproc
20960 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20961 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20964 if test $ac_cv_header_regex_h = yes; then
20965 cat >>confdefs.h <<\_ACEOF
20966 #define HAVE_REGEX_H 1
20972 if test "x$ac_cv_header_regex_h" = "xyes"; then
20975 cat >conftest.$ac_ext <<_ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20982 #ifdef REG_EXTENDED
20987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20988 $EGREP "yes" >/dev/null 2>&1; then
20989 cat >>confdefs.h <<\_ACEOF
20990 #define HAVE_REG_EXTENDED 1
21000 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21002 cat >>confdefs.h <<\_ACEOF
21008 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21010 cat >>confdefs.h <<\_ACEOF
21016 OPENSSL_INCLUDE="-DNO_OPENSSL"
21017 if test "x$OPENSSL_LIBS" = "x"; then
21018 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21019 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21021 old_CPPFLAGS=$CPPFLAGS
21022 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21023 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21025 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21037 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21038 echo "$as_me:$LINENO: checking for $ac_header" >&5
21039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21040 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21041 echo $ECHO_N "(cached) $ECHO_C" >&6
21043 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21044 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21046 # Is the header compilable?
21047 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21048 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21049 cat >conftest.$ac_ext <<_ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h. */
21055 $ac_includes_default
21056 #include <$ac_header>
21058 rm -f conftest.$ac_objext
21059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21060 (eval $ac_compile) 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21066 (exit $ac_status); } &&
21067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21069 (eval $ac_try) 2>&5
21071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21072 (exit $ac_status); }; } &&
21073 { ac_try='test -s conftest.$ac_objext'
21074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21075 (eval $ac_try) 2>&5
21077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21078 (exit $ac_status); }; }; then
21079 ac_header_compiler=yes
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21084 ac_header_compiler=no
21086 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21087 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21088 echo "${ECHO_T}$ac_header_compiler" >&6
21090 # Is the header present?
21091 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21092 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21093 cat >conftest.$ac_ext <<_ACEOF
21096 cat confdefs.h >>conftest.$ac_ext
21097 cat >>conftest.$ac_ext <<_ACEOF
21098 /* end confdefs.h. */
21099 #include <$ac_header>
21101 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21102 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); } >/dev/null; then
21109 if test -s conftest.err; then
21110 ac_cpp_err=$ac_c_preproc_warn_flag
21111 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21118 if test -z "$ac_cpp_err"; then
21119 ac_header_preproc=yes
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21124 ac_header_preproc=no
21126 rm -f conftest.err conftest.$ac_ext
21127 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21128 echo "${ECHO_T}$ac_header_preproc" >&6
21130 # So? What about this header?
21131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21134 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21136 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21137 ac_header_preproc=yes
21140 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21141 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21143 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21145 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21146 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21147 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21149 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21151 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21154 ## ------------------------------------------ ##
21155 ## Report this to the AC_PACKAGE_NAME lists. ##
21156 ## ------------------------------------------ ##
21159 sed "s/^/$as_me: WARNING: /" >&2
21162 echo "$as_me:$LINENO: checking for $ac_header" >&5
21163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21165 echo $ECHO_N "(cached) $ECHO_C" >&6
21167 eval "$as_ac_Header=\$ac_header_preproc"
21169 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21170 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21174 cat >>confdefs.h <<_ACEOF
21175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21185 if test "x$OPENSSL_LIBS" != "x"; then
21186 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21187 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21188 cat >conftest.$ac_ext <<_ACEOF
21191 cat confdefs.h >>conftest.$ac_ext
21192 cat >>conftest.$ac_ext <<_ACEOF
21193 /* end confdefs.h. */
21194 #include <openssl/crypto.h>
21195 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21200 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21201 $EGREP "yes" >/dev/null 2>&1; then
21206 if test "x$goodssl" != "xyes"; then
21207 echo "$as_me:$LINENO: result: no" >&5
21208 echo "${ECHO_T}no" >&6
21211 echo "$as_me:$LINENO: result: yes" >&5
21212 echo "${ECHO_T}yes" >&6
21213 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21214 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21216 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21220 CPPFLAGS=$old_CPPFLAGS
21224 export OPENSSL_LIBS
21227 echo "$as_me:$LINENO: checking for off_t" >&5
21228 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21229 if test "${ac_cv_type_off_t+set}" = set; then
21230 echo $ECHO_N "(cached) $ECHO_C" >&6
21232 cat >conftest.$ac_ext <<_ACEOF
21235 cat confdefs.h >>conftest.$ac_ext
21236 cat >>conftest.$ac_ext <<_ACEOF
21237 /* end confdefs.h. */
21238 $ac_includes_default
21244 if (sizeof (off_t))
21250 rm -f conftest.$ac_objext
21251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21252 (eval $ac_compile) 2>conftest.er1
21254 grep -v '^ *+' conftest.er1 >conftest.err
21256 cat conftest.err >&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); } &&
21259 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21261 (eval $ac_try) 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; } &&
21265 { ac_try='test -s conftest.$ac_objext'
21266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21267 (eval $ac_try) 2>&5
21269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21270 (exit $ac_status); }; }; then
21271 ac_cv_type_off_t=yes
21273 echo "$as_me: failed program was:" >&5
21274 sed 's/^/| /' conftest.$ac_ext >&5
21276 ac_cv_type_off_t=no
21278 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21280 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21281 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21282 if test $ac_cv_type_off_t = yes; then
21286 cat >>confdefs.h <<_ACEOF
21292 echo "$as_me:$LINENO: checking for pid_t" >&5
21293 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21294 if test "${ac_cv_type_pid_t+set}" = set; then
21295 echo $ECHO_N "(cached) $ECHO_C" >&6
21297 cat >conftest.$ac_ext <<_ACEOF
21300 cat confdefs.h >>conftest.$ac_ext
21301 cat >>conftest.$ac_ext <<_ACEOF
21302 /* end confdefs.h. */
21303 $ac_includes_default
21309 if (sizeof (pid_t))
21315 rm -f conftest.$ac_objext
21316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21317 (eval $ac_compile) 2>conftest.er1
21319 grep -v '^ *+' conftest.er1 >conftest.err
21321 cat conftest.err >&5
21322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21323 (exit $ac_status); } &&
21324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21326 (eval $ac_try) 2>&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); }; } &&
21330 { ac_try='test -s conftest.$ac_objext'
21331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21332 (eval $ac_try) 2>&5
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_type_pid_t=yes
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21341 ac_cv_type_pid_t=no
21343 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21345 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21346 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21347 if test $ac_cv_type_pid_t = yes; then
21351 cat >>confdefs.h <<_ACEOF
21357 echo "$as_me:$LINENO: checking for size_t" >&5
21358 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21359 if test "${ac_cv_type_size_t+set}" = set; then
21360 echo $ECHO_N "(cached) $ECHO_C" >&6
21362 cat >conftest.$ac_ext <<_ACEOF
21365 cat confdefs.h >>conftest.$ac_ext
21366 cat >>conftest.$ac_ext <<_ACEOF
21367 /* end confdefs.h. */
21368 $ac_includes_default
21374 if (sizeof (size_t))
21380 rm -f conftest.$ac_objext
21381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21382 (eval $ac_compile) 2>conftest.er1
21384 grep -v '^ *+' conftest.er1 >conftest.err
21386 cat conftest.err >&5
21387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21388 (exit $ac_status); } &&
21389 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21391 (eval $ac_try) 2>&5
21393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21394 (exit $ac_status); }; } &&
21395 { ac_try='test -s conftest.$ac_objext'
21396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21397 (eval $ac_try) 2>&5
21399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21400 (exit $ac_status); }; }; then
21401 ac_cv_type_size_t=yes
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21406 ac_cv_type_size_t=no
21408 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21410 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21411 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21412 if test $ac_cv_type_size_t = yes; then
21416 cat >>confdefs.h <<_ACEOF
21417 #define size_t unsigned
21422 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21423 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21424 if test "${ac_cv_type_uid_t+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21427 cat >conftest.$ac_ext <<_ACEOF
21430 cat confdefs.h >>conftest.$ac_ext
21431 cat >>conftest.$ac_ext <<_ACEOF
21432 /* end confdefs.h. */
21433 #include <sys/types.h>
21436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21437 $EGREP "uid_t" >/dev/null 2>&1; then
21438 ac_cv_type_uid_t=yes
21440 ac_cv_type_uid_t=no
21445 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21446 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21447 if test $ac_cv_type_uid_t = no; then
21449 cat >>confdefs.h <<\_ACEOF
21454 cat >>confdefs.h <<\_ACEOF
21462 echo "$as_me:$LINENO: checking for socklen_t" >&5
21463 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21464 if test "${ac_cv_type_socklen_t+set}" = set; then
21465 echo $ECHO_N "(cached) $ECHO_C" >&6
21467 ac_cv_type_socklen_t=no
21468 cat >conftest.$ac_ext <<_ACEOF
21471 cat confdefs.h >>conftest.$ac_ext
21472 cat >>conftest.$ac_ext <<_ACEOF
21473 /* end confdefs.h. */
21474 #ifdef HAVE_SYS_TYPES_H
21475 #include <sys/types.h>
21477 #ifdef HAVE_SYS_SOCKET_H
21478 #include <sys/socket.h>
21489 rm -f conftest.$ac_objext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21491 (eval $ac_compile) 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest.$ac_objext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 ac_cv_type_socklen_t=yes
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21516 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21520 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21521 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21523 if test "$ac_cv_type_socklen_t" != "yes"; then
21524 cat >>confdefs.h <<\_ACEOF
21525 #define socklen_t int
21532 echo "$as_me:$LINENO: checking for uint8_t" >&5
21533 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21534 if test "${ac_cv_type_uint8_t+set}" = set; then
21535 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 ac_cv_type_uint8_t=no
21538 cat >conftest.$ac_ext <<_ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 #ifdef HAVE_INTTYPES_H
21545 #include <inttypes.h>
21547 #ifdef HAVE_STDINT_H
21548 #include <stdint.h>
21559 rm -f conftest.$ac_objext
21560 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21561 (eval $ac_compile) 2>conftest.er1
21563 grep -v '^ *+' conftest.er1 >conftest.err
21565 cat conftest.err >&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); } &&
21568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21570 (eval $ac_try) 2>&5
21572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21573 (exit $ac_status); }; } &&
21574 { ac_try='test -s conftest.$ac_objext'
21575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21576 (eval $ac_try) 2>&5
21578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21579 (exit $ac_status); }; }; then
21580 ac_cv_type_uint8_t=yes
21582 echo "$as_me: failed program was:" >&5
21583 sed 's/^/| /' conftest.$ac_ext >&5
21586 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21590 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21591 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21593 if test "$ac_cv_type_uint8_t" != "yes"; then
21594 cat >>confdefs.h <<\_ACEOF
21595 #define uint8_t unsigned char
21602 echo "$as_me:$LINENO: checking for uint16_t" >&5
21603 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21604 if test "${ac_cv_type_uint16_t+set}" = set; then
21605 echo $ECHO_N "(cached) $ECHO_C" >&6
21607 ac_cv_type_uint16_t=no
21608 cat >conftest.$ac_ext <<_ACEOF
21611 cat confdefs.h >>conftest.$ac_ext
21612 cat >>conftest.$ac_ext <<_ACEOF
21613 /* end confdefs.h. */
21614 #ifdef HAVE_INTTYPES_H
21615 #include <inttypes.h>
21617 #ifdef HAVE_STDINT_H
21618 #include <stdint.h>
21629 rm -f conftest.$ac_objext
21630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21631 (eval $ac_compile) 2>conftest.er1
21633 grep -v '^ *+' conftest.er1 >conftest.err
21635 cat conftest.err >&5
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); } &&
21638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21640 (eval $ac_try) 2>&5
21642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); }; } &&
21644 { ac_try='test -s conftest.$ac_objext'
21645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21646 (eval $ac_try) 2>&5
21648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21649 (exit $ac_status); }; }; then
21650 ac_cv_type_uint16_t=yes
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21660 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21661 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21663 if test "$ac_cv_type_uint16_t" != "yes"; then
21664 cat >>confdefs.h <<\_ACEOF
21665 #define uint16_t unsigned short
21672 echo "$as_me:$LINENO: checking for uint32_t" >&5
21673 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21674 if test "${ac_cv_type_uint32_t+set}" = set; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21677 ac_cv_type_uint32_t=no
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 #ifdef HAVE_INTTYPES_H
21685 #include <inttypes.h>
21687 #ifdef HAVE_STDINT_H
21688 #include <stdint.h>
21699 rm -f conftest.$ac_objext
21700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21701 (eval $ac_compile) 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21707 (exit $ac_status); } &&
21708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21710 (eval $ac_try) 2>&5
21712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21713 (exit $ac_status); }; } &&
21714 { ac_try='test -s conftest.$ac_objext'
21715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21716 (eval $ac_try) 2>&5
21718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21719 (exit $ac_status); }; }; then
21720 ac_cv_type_uint32_t=yes
21722 echo "$as_me: failed program was:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21730 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21731 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21733 if test "$ac_cv_type_uint32_t" != "yes"; then
21734 cat >>confdefs.h <<\_ACEOF
21735 #define uint32_t unsigned int
21792 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21793 echo "$as_me:$LINENO: checking for $ac_func" >&5
21794 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21795 if eval "test \"\${$as_ac_var+set}\" = set"; then
21796 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 cat >conftest.$ac_ext <<_ACEOF
21801 cat confdefs.h >>conftest.$ac_ext
21802 cat >>conftest.$ac_ext <<_ACEOF
21803 /* end confdefs.h. */
21804 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21805 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21806 #define $ac_func innocuous_$ac_func
21808 /* System header to define __stub macros and hopefully few prototypes,
21809 which can conflict with char $ac_func (); below.
21810 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21811 <limits.h> exists even on freestanding compilers. */
21814 # include <limits.h>
21816 # include <assert.h>
21821 /* Override any gcc2 internal prototype to avoid an error. */
21826 /* We use char because int might match the return type of a gcc2
21827 builtin and then its argument prototype would still apply. */
21829 /* The GNU C library defines this for functions which it implements
21830 to always fail with ENOSYS. Some functions are actually named
21831 something starting with __ and the normal name is an alias. */
21832 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21835 char (*f) () = $ac_func;
21844 return f != $ac_func;
21849 rm -f conftest.$ac_objext conftest$ac_exeext
21850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21851 (eval $ac_link) 2>conftest.er1
21853 grep -v '^ *+' conftest.er1 >conftest.err
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21857 (exit $ac_status); } &&
21858 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21860 (eval $ac_try) 2>&5
21862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21863 (exit $ac_status); }; } &&
21864 { ac_try='test -s conftest$ac_exeext'
21865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21866 (eval $ac_try) 2>&5
21868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21869 (exit $ac_status); }; }; then
21870 eval "$as_ac_var=yes"
21872 echo "$as_me: failed program was:" >&5
21873 sed 's/^/| /' conftest.$ac_ext >&5
21875 eval "$as_ac_var=no"
21877 rm -f conftest.err conftest.$ac_objext \
21878 conftest$ac_exeext conftest.$ac_ext
21880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21881 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21882 if test `eval echo '${'$as_ac_var'}'` = yes; then
21883 cat >>confdefs.h <<_ACEOF
21884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21901 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21902 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21903 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21906 cat >conftest.$ac_ext <<_ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h. */
21914 #include <string.h>
21915 #ifdef HAVE_UNISTD_H
21916 #include <unistd.h>
21918 #ifdef HAVE_CRYPT_H
21921 #ifdef HAVE_ERRNO_H
21924 #ifdef HAVE_RESOURCE_H
21925 #include <resource.h>
21927 #ifdef HAVE_GETOPT_H
21928 #include <getopt.h>
21930 #ifdef HAVE_MALLOC_H
21931 #include <malloc.h>
21936 #ifdef HAVE_UTMPX_H
21939 #ifdef HAVE_SYS_SELECT_H
21940 #include <sys/select.h>
21942 #ifdef HAVE_DLFCN_H
21945 #ifdef HAVE_REGEX_H
21948 #ifdef HAVE_SYSLOG_H
21949 #include <syslog.h>
21951 #ifdef HAVE_INTTYPES_H
21952 #include <inttypes.h>
21954 #ifdef HAVE_STDINT_H
21955 #include <stdint.h>
21957 #ifdef HAVE_ARPA_INET_H
21958 #include <arpa/inet.h>
21964 char *(*pfn) = (char *(*)) $ac_func
21969 rm -f conftest.$ac_objext
21970 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21971 (eval $ac_compile) 2>conftest.er1
21973 grep -v '^ *+' conftest.er1 >conftest.err
21975 cat conftest.err >&5
21976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21977 (exit $ac_status); } &&
21978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21980 (eval $ac_try) 2>&5
21982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21983 (exit $ac_status); }; } &&
21984 { ac_try='test -s conftest.$ac_objext'
21985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21986 (eval $ac_try) 2>&5
21988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21989 (exit $ac_status); }; }; then
21990 eval "radius_cv_decl_needed_$ac_func=no"
21992 echo "$as_me: failed program was:" >&5
21993 sed 's/^/| /' conftest.$ac_ext >&5
21995 eval "radius_cv_decl_needed_$ac_func=yes"
21997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22000 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22001 echo "$as_me:$LINENO: result: yes" >&5
22002 echo "${ECHO_T}yes" >&6
22003 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22004 cat >>confdefs.h <<_ACEOF
22005 #define $radius_tr_decl 1
22009 echo "$as_me:$LINENO: result: no" >&5
22010 echo "${ECHO_T}no" >&6
22016 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22017 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22018 if test "${ac_cv_type_signal+set}" = set; then
22019 echo $ECHO_N "(cached) $ECHO_C" >&6
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <sys/types.h>
22028 #include <signal.h>
22033 extern "C" void (*signal (int, void (*)(int)))(int);
22035 void (*signal ()) ();
22046 rm -f conftest.$ac_objext
22047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22048 (eval $ac_compile) 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); } &&
22055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22057 (eval $ac_try) 2>&5
22059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22060 (exit $ac_status); }; } &&
22061 { ac_try='test -s conftest.$ac_objext'
22062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22063 (eval $ac_try) 2>&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); }; }; then
22067 ac_cv_type_signal=void
22069 echo "$as_me: failed program was:" >&5
22070 sed 's/^/| /' conftest.$ac_ext >&5
22072 ac_cv_type_signal=int
22074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22076 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22077 echo "${ECHO_T}$ac_cv_type_signal" >&6
22079 cat >>confdefs.h <<_ACEOF
22080 #define RETSIGTYPE $ac_cv_type_signal
22085 if test "x$ac_cv_header_utmpx_h" = "xyes"
22088 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22089 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22092 cat >conftest.$ac_ext <<_ACEOF
22095 cat confdefs.h >>conftest.$ac_ext
22096 cat >>conftest.$ac_ext <<_ACEOF
22097 /* end confdefs.h. */
22101 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22107 int foo = offsetof(struct utmpx, ut_xtime)
22112 rm -f conftest.$ac_objext
22113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22114 (eval $ac_compile) 2>conftest.er1
22116 grep -v '^ *+' conftest.er1 >conftest.err
22118 cat conftest.err >&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); } &&
22121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22123 (eval $ac_try) 2>&5
22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126 (exit $ac_status); }; } &&
22127 { ac_try='test -s conftest.$ac_objext'
22128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22129 (eval $ac_try) 2>&5
22131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22132 (exit $ac_status); }; }; then
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22142 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22143 if test "x$has_element" != "x"; then
22144 echo "$as_me:$LINENO: result: yes" >&5
22145 echo "${ECHO_T}yes" >&6
22146 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22148 echo "$as_me:$LINENO: result: no" >&5
22149 echo "${ECHO_T}no" >&6
22150 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22153 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22155 cat >>confdefs.h <<\_ACEOF
22156 #define ut_xtime ut_tv.tv_sec
22163 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22164 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22174 #include <netinet/in.h>
22176 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22182 int foo = offsetof(struct in_pktinfo, ipi_addr)
22187 rm -f conftest.$ac_objext
22188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22189 (eval $ac_compile) 2>conftest.er1
22191 grep -v '^ *+' conftest.er1 >conftest.err
22193 cat conftest.err >&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); } &&
22196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; } &&
22202 { ac_try='test -s conftest.$ac_objext'
22203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22204 (eval $ac_try) 2>&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); }; }; then
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22215 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22217 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22218 if test "x$has_element" != "x"; then
22219 echo "$as_me:$LINENO: result: yes" >&5
22220 echo "${ECHO_T}yes" >&6
22221 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22223 echo "$as_me:$LINENO: result: no" >&5
22224 echo "${ECHO_T}no" >&6
22225 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22228 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22230 cat >>confdefs.h <<\_ACEOF
22231 #define HAVE_IP_PKTINFO 1
22237 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22238 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22239 if test "${ac_cv_c_const+set}" = set; then
22240 echo $ECHO_N "(cached) $ECHO_C" >&6
22242 cat >conftest.$ac_ext <<_ACEOF
22245 cat confdefs.h >>conftest.$ac_ext
22246 cat >>conftest.$ac_ext <<_ACEOF
22247 /* end confdefs.h. */
22252 /* FIXME: Include the comments suggested by Paul. */
22253 #ifndef __cplusplus
22254 /* Ultrix mips cc rejects this. */
22255 typedef int charset[2];
22257 /* SunOS 4.1.1 cc rejects this. */
22258 char const *const *ccp;
22260 /* NEC SVR4.0.2 mips cc rejects this. */
22261 struct point {int x, y;};
22262 static struct point const zero = {0,0};
22263 /* AIX XL C 1.02.0.0 rejects this.
22264 It does not let you subtract one const X* pointer from another in
22265 an arm of an if-expression whose if-part is not a constant
22267 const char *g = "string";
22268 ccp = &g + (g ? g-g : 0);
22269 /* HPUX 7.0 cc rejects these. */
22272 ccp = (char const *const *) p;
22273 { /* SCO 3.2v4 cc rejects this. */
22275 char const *s = 0 ? (char *) 0 : (char const *) 0;
22279 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22280 int x[] = {25, 17};
22281 const int *foo = &x[0];
22284 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22285 typedef const int *iptr;
22289 { /* AIX XL C 1.02.0.0 rejects this saying
22290 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22291 struct s { int j; const int *ap[3]; };
22292 struct s *b; b->j = 5;
22294 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22295 const int foo = 10;
22303 rm -f conftest.$ac_objext
22304 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22305 (eval $ac_compile) 2>conftest.er1
22307 grep -v '^ *+' conftest.er1 >conftest.err
22309 cat conftest.err >&5
22310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22311 (exit $ac_status); } &&
22312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22314 (eval $ac_try) 2>&5
22316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22317 (exit $ac_status); }; } &&
22318 { ac_try='test -s conftest.$ac_objext'
22319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22320 (eval $ac_try) 2>&5
22322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22323 (exit $ac_status); }; }; then
22326 echo "$as_me: failed program was:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22331 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22333 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22334 echo "${ECHO_T}$ac_cv_c_const" >&6
22335 if test $ac_cv_c_const = no; then
22337 cat >>confdefs.h <<\_ACEOF
22344 echo "$as_me:$LINENO: checking type of OS" >&5
22345 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22347 echo "$as_me:$LINENO: result: $OS" >&5
22348 echo "${ECHO_T}$OS" >&6
22349 if test "$OS" = "OS/2"; then
22356 if test "x$GCC" = "xyes"; then
22357 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22360 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22361 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22362 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22363 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22364 CFLAGS="$CFLAGS $devflags"
22366 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22367 echo "${ECHO_T}yes. Using $devflags" >&6
22370 CFLAGS="$CFLAGS -DNDEBUG"
22372 echo "$as_me:$LINENO: result: no." >&5
22373 echo "${ECHO_T}no." >&6
22377 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22378 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22379 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22380 echo $ECHO_N "(cached) $ECHO_C" >&6
22382 ac_check_lib_save_LIBS=$LIBS
22383 LIBS="-lcrypt $LIBS"
22384 cat >conftest.$ac_ext <<_ACEOF
22387 cat confdefs.h >>conftest.$ac_ext
22388 cat >>conftest.$ac_ext <<_ACEOF
22389 /* end confdefs.h. */
22391 /* Override any gcc2 internal prototype to avoid an error. */
22395 /* We use char because int might match the return type of a gcc2
22396 builtin and then its argument prototype would still apply. */
22406 rm -f conftest.$ac_objext conftest$ac_exeext
22407 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22408 (eval $ac_link) 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22414 (exit $ac_status); } &&
22415 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22417 (eval $ac_try) 2>&5
22419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22420 (exit $ac_status); }; } &&
22421 { ac_try='test -s conftest$ac_exeext'
22422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22423 (eval $ac_try) 2>&5
22425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22426 (exit $ac_status); }; }; then
22427 ac_cv_lib_crypt_crypt=yes
22429 echo "$as_me: failed program was:" >&5
22430 sed 's/^/| /' conftest.$ac_ext >&5
22432 ac_cv_lib_crypt_crypt=no
22434 rm -f conftest.err conftest.$ac_objext \
22435 conftest$ac_exeext conftest.$ac_ext
22436 LIBS=$ac_check_lib_save_LIBS
22438 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22439 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22440 if test $ac_cv_lib_crypt_crypt = yes; then
22445 if test "$CRYPTLIB" != ""; then
22446 cat >>confdefs.h <<\_ACEOF
22447 #define HAVE_CRYPT 1
22451 echo "$as_me:$LINENO: checking for crypt" >&5
22452 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22453 if test "${ac_cv_func_crypt+set}" = set; then
22454 echo $ECHO_N "(cached) $ECHO_C" >&6
22456 cat >conftest.$ac_ext <<_ACEOF
22459 cat confdefs.h >>conftest.$ac_ext
22460 cat >>conftest.$ac_ext <<_ACEOF
22461 /* end confdefs.h. */
22462 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22464 #define crypt innocuous_crypt
22466 /* System header to define __stub macros and hopefully few prototypes,
22467 which can conflict with char crypt (); below.
22468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22469 <limits.h> exists even on freestanding compilers. */
22472 # include <limits.h>
22474 # include <assert.h>
22479 /* Override any gcc2 internal prototype to avoid an error. */
22484 /* We use char because int might match the return type of a gcc2
22485 builtin and then its argument prototype would still apply. */
22487 /* The GNU C library defines this for functions which it implements
22488 to always fail with ENOSYS. Some functions are actually named
22489 something starting with __ and the normal name is an alias. */
22490 #if defined (__stub_crypt) || defined (__stub___crypt)
22493 char (*f) () = crypt;
22507 rm -f conftest.$ac_objext conftest$ac_exeext
22508 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22509 (eval $ac_link) 2>conftest.er1
22511 grep -v '^ *+' conftest.er1 >conftest.err
22513 cat conftest.err >&5
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } &&
22516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22518 (eval $ac_try) 2>&5
22520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22521 (exit $ac_status); }; } &&
22522 { ac_try='test -s conftest$ac_exeext'
22523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22524 (eval $ac_try) 2>&5
22526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22527 (exit $ac_status); }; }; then
22528 ac_cv_func_crypt=yes
22530 echo "$as_me: failed program was:" >&5
22531 sed 's/^/| /' conftest.$ac_ext >&5
22533 ac_cv_func_crypt=no
22535 rm -f conftest.err conftest.$ac_objext \
22536 conftest$ac_exeext conftest.$ac_ext
22538 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22539 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22540 if test $ac_cv_func_crypt = yes; then
22541 cat >>confdefs.h <<\_ACEOF
22542 #define HAVE_CRYPT 1
22549 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22550 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22551 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22552 echo $ECHO_N "(cached) $ECHO_C" >&6
22554 ac_check_lib_save_LIBS=$LIBS
22555 LIBS="-lcipher $LIBS"
22556 cat >conftest.$ac_ext <<_ACEOF
22559 cat confdefs.h >>conftest.$ac_ext
22560 cat >>conftest.$ac_ext <<_ACEOF
22561 /* end confdefs.h. */
22563 /* Override any gcc2 internal prototype to avoid an error. */
22567 /* We use char because int might match the return type of a gcc2
22568 builtin and then its argument prototype would still apply. */
22578 rm -f conftest.$ac_objext conftest$ac_exeext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22580 (eval $ac_link) 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } &&
22587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22589 (eval $ac_try) 2>&5
22591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22592 (exit $ac_status); }; } &&
22593 { ac_try='test -s conftest$ac_exeext'
22594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22595 (eval $ac_try) 2>&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); }; }; then
22599 ac_cv_lib_cipher_setkey=yes
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22604 ac_cv_lib_cipher_setkey=no
22606 rm -f conftest.err conftest.$ac_objext \
22607 conftest$ac_exeext conftest.$ac_ext
22608 LIBS=$ac_check_lib_save_LIBS
22610 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22611 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22612 if test $ac_cv_lib_cipher_setkey = yes; then
22613 CRYPTLIB="${CRYPTLIB} -lcipher"
22619 if test "x$WITH_SNMP" = "xyes"; then
22624 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22625 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22627 cat >conftest.$ac_ext <<_ACEOF
22630 cat confdefs.h >>conftest.$ac_ext
22631 cat >>conftest.$ac_ext <<_ACEOF
22632 /* end confdefs.h. */
22634 #ifdef HAVE_SYS_TYPES_H
22635 #include <sys/types.h>
22637 #ifdef HAVE_STDINT_H
22638 #include <stdint.h>
22640 #ifdef HAVE_STDIO_H
22643 #ifdef HAVE_NETDB_H
22646 #ifdef HAVE_UNISTD_H
22647 #include <unistd.h>
22649 #include <ucd-snmp/ucd-snmp-config.h>
22650 #include <ucd-snmp/asn1.h>
22651 #include <ucd-snmp/snmp.h>
22652 #include <ucd-snmp/snmp_impl.h>
22661 rm -f conftest.$ac_objext
22662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22663 (eval $ac_compile) 2>conftest.er1
22665 grep -v '^ *+' conftest.er1 >conftest.err
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } &&
22670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22672 (eval $ac_try) 2>&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); }; } &&
22676 { ac_try='test -s conftest.$ac_objext'
22677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22678 (eval $ac_try) 2>&5
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 SNMP_INCLUDE="";ucdsnmp=yes
22684 echo "$as_me: failed program was:" >&5
22685 sed 's/^/| /' conftest.$ac_ext >&5
22689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22691 if test "x$ucdsnmp" = "x"; then
22692 old_CFLAGS="$CFLAGS"
22693 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22694 CFLAGS="$old_CFLAGS -I$try"
22695 cat >conftest.$ac_ext <<_ACEOF
22698 cat confdefs.h >>conftest.$ac_ext
22699 cat >>conftest.$ac_ext <<_ACEOF
22700 /* end confdefs.h. */
22702 #ifdef HAVE_SYS_TYPES_H
22703 #include <sys/types.h>
22705 #ifdef HAVE_STDINT_H
22706 #include <stdint.h>
22708 #ifdef HAVE_STDIO_H
22711 #ifdef HAVE_NETDB_H
22714 #ifdef HAVE_UNISTD_H
22715 #include <unistd.h>
22717 #include <ucd-snmp/ucd-snmp-config.h>
22718 #include <ucd-snmp/asn1.h>
22719 #include <ucd-snmp/snmp.h>
22720 #include <ucd-snmp/snmp_impl.h>
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731 (eval $ac_compile) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; } &&
22744 { ac_try='test -s conftest.$ac_objext'
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_INCLUDE="-I$try";ucdsnmp=yes
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22758 if test "x$ucdsnmp" != "x"; then
22762 CFLAGS="$old_CFLAGS"
22765 if test "x$ucdsnmp" = "x"; then
22766 old_CFLAGS="$CFLAGS"
22767 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22768 CFLAGS="$old_CFLAGS -I$try"
22769 cat >conftest.$ac_ext <<_ACEOF
22772 cat confdefs.h >>conftest.$ac_ext
22773 cat >>conftest.$ac_ext <<_ACEOF
22774 /* end confdefs.h. */
22776 #ifdef HAVE_SYS_TYPES_H
22777 #include <sys/types.h>
22779 #ifdef HAVE_STDINT_H
22780 #include <stdint.h>
22782 #ifdef HAVE_STDIO_H
22785 #ifdef HAVE_NETDB_H
22788 #ifdef HAVE_UNISTD_H
22789 #include <unistd.h>
22793 #include <snmp_impl.h>
22802 rm -f conftest.$ac_objext
22803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22804 (eval $ac_compile) 2>conftest.er1
22806 grep -v '^ *+' conftest.er1 >conftest.err
22808 cat conftest.err >&5
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } &&
22811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22813 (eval $ac_try) 2>&5
22815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22816 (exit $ac_status); }; } &&
22817 { ac_try='test -s conftest.$ac_objext'
22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22819 (eval $ac_try) 2>&5
22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22822 (exit $ac_status); }; }; then
22823 SNMP_INCLUDE="";ucdsnmp=no
22825 echo "$as_me: failed program was:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22830 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22831 if test "x$ucdsnmp" != "x"; then
22835 CFLAGS="$old_CFLAGS"
22838 if test "x$ucdsnmp" = "x"; then
22839 old_CFLAGS="$CFLAGS"
22840 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22841 CFLAGS="$old_CFLAGS -I$try"
22842 cat >conftest.$ac_ext <<_ACEOF
22845 cat confdefs.h >>conftest.$ac_ext
22846 cat >>conftest.$ac_ext <<_ACEOF
22847 /* end confdefs.h. */
22849 #ifdef HAVE_SYS_TYPES_H
22850 #include <sys/types.h>
22852 #ifdef HAVE_STDINT_H
22853 #include <stdint.h>
22855 #ifdef HAVE_STDIO_H
22858 #ifdef HAVE_NETDB_H
22861 #ifdef HAVE_UNISTD_H
22862 #include <unistd.h>
22866 #include <snmp_impl.h>
22875 rm -f conftest.$ac_objext
22876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22877 (eval $ac_compile) 2>conftest.er1
22879 grep -v '^ *+' conftest.er1 >conftest.err
22881 cat conftest.err >&5
22882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22883 (exit $ac_status); } &&
22884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22886 (eval $ac_try) 2>&5
22888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22889 (exit $ac_status); }; } &&
22890 { ac_try='test -s conftest.$ac_objext'
22891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22892 (eval $ac_try) 2>&5
22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22895 (exit $ac_status); }; }; then
22896 SNMP_INCLUDE="-I$try";ucdsnmp=no
22898 echo "$as_me: failed program was:" >&5
22899 sed 's/^/| /' conftest.$ac_ext >&5
22903 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22904 if test "x$ucdsnmp" != "x"; then
22908 CFLAGS="$old_CFLAGS"
22911 if test "x$ucdsnmp" = "x"; then
22912 echo "$as_me:$LINENO: result: no" >&5
22913 echo "${ECHO_T}no" >&6
22915 if test "x$ucdsnmp" = "xyes"; then
22916 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22917 echo "${ECHO_T}(ucd-snmp)yes" >&6
22918 cat >>confdefs.h <<\_ACEOF
22919 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22923 echo "$as_me:$LINENO: result: yes" >&5
22924 echo "${ECHO_T}yes" >&6
22925 cat >>confdefs.h <<\_ACEOF
22926 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22930 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22931 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22934 LIBS="$old_LIBS -lsnmp"
22935 cat >conftest.$ac_ext <<_ACEOF
22938 cat confdefs.h >>conftest.$ac_ext
22939 cat >>conftest.$ac_ext <<_ACEOF
22940 /* end confdefs.h. */
22941 extern char snmp_build_var_op();
22945 snmp_build_var_op()
22950 rm -f conftest.$ac_objext conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 (eval $ac_link) 2>conftest.er1
22954 grep -v '^ *+' conftest.er1 >conftest.err
22956 cat conftest.err >&5
22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22958 (exit $ac_status); } &&
22959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22961 (eval $ac_try) 2>&5
22963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22964 (exit $ac_status); }; } &&
22965 { ac_try='test -s conftest$ac_exeext'
22966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22967 (eval $ac_try) 2>&5
22969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); }; }; then
22973 echo "$as_me: failed program was:" >&5
22974 sed 's/^/| /' conftest.$ac_ext >&5
22978 rm -f conftest.err conftest.$ac_objext \
22979 conftest$ac_exeext conftest.$ac_ext
22981 if test "x$SNMP_LIBS" = "x"; then
22982 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
22983 LIBS="$old_LIBS -L$try -lsnmp"
22984 cat >conftest.$ac_ext <<_ACEOF
22987 cat confdefs.h >>conftest.$ac_ext
22988 cat >>conftest.$ac_ext <<_ACEOF
22989 /* end confdefs.h. */
22990 extern char snmp_build_var_op();
22994 snmp_build_var_op()
22999 rm -f conftest.$ac_objext conftest$ac_exeext
23000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23001 (eval $ac_link) 2>conftest.er1
23003 grep -v '^ *+' conftest.er1 >conftest.err
23005 cat conftest.err >&5
23006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23007 (exit $ac_status); } &&
23008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23010 (eval $ac_try) 2>&5
23012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013 (exit $ac_status); }; } &&
23014 { ac_try='test -s conftest$ac_exeext'
23015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23016 (eval $ac_try) 2>&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); }; }; then
23020 SNMP_LIBS="-L$try -lsnmp"
23022 echo "$as_me: failed program was:" >&5
23023 sed 's/^/| /' conftest.$ac_ext >&5
23027 rm -f conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23029 if test "x$SNMP_LIBS" != "x"; then
23032 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23033 cat >conftest.$ac_ext <<_ACEOF
23036 cat confdefs.h >>conftest.$ac_ext
23037 cat >>conftest.$ac_ext <<_ACEOF
23038 /* end confdefs.h. */
23039 extern char snmp_build_var_op();
23043 snmp_build_var_op()
23048 rm -f conftest.$ac_objext conftest$ac_exeext
23049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23050 (eval $ac_link) 2>conftest.er1
23052 grep -v '^ *+' conftest.er1 >conftest.err
23054 cat conftest.err >&5
23055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23056 (exit $ac_status); } &&
23057 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23059 (eval $ac_try) 2>&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); }; } &&
23063 { ac_try='test -s conftest$ac_exeext'
23064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23065 (eval $ac_try) 2>&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); }; }; then
23069 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23071 echo "$as_me: failed program was:" >&5
23072 sed 's/^/| /' conftest.$ac_ext >&5
23076 rm -f conftest.err conftest.$ac_objext \
23077 conftest$ac_exeext conftest.$ac_ext
23078 if test "x$SNMP_LIBS" != "x"; then
23081 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23082 cat >conftest.$ac_ext <<_ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 extern char snmp_build_var_op();
23092 snmp_build_var_op()
23097 rm -f conftest.$ac_objext conftest$ac_exeext
23098 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23099 (eval $ac_link) 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } &&
23106 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23108 (eval $ac_try) 2>&5
23110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23111 (exit $ac_status); }; } &&
23112 { ac_try='test -s conftest$ac_exeext'
23113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23114 (eval $ac_try) 2>&5
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); }; }; then
23118 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23120 echo "$as_me: failed program was:" >&5
23121 sed 's/^/| /' conftest.$ac_ext >&5
23125 rm -f conftest.err conftest.$ac_objext \
23126 conftest$ac_exeext conftest.$ac_ext
23127 if test "x$SNMP_LIBS" != "x"; then
23134 CFLAGS="$old_CFLAGS"
23135 if test "x$SNMP_LIBS" = "x"; then
23136 echo "$as_me:$LINENO: result: no" >&5
23137 echo "${ECHO_T}no" >&6
23140 echo "$as_me:$LINENO: result: yes" >&5
23141 echo "${ECHO_T}yes" >&6
23142 cat >>confdefs.h <<\_ACEOF
23143 #define WITH_SNMP 1
23146 cat >>confdefs.h <<\_ACEOF
23147 #define HAVE_LIBSNMP 1
23155 gethostbyaddrrstyle=""
23156 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23157 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23160 cat >>confdefs.h <<\_ACEOF
23161 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23164 gethostbyaddrrstyle=BSD
23165 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23166 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23169 if test "x$gethostbyaddrrstyle" = "x"; then
23170 cat >conftest.$ac_ext <<_ACEOF
23173 cat confdefs.h >>conftest.$ac_ext
23174 cat >>conftest.$ac_ext <<_ACEOF
23175 /* end confdefs.h. */
23183 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23188 rm -f conftest.$ac_objext conftest$ac_exeext
23189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23190 (eval $ac_link) 2>conftest.er1
23192 grep -v '^ *+' conftest.er1 >conftest.err
23194 cat conftest.err >&5
23195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23196 (exit $ac_status); } &&
23197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23199 (eval $ac_try) 2>&5
23201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23202 (exit $ac_status); }; } &&
23203 { ac_try='test -s conftest$ac_exeext'
23204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23205 (eval $ac_try) 2>&5
23207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208 (exit $ac_status); }; }; then
23210 cat >>confdefs.h <<\_ACEOF
23211 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23214 gethostbyaddrrstyle=GNU
23217 echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23221 rm -f conftest.err conftest.$ac_objext \
23222 conftest$ac_exeext conftest.$ac_ext
23224 if test "x$gethostbyaddrrstyle" = "x"; then
23225 cat >conftest.$ac_ext <<_ACEOF
23228 cat confdefs.h >>conftest.$ac_ext
23229 cat >>conftest.$ac_ext <<_ACEOF
23230 /* end confdefs.h. */
23238 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23243 rm -f conftest.$ac_objext conftest$ac_exeext
23244 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23245 (eval $ac_link) 2>conftest.er1
23247 grep -v '^ *+' conftest.er1 >conftest.err
23249 cat conftest.err >&5
23250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23251 (exit $ac_status); } &&
23252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23254 (eval $ac_try) 2>&5
23256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23257 (exit $ac_status); }; } &&
23258 { ac_try='test -s conftest$ac_exeext'
23259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23260 (eval $ac_try) 2>&5
23262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23263 (exit $ac_status); }; }; then
23265 cat >>confdefs.h <<\_ACEOF
23266 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23269 gethostbyaddrrstyle=SYSV
23272 echo "$as_me: failed program was:" >&5
23273 sed 's/^/| /' conftest.$ac_ext >&5
23276 rm -f conftest.err conftest.$ac_objext \
23277 conftest$ac_exeext conftest.$ac_ext
23279 if test "x$gethostbyaddrrstyle" = "x"; then
23280 cat >conftest.$ac_ext <<_ACEOF
23283 cat confdefs.h >>conftest.$ac_ext
23284 cat >>conftest.$ac_ext <<_ACEOF
23285 /* end confdefs.h. */
23293 gethostbyaddr(NULL, 0, 0)
23298 rm -f conftest.$ac_objext conftest$ac_exeext
23299 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23300 (eval $ac_link) 2>conftest.er1
23302 grep -v '^ *+' conftest.er1 >conftest.err
23304 cat conftest.err >&5
23305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23306 (exit $ac_status); } &&
23307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23309 (eval $ac_try) 2>&5
23311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23312 (exit $ac_status); }; } &&
23313 { ac_try='test -s conftest$ac_exeext'
23314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23315 (eval $ac_try) 2>&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); }; }; then
23320 cat >>confdefs.h <<\_ACEOF
23321 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23324 gethostbyaddrrstyle=BSD
23327 echo "$as_me: failed program was:" >&5
23328 sed 's/^/| /' conftest.$ac_ext >&5
23331 rm -f conftest.err conftest.$ac_objext \
23332 conftest$ac_exeext conftest.$ac_ext
23335 if test "x$gethostbyaddrrstyle" = "x"; then
23336 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23337 echo "${ECHO_T}none! It must not exist, here." >&6
23339 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23340 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23343 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23344 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23345 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23348 gethostbynamerstyle=""
23349 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23350 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23364 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23369 rm -f conftest.$ac_objext conftest$ac_exeext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23371 (eval $ac_link) 2>conftest.er1
23373 grep -v '^ *+' conftest.er1 >conftest.err
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest$ac_exeext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23391 cat >>confdefs.h <<\_ACEOF
23392 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23395 gethostbynamerstyle=GNU
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23402 rm -f conftest.err conftest.$ac_objext \
23403 conftest$ac_exeext conftest.$ac_ext
23404 if test "x$gethostbynamerstyle" = "x"; then
23405 cat >conftest.$ac_ext <<_ACEOF
23408 cat confdefs.h >>conftest.$ac_ext
23409 cat >>conftest.$ac_ext <<_ACEOF
23410 /* end confdefs.h. */
23418 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23423 rm -f conftest.$ac_objext conftest$ac_exeext
23424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23425 (eval $ac_link) 2>conftest.er1
23427 grep -v '^ *+' conftest.er1 >conftest.err
23429 cat conftest.err >&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } &&
23432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23434 (eval $ac_try) 2>&5
23436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23437 (exit $ac_status); }; } &&
23438 { ac_try='test -s conftest$ac_exeext'
23439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23440 (eval $ac_try) 2>&5
23442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); }; }; then
23445 cat >>confdefs.h <<\_ACEOF
23446 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23449 gethostbynamerstyle=SYSV
23452 echo "$as_me: failed program was:" >&5
23453 sed 's/^/| /' conftest.$ac_ext >&5
23456 rm -f conftest.err conftest.$ac_objext \
23457 conftest$ac_exeext conftest.$ac_ext
23459 if test "x$gethostbynamerstyle" = "x"; then
23460 cat >conftest.$ac_ext <<_ACEOF
23463 cat confdefs.h >>conftest.$ac_ext
23464 cat >>conftest.$ac_ext <<_ACEOF
23465 /* end confdefs.h. */
23473 gethostbyname(NULL)
23478 rm -f conftest.$ac_objext conftest$ac_exeext
23479 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23480 (eval $ac_link) 2>conftest.er1
23482 grep -v '^ *+' conftest.er1 >conftest.err
23484 cat conftest.err >&5
23485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486 (exit $ac_status); } &&
23487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23489 (eval $ac_try) 2>&5
23491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23492 (exit $ac_status); }; } &&
23493 { ac_try='test -s conftest$ac_exeext'
23494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23495 (eval $ac_try) 2>&5
23497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23498 (exit $ac_status); }; }; then
23500 cat >>confdefs.h <<\_ACEOF
23501 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23504 gethostbynamerstyle=BSD
23507 echo "$as_me: failed program was:" >&5
23508 sed 's/^/| /' conftest.$ac_ext >&5
23511 rm -f conftest.err conftest.$ac_objext \
23512 conftest$ac_exeext conftest.$ac_ext
23515 if test "x$gethostbynamerstyle" = "x"; then
23516 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23517 echo "${ECHO_T}none! It must not exist, here." >&6
23519 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23520 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23523 if test "x$gethostbynamerstyle" = "xBSD"; then
23524 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23525 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23529 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23530 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23531 cat >conftest.$ac_ext <<_ACEOF
23534 cat confdefs.h >>conftest.$ac_ext
23535 cat >>conftest.$ac_ext <<_ACEOF
23536 /* end confdefs.h. */
23543 ctime_r(NULL, NULL, 0)
23548 rm -f conftest.$ac_objext conftest$ac_exeext
23549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23550 (eval $ac_link) 2>conftest.er1
23552 grep -v '^ *+' conftest.er1 >conftest.err
23554 cat conftest.err >&5
23555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23556 (exit $ac_status); } &&
23557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; } &&
23563 { ac_try='test -s conftest$ac_exeext'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23570 cat >>confdefs.h <<\_ACEOF
23571 #define CTIMERSTYLE SOLARISSTYLE
23574 ctimerstyle="SOLARIS"
23577 echo "$as_me: failed program was:" >&5
23578 sed 's/^/| /' conftest.$ac_ext >&5
23581 rm -f conftest.err conftest.$ac_objext \
23582 conftest$ac_exeext conftest.$ac_ext
23583 if test "x$ctimerstyle" = "x"; then
23584 cat >conftest.$ac_ext <<_ACEOF
23587 cat confdefs.h >>conftest.$ac_ext
23588 cat >>conftest.$ac_ext <<_ACEOF
23589 /* end confdefs.h. */
23596 ctime_r(NULL, NULL)
23601 rm -f conftest.$ac_objext conftest$ac_exeext
23602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23603 (eval $ac_link) 2>conftest.er1
23605 grep -v '^ *+' conftest.er1 >conftest.err
23607 cat conftest.err >&5
23608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23609 (exit $ac_status); } &&
23610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23612 (eval $ac_try) 2>&5
23614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615 (exit $ac_status); }; } &&
23616 { ac_try='test -s conftest$ac_exeext'
23617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23618 (eval $ac_try) 2>&5
23620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23621 (exit $ac_status); }; }; then
23623 cat >>confdefs.h <<\_ACEOF
23624 #define CTIMERSTYLE POSIXSTYLE
23627 ctimerstyle="POSIX"
23630 echo "$as_me: failed program was:" >&5
23631 sed 's/^/| /' conftest.$ac_ext >&5
23634 rm -f conftest.err conftest.$ac_objext \
23635 conftest$ac_exeext conftest.$ac_ext
23638 if test "x$ctimerstyle" = "x"; then
23639 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23640 echo "${ECHO_T}none! It must not exist, here." >&6
23642 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23643 echo "${ECHO_T}${ctimerstyle}-style" >&6
23647 if test x"$rad_enable_largefiles" = xyes ; then
23648 echo "$as_me:$LINENO: checking for largefile linkage" >&5
23649 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23652 echo "$as_me:$LINENO: result: no" >&5
23653 echo "${ECHO_T}no" >&6
23654 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23655 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23656 { (exit 1); exit 1; }; }
23659 echo "$as_me:$LINENO: result: ok" >&5
23660 echo "${ECHO_T}ok" >&6
23661 LFS_CFLAGS="-D_LARGE_FILES"
23666 echo "$as_me:$LINENO: result: ok" >&5
23667 echo "${ECHO_T}ok" >&6
23668 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23673 echo "$as_me:$LINENO: result: no" >&5
23674 echo "${ECHO_T}no" >&6
23675 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23676 echo "$as_me: error: Large files not supported on this platform" >&2;}
23677 { (exit 1); exit 1; }; }
23680 echo "$as_me:$LINENO: result: maybe" >&5
23681 echo "${ECHO_T}maybe" >&6
23682 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23686 cat >>confdefs.h <<\_ACEOF
23687 #define _GNU_SOURCE 1
23692 echo "$as_me:$LINENO: result: ok" >&5
23693 echo "${ECHO_T}ok" >&6
23694 # Extract the first word of "getconf", so it can be a program name with args.
23695 set dummy getconf; ac_word=$2
23696 echo "$as_me:$LINENO: checking for $ac_word" >&5
23697 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23698 if test "${ac_cv_path_GETCONF+set}" = set; then
23699 echo $ECHO_N "(cached) $ECHO_C" >&6
23703 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23707 for as_dir in $PATH
23710 test -z "$as_dir" && as_dir=.
23711 for ac_exec_ext in '' $ac_executable_extensions; do
23712 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23713 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23714 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23723 GETCONF=$ac_cv_path_GETCONF
23725 if test -n "$GETCONF"; then
23726 echo "$as_me:$LINENO: result: $GETCONF" >&5
23727 echo "${ECHO_T}$GETCONF" >&6
23729 echo "$as_me:$LINENO: result: no" >&5
23730 echo "${ECHO_T}no" >&6
23733 if test -z "$GETCONF" ; then
23734 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23735 echo "$as_me: error: getconf required to configure large file support" >&2;}
23736 { (exit 1); exit 1; }; }
23738 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23739 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23740 LFS_LIBS=`$GETCONF LFS_LIBS`
23743 echo "$as_me:$LINENO: result: maybe" >&5
23744 echo "${ECHO_T}maybe" >&6
23745 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23760 export top_builddir
23761 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23762 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23769 if test "x$EXPERIMENTAL" = "xyes"; then
23770 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23771 mysubdirs=`echo $bar`
23773 for bar in `cat src/modules/stable`; do
23774 if test -f src/modules/$bar/configure; then
23775 mysubdirs="$mysubdirs src/modules/$bar"
23780 if test "x$EXPERIMENTAL" = "xyes"; then
23781 for foo in `ls -1 src/modules | grep rlm_`; do
23782 MODULES="$MODULES $foo"
23785 for foo in `cat src/modules/stable`; do
23786 MODULES="$MODULES $foo"
23792 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23800 USE_SHARED_LIBS=$enable_shared
23802 USE_STATIC_LIBS=$enable_static
23810 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"
23811 cat >confcache <<\_ACEOF
23812 # This file is a shell script that caches the results of configure
23813 # tests run on this system so they can be shared between configure
23814 # scripts and configure runs, see configure's option --config-cache.
23815 # It is not useful on other systems. If it contains results you don't
23816 # want to keep, you may remove or edit it.
23818 # config.status only pays attention to the cache file if you give it
23819 # the --recheck option to rerun configure.
23821 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23822 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23823 # following values.
23827 # The following way of writing the cache mishandles newlines in values,
23828 # but we know of no workaround that is simple, portable, and efficient.
23829 # So, don't put newlines in cache variables' values.
23830 # Ultrix sh set writes to stderr and can't be redirected directly,
23831 # and sets the high bit in the cache file unless we assign to the vars.
23834 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23836 # `set' does not quote correctly, so add quotes (double-quote
23837 # substitution turns \\\\ into \\, and sed turns \\ into \).
23840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23843 # `set' quotes correctly as required by POSIX, so do not add quotes.
23845 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23852 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23854 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23856 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23857 if test -w $cache_file; then
23858 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23859 cat confcache >$cache_file
23861 echo "not updating unwritable cache $cache_file"
23866 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23867 # Let make expand exec_prefix.
23868 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23870 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23871 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23872 # trailing colons and then remove the whole line if VPATH becomes empty
23873 # (actually we leave an empty line to preserve line numbers).
23874 if test "x$srcdir" = x.; then
23875 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23876 s/:*\$(srcdir):*/:/;
23877 s/:*\${srcdir}:*/:/;
23879 s/^\([^=]*=[ ]*\):*/\1/;
23885 DEFS=-DHAVE_CONFIG_H
23889 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23890 # 1. Remove the extension, and $U if already installed.
23891 ac_i=`echo "$ac_i" |
23892 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23894 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23895 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23897 LIBOBJS=$ac_libobjs
23899 LTLIBOBJS=$ac_ltlibobjs
23903 : ${CONFIG_STATUS=./config.status}
23904 ac_clean_files_save=$ac_clean_files
23905 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23906 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23907 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23908 cat >$CONFIG_STATUS <<_ACEOF
23910 # Generated by $as_me.
23911 # Run this file to recreate the current configuration.
23912 # Compiler output produced by configure, useful for debugging
23913 # configure, is in config.log if it exists.
23916 ac_cs_recheck=false
23918 SHELL=\${CONFIG_SHELL-$SHELL}
23921 cat >>$CONFIG_STATUS <<\_ACEOF
23922 ## --------------------- ##
23923 ## M4sh Initialization. ##
23924 ## --------------------- ##
23926 # Be Bourne compatible
23927 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23930 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23931 # is contrary to our usage. Disable this feature.
23932 alias -g '${1+"$@"}'='"$@"'
23933 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23936 DUALCASE=1; export DUALCASE # for MKS sh
23938 # Support unset when possible.
23939 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23946 # Work around bugs in pre-3.0 UWIN ksh.
23947 $as_unset ENV MAIL MAILPATH
23954 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23955 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23956 LC_TELEPHONE LC_TIME
23958 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23959 eval $as_var=C; export $as_var
23965 # Required to use basename.
23966 if expr a : '\(a\)' >/dev/null 2>&1; then
23972 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23973 as_basename=basename
23979 # Name of the executable.
23980 as_me=`$as_basename "$0" ||
23981 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23982 X"$0" : 'X\(//\)$' \| \
23983 X"$0" : 'X\(/\)$' \| \
23984 . : '\(.\)' 2>/dev/null ||
23986 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23987 /^X\/\(\/\/\)$/{ s//\1/; q; }
23988 /^X\/\(\/\).*/{ s//\1/; q; }
23992 # PATH needs CR, and LINENO needs CR and PATH.
23993 # Avoid depending upon Character Ranges.
23994 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23995 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23996 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23997 as_cr_digits='0123456789'
23998 as_cr_alnum=$as_cr_Letters$as_cr_digits
24000 # The user is always right.
24001 if test "${PATH_SEPARATOR+set}" != set; then
24002 echo "#! /bin/sh" >conf$$.sh
24003 echo "exit 0" >>conf$$.sh
24005 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24014 as_lineno_1=$LINENO
24015 as_lineno_2=$LINENO
24016 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24017 test "x$as_lineno_1" != "x$as_lineno_2" &&
24018 test "x$as_lineno_3" = "x$as_lineno_2" || {
24019 # Find who we are. Look in the path if we contain no path at all
24022 *[\\/]* ) as_myself=$0 ;;
24023 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24024 for as_dir in $PATH
24027 test -z "$as_dir" && as_dir=.
24028 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24033 # We did not find ourselves, most probably we were run as `sh COMMAND'
24034 # in which case we are not to be found in the path.
24035 if test "x$as_myself" = x; then
24038 if test ! -f "$as_myself"; then
24039 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24040 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24041 { (exit 1); exit 1; }; }
24043 case $CONFIG_SHELL in
24045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24046 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24049 test -z "$as_dir" && as_dir=.
24050 for as_base in sh bash ksh sh5; do
24053 if ("$as_dir/$as_base" -c '
24054 as_lineno_1=$LINENO
24055 as_lineno_2=$LINENO
24056 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24057 test "x$as_lineno_1" != "x$as_lineno_2" &&
24058 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24059 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24060 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24061 CONFIG_SHELL=$as_dir/$as_base
24062 export CONFIG_SHELL
24063 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24071 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24072 # uniformly replaced by the line number. The first 'sed' inserts a
24073 # line-number line before each line; the second 'sed' does the real
24074 # work. The second script uses 'N' to pair each line-number line
24075 # with the numbered line, and appends trailing '-' during
24076 # substitution so that $LINENO is not a special case at line end.
24077 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24078 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24079 sed '=' <$as_myself |
24084 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24087 s,^['$as_cr_digits']*\n,,
24088 ' >$as_me.lineno &&
24089 chmod +x $as_me.lineno ||
24090 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24091 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24092 { (exit 1); exit 1; }; }
24094 # Don't try to exec as it changes $[0], causing all sort of problems
24095 # (the dirname of $[0] is not the place where we might find the
24096 # original and so on. Autoconf is especially sensible to this).
24098 # Exit status is that of the last command.
24103 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24104 *c*,-n*) ECHO_N= ECHO_C='
24106 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24107 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24110 if expr a : '\(a\)' >/dev/null 2>&1; then
24116 rm -f conf$$ conf$$.exe conf$$.file
24118 if ln -s conf$$.file conf$$ 2>/dev/null; then
24119 # We could just check for DJGPP; but this test a) works b) is more generic
24120 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24121 if test -f conf$$.exe; then
24122 # Don't use ln at all; we don't have any links
24127 elif ln conf$$.file conf$$ 2>/dev/null; then
24132 rm -f conf$$ conf$$.exe conf$$.file
24134 if mkdir -p . 2>/dev/null; then
24137 test -d ./-p && rmdir ./-p
24141 as_executable_p="test -f"
24143 # Sed expression to map a string onto a valid CPP name.
24144 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24146 # Sed expression to map a string onto a valid variable name.
24147 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24151 # We need space, tab and new line, in precisely that order.
24161 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24162 # report actual input values of CONFIG_FILES etc. instead of their
24163 # values after options handling. Logging --version etc. is OK.
24167 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24168 ## Running $as_me. ##
24173 This file was extended by $as_me, which was
24174 generated by GNU Autoconf 2.59. Invocation command line was
24176 CONFIG_FILES = $CONFIG_FILES
24177 CONFIG_HEADERS = $CONFIG_HEADERS
24178 CONFIG_LINKS = $CONFIG_LINKS
24179 CONFIG_COMMANDS = $CONFIG_COMMANDS
24183 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24187 # Files that config.status was made for.
24188 if test -n "$ac_config_files"; then
24189 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24192 if test -n "$ac_config_headers"; then
24193 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24196 if test -n "$ac_config_links"; then
24197 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24200 if test -n "$ac_config_commands"; then
24201 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24204 cat >>$CONFIG_STATUS <<\_ACEOF
24207 \`$as_me' instantiates files from templates according to the
24208 current configuration.
24210 Usage: $0 [OPTIONS] [FILE]...
24212 -h, --help print this help, then exit
24213 -V, --version print version number, then exit
24214 -q, --quiet do not print progress messages
24215 -d, --debug don't remove temporary files
24216 --recheck update $as_me by reconfiguring in the same conditions
24217 --file=FILE[:TEMPLATE]
24218 instantiate the configuration file FILE
24219 --header=FILE[:TEMPLATE]
24220 instantiate the configuration header FILE
24222 Configuration files:
24225 Configuration headers:
24228 Report bugs to <bug-autoconf@gnu.org>."
24231 cat >>$CONFIG_STATUS <<_ACEOF
24234 configured by $0, generated by GNU Autoconf 2.59,
24235 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24237 Copyright (C) 2003 Free Software Foundation, Inc.
24238 This config.status script is free software; the Free Software Foundation
24239 gives unlimited permission to copy, distribute and modify it."
24243 cat >>$CONFIG_STATUS <<\_ACEOF
24244 # If no file are specified by the user, then we need to provide default
24245 # value. By we need to know if files were specified by the user.
24251 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24252 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24260 *) # This is not an option, so the user has probably given explicit
24263 ac_need_defaults=false;;
24267 # Handling of the options.
24269 cat >>$CONFIG_STATUS <<\_ACEOF
24270 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24272 --version | --vers* | -V )
24273 echo "$ac_cs_version"; exit 0 ;;
24275 # Conflict between --help and --header
24276 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24277 Try \`$0 --help' for more information." >&5
24278 echo "$as_me: error: ambiguous option: $1
24279 Try \`$0 --help' for more information." >&2;}
24280 { (exit 1); exit 1; }; };;
24281 --help | --hel | -h )
24282 echo "$ac_cs_usage"; exit 0 ;;
24283 --debug | --d* | -d )
24285 --file | --fil | --fi | --f )
24287 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24288 ac_need_defaults=false;;
24289 --header | --heade | --head | --hea )
24291 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24292 ac_need_defaults=false;;
24293 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24294 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24297 # This is an error.
24298 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24299 Try \`$0 --help' for more information." >&5
24300 echo "$as_me: error: unrecognized option: $1
24301 Try \`$0 --help' for more information." >&2;}
24302 { (exit 1); exit 1; }; } ;;
24304 *) ac_config_targets="$ac_config_targets $1" ;;
24310 ac_configure_extra_args=
24312 if $ac_cs_silent; then
24314 ac_configure_extra_args="$ac_configure_extra_args --silent"
24318 cat >>$CONFIG_STATUS <<_ACEOF
24319 if \$ac_cs_recheck; then
24320 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24321 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24330 cat >>$CONFIG_STATUS <<\_ACEOF
24331 for ac_config_target in $ac_config_targets
24333 case "$ac_config_target" in
24334 # Handling of arguments.
24335 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24336 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24337 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24338 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24339 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24340 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24341 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24342 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24343 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24344 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24345 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24346 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24347 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24348 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24349 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24350 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24351 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24352 { (exit 1); exit 1; }; };;
24356 # If the user did not use the arguments to specify the items to instantiate,
24357 # then the envvar interface is used. Set only those that are not.
24358 # We use the long form for the default assignment because of an extremely
24359 # bizarre bug on SunOS 4.1.3.
24360 if $ac_need_defaults; then
24361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24365 # Have a temporary directory for convenience. Make it in the build tree
24366 # simply because there is no reason to put it here, and in addition,
24367 # creating and moving files from /tmp can sometimes cause problems.
24368 # Create a temporary directory, and hook for its removal unless debugging.
24371 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24372 trap '{ (exit 1); exit 1; }' 1 2 13 15
24375 # Create a (secure) tmp directory for tmp files.
24378 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24379 test -n "$tmp" && test -d "$tmp"
24382 tmp=./confstat$$-$RANDOM
24383 (umask 077 && mkdir $tmp)
24386 echo "$me: cannot create a temporary directory in ." >&2
24387 { (exit 1); exit 1; }
24392 cat >>$CONFIG_STATUS <<_ACEOF
24395 # CONFIG_FILES section.
24398 # No need to generate the scripts if there are no CONFIG_FILES.
24399 # This happens for instance when ./config.status config.h
24400 if test -n "\$CONFIG_FILES"; then
24401 # Protect against being on the right side of a sed subst in config.status.
24402 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24403 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24404 s,@SHELL@,$SHELL,;t t
24405 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24406 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24407 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24408 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24409 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24410 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24411 s,@exec_prefix@,$exec_prefix,;t t
24412 s,@prefix@,$prefix,;t t
24413 s,@program_transform_name@,$program_transform_name,;t t
24414 s,@bindir@,$bindir,;t t
24415 s,@sbindir@,$sbindir,;t t
24416 s,@libexecdir@,$libexecdir,;t t
24417 s,@datadir@,$datadir,;t t
24418 s,@sysconfdir@,$sysconfdir,;t t
24419 s,@sharedstatedir@,$sharedstatedir,;t t
24420 s,@localstatedir@,$localstatedir,;t t
24421 s,@libdir@,$libdir,;t t
24422 s,@includedir@,$includedir,;t t
24423 s,@oldincludedir@,$oldincludedir,;t t
24424 s,@infodir@,$infodir,;t t
24425 s,@mandir@,$mandir,;t t
24426 s,@build_alias@,$build_alias,;t t
24427 s,@host_alias@,$host_alias,;t t
24428 s,@target_alias@,$target_alias,;t t
24429 s,@DEFS@,$DEFS,;t t
24430 s,@ECHO_C@,$ECHO_C,;t t
24431 s,@ECHO_N@,$ECHO_N,;t t
24432 s,@ECHO_T@,$ECHO_T,;t t
24433 s,@LIBS@,$LIBS,;t t
24435 s,@CFLAGS@,$CFLAGS,;t t
24436 s,@LDFLAGS@,$LDFLAGS,;t t
24437 s,@CPPFLAGS@,$CPPFLAGS,;t t
24438 s,@ac_ct_CC@,$ac_ct_CC,;t t
24439 s,@EXEEXT@,$EXEEXT,;t t
24440 s,@OBJEXT@,$OBJEXT,;t t
24442 s,@EGREP@,$EGREP,;t t
24443 s,@RANLIB@,$RANLIB,;t t
24444 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24445 s,@abs_top_builddir@,$abs_top_builddir,;t t
24446 s,@GMAKE@,$GMAKE,;t t
24447 s,@MAKE@,$MAKE,;t t
24448 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24449 s,@LIBTOOL@,$LIBTOOL,;t t
24450 s,@build@,$build,;t t
24451 s,@build_cpu@,$build_cpu,;t t
24452 s,@build_vendor@,$build_vendor,;t t
24453 s,@build_os@,$build_os,;t t
24454 s,@host@,$host,;t t
24455 s,@host_cpu@,$host_cpu,;t t
24456 s,@host_vendor@,$host_vendor,;t t
24457 s,@host_os@,$host_os,;t t
24458 s,@LN_S@,$LN_S,;t t
24459 s,@ECHO@,$ECHO,;t t
24461 s,@ac_ct_AR@,$ac_ct_AR,;t t
24462 s,@STRIP@,$STRIP,;t t
24463 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24465 s,@CXXFLAGS@,$CXXFLAGS,;t t
24466 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24467 s,@CXXCPP@,$CXXCPP,;t t
24469 s,@FFLAGS@,$FFLAGS,;t t
24470 s,@ac_ct_F77@,$ac_ct_F77,;t t
24471 s,@docdir@,$docdir,;t t
24472 s,@logdir@,$logdir,;t t
24473 s,@radacctdir@,$radacctdir,;t t
24474 s,@raddbdir@,$raddbdir,;t t
24475 s,@PERL@,$PERL,;t t
24476 s,@SNMPGET@,$SNMPGET,;t t
24477 s,@SNMPWALK@,$SNMPWALK,;t t
24478 s,@RUSERS@,$RUSERS,;t t
24479 s,@ACLOCAL@,$ACLOCAL,;t t
24480 s,@AUTOCONF@,$AUTOCONF,;t t
24481 s,@AUTOHEADER@,$AUTOHEADER,;t t
24482 s,@LOCATE@,$LOCATE,;t t
24483 s,@DIRNAME@,$DIRNAME,;t t
24484 s,@GREP@,$GREP,;t t
24485 s,@REGEX@,$REGEX,;t t
24486 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24487 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24488 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24489 s,@LIBPREFIX@,$LIBPREFIX,;t t
24490 s,@CRYPTLIB@,$CRYPTLIB,;t t
24491 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24492 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24493 s,@GETCONF@,$GETCONF,;t t
24494 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24495 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24496 s,@LFS_LIBS@,$LFS_LIBS,;t t
24497 s,@HOSTINFO@,$HOSTINFO,;t t
24498 s,@LIBLTDL@,$LIBLTDL,;t t
24499 s,@INCLTDL@,$INCLTDL,;t t
24500 s,@subdirs@,$subdirs,;t t
24501 s,@MODULES@,$MODULES,;t t
24502 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24503 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24504 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24505 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24506 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24507 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24508 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24509 s,@LIBOBJS@,$LIBOBJS,;t t
24510 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24515 cat >>$CONFIG_STATUS <<\_ACEOF
24516 # Split the substitutions into bite-sized pieces for seds with
24517 # small command number limits, like on Digital OSF/1 and HP-UX.
24518 ac_max_sed_lines=48
24519 ac_sed_frag=1 # Number of current file.
24520 ac_beg=1 # First line for current file.
24521 ac_end=$ac_max_sed_lines # Line after last line for current file.
24524 while $ac_more_lines; do
24525 if test $ac_beg -gt 1; then
24526 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24528 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24530 if test ! -s $tmp/subs.frag; then
24531 ac_more_lines=false
24533 # The purpose of the label and of the branching condition is to
24534 # speed up the sed processing (if there are no `@' at all, there
24535 # is no need to browse any of the substitutions).
24536 # These are the two extra sed commands mentioned above.
24538 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24539 if test -z "$ac_sed_cmds"; then
24540 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24542 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24544 ac_sed_frag=`expr $ac_sed_frag + 1`
24546 ac_end=`expr $ac_end + $ac_max_sed_lines`
24549 if test -z "$ac_sed_cmds"; then
24552 fi # test -n "$CONFIG_FILES"
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24557 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24559 - | *:- | *:-:* ) # input from stdin
24561 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24562 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24563 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24564 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24565 * ) ac_file_in=$ac_file.in ;;
24568 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24569 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24570 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24571 X"$ac_file" : 'X\(//\)[^/]' \| \
24572 X"$ac_file" : 'X\(//\)$' \| \
24573 X"$ac_file" : 'X\(/\)' \| \
24574 . : '\(.\)' 2>/dev/null ||
24576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24577 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24578 /^X\(\/\/\)$/{ s//\1/; q; }
24579 /^X\(\/\).*/{ s//\1/; q; }
24581 { if $as_mkdir_p; then
24586 while test ! -d "$as_dir"; do
24587 as_dirs="$as_dir $as_dirs"
24588 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24589 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24590 X"$as_dir" : 'X\(//\)[^/]' \| \
24591 X"$as_dir" : 'X\(//\)$' \| \
24592 X"$as_dir" : 'X\(/\)' \| \
24593 . : '\(.\)' 2>/dev/null ||
24595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24596 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24597 /^X\(\/\/\)$/{ s//\1/; q; }
24598 /^X\(\/\).*/{ s//\1/; q; }
24601 test ! -n "$as_dirs" || mkdir $as_dirs
24602 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24603 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24604 { (exit 1); exit 1; }; }; }
24608 if test "$ac_dir" != .; then
24609 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24610 # A "../" for each directory in $ac_dir_suffix.
24611 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24613 ac_dir_suffix= ac_top_builddir=
24617 .) # No --srcdir option. We are building in place.
24619 if test -z "$ac_top_builddir"; then
24622 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24624 [\\/]* | ?:[\\/]* ) # Absolute path.
24625 ac_srcdir=$srcdir$ac_dir_suffix;
24626 ac_top_srcdir=$srcdir ;;
24627 *) # Relative path.
24628 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24629 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24632 # Do not use `cd foo && pwd` to compute absolute paths, because
24633 # the directories may not exist.
24635 .) ac_abs_builddir="$ac_dir";;
24638 .) ac_abs_builddir=`pwd`;;
24639 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24640 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24643 case $ac_abs_builddir in
24644 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24646 case ${ac_top_builddir}. in
24647 .) ac_abs_top_builddir=$ac_abs_builddir;;
24648 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24649 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24652 case $ac_abs_builddir in
24653 .) ac_abs_srcdir=$ac_srcdir;;
24656 .) ac_abs_srcdir=$ac_abs_builddir;;
24657 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24658 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24661 case $ac_abs_builddir in
24662 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24664 case $ac_top_srcdir in
24665 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24666 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24667 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24673 # Let's still pretend it is `configure' which instantiates (i.e., don't
24674 # use $as_me), people would be surprised to read:
24675 # /* config.h. Generated by config.status. */
24676 if test x"$ac_file" = x-; then
24679 configure_input="$ac_file. "
24681 configure_input=$configure_input"Generated from `echo $ac_file_in |
24682 sed 's,.*/,,'` by configure."
24684 # First look for the input files in the build tree, otherwise in the
24686 ac_file_inputs=`IFS=:
24687 for f in $ac_file_in; do
24689 -) echo $tmp/stdin ;;
24691 # Absolute (can't be DOS-style, as IFS=:)
24692 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24693 echo "$as_me: error: cannot find input file: $f" >&2;}
24694 { (exit 1); exit 1; }; }
24697 if test -f "$f"; then
24700 elif test -f "$srcdir/$f"; then
24705 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24706 echo "$as_me: error: cannot find input file: $f" >&2;}
24707 { (exit 1); exit 1; }; }
24710 done` || { (exit 1); exit 1; }
24712 if test x"$ac_file" != x-; then
24713 { echo "$as_me:$LINENO: creating $ac_file" >&5
24714 echo "$as_me: creating $ac_file" >&6;}
24718 cat >>$CONFIG_STATUS <<_ACEOF
24722 cat >>$CONFIG_STATUS <<\_ACEOF
24724 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24725 s,@configure_input@,$configure_input,;t t
24726 s,@srcdir@,$ac_srcdir,;t t
24727 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24728 s,@top_srcdir@,$ac_top_srcdir,;t t
24729 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24730 s,@builddir@,$ac_builddir,;t t
24731 s,@abs_builddir@,$ac_abs_builddir,;t t
24732 s,@top_builddir@,$ac_top_builddir,;t t
24733 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24734 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24736 if test x"$ac_file" != x-; then
24737 mv $tmp/out $ac_file
24745 cat >>$CONFIG_STATUS <<\_ACEOF
24748 # CONFIG_HEADER section.
24751 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24752 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24754 # ac_d sets the value in "#define NAME VALUE" lines.
24755 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24756 ac_dB='[ ].*$,\1#\2'
24759 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24760 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24761 ac_uB='$,\1#\2define\3'
24765 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24766 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24768 - | *:- | *:-:* ) # input from stdin
24770 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24771 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24772 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24773 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24774 * ) ac_file_in=$ac_file.in ;;
24777 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24778 echo "$as_me: creating $ac_file" >&6;}
24780 # First look for the input files in the build tree, otherwise in the
24782 ac_file_inputs=`IFS=:
24783 for f in $ac_file_in; do
24785 -) echo $tmp/stdin ;;
24787 # Absolute (can't be DOS-style, as IFS=:)
24788 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24789 echo "$as_me: error: cannot find input file: $f" >&2;}
24790 { (exit 1); exit 1; }; }
24791 # Do quote $f, to prevent DOS paths from being IFS'd.
24794 if test -f "$f"; then
24797 elif test -f "$srcdir/$f"; then
24802 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24803 echo "$as_me: error: cannot find input file: $f" >&2;}
24804 { (exit 1); exit 1; }; }
24807 done` || { (exit 1); exit 1; }
24808 # Remove the trailing spaces.
24809 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24813 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24814 # `conftest.undefs', that substitutes the proper values into
24815 # config.h.in to produce config.h. The first handles `#define'
24816 # templates, and the second `#undef' templates.
24817 # And first: Protect against being on the right side of a sed subst in
24818 # config.status. Protect against being in an unquoted here document
24819 # in config.status.
24820 rm -f conftest.defines conftest.undefs
24821 # Using a here document instead of a string reduces the quoting nightmare.
24822 # Putting comments in sed scripts is not portable.
24824 # `end' is used to avoid that the second main sed command (meant for
24825 # 0-ary CPP macros) applies to n-ary macro definitions.
24826 # See the Autoconf documentation for `clear'.
24827 cat >confdef2sed.sed <<\_ACEOF
24832 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24834 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24837 # If some macros were called several times there might be several times
24838 # the same #defines, which is useless. Nevertheless, we may not want to
24839 # sort them, since we want the *last* AC-DEFINE to be honored.
24840 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24841 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24842 rm -f confdef2sed.sed
24844 # This sed command replaces #undef with comments. This is necessary, for
24845 # example, in the case of _POSIX_SOURCE, which is predefined and required
24846 # on some systems where configure will not decide to define it.
24847 cat >>conftest.undefs <<\_ACEOF
24848 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24851 # Break up conftest.defines because some shells have a limit on the size
24852 # of here documents, and old seds have small limits too (100 cmds).
24853 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24854 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24855 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24856 echo ' :' >>$CONFIG_STATUS
24857 rm -f conftest.tail
24858 while grep . conftest.defines >/dev/null
24860 # Write a limited-size here document to $tmp/defines.sed.
24861 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24862 # Speed up: don't consider the non `#define' lines.
24863 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24864 # Work around the forget-to-reset-the-flag bug.
24865 echo 't clr' >>$CONFIG_STATUS
24866 echo ': clr' >>$CONFIG_STATUS
24867 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24869 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24871 mv $tmp/out $tmp/in
24873 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24874 rm -f conftest.defines
24875 mv conftest.tail conftest.defines
24877 rm -f conftest.defines
24878 echo ' fi # grep' >>$CONFIG_STATUS
24879 echo >>$CONFIG_STATUS
24881 # Break up conftest.undefs because some shells have a limit on the size
24882 # of here documents, and old seds have small limits too (100 cmds).
24883 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24884 rm -f conftest.tail
24885 while grep . conftest.undefs >/dev/null
24887 # Write a limited-size here document to $tmp/undefs.sed.
24888 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24889 # Speed up: don't consider the non `#undef'
24890 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24891 # Work around the forget-to-reset-the-flag bug.
24892 echo 't clr' >>$CONFIG_STATUS
24893 echo ': clr' >>$CONFIG_STATUS
24894 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24896 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24898 mv $tmp/out $tmp/in
24900 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24901 rm -f conftest.undefs
24902 mv conftest.tail conftest.undefs
24904 rm -f conftest.undefs
24906 cat >>$CONFIG_STATUS <<\_ACEOF
24907 # Let's still pretend it is `configure' which instantiates (i.e., don't
24908 # use $as_me), people would be surprised to read:
24909 # /* config.h. Generated by config.status. */
24910 if test x"$ac_file" = x-; then
24911 echo "/* Generated by configure. */" >$tmp/config.h
24913 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24915 cat $tmp/in >>$tmp/config.h
24917 if test x"$ac_file" != x-; then
24918 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24919 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24920 echo "$as_me: $ac_file is unchanged" >&6;}
24922 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24924 X"$ac_file" : 'X\(//\)[^/]' \| \
24925 X"$ac_file" : 'X\(//\)$' \| \
24926 X"$ac_file" : 'X\(/\)' \| \
24927 . : '\(.\)' 2>/dev/null ||
24929 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24930 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24931 /^X\(\/\/\)$/{ s//\1/; q; }
24932 /^X\(\/\).*/{ s//\1/; q; }
24934 { if $as_mkdir_p; then
24939 while test ! -d "$as_dir"; do
24940 as_dirs="$as_dir $as_dirs"
24941 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24942 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24943 X"$as_dir" : 'X\(//\)[^/]' \| \
24944 X"$as_dir" : 'X\(//\)$' \| \
24945 X"$as_dir" : 'X\(/\)' \| \
24946 . : '\(.\)' 2>/dev/null ||
24948 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24949 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24950 /^X\(\/\/\)$/{ s//\1/; q; }
24951 /^X\(\/\).*/{ s//\1/; q; }
24954 test ! -n "$as_dirs" || mkdir $as_dirs
24955 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24956 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24957 { (exit 1); exit 1; }; }; }
24960 mv $tmp/config.h $ac_file
24964 rm -f $tmp/config.h
24969 cat >>$CONFIG_STATUS <<\_ACEOF
24971 { (exit 0); exit 0; }
24973 chmod +x $CONFIG_STATUS
24974 ac_clean_files=$ac_clean_files_save
24977 # configure is writing to config.log, and then calls config.status.
24978 # config.status does its own redirection, appending to config.log.
24979 # Unfortunately, on DOS this fails, as config.log is still kept open
24980 # by configure, so config.status won't be able to write to it; its
24981 # output is simply discarded. So we exec the FD to /dev/null,
24982 # effectively closing config.log, so it can be properly (re)opened and
24983 # appended to by config.status. When coming back to configure, we
24984 # need to make the FD available again.
24985 if test "$no_create" != yes; then
24987 ac_config_status_args=
24988 test "$silent" = yes &&
24989 ac_config_status_args="$ac_config_status_args --quiet"
24991 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24993 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24994 # would make configure fail if this is the last instruction.
24995 $ac_cs_success || { (exit 1); exit 1; }
24999 # CONFIG_SUBDIRS section.
25001 if test "$no_recursion" != yes; then
25003 # Remove --cache-file and --srcdir arguments so they do not pile up.
25004 ac_sub_configure_args=
25006 for ac_arg in $ac_configure_args; do
25007 if test -n "$ac_prev"; then
25012 -cache-file | --cache-file | --cache-fil | --cache-fi \
25013 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25014 ac_prev=cache_file ;;
25015 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25016 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25019 --config-cache | -C)
25021 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25023 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25029 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25033 # Always prepend --prefix to ensure using the same prefix
25034 # in subdir configurations.
25035 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25038 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25040 # Do not complain, so a configure script can configure whichever
25041 # parts of a large source tree are present.
25042 test -d $srcdir/$ac_dir || continue
25044 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25045 echo "$as_me: configuring in $ac_dir" >&6;}
25046 { if $as_mkdir_p; then
25051 while test ! -d "$as_dir"; do
25052 as_dirs="$as_dir $as_dirs"
25053 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25055 X"$as_dir" : 'X\(//\)[^/]' \| \
25056 X"$as_dir" : 'X\(//\)$' \| \
25057 X"$as_dir" : 'X\(/\)' \| \
25058 . : '\(.\)' 2>/dev/null ||
25060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25061 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25062 /^X\(\/\/\)$/{ s//\1/; q; }
25063 /^X\(\/\).*/{ s//\1/; q; }
25066 test ! -n "$as_dirs" || mkdir $as_dirs
25067 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25068 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25069 { (exit 1); exit 1; }; }; }
25073 if test "$ac_dir" != .; then
25074 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25075 # A "../" for each directory in $ac_dir_suffix.
25076 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25078 ac_dir_suffix= ac_top_builddir=
25082 .) # No --srcdir option. We are building in place.
25084 if test -z "$ac_top_builddir"; then
25087 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25089 [\\/]* | ?:[\\/]* ) # Absolute path.
25090 ac_srcdir=$srcdir$ac_dir_suffix;
25091 ac_top_srcdir=$srcdir ;;
25092 *) # Relative path.
25093 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25094 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25097 # Do not use `cd foo && pwd` to compute absolute paths, because
25098 # the directories may not exist.
25100 .) ac_abs_builddir="$ac_dir";;
25103 .) ac_abs_builddir=`pwd`;;
25104 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25105 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25108 case $ac_abs_builddir in
25109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25111 case ${ac_top_builddir}. in
25112 .) ac_abs_top_builddir=$ac_abs_builddir;;
25113 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25114 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25117 case $ac_abs_builddir in
25118 .) ac_abs_srcdir=$ac_srcdir;;
25121 .) ac_abs_srcdir=$ac_abs_builddir;;
25122 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25123 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25126 case $ac_abs_builddir in
25127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25129 case $ac_top_srcdir in
25130 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25131 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25132 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25139 # Check for guested configure; otherwise get Cygnus style configure.
25140 if test -f $ac_srcdir/configure.gnu; then
25141 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25142 elif test -f $ac_srcdir/configure; then
25143 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25144 elif test -f $ac_srcdir/configure.in; then
25145 ac_sub_configure=$ac_configure
25147 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25148 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25152 # The recursion is here.
25153 if test -n "$ac_sub_configure"; then
25154 # Make the cache file name correct relative to the subdirectory.
25155 case $cache_file in
25156 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25157 *) # Relative path.
25158 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25161 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25162 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25163 # The eval makes quoting arguments work.
25164 eval $ac_sub_configure $ac_sub_configure_args \
25165 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25166 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25167 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25168 { (exit 1); exit 1; }; }
25176 ac_config_commands="$ac_config_commands default-1"
25178 ac_config_commands="$ac_config_commands default-2"
25180 ac_config_commands="$ac_config_commands default-3"
25182 ac_config_commands="$ac_config_commands default-4"