2 # From configure.in Revision: 1.198.2.15.2.7 .
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 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-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1043 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1044 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1045 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1046 --with-threads Use threads, if available. (default=yes)
1047 --with-snmp Compile in SNMP support. (default=yes)
1048 --with-large-files Compile in large (2G+) file support. (default=no)
1049 --with-static-modules=QUOTED-MODULE-LIST
1050 --with-modules=QUOTED-MODULE-LIST
1051 --with-experimental-modules Use experimental and unstable modules. (default=no)
1052 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1053 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1054 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1055 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1056 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1057 --with-edir Enable Novell eDirectory integration. (default=no)
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 ac_dir_suffix= ac_top_builddir=
1095 .) # No --srcdir option. We are building in place.
1097 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1113 .) ac_abs_builddir="$ac_dir";;
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1160 $ac_configure --help
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_must_keep_next=false
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 -* ) ac_must_keep_next=true ;;
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1301 # The following way of writing the cache mishandles newlines in values,
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1324 for ac_var in $ac_subst_vars
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1331 if test -n "$ac_subst_files"; then
1338 for ac_var in $ac_subst_files
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1346 if test -s confdefs.h; then
1353 sed "/^$/d" confdefs.h | sort
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 # Predefined preprocessor variables.
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1436 # Check that the precious variables saved in the cache have kept the same
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1514 RADIUSD_MAJOR_VERSION=1
1515 RADIUSD_MINOR_VERSION=1.2
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1 >conftest.err
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag"
2088 || test ! -s conftest.err'
2089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }; } &&
2094 { ac_try='test -s conftest.$ac_objext'
2095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }; }; then
2102 echo "$as_me: failed program was:" >&5
2103 sed 's/^/| /' conftest.$ac_ext >&5
2107 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2108 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2111 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2112 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2113 GCC=`test $ac_compiler_gnu = yes && echo yes`
2114 ac_test_CFLAGS=${CFLAGS+set}
2115 ac_save_CFLAGS=$CFLAGS
2117 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2118 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2119 if test "${ac_cv_prog_cc_g+set}" = set; then
2120 echo $ECHO_N "(cached) $ECHO_C" >&6
2122 cat >conftest.$ac_ext <<_ACEOF
2125 cat confdefs.h >>conftest.$ac_ext
2126 cat >>conftest.$ac_ext <<_ACEOF
2127 /* end confdefs.h. */
2137 rm -f conftest.$ac_objext
2138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2139 (eval $ac_compile) 2>conftest.er1
2141 grep -v '^ *+' conftest.er1 >conftest.err
2143 cat conftest.err >&5
2144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145 (exit $ac_status); } &&
2146 { ac_try='test -z "$ac_c_werror_flag"
2147 || 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"
2264 || test ! -s conftest.err'
2265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; } &&
2270 { ac_try='test -s conftest.$ac_objext'
2271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2275 (exit $ac_status); }; }; then
2276 ac_cv_prog_cc_stdc=$ac_arg
2279 echo "$as_me: failed program was:" >&5
2280 sed 's/^/| /' conftest.$ac_ext >&5
2283 rm -f conftest.err conftest.$ac_objext
2285 rm -f conftest.$ac_ext conftest.$ac_objext
2290 case "x$ac_cv_prog_cc_stdc" in
2292 echo "$as_me:$LINENO: result: none needed" >&5
2293 echo "${ECHO_T}none needed" >&6 ;;
2295 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2296 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2297 CC="$CC $ac_cv_prog_cc_stdc" ;;
2300 # Some people use a C++ compiler to compile C. Since we use `exit',
2301 # in C++ we need to declare it. In case someone uses the same compiler
2302 # for both compiling C and C++ we need to have the C++ compiler decide
2303 # the declaration of exit, since it's the most demanding environment.
2304 cat >conftest.$ac_ext <<_ACEOF
2309 rm -f conftest.$ac_objext
2310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2311 (eval $ac_compile) 2>conftest.er1
2313 grep -v '^ *+' conftest.er1 >conftest.err
2315 cat conftest.err >&5
2316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2317 (exit $ac_status); } &&
2318 { ac_try='test -z "$ac_c_werror_flag"
2319 || test ! -s conftest.err'
2320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; } &&
2325 { ac_try='test -s conftest.$ac_objext'
2326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2330 (exit $ac_status); }; }; then
2331 for ac_declaration in \
2333 'extern "C" void std::exit (int) throw (); using std::exit;' \
2334 'extern "C" void std::exit (int); using std::exit;' \
2335 'extern "C" void exit (int) throw ();' \
2336 'extern "C" void exit (int);' \
2339 cat >conftest.$ac_ext <<_ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h. */
2355 rm -f conftest.$ac_objext
2356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2357 (eval $ac_compile) 2>conftest.er1
2359 grep -v '^ *+' conftest.er1 >conftest.err
2361 cat conftest.err >&5
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); } &&
2364 { ac_try='test -z "$ac_c_werror_flag"
2365 || test ! -s conftest.err'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; } &&
2371 { ac_try='test -s conftest.$ac_objext'
2372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2376 (exit $ac_status); }; }; then
2379 echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2400 rm -f conftest.$ac_objext
2401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2402 (eval $ac_compile) 2>conftest.er1
2404 grep -v '^ *+' conftest.er1 >conftest.err
2406 cat conftest.err >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); } &&
2409 { ac_try='test -z "$ac_c_werror_flag"
2410 || test ! -s conftest.err'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; } &&
2416 { ac_try='test -s conftest.$ac_objext'
2417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2421 (exit $ac_status); }; }; then
2424 echo "$as_me: failed program was:" >&5
2425 sed 's/^/| /' conftest.$ac_ext >&5
2428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2431 if test -n "$ac_declaration"; then
2432 echo '#ifdef __cplusplus' >>confdefs.h
2433 echo $ac_declaration >>confdefs.h
2434 echo '#endif' >>confdefs.h
2438 echo "$as_me: failed program was:" >&5
2439 sed 's/^/| /' conftest.$ac_ext >&5
2442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2444 ac_cpp='$CPP $CPPFLAGS'
2445 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2446 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2447 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2452 ac_cpp='$CPP $CPPFLAGS'
2453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2457 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2458 # On Suns, sometimes $CPP names a directory.
2459 if test -n "$CPP" && test -d "$CPP"; then
2462 if test -z "$CPP"; then
2463 if test "${ac_cv_prog_CPP+set}" = set; then
2464 echo $ECHO_N "(cached) $ECHO_C" >&6
2466 # Double quotes because CPP needs to be expanded
2467 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2470 for ac_c_preproc_warn_flag in '' yes
2472 # Use a header file that comes with gcc, so configuring glibc
2473 # with a fresh cross-compiler works.
2474 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2475 # <limits.h> exists even on freestanding compilers.
2476 # On the NeXT, cc -E runs the code through the compiler's parser,
2477 # not just through cpp. "Syntax error" is here to catch this case.
2478 cat >conftest.$ac_ext <<_ACEOF
2481 cat confdefs.h >>conftest.$ac_ext
2482 cat >>conftest.$ac_ext <<_ACEOF
2483 /* end confdefs.h. */
2485 # include <limits.h>
2487 # include <assert.h>
2491 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2492 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2494 grep -v '^ *+' conftest.er1 >conftest.err
2496 cat conftest.err >&5
2497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2498 (exit $ac_status); } >/dev/null; then
2499 if test -s conftest.err; then
2500 ac_cpp_err=$ac_c_preproc_warn_flag
2501 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2508 if test -z "$ac_cpp_err"; then
2511 echo "$as_me: failed program was:" >&5
2512 sed 's/^/| /' conftest.$ac_ext >&5
2514 # Broken: fails on valid input.
2517 rm -f conftest.err conftest.$ac_ext
2519 # OK, works on sane cases. Now check whether non-existent headers
2520 # can be detected and how.
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2527 #include <ac_nonexistent.h>
2529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2532 grep -v '^ *+' conftest.er1 >conftest.err
2534 cat conftest.err >&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); } >/dev/null; then
2537 if test -s conftest.err; then
2538 ac_cpp_err=$ac_c_preproc_warn_flag
2539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2546 if test -z "$ac_cpp_err"; then
2547 # Broken: success on invalid input.
2550 echo "$as_me: failed program was:" >&5
2551 sed 's/^/| /' conftest.$ac_ext >&5
2553 # Passes both tests.
2557 rm -f conftest.err conftest.$ac_ext
2560 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2561 rm -f conftest.err conftest.$ac_ext
2562 if $ac_preproc_ok; then
2574 echo "$as_me:$LINENO: result: $CPP" >&5
2575 echo "${ECHO_T}$CPP" >&6
2577 for ac_c_preproc_warn_flag in '' yes
2579 # Use a header file that comes with gcc, so configuring glibc
2580 # with a fresh cross-compiler works.
2581 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2582 # <limits.h> exists even on freestanding compilers.
2583 # On the NeXT, cc -E runs the code through the compiler's parser,
2584 # not just through cpp. "Syntax error" is here to catch this case.
2585 cat >conftest.$ac_ext <<_ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2592 # include <limits.h>
2594 # include <assert.h>
2598 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2599 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2601 grep -v '^ *+' conftest.er1 >conftest.err
2603 cat conftest.err >&5
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); } >/dev/null; then
2606 if test -s conftest.err; then
2607 ac_cpp_err=$ac_c_preproc_warn_flag
2608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2615 if test -z "$ac_cpp_err"; then
2618 echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2621 # Broken: fails on valid input.
2624 rm -f conftest.err conftest.$ac_ext
2626 # OK, works on sane cases. Now check whether non-existent headers
2627 # can be detected and how.
2628 cat >conftest.$ac_ext <<_ACEOF
2631 cat confdefs.h >>conftest.$ac_ext
2632 cat >>conftest.$ac_ext <<_ACEOF
2633 /* end confdefs.h. */
2634 #include <ac_nonexistent.h>
2636 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2637 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2639 grep -v '^ *+' conftest.er1 >conftest.err
2641 cat conftest.err >&5
2642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2643 (exit $ac_status); } >/dev/null; then
2644 if test -s conftest.err; then
2645 ac_cpp_err=$ac_c_preproc_warn_flag
2646 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2653 if test -z "$ac_cpp_err"; then
2654 # Broken: success on invalid input.
2657 echo "$as_me: failed program was:" >&5
2658 sed 's/^/| /' conftest.$ac_ext >&5
2660 # Passes both tests.
2664 rm -f conftest.err conftest.$ac_ext
2667 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2668 rm -f conftest.err conftest.$ac_ext
2669 if $ac_preproc_ok; then
2672 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2673 See \`config.log' for more details." >&5
2674 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2680 ac_cpp='$CPP $CPPFLAGS'
2681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2686 echo "$as_me:$LINENO: checking for egrep" >&5
2687 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2688 if test "${ac_cv_prog_egrep+set}" = set; then
2689 echo $ECHO_N "(cached) $ECHO_C" >&6
2691 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2692 then ac_cv_prog_egrep='grep -E'
2693 else ac_cv_prog_egrep='egrep'
2696 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2697 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2698 EGREP=$ac_cv_prog_egrep
2702 echo "$as_me:$LINENO: checking for AIX" >&5
2703 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2704 cat >conftest.$ac_ext <<_ACEOF
2707 cat confdefs.h >>conftest.$ac_ext
2708 cat >>conftest.$ac_ext <<_ACEOF
2709 /* end confdefs.h. */
2715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2716 $EGREP "yes" >/dev/null 2>&1; then
2717 echo "$as_me:$LINENO: result: yes" >&5
2718 echo "${ECHO_T}yes" >&6
2719 cat >>confdefs.h <<\_ACEOF
2720 #define _ALL_SOURCE 1
2724 echo "$as_me:$LINENO: result: no" >&5
2725 echo "${ECHO_T}no" >&6
2731 if test $ac_cv_c_compiler_gnu = yes; then
2732 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2733 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2734 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 ac_pattern="Autoconf.*'x'"
2738 cat >conftest.$ac_ext <<_ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2748 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2749 ac_cv_prog_gcc_traditional=yes
2751 ac_cv_prog_gcc_traditional=no
2756 if test $ac_cv_prog_gcc_traditional = no; then
2757 cat >conftest.$ac_ext <<_ACEOF
2760 cat confdefs.h >>conftest.$ac_ext
2761 cat >>conftest.$ac_ext <<_ACEOF
2762 /* end confdefs.h. */
2766 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2767 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2768 ac_cv_prog_gcc_traditional=yes
2774 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2775 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2776 if test $ac_cv_prog_gcc_traditional = yes; then
2777 CC="$CC -traditional"
2781 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2782 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2783 if test "${ac_cv_prog_suncc+set}" = set; then
2784 echo $ECHO_N "(cached) $ECHO_C" >&6
2786 cat > conftest.c <<EOF
2791 if { ac_try='${CC-cc} -E conftest.c'
2792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2796 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2797 ac_cv_prog_suncc=yes
2802 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2803 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2804 if test -n "$ac_tool_prefix"; then
2805 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2807 echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2809 if test "${ac_cv_prog_RANLIB+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$RANLIB"; then
2813 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2819 test -z "$as_dir" && as_dir=.
2820 for ac_exec_ext in '' $ac_executable_extensions; do
2821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2822 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 RANLIB=$ac_cv_prog_RANLIB
2832 if test -n "$RANLIB"; then
2833 echo "$as_me:$LINENO: result: $RANLIB" >&5
2834 echo "${ECHO_T}$RANLIB" >&6
2836 echo "$as_me:$LINENO: result: no" >&5
2837 echo "${ECHO_T}no" >&6
2841 if test -z "$ac_cv_prog_RANLIB"; then
2842 ac_ct_RANLIB=$RANLIB
2843 # Extract the first word of "ranlib", so it can be a program name with args.
2844 set dummy ranlib; ac_word=$2
2845 echo "$as_me:$LINENO: checking for $ac_word" >&5
2846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2847 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2850 if test -n "$ac_ct_RANLIB"; then
2851 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857 test -z "$as_dir" && as_dir=.
2858 for ac_exec_ext in '' $ac_executable_extensions; do
2859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860 ac_cv_prog_ac_ct_RANLIB="ranlib"
2861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2867 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2870 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2871 if test -n "$ac_ct_RANLIB"; then
2872 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2873 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2875 echo "$as_me:$LINENO: result: no" >&5
2876 echo "${ECHO_T}no" >&6
2879 RANLIB=$ac_ct_RANLIB
2881 RANLIB="$ac_cv_prog_RANLIB"
2885 abs_top_builddir=`pwd`
2891 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
2892 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
2893 if test "${ac_cv_c_bigendian+set}" = set; then
2894 echo $ECHO_N "(cached) $ECHO_C" >&6
2896 # See if sys/param.h defines the BYTE_ORDER macro.
2897 cat >conftest.$ac_ext <<_ACEOF
2900 cat confdefs.h >>conftest.$ac_ext
2901 cat >>conftest.$ac_ext <<_ACEOF
2902 /* end confdefs.h. */
2903 #include <sys/types.h>
2904 #include <sys/param.h>
2909 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
2917 rm -f conftest.$ac_objext
2918 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2919 (eval $ac_compile) 2>conftest.er1
2921 grep -v '^ *+' conftest.er1 >conftest.err
2923 cat conftest.err >&5
2924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2925 (exit $ac_status); } &&
2926 { ac_try='test -z "$ac_c_werror_flag"
2927 || test ! -s conftest.err'
2928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; } &&
2933 { ac_try='test -s conftest.$ac_objext'
2934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2938 (exit $ac_status); }; }; then
2939 # It does; now see whether it defined to BIG_ENDIAN or not.
2940 cat >conftest.$ac_ext <<_ACEOF
2943 cat confdefs.h >>conftest.$ac_ext
2944 cat >>conftest.$ac_ext <<_ACEOF
2945 /* end confdefs.h. */
2946 #include <sys/types.h>
2947 #include <sys/param.h>
2952 #if BYTE_ORDER != BIG_ENDIAN
2960 rm -f conftest.$ac_objext
2961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2962 (eval $ac_compile) 2>conftest.er1
2964 grep -v '^ *+' conftest.er1 >conftest.err
2966 cat conftest.err >&5
2967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2968 (exit $ac_status); } &&
2969 { ac_try='test -z "$ac_c_werror_flag"
2970 || test ! -s conftest.err'
2971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; } &&
2976 { ac_try='test -s conftest.$ac_objext'
2977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; }; then
2982 ac_cv_c_bigendian=yes
2984 echo "$as_me: failed program was:" >&5
2985 sed 's/^/| /' conftest.$ac_ext >&5
2987 ac_cv_c_bigendian=no
2989 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2991 echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2994 # It does not; compile a test program.
2995 if test "$cross_compiling" = yes; then
2996 # try to guess the endianness by grepping values into an object file
2997 ac_cv_c_bigendian=unknown
2998 cat >conftest.$ac_ext <<_ACEOF
3001 cat confdefs.h >>conftest.$ac_ext
3002 cat >>conftest.$ac_ext <<_ACEOF
3003 /* end confdefs.h. */
3004 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3005 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3006 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3007 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3008 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3009 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3013 _ascii (); _ebcdic ();
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag"
3028 || test ! -s conftest.err'
3029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3033 (exit $ac_status); }; } &&
3034 { ac_try='test -s conftest.$ac_objext'
3035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; }; then
3040 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3041 ac_cv_c_bigendian=yes
3043 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3044 if test "$ac_cv_c_bigendian" = unknown; then
3045 ac_cv_c_bigendian=no
3047 # finding both strings is unlikely to happen, but who knows?
3048 ac_cv_c_bigendian=unknown
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 cat >conftest.$ac_ext <<_ACEOF
3061 cat confdefs.h >>conftest.$ac_ext
3062 cat >>conftest.$ac_ext <<_ACEOF
3063 /* end confdefs.h. */
3067 /* Are we little or big endian? From Harbison&Steele. */
3071 char c[sizeof (long)];
3074 exit (u.c[sizeof (long) - 1] == 1);
3077 rm -f conftest$ac_exeext
3078 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3079 (eval $ac_link) 2>&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3087 (exit $ac_status); }; }; then
3088 ac_cv_c_bigendian=no
3090 echo "$as_me: program exited with status $ac_status" >&5
3091 echo "$as_me: failed program was:" >&5
3092 sed 's/^/| /' conftest.$ac_ext >&5
3095 ac_cv_c_bigendian=yes
3097 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3102 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3103 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3104 case $ac_cv_c_bigendian in
3107 cat >>confdefs.h <<\_ACEOF
3108 #define WORDS_BIGENDIAN 1
3114 { { echo "$as_me:$LINENO: error: unknown endianness
3115 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3116 echo "$as_me: error: unknown endianness
3117 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3118 { (exit 1); exit 1; }; } ;;
3122 # Extract the first word of "gmake", so it can be a program name with args.
3123 set dummy gmake; ac_word=$2
3124 echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126 if test "${ac_cv_prog_GMAKE+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$GMAKE"; then
3130 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139 ac_cv_prog_GMAKE="yes"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3146 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3149 GMAKE=$ac_cv_prog_GMAKE
3150 if test -n "$GMAKE"; then
3151 echo "$as_me:$LINENO: result: $GMAKE" >&5
3152 echo "${ECHO_T}$GMAKE" >&6
3154 echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6
3158 if test $GMAKE = no; then
3159 # Extract the first word of "make", so it can be a program name with args.
3160 set dummy make; ac_word=$2
3161 echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3163 if test "${ac_cv_path_MAKE+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3168 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175 test -z "$as_dir" && as_dir=.
3176 for ac_exec_ext in '' $ac_executable_extensions; do
3177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3178 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3185 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3189 MAKE=$ac_cv_path_MAKE
3191 if test -n "$MAKE"; then
3192 echo "$as_me:$LINENO: result: $MAKE" >&5
3193 echo "${ECHO_T}$MAKE" >&6
3195 echo "$as_me:$LINENO: result: no" >&5
3196 echo "${ECHO_T}no" >&6
3200 # Extract the first word of "gmake", so it can be a program name with args.
3201 set dummy gmake; ac_word=$2
3202 echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3204 if test "${ac_cv_path_MAKE+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3209 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3230 MAKE=$ac_cv_path_MAKE
3232 if test -n "$MAKE"; then
3233 echo "$as_me:$LINENO: result: $MAKE" >&5
3234 echo "${ECHO_T}$MAKE" >&6
3236 echo "$as_me:$LINENO: result: no" >&5
3237 echo "${ECHO_T}no" >&6
3241 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3242 if test -z "$makever"; then
3243 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3244 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3245 echo "$as_me: error: GNU Make is not installed. Please download and install it
3246 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3247 { (exit 1); exit 1; }; }
3250 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3251 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3252 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 ac_check_lib_save_LIBS=$LIBS
3257 cat >conftest.$ac_ext <<_ACEOF
3260 cat confdefs.h >>conftest.$ac_ext
3261 cat >>conftest.$ac_ext <<_ACEOF
3262 /* end confdefs.h. */
3264 /* Override any gcc2 internal prototype to avoid an error. */
3268 /* We use char because int might match the return type of a gcc2
3269 builtin and then its argument prototype would still apply. */
3279 rm -f conftest.$ac_objext conftest$ac_exeext
3280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3281 (eval $ac_link) 2>conftest.er1
3283 grep -v '^ *+' conftest.er1 >conftest.err
3285 cat conftest.err >&5
3286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3287 (exit $ac_status); } &&
3288 { ac_try='test -z "$ac_c_werror_flag"
3289 || test ! -s conftest.err'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; } &&
3295 { ac_try='test -s conftest$ac_exeext'
3296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3300 (exit $ac_status); }; }; then
3301 ac_cv_lib_ltdl_lt_dlinit=yes
3303 echo "$as_me: failed program was:" >&5
3304 sed 's/^/| /' conftest.$ac_ext >&5
3306 ac_cv_lib_ltdl_lt_dlinit=no
3308 rm -f conftest.err conftest.$ac_objext \
3309 conftest$ac_exeext conftest.$ac_ext
3310 LIBS=$ac_check_lib_save_LIBS
3312 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3313 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3314 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3315 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3317 if test x"$enable_ltdl_install" = xno; then
3318 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3319 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3321 enable_ltdl_install=yes
3326 if test x"$enable_ltdl_install" = x"yes"; then
3327 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3328 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3329 LTDLINCL='-I${top_srcdir}/''libltdl'
3331 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3335 # For backwards non-gettext consistent compatibility...
3339 if test x"$enable_ltdl_install" = x"yes"; then
3340 LTDL_SUBDIRS=libltdl
3344 # Check whether --enable-shared or --disable-shared was given.
3345 if test "${enable_shared+set}" = set; then
3346 enableval="$enable_shared"
3347 p=${PACKAGE-default}
3349 yes) enable_shared=yes ;;
3350 no) enable_shared=no ;;
3353 # Look at the argument we got. We use all the common list separators.
3354 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3355 for pkg in $enableval; do
3357 if test "X$pkg" = "X$p"; then
3368 # Check whether --enable-static or --disable-static was given.
3369 if test "${enable_static+set}" = set; then
3370 enableval="$enable_static"
3371 p=${PACKAGE-default}
3373 yes) enable_static=yes ;;
3374 no) enable_static=no ;;
3377 # Look at the argument we got. We use all the common list separators.
3378 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3379 for pkg in $enableval; do
3381 if test "X$pkg" = "X$p"; then
3392 # Check whether --enable-fast-install or --disable-fast-install was given.
3393 if test "${enable_fast_install+set}" = set; then
3394 enableval="$enable_fast_install"
3395 p=${PACKAGE-default}
3397 yes) enable_fast_install=yes ;;
3398 no) enable_fast_install=no ;;
3400 enable_fast_install=no
3401 # Look at the argument we got. We use all the common list separators.
3402 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3403 for pkg in $enableval; do
3405 if test "X$pkg" = "X$p"; then
3406 enable_fast_install=yes
3413 enable_fast_install=yes
3417 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3418 if test -f $ac_dir/install-sh; then
3420 ac_install_sh="$ac_aux_dir/install-sh -c"
3422 elif test -f $ac_dir/install.sh; then
3424 ac_install_sh="$ac_aux_dir/install.sh -c"
3426 elif test -f $ac_dir/shtool; then
3428 ac_install_sh="$ac_aux_dir/shtool install -c"
3432 if test -z "$ac_aux_dir"; then
3433 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3434 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3435 { (exit 1); exit 1; }; }
3437 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3438 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3439 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3441 # Make sure we can run config.sub.
3442 $ac_config_sub sun4 >/dev/null 2>&1 ||
3443 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3444 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3445 { (exit 1); exit 1; }; }
3447 echo "$as_me:$LINENO: checking build system type" >&5
3448 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3449 if test "${ac_cv_build+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 ac_cv_build_alias=$build_alias
3453 test -z "$ac_cv_build_alias" &&
3454 ac_cv_build_alias=`$ac_config_guess`
3455 test -z "$ac_cv_build_alias" &&
3456 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3457 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3458 { (exit 1); exit 1; }; }
3459 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3460 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3461 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3462 { (exit 1); exit 1; }; }
3465 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3466 echo "${ECHO_T}$ac_cv_build" >&6
3468 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3469 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3470 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3473 echo "$as_me:$LINENO: checking host system type" >&5
3474 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3475 if test "${ac_cv_host+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 ac_cv_host_alias=$host_alias
3479 test -z "$ac_cv_host_alias" &&
3480 ac_cv_host_alias=$ac_cv_build_alias
3481 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3482 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3483 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3484 { (exit 1); exit 1; }; }
3487 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3488 echo "${ECHO_T}$ac_cv_host" >&6
3490 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3491 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3492 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3495 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3496 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3497 if test "${lt_cv_path_SED+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3500 # Loop through the user's path and test for sed and gsed.
3501 # Then use that list of sed's as ones to test for truncation.
3502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3506 test -z "$as_dir" && as_dir=.
3507 for lt_ac_prog in sed gsed; do
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3510 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3517 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3518 # along with /bin/sed that truncates output.
3519 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3520 test ! -f $lt_ac_sed && continue
3521 cat /dev/null > conftest.in
3523 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3524 # Check for GNU sed and select it if it is found.
3525 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3526 lt_cv_path_SED=$lt_ac_sed
3530 cat conftest.in conftest.in >conftest.tmp
3531 mv conftest.tmp conftest.in
3532 cp conftest.in conftest.nl
3534 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3535 cmp -s conftest.out conftest.nl || break
3536 # 10000 chars as input seems more than enough
3537 test $lt_ac_count -gt 10 && break
3538 lt_ac_count=`expr $lt_ac_count + 1`
3539 if test $lt_ac_count -gt $lt_ac_max; then
3540 lt_ac_max=$lt_ac_count
3541 lt_cv_path_SED=$lt_ac_sed
3549 echo "$as_me:$LINENO: result: $SED" >&5
3550 echo "${ECHO_T}$SED" >&6
3553 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3554 if test "${with_gnu_ld+set}" = set; then
3555 withval="$with_gnu_ld"
3556 test "$withval" = no || with_gnu_ld=yes
3561 if test "$GCC" = yes; then
3562 # Check if gcc -print-prog-name=ld gives a path.
3563 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3564 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3567 # gcc leaves a trailing carriage return which upsets mingw
3568 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3570 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3573 # Accept absolute paths.
3575 re_direlt='/[^/][^/]*/\.\./'
3576 # Canonicalize the pathname of ld
3577 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3578 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3579 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3581 test -z "$LD" && LD="$ac_prog"
3584 # If it fails, then pretend we aren't using GCC.
3588 # If it is relative, then search for the first ld in PATH.
3592 elif test "$with_gnu_ld" = yes; then
3593 echo "$as_me:$LINENO: checking for GNU ld" >&5
3594 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3596 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3597 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3599 if test "${lt_cv_path_LD+set}" = set; then
3600 echo $ECHO_N "(cached) $ECHO_C" >&6
3602 if test -z "$LD"; then
3603 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3604 for ac_dir in $PATH; do
3606 test -z "$ac_dir" && ac_dir=.
3607 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3608 lt_cv_path_LD="$ac_dir/$ac_prog"
3609 # Check to see if the program is GNU ld. I'd rather use --version,
3610 # but apparently some variants of GNU ld only accept -v.
3611 # Break only if it was the GNU/non-GNU ld that we prefer.
3612 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3613 *GNU* | *'with BFD'*)
3614 test "$with_gnu_ld" != no && break
3617 test "$with_gnu_ld" != yes && break
3624 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3629 if test -n "$LD"; then
3630 echo "$as_me:$LINENO: result: $LD" >&5
3631 echo "${ECHO_T}$LD" >&6
3633 echo "$as_me:$LINENO: result: no" >&5
3634 echo "${ECHO_T}no" >&6
3636 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3637 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3638 { (exit 1); exit 1; }; }
3639 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3640 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3641 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3642 echo $ECHO_N "(cached) $ECHO_C" >&6
3644 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3645 case `$LD -v 2>&1 </dev/null` in
3646 *GNU* | *'with BFD'*)
3647 lt_cv_prog_gnu_ld=yes
3650 lt_cv_prog_gnu_ld=no
3654 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3655 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3656 with_gnu_ld=$lt_cv_prog_gnu_ld
3659 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3660 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3661 if test "${lt_cv_ld_reload_flag+set}" = set; then
3662 echo $ECHO_N "(cached) $ECHO_C" >&6
3664 lt_cv_ld_reload_flag='-r'
3666 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3667 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3668 reload_flag=$lt_cv_ld_reload_flag
3669 case $reload_flag in
3671 *) reload_flag=" $reload_flag" ;;
3673 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3676 if test "$GCC" = yes; then
3677 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3679 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3684 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3685 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3686 if test "${lt_cv_path_NM+set}" = set; then
3687 echo $ECHO_N "(cached) $ECHO_C" >&6
3689 if test -n "$NM"; then
3690 # Let the user override the test.
3693 lt_nm_to_check="${ac_tool_prefix}nm"
3694 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3695 lt_nm_to_check="$lt_nm_to_check nm"
3697 for lt_tmp_nm in $lt_nm_to_check; do
3698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3699 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3701 test -z "$ac_dir" && ac_dir=.
3702 tmp_nm="$ac_dir/$lt_tmp_nm"
3703 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3704 # Check to see if the nm accepts a BSD-compat flag.
3705 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3706 # nm: unknown option "B" ignored
3707 # Tru64's nm complains that /dev/null is an invalid object file
3708 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3709 */dev/null* | *'Invalid file or object type'*)
3710 lt_cv_path_NM="$tmp_nm -B"
3714 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3716 lt_cv_path_NM="$tmp_nm -p"
3720 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3721 continue # so that we can try to find one that supports BSD flags
3730 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3733 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3734 echo "${ECHO_T}$lt_cv_path_NM" >&6
3737 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3738 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3740 if test "$LN_S" = "ln -s"; then
3741 echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6
3744 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3745 echo "${ECHO_T}no, using $LN_S" >&6
3748 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3749 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3750 if test "${lt_cv_deplibs_check_method+set}" = set; then
3751 echo $ECHO_N "(cached) $ECHO_C" >&6
3753 lt_cv_file_magic_cmd='$MAGIC_CMD'
3754 lt_cv_file_magic_test_file=
3755 lt_cv_deplibs_check_method='unknown'
3756 # Need to set the preceding variable on all platforms that support
3757 # interlibrary dependencies.
3758 # 'none' -- dependencies not supported.
3759 # `unknown' -- same as none, but documents that we really don't know.
3760 # 'pass_all' -- all dependencies passed with no checks.
3761 # 'test_compile' -- check by making test program.
3762 # 'file_magic [[regex]]' -- check by looking for files in library path
3763 # which responds to the $file_magic_cmd with a given extended regex.
3764 # If you have `file' or equivalent on your system and you're not sure
3765 # whether `pass_all' will *always* work, you probably want this one.
3769 lt_cv_deplibs_check_method=pass_all
3773 lt_cv_deplibs_check_method=pass_all
3777 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3778 lt_cv_file_magic_cmd='/usr/bin/file -L'
3779 lt_cv_file_magic_test_file=/shlib/libc.so
3783 # func_win32_libid is a shell function defined in ltmain.sh
3784 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3785 lt_cv_file_magic_cmd='func_win32_libid'
3789 # Base MSYS/MinGW do not provide the 'file' command needed by
3790 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3791 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3792 lt_cv_file_magic_cmd='$OBJDUMP -f'
3795 darwin* | rhapsody*)
3796 lt_cv_deplibs_check_method=pass_all
3799 freebsd* | kfreebsd*-gnu | dragonfly*)
3800 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3803 # Not sure whether the presence of OpenBSD here was a mistake.
3804 # Let's accept both of them until this is cleared up.
3805 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3806 lt_cv_file_magic_cmd=/usr/bin/file
3807 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3811 lt_cv_deplibs_check_method=pass_all
3816 lt_cv_deplibs_check_method=pass_all
3819 hpux10.20* | hpux11*)
3820 lt_cv_file_magic_cmd=/usr/bin/file
3823 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3824 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3827 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]'
3828 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3831 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3832 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3838 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3839 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3842 irix5* | irix6* | nonstopux*)
3844 *-32|*"-32 ") libmagic=32-bit;;
3845 *-n32|*"-n32 ") libmagic=N32;;
3846 *-64|*"-64 ") libmagic=64-bit;;
3847 *) libmagic=never-match;;
3849 lt_cv_deplibs_check_method=pass_all
3852 # This must be Linux ELF.
3854 lt_cv_deplibs_check_method=pass_all
3858 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3859 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3861 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3866 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3867 lt_cv_file_magic_cmd=/usr/bin/file
3868 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3872 lt_cv_deplibs_check_method=unknown
3876 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3877 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3879 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3883 osf3* | osf4* | osf5*)
3884 lt_cv_deplibs_check_method=pass_all
3888 lt_cv_deplibs_check_method=pass_all
3892 case $host_vendor in
3894 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]'
3895 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3898 lt_cv_deplibs_check_method=pass_all
3901 lt_cv_file_magic_cmd='/bin/file'
3902 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3905 lt_cv_file_magic_cmd='/bin/file'
3906 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3907 lt_cv_file_magic_test_file=/lib/libc.so
3910 lt_cv_deplibs_check_method=pass_all
3913 lt_cv_deplibs_check_method=pass_all
3918 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3919 lt_cv_deplibs_check_method=pass_all
3924 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3925 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3926 file_magic_cmd=$lt_cv_file_magic_cmd
3927 deplibs_check_method=$lt_cv_deplibs_check_method
3928 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3933 # If no C compiler was specified, use CC.
3936 # If no C compiler flags were specified, use CFLAGS.
3937 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3939 # Allow CC to be a program name with arguments.
3942 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3943 if test "${enable_libtool_lock+set}" = set; then
3944 enableval="$enable_libtool_lock"
3947 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3949 # Some flags need to be propagated to the compiler or linker for good
3953 # Find out which ABI we are using.
3954 echo 'int i;' > conftest.$ac_ext
3955 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3956 (eval $ac_compile) 2>&5
3958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3959 (exit $ac_status); }; then
3960 case `/usr/bin/file conftest.$ac_objext` in
3972 # Find out which ABI we are using.
3973 echo '#line 3973 "configure"' > conftest.$ac_ext
3974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3975 (eval $ac_compile) 2>&5
3977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); }; then
3979 if test "$lt_cv_prog_gnu_ld" = yes; then
3980 case `/usr/bin/file conftest.$ac_objext` in
3982 LD="${LD-ld} -melf32bsmip"
3985 LD="${LD-ld} -melf32bmipn32"
3988 LD="${LD-ld} -melf64bmip"
3992 case `/usr/bin/file conftest.$ac_objext` in
4008 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4009 # Find out which ABI we are using.
4010 echo 'int i;' > conftest.$ac_ext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4012 (eval $ac_compile) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); }; then
4016 case `/usr/bin/file conftest.o` in
4020 LD="${LD-ld} -m elf_i386"
4022 ppc64-*linux*|powerpc64-*linux*)
4023 LD="${LD-ld} -m elf32ppclinux"
4026 LD="${LD-ld} -m elf_s390"
4029 LD="${LD-ld} -m elf32_sparc"
4036 LD="${LD-ld} -m elf_x86_64"
4038 ppc*-*linux*|powerpc*-*linux*)
4039 LD="${LD-ld} -m elf64ppc"
4042 LD="${LD-ld} -m elf64_s390"
4045 LD="${LD-ld} -m elf64_sparc"
4055 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4056 SAVE_CFLAGS="$CFLAGS"
4057 CFLAGS="$CFLAGS -belf"
4058 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4059 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4060 if test "${lt_cv_cc_needs_belf+set}" = set; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4064 ac_cpp='$CPP $CPPFLAGS'
4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4084 rm -f conftest.$ac_objext conftest$ac_exeext
4085 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4086 (eval $ac_link) 2>conftest.er1
4088 grep -v '^ *+' conftest.er1 >conftest.err
4090 cat conftest.err >&5
4091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4092 (exit $ac_status); } &&
4093 { ac_try='test -z "$ac_c_werror_flag"
4094 || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest$ac_exeext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 lt_cv_cc_needs_belf=yes
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 lt_cv_cc_needs_belf=no
4113 rm -f conftest.err conftest.$ac_objext \
4114 conftest$ac_exeext conftest.$ac_ext
4116 ac_cpp='$CPP $CPPFLAGS'
4117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4122 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4123 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4124 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4125 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4126 CFLAGS="$SAVE_CFLAGS"
4130 # Find out which ABI we are using.
4131 echo 'int i;' > conftest.$ac_ext
4132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4133 (eval $ac_compile) 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; then
4137 case `/usr/bin/file conftest.o` in
4139 case $lt_cv_prog_gnu_ld in
4140 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4141 *) LD="${LD-ld} -64" ;;
4152 need_locks="$enable_libtool_lock"
4155 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4156 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4157 if test "${ac_cv_header_stdc+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4179 rm -f conftest.$ac_objext
4180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4181 (eval $ac_compile) 2>conftest.er1
4183 grep -v '^ *+' conftest.er1 >conftest.err
4185 cat conftest.err >&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); } &&
4188 { ac_try='test -z "$ac_c_werror_flag"
4189 || test ! -s conftest.err'
4190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194 (exit $ac_status); }; } &&
4195 { ac_try='test -s conftest.$ac_objext'
4196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_header_stdc=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_cv_header_stdc=no
4208 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4210 if test $ac_cv_header_stdc = yes; then
4211 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4212 cat >conftest.$ac_ext <<_ACEOF
4215 cat confdefs.h >>conftest.$ac_ext
4216 cat >>conftest.$ac_ext <<_ACEOF
4217 /* end confdefs.h. */
4221 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "memchr" >/dev/null 2>&1; then
4225 ac_cv_header_stdc=no
4231 if test $ac_cv_header_stdc = yes; then
4232 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4233 cat >conftest.$ac_ext <<_ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h. */
4242 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4243 $EGREP "free" >/dev/null 2>&1; then
4246 ac_cv_header_stdc=no
4252 if test $ac_cv_header_stdc = yes; then
4253 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4254 if test "$cross_compiling" = yes; then
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4264 #if ((' ' & 0x0FF) == 0x020)
4265 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4266 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4268 # define ISLOWER(c) \
4269 (('a' <= (c) && (c) <= 'i') \
4270 || ('j' <= (c) && (c) <= 'r') \
4271 || ('s' <= (c) && (c) <= 'z'))
4272 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4275 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4280 for (i = 0; i < 256; i++)
4281 if (XOR (islower (i), ISLOWER (i))
4282 || toupper (i) != TOUPPER (i))
4287 rm -f conftest$ac_exeext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4289 (eval $ac_link) 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4311 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4312 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4313 if test $ac_cv_header_stdc = yes; then
4315 cat >>confdefs.h <<\_ACEOF
4316 #define STDC_HEADERS 1
4321 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4331 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4332 inttypes.h stdint.h unistd.h
4334 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4335 echo "$as_me:$LINENO: checking for $ac_header" >&5
4336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4338 echo $ECHO_N "(cached) $ECHO_C" >&6
4340 cat >conftest.$ac_ext <<_ACEOF
4343 cat confdefs.h >>conftest.$ac_ext
4344 cat >>conftest.$ac_ext <<_ACEOF
4345 /* end confdefs.h. */
4346 $ac_includes_default
4348 #include <$ac_header>
4350 rm -f conftest.$ac_objext
4351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4352 (eval $ac_compile) 2>conftest.er1
4354 grep -v '^ *+' conftest.er1 >conftest.err
4356 cat conftest.err >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); } &&
4359 { ac_try='test -z "$ac_c_werror_flag"
4360 || test ! -s conftest.err'
4361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }; } &&
4366 { ac_try='test -s conftest.$ac_objext'
4367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371 (exit $ac_status); }; }; then
4372 eval "$as_ac_Header=yes"
4374 echo "$as_me: failed program was:" >&5
4375 sed 's/^/| /' conftest.$ac_ext >&5
4377 eval "$as_ac_Header=no"
4379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4381 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4382 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394 for ac_header in dlfcn.h
4396 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4398 echo "$as_me:$LINENO: checking for $ac_header" >&5
4399 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4400 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4401 echo $ECHO_N "(cached) $ECHO_C" >&6
4403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4406 # Is the header compilable?
4407 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4409 cat >conftest.$ac_ext <<_ACEOF
4412 cat confdefs.h >>conftest.$ac_ext
4413 cat >>conftest.$ac_ext <<_ACEOF
4414 /* end confdefs.h. */
4415 $ac_includes_default
4416 #include <$ac_header>
4418 rm -f conftest.$ac_objext
4419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4420 (eval $ac_compile) 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } &&
4427 { ac_try='test -z "$ac_c_werror_flag"
4428 || test ! -s conftest.err'
4429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4433 (exit $ac_status); }; } &&
4434 { ac_try='test -s conftest.$ac_objext'
4435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4439 (exit $ac_status); }; }; then
4440 ac_header_compiler=yes
4442 echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4445 ac_header_compiler=no
4447 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4448 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4449 echo "${ECHO_T}$ac_header_compiler" >&6
4451 # Is the header present?
4452 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <$ac_header>
4462 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4463 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4465 grep -v '^ *+' conftest.er1 >conftest.err
4467 cat conftest.err >&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev/null; then
4470 if test -s conftest.err; then
4471 ac_cpp_err=$ac_c_preproc_warn_flag
4472 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4479 if test -z "$ac_cpp_err"; then
4480 ac_header_preproc=yes
4482 echo "$as_me: failed program was:" >&5
4483 sed 's/^/| /' conftest.$ac_ext >&5
4485 ac_header_preproc=no
4487 rm -f conftest.err conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4489 echo "${ECHO_T}$ac_header_preproc" >&6
4491 # So? What about this header?
4492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4498 ac_header_preproc=yes
4501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4515 ## ------------------------------------------ ##
4516 ## Report this to the AC_PACKAGE_NAME lists. ##
4517 ## ------------------------------------------ ##
4520 sed "s/^/$as_me: WARNING: /" >&2
4523 echo "$as_me:$LINENO: checking for $ac_header" >&5
4524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4525 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4526 echo $ECHO_N "(cached) $ECHO_C" >&6
4528 eval "$as_ac_Header=\$ac_header_preproc"
4530 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4531 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4535 cat >>confdefs.h <<_ACEOF
4536 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4544 ac_cpp='$CXXCPP $CPPFLAGS'
4545 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4546 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4547 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4548 if test -n "$ac_tool_prefix"; then
4549 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4551 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4552 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4553 echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4555 if test "${ac_cv_prog_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$CXX"; then
4559 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4568 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 if test -n "$CXX"; then
4579 echo "$as_me:$LINENO: result: $CXX" >&5
4580 echo "${ECHO_T}$CXX" >&6
4582 echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6
4586 test -n "$CXX" && break
4589 if test -z "$CXX"; then
4591 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4593 # Extract the first word of "$ac_prog", so it can be a program name with args.
4594 set dummy $ac_prog; ac_word=$2
4595 echo "$as_me:$LINENO: checking for $ac_word" >&5
4596 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4597 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4598 echo $ECHO_N "(cached) $ECHO_C" >&6
4600 if test -n "$ac_ct_CXX"; then
4601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4610 ac_cv_prog_ac_ct_CXX="$ac_prog"
4611 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4620 if test -n "$ac_ct_CXX"; then
4621 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4622 echo "${ECHO_T}$ac_ct_CXX" >&6
4624 echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6
4628 test -n "$ac_ct_CXX" && break
4630 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4636 # Provide some information about the compiler.
4637 echo "$as_me:$LINENO:" \
4638 "checking for C++ compiler version" >&5
4639 ac_compiler=`set X $ac_compile; echo $2`
4640 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4641 (eval $ac_compiler --version </dev/null >&5) 2>&5
4643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644 (exit $ac_status); }
4645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4646 (eval $ac_compiler -v </dev/null >&5) 2>&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }
4650 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4651 (eval $ac_compiler -V </dev/null >&5) 2>&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }
4656 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4657 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4658 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 cat >conftest.$ac_ext <<_ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4679 rm -f conftest.$ac_objext
4680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4681 (eval $ac_compile) 2>conftest.er1
4683 grep -v '^ *+' conftest.er1 >conftest.err
4685 cat conftest.err >&5
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); } &&
4688 { ac_try='test -z "$ac_cxx_werror_flag"
4689 || test ! -s conftest.err'
4690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4694 (exit $ac_status); }; } &&
4695 { ac_try='test -s conftest.$ac_objext'
4696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4700 (exit $ac_status); }; }; then
4703 echo "$as_me: failed program was:" >&5
4704 sed 's/^/| /' conftest.$ac_ext >&5
4708 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4709 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4712 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4713 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4714 GXX=`test $ac_compiler_gnu = yes && echo yes`
4715 ac_test_CXXFLAGS=${CXXFLAGS+set}
4716 ac_save_CXXFLAGS=$CXXFLAGS
4718 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4719 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4720 if test "${ac_cv_prog_cxx_g+set}" = set; then
4721 echo $ECHO_N "(cached) $ECHO_C" >&6
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_cxx_werror_flag"
4748 || test ! -s conftest.err'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; } &&
4754 { ac_try='test -s conftest.$ac_objext'
4755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4759 (exit $ac_status); }; }; then
4760 ac_cv_prog_cxx_g=yes
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4767 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4770 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4771 if test "$ac_test_CXXFLAGS" = set; then
4772 CXXFLAGS=$ac_save_CXXFLAGS
4773 elif test $ac_cv_prog_cxx_g = yes; then
4774 if test "$GXX" = yes; then
4780 if test "$GXX" = yes; then
4786 for ac_declaration in \
4788 'extern "C" void std::exit (int) throw (); using std::exit;' \
4789 'extern "C" void std::exit (int); using std::exit;' \
4790 'extern "C" void exit (int) throw ();' \
4791 'extern "C" void exit (int);' \
4794 cat >conftest.$ac_ext <<_ACEOF
4797 cat confdefs.h >>conftest.$ac_ext
4798 cat >>conftest.$ac_ext <<_ACEOF
4799 /* end confdefs.h. */
4810 rm -f conftest.$ac_objext
4811 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4812 (eval $ac_compile) 2>conftest.er1
4814 grep -v '^ *+' conftest.er1 >conftest.err
4816 cat conftest.err >&5
4817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4818 (exit $ac_status); } &&
4819 { ac_try='test -z "$ac_cxx_werror_flag"
4820 || test ! -s conftest.err'
4821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4825 (exit $ac_status); }; } &&
4826 { ac_try='test -s conftest.$ac_objext'
4827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); }; }; then
4834 echo "$as_me: failed program was:" >&5
4835 sed 's/^/| /' conftest.$ac_ext >&5
4839 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4840 cat >conftest.$ac_ext <<_ACEOF
4843 cat confdefs.h >>conftest.$ac_ext
4844 cat >>conftest.$ac_ext <<_ACEOF
4845 /* end confdefs.h. */
4855 rm -f conftest.$ac_objext
4856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4857 (eval $ac_compile) 2>conftest.er1
4859 grep -v '^ *+' conftest.er1 >conftest.err
4861 cat conftest.err >&5
4862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4863 (exit $ac_status); } &&
4864 { ac_try='test -z "$ac_cxx_werror_flag"
4865 || test ! -s conftest.err'
4866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4870 (exit $ac_status); }; } &&
4871 { ac_try='test -s conftest.$ac_objext'
4872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876 (exit $ac_status); }; }; then
4879 echo "$as_me: failed program was:" >&5
4880 sed 's/^/| /' conftest.$ac_ext >&5
4883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4886 if test -n "$ac_declaration"; then
4887 echo '#ifdef __cplusplus' >>confdefs.h
4888 echo $ac_declaration >>confdefs.h
4889 echo '#endif' >>confdefs.h
4893 ac_cpp='$CXXCPP $CPPFLAGS'
4894 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4895 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4896 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4900 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4901 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4902 (test "X$CXX" != "Xg++"))) ; then
4904 ac_cpp='$CXXCPP $CPPFLAGS'
4905 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4908 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4909 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4910 if test -z "$CXXCPP"; then
4911 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4912 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 # Double quotes because CXXCPP needs to be expanded
4915 for CXXCPP in "$CXX -E" "/lib/cpp"
4918 for ac_cxx_preproc_warn_flag in '' yes
4920 # Use a header file that comes with gcc, so configuring glibc
4921 # with a fresh cross-compiler works.
4922 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4923 # <limits.h> exists even on freestanding compilers.
4924 # On the NeXT, cc -E runs the code through the compiler's parser,
4925 # not just through cpp. "Syntax error" is here to catch this case.
4926 cat >conftest.$ac_ext <<_ACEOF
4929 cat confdefs.h >>conftest.$ac_ext
4930 cat >>conftest.$ac_ext <<_ACEOF
4931 /* end confdefs.h. */
4933 # include <limits.h>
4935 # include <assert.h>
4939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4940 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4942 grep -v '^ *+' conftest.er1 >conftest.err
4944 cat conftest.err >&5
4945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } >/dev/null; then
4947 if test -s conftest.err; then
4948 ac_cpp_err=$ac_cxx_preproc_warn_flag
4949 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4956 if test -z "$ac_cpp_err"; then
4959 echo "$as_me: failed program was:" >&5
4960 sed 's/^/| /' conftest.$ac_ext >&5
4962 # Broken: fails on valid input.
4965 rm -f conftest.err conftest.$ac_ext
4967 # OK, works on sane cases. Now check whether non-existent headers
4968 # can be detected and how.
4969 cat >conftest.$ac_ext <<_ACEOF
4972 cat confdefs.h >>conftest.$ac_ext
4973 cat >>conftest.$ac_ext <<_ACEOF
4974 /* end confdefs.h. */
4975 #include <ac_nonexistent.h>
4977 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4978 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4980 grep -v '^ *+' conftest.er1 >conftest.err
4982 cat conftest.err >&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); } >/dev/null; then
4985 if test -s conftest.err; then
4986 ac_cpp_err=$ac_cxx_preproc_warn_flag
4987 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4994 if test -z "$ac_cpp_err"; then
4995 # Broken: success on invalid input.
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5001 # Passes both tests.
5005 rm -f conftest.err conftest.$ac_ext
5008 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5009 rm -f conftest.err conftest.$ac_ext
5010 if $ac_preproc_ok; then
5015 ac_cv_prog_CXXCPP=$CXXCPP
5018 CXXCPP=$ac_cv_prog_CXXCPP
5020 ac_cv_prog_CXXCPP=$CXXCPP
5022 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5023 echo "${ECHO_T}$CXXCPP" >&6
5025 for ac_cxx_preproc_warn_flag in '' yes
5027 # Use a header file that comes with gcc, so configuring glibc
5028 # with a fresh cross-compiler works.
5029 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5030 # <limits.h> exists even on freestanding compilers.
5031 # On the NeXT, cc -E runs the code through the compiler's parser,
5032 # not just through cpp. "Syntax error" is here to catch this case.
5033 cat >conftest.$ac_ext <<_ACEOF
5036 cat confdefs.h >>conftest.$ac_ext
5037 cat >>conftest.$ac_ext <<_ACEOF
5038 /* end confdefs.h. */
5040 # include <limits.h>
5042 # include <assert.h>
5046 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5047 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } >/dev/null; then
5054 if test -s conftest.err; then
5055 ac_cpp_err=$ac_cxx_preproc_warn_flag
5056 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5063 if test -z "$ac_cpp_err"; then
5066 echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5069 # Broken: fails on valid input.
5072 rm -f conftest.err conftest.$ac_ext
5074 # OK, works on sane cases. Now check whether non-existent headers
5075 # can be detected and how.
5076 cat >conftest.$ac_ext <<_ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 #include <ac_nonexistent.h>
5084 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5085 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5087 grep -v '^ *+' conftest.er1 >conftest.err
5089 cat conftest.err >&5
5090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5091 (exit $ac_status); } >/dev/null; then
5092 if test -s conftest.err; then
5093 ac_cpp_err=$ac_cxx_preproc_warn_flag
5094 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5101 if test -z "$ac_cpp_err"; then
5102 # Broken: success on invalid input.
5105 echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5108 # Passes both tests.
5112 rm -f conftest.err conftest.$ac_ext
5115 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5116 rm -f conftest.err conftest.$ac_ext
5117 if $ac_preproc_ok; then
5120 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5121 See \`config.log' for more details." >&5
5122 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5123 See \`config.log' for more details." >&2;}
5124 { (exit 1); exit 1; }; }
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5137 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5138 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5139 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5140 if test -n "$ac_tool_prefix"; then
5141 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5143 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5144 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5145 echo "$as_me:$LINENO: checking for $ac_word" >&5
5146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5147 if test "${ac_cv_prog_F77+set}" = set; then
5148 echo $ECHO_N "(cached) $ECHO_C" >&6
5150 if test -n "$F77"; then
5151 ac_cv_prog_F77="$F77" # Let the user override the test.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 if test -n "$F77"; then
5171 echo "$as_me:$LINENO: result: $F77" >&5
5172 echo "${ECHO_T}$F77" >&6
5174 echo "$as_me:$LINENO: result: no" >&5
5175 echo "${ECHO_T}no" >&6
5178 test -n "$F77" && break
5181 if test -z "$F77"; then
5183 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5185 # Extract the first word of "$ac_prog", so it can be a program name with args.
5186 set dummy $ac_prog; ac_word=$2
5187 echo "$as_me:$LINENO: checking for $ac_word" >&5
5188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5189 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5190 echo $ECHO_N "(cached) $ECHO_C" >&6
5192 if test -n "$ac_ct_F77"; then
5193 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 test -z "$as_dir" && as_dir=.
5200 for ac_exec_ext in '' $ac_executable_extensions; do
5201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5202 ac_cv_prog_ac_ct_F77="$ac_prog"
5203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5211 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5212 if test -n "$ac_ct_F77"; then
5213 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5214 echo "${ECHO_T}$ac_ct_F77" >&6
5216 echo "$as_me:$LINENO: result: no" >&5
5217 echo "${ECHO_T}no" >&6
5220 test -n "$ac_ct_F77" && break
5227 # Provide some information about the compiler.
5228 echo "$as_me:5228:" \
5229 "checking for Fortran 77 compiler version" >&5
5230 ac_compiler=`set X $ac_compile; echo $2`
5231 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5232 (eval $ac_compiler --version </dev/null >&5) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }
5236 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5237 (eval $ac_compiler -v </dev/null >&5) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }
5241 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5242 (eval $ac_compiler -V </dev/null >&5) 2>&5
5244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5245 (exit $ac_status); }
5248 # If we don't use `.F' as extension, the preprocessor is not run on the
5249 # input file. (Note that this only needs to work for GNU compilers.)
5252 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5253 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5254 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5257 cat >conftest.$ac_ext <<_ACEOF
5265 rm -f conftest.$ac_objext
5266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5267 (eval $ac_compile) 2>conftest.er1
5269 grep -v '^ *+' conftest.er1 >conftest.err
5271 cat conftest.err >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } &&
5274 { ac_try='test -z "$ac_f77_werror_flag"
5275 || test ! -s conftest.err'
5276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5280 (exit $ac_status); }; } &&
5281 { ac_try='test -s conftest.$ac_objext'
5282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); }; }; then
5289 echo "$as_me: failed program was:" >&5
5290 sed 's/^/| /' conftest.$ac_ext >&5
5294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5295 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5298 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5299 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5301 ac_test_FFLAGS=${FFLAGS+set}
5302 ac_save_FFLAGS=$FFLAGS
5304 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5305 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5306 if test "${ac_cv_prog_f77_g+set}" = set; then
5307 echo $ECHO_N "(cached) $ECHO_C" >&6
5310 cat >conftest.$ac_ext <<_ACEOF
5315 rm -f conftest.$ac_objext
5316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5317 (eval $ac_compile) 2>conftest.er1
5319 grep -v '^ *+' conftest.er1 >conftest.err
5321 cat conftest.err >&5
5322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323 (exit $ac_status); } &&
5324 { ac_try='test -z "$ac_f77_werror_flag"
5325 || test ! -s conftest.err'
5326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; } &&
5331 { ac_try='test -s conftest.$ac_objext'
5332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); }; }; then
5337 ac_cv_prog_f77_g=yes
5339 echo "$as_me: failed program was:" >&5
5340 sed 's/^/| /' conftest.$ac_ext >&5
5344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5347 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5348 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5349 if test "$ac_test_FFLAGS" = set; then
5350 FFLAGS=$ac_save_FFLAGS
5351 elif test $ac_cv_prog_f77_g = yes; then
5352 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5358 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5365 G77=`test $ac_compiler_gnu = yes && echo yes`
5367 ac_cpp='$CPP $CPPFLAGS'
5368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5374 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5376 # find the maximum length of command line arguments
5377 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5378 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5379 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5380 echo $ECHO_N "(cached) $ECHO_C" >&6
5387 # On DJGPP, this test can blow up pretty badly due to problems in libc
5388 # (any single argument exceeding 2000 bytes causes a buffer overrun
5389 # during glob expansion). Even if it were fixed, the result of this
5390 # check would be larger than it should be.
5391 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5395 # Under GNU Hurd, this test is not required because there is
5396 # no limit to the length of command line arguments.
5397 # Libtool will interpret -1 as no limit whatsoever
5398 lt_cv_sys_max_cmd_len=-1;
5402 # On Win9x/ME, this test blows up -- it succeeds, but takes
5403 # about 5 minutes as the teststring grows exponentially.
5404 # Worse, since 9x/ME are not pre-emptively multitasking,
5405 # you end up with a "frozen" computer, even though with patience
5406 # the test eventually succeeds (with a max line length of 256k).
5407 # Instead, let's just punt: use the minimum linelength reported by
5408 # all of the supported platforms: 8192 (on NT/2K/XP).
5409 lt_cv_sys_max_cmd_len=8192;
5413 # On AmigaOS with pdksh, this test takes hours, literally.
5414 # So we just punt and use a minimum line length of 8192.
5415 lt_cv_sys_max_cmd_len=8192;
5418 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5419 # This has been around since 386BSD, at least. Likely further.
5420 if test -x /sbin/sysctl; then
5421 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5422 elif test -x /usr/sbin/sysctl; then
5423 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5425 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5427 # And add a safety zone
5428 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5433 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5434 lt_cv_sys_max_cmd_len=196608
5438 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5439 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5440 # nice to cause kernel panics so lets avoid the loop below.
5441 # First set a reasonable default.
5442 lt_cv_sys_max_cmd_len=16384
5444 if test -x /sbin/sysconfig; then
5445 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5446 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5451 lt_cv_sys_max_cmd_len=102400
5453 sysv5* | sco5v6* | sysv4.2uw2*)
5454 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5455 if test -n "$kargmax"; then
5456 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5458 lt_cv_sys_max_cmd_len=32768
5462 # If test is not a shell built-in, we'll probably end up computing a
5463 # maximum length that is only half of the actual maximum length, but
5465 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5466 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5467 = "XX$teststring") >/dev/null 2>&1 &&
5468 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5469 lt_cv_sys_max_cmd_len=$new_result &&
5470 test $i != 17 # 1/2 MB should be enough
5473 teststring=$teststring$teststring
5476 # Add a significant safety factor because C++ compilers can tack on massive
5477 # amounts of additional arguments before passing them to the linker.
5478 # It appears as though 1/2 is a usable value.
5479 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5485 if test -n $lt_cv_sys_max_cmd_len ; then
5486 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5487 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5489 echo "$as_me:$LINENO: result: none" >&5
5490 echo "${ECHO_T}none" >&6
5496 # Check for command to grab the raw symbol name followed by C symbol from nm.
5497 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5498 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5499 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 # These are sane defaults that work on at least a few old systems.
5504 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5506 # Character class describing NM global symbol codes.
5507 symcode='[BCDEGRST]'
5509 # Regexp to match symbols that can be accessed directly from C.
5510 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5512 # Transform an extracted symbol line into a proper C declaration
5513 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5515 # Transform an extracted symbol line into symbol name and symbol address
5516 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'"
5518 # Define system-specific variables.
5523 cygwin* | mingw* | pw32*)
5524 symcode='[ABCDGISTW]'
5526 hpux*) # Its linker distinguishes data from code symbols
5527 if test "$host_cpu" = ia64; then
5528 symcode='[ABCDEGRST]'
5530 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5531 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'"
5534 if test "$host_cpu" = ia64; then
5535 symcode='[ABCDGIRSTW]'
5536 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5537 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'"
5541 symcode='[BCDEGRST]'
5544 symcode='[BCDEGQRST]'
5555 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5563 # Handle CRLF in mingw tool chain
5567 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5571 # If we're using GNU nm, then use its standard symbol codes.
5572 case `$NM -V 2>&1` in
5573 *GNU* | *'with BFD'*)
5574 symcode='[ABCDGIRSTW]' ;;
5577 # Try without a prefix undercore, then with it.
5578 for ac_symprfx in "" "_"; do
5580 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5581 symxfrm="\\1 $ac_symprfx\\2 \\2"
5583 # Write the raw and C identifiers.
5584 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5586 # Check to see that the pipe works correctly.
5590 cat > conftest.$ac_ext <<EOF
5595 void nm_test_func(){}
5599 int main(){nm_test_var='a';nm_test_func();return(0);}
5602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5603 (eval $ac_compile) 2>&5
5605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5606 (exit $ac_status); }; then
5607 # Now try to grab the symbols.
5609 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5610 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && test -s "$nlist"; then
5614 # Try sorting and uniquifying the output.
5615 if sort "$nlist" | uniq > "$nlist"T; then
5616 mv -f "$nlist"T "$nlist"
5621 # Make sure that we snagged all the symbols we need.
5622 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5623 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5624 cat <<EOF > conftest.$ac_ext
5630 # Now generate the symbol file.
5631 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5633 cat <<EOF >> conftest.$ac_ext
5634 #if defined (__STDC__) && __STDC__
5635 # define lt_ptr_t void *
5637 # define lt_ptr_t char *
5641 /* The mapping between symbol names and symbols. */
5646 lt_preloaded_symbols[] =
5649 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5650 cat <<\EOF >> conftest.$ac_ext
5658 # Now try linking the two files.
5659 mv conftest.$ac_objext conftstm.$ac_objext
5660 lt_save_LIBS="$LIBS"
5661 lt_save_CFLAGS="$CFLAGS"
5662 LIBS="conftstm.$ac_objext"
5663 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5664 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>&5
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5671 LIBS="$lt_save_LIBS"
5672 CFLAGS="$lt_save_CFLAGS"
5674 echo "cannot find nm_test_func in $nlist" >&5
5677 echo "cannot find nm_test_var in $nlist" >&5
5680 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5683 echo "$progname: failed program was:" >&5
5684 cat conftest.$ac_ext >&5
5686 rm -f conftest* conftst*
5688 # Do not use the global_symbol_pipe unless it works.
5689 if test "$pipe_works" = yes; then
5692 lt_cv_sys_global_symbol_pipe=
5698 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5699 lt_cv_sys_global_symbol_to_cdecl=
5701 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5702 echo "$as_me:$LINENO: result: failed" >&5
5703 echo "${ECHO_T}failed" >&6
5705 echo "$as_me:$LINENO: result: ok" >&5
5706 echo "${ECHO_T}ok" >&6
5709 echo "$as_me:$LINENO: checking for objdir" >&5
5710 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5711 if test "${lt_cv_objdir+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 rm -f .libs 2>/dev/null
5715 mkdir .libs 2>/dev/null
5716 if test -d .libs; then
5719 # MS-DOS does not allow filenames that begin with a dot.
5722 rmdir .libs 2>/dev/null
5724 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5725 echo "${ECHO_T}$lt_cv_objdir" >&6
5726 objdir=$lt_cv_objdir
5734 # AIX sometimes has problems with the GCC collect2 program. For some
5735 # reason, if we set the COLLECT_NAMES environment variable, the problems
5736 # vanish in a puff of smoke.
5737 if test "X${COLLECT_NAMES+set}" != Xset; then
5739 export COLLECT_NAMES
5744 # Sed substitution that helps us do robust quoting. It backslashifies
5745 # metacharacters that are still active within double-quoted strings.
5746 Xsed='sed -e 1s/^X//'
5747 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5749 # Same as above, but do not quote variable references.
5750 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5752 # Sed substitution to delay expansion of an escaped shell variable in a
5753 # double_quote_subst'ed string.
5754 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5756 # Sed substitution to avoid accidental globbing in evaled expressions
5757 no_glob_subst='s/\*/\\\*/g'
5763 default_ofile=libtool
5764 can_build_shared=yes
5766 # All known linkers require a `.a' archive for static linking (except MSVC,
5767 # which needs '.lib').
5769 ltmain="$ac_aux_dir/ltmain.sh"
5770 ofile="$default_ofile"
5771 with_gnu_ld="$lt_cv_prog_gnu_ld"
5773 if test -n "$ac_tool_prefix"; then
5774 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5775 set dummy ${ac_tool_prefix}ar; ac_word=$2
5776 echo "$as_me:$LINENO: checking for $ac_word" >&5
5777 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5778 if test "${ac_cv_prog_AR+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5781 if test -n "$AR"; then
5782 ac_cv_prog_AR="$AR" # Let the user override the test.
5784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788 test -z "$as_dir" && as_dir=.
5789 for ac_exec_ext in '' $ac_executable_extensions; do
5790 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5791 ac_cv_prog_AR="${ac_tool_prefix}ar"
5792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5801 if test -n "$AR"; then
5802 echo "$as_me:$LINENO: result: $AR" >&5
5803 echo "${ECHO_T}$AR" >&6
5805 echo "$as_me:$LINENO: result: no" >&5
5806 echo "${ECHO_T}no" >&6
5810 if test -z "$ac_cv_prog_AR"; then
5812 # Extract the first word of "ar", so it can be a program name with args.
5813 set dummy ar; ac_word=$2
5814 echo "$as_me:$LINENO: checking for $ac_word" >&5
5815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5816 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5817 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 if test -n "$ac_ct_AR"; then
5820 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 test -z "$as_dir" && as_dir=.
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5829 ac_cv_prog_ac_ct_AR="ar"
5830 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5839 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5840 if test -n "$ac_ct_AR"; then
5841 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5842 echo "${ECHO_T}$ac_ct_AR" >&6
5844 echo "$as_me:$LINENO: result: no" >&5
5845 echo "${ECHO_T}no" >&6
5853 if test -n "$ac_tool_prefix"; then
5854 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5855 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5856 echo "$as_me:$LINENO: checking for $ac_word" >&5
5857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5858 if test "${ac_cv_prog_RANLIB+set}" = set; then
5859 echo $ECHO_N "(cached) $ECHO_C" >&6
5861 if test -n "$RANLIB"; then
5862 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
5870 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5871 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5872 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 RANLIB=$ac_cv_prog_RANLIB
5881 if test -n "$RANLIB"; then
5882 echo "$as_me:$LINENO: result: $RANLIB" >&5
5883 echo "${ECHO_T}$RANLIB" >&6
5885 echo "$as_me:$LINENO: result: no" >&5
5886 echo "${ECHO_T}no" >&6
5890 if test -z "$ac_cv_prog_RANLIB"; then
5891 ac_ct_RANLIB=$RANLIB
5892 # Extract the first word of "ranlib", so it can be a program name with args.
5893 set dummy ranlib; ac_word=$2
5894 echo "$as_me:$LINENO: checking for $ac_word" >&5
5895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5896 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5897 echo $ECHO_N "(cached) $ECHO_C" >&6
5899 if test -n "$ac_ct_RANLIB"; then
5900 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5906 test -z "$as_dir" && as_dir=.
5907 for ac_exec_ext in '' $ac_executable_extensions; do
5908 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5909 ac_cv_prog_ac_ct_RANLIB="ranlib"
5910 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5919 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5920 if test -n "$ac_ct_RANLIB"; then
5921 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5922 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5924 echo "$as_me:$LINENO: result: no" >&5
5925 echo "${ECHO_T}no" >&6
5928 RANLIB=$ac_ct_RANLIB
5930 RANLIB="$ac_cv_prog_RANLIB"
5933 if test -n "$ac_tool_prefix"; then
5934 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5935 set dummy ${ac_tool_prefix}strip; ac_word=$2
5936 echo "$as_me:$LINENO: checking for $ac_word" >&5
5937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5938 if test "${ac_cv_prog_STRIP+set}" = set; then
5939 echo $ECHO_N "(cached) $ECHO_C" >&6
5941 if test -n "$STRIP"; then
5942 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5951 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5960 STRIP=$ac_cv_prog_STRIP
5961 if test -n "$STRIP"; then
5962 echo "$as_me:$LINENO: result: $STRIP" >&5
5963 echo "${ECHO_T}$STRIP" >&6
5965 echo "$as_me:$LINENO: result: no" >&5
5966 echo "${ECHO_T}no" >&6
5970 if test -z "$ac_cv_prog_STRIP"; then
5972 # Extract the first word of "strip", so it can be a program name with args.
5973 set dummy strip; ac_word=$2
5974 echo "$as_me:$LINENO: checking for $ac_word" >&5
5975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5976 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5977 echo $ECHO_N "(cached) $ECHO_C" >&6
5979 if test -n "$ac_ct_STRIP"; then
5980 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5986 test -z "$as_dir" && as_dir=.
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_ac_ct_STRIP="strip"
5990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5996 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5999 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6000 if test -n "$ac_ct_STRIP"; then
6001 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6002 echo "${ECHO_T}$ac_ct_STRIP" >&6
6004 echo "$as_me:$LINENO: result: no" >&5
6005 echo "${ECHO_T}no" >&6
6010 STRIP="$ac_cv_prog_STRIP"
6015 old_CFLAGS="$CFLAGS"
6017 # Set sane defaults for various variables
6018 test -z "$AR" && AR=ar
6019 test -z "$AR_FLAGS" && AR_FLAGS=cru
6020 test -z "$AS" && AS=as
6021 test -z "$CC" && CC=cc
6022 test -z "$LTCC" && LTCC=$CC
6023 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6024 test -z "$DLLTOOL" && DLLTOOL=dlltool
6025 test -z "$LD" && LD=ld
6026 test -z "$LN_S" && LN_S="ln -s"
6027 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6028 test -z "$NM" && NM=nm
6029 test -z "$SED" && SED=sed
6030 test -z "$OBJDUMP" && OBJDUMP=objdump
6031 test -z "$RANLIB" && RANLIB=:
6032 test -z "$STRIP" && STRIP=:
6033 test -z "$ac_objext" && ac_objext=o
6035 # Determine commands to create old-style static archives.
6036 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6037 old_postinstall_cmds='chmod 644 $oldlib'
6038 old_postuninstall_cmds=
6040 if test -n "$RANLIB"; then
6043 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6046 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6049 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6052 for cc_temp in $compiler""; do
6054 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6055 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6060 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6063 # Only perform the check for file, if the check method requires it
6064 case $deplibs_check_method in
6066 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6067 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6068 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6070 echo $ECHO_N "(cached) $ECHO_C" >&6
6074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6077 lt_save_MAGIC_CMD="$MAGIC_CMD"
6078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6080 for ac_dir in $ac_dummy; do
6082 test -z "$ac_dir" && ac_dir=.
6083 if test -f $ac_dir/${ac_tool_prefix}file; then
6084 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6085 if test -n "$file_magic_test_file"; then
6086 case $deplibs_check_method in
6088 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6091 $EGREP "$file_magic_regex" > /dev/null; then
6096 *** Warning: the command libtool uses to detect shared libraries,
6097 *** $file_magic_cmd, produces output that libtool cannot recognize.
6098 *** The result is that libtool may fail to recognize shared libraries
6099 *** as such. This will affect the creation of libtool libraries that
6100 *** depend on shared libraries, but programs linked with such libtool
6101 *** libraries will work regardless of this problem. Nevertheless, you
6102 *** may want to report the problem to your system manager and/or to
6103 *** bug-libtool@gnu.org
6113 MAGIC_CMD="$lt_save_MAGIC_CMD"
6118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6119 if test -n "$MAGIC_CMD"; then
6120 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6121 echo "${ECHO_T}$MAGIC_CMD" >&6
6123 echo "$as_me:$LINENO: result: no" >&5
6124 echo "${ECHO_T}no" >&6
6127 if test -z "$lt_cv_path_MAGIC_CMD"; then
6128 if test -n "$ac_tool_prefix"; then
6129 echo "$as_me:$LINENO: checking for file" >&5
6130 echo $ECHO_N "checking for file... $ECHO_C" >&6
6131 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6139 lt_save_MAGIC_CMD="$MAGIC_CMD"
6140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6141 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6142 for ac_dir in $ac_dummy; do
6144 test -z "$ac_dir" && ac_dir=.
6145 if test -f $ac_dir/file; then
6146 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6147 if test -n "$file_magic_test_file"; then
6148 case $deplibs_check_method in
6150 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6151 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6152 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6153 $EGREP "$file_magic_regex" > /dev/null; then
6158 *** Warning: the command libtool uses to detect shared libraries,
6159 *** $file_magic_cmd, produces output that libtool cannot recognize.
6160 *** The result is that libtool may fail to recognize shared libraries
6161 *** as such. This will affect the creation of libtool libraries that
6162 *** depend on shared libraries, but programs linked with such libtool
6163 *** libraries will work regardless of this problem. Nevertheless, you
6164 *** may want to report the problem to your system manager and/or to
6165 *** bug-libtool@gnu.org
6175 MAGIC_CMD="$lt_save_MAGIC_CMD"
6180 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6181 if test -n "$MAGIC_CMD"; then
6182 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6183 echo "${ECHO_T}$MAGIC_CMD" >&6
6185 echo "$as_me:$LINENO: result: no" >&5
6186 echo "${ECHO_T}no" >&6
6201 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6202 if test "${enable_libtool_lock+set}" = set; then
6203 enableval="$enable_libtool_lock"
6206 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6209 # Check whether --with-pic or --without-pic was given.
6210 if test "${with_pic+set}" = set; then
6216 test -z "$pic_mode" && pic_mode=default
6218 # Use C for the default configuration in the libtool script
6222 ac_cpp='$CPP $CPPFLAGS'
6223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6228 # Source file extension for C test sources.
6231 # Object file extension for compiled C test sources.
6235 # Code to be used in simple compile tests
6236 lt_simple_compile_test_code="int some_variable = 0;\n"
6238 # Code to be used in simple link tests
6239 lt_simple_link_test_code='int main(){return(0);}\n'
6242 # If no C compiler was specified, use CC.
6245 # If no C compiler flags were specified, use CFLAGS.
6246 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6248 # Allow CC to be a program name with arguments.
6252 # save warnings/boilerplate of simple test code
6253 ac_outfile=conftest.$ac_objext
6254 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6255 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6256 _lt_compiler_boilerplate=`cat conftest.err`
6259 ac_outfile=conftest.$ac_objext
6260 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6261 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6262 _lt_linker_boilerplate=`cat conftest.err`
6267 ## There is no encapsulation within the following macros, do not change
6268 ## the running order or otherwise move them around unless you know exactly
6269 ## what you are doing...
6271 lt_prog_compiler_no_builtin_flag=
6273 if test "$GCC" = yes; then
6274 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6277 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6278 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6279 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 lt_cv_prog_compiler_rtti_exceptions=no
6283 ac_outfile=conftest.$ac_objext
6284 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6285 lt_compiler_flag="-fno-rtti -fno-exceptions"
6286 # Insert the option either (1) after the last *FLAGS variable, or
6287 # (2) before a word containing "conftest.", or (3) at the end.
6288 # Note that $ac_compile itself does not contain backslashes and begins
6289 # with a dollar sign (not a hyphen), so the echo should work correctly.
6290 # The option is referenced via a variable to avoid confusing sed.
6291 lt_compile=`echo "$ac_compile" | $SED \
6292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6294 -e 's:$: $lt_compiler_flag:'`
6295 (eval echo "\"\$as_me:6295: $lt_compile\"" >&5)
6296 (eval "$lt_compile" 2>conftest.err)
6298 cat conftest.err >&5
6299 echo "$as_me:6299: \$? = $ac_status" >&5
6300 if (exit $ac_status) && test -s "$ac_outfile"; then
6301 # The compiler can only warn and ignore the option if not recognized
6302 # So say no if there are warnings other than the usual output.
6303 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6304 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6305 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6306 lt_cv_prog_compiler_rtti_exceptions=yes
6312 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6313 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6315 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6316 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6323 lt_prog_compiler_wl=
6324 lt_prog_compiler_pic=
6325 lt_prog_compiler_static=
6327 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6328 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6330 if test "$GCC" = yes; then
6331 lt_prog_compiler_wl='-Wl,'
6332 lt_prog_compiler_static='-static'
6336 # All AIX code is PIC.
6337 if test "$host_cpu" = ia64; then
6338 # AIX 5 now supports IA64 processor
6339 lt_prog_compiler_static='-Bstatic'
6344 # FIXME: we need at least 68020 code to build shared libraries, but
6345 # adding the `-m68020' flag to GCC prevents building anything better,
6347 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6350 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6351 # PIC is the default for these OSes.
6354 mingw* | pw32* | os2*)
6355 # This hack is so that the source file can tell whether it is being
6356 # built for inclusion in a dll (and should export symbols for example).
6357 lt_prog_compiler_pic='-DDLL_EXPORT'
6360 darwin* | rhapsody*)
6361 # PIC is the default on this platform
6362 # Common symbols not allowed in MH_DYLIB files
6363 lt_prog_compiler_pic='-fno-common'
6367 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6368 # Instead, we relocate shared libraries at runtime.
6372 # Just because we use GCC doesn't mean we suddenly get shared libraries
6373 # on systems that don't support them.
6374 lt_prog_compiler_can_build_shared=no
6379 if test -d /usr/nec; then
6380 lt_prog_compiler_pic=-Kconform_pic
6385 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6392 lt_prog_compiler_pic='-fPIC'
6398 lt_prog_compiler_pic='-fPIC'
6402 # PORTME Check for flag to pass linker flags through the system compiler.
6405 lt_prog_compiler_wl='-Wl,'
6406 if test "$host_cpu" = ia64; then
6407 # AIX 5 now supports IA64 processor
6408 lt_prog_compiler_static='-Bstatic'
6410 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6414 # PIC is the default on this platform
6415 # Common symbols not allowed in MH_DYLIB files
6416 case $cc_basename in
6418 lt_prog_compiler_pic='-qnocommon'
6419 lt_prog_compiler_wl='-Wl,'
6424 mingw* | pw32* | os2*)
6425 # This hack is so that the source file can tell whether it is being
6426 # built for inclusion in a dll (and should export symbols for example).
6427 lt_prog_compiler_pic='-DDLL_EXPORT'
6430 hpux9* | hpux10* | hpux11*)
6431 lt_prog_compiler_wl='-Wl,'
6432 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6439 lt_prog_compiler_pic='+Z'
6442 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6443 lt_prog_compiler_static='${wl}-a ${wl}archive'
6446 irix5* | irix6* | nonstopux*)
6447 lt_prog_compiler_wl='-Wl,'
6448 # PIC (with -KPIC) is the default.
6449 lt_prog_compiler_static='-non_shared'
6453 lt_prog_compiler_pic='-KPIC'
6454 lt_prog_compiler_static='-Bstatic'
6458 case $cc_basename in
6460 lt_prog_compiler_wl='-Wl,'
6461 lt_prog_compiler_pic='-KPIC'
6462 lt_prog_compiler_static='-static'
6464 pgcc* | pgf77* | pgf90* | pgf95*)
6465 # Portland Group compilers (*not* the Pentium gcc compiler,
6466 # which looks to be a dead project)
6467 lt_prog_compiler_wl='-Wl,'
6468 lt_prog_compiler_pic='-fpic'
6469 lt_prog_compiler_static='-Bstatic'
6472 lt_prog_compiler_wl='-Wl,'
6473 # All Alpha code is PIC.
6474 lt_prog_compiler_static='-non_shared'
6479 osf3* | osf4* | osf5*)
6480 lt_prog_compiler_wl='-Wl,'
6481 # All OSF/1 code is PIC.
6482 lt_prog_compiler_static='-non_shared'
6486 lt_prog_compiler_pic='-KPIC'
6487 lt_prog_compiler_static='-Bstatic'
6488 case $cc_basename in
6490 lt_prog_compiler_wl='-Qoption ld ';;
6492 lt_prog_compiler_wl='-Wl,';;
6497 lt_prog_compiler_wl='-Qoption ld '
6498 lt_prog_compiler_pic='-PIC'
6499 lt_prog_compiler_static='-Bstatic'
6502 sysv4 | sysv4.2uw2* | sysv4.3*)
6503 lt_prog_compiler_wl='-Wl,'
6504 lt_prog_compiler_pic='-KPIC'
6505 lt_prog_compiler_static='-Bstatic'
6509 if test -d /usr/nec ;then
6510 lt_prog_compiler_pic='-Kconform_pic'
6511 lt_prog_compiler_static='-Bstatic'
6515 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6516 lt_prog_compiler_wl='-Wl,'
6517 lt_prog_compiler_pic='-KPIC'
6518 lt_prog_compiler_static='-Bstatic'
6522 lt_prog_compiler_wl='-Wl,'
6523 lt_prog_compiler_can_build_shared=no
6527 lt_prog_compiler_pic='-pic'
6528 lt_prog_compiler_static='-Bstatic'
6532 lt_prog_compiler_can_build_shared=no
6537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6538 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6541 # Check to make sure the PIC flag actually works.
6543 if test -n "$lt_prog_compiler_pic"; then
6545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6547 if test "${lt_prog_compiler_pic_works+set}" = set; then
6548 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 lt_prog_compiler_pic_works=no
6551 ac_outfile=conftest.$ac_objext
6552 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6553 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6554 # Insert the option either (1) after the last *FLAGS variable, or
6555 # (2) before a word containing "conftest.", or (3) at the end.
6556 # Note that $ac_compile itself does not contain backslashes and begins
6557 # with a dollar sign (not a hyphen), so the echo should work correctly.
6558 # The option is referenced via a variable to avoid confusing sed.
6559 lt_compile=`echo "$ac_compile" | $SED \
6560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6562 -e 's:$: $lt_compiler_flag:'`
6563 (eval echo "\"\$as_me:6563: $lt_compile\"" >&5)
6564 (eval "$lt_compile" 2>conftest.err)
6566 cat conftest.err >&5
6567 echo "$as_me:6567: \$? = $ac_status" >&5
6568 if (exit $ac_status) && test -s "$ac_outfile"; then
6569 # The compiler can only warn and ignore the option if not recognized
6570 # So say no if there are warnings other than the usual output.
6571 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6572 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6573 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6574 lt_prog_compiler_pic_works=yes
6580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6581 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6583 if test x"$lt_prog_compiler_pic_works" = xyes; then
6584 case $lt_prog_compiler_pic in
6586 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6589 lt_prog_compiler_pic=
6590 lt_prog_compiler_can_build_shared=no
6595 # For platforms which do not support PIC, -DPIC is meaningless:
6597 lt_prog_compiler_pic=
6600 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6605 # Check to make sure the static flag actually works.
6607 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6608 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6609 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6610 if test "${lt_prog_compiler_static_works+set}" = set; then
6611 echo $ECHO_N "(cached) $ECHO_C" >&6
6613 lt_prog_compiler_static_works=no
6614 save_LDFLAGS="$LDFLAGS"
6615 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6616 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6618 # The linker can only warn and ignore the option if not recognized
6619 # So say no if there are warnings
6620 if test -s conftest.err; then
6621 # Append any errors to the config.log.
6622 cat conftest.err 1>&5
6623 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6625 if diff conftest.exp conftest.er2 >/dev/null; then
6626 lt_prog_compiler_static_works=yes
6629 lt_prog_compiler_static_works=yes
6633 LDFLAGS="$save_LDFLAGS"
6636 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6637 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6639 if test x"$lt_prog_compiler_static_works" = xyes; then
6642 lt_prog_compiler_static=
6646 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6647 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6648 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6651 lt_cv_prog_compiler_c_o=no
6652 $rm -r conftest 2>/dev/null
6656 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6658 lt_compiler_flag="-o out/conftest2.$ac_objext"
6659 # Insert the option either (1) after the last *FLAGS variable, or
6660 # (2) before a word containing "conftest.", or (3) at the end.
6661 # Note that $ac_compile itself does not contain backslashes and begins
6662 # with a dollar sign (not a hyphen), so the echo should work correctly.
6663 lt_compile=`echo "$ac_compile" | $SED \
6664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6666 -e 's:$: $lt_compiler_flag:'`
6667 (eval echo "\"\$as_me:6667: $lt_compile\"" >&5)
6668 (eval "$lt_compile" 2>out/conftest.err)
6670 cat out/conftest.err >&5
6671 echo "$as_me:6671: \$? = $ac_status" >&5
6672 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6674 # The compiler can only warn and ignore the option if not recognized
6675 # So say no if there are warnings
6676 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6677 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6678 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6679 lt_cv_prog_compiler_c_o=yes
6684 # SGI C++ compiler will create directory out/ii_files/ for
6685 # template instantiation
6686 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6687 $rm out/* && rmdir out
6693 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6694 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6697 hard_links="nottested"
6698 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6699 # do not overwrite the value of need_locks provided by the user
6700 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6701 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6704 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6706 ln conftest.a conftest.b 2>&5 || hard_links=no
6707 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6708 echo "$as_me:$LINENO: result: $hard_links" >&5
6709 echo "${ECHO_T}$hard_links" >&6
6710 if test "$hard_links" = no; then
6711 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6712 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6720 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6723 allow_undefined_flag=
6724 enable_shared_with_static_runtimes=no
6726 archive_expsym_cmds=
6727 old_archive_From_new_cmds=
6728 old_archive_from_expsyms_cmds=
6729 export_dynamic_flag_spec=
6730 whole_archive_flag_spec=
6731 thread_safe_flag_spec=
6732 hardcode_libdir_flag_spec=
6733 hardcode_libdir_flag_spec_ld=
6734 hardcode_libdir_separator=
6737 hardcode_shlibpath_var=unsupported
6738 link_all_deplibs=unknown
6739 hardcode_automatic=no
6742 always_export_symbols=no
6743 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6744 # include_expsyms should be a list of space-separated symbols to be *always*
6745 # included in the symbol list
6747 # exclude_expsyms can be an extended regexp of symbols to exclude
6748 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6749 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6750 # as well as any symbol that contains `d'.
6751 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6752 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6753 # platforms (ab)use it in PIC code, but their linkers get confused if
6754 # the symbol is explicitly referenced. Since portable code cannot
6755 # rely on this symbol name, it's probably fine to never include it in
6756 # preloaded symbol tables.
6757 extract_expsyms_cmds=
6758 # Just being paranoid about ensuring that cc_basename is set.
6759 for cc_temp in $compiler""; do
6761 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6762 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6767 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6770 cygwin* | mingw* | pw32*)
6771 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6772 # When not using gcc, we currently assume that we are using
6773 # Microsoft Visual C++.
6774 if test "$GCC" != yes; then
6779 # we just hope/assume this is gcc and not c89 (= MSVC++)
6788 if test "$with_gnu_ld" = yes; then
6789 # If archive_cmds runs LD, not CC, wlarc should be empty
6792 # Set some defaults for GNU ld with shared library support. These
6793 # are reset later if shared libraries are not supported. Putting them
6794 # here allows them to be overridden if necessary.
6795 runpath_var=LD_RUN_PATH
6796 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6797 export_dynamic_flag_spec='${wl}--export-dynamic'
6798 # ancient GNU ld didn't support --whole-archive et. al.
6799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6802 whole_archive_flag_spec=
6804 supports_anon_versioning=no
6805 case `$LD -v 2>/dev/null` in
6806 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6807 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6808 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6809 *\ 2.11.*) ;; # other 2.11 versions
6810 *) supports_anon_versioning=yes ;;
6813 # See if GNU ld supports shared libraries.
6815 aix3* | aix4* | aix5*)
6816 # On AIX/PPC, the GNU linker is very broken
6817 if test "$host_cpu" != ia64; then
6821 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6822 *** to be unable to reliably create shared libraries on AIX.
6823 *** Therefore, libtool is disabling shared libraries support. If you
6824 *** really care for shared libraries, you may want to modify your PATH
6825 *** so that a non-GNU linker is found, and then restart.
6832 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)'
6833 hardcode_libdir_flag_spec='-L$libdir'
6834 hardcode_minus_L=yes
6836 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6837 # that the semantics of dynamic libraries on AmigaOS, at least up
6838 # to version 4, is to share data among multiple programs linked
6839 # with the same dynamic library. Since this doesn't match the
6840 # behavior of shared libraries on other platforms, we can't use
6846 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6847 allow_undefined_flag=unsupported
6848 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6849 # support --undefined. This deserves some investigation. FIXME
6850 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6856 cygwin* | mingw* | pw32*)
6857 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6858 # as there is no search path for DLLs.
6859 hardcode_libdir_flag_spec='-L$libdir'
6860 allow_undefined_flag=unsupported
6861 always_export_symbols=no
6862 enable_shared_with_static_runtimes=yes
6863 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6865 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6866 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6867 # If the export-symbols file already is a .def file (1st line
6868 # is EXPORTS), use it as is; otherwise, prepend...
6869 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6870 cp $export_symbols $output_objdir/$soname.def;
6872 echo EXPORTS > $output_objdir/$soname.def;
6873 cat $export_symbols >> $output_objdir/$soname.def;
6875 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6883 hardcode_shlibpath_var=no
6884 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6885 export_dynamic_flag_spec='${wl}-E'
6886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6887 # Instead, shared libraries are loaded at an image base (0x10000000 by
6888 # default) and relocated if they conflict, which is a slow very memory
6889 # consuming and fragmenting process. To avoid this, we pick a random,
6890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
6892 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6893 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'
6897 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6899 case $cc_basename,$host_cpu in
6900 pgcc*) # Portland Group C compiler
6901 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'
6902 tmp_addflag=' $pic_flag'
6904 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
6905 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'
6906 tmp_addflag=' $pic_flag -Mnomain' ;;
6907 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
6908 tmp_addflag=' -i_dynamic' ;;
6909 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
6910 tmp_addflag=' -i_dynamic -nofor_main' ;;
6911 ifc* | ifort*) # Intel Fortran compiler
6912 tmp_addflag=' -nofor_main' ;;
6914 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6916 if test $supports_anon_versioning = yes; then
6917 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6918 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6919 $echo "local: *; };" >> $output_objdir/$libname.ver~
6920 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6928 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6929 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6932 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6933 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6938 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6942 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6943 *** create shared libraries on Solaris systems. Therefore, libtool
6944 *** is disabling shared libraries support. We urge you to upgrade GNU
6945 *** binutils to release 2.9.1 or newer. Another option is to modify
6946 *** your PATH or compiler configuration so that the native linker is
6947 *** used, and then restart.
6950 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6951 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6952 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
6959 case `$LD -v 2>&1` in
6960 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
6964 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
6965 *** reliably create shared libraries on SCO systems. Therefore, libtool
6966 *** is disabling shared libraries support. We urge you to upgrade GNU
6967 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
6968 *** your PATH or compiler configuration so that the native linker is
6969 *** used, and then restart.
6974 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6975 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
6976 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
6977 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
6986 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6989 hardcode_shlibpath_var=no
6993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6995 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7002 if test "$ld_shlibs" = no; then
7004 hardcode_libdir_flag_spec=
7005 export_dynamic_flag_spec=
7006 whole_archive_flag_spec=
7009 # PORTME fill in a description of your system's linker (not GNU ld)
7012 allow_undefined_flag=unsupported
7013 always_export_symbols=yes
7014 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'
7015 # Note: this linker hardcodes the directories in LIBPATH if there
7016 # are no directories specified by -L.
7017 hardcode_minus_L=yes
7018 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7019 # Neither direct hardcoding nor static linking is supported with a
7021 hardcode_direct=unsupported
7026 if test "$host_cpu" = ia64; then
7027 # On IA64, the linker does run time linking by default, so we don't
7028 # have to do anything special.
7029 aix_use_runtimelinking=no
7030 exp_sym_flag='-Bexport'
7033 # If we're using GNU nm, then we don't want the "-C" option.
7034 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7035 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7036 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'
7038 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'
7040 aix_use_runtimelinking=no
7042 # Test if we are trying to use run time linking or normal
7043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7044 # need to do runtime linking.
7045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7046 for ld_flag in $LDFLAGS; do
7047 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7048 aix_use_runtimelinking=yes
7055 exp_sym_flag='-bexport'
7056 no_entry_flag='-bnoentry'
7059 # When large executables or shared objects are built, AIX ld can
7060 # have problems creating the table of contents. If linking a library
7061 # or program results in "error TOC overflow" add -mminimal-toc to
7062 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7063 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7067 hardcode_libdir_separator=':'
7068 link_all_deplibs=yes
7070 if test "$GCC" = yes; then
7071 case $host_os in aix4.[012]|aix4.[012].*)
7072 # We only want to do this on AIX 4.2 and lower, the check
7073 # below for broken collect2 doesn't work under 4.3+
7074 collect2name=`${CC} -print-prog-name=collect2`
7075 if test -f "$collect2name" && \
7076 strings "$collect2name" | grep resolve_lib_name >/dev/null
7078 # We have reworked collect2
7081 # We have old collect2
7082 hardcode_direct=unsupported
7083 # It fails to find uninstalled libraries when the uninstalled
7084 # path is not listed in the libpath. Setting hardcode_minus_L
7085 # to unsupported forces relinking
7086 hardcode_minus_L=yes
7087 hardcode_libdir_flag_spec='-L$libdir'
7088 hardcode_libdir_separator=
7092 shared_flag='-shared'
7093 if test "$aix_use_runtimelinking" = yes; then
7094 shared_flag="$shared_flag "'${wl}-G'
7098 if test "$host_cpu" = ia64; then
7099 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7100 # chokes on -Wl,-G. The following line is correct:
7103 if test "$aix_use_runtimelinking" = yes; then
7104 shared_flag='${wl}-G'
7106 shared_flag='${wl}-bM:SRE'
7111 # It seems that -bexpall does not export symbols beginning with
7112 # underscore (_), so it is better to generate a list of symbols to export.
7113 always_export_symbols=yes
7114 if test "$aix_use_runtimelinking" = yes; then
7115 # Warning - without using the other runtime loading flags (-brtl),
7116 # -berok will link without error, but may produce a broken library.
7117 allow_undefined_flag='-berok'
7118 # Determine the default libpath from the value encoded in an empty executable.
7119 cat >conftest.$ac_ext <<_ACEOF
7122 cat confdefs.h >>conftest.$ac_ext
7123 cat >>conftest.$ac_ext <<_ACEOF
7124 /* end confdefs.h. */
7134 rm -f conftest.$ac_objext conftest$ac_exeext
7135 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7136 (eval $ac_link) 2>conftest.er1
7138 grep -v '^ *+' conftest.er1 >conftest.err
7140 cat conftest.err >&5
7141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142 (exit $ac_status); } &&
7143 { ac_try='test -z "$ac_c_werror_flag"
7144 || test ! -s conftest.err'
7145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7149 (exit $ac_status); }; } &&
7150 { ac_try='test -s conftest$ac_exeext'
7151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7155 (exit $ac_status); }; }; then
7157 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7159 # Check for a 64-bit object if we didn't find anything.
7160 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; }
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7167 rm -f conftest.err conftest.$ac_objext \
7168 conftest$ac_exeext conftest.$ac_ext
7169 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7171 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7172 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"
7174 if test "$host_cpu" = ia64; then
7175 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7176 allow_undefined_flag="-z nodefs"
7177 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"
7179 # Determine the default libpath from the value encoded in an empty executable.
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7195 rm -f conftest.$ac_objext conftest$ac_exeext
7196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7197 (eval $ac_link) 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } &&
7204 { ac_try='test -z "$ac_c_werror_flag"
7205 || test ! -s conftest.err'
7206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); }; } &&
7211 { ac_try='test -s conftest$ac_exeext'
7212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216 (exit $ac_status); }; }; then
7218 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7220 # Check for a 64-bit object if we didn't find anything.
7221 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; }
7224 echo "$as_me: failed program was:" >&5
7225 sed 's/^/| /' conftest.$ac_ext >&5
7228 rm -f conftest.err conftest.$ac_objext \
7229 conftest$ac_exeext conftest.$ac_ext
7230 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7232 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7233 # Warning - without using the other run time loading flags,
7234 # -berok will link without error, but may produce a broken library.
7235 no_undefined_flag=' ${wl}-bernotok'
7236 allow_undefined_flag=' ${wl}-berok'
7237 # Exported symbols can be pulled into shared objects from archives
7238 whole_archive_flag_spec='$convenience'
7239 archive_cmds_need_lc=yes
7240 # This is similar to how AIX traditionally builds its shared libraries.
7241 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'
7247 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)'
7248 hardcode_libdir_flag_spec='-L$libdir'
7249 hardcode_minus_L=yes
7250 # see comment about different semantics on the GNU ld section
7255 export_dynamic_flag_spec=-rdynamic
7258 cygwin* | mingw* | pw32*)
7259 # When not using gcc, we currently assume that we are using
7260 # Microsoft Visual C++.
7261 # hardcode_libdir_flag_spec is actually meaningless, as there is
7262 # no search path for DLLs.
7263 hardcode_libdir_flag_spec=' '
7264 allow_undefined_flag=unsupported
7265 # Tell ltmain to make .lib files, not .a files.
7267 # Tell ltmain to make .dll files, not .so files.
7269 # FIXME: Setting linknames here is a bad hack.
7270 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7271 # The linker will automatically build a .lib file if we build a DLL.
7272 old_archive_From_new_cmds='true'
7273 # FIXME: Should let the user specify the lib program.
7274 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7275 fix_srcfile_path='`cygpath -w "$srcfile"`'
7276 enable_shared_with_static_runtimes=yes
7279 darwin* | rhapsody*)
7281 rhapsody* | darwin1.[012])
7282 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7285 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7286 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7288 case ${MACOSX_DEPLOYMENT_TARGET} in
7290 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7293 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7299 archive_cmds_need_lc=no
7301 hardcode_automatic=yes
7302 hardcode_shlibpath_var=unsupported
7303 whole_archive_flag_spec=''
7304 link_all_deplibs=yes
7305 if test "$GCC" = yes ; then
7306 output_verbose_link_cmd='echo'
7307 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7308 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7309 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7310 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}'
7311 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}'
7313 case $cc_basename in
7315 output_verbose_link_cmd='echo'
7316 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7317 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7318 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7319 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}'
7320 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}'
7330 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7331 hardcode_libdir_flag_spec='-L$libdir'
7332 hardcode_shlibpath_var=no
7339 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7340 # support. Future versions do this automatically, but an explicit c++rt0.o
7341 # does not break anything, and helps significantly (at the cost of a little
7344 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7345 hardcode_libdir_flag_spec='-R$libdir'
7347 hardcode_shlibpath_var=no
7350 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7352 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7354 hardcode_minus_L=yes
7355 hardcode_shlibpath_var=no
7358 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7359 freebsd* | kfreebsd*-gnu | dragonfly*)
7360 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7361 hardcode_libdir_flag_spec='-R$libdir'
7363 hardcode_shlibpath_var=no
7367 if test "$GCC" = yes; then
7368 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'
7370 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'
7372 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7373 hardcode_libdir_separator=:
7376 # hardcode_minus_L: Not really in the search PATH,
7377 # but as the default location of the library.
7378 hardcode_minus_L=yes
7379 export_dynamic_flag_spec='${wl}-E'
7383 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7384 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7386 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7388 if test "$with_gnu_ld" = no; then
7389 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7390 hardcode_libdir_separator=:
7393 export_dynamic_flag_spec='${wl}-E'
7395 # hardcode_minus_L: Not really in the search PATH,
7396 # but as the default location of the library.
7397 hardcode_minus_L=yes
7402 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7405 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7408 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7411 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7417 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7427 if test "$with_gnu_ld" = no; then
7428 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7429 hardcode_libdir_separator=:
7433 hardcode_libdir_flag_spec_ld='+b $libdir'
7435 hardcode_shlibpath_var=no
7439 export_dynamic_flag_spec='${wl}-E'
7441 # hardcode_minus_L: Not really in the search PATH,
7442 # but as the default location of the library.
7443 hardcode_minus_L=yes
7449 irix5* | irix6* | nonstopux*)
7450 if test "$GCC" = yes; then
7451 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'
7453 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'
7454 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7456 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7457 hardcode_libdir_separator=:
7458 link_all_deplibs=yes
7462 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7463 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7465 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7467 hardcode_libdir_flag_spec='-R$libdir'
7469 hardcode_shlibpath_var=no
7473 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7475 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7476 hardcode_libdir_separator=:
7477 hardcode_shlibpath_var=no
7482 hardcode_shlibpath_var=no
7483 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7484 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7485 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7486 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7487 export_dynamic_flag_spec='${wl}-E'
7490 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7491 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7492 hardcode_libdir_flag_spec='-R$libdir'
7495 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7503 hardcode_libdir_flag_spec='-L$libdir'
7504 hardcode_minus_L=yes
7505 allow_undefined_flag=unsupported
7506 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'
7507 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7511 if test "$GCC" = yes; then
7512 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7513 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'
7515 allow_undefined_flag=' -expect_unresolved \*'
7516 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'
7518 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7519 hardcode_libdir_separator=:
7522 osf4* | osf5*) # as osf3* with the addition of -msym flag
7523 if test "$GCC" = yes; then
7524 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7525 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'
7526 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7528 allow_undefined_flag=' -expect_unresolved \*'
7529 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'
7530 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7531 $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'
7533 # Both c and cxx compiler support -rpath directly
7534 hardcode_libdir_flag_spec='-rpath $libdir'
7536 hardcode_libdir_separator=:
7540 no_undefined_flag=' -z text'
7541 if test "$GCC" = yes; then
7543 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7544 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7545 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7548 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7549 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7550 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7552 hardcode_libdir_flag_spec='-R$libdir'
7553 hardcode_shlibpath_var=no
7555 solaris2.[0-5] | solaris2.[0-5].*) ;;
7557 # The compiler driver will combine linker options so we
7558 # cannot just pass the convience library names through
7559 # without $wl, iff we do not link with $LD.
7560 # Luckily, gcc supports the same syntax we need for Sun Studio.
7561 # Supported since Solaris 2.6 (maybe 2.5.1?)
7564 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7566 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' ;;
7569 link_all_deplibs=yes
7573 if test "x$host_vendor" = xsequent; then
7574 # Use $CC to link under sequent, because it throws in some extra .o
7575 # files that make .init and .fini sections work.
7576 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7578 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7580 hardcode_libdir_flag_spec='-L$libdir'
7582 hardcode_minus_L=yes
7583 hardcode_shlibpath_var=no
7587 case $host_vendor in
7589 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7590 hardcode_direct=yes # is this really true???
7593 ## LD is ld it makes a PLAMLIB
7594 ## CC just makes a GrossModule.
7595 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7596 reload_cmds='$CC -r -o $output$reload_objs'
7600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7601 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7604 runpath_var='LD_RUN_PATH'
7605 hardcode_shlibpath_var=no
7609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7610 hardcode_shlibpath_var=no
7611 export_dynamic_flag_spec='-Bexport'
7615 if test -d /usr/nec; then
7616 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7617 hardcode_shlibpath_var=no
7618 runpath_var=LD_RUN_PATH
7619 hardcode_runpath_var=yes
7624 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7625 no_undefined_flag='${wl}-z,text'
7626 archive_cmds_need_lc=no
7627 hardcode_shlibpath_var=no
7628 runpath_var='LD_RUN_PATH'
7630 if test "$GCC" = yes; then
7631 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7632 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7634 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7635 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7639 sysv5* | sco3.2v5* | sco5v6*)
7640 # Note: We can NOT use -z defs as we might desire, because we do not
7641 # link with -lc, and that would cause any symbols used from libc to
7642 # always be unresolved, which means just about no library would
7643 # ever link correctly. If we're not using GNU ld we use -z text
7644 # though, which does catch some bad symbols but isn't as heavy-handed
7646 no_undefined_flag='${wl}-z,text'
7647 allow_undefined_flag='${wl}-z,nodefs'
7648 archive_cmds_need_lc=no
7649 hardcode_shlibpath_var=no
7650 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7651 hardcode_libdir_separator=':'
7652 link_all_deplibs=yes
7653 export_dynamic_flag_spec='${wl}-Bexport'
7654 runpath_var='LD_RUN_PATH'
7656 if test "$GCC" = yes; then
7657 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7658 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7660 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7661 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7666 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7667 hardcode_libdir_flag_spec='-L$libdir'
7668 hardcode_shlibpath_var=no
7677 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7678 echo "${ECHO_T}$ld_shlibs" >&6
7679 test "$ld_shlibs" = no && can_build_shared=no
7682 # Do we need to explicitly link libc?
7684 case "x$archive_cmds_need_lc" in
7686 # Assume -lc should be added
7687 archive_cmds_need_lc=yes
7689 if test "$enable_shared" = yes && test "$GCC" = yes; then
7690 case $archive_cmds in
7692 # FIXME: we may have to deal with multi-command sequences.
7695 # Test whether the compiler implicitly links with -lc since on some
7696 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7697 # to ld, don't add -lc before -lgcc.
7698 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7699 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7701 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>&5
7706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7707 (exit $ac_status); } 2>conftest.err; then
7710 libobjs=conftest.$ac_objext
7712 wl=$lt_prog_compiler_wl
7713 pic_flag=$lt_prog_compiler_pic
7719 lt_save_allow_undefined_flag=$allow_undefined_flag
7720 allow_undefined_flag=
7721 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7722 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); }
7727 archive_cmds_need_lc=no
7729 archive_cmds_need_lc=yes
7731 allow_undefined_flag=$lt_save_allow_undefined_flag
7733 cat conftest.err 1>&5
7736 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7737 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7744 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7745 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7747 libname_spec='lib$name'
7755 shlibpath_overrides_runpath=unknown
7757 dynamic_linker="$host_os ld.so"
7758 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7759 if test "$GCC" = yes; then
7760 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7761 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7762 # if the path contains ";" then we assume it to be the separator
7763 # otherwise default to the standard path separator (i.e. ":") - it is
7764 # assumed that no part of a normal pathname contains ";" but that should
7765 # okay in the real world where ";" in dirpaths is itself problematic.
7766 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7768 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7771 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7773 need_lib_prefix=unknown
7774 hardcode_into_libs=no
7776 # when you set need_version to no, make sure it does not cause -set_version
7777 # flags to be left without arguments
7778 need_version=unknown
7783 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7784 shlibpath_var=LIBPATH
7786 # AIX 3 has no versioning support, so we append a major version to the name.
7787 soname_spec='${libname}${release}${shared_ext}$major'
7794 hardcode_into_libs=yes
7795 if test "$host_cpu" = ia64; then
7796 # AIX 5 supports IA64
7797 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7798 shlibpath_var=LD_LIBRARY_PATH
7800 # With GCC up to 2.95.x, collect2 would create an import file
7801 # for dependence libraries. The import file would start with
7802 # the line `#! .'. This would cause the generated library to
7803 # depend on `.', always an invalid library. This was fixed in
7804 # development snapshots of GCC prior to 3.0.
7806 aix4 | aix4.[01] | aix4.[01].*)
7807 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7809 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7816 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7817 # soname into executable. Probably we can add versioning support to
7818 # collect2, so additional links can be useful in future.
7819 if test "$aix_use_runtimelinking" = yes; then
7820 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7821 # instead of lib<name>.a to let people know that these are not
7822 # typical AIX shared libraries.
7823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825 # We preserve .a as extension for shared libraries through AIX4.2
7826 # and later when we are not doing run time linking.
7827 library_names_spec='${libname}${release}.a $libname.a'
7828 soname_spec='${libname}${release}${shared_ext}$major'
7830 shlibpath_var=LIBPATH
7835 library_names_spec='$libname.ixlibrary $libname.a'
7836 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7837 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'
7841 library_names_spec='${libname}${shared_ext}'
7842 dynamic_linker="$host_os ld.so"
7843 shlibpath_var=LIBRARY_PATH
7849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7850 soname_spec='${libname}${release}${shared_ext}$major'
7851 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7852 shlibpath_var=LD_LIBRARY_PATH
7853 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7854 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7855 # the default ld.so.conf also contains /usr/contrib/lib and
7856 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7857 # libtool to hard-code these into programs
7860 cygwin* | mingw* | pw32*)
7861 version_type=windows
7866 case $GCC,$host_os in
7867 yes,cygwin* | yes,mingw* | yes,pw32*)
7868 library_names_spec='$libname.dll.a'
7869 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7870 postinstall_cmds='base_file=`basename \${file}`~
7871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7872 dldir=$destdir/`dirname \$dlpath`~
7873 test -d \$dldir || mkdir -p \$dldir~
7874 $install_prog $dir/$dlname \$dldir/$dlname~
7875 chmod a+x \$dldir/$dlname'
7876 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7877 dlpath=$dir/\$dldll~
7879 shlibpath_overrides_runpath=yes
7883 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7884 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7885 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7888 # MinGW DLLs use traditional 'lib' prefix
7889 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7890 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7891 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7892 # It is most probably a Windows format PATH printed by
7893 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7894 # path with ; separators, and with drive letters. We can handle the
7895 # drive letters (cygwin fileutils understands them), so leave them,
7896 # especially as we might pass files found there to a mingw objdump,
7897 # which wouldn't understand a cygwinified path. Ahh.
7898 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7904 # pw32 DLLs use 'pw' prefix rather than 'lib'
7905 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7911 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7914 dynamic_linker='Win32 ld.exe'
7915 # FIXME: first we should search . and the directory the executable is in
7919 darwin* | rhapsody*)
7920 dynamic_linker="$host_os dyld"
7924 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7925 soname_spec='${libname}${release}${major}$shared_ext'
7926 shlibpath_overrides_runpath=yes
7927 shlibpath_var=DYLD_LIBRARY_PATH
7928 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7929 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7930 if test "$GCC" = yes; then
7931 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"`
7933 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7935 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7943 soname_spec='${libname}${release}${shared_ext}$major'
7944 shlibpath_var=LD_LIBRARY_PATH
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=no
7959 hardcode_into_libs=yes
7960 dynamic_linker='GNU ld.so'
7963 freebsd* | dragonfly*)
7964 # DragonFly does not have aout. When/if they implement a new
7965 # versioning mechanism, adjust this.
7966 if test -x /usr/bin/objformat; then
7967 objformat=`/usr/bin/objformat`
7970 freebsd[123]*) objformat=aout ;;
7974 version_type=freebsd-$objformat
7975 case $version_type in
7977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7982 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7986 shlibpath_var=LD_LIBRARY_PATH
7989 shlibpath_overrides_runpath=yes
7991 freebsd3.[01]* | freebsdelf3.[01]*)
7992 shlibpath_overrides_runpath=yes
7993 hardcode_into_libs=yes
7995 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
7996 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
7997 shlibpath_overrides_runpath=no
7998 hardcode_into_libs=yes
8000 freebsd*) # from 4.6 on
8001 shlibpath_overrides_runpath=yes
8002 hardcode_into_libs=yes
8011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8012 soname_spec='${libname}${release}${shared_ext}$major'
8013 shlibpath_var=LD_LIBRARY_PATH
8014 hardcode_into_libs=yes
8017 hpux9* | hpux10* | hpux11*)
8018 # Give a soname corresponding to the major version so that dld.sl refuses to
8019 # link against other versions.
8026 hardcode_into_libs=yes
8027 dynamic_linker="$host_os dld.so"
8028 shlibpath_var=LD_LIBRARY_PATH
8029 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8031 soname_spec='${libname}${release}${shared_ext}$major'
8032 if test "X$HPUX_IA64_MODE" = X32; then
8033 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8035 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8037 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8041 hardcode_into_libs=yes
8042 dynamic_linker="$host_os dld.sl"
8043 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8044 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8046 soname_spec='${libname}${release}${shared_ext}$major'
8047 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8048 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8052 dynamic_linker="$host_os dld.sl"
8053 shlibpath_var=SHLIB_PATH
8054 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8056 soname_spec='${libname}${release}${shared_ext}$major'
8059 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8060 postinstall_cmds='chmod 555 $lib'
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8068 soname_spec='${libname}${release}${shared_ext}$major'
8069 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8070 shlibpath_var=LD_LIBRARY_PATH
8071 shlibpath_overrides_runpath=no
8072 hardcode_into_libs=yes
8075 irix5* | irix6* | nonstopux*)
8077 nonstopux*) version_type=nonstopux ;;
8079 if test "$lt_cv_prog_gnu_ld" = yes; then
8087 soname_spec='${libname}${release}${shared_ext}$major'
8088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8090 irix5* | nonstopux*)
8094 case $LD in # libtool.m4 will add one of these switches to LD
8095 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8096 libsuff= shlibsuff= libmagic=32-bit;;
8097 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8098 libsuff=32 shlibsuff=N32 libmagic=N32;;
8099 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8100 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8101 *) libsuff= shlibsuff= libmagic=never-match;;
8105 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8106 shlibpath_overrides_runpath=no
8107 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8108 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8109 hardcode_into_libs=yes
8112 # No shared lib support for Linux oldld, aout, or coff.
8113 linux*oldld* | linux*aout* | linux*coff*)
8117 # This must be Linux ELF.
8122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8123 soname_spec='${libname}${release}${shared_ext}$major'
8124 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8125 shlibpath_var=LD_LIBRARY_PATH
8126 shlibpath_overrides_runpath=no
8127 # This implies no fast_install, which is unacceptable.
8128 # Some rework will be needed to allow for fast_install
8129 # before this can be enabled.
8130 hardcode_into_libs=yes
8132 # Append ld.so.conf contents to the search path
8133 if test -f /etc/ld.so.conf; then
8134 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' ' '`
8135 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8138 # We used to test for /lib/ld.so.1 and disable shared libraries on
8139 # powerpc, because MkLinux only supported shared libraries with the
8140 # GNU dynamic linker. Since this was broken with cross compilers,
8141 # most powerpc-linux boxes support dynamic linking these days and
8142 # people can always --disable-shared, the test was removed, and we
8143 # assume the GNU/Linux dynamic linker is in use.
8144 dynamic_linker='GNU/Linux ld.so'
8151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8152 soname_spec='${libname}${release}${shared_ext}$major'
8153 shlibpath_var=LD_LIBRARY_PATH
8154 shlibpath_overrides_runpath=no
8155 hardcode_into_libs=yes
8156 dynamic_linker='GNU ld.so'
8163 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8165 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8166 dynamic_linker='NetBSD (a.out) ld.so'
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 dynamic_linker='NetBSD ld.elf_so'
8172 shlibpath_var=LD_LIBRARY_PATH
8173 shlibpath_overrides_runpath=yes
8174 hardcode_into_libs=yes
8179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8180 shlibpath_var=LD_LIBRARY_PATH
8181 shlibpath_overrides_runpath=yes
8188 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8189 soname_spec='${libname}${release}${shared_ext}$major'
8190 shlibpath_var=LD_LIBRARY_PATH
8191 shlibpath_overrides_runpath=yes
8196 sys_lib_dlsearch_path_spec="/usr/lib"
8198 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8200 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8201 *) need_version=no ;;
8203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8204 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8205 shlibpath_var=LD_LIBRARY_PATH
8206 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8208 openbsd2.[89] | openbsd2.[89].*)
8209 shlibpath_overrides_runpath=no
8212 shlibpath_overrides_runpath=yes
8216 shlibpath_overrides_runpath=yes
8221 libname_spec='$name'
8224 library_names_spec='$libname${shared_ext} $libname.a'
8225 dynamic_linker='OS/2 ld.exe'
8226 shlibpath_var=LIBPATH
8229 osf3* | osf4* | osf5*)
8233 soname_spec='${libname}${release}${shared_ext}$major'
8234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8235 shlibpath_var=LD_LIBRARY_PATH
8236 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8237 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8245 soname_spec='${libname}${release}${shared_ext}$major'
8246 shlibpath_var=LD_LIBRARY_PATH
8247 shlibpath_overrides_runpath=yes
8248 hardcode_into_libs=yes
8249 # ldd complains unless libraries are executable
8250 postinstall_cmds='chmod +x $lib'
8255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8256 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8257 shlibpath_var=LD_LIBRARY_PATH
8258 shlibpath_overrides_runpath=yes
8259 if test "$with_gnu_ld" = yes; then
8267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8268 soname_spec='${libname}${release}${shared_ext}$major'
8269 shlibpath_var=LD_LIBRARY_PATH
8270 case $host_vendor in
8272 shlibpath_overrides_runpath=no
8274 export_dynamic_flag_spec='${wl}-Blargedynsym'
8275 runpath_var=LD_RUN_PATH
8283 shlibpath_overrides_runpath=no
8284 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8290 if test -d /usr/nec ;then
8292 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8293 soname_spec='$libname${shared_ext}.$major'
8294 shlibpath_var=LD_LIBRARY_PATH
8298 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8299 version_type=freebsd-elf
8302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8303 soname_spec='${libname}${release}${shared_ext}$major'
8304 shlibpath_var=LD_LIBRARY_PATH
8305 hardcode_into_libs=yes
8306 if test "$with_gnu_ld" = yes; then
8307 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8308 shlibpath_overrides_runpath=no
8310 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8311 shlibpath_overrides_runpath=yes
8314 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8318 sys_lib_dlsearch_path_spec='/usr/lib'
8323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8324 soname_spec='${libname}${release}${shared_ext}$major'
8325 shlibpath_var=LD_LIBRARY_PATH
8332 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8333 echo "${ECHO_T}$dynamic_linker" >&6
8334 test "$dynamic_linker" = no && can_build_shared=no
8336 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8337 if test "$GCC" = yes; then
8338 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8341 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8342 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8344 if test -n "$hardcode_libdir_flag_spec" || \
8345 test -n "$runpath_var" || \
8346 test "X$hardcode_automatic" = "Xyes" ; then
8348 # We can hardcode non-existant directories.
8349 if test "$hardcode_direct" != no &&
8350 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8351 # have to relink, otherwise we might link with an installed library
8352 # when we should be linking with a yet-to-be-installed one
8353 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8354 test "$hardcode_minus_L" != no; then
8355 # Linking always hardcodes the temporary library directory.
8356 hardcode_action=relink
8358 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8359 hardcode_action=immediate
8362 # We cannot hardcode anything, or else we can only hardcode existing
8364 hardcode_action=unsupported
8366 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8367 echo "${ECHO_T}$hardcode_action" >&6
8369 if test "$hardcode_action" = relink; then
8370 # Fast installation is not supported
8371 enable_fast_install=no
8372 elif test "$shlibpath_overrides_runpath" = yes ||
8373 test "$enable_shared" = no; then
8374 # Fast installation is not necessary
8375 enable_fast_install=needless
8380 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8381 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8382 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8383 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8384 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8385 echo "$as_me:$LINENO: result: yes" >&5
8386 echo "${ECHO_T}yes" >&6
8388 # FIXME - insert some real tests, host_os isn't really good enough
8391 if test -n "$STRIP" ; then
8392 striplib="$STRIP -x"
8393 echo "$as_me:$LINENO: result: yes" >&5
8394 echo "${ECHO_T}yes" >&6
8396 echo "$as_me:$LINENO: result: no" >&5
8397 echo "${ECHO_T}no" >&6
8401 echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6
8407 if test "x$enable_dlopen" != xyes; then
8408 enable_dlopen=unknown
8409 enable_dlopen_self=unknown
8410 enable_dlopen_self_static=unknown
8417 lt_cv_dlopen="load_add_on"
8419 lt_cv_dlopen_self=yes
8423 lt_cv_dlopen="LoadLibrary"
8428 lt_cv_dlopen="dlopen"
8433 # if libdl is installed we need to link against it
8434 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8435 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8436 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 ac_check_lib_save_LIBS=$LIBS
8441 cat >conftest.$ac_ext <<_ACEOF
8444 cat confdefs.h >>conftest.$ac_ext
8445 cat >>conftest.$ac_ext <<_ACEOF
8446 /* end confdefs.h. */
8448 /* Override any gcc2 internal prototype to avoid an error. */
8452 /* We use char because int might match the return type of a gcc2
8453 builtin and then its argument prototype would still apply. */
8463 rm -f conftest.$ac_objext conftest$ac_exeext
8464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8465 (eval $ac_link) 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } &&
8472 { ac_try='test -z "$ac_c_werror_flag"
8473 || test ! -s conftest.err'
8474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8478 (exit $ac_status); }; } &&
8479 { ac_try='test -s conftest$ac_exeext'
8480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8484 (exit $ac_status); }; }; then
8485 ac_cv_lib_dl_dlopen=yes
8487 echo "$as_me: failed program was:" >&5
8488 sed 's/^/| /' conftest.$ac_ext >&5
8490 ac_cv_lib_dl_dlopen=no
8492 rm -f conftest.err conftest.$ac_objext \
8493 conftest$ac_exeext conftest.$ac_ext
8494 LIBS=$ac_check_lib_save_LIBS
8496 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8497 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8498 if test $ac_cv_lib_dl_dlopen = yes; then
8499 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8504 lt_cv_dlopen_self=yes
8511 echo "$as_me:$LINENO: checking for shl_load" >&5
8512 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8513 if test "${ac_cv_func_shl_load+set}" = set; then
8514 echo $ECHO_N "(cached) $ECHO_C" >&6
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8523 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8524 #define shl_load innocuous_shl_load
8526 /* System header to define __stub macros and hopefully few prototypes,
8527 which can conflict with char shl_load (); below.
8528 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8529 <limits.h> exists even on freestanding compilers. */
8532 # include <limits.h>
8534 # include <assert.h>
8539 /* Override any gcc2 internal prototype to avoid an error. */
8544 /* We use char because int might match the return type of a gcc2
8545 builtin and then its argument prototype would still apply. */
8547 /* The GNU C library defines this for functions which it implements
8548 to always fail with ENOSYS. Some functions are actually named
8549 something starting with __ and the normal name is an alias. */
8550 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8553 char (*f) () = shl_load;
8562 return f != shl_load;
8567 rm -f conftest.$ac_objext conftest$ac_exeext
8568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8569 (eval $ac_link) 2>conftest.er1
8571 grep -v '^ *+' conftest.er1 >conftest.err
8573 cat conftest.err >&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } &&
8576 { ac_try='test -z "$ac_c_werror_flag"
8577 || test ! -s conftest.err'
8578 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582 (exit $ac_status); }; } &&
8583 { ac_try='test -s conftest$ac_exeext'
8584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8588 (exit $ac_status); }; }; then
8589 ac_cv_func_shl_load=yes
8591 echo "$as_me: failed program was:" >&5
8592 sed 's/^/| /' conftest.$ac_ext >&5
8594 ac_cv_func_shl_load=no
8596 rm -f conftest.err conftest.$ac_objext \
8597 conftest$ac_exeext conftest.$ac_ext
8599 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8600 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8601 if test $ac_cv_func_shl_load = yes; then
8602 lt_cv_dlopen="shl_load"
8604 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8605 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8607 echo $ECHO_N "(cached) $ECHO_C" >&6
8609 ac_check_lib_save_LIBS=$LIBS
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8618 /* Override any gcc2 internal prototype to avoid an error. */
8622 /* We use char because int might match the return type of a gcc2
8623 builtin and then its argument prototype would still apply. */
8633 rm -f conftest.$ac_objext conftest$ac_exeext
8634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8635 (eval $ac_link) 2>conftest.er1
8637 grep -v '^ *+' conftest.er1 >conftest.err
8639 cat conftest.err >&5
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); } &&
8642 { ac_try='test -z "$ac_c_werror_flag"
8643 || test ! -s conftest.err'
8644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); }; } &&
8649 { ac_try='test -s conftest$ac_exeext'
8650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); }; }; then
8655 ac_cv_lib_dld_shl_load=yes
8657 echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8660 ac_cv_lib_dld_shl_load=no
8662 rm -f conftest.err conftest.$ac_objext \
8663 conftest$ac_exeext conftest.$ac_ext
8664 LIBS=$ac_check_lib_save_LIBS
8666 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8667 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8668 if test $ac_cv_lib_dld_shl_load = yes; then
8669 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8671 echo "$as_me:$LINENO: checking for dlopen" >&5
8672 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8673 if test "${ac_cv_func_dlopen+set}" = set; then
8674 echo $ECHO_N "(cached) $ECHO_C" >&6
8676 cat >conftest.$ac_ext <<_ACEOF
8679 cat confdefs.h >>conftest.$ac_ext
8680 cat >>conftest.$ac_ext <<_ACEOF
8681 /* end confdefs.h. */
8682 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8684 #define dlopen innocuous_dlopen
8686 /* System header to define __stub macros and hopefully few prototypes,
8687 which can conflict with char dlopen (); below.
8688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8689 <limits.h> exists even on freestanding compilers. */
8692 # include <limits.h>
8694 # include <assert.h>
8699 /* Override any gcc2 internal prototype to avoid an error. */
8704 /* We use char because int might match the return type of a gcc2
8705 builtin and then its argument prototype would still apply. */
8707 /* The GNU C library defines this for functions which it implements
8708 to always fail with ENOSYS. Some functions are actually named
8709 something starting with __ and the normal name is an alias. */
8710 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8713 char (*f) () = dlopen;
8727 rm -f conftest.$ac_objext conftest$ac_exeext
8728 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8729 (eval $ac_link) 2>conftest.er1
8731 grep -v '^ *+' conftest.er1 >conftest.err
8733 cat conftest.err >&5
8734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8735 (exit $ac_status); } &&
8736 { ac_try='test -z "$ac_c_werror_flag"
8737 || test ! -s conftest.err'
8738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8742 (exit $ac_status); }; } &&
8743 { ac_try='test -s conftest$ac_exeext'
8744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); }; }; then
8749 ac_cv_func_dlopen=yes
8751 echo "$as_me: failed program was:" >&5
8752 sed 's/^/| /' conftest.$ac_ext >&5
8754 ac_cv_func_dlopen=no
8756 rm -f conftest.err conftest.$ac_objext \
8757 conftest$ac_exeext conftest.$ac_ext
8759 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8760 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8761 if test $ac_cv_func_dlopen = yes; then
8762 lt_cv_dlopen="dlopen"
8764 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8765 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8766 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8767 echo $ECHO_N "(cached) $ECHO_C" >&6
8769 ac_check_lib_save_LIBS=$LIBS
8771 cat >conftest.$ac_ext <<_ACEOF
8774 cat confdefs.h >>conftest.$ac_ext
8775 cat >>conftest.$ac_ext <<_ACEOF
8776 /* end confdefs.h. */
8778 /* Override any gcc2 internal prototype to avoid an error. */
8782 /* We use char because int might match the return type of a gcc2
8783 builtin and then its argument prototype would still apply. */
8793 rm -f conftest.$ac_objext conftest$ac_exeext
8794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8795 (eval $ac_link) 2>conftest.er1
8797 grep -v '^ *+' conftest.er1 >conftest.err
8799 cat conftest.err >&5
8800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8801 (exit $ac_status); } &&
8802 { ac_try='test -z "$ac_c_werror_flag"
8803 || test ! -s conftest.err'
8804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8808 (exit $ac_status); }; } &&
8809 { ac_try='test -s conftest$ac_exeext'
8810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8814 (exit $ac_status); }; }; then
8815 ac_cv_lib_dl_dlopen=yes
8817 echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8820 ac_cv_lib_dl_dlopen=no
8822 rm -f conftest.err conftest.$ac_objext \
8823 conftest$ac_exeext conftest.$ac_ext
8824 LIBS=$ac_check_lib_save_LIBS
8826 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8828 if test $ac_cv_lib_dl_dlopen = yes; then
8829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8831 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8832 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8833 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 ac_check_lib_save_LIBS=$LIBS
8838 cat >conftest.$ac_ext <<_ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8845 /* Override any gcc2 internal prototype to avoid an error. */
8849 /* We use char because int might match the return type of a gcc2
8850 builtin and then its argument prototype would still apply. */
8860 rm -f conftest.$ac_objext conftest$ac_exeext
8861 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8862 (eval $ac_link) 2>conftest.er1
8864 grep -v '^ *+' conftest.er1 >conftest.err
8866 cat conftest.err >&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); } &&
8869 { ac_try='test -z "$ac_c_werror_flag"
8870 || test ! -s conftest.err'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; } &&
8876 { ac_try='test -s conftest$ac_exeext'
8877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); }; }; then
8882 ac_cv_lib_svld_dlopen=yes
8884 echo "$as_me: failed program was:" >&5
8885 sed 's/^/| /' conftest.$ac_ext >&5
8887 ac_cv_lib_svld_dlopen=no
8889 rm -f conftest.err conftest.$ac_objext \
8890 conftest$ac_exeext conftest.$ac_ext
8891 LIBS=$ac_check_lib_save_LIBS
8893 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8894 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8895 if test $ac_cv_lib_svld_dlopen = yes; then
8896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8898 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8899 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8900 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8903 ac_check_lib_save_LIBS=$LIBS
8905 cat >conftest.$ac_ext <<_ACEOF
8908 cat confdefs.h >>conftest.$ac_ext
8909 cat >>conftest.$ac_ext <<_ACEOF
8910 /* end confdefs.h. */
8912 /* Override any gcc2 internal prototype to avoid an error. */
8916 /* We use char because int might match the return type of a gcc2
8917 builtin and then its argument prototype would still apply. */
8927 rm -f conftest.$ac_objext conftest$ac_exeext
8928 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8929 (eval $ac_link) 2>conftest.er1
8931 grep -v '^ *+' conftest.er1 >conftest.err
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_c_werror_flag"
8937 || test ! -s conftest.err'
8938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8942 (exit $ac_status); }; } &&
8943 { ac_try='test -s conftest$ac_exeext'
8944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8948 (exit $ac_status); }; }; then
8949 ac_cv_lib_dld_dld_link=yes
8951 echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8954 ac_cv_lib_dld_dld_link=no
8956 rm -f conftest.err conftest.$ac_objext \
8957 conftest$ac_exeext conftest.$ac_ext
8958 LIBS=$ac_check_lib_save_LIBS
8960 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8961 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8962 if test $ac_cv_lib_dld_dld_link = yes; then
8963 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8984 if test "x$lt_cv_dlopen" != xno; then
8990 case $lt_cv_dlopen in
8992 save_CPPFLAGS="$CPPFLAGS"
8993 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8995 save_LDFLAGS="$LDFLAGS"
8996 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8999 LIBS="$lt_cv_dlopen_libs $LIBS"
9001 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9002 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9003 if test "${lt_cv_dlopen_self+set}" = set; then
9004 echo $ECHO_N "(cached) $ECHO_C" >&6
9006 if test "$cross_compiling" = yes; then :
9007 lt_cv_dlopen_self=cross
9009 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9010 lt_status=$lt_dlunknown
9011 cat > conftest.$ac_ext <<EOF
9012 #line 9012 "configure"
9013 #include "confdefs.h"
9022 # define LT_DLGLOBAL RTLD_GLOBAL
9025 # define LT_DLGLOBAL DL_GLOBAL
9027 # define LT_DLGLOBAL 0
9031 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9032 find out it does not work in some platform. */
9033 #ifndef LT_DLLAZY_OR_NOW
9035 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9038 # define LT_DLLAZY_OR_NOW DL_LAZY
9041 # define LT_DLLAZY_OR_NOW RTLD_NOW
9044 # define LT_DLLAZY_OR_NOW DL_NOW
9046 # define LT_DLLAZY_OR_NOW 0
9054 extern "C" void exit (int);
9057 void fnord() { int i=42;}
9060 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9061 int status = $lt_dlunknown;
9065 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9066 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9067 /* dlclose (self); */
9075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9076 (eval $ac_link) 2>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9080 (./conftest; exit; ) >&5 2>/dev/null
9083 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9084 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9085 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9088 # compilation failed
9089 lt_cv_dlopen_self=no
9096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9097 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9099 if test "x$lt_cv_dlopen_self" = xyes; then
9100 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9101 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9102 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9103 if test "${lt_cv_dlopen_self_static+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 if test "$cross_compiling" = yes; then :
9107 lt_cv_dlopen_self_static=cross
9109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9110 lt_status=$lt_dlunknown
9111 cat > conftest.$ac_ext <<EOF
9112 #line 9112 "configure"
9113 #include "confdefs.h"
9122 # define LT_DLGLOBAL RTLD_GLOBAL
9125 # define LT_DLGLOBAL DL_GLOBAL
9127 # define LT_DLGLOBAL 0
9131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9132 find out it does not work in some platform. */
9133 #ifndef LT_DLLAZY_OR_NOW
9135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9138 # define LT_DLLAZY_OR_NOW DL_LAZY
9141 # define LT_DLLAZY_OR_NOW RTLD_NOW
9144 # define LT_DLLAZY_OR_NOW DL_NOW
9146 # define LT_DLLAZY_OR_NOW 0
9154 extern "C" void exit (int);
9157 void fnord() { int i=42;}
9160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9161 int status = $lt_dlunknown;
9165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9167 /* dlclose (self); */
9175 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9176 (eval $ac_link) 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9180 (./conftest; exit; ) >&5 2>/dev/null
9183 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9184 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9185 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9188 # compilation failed
9189 lt_cv_dlopen_self_static=no
9196 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9197 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9200 CPPFLAGS="$save_CPPFLAGS"
9201 LDFLAGS="$save_LDFLAGS"
9206 case $lt_cv_dlopen_self in
9207 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9208 *) enable_dlopen_self=unknown ;;
9211 case $lt_cv_dlopen_self_static in
9212 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9213 *) enable_dlopen_self_static=unknown ;;
9218 # Report which library types will actually be built
9219 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9220 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9221 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9222 echo "${ECHO_T}$can_build_shared" >&6
9224 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9225 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9226 test "$can_build_shared" = "no" && enable_shared=no
9228 # On AIX, shared libraries and static libraries use the same namespace, and
9229 # are all built from PIC.
9232 test "$enable_shared" = yes && enable_static=no
9233 if test -n "$RANLIB"; then
9234 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9235 postinstall_cmds='$RANLIB $lib'
9240 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9241 test "$enable_shared" = yes && enable_static=no
9245 echo "$as_me:$LINENO: result: $enable_shared" >&5
9246 echo "${ECHO_T}$enable_shared" >&6
9248 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9249 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9250 # Make sure either enable_shared or enable_static is yes.
9251 test "$enable_shared" = yes || enable_static=yes
9252 echo "$as_me:$LINENO: result: $enable_static" >&5
9253 echo "${ECHO_T}$enable_static" >&6
9255 # The else clause should only fire when bootstrapping the
9256 # libtool distribution, otherwise you forgot to ship ltmain.sh
9257 # with your package, and you will get complaints that there are
9258 # no rules to generate ltmain.sh.
9259 if test -f "$ltmain"; then
9260 # See if we are running on zsh, and set the options which allow our commands through
9261 # without removal of \ escapes.
9262 if test -n "${ZSH_VERSION+set}" ; then
9263 setopt NO_GLOB_SUBST
9265 # Now quote all the things that may contain metacharacters while being
9266 # careful not to overquote the AC_SUBSTed values. We take copies of the
9267 # variables and quote the copies for generation of the libtool script.
9268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9272 deplibs_check_method reload_flag reload_cmds need_locks \
9273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9274 lt_cv_sys_global_symbol_to_c_name_address \
9275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9276 old_postinstall_cmds old_postuninstall_cmds \
9280 lt_prog_compiler_wl \
9281 lt_prog_compiler_pic \
9282 lt_prog_compiler_static \
9283 lt_prog_compiler_no_builtin_flag \
9284 export_dynamic_flag_spec \
9285 thread_safe_flag_spec \
9286 whole_archive_flag_spec \
9287 enable_shared_with_static_runtimes \
9289 old_archive_from_new_cmds \
9294 compiler_lib_search_path \
9296 archive_expsym_cmds \
9298 postuninstall_cmds \
9299 old_archive_from_expsyms_cmds \
9300 allow_undefined_flag \
9302 export_symbols_cmds \
9303 hardcode_libdir_flag_spec \
9304 hardcode_libdir_flag_spec_ld \
9305 hardcode_libdir_separator \
9306 hardcode_automatic \
9308 module_expsym_cmds \
9309 lt_cv_prog_compiler_c_o \
9314 old_archive_cmds | \
9315 old_archive_from_new_cmds | \
9317 archive_expsym_cmds | \
9319 module_expsym_cmds | \
9320 old_archive_from_expsyms_cmds | \
9321 export_symbols_cmds | \
9322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9323 postinstall_cmds | postuninstall_cmds | \
9324 old_postinstall_cmds | old_postuninstall_cmds | \
9325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9326 # Double-quote double-evaled strings.
9327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9336 *'\$0 --fallback-echo"')
9337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9342 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9344 { echo "$as_me:$LINENO: creating $ofile" >&5
9345 echo "$as_me: creating $ofile" >&6;}
9347 cat <<__EOF__ >> "$cfgfile"
9350 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9351 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9352 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9354 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9355 # Free Software Foundation, Inc.
9357 # This file is part of GNU Libtool:
9358 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9360 # This program is free software; you can redistribute it and/or modify
9361 # it under the terms of the GNU General Public License as published by
9362 # the Free Software Foundation; either version 2 of the License, or
9363 # (at your option) any later version.
9365 # This program is distributed in the hope that it will be useful, but
9366 # WITHOUT ANY WARRANTY; without even the implied warranty of
9367 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9368 # General Public License for more details.
9370 # You should have received a copy of the GNU General Public License
9371 # along with this program; if not, write to the Free Software
9372 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9374 # As a special exception to the GNU General Public License, if you
9375 # distribute this file as part of a program that contains a
9376 # configuration script generated by Autoconf, you may include it under
9377 # the same distribution terms that you use for the rest of that program.
9379 # A sed program that does not truncate output.
9382 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9383 Xsed="$SED -e 1s/^X//"
9385 # The HP-UX ksh and POSIX shell print the target directory to stdout
9387 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9389 # The names of the tagged configurations supported by this script.
9392 # ### BEGIN LIBTOOL CONFIG
9394 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9396 # Shell to use when invoking shell scripts.
9399 # Whether or not to build shared libraries.
9400 build_libtool_libs=$enable_shared
9402 # Whether or not to build static libraries.
9403 build_old_libs=$enable_static
9405 # Whether or not to add -lc for building shared libraries.
9406 build_libtool_need_lc=$archive_cmds_need_lc
9408 # Whether or not to disallow shared libs when runtime libs are static
9409 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9411 # Whether or not to optimize for fast installation.
9412 fast_install=$enable_fast_install
9415 host_alias=$host_alias
9420 build_alias=$build_alias
9424 # An echo program that does not interpret backslashes.
9429 AR_FLAGS=$lt_AR_FLAGS
9434 # LTCC compiler flags.
9435 LTCFLAGS=$lt_LTCFLAGS
9437 # A language-specific compiler.
9440 # Is the compiler the GNU C compiler?
9446 # The linker used to build libraries.
9449 # Whether we need hard or soft links.
9452 # A BSD-compatible nm program.
9455 # A symbol stripping program
9458 # Used to examine libraries when file_magic_cmd begins "file"
9459 MAGIC_CMD=$MAGIC_CMD
9461 # Used on cygwin: DLL creation program.
9464 # Used on cygwin: object dumper.
9467 # Used on cygwin: assembler.
9470 # The name of the directory that contains temporary libtool files.
9473 # How to create reloadable object files.
9474 reload_flag=$lt_reload_flag
9475 reload_cmds=$lt_reload_cmds
9477 # How to pass a linker flag through the compiler.
9478 wl=$lt_lt_prog_compiler_wl
9480 # Object file suffix (normally "o").
9483 # Old archive suffix (normally "a").
9486 # Shared library suffix (normally ".so").
9487 shrext_cmds='$shrext_cmds'
9489 # Executable file suffix (normally "").
9492 # Additional compiler flags for building library objects.
9493 pic_flag=$lt_lt_prog_compiler_pic
9496 # What is the maximum length of a command?
9497 max_cmd_len=$lt_cv_sys_max_cmd_len
9499 # Does compiler simultaneously support -c and -o options?
9500 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9502 # Must we lock files when doing compilation?
9503 need_locks=$lt_need_locks
9505 # Do we need the lib prefix for modules?
9506 need_lib_prefix=$need_lib_prefix
9508 # Do we need a version for libraries?
9509 need_version=$need_version
9511 # Whether dlopen is supported.
9512 dlopen_support=$enable_dlopen
9514 # Whether dlopen of programs is supported.
9515 dlopen_self=$enable_dlopen_self
9517 # Whether dlopen of statically linked programs is supported.
9518 dlopen_self_static=$enable_dlopen_self_static
9520 # Compiler flag to prevent dynamic linking.
9521 link_static_flag=$lt_lt_prog_compiler_static
9523 # Compiler flag to turn off builtin functions.
9524 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9526 # Compiler flag to allow reflexive dlopens.
9527 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9529 # Compiler flag to generate shared objects directly from archives.
9530 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9532 # Compiler flag to generate thread-safe objects.
9533 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9535 # Library versioning type.
9536 version_type=$version_type
9538 # Format of library name prefix.
9539 libname_spec=$lt_libname_spec
9541 # List of archive names. First name is the real one, the rest are links.
9542 # The last name is the one that the linker finds with -lNAME.
9543 library_names_spec=$lt_library_names_spec
9545 # The coded name of the library, if different from the real name.
9546 soname_spec=$lt_soname_spec
9548 # Commands used to build and install an old-style archive.
9550 old_archive_cmds=$lt_old_archive_cmds
9551 old_postinstall_cmds=$lt_old_postinstall_cmds
9552 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9554 # Create an old-style archive from a shared archive.
9555 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9557 # Create a temporary old-style archive to link instead of a shared archive.
9558 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9560 # Commands used to build and install a shared archive.
9561 archive_cmds=$lt_archive_cmds
9562 archive_expsym_cmds=$lt_archive_expsym_cmds
9563 postinstall_cmds=$lt_postinstall_cmds
9564 postuninstall_cmds=$lt_postuninstall_cmds
9566 # Commands used to build a loadable module (assumed same as above if empty)
9567 module_cmds=$lt_module_cmds
9568 module_expsym_cmds=$lt_module_expsym_cmds
9570 # Commands to strip libraries.
9571 old_striplib=$lt_old_striplib
9572 striplib=$lt_striplib
9574 # Dependencies to place before the objects being linked to create a
9576 predep_objects=$lt_predep_objects
9578 # Dependencies to place after the objects being linked to create a
9580 postdep_objects=$lt_postdep_objects
9582 # Dependencies to place before the objects being linked to create a
9586 # Dependencies to place after the objects being linked to create a
9588 postdeps=$lt_postdeps
9590 # The library search path used internally by the compiler when linking
9592 compiler_lib_search_path=$lt_compiler_lib_search_path
9594 # Method to check whether dependent libraries are shared objects.
9595 deplibs_check_method=$lt_deplibs_check_method
9597 # Command to use when deplibs_check_method == file_magic.
9598 file_magic_cmd=$lt_file_magic_cmd
9600 # Flag that allows shared libraries with undefined symbols to be built.
9601 allow_undefined_flag=$lt_allow_undefined_flag
9603 # Flag that forces no undefined symbols.
9604 no_undefined_flag=$lt_no_undefined_flag
9606 # Commands used to finish a libtool library installation in a directory.
9607 finish_cmds=$lt_finish_cmds
9609 # Same as above, but a single script fragment to be evaled but not shown.
9610 finish_eval=$lt_finish_eval
9612 # Take the output of nm and produce a listing of raw symbols and C names.
9613 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9615 # Transform the output of nm in a proper C declaration
9616 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9618 # Transform the output of nm in a C name address pair
9619 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9621 # This is the shared library runtime path variable.
9622 runpath_var=$runpath_var
9624 # This is the shared library path variable.
9625 shlibpath_var=$shlibpath_var
9627 # Is shlibpath searched before the hard-coded library search path?
9628 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9630 # How to hardcode a shared library path into an executable.
9631 hardcode_action=$hardcode_action
9633 # Whether we should hardcode library paths into libraries.
9634 hardcode_into_libs=$hardcode_into_libs
9636 # Flag to hardcode \$libdir into a binary during linking.
9637 # This must work even if \$libdir does not exist.
9638 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9640 # If ld is used when linking, flag to hardcode \$libdir into
9641 # a binary during linking. This must work even if \$libdir does
9643 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9645 # Whether we need a single -rpath flag with a separated argument.
9646 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9648 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9650 hardcode_direct=$hardcode_direct
9652 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9654 hardcode_minus_L=$hardcode_minus_L
9656 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9657 # the resulting binary.
9658 hardcode_shlibpath_var=$hardcode_shlibpath_var
9660 # Set to yes if building a shared library automatically hardcodes DIR into the library
9661 # and all subsequent libraries and executables linked against it.
9662 hardcode_automatic=$hardcode_automatic
9664 # Variables whose values should be saved in libtool wrapper scripts and
9665 # restored at relink time.
9666 variables_saved_for_relink="$variables_saved_for_relink"
9668 # Whether libtool must link a program against all its dependency libraries.
9669 link_all_deplibs=$link_all_deplibs
9671 # Compile-time system search path for libraries
9672 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9674 # Run-time system search path for libraries
9675 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9677 # Fix the shell variable \$srcfile for the compiler.
9678 fix_srcfile_path="$fix_srcfile_path"
9680 # Set to yes if exported symbols are required.
9681 always_export_symbols=$always_export_symbols
9683 # The commands to list exported symbols.
9684 export_symbols_cmds=$lt_export_symbols_cmds
9686 # The commands to extract the exported symbol list from a shared archive.
9687 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9689 # Symbols that should not be listed in the preloaded symbols.
9690 exclude_expsyms=$lt_exclude_expsyms
9692 # Symbols that must always be exported.
9693 include_expsyms=$lt_include_expsyms
9695 # ### END LIBTOOL CONFIG
9702 cat <<\EOF >> "$cfgfile"
9704 # AIX sometimes has problems with the GCC collect2 program. For some
9705 # reason, if we set the COLLECT_NAMES environment variable, the problems
9706 # vanish in a puff of smoke.
9707 if test "X${COLLECT_NAMES+set}" != Xset; then
9709 export COLLECT_NAMES
9715 # We use sed instead of cat because bash on DJGPP gets confused if
9716 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9717 # text mode, it properly converts lines to CR/LF. This bash problem
9718 # is reportedly fixed, but why not run on old versions too?
9719 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9721 mv -f "$cfgfile" "$ofile" || \
9722 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9726 # If there is no Makefile yet, we rely on a make rule to execute
9727 # `config.status --recheck' to rerun these tests and create the
9728 # libtool script then.
9729 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9730 if test -f "$ltmain_in"; then
9731 test -f Makefile && make "$ltmain"
9737 ac_cpp='$CPP $CPPFLAGS'
9738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9745 # Check whether --with-tags or --without-tags was given.
9746 if test "${with_tags+set}" = set; then
9747 withval="$with_tags"
9751 if test -f "$ltmain" && test -n "$tagnames"; then
9752 if test ! -f "${ofile}"; then
9753 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9754 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9757 if test -z "$LTCC"; then
9758 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9759 if test -z "$LTCC"; then
9760 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9761 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9763 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9764 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9767 if test -z "$LTCFLAGS"; then
9768 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9771 # Extract list of available tagged configurations in $ofile.
9772 # Note that this assumes the entire list is on one line.
9773 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9775 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9776 for tagname in $tagnames; do
9778 # Check whether tagname contains only valid characters
9779 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9781 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9782 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9783 { (exit 1); exit 1; }; }
9787 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9789 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9790 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9791 { (exit 1); exit 1; }; }
9794 # Update the list of available tags.
9795 if test -n "$tagname"; then
9796 echo appending configuration tag \"$tagname\" to $ofile
9800 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9801 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9802 (test "X$CXX" != "Xg++"))) ; then
9804 ac_cpp='$CXXCPP $CPPFLAGS'
9805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9812 archive_cmds_need_lc_CXX=no
9813 allow_undefined_flag_CXX=
9814 always_export_symbols_CXX=no
9815 archive_expsym_cmds_CXX=
9816 export_dynamic_flag_spec_CXX=
9817 hardcode_direct_CXX=no
9818 hardcode_libdir_flag_spec_CXX=
9819 hardcode_libdir_flag_spec_ld_CXX=
9820 hardcode_libdir_separator_CXX=
9821 hardcode_minus_L_CXX=no
9822 hardcode_shlibpath_var_CXX=unsupported
9823 hardcode_automatic_CXX=no
9825 module_expsym_cmds_CXX=
9826 link_all_deplibs_CXX=unknown
9827 old_archive_cmds_CXX=$old_archive_cmds
9828 no_undefined_flag_CXX=
9829 whole_archive_flag_spec_CXX=
9830 enable_shared_with_static_runtimes_CXX=no
9832 # Dependencies to place before and after the object being linked:
9834 postdep_objects_CXX=
9837 compiler_lib_search_path_CXX=
9839 # Source file extension for C++ test sources.
9842 # Object file extension for compiled C++ test sources.
9846 # Code to be used in simple compile tests
9847 lt_simple_compile_test_code="int some_variable = 0;\n"
9849 # Code to be used in simple link tests
9850 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9852 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9854 # If no C compiler was specified, use CC.
9857 # If no C compiler flags were specified, use CFLAGS.
9858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9860 # Allow CC to be a program name with arguments.
9864 # save warnings/boilerplate of simple test code
9865 ac_outfile=conftest.$ac_objext
9866 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9868 _lt_compiler_boilerplate=`cat conftest.err`
9871 ac_outfile=conftest.$ac_objext
9872 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9874 _lt_linker_boilerplate=`cat conftest.err`
9878 # Allow CC to be a program name with arguments.
9883 lt_save_with_gnu_ld=$with_gnu_ld
9884 lt_save_path_LD=$lt_cv_path_LD
9885 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9886 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9888 $as_unset lt_cv_prog_gnu_ld
9890 if test -n "${lt_cv_path_LDCXX+set}"; then
9891 lt_cv_path_LD=$lt_cv_path_LDCXX
9893 $as_unset lt_cv_path_LD
9895 test -z "${LDCXX+set}" || LD=$LDCXX
9899 for cc_temp in $compiler""; do
9901 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9902 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9907 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9910 # We don't want -fno-exception wen compiling C++ code, so set the
9911 # no_builtin_flag separately
9912 if test "$GXX" = yes; then
9913 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9915 lt_prog_compiler_no_builtin_flag_CXX=
9918 if test "$GXX" = yes; then
9919 # Set up default GNU C++ configuration
9922 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9923 if test "${with_gnu_ld+set}" = set; then
9924 withval="$with_gnu_ld"
9925 test "$withval" = no || with_gnu_ld=yes
9930 if test "$GCC" = yes; then
9931 # Check if gcc -print-prog-name=ld gives a path.
9932 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9933 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9936 # gcc leaves a trailing carriage return which upsets mingw
9937 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9939 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9942 # Accept absolute paths.
9944 re_direlt='/[^/][^/]*/\.\./'
9945 # Canonicalize the pathname of ld
9946 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9947 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9948 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9950 test -z "$LD" && LD="$ac_prog"
9953 # If it fails, then pretend we aren't using GCC.
9957 # If it is relative, then search for the first ld in PATH.
9961 elif test "$with_gnu_ld" = yes; then
9962 echo "$as_me:$LINENO: checking for GNU ld" >&5
9963 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9965 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9966 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9968 if test "${lt_cv_path_LD+set}" = set; then
9969 echo $ECHO_N "(cached) $ECHO_C" >&6
9971 if test -z "$LD"; then
9972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9973 for ac_dir in $PATH; do
9975 test -z "$ac_dir" && ac_dir=.
9976 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9977 lt_cv_path_LD="$ac_dir/$ac_prog"
9978 # Check to see if the program is GNU ld. I'd rather use --version,
9979 # but apparently some variants of GNU ld only accept -v.
9980 # Break only if it was the GNU/non-GNU ld that we prefer.
9981 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9982 *GNU* | *'with BFD'*)
9983 test "$with_gnu_ld" != no && break
9986 test "$with_gnu_ld" != yes && break
9993 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9998 if test -n "$LD"; then
9999 echo "$as_me:$LINENO: result: $LD" >&5
10000 echo "${ECHO_T}$LD" >&6
10002 echo "$as_me:$LINENO: result: no" >&5
10003 echo "${ECHO_T}no" >&6
10005 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10006 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10007 { (exit 1); exit 1; }; }
10008 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10009 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10010 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10011 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10014 case `$LD -v 2>&1 </dev/null` in
10015 *GNU* | *'with BFD'*)
10016 lt_cv_prog_gnu_ld=yes
10019 lt_cv_prog_gnu_ld=no
10023 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10024 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10025 with_gnu_ld=$lt_cv_prog_gnu_ld
10029 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10030 # archiving commands below assume that GNU ld is being used.
10031 if test "$with_gnu_ld" = yes; then
10032 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10033 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'
10035 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10036 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10038 # If archive_cmds runs LD, not CC, wlarc should be empty
10039 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10040 # investigate it a little bit more. (MM)
10043 # ancient GNU ld didn't support --whole-archive et. al.
10044 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10045 grep 'no-whole-archive' > /dev/null; then
10046 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10048 whole_archive_flag_spec_CXX=
10054 # A generic and very simple default shared library creation
10055 # command for GNU C++ for the case where it uses the native
10056 # linker, instead of GNU ld. If possible, this setting should
10057 # overridden to take advantage of the native linker features on
10058 # the platform it is being used on.
10059 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10062 # Commands to make compiler produce verbose output that lists
10063 # what "hidden" libraries, object files and flags are used when
10064 # linking a shared library.
10065 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10073 # PORTME: fill in a description of your system's C++ link characteristics
10074 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10075 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10079 # FIXME: insert proper C++ library support
10083 if test "$host_cpu" = ia64; then
10084 # On IA64, the linker does run time linking by default, so we don't
10085 # have to do anything special.
10086 aix_use_runtimelinking=no
10087 exp_sym_flag='-Bexport'
10090 aix_use_runtimelinking=no
10092 # Test if we are trying to use run time linking or normal
10093 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10094 # need to do runtime linking.
10095 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10096 for ld_flag in $LDFLAGS; do
10099 aix_use_runtimelinking=yes
10107 exp_sym_flag='-bexport'
10108 no_entry_flag='-bnoentry'
10111 # When large executables or shared objects are built, AIX ld can
10112 # have problems creating the table of contents. If linking a library
10113 # or program results in "error TOC overflow" add -mminimal-toc to
10114 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10115 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10117 archive_cmds_CXX=''
10118 hardcode_direct_CXX=yes
10119 hardcode_libdir_separator_CXX=':'
10120 link_all_deplibs_CXX=yes
10122 if test "$GXX" = yes; then
10123 case $host_os in aix4.[012]|aix4.[012].*)
10124 # We only want to do this on AIX 4.2 and lower, the check
10125 # below for broken collect2 doesn't work under 4.3+
10126 collect2name=`${CC} -print-prog-name=collect2`
10127 if test -f "$collect2name" && \
10128 strings "$collect2name" | grep resolve_lib_name >/dev/null
10130 # We have reworked collect2
10131 hardcode_direct_CXX=yes
10133 # We have old collect2
10134 hardcode_direct_CXX=unsupported
10135 # It fails to find uninstalled libraries when the uninstalled
10136 # path is not listed in the libpath. Setting hardcode_minus_L
10137 # to unsupported forces relinking
10138 hardcode_minus_L_CXX=yes
10139 hardcode_libdir_flag_spec_CXX='-L$libdir'
10140 hardcode_libdir_separator_CXX=
10144 shared_flag='-shared'
10145 if test "$aix_use_runtimelinking" = yes; then
10146 shared_flag="$shared_flag "'${wl}-G'
10150 if test "$host_cpu" = ia64; then
10151 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10152 # chokes on -Wl,-G. The following line is correct:
10155 if test "$aix_use_runtimelinking" = yes; then
10156 shared_flag='${wl}-G'
10158 shared_flag='${wl}-bM:SRE'
10163 # It seems that -bexpall does not export symbols beginning with
10164 # underscore (_), so it is better to generate a list of symbols to export.
10165 always_export_symbols_CXX=yes
10166 if test "$aix_use_runtimelinking" = yes; then
10167 # Warning - without using the other runtime loading flags (-brtl),
10168 # -berok will link without error, but may produce a broken library.
10169 allow_undefined_flag_CXX='-berok'
10170 # Determine the default libpath from the value encoded in an empty executable.
10171 cat >conftest.$ac_ext <<_ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10188 (eval $ac_link) 2>conftest.er1
10190 grep -v '^ *+' conftest.er1 >conftest.err
10192 cat conftest.err >&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } &&
10195 { ac_try='test -z "$ac_cxx_werror_flag"
10196 || test ! -s conftest.err'
10197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10198 (eval $ac_try) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; } &&
10202 { ac_try='test -s conftest$ac_exeext'
10203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10204 (eval $ac_try) 2>&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); }; }; then
10209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10211 # Check for a 64-bit object if we didn't find anything.
10212 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; }
10215 echo "$as_me: failed program was:" >&5
10216 sed 's/^/| /' conftest.$ac_ext >&5
10219 rm -f conftest.err conftest.$ac_objext \
10220 conftest$ac_exeext conftest.$ac_ext
10221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10223 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10225 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"
10227 if test "$host_cpu" = ia64; then
10228 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10229 allow_undefined_flag_CXX="-z nodefs"
10230 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"
10232 # Determine the default libpath from the value encoded in an empty executable.
10233 cat >conftest.$ac_ext <<_ACEOF
10236 cat confdefs.h >>conftest.$ac_ext
10237 cat >>conftest.$ac_ext <<_ACEOF
10238 /* end confdefs.h. */
10248 rm -f conftest.$ac_objext conftest$ac_exeext
10249 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10250 (eval $ac_link) 2>conftest.er1
10252 grep -v '^ *+' conftest.er1 >conftest.err
10254 cat conftest.err >&5
10255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256 (exit $ac_status); } &&
10257 { ac_try='test -z "$ac_cxx_werror_flag"
10258 || test ! -s conftest.err'
10259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10260 (eval $ac_try) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); }; } &&
10264 { ac_try='test -s conftest$ac_exeext'
10265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10266 (eval $ac_try) 2>&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); }; }; then
10271 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10273 # Check for a 64-bit object if we didn't find anything.
10274 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; }
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10281 rm -f conftest.err conftest.$ac_objext \
10282 conftest$ac_exeext conftest.$ac_ext
10283 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10285 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10286 # Warning - without using the other run time loading flags,
10287 # -berok will link without error, but may produce a broken library.
10288 no_undefined_flag_CXX=' ${wl}-bernotok'
10289 allow_undefined_flag_CXX=' ${wl}-berok'
10290 # Exported symbols can be pulled into shared objects from archives
10291 whole_archive_flag_spec_CXX='$convenience'
10292 archive_cmds_need_lc_CXX=yes
10293 # This is similar to how AIX traditionally builds its shared libraries.
10294 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'
10300 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10301 allow_undefined_flag_CXX=unsupported
10302 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10303 # support --undefined. This deserves some investigation. FIXME
10304 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10311 case $cc_basename in
10313 # FIXME: insert proper C++ library support
10319 cygwin* | mingw* | pw32*)
10320 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10321 # as there is no search path for DLLs.
10322 hardcode_libdir_flag_spec_CXX='-L$libdir'
10323 allow_undefined_flag_CXX=unsupported
10324 always_export_symbols_CXX=no
10325 enable_shared_with_static_runtimes_CXX=yes
10327 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10328 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'
10329 # If the export-symbols file already is a .def file (1st line
10330 # is EXPORTS), use it as is; otherwise, prepend...
10331 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10332 cp $export_symbols $output_objdir/$soname.def;
10334 echo EXPORTS > $output_objdir/$soname.def;
10335 cat $export_symbols >> $output_objdir/$soname.def;
10337 $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'
10342 darwin* | rhapsody*)
10344 rhapsody* | darwin1.[012])
10345 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10348 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10349 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10351 case ${MACOSX_DEPLOYMENT_TARGET} in
10353 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10356 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10362 archive_cmds_need_lc_CXX=no
10363 hardcode_direct_CXX=no
10364 hardcode_automatic_CXX=yes
10365 hardcode_shlibpath_var_CXX=unsupported
10366 whole_archive_flag_spec_CXX=''
10367 link_all_deplibs_CXX=yes
10369 if test "$GXX" = yes ; then
10370 lt_int_apple_cc_single_mod=no
10371 output_verbose_link_cmd='echo'
10372 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10373 lt_int_apple_cc_single_mod=yes
10375 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10376 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10378 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'
10380 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10381 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10382 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10383 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}'
10385 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}'
10387 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}'
10389 case $cc_basename in
10391 output_verbose_link_cmd='echo'
10392 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'
10393 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10394 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10395 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}'
10396 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}'
10406 case $cc_basename in
10408 # FIXME: insert proper C++ library support
10412 # Green Hills C++ Compiler
10413 # FIXME: insert proper C++ library support
10417 # FIXME: insert proper C++ library support
10423 # C++ shared libraries reported to be fairly broken before switch to ELF
10427 archive_cmds_need_lc_CXX=no
10429 freebsd* | kfreebsd*-gnu | dragonfly*)
10430 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10437 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10438 hardcode_libdir_separator_CXX=:
10439 export_dynamic_flag_spec_CXX='${wl}-E'
10440 hardcode_direct_CXX=yes
10441 hardcode_minus_L_CXX=yes # Not in the search PATH,
10442 # but as the default
10443 # location of the library.
10445 case $cc_basename in
10447 # FIXME: insert proper C++ library support
10451 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'
10452 # Commands to make compiler produce verbose output that lists
10453 # what "hidden" libraries, object files and flags are used when
10454 # linking a shared library.
10456 # There doesn't appear to be a way to prevent this compiler from
10457 # explicitly linking system object files so we need to strip them
10458 # from the output so that they don't get included in the library
10460 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'
10463 if test "$GXX" = yes; then
10464 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'
10466 # FIXME: insert proper C++ library support
10473 if test $with_gnu_ld = no; then
10474 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10475 hardcode_libdir_separator_CXX=:
10479 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10482 export_dynamic_flag_spec_CXX='${wl}-E'
10488 hardcode_direct_CXX=no
10489 hardcode_shlibpath_var_CXX=no
10492 hardcode_direct_CXX=yes
10493 hardcode_minus_L_CXX=yes # Not in the search PATH,
10494 # but as the default
10495 # location of the library.
10499 case $cc_basename in
10501 # FIXME: insert proper C++ library support
10507 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10510 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10513 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10516 # Commands to make compiler produce verbose output that lists
10517 # what "hidden" libraries, object files and flags are used when
10518 # linking a shared library.
10520 # There doesn't appear to be a way to prevent this compiler from
10521 # explicitly linking system object files so we need to strip them
10522 # from the output so that they don't get included in the library
10524 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'
10527 if test "$GXX" = yes; then
10528 if test $with_gnu_ld = no; then
10531 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10534 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10537 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'
10542 # FIXME: insert proper C++ library support
10549 hardcode_direct_CXX=no
10550 hardcode_shlibpath_var_CXX=no
10551 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10552 export_dynamic_flag_spec_CXX='${wl}-E'
10553 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10554 # Instead, shared libraries are loaded at an image base (0x10000000 by
10555 # default) and relocated if they conflict, which is a slow very memory
10556 # consuming and fragmenting process. To avoid this, we pick a random,
10557 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10558 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10559 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'
10560 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'
10563 case $cc_basename in
10566 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'
10568 # Archives containing C++ object files must be created using
10569 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10570 # necessary to make sure instantiated templates are included
10572 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10575 if test "$GXX" = yes; then
10576 if test "$with_gnu_ld" = no; then
10577 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'
10579 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'
10582 link_all_deplibs_CXX=yes
10585 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10586 hardcode_libdir_separator_CXX=:
10589 case $cc_basename in
10591 # Kuck and Associates, Inc. (KAI) C++ Compiler
10593 # KCC will only create a shared library if the output file
10594 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10595 # to its proper name (with version) after linking.
10596 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'
10597 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'
10598 # Commands to make compiler produce verbose output that lists
10599 # what "hidden" libraries, object files and flags are used when
10600 # linking a shared library.
10602 # There doesn't appear to be a way to prevent this compiler from
10603 # explicitly linking system object files so we need to strip them
10604 # from the output so that they don't get included in the library
10606 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'
10608 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10609 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10611 # Archives containing C++ object files must be created using
10612 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10613 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10618 # version 8.0 and above of icpc choke on multiply defined symbols
10619 # if we add $predep_objects and $postdep_objects, however 7.1 and
10620 # earlier do not add the objects themselves.
10621 case `$CC -V 2>&1` in
10623 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10624 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'
10626 *) # Version 8.0 or newer
10629 ia64*) tmp_idyn=' -i_dynamic';;
10631 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10632 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'
10635 archive_cmds_need_lc_CXX=no
10636 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10637 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10638 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10641 # Portland Group C++ compiler
10642 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10643 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'
10645 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10646 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10647 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'
10651 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10652 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'
10654 runpath_var=LD_RUN_PATH
10655 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10656 hardcode_libdir_separator_CXX=:
10658 # Commands to make compiler produce verbose output that lists
10659 # what "hidden" libraries, object files and flags are used when
10660 # linking a shared library.
10662 # There doesn't appear to be a way to prevent this compiler from
10663 # explicitly linking system object files so we need to strip them
10664 # from the output so that they don't get included in the library
10666 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'
10671 # FIXME: insert proper C++ library support
10675 # FIXME: insert proper C++ library support
10679 case $cc_basename in
10681 # FIXME: insert proper C++ library support
10685 # FIXME: insert proper C++ library support
10691 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10692 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10694 hardcode_libdir_flag_spec_CXX='-R$libdir'
10695 hardcode_direct_CXX=yes
10696 hardcode_shlibpath_var_CXX=no
10698 # Workaround some broken pre-1.5 toolchains
10699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10702 # C++ shared libraries are fairly broken
10706 hardcode_direct_CXX=yes
10707 hardcode_shlibpath_var_CXX=no
10708 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10709 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10710 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10711 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10712 export_dynamic_flag_spec_CXX='${wl}-E'
10713 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10715 output_verbose_link_cmd='echo'
10718 case $cc_basename in
10720 # Kuck and Associates, Inc. (KAI) C++ Compiler
10722 # KCC will only create a shared library if the output file
10723 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10724 # to its proper name (with version) after linking.
10725 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'
10727 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10728 hardcode_libdir_separator_CXX=:
10730 # Archives containing C++ object files must be created using
10731 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10732 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10736 # Rational C++ 2.4.1
10737 # FIXME: insert proper C++ library support
10741 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10742 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'
10744 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10745 hardcode_libdir_separator_CXX=:
10747 # Commands to make compiler produce verbose output that lists
10748 # what "hidden" libraries, object files and flags are used when
10749 # linking a shared library.
10751 # There doesn't appear to be a way to prevent this compiler from
10752 # explicitly linking system object files so we need to strip them
10753 # from the output so that they don't get included in the library
10755 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'
10758 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10759 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10760 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'
10762 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10763 hardcode_libdir_separator_CXX=:
10765 # Commands to make compiler produce verbose output that lists
10766 # what "hidden" libraries, object files and flags are used when
10767 # linking a shared library.
10768 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10771 # FIXME: insert proper C++ library support
10778 case $cc_basename in
10780 # Kuck and Associates, Inc. (KAI) C++ Compiler
10782 # KCC will only create a shared library if the output file
10783 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10784 # to its proper name (with version) after linking.
10785 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'
10787 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10788 hardcode_libdir_separator_CXX=:
10790 # Archives containing C++ object files must be created using
10791 # the KAI C++ compiler.
10792 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10795 # Rational C++ 2.4.1
10796 # FIXME: insert proper C++ library support
10800 allow_undefined_flag_CXX=' -expect_unresolved \*'
10801 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'
10802 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10803 echo "-hidden">> $lib.exp~
10804 $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~
10807 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10808 hardcode_libdir_separator_CXX=:
10810 # Commands to make compiler produce verbose output that lists
10811 # what "hidden" libraries, object files and flags are used when
10812 # linking a shared library.
10814 # There doesn't appear to be a way to prevent this compiler from
10815 # explicitly linking system object files so we need to strip them
10816 # from the output so that they don't get included in the library
10818 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'
10821 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10822 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10823 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'
10825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10826 hardcode_libdir_separator_CXX=:
10828 # Commands to make compiler produce verbose output that lists
10829 # what "hidden" libraries, object files and flags are used when
10830 # linking a shared library.
10831 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10834 # FIXME: insert proper C++ library support
10841 # FIXME: insert proper C++ library support
10845 case $cc_basename in
10848 # FIXME: insert proper C++ library support
10853 # FIXME: insert proper C++ library support
10857 # FIXME: insert proper C++ library support
10863 case $cc_basename in
10865 # Sun C++ 4.2, 5.x and Centerline C++
10866 archive_cmds_need_lc_CXX=yes
10867 no_undefined_flag_CXX=' -zdefs'
10868 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10869 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10870 $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'
10872 hardcode_libdir_flag_spec_CXX='-R$libdir'
10873 hardcode_shlibpath_var_CXX=no
10875 solaris2.[0-5] | solaris2.[0-5].*) ;;
10877 # The C++ compiler is used as linker so we must use $wl
10878 # flag to pass the commands to the underlying system
10879 # linker. We must also pass each convience library through
10880 # to the system linker between allextract/defaultextract.
10881 # The C++ compiler will combine linker options so we
10882 # cannot just pass the convience library names through
10884 # Supported since Solaris 2.6 (maybe 2.5.1?)
10885 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'
10888 link_all_deplibs_CXX=yes
10890 output_verbose_link_cmd='echo'
10892 # Archives containing C++ object files must be created using
10893 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10894 # necessary to make sure instantiated templates are included
10896 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10899 # Green Hills C++ Compiler
10900 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10902 # The C++ compiler must be used to create the archive.
10903 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10906 # GNU C++ compiler with Solaris linker
10907 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10908 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10909 if $CC --version | grep -v '^2\.7' > /dev/null; then
10910 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10911 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10912 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10914 # Commands to make compiler produce verbose output that lists
10915 # what "hidden" libraries, object files and flags are used when
10916 # linking a shared library.
10917 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10919 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10921 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10922 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10923 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10925 # Commands to make compiler produce verbose output that lists
10926 # what "hidden" libraries, object files and flags are used when
10927 # linking a shared library.
10928 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10931 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10936 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10937 no_undefined_flag_CXX='${wl}-z,text'
10938 archive_cmds_need_lc_CXX=no
10939 hardcode_shlibpath_var_CXX=no
10940 runpath_var='LD_RUN_PATH'
10942 case $cc_basename in
10944 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10945 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10949 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 sysv5* | sco3.2v5* | sco5v6*)
10954 # Note: We can NOT use -z defs as we might desire, because we do not
10955 # link with -lc, and that would cause any symbols used from libc to
10956 # always be unresolved, which means just about no library would
10957 # ever link correctly. If we're not using GNU ld we use -z text
10958 # though, which does catch some bad symbols but isn't as heavy-handed
10960 # For security reasons, it is highly recommended that you always
10961 # use absolute paths for naming shared libraries, and exclude the
10962 # DT_RUNPATH tag from executables and libraries. But doing so
10963 # requires that you compile everything twice, which is a pain.
10964 # So that behaviour is only enabled if SCOABSPATH is set to a
10965 # non-empty value in the environment. Most likely only useful for
10966 # creating official distributions of packages.
10967 # This is a hack until libtool officially supports absolute path
10968 # names for shared libraries.
10969 no_undefined_flag_CXX='${wl}-z,text'
10970 allow_undefined_flag_CXX='${wl}-z,nodefs'
10971 archive_cmds_need_lc_CXX=no
10972 hardcode_shlibpath_var_CXX=no
10973 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
10974 hardcode_libdir_separator_CXX=':'
10975 link_all_deplibs_CXX=yes
10976 export_dynamic_flag_spec_CXX='${wl}-Bexport'
10977 runpath_var='LD_RUN_PATH'
10979 case $cc_basename in
10981 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10982 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10985 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10986 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
10991 case $cc_basename in
10993 # NonStop-UX NCC 3.20
10994 # FIXME: insert proper C++ library support
10998 # FIXME: insert proper C++ library support
11004 # FIXME: insert proper C++ library support
11008 # FIXME: insert proper C++ library support
11012 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11013 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11014 test "$ld_shlibs_CXX" = no && can_build_shared=no
11020 ## There is no encapsulation within the following macros, do not change
11021 ## the running order or otherwise move them around unless you know exactly
11022 ## what you are doing...
11024 cat > conftest.$ac_ext <<EOF
11028 Foo (void) { a = 0; }
11034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11035 (eval $ac_compile) 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; then
11039 # Parse the compiler output and extract the necessary
11040 # objects, libraries and library flags.
11042 # Sentinel used to keep track of whether or not we are before
11043 # the conftest object file.
11044 pre_test_object_deps_done=no
11046 # The `*' in the case matches for architectures that use `case' in
11047 # $output_verbose_cmd can trigger glob expansion during the loop
11048 # eval without this substitution.
11049 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11051 for p in `eval $output_verbose_link_cmd`; do
11055 # Some compilers place space between "-{L,R}" and the path.
11056 # Remove the space.
11057 if test $p = "-L" \
11058 || test $p = "-R"; then
11065 if test "$pre_test_object_deps_done" = no; then
11068 # Internal compiler library paths should come after those
11069 # provided the user. The postdeps already come after the
11070 # user supplied libs so there is no need to process them.
11071 if test -z "$compiler_lib_search_path_CXX"; then
11072 compiler_lib_search_path_CXX="${prev}${p}"
11074 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11077 # The "-l" case would never come before the object being
11078 # linked, so don't bother handling this case.
11081 if test -z "$postdeps_CXX"; then
11082 postdeps_CXX="${prev}${p}"
11084 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11090 # This assumes that the test object file only shows up
11091 # once in the compiler output.
11092 if test "$p" = "conftest.$objext"; then
11093 pre_test_object_deps_done=yes
11097 if test "$pre_test_object_deps_done" = no; then
11098 if test -z "$predep_objects_CXX"; then
11099 predep_objects_CXX="$p"
11101 predep_objects_CXX="$predep_objects_CXX $p"
11104 if test -z "$postdep_objects_CXX"; then
11105 postdep_objects_CXX="$p"
11107 postdep_objects_CXX="$postdep_objects_CXX $p"
11112 *) ;; # Ignore the rest.
11120 echo "libtool.m4: error: problem compiling CXX test program"
11123 $rm -f confest.$objext
11125 # PORTME: override above test on systems where it is broken
11128 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11129 # hack all around it, let's just trust "g++" to DTRT.
11130 predep_objects_CXX=
11131 postdep_objects_CXX=
11136 case $cc_basename in
11138 # Adding this requires a known-good setup of shared libraries for
11139 # Sun compiler versions before 5.6, else PIC objects from an old
11140 # archive will be linked into the output, leading to subtle bugs.
11141 postdeps_CXX='-lCstd -lCrun'
11148 case " $postdeps_CXX " in
11149 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11152 lt_prog_compiler_wl_CXX=
11153 lt_prog_compiler_pic_CXX=
11154 lt_prog_compiler_static_CXX=
11156 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11157 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11159 # C++ specific cases for pic, static, wl, etc.
11160 if test "$GXX" = yes; then
11161 lt_prog_compiler_wl_CXX='-Wl,'
11162 lt_prog_compiler_static_CXX='-static'
11166 # All AIX code is PIC.
11167 if test "$host_cpu" = ia64; then
11168 # AIX 5 now supports IA64 processor
11169 lt_prog_compiler_static_CXX='-Bstatic'
11173 # FIXME: we need at least 68020 code to build shared libraries, but
11174 # adding the `-m68020' flag to GCC prevents building anything better,
11176 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11178 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11179 # PIC is the default for these OSes.
11181 mingw* | os2* | pw32*)
11182 # This hack is so that the source file can tell whether it is being
11183 # built for inclusion in a dll (and should export symbols for example).
11184 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11186 darwin* | rhapsody*)
11187 # PIC is the default on this platform
11188 # Common symbols not allowed in MH_DYLIB files
11189 lt_prog_compiler_pic_CXX='-fno-common'
11192 # DJGPP does not support shared libraries at all
11193 lt_prog_compiler_pic_CXX=
11196 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11197 # Instead, we relocate shared libraries at runtime.
11200 if test -d /usr/nec; then
11201 lt_prog_compiler_pic_CXX=-Kconform_pic
11205 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11206 # not for PA HP-UX.
11211 lt_prog_compiler_pic_CXX='-fPIC'
11216 lt_prog_compiler_pic_CXX='-fPIC'
11222 # All AIX code is PIC.
11223 if test "$host_cpu" = ia64; then
11224 # AIX 5 now supports IA64 processor
11225 lt_prog_compiler_static_CXX='-Bstatic'
11227 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11231 case $cc_basename in
11233 # Green Hills C++ Compiler
11234 # _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"
11239 # PIC is the default on this platform
11240 # Common symbols not allowed in MH_DYLIB files
11241 case $cc_basename in
11243 lt_prog_compiler_pic_CXX='-qnocommon'
11244 lt_prog_compiler_wl_CXX='-Wl,'
11249 case $cc_basename in
11251 lt_prog_compiler_pic_CXX='-KPIC'
11254 # Green Hills C++ Compiler
11255 lt_prog_compiler_pic_CXX='-pic'
11261 freebsd* | kfreebsd*-gnu | dragonfly*)
11262 # FreeBSD uses GNU C++
11264 hpux9* | hpux10* | hpux11*)
11265 case $cc_basename in
11267 lt_prog_compiler_wl_CXX='-Wl,'
11268 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11269 if test "$host_cpu" != ia64; then
11270 lt_prog_compiler_pic_CXX='+Z'
11274 lt_prog_compiler_wl_CXX='-Wl,'
11275 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11281 lt_prog_compiler_pic_CXX='+Z'
11290 # This is c89, which is MS Visual C++ (no shared libs)
11291 # Anyone wants to do a port?
11293 irix5* | irix6* | nonstopux*)
11294 case $cc_basename in
11296 lt_prog_compiler_wl_CXX='-Wl,'
11297 lt_prog_compiler_static_CXX='-non_shared'
11298 # CC pic flag -KPIC is the default.
11305 case $cc_basename in
11308 lt_prog_compiler_wl_CXX='--backend -Wl,'
11309 lt_prog_compiler_pic_CXX='-fPIC'
11313 lt_prog_compiler_wl_CXX='-Wl,'
11314 lt_prog_compiler_pic_CXX='-KPIC'
11315 lt_prog_compiler_static_CXX='-static'
11318 # Portland Group C++ compiler.
11319 lt_prog_compiler_wl_CXX='-Wl,'
11320 lt_prog_compiler_pic_CXX='-fpic'
11321 lt_prog_compiler_static_CXX='-Bstatic'
11325 # Make sure the PIC flag is empty. It appears that all Alpha
11326 # Linux and Compaq Tru64 Unix objects are PIC.
11327 lt_prog_compiler_pic_CXX=
11328 lt_prog_compiler_static_CXX='-non_shared'
11339 case $cc_basename in
11341 lt_prog_compiler_pic_CXX='-W c,exportall'
11349 osf3* | osf4* | osf5*)
11350 case $cc_basename in
11352 lt_prog_compiler_wl_CXX='--backend -Wl,'
11355 # Rational C++ 2.4.1
11356 lt_prog_compiler_pic_CXX='-pic'
11359 # Digital/Compaq C++
11360 lt_prog_compiler_wl_CXX='-Wl,'
11361 # Make sure the PIC flag is empty. It appears that all Alpha
11362 # Linux and Compaq Tru64 Unix objects are PIC.
11363 lt_prog_compiler_pic_CXX=
11364 lt_prog_compiler_static_CXX='-non_shared'
11373 case $cc_basename in
11375 # Sun C++ 4.2, 5.x and Centerline C++
11376 lt_prog_compiler_pic_CXX='-KPIC'
11377 lt_prog_compiler_static_CXX='-Bstatic'
11378 lt_prog_compiler_wl_CXX='-Qoption ld '
11381 # Green Hills C++ Compiler
11382 lt_prog_compiler_pic_CXX='-PIC'
11389 case $cc_basename in
11392 lt_prog_compiler_pic_CXX='-pic'
11393 lt_prog_compiler_static_CXX='-Bstatic'
11397 lt_prog_compiler_pic_CXX='-pic'
11404 case $cc_basename in
11406 # NonStop-UX NCC 3.20
11407 lt_prog_compiler_pic_CXX='-KPIC'
11413 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11414 case $cc_basename in
11416 lt_prog_compiler_wl_CXX='-Wl,'
11417 lt_prog_compiler_pic_CXX='-KPIC'
11418 lt_prog_compiler_static_CXX='-Bstatic'
11425 lt_prog_compiler_can_build_shared_CXX=no
11430 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11431 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11434 # Check to make sure the PIC flag actually works.
11436 if test -n "$lt_prog_compiler_pic_CXX"; then
11438 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11439 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11440 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11441 echo $ECHO_N "(cached) $ECHO_C" >&6
11443 lt_prog_compiler_pic_works_CXX=no
11444 ac_outfile=conftest.$ac_objext
11445 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11446 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11447 # Insert the option either (1) after the last *FLAGS variable, or
11448 # (2) before a word containing "conftest.", or (3) at the end.
11449 # Note that $ac_compile itself does not contain backslashes and begins
11450 # with a dollar sign (not a hyphen), so the echo should work correctly.
11451 # The option is referenced via a variable to avoid confusing sed.
11452 lt_compile=`echo "$ac_compile" | $SED \
11453 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11454 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11455 -e 's:$: $lt_compiler_flag:'`
11456 (eval echo "\"\$as_me:11456: $lt_compile\"" >&5)
11457 (eval "$lt_compile" 2>conftest.err)
11459 cat conftest.err >&5
11460 echo "$as_me:11460: \$? = $ac_status" >&5
11461 if (exit $ac_status) && test -s "$ac_outfile"; then
11462 # The compiler can only warn and ignore the option if not recognized
11463 # So say no if there are warnings other than the usual output.
11464 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11465 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11466 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11467 lt_prog_compiler_pic_works_CXX=yes
11473 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11474 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11476 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11477 case $lt_prog_compiler_pic_CXX in
11479 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11482 lt_prog_compiler_pic_CXX=
11483 lt_prog_compiler_can_build_shared_CXX=no
11488 # For platforms which do not support PIC, -DPIC is meaningless:
11490 lt_prog_compiler_pic_CXX=
11493 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11498 # Check to make sure the static flag actually works.
11500 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11501 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11502 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11503 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 lt_prog_compiler_static_works_CXX=no
11507 save_LDFLAGS="$LDFLAGS"
11508 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11509 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11510 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11511 # The linker can only warn and ignore the option if not recognized
11512 # So say no if there are warnings
11513 if test -s conftest.err; then
11514 # Append any errors to the config.log.
11515 cat conftest.err 1>&5
11516 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11517 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11518 if diff conftest.exp conftest.er2 >/dev/null; then
11519 lt_prog_compiler_static_works_CXX=yes
11522 lt_prog_compiler_static_works_CXX=yes
11526 LDFLAGS="$save_LDFLAGS"
11529 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11530 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11532 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11535 lt_prog_compiler_static_CXX=
11539 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11540 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11541 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11542 echo $ECHO_N "(cached) $ECHO_C" >&6
11544 lt_cv_prog_compiler_c_o_CXX=no
11545 $rm -r conftest 2>/dev/null
11549 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11551 lt_compiler_flag="-o out/conftest2.$ac_objext"
11552 # Insert the option either (1) after the last *FLAGS variable, or
11553 # (2) before a word containing "conftest.", or (3) at the end.
11554 # Note that $ac_compile itself does not contain backslashes and begins
11555 # with a dollar sign (not a hyphen), so the echo should work correctly.
11556 lt_compile=`echo "$ac_compile" | $SED \
11557 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11558 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11559 -e 's:$: $lt_compiler_flag:'`
11560 (eval echo "\"\$as_me:11560: $lt_compile\"" >&5)
11561 (eval "$lt_compile" 2>out/conftest.err)
11563 cat out/conftest.err >&5
11564 echo "$as_me:11564: \$? = $ac_status" >&5
11565 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11567 # The compiler can only warn and ignore the option if not recognized
11568 # So say no if there are warnings
11569 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11570 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11571 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11572 lt_cv_prog_compiler_c_o_CXX=yes
11577 # SGI C++ compiler will create directory out/ii_files/ for
11578 # template instantiation
11579 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11580 $rm out/* && rmdir out
11586 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11587 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11590 hard_links="nottested"
11591 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11592 # do not overwrite the value of need_locks provided by the user
11593 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11594 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11597 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11599 ln conftest.a conftest.b 2>&5 || hard_links=no
11600 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11601 echo "$as_me:$LINENO: result: $hard_links" >&5
11602 echo "${ECHO_T}$hard_links" >&6
11603 if test "$hard_links" = no; then
11604 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11605 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11612 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11613 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11615 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11618 # If we're using GNU nm, then we don't want the "-C" option.
11619 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11620 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11621 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'
11623 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'
11627 export_symbols_cmds_CXX="$ltdll_cmds"
11630 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'
11633 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11637 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11638 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11639 test "$ld_shlibs_CXX" = no && can_build_shared=no
11642 # Do we need to explicitly link libc?
11644 case "x$archive_cmds_need_lc_CXX" in
11646 # Assume -lc should be added
11647 archive_cmds_need_lc_CXX=yes
11649 if test "$enable_shared" = yes && test "$GCC" = yes; then
11650 case $archive_cmds_CXX in
11652 # FIXME: we may have to deal with multi-command sequences.
11655 # Test whether the compiler implicitly links with -lc since on some
11656 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11657 # to ld, don't add -lc before -lgcc.
11658 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11659 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11661 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11664 (eval $ac_compile) 2>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } 2>conftest.err; then
11670 libobjs=conftest.$ac_objext
11672 wl=$lt_prog_compiler_wl_CXX
11673 pic_flag=$lt_prog_compiler_pic_CXX
11679 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11680 allow_undefined_flag_CXX=
11681 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11682 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11685 (exit $ac_status); }
11687 archive_cmds_need_lc_CXX=no
11689 archive_cmds_need_lc_CXX=yes
11691 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11693 cat conftest.err 1>&5
11696 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11697 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11704 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11705 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11706 library_names_spec=
11707 libname_spec='lib$name'
11711 postuninstall_cmds=
11715 shlibpath_overrides_runpath=unknown
11717 dynamic_linker="$host_os ld.so"
11718 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11719 if test "$GCC" = yes; then
11720 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11721 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11722 # if the path contains ";" then we assume it to be the separator
11723 # otherwise default to the standard path separator (i.e. ":") - it is
11724 # assumed that no part of a normal pathname contains ";" but that should
11725 # okay in the real world where ";" in dirpaths is itself problematic.
11726 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11728 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11731 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11733 need_lib_prefix=unknown
11734 hardcode_into_libs=no
11736 # when you set need_version to no, make sure it does not cause -set_version
11737 # flags to be left without arguments
11738 need_version=unknown
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11744 shlibpath_var=LIBPATH
11746 # AIX 3 has no versioning support, so we append a major version to the name.
11747 soname_spec='${libname}${release}${shared_ext}$major'
11754 hardcode_into_libs=yes
11755 if test "$host_cpu" = ia64; then
11756 # AIX 5 supports IA64
11757 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11758 shlibpath_var=LD_LIBRARY_PATH
11760 # With GCC up to 2.95.x, collect2 would create an import file
11761 # for dependence libraries. The import file would start with
11762 # the line `#! .'. This would cause the generated library to
11763 # depend on `.', always an invalid library. This was fixed in
11764 # development snapshots of GCC prior to 3.0.
11766 aix4 | aix4.[01] | aix4.[01].*)
11767 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11769 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11772 can_build_shared=no
11776 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11777 # soname into executable. Probably we can add versioning support to
11778 # collect2, so additional links can be useful in future.
11779 if test "$aix_use_runtimelinking" = yes; then
11780 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11781 # instead of lib<name>.a to let people know that these are not
11782 # typical AIX shared libraries.
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11785 # We preserve .a as extension for shared libraries through AIX4.2
11786 # and later when we are not doing run time linking.
11787 library_names_spec='${libname}${release}.a $libname.a'
11788 soname_spec='${libname}${release}${shared_ext}$major'
11790 shlibpath_var=LIBPATH
11795 library_names_spec='$libname.ixlibrary $libname.a'
11796 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11797 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'
11801 library_names_spec='${libname}${shared_ext}'
11802 dynamic_linker="$host_os ld.so"
11803 shlibpath_var=LIBRARY_PATH
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11812 shlibpath_var=LD_LIBRARY_PATH
11813 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11814 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11815 # the default ld.so.conf also contains /usr/contrib/lib and
11816 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11817 # libtool to hard-code these into programs
11820 cygwin* | mingw* | pw32*)
11821 version_type=windows
11826 case $GCC,$host_os in
11827 yes,cygwin* | yes,mingw* | yes,pw32*)
11828 library_names_spec='$libname.dll.a'
11829 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11830 postinstall_cmds='base_file=`basename \${file}`~
11831 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11832 dldir=$destdir/`dirname \$dlpath`~
11833 test -d \$dldir || mkdir -p \$dldir~
11834 $install_prog $dir/$dlname \$dldir/$dlname~
11835 chmod a+x \$dldir/$dlname'
11836 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11837 dlpath=$dir/\$dldll~
11839 shlibpath_overrides_runpath=yes
11843 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11844 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11845 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11848 # MinGW DLLs use traditional 'lib' prefix
11849 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11850 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11851 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11852 # It is most probably a Windows format PATH printed by
11853 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11854 # path with ; separators, and with drive letters. We can handle the
11855 # drive letters (cygwin fileutils understands them), so leave them,
11856 # especially as we might pass files found there to a mingw objdump,
11857 # which wouldn't understand a cygwinified path. Ahh.
11858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11864 # pw32 DLLs use 'pw' prefix rather than 'lib'
11865 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11871 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11874 dynamic_linker='Win32 ld.exe'
11875 # FIXME: first we should search . and the directory the executable is in
11879 darwin* | rhapsody*)
11880 dynamic_linker="$host_os dyld"
11881 version_type=darwin
11884 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11885 soname_spec='${libname}${release}${major}$shared_ext'
11886 shlibpath_overrides_runpath=yes
11887 shlibpath_var=DYLD_LIBRARY_PATH
11888 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11889 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11890 if test "$GCC" = yes; then
11891 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"`
11893 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11895 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11903 soname_spec='${libname}${release}${shared_ext}$major'
11904 shlibpath_var=LD_LIBRARY_PATH
11915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11916 soname_spec='${libname}${release}${shared_ext}$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 shlibpath_overrides_runpath=no
11919 hardcode_into_libs=yes
11920 dynamic_linker='GNU ld.so'
11923 freebsd* | dragonfly*)
11924 # DragonFly does not have aout. When/if they implement a new
11925 # versioning mechanism, adjust this.
11926 if test -x /usr/bin/objformat; then
11927 objformat=`/usr/bin/objformat`
11930 freebsd[123]*) objformat=aout ;;
11931 *) objformat=elf ;;
11934 version_type=freebsd-$objformat
11935 case $version_type in
11937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11942 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11946 shlibpath_var=LD_LIBRARY_PATH
11949 shlibpath_overrides_runpath=yes
11951 freebsd3.[01]* | freebsdelf3.[01]*)
11952 shlibpath_overrides_runpath=yes
11953 hardcode_into_libs=yes
11955 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11956 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11957 shlibpath_overrides_runpath=no
11958 hardcode_into_libs=yes
11960 freebsd*) # from 4.6 on
11961 shlibpath_overrides_runpath=yes
11962 hardcode_into_libs=yes
11971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11972 soname_spec='${libname}${release}${shared_ext}$major'
11973 shlibpath_var=LD_LIBRARY_PATH
11974 hardcode_into_libs=yes
11977 hpux9* | hpux10* | hpux11*)
11978 # Give a soname corresponding to the major version so that dld.sl refuses to
11979 # link against other versions.
11986 hardcode_into_libs=yes
11987 dynamic_linker="$host_os dld.so"
11988 shlibpath_var=LD_LIBRARY_PATH
11989 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11991 soname_spec='${libname}${release}${shared_ext}$major'
11992 if test "X$HPUX_IA64_MODE" = X32; then
11993 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11995 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11997 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12001 hardcode_into_libs=yes
12002 dynamic_linker="$host_os dld.sl"
12003 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12004 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12006 soname_spec='${libname}${release}${shared_ext}$major'
12007 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12008 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12012 dynamic_linker="$host_os dld.sl"
12013 shlibpath_var=SHLIB_PATH
12014 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12016 soname_spec='${libname}${release}${shared_ext}$major'
12019 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12020 postinstall_cmds='chmod 555 $lib'
12027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12028 soname_spec='${libname}${release}${shared_ext}$major'
12029 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12030 shlibpath_var=LD_LIBRARY_PATH
12031 shlibpath_overrides_runpath=no
12032 hardcode_into_libs=yes
12035 irix5* | irix6* | nonstopux*)
12037 nonstopux*) version_type=nonstopux ;;
12039 if test "$lt_cv_prog_gnu_ld" = yes; then
12047 soname_spec='${libname}${release}${shared_ext}$major'
12048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12050 irix5* | nonstopux*)
12051 libsuff= shlibsuff=
12054 case $LD in # libtool.m4 will add one of these switches to LD
12055 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12056 libsuff= shlibsuff= libmagic=32-bit;;
12057 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12058 libsuff=32 shlibsuff=N32 libmagic=N32;;
12059 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12060 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12061 *) libsuff= shlibsuff= libmagic=never-match;;
12065 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12066 shlibpath_overrides_runpath=no
12067 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12068 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12069 hardcode_into_libs=yes
12072 # No shared lib support for Linux oldld, aout, or coff.
12073 linux*oldld* | linux*aout* | linux*coff*)
12077 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12085 shlibpath_var=LD_LIBRARY_PATH
12086 shlibpath_overrides_runpath=no
12087 # This implies no fast_install, which is unacceptable.
12088 # Some rework will be needed to allow for fast_install
12089 # before this can be enabled.
12090 hardcode_into_libs=yes
12092 # Append ld.so.conf contents to the search path
12093 if test -f /etc/ld.so.conf; then
12094 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' ' '`
12095 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12098 # We used to test for /lib/ld.so.1 and disable shared libraries on
12099 # powerpc, because MkLinux only supported shared libraries with the
12100 # GNU dynamic linker. Since this was broken with cross compilers,
12101 # most powerpc-linux boxes support dynamic linking these days and
12102 # people can always --disable-shared, the test was removed, and we
12103 # assume the GNU/Linux dynamic linker is in use.
12104 dynamic_linker='GNU/Linux ld.so'
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 shlibpath_overrides_runpath=no
12115 hardcode_into_libs=yes
12116 dynamic_linker='GNU ld.so'
12123 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12125 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12126 dynamic_linker='NetBSD (a.out) ld.so'
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12129 soname_spec='${libname}${release}${shared_ext}$major'
12130 dynamic_linker='NetBSD ld.elf_so'
12132 shlibpath_var=LD_LIBRARY_PATH
12133 shlibpath_overrides_runpath=yes
12134 hardcode_into_libs=yes
12139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 shlibpath_overrides_runpath=yes
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12149 soname_spec='${libname}${release}${shared_ext}$major'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 shlibpath_overrides_runpath=yes
12156 sys_lib_dlsearch_path_spec="/usr/lib"
12158 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12160 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12161 *) need_version=no ;;
12163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12164 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12168 openbsd2.[89] | openbsd2.[89].*)
12169 shlibpath_overrides_runpath=no
12172 shlibpath_overrides_runpath=yes
12176 shlibpath_overrides_runpath=yes
12181 libname_spec='$name'
12184 library_names_spec='$libname${shared_ext} $libname.a'
12185 dynamic_linker='OS/2 ld.exe'
12186 shlibpath_var=LIBPATH
12189 osf3* | osf4* | osf5*)
12193 soname_spec='${libname}${release}${shared_ext}$major'
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12195 shlibpath_var=LD_LIBRARY_PATH
12196 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12197 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12205 soname_spec='${libname}${release}${shared_ext}$major'
12206 shlibpath_var=LD_LIBRARY_PATH
12207 shlibpath_overrides_runpath=yes
12208 hardcode_into_libs=yes
12209 # ldd complains unless libraries are executable
12210 postinstall_cmds='chmod +x $lib'
12215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12216 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12217 shlibpath_var=LD_LIBRARY_PATH
12218 shlibpath_overrides_runpath=yes
12219 if test "$with_gnu_ld" = yes; then
12227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12228 soname_spec='${libname}${release}${shared_ext}$major'
12229 shlibpath_var=LD_LIBRARY_PATH
12230 case $host_vendor in
12232 shlibpath_overrides_runpath=no
12234 export_dynamic_flag_spec='${wl}-Blargedynsym'
12235 runpath_var=LD_RUN_PATH
12243 shlibpath_overrides_runpath=no
12244 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12250 if test -d /usr/nec ;then
12252 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12253 soname_spec='$libname${shared_ext}.$major'
12254 shlibpath_var=LD_LIBRARY_PATH
12258 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12259 version_type=freebsd-elf
12262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12263 soname_spec='${libname}${release}${shared_ext}$major'
12264 shlibpath_var=LD_LIBRARY_PATH
12265 hardcode_into_libs=yes
12266 if test "$with_gnu_ld" = yes; then
12267 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12268 shlibpath_overrides_runpath=no
12270 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12271 shlibpath_overrides_runpath=yes
12274 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12278 sys_lib_dlsearch_path_spec='/usr/lib'
12283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12284 soname_spec='${libname}${release}${shared_ext}$major'
12285 shlibpath_var=LD_LIBRARY_PATH
12292 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12293 echo "${ECHO_T}$dynamic_linker" >&6
12294 test "$dynamic_linker" = no && can_build_shared=no
12296 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12297 if test "$GCC" = yes; then
12298 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12301 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12302 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12303 hardcode_action_CXX=
12304 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12305 test -n "$runpath_var_CXX" || \
12306 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12308 # We can hardcode non-existant directories.
12309 if test "$hardcode_direct_CXX" != no &&
12310 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12311 # have to relink, otherwise we might link with an installed library
12312 # when we should be linking with a yet-to-be-installed one
12313 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12314 test "$hardcode_minus_L_CXX" != no; then
12315 # Linking always hardcodes the temporary library directory.
12316 hardcode_action_CXX=relink
12318 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12319 hardcode_action_CXX=immediate
12322 # We cannot hardcode anything, or else we can only hardcode existing
12324 hardcode_action_CXX=unsupported
12326 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12327 echo "${ECHO_T}$hardcode_action_CXX" >&6
12329 if test "$hardcode_action_CXX" = relink; then
12330 # Fast installation is not supported
12331 enable_fast_install=no
12332 elif test "$shlibpath_overrides_runpath" = yes ||
12333 test "$enable_shared" = no; then
12334 # Fast installation is not necessary
12335 enable_fast_install=needless
12339 # The else clause should only fire when bootstrapping the
12340 # libtool distribution, otherwise you forgot to ship ltmain.sh
12341 # with your package, and you will get complaints that there are
12342 # no rules to generate ltmain.sh.
12343 if test -f "$ltmain"; then
12344 # See if we are running on zsh, and set the options which allow our commands through
12345 # without removal of \ escapes.
12346 if test -n "${ZSH_VERSION+set}" ; then
12347 setopt NO_GLOB_SUBST
12349 # Now quote all the things that may contain metacharacters while being
12350 # careful not to overquote the AC_SUBSTed values. We take copies of the
12351 # variables and quote the copies for generation of the libtool script.
12352 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12354 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12355 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12356 deplibs_check_method reload_flag reload_cmds need_locks \
12357 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12358 lt_cv_sys_global_symbol_to_c_name_address \
12359 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12360 old_postinstall_cmds old_postuninstall_cmds \
12364 lt_prog_compiler_wl_CXX \
12365 lt_prog_compiler_pic_CXX \
12366 lt_prog_compiler_static_CXX \
12367 lt_prog_compiler_no_builtin_flag_CXX \
12368 export_dynamic_flag_spec_CXX \
12369 thread_safe_flag_spec_CXX \
12370 whole_archive_flag_spec_CXX \
12371 enable_shared_with_static_runtimes_CXX \
12372 old_archive_cmds_CXX \
12373 old_archive_from_new_cmds_CXX \
12374 predep_objects_CXX \
12375 postdep_objects_CXX \
12378 compiler_lib_search_path_CXX \
12380 archive_expsym_cmds_CXX \
12381 postinstall_cmds_CXX \
12382 postuninstall_cmds_CXX \
12383 old_archive_from_expsyms_cmds_CXX \
12384 allow_undefined_flag_CXX \
12385 no_undefined_flag_CXX \
12386 export_symbols_cmds_CXX \
12387 hardcode_libdir_flag_spec_CXX \
12388 hardcode_libdir_flag_spec_ld_CXX \
12389 hardcode_libdir_separator_CXX \
12390 hardcode_automatic_CXX \
12392 module_expsym_cmds_CXX \
12393 lt_cv_prog_compiler_c_o_CXX \
12394 exclude_expsyms_CXX \
12395 include_expsyms_CXX; do
12398 old_archive_cmds_CXX | \
12399 old_archive_from_new_cmds_CXX | \
12400 archive_cmds_CXX | \
12401 archive_expsym_cmds_CXX | \
12402 module_cmds_CXX | \
12403 module_expsym_cmds_CXX | \
12404 old_archive_from_expsyms_cmds_CXX | \
12405 export_symbols_cmds_CXX | \
12406 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12407 postinstall_cmds | postuninstall_cmds | \
12408 old_postinstall_cmds | old_postuninstall_cmds | \
12409 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12410 # Double-quote double-evaled strings.
12411 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12414 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12420 *'\$0 --fallback-echo"')
12421 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12427 cat <<__EOF__ >> "$cfgfile"
12428 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12430 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12432 # Shell to use when invoking shell scripts.
12435 # Whether or not to build shared libraries.
12436 build_libtool_libs=$enable_shared
12438 # Whether or not to build static libraries.
12439 build_old_libs=$enable_static
12441 # Whether or not to add -lc for building shared libraries.
12442 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12444 # Whether or not to disallow shared libs when runtime libs are static
12445 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12447 # Whether or not to optimize for fast installation.
12448 fast_install=$enable_fast_install
12451 host_alias=$host_alias
12455 # The build system.
12456 build_alias=$build_alias
12460 # An echo program that does not interpret backslashes.
12465 AR_FLAGS=$lt_AR_FLAGS
12470 # LTCC compiler flags.
12471 LTCFLAGS=$lt_LTCFLAGS
12473 # A language-specific compiler.
12474 CC=$lt_compiler_CXX
12476 # Is the compiler the GNU C compiler?
12482 # The linker used to build libraries.
12485 # Whether we need hard or soft links.
12488 # A BSD-compatible nm program.
12491 # A symbol stripping program
12494 # Used to examine libraries when file_magic_cmd begins "file"
12495 MAGIC_CMD=$MAGIC_CMD
12497 # Used on cygwin: DLL creation program.
12500 # Used on cygwin: object dumper.
12503 # Used on cygwin: assembler.
12506 # The name of the directory that contains temporary libtool files.
12509 # How to create reloadable object files.
12510 reload_flag=$lt_reload_flag
12511 reload_cmds=$lt_reload_cmds
12513 # How to pass a linker flag through the compiler.
12514 wl=$lt_lt_prog_compiler_wl_CXX
12516 # Object file suffix (normally "o").
12517 objext="$ac_objext"
12519 # Old archive suffix (normally "a").
12522 # Shared library suffix (normally ".so").
12523 shrext_cmds='$shrext_cmds'
12525 # Executable file suffix (normally "").
12528 # Additional compiler flags for building library objects.
12529 pic_flag=$lt_lt_prog_compiler_pic_CXX
12532 # What is the maximum length of a command?
12533 max_cmd_len=$lt_cv_sys_max_cmd_len
12535 # Does compiler simultaneously support -c and -o options?
12536 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12538 # Must we lock files when doing compilation?
12539 need_locks=$lt_need_locks
12541 # Do we need the lib prefix for modules?
12542 need_lib_prefix=$need_lib_prefix
12544 # Do we need a version for libraries?
12545 need_version=$need_version
12547 # Whether dlopen is supported.
12548 dlopen_support=$enable_dlopen
12550 # Whether dlopen of programs is supported.
12551 dlopen_self=$enable_dlopen_self
12553 # Whether dlopen of statically linked programs is supported.
12554 dlopen_self_static=$enable_dlopen_self_static
12556 # Compiler flag to prevent dynamic linking.
12557 link_static_flag=$lt_lt_prog_compiler_static_CXX
12559 # Compiler flag to turn off builtin functions.
12560 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12562 # Compiler flag to allow reflexive dlopens.
12563 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12565 # Compiler flag to generate shared objects directly from archives.
12566 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12568 # Compiler flag to generate thread-safe objects.
12569 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12571 # Library versioning type.
12572 version_type=$version_type
12574 # Format of library name prefix.
12575 libname_spec=$lt_libname_spec
12577 # List of archive names. First name is the real one, the rest are links.
12578 # The last name is the one that the linker finds with -lNAME.
12579 library_names_spec=$lt_library_names_spec
12581 # The coded name of the library, if different from the real name.
12582 soname_spec=$lt_soname_spec
12584 # Commands used to build and install an old-style archive.
12586 old_archive_cmds=$lt_old_archive_cmds_CXX
12587 old_postinstall_cmds=$lt_old_postinstall_cmds
12588 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12590 # Create an old-style archive from a shared archive.
12591 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12593 # Create a temporary old-style archive to link instead of a shared archive.
12594 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12596 # Commands used to build and install a shared archive.
12597 archive_cmds=$lt_archive_cmds_CXX
12598 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12599 postinstall_cmds=$lt_postinstall_cmds
12600 postuninstall_cmds=$lt_postuninstall_cmds
12602 # Commands used to build a loadable module (assumed same as above if empty)
12603 module_cmds=$lt_module_cmds_CXX
12604 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12606 # Commands to strip libraries.
12607 old_striplib=$lt_old_striplib
12608 striplib=$lt_striplib
12610 # Dependencies to place before the objects being linked to create a
12612 predep_objects=$lt_predep_objects_CXX
12614 # Dependencies to place after the objects being linked to create a
12616 postdep_objects=$lt_postdep_objects_CXX
12618 # Dependencies to place before the objects being linked to create a
12620 predeps=$lt_predeps_CXX
12622 # Dependencies to place after the objects being linked to create a
12624 postdeps=$lt_postdeps_CXX
12626 # The library search path used internally by the compiler when linking
12627 # a shared library.
12628 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12630 # Method to check whether dependent libraries are shared objects.
12631 deplibs_check_method=$lt_deplibs_check_method
12633 # Command to use when deplibs_check_method == file_magic.
12634 file_magic_cmd=$lt_file_magic_cmd
12636 # Flag that allows shared libraries with undefined symbols to be built.
12637 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12639 # Flag that forces no undefined symbols.
12640 no_undefined_flag=$lt_no_undefined_flag_CXX
12642 # Commands used to finish a libtool library installation in a directory.
12643 finish_cmds=$lt_finish_cmds
12645 # Same as above, but a single script fragment to be evaled but not shown.
12646 finish_eval=$lt_finish_eval
12648 # Take the output of nm and produce a listing of raw symbols and C names.
12649 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12651 # Transform the output of nm in a proper C declaration
12652 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12654 # Transform the output of nm in a C name address pair
12655 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12657 # This is the shared library runtime path variable.
12658 runpath_var=$runpath_var
12660 # This is the shared library path variable.
12661 shlibpath_var=$shlibpath_var
12663 # Is shlibpath searched before the hard-coded library search path?
12664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12666 # How to hardcode a shared library path into an executable.
12667 hardcode_action=$hardcode_action_CXX
12669 # Whether we should hardcode library paths into libraries.
12670 hardcode_into_libs=$hardcode_into_libs
12672 # Flag to hardcode \$libdir into a binary during linking.
12673 # This must work even if \$libdir does not exist.
12674 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12676 # If ld is used when linking, flag to hardcode \$libdir into
12677 # a binary during linking. This must work even if \$libdir does
12679 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12681 # Whether we need a single -rpath flag with a separated argument.
12682 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12684 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12685 # resulting binary.
12686 hardcode_direct=$hardcode_direct_CXX
12688 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12689 # resulting binary.
12690 hardcode_minus_L=$hardcode_minus_L_CXX
12692 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12693 # the resulting binary.
12694 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12696 # Set to yes if building a shared library automatically hardcodes DIR into the library
12697 # and all subsequent libraries and executables linked against it.
12698 hardcode_automatic=$hardcode_automatic_CXX
12700 # Variables whose values should be saved in libtool wrapper scripts and
12701 # restored at relink time.
12702 variables_saved_for_relink="$variables_saved_for_relink"
12704 # Whether libtool must link a program against all its dependency libraries.
12705 link_all_deplibs=$link_all_deplibs_CXX
12707 # Compile-time system search path for libraries
12708 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12710 # Run-time system search path for libraries
12711 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12713 # Fix the shell variable \$srcfile for the compiler.
12714 fix_srcfile_path="$fix_srcfile_path_CXX"
12716 # Set to yes if exported symbols are required.
12717 always_export_symbols=$always_export_symbols_CXX
12719 # The commands to list exported symbols.
12720 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12722 # The commands to extract the exported symbol list from a shared archive.
12723 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12725 # Symbols that should not be listed in the preloaded symbols.
12726 exclude_expsyms=$lt_exclude_expsyms_CXX
12728 # Symbols that must always be exported.
12729 include_expsyms=$lt_include_expsyms_CXX
12731 # ### END LIBTOOL TAG CONFIG: $tagname
12737 # If there is no Makefile yet, we rely on a make rule to execute
12738 # `config.status --recheck' to rerun these tests and create the
12739 # libtool script then.
12740 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12741 if test -f "$ltmain_in"; then
12742 test -f Makefile && make "$ltmain"
12748 ac_cpp='$CPP $CPPFLAGS'
12749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12757 with_gnu_ldcxx=$with_gnu_ld
12758 with_gnu_ld=$lt_save_with_gnu_ld
12759 lt_cv_path_LDCXX=$lt_cv_path_LD
12760 lt_cv_path_LD=$lt_save_path_LD
12761 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12762 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12770 if test -n "$F77" && test "X$F77" != "Xno"; then
12773 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12774 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12775 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12778 archive_cmds_need_lc_F77=no
12779 allow_undefined_flag_F77=
12780 always_export_symbols_F77=no
12781 archive_expsym_cmds_F77=
12782 export_dynamic_flag_spec_F77=
12783 hardcode_direct_F77=no
12784 hardcode_libdir_flag_spec_F77=
12785 hardcode_libdir_flag_spec_ld_F77=
12786 hardcode_libdir_separator_F77=
12787 hardcode_minus_L_F77=no
12788 hardcode_automatic_F77=no
12790 module_expsym_cmds_F77=
12791 link_all_deplibs_F77=unknown
12792 old_archive_cmds_F77=$old_archive_cmds
12793 no_undefined_flag_F77=
12794 whole_archive_flag_spec_F77=
12795 enable_shared_with_static_runtimes_F77=no
12797 # Source file extension for f77 test sources.
12800 # Object file extension for compiled f77 test sources.
12804 # Code to be used in simple compile tests
12805 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12807 # Code to be used in simple link tests
12808 lt_simple_link_test_code=" program t\n end\n"
12810 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12812 # If no C compiler was specified, use CC.
12815 # If no C compiler flags were specified, use CFLAGS.
12816 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12818 # Allow CC to be a program name with arguments.
12822 # save warnings/boilerplate of simple test code
12823 ac_outfile=conftest.$ac_objext
12824 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12825 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12826 _lt_compiler_boilerplate=`cat conftest.err`
12829 ac_outfile=conftest.$ac_objext
12830 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12831 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12832 _lt_linker_boilerplate=`cat conftest.err`
12836 # Allow CC to be a program name with arguments.
12841 for cc_temp in $compiler""; do
12843 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12844 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12849 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12852 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12853 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12854 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12855 echo "${ECHO_T}$can_build_shared" >&6
12857 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12858 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12859 test "$can_build_shared" = "no" && enable_shared=no
12861 # On AIX, shared libraries and static libraries use the same namespace, and
12862 # are all built from PIC.
12865 test "$enable_shared" = yes && enable_static=no
12866 if test -n "$RANLIB"; then
12867 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12868 postinstall_cmds='$RANLIB $lib'
12872 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12873 test "$enable_shared" = yes && enable_static=no
12877 echo "$as_me:$LINENO: result: $enable_shared" >&5
12878 echo "${ECHO_T}$enable_shared" >&6
12880 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12881 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12882 # Make sure either enable_shared or enable_static is yes.
12883 test "$enable_shared" = yes || enable_static=yes
12884 echo "$as_me:$LINENO: result: $enable_static" >&5
12885 echo "${ECHO_T}$enable_static" >&6
12890 lt_prog_compiler_wl_F77=
12891 lt_prog_compiler_pic_F77=
12892 lt_prog_compiler_static_F77=
12894 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12895 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12897 if test "$GCC" = yes; then
12898 lt_prog_compiler_wl_F77='-Wl,'
12899 lt_prog_compiler_static_F77='-static'
12903 # All AIX code is PIC.
12904 if test "$host_cpu" = ia64; then
12905 # AIX 5 now supports IA64 processor
12906 lt_prog_compiler_static_F77='-Bstatic'
12911 # FIXME: we need at least 68020 code to build shared libraries, but
12912 # adding the `-m68020' flag to GCC prevents building anything better,
12914 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12917 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12918 # PIC is the default for these OSes.
12921 mingw* | pw32* | os2*)
12922 # This hack is so that the source file can tell whether it is being
12923 # built for inclusion in a dll (and should export symbols for example).
12924 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12927 darwin* | rhapsody*)
12928 # PIC is the default on this platform
12929 # Common symbols not allowed in MH_DYLIB files
12930 lt_prog_compiler_pic_F77='-fno-common'
12934 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12935 # Instead, we relocate shared libraries at runtime.
12939 # Just because we use GCC doesn't mean we suddenly get shared libraries
12940 # on systems that don't support them.
12941 lt_prog_compiler_can_build_shared_F77=no
12946 if test -d /usr/nec; then
12947 lt_prog_compiler_pic_F77=-Kconform_pic
12952 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12953 # not for PA HP-UX.
12959 lt_prog_compiler_pic_F77='-fPIC'
12965 lt_prog_compiler_pic_F77='-fPIC'
12969 # PORTME Check for flag to pass linker flags through the system compiler.
12972 lt_prog_compiler_wl_F77='-Wl,'
12973 if test "$host_cpu" = ia64; then
12974 # AIX 5 now supports IA64 processor
12975 lt_prog_compiler_static_F77='-Bstatic'
12977 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12981 # PIC is the default on this platform
12982 # Common symbols not allowed in MH_DYLIB files
12983 case $cc_basename in
12985 lt_prog_compiler_pic_F77='-qnocommon'
12986 lt_prog_compiler_wl_F77='-Wl,'
12991 mingw* | pw32* | os2*)
12992 # This hack is so that the source file can tell whether it is being
12993 # built for inclusion in a dll (and should export symbols for example).
12994 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12997 hpux9* | hpux10* | hpux11*)
12998 lt_prog_compiler_wl_F77='-Wl,'
12999 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13000 # not for PA HP-UX.
13006 lt_prog_compiler_pic_F77='+Z'
13009 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13010 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13013 irix5* | irix6* | nonstopux*)
13014 lt_prog_compiler_wl_F77='-Wl,'
13015 # PIC (with -KPIC) is the default.
13016 lt_prog_compiler_static_F77='-non_shared'
13020 lt_prog_compiler_pic_F77='-KPIC'
13021 lt_prog_compiler_static_F77='-Bstatic'
13025 case $cc_basename in
13027 lt_prog_compiler_wl_F77='-Wl,'
13028 lt_prog_compiler_pic_F77='-KPIC'
13029 lt_prog_compiler_static_F77='-static'
13031 pgcc* | pgf77* | pgf90* | pgf95*)
13032 # Portland Group compilers (*not* the Pentium gcc compiler,
13033 # which looks to be a dead project)
13034 lt_prog_compiler_wl_F77='-Wl,'
13035 lt_prog_compiler_pic_F77='-fpic'
13036 lt_prog_compiler_static_F77='-Bstatic'
13039 lt_prog_compiler_wl_F77='-Wl,'
13040 # All Alpha code is PIC.
13041 lt_prog_compiler_static_F77='-non_shared'
13046 osf3* | osf4* | osf5*)
13047 lt_prog_compiler_wl_F77='-Wl,'
13048 # All OSF/1 code is PIC.
13049 lt_prog_compiler_static_F77='-non_shared'
13053 lt_prog_compiler_pic_F77='-KPIC'
13054 lt_prog_compiler_static_F77='-Bstatic'
13055 case $cc_basename in
13056 f77* | f90* | f95*)
13057 lt_prog_compiler_wl_F77='-Qoption ld ';;
13059 lt_prog_compiler_wl_F77='-Wl,';;
13064 lt_prog_compiler_wl_F77='-Qoption ld '
13065 lt_prog_compiler_pic_F77='-PIC'
13066 lt_prog_compiler_static_F77='-Bstatic'
13069 sysv4 | sysv4.2uw2* | sysv4.3*)
13070 lt_prog_compiler_wl_F77='-Wl,'
13071 lt_prog_compiler_pic_F77='-KPIC'
13072 lt_prog_compiler_static_F77='-Bstatic'
13076 if test -d /usr/nec ;then
13077 lt_prog_compiler_pic_F77='-Kconform_pic'
13078 lt_prog_compiler_static_F77='-Bstatic'
13082 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13083 lt_prog_compiler_wl_F77='-Wl,'
13084 lt_prog_compiler_pic_F77='-KPIC'
13085 lt_prog_compiler_static_F77='-Bstatic'
13089 lt_prog_compiler_wl_F77='-Wl,'
13090 lt_prog_compiler_can_build_shared_F77=no
13094 lt_prog_compiler_pic_F77='-pic'
13095 lt_prog_compiler_static_F77='-Bstatic'
13099 lt_prog_compiler_can_build_shared_F77=no
13104 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13105 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13108 # Check to make sure the PIC flag actually works.
13110 if test -n "$lt_prog_compiler_pic_F77"; then
13112 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13113 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13114 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13117 lt_prog_compiler_pic_works_F77=no
13118 ac_outfile=conftest.$ac_objext
13119 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13120 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13121 # Insert the option either (1) after the last *FLAGS variable, or
13122 # (2) before a word containing "conftest.", or (3) at the end.
13123 # Note that $ac_compile itself does not contain backslashes and begins
13124 # with a dollar sign (not a hyphen), so the echo should work correctly.
13125 # The option is referenced via a variable to avoid confusing sed.
13126 lt_compile=`echo "$ac_compile" | $SED \
13127 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13128 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13129 -e 's:$: $lt_compiler_flag:'`
13130 (eval echo "\"\$as_me:13130: $lt_compile\"" >&5)
13131 (eval "$lt_compile" 2>conftest.err)
13133 cat conftest.err >&5
13134 echo "$as_me:13134: \$? = $ac_status" >&5
13135 if (exit $ac_status) && test -s "$ac_outfile"; then
13136 # The compiler can only warn and ignore the option if not recognized
13137 # So say no if there are warnings other than the usual output.
13138 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13140 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13141 lt_prog_compiler_pic_works_F77=yes
13147 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13148 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13150 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13151 case $lt_prog_compiler_pic_F77 in
13153 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13156 lt_prog_compiler_pic_F77=
13157 lt_prog_compiler_can_build_shared_F77=no
13162 # For platforms which do not support PIC, -DPIC is meaningless:
13164 lt_prog_compiler_pic_F77=
13167 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13172 # Check to make sure the static flag actually works.
13174 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13175 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13176 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13177 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 lt_prog_compiler_static_works_F77=no
13181 save_LDFLAGS="$LDFLAGS"
13182 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13183 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13184 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13185 # The linker can only warn and ignore the option if not recognized
13186 # So say no if there are warnings
13187 if test -s conftest.err; then
13188 # Append any errors to the config.log.
13189 cat conftest.err 1>&5
13190 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13191 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13192 if diff conftest.exp conftest.er2 >/dev/null; then
13193 lt_prog_compiler_static_works_F77=yes
13196 lt_prog_compiler_static_works_F77=yes
13200 LDFLAGS="$save_LDFLAGS"
13203 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13204 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13206 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13209 lt_prog_compiler_static_F77=
13213 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13214 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13215 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13216 echo $ECHO_N "(cached) $ECHO_C" >&6
13218 lt_cv_prog_compiler_c_o_F77=no
13219 $rm -r conftest 2>/dev/null
13223 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13225 lt_compiler_flag="-o out/conftest2.$ac_objext"
13226 # Insert the option either (1) after the last *FLAGS variable, or
13227 # (2) before a word containing "conftest.", or (3) at the end.
13228 # Note that $ac_compile itself does not contain backslashes and begins
13229 # with a dollar sign (not a hyphen), so the echo should work correctly.
13230 lt_compile=`echo "$ac_compile" | $SED \
13231 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13232 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13233 -e 's:$: $lt_compiler_flag:'`
13234 (eval echo "\"\$as_me:13234: $lt_compile\"" >&5)
13235 (eval "$lt_compile" 2>out/conftest.err)
13237 cat out/conftest.err >&5
13238 echo "$as_me:13238: \$? = $ac_status" >&5
13239 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13241 # The compiler can only warn and ignore the option if not recognized
13242 # So say no if there are warnings
13243 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13244 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13245 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13246 lt_cv_prog_compiler_c_o_F77=yes
13251 # SGI C++ compiler will create directory out/ii_files/ for
13252 # template instantiation
13253 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13254 $rm out/* && rmdir out
13260 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13261 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13264 hard_links="nottested"
13265 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13266 # do not overwrite the value of need_locks provided by the user
13267 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13268 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13271 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13273 ln conftest.a conftest.b 2>&5 || hard_links=no
13274 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13275 echo "$as_me:$LINENO: result: $hard_links" >&5
13276 echo "${ECHO_T}$hard_links" >&6
13277 if test "$hard_links" = no; then
13278 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13279 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13286 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13287 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13290 allow_undefined_flag_F77=
13291 enable_shared_with_static_runtimes_F77=no
13293 archive_expsym_cmds_F77=
13294 old_archive_From_new_cmds_F77=
13295 old_archive_from_expsyms_cmds_F77=
13296 export_dynamic_flag_spec_F77=
13297 whole_archive_flag_spec_F77=
13298 thread_safe_flag_spec_F77=
13299 hardcode_libdir_flag_spec_F77=
13300 hardcode_libdir_flag_spec_ld_F77=
13301 hardcode_libdir_separator_F77=
13302 hardcode_direct_F77=no
13303 hardcode_minus_L_F77=no
13304 hardcode_shlibpath_var_F77=unsupported
13305 link_all_deplibs_F77=unknown
13306 hardcode_automatic_F77=no
13308 module_expsym_cmds_F77=
13309 always_export_symbols_F77=no
13310 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13311 # include_expsyms should be a list of space-separated symbols to be *always*
13312 # included in the symbol list
13313 include_expsyms_F77=
13314 # exclude_expsyms can be an extended regexp of symbols to exclude
13315 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13316 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13317 # as well as any symbol that contains `d'.
13318 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13319 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13320 # platforms (ab)use it in PIC code, but their linkers get confused if
13321 # the symbol is explicitly referenced. Since portable code cannot
13322 # rely on this symbol name, it's probably fine to never include it in
13323 # preloaded symbol tables.
13324 extract_expsyms_cmds=
13325 # Just being paranoid about ensuring that cc_basename is set.
13326 for cc_temp in $compiler""; do
13328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13334 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13337 cygwin* | mingw* | pw32*)
13338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13339 # When not using gcc, we currently assume that we are using
13340 # Microsoft Visual C++.
13341 if test "$GCC" != yes; then
13346 # we just hope/assume this is gcc and not c89 (= MSVC++)
13355 if test "$with_gnu_ld" = yes; then
13356 # If archive_cmds runs LD, not CC, wlarc should be empty
13359 # Set some defaults for GNU ld with shared library support. These
13360 # are reset later if shared libraries are not supported. Putting them
13361 # here allows them to be overridden if necessary.
13362 runpath_var=LD_RUN_PATH
13363 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13364 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13365 # ancient GNU ld didn't support --whole-archive et. al.
13366 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13367 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13369 whole_archive_flag_spec_F77=
13371 supports_anon_versioning=no
13372 case `$LD -v 2>/dev/null` in
13373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13376 *\ 2.11.*) ;; # other 2.11 versions
13377 *) supports_anon_versioning=yes ;;
13380 # See if GNU ld supports shared libraries.
13382 aix3* | aix4* | aix5*)
13383 # On AIX/PPC, the GNU linker is very broken
13384 if test "$host_cpu" != ia64; then
13388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13389 *** to be unable to reliably create shared libraries on AIX.
13390 *** Therefore, libtool is disabling shared libraries support. If you
13391 *** really care for shared libraries, you may want to modify your PATH
13392 *** so that a non-GNU linker is found, and then restart.
13399 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)'
13400 hardcode_libdir_flag_spec_F77='-L$libdir'
13401 hardcode_minus_L_F77=yes
13403 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13404 # that the semantics of dynamic libraries on AmigaOS, at least up
13405 # to version 4, is to share data among multiple programs linked
13406 # with the same dynamic library. Since this doesn't match the
13407 # behavior of shared libraries on other platforms, we can't use
13413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13414 allow_undefined_flag_F77=unsupported
13415 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13416 # support --undefined. This deserves some investigation. FIXME
13417 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13423 cygwin* | mingw* | pw32*)
13424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13425 # as there is no search path for DLLs.
13426 hardcode_libdir_flag_spec_F77='-L$libdir'
13427 allow_undefined_flag_F77=unsupported
13428 always_export_symbols_F77=no
13429 enable_shared_with_static_runtimes_F77=yes
13430 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13433 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13434 # If the export-symbols file already is a .def file (1st line
13435 # is EXPORTS), use it as is; otherwise, prepend...
13436 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13437 cp $export_symbols $output_objdir/$soname.def;
13439 echo EXPORTS > $output_objdir/$soname.def;
13440 cat $export_symbols >> $output_objdir/$soname.def;
13442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13449 hardcode_direct_F77=no
13450 hardcode_shlibpath_var_F77=no
13451 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13452 export_dynamic_flag_spec_F77='${wl}-E'
13453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13454 # Instead, shared libraries are loaded at an image base (0x10000000 by
13455 # default) and relocated if they conflict, which is a slow very memory
13456 # consuming and fragmenting process. To avoid this, we pick a random,
13457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13459 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'
13460 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'
13464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13466 case $cc_basename,$host_cpu in
13467 pgcc*) # Portland Group C compiler
13468 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'
13469 tmp_addflag=' $pic_flag'
13471 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13472 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'
13473 tmp_addflag=' $pic_flag -Mnomain' ;;
13474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13475 tmp_addflag=' -i_dynamic' ;;
13476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13477 tmp_addflag=' -i_dynamic -nofor_main' ;;
13478 ifc* | ifort*) # Intel Fortran compiler
13479 tmp_addflag=' -nofor_main' ;;
13481 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13483 if test $supports_anon_versioning = yes; then
13484 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13485 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13486 $echo "local: *; };" >> $output_objdir/$libname.ver~
13487 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13495 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13496 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13499 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13500 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13505 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13509 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13510 *** create shared libraries on Solaris systems. Therefore, libtool
13511 *** is disabling shared libraries support. We urge you to upgrade GNU
13512 *** binutils to release 2.9.1 or newer. Another option is to modify
13513 *** your PATH or compiler configuration so that the native linker is
13514 *** used, and then restart.
13517 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13518 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13519 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13525 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13526 case `$LD -v 2>&1` in
13527 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13531 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13532 *** reliably create shared libraries on SCO systems. Therefore, libtool
13533 *** is disabling shared libraries support. We urge you to upgrade GNU
13534 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13535 *** your PATH or compiler configuration so that the native linker is
13536 *** used, and then restart.
13541 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13542 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13543 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13544 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13553 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13555 hardcode_direct_F77=yes
13556 hardcode_shlibpath_var_F77=no
13560 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13569 if test "$ld_shlibs_F77" = no; then
13571 hardcode_libdir_flag_spec_F77=
13572 export_dynamic_flag_spec_F77=
13573 whole_archive_flag_spec_F77=
13576 # PORTME fill in a description of your system's linker (not GNU ld)
13579 allow_undefined_flag_F77=unsupported
13580 always_export_symbols_F77=yes
13581 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'
13582 # Note: this linker hardcodes the directories in LIBPATH if there
13583 # are no directories specified by -L.
13584 hardcode_minus_L_F77=yes
13585 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13586 # Neither direct hardcoding nor static linking is supported with a
13588 hardcode_direct_F77=unsupported
13593 if test "$host_cpu" = ia64; then
13594 # On IA64, the linker does run time linking by default, so we don't
13595 # have to do anything special.
13596 aix_use_runtimelinking=no
13597 exp_sym_flag='-Bexport'
13600 # If we're using GNU nm, then we don't want the "-C" option.
13601 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13602 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13603 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'
13605 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'
13607 aix_use_runtimelinking=no
13609 # Test if we are trying to use run time linking or normal
13610 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13611 # need to do runtime linking.
13612 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13613 for ld_flag in $LDFLAGS; do
13614 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13615 aix_use_runtimelinking=yes
13622 exp_sym_flag='-bexport'
13623 no_entry_flag='-bnoentry'
13626 # When large executables or shared objects are built, AIX ld can
13627 # have problems creating the table of contents. If linking a library
13628 # or program results in "error TOC overflow" add -mminimal-toc to
13629 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13630 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13632 archive_cmds_F77=''
13633 hardcode_direct_F77=yes
13634 hardcode_libdir_separator_F77=':'
13635 link_all_deplibs_F77=yes
13637 if test "$GCC" = yes; then
13638 case $host_os in aix4.[012]|aix4.[012].*)
13639 # We only want to do this on AIX 4.2 and lower, the check
13640 # below for broken collect2 doesn't work under 4.3+
13641 collect2name=`${CC} -print-prog-name=collect2`
13642 if test -f "$collect2name" && \
13643 strings "$collect2name" | grep resolve_lib_name >/dev/null
13645 # We have reworked collect2
13646 hardcode_direct_F77=yes
13648 # We have old collect2
13649 hardcode_direct_F77=unsupported
13650 # It fails to find uninstalled libraries when the uninstalled
13651 # path is not listed in the libpath. Setting hardcode_minus_L
13652 # to unsupported forces relinking
13653 hardcode_minus_L_F77=yes
13654 hardcode_libdir_flag_spec_F77='-L$libdir'
13655 hardcode_libdir_separator_F77=
13659 shared_flag='-shared'
13660 if test "$aix_use_runtimelinking" = yes; then
13661 shared_flag="$shared_flag "'${wl}-G'
13665 if test "$host_cpu" = ia64; then
13666 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13667 # chokes on -Wl,-G. The following line is correct:
13670 if test "$aix_use_runtimelinking" = yes; then
13671 shared_flag='${wl}-G'
13673 shared_flag='${wl}-bM:SRE'
13678 # It seems that -bexpall does not export symbols beginning with
13679 # underscore (_), so it is better to generate a list of symbols to export.
13680 always_export_symbols_F77=yes
13681 if test "$aix_use_runtimelinking" = yes; then
13682 # Warning - without using the other runtime loading flags (-brtl),
13683 # -berok will link without error, but may produce a broken library.
13684 allow_undefined_flag_F77='-berok'
13685 # Determine the default libpath from the value encoded in an empty executable.
13686 cat >conftest.$ac_ext <<_ACEOF
13691 rm -f conftest.$ac_objext conftest$ac_exeext
13692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13693 (eval $ac_link) 2>conftest.er1
13695 grep -v '^ *+' conftest.er1 >conftest.err
13697 cat conftest.err >&5
13698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699 (exit $ac_status); } &&
13700 { ac_try='test -z "$ac_f77_werror_flag"
13701 || test ! -s conftest.err'
13702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13703 (eval $ac_try) 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; } &&
13707 { ac_try='test -s conftest$ac_exeext'
13708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13709 (eval $ac_try) 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13714 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13716 # Check for a 64-bit object if we didn't find anything.
13717 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; }
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.$ac_ext >&5
13724 rm -f conftest.err conftest.$ac_objext \
13725 conftest$ac_exeext conftest.$ac_ext
13726 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13728 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13729 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"
13731 if test "$host_cpu" = ia64; then
13732 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13733 allow_undefined_flag_F77="-z nodefs"
13734 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"
13736 # Determine the default libpath from the value encoded in an empty executable.
13737 cat >conftest.$ac_ext <<_ACEOF
13742 rm -f conftest.$ac_objext conftest$ac_exeext
13743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13744 (eval $ac_link) 2>conftest.er1
13746 grep -v '^ *+' conftest.er1 >conftest.err
13748 cat conftest.err >&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } &&
13751 { ac_try='test -z "$ac_f77_werror_flag"
13752 || test ! -s conftest.err'
13753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13754 (eval $ac_try) 2>&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); }; } &&
13758 { ac_try='test -s conftest$ac_exeext'
13759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13760 (eval $ac_try) 2>&5
13762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13763 (exit $ac_status); }; }; then
13765 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13767 # Check for a 64-bit object if we didn't find anything.
13768 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; }
13771 echo "$as_me: failed program was:" >&5
13772 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f conftest.err conftest.$ac_objext \
13776 conftest$ac_exeext conftest.$ac_ext
13777 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13779 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13780 # Warning - without using the other run time loading flags,
13781 # -berok will link without error, but may produce a broken library.
13782 no_undefined_flag_F77=' ${wl}-bernotok'
13783 allow_undefined_flag_F77=' ${wl}-berok'
13784 # Exported symbols can be pulled into shared objects from archives
13785 whole_archive_flag_spec_F77='$convenience'
13786 archive_cmds_need_lc_F77=yes
13787 # This is similar to how AIX traditionally builds its shared libraries.
13788 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'
13794 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)'
13795 hardcode_libdir_flag_spec_F77='-L$libdir'
13796 hardcode_minus_L_F77=yes
13797 # see comment about different semantics on the GNU ld section
13802 export_dynamic_flag_spec_F77=-rdynamic
13805 cygwin* | mingw* | pw32*)
13806 # When not using gcc, we currently assume that we are using
13807 # Microsoft Visual C++.
13808 # hardcode_libdir_flag_spec is actually meaningless, as there is
13809 # no search path for DLLs.
13810 hardcode_libdir_flag_spec_F77=' '
13811 allow_undefined_flag_F77=unsupported
13812 # Tell ltmain to make .lib files, not .a files.
13814 # Tell ltmain to make .dll files, not .so files.
13816 # FIXME: Setting linknames here is a bad hack.
13817 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13818 # The linker will automatically build a .lib file if we build a DLL.
13819 old_archive_From_new_cmds_F77='true'
13820 # FIXME: Should let the user specify the lib program.
13821 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13822 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13823 enable_shared_with_static_runtimes_F77=yes
13826 darwin* | rhapsody*)
13828 rhapsody* | darwin1.[012])
13829 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13832 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13833 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13835 case ${MACOSX_DEPLOYMENT_TARGET} in
13837 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13840 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13846 archive_cmds_need_lc_F77=no
13847 hardcode_direct_F77=no
13848 hardcode_automatic_F77=yes
13849 hardcode_shlibpath_var_F77=unsupported
13850 whole_archive_flag_spec_F77=''
13851 link_all_deplibs_F77=yes
13852 if test "$GCC" = yes ; then
13853 output_verbose_link_cmd='echo'
13854 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13855 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13856 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13857 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}'
13858 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}'
13860 case $cc_basename in
13862 output_verbose_link_cmd='echo'
13863 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13864 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13865 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13866 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}'
13867 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}'
13877 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13878 hardcode_libdir_flag_spec_F77='-L$libdir'
13879 hardcode_shlibpath_var_F77=no
13886 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13887 # support. Future versions do this automatically, but an explicit c++rt0.o
13888 # does not break anything, and helps significantly (at the cost of a little
13891 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13892 hardcode_libdir_flag_spec_F77='-R$libdir'
13893 hardcode_direct_F77=yes
13894 hardcode_shlibpath_var_F77=no
13897 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13899 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13900 hardcode_direct_F77=yes
13901 hardcode_minus_L_F77=yes
13902 hardcode_shlibpath_var_F77=no
13905 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13906 freebsd* | kfreebsd*-gnu | dragonfly*)
13907 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13908 hardcode_libdir_flag_spec_F77='-R$libdir'
13909 hardcode_direct_F77=yes
13910 hardcode_shlibpath_var_F77=no
13914 if test "$GCC" = yes; then
13915 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'
13917 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'
13919 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13920 hardcode_libdir_separator_F77=:
13921 hardcode_direct_F77=yes
13923 # hardcode_minus_L: Not really in the search PATH,
13924 # but as the default location of the library.
13925 hardcode_minus_L_F77=yes
13926 export_dynamic_flag_spec_F77='${wl}-E'
13930 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13931 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='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13935 if test "$with_gnu_ld" = no; then
13936 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13937 hardcode_libdir_separator_F77=:
13939 hardcode_direct_F77=yes
13940 export_dynamic_flag_spec_F77='${wl}-E'
13942 # hardcode_minus_L: Not really in the search PATH,
13943 # but as the default location of the library.
13944 hardcode_minus_L_F77=yes
13949 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13952 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13958 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13967 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13970 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13974 if test "$with_gnu_ld" = no; then
13975 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13976 hardcode_libdir_separator_F77=:
13980 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13981 hardcode_direct_F77=no
13982 hardcode_shlibpath_var_F77=no
13985 hardcode_direct_F77=yes
13986 export_dynamic_flag_spec_F77='${wl}-E'
13988 # hardcode_minus_L: Not really in the search PATH,
13989 # but as the default location of the library.
13990 hardcode_minus_L_F77=yes
13996 irix5* | irix6* | nonstopux*)
13997 if test "$GCC" = yes; then
13998 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'
14000 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'
14001 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14003 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14004 hardcode_libdir_separator_F77=:
14005 link_all_deplibs_F77=yes
14009 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14010 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14012 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14014 hardcode_libdir_flag_spec_F77='-R$libdir'
14015 hardcode_direct_F77=yes
14016 hardcode_shlibpath_var_F77=no
14020 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14021 hardcode_direct_F77=yes
14022 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14023 hardcode_libdir_separator_F77=:
14024 hardcode_shlibpath_var_F77=no
14028 hardcode_direct_F77=yes
14029 hardcode_shlibpath_var_F77=no
14030 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14031 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14032 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14033 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14034 export_dynamic_flag_spec_F77='${wl}-E'
14037 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14038 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14039 hardcode_libdir_flag_spec_F77='-R$libdir'
14042 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14043 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14050 hardcode_libdir_flag_spec_F77='-L$libdir'
14051 hardcode_minus_L_F77=yes
14052 allow_undefined_flag_F77=unsupported
14053 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'
14054 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14058 if test "$GCC" = yes; then
14059 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14060 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'
14062 allow_undefined_flag_F77=' -expect_unresolved \*'
14063 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'
14065 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14066 hardcode_libdir_separator_F77=:
14069 osf4* | osf5*) # as osf3* with the addition of -msym flag
14070 if test "$GCC" = yes; then
14071 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14072 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'
14073 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14075 allow_undefined_flag_F77=' -expect_unresolved \*'
14076 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'
14077 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~
14078 $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'
14080 # Both c and cxx compiler support -rpath directly
14081 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14083 hardcode_libdir_separator_F77=:
14087 no_undefined_flag_F77=' -z text'
14088 if test "$GCC" = yes; then
14090 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14091 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14092 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14095 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14096 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14097 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14099 hardcode_libdir_flag_spec_F77='-R$libdir'
14100 hardcode_shlibpath_var_F77=no
14102 solaris2.[0-5] | solaris2.[0-5].*) ;;
14104 # The compiler driver will combine linker options so we
14105 # cannot just pass the convience library names through
14106 # without $wl, iff we do not link with $LD.
14107 # Luckily, gcc supports the same syntax we need for Sun Studio.
14108 # Supported since Solaris 2.6 (maybe 2.5.1?)
14111 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14113 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' ;;
14116 link_all_deplibs_F77=yes
14120 if test "x$host_vendor" = xsequent; then
14121 # Use $CC to link under sequent, because it throws in some extra .o
14122 # files that make .init and .fini sections work.
14123 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14125 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14127 hardcode_libdir_flag_spec_F77='-L$libdir'
14128 hardcode_direct_F77=yes
14129 hardcode_minus_L_F77=yes
14130 hardcode_shlibpath_var_F77=no
14134 case $host_vendor in
14136 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14137 hardcode_direct_F77=yes # is this really true???
14140 ## LD is ld it makes a PLAMLIB
14141 ## CC just makes a GrossModule.
14142 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14143 reload_cmds_F77='$CC -r -o $output$reload_objs'
14144 hardcode_direct_F77=no
14147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14148 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14151 runpath_var='LD_RUN_PATH'
14152 hardcode_shlibpath_var_F77=no
14156 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14157 hardcode_shlibpath_var_F77=no
14158 export_dynamic_flag_spec_F77='-Bexport'
14162 if test -d /usr/nec; then
14163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_shlibpath_var_F77=no
14165 runpath_var=LD_RUN_PATH
14166 hardcode_runpath_var=yes
14171 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14172 no_undefined_flag_F77='${wl}-z,text'
14173 archive_cmds_need_lc_F77=no
14174 hardcode_shlibpath_var_F77=no
14175 runpath_var='LD_RUN_PATH'
14177 if test "$GCC" = yes; then
14178 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14179 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14181 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14182 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14186 sysv5* | sco3.2v5* | sco5v6*)
14187 # Note: We can NOT use -z defs as we might desire, because we do not
14188 # link with -lc, and that would cause any symbols used from libc to
14189 # always be unresolved, which means just about no library would
14190 # ever link correctly. If we're not using GNU ld we use -z text
14191 # though, which does catch some bad symbols but isn't as heavy-handed
14193 no_undefined_flag_F77='${wl}-z,text'
14194 allow_undefined_flag_F77='${wl}-z,nodefs'
14195 archive_cmds_need_lc_F77=no
14196 hardcode_shlibpath_var_F77=no
14197 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14198 hardcode_libdir_separator_F77=':'
14199 link_all_deplibs_F77=yes
14200 export_dynamic_flag_spec_F77='${wl}-Bexport'
14201 runpath_var='LD_RUN_PATH'
14203 if test "$GCC" = yes; then
14204 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14205 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14207 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14208 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14214 hardcode_libdir_flag_spec_F77='-L$libdir'
14215 hardcode_shlibpath_var_F77=no
14224 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14225 echo "${ECHO_T}$ld_shlibs_F77" >&6
14226 test "$ld_shlibs_F77" = no && can_build_shared=no
14229 # Do we need to explicitly link libc?
14231 case "x$archive_cmds_need_lc_F77" in
14233 # Assume -lc should be added
14234 archive_cmds_need_lc_F77=yes
14236 if test "$enable_shared" = yes && test "$GCC" = yes; then
14237 case $archive_cmds_F77 in
14239 # FIXME: we may have to deal with multi-command sequences.
14242 # Test whether the compiler implicitly links with -lc since on some
14243 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14244 # to ld, don't add -lc before -lgcc.
14245 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14246 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14248 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14251 (eval $ac_compile) 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); } 2>conftest.err; then
14257 libobjs=conftest.$ac_objext
14259 wl=$lt_prog_compiler_wl_F77
14260 pic_flag=$lt_prog_compiler_pic_F77
14266 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14267 allow_undefined_flag_F77=
14268 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14269 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); }
14274 archive_cmds_need_lc_F77=no
14276 archive_cmds_need_lc_F77=yes
14278 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14280 cat conftest.err 1>&5
14283 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14284 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14291 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14292 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14293 library_names_spec=
14294 libname_spec='lib$name'
14298 postuninstall_cmds=
14302 shlibpath_overrides_runpath=unknown
14304 dynamic_linker="$host_os ld.so"
14305 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14306 if test "$GCC" = yes; then
14307 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14308 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14309 # if the path contains ";" then we assume it to be the separator
14310 # otherwise default to the standard path separator (i.e. ":") - it is
14311 # assumed that no part of a normal pathname contains ";" but that should
14312 # okay in the real world where ";" in dirpaths is itself problematic.
14313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14315 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14318 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14320 need_lib_prefix=unknown
14321 hardcode_into_libs=no
14323 # when you set need_version to no, make sure it does not cause -set_version
14324 # flags to be left without arguments
14325 need_version=unknown
14330 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14331 shlibpath_var=LIBPATH
14333 # AIX 3 has no versioning support, so we append a major version to the name.
14334 soname_spec='${libname}${release}${shared_ext}$major'
14341 hardcode_into_libs=yes
14342 if test "$host_cpu" = ia64; then
14343 # AIX 5 supports IA64
14344 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14345 shlibpath_var=LD_LIBRARY_PATH
14347 # With GCC up to 2.95.x, collect2 would create an import file
14348 # for dependence libraries. The import file would start with
14349 # the line `#! .'. This would cause the generated library to
14350 # depend on `.', always an invalid library. This was fixed in
14351 # development snapshots of GCC prior to 3.0.
14353 aix4 | aix4.[01] | aix4.[01].*)
14354 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14356 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14359 can_build_shared=no
14363 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14364 # soname into executable. Probably we can add versioning support to
14365 # collect2, so additional links can be useful in future.
14366 if test "$aix_use_runtimelinking" = yes; then
14367 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14368 # instead of lib<name>.a to let people know that these are not
14369 # typical AIX shared libraries.
14370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14372 # We preserve .a as extension for shared libraries through AIX4.2
14373 # and later when we are not doing run time linking.
14374 library_names_spec='${libname}${release}.a $libname.a'
14375 soname_spec='${libname}${release}${shared_ext}$major'
14377 shlibpath_var=LIBPATH
14382 library_names_spec='$libname.ixlibrary $libname.a'
14383 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14384 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'
14388 library_names_spec='${libname}${shared_ext}'
14389 dynamic_linker="$host_os ld.so"
14390 shlibpath_var=LIBRARY_PATH
14396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14397 soname_spec='${libname}${release}${shared_ext}$major'
14398 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14399 shlibpath_var=LD_LIBRARY_PATH
14400 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14401 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14402 # the default ld.so.conf also contains /usr/contrib/lib and
14403 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14404 # libtool to hard-code these into programs
14407 cygwin* | mingw* | pw32*)
14408 version_type=windows
14413 case $GCC,$host_os in
14414 yes,cygwin* | yes,mingw* | yes,pw32*)
14415 library_names_spec='$libname.dll.a'
14416 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14417 postinstall_cmds='base_file=`basename \${file}`~
14418 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14419 dldir=$destdir/`dirname \$dlpath`~
14420 test -d \$dldir || mkdir -p \$dldir~
14421 $install_prog $dir/$dlname \$dldir/$dlname~
14422 chmod a+x \$dldir/$dlname'
14423 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14424 dlpath=$dir/\$dldll~
14426 shlibpath_overrides_runpath=yes
14430 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14431 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14432 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14435 # MinGW DLLs use traditional 'lib' prefix
14436 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14437 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14438 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14439 # It is most probably a Windows format PATH printed by
14440 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14441 # path with ; separators, and with drive letters. We can handle the
14442 # drive letters (cygwin fileutils understands them), so leave them,
14443 # especially as we might pass files found there to a mingw objdump,
14444 # which wouldn't understand a cygwinified path. Ahh.
14445 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14447 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14451 # pw32 DLLs use 'pw' prefix rather than 'lib'
14452 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14458 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14461 dynamic_linker='Win32 ld.exe'
14462 # FIXME: first we should search . and the directory the executable is in
14466 darwin* | rhapsody*)
14467 dynamic_linker="$host_os dyld"
14468 version_type=darwin
14471 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14472 soname_spec='${libname}${release}${major}$shared_ext'
14473 shlibpath_overrides_runpath=yes
14474 shlibpath_var=DYLD_LIBRARY_PATH
14475 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14476 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14477 if test "$GCC" = yes; then
14478 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"`
14480 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14482 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14490 soname_spec='${libname}${release}${shared_ext}$major'
14491 shlibpath_var=LD_LIBRARY_PATH
14502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14503 soname_spec='${libname}${release}${shared_ext}$major'
14504 shlibpath_var=LD_LIBRARY_PATH
14505 shlibpath_overrides_runpath=no
14506 hardcode_into_libs=yes
14507 dynamic_linker='GNU ld.so'
14510 freebsd* | dragonfly*)
14511 # DragonFly does not have aout. When/if they implement a new
14512 # versioning mechanism, adjust this.
14513 if test -x /usr/bin/objformat; then
14514 objformat=`/usr/bin/objformat`
14517 freebsd[123]*) objformat=aout ;;
14518 *) objformat=elf ;;
14521 version_type=freebsd-$objformat
14522 case $version_type in
14524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14529 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14533 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=yes
14538 freebsd3.[01]* | freebsdelf3.[01]*)
14539 shlibpath_overrides_runpath=yes
14540 hardcode_into_libs=yes
14542 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14543 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14544 shlibpath_overrides_runpath=no
14545 hardcode_into_libs=yes
14547 freebsd*) # from 4.6 on
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14559 soname_spec='${libname}${release}${shared_ext}$major'
14560 shlibpath_var=LD_LIBRARY_PATH
14561 hardcode_into_libs=yes
14564 hpux9* | hpux10* | hpux11*)
14565 # Give a soname corresponding to the major version so that dld.sl refuses to
14566 # link against other versions.
14573 hardcode_into_libs=yes
14574 dynamic_linker="$host_os dld.so"
14575 shlibpath_var=LD_LIBRARY_PATH
14576 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 if test "X$HPUX_IA64_MODE" = X32; then
14580 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14582 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14584 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14588 hardcode_into_libs=yes
14589 dynamic_linker="$host_os dld.sl"
14590 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14591 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14593 soname_spec='${libname}${release}${shared_ext}$major'
14594 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14595 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14599 dynamic_linker="$host_os dld.sl"
14600 shlibpath_var=SHLIB_PATH
14601 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14606 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14607 postinstall_cmds='chmod 555 $lib'
14614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14615 soname_spec='${libname}${release}${shared_ext}$major'
14616 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14617 shlibpath_var=LD_LIBRARY_PATH
14618 shlibpath_overrides_runpath=no
14619 hardcode_into_libs=yes
14622 irix5* | irix6* | nonstopux*)
14624 nonstopux*) version_type=nonstopux ;;
14626 if test "$lt_cv_prog_gnu_ld" = yes; then
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14637 irix5* | nonstopux*)
14638 libsuff= shlibsuff=
14641 case $LD in # libtool.m4 will add one of these switches to LD
14642 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14643 libsuff= shlibsuff= libmagic=32-bit;;
14644 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14645 libsuff=32 shlibsuff=N32 libmagic=N32;;
14646 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14647 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14648 *) libsuff= shlibsuff= libmagic=never-match;;
14652 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14653 shlibpath_overrides_runpath=no
14654 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14655 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14656 hardcode_into_libs=yes
14659 # No shared lib support for Linux oldld, aout, or coff.
14660 linux*oldld* | linux*aout* | linux*coff*)
14664 # This must be Linux ELF.
14669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670 soname_spec='${libname}${release}${shared_ext}$major'
14671 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14672 shlibpath_var=LD_LIBRARY_PATH
14673 shlibpath_overrides_runpath=no
14674 # This implies no fast_install, which is unacceptable.
14675 # Some rework will be needed to allow for fast_install
14676 # before this can be enabled.
14677 hardcode_into_libs=yes
14679 # Append ld.so.conf contents to the search path
14680 if test -f /etc/ld.so.conf; then
14681 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' ' '`
14682 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14685 # We used to test for /lib/ld.so.1 and disable shared libraries on
14686 # powerpc, because MkLinux only supported shared libraries with the
14687 # GNU dynamic linker. Since this was broken with cross compilers,
14688 # most powerpc-linux boxes support dynamic linking these days and
14689 # people can always --disable-shared, the test was removed, and we
14690 # assume the GNU/Linux dynamic linker is in use.
14691 dynamic_linker='GNU/Linux ld.so'
14698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14699 soname_spec='${libname}${release}${shared_ext}$major'
14700 shlibpath_var=LD_LIBRARY_PATH
14701 shlibpath_overrides_runpath=no
14702 hardcode_into_libs=yes
14703 dynamic_linker='GNU ld.so'
14710 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14713 dynamic_linker='NetBSD (a.out) ld.so'
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 dynamic_linker='NetBSD ld.elf_so'
14719 shlibpath_var=LD_LIBRARY_PATH
14720 shlibpath_overrides_runpath=yes
14721 hardcode_into_libs=yes
14726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14727 shlibpath_var=LD_LIBRARY_PATH
14728 shlibpath_overrides_runpath=yes
14735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14736 soname_spec='${libname}${release}${shared_ext}$major'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 shlibpath_overrides_runpath=yes
14743 sys_lib_dlsearch_path_spec="/usr/lib"
14745 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14747 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14748 *) need_version=no ;;
14750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14752 shlibpath_var=LD_LIBRARY_PATH
14753 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14755 openbsd2.[89] | openbsd2.[89].*)
14756 shlibpath_overrides_runpath=no
14759 shlibpath_overrides_runpath=yes
14763 shlibpath_overrides_runpath=yes
14768 libname_spec='$name'
14771 library_names_spec='$libname${shared_ext} $libname.a'
14772 dynamic_linker='OS/2 ld.exe'
14773 shlibpath_var=LIBPATH
14776 osf3* | osf4* | osf5*)
14780 soname_spec='${libname}${release}${shared_ext}$major'
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 shlibpath_var=LD_LIBRARY_PATH
14783 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14784 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14792 soname_spec='${libname}${release}${shared_ext}$major'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 shlibpath_overrides_runpath=yes
14795 hardcode_into_libs=yes
14796 # ldd complains unless libraries are executable
14797 postinstall_cmds='chmod +x $lib'
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14803 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14804 shlibpath_var=LD_LIBRARY_PATH
14805 shlibpath_overrides_runpath=yes
14806 if test "$with_gnu_ld" = yes; then
14814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14815 soname_spec='${libname}${release}${shared_ext}$major'
14816 shlibpath_var=LD_LIBRARY_PATH
14817 case $host_vendor in
14819 shlibpath_overrides_runpath=no
14821 export_dynamic_flag_spec='${wl}-Blargedynsym'
14822 runpath_var=LD_RUN_PATH
14830 shlibpath_overrides_runpath=no
14831 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14837 if test -d /usr/nec ;then
14839 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14840 soname_spec='$libname${shared_ext}.$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14845 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14846 version_type=freebsd-elf
14849 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14850 soname_spec='${libname}${release}${shared_ext}$major'
14851 shlibpath_var=LD_LIBRARY_PATH
14852 hardcode_into_libs=yes
14853 if test "$with_gnu_ld" = yes; then
14854 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14855 shlibpath_overrides_runpath=no
14857 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14858 shlibpath_overrides_runpath=yes
14861 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14865 sys_lib_dlsearch_path_spec='/usr/lib'
14870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14871 soname_spec='${libname}${release}${shared_ext}$major'
14872 shlibpath_var=LD_LIBRARY_PATH
14879 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14880 echo "${ECHO_T}$dynamic_linker" >&6
14881 test "$dynamic_linker" = no && can_build_shared=no
14883 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14884 if test "$GCC" = yes; then
14885 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14888 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14889 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14890 hardcode_action_F77=
14891 if test -n "$hardcode_libdir_flag_spec_F77" || \
14892 test -n "$runpath_var_F77" || \
14893 test "X$hardcode_automatic_F77" = "Xyes" ; then
14895 # We can hardcode non-existant directories.
14896 if test "$hardcode_direct_F77" != no &&
14897 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14898 # have to relink, otherwise we might link with an installed library
14899 # when we should be linking with a yet-to-be-installed one
14900 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14901 test "$hardcode_minus_L_F77" != no; then
14902 # Linking always hardcodes the temporary library directory.
14903 hardcode_action_F77=relink
14905 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14906 hardcode_action_F77=immediate
14909 # We cannot hardcode anything, or else we can only hardcode existing
14911 hardcode_action_F77=unsupported
14913 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14914 echo "${ECHO_T}$hardcode_action_F77" >&6
14916 if test "$hardcode_action_F77" = relink; then
14917 # Fast installation is not supported
14918 enable_fast_install=no
14919 elif test "$shlibpath_overrides_runpath" = yes ||
14920 test "$enable_shared" = no; then
14921 # Fast installation is not necessary
14922 enable_fast_install=needless
14926 # The else clause should only fire when bootstrapping the
14927 # libtool distribution, otherwise you forgot to ship ltmain.sh
14928 # with your package, and you will get complaints that there are
14929 # no rules to generate ltmain.sh.
14930 if test -f "$ltmain"; then
14931 # See if we are running on zsh, and set the options which allow our commands through
14932 # without removal of \ escapes.
14933 if test -n "${ZSH_VERSION+set}" ; then
14934 setopt NO_GLOB_SUBST
14936 # Now quote all the things that may contain metacharacters while being
14937 # careful not to overquote the AC_SUBSTed values. We take copies of the
14938 # variables and quote the copies for generation of the libtool script.
14939 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14941 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14942 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14943 deplibs_check_method reload_flag reload_cmds need_locks \
14944 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14945 lt_cv_sys_global_symbol_to_c_name_address \
14946 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14947 old_postinstall_cmds old_postuninstall_cmds \
14951 lt_prog_compiler_wl_F77 \
14952 lt_prog_compiler_pic_F77 \
14953 lt_prog_compiler_static_F77 \
14954 lt_prog_compiler_no_builtin_flag_F77 \
14955 export_dynamic_flag_spec_F77 \
14956 thread_safe_flag_spec_F77 \
14957 whole_archive_flag_spec_F77 \
14958 enable_shared_with_static_runtimes_F77 \
14959 old_archive_cmds_F77 \
14960 old_archive_from_new_cmds_F77 \
14961 predep_objects_F77 \
14962 postdep_objects_F77 \
14965 compiler_lib_search_path_F77 \
14967 archive_expsym_cmds_F77 \
14968 postinstall_cmds_F77 \
14969 postuninstall_cmds_F77 \
14970 old_archive_from_expsyms_cmds_F77 \
14971 allow_undefined_flag_F77 \
14972 no_undefined_flag_F77 \
14973 export_symbols_cmds_F77 \
14974 hardcode_libdir_flag_spec_F77 \
14975 hardcode_libdir_flag_spec_ld_F77 \
14976 hardcode_libdir_separator_F77 \
14977 hardcode_automatic_F77 \
14979 module_expsym_cmds_F77 \
14980 lt_cv_prog_compiler_c_o_F77 \
14981 exclude_expsyms_F77 \
14982 include_expsyms_F77; do
14985 old_archive_cmds_F77 | \
14986 old_archive_from_new_cmds_F77 | \
14987 archive_cmds_F77 | \
14988 archive_expsym_cmds_F77 | \
14989 module_cmds_F77 | \
14990 module_expsym_cmds_F77 | \
14991 old_archive_from_expsyms_cmds_F77 | \
14992 export_symbols_cmds_F77 | \
14993 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14994 postinstall_cmds | postuninstall_cmds | \
14995 old_postinstall_cmds | old_postuninstall_cmds | \
14996 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14997 # Double-quote double-evaled strings.
14998 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15001 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15007 *'\$0 --fallback-echo"')
15008 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15014 cat <<__EOF__ >> "$cfgfile"
15015 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15017 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15019 # Shell to use when invoking shell scripts.
15022 # Whether or not to build shared libraries.
15023 build_libtool_libs=$enable_shared
15025 # Whether or not to build static libraries.
15026 build_old_libs=$enable_static
15028 # Whether or not to add -lc for building shared libraries.
15029 build_libtool_need_lc=$archive_cmds_need_lc_F77
15031 # Whether or not to disallow shared libs when runtime libs are static
15032 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15034 # Whether or not to optimize for fast installation.
15035 fast_install=$enable_fast_install
15038 host_alias=$host_alias
15042 # The build system.
15043 build_alias=$build_alias
15047 # An echo program that does not interpret backslashes.
15052 AR_FLAGS=$lt_AR_FLAGS
15057 # LTCC compiler flags.
15058 LTCFLAGS=$lt_LTCFLAGS
15060 # A language-specific compiler.
15061 CC=$lt_compiler_F77
15063 # Is the compiler the GNU C compiler?
15069 # The linker used to build libraries.
15072 # Whether we need hard or soft links.
15075 # A BSD-compatible nm program.
15078 # A symbol stripping program
15081 # Used to examine libraries when file_magic_cmd begins "file"
15082 MAGIC_CMD=$MAGIC_CMD
15084 # Used on cygwin: DLL creation program.
15087 # Used on cygwin: object dumper.
15090 # Used on cygwin: assembler.
15093 # The name of the directory that contains temporary libtool files.
15096 # How to create reloadable object files.
15097 reload_flag=$lt_reload_flag
15098 reload_cmds=$lt_reload_cmds
15100 # How to pass a linker flag through the compiler.
15101 wl=$lt_lt_prog_compiler_wl_F77
15103 # Object file suffix (normally "o").
15104 objext="$ac_objext"
15106 # Old archive suffix (normally "a").
15109 # Shared library suffix (normally ".so").
15110 shrext_cmds='$shrext_cmds'
15112 # Executable file suffix (normally "").
15115 # Additional compiler flags for building library objects.
15116 pic_flag=$lt_lt_prog_compiler_pic_F77
15119 # What is the maximum length of a command?
15120 max_cmd_len=$lt_cv_sys_max_cmd_len
15122 # Does compiler simultaneously support -c and -o options?
15123 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15125 # Must we lock files when doing compilation?
15126 need_locks=$lt_need_locks
15128 # Do we need the lib prefix for modules?
15129 need_lib_prefix=$need_lib_prefix
15131 # Do we need a version for libraries?
15132 need_version=$need_version
15134 # Whether dlopen is supported.
15135 dlopen_support=$enable_dlopen
15137 # Whether dlopen of programs is supported.
15138 dlopen_self=$enable_dlopen_self
15140 # Whether dlopen of statically linked programs is supported.
15141 dlopen_self_static=$enable_dlopen_self_static
15143 # Compiler flag to prevent dynamic linking.
15144 link_static_flag=$lt_lt_prog_compiler_static_F77
15146 # Compiler flag to turn off builtin functions.
15147 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15149 # Compiler flag to allow reflexive dlopens.
15150 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15152 # Compiler flag to generate shared objects directly from archives.
15153 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15155 # Compiler flag to generate thread-safe objects.
15156 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15158 # Library versioning type.
15159 version_type=$version_type
15161 # Format of library name prefix.
15162 libname_spec=$lt_libname_spec
15164 # List of archive names. First name is the real one, the rest are links.
15165 # The last name is the one that the linker finds with -lNAME.
15166 library_names_spec=$lt_library_names_spec
15168 # The coded name of the library, if different from the real name.
15169 soname_spec=$lt_soname_spec
15171 # Commands used to build and install an old-style archive.
15173 old_archive_cmds=$lt_old_archive_cmds_F77
15174 old_postinstall_cmds=$lt_old_postinstall_cmds
15175 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15177 # Create an old-style archive from a shared archive.
15178 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15180 # Create a temporary old-style archive to link instead of a shared archive.
15181 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15183 # Commands used to build and install a shared archive.
15184 archive_cmds=$lt_archive_cmds_F77
15185 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15186 postinstall_cmds=$lt_postinstall_cmds
15187 postuninstall_cmds=$lt_postuninstall_cmds
15189 # Commands used to build a loadable module (assumed same as above if empty)
15190 module_cmds=$lt_module_cmds_F77
15191 module_expsym_cmds=$lt_module_expsym_cmds_F77
15193 # Commands to strip libraries.
15194 old_striplib=$lt_old_striplib
15195 striplib=$lt_striplib
15197 # Dependencies to place before the objects being linked to create a
15199 predep_objects=$lt_predep_objects_F77
15201 # Dependencies to place after the objects being linked to create a
15203 postdep_objects=$lt_postdep_objects_F77
15205 # Dependencies to place before the objects being linked to create a
15207 predeps=$lt_predeps_F77
15209 # Dependencies to place after the objects being linked to create a
15211 postdeps=$lt_postdeps_F77
15213 # The library search path used internally by the compiler when linking
15214 # a shared library.
15215 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15217 # Method to check whether dependent libraries are shared objects.
15218 deplibs_check_method=$lt_deplibs_check_method
15220 # Command to use when deplibs_check_method == file_magic.
15221 file_magic_cmd=$lt_file_magic_cmd
15223 # Flag that allows shared libraries with undefined symbols to be built.
15224 allow_undefined_flag=$lt_allow_undefined_flag_F77
15226 # Flag that forces no undefined symbols.
15227 no_undefined_flag=$lt_no_undefined_flag_F77
15229 # Commands used to finish a libtool library installation in a directory.
15230 finish_cmds=$lt_finish_cmds
15232 # Same as above, but a single script fragment to be evaled but not shown.
15233 finish_eval=$lt_finish_eval
15235 # Take the output of nm and produce a listing of raw symbols and C names.
15236 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15238 # Transform the output of nm in a proper C declaration
15239 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15241 # Transform the output of nm in a C name address pair
15242 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15244 # This is the shared library runtime path variable.
15245 runpath_var=$runpath_var
15247 # This is the shared library path variable.
15248 shlibpath_var=$shlibpath_var
15250 # Is shlibpath searched before the hard-coded library search path?
15251 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15253 # How to hardcode a shared library path into an executable.
15254 hardcode_action=$hardcode_action_F77
15256 # Whether we should hardcode library paths into libraries.
15257 hardcode_into_libs=$hardcode_into_libs
15259 # Flag to hardcode \$libdir into a binary during linking.
15260 # This must work even if \$libdir does not exist.
15261 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15263 # If ld is used when linking, flag to hardcode \$libdir into
15264 # a binary during linking. This must work even if \$libdir does
15266 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15268 # Whether we need a single -rpath flag with a separated argument.
15269 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15271 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15272 # resulting binary.
15273 hardcode_direct=$hardcode_direct_F77
15275 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15276 # resulting binary.
15277 hardcode_minus_L=$hardcode_minus_L_F77
15279 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15280 # the resulting binary.
15281 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15283 # Set to yes if building a shared library automatically hardcodes DIR into the library
15284 # and all subsequent libraries and executables linked against it.
15285 hardcode_automatic=$hardcode_automatic_F77
15287 # Variables whose values should be saved in libtool wrapper scripts and
15288 # restored at relink time.
15289 variables_saved_for_relink="$variables_saved_for_relink"
15291 # Whether libtool must link a program against all its dependency libraries.
15292 link_all_deplibs=$link_all_deplibs_F77
15294 # Compile-time system search path for libraries
15295 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15297 # Run-time system search path for libraries
15298 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15300 # Fix the shell variable \$srcfile for the compiler.
15301 fix_srcfile_path="$fix_srcfile_path_F77"
15303 # Set to yes if exported symbols are required.
15304 always_export_symbols=$always_export_symbols_F77
15306 # The commands to list exported symbols.
15307 export_symbols_cmds=$lt_export_symbols_cmds_F77
15309 # The commands to extract the exported symbol list from a shared archive.
15310 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15312 # Symbols that should not be listed in the preloaded symbols.
15313 exclude_expsyms=$lt_exclude_expsyms_F77
15315 # Symbols that must always be exported.
15316 include_expsyms=$lt_include_expsyms_F77
15318 # ### END LIBTOOL TAG CONFIG: $tagname
15324 # If there is no Makefile yet, we rely on a make rule to execute
15325 # `config.status --recheck' to rerun these tests and create the
15326 # libtool script then.
15327 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15328 if test -f "$ltmain_in"; then
15329 test -f Makefile && make "$ltmain"
15335 ac_cpp='$CPP $CPPFLAGS'
15336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15348 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15352 # Source file extension for Java test sources.
15355 # Object file extension for compiled Java test sources.
15359 # Code to be used in simple compile tests
15360 lt_simple_compile_test_code="class foo {}\n"
15362 # Code to be used in simple link tests
15363 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15365 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15367 # If no C compiler was specified, use CC.
15370 # If no C compiler flags were specified, use CFLAGS.
15371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15373 # Allow CC to be a program name with arguments.
15377 # save warnings/boilerplate of simple test code
15378 ac_outfile=conftest.$ac_objext
15379 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15380 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15381 _lt_compiler_boilerplate=`cat conftest.err`
15384 ac_outfile=conftest.$ac_objext
15385 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15386 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15387 _lt_linker_boilerplate=`cat conftest.err`
15391 # Allow CC to be a program name with arguments.
15396 for cc_temp in $compiler""; do
15398 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15399 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15404 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15407 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15408 archive_cmds_need_lc_GCJ=no
15410 old_archive_cmds_GCJ=$old_archive_cmds
15413 ## There is no encapsulation within the following macros, do not change
15414 ## the running order or otherwise move them around unless you know exactly
15415 ## what you are doing...
15417 lt_prog_compiler_no_builtin_flag_GCJ=
15419 if test "$GCC" = yes; then
15420 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15423 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15424 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15425 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 lt_cv_prog_compiler_rtti_exceptions=no
15429 ac_outfile=conftest.$ac_objext
15430 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15431 lt_compiler_flag="-fno-rtti -fno-exceptions"
15432 # Insert the option either (1) after the last *FLAGS variable, or
15433 # (2) before a word containing "conftest.", or (3) at the end.
15434 # Note that $ac_compile itself does not contain backslashes and begins
15435 # with a dollar sign (not a hyphen), so the echo should work correctly.
15436 # The option is referenced via a variable to avoid confusing sed.
15437 lt_compile=`echo "$ac_compile" | $SED \
15438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15440 -e 's:$: $lt_compiler_flag:'`
15441 (eval echo "\"\$as_me:15441: $lt_compile\"" >&5)
15442 (eval "$lt_compile" 2>conftest.err)
15444 cat conftest.err >&5
15445 echo "$as_me:15445: \$? = $ac_status" >&5
15446 if (exit $ac_status) && test -s "$ac_outfile"; then
15447 # The compiler can only warn and ignore the option if not recognized
15448 # So say no if there are warnings other than the usual output.
15449 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15450 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15451 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15452 lt_cv_prog_compiler_rtti_exceptions=yes
15458 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15459 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15461 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15462 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15469 lt_prog_compiler_wl_GCJ=
15470 lt_prog_compiler_pic_GCJ=
15471 lt_prog_compiler_static_GCJ=
15473 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15474 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15476 if test "$GCC" = yes; then
15477 lt_prog_compiler_wl_GCJ='-Wl,'
15478 lt_prog_compiler_static_GCJ='-static'
15482 # All AIX code is PIC.
15483 if test "$host_cpu" = ia64; then
15484 # AIX 5 now supports IA64 processor
15485 lt_prog_compiler_static_GCJ='-Bstatic'
15490 # FIXME: we need at least 68020 code to build shared libraries, but
15491 # adding the `-m68020' flag to GCC prevents building anything better,
15493 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15496 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15497 # PIC is the default for these OSes.
15500 mingw* | pw32* | os2*)
15501 # This hack is so that the source file can tell whether it is being
15502 # built for inclusion in a dll (and should export symbols for example).
15503 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15506 darwin* | rhapsody*)
15507 # PIC is the default on this platform
15508 # Common symbols not allowed in MH_DYLIB files
15509 lt_prog_compiler_pic_GCJ='-fno-common'
15513 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15514 # Instead, we relocate shared libraries at runtime.
15518 # Just because we use GCC doesn't mean we suddenly get shared libraries
15519 # on systems that don't support them.
15520 lt_prog_compiler_can_build_shared_GCJ=no
15525 if test -d /usr/nec; then
15526 lt_prog_compiler_pic_GCJ=-Kconform_pic
15531 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15532 # not for PA HP-UX.
15538 lt_prog_compiler_pic_GCJ='-fPIC'
15544 lt_prog_compiler_pic_GCJ='-fPIC'
15548 # PORTME Check for flag to pass linker flags through the system compiler.
15551 lt_prog_compiler_wl_GCJ='-Wl,'
15552 if test "$host_cpu" = ia64; then
15553 # AIX 5 now supports IA64 processor
15554 lt_prog_compiler_static_GCJ='-Bstatic'
15556 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15560 # PIC is the default on this platform
15561 # Common symbols not allowed in MH_DYLIB files
15562 case $cc_basename in
15564 lt_prog_compiler_pic_GCJ='-qnocommon'
15565 lt_prog_compiler_wl_GCJ='-Wl,'
15570 mingw* | pw32* | os2*)
15571 # This hack is so that the source file can tell whether it is being
15572 # built for inclusion in a dll (and should export symbols for example).
15573 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15576 hpux9* | hpux10* | hpux11*)
15577 lt_prog_compiler_wl_GCJ='-Wl,'
15578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15579 # not for PA HP-UX.
15585 lt_prog_compiler_pic_GCJ='+Z'
15588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15589 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15592 irix5* | irix6* | nonstopux*)
15593 lt_prog_compiler_wl_GCJ='-Wl,'
15594 # PIC (with -KPIC) is the default.
15595 lt_prog_compiler_static_GCJ='-non_shared'
15599 lt_prog_compiler_pic_GCJ='-KPIC'
15600 lt_prog_compiler_static_GCJ='-Bstatic'
15604 case $cc_basename in
15606 lt_prog_compiler_wl_GCJ='-Wl,'
15607 lt_prog_compiler_pic_GCJ='-KPIC'
15608 lt_prog_compiler_static_GCJ='-static'
15610 pgcc* | pgf77* | pgf90* | pgf95*)
15611 # Portland Group compilers (*not* the Pentium gcc compiler,
15612 # which looks to be a dead project)
15613 lt_prog_compiler_wl_GCJ='-Wl,'
15614 lt_prog_compiler_pic_GCJ='-fpic'
15615 lt_prog_compiler_static_GCJ='-Bstatic'
15618 lt_prog_compiler_wl_GCJ='-Wl,'
15619 # All Alpha code is PIC.
15620 lt_prog_compiler_static_GCJ='-non_shared'
15625 osf3* | osf4* | osf5*)
15626 lt_prog_compiler_wl_GCJ='-Wl,'
15627 # All OSF/1 code is PIC.
15628 lt_prog_compiler_static_GCJ='-non_shared'
15632 lt_prog_compiler_pic_GCJ='-KPIC'
15633 lt_prog_compiler_static_GCJ='-Bstatic'
15634 case $cc_basename in
15635 f77* | f90* | f95*)
15636 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15638 lt_prog_compiler_wl_GCJ='-Wl,';;
15643 lt_prog_compiler_wl_GCJ='-Qoption ld '
15644 lt_prog_compiler_pic_GCJ='-PIC'
15645 lt_prog_compiler_static_GCJ='-Bstatic'
15648 sysv4 | sysv4.2uw2* | sysv4.3*)
15649 lt_prog_compiler_wl_GCJ='-Wl,'
15650 lt_prog_compiler_pic_GCJ='-KPIC'
15651 lt_prog_compiler_static_GCJ='-Bstatic'
15655 if test -d /usr/nec ;then
15656 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15657 lt_prog_compiler_static_GCJ='-Bstatic'
15661 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15662 lt_prog_compiler_wl_GCJ='-Wl,'
15663 lt_prog_compiler_pic_GCJ='-KPIC'
15664 lt_prog_compiler_static_GCJ='-Bstatic'
15668 lt_prog_compiler_wl_GCJ='-Wl,'
15669 lt_prog_compiler_can_build_shared_GCJ=no
15673 lt_prog_compiler_pic_GCJ='-pic'
15674 lt_prog_compiler_static_GCJ='-Bstatic'
15678 lt_prog_compiler_can_build_shared_GCJ=no
15683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15684 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15687 # Check to make sure the PIC flag actually works.
15689 if test -n "$lt_prog_compiler_pic_GCJ"; then
15691 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15692 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15693 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15694 echo $ECHO_N "(cached) $ECHO_C" >&6
15696 lt_prog_compiler_pic_works_GCJ=no
15697 ac_outfile=conftest.$ac_objext
15698 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15699 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15700 # Insert the option either (1) after the last *FLAGS variable, or
15701 # (2) before a word containing "conftest.", or (3) at the end.
15702 # Note that $ac_compile itself does not contain backslashes and begins
15703 # with a dollar sign (not a hyphen), so the echo should work correctly.
15704 # The option is referenced via a variable to avoid confusing sed.
15705 lt_compile=`echo "$ac_compile" | $SED \
15706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15708 -e 's:$: $lt_compiler_flag:'`
15709 (eval echo "\"\$as_me:15709: $lt_compile\"" >&5)
15710 (eval "$lt_compile" 2>conftest.err)
15712 cat conftest.err >&5
15713 echo "$as_me:15713: \$? = $ac_status" >&5
15714 if (exit $ac_status) && test -s "$ac_outfile"; then
15715 # The compiler can only warn and ignore the option if not recognized
15716 # So say no if there are warnings other than the usual output.
15717 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15718 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15719 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15720 lt_prog_compiler_pic_works_GCJ=yes
15726 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15727 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15729 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15730 case $lt_prog_compiler_pic_GCJ in
15732 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15735 lt_prog_compiler_pic_GCJ=
15736 lt_prog_compiler_can_build_shared_GCJ=no
15741 # For platforms which do not support PIC, -DPIC is meaningless:
15743 lt_prog_compiler_pic_GCJ=
15746 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15751 # Check to make sure the static flag actually works.
15753 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15754 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15755 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15756 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15759 lt_prog_compiler_static_works_GCJ=no
15760 save_LDFLAGS="$LDFLAGS"
15761 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15762 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15763 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15764 # The linker can only warn and ignore the option if not recognized
15765 # So say no if there are warnings
15766 if test -s conftest.err; then
15767 # Append any errors to the config.log.
15768 cat conftest.err 1>&5
15769 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15770 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15771 if diff conftest.exp conftest.er2 >/dev/null; then
15772 lt_prog_compiler_static_works_GCJ=yes
15775 lt_prog_compiler_static_works_GCJ=yes
15779 LDFLAGS="$save_LDFLAGS"
15782 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15783 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15785 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15788 lt_prog_compiler_static_GCJ=
15792 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15793 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15794 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15795 echo $ECHO_N "(cached) $ECHO_C" >&6
15797 lt_cv_prog_compiler_c_o_GCJ=no
15798 $rm -r conftest 2>/dev/null
15802 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15804 lt_compiler_flag="-o out/conftest2.$ac_objext"
15805 # Insert the option either (1) after the last *FLAGS variable, or
15806 # (2) before a word containing "conftest.", or (3) at the end.
15807 # Note that $ac_compile itself does not contain backslashes and begins
15808 # with a dollar sign (not a hyphen), so the echo should work correctly.
15809 lt_compile=`echo "$ac_compile" | $SED \
15810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15812 -e 's:$: $lt_compiler_flag:'`
15813 (eval echo "\"\$as_me:15813: $lt_compile\"" >&5)
15814 (eval "$lt_compile" 2>out/conftest.err)
15816 cat out/conftest.err >&5
15817 echo "$as_me:15817: \$? = $ac_status" >&5
15818 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15820 # The compiler can only warn and ignore the option if not recognized
15821 # So say no if there are warnings
15822 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15823 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15824 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15825 lt_cv_prog_compiler_c_o_GCJ=yes
15830 # SGI C++ compiler will create directory out/ii_files/ for
15831 # template instantiation
15832 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15833 $rm out/* && rmdir out
15839 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15840 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15843 hard_links="nottested"
15844 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15845 # do not overwrite the value of need_locks provided by the user
15846 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15847 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15850 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15852 ln conftest.a conftest.b 2>&5 || hard_links=no
15853 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15854 echo "$as_me:$LINENO: result: $hard_links" >&5
15855 echo "${ECHO_T}$hard_links" >&6
15856 if test "$hard_links" = no; then
15857 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15858 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15865 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15866 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15869 allow_undefined_flag_GCJ=
15870 enable_shared_with_static_runtimes_GCJ=no
15872 archive_expsym_cmds_GCJ=
15873 old_archive_From_new_cmds_GCJ=
15874 old_archive_from_expsyms_cmds_GCJ=
15875 export_dynamic_flag_spec_GCJ=
15876 whole_archive_flag_spec_GCJ=
15877 thread_safe_flag_spec_GCJ=
15878 hardcode_libdir_flag_spec_GCJ=
15879 hardcode_libdir_flag_spec_ld_GCJ=
15880 hardcode_libdir_separator_GCJ=
15881 hardcode_direct_GCJ=no
15882 hardcode_minus_L_GCJ=no
15883 hardcode_shlibpath_var_GCJ=unsupported
15884 link_all_deplibs_GCJ=unknown
15885 hardcode_automatic_GCJ=no
15887 module_expsym_cmds_GCJ=
15888 always_export_symbols_GCJ=no
15889 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15890 # include_expsyms should be a list of space-separated symbols to be *always*
15891 # included in the symbol list
15892 include_expsyms_GCJ=
15893 # exclude_expsyms can be an extended regexp of symbols to exclude
15894 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15895 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15896 # as well as any symbol that contains `d'.
15897 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15898 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15899 # platforms (ab)use it in PIC code, but their linkers get confused if
15900 # the symbol is explicitly referenced. Since portable code cannot
15901 # rely on this symbol name, it's probably fine to never include it in
15902 # preloaded symbol tables.
15903 extract_expsyms_cmds=
15904 # Just being paranoid about ensuring that cc_basename is set.
15905 for cc_temp in $compiler""; do
15907 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15908 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15913 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15916 cygwin* | mingw* | pw32*)
15917 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15918 # When not using gcc, we currently assume that we are using
15919 # Microsoft Visual C++.
15920 if test "$GCC" != yes; then
15925 # we just hope/assume this is gcc and not c89 (= MSVC++)
15934 if test "$with_gnu_ld" = yes; then
15935 # If archive_cmds runs LD, not CC, wlarc should be empty
15938 # Set some defaults for GNU ld with shared library support. These
15939 # are reset later if shared libraries are not supported. Putting them
15940 # here allows them to be overridden if necessary.
15941 runpath_var=LD_RUN_PATH
15942 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15943 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15944 # ancient GNU ld didn't support --whole-archive et. al.
15945 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15946 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15948 whole_archive_flag_spec_GCJ=
15950 supports_anon_versioning=no
15951 case `$LD -v 2>/dev/null` in
15952 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15953 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15954 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15955 *\ 2.11.*) ;; # other 2.11 versions
15956 *) supports_anon_versioning=yes ;;
15959 # See if GNU ld supports shared libraries.
15961 aix3* | aix4* | aix5*)
15962 # On AIX/PPC, the GNU linker is very broken
15963 if test "$host_cpu" != ia64; then
15967 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15968 *** to be unable to reliably create shared libraries on AIX.
15969 *** Therefore, libtool is disabling shared libraries support. If you
15970 *** really care for shared libraries, you may want to modify your PATH
15971 *** so that a non-GNU linker is found, and then restart.
15978 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)'
15979 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15980 hardcode_minus_L_GCJ=yes
15982 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15983 # that the semantics of dynamic libraries on AmigaOS, at least up
15984 # to version 4, is to share data among multiple programs linked
15985 # with the same dynamic library. Since this doesn't match the
15986 # behavior of shared libraries on other platforms, we can't use
15992 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15993 allow_undefined_flag_GCJ=unsupported
15994 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15995 # support --undefined. This deserves some investigation. FIXME
15996 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002 cygwin* | mingw* | pw32*)
16003 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16004 # as there is no search path for DLLs.
16005 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16006 allow_undefined_flag_GCJ=unsupported
16007 always_export_symbols_GCJ=no
16008 enable_shared_with_static_runtimes_GCJ=yes
16009 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16011 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16012 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16013 # If the export-symbols file already is a .def file (1st line
16014 # is EXPORTS), use it as is; otherwise, prepend...
16015 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16016 cp $export_symbols $output_objdir/$soname.def;
16018 echo EXPORTS > $output_objdir/$soname.def;
16019 cat $export_symbols >> $output_objdir/$soname.def;
16021 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16028 hardcode_direct_GCJ=no
16029 hardcode_shlibpath_var_GCJ=no
16030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16031 export_dynamic_flag_spec_GCJ='${wl}-E'
16032 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16033 # Instead, shared libraries are loaded at an image base (0x10000000 by
16034 # default) and relocated if they conflict, which is a slow very memory
16035 # consuming and fragmenting process. To avoid this, we pick a random,
16036 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16037 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16038 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'
16039 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'
16043 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16045 case $cc_basename,$host_cpu in
16046 pgcc*) # Portland Group C compiler
16047 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'
16048 tmp_addflag=' $pic_flag'
16050 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16051 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'
16052 tmp_addflag=' $pic_flag -Mnomain' ;;
16053 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16054 tmp_addflag=' -i_dynamic' ;;
16055 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16056 tmp_addflag=' -i_dynamic -nofor_main' ;;
16057 ifc* | ifort*) # Intel Fortran compiler
16058 tmp_addflag=' -nofor_main' ;;
16060 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16062 if test $supports_anon_versioning = yes; then
16063 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16064 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16065 $echo "local: *; };" >> $output_objdir/$libname.ver~
16066 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16075 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16078 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16079 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16084 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16088 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16089 *** create shared libraries on Solaris systems. Therefore, libtool
16090 *** is disabling shared libraries support. We urge you to upgrade GNU
16091 *** binutils to release 2.9.1 or newer. Another option is to modify
16092 *** your PATH or compiler configuration so that the native linker is
16093 *** used, and then restart.
16096 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16097 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16098 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16104 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16105 case `$LD -v 2>&1` in
16106 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16110 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16111 *** reliably create shared libraries on SCO systems. Therefore, libtool
16112 *** is disabling shared libraries support. We urge you to upgrade GNU
16113 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16114 *** your PATH or compiler configuration so that the native linker is
16115 *** used, and then restart.
16120 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16121 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16122 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16123 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16132 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16134 hardcode_direct_GCJ=yes
16135 hardcode_shlibpath_var_GCJ=no
16139 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16140 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16141 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16148 if test "$ld_shlibs_GCJ" = no; then
16150 hardcode_libdir_flag_spec_GCJ=
16151 export_dynamic_flag_spec_GCJ=
16152 whole_archive_flag_spec_GCJ=
16155 # PORTME fill in a description of your system's linker (not GNU ld)
16158 allow_undefined_flag_GCJ=unsupported
16159 always_export_symbols_GCJ=yes
16160 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'
16161 # Note: this linker hardcodes the directories in LIBPATH if there
16162 # are no directories specified by -L.
16163 hardcode_minus_L_GCJ=yes
16164 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16165 # Neither direct hardcoding nor static linking is supported with a
16167 hardcode_direct_GCJ=unsupported
16172 if test "$host_cpu" = ia64; then
16173 # On IA64, the linker does run time linking by default, so we don't
16174 # have to do anything special.
16175 aix_use_runtimelinking=no
16176 exp_sym_flag='-Bexport'
16179 # If we're using GNU nm, then we don't want the "-C" option.
16180 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16181 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16182 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'
16184 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'
16186 aix_use_runtimelinking=no
16188 # Test if we are trying to use run time linking or normal
16189 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16190 # need to do runtime linking.
16191 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16192 for ld_flag in $LDFLAGS; do
16193 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16194 aix_use_runtimelinking=yes
16201 exp_sym_flag='-bexport'
16202 no_entry_flag='-bnoentry'
16205 # When large executables or shared objects are built, AIX ld can
16206 # have problems creating the table of contents. If linking a library
16207 # or program results in "error TOC overflow" add -mminimal-toc to
16208 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16209 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16211 archive_cmds_GCJ=''
16212 hardcode_direct_GCJ=yes
16213 hardcode_libdir_separator_GCJ=':'
16214 link_all_deplibs_GCJ=yes
16216 if test "$GCC" = yes; then
16217 case $host_os in aix4.[012]|aix4.[012].*)
16218 # We only want to do this on AIX 4.2 and lower, the check
16219 # below for broken collect2 doesn't work under 4.3+
16220 collect2name=`${CC} -print-prog-name=collect2`
16221 if test -f "$collect2name" && \
16222 strings "$collect2name" | grep resolve_lib_name >/dev/null
16224 # We have reworked collect2
16225 hardcode_direct_GCJ=yes
16227 # We have old collect2
16228 hardcode_direct_GCJ=unsupported
16229 # It fails to find uninstalled libraries when the uninstalled
16230 # path is not listed in the libpath. Setting hardcode_minus_L
16231 # to unsupported forces relinking
16232 hardcode_minus_L_GCJ=yes
16233 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16234 hardcode_libdir_separator_GCJ=
16238 shared_flag='-shared'
16239 if test "$aix_use_runtimelinking" = yes; then
16240 shared_flag="$shared_flag "'${wl}-G'
16244 if test "$host_cpu" = ia64; then
16245 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16246 # chokes on -Wl,-G. The following line is correct:
16249 if test "$aix_use_runtimelinking" = yes; then
16250 shared_flag='${wl}-G'
16252 shared_flag='${wl}-bM:SRE'
16257 # It seems that -bexpall does not export symbols beginning with
16258 # underscore (_), so it is better to generate a list of symbols to export.
16259 always_export_symbols_GCJ=yes
16260 if test "$aix_use_runtimelinking" = yes; then
16261 # Warning - without using the other runtime loading flags (-brtl),
16262 # -berok will link without error, but may produce a broken library.
16263 allow_undefined_flag_GCJ='-berok'
16264 # Determine the default libpath from the value encoded in an empty executable.
16265 cat >conftest.$ac_ext <<_ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */
16280 rm -f conftest.$ac_objext conftest$ac_exeext
16281 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16282 (eval $ac_link) 2>conftest.er1
16284 grep -v '^ *+' conftest.er1 >conftest.err
16286 cat conftest.err >&5
16287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16288 (exit $ac_status); } &&
16289 { ac_try='test -z "$ac_c_werror_flag"
16290 || test ! -s conftest.err'
16291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16292 (eval $ac_try) 2>&5
16294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16295 (exit $ac_status); }; } &&
16296 { ac_try='test -s conftest$ac_exeext'
16297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16298 (eval $ac_try) 2>&5
16300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); }; }; then
16303 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16305 # Check for a 64-bit object if we didn't find anything.
16306 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; }
16309 echo "$as_me: failed program was:" >&5
16310 sed 's/^/| /' conftest.$ac_ext >&5
16313 rm -f conftest.err conftest.$ac_objext \
16314 conftest$ac_exeext conftest.$ac_ext
16315 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16317 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16318 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"
16320 if test "$host_cpu" = ia64; then
16321 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16322 allow_undefined_flag_GCJ="-z nodefs"
16323 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"
16325 # Determine the default libpath from the value encoded in an empty executable.
16326 cat >conftest.$ac_ext <<_ACEOF
16329 cat confdefs.h >>conftest.$ac_ext
16330 cat >>conftest.$ac_ext <<_ACEOF
16331 /* end confdefs.h. */
16341 rm -f conftest.$ac_objext conftest$ac_exeext
16342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16343 (eval $ac_link) 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } &&
16350 { ac_try='test -z "$ac_c_werror_flag"
16351 || test ! -s conftest.err'
16352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16353 (eval $ac_try) 2>&5
16355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16356 (exit $ac_status); }; } &&
16357 { ac_try='test -s conftest$ac_exeext'
16358 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16359 (eval $ac_try) 2>&5
16361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16362 (exit $ac_status); }; }; then
16364 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16366 # Check for a 64-bit object if we didn't find anything.
16367 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; }
16370 echo "$as_me: failed program was:" >&5
16371 sed 's/^/| /' conftest.$ac_ext >&5
16374 rm -f conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16378 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16379 # Warning - without using the other run time loading flags,
16380 # -berok will link without error, but may produce a broken library.
16381 no_undefined_flag_GCJ=' ${wl}-bernotok'
16382 allow_undefined_flag_GCJ=' ${wl}-berok'
16383 # Exported symbols can be pulled into shared objects from archives
16384 whole_archive_flag_spec_GCJ='$convenience'
16385 archive_cmds_need_lc_GCJ=yes
16386 # This is similar to how AIX traditionally builds its shared libraries.
16387 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'
16393 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)'
16394 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16395 hardcode_minus_L_GCJ=yes
16396 # see comment about different semantics on the GNU ld section
16401 export_dynamic_flag_spec_GCJ=-rdynamic
16404 cygwin* | mingw* | pw32*)
16405 # When not using gcc, we currently assume that we are using
16406 # Microsoft Visual C++.
16407 # hardcode_libdir_flag_spec is actually meaningless, as there is
16408 # no search path for DLLs.
16409 hardcode_libdir_flag_spec_GCJ=' '
16410 allow_undefined_flag_GCJ=unsupported
16411 # Tell ltmain to make .lib files, not .a files.
16413 # Tell ltmain to make .dll files, not .so files.
16415 # FIXME: Setting linknames here is a bad hack.
16416 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16417 # The linker will automatically build a .lib file if we build a DLL.
16418 old_archive_From_new_cmds_GCJ='true'
16419 # FIXME: Should let the user specify the lib program.
16420 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16421 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16422 enable_shared_with_static_runtimes_GCJ=yes
16425 darwin* | rhapsody*)
16427 rhapsody* | darwin1.[012])
16428 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16431 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16432 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16434 case ${MACOSX_DEPLOYMENT_TARGET} in
16436 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16439 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16445 archive_cmds_need_lc_GCJ=no
16446 hardcode_direct_GCJ=no
16447 hardcode_automatic_GCJ=yes
16448 hardcode_shlibpath_var_GCJ=unsupported
16449 whole_archive_flag_spec_GCJ=''
16450 link_all_deplibs_GCJ=yes
16451 if test "$GCC" = yes ; then
16452 output_verbose_link_cmd='echo'
16453 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16454 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16455 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16456 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}'
16457 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}'
16459 case $cc_basename in
16461 output_verbose_link_cmd='echo'
16462 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16463 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16464 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16465 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}'
16466 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}'
16476 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16478 hardcode_shlibpath_var_GCJ=no
16485 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16486 # support. Future versions do this automatically, but an explicit c++rt0.o
16487 # does not break anything, and helps significantly (at the cost of a little
16490 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16491 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16492 hardcode_direct_GCJ=yes
16493 hardcode_shlibpath_var_GCJ=no
16496 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16498 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16499 hardcode_direct_GCJ=yes
16500 hardcode_minus_L_GCJ=yes
16501 hardcode_shlibpath_var_GCJ=no
16504 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16505 freebsd* | kfreebsd*-gnu | dragonfly*)
16506 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16507 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16508 hardcode_direct_GCJ=yes
16509 hardcode_shlibpath_var_GCJ=no
16513 if test "$GCC" = yes; then
16514 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'
16516 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'
16518 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16519 hardcode_libdir_separator_GCJ=:
16520 hardcode_direct_GCJ=yes
16522 # hardcode_minus_L: Not really in the search PATH,
16523 # but as the default location of the library.
16524 hardcode_minus_L_GCJ=yes
16525 export_dynamic_flag_spec_GCJ='${wl}-E'
16529 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16530 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16532 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16534 if test "$with_gnu_ld" = no; then
16535 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16536 hardcode_libdir_separator_GCJ=:
16538 hardcode_direct_GCJ=yes
16539 export_dynamic_flag_spec_GCJ='${wl}-E'
16541 # hardcode_minus_L: Not really in the search PATH,
16542 # but as the default location of the library.
16543 hardcode_minus_L_GCJ=yes
16548 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16551 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16554 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16557 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16563 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16566 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16569 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16573 if test "$with_gnu_ld" = no; then
16574 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16575 hardcode_libdir_separator_GCJ=:
16579 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16580 hardcode_direct_GCJ=no
16581 hardcode_shlibpath_var_GCJ=no
16584 hardcode_direct_GCJ=yes
16585 export_dynamic_flag_spec_GCJ='${wl}-E'
16587 # hardcode_minus_L: Not really in the search PATH,
16588 # but as the default location of the library.
16589 hardcode_minus_L_GCJ=yes
16595 irix5* | irix6* | nonstopux*)
16596 if test "$GCC" = yes; then
16597 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'
16599 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'
16600 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16602 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16603 hardcode_libdir_separator_GCJ=:
16604 link_all_deplibs_GCJ=yes
16608 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16609 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16611 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16613 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16614 hardcode_direct_GCJ=yes
16615 hardcode_shlibpath_var_GCJ=no
16619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16620 hardcode_direct_GCJ=yes
16621 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16622 hardcode_libdir_separator_GCJ=:
16623 hardcode_shlibpath_var_GCJ=no
16627 hardcode_direct_GCJ=yes
16628 hardcode_shlibpath_var_GCJ=no
16629 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16630 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16631 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16632 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16633 export_dynamic_flag_spec_GCJ='${wl}-E'
16636 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16637 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16638 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16641 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16642 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16649 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16650 hardcode_minus_L_GCJ=yes
16651 allow_undefined_flag_GCJ=unsupported
16652 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'
16653 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16657 if test "$GCC" = yes; then
16658 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16659 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'
16661 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16662 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'
16664 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16665 hardcode_libdir_separator_GCJ=:
16668 osf4* | osf5*) # as osf3* with the addition of -msym flag
16669 if test "$GCC" = yes; then
16670 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16671 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'
16672 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16674 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16675 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'
16676 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~
16677 $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'
16679 # Both c and cxx compiler support -rpath directly
16680 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16682 hardcode_libdir_separator_GCJ=:
16686 no_undefined_flag_GCJ=' -z text'
16687 if test "$GCC" = yes; then
16689 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16690 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16691 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16694 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16695 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16696 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16698 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16699 hardcode_shlibpath_var_GCJ=no
16701 solaris2.[0-5] | solaris2.[0-5].*) ;;
16703 # The compiler driver will combine linker options so we
16704 # cannot just pass the convience library names through
16705 # without $wl, iff we do not link with $LD.
16706 # Luckily, gcc supports the same syntax we need for Sun Studio.
16707 # Supported since Solaris 2.6 (maybe 2.5.1?)
16710 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16712 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' ;;
16715 link_all_deplibs_GCJ=yes
16719 if test "x$host_vendor" = xsequent; then
16720 # Use $CC to link under sequent, because it throws in some extra .o
16721 # files that make .init and .fini sections work.
16722 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16724 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16726 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16727 hardcode_direct_GCJ=yes
16728 hardcode_minus_L_GCJ=yes
16729 hardcode_shlibpath_var_GCJ=no
16733 case $host_vendor in
16735 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16736 hardcode_direct_GCJ=yes # is this really true???
16739 ## LD is ld it makes a PLAMLIB
16740 ## CC just makes a GrossModule.
16741 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16742 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16743 hardcode_direct_GCJ=no
16746 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16747 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16750 runpath_var='LD_RUN_PATH'
16751 hardcode_shlibpath_var_GCJ=no
16755 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16756 hardcode_shlibpath_var_GCJ=no
16757 export_dynamic_flag_spec_GCJ='-Bexport'
16761 if test -d /usr/nec; then
16762 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16763 hardcode_shlibpath_var_GCJ=no
16764 runpath_var=LD_RUN_PATH
16765 hardcode_runpath_var=yes
16770 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16771 no_undefined_flag_GCJ='${wl}-z,text'
16772 archive_cmds_need_lc_GCJ=no
16773 hardcode_shlibpath_var_GCJ=no
16774 runpath_var='LD_RUN_PATH'
16776 if test "$GCC" = yes; then
16777 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16778 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16780 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16781 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16785 sysv5* | sco3.2v5* | sco5v6*)
16786 # Note: We can NOT use -z defs as we might desire, because we do not
16787 # link with -lc, and that would cause any symbols used from libc to
16788 # always be unresolved, which means just about no library would
16789 # ever link correctly. If we're not using GNU ld we use -z text
16790 # though, which does catch some bad symbols but isn't as heavy-handed
16792 no_undefined_flag_GCJ='${wl}-z,text'
16793 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16794 archive_cmds_need_lc_GCJ=no
16795 hardcode_shlibpath_var_GCJ=no
16796 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16797 hardcode_libdir_separator_GCJ=':'
16798 link_all_deplibs_GCJ=yes
16799 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16800 runpath_var='LD_RUN_PATH'
16802 if test "$GCC" = yes; then
16803 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16804 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16806 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16807 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16812 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16813 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16814 hardcode_shlibpath_var_GCJ=no
16823 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16824 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16825 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16828 # Do we need to explicitly link libc?
16830 case "x$archive_cmds_need_lc_GCJ" in
16832 # Assume -lc should be added
16833 archive_cmds_need_lc_GCJ=yes
16835 if test "$enable_shared" = yes && test "$GCC" = yes; then
16836 case $archive_cmds_GCJ in
16838 # FIXME: we may have to deal with multi-command sequences.
16841 # Test whether the compiler implicitly links with -lc since on some
16842 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16843 # to ld, don't add -lc before -lgcc.
16844 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16845 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16847 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16849 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16850 (eval $ac_compile) 2>&5
16852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16853 (exit $ac_status); } 2>conftest.err; then
16856 libobjs=conftest.$ac_objext
16858 wl=$lt_prog_compiler_wl_GCJ
16859 pic_flag=$lt_prog_compiler_pic_GCJ
16865 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16866 allow_undefined_flag_GCJ=
16867 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16868 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); }
16873 archive_cmds_need_lc_GCJ=no
16875 archive_cmds_need_lc_GCJ=yes
16877 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16879 cat conftest.err 1>&5
16882 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16883 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16890 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16891 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16892 library_names_spec=
16893 libname_spec='lib$name'
16897 postuninstall_cmds=
16901 shlibpath_overrides_runpath=unknown
16903 dynamic_linker="$host_os ld.so"
16904 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16905 if test "$GCC" = yes; then
16906 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16907 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16908 # if the path contains ";" then we assume it to be the separator
16909 # otherwise default to the standard path separator (i.e. ":") - it is
16910 # assumed that no part of a normal pathname contains ";" but that should
16911 # okay in the real world where ";" in dirpaths is itself problematic.
16912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16914 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16917 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16919 need_lib_prefix=unknown
16920 hardcode_into_libs=no
16922 # when you set need_version to no, make sure it does not cause -set_version
16923 # flags to be left without arguments
16924 need_version=unknown
16929 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16930 shlibpath_var=LIBPATH
16932 # AIX 3 has no versioning support, so we append a major version to the name.
16933 soname_spec='${libname}${release}${shared_ext}$major'
16940 hardcode_into_libs=yes
16941 if test "$host_cpu" = ia64; then
16942 # AIX 5 supports IA64
16943 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16944 shlibpath_var=LD_LIBRARY_PATH
16946 # With GCC up to 2.95.x, collect2 would create an import file
16947 # for dependence libraries. The import file would start with
16948 # the line `#! .'. This would cause the generated library to
16949 # depend on `.', always an invalid library. This was fixed in
16950 # development snapshots of GCC prior to 3.0.
16952 aix4 | aix4.[01] | aix4.[01].*)
16953 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16955 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16958 can_build_shared=no
16962 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16963 # soname into executable. Probably we can add versioning support to
16964 # collect2, so additional links can be useful in future.
16965 if test "$aix_use_runtimelinking" = yes; then
16966 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16967 # instead of lib<name>.a to let people know that these are not
16968 # typical AIX shared libraries.
16969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971 # We preserve .a as extension for shared libraries through AIX4.2
16972 # and later when we are not doing run time linking.
16973 library_names_spec='${libname}${release}.a $libname.a'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16976 shlibpath_var=LIBPATH
16981 library_names_spec='$libname.ixlibrary $libname.a'
16982 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16983 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'
16987 library_names_spec='${libname}${shared_ext}'
16988 dynamic_linker="$host_os ld.so"
16989 shlibpath_var=LIBRARY_PATH
16995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16996 soname_spec='${libname}${release}${shared_ext}$major'
16997 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16998 shlibpath_var=LD_LIBRARY_PATH
16999 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17000 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17001 # the default ld.so.conf also contains /usr/contrib/lib and
17002 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17003 # libtool to hard-code these into programs
17006 cygwin* | mingw* | pw32*)
17007 version_type=windows
17012 case $GCC,$host_os in
17013 yes,cygwin* | yes,mingw* | yes,pw32*)
17014 library_names_spec='$libname.dll.a'
17015 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17016 postinstall_cmds='base_file=`basename \${file}`~
17017 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17018 dldir=$destdir/`dirname \$dlpath`~
17019 test -d \$dldir || mkdir -p \$dldir~
17020 $install_prog $dir/$dlname \$dldir/$dlname~
17021 chmod a+x \$dldir/$dlname'
17022 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17023 dlpath=$dir/\$dldll~
17025 shlibpath_overrides_runpath=yes
17029 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17030 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17031 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17034 # MinGW DLLs use traditional 'lib' prefix
17035 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17036 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17037 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17038 # It is most probably a Windows format PATH printed by
17039 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17040 # path with ; separators, and with drive letters. We can handle the
17041 # drive letters (cygwin fileutils understands them), so leave them,
17042 # especially as we might pass files found there to a mingw objdump,
17043 # which wouldn't understand a cygwinified path. Ahh.
17044 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17046 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17050 # pw32 DLLs use 'pw' prefix rather than 'lib'
17051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17057 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17060 dynamic_linker='Win32 ld.exe'
17061 # FIXME: first we should search . and the directory the executable is in
17065 darwin* | rhapsody*)
17066 dynamic_linker="$host_os dyld"
17067 version_type=darwin
17070 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17071 soname_spec='${libname}${release}${major}$shared_ext'
17072 shlibpath_overrides_runpath=yes
17073 shlibpath_var=DYLD_LIBRARY_PATH
17074 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17075 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17076 if test "$GCC" = yes; then
17077 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"`
17079 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17081 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17089 soname_spec='${libname}${release}${shared_ext}$major'
17090 shlibpath_var=LD_LIBRARY_PATH
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17102 soname_spec='${libname}${release}${shared_ext}$major'
17103 shlibpath_var=LD_LIBRARY_PATH
17104 shlibpath_overrides_runpath=no
17105 hardcode_into_libs=yes
17106 dynamic_linker='GNU ld.so'
17109 freebsd* | dragonfly*)
17110 # DragonFly does not have aout. When/if they implement a new
17111 # versioning mechanism, adjust this.
17112 if test -x /usr/bin/objformat; then
17113 objformat=`/usr/bin/objformat`
17116 freebsd[123]*) objformat=aout ;;
17117 *) objformat=elf ;;
17120 version_type=freebsd-$objformat
17121 case $version_type in
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17128 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17132 shlibpath_var=LD_LIBRARY_PATH
17135 shlibpath_overrides_runpath=yes
17137 freebsd3.[01]* | freebsdelf3.[01]*)
17138 shlibpath_overrides_runpath=yes
17139 hardcode_into_libs=yes
17141 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17142 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17143 shlibpath_overrides_runpath=no
17144 hardcode_into_libs=yes
17146 freebsd*) # from 4.6 on
17147 shlibpath_overrides_runpath=yes
17148 hardcode_into_libs=yes
17157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17158 soname_spec='${libname}${release}${shared_ext}$major'
17159 shlibpath_var=LD_LIBRARY_PATH
17160 hardcode_into_libs=yes
17163 hpux9* | hpux10* | hpux11*)
17164 # Give a soname corresponding to the major version so that dld.sl refuses to
17165 # link against other versions.
17172 hardcode_into_libs=yes
17173 dynamic_linker="$host_os dld.so"
17174 shlibpath_var=LD_LIBRARY_PATH
17175 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 if test "X$HPUX_IA64_MODE" = X32; then
17179 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17181 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17183 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17187 hardcode_into_libs=yes
17188 dynamic_linker="$host_os dld.sl"
17189 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17190 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17194 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17198 dynamic_linker="$host_os dld.sl"
17199 shlibpath_var=SHLIB_PATH
17200 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17202 soname_spec='${libname}${release}${shared_ext}$major'
17205 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17206 postinstall_cmds='chmod 555 $lib'
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 shlibpath_overrides_runpath=no
17218 hardcode_into_libs=yes
17221 irix5* | irix6* | nonstopux*)
17223 nonstopux*) version_type=nonstopux ;;
17225 if test "$lt_cv_prog_gnu_ld" = yes; then
17233 soname_spec='${libname}${release}${shared_ext}$major'
17234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17236 irix5* | nonstopux*)
17237 libsuff= shlibsuff=
17240 case $LD in # libtool.m4 will add one of these switches to LD
17241 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17242 libsuff= shlibsuff= libmagic=32-bit;;
17243 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17244 libsuff=32 shlibsuff=N32 libmagic=N32;;
17245 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17246 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17247 *) libsuff= shlibsuff= libmagic=never-match;;
17251 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17252 shlibpath_overrides_runpath=no
17253 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17254 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17255 hardcode_into_libs=yes
17258 # No shared lib support for Linux oldld, aout, or coff.
17259 linux*oldld* | linux*aout* | linux*coff*)
17263 # This must be Linux ELF.
17268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17269 soname_spec='${libname}${release}${shared_ext}$major'
17270 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17271 shlibpath_var=LD_LIBRARY_PATH
17272 shlibpath_overrides_runpath=no
17273 # This implies no fast_install, which is unacceptable.
17274 # Some rework will be needed to allow for fast_install
17275 # before this can be enabled.
17276 hardcode_into_libs=yes
17278 # Append ld.so.conf contents to the search path
17279 if test -f /etc/ld.so.conf; then
17280 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' ' '`
17281 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17284 # We used to test for /lib/ld.so.1 and disable shared libraries on
17285 # powerpc, because MkLinux only supported shared libraries with the
17286 # GNU dynamic linker. Since this was broken with cross compilers,
17287 # most powerpc-linux boxes support dynamic linking these days and
17288 # people can always --disable-shared, the test was removed, and we
17289 # assume the GNU/Linux dynamic linker is in use.
17290 dynamic_linker='GNU/Linux ld.so'
17297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17298 soname_spec='${libname}${release}${shared_ext}$major'
17299 shlibpath_var=LD_LIBRARY_PATH
17300 shlibpath_overrides_runpath=no
17301 hardcode_into_libs=yes
17302 dynamic_linker='GNU ld.so'
17309 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17311 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17312 dynamic_linker='NetBSD (a.out) ld.so'
17314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17315 soname_spec='${libname}${release}${shared_ext}$major'
17316 dynamic_linker='NetBSD ld.elf_so'
17318 shlibpath_var=LD_LIBRARY_PATH
17319 shlibpath_overrides_runpath=yes
17320 hardcode_into_libs=yes
17325 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17326 shlibpath_var=LD_LIBRARY_PATH
17327 shlibpath_overrides_runpath=yes
17334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17335 soname_spec='${libname}${release}${shared_ext}$major'
17336 shlibpath_var=LD_LIBRARY_PATH
17337 shlibpath_overrides_runpath=yes
17342 sys_lib_dlsearch_path_spec="/usr/lib"
17344 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17346 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17347 *) need_version=no ;;
17349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17350 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17351 shlibpath_var=LD_LIBRARY_PATH
17352 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17354 openbsd2.[89] | openbsd2.[89].*)
17355 shlibpath_overrides_runpath=no
17358 shlibpath_overrides_runpath=yes
17362 shlibpath_overrides_runpath=yes
17367 libname_spec='$name'
17370 library_names_spec='$libname${shared_ext} $libname.a'
17371 dynamic_linker='OS/2 ld.exe'
17372 shlibpath_var=LIBPATH
17375 osf3* | osf4* | osf5*)
17379 soname_spec='${libname}${release}${shared_ext}$major'
17380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17381 shlibpath_var=LD_LIBRARY_PATH
17382 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17383 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17391 soname_spec='${libname}${release}${shared_ext}$major'
17392 shlibpath_var=LD_LIBRARY_PATH
17393 shlibpath_overrides_runpath=yes
17394 hardcode_into_libs=yes
17395 # ldd complains unless libraries are executable
17396 postinstall_cmds='chmod +x $lib'
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17402 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17403 shlibpath_var=LD_LIBRARY_PATH
17404 shlibpath_overrides_runpath=yes
17405 if test "$with_gnu_ld" = yes; then
17413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17414 soname_spec='${libname}${release}${shared_ext}$major'
17415 shlibpath_var=LD_LIBRARY_PATH
17416 case $host_vendor in
17418 shlibpath_overrides_runpath=no
17420 export_dynamic_flag_spec='${wl}-Blargedynsym'
17421 runpath_var=LD_RUN_PATH
17429 shlibpath_overrides_runpath=no
17430 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17436 if test -d /usr/nec ;then
17438 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17439 soname_spec='$libname${shared_ext}.$major'
17440 shlibpath_var=LD_LIBRARY_PATH
17444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17445 version_type=freebsd-elf
17448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17449 soname_spec='${libname}${release}${shared_ext}$major'
17450 shlibpath_var=LD_LIBRARY_PATH
17451 hardcode_into_libs=yes
17452 if test "$with_gnu_ld" = yes; then
17453 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17454 shlibpath_overrides_runpath=no
17456 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17457 shlibpath_overrides_runpath=yes
17460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17464 sys_lib_dlsearch_path_spec='/usr/lib'
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 shlibpath_var=LD_LIBRARY_PATH
17478 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17479 echo "${ECHO_T}$dynamic_linker" >&6
17480 test "$dynamic_linker" = no && can_build_shared=no
17482 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17483 if test "$GCC" = yes; then
17484 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17487 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17488 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17489 hardcode_action_GCJ=
17490 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17491 test -n "$runpath_var_GCJ" || \
17492 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17494 # We can hardcode non-existant directories.
17495 if test "$hardcode_direct_GCJ" != no &&
17496 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17497 # have to relink, otherwise we might link with an installed library
17498 # when we should be linking with a yet-to-be-installed one
17499 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17500 test "$hardcode_minus_L_GCJ" != no; then
17501 # Linking always hardcodes the temporary library directory.
17502 hardcode_action_GCJ=relink
17504 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17505 hardcode_action_GCJ=immediate
17508 # We cannot hardcode anything, or else we can only hardcode existing
17510 hardcode_action_GCJ=unsupported
17512 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17513 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17515 if test "$hardcode_action_GCJ" = relink; then
17516 # Fast installation is not supported
17517 enable_fast_install=no
17518 elif test "$shlibpath_overrides_runpath" = yes ||
17519 test "$enable_shared" = no; then
17520 # Fast installation is not necessary
17521 enable_fast_install=needless
17525 # The else clause should only fire when bootstrapping the
17526 # libtool distribution, otherwise you forgot to ship ltmain.sh
17527 # with your package, and you will get complaints that there are
17528 # no rules to generate ltmain.sh.
17529 if test -f "$ltmain"; then
17530 # See if we are running on zsh, and set the options which allow our commands through
17531 # without removal of \ escapes.
17532 if test -n "${ZSH_VERSION+set}" ; then
17533 setopt NO_GLOB_SUBST
17535 # Now quote all the things that may contain metacharacters while being
17536 # careful not to overquote the AC_SUBSTed values. We take copies of the
17537 # variables and quote the copies for generation of the libtool script.
17538 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17540 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17541 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17542 deplibs_check_method reload_flag reload_cmds need_locks \
17543 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17544 lt_cv_sys_global_symbol_to_c_name_address \
17545 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17546 old_postinstall_cmds old_postuninstall_cmds \
17550 lt_prog_compiler_wl_GCJ \
17551 lt_prog_compiler_pic_GCJ \
17552 lt_prog_compiler_static_GCJ \
17553 lt_prog_compiler_no_builtin_flag_GCJ \
17554 export_dynamic_flag_spec_GCJ \
17555 thread_safe_flag_spec_GCJ \
17556 whole_archive_flag_spec_GCJ \
17557 enable_shared_with_static_runtimes_GCJ \
17558 old_archive_cmds_GCJ \
17559 old_archive_from_new_cmds_GCJ \
17560 predep_objects_GCJ \
17561 postdep_objects_GCJ \
17564 compiler_lib_search_path_GCJ \
17566 archive_expsym_cmds_GCJ \
17567 postinstall_cmds_GCJ \
17568 postuninstall_cmds_GCJ \
17569 old_archive_from_expsyms_cmds_GCJ \
17570 allow_undefined_flag_GCJ \
17571 no_undefined_flag_GCJ \
17572 export_symbols_cmds_GCJ \
17573 hardcode_libdir_flag_spec_GCJ \
17574 hardcode_libdir_flag_spec_ld_GCJ \
17575 hardcode_libdir_separator_GCJ \
17576 hardcode_automatic_GCJ \
17578 module_expsym_cmds_GCJ \
17579 lt_cv_prog_compiler_c_o_GCJ \
17580 exclude_expsyms_GCJ \
17581 include_expsyms_GCJ; do
17584 old_archive_cmds_GCJ | \
17585 old_archive_from_new_cmds_GCJ | \
17586 archive_cmds_GCJ | \
17587 archive_expsym_cmds_GCJ | \
17588 module_cmds_GCJ | \
17589 module_expsym_cmds_GCJ | \
17590 old_archive_from_expsyms_cmds_GCJ | \
17591 export_symbols_cmds_GCJ | \
17592 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17593 postinstall_cmds | postuninstall_cmds | \
17594 old_postinstall_cmds | old_postuninstall_cmds | \
17595 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17596 # Double-quote double-evaled strings.
17597 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17600 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17606 *'\$0 --fallback-echo"')
17607 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17613 cat <<__EOF__ >> "$cfgfile"
17614 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17616 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17618 # Shell to use when invoking shell scripts.
17621 # Whether or not to build shared libraries.
17622 build_libtool_libs=$enable_shared
17624 # Whether or not to build static libraries.
17625 build_old_libs=$enable_static
17627 # Whether or not to add -lc for building shared libraries.
17628 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17630 # Whether or not to disallow shared libs when runtime libs are static
17631 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17633 # Whether or not to optimize for fast installation.
17634 fast_install=$enable_fast_install
17637 host_alias=$host_alias
17641 # The build system.
17642 build_alias=$build_alias
17646 # An echo program that does not interpret backslashes.
17651 AR_FLAGS=$lt_AR_FLAGS
17656 # LTCC compiler flags.
17657 LTCFLAGS=$lt_LTCFLAGS
17659 # A language-specific compiler.
17660 CC=$lt_compiler_GCJ
17662 # Is the compiler the GNU C compiler?
17668 # The linker used to build libraries.
17671 # Whether we need hard or soft links.
17674 # A BSD-compatible nm program.
17677 # A symbol stripping program
17680 # Used to examine libraries when file_magic_cmd begins "file"
17681 MAGIC_CMD=$MAGIC_CMD
17683 # Used on cygwin: DLL creation program.
17686 # Used on cygwin: object dumper.
17689 # Used on cygwin: assembler.
17692 # The name of the directory that contains temporary libtool files.
17695 # How to create reloadable object files.
17696 reload_flag=$lt_reload_flag
17697 reload_cmds=$lt_reload_cmds
17699 # How to pass a linker flag through the compiler.
17700 wl=$lt_lt_prog_compiler_wl_GCJ
17702 # Object file suffix (normally "o").
17703 objext="$ac_objext"
17705 # Old archive suffix (normally "a").
17708 # Shared library suffix (normally ".so").
17709 shrext_cmds='$shrext_cmds'
17711 # Executable file suffix (normally "").
17714 # Additional compiler flags for building library objects.
17715 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17718 # What is the maximum length of a command?
17719 max_cmd_len=$lt_cv_sys_max_cmd_len
17721 # Does compiler simultaneously support -c and -o options?
17722 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17724 # Must we lock files when doing compilation?
17725 need_locks=$lt_need_locks
17727 # Do we need the lib prefix for modules?
17728 need_lib_prefix=$need_lib_prefix
17730 # Do we need a version for libraries?
17731 need_version=$need_version
17733 # Whether dlopen is supported.
17734 dlopen_support=$enable_dlopen
17736 # Whether dlopen of programs is supported.
17737 dlopen_self=$enable_dlopen_self
17739 # Whether dlopen of statically linked programs is supported.
17740 dlopen_self_static=$enable_dlopen_self_static
17742 # Compiler flag to prevent dynamic linking.
17743 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17745 # Compiler flag to turn off builtin functions.
17746 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17748 # Compiler flag to allow reflexive dlopens.
17749 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17751 # Compiler flag to generate shared objects directly from archives.
17752 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17754 # Compiler flag to generate thread-safe objects.
17755 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17757 # Library versioning type.
17758 version_type=$version_type
17760 # Format of library name prefix.
17761 libname_spec=$lt_libname_spec
17763 # List of archive names. First name is the real one, the rest are links.
17764 # The last name is the one that the linker finds with -lNAME.
17765 library_names_spec=$lt_library_names_spec
17767 # The coded name of the library, if different from the real name.
17768 soname_spec=$lt_soname_spec
17770 # Commands used to build and install an old-style archive.
17772 old_archive_cmds=$lt_old_archive_cmds_GCJ
17773 old_postinstall_cmds=$lt_old_postinstall_cmds
17774 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17776 # Create an old-style archive from a shared archive.
17777 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17779 # Create a temporary old-style archive to link instead of a shared archive.
17780 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17782 # Commands used to build and install a shared archive.
17783 archive_cmds=$lt_archive_cmds_GCJ
17784 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17785 postinstall_cmds=$lt_postinstall_cmds
17786 postuninstall_cmds=$lt_postuninstall_cmds
17788 # Commands used to build a loadable module (assumed same as above if empty)
17789 module_cmds=$lt_module_cmds_GCJ
17790 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17792 # Commands to strip libraries.
17793 old_striplib=$lt_old_striplib
17794 striplib=$lt_striplib
17796 # Dependencies to place before the objects being linked to create a
17798 predep_objects=$lt_predep_objects_GCJ
17800 # Dependencies to place after the objects being linked to create a
17802 postdep_objects=$lt_postdep_objects_GCJ
17804 # Dependencies to place before the objects being linked to create a
17806 predeps=$lt_predeps_GCJ
17808 # Dependencies to place after the objects being linked to create a
17810 postdeps=$lt_postdeps_GCJ
17812 # The library search path used internally by the compiler when linking
17813 # a shared library.
17814 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17816 # Method to check whether dependent libraries are shared objects.
17817 deplibs_check_method=$lt_deplibs_check_method
17819 # Command to use when deplibs_check_method == file_magic.
17820 file_magic_cmd=$lt_file_magic_cmd
17822 # Flag that allows shared libraries with undefined symbols to be built.
17823 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17825 # Flag that forces no undefined symbols.
17826 no_undefined_flag=$lt_no_undefined_flag_GCJ
17828 # Commands used to finish a libtool library installation in a directory.
17829 finish_cmds=$lt_finish_cmds
17831 # Same as above, but a single script fragment to be evaled but not shown.
17832 finish_eval=$lt_finish_eval
17834 # Take the output of nm and produce a listing of raw symbols and C names.
17835 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17837 # Transform the output of nm in a proper C declaration
17838 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17840 # Transform the output of nm in a C name address pair
17841 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17843 # This is the shared library runtime path variable.
17844 runpath_var=$runpath_var
17846 # This is the shared library path variable.
17847 shlibpath_var=$shlibpath_var
17849 # Is shlibpath searched before the hard-coded library search path?
17850 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17852 # How to hardcode a shared library path into an executable.
17853 hardcode_action=$hardcode_action_GCJ
17855 # Whether we should hardcode library paths into libraries.
17856 hardcode_into_libs=$hardcode_into_libs
17858 # Flag to hardcode \$libdir into a binary during linking.
17859 # This must work even if \$libdir does not exist.
17860 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17862 # If ld is used when linking, flag to hardcode \$libdir into
17863 # a binary during linking. This must work even if \$libdir does
17865 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17867 # Whether we need a single -rpath flag with a separated argument.
17868 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17870 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17871 # resulting binary.
17872 hardcode_direct=$hardcode_direct_GCJ
17874 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17875 # resulting binary.
17876 hardcode_minus_L=$hardcode_minus_L_GCJ
17878 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17879 # the resulting binary.
17880 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17882 # Set to yes if building a shared library automatically hardcodes DIR into the library
17883 # and all subsequent libraries and executables linked against it.
17884 hardcode_automatic=$hardcode_automatic_GCJ
17886 # Variables whose values should be saved in libtool wrapper scripts and
17887 # restored at relink time.
17888 variables_saved_for_relink="$variables_saved_for_relink"
17890 # Whether libtool must link a program against all its dependency libraries.
17891 link_all_deplibs=$link_all_deplibs_GCJ
17893 # Compile-time system search path for libraries
17894 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17896 # Run-time system search path for libraries
17897 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17899 # Fix the shell variable \$srcfile for the compiler.
17900 fix_srcfile_path="$fix_srcfile_path_GCJ"
17902 # Set to yes if exported symbols are required.
17903 always_export_symbols=$always_export_symbols_GCJ
17905 # The commands to list exported symbols.
17906 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17908 # The commands to extract the exported symbol list from a shared archive.
17909 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17911 # Symbols that should not be listed in the preloaded symbols.
17912 exclude_expsyms=$lt_exclude_expsyms_GCJ
17914 # Symbols that must always be exported.
17915 include_expsyms=$lt_include_expsyms_GCJ
17917 # ### END LIBTOOL TAG CONFIG: $tagname
17923 # If there is no Makefile yet, we rely on a make rule to execute
17924 # `config.status --recheck' to rerun these tests and create the
17925 # libtool script then.
17926 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17927 if test -f "$ltmain_in"; then
17928 test -f Makefile && make "$ltmain"
17934 ac_cpp='$CPP $CPPFLAGS'
17935 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17936 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17937 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17950 # Source file extension for RC test sources.
17953 # Object file extension for compiled RC test sources.
17957 # Code to be used in simple compile tests
17958 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
17960 # Code to be used in simple link tests
17961 lt_simple_link_test_code="$lt_simple_compile_test_code"
17963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17965 # If no C compiler was specified, use CC.
17968 # If no C compiler flags were specified, use CFLAGS.
17969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17971 # Allow CC to be a program name with arguments.
17975 # save warnings/boilerplate of simple test code
17976 ac_outfile=conftest.$ac_objext
17977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17979 _lt_compiler_boilerplate=`cat conftest.err`
17982 ac_outfile=conftest.$ac_objext
17983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17985 _lt_linker_boilerplate=`cat conftest.err`
17989 # Allow CC to be a program name with arguments.
17994 for cc_temp in $compiler""; do
17996 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17997 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18002 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18004 lt_cv_prog_compiler_c_o_RC=yes
18006 # The else clause should only fire when bootstrapping the
18007 # libtool distribution, otherwise you forgot to ship ltmain.sh
18008 # with your package, and you will get complaints that there are
18009 # no rules to generate ltmain.sh.
18010 if test -f "$ltmain"; then
18011 # See if we are running on zsh, and set the options which allow our commands through
18012 # without removal of \ escapes.
18013 if test -n "${ZSH_VERSION+set}" ; then
18014 setopt NO_GLOB_SUBST
18016 # Now quote all the things that may contain metacharacters while being
18017 # careful not to overquote the AC_SUBSTed values. We take copies of the
18018 # variables and quote the copies for generation of the libtool script.
18019 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18021 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18022 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18023 deplibs_check_method reload_flag reload_cmds need_locks \
18024 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18025 lt_cv_sys_global_symbol_to_c_name_address \
18026 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18027 old_postinstall_cmds old_postuninstall_cmds \
18031 lt_prog_compiler_wl_RC \
18032 lt_prog_compiler_pic_RC \
18033 lt_prog_compiler_static_RC \
18034 lt_prog_compiler_no_builtin_flag_RC \
18035 export_dynamic_flag_spec_RC \
18036 thread_safe_flag_spec_RC \
18037 whole_archive_flag_spec_RC \
18038 enable_shared_with_static_runtimes_RC \
18039 old_archive_cmds_RC \
18040 old_archive_from_new_cmds_RC \
18041 predep_objects_RC \
18042 postdep_objects_RC \
18045 compiler_lib_search_path_RC \
18047 archive_expsym_cmds_RC \
18048 postinstall_cmds_RC \
18049 postuninstall_cmds_RC \
18050 old_archive_from_expsyms_cmds_RC \
18051 allow_undefined_flag_RC \
18052 no_undefined_flag_RC \
18053 export_symbols_cmds_RC \
18054 hardcode_libdir_flag_spec_RC \
18055 hardcode_libdir_flag_spec_ld_RC \
18056 hardcode_libdir_separator_RC \
18057 hardcode_automatic_RC \
18059 module_expsym_cmds_RC \
18060 lt_cv_prog_compiler_c_o_RC \
18061 exclude_expsyms_RC \
18062 include_expsyms_RC; do
18065 old_archive_cmds_RC | \
18066 old_archive_from_new_cmds_RC | \
18067 archive_cmds_RC | \
18068 archive_expsym_cmds_RC | \
18070 module_expsym_cmds_RC | \
18071 old_archive_from_expsyms_cmds_RC | \
18072 export_symbols_cmds_RC | \
18073 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18074 postinstall_cmds | postuninstall_cmds | \
18075 old_postinstall_cmds | old_postuninstall_cmds | \
18076 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18077 # Double-quote double-evaled strings.
18078 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18081 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18087 *'\$0 --fallback-echo"')
18088 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18094 cat <<__EOF__ >> "$cfgfile"
18095 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18097 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18099 # Shell to use when invoking shell scripts.
18102 # Whether or not to build shared libraries.
18103 build_libtool_libs=$enable_shared
18105 # Whether or not to build static libraries.
18106 build_old_libs=$enable_static
18108 # Whether or not to add -lc for building shared libraries.
18109 build_libtool_need_lc=$archive_cmds_need_lc_RC
18111 # Whether or not to disallow shared libs when runtime libs are static
18112 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18114 # Whether or not to optimize for fast installation.
18115 fast_install=$enable_fast_install
18118 host_alias=$host_alias
18122 # The build system.
18123 build_alias=$build_alias
18127 # An echo program that does not interpret backslashes.
18132 AR_FLAGS=$lt_AR_FLAGS
18137 # LTCC compiler flags.
18138 LTCFLAGS=$lt_LTCFLAGS
18140 # A language-specific compiler.
18143 # Is the compiler the GNU C compiler?
18149 # The linker used to build libraries.
18152 # Whether we need hard or soft links.
18155 # A BSD-compatible nm program.
18158 # A symbol stripping program
18161 # Used to examine libraries when file_magic_cmd begins "file"
18162 MAGIC_CMD=$MAGIC_CMD
18164 # Used on cygwin: DLL creation program.
18167 # Used on cygwin: object dumper.
18170 # Used on cygwin: assembler.
18173 # The name of the directory that contains temporary libtool files.
18176 # How to create reloadable object files.
18177 reload_flag=$lt_reload_flag
18178 reload_cmds=$lt_reload_cmds
18180 # How to pass a linker flag through the compiler.
18181 wl=$lt_lt_prog_compiler_wl_RC
18183 # Object file suffix (normally "o").
18184 objext="$ac_objext"
18186 # Old archive suffix (normally "a").
18189 # Shared library suffix (normally ".so").
18190 shrext_cmds='$shrext_cmds'
18192 # Executable file suffix (normally "").
18195 # Additional compiler flags for building library objects.
18196 pic_flag=$lt_lt_prog_compiler_pic_RC
18199 # What is the maximum length of a command?
18200 max_cmd_len=$lt_cv_sys_max_cmd_len
18202 # Does compiler simultaneously support -c and -o options?
18203 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18205 # Must we lock files when doing compilation?
18206 need_locks=$lt_need_locks
18208 # Do we need the lib prefix for modules?
18209 need_lib_prefix=$need_lib_prefix
18211 # Do we need a version for libraries?
18212 need_version=$need_version
18214 # Whether dlopen is supported.
18215 dlopen_support=$enable_dlopen
18217 # Whether dlopen of programs is supported.
18218 dlopen_self=$enable_dlopen_self
18220 # Whether dlopen of statically linked programs is supported.
18221 dlopen_self_static=$enable_dlopen_self_static
18223 # Compiler flag to prevent dynamic linking.
18224 link_static_flag=$lt_lt_prog_compiler_static_RC
18226 # Compiler flag to turn off builtin functions.
18227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18229 # Compiler flag to allow reflexive dlopens.
18230 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18232 # Compiler flag to generate shared objects directly from archives.
18233 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18235 # Compiler flag to generate thread-safe objects.
18236 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18238 # Library versioning type.
18239 version_type=$version_type
18241 # Format of library name prefix.
18242 libname_spec=$lt_libname_spec
18244 # List of archive names. First name is the real one, the rest are links.
18245 # The last name is the one that the linker finds with -lNAME.
18246 library_names_spec=$lt_library_names_spec
18248 # The coded name of the library, if different from the real name.
18249 soname_spec=$lt_soname_spec
18251 # Commands used to build and install an old-style archive.
18253 old_archive_cmds=$lt_old_archive_cmds_RC
18254 old_postinstall_cmds=$lt_old_postinstall_cmds
18255 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18257 # Create an old-style archive from a shared archive.
18258 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18260 # Create a temporary old-style archive to link instead of a shared archive.
18261 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18263 # Commands used to build and install a shared archive.
18264 archive_cmds=$lt_archive_cmds_RC
18265 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18266 postinstall_cmds=$lt_postinstall_cmds
18267 postuninstall_cmds=$lt_postuninstall_cmds
18269 # Commands used to build a loadable module (assumed same as above if empty)
18270 module_cmds=$lt_module_cmds_RC
18271 module_expsym_cmds=$lt_module_expsym_cmds_RC
18273 # Commands to strip libraries.
18274 old_striplib=$lt_old_striplib
18275 striplib=$lt_striplib
18277 # Dependencies to place before the objects being linked to create a
18279 predep_objects=$lt_predep_objects_RC
18281 # Dependencies to place after the objects being linked to create a
18283 postdep_objects=$lt_postdep_objects_RC
18285 # Dependencies to place before the objects being linked to create a
18287 predeps=$lt_predeps_RC
18289 # Dependencies to place after the objects being linked to create a
18291 postdeps=$lt_postdeps_RC
18293 # The library search path used internally by the compiler when linking
18294 # a shared library.
18295 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18297 # Method to check whether dependent libraries are shared objects.
18298 deplibs_check_method=$lt_deplibs_check_method
18300 # Command to use when deplibs_check_method == file_magic.
18301 file_magic_cmd=$lt_file_magic_cmd
18303 # Flag that allows shared libraries with undefined symbols to be built.
18304 allow_undefined_flag=$lt_allow_undefined_flag_RC
18306 # Flag that forces no undefined symbols.
18307 no_undefined_flag=$lt_no_undefined_flag_RC
18309 # Commands used to finish a libtool library installation in a directory.
18310 finish_cmds=$lt_finish_cmds
18312 # Same as above, but a single script fragment to be evaled but not shown.
18313 finish_eval=$lt_finish_eval
18315 # Take the output of nm and produce a listing of raw symbols and C names.
18316 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18318 # Transform the output of nm in a proper C declaration
18319 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18321 # Transform the output of nm in a C name address pair
18322 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18324 # This is the shared library runtime path variable.
18325 runpath_var=$runpath_var
18327 # This is the shared library path variable.
18328 shlibpath_var=$shlibpath_var
18330 # Is shlibpath searched before the hard-coded library search path?
18331 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18333 # How to hardcode a shared library path into an executable.
18334 hardcode_action=$hardcode_action_RC
18336 # Whether we should hardcode library paths into libraries.
18337 hardcode_into_libs=$hardcode_into_libs
18339 # Flag to hardcode \$libdir into a binary during linking.
18340 # This must work even if \$libdir does not exist.
18341 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18343 # If ld is used when linking, flag to hardcode \$libdir into
18344 # a binary during linking. This must work even if \$libdir does
18346 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18348 # Whether we need a single -rpath flag with a separated argument.
18349 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18351 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18352 # resulting binary.
18353 hardcode_direct=$hardcode_direct_RC
18355 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18356 # resulting binary.
18357 hardcode_minus_L=$hardcode_minus_L_RC
18359 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18360 # the resulting binary.
18361 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18363 # Set to yes if building a shared library automatically hardcodes DIR into the library
18364 # and all subsequent libraries and executables linked against it.
18365 hardcode_automatic=$hardcode_automatic_RC
18367 # Variables whose values should be saved in libtool wrapper scripts and
18368 # restored at relink time.
18369 variables_saved_for_relink="$variables_saved_for_relink"
18371 # Whether libtool must link a program against all its dependency libraries.
18372 link_all_deplibs=$link_all_deplibs_RC
18374 # Compile-time system search path for libraries
18375 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18377 # Run-time system search path for libraries
18378 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18380 # Fix the shell variable \$srcfile for the compiler.
18381 fix_srcfile_path="$fix_srcfile_path_RC"
18383 # Set to yes if exported symbols are required.
18384 always_export_symbols=$always_export_symbols_RC
18386 # The commands to list exported symbols.
18387 export_symbols_cmds=$lt_export_symbols_cmds_RC
18389 # The commands to extract the exported symbol list from a shared archive.
18390 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18392 # Symbols that should not be listed in the preloaded symbols.
18393 exclude_expsyms=$lt_exclude_expsyms_RC
18395 # Symbols that must always be exported.
18396 include_expsyms=$lt_include_expsyms_RC
18398 # ### END LIBTOOL TAG CONFIG: $tagname
18404 # If there is no Makefile yet, we rely on a make rule to execute
18405 # `config.status --recheck' to rerun these tests and create the
18406 # libtool script then.
18407 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18408 if test -f "$ltmain_in"; then
18409 test -f Makefile && make "$ltmain"
18415 ac_cpp='$CPP $CPPFLAGS'
18416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18425 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18426 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18427 { (exit 1); exit 1; }; }
18431 # Append the new tag name to the list of available tags.
18432 if test -n "$tagname" ; then
18433 available_tags="$available_tags $tagname"
18439 # Now substitute the updated list of available tags.
18440 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18441 mv "${ofile}T" "$ofile"
18445 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18446 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18447 { (exit 1); exit 1; }; }
18453 # This can be used to rebuild libtool when needed
18454 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18456 # Always use our own libtool.
18457 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18459 # Prevent multiple expansion
18472 # Check whether --with-system-libtool or --without-system-libtool was given.
18473 if test "${with_system_libtool+set}" = set; then
18474 withval="$with_system_libtool"
18475 # Extract the first word of "libtool", so it can be a program name with args.
18476 set dummy libtool; ac_word=$2
18477 echo "$as_me:$LINENO: checking for $ac_word" >&5
18478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18479 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18484 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18488 as_dummy="$PATH:/usr/local/bin"
18489 for as_dir in $as_dummy
18492 test -z "$as_dir" && as_dir=.
18493 for ac_exec_ext in '' $ac_executable_extensions; do
18494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18495 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18505 LIBTOOL=$ac_cv_path_LIBTOOL
18507 if test -n "$LIBTOOL"; then
18508 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18509 echo "${ECHO_T}$LIBTOOL" >&6
18511 echo "$as_me:$LINENO: result: no" >&5
18512 echo "${ECHO_T}no" >&6
18517 LIBTOOL="`pwd`/libtool"
18536 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18537 if test "${enable_strict_dependencies+set}" = set; then
18538 enableval="$enable_strict_dependencies"
18542 logdir='${localstatedir}/log/radius'
18543 echo "$as_me:$LINENO: checking logdir" >&5
18544 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18546 # Check whether --with-logdir or --without-logdir was given.
18547 if test "${with_logdir+set}" = set; then
18548 withval="$with_logdir"
18551 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18552 echo "$as_me: error: Need logdir" >&2;}
18553 { (exit 1); exit 1; }; }
18564 echo "$as_me:$LINENO: result: $logdir" >&5
18565 echo "${ECHO_T}$logdir" >&6
18567 radacctdir='${logdir}/radacct'
18568 echo "$as_me:$LINENO: checking radacctdir" >&5
18569 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18571 # Check whether --with-radacctdir or --without-radacctdir was given.
18572 if test "${with_radacctdir+set}" = set; then
18573 withval="$with_radacctdir"
18576 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18577 echo "$as_me: error: Need radacctdir" >&2;}
18578 { (exit 1); exit 1; }; }
18583 radacctdir="$withval"
18589 echo "$as_me:$LINENO: result: $radacctdir" >&5
18590 echo "${ECHO_T}$radacctdir" >&6
18592 raddbdir='${sysconfdir}/raddb'
18593 echo "$as_me:$LINENO: checking raddbdir" >&5
18594 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18596 # Check whether --with-raddbdir or --without-raddbdir was given.
18597 if test "${with_raddbdir+set}" = set; then
18598 withval="$with_raddbdir"
18601 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18602 echo "$as_me: error: Need raddbdir" >&2;}
18603 { (exit 1); exit 1; }; }
18608 raddbdir="$withval"
18614 echo "$as_me:$LINENO: result: $raddbdir" >&5
18615 echo "${ECHO_T}$raddbdir" >&6
18619 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18620 if test "${with_ascend_binary+set}" = set; then
18621 withval="$with_ascend_binary"
18630 if test "X$ASCEND_BINARY" = "Xyes"; then
18631 cat >>confdefs.h <<\_ACEOF
18632 #define ASCEND_BINARY 1
18639 # Check whether --with-threads or --without-threads was given.
18640 if test "${with_threads+set}" = set; then
18641 withval="$with_threads"
18653 # Check whether --with-snmp or --without-snmp was given.
18654 if test "${with_snmp+set}" = set; then
18655 withval="$with_snmp"
18665 rad_enable_largefiles=no
18667 # Check whether --with-large-files or --without-large-files was given.
18668 if test "${with_large_files+set}" = set; then
18669 withval="$with_large_files"
18672 rad_enable_largefiles=yes
18683 # Check whether --with-static_modules or --without-static_modules was given.
18684 if test "${with_static_modules+set}" = set; then
18685 withval="$with_static_modules"
18687 for i in $withval; do
18688 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18695 # Check whether --with-modules or --without-modules was given.
18696 if test "${with_modules+set}" = set; then
18697 withval="$with_modules"
18699 for i in $withval; do
18700 MODULES="$MODULES $i"
18705 # Check whether --enable-developer or --disable-developer was given.
18706 if test "${enable_developer+set}" = set; then
18707 enableval="$enable_developer"
18708 case "$enableval" in
18718 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18724 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18725 if test "${with_experimental_modules+set}" = set; then
18726 withval="$with_experimental_modules"
18736 OPENSSL_INCLUDE_DIR=
18738 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18739 if test "${with_openssl_includes+set}" = set; then
18740 withval="$with_openssl_includes"
18742 *) OPENSSL_INCLUDE_DIR="$withval"
18750 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18751 if test "${with_openssl_libraries+set}" = set; then
18752 withval="$with_openssl_libraries"
18754 *) OPENSSL_LIB_DIR="$withval"
18762 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
18763 if test "${with_rlm_FOO_lib_dir+set}" = set; then
18764 withval="$with_rlm_FOO_lib_dir"
18773 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
18774 if test "${with_rlm_FOO_include_dir+set}" = set; then
18775 withval="$with_rlm_FOO_include_dir"
18786 # Check whether --with-udpfromto or --without-udpfromto was given.
18787 if test "${with_udpfromto+set}" = set; then
18788 withval="$with_udpfromto"
18799 if test "x$WITH_UDPFROMTO" = "xyes"; then
18800 cat >>confdefs.h <<\_ACEOF
18801 #define WITH_UDPFROMTO 1
18807 # Check whether --with-edir or --without-edir was given.
18808 if test "${with_edir+set}" = set; then
18809 withval="$with_edir"
18814 CHECKRAD=checkrad.pl
18815 # Extract the first word of "perl", so it can be a program name with args.
18816 set dummy perl; ac_word=$2
18817 echo "$as_me:$LINENO: checking for $ac_word" >&5
18818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18819 if test "${ac_cv_path_PERL+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18824 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
18827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18828 for as_dir in $PATH
18831 test -z "$as_dir" && as_dir=.
18832 for ac_exec_ext in '' $ac_executable_extensions; do
18833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18834 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
18835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18841 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
18845 PERL=$ac_cv_path_PERL
18847 if test -n "$PERL"; then
18848 echo "$as_me:$LINENO: result: $PERL" >&5
18849 echo "${ECHO_T}$PERL" >&6
18851 echo "$as_me:$LINENO: result: no" >&5
18852 echo "${ECHO_T}no" >&6
18855 if test "x$ac_cv_path_PERL" = "x"; then
18856 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
18857 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18859 # Extract the first word of "snmpget", so it can be a program name with args.
18860 set dummy snmpget; ac_word=$2
18861 echo "$as_me:$LINENO: checking for $ac_word" >&5
18862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18863 if test "${ac_cv_path_SNMPGET+set}" = set; then
18864 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
18871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18872 for as_dir in $PATH
18875 test -z "$as_dir" && as_dir=.
18876 for ac_exec_ext in '' $ac_executable_extensions; do
18877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18878 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
18879 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18888 SNMPGET=$ac_cv_path_SNMPGET
18890 if test -n "$SNMPGET"; then
18891 echo "$as_me:$LINENO: result: $SNMPGET" >&5
18892 echo "${ECHO_T}$SNMPGET" >&6
18894 echo "$as_me:$LINENO: result: no" >&5
18895 echo "${ECHO_T}no" >&6
18898 if test "x$ac_cv_path_SNMPGET" = "x"; then
18899 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
18900 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18903 # Extract the first word of "snmpwalk", so it can be a program name with args.
18904 set dummy snmpwalk; ac_word=$2
18905 echo "$as_me:$LINENO: checking for $ac_word" >&5
18906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18907 if test "${ac_cv_path_SNMPWALK+set}" = set; then
18908 echo $ECHO_N "(cached) $ECHO_C" >&6
18912 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
18915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18916 for as_dir in $PATH
18919 test -z "$as_dir" && as_dir=.
18920 for ac_exec_ext in '' $ac_executable_extensions; do
18921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18922 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
18923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18932 SNMPWALK=$ac_cv_path_SNMPWALK
18934 if test -n "$SNMPWALK"; then
18935 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
18936 echo "${ECHO_T}$SNMPWALK" >&6
18938 echo "$as_me:$LINENO: result: no" >&5
18939 echo "${ECHO_T}no" >&6
18942 if test "x$ac_cv_path_SNMPWALK" = "x"; then
18943 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
18944 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
18947 # Extract the first word of "rusers", so it can be a program name with args.
18948 set dummy rusers; ac_word=$2
18949 echo "$as_me:$LINENO: checking for $ac_word" >&5
18950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18951 if test "${ac_cv_path_RUSERS+set}" = set; then
18952 echo $ECHO_N "(cached) $ECHO_C" >&6
18956 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
18959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18960 for as_dir in $PATH
18963 test -z "$as_dir" && as_dir=.
18964 for ac_exec_ext in '' $ac_executable_extensions; do
18965 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18966 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
18967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18973 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
18977 RUSERS=$ac_cv_path_RUSERS
18979 if test -n "$RUSERS"; then
18980 echo "$as_me:$LINENO: result: $RUSERS" >&5
18981 echo "${ECHO_T}$RUSERS" >&6
18983 echo "$as_me:$LINENO: result: no" >&5
18984 echo "${ECHO_T}no" >&6
18988 missing_dir=`cd $ac_aux_dir && pwd`
18989 echo "$as_me:$LINENO: checking for working aclocal" >&5
18990 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
18991 # Run test in a subshell; some versions of sh will print an error if
18992 # an executable is not found, even if stderr is redirected.
18993 # Redirect stdin to placate older versions of autoconf. Sigh.
18994 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
18996 echo "$as_me:$LINENO: result: found" >&5
18997 echo "${ECHO_T}found" >&6
18999 ACLOCAL="$missing_dir/missing aclocal"
19000 echo "$as_me:$LINENO: result: missing" >&5
19001 echo "${ECHO_T}missing" >&6
19004 echo "$as_me:$LINENO: checking for working autoconf" >&5
19005 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19006 # Run test in a subshell; some versions of sh will print an error if
19007 # an executable is not found, even if stderr is redirected.
19008 # Redirect stdin to placate older versions of autoconf. Sigh.
19009 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19011 echo "$as_me:$LINENO: result: found" >&5
19012 echo "${ECHO_T}found" >&6
19014 AUTOCONF="$missing_dir/missing autoconf"
19015 echo "$as_me:$LINENO: result: missing" >&5
19016 echo "${ECHO_T}missing" >&6
19019 echo "$as_me:$LINENO: checking for working autoheader" >&5
19020 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19021 # Run test in a subshell; some versions of sh will print an error if
19022 # an executable is not found, even if stderr is redirected.
19023 # Redirect stdin to placate older versions of autoconf. Sigh.
19024 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19025 AUTOHEADER=autoheader
19026 echo "$as_me:$LINENO: result: found" >&5
19027 echo "${ECHO_T}found" >&6
19029 AUTOHEADER="$missing_dir/missing autoheader"
19030 echo "$as_me:$LINENO: result: missing" >&5
19031 echo "${ECHO_T}missing" >&6
19035 # Extract the first word of "locate", so it can be a program name with args.
19036 set dummy locate; ac_word=$2
19037 echo "$as_me:$LINENO: checking for $ac_word" >&5
19038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19039 if test "${ac_cv_path_LOCATE+set}" = set; then
19040 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19051 test -z "$as_dir" && as_dir=.
19052 for ac_exec_ext in '' $ac_executable_extensions; do
19053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19054 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19064 LOCATE=$ac_cv_path_LOCATE
19066 if test -n "$LOCATE"; then
19067 echo "$as_me:$LINENO: result: $LOCATE" >&5
19068 echo "${ECHO_T}$LOCATE" >&6
19070 echo "$as_me:$LINENO: result: no" >&5
19071 echo "${ECHO_T}no" >&6
19074 # Extract the first word of "dirname", so it can be a program name with args.
19075 set dummy dirname; ac_word=$2
19076 echo "$as_me:$LINENO: checking for $ac_word" >&5
19077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19078 if test "${ac_cv_path_DIRNAME+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19083 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19090 test -z "$as_dir" && as_dir=.
19091 for ac_exec_ext in '' $ac_executable_extensions; do
19092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19103 DIRNAME=$ac_cv_path_DIRNAME
19105 if test -n "$DIRNAME"; then
19106 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19107 echo "${ECHO_T}$DIRNAME" >&6
19109 echo "$as_me:$LINENO: result: no" >&5
19110 echo "${ECHO_T}no" >&6
19113 # Extract the first word of "grep", so it can be a program name with args.
19114 set dummy grep; ac_word=$2
19115 echo "$as_me:$LINENO: checking for $ac_word" >&5
19116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19117 if test "${ac_cv_path_GREP+set}" = set; then
19118 echo $ECHO_N "(cached) $ECHO_C" >&6
19122 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19126 for as_dir in $PATH
19129 test -z "$as_dir" && as_dir=.
19130 for ac_exec_ext in '' $ac_executable_extensions; do
19131 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19132 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19142 GREP=$ac_cv_path_GREP
19144 if test -n "$GREP"; then
19145 echo "$as_me:$LINENO: result: $GREP" >&5
19146 echo "${ECHO_T}$GREP" >&6
19148 echo "$as_me:$LINENO: result: no" >&5
19149 echo "${ECHO_T}no" >&6
19155 if test "x$WITH_THREADS" = "xyes"; then
19156 if test $ac_cv_prog_suncc = "yes"; then
19157 CFLAGS="$CFLAGS -mt"
19161 for ac_header in pthread.h
19163 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19164 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19165 echo "$as_me:$LINENO: checking for $ac_header" >&5
19166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19167 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19171 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19173 # Is the header compilable?
19174 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19176 cat >conftest.$ac_ext <<_ACEOF
19179 cat confdefs.h >>conftest.$ac_ext
19180 cat >>conftest.$ac_ext <<_ACEOF
19181 /* end confdefs.h. */
19182 $ac_includes_default
19183 #include <$ac_header>
19185 rm -f conftest.$ac_objext
19186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19187 (eval $ac_compile) 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19193 (exit $ac_status); } &&
19194 { ac_try='test -z "$ac_c_werror_flag"
19195 || test ! -s conftest.err'
19196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19197 (eval $ac_try) 2>&5
19199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19200 (exit $ac_status); }; } &&
19201 { ac_try='test -s conftest.$ac_objext'
19202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19203 (eval $ac_try) 2>&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); }; }; then
19207 ac_header_compiler=yes
19209 echo "$as_me: failed program was:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_header_compiler=no
19214 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19215 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19216 echo "${ECHO_T}$ac_header_compiler" >&6
19218 # Is the header present?
19219 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19220 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19227 #include <$ac_header>
19229 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19230 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19232 grep -v '^ *+' conftest.er1 >conftest.err
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } >/dev/null; then
19237 if test -s conftest.err; then
19238 ac_cpp_err=$ac_c_preproc_warn_flag
19239 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19246 if test -z "$ac_cpp_err"; then
19247 ac_header_preproc=yes
19249 echo "$as_me: failed program was:" >&5
19250 sed 's/^/| /' conftest.$ac_ext >&5
19252 ac_header_preproc=no
19254 rm -f conftest.err conftest.$ac_ext
19255 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19256 echo "${ECHO_T}$ac_header_preproc" >&6
19258 # So? What about this header?
19259 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19261 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19262 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19263 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19264 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19265 ac_header_preproc=yes
19268 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19269 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19270 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19271 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19272 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19273 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19274 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19275 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19276 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19277 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19278 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19279 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19282 ## ------------------------------------------ ##
19283 ## Report this to the AC_PACKAGE_NAME lists. ##
19284 ## ------------------------------------------ ##
19287 sed "s/^/$as_me: WARNING: /" >&2
19290 echo "$as_me:$LINENO: checking for $ac_header" >&5
19291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19292 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 eval "$as_ac_Header=\$ac_header_preproc"
19297 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19298 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19301 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19313 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19314 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19315 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19316 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 ac_check_lib_save_LIBS=$LIBS
19319 LIBS="-lpthread $LIBS"
19320 cat >conftest.$ac_ext <<_ACEOF
19323 cat confdefs.h >>conftest.$ac_ext
19324 cat >>conftest.$ac_ext <<_ACEOF
19325 /* end confdefs.h. */
19327 /* Override any gcc2 internal prototype to avoid an error. */
19331 /* We use char because int might match the return type of a gcc2
19332 builtin and then its argument prototype would still apply. */
19333 char pthread_create ();
19342 rm -f conftest.$ac_objext conftest$ac_exeext
19343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19344 (eval $ac_link) 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); } &&
19351 { ac_try='test -z "$ac_c_werror_flag"
19352 || test ! -s conftest.err'
19353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19354 (eval $ac_try) 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; } &&
19358 { ac_try='test -s conftest$ac_exeext'
19359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19360 (eval $ac_try) 2>&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); }; }; then
19364 ac_cv_lib_pthread_pthread_create=yes
19366 echo "$as_me: failed program was:" >&5
19367 sed 's/^/| /' conftest.$ac_ext >&5
19369 ac_cv_lib_pthread_pthread_create=no
19371 rm -f conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 LIBS=$ac_check_lib_save_LIBS
19375 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19376 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19377 if test $ac_cv_lib_pthread_pthread_create = yes; then
19378 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19379 LIBS="$LIBS -lpthread"
19381 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19382 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19383 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 ac_check_lib_save_LIBS=$LIBS
19388 cat >conftest.$ac_ext <<_ACEOF
19391 cat confdefs.h >>conftest.$ac_ext
19392 cat >>conftest.$ac_ext <<_ACEOF
19393 /* end confdefs.h. */
19395 /* Override any gcc2 internal prototype to avoid an error. */
19399 /* We use char because int might match the return type of a gcc2
19400 builtin and then its argument prototype would still apply. */
19401 char pthread_create ();
19410 rm -f conftest.$ac_objext conftest$ac_exeext
19411 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19412 (eval $ac_link) 2>conftest.er1
19414 grep -v '^ *+' conftest.er1 >conftest.err
19416 cat conftest.err >&5
19417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } &&
19419 { ac_try='test -z "$ac_c_werror_flag"
19420 || test ! -s conftest.err'
19421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19422 (eval $ac_try) 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try='test -s conftest$ac_exeext'
19427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19428 (eval $ac_try) 2>&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); }; }; then
19432 ac_cv_lib_c_r_pthread_create=yes
19434 echo "$as_me: failed program was:" >&5
19435 sed 's/^/| /' conftest.$ac_ext >&5
19437 ac_cv_lib_c_r_pthread_create=no
19439 rm -f conftest.err conftest.$ac_objext \
19440 conftest$ac_exeext conftest.$ac_ext
19441 LIBS=$ac_check_lib_save_LIBS
19443 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19444 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19445 if test $ac_cv_lib_c_r_pthread_create = yes; then
19446 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19457 if test "x$WITH_THREADS" != "xyes"; then
19459 ac_cv_header_pthread_h="no"
19463 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19464 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19465 if test "${ac_cv_search_sem_init+set}" = set; then
19466 echo $ECHO_N "(cached) $ECHO_C" >&6
19468 ac_func_search_save_LIBS=$LIBS
19469 ac_cv_search_sem_init=no
19470 cat >conftest.$ac_ext <<_ACEOF
19473 cat confdefs.h >>conftest.$ac_ext
19474 cat >>conftest.$ac_ext <<_ACEOF
19475 /* end confdefs.h. */
19477 /* Override any gcc2 internal prototype to avoid an error. */
19481 /* We use char because int might match the return type of a gcc2
19482 builtin and then its argument prototype would still apply. */
19492 rm -f conftest.$ac_objext conftest$ac_exeext
19493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19494 (eval $ac_link) 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_c_werror_flag"
19502 || test ! -s conftest.err'
19503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19504 (eval $ac_try) 2>&5
19506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19507 (exit $ac_status); }; } &&
19508 { ac_try='test -s conftest$ac_exeext'
19509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19510 (eval $ac_try) 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; }; then
19514 ac_cv_search_sem_init="none required"
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19520 rm -f conftest.err conftest.$ac_objext \
19521 conftest$ac_exeext conftest.$ac_ext
19522 if test "$ac_cv_search_sem_init" = no; then
19523 for ac_lib in pthread sem posix4 rt; do
19524 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19525 cat >conftest.$ac_ext <<_ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h. */
19532 /* Override any gcc2 internal prototype to avoid an error. */
19536 /* We use char because int might match the return type of a gcc2
19537 builtin and then its argument prototype would still apply. */
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>conftest.er1
19551 grep -v '^ *+' conftest.er1 >conftest.err
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -z "$ac_c_werror_flag"
19557 || test ! -s conftest.err'
19558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19559 (eval $ac_try) 2>&5
19561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19562 (exit $ac_status); }; } &&
19563 { ac_try='test -s conftest$ac_exeext'
19564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19565 (eval $ac_try) 2>&5
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); }; }; then
19569 ac_cv_search_sem_init="-l$ac_lib"
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19576 rm -f conftest.err conftest.$ac_objext \
19577 conftest$ac_exeext conftest.$ac_ext
19580 LIBS=$ac_func_search_save_LIBS
19582 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19583 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19584 if test "$ac_cv_search_sem_init" != no; then
19585 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19588 { { 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
19589 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;}
19590 { (exit 1); exit 1; }; }
19597 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19598 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19599 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19600 echo $ECHO_N "(cached) $ECHO_C" >&6
19602 ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lsocket $LIBS"
19604 cat >conftest.$ac_ext <<_ACEOF
19607 cat confdefs.h >>conftest.$ac_ext
19608 cat >>conftest.$ac_ext <<_ACEOF
19609 /* end confdefs.h. */
19611 /* Override any gcc2 internal prototype to avoid an error. */
19615 /* We use char because int might match the return type of a gcc2
19616 builtin and then its argument prototype would still apply. */
19617 char getsockname ();
19626 rm -f conftest.$ac_objext conftest$ac_exeext
19627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19628 (eval $ac_link) 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19634 (exit $ac_status); } &&
19635 { ac_try='test -z "$ac_c_werror_flag"
19636 || test ! -s conftest.err'
19637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19638 (eval $ac_try) 2>&5
19640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641 (exit $ac_status); }; } &&
19642 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
19648 ac_cv_lib_socket_getsockname=yes
19650 echo "$as_me: failed program was:" >&5
19651 sed 's/^/| /' conftest.$ac_ext >&5
19653 ac_cv_lib_socket_getsockname=no
19655 rm -f conftest.err conftest.$ac_objext \
19656 conftest$ac_exeext conftest.$ac_ext
19657 LIBS=$ac_check_lib_save_LIBS
19659 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19660 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19661 if test $ac_cv_lib_socket_getsockname = yes; then
19662 cat >>confdefs.h <<_ACEOF
19663 #define HAVE_LIBSOCKET 1
19666 LIBS="-lsocket $LIBS"
19672 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19673 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19674 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19675 echo $ECHO_N "(cached) $ECHO_C" >&6
19677 ac_check_lib_save_LIBS=$LIBS
19678 LIBS="-lresolv $LIBS"
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19686 /* Override any gcc2 internal prototype to avoid an error. */
19690 /* We use char because int might match the return type of a gcc2
19691 builtin and then its argument prototype would still apply. */
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19703 (eval $ac_link) 2>conftest.er1
19705 grep -v '^ *+' conftest.er1 >conftest.err
19707 cat conftest.err >&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); } &&
19710 { ac_try='test -z "$ac_c_werror_flag"
19711 || test ! -s conftest.err'
19712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19713 (eval $ac_try) 2>&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); }; } &&
19717 { ac_try='test -s conftest$ac_exeext'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; }; then
19723 ac_cv_lib_resolv_inet_aton=yes
19725 echo "$as_me: failed program was:" >&5
19726 sed 's/^/| /' conftest.$ac_ext >&5
19728 ac_cv_lib_resolv_inet_aton=no
19730 rm -f conftest.err conftest.$ac_objext \
19731 conftest$ac_exeext conftest.$ac_ext
19732 LIBS=$ac_check_lib_save_LIBS
19734 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19735 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19736 if test $ac_cv_lib_resolv_inet_aton = yes; then
19737 cat >>confdefs.h <<_ACEOF
19738 #define HAVE_LIBRESOLV 1
19741 LIBS="-lresolv $LIBS"
19747 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19748 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19749 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19750 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_check_lib_save_LIBS=$LIBS
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any gcc2 internal prototype to avoid an error. */
19765 /* We use char because int might match the return type of a gcc2
19766 builtin and then its argument prototype would still apply. */
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19778 (eval $ac_link) 2>conftest.er1
19780 grep -v '^ *+' conftest.er1 >conftest.err
19782 cat conftest.err >&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); } &&
19785 { ac_try='test -z "$ac_c_werror_flag"
19786 || test ! -s conftest.err'
19787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19788 (eval $ac_try) 2>&5
19790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19791 (exit $ac_status); }; } &&
19792 { ac_try='test -s conftest$ac_exeext'
19793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19794 (eval $ac_try) 2>&5
19796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19797 (exit $ac_status); }; }; then
19798 ac_cv_lib_nsl_inet_ntoa=yes
19800 echo "$as_me: failed program was:" >&5
19801 sed 's/^/| /' conftest.$ac_ext >&5
19803 ac_cv_lib_nsl_inet_ntoa=no
19805 rm -f conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LIBS=$ac_check_lib_save_LIBS
19809 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
19810 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
19811 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
19812 cat >>confdefs.h <<_ACEOF
19813 #define HAVE_LIBNSL 1
19823 if test "x$OPENSSL_LIB_DIR" != "x"; then
19824 LIBS="-L$OPENSSL_LIB_DIR $LIBS"
19826 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
19827 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
19828 if test "${ac_cv_lib_crypto_DH_new+set}" = set; then
19829 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 ac_check_lib_save_LIBS=$LIBS
19832 LIBS="-lcrypto $LIBS"
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19840 /* Override any gcc2 internal prototype to avoid an error. */
19844 /* We use char because int might match the return type of a gcc2
19845 builtin and then its argument prototype would still apply. */
19855 rm -f conftest.$ac_objext conftest$ac_exeext
19856 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19857 (eval $ac_link) 2>conftest.er1
19859 grep -v '^ *+' conftest.er1 >conftest.err
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_c_werror_flag"
19865 || test ! -s conftest.err'
19866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19867 (eval $ac_try) 2>&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); }; } &&
19871 { ac_try='test -s conftest$ac_exeext'
19872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19873 (eval $ac_try) 2>&5
19875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19876 (exit $ac_status); }; }; then
19877 ac_cv_lib_crypto_DH_new=yes
19879 echo "$as_me: failed program was:" >&5
19880 sed 's/^/| /' conftest.$ac_ext >&5
19882 ac_cv_lib_crypto_DH_new=no
19884 rm -f conftest.err conftest.$ac_objext \
19885 conftest$ac_exeext conftest.$ac_ext
19886 LIBS=$ac_check_lib_save_LIBS
19888 echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_DH_new" >&5
19889 echo "${ECHO_T}$ac_cv_lib_crypto_DH_new" >&6
19890 if test $ac_cv_lib_crypto_DH_new = yes; then
19893 cat >>confdefs.h <<\_ACEOF
19894 #define HAVE_LIBCRYPTO 1
19897 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
19898 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
19899 if test "${ac_cv_lib_ssl_SSL_new+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19902 ac_check_lib_save_LIBS=$LIBS
19904 cat >conftest.$ac_ext <<_ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19911 /* Override any gcc2 internal prototype to avoid an error. */
19915 /* We use char because int might match the return type of a gcc2
19916 builtin and then its argument prototype would still apply. */
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19928 (eval $ac_link) 2>conftest.er1
19930 grep -v '^ *+' conftest.er1 >conftest.err
19932 cat conftest.err >&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); } &&
19935 { ac_try='test -z "$ac_c_werror_flag"
19936 || test ! -s conftest.err'
19937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19938 (eval $ac_try) 2>&5
19940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941 (exit $ac_status); }; } &&
19942 { ac_try='test -s conftest$ac_exeext'
19943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19944 (eval $ac_try) 2>&5
19946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19947 (exit $ac_status); }; }; then
19948 ac_cv_lib_ssl_SSL_new=yes
19950 echo "$as_me: failed program was:" >&5
19951 sed 's/^/| /' conftest.$ac_ext >&5
19953 ac_cv_lib_ssl_SSL_new=no
19955 rm -f conftest.err conftest.$ac_objext \
19956 conftest$ac_exeext conftest.$ac_ext
19957 LIBS=$ac_check_lib_save_LIBS
19959 echo "$as_me:$LINENO: result: $ac_cv_lib_ssl_SSL_new" >&5
19960 echo "${ECHO_T}$ac_cv_lib_ssl_SSL_new" >&6
19961 if test $ac_cv_lib_ssl_SSL_new = yes; then
19964 cat >>confdefs.h <<\_ACEOF
19965 #define HAVE_LIBSSL 1
19968 if test "x$OPENSSL_LIB_DIR" != "x"; then
19969 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
19971 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
19983 CFLAGS="$CFLAGS -D_ALL_SOURCE"
19986 CFLAGS="$CFLAGS -DDARWIN"
19995 ac_header_dirent=no
19996 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
19997 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
19998 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
19999 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20000 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20003 cat >conftest.$ac_ext <<_ACEOF
20006 cat confdefs.h >>conftest.$ac_ext
20007 cat >>conftest.$ac_ext <<_ACEOF
20008 /* end confdefs.h. */
20009 #include <sys/types.h>
20021 rm -f conftest.$ac_objext
20022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20023 (eval $ac_compile) 2>conftest.er1
20025 grep -v '^ *+' conftest.er1 >conftest.err
20027 cat conftest.err >&5
20028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20029 (exit $ac_status); } &&
20030 { ac_try='test -z "$ac_c_werror_flag"
20031 || test ! -s conftest.err'
20032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20033 (eval $ac_try) 2>&5
20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20036 (exit $ac_status); }; } &&
20037 { ac_try='test -s conftest.$ac_objext'
20038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20039 (eval $ac_try) 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; }; then
20043 eval "$as_ac_Header=yes"
20045 echo "$as_me: failed program was:" >&5
20046 sed 's/^/| /' conftest.$ac_ext >&5
20048 eval "$as_ac_Header=no"
20050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20052 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20053 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20055 cat >>confdefs.h <<_ACEOF
20056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20059 ac_header_dirent=$ac_hdr; break
20063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20064 if test $ac_header_dirent = dirent.h; then
20065 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20067 if test "${ac_cv_search_opendir+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20070 ac_func_search_save_LIBS=$LIBS
20071 ac_cv_search_opendir=no
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 /* Override any gcc2 internal prototype to avoid an error. */
20083 /* We use char because int might match the return type of a gcc2
20084 builtin and then its argument prototype would still apply. */
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20096 (eval $ac_link) 2>conftest.er1
20098 grep -v '^ *+' conftest.er1 >conftest.err
20100 cat conftest.err >&5
20101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20102 (exit $ac_status); } &&
20103 { ac_try='test -z "$ac_c_werror_flag"
20104 || 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"
20159 || test ! -s conftest.err'
20160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20161 (eval $ac_try) 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); }; } &&
20165 { ac_try='test -s conftest$ac_exeext'
20166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20167 (eval $ac_try) 2>&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); }; }; then
20171 ac_cv_search_opendir="-l$ac_lib"
20174 echo "$as_me: failed program was:" >&5
20175 sed 's/^/| /' conftest.$ac_ext >&5
20178 rm -f conftest.err conftest.$ac_objext \
20179 conftest$ac_exeext conftest.$ac_ext
20182 LIBS=$ac_func_search_save_LIBS
20184 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20185 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20186 if test "$ac_cv_search_opendir" != no; then
20187 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20192 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20193 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20194 if test "${ac_cv_search_opendir+set}" = set; then
20195 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 ac_func_search_save_LIBS=$LIBS
20198 ac_cv_search_opendir=no
20199 cat >conftest.$ac_ext <<_ACEOF
20202 cat confdefs.h >>conftest.$ac_ext
20203 cat >>conftest.$ac_ext <<_ACEOF
20204 /* end confdefs.h. */
20206 /* Override any gcc2 internal prototype to avoid an error. */
20210 /* We use char because int might match the return type of a gcc2
20211 builtin and then its argument prototype would still apply. */
20221 rm -f conftest.$ac_objext conftest$ac_exeext
20222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20223 (eval $ac_link) 2>conftest.er1
20225 grep -v '^ *+' conftest.er1 >conftest.err
20227 cat conftest.err >&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); } &&
20230 { ac_try='test -z "$ac_c_werror_flag"
20231 || test ! -s conftest.err'
20232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20233 (eval $ac_try) 2>&5
20235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20236 (exit $ac_status); }; } &&
20237 { ac_try='test -s conftest$ac_exeext'
20238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20239 (eval $ac_try) 2>&5
20241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20242 (exit $ac_status); }; }; then
20243 ac_cv_search_opendir="none required"
20245 echo "$as_me: failed program was:" >&5
20246 sed 's/^/| /' conftest.$ac_ext >&5
20249 rm -f conftest.err conftest.$ac_objext \
20250 conftest$ac_exeext conftest.$ac_ext
20251 if test "$ac_cv_search_opendir" = no; then
20252 for ac_lib in x; do
20253 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 /* Override any gcc2 internal prototype to avoid an error. */
20265 /* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
20285 { ac_try='test -z "$ac_c_werror_flag"
20286 || test ! -s conftest.err'
20287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20288 (eval $ac_try) 2>&5
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; } &&
20292 { ac_try='test -s conftest$ac_exeext'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20298 ac_cv_search_opendir="-l$ac_lib"
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20305 rm -f conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20309 LIBS=$ac_func_search_save_LIBS
20311 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20312 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20313 if test "$ac_cv_search_opendir" != no; then
20314 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20320 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20321 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20322 if test "${ac_cv_header_stdc+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20325 cat >conftest.$ac_ext <<_ACEOF
20328 cat confdefs.h >>conftest.$ac_ext
20329 cat >>conftest.$ac_ext <<_ACEOF
20330 /* end confdefs.h. */
20331 #include <stdlib.h>
20332 #include <stdarg.h>
20333 #include <string.h>
20344 rm -f conftest.$ac_objext
20345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20346 (eval $ac_compile) 2>conftest.er1
20348 grep -v '^ *+' conftest.er1 >conftest.err
20350 cat conftest.err >&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); } &&
20353 { ac_try='test -z "$ac_c_werror_flag"
20354 || test ! -s conftest.err'
20355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20356 (eval $ac_try) 2>&5
20358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20359 (exit $ac_status); }; } &&
20360 { ac_try='test -s conftest.$ac_objext'
20361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20362 (eval $ac_try) 2>&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; }; then
20366 ac_cv_header_stdc=yes
20368 echo "$as_me: failed program was:" >&5
20369 sed 's/^/| /' conftest.$ac_ext >&5
20371 ac_cv_header_stdc=no
20373 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 if test $ac_cv_header_stdc = yes; then
20376 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20377 cat >conftest.$ac_ext <<_ACEOF
20380 cat confdefs.h >>conftest.$ac_ext
20381 cat >>conftest.$ac_ext <<_ACEOF
20382 /* end confdefs.h. */
20383 #include <string.h>
20386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20387 $EGREP "memchr" >/dev/null 2>&1; then
20390 ac_cv_header_stdc=no
20396 if test $ac_cv_header_stdc = yes; then
20397 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20398 cat >conftest.$ac_ext <<_ACEOF
20401 cat confdefs.h >>conftest.$ac_ext
20402 cat >>conftest.$ac_ext <<_ACEOF
20403 /* end confdefs.h. */
20404 #include <stdlib.h>
20407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20408 $EGREP "free" >/dev/null 2>&1; then
20411 ac_cv_header_stdc=no
20417 if test $ac_cv_header_stdc = yes; then
20418 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20419 if test "$cross_compiling" = yes; then
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 #if ((' ' & 0x0FF) == 0x020)
20430 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20431 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20433 # define ISLOWER(c) \
20434 (('a' <= (c) && (c) <= 'i') \
20435 || ('j' <= (c) && (c) <= 'r') \
20436 || ('s' <= (c) && (c) <= 'z'))
20437 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20440 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20445 for (i = 0; i < 256; i++)
20446 if (XOR (islower (i), ISLOWER (i))
20447 || toupper (i) != TOUPPER (i))
20452 rm -f conftest$ac_exeext
20453 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20454 (eval $ac_link) 2>&5
20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20459 (eval $ac_try) 2>&5
20461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20462 (exit $ac_status); }; }; then
20465 echo "$as_me: program exited with status $ac_status" >&5
20466 echo "$as_me: failed program was:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ( exit $ac_status )
20470 ac_cv_header_stdc=no
20472 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20476 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20477 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20478 if test $ac_cv_header_stdc = yes; then
20480 cat >>confdefs.h <<\_ACEOF
20481 #define STDC_HEADERS 1
20486 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20487 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20488 if test "${ac_cv_header_time+set}" = set; then
20489 echo $ECHO_N "(cached) $ECHO_C" >&6
20491 cat >conftest.$ac_ext <<_ACEOF
20494 cat confdefs.h >>conftest.$ac_ext
20495 cat >>conftest.$ac_ext <<_ACEOF
20496 /* end confdefs.h. */
20497 #include <sys/types.h>
20498 #include <sys/time.h>
20504 if ((struct tm *) 0)
20510 rm -f conftest.$ac_objext
20511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20512 (eval $ac_compile) 2>conftest.er1
20514 grep -v '^ *+' conftest.er1 >conftest.err
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } &&
20519 { ac_try='test -z "$ac_c_werror_flag"
20520 || test ! -s conftest.err'
20521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20522 (eval $ac_try) 2>&5
20524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20525 (exit $ac_status); }; } &&
20526 { ac_try='test -s conftest.$ac_objext'
20527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20528 (eval $ac_try) 2>&5
20530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20531 (exit $ac_status); }; }; then
20532 ac_cv_header_time=yes
20534 echo "$as_me: failed program was:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_header_time=no
20539 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20541 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20542 echo "${ECHO_T}$ac_cv_header_time" >&6
20543 if test $ac_cv_header_time = yes; then
20545 cat >>confdefs.h <<\_ACEOF
20546 #define TIME_WITH_SYS_TIME 1
20551 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20552 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20553 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20554 echo $ECHO_N "(cached) $ECHO_C" >&6
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562 #include <sys/types.h>
20563 #include <sys/wait.h>
20564 #ifndef WEXITSTATUS
20565 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20568 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20576 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20581 rm -f conftest.$ac_objext
20582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20583 (eval $ac_compile) 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } &&
20590 { ac_try='test -z "$ac_c_werror_flag"
20591 || test ! -s conftest.err'
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); }; } &&
20597 { ac_try='test -s conftest.$ac_objext'
20598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20599 (eval $ac_try) 2>&5
20601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20602 (exit $ac_status); }; }; then
20603 ac_cv_header_sys_wait_h=yes
20605 echo "$as_me: failed program was:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_cv_header_sys_wait_h=no
20610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20612 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20613 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20614 if test $ac_cv_header_sys_wait_h = yes; then
20616 cat >>confdefs.h <<\_ACEOF
20617 #define HAVE_SYS_WAIT_H 1
20686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20687 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20688 echo "$as_me:$LINENO: checking for $ac_header" >&5
20689 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20691 echo $ECHO_N "(cached) $ECHO_C" >&6
20693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20694 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20696 # Is the header compilable?
20697 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705 $ac_includes_default
20706 #include <$ac_header>
20708 rm -f conftest.$ac_objext
20709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20710 (eval $ac_compile) 2>conftest.er1
20712 grep -v '^ *+' conftest.er1 >conftest.err
20714 cat conftest.err >&5
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); } &&
20717 { ac_try='test -z "$ac_c_werror_flag"
20718 || test ! -s conftest.err'
20719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20720 (eval $ac_try) 2>&5
20722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20723 (exit $ac_status); }; } &&
20724 { ac_try='test -s conftest.$ac_objext'
20725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20726 (eval $ac_try) 2>&5
20728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20729 (exit $ac_status); }; }; then
20730 ac_header_compiler=yes
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_header_compiler=no
20737 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20738 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20739 echo "${ECHO_T}$ac_header_compiler" >&6
20741 # Is the header present?
20742 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20744 cat >conftest.$ac_ext <<_ACEOF
20747 cat confdefs.h >>conftest.$ac_ext
20748 cat >>conftest.$ac_ext <<_ACEOF
20749 /* end confdefs.h. */
20750 #include <$ac_header>
20752 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20753 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20755 grep -v '^ *+' conftest.er1 >conftest.err
20757 cat conftest.err >&5
20758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20759 (exit $ac_status); } >/dev/null; then
20760 if test -s conftest.err; then
20761 ac_cpp_err=$ac_c_preproc_warn_flag
20762 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20769 if test -z "$ac_cpp_err"; then
20770 ac_header_preproc=yes
20772 echo "$as_me: failed program was:" >&5
20773 sed 's/^/| /' conftest.$ac_ext >&5
20775 ac_header_preproc=no
20777 rm -f conftest.err conftest.$ac_ext
20778 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6
20781 # So? What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20788 ac_header_preproc=yes
20791 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20793 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20794 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20795 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20797 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20798 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20799 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20801 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20805 ## ------------------------------------------ ##
20806 ## Report this to the AC_PACKAGE_NAME lists. ##
20807 ## ------------------------------------------ ##
20810 sed "s/^/$as_me: WARNING: /" >&2
20813 echo "$as_me:$LINENO: checking for $ac_header" >&5
20814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20816 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 eval "$as_ac_Header=\$ac_header_preproc"
20820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20825 cat >>confdefs.h <<_ACEOF
20826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20835 if test "${ac_cv_header_regex_h+set}" = set; then
20836 echo "$as_me:$LINENO: checking for regex.h" >&5
20837 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20838 if test "${ac_cv_header_regex_h+set}" = set; then
20839 echo $ECHO_N "(cached) $ECHO_C" >&6
20841 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20842 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20844 # Is the header compilable?
20845 echo "$as_me:$LINENO: checking regex.h usability" >&5
20846 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20847 cat >conftest.$ac_ext <<_ACEOF
20850 cat confdefs.h >>conftest.$ac_ext
20851 cat >>conftest.$ac_ext <<_ACEOF
20852 /* end confdefs.h. */
20853 $ac_includes_default
20856 rm -f conftest.$ac_objext
20857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20858 (eval $ac_compile) 2>conftest.er1
20860 grep -v '^ *+' conftest.er1 >conftest.err
20862 cat conftest.err >&5
20863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20864 (exit $ac_status); } &&
20865 { ac_try='test -z "$ac_c_werror_flag"
20866 || test ! -s conftest.err'
20867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20868 (eval $ac_try) 2>&5
20870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20871 (exit $ac_status); }; } &&
20872 { ac_try='test -s conftest.$ac_objext'
20873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20874 (eval $ac_try) 2>&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); }; }; then
20878 ac_header_compiler=yes
20880 echo "$as_me: failed program was:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_header_compiler=no
20885 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20886 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20887 echo "${ECHO_T}$ac_header_compiler" >&6
20889 # Is the header present?
20890 echo "$as_me:$LINENO: checking regex.h presence" >&5
20891 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20892 cat >conftest.$ac_ext <<_ACEOF
20895 cat confdefs.h >>conftest.$ac_ext
20896 cat >>conftest.$ac_ext <<_ACEOF
20897 /* end confdefs.h. */
20900 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20901 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20903 grep -v '^ *+' conftest.er1 >conftest.err
20905 cat conftest.err >&5
20906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20907 (exit $ac_status); } >/dev/null; then
20908 if test -s conftest.err; then
20909 ac_cpp_err=$ac_c_preproc_warn_flag
20910 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20917 if test -z "$ac_cpp_err"; then
20918 ac_header_preproc=yes
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20923 ac_header_preproc=no
20925 rm -f conftest.err conftest.$ac_ext
20926 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20927 echo "${ECHO_T}$ac_header_preproc" >&6
20929 # So? What about this header?
20930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20933 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20934 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20935 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20936 ac_header_preproc=yes
20939 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20940 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20941 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20942 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20943 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20944 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20945 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20946 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20947 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20948 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20949 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20950 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20953 ## ------------------------------------------ ##
20954 ## Report this to the AC_PACKAGE_NAME lists. ##
20955 ## ------------------------------------------ ##
20958 sed "s/^/$as_me: WARNING: /" >&2
20961 echo "$as_me:$LINENO: checking for regex.h" >&5
20962 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20963 if test "${ac_cv_header_regex_h+set}" = set; then
20964 echo $ECHO_N "(cached) $ECHO_C" >&6
20966 ac_cv_header_regex_h=$ac_header_preproc
20968 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20969 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20972 if test $ac_cv_header_regex_h = yes; then
20973 cat >>confdefs.h <<\_ACEOF
20974 #define HAVE_REGEX_H 1
20980 if test "x$ac_cv_header_regex_h" = "xyes"; then
20983 cat >conftest.$ac_ext <<_ACEOF
20986 cat confdefs.h >>conftest.$ac_ext
20987 cat >>conftest.$ac_ext <<_ACEOF
20988 /* end confdefs.h. */
20990 #ifdef REG_EXTENDED
20995 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20996 $EGREP "yes" >/dev/null 2>&1; then
20997 cat >>confdefs.h <<\_ACEOF
20998 #define HAVE_REG_EXTENDED 1
21008 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21010 cat >>confdefs.h <<\_ACEOF
21016 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21018 cat >>confdefs.h <<\_ACEOF
21024 OPENSSL_INCLUDE="-DNO_OPENSSL"
21025 if test "x$OPENSSL_LIBS" = "x"; then
21026 { echo "$as_me:$LINENO: WARNING: skipping test for openssl/ssl.h" >&5
21027 echo "$as_me: WARNING: skipping test for openssl/ssl.h" >&2;}
21029 old_CPPFLAGS=$CPPFLAGS
21030 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21031 CPPFLAGS="$CPPFLAGS -I$OPENSSL_INCLUDE_DIR"
21033 CPPFLAGS="$CPPFLAGS -DOPENSSL_NO_KRB5"
21044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21045 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21046 echo "$as_me:$LINENO: checking for $ac_header" >&5
21047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21049 echo $ECHO_N "(cached) $ECHO_C" >&6
21051 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21052 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21054 # Is the header compilable?
21055 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21063 $ac_includes_default
21064 #include <$ac_header>
21066 rm -f conftest.$ac_objext
21067 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21068 (eval $ac_compile) 2>conftest.er1
21070 grep -v '^ *+' conftest.er1 >conftest.err
21072 cat conftest.err >&5
21073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21074 (exit $ac_status); } &&
21075 { ac_try='test -z "$ac_c_werror_flag"
21076 || test ! -s conftest.err'
21077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21078 (eval $ac_try) 2>&5
21080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21081 (exit $ac_status); }; } &&
21082 { ac_try='test -s conftest.$ac_objext'
21083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21084 (eval $ac_try) 2>&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); }; }; then
21088 ac_header_compiler=yes
21090 echo "$as_me: failed program was:" >&5
21091 sed 's/^/| /' conftest.$ac_ext >&5
21093 ac_header_compiler=no
21095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21096 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21097 echo "${ECHO_T}$ac_header_compiler" >&6
21099 # Is the header present?
21100 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21101 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21102 cat >conftest.$ac_ext <<_ACEOF
21105 cat confdefs.h >>conftest.$ac_ext
21106 cat >>conftest.$ac_ext <<_ACEOF
21107 /* end confdefs.h. */
21108 #include <$ac_header>
21110 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21111 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21113 grep -v '^ *+' conftest.er1 >conftest.err
21115 cat conftest.err >&5
21116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21117 (exit $ac_status); } >/dev/null; then
21118 if test -s conftest.err; then
21119 ac_cpp_err=$ac_c_preproc_warn_flag
21120 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21127 if test -z "$ac_cpp_err"; then
21128 ac_header_preproc=yes
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21133 ac_header_preproc=no
21135 rm -f conftest.err conftest.$ac_ext
21136 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21137 echo "${ECHO_T}$ac_header_preproc" >&6
21139 # So? What about this header?
21140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21146 ac_header_preproc=yes
21149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21163 ## ------------------------------------------ ##
21164 ## Report this to the AC_PACKAGE_NAME lists. ##
21165 ## ------------------------------------------ ##
21168 sed "s/^/$as_me: WARNING: /" >&2
21171 echo "$as_me:$LINENO: checking for $ac_header" >&5
21172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21174 echo $ECHO_N "(cached) $ECHO_C" >&6
21176 eval "$as_ac_Header=\$ac_header_preproc"
21178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21179 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21182 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21183 cat >>confdefs.h <<_ACEOF
21184 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21194 if test "x$OPENSSL_LIBS" != "x"; then
21195 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21196 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21197 cat >conftest.$ac_ext <<_ACEOF
21200 cat confdefs.h >>conftest.$ac_ext
21201 cat >>conftest.$ac_ext <<_ACEOF
21202 /* end confdefs.h. */
21203 #include <openssl/crypto.h>
21204 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21210 $EGREP "yes" >/dev/null 2>&1; then
21215 if test "x$goodssl" != "xyes"; then
21216 echo "$as_me:$LINENO: result: no" >&5
21217 echo "${ECHO_T}no" >&6
21220 echo "$as_me:$LINENO: result: yes" >&5
21221 echo "${ECHO_T}yes" >&6
21222 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21223 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR -DOPENSSL_NO_KRB5"
21225 OPENSSL_INCLUDE="-DOPENSSL_NO_KRB5"
21229 CPPFLAGS=$old_CPPFLAGS
21233 export OPENSSL_LIBS
21236 echo "$as_me:$LINENO: checking for off_t" >&5
21237 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21238 if test "${ac_cv_type_off_t+set}" = set; then
21239 echo $ECHO_N "(cached) $ECHO_C" >&6
21241 cat >conftest.$ac_ext <<_ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 $ac_includes_default
21253 if (sizeof (off_t))
21259 rm -f conftest.$ac_objext
21260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21261 (eval $ac_compile) 2>conftest.er1
21263 grep -v '^ *+' conftest.er1 >conftest.err
21265 cat conftest.err >&5
21266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21267 (exit $ac_status); } &&
21268 { ac_try='test -z "$ac_c_werror_flag"
21269 || test ! -s conftest.err'
21270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21271 (eval $ac_try) 2>&5
21273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21274 (exit $ac_status); }; } &&
21275 { ac_try='test -s conftest.$ac_objext'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; }; then
21281 ac_cv_type_off_t=yes
21283 echo "$as_me: failed program was:" >&5
21284 sed 's/^/| /' conftest.$ac_ext >&5
21286 ac_cv_type_off_t=no
21288 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21290 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21291 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21292 if test $ac_cv_type_off_t = yes; then
21296 cat >>confdefs.h <<_ACEOF
21302 echo "$as_me:$LINENO: checking for pid_t" >&5
21303 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21304 if test "${ac_cv_type_pid_t+set}" = set; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21307 cat >conftest.$ac_ext <<_ACEOF
21310 cat confdefs.h >>conftest.$ac_ext
21311 cat >>conftest.$ac_ext <<_ACEOF
21312 /* end confdefs.h. */
21313 $ac_includes_default
21319 if (sizeof (pid_t))
21325 rm -f conftest.$ac_objext
21326 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21327 (eval $ac_compile) 2>conftest.er1
21329 grep -v '^ *+' conftest.er1 >conftest.err
21331 cat conftest.err >&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); } &&
21334 { ac_try='test -z "$ac_c_werror_flag"
21335 || test ! -s conftest.err'
21336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21337 (eval $ac_try) 2>&5
21339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21340 (exit $ac_status); }; } &&
21341 { ac_try='test -s conftest.$ac_objext'
21342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21343 (eval $ac_try) 2>&5
21345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21346 (exit $ac_status); }; }; then
21347 ac_cv_type_pid_t=yes
21349 echo "$as_me: failed program was:" >&5
21350 sed 's/^/| /' conftest.$ac_ext >&5
21352 ac_cv_type_pid_t=no
21354 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21356 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21357 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21358 if test $ac_cv_type_pid_t = yes; then
21362 cat >>confdefs.h <<_ACEOF
21368 echo "$as_me:$LINENO: checking for size_t" >&5
21369 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21370 if test "${ac_cv_type_size_t+set}" = set; then
21371 echo $ECHO_N "(cached) $ECHO_C" >&6
21373 cat >conftest.$ac_ext <<_ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21385 if (sizeof (size_t))
21391 rm -f conftest.$ac_objext
21392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21393 (eval $ac_compile) 2>conftest.er1
21395 grep -v '^ *+' conftest.er1 >conftest.err
21397 cat conftest.err >&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); } &&
21400 { ac_try='test -z "$ac_c_werror_flag"
21401 || test ! -s conftest.err'
21402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21403 (eval $ac_try) 2>&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); }; } &&
21407 { ac_try='test -s conftest.$ac_objext'
21408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21409 (eval $ac_try) 2>&5
21411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21412 (exit $ac_status); }; }; then
21413 ac_cv_type_size_t=yes
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21418 ac_cv_type_size_t=no
21420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21422 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21423 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21424 if test $ac_cv_type_size_t = yes; then
21428 cat >>confdefs.h <<_ACEOF
21429 #define size_t unsigned
21434 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
21435 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
21436 if test "${ac_cv_type_uid_t+set}" = set; then
21437 echo $ECHO_N "(cached) $ECHO_C" >&6
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <sys/types.h>
21448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21449 $EGREP "uid_t" >/dev/null 2>&1; then
21450 ac_cv_type_uid_t=yes
21452 ac_cv_type_uid_t=no
21457 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
21458 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
21459 if test $ac_cv_type_uid_t = no; then
21461 cat >>confdefs.h <<\_ACEOF
21466 cat >>confdefs.h <<\_ACEOF
21474 echo "$as_me:$LINENO: checking for socklen_t" >&5
21475 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
21476 if test "${ac_cv_type_socklen_t+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 ac_cv_type_socklen_t=no
21480 cat >conftest.$ac_ext <<_ACEOF
21483 cat confdefs.h >>conftest.$ac_ext
21484 cat >>conftest.$ac_ext <<_ACEOF
21485 /* end confdefs.h. */
21486 #ifdef HAVE_SYS_TYPES_H
21487 #include <sys/types.h>
21489 #ifdef HAVE_SYS_SOCKET_H
21490 #include <sys/socket.h>
21501 rm -f conftest.$ac_objext
21502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21503 (eval $ac_compile) 2>conftest.er1
21505 grep -v '^ *+' conftest.er1 >conftest.err
21507 cat conftest.err >&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); } &&
21510 { ac_try='test -z "$ac_c_werror_flag"
21511 || test ! -s conftest.err'
21512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21513 (eval $ac_try) 2>&5
21515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21516 (exit $ac_status); }; } &&
21517 { ac_try='test -s conftest.$ac_objext'
21518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21519 (eval $ac_try) 2>&5
21521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21522 (exit $ac_status); }; }; then
21523 ac_cv_type_socklen_t=yes
21525 echo "$as_me: failed program was:" >&5
21526 sed 's/^/| /' conftest.$ac_ext >&5
21529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21533 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
21534 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
21536 if test "$ac_cv_type_socklen_t" != "yes"; then
21537 cat >>confdefs.h <<\_ACEOF
21538 #define socklen_t int
21545 echo "$as_me:$LINENO: checking for uint8_t" >&5
21546 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
21547 if test "${ac_cv_type_uint8_t+set}" = set; then
21548 echo $ECHO_N "(cached) $ECHO_C" >&6
21550 ac_cv_type_uint8_t=no
21551 cat >conftest.$ac_ext <<_ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 #ifdef HAVE_INTTYPES_H
21558 #include <inttypes.h>
21560 #ifdef HAVE_STDINT_H
21561 #include <stdint.h>
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_cv_type_uint8_t=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21604 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
21605 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
21607 if test "$ac_cv_type_uint8_t" != "yes"; then
21608 cat >>confdefs.h <<\_ACEOF
21609 #define uint8_t unsigned char
21616 echo "$as_me:$LINENO: checking for uint16_t" >&5
21617 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
21618 if test "${ac_cv_type_uint16_t+set}" = set; then
21619 echo $ECHO_N "(cached) $ECHO_C" >&6
21621 ac_cv_type_uint16_t=no
21622 cat >conftest.$ac_ext <<_ACEOF
21625 cat confdefs.h >>conftest.$ac_ext
21626 cat >>conftest.$ac_ext <<_ACEOF
21627 /* end confdefs.h. */
21628 #ifdef HAVE_INTTYPES_H
21629 #include <inttypes.h>
21631 #ifdef HAVE_STDINT_H
21632 #include <stdint.h>
21643 rm -f conftest.$ac_objext
21644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21645 (eval $ac_compile) 2>conftest.er1
21647 grep -v '^ *+' conftest.er1 >conftest.err
21649 cat conftest.err >&5
21650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } &&
21652 { ac_try='test -z "$ac_c_werror_flag"
21653 || test ! -s conftest.err'
21654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21655 (eval $ac_try) 2>&5
21657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21658 (exit $ac_status); }; } &&
21659 { ac_try='test -s conftest.$ac_objext'
21660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21661 (eval $ac_try) 2>&5
21663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21664 (exit $ac_status); }; }; then
21665 ac_cv_type_uint16_t=yes
21667 echo "$as_me: failed program was:" >&5
21668 sed 's/^/| /' conftest.$ac_ext >&5
21671 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21675 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
21676 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
21678 if test "$ac_cv_type_uint16_t" != "yes"; then
21679 cat >>confdefs.h <<\_ACEOF
21680 #define uint16_t unsigned short
21687 echo "$as_me:$LINENO: checking for uint32_t" >&5
21688 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
21689 if test "${ac_cv_type_uint32_t+set}" = set; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21692 ac_cv_type_uint32_t=no
21693 cat >conftest.$ac_ext <<_ACEOF
21696 cat confdefs.h >>conftest.$ac_ext
21697 cat >>conftest.$ac_ext <<_ACEOF
21698 /* end confdefs.h. */
21699 #ifdef HAVE_INTTYPES_H
21700 #include <inttypes.h>
21702 #ifdef HAVE_STDINT_H
21703 #include <stdint.h>
21714 rm -f conftest.$ac_objext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21716 (eval $ac_compile) 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag"
21724 || test ! -s conftest.err'
21725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21726 (eval $ac_try) 2>&5
21728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21729 (exit $ac_status); }; } &&
21730 { ac_try='test -s conftest.$ac_objext'
21731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21732 (eval $ac_try) 2>&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); }; }; then
21736 ac_cv_type_uint32_t=yes
21738 echo "$as_me: failed program was:" >&5
21739 sed 's/^/| /' conftest.$ac_ext >&5
21742 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21746 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
21747 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
21749 if test "$ac_cv_type_uint32_t" != "yes"; then
21750 cat >>confdefs.h <<\_ACEOF
21751 #define uint32_t unsigned int
21808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21809 echo "$as_me:$LINENO: checking for $ac_func" >&5
21810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21811 if eval "test \"\${$as_ac_var+set}\" = set"; then
21812 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21822 #define $ac_func innocuous_$ac_func
21824 /* System header to define __stub macros and hopefully few prototypes,
21825 which can conflict with char $ac_func (); below.
21826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21827 <limits.h> exists even on freestanding compilers. */
21830 # include <limits.h>
21832 # include <assert.h>
21837 /* Override any gcc2 internal prototype to avoid an error. */
21842 /* We use char because int might match the return type of a gcc2
21843 builtin and then its argument prototype would still apply. */
21845 /* The GNU C library defines this for functions which it implements
21846 to always fail with ENOSYS. Some functions are actually named
21847 something starting with __ and the normal name is an alias. */
21848 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21851 char (*f) () = $ac_func;
21860 return f != $ac_func;
21865 rm -f conftest.$ac_objext conftest$ac_exeext
21866 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21867 (eval $ac_link) 2>conftest.er1
21869 grep -v '^ *+' conftest.er1 >conftest.err
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } &&
21874 { ac_try='test -z "$ac_c_werror_flag"
21875 || test ! -s conftest.err'
21876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21877 (eval $ac_try) 2>&5
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; } &&
21881 { ac_try='test -s conftest$ac_exeext'
21882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21883 (eval $ac_try) 2>&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); }; }; then
21887 eval "$as_ac_var=yes"
21889 echo "$as_me: failed program was:" >&5
21890 sed 's/^/| /' conftest.$ac_ext >&5
21892 eval "$as_ac_var=no"
21894 rm -f conftest.err conftest.$ac_objext \
21895 conftest$ac_exeext conftest.$ac_ext
21897 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21898 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21899 if test `eval echo '${'$as_ac_var'}'` = yes; then
21900 cat >>confdefs.h <<_ACEOF
21901 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21918 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
21919 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
21920 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21923 cat >conftest.$ac_ext <<_ACEOF
21926 cat confdefs.h >>conftest.$ac_ext
21927 cat >>conftest.$ac_ext <<_ACEOF
21928 /* end confdefs.h. */
21931 #include <string.h>
21932 #ifdef HAVE_UNISTD_H
21933 #include <unistd.h>
21935 #ifdef HAVE_CRYPT_H
21938 #ifdef HAVE_ERRNO_H
21941 #ifdef HAVE_RESOURCE_H
21942 #include <resource.h>
21944 #ifdef HAVE_GETOPT_H
21945 #include <getopt.h>
21947 #ifdef HAVE_MALLOC_H
21948 #include <malloc.h>
21953 #ifdef HAVE_UTMPX_H
21956 #ifdef HAVE_SYS_SELECT_H
21957 #include <sys/select.h>
21959 #ifdef HAVE_DLFCN_H
21962 #ifdef HAVE_REGEX_H
21965 #ifdef HAVE_SYSLOG_H
21966 #include <syslog.h>
21968 #ifdef HAVE_INTTYPES_H
21969 #include <inttypes.h>
21971 #ifdef HAVE_STDINT_H
21972 #include <stdint.h>
21974 #ifdef HAVE_ARPA_INET_H
21975 #include <arpa/inet.h>
21981 char *(*pfn) = (char *(*)) $ac_func
21986 rm -f conftest.$ac_objext
21987 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21988 (eval $ac_compile) 2>conftest.er1
21990 grep -v '^ *+' conftest.er1 >conftest.err
21992 cat conftest.err >&5
21993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21994 (exit $ac_status); } &&
21995 { ac_try='test -z "$ac_c_werror_flag"
21996 || test ! -s conftest.err'
21997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21998 (eval $ac_try) 2>&5
22000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22001 (exit $ac_status); }; } &&
22002 { ac_try='test -s conftest.$ac_objext'
22003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22004 (eval $ac_try) 2>&5
22006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22007 (exit $ac_status); }; }; then
22008 eval "radius_cv_decl_needed_$ac_func=no"
22010 echo "$as_me: failed program was:" >&5
22011 sed 's/^/| /' conftest.$ac_ext >&5
22013 eval "radius_cv_decl_needed_$ac_func=yes"
22015 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22018 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22019 echo "$as_me:$LINENO: result: yes" >&5
22020 echo "${ECHO_T}yes" >&6
22021 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22022 cat >>confdefs.h <<_ACEOF
22023 #define $radius_tr_decl 1
22027 echo "$as_me:$LINENO: result: no" >&5
22028 echo "${ECHO_T}no" >&6
22034 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22035 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22036 if test "${ac_cv_type_signal+set}" = set; then
22037 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 cat >conftest.$ac_ext <<_ACEOF
22042 cat confdefs.h >>conftest.$ac_ext
22043 cat >>conftest.$ac_ext <<_ACEOF
22044 /* end confdefs.h. */
22045 #include <sys/types.h>
22046 #include <signal.h>
22051 extern "C" void (*signal (int, void (*)(int)))(int);
22053 void (*signal ()) ();
22064 rm -f conftest.$ac_objext
22065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22066 (eval $ac_compile) 2>conftest.er1
22068 grep -v '^ *+' conftest.er1 >conftest.err
22070 cat conftest.err >&5
22071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22072 (exit $ac_status); } &&
22073 { ac_try='test -z "$ac_c_werror_flag"
22074 || test ! -s conftest.err'
22075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22076 (eval $ac_try) 2>&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); }; } &&
22080 { ac_try='test -s conftest.$ac_objext'
22081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22082 (eval $ac_try) 2>&5
22084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 ac_cv_type_signal=void
22088 echo "$as_me: failed program was:" >&5
22089 sed 's/^/| /' conftest.$ac_ext >&5
22091 ac_cv_type_signal=int
22093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22095 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22096 echo "${ECHO_T}$ac_cv_type_signal" >&6
22098 cat >>confdefs.h <<_ACEOF
22099 #define RETSIGTYPE $ac_cv_type_signal
22104 if test "x$ac_cv_header_utmpx_h" = "xyes"
22107 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22108 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22111 cat >conftest.$ac_ext <<_ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22120 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22126 int foo = offsetof(struct utmpx, ut_xtime)
22131 rm -f conftest.$ac_objext
22132 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22133 (eval $ac_compile) 2>conftest.er1
22135 grep -v '^ *+' conftest.er1 >conftest.err
22137 cat conftest.err >&5
22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22139 (exit $ac_status); } &&
22140 { ac_try='test -z "$ac_c_werror_flag"
22141 || test ! -s conftest.err'
22142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22143 (eval $ac_try) 2>&5
22145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22146 (exit $ac_status); }; } &&
22147 { ac_try='test -s conftest.$ac_objext'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; }; then
22155 echo "$as_me: failed program was:" >&5
22156 sed 's/^/| /' conftest.$ac_ext >&5
22160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22162 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22163 if test "x$has_element" != "x"; then
22164 echo "$as_me:$LINENO: result: yes" >&5
22165 echo "${ECHO_T}yes" >&6
22166 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22168 echo "$as_me:$LINENO: result: no" >&5
22169 echo "${ECHO_T}no" >&6
22170 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22173 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22175 cat >>confdefs.h <<\_ACEOF
22176 #define ut_xtime ut_tv.tv_sec
22183 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22184 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22194 #include <netinet/in.h>
22196 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22202 int foo = offsetof(struct in_pktinfo, ipi_addr)
22207 rm -f conftest.$ac_objext
22208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22209 (eval $ac_compile) 2>conftest.er1
22211 grep -v '^ *+' conftest.er1 >conftest.err
22213 cat conftest.err >&5
22214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22215 (exit $ac_status); } &&
22216 { ac_try='test -z "$ac_c_werror_flag"
22217 || test ! -s conftest.err'
22218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22219 (eval $ac_try) 2>&5
22221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22222 (exit $ac_status); }; } &&
22223 { ac_try='test -s conftest.$ac_objext'
22224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22225 (eval $ac_try) 2>&5
22227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22228 (exit $ac_status); }; }; then
22231 echo "$as_me: failed program was:" >&5
22232 sed 's/^/| /' conftest.$ac_ext >&5
22236 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22238 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22239 if test "x$has_element" != "x"; then
22240 echo "$as_me:$LINENO: result: yes" >&5
22241 echo "${ECHO_T}yes" >&6
22242 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22244 echo "$as_me:$LINENO: result: no" >&5
22245 echo "${ECHO_T}no" >&6
22246 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22249 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22251 cat >>confdefs.h <<\_ACEOF
22252 #define HAVE_IP_PKTINFO 1
22258 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22259 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22260 if test "${ac_cv_c_const+set}" = set; then
22261 echo $ECHO_N "(cached) $ECHO_C" >&6
22263 cat >conftest.$ac_ext <<_ACEOF
22266 cat confdefs.h >>conftest.$ac_ext
22267 cat >>conftest.$ac_ext <<_ACEOF
22268 /* end confdefs.h. */
22273 /* FIXME: Include the comments suggested by Paul. */
22274 #ifndef __cplusplus
22275 /* Ultrix mips cc rejects this. */
22276 typedef int charset[2];
22278 /* SunOS 4.1.1 cc rejects this. */
22279 char const *const *ccp;
22281 /* NEC SVR4.0.2 mips cc rejects this. */
22282 struct point {int x, y;};
22283 static struct point const zero = {0,0};
22284 /* AIX XL C 1.02.0.0 rejects this.
22285 It does not let you subtract one const X* pointer from another in
22286 an arm of an if-expression whose if-part is not a constant
22288 const char *g = "string";
22289 ccp = &g + (g ? g-g : 0);
22290 /* HPUX 7.0 cc rejects these. */
22293 ccp = (char const *const *) p;
22294 { /* SCO 3.2v4 cc rejects this. */
22296 char const *s = 0 ? (char *) 0 : (char const *) 0;
22300 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22301 int x[] = {25, 17};
22302 const int *foo = &x[0];
22305 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22306 typedef const int *iptr;
22310 { /* AIX XL C 1.02.0.0 rejects this saying
22311 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22312 struct s { int j; const int *ap[3]; };
22313 struct s *b; b->j = 5;
22315 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22316 const int foo = 10;
22324 rm -f conftest.$ac_objext
22325 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22326 (eval $ac_compile) 2>conftest.er1
22328 grep -v '^ *+' conftest.er1 >conftest.err
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); } &&
22333 { ac_try='test -z "$ac_c_werror_flag"
22334 || test ! -s conftest.err'
22335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22336 (eval $ac_try) 2>&5
22338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22339 (exit $ac_status); }; } &&
22340 { ac_try='test -s conftest.$ac_objext'
22341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22342 (eval $ac_try) 2>&5
22344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22345 (exit $ac_status); }; }; then
22348 echo "$as_me: failed program was:" >&5
22349 sed 's/^/| /' conftest.$ac_ext >&5
22353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22355 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22356 echo "${ECHO_T}$ac_cv_c_const" >&6
22357 if test $ac_cv_c_const = no; then
22359 cat >>confdefs.h <<\_ACEOF
22366 echo "$as_me:$LINENO: checking type of OS" >&5
22367 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22369 echo "$as_me:$LINENO: result: $OS" >&5
22370 echo "${ECHO_T}$OS" >&6
22371 if test "$OS" = "OS/2"; then
22378 if test "x$GCC" = "xyes"; then
22379 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22382 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22383 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22384 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22385 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22386 CFLAGS="$CFLAGS $devflags"
22388 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22389 echo "${ECHO_T}yes. Using $devflags" >&6
22392 CFLAGS="$CFLAGS -DNDEBUG"
22394 echo "$as_me:$LINENO: result: no." >&5
22395 echo "${ECHO_T}no." >&6
22399 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22400 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22401 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22404 ac_check_lib_save_LIBS=$LIBS
22405 LIBS="-lcrypt $LIBS"
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22413 /* Override any gcc2 internal prototype to avoid an error. */
22417 /* We use char because int might match the return type of a gcc2
22418 builtin and then its argument prototype would still apply. */
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22430 (eval $ac_link) 2>conftest.er1
22432 grep -v '^ *+' conftest.er1 >conftest.err
22434 cat conftest.err >&5
22435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22436 (exit $ac_status); } &&
22437 { ac_try='test -z "$ac_c_werror_flag"
22438 || test ! -s conftest.err'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; } &&
22444 { ac_try='test -s conftest$ac_exeext'
22445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22446 (eval $ac_try) 2>&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); }; }; then
22450 ac_cv_lib_crypt_crypt=yes
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 ac_cv_lib_crypt_crypt=no
22457 rm -f conftest.err conftest.$ac_objext \
22458 conftest$ac_exeext conftest.$ac_ext
22459 LIBS=$ac_check_lib_save_LIBS
22461 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
22462 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
22463 if test $ac_cv_lib_crypt_crypt = yes; then
22468 if test "$CRYPTLIB" != ""; then
22469 cat >>confdefs.h <<\_ACEOF
22470 #define HAVE_CRYPT 1
22474 echo "$as_me:$LINENO: checking for crypt" >&5
22475 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
22476 if test "${ac_cv_func_crypt+set}" = set; then
22477 echo $ECHO_N "(cached) $ECHO_C" >&6
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22485 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
22486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22487 #define crypt innocuous_crypt
22489 /* System header to define __stub macros and hopefully few prototypes,
22490 which can conflict with char crypt (); below.
22491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22492 <limits.h> exists even on freestanding compilers. */
22495 # include <limits.h>
22497 # include <assert.h>
22502 /* Override any gcc2 internal prototype to avoid an error. */
22507 /* We use char because int might match the return type of a gcc2
22508 builtin and then its argument prototype would still apply. */
22510 /* The GNU C library defines this for functions which it implements
22511 to always fail with ENOSYS. Some functions are actually named
22512 something starting with __ and the normal name is an alias. */
22513 #if defined (__stub_crypt) || defined (__stub___crypt)
22516 char (*f) () = crypt;
22530 rm -f conftest.$ac_objext conftest$ac_exeext
22531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22532 (eval $ac_link) 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22538 (exit $ac_status); } &&
22539 { ac_try='test -z "$ac_c_werror_flag"
22540 || test ! -s conftest.err'
22541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22542 (eval $ac_try) 2>&5
22544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22545 (exit $ac_status); }; } &&
22546 { ac_try='test -s conftest$ac_exeext'
22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22548 (eval $ac_try) 2>&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); }; }; then
22552 ac_cv_func_crypt=yes
22554 echo "$as_me: failed program was:" >&5
22555 sed 's/^/| /' conftest.$ac_ext >&5
22557 ac_cv_func_crypt=no
22559 rm -f conftest.err conftest.$ac_objext \
22560 conftest$ac_exeext conftest.$ac_ext
22562 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
22563 echo "${ECHO_T}$ac_cv_func_crypt" >&6
22564 if test $ac_cv_func_crypt = yes; then
22565 cat >>confdefs.h <<\_ACEOF
22566 #define HAVE_CRYPT 1
22573 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
22574 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
22575 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22578 ac_check_lib_save_LIBS=$LIBS
22579 LIBS="-lcipher $LIBS"
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22587 /* Override any gcc2 internal prototype to avoid an error. */
22591 /* We use char because int might match the return type of a gcc2
22592 builtin and then its argument prototype would still apply. */
22602 rm -f conftest.$ac_objext conftest$ac_exeext
22603 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22604 (eval $ac_link) 2>conftest.er1
22606 grep -v '^ *+' conftest.er1 >conftest.err
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } &&
22611 { ac_try='test -z "$ac_c_werror_flag"
22612 || test ! -s conftest.err'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; } &&
22618 { ac_try='test -s conftest$ac_exeext'
22619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22620 (eval $ac_try) 2>&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); }; }; then
22624 ac_cv_lib_cipher_setkey=yes
22626 echo "$as_me: failed program was:" >&5
22627 sed 's/^/| /' conftest.$ac_ext >&5
22629 ac_cv_lib_cipher_setkey=no
22631 rm -f conftest.err conftest.$ac_objext \
22632 conftest$ac_exeext conftest.$ac_ext
22633 LIBS=$ac_check_lib_save_LIBS
22635 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
22636 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
22637 if test $ac_cv_lib_cipher_setkey = yes; then
22638 CRYPTLIB="${CRYPTLIB} -lcipher"
22644 if test "x$WITH_SNMP" = "xyes"; then
22649 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
22650 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22659 #ifdef HAVE_SYS_TYPES_H
22660 #include <sys/types.h>
22662 #ifdef HAVE_STDINT_H
22663 #include <stdint.h>
22665 #ifdef HAVE_STDIO_H
22668 #ifdef HAVE_NETDB_H
22671 #ifdef HAVE_UNISTD_H
22672 #include <unistd.h>
22674 #include <ucd-snmp/ucd-snmp-config.h>
22675 #include <ucd-snmp/asn1.h>
22676 #include <ucd-snmp/snmp.h>
22677 #include <ucd-snmp/snmp_impl.h>
22686 rm -f conftest.$ac_objext
22687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22688 (eval $ac_compile) 2>conftest.er1
22690 grep -v '^ *+' conftest.er1 >conftest.err
22692 cat conftest.err >&5
22693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22694 (exit $ac_status); } &&
22695 { ac_try='test -z "$ac_c_werror_flag"
22696 || test ! -s conftest.err'
22697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22698 (eval $ac_try) 2>&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); }; } &&
22702 { ac_try='test -s conftest.$ac_objext'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 SNMP_INCLUDE="";ucdsnmp=yes
22710 echo "$as_me: failed program was:" >&5
22711 sed 's/^/| /' conftest.$ac_ext >&5
22715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22717 if test "x$ucdsnmp" = "x"; then
22718 old_CFLAGS="$CFLAGS"
22719 for try in /usr/include /usr/local/include $with_snmp_include_dir; do
22720 CFLAGS="$old_CFLAGS -I$try"
22721 cat >conftest.$ac_ext <<_ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22728 #ifdef HAVE_SYS_TYPES_H
22729 #include <sys/types.h>
22731 #ifdef HAVE_STDINT_H
22732 #include <stdint.h>
22734 #ifdef HAVE_STDIO_H
22737 #ifdef HAVE_NETDB_H
22740 #ifdef HAVE_UNISTD_H
22741 #include <unistd.h>
22743 #include <ucd-snmp/ucd-snmp-config.h>
22744 #include <ucd-snmp/asn1.h>
22745 #include <ucd-snmp/snmp.h>
22746 #include <ucd-snmp/snmp_impl.h>
22755 rm -f conftest.$ac_objext
22756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22757 (eval $ac_compile) 2>conftest.er1
22759 grep -v '^ *+' conftest.er1 >conftest.err
22761 cat conftest.err >&5
22762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22763 (exit $ac_status); } &&
22764 { ac_try='test -z "$ac_c_werror_flag"
22765 || test ! -s conftest.err'
22766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22767 (eval $ac_try) 2>&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); }; } &&
22771 { ac_try='test -s conftest.$ac_objext'
22772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22773 (eval $ac_try) 2>&5
22775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 SNMP_INCLUDE="-I$try";ucdsnmp=yes
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22785 if test "x$ucdsnmp" != "x"; then
22789 CFLAGS="$old_CFLAGS"
22792 if test "x$ucdsnmp" = "x"; then
22793 old_CFLAGS="$CFLAGS"
22794 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22795 CFLAGS="$old_CFLAGS -I$try"
22796 cat >conftest.$ac_ext <<_ACEOF
22799 cat confdefs.h >>conftest.$ac_ext
22800 cat >>conftest.$ac_ext <<_ACEOF
22801 /* end confdefs.h. */
22803 #ifdef HAVE_SYS_TYPES_H
22804 #include <sys/types.h>
22806 #ifdef HAVE_STDINT_H
22807 #include <stdint.h>
22809 #ifdef HAVE_STDIO_H
22812 #ifdef HAVE_NETDB_H
22815 #ifdef HAVE_UNISTD_H
22816 #include <unistd.h>
22820 #include <snmp_impl.h>
22829 rm -f conftest.$ac_objext
22830 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22831 (eval $ac_compile) 2>conftest.er1
22833 grep -v '^ *+' conftest.er1 >conftest.err
22835 cat conftest.err >&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); } &&
22838 { ac_try='test -z "$ac_c_werror_flag"
22839 || test ! -s conftest.err'
22840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22841 (eval $ac_try) 2>&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); }; } &&
22845 { ac_try='test -s conftest.$ac_objext'
22846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22847 (eval $ac_try) 2>&5
22849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22850 (exit $ac_status); }; }; then
22851 SNMP_INCLUDE="";ucdsnmp=no
22853 echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22858 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22859 if test "x$ucdsnmp" != "x"; then
22863 CFLAGS="$old_CFLAGS"
22866 if test "x$ucdsnmp" = "x"; then
22867 old_CFLAGS="$CFLAGS"
22868 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $with_snmp_include_dir; do
22869 CFLAGS="$old_CFLAGS -I$try"
22870 cat >conftest.$ac_ext <<_ACEOF
22873 cat confdefs.h >>conftest.$ac_ext
22874 cat >>conftest.$ac_ext <<_ACEOF
22875 /* end confdefs.h. */
22877 #ifdef HAVE_SYS_TYPES_H
22878 #include <sys/types.h>
22880 #ifdef HAVE_STDINT_H
22881 #include <stdint.h>
22883 #ifdef HAVE_STDIO_H
22886 #ifdef HAVE_NETDB_H
22889 #ifdef HAVE_UNISTD_H
22890 #include <unistd.h>
22894 #include <snmp_impl.h>
22903 rm -f conftest.$ac_objext
22904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22905 (eval $ac_compile) 2>conftest.er1
22907 grep -v '^ *+' conftest.er1 >conftest.err
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); } &&
22912 { ac_try='test -z "$ac_c_werror_flag"
22913 || test ! -s conftest.err'
22914 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22915 (eval $ac_try) 2>&5
22917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22918 (exit $ac_status); }; } &&
22919 { ac_try='test -s conftest.$ac_objext'
22920 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22921 (eval $ac_try) 2>&5
22923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22924 (exit $ac_status); }; }; then
22925 SNMP_INCLUDE="-I$try";ucdsnmp=no
22927 echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22932 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22933 if test "x$ucdsnmp" != "x"; then
22937 CFLAGS="$old_CFLAGS"
22940 if test "x$ucdsnmp" = "x"; then
22941 echo "$as_me:$LINENO: result: no" >&5
22942 echo "${ECHO_T}no" >&6
22944 if test "x$ucdsnmp" = "xyes"; then
22945 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
22946 echo "${ECHO_T}(ucd-snmp)yes" >&6
22947 cat >>confdefs.h <<\_ACEOF
22948 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
22952 echo "$as_me:$LINENO: result: yes" >&5
22953 echo "${ECHO_T}yes" >&6
22954 cat >>confdefs.h <<\_ACEOF
22955 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
22959 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
22960 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
22963 LIBS="$old_LIBS -lsnmp"
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970 extern char snmp_build_var_op();
22974 snmp_build_var_op()
22979 rm -f conftest.$ac_objext conftest$ac_exeext
22980 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22981 (eval $ac_link) 2>conftest.er1
22983 grep -v '^ *+' conftest.er1 >conftest.err
22985 cat conftest.err >&5
22986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22987 (exit $ac_status); } &&
22988 { ac_try='test -z "$ac_c_werror_flag"
22989 || test ! -s conftest.err'
22990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22991 (eval $ac_try) 2>&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); }; } &&
22995 { ac_try='test -s conftest$ac_exeext'
22996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22997 (eval $ac_try) 2>&5
22999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23000 (exit $ac_status); }; }; then
23003 echo "$as_me: failed program was:" >&5
23004 sed 's/^/| /' conftest.$ac_ext >&5
23008 rm -f conftest.err conftest.$ac_objext \
23009 conftest$ac_exeext conftest.$ac_ext
23011 if test "x$SNMP_LIBS" = "x"; then
23012 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $with_snmp_lib_dir; do
23013 LIBS="$old_LIBS -L$try -lsnmp"
23014 cat >conftest.$ac_ext <<_ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h. */
23020 extern char snmp_build_var_op();
23024 snmp_build_var_op()
23029 rm -f conftest.$ac_objext conftest$ac_exeext
23030 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23031 (eval $ac_link) 2>conftest.er1
23033 grep -v '^ *+' conftest.er1 >conftest.err
23035 cat conftest.err >&5
23036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23037 (exit $ac_status); } &&
23038 { ac_try='test -z "$ac_c_werror_flag"
23039 || test ! -s conftest.err'
23040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23041 (eval $ac_try) 2>&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); }; } &&
23045 { ac_try='test -s conftest$ac_exeext'
23046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23047 (eval $ac_try) 2>&5
23049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23050 (exit $ac_status); }; }; then
23051 SNMP_LIBS="-L$try -lsnmp"
23053 echo "$as_me: failed program was:" >&5
23054 sed 's/^/| /' conftest.$ac_ext >&5
23058 rm -f conftest.err conftest.$ac_objext \
23059 conftest$ac_exeext conftest.$ac_ext
23060 if test "x$SNMP_LIBS" != "x"; then
23063 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23064 cat >conftest.$ac_ext <<_ACEOF
23067 cat confdefs.h >>conftest.$ac_ext
23068 cat >>conftest.$ac_ext <<_ACEOF
23069 /* end confdefs.h. */
23070 extern char snmp_build_var_op();
23074 snmp_build_var_op()
23079 rm -f conftest.$ac_objext conftest$ac_exeext
23080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23081 (eval $ac_link) 2>conftest.er1
23083 grep -v '^ *+' conftest.er1 >conftest.err
23085 cat conftest.err >&5
23086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23087 (exit $ac_status); } &&
23088 { ac_try='test -z "$ac_c_werror_flag"
23089 || test ! -s conftest.err'
23090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23091 (eval $ac_try) 2>&5
23093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23094 (exit $ac_status); }; } &&
23095 { ac_try='test -s conftest$ac_exeext'
23096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23097 (eval $ac_try) 2>&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); }; }; then
23101 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23103 echo "$as_me: failed program was:" >&5
23104 sed 's/^/| /' conftest.$ac_ext >&5
23108 rm -f conftest.err conftest.$ac_objext \
23109 conftest$ac_exeext conftest.$ac_ext
23110 if test "x$SNMP_LIBS" != "x"; then
23113 LIBS="$old_LIBS -L$try -lsnmp -lcrypto -lkstat"
23114 cat >conftest.$ac_ext <<_ACEOF
23117 cat confdefs.h >>conftest.$ac_ext
23118 cat >>conftest.$ac_ext <<_ACEOF
23119 /* end confdefs.h. */
23120 extern char snmp_build_var_op();
23124 snmp_build_var_op()
23129 rm -f conftest.$ac_objext conftest$ac_exeext
23130 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23131 (eval $ac_link) 2>conftest.er1
23133 grep -v '^ *+' conftest.er1 >conftest.err
23135 cat conftest.err >&5
23136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23137 (exit $ac_status); } &&
23138 { ac_try='test -z "$ac_c_werror_flag"
23139 || test ! -s conftest.err'
23140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23141 (eval $ac_try) 2>&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); }; } &&
23145 { ac_try='test -s conftest$ac_exeext'
23146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23147 (eval $ac_try) 2>&5
23149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23150 (exit $ac_status); }; }; then
23151 SNMP_LIBS="-L$try -lsnmp -lcrypto -lkstat"
23153 echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23158 rm -f conftest.err conftest.$ac_objext \
23159 conftest$ac_exeext conftest.$ac_ext
23160 if test "x$SNMP_LIBS" != "x"; then
23167 CFLAGS="$old_CFLAGS"
23168 if test "x$SNMP_LIBS" = "x"; then
23169 echo "$as_me:$LINENO: result: no" >&5
23170 echo "${ECHO_T}no" >&6
23173 echo "$as_me:$LINENO: result: yes" >&5
23174 echo "${ECHO_T}yes" >&6
23175 cat >>confdefs.h <<\_ACEOF
23176 #define WITH_SNMP 1
23179 cat >>confdefs.h <<\_ACEOF
23180 #define HAVE_LIBSNMP 1
23188 gethostbyaddrrstyle=""
23189 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23190 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23193 cat >>confdefs.h <<\_ACEOF
23194 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23197 gethostbyaddrrstyle=BSD
23198 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23199 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23202 if test "x$gethostbyaddrrstyle" = "x"; then
23203 cat >conftest.$ac_ext <<_ACEOF
23206 cat confdefs.h >>conftest.$ac_ext
23207 cat >>conftest.$ac_ext <<_ACEOF
23208 /* end confdefs.h. */
23216 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23221 rm -f conftest.$ac_objext conftest$ac_exeext
23222 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23223 (eval $ac_link) 2>conftest.er1
23225 grep -v '^ *+' conftest.er1 >conftest.err
23227 cat conftest.err >&5
23228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23229 (exit $ac_status); } &&
23230 { ac_try='test -z "$ac_c_werror_flag"
23231 || test ! -s conftest.err'
23232 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23233 (eval $ac_try) 2>&5
23235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23236 (exit $ac_status); }; } &&
23237 { ac_try='test -s conftest$ac_exeext'
23238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23239 (eval $ac_try) 2>&5
23241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23242 (exit $ac_status); }; }; then
23244 cat >>confdefs.h <<\_ACEOF
23245 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23248 gethostbyaddrrstyle=GNU
23251 echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23255 rm -f conftest.err conftest.$ac_objext \
23256 conftest$ac_exeext conftest.$ac_ext
23258 if test "x$gethostbyaddrrstyle" = "x"; then
23259 cat >conftest.$ac_ext <<_ACEOF
23262 cat confdefs.h >>conftest.$ac_ext
23263 cat >>conftest.$ac_ext <<_ACEOF
23264 /* end confdefs.h. */
23272 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23277 rm -f conftest.$ac_objext conftest$ac_exeext
23278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23279 (eval $ac_link) 2>conftest.er1
23281 grep -v '^ *+' conftest.er1 >conftest.err
23283 cat conftest.err >&5
23284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23285 (exit $ac_status); } &&
23286 { ac_try='test -z "$ac_c_werror_flag"
23287 || test ! -s conftest.err'
23288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23289 (eval $ac_try) 2>&5
23291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23292 (exit $ac_status); }; } &&
23293 { ac_try='test -s conftest$ac_exeext'
23294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23295 (eval $ac_try) 2>&5
23297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23298 (exit $ac_status); }; }; then
23300 cat >>confdefs.h <<\_ACEOF
23301 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23304 gethostbyaddrrstyle=SYSV
23307 echo "$as_me: failed program was:" >&5
23308 sed 's/^/| /' conftest.$ac_ext >&5
23311 rm -f conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23314 if test "x$gethostbyaddrrstyle" = "x"; then
23315 cat >conftest.$ac_ext <<_ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23328 gethostbyaddr(NULL, 0, 0)
23333 rm -f conftest.$ac_objext conftest$ac_exeext
23334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23335 (eval $ac_link) 2>conftest.er1
23337 grep -v '^ *+' conftest.er1 >conftest.err
23339 cat conftest.err >&5
23340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23341 (exit $ac_status); } &&
23342 { ac_try='test -z "$ac_c_werror_flag"
23343 || test ! -s conftest.err'
23344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23345 (eval $ac_try) 2>&5
23347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23348 (exit $ac_status); }; } &&
23349 { ac_try='test -s conftest$ac_exeext'
23350 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23351 (eval $ac_try) 2>&5
23353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); }; }; then
23356 cat >>confdefs.h <<\_ACEOF
23357 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23360 gethostbyaddrrstyle=BSD
23363 echo "$as_me: failed program was:" >&5
23364 sed 's/^/| /' conftest.$ac_ext >&5
23367 rm -f conftest.err conftest.$ac_objext \
23368 conftest$ac_exeext conftest.$ac_ext
23371 if test "x$gethostbyaddrrstyle" = "x"; then
23372 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23373 echo "${ECHO_T}none! It must not exist, here." >&6
23375 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23376 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23379 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23380 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23381 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23384 gethostbynamerstyle=""
23385 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23386 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23387 cat >conftest.$ac_ext <<_ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h. */
23400 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23405 rm -f conftest.$ac_objext conftest$ac_exeext
23406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23407 (eval $ac_link) 2>conftest.er1
23409 grep -v '^ *+' conftest.er1 >conftest.err
23411 cat conftest.err >&5
23412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23413 (exit $ac_status); } &&
23414 { ac_try='test -z "$ac_c_werror_flag"
23415 || test ! -s conftest.err'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; } &&
23421 { ac_try='test -s conftest$ac_exeext'
23422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23423 (eval $ac_try) 2>&5
23425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23426 (exit $ac_status); }; }; then
23428 cat >>confdefs.h <<\_ACEOF
23429 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23432 gethostbynamerstyle=GNU
23435 echo "$as_me: failed program was:" >&5
23436 sed 's/^/| /' conftest.$ac_ext >&5
23439 rm -f conftest.err conftest.$ac_objext \
23440 conftest$ac_exeext conftest.$ac_ext
23441 if test "x$gethostbynamerstyle" = "x"; then
23442 cat >conftest.$ac_ext <<_ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23455 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23460 rm -f conftest.$ac_objext conftest$ac_exeext
23461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23462 (eval $ac_link) 2>conftest.er1
23464 grep -v '^ *+' conftest.er1 >conftest.err
23466 cat conftest.err >&5
23467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } &&
23469 { ac_try='test -z "$ac_c_werror_flag"
23470 || test ! -s conftest.err'
23471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23472 (eval $ac_try) 2>&5
23474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23475 (exit $ac_status); }; } &&
23476 { ac_try='test -s conftest$ac_exeext'
23477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23478 (eval $ac_try) 2>&5
23480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23481 (exit $ac_status); }; }; then
23483 cat >>confdefs.h <<\_ACEOF
23484 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23487 gethostbynamerstyle=SYSV
23490 echo "$as_me: failed program was:" >&5
23491 sed 's/^/| /' conftest.$ac_ext >&5
23494 rm -f conftest.err conftest.$ac_objext \
23495 conftest$ac_exeext conftest.$ac_ext
23497 if test "x$gethostbynamerstyle" = "x"; then
23498 cat >conftest.$ac_ext <<_ACEOF
23501 cat confdefs.h >>conftest.$ac_ext
23502 cat >>conftest.$ac_ext <<_ACEOF
23503 /* end confdefs.h. */
23511 gethostbyname(NULL)
23516 rm -f conftest.$ac_objext conftest$ac_exeext
23517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23518 (eval $ac_link) 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23524 (exit $ac_status); } &&
23525 { ac_try='test -z "$ac_c_werror_flag"
23526 || test ! -s conftest.err'
23527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23528 (eval $ac_try) 2>&5
23530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23531 (exit $ac_status); }; } &&
23532 { ac_try='test -s conftest$ac_exeext'
23533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23534 (eval $ac_try) 2>&5
23536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23537 (exit $ac_status); }; }; then
23539 cat >>confdefs.h <<\_ACEOF
23540 #define GETHOSTBYNAMERSTYLE BSDSTYLE
23543 gethostbynamerstyle=BSD
23546 echo "$as_me: failed program was:" >&5
23547 sed 's/^/| /' conftest.$ac_ext >&5
23550 rm -f conftest.err conftest.$ac_objext \
23551 conftest$ac_exeext conftest.$ac_ext
23554 if test "x$gethostbynamerstyle" = "x"; then
23555 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23556 echo "${ECHO_T}none! It must not exist, here." >&6
23558 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
23559 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
23562 if test "x$gethostbynamerstyle" = "xBSD"; then
23563 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
23564 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
23568 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
23569 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
23570 cat >conftest.$ac_ext <<_ACEOF
23573 cat confdefs.h >>conftest.$ac_ext
23574 cat >>conftest.$ac_ext <<_ACEOF
23575 /* end confdefs.h. */
23582 ctime_r(NULL, NULL, 0)
23587 rm -f conftest.$ac_objext conftest$ac_exeext
23588 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23589 (eval $ac_link) 2>conftest.er1
23591 grep -v '^ *+' conftest.er1 >conftest.err
23593 cat conftest.err >&5
23594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23595 (exit $ac_status); } &&
23596 { ac_try='test -z "$ac_c_werror_flag"
23597 || test ! -s conftest.err'
23598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23599 (eval $ac_try) 2>&5
23601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23602 (exit $ac_status); }; } &&
23603 { ac_try='test -s conftest$ac_exeext'
23604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23605 (eval $ac_try) 2>&5
23607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23608 (exit $ac_status); }; }; then
23610 cat >>confdefs.h <<\_ACEOF
23611 #define CTIMERSTYLE SOLARISSTYLE
23614 ctimerstyle="SOLARIS"
23617 echo "$as_me: failed program was:" >&5
23618 sed 's/^/| /' conftest.$ac_ext >&5
23621 rm -f conftest.err conftest.$ac_objext \
23622 conftest$ac_exeext conftest.$ac_ext
23623 if test "x$ctimerstyle" = "x"; then
23624 cat >conftest.$ac_ext <<_ACEOF
23627 cat confdefs.h >>conftest.$ac_ext
23628 cat >>conftest.$ac_ext <<_ACEOF
23629 /* end confdefs.h. */
23636 ctime_r(NULL, NULL)
23641 rm -f conftest.$ac_objext conftest$ac_exeext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23643 (eval $ac_link) 2>conftest.er1
23645 grep -v '^ *+' conftest.er1 >conftest.err
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest$ac_exeext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23664 cat >>confdefs.h <<\_ACEOF
23665 #define CTIMERSTYLE POSIXSTYLE
23668 ctimerstyle="POSIX"
23671 echo "$as_me: failed program was:" >&5
23672 sed 's/^/| /' conftest.$ac_ext >&5
23675 rm -f conftest.err conftest.$ac_objext \
23676 conftest$ac_exeext conftest.$ac_ext
23679 if test "x$ctimerstyle" = "x"; then
23680 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23681 echo "${ECHO_T}none! It must not exist, here." >&6
23683 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
23684 echo "${ECHO_T}${ctimerstyle}-style" >&6
23688 if test x"$rad_enable_largefiles" = xyes ; then
23689 echo "$as_me:$LINENO: checking for largefile linkage" >&5
23690 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
23693 echo "$as_me:$LINENO: result: no" >&5
23694 echo "${ECHO_T}no" >&6
23695 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
23696 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
23697 { (exit 1); exit 1; }; }
23700 echo "$as_me:$LINENO: result: ok" >&5
23701 echo "${ECHO_T}ok" >&6
23702 LFS_CFLAGS="-D_LARGE_FILES"
23707 echo "$as_me:$LINENO: result: ok" >&5
23708 echo "${ECHO_T}ok" >&6
23709 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23714 echo "$as_me:$LINENO: result: no" >&5
23715 echo "${ECHO_T}no" >&6
23716 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
23717 echo "$as_me: error: Large files not supported on this platform" >&2;}
23718 { (exit 1); exit 1; }; }
23721 echo "$as_me:$LINENO: result: maybe" >&5
23722 echo "${ECHO_T}maybe" >&6
23723 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23727 cat >>confdefs.h <<\_ACEOF
23728 #define _GNU_SOURCE 1
23733 echo "$as_me:$LINENO: result: ok" >&5
23734 echo "${ECHO_T}ok" >&6
23735 # Extract the first word of "getconf", so it can be a program name with args.
23736 set dummy getconf; ac_word=$2
23737 echo "$as_me:$LINENO: checking for $ac_word" >&5
23738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23739 if test "${ac_cv_path_GETCONF+set}" = set; then
23740 echo $ECHO_N "(cached) $ECHO_C" >&6
23744 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
23747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23748 for as_dir in $PATH
23751 test -z "$as_dir" && as_dir=.
23752 for ac_exec_ext in '' $ac_executable_extensions; do
23753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23754 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
23755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23764 GETCONF=$ac_cv_path_GETCONF
23766 if test -n "$GETCONF"; then
23767 echo "$as_me:$LINENO: result: $GETCONF" >&5
23768 echo "${ECHO_T}$GETCONF" >&6
23770 echo "$as_me:$LINENO: result: no" >&5
23771 echo "${ECHO_T}no" >&6
23774 if test -z "$GETCONF" ; then
23775 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
23776 echo "$as_me: error: getconf required to configure large file support" >&2;}
23777 { (exit 1); exit 1; }; }
23779 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
23780 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
23781 LFS_LIBS=`$GETCONF LFS_LIBS`
23784 echo "$as_me:$LINENO: result: maybe" >&5
23785 echo "${ECHO_T}maybe" >&6
23786 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
23801 export top_builddir
23802 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
23803 echo "${ECHO_T}top_builddir=$top_builddir" >&6
23810 if test "x$EXPERIMENTAL" = "xyes"; then
23811 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
23812 mysubdirs=`echo $bar`
23814 for bar in `cat src/modules/stable`; do
23815 if test -f src/modules/$bar/configure; then
23816 mysubdirs="$mysubdirs src/modules/$bar"
23821 if test "x$EXPERIMENTAL" = "xyes"; then
23822 for foo in `ls -1 src/modules | grep rlm_`; do
23823 MODULES="$MODULES $foo"
23826 for foo in `cat src/modules/stable`; do
23827 MODULES="$MODULES $foo"
23833 subdirs="$subdirs $LTDL_SUBDIRS $mysubdirs"
23841 USE_SHARED_LIBS=$enable_shared
23843 USE_STATIC_LIBS=$enable_static
23851 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"
23852 cat >confcache <<\_ACEOF
23853 # This file is a shell script that caches the results of configure
23854 # tests run on this system so they can be shared between configure
23855 # scripts and configure runs, see configure's option --config-cache.
23856 # It is not useful on other systems. If it contains results you don't
23857 # want to keep, you may remove or edit it.
23859 # config.status only pays attention to the cache file if you give it
23860 # the --recheck option to rerun configure.
23862 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23863 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23864 # following values.
23868 # The following way of writing the cache mishandles newlines in values,
23869 # but we know of no workaround that is simple, portable, and efficient.
23870 # So, don't put newlines in cache variables' values.
23871 # Ultrix sh set writes to stderr and can't be redirected directly,
23872 # and sets the high bit in the cache file unless we assign to the vars.
23875 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23877 # `set' does not quote correctly, so add quotes (double-quote
23878 # substitution turns \\\\ into \\, and sed turns \\ into \).
23881 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23884 # `set' quotes correctly as required by POSIX, so do not add quotes.
23886 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23893 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23895 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23897 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23898 if test -w $cache_file; then
23899 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23900 cat confcache >$cache_file
23902 echo "not updating unwritable cache $cache_file"
23907 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23908 # Let make expand exec_prefix.
23909 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23911 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23912 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23913 # trailing colons and then remove the whole line if VPATH becomes empty
23914 # (actually we leave an empty line to preserve line numbers).
23915 if test "x$srcdir" = x.; then
23916 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23917 s/:*\$(srcdir):*/:/;
23918 s/:*\${srcdir}:*/:/;
23920 s/^\([^=]*=[ ]*\):*/\1/;
23926 DEFS=-DHAVE_CONFIG_H
23930 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23931 # 1. Remove the extension, and $U if already installed.
23932 ac_i=`echo "$ac_i" |
23933 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23935 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23936 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23938 LIBOBJS=$ac_libobjs
23940 LTLIBOBJS=$ac_ltlibobjs
23944 : ${CONFIG_STATUS=./config.status}
23945 ac_clean_files_save=$ac_clean_files
23946 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23947 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23948 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23949 cat >$CONFIG_STATUS <<_ACEOF
23951 # Generated by $as_me.
23952 # Run this file to recreate the current configuration.
23953 # Compiler output produced by configure, useful for debugging
23954 # configure, is in config.log if it exists.
23957 ac_cs_recheck=false
23959 SHELL=\${CONFIG_SHELL-$SHELL}
23962 cat >>$CONFIG_STATUS <<\_ACEOF
23963 ## --------------------- ##
23964 ## M4sh Initialization. ##
23965 ## --------------------- ##
23967 # Be Bourne compatible
23968 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23971 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23972 # is contrary to our usage. Disable this feature.
23973 alias -g '${1+"$@"}'='"$@"'
23974 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23977 DUALCASE=1; export DUALCASE # for MKS sh
23979 # Support unset when possible.
23980 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23987 # Work around bugs in pre-3.0 UWIN ksh.
23988 $as_unset ENV MAIL MAILPATH
23995 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23996 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23997 LC_TELEPHONE LC_TIME
23999 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24000 eval $as_var=C; export $as_var
24006 # Required to use basename.
24007 if expr a : '\(a\)' >/dev/null 2>&1; then
24013 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24014 as_basename=basename
24020 # Name of the executable.
24021 as_me=`$as_basename "$0" ||
24022 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24023 X"$0" : 'X\(//\)$' \| \
24024 X"$0" : 'X\(/\)$' \| \
24025 . : '\(.\)' 2>/dev/null ||
24027 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24028 /^X\/\(\/\/\)$/{ s//\1/; q; }
24029 /^X\/\(\/\).*/{ s//\1/; q; }
24033 # PATH needs CR, and LINENO needs CR and PATH.
24034 # Avoid depending upon Character Ranges.
24035 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24036 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24037 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24038 as_cr_digits='0123456789'
24039 as_cr_alnum=$as_cr_Letters$as_cr_digits
24041 # The user is always right.
24042 if test "${PATH_SEPARATOR+set}" != set; then
24043 echo "#! /bin/sh" >conf$$.sh
24044 echo "exit 0" >>conf$$.sh
24046 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24055 as_lineno_1=$LINENO
24056 as_lineno_2=$LINENO
24057 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24058 test "x$as_lineno_1" != "x$as_lineno_2" &&
24059 test "x$as_lineno_3" = "x$as_lineno_2" || {
24060 # Find who we are. Look in the path if we contain no path at all
24063 *[\\/]* ) as_myself=$0 ;;
24064 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24065 for as_dir in $PATH
24068 test -z "$as_dir" && as_dir=.
24069 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24074 # We did not find ourselves, most probably we were run as `sh COMMAND'
24075 # in which case we are not to be found in the path.
24076 if test "x$as_myself" = x; then
24079 if test ! -f "$as_myself"; then
24080 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24081 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24082 { (exit 1); exit 1; }; }
24084 case $CONFIG_SHELL in
24086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24087 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24090 test -z "$as_dir" && as_dir=.
24091 for as_base in sh bash ksh sh5; do
24094 if ("$as_dir/$as_base" -c '
24095 as_lineno_1=$LINENO
24096 as_lineno_2=$LINENO
24097 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24098 test "x$as_lineno_1" != "x$as_lineno_2" &&
24099 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24100 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24101 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24102 CONFIG_SHELL=$as_dir/$as_base
24103 export CONFIG_SHELL
24104 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24112 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24113 # uniformly replaced by the line number. The first 'sed' inserts a
24114 # line-number line before each line; the second 'sed' does the real
24115 # work. The second script uses 'N' to pair each line-number line
24116 # with the numbered line, and appends trailing '-' during
24117 # substitution so that $LINENO is not a special case at line end.
24118 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24119 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24120 sed '=' <$as_myself |
24125 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24128 s,^['$as_cr_digits']*\n,,
24129 ' >$as_me.lineno &&
24130 chmod +x $as_me.lineno ||
24131 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24132 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24133 { (exit 1); exit 1; }; }
24135 # Don't try to exec as it changes $[0], causing all sort of problems
24136 # (the dirname of $[0] is not the place where we might find the
24137 # original and so on. Autoconf is especially sensible to this).
24139 # Exit status is that of the last command.
24144 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24145 *c*,-n*) ECHO_N= ECHO_C='
24147 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24148 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24151 if expr a : '\(a\)' >/dev/null 2>&1; then
24157 rm -f conf$$ conf$$.exe conf$$.file
24159 if ln -s conf$$.file conf$$ 2>/dev/null; then
24160 # We could just check for DJGPP; but this test a) works b) is more generic
24161 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24162 if test -f conf$$.exe; then
24163 # Don't use ln at all; we don't have any links
24168 elif ln conf$$.file conf$$ 2>/dev/null; then
24173 rm -f conf$$ conf$$.exe conf$$.file
24175 if mkdir -p . 2>/dev/null; then
24178 test -d ./-p && rmdir ./-p
24182 as_executable_p="test -f"
24184 # Sed expression to map a string onto a valid CPP name.
24185 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24187 # Sed expression to map a string onto a valid variable name.
24188 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24192 # We need space, tab and new line, in precisely that order.
24202 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24203 # report actual input values of CONFIG_FILES etc. instead of their
24204 # values after options handling. Logging --version etc. is OK.
24208 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24209 ## Running $as_me. ##
24214 This file was extended by $as_me, which was
24215 generated by GNU Autoconf 2.59. Invocation command line was
24217 CONFIG_FILES = $CONFIG_FILES
24218 CONFIG_HEADERS = $CONFIG_HEADERS
24219 CONFIG_LINKS = $CONFIG_LINKS
24220 CONFIG_COMMANDS = $CONFIG_COMMANDS
24224 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24228 # Files that config.status was made for.
24229 if test -n "$ac_config_files"; then
24230 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24233 if test -n "$ac_config_headers"; then
24234 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24237 if test -n "$ac_config_links"; then
24238 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24241 if test -n "$ac_config_commands"; then
24242 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24245 cat >>$CONFIG_STATUS <<\_ACEOF
24248 \`$as_me' instantiates files from templates according to the
24249 current configuration.
24251 Usage: $0 [OPTIONS] [FILE]...
24253 -h, --help print this help, then exit
24254 -V, --version print version number, then exit
24255 -q, --quiet do not print progress messages
24256 -d, --debug don't remove temporary files
24257 --recheck update $as_me by reconfiguring in the same conditions
24258 --file=FILE[:TEMPLATE]
24259 instantiate the configuration file FILE
24260 --header=FILE[:TEMPLATE]
24261 instantiate the configuration header FILE
24263 Configuration files:
24266 Configuration headers:
24269 Report bugs to <bug-autoconf@gnu.org>."
24272 cat >>$CONFIG_STATUS <<_ACEOF
24275 configured by $0, generated by GNU Autoconf 2.59,
24276 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24278 Copyright (C) 2003 Free Software Foundation, Inc.
24279 This config.status script is free software; the Free Software Foundation
24280 gives unlimited permission to copy, distribute and modify it."
24284 cat >>$CONFIG_STATUS <<\_ACEOF
24285 # If no file are specified by the user, then we need to provide default
24286 # value. By we need to know if files were specified by the user.
24292 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24293 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24301 *) # This is not an option, so the user has probably given explicit
24304 ac_need_defaults=false;;
24308 # Handling of the options.
24310 cat >>$CONFIG_STATUS <<\_ACEOF
24311 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24313 --version | --vers* | -V )
24314 echo "$ac_cs_version"; exit 0 ;;
24316 # Conflict between --help and --header
24317 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24318 Try \`$0 --help' for more information." >&5
24319 echo "$as_me: error: ambiguous option: $1
24320 Try \`$0 --help' for more information." >&2;}
24321 { (exit 1); exit 1; }; };;
24322 --help | --hel | -h )
24323 echo "$ac_cs_usage"; exit 0 ;;
24324 --debug | --d* | -d )
24326 --file | --fil | --fi | --f )
24328 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24329 ac_need_defaults=false;;
24330 --header | --heade | --head | --hea )
24332 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24333 ac_need_defaults=false;;
24334 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24335 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24338 # This is an error.
24339 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24340 Try \`$0 --help' for more information." >&5
24341 echo "$as_me: error: unrecognized option: $1
24342 Try \`$0 --help' for more information." >&2;}
24343 { (exit 1); exit 1; }; } ;;
24345 *) ac_config_targets="$ac_config_targets $1" ;;
24351 ac_configure_extra_args=
24353 if $ac_cs_silent; then
24355 ac_configure_extra_args="$ac_configure_extra_args --silent"
24359 cat >>$CONFIG_STATUS <<_ACEOF
24360 if \$ac_cs_recheck; then
24361 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24362 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24371 cat >>$CONFIG_STATUS <<\_ACEOF
24372 for ac_config_target in $ac_config_targets
24374 case "$ac_config_target" in
24375 # Handling of arguments.
24376 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24377 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24378 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24379 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24380 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24381 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24382 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24383 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24384 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24385 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24386 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24387 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24388 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24389 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24390 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24391 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24392 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24393 { (exit 1); exit 1; }; };;
24397 # If the user did not use the arguments to specify the items to instantiate,
24398 # then the envvar interface is used. Set only those that are not.
24399 # We use the long form for the default assignment because of an extremely
24400 # bizarre bug on SunOS 4.1.3.
24401 if $ac_need_defaults; then
24402 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24403 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24406 # Have a temporary directory for convenience. Make it in the build tree
24407 # simply because there is no reason to put it here, and in addition,
24408 # creating and moving files from /tmp can sometimes cause problems.
24409 # Create a temporary directory, and hook for its removal unless debugging.
24412 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24413 trap '{ (exit 1); exit 1; }' 1 2 13 15
24416 # Create a (secure) tmp directory for tmp files.
24419 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24420 test -n "$tmp" && test -d "$tmp"
24423 tmp=./confstat$$-$RANDOM
24424 (umask 077 && mkdir $tmp)
24427 echo "$me: cannot create a temporary directory in ." >&2
24428 { (exit 1); exit 1; }
24433 cat >>$CONFIG_STATUS <<_ACEOF
24436 # CONFIG_FILES section.
24439 # No need to generate the scripts if there are no CONFIG_FILES.
24440 # This happens for instance when ./config.status config.h
24441 if test -n "\$CONFIG_FILES"; then
24442 # Protect against being on the right side of a sed subst in config.status.
24443 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24444 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24445 s,@SHELL@,$SHELL,;t t
24446 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24447 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24448 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24449 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24450 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24451 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24452 s,@exec_prefix@,$exec_prefix,;t t
24453 s,@prefix@,$prefix,;t t
24454 s,@program_transform_name@,$program_transform_name,;t t
24455 s,@bindir@,$bindir,;t t
24456 s,@sbindir@,$sbindir,;t t
24457 s,@libexecdir@,$libexecdir,;t t
24458 s,@datadir@,$datadir,;t t
24459 s,@sysconfdir@,$sysconfdir,;t t
24460 s,@sharedstatedir@,$sharedstatedir,;t t
24461 s,@localstatedir@,$localstatedir,;t t
24462 s,@libdir@,$libdir,;t t
24463 s,@includedir@,$includedir,;t t
24464 s,@oldincludedir@,$oldincludedir,;t t
24465 s,@infodir@,$infodir,;t t
24466 s,@mandir@,$mandir,;t t
24467 s,@build_alias@,$build_alias,;t t
24468 s,@host_alias@,$host_alias,;t t
24469 s,@target_alias@,$target_alias,;t t
24470 s,@DEFS@,$DEFS,;t t
24471 s,@ECHO_C@,$ECHO_C,;t t
24472 s,@ECHO_N@,$ECHO_N,;t t
24473 s,@ECHO_T@,$ECHO_T,;t t
24474 s,@LIBS@,$LIBS,;t t
24476 s,@CFLAGS@,$CFLAGS,;t t
24477 s,@LDFLAGS@,$LDFLAGS,;t t
24478 s,@CPPFLAGS@,$CPPFLAGS,;t t
24479 s,@ac_ct_CC@,$ac_ct_CC,;t t
24480 s,@EXEEXT@,$EXEEXT,;t t
24481 s,@OBJEXT@,$OBJEXT,;t t
24483 s,@EGREP@,$EGREP,;t t
24484 s,@RANLIB@,$RANLIB,;t t
24485 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24486 s,@abs_top_builddir@,$abs_top_builddir,;t t
24487 s,@GMAKE@,$GMAKE,;t t
24488 s,@MAKE@,$MAKE,;t t
24489 s,@LTDL_SUBDIRS@,$LTDL_SUBDIRS,;t t
24490 s,@LIBTOOL@,$LIBTOOL,;t t
24491 s,@build@,$build,;t t
24492 s,@build_cpu@,$build_cpu,;t t
24493 s,@build_vendor@,$build_vendor,;t t
24494 s,@build_os@,$build_os,;t t
24495 s,@host@,$host,;t t
24496 s,@host_cpu@,$host_cpu,;t t
24497 s,@host_vendor@,$host_vendor,;t t
24498 s,@host_os@,$host_os,;t t
24499 s,@LN_S@,$LN_S,;t t
24500 s,@ECHO@,$ECHO,;t t
24502 s,@ac_ct_AR@,$ac_ct_AR,;t t
24503 s,@STRIP@,$STRIP,;t t
24504 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24506 s,@CXXFLAGS@,$CXXFLAGS,;t t
24507 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24508 s,@CXXCPP@,$CXXCPP,;t t
24510 s,@FFLAGS@,$FFLAGS,;t t
24511 s,@ac_ct_F77@,$ac_ct_F77,;t t
24512 s,@logdir@,$logdir,;t t
24513 s,@radacctdir@,$radacctdir,;t t
24514 s,@raddbdir@,$raddbdir,;t t
24515 s,@PERL@,$PERL,;t t
24516 s,@SNMPGET@,$SNMPGET,;t t
24517 s,@SNMPWALK@,$SNMPWALK,;t t
24518 s,@RUSERS@,$RUSERS,;t t
24519 s,@ACLOCAL@,$ACLOCAL,;t t
24520 s,@AUTOCONF@,$AUTOCONF,;t t
24521 s,@AUTOHEADER@,$AUTOHEADER,;t t
24522 s,@LOCATE@,$LOCATE,;t t
24523 s,@DIRNAME@,$DIRNAME,;t t
24524 s,@GREP@,$GREP,;t t
24525 s,@REGEX@,$REGEX,;t t
24526 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
24527 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
24528 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
24529 s,@LIBPREFIX@,$LIBPREFIX,;t t
24530 s,@CRYPTLIB@,$CRYPTLIB,;t t
24531 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
24532 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
24533 s,@GETCONF@,$GETCONF,;t t
24534 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
24535 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
24536 s,@LFS_LIBS@,$LFS_LIBS,;t t
24537 s,@HOSTINFO@,$HOSTINFO,;t t
24538 s,@LIBLTDL@,$LIBLTDL,;t t
24539 s,@INCLTDL@,$INCLTDL,;t t
24540 s,@subdirs@,$subdirs,;t t
24541 s,@MODULES@,$MODULES,;t t
24542 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
24543 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
24544 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
24545 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
24546 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
24547 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
24548 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
24549 s,@LIBOBJS@,$LIBOBJS,;t t
24550 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24555 cat >>$CONFIG_STATUS <<\_ACEOF
24556 # Split the substitutions into bite-sized pieces for seds with
24557 # small command number limits, like on Digital OSF/1 and HP-UX.
24558 ac_max_sed_lines=48
24559 ac_sed_frag=1 # Number of current file.
24560 ac_beg=1 # First line for current file.
24561 ac_end=$ac_max_sed_lines # Line after last line for current file.
24564 while $ac_more_lines; do
24565 if test $ac_beg -gt 1; then
24566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24570 if test ! -s $tmp/subs.frag; then
24571 ac_more_lines=false
24573 # The purpose of the label and of the branching condition is to
24574 # speed up the sed processing (if there are no `@' at all, there
24575 # is no need to browse any of the substitutions).
24576 # These are the two extra sed commands mentioned above.
24578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24579 if test -z "$ac_sed_cmds"; then
24580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24584 ac_sed_frag=`expr $ac_sed_frag + 1`
24586 ac_end=`expr $ac_end + $ac_max_sed_lines`
24589 if test -z "$ac_sed_cmds"; then
24592 fi # test -n "$CONFIG_FILES"
24595 cat >>$CONFIG_STATUS <<\_ACEOF
24596 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24599 - | *:- | *:-:* ) # input from stdin
24601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24605 * ) ac_file_in=$ac_file.in ;;
24608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24609 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24610 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24611 X"$ac_file" : 'X\(//\)[^/]' \| \
24612 X"$ac_file" : 'X\(//\)$' \| \
24613 X"$ac_file" : 'X\(/\)' \| \
24614 . : '\(.\)' 2>/dev/null ||
24616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24617 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24618 /^X\(\/\/\)$/{ s//\1/; q; }
24619 /^X\(\/\).*/{ s//\1/; q; }
24621 { if $as_mkdir_p; then
24626 while test ! -d "$as_dir"; do
24627 as_dirs="$as_dir $as_dirs"
24628 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24629 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24630 X"$as_dir" : 'X\(//\)[^/]' \| \
24631 X"$as_dir" : 'X\(//\)$' \| \
24632 X"$as_dir" : 'X\(/\)' \| \
24633 . : '\(.\)' 2>/dev/null ||
24635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24636 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24637 /^X\(\/\/\)$/{ s//\1/; q; }
24638 /^X\(\/\).*/{ s//\1/; q; }
24641 test ! -n "$as_dirs" || mkdir $as_dirs
24642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24643 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24644 { (exit 1); exit 1; }; }; }
24648 if test "$ac_dir" != .; then
24649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24650 # A "../" for each directory in $ac_dir_suffix.
24651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24653 ac_dir_suffix= ac_top_builddir=
24657 .) # No --srcdir option. We are building in place.
24659 if test -z "$ac_top_builddir"; then
24662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24664 [\\/]* | ?:[\\/]* ) # Absolute path.
24665 ac_srcdir=$srcdir$ac_dir_suffix;
24666 ac_top_srcdir=$srcdir ;;
24667 *) # Relative path.
24668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24669 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24672 # Do not use `cd foo && pwd` to compute absolute paths, because
24673 # the directories may not exist.
24675 .) ac_abs_builddir="$ac_dir";;
24678 .) ac_abs_builddir=`pwd`;;
24679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24680 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24683 case $ac_abs_builddir in
24684 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24686 case ${ac_top_builddir}. in
24687 .) ac_abs_top_builddir=$ac_abs_builddir;;
24688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24692 case $ac_abs_builddir in
24693 .) ac_abs_srcdir=$ac_srcdir;;
24696 .) ac_abs_srcdir=$ac_abs_builddir;;
24697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24701 case $ac_abs_builddir in
24702 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24704 case $ac_top_srcdir in
24705 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24713 if test x"$ac_file" != x-; then
24714 { echo "$as_me:$LINENO: creating $ac_file" >&5
24715 echo "$as_me: creating $ac_file" >&6;}
24718 # Let's still pretend it is `configure' which instantiates (i.e., don't
24719 # use $as_me), people would be surprised to read:
24720 # /* config.h. Generated by config.status. */
24721 if test x"$ac_file" = x-; then
24724 configure_input="$ac_file. "
24726 configure_input=$configure_input"Generated from `echo $ac_file_in |
24727 sed 's,.*/,,'` by configure."
24729 # First look for the input files in the build tree, otherwise in the
24731 ac_file_inputs=`IFS=:
24732 for f in $ac_file_in; do
24734 -) echo $tmp/stdin ;;
24736 # Absolute (can't be DOS-style, as IFS=:)
24737 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24738 echo "$as_me: error: cannot find input file: $f" >&2;}
24739 { (exit 1); exit 1; }; }
24742 if test -f "$f"; then
24745 elif test -f "$srcdir/$f"; then
24750 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24751 echo "$as_me: error: cannot find input file: $f" >&2;}
24752 { (exit 1); exit 1; }; }
24755 done` || { (exit 1); exit 1; }
24757 cat >>$CONFIG_STATUS <<_ACEOF
24761 cat >>$CONFIG_STATUS <<\_ACEOF
24763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24764 s,@configure_input@,$configure_input,;t t
24765 s,@srcdir@,$ac_srcdir,;t t
24766 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24767 s,@top_srcdir@,$ac_top_srcdir,;t t
24768 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24769 s,@builddir@,$ac_builddir,;t t
24770 s,@abs_builddir@,$ac_abs_builddir,;t t
24771 s,@top_builddir@,$ac_top_builddir,;t t
24772 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24773 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24775 if test x"$ac_file" != x-; then
24776 mv $tmp/out $ac_file
24784 cat >>$CONFIG_STATUS <<\_ACEOF
24787 # CONFIG_HEADER section.
24790 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24791 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24793 # ac_d sets the value in "#define NAME VALUE" lines.
24794 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24795 ac_dB='[ ].*$,\1#\2'
24798 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24799 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24800 ac_uB='$,\1#\2define\3'
24804 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24805 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24807 - | *:- | *:-:* ) # input from stdin
24809 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24810 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24811 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24812 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24813 * ) ac_file_in=$ac_file.in ;;
24816 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24817 echo "$as_me: creating $ac_file" >&6;}
24819 # First look for the input files in the build tree, otherwise in the
24821 ac_file_inputs=`IFS=:
24822 for f in $ac_file_in; do
24824 -) echo $tmp/stdin ;;
24826 # Absolute (can't be DOS-style, as IFS=:)
24827 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24828 echo "$as_me: error: cannot find input file: $f" >&2;}
24829 { (exit 1); exit 1; }; }
24830 # Do quote $f, to prevent DOS paths from being IFS'd.
24833 if test -f "$f"; then
24836 elif test -f "$srcdir/$f"; then
24841 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24842 echo "$as_me: error: cannot find input file: $f" >&2;}
24843 { (exit 1); exit 1; }; }
24846 done` || { (exit 1); exit 1; }
24847 # Remove the trailing spaces.
24848 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24852 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24853 # `conftest.undefs', that substitutes the proper values into
24854 # config.h.in to produce config.h. The first handles `#define'
24855 # templates, and the second `#undef' templates.
24856 # And first: Protect against being on the right side of a sed subst in
24857 # config.status. Protect against being in an unquoted here document
24858 # in config.status.
24859 rm -f conftest.defines conftest.undefs
24860 # Using a here document instead of a string reduces the quoting nightmare.
24861 # Putting comments in sed scripts is not portable.
24863 # `end' is used to avoid that the second main sed command (meant for
24864 # 0-ary CPP macros) applies to n-ary macro definitions.
24865 # See the Autoconf documentation for `clear'.
24866 cat >confdef2sed.sed <<\_ACEOF
24871 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24873 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24876 # If some macros were called several times there might be several times
24877 # the same #defines, which is useless. Nevertheless, we may not want to
24878 # sort them, since we want the *last* AC-DEFINE to be honored.
24879 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24880 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24881 rm -f confdef2sed.sed
24883 # This sed command replaces #undef with comments. This is necessary, for
24884 # example, in the case of _POSIX_SOURCE, which is predefined and required
24885 # on some systems where configure will not decide to define it.
24886 cat >>conftest.undefs <<\_ACEOF
24887 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24890 # Break up conftest.defines because some shells have a limit on the size
24891 # of here documents, and old seds have small limits too (100 cmds).
24892 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24893 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24894 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24895 echo ' :' >>$CONFIG_STATUS
24896 rm -f conftest.tail
24897 while grep . conftest.defines >/dev/null
24899 # Write a limited-size here document to $tmp/defines.sed.
24900 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24901 # Speed up: don't consider the non `#define' lines.
24902 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24903 # Work around the forget-to-reset-the-flag bug.
24904 echo 't clr' >>$CONFIG_STATUS
24905 echo ': clr' >>$CONFIG_STATUS
24906 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24908 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24910 mv $tmp/out $tmp/in
24912 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24913 rm -f conftest.defines
24914 mv conftest.tail conftest.defines
24916 rm -f conftest.defines
24917 echo ' fi # grep' >>$CONFIG_STATUS
24918 echo >>$CONFIG_STATUS
24920 # Break up conftest.undefs because some shells have a limit on the size
24921 # of here documents, and old seds have small limits too (100 cmds).
24922 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24923 rm -f conftest.tail
24924 while grep . conftest.undefs >/dev/null
24926 # Write a limited-size here document to $tmp/undefs.sed.
24927 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24928 # Speed up: don't consider the non `#undef'
24929 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24930 # Work around the forget-to-reset-the-flag bug.
24931 echo 't clr' >>$CONFIG_STATUS
24932 echo ': clr' >>$CONFIG_STATUS
24933 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24935 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24937 mv $tmp/out $tmp/in
24939 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24940 rm -f conftest.undefs
24941 mv conftest.tail conftest.undefs
24943 rm -f conftest.undefs
24945 cat >>$CONFIG_STATUS <<\_ACEOF
24946 # Let's still pretend it is `configure' which instantiates (i.e., don't
24947 # use $as_me), people would be surprised to read:
24948 # /* config.h. Generated by config.status. */
24949 if test x"$ac_file" = x-; then
24950 echo "/* Generated by configure. */" >$tmp/config.h
24952 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24954 cat $tmp/in >>$tmp/config.h
24956 if test x"$ac_file" != x-; then
24957 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24958 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24959 echo "$as_me: $ac_file is unchanged" >&6;}
24961 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24962 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24963 X"$ac_file" : 'X\(//\)[^/]' \| \
24964 X"$ac_file" : 'X\(//\)$' \| \
24965 X"$ac_file" : 'X\(/\)' \| \
24966 . : '\(.\)' 2>/dev/null ||
24968 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24969 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24970 /^X\(\/\/\)$/{ s//\1/; q; }
24971 /^X\(\/\).*/{ s//\1/; q; }
24973 { if $as_mkdir_p; then
24978 while test ! -d "$as_dir"; do
24979 as_dirs="$as_dir $as_dirs"
24980 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24981 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24982 X"$as_dir" : 'X\(//\)[^/]' \| \
24983 X"$as_dir" : 'X\(//\)$' \| \
24984 X"$as_dir" : 'X\(/\)' \| \
24985 . : '\(.\)' 2>/dev/null ||
24987 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24988 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24989 /^X\(\/\/\)$/{ s//\1/; q; }
24990 /^X\(\/\).*/{ s//\1/; q; }
24993 test ! -n "$as_dirs" || mkdir $as_dirs
24994 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24995 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24996 { (exit 1); exit 1; }; }; }
24999 mv $tmp/config.h $ac_file
25003 rm -f $tmp/config.h
25008 cat >>$CONFIG_STATUS <<\_ACEOF
25010 { (exit 0); exit 0; }
25012 chmod +x $CONFIG_STATUS
25013 ac_clean_files=$ac_clean_files_save
25016 # configure is writing to config.log, and then calls config.status.
25017 # config.status does its own redirection, appending to config.log.
25018 # Unfortunately, on DOS this fails, as config.log is still kept open
25019 # by configure, so config.status won't be able to write to it; its
25020 # output is simply discarded. So we exec the FD to /dev/null,
25021 # effectively closing config.log, so it can be properly (re)opened and
25022 # appended to by config.status. When coming back to configure, we
25023 # need to make the FD available again.
25024 if test "$no_create" != yes; then
25026 ac_config_status_args=
25027 test "$silent" = yes &&
25028 ac_config_status_args="$ac_config_status_args --quiet"
25030 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25032 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25033 # would make configure fail if this is the last instruction.
25034 $ac_cs_success || { (exit 1); exit 1; }
25038 # CONFIG_SUBDIRS section.
25040 if test "$no_recursion" != yes; then
25042 # Remove --cache-file and --srcdir arguments so they do not pile up.
25043 ac_sub_configure_args=
25045 for ac_arg in $ac_configure_args; do
25046 if test -n "$ac_prev"; then
25051 -cache-file | --cache-file | --cache-fil | --cache-fi \
25052 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25053 ac_prev=cache_file ;;
25054 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25055 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25058 --config-cache | -C)
25060 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25062 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25064 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25066 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25068 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25072 # Always prepend --prefix to ensure using the same prefix
25073 # in subdir configurations.
25074 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25077 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25079 # Do not complain, so a configure script can configure whichever
25080 # parts of a large source tree are present.
25081 test -d $srcdir/$ac_dir || continue
25083 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25084 echo "$as_me: configuring in $ac_dir" >&6;}
25085 { if $as_mkdir_p; then
25090 while test ! -d "$as_dir"; do
25091 as_dirs="$as_dir $as_dirs"
25092 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25093 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25094 X"$as_dir" : 'X\(//\)[^/]' \| \
25095 X"$as_dir" : 'X\(//\)$' \| \
25096 X"$as_dir" : 'X\(/\)' \| \
25097 . : '\(.\)' 2>/dev/null ||
25099 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25100 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25101 /^X\(\/\/\)$/{ s//\1/; q; }
25102 /^X\(\/\).*/{ s//\1/; q; }
25105 test ! -n "$as_dirs" || mkdir $as_dirs
25106 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25107 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25108 { (exit 1); exit 1; }; }; }
25112 if test "$ac_dir" != .; then
25113 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25114 # A "../" for each directory in $ac_dir_suffix.
25115 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25117 ac_dir_suffix= ac_top_builddir=
25121 .) # No --srcdir option. We are building in place.
25123 if test -z "$ac_top_builddir"; then
25126 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25128 [\\/]* | ?:[\\/]* ) # Absolute path.
25129 ac_srcdir=$srcdir$ac_dir_suffix;
25130 ac_top_srcdir=$srcdir ;;
25131 *) # Relative path.
25132 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25133 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25136 # Do not use `cd foo && pwd` to compute absolute paths, because
25137 # the directories may not exist.
25139 .) ac_abs_builddir="$ac_dir";;
25142 .) ac_abs_builddir=`pwd`;;
25143 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25144 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25147 case $ac_abs_builddir in
25148 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25150 case ${ac_top_builddir}. in
25151 .) ac_abs_top_builddir=$ac_abs_builddir;;
25152 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25153 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25156 case $ac_abs_builddir in
25157 .) ac_abs_srcdir=$ac_srcdir;;
25160 .) ac_abs_srcdir=$ac_abs_builddir;;
25161 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25162 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25165 case $ac_abs_builddir in
25166 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25168 case $ac_top_srcdir in
25169 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25170 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25171 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25178 # Check for guested configure; otherwise get Cygnus style configure.
25179 if test -f $ac_srcdir/configure.gnu; then
25180 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25181 elif test -f $ac_srcdir/configure; then
25182 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25183 elif test -f $ac_srcdir/configure.in; then
25184 ac_sub_configure=$ac_configure
25186 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25187 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25191 # The recursion is here.
25192 if test -n "$ac_sub_configure"; then
25193 # Make the cache file name correct relative to the subdirectory.
25194 case $cache_file in
25195 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25196 *) # Relative path.
25197 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25200 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25201 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25202 # The eval makes quoting arguments work.
25203 eval $ac_sub_configure $ac_sub_configure_args \
25204 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25205 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25206 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25207 { (exit 1); exit 1; }; }
25215 ac_config_commands="$ac_config_commands default-1"
25217 ac_config_commands="$ac_config_commands default-2"
25219 ac_config_commands="$ac_config_commands default-3"
25221 ac_config_commands="$ac_config_commands default-4"