2 # From configure.in Revision: 1.205 .
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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 ac_subdirs_all="$ac_subdirs_all 'libltdl'"
431 # Factoring default headers for most tests.
432 ac_includes_default="\
435 # include <sys/types.h>
438 # include <sys/stat.h>
449 # if !STDC_HEADERS && HAVE_MEMORY_H
455 # include <strings.h>
458 # include <inttypes.h>
468 ac_subdirs_all="$ac_subdirs_all $mysubdirs"
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP RANLIB ac_ct_RANLIB abs_top_builddir GMAKE MAKE subdirs LIBLTDLPATH LIBTOOL build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR STRIP ac_ct_STRIP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 logdir radacctdir raddbdir PERL SNMPGET SNMPWALK RUSERS ACLOCAL AUTOCONF AUTOHEADER LOCATE DIRNAME GREP REGEX REGEX_EXTENDED OPENSSL_INCLUDE OPENSSL_LIBS LIBPREFIX CRYPTLIB SNMP_LIBS SNMP_INCLUDE GETCONF LFS_CFLAGS LFS_LDFLAGS LFS_LIBS HOSTINFO LIBLTDL INCLTDL MODULES INSTALLSTRIP USE_SHARED_LIBS USE_STATIC_LIBS STATIC_MODULES RADIUSD_MAJOR_VERSION RADIUSD_MINOR_VERSION RADIUSD_VERSION LIBOBJS LTLIBOBJS'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures this package to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --build=BUILD configure for building on BUILD [guessed]
1013 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1017 if test -n "$ac_init_help"; then
1022 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1023 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1024 --enable-shared[=PKGS]
1025 build shared libraries [default=yes]
1026 --enable-static[=PKGS]
1027 build static libraries [default=yes]
1028 --enable-fast-install[=PKGS]
1029 optimize for fast installation [default=yes]
1030 --disable-libtool-lock avoid locking (might break parallel builds)
1031 --enable-strict-dependencies Fail configure on lack of module dependancy.
1032 --enable-developer Enables features of interest to developers.
1035 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1036 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1037 --with-system-libtool try to use libtool installed in your system default=use our own
1038 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1039 --with-pic try to use only PIC/non-PIC objects [default=use
1042 include additional configurations [automatic]
1043 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1044 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1045 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1046 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1047 --with-threads Use threads, if available. (default=yes)
1048 --with-snmp Compile in SNMP support. (default=yes)
1049 --with-large-files Compile in large (2G+) file support. (default=no)
1050 --with-static-modules=QUOTED-MODULE-LIST
1051 --with-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)
1058 Some influential environment variables:
1059 CC C compiler command
1060 CFLAGS C compiler flags
1061 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1062 nonstandard directory <lib dir>
1063 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CXXCPP C++ preprocessor
1069 F77 Fortran 77 compiler command
1070 FFLAGS Fortran 77 compiler flags
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1078 if test "$ac_init_help" = "recursive"; then
1079 # If there are subdirs, report their specific --help.
1081 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082 test -d $ac_dir || continue
1085 if test "$ac_dir" != .; then
1086 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087 # A "../" for each directory in $ac_dir_suffix.
1088 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 ac_dir_suffix= ac_top_builddir=
1094 .) # No --srcdir option. We are building in place.
1096 if test -z "$ac_top_builddir"; then
1099 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 [\\/]* | ?:[\\/]* ) # Absolute path.
1102 ac_srcdir=$srcdir$ac_dir_suffix;
1103 ac_top_srcdir=$srcdir ;;
1105 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1109 # Do not use `cd foo && pwd` to compute absolute paths, because
1110 # the directories may not exist.
1112 .) ac_abs_builddir="$ac_dir";;
1115 .) ac_abs_builddir=`pwd`;;
1116 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1117 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1120 case $ac_abs_builddir in
1121 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 case ${ac_top_builddir}. in
1124 .) ac_abs_top_builddir=$ac_abs_builddir;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1129 case $ac_abs_builddir in
1130 .) ac_abs_srcdir=$ac_srcdir;;
1133 .) ac_abs_srcdir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1135 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 case $ac_top_srcdir in
1142 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149 # Check for guested configure; otherwise get Cygnus style configure.
1150 if test -f $ac_srcdir/configure.gnu; then
1152 $SHELL $ac_srcdir/configure.gnu --help=recursive
1153 elif test -f $ac_srcdir/configure; then
1155 $SHELL $ac_srcdir/configure --help=recursive
1156 elif test -f $ac_srcdir/configure.ac ||
1157 test -f $ac_srcdir/configure.in; then
1159 $ac_configure --help
1161 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1167 test -n "$ac_init_help" && exit 0
1168 if $ac_init_version; then
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by $as_me, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1510 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1513 RADIUSD_MAJOR_VERSION=1
1514 RADIUSD_MINOR_VERSION=1.0-pre0
1515 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1519 ac_cpp='$CPP $CPPFLAGS'
1520 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1521 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1522 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1523 if test -n "$ac_tool_prefix"; then
1524 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1525 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1526 echo "$as_me:$LINENO: checking for $ac_word" >&5
1527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1528 if test "${ac_cv_prog_CC+set}" = set; then
1529 echo $ECHO_N "(cached) $ECHO_C" >&6
1531 if test -n "$CC"; then
1532 ac_cv_prog_CC="$CC" # Let the user override the test.
1534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1538 test -z "$as_dir" && as_dir=.
1539 for ac_exec_ext in '' $ac_executable_extensions; do
1540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1541 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1551 if test -n "$CC"; then
1552 echo "$as_me:$LINENO: result: $CC" >&5
1553 echo "${ECHO_T}$CC" >&6
1555 echo "$as_me:$LINENO: result: no" >&5
1556 echo "${ECHO_T}no" >&6
1560 if test -z "$ac_cv_prog_CC"; then
1562 # Extract the first word of "gcc", so it can be a program name with args.
1563 set dummy gcc; ac_word=$2
1564 echo "$as_me:$LINENO: checking for $ac_word" >&5
1565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1566 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1567 echo $ECHO_N "(cached) $ECHO_C" >&6
1569 if test -n "$ac_ct_CC"; then
1570 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1576 test -z "$as_dir" && as_dir=.
1577 for ac_exec_ext in '' $ac_executable_extensions; do
1578 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1579 ac_cv_prog_ac_ct_CC="gcc"
1580 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1588 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1589 if test -n "$ac_ct_CC"; then
1590 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1591 echo "${ECHO_T}$ac_ct_CC" >&6
1593 echo "$as_me:$LINENO: result: no" >&5
1594 echo "${ECHO_T}no" >&6
1602 if test -z "$CC"; then
1603 if test -n "$ac_tool_prefix"; then
1604 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1605 set dummy ${ac_tool_prefix}cc; ac_word=$2
1606 echo "$as_me:$LINENO: checking for $ac_word" >&5
1607 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1608 if test "${ac_cv_prog_CC+set}" = set; then
1609 echo $ECHO_N "(cached) $ECHO_C" >&6
1611 if test -n "$CC"; then
1612 ac_cv_prog_CC="$CC" # Let the user override the test.
1614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1618 test -z "$as_dir" && as_dir=.
1619 for ac_exec_ext in '' $ac_executable_extensions; do
1620 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1621 ac_cv_prog_CC="${ac_tool_prefix}cc"
1622 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1631 if test -n "$CC"; then
1632 echo "$as_me:$LINENO: result: $CC" >&5
1633 echo "${ECHO_T}$CC" >&6
1635 echo "$as_me:$LINENO: result: no" >&5
1636 echo "${ECHO_T}no" >&6
1640 if test -z "$ac_cv_prog_CC"; then
1642 # Extract the first word of "cc", so it can be a program name with args.
1643 set dummy cc; ac_word=$2
1644 echo "$as_me:$LINENO: checking for $ac_word" >&5
1645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1646 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1647 echo $ECHO_N "(cached) $ECHO_C" >&6
1649 if test -n "$ac_ct_CC"; then
1650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1656 test -z "$as_dir" && as_dir=.
1657 for ac_exec_ext in '' $ac_executable_extensions; do
1658 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1659 ac_cv_prog_ac_ct_CC="cc"
1660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1669 if test -n "$ac_ct_CC"; then
1670 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1671 echo "${ECHO_T}$ac_ct_CC" >&6
1673 echo "$as_me:$LINENO: result: no" >&5
1674 echo "${ECHO_T}no" >&6
1683 if test -z "$CC"; then
1684 # Extract the first word of "cc", so it can be a program name with args.
1685 set dummy cc; ac_word=$2
1686 echo "$as_me:$LINENO: checking for $ac_word" >&5
1687 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1688 if test "${ac_cv_prog_CC+set}" = set; then
1689 echo $ECHO_N "(cached) $ECHO_C" >&6
1691 if test -n "$CC"; then
1692 ac_cv_prog_CC="$CC" # Let the user override the test.
1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699 test -z "$as_dir" && as_dir=.
1700 for ac_exec_ext in '' $ac_executable_extensions; do
1701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1703 ac_prog_rejected=yes
1707 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1713 if test $ac_prog_rejected = yes; then
1714 # We found a bogon in the path, so make sure we never use it.
1715 set dummy $ac_cv_prog_CC
1717 if test $# != 0; then
1718 # We chose a different compiler from the bogus one.
1719 # However, it has the same basename, so the bogon will be chosen
1720 # first if we set CC to just the basename; use the full file name.
1722 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1728 if test -n "$CC"; then
1729 echo "$as_me:$LINENO: result: $CC" >&5
1730 echo "${ECHO_T}$CC" >&6
1732 echo "$as_me:$LINENO: result: no" >&5
1733 echo "${ECHO_T}no" >&6
1737 if test -z "$CC"; then
1738 if test -n "$ac_tool_prefix"; then
1741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1743 echo "$as_me:$LINENO: checking for $ac_word" >&5
1744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1745 if test "${ac_cv_prog_CC+set}" = set; then
1746 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 if test -n "$CC"; then
1749 ac_cv_prog_CC="$CC" # Let the user override the test.
1751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1755 test -z "$as_dir" && as_dir=.
1756 for ac_exec_ext in '' $ac_executable_extensions; do
1757 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1758 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1768 if test -n "$CC"; then
1769 echo "$as_me:$LINENO: result: $CC" >&5
1770 echo "${ECHO_T}$CC" >&6
1772 echo "$as_me:$LINENO: result: no" >&5
1773 echo "${ECHO_T}no" >&6
1776 test -n "$CC" && break
1779 if test -z "$CC"; then
1783 # Extract the first word of "$ac_prog", so it can be a program name with args.
1784 set dummy $ac_prog; ac_word=$2
1785 echo "$as_me:$LINENO: checking for $ac_word" >&5
1786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1788 echo $ECHO_N "(cached) $ECHO_C" >&6
1790 if test -n "$ac_ct_CC"; then
1791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1797 test -z "$as_dir" && as_dir=.
1798 for ac_exec_ext in '' $ac_executable_extensions; do
1799 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1800 ac_cv_prog_ac_ct_CC="$ac_prog"
1801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1809 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1810 if test -n "$ac_ct_CC"; then
1811 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1812 echo "${ECHO_T}$ac_ct_CC" >&6
1814 echo "$as_me:$LINENO: result: no" >&5
1815 echo "${ECHO_T}no" >&6
1818 test -n "$ac_ct_CC" && break
1827 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1828 See \`config.log' for more details." >&5
1829 echo "$as_me: error: no acceptable C compiler found in \$PATH
1830 See \`config.log' for more details." >&2;}
1831 { (exit 1); exit 1; }; }
1833 # Provide some information about the compiler.
1834 echo "$as_me:$LINENO:" \
1835 "checking for C compiler version" >&5
1836 ac_compiler=`set X $ac_compile; echo $2`
1837 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1838 (eval $ac_compiler --version </dev/null >&5) 2>&5
1840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841 (exit $ac_status); }
1842 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1843 (eval $ac_compiler -v </dev/null >&5) 2>&5
1845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1846 (exit $ac_status); }
1847 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1848 (eval $ac_compiler -V </dev/null >&5) 2>&5
1850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1851 (exit $ac_status); }
1853 cat >conftest.$ac_ext <<_ACEOF
1856 cat confdefs.h >>conftest.$ac_ext
1857 cat >>conftest.$ac_ext <<_ACEOF
1858 /* end confdefs.h. */
1868 ac_clean_files_save=$ac_clean_files
1869 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1870 # Try to create an executable without -o first, disregard a.out.
1871 # It will help us diagnose broken compilers, and finding out an intuition
1873 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1874 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1875 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1876 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1877 (eval $ac_link_default) 2>&5
1879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1880 (exit $ac_status); }; then
1881 # Find the output, starting from the most likely. This scheme is
1882 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1885 # Be careful to initialize this variable, since it used to be cached.
1886 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1888 # b.out is created by i960 compilers.
1889 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1891 test -f "$ac_file" || continue
1893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1896 # This is the source file.
1899 # We found the default executable, but exeext='' is most
1903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1904 # FIXME: I believe we export ac_cv_exeext for Libtool,
1905 # but it would be cool to find out if it's true. Does anybody
1906 # maintain Libtool? --akim.
1914 echo "$as_me: failed program was:" >&5
1915 sed 's/^/| /' conftest.$ac_ext >&5
1917 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1918 See \`config.log' for more details." >&5
1919 echo "$as_me: error: C compiler cannot create executables
1920 See \`config.log' for more details." >&2;}
1921 { (exit 77); exit 77; }; }
1924 ac_exeext=$ac_cv_exeext
1925 echo "$as_me:$LINENO: result: $ac_file" >&5
1926 echo "${ECHO_T}$ac_file" >&6
1928 # Check the compiler produces executables we can run. If not, either
1929 # the compiler is broken, or we cross compile.
1930 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1931 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1932 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1933 # If not cross compiling, check that we can run a simple program.
1934 if test "$cross_compiling" != yes; then
1935 if { ac_try='./$ac_file'
1936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1940 (exit $ac_status); }; }; then
1943 if test "$cross_compiling" = maybe; then
1946 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1947 If you meant to cross compile, use \`--host'.
1948 See \`config.log' for more details." >&5
1949 echo "$as_me: error: cannot run C compiled programs.
1950 If you meant to cross compile, use \`--host'.
1951 See \`config.log' for more details." >&2;}
1952 { (exit 1); exit 1; }; }
1956 echo "$as_me:$LINENO: result: yes" >&5
1957 echo "${ECHO_T}yes" >&6
1959 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1960 ac_clean_files=$ac_clean_files_save
1961 # Check the compiler produces executables we can run. If not, either
1962 # the compiler is broken, or we cross compile.
1963 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1964 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1965 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1966 echo "${ECHO_T}$cross_compiling" >&6
1968 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1969 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1970 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1971 (eval $ac_link) 2>&5
1973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1974 (exit $ac_status); }; then
1975 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1976 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1977 # work properly (i.e., refer to `conftest.exe'), while it won't with
1979 for ac_file in conftest.exe conftest conftest.*; do
1980 test -f "$ac_file" || continue
1982 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1983 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1990 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1991 See \`config.log' for more details." >&5
1992 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1993 See \`config.log' for more details." >&2;}
1994 { (exit 1); exit 1; }; }
1997 rm -f conftest$ac_cv_exeext
1998 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1999 echo "${ECHO_T}$ac_cv_exeext" >&6
2001 rm -f conftest.$ac_ext
2002 EXEEXT=$ac_cv_exeext
2004 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2005 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2006 if test "${ac_cv_objext+set}" = set; then
2007 echo $ECHO_N "(cached) $ECHO_C" >&6
2009 cat >conftest.$ac_ext <<_ACEOF
2012 cat confdefs.h >>conftest.$ac_ext
2013 cat >>conftest.$ac_ext <<_ACEOF
2014 /* end confdefs.h. */
2024 rm -f conftest.o conftest.obj
2025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2026 (eval $ac_compile) 2>&5
2028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2029 (exit $ac_status); }; then
2030 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2032 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2033 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2038 echo "$as_me: failed program was:" >&5
2039 sed 's/^/| /' conftest.$ac_ext >&5
2041 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2042 See \`config.log' for more details." >&5
2043 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2044 See \`config.log' for more details." >&2;}
2045 { (exit 1); exit 1; }; }
2048 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2050 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2051 echo "${ECHO_T}$ac_cv_objext" >&6
2052 OBJEXT=$ac_cv_objext
2054 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2055 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2056 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2057 echo $ECHO_N "(cached) $ECHO_C" >&6
2059 cat >conftest.$ac_ext <<_ACEOF
2062 cat confdefs.h >>conftest.$ac_ext
2063 cat >>conftest.$ac_ext <<_ACEOF
2064 /* end confdefs.h. */
2077 rm -f conftest.$ac_objext
2078 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2079 (eval $ac_compile) 2>conftest.er1
2081 grep -v '^ *+' conftest.er1 >conftest.err
2083 cat conftest.err >&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); } &&
2086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2091 (exit $ac_status); }; } &&
2092 { ac_try='test -s conftest.$ac_objext'
2093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2097 (exit $ac_status); }; }; then
2100 echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2106 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2109 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2110 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2111 GCC=`test $ac_compiler_gnu = yes && echo yes`
2112 ac_test_CFLAGS=${CFLAGS+set}
2113 ac_save_CFLAGS=$CFLAGS
2115 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2116 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2117 if test "${ac_cv_prog_cc_g+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.$ac_objext
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>conftest.er1
2139 grep -v '^ *+' conftest.er1 >conftest.err
2141 cat conftest.err >&5
2142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143 (exit $ac_status); } &&
2144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149 (exit $ac_status); }; } &&
2150 { ac_try='test -s conftest.$ac_objext'
2151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2155 (exit $ac_status); }; }; then
2158 echo "$as_me: failed program was:" >&5
2159 sed 's/^/| /' conftest.$ac_ext >&5
2163 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2165 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2166 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2167 if test "$ac_test_CFLAGS" = set; then
2168 CFLAGS=$ac_save_CFLAGS
2169 elif test $ac_cv_prog_cc_g = yes; then
2170 if test "$GCC" = yes; then
2176 if test "$GCC" = yes; then
2182 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2183 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2184 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2185 echo $ECHO_N "(cached) $ECHO_C" >&6
2187 ac_cv_prog_cc_stdc=no
2189 cat >conftest.$ac_ext <<_ACEOF
2192 cat confdefs.h >>conftest.$ac_ext
2193 cat >>conftest.$ac_ext <<_ACEOF
2194 /* end confdefs.h. */
2197 #include <sys/types.h>
2198 #include <sys/stat.h>
2199 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2200 struct buf { int x; };
2201 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2202 static char *e (p, i)
2208 static char *f (char * (*g) (char **, int), char **p, ...)
2213 s = g (p, va_arg (v,int));
2218 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2219 function prototypes and stuff, but not '\xHH' hex character constants.
2220 These don't provoke an error unfortunately, instead are silently treated
2221 as 'x'. The following induces an error, until -std1 is added to get
2222 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2223 array size at least. It's necessary to write '\x00'==0 to get something
2224 that's true only with -std1. */
2225 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2227 int test (int i, double x);
2228 struct s1 {int (*f) (int a);};
2229 struct s2 {int (*f) (double a);};
2230 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2236 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2241 # Don't try gcc -ansi; that turns off useful extensions and
2242 # breaks some systems' header files.
2243 # AIX -qlanglvl=ansi
2244 # Ultrix and OSF/1 -std1
2245 # HP-UX 10.20 and later -Ae
2246 # HP-UX older versions -Aa -D_HPUX_SOURCE
2247 # SVR4 -Xc -D__EXTENSIONS__
2248 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2250 CC="$ac_save_CC $ac_arg"
2251 rm -f conftest.$ac_objext
2252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2253 (eval $ac_compile) 2>conftest.er1
2255 grep -v '^ *+' conftest.er1 >conftest.err
2257 cat conftest.err >&5
2258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2259 (exit $ac_status); } &&
2260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; } &&
2266 { ac_try='test -s conftest.$ac_objext'
2267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2271 (exit $ac_status); }; }; then
2272 ac_cv_prog_cc_stdc=$ac_arg
2275 echo "$as_me: failed program was:" >&5
2276 sed 's/^/| /' conftest.$ac_ext >&5
2279 rm -f conftest.err conftest.$ac_objext
2281 rm -f conftest.$ac_ext conftest.$ac_objext
2286 case "x$ac_cv_prog_cc_stdc" in
2288 echo "$as_me:$LINENO: result: none needed" >&5
2289 echo "${ECHO_T}none needed" >&6 ;;
2291 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2292 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2293 CC="$CC $ac_cv_prog_cc_stdc" ;;
2296 # Some people use a C++ compiler to compile C. Since we use `exit',
2297 # in C++ we need to declare it. In case someone uses the same compiler
2298 # for both compiling C and C++ we need to have the C++ compiler decide
2299 # the declaration of exit, since it's the most demanding environment.
2300 cat >conftest.$ac_ext <<_ACEOF
2305 rm -f conftest.$ac_objext
2306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2307 (eval $ac_compile) 2>conftest.er1
2309 grep -v '^ *+' conftest.er1 >conftest.err
2311 cat conftest.err >&5
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); } &&
2314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; } &&
2320 { ac_try='test -s conftest.$ac_objext'
2321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325 (exit $ac_status); }; }; then
2326 for ac_declaration in \
2328 'extern "C" void std::exit (int) throw (); using std::exit;' \
2329 'extern "C" void std::exit (int); using std::exit;' \
2330 'extern "C" void exit (int) throw ();' \
2331 'extern "C" void exit (int);' \
2334 cat >conftest.$ac_ext <<_ACEOF
2337 cat confdefs.h >>conftest.$ac_ext
2338 cat >>conftest.$ac_ext <<_ACEOF
2339 /* end confdefs.h. */
2350 rm -f conftest.$ac_objext
2351 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2352 (eval $ac_compile) 2>conftest.er1
2354 grep -v '^ *+' conftest.er1 >conftest.err
2356 cat conftest.err >&5
2357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2358 (exit $ac_status); } &&
2359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2364 (exit $ac_status); }; } &&
2365 { ac_try='test -s conftest.$ac_objext'
2366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2370 (exit $ac_status); }; }; then
2373 echo "$as_me: failed program was:" >&5
2374 sed 's/^/| /' conftest.$ac_ext >&5
2378 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2379 cat >conftest.$ac_ext <<_ACEOF
2382 cat confdefs.h >>conftest.$ac_ext
2383 cat >>conftest.$ac_ext <<_ACEOF
2384 /* end confdefs.h. */
2394 rm -f conftest.$ac_objext
2395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2396 (eval $ac_compile) 2>conftest.er1
2398 grep -v '^ *+' conftest.er1 >conftest.err
2400 cat conftest.err >&5
2401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2402 (exit $ac_status); } &&
2403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; } &&
2409 { ac_try='test -s conftest.$ac_objext'
2410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2414 (exit $ac_status); }; }; then
2417 echo "$as_me: failed program was:" >&5
2418 sed 's/^/| /' conftest.$ac_ext >&5
2421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2424 if test -n "$ac_declaration"; then
2425 echo '#ifdef __cplusplus' >>confdefs.h
2426 echo $ac_declaration >>confdefs.h
2427 echo '#endif' >>confdefs.h
2431 echo "$as_me: failed program was:" >&5
2432 sed 's/^/| /' conftest.$ac_ext >&5
2435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
2448 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2449 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2450 # On Suns, sometimes $CPP names a directory.
2451 if test -n "$CPP" && test -d "$CPP"; then
2454 if test -z "$CPP"; then
2455 if test "${ac_cv_prog_CPP+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 # Double quotes because CPP needs to be expanded
2459 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2462 for ac_c_preproc_warn_flag in '' yes
2464 # Use a header file that comes with gcc, so configuring glibc
2465 # with a fresh cross-compiler works.
2466 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2467 # <limits.h> exists even on freestanding compilers.
2468 # On the NeXT, cc -E runs the code through the compiler's parser,
2469 # not just through cpp. "Syntax error" is here to catch this case.
2470 cat >conftest.$ac_ext <<_ACEOF
2473 cat confdefs.h >>conftest.$ac_ext
2474 cat >>conftest.$ac_ext <<_ACEOF
2475 /* end confdefs.h. */
2477 # include <limits.h>
2479 # include <assert.h>
2483 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2484 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2486 grep -v '^ *+' conftest.er1 >conftest.err
2488 cat conftest.err >&5
2489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490 (exit $ac_status); } >/dev/null; then
2491 if test -s conftest.err; then
2492 ac_cpp_err=$ac_c_preproc_warn_flag
2493 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2500 if test -z "$ac_cpp_err"; then
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2506 # Broken: fails on valid input.
2509 rm -f conftest.err conftest.$ac_ext
2511 # OK, works on sane cases. Now check whether non-existent headers
2512 # can be detected and how.
2513 cat >conftest.$ac_ext <<_ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h. */
2519 #include <ac_nonexistent.h>
2521 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2522 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2524 grep -v '^ *+' conftest.er1 >conftest.err
2526 cat conftest.err >&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); } >/dev/null; then
2529 if test -s conftest.err; then
2530 ac_cpp_err=$ac_c_preproc_warn_flag
2531 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2538 if test -z "$ac_cpp_err"; then
2539 # Broken: success on invalid input.
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 # Passes both tests.
2549 rm -f conftest.err conftest.$ac_ext
2552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2553 rm -f conftest.err conftest.$ac_ext
2554 if $ac_preproc_ok; then
2566 echo "$as_me:$LINENO: result: $CPP" >&5
2567 echo "${ECHO_T}$CPP" >&6
2569 for ac_c_preproc_warn_flag in '' yes
2571 # Use a header file that comes with gcc, so configuring glibc
2572 # with a fresh cross-compiler works.
2573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2574 # <limits.h> exists even on freestanding compilers.
2575 # On the NeXT, cc -E runs the code through the compiler's parser,
2576 # not just through cpp. "Syntax error" is here to catch this case.
2577 cat >conftest.$ac_ext <<_ACEOF
2580 cat confdefs.h >>conftest.$ac_ext
2581 cat >>conftest.$ac_ext <<_ACEOF
2582 /* end confdefs.h. */
2584 # include <limits.h>
2586 # include <assert.h>
2590 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2591 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2593 grep -v '^ *+' conftest.er1 >conftest.err
2595 cat conftest.err >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); } >/dev/null; then
2598 if test -s conftest.err; then
2599 ac_cpp_err=$ac_c_preproc_warn_flag
2600 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2607 if test -z "$ac_cpp_err"; then
2610 echo "$as_me: failed program was:" >&5
2611 sed 's/^/| /' conftest.$ac_ext >&5
2613 # Broken: fails on valid input.
2616 rm -f conftest.err conftest.$ac_ext
2618 # OK, works on sane cases. Now check whether non-existent headers
2619 # can be detected and how.
2620 cat >conftest.$ac_ext <<_ACEOF
2623 cat confdefs.h >>conftest.$ac_ext
2624 cat >>conftest.$ac_ext <<_ACEOF
2625 /* end confdefs.h. */
2626 #include <ac_nonexistent.h>
2628 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2629 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2631 grep -v '^ *+' conftest.er1 >conftest.err
2633 cat conftest.err >&5
2634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2635 (exit $ac_status); } >/dev/null; then
2636 if test -s conftest.err; then
2637 ac_cpp_err=$ac_c_preproc_warn_flag
2638 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2645 if test -z "$ac_cpp_err"; then
2646 # Broken: success on invalid input.
2649 echo "$as_me: failed program was:" >&5
2650 sed 's/^/| /' conftest.$ac_ext >&5
2652 # Passes both tests.
2656 rm -f conftest.err conftest.$ac_ext
2659 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2660 rm -f conftest.err conftest.$ac_ext
2661 if $ac_preproc_ok; then
2664 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2665 See \`config.log' for more details." >&5
2666 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&2;}
2668 { (exit 1); exit 1; }; }
2672 ac_cpp='$CPP $CPPFLAGS'
2673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2678 echo "$as_me:$LINENO: checking for egrep" >&5
2679 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2680 if test "${ac_cv_prog_egrep+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2684 then ac_cv_prog_egrep='grep -E'
2685 else ac_cv_prog_egrep='egrep'
2688 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2689 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2690 EGREP=$ac_cv_prog_egrep
2693 if test $ac_cv_c_compiler_gnu = yes; then
2694 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2695 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2696 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2697 echo $ECHO_N "(cached) $ECHO_C" >&6
2699 ac_pattern="Autoconf.*'x'"
2700 cat >conftest.$ac_ext <<_ACEOF
2703 cat confdefs.h >>conftest.$ac_ext
2704 cat >>conftest.$ac_ext <<_ACEOF
2705 /* end confdefs.h. */
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2711 ac_cv_prog_gcc_traditional=yes
2713 ac_cv_prog_gcc_traditional=no
2718 if test $ac_cv_prog_gcc_traditional = no; then
2719 cat >conftest.$ac_ext <<_ACEOF
2722 cat confdefs.h >>conftest.$ac_ext
2723 cat >>conftest.$ac_ext <<_ACEOF
2724 /* end confdefs.h. */
2728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2729 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2730 ac_cv_prog_gcc_traditional=yes
2736 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2737 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2738 if test $ac_cv_prog_gcc_traditional = yes; then
2739 CC="$CC -traditional"
2743 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2744 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2745 if test "${ac_cv_prog_suncc+set}" = set; then
2746 echo $ECHO_N "(cached) $ECHO_C" >&6
2748 cat > conftest.c <<EOF
2753 if { ac_try='${CC-cc} -E conftest.c'
2754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2759 ac_cv_prog_suncc=yes
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2765 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2766 if test -n "$ac_tool_prefix"; then
2767 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2768 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2769 echo "$as_me:$LINENO: checking for $ac_word" >&5
2770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2771 if test "${ac_cv_prog_RANLIB+set}" = set; then
2772 echo $ECHO_N "(cached) $ECHO_C" >&6
2774 if test -n "$RANLIB"; then
2775 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2781 test -z "$as_dir" && as_dir=.
2782 for ac_exec_ext in '' $ac_executable_extensions; do
2783 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2784 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 RANLIB=$ac_cv_prog_RANLIB
2794 if test -n "$RANLIB"; then
2795 echo "$as_me:$LINENO: result: $RANLIB" >&5
2796 echo "${ECHO_T}$RANLIB" >&6
2798 echo "$as_me:$LINENO: result: no" >&5
2799 echo "${ECHO_T}no" >&6
2803 if test -z "$ac_cv_prog_RANLIB"; then
2804 ac_ct_RANLIB=$RANLIB
2805 # Extract the first word of "ranlib", so it can be a program name with args.
2806 set dummy 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_ac_ct_RANLIB+set}" = set; then
2810 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 if test -n "$ac_ct_RANLIB"; then
2813 ac_cv_prog_ac_ct_RANLIB="$ac_ct_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_ac_ct_RANLIB="ranlib"
2823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2829 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2832 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2833 if test -n "$ac_ct_RANLIB"; then
2834 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2835 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2837 echo "$as_me:$LINENO: result: no" >&5
2838 echo "${ECHO_T}no" >&6
2841 RANLIB=$ac_ct_RANLIB
2843 RANLIB="$ac_cv_prog_RANLIB"
2847 abs_top_builddir=`pwd`
2854 echo "$as_me:$LINENO: checking for AIX" >&5
2855 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2856 cat >conftest.$ac_ext <<_ACEOF
2859 cat confdefs.h >>conftest.$ac_ext
2860 cat >>conftest.$ac_ext <<_ACEOF
2861 /* end confdefs.h. */
2867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2868 $EGREP "yes" >/dev/null 2>&1; then
2869 echo "$as_me:$LINENO: result: yes" >&5
2870 echo "${ECHO_T}yes" >&6
2871 cat >>confdefs.h <<\_ACEOF
2872 #define _ALL_SOURCE 1
2876 echo "$as_me:$LINENO: result: no" >&5
2877 echo "${ECHO_T}no" >&6
2883 # Extract the first word of "gmake", so it can be a program name with args.
2884 set dummy gmake; ac_word=$2
2885 echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2887 if test "${ac_cv_prog_GMAKE+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$GMAKE"; then
2891 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
2893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir=.
2898 for ac_exec_ext in '' $ac_executable_extensions; do
2899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900 ac_cv_prog_GMAKE="yes"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2907 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
2910 GMAKE=$ac_cv_prog_GMAKE
2911 if test -n "$GMAKE"; then
2912 echo "$as_me:$LINENO: result: $GMAKE" >&5
2913 echo "${ECHO_T}$GMAKE" >&6
2915 echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6
2919 if test $GMAKE = no; then
2920 # Extract the first word of "make", so it can be a program name with args.
2921 set dummy make; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_path_MAKE+set}" = set; then
2925 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir=.
2937 for ac_exec_ext in '' $ac_executable_extensions; do
2938 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2939 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2946 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
2950 MAKE=$ac_cv_path_MAKE
2952 if test -n "$MAKE"; then
2953 echo "$as_me:$LINENO: result: $MAKE" >&5
2954 echo "${ECHO_T}$MAKE" >&6
2956 echo "$as_me:$LINENO: result: no" >&5
2957 echo "${ECHO_T}no" >&6
2961 # Extract the first word of "gmake", so it can be a program name with args.
2962 set dummy gmake; ac_word=$2
2963 echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2965 if test "${ac_cv_path_MAKE+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2980 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2987 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
2991 MAKE=$ac_cv_path_MAKE
2993 if test -n "$MAKE"; then
2994 echo "$as_me:$LINENO: result: $MAKE" >&5
2995 echo "${ECHO_T}$MAKE" >&6
2997 echo "$as_me:$LINENO: result: no" >&5
2998 echo "${ECHO_T}no" >&6
3002 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3003 if test -z "$makever"; then
3004 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3005 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3006 echo "$as_me: error: GNU Make is not installed. Please download and install it
3007 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3008 { (exit 1); exit 1; }; }
3011 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3012 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3013 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3014 echo $ECHO_N "(cached) $ECHO_C" >&6
3016 ac_check_lib_save_LIBS=$LIBS
3018 cat >conftest.$ac_ext <<_ACEOF
3021 cat confdefs.h >>conftest.$ac_ext
3022 cat >>conftest.$ac_ext <<_ACEOF
3023 /* end confdefs.h. */
3025 /* Override any gcc2 internal prototype to avoid an error. */
3029 /* We use char because int might match the return type of a gcc2
3030 builtin and then its argument prototype would still apply. */
3040 rm -f conftest.$ac_objext conftest$ac_exeext
3041 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3042 (eval $ac_link) 2>conftest.er1
3044 grep -v '^ *+' conftest.er1 >conftest.err
3046 cat conftest.err >&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); } &&
3049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; } &&
3055 { ac_try='test -s conftest$ac_exeext'
3056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 ac_cv_lib_ltdl_lt_dlinit=yes
3063 echo "$as_me: failed program was:" >&5
3064 sed 's/^/| /' conftest.$ac_ext >&5
3066 ac_cv_lib_ltdl_lt_dlinit=no
3068 rm -f conftest.err conftest.$ac_objext \
3069 conftest$ac_exeext conftest.$ac_ext
3070 LIBS=$ac_check_lib_save_LIBS
3072 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3073 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3074 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3075 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3077 if test x"$enable_ltdl_install" = xno; then
3078 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3079 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3081 enable_ltdl_install=yes
3086 if test x"$enable_ltdl_install" = x"yes"; then
3087 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3088 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3089 LTDLINCL='-I${top_srcdir}/''libltdl'
3091 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3095 # For backwards non-gettext consistent compatibility...
3099 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3100 if test -f $ac_dir/install-sh; then
3102 ac_install_sh="$ac_aux_dir/install-sh -c"
3104 elif test -f $ac_dir/install.sh; then
3106 ac_install_sh="$ac_aux_dir/install.sh -c"
3108 elif test -f $ac_dir/shtool; then
3110 ac_install_sh="$ac_aux_dir/shtool install -c"
3114 if test -z "$ac_aux_dir"; then
3115 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3116 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3117 { (exit 1); exit 1; }; }
3119 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3120 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3121 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3125 if test x"$enable_ltdl_install" = x"yes"; then
3128 subdirs="$subdirs 'libltdl'"
3135 # Check whether --enable-shared or --disable-shared was given.
3136 if test "${enable_shared+set}" = set; then
3137 enableval="$enable_shared"
3138 p=${PACKAGE-default}
3140 yes) enable_shared=yes ;;
3141 no) enable_shared=no ;;
3144 # Look at the argument we got. We use all the common list separators.
3145 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3146 for pkg in $enableval; do
3148 if test "X$pkg" = "X$p"; then
3159 # Check whether --enable-static or --disable-static was given.
3160 if test "${enable_static+set}" = set; then
3161 enableval="$enable_static"
3162 p=${PACKAGE-default}
3164 yes) enable_static=yes ;;
3165 no) enable_static=no ;;
3168 # Look at the argument we got. We use all the common list separators.
3169 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3170 for pkg in $enableval; do
3172 if test "X$pkg" = "X$p"; then
3183 # Check whether --enable-fast-install or --disable-fast-install was given.
3184 if test "${enable_fast_install+set}" = set; then
3185 enableval="$enable_fast_install"
3186 p=${PACKAGE-default}
3188 yes) enable_fast_install=yes ;;
3189 no) enable_fast_install=no ;;
3191 enable_fast_install=no
3192 # Look at the argument we got. We use all the common list separators.
3193 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3194 for pkg in $enableval; do
3196 if test "X$pkg" = "X$p"; then
3197 enable_fast_install=yes
3204 enable_fast_install=yes
3207 # Make sure we can run config.sub.
3208 $ac_config_sub sun4 >/dev/null 2>&1 ||
3209 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3210 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3211 { (exit 1); exit 1; }; }
3213 echo "$as_me:$LINENO: checking build system type" >&5
3214 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3215 if test "${ac_cv_build+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 ac_cv_build_alias=$build_alias
3219 test -z "$ac_cv_build_alias" &&
3220 ac_cv_build_alias=`$ac_config_guess`
3221 test -z "$ac_cv_build_alias" &&
3222 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3223 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3224 { (exit 1); exit 1; }; }
3225 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3226 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3227 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3228 { (exit 1); exit 1; }; }
3231 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3232 echo "${ECHO_T}$ac_cv_build" >&6
3234 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3235 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3236 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3239 echo "$as_me:$LINENO: checking host system type" >&5
3240 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3241 if test "${ac_cv_host+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 ac_cv_host_alias=$host_alias
3245 test -z "$ac_cv_host_alias" &&
3246 ac_cv_host_alias=$ac_cv_build_alias
3247 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3248 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3249 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3250 { (exit 1); exit 1; }; }
3253 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3254 echo "${ECHO_T}$ac_cv_host" >&6
3256 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3257 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3258 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3261 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3262 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3263 if test "${lt_cv_path_SED+set}" = set; then
3264 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 # Loop through the user's path and test for sed and gsed.
3267 # Then use that list of sed's as ones to test for truncation.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for lt_ac_prog in sed gsed; do
3274 for ac_exec_ext in '' $ac_executable_extensions; do
3275 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3276 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3283 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3284 # along with /bin/sed that truncates output.
3285 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3286 test ! -f $lt_ac_sed && break
3287 cat /dev/null > conftest.in
3289 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3290 # Check for GNU sed and select it if it is found.
3291 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3292 lt_cv_path_SED=$lt_ac_sed
3296 cat conftest.in conftest.in >conftest.tmp
3297 mv conftest.tmp conftest.in
3298 cp conftest.in conftest.nl
3300 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3301 cmp -s conftest.out conftest.nl || break
3302 # 10000 chars as input seems more than enough
3303 test $lt_ac_count -gt 10 && break
3304 lt_ac_count=`expr $lt_ac_count + 1`
3305 if test $lt_ac_count -gt $lt_ac_max; then
3306 lt_ac_max=$lt_ac_count
3307 lt_cv_path_SED=$lt_ac_sed
3315 echo "$as_me:$LINENO: result: $SED" >&5
3316 echo "${ECHO_T}$SED" >&6
3319 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3320 if test "${with_gnu_ld+set}" = set; then
3321 withval="$with_gnu_ld"
3322 test "$withval" = no || with_gnu_ld=yes
3327 if test "$GCC" = yes; then
3328 # Check if gcc -print-prog-name=ld gives a path.
3329 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3330 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3333 # gcc leaves a trailing carriage return which upsets mingw
3334 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3336 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3339 # Accept absolute paths.
3341 re_direlt='/[^/][^/]*/\.\./'
3342 # Canonicalize the pathname of ld
3343 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3344 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3345 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3347 test -z "$LD" && LD="$ac_prog"
3350 # If it fails, then pretend we aren't using GCC.
3354 # If it is relative, then search for the first ld in PATH.
3358 elif test "$with_gnu_ld" = yes; then
3359 echo "$as_me:$LINENO: checking for GNU ld" >&5
3360 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3362 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3363 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3365 if test "${lt_cv_path_LD+set}" = set; then
3366 echo $ECHO_N "(cached) $ECHO_C" >&6
3368 if test -z "$LD"; then
3369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3370 for ac_dir in $PATH; do
3372 test -z "$ac_dir" && ac_dir=.
3373 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3374 lt_cv_path_LD="$ac_dir/$ac_prog"
3375 # Check to see if the program is GNU ld. I'd rather use --version,
3376 # but apparently some GNU ld's only accept -v.
3377 # Break only if it was the GNU/non-GNU ld that we prefer.
3378 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3379 *GNU* | *'with BFD'*)
3380 test "$with_gnu_ld" != no && break
3383 test "$with_gnu_ld" != yes && break
3390 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3395 if test -n "$LD"; then
3396 echo "$as_me:$LINENO: result: $LD" >&5
3397 echo "${ECHO_T}$LD" >&6
3399 echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6
3402 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3403 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3404 { (exit 1); exit 1; }; }
3405 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3406 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3407 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3411 case `$LD -v 2>&1 </dev/null` in
3412 *GNU* | *'with BFD'*)
3413 lt_cv_prog_gnu_ld=yes
3416 lt_cv_prog_gnu_ld=no
3420 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3421 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3422 with_gnu_ld=$lt_cv_prog_gnu_ld
3425 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3426 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3427 if test "${lt_cv_ld_reload_flag+set}" = set; then
3428 echo $ECHO_N "(cached) $ECHO_C" >&6
3430 lt_cv_ld_reload_flag='-r'
3432 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3433 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3434 reload_flag=$lt_cv_ld_reload_flag
3435 case $reload_flag in
3437 *) reload_flag=" $reload_flag" ;;
3439 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3441 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3442 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3443 if test "${lt_cv_path_NM+set}" = set; then
3444 echo $ECHO_N "(cached) $ECHO_C" >&6
3446 if test -n "$NM"; then
3447 # Let the user override the test.
3450 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3451 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3453 test -z "$ac_dir" && ac_dir=.
3454 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3455 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3456 # Check to see if the nm accepts a BSD-compat flag.
3457 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3458 # nm: unknown option "B" ignored
3459 # Tru64's nm complains that /dev/null is an invalid object file
3460 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3461 */dev/null* | *'Invalid file or object type'*)
3462 lt_cv_path_NM="$tmp_nm -B"
3466 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3468 lt_cv_path_NM="$tmp_nm -p"
3472 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3473 continue # so that we can try to find one that supports BSD flags
3480 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3483 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3484 echo "${ECHO_T}$lt_cv_path_NM" >&6
3487 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3488 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3490 if test "$LN_S" = "ln -s"; then
3491 echo "$as_me:$LINENO: result: yes" >&5
3492 echo "${ECHO_T}yes" >&6
3494 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3495 echo "${ECHO_T}no, using $LN_S" >&6
3498 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3499 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3500 if test "${lt_cv_deplibs_check_method+set}" = set; then
3501 echo $ECHO_N "(cached) $ECHO_C" >&6
3503 lt_cv_file_magic_cmd='$MAGIC_CMD'
3504 lt_cv_file_magic_test_file=
3505 lt_cv_deplibs_check_method='unknown'
3506 # Need to set the preceding variable on all platforms that support
3507 # interlibrary dependencies.
3508 # 'none' -- dependencies not supported.
3509 # `unknown' -- same as none, but documents that we really don't know.
3510 # 'pass_all' -- all dependencies passed with no checks.
3511 # 'test_compile' -- check by making test program.
3512 # 'file_magic [[regex]]' -- check by looking for files in library path
3513 # which responds to the $file_magic_cmd with a given extended regex.
3514 # If you have `file' or equivalent on your system and you're not sure
3515 # whether `pass_all' will *always* work, you probably want this one.
3519 lt_cv_deplibs_check_method=pass_all
3523 lt_cv_deplibs_check_method=pass_all
3527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3528 lt_cv_file_magic_cmd='/usr/bin/file -L'
3529 lt_cv_file_magic_test_file=/shlib/libc.so
3533 # func_win32_libid is a shell function defined in ltmain.sh
3534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3535 lt_cv_file_magic_cmd='func_win32_libid'
3539 # Base MSYS/MinGW do not provide the 'file' command needed by
3540 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3541 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3542 lt_cv_file_magic_cmd='$OBJDUMP -f'
3545 darwin* | rhapsody*)
3546 lt_cv_deplibs_check_method=pass_all
3549 freebsd* | kfreebsd*-gnu)
3550 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3553 # Not sure whether the presence of OpenBSD here was a mistake.
3554 # Let's accept both of them until this is cleared up.
3555 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3556 lt_cv_file_magic_cmd=/usr/bin/file
3557 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3561 lt_cv_deplibs_check_method=pass_all
3566 lt_cv_deplibs_check_method=pass_all
3569 hpux10.20* | hpux11*)
3570 lt_cv_file_magic_cmd=/usr/bin/file
3573 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3574 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3577 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]'
3578 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3581 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3582 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3587 irix5* | irix6* | nonstopux*)
3589 *-32|*"-32 ") libmagic=32-bit;;
3590 *-n32|*"-n32 ") libmagic=N32;;
3591 *-64|*"-64 ") libmagic=64-bit;;
3592 *) libmagic=never-match;;
3594 lt_cv_deplibs_check_method=pass_all
3597 # This must be Linux ELF.
3599 lt_cv_deplibs_check_method=pass_all
3602 netbsd* | knetbsd*-gnu)
3603 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3604 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3606 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3611 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3612 lt_cv_file_magic_cmd=/usr/bin/file
3613 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3617 lt_cv_deplibs_check_method=unknown
3621 lt_cv_file_magic_cmd=/usr/bin/file
3622 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3623 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3624 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3626 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3630 osf3* | osf4* | osf5*)
3631 lt_cv_deplibs_check_method=pass_all
3635 lt_cv_deplibs_check_method=pass_all
3639 lt_cv_deplibs_check_method=pass_all
3642 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3643 case $host_vendor in
3645 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]'
3646 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3649 lt_cv_deplibs_check_method=pass_all
3652 lt_cv_file_magic_cmd='/bin/file'
3653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3656 lt_cv_file_magic_cmd='/bin/file'
3657 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3658 lt_cv_file_magic_test_file=/lib/libc.so
3661 lt_cv_deplibs_check_method=pass_all
3666 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3667 lt_cv_deplibs_check_method=pass_all
3672 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3673 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3674 file_magic_cmd=$lt_cv_file_magic_cmd
3675 deplibs_check_method=$lt_cv_deplibs_check_method
3676 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3681 # If no C compiler was specified, use CC.
3684 # Allow CC to be a program name with arguments.
3687 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3688 if test "${enable_libtool_lock+set}" = set; then
3689 enableval="$enable_libtool_lock"
3692 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3694 # Some flags need to be propagated to the compiler or linker for good
3698 # Find out which ABI we are using.
3699 echo 'int i;' > conftest.$ac_ext
3700 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3701 (eval $ac_compile) 2>&5
3703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3704 (exit $ac_status); }; then
3705 case `/usr/bin/file conftest.$ac_objext` in
3717 # Find out which ABI we are using.
3718 echo '#line 3718 "configure"' > conftest.$ac_ext
3719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3720 (eval $ac_compile) 2>&5
3722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723 (exit $ac_status); }; then
3724 if test "$lt_cv_prog_gnu_ld" = yes; then
3725 case `/usr/bin/file conftest.$ac_objext` in
3727 LD="${LD-ld} -melf32bsmip"
3730 LD="${LD-ld} -melf32bmipn32"
3733 LD="${LD-ld} -melf64bmip"
3737 case `/usr/bin/file conftest.$ac_objext` in
3753 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3754 # Find out which ABI we are using.
3755 echo 'int i;' > conftest.$ac_ext
3756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3757 (eval $ac_compile) 2>&5
3759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); }; then
3761 case "`/usr/bin/file conftest.o`" in
3765 LD="${LD-ld} -m elf_i386"
3767 ppc64-*linux*|powerpc64-*linux*)
3768 LD="${LD-ld} -m elf32ppclinux"
3771 LD="${LD-ld} -m elf_s390"
3774 LD="${LD-ld} -m elf32_sparc"
3781 LD="${LD-ld} -m elf_x86_64"
3783 ppc*-*linux*|powerpc*-*linux*)
3784 LD="${LD-ld} -m elf64ppc"
3787 LD="${LD-ld} -m elf64_s390"
3790 LD="${LD-ld} -m elf64_sparc"
3800 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3801 SAVE_CFLAGS="$CFLAGS"
3802 CFLAGS="$CFLAGS -belf"
3803 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3804 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3805 if test "${lt_cv_cc_needs_belf+set}" = set; then
3806 echo $ECHO_N "(cached) $ECHO_C" >&6
3809 ac_cpp='$CPP $CPPFLAGS'
3810 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3811 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3812 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 cat >conftest.$ac_ext <<_ACEOF
3817 cat confdefs.h >>conftest.$ac_ext
3818 cat >>conftest.$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3831 (eval $ac_link) 2>conftest.er1
3833 grep -v '^ *+' conftest.er1 >conftest.err
3835 cat conftest.err >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); } &&
3838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest$ac_exeext'
3845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; }; then
3850 lt_cv_cc_needs_belf=yes
3852 echo "$as_me: failed program was:" >&5
3853 sed 's/^/| /' conftest.$ac_ext >&5
3855 lt_cv_cc_needs_belf=no
3857 rm -f conftest.err conftest.$ac_objext \
3858 conftest$ac_exeext conftest.$ac_ext
3860 ac_cpp='$CPP $CPPFLAGS'
3861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3866 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3867 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3868 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3869 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3870 CFLAGS="$SAVE_CFLAGS"
3876 need_locks="$enable_libtool_lock"
3879 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3880 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3881 if test "${ac_cv_header_stdc+set}" = set; then
3882 echo $ECHO_N "(cached) $ECHO_C" >&6
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3903 rm -f conftest.$ac_objext
3904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3905 (eval $ac_compile) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } &&
3912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917 (exit $ac_status); }; } &&
3918 { ac_try='test -s conftest.$ac_objext'
3919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3923 (exit $ac_status); }; }; then
3924 ac_cv_header_stdc=yes
3926 echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3929 ac_cv_header_stdc=no
3931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3933 if test $ac_cv_header_stdc = yes; then
3934 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3935 cat >conftest.$ac_ext <<_ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3944 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3945 $EGREP "memchr" >/dev/null 2>&1; then
3948 ac_cv_header_stdc=no
3954 if test $ac_cv_header_stdc = yes; then
3955 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3956 cat >conftest.$ac_ext <<_ACEOF
3959 cat confdefs.h >>conftest.$ac_ext
3960 cat >>conftest.$ac_ext <<_ACEOF
3961 /* end confdefs.h. */
3965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3966 $EGREP "free" >/dev/null 2>&1; then
3969 ac_cv_header_stdc=no
3975 if test $ac_cv_header_stdc = yes; then
3976 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3977 if test "$cross_compiling" = yes; then
3980 cat >conftest.$ac_ext <<_ACEOF
3983 cat confdefs.h >>conftest.$ac_ext
3984 cat >>conftest.$ac_ext <<_ACEOF
3985 /* end confdefs.h. */
3987 #if ((' ' & 0x0FF) == 0x020)
3988 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3989 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3991 # define ISLOWER(c) \
3992 (('a' <= (c) && (c) <= 'i') \
3993 || ('j' <= (c) && (c) <= 'r') \
3994 || ('s' <= (c) && (c) <= 'z'))
3995 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3998 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4003 for (i = 0; i < 256; i++)
4004 if (XOR (islower (i), ISLOWER (i))
4005 || toupper (i) != TOUPPER (i))
4010 rm -f conftest$ac_exeext
4011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4012 (eval $ac_link) 2>&5
4014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4020 (exit $ac_status); }; }; then
4023 echo "$as_me: program exited with status $ac_status" >&5
4024 echo "$as_me: failed program was:" >&5
4025 sed 's/^/| /' conftest.$ac_ext >&5
4028 ac_cv_header_stdc=no
4030 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4034 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4035 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4036 if test $ac_cv_header_stdc = yes; then
4038 cat >>confdefs.h <<\_ACEOF
4039 #define STDC_HEADERS 1
4044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4054 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4055 inttypes.h stdint.h unistd.h
4057 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4058 echo "$as_me:$LINENO: checking for $ac_header" >&5
4059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4061 echo $ECHO_N "(cached) $ECHO_C" >&6
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4069 $ac_includes_default
4071 #include <$ac_header>
4073 rm -f conftest.$ac_objext
4074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4075 (eval $ac_compile) 2>conftest.er1
4077 grep -v '^ *+' conftest.er1 >conftest.err
4079 cat conftest.err >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); } &&
4082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); }; } &&
4088 { ac_try='test -s conftest.$ac_objext'
4089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); }; }; then
4094 eval "$as_ac_Header=yes"
4096 echo "$as_me: failed program was:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 eval "$as_ac_Header=no"
4101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4105 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4106 cat >>confdefs.h <<_ACEOF
4107 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4116 for ac_header in dlfcn.h
4118 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4119 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4120 echo "$as_me:$LINENO: checking for $ac_header" >&5
4121 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4122 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4123 echo $ECHO_N "(cached) $ECHO_C" >&6
4125 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4126 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4128 # Is the header compilable?
4129 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4131 cat >conftest.$ac_ext <<_ACEOF
4134 cat confdefs.h >>conftest.$ac_ext
4135 cat >>conftest.$ac_ext <<_ACEOF
4136 /* end confdefs.h. */
4137 $ac_includes_default
4138 #include <$ac_header>
4140 rm -f conftest.$ac_objext
4141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4142 (eval $ac_compile) 2>conftest.er1
4144 grep -v '^ *+' conftest.er1 >conftest.err
4146 cat conftest.err >&5
4147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4148 (exit $ac_status); } &&
4149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4160 (exit $ac_status); }; }; then
4161 ac_header_compiler=yes
4163 echo "$as_me: failed program was:" >&5
4164 sed 's/^/| /' conftest.$ac_ext >&5
4166 ac_header_compiler=no
4168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4169 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4170 echo "${ECHO_T}$ac_header_compiler" >&6
4172 # Is the header present?
4173 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4175 cat >conftest.$ac_ext <<_ACEOF
4178 cat confdefs.h >>conftest.$ac_ext
4179 cat >>conftest.$ac_ext <<_ACEOF
4180 /* end confdefs.h. */
4181 #include <$ac_header>
4183 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4184 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } >/dev/null; then
4191 if test -s conftest.err; then
4192 ac_cpp_err=$ac_c_preproc_warn_flag
4193 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4200 if test -z "$ac_cpp_err"; then
4201 ac_header_preproc=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.$ac_ext >&5
4206 ac_header_preproc=no
4208 rm -f conftest.err conftest.$ac_ext
4209 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4210 echo "${ECHO_T}$ac_header_preproc" >&6
4212 # So? What about this header?
4213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4215 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4216 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4218 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4219 ac_header_preproc=yes
4222 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4223 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4224 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4225 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4226 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4227 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4228 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4229 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4230 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4231 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4232 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4233 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4236 ## ------------------------------------------ ##
4237 ## Report this to the AC_PACKAGE_NAME lists. ##
4238 ## ------------------------------------------ ##
4241 sed "s/^/$as_me: WARNING: /" >&2
4244 echo "$as_me:$LINENO: checking for $ac_header" >&5
4245 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4246 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4247 echo $ECHO_N "(cached) $ECHO_C" >&6
4249 eval "$as_ac_Header=\$ac_header_preproc"
4251 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4252 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4256 cat >>confdefs.h <<_ACEOF
4257 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4265 ac_cpp='$CXXCPP $CPPFLAGS'
4266 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4267 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4268 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4269 if test -n "$ac_tool_prefix"; then
4270 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4272 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4273 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4274 echo "$as_me:$LINENO: checking for $ac_word" >&5
4275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4276 if test "${ac_cv_prog_CXX+set}" = set; then
4277 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 if test -n "$CXX"; then
4280 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286 test -z "$as_dir" && as_dir=.
4287 for ac_exec_ext in '' $ac_executable_extensions; do
4288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4289 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4299 if test -n "$CXX"; then
4300 echo "$as_me:$LINENO: result: $CXX" >&5
4301 echo "${ECHO_T}$CXX" >&6
4303 echo "$as_me:$LINENO: result: no" >&5
4304 echo "${ECHO_T}no" >&6
4307 test -n "$CXX" && break
4310 if test -z "$CXX"; then
4312 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4314 # Extract the first word of "$ac_prog", so it can be a program name with args.
4315 set dummy $ac_prog; ac_word=$2
4316 echo "$as_me:$LINENO: checking for $ac_word" >&5
4317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4319 echo $ECHO_N "(cached) $ECHO_C" >&6
4321 if test -n "$ac_ct_CXX"; then
4322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4328 test -z "$as_dir" && as_dir=.
4329 for ac_exec_ext in '' $ac_executable_extensions; do
4330 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4331 ac_cv_prog_ac_ct_CXX="$ac_prog"
4332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4341 if test -n "$ac_ct_CXX"; then
4342 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4343 echo "${ECHO_T}$ac_ct_CXX" >&6
4345 echo "$as_me:$LINENO: result: no" >&5
4346 echo "${ECHO_T}no" >&6
4349 test -n "$ac_ct_CXX" && break
4351 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4357 # Provide some information about the compiler.
4358 echo "$as_me:$LINENO:" \
4359 "checking for C++ compiler version" >&5
4360 ac_compiler=`set X $ac_compile; echo $2`
4361 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4362 (eval $ac_compiler --version </dev/null >&5) 2>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); }
4366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4367 (eval $ac_compiler -v </dev/null >&5) 2>&5
4369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4370 (exit $ac_status); }
4371 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4372 (eval $ac_compiler -V </dev/null >&5) 2>&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); }
4377 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4378 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4379 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 cat >conftest.$ac_ext <<_ACEOF
4385 cat confdefs.h >>conftest.$ac_ext
4386 cat >>conftest.$ac_ext <<_ACEOF
4387 /* end confdefs.h. */
4400 rm -f conftest.$ac_objext
4401 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4402 (eval $ac_compile) 2>conftest.er1
4404 grep -v '^ *+' conftest.er1 >conftest.err
4406 cat conftest.err >&5
4407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4408 (exit $ac_status); } &&
4409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; } &&
4415 { ac_try='test -s conftest.$ac_objext'
4416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4420 (exit $ac_status); }; }; then
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4429 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4432 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4433 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4434 GXX=`test $ac_compiler_gnu = yes && echo yes`
4435 ac_test_CXXFLAGS=${CXXFLAGS+set}
4436 ac_save_CXXFLAGS=$CXXFLAGS
4438 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4440 if test "${ac_cv_prog_cxx_g+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 cat >conftest.$ac_ext <<_ACEOF
4446 cat confdefs.h >>conftest.$ac_ext
4447 cat >>conftest.$ac_ext <<_ACEOF
4448 /* end confdefs.h. */
4458 rm -f conftest.$ac_objext
4459 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4460 (eval $ac_compile) 2>conftest.er1
4462 grep -v '^ *+' conftest.er1 >conftest.err
4464 cat conftest.err >&5
4465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4466 (exit $ac_status); } &&
4467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4472 (exit $ac_status); }; } &&
4473 { ac_try='test -s conftest.$ac_objext'
4474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4478 (exit $ac_status); }; }; then
4479 ac_cv_prog_cxx_g=yes
4481 echo "$as_me: failed program was:" >&5
4482 sed 's/^/| /' conftest.$ac_ext >&5
4486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4488 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4489 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4490 if test "$ac_test_CXXFLAGS" = set; then
4491 CXXFLAGS=$ac_save_CXXFLAGS
4492 elif test $ac_cv_prog_cxx_g = yes; then
4493 if test "$GXX" = yes; then
4499 if test "$GXX" = yes; then
4505 for ac_declaration in \
4507 'extern "C" void std::exit (int) throw (); using std::exit;' \
4508 'extern "C" void std::exit (int); using std::exit;' \
4509 'extern "C" void exit (int) throw ();' \
4510 'extern "C" void exit (int);' \
4513 cat >conftest.$ac_ext <<_ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4529 rm -f conftest.$ac_objext
4530 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4531 (eval $ac_compile) 2>conftest.er1
4533 grep -v '^ *+' conftest.er1 >conftest.err
4535 cat conftest.err >&5
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); } &&
4538 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4573 rm -f conftest.$ac_objext
4574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4575 (eval $ac_compile) 2>conftest.er1
4577 grep -v '^ *+' conftest.er1 >conftest.err
4579 cat conftest.err >&5
4580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); } &&
4582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); }; } &&
4588 { ac_try='test -s conftest.$ac_objext'
4589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4593 (exit $ac_status); }; }; then
4596 echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4600 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4603 if test -n "$ac_declaration"; then
4604 echo '#ifdef __cplusplus' >>confdefs.h
4605 echo $ac_declaration >>confdefs.h
4606 echo '#endif' >>confdefs.h
4610 ac_cpp='$CXXCPP $CPPFLAGS'
4611 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4612 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4613 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4616 ac_cpp='$CXXCPP $CPPFLAGS'
4617 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4620 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4621 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4622 if test -z "$CXXCPP"; then
4623 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4624 echo $ECHO_N "(cached) $ECHO_C" >&6
4626 # Double quotes because CXXCPP needs to be expanded
4627 for CXXCPP in "$CXX -E" "/lib/cpp"
4630 for ac_cxx_preproc_warn_flag in '' yes
4632 # Use a header file that comes with gcc, so configuring glibc
4633 # with a fresh cross-compiler works.
4634 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4635 # <limits.h> exists even on freestanding compilers.
4636 # On the NeXT, cc -E runs the code through the compiler's parser,
4637 # not just through cpp. "Syntax error" is here to catch this case.
4638 cat >conftest.$ac_ext <<_ACEOF
4641 cat confdefs.h >>conftest.$ac_ext
4642 cat >>conftest.$ac_ext <<_ACEOF
4643 /* end confdefs.h. */
4645 # include <limits.h>
4647 # include <assert.h>
4651 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4652 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4654 grep -v '^ *+' conftest.er1 >conftest.err
4656 cat conftest.err >&5
4657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658 (exit $ac_status); } >/dev/null; then
4659 if test -s conftest.err; then
4660 ac_cpp_err=$ac_cxx_preproc_warn_flag
4661 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4668 if test -z "$ac_cpp_err"; then
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.$ac_ext >&5
4674 # Broken: fails on valid input.
4677 rm -f conftest.err conftest.$ac_ext
4679 # OK, works on sane cases. Now check whether non-existent headers
4680 # can be detected and how.
4681 cat >conftest.$ac_ext <<_ACEOF
4684 cat confdefs.h >>conftest.$ac_ext
4685 cat >>conftest.$ac_ext <<_ACEOF
4686 /* end confdefs.h. */
4687 #include <ac_nonexistent.h>
4689 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4690 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4692 grep -v '^ *+' conftest.er1 >conftest.err
4694 cat conftest.err >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); } >/dev/null; then
4697 if test -s conftest.err; then
4698 ac_cpp_err=$ac_cxx_preproc_warn_flag
4699 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4706 if test -z "$ac_cpp_err"; then
4707 # Broken: success on invalid input.
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4713 # Passes both tests.
4717 rm -f conftest.err conftest.$ac_ext
4720 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4721 rm -f conftest.err conftest.$ac_ext
4722 if $ac_preproc_ok; then
4727 ac_cv_prog_CXXCPP=$CXXCPP
4730 CXXCPP=$ac_cv_prog_CXXCPP
4732 ac_cv_prog_CXXCPP=$CXXCPP
4734 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4735 echo "${ECHO_T}$CXXCPP" >&6
4737 for ac_cxx_preproc_warn_flag in '' yes
4739 # Use a header file that comes with gcc, so configuring glibc
4740 # with a fresh cross-compiler works.
4741 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4742 # <limits.h> exists even on freestanding compilers.
4743 # On the NeXT, cc -E runs the code through the compiler's parser,
4744 # not just through cpp. "Syntax error" is here to catch this case.
4745 cat >conftest.$ac_ext <<_ACEOF
4748 cat confdefs.h >>conftest.$ac_ext
4749 cat >>conftest.$ac_ext <<_ACEOF
4750 /* end confdefs.h. */
4752 # include <limits.h>
4754 # include <assert.h>
4758 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4759 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4761 grep -v '^ *+' conftest.er1 >conftest.err
4763 cat conftest.err >&5
4764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4765 (exit $ac_status); } >/dev/null; then
4766 if test -s conftest.err; then
4767 ac_cpp_err=$ac_cxx_preproc_warn_flag
4768 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4775 if test -z "$ac_cpp_err"; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4781 # Broken: fails on valid input.
4784 rm -f conftest.err conftest.$ac_ext
4786 # OK, works on sane cases. Now check whether non-existent headers
4787 # can be detected and how.
4788 cat >conftest.$ac_ext <<_ACEOF
4791 cat confdefs.h >>conftest.$ac_ext
4792 cat >>conftest.$ac_ext <<_ACEOF
4793 /* end confdefs.h. */
4794 #include <ac_nonexistent.h>
4796 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4797 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4799 grep -v '^ *+' conftest.er1 >conftest.err
4801 cat conftest.err >&5
4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4803 (exit $ac_status); } >/dev/null; then
4804 if test -s conftest.err; then
4805 ac_cpp_err=$ac_cxx_preproc_warn_flag
4806 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4813 if test -z "$ac_cpp_err"; then
4814 # Broken: success on invalid input.
4817 echo "$as_me: failed program was:" >&5
4818 sed 's/^/| /' conftest.$ac_ext >&5
4820 # Passes both tests.
4824 rm -f conftest.err conftest.$ac_ext
4827 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4828 rm -f conftest.err conftest.$ac_ext
4829 if $ac_preproc_ok; then
4832 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4833 See \`config.log' for more details." >&5
4834 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4835 See \`config.log' for more details." >&2;}
4836 { (exit 1); exit 1; }; }
4840 ac_cpp='$CXXCPP $CPPFLAGS'
4841 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4842 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4843 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4847 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4848 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4850 if test -n "$ac_tool_prefix"; then
4851 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4853 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4854 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4855 echo "$as_me:$LINENO: checking for $ac_word" >&5
4856 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4857 if test "${ac_cv_prog_F77+set}" = set; then
4858 echo $ECHO_N "(cached) $ECHO_C" >&6
4860 if test -n "$F77"; then
4861 ac_cv_prog_F77="$F77" # Let the user override the test.
4863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4867 test -z "$as_dir" && as_dir=.
4868 for ac_exec_ext in '' $ac_executable_extensions; do
4869 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4870 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4880 if test -n "$F77"; then
4881 echo "$as_me:$LINENO: result: $F77" >&5
4882 echo "${ECHO_T}$F77" >&6
4884 echo "$as_me:$LINENO: result: no" >&5
4885 echo "${ECHO_T}no" >&6
4888 test -n "$F77" && break
4891 if test -z "$F77"; then
4893 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4895 # Extract the first word of "$ac_prog", so it can be a program name with args.
4896 set dummy $ac_prog; ac_word=$2
4897 echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4899 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$ac_ct_F77"; then
4903 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4912 ac_cv_prog_ac_ct_F77="$ac_prog"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4921 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4922 if test -n "$ac_ct_F77"; then
4923 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4924 echo "${ECHO_T}$ac_ct_F77" >&6
4926 echo "$as_me:$LINENO: result: no" >&5
4927 echo "${ECHO_T}no" >&6
4930 test -n "$ac_ct_F77" && break
4937 # Provide some information about the compiler.
4938 echo "$as_me:4938:" \
4939 "checking for Fortran 77 compiler version" >&5
4940 ac_compiler=`set X $ac_compile; echo $2`
4941 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4942 (eval $ac_compiler --version </dev/null >&5) 2>&5
4944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4945 (exit $ac_status); }
4946 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4947 (eval $ac_compiler -v </dev/null >&5) 2>&5
4949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950 (exit $ac_status); }
4951 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4952 (eval $ac_compiler -V </dev/null >&5) 2>&5
4954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955 (exit $ac_status); }
4958 # If we don't use `.F' as extension, the preprocessor is not run on the
4959 # input file. (Note that this only needs to work for GNU compilers.)
4962 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4963 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4964 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4965 echo $ECHO_N "(cached) $ECHO_C" >&6
4967 cat >conftest.$ac_ext <<_ACEOF
4975 rm -f conftest.$ac_objext
4976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4977 (eval $ac_compile) 2>conftest.er1
4979 grep -v '^ *+' conftest.er1 >conftest.err
4981 cat conftest.err >&5
4982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4983 (exit $ac_status); } &&
4984 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
4985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); }; } &&
4990 { ac_try='test -s conftest.$ac_objext'
4991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); }; }; then
4998 echo "$as_me: failed program was:" >&5
4999 sed 's/^/| /' conftest.$ac_ext >&5
5003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5004 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5007 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5008 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5010 ac_test_FFLAGS=${FFLAGS+set}
5011 ac_save_FFLAGS=$FFLAGS
5013 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5014 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5015 if test "${ac_cv_prog_f77_g+set}" = set; then
5016 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 cat >conftest.$ac_ext <<_ACEOF
5024 rm -f conftest.$ac_objext
5025 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5026 (eval $ac_compile) 2>conftest.er1
5028 grep -v '^ *+' conftest.er1 >conftest.err
5030 cat conftest.err >&5
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); } &&
5033 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; } &&
5039 { ac_try='test -s conftest.$ac_objext'
5040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044 (exit $ac_status); }; }; then
5045 ac_cv_prog_f77_g=yes
5047 echo "$as_me: failed program was:" >&5
5048 sed 's/^/| /' conftest.$ac_ext >&5
5052 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5055 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5056 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5057 if test "$ac_test_FFLAGS" = set; then
5058 FFLAGS=$ac_save_FFLAGS
5059 elif test $ac_cv_prog_f77_g = yes; then
5060 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5066 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5073 G77=`test $ac_compiler_gnu = yes && echo yes`
5075 ac_cpp='$CPP $CPPFLAGS'
5076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5082 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5084 # find the maximum length of command line arguments
5085 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5086 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5087 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5088 echo $ECHO_N "(cached) $ECHO_C" >&6
5095 # On DJGPP, this test can blow up pretty badly due to problems in libc
5096 # (any single argument exceeding 2000 bytes causes a buffer overrun
5097 # during glob expansion). Even if it were fixed, the result of this
5098 # check would be larger than it should be.
5099 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5103 # Under GNU Hurd, this test is not required because there is
5104 # no limit to the length of command line arguments.
5105 # Libtool will interpret -1 as no limit whatsoever
5106 lt_cv_sys_max_cmd_len=-1;
5110 # On Win9x/ME, this test blows up -- it succeeds, but takes
5111 # about 5 minutes as the teststring grows exponentially.
5112 # Worse, since 9x/ME are not pre-emptively multitasking,
5113 # you end up with a "frozen" computer, even though with patience
5114 # the test eventually succeeds (with a max line length of 256k).
5115 # Instead, let's just punt: use the minimum linelength reported by
5116 # all of the supported platforms: 8192 (on NT/2K/XP).
5117 lt_cv_sys_max_cmd_len=8192;
5121 # On AmigaOS with pdksh, this test takes hours, literally.
5122 # So we just punt and use a minimum line length of 8192.
5123 lt_cv_sys_max_cmd_len=8192;
5127 # If test is not a shell built-in, we'll probably end up computing a
5128 # maximum length that is only half of the actual maximum length, but
5130 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5131 = "XX$teststring") >/dev/null 2>&1 &&
5132 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5133 lt_cv_sys_max_cmd_len=$new_result &&
5134 test $i != 17 # 1/2 MB should be enough
5137 teststring=$teststring$teststring
5140 # Add a significant safety factor because C++ compilers can tack on massive
5141 # amounts of additional arguments before passing them to the linker.
5142 # It appears as though 1/2 is a usable value.
5143 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5149 if test -n $lt_cv_sys_max_cmd_len ; then
5150 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5151 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5153 echo "$as_me:$LINENO: result: none" >&5
5154 echo "${ECHO_T}none" >&6
5160 # Check for command to grab the raw symbol name followed by C symbol from nm.
5161 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5162 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5163 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5164 echo $ECHO_N "(cached) $ECHO_C" >&6
5167 # These are sane defaults that work on at least a few old systems.
5168 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5170 # Character class describing NM global symbol codes.
5171 symcode='[BCDEGRST]'
5173 # Regexp to match symbols that can be accessed directly from C.
5174 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5176 # Transform the above into a raw symbol and a C symbol.
5177 symxfrm='\1 \2\3 \3'
5179 # Transform an extracted symbol line into a proper C declaration
5180 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5182 # Transform an extracted symbol line into symbol name and symbol address
5183 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'"
5185 # Define system-specific variables.
5190 cygwin* | mingw* | pw32*)
5191 symcode='[ABCDGISTW]'
5193 hpux*) # Its linker distinguishes data from code symbols
5194 if test "$host_cpu" = ia64; then
5195 symcode='[ABCDEGRST]'
5197 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5198 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'"
5201 symcode='[BCDEGRST]'
5204 symcode='[BCDEGQRST]'
5214 # Handle CRLF in mingw tool chain
5218 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5222 # If we're using GNU nm, then use its standard symbol codes.
5223 case `$NM -V 2>&1` in
5224 *GNU* | *'with BFD'*)
5225 symcode='[ABCDGIRSTW]' ;;
5228 # Try without a prefix undercore, then with it.
5229 for ac_symprfx in "" "_"; do
5231 # Write the raw and C identifiers.
5232 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5234 # Check to see that the pipe works correctly.
5238 cat > conftest.$ac_ext <<EOF
5243 void nm_test_func(){}
5247 int main(){nm_test_var='a';nm_test_func();return(0);}
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>&5
5253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5254 (exit $ac_status); }; then
5255 # Now try to grab the symbols.
5257 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5258 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && test -s "$nlist"; then
5262 # Try sorting and uniquifying the output.
5263 if sort "$nlist" | uniq > "$nlist"T; then
5264 mv -f "$nlist"T "$nlist"
5269 # Make sure that we snagged all the symbols we need.
5270 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5271 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5272 cat <<EOF > conftest.$ac_ext
5278 # Now generate the symbol file.
5279 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5281 cat <<EOF >> conftest.$ac_ext
5282 #if defined (__STDC__) && __STDC__
5283 # define lt_ptr_t void *
5285 # define lt_ptr_t char *
5289 /* The mapping between symbol names and symbols. */
5294 lt_preloaded_symbols[] =
5297 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5298 cat <<\EOF >> conftest.$ac_ext
5306 # Now try linking the two files.
5307 mv conftest.$ac_objext conftstm.$ac_objext
5308 lt_save_LIBS="$LIBS"
5309 lt_save_CFLAGS="$CFLAGS"
5310 LIBS="conftstm.$ac_objext"
5311 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5312 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5313 (eval $ac_link) 2>&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5319 LIBS="$lt_save_LIBS"
5320 CFLAGS="$lt_save_CFLAGS"
5322 echo "cannot find nm_test_func in $nlist" >&5
5325 echo "cannot find nm_test_var in $nlist" >&5
5328 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5331 echo "$progname: failed program was:" >&5
5332 cat conftest.$ac_ext >&5
5334 rm -f conftest* conftst*
5336 # Do not use the global_symbol_pipe unless it works.
5337 if test "$pipe_works" = yes; then
5340 lt_cv_sys_global_symbol_pipe=
5346 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5347 lt_cv_sys_global_symbol_to_cdecl=
5349 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5350 echo "$as_me:$LINENO: result: failed" >&5
5351 echo "${ECHO_T}failed" >&6
5353 echo "$as_me:$LINENO: result: ok" >&5
5354 echo "${ECHO_T}ok" >&6
5357 echo "$as_me:$LINENO: checking for objdir" >&5
5358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5359 if test "${lt_cv_objdir+set}" = set; then
5360 echo $ECHO_N "(cached) $ECHO_C" >&6
5362 rm -f .libs 2>/dev/null
5363 mkdir .libs 2>/dev/null
5364 if test -d .libs; then
5367 # MS-DOS does not allow filenames that begin with a dot.
5370 rmdir .libs 2>/dev/null
5372 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5373 echo "${ECHO_T}$lt_cv_objdir" >&6
5374 objdir=$lt_cv_objdir
5382 # AIX sometimes has problems with the GCC collect2 program. For some
5383 # reason, if we set the COLLECT_NAMES environment variable, the problems
5384 # vanish in a puff of smoke.
5385 if test "X${COLLECT_NAMES+set}" != Xset; then
5387 export COLLECT_NAMES
5392 # Sed substitution that helps us do robust quoting. It backslashifies
5393 # metacharacters that are still active within double-quoted strings.
5394 Xsed='sed -e s/^X//'
5395 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5397 # Same as above, but do not quote variable references.
5398 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5400 # Sed substitution to delay expansion of an escaped shell variable in a
5401 # double_quote_subst'ed string.
5402 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5404 # Sed substitution to avoid accidental globbing in evaled expressions
5405 no_glob_subst='s/\*/\\\*/g'
5411 default_ofile=libtool
5412 can_build_shared=yes
5414 # All known linkers require a `.a' archive for static linking (except M$VC,
5415 # which needs '.lib').
5417 ltmain="$ac_aux_dir/ltmain.sh"
5418 ofile="$default_ofile"
5419 with_gnu_ld="$lt_cv_prog_gnu_ld"
5421 if test -n "$ac_tool_prefix"; then
5422 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5423 set dummy ${ac_tool_prefix}ar; ac_word=$2
5424 echo "$as_me:$LINENO: checking for $ac_word" >&5
5425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5426 if test "${ac_cv_prog_AR+set}" = set; then
5427 echo $ECHO_N "(cached) $ECHO_C" >&6
5429 if test -n "$AR"; then
5430 ac_cv_prog_AR="$AR" # Let the user override the test.
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5436 test -z "$as_dir" && as_dir=.
5437 for ac_exec_ext in '' $ac_executable_extensions; do
5438 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5439 ac_cv_prog_AR="${ac_tool_prefix}ar"
5440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5449 if test -n "$AR"; then
5450 echo "$as_me:$LINENO: result: $AR" >&5
5451 echo "${ECHO_T}$AR" >&6
5453 echo "$as_me:$LINENO: result: no" >&5
5454 echo "${ECHO_T}no" >&6
5458 if test -z "$ac_cv_prog_AR"; then
5460 # Extract the first word of "ar", so it can be a program name with args.
5461 set dummy ar; ac_word=$2
5462 echo "$as_me:$LINENO: checking for $ac_word" >&5
5463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5464 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5465 echo $ECHO_N "(cached) $ECHO_C" >&6
5467 if test -n "$ac_ct_AR"; then
5468 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5474 test -z "$as_dir" && as_dir=.
5475 for ac_exec_ext in '' $ac_executable_extensions; do
5476 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5477 ac_cv_prog_ac_ct_AR="ar"
5478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5487 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5488 if test -n "$ac_ct_AR"; then
5489 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5490 echo "${ECHO_T}$ac_ct_AR" >&6
5492 echo "$as_me:$LINENO: result: no" >&5
5493 echo "${ECHO_T}no" >&6
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5503 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5504 echo "$as_me:$LINENO: checking for $ac_word" >&5
5505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5506 if test "${ac_cv_prog_RANLIB+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5509 if test -n "$RANLIB"; then
5510 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5528 RANLIB=$ac_cv_prog_RANLIB
5529 if test -n "$RANLIB"; then
5530 echo "$as_me:$LINENO: result: $RANLIB" >&5
5531 echo "${ECHO_T}$RANLIB" >&6
5533 echo "$as_me:$LINENO: result: no" >&5
5534 echo "${ECHO_T}no" >&6
5538 if test -z "$ac_cv_prog_RANLIB"; then
5539 ac_ct_RANLIB=$RANLIB
5540 # Extract the first word of "ranlib", so it can be a program name with args.
5541 set dummy ranlib; ac_word=$2
5542 echo "$as_me:$LINENO: checking for $ac_word" >&5
5543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5544 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5545 echo $ECHO_N "(cached) $ECHO_C" >&6
5547 if test -n "$ac_ct_RANLIB"; then
5548 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 test -z "$as_dir" && as_dir=.
5555 for ac_exec_ext in '' $ac_executable_extensions; do
5556 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5557 ac_cv_prog_ac_ct_RANLIB="ranlib"
5558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5564 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5567 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5568 if test -n "$ac_ct_RANLIB"; then
5569 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5570 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5572 echo "$as_me:$LINENO: result: no" >&5
5573 echo "${ECHO_T}no" >&6
5576 RANLIB=$ac_ct_RANLIB
5578 RANLIB="$ac_cv_prog_RANLIB"
5581 if test -n "$ac_tool_prefix"; then
5582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5583 set dummy ${ac_tool_prefix}strip; ac_word=$2
5584 echo "$as_me:$LINENO: checking for $ac_word" >&5
5585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5586 if test "${ac_cv_prog_STRIP+set}" = set; then
5587 echo $ECHO_N "(cached) $ECHO_C" >&6
5589 if test -n "$STRIP"; then
5590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir=.
5597 for ac_exec_ext in '' $ac_executable_extensions; do
5598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5608 STRIP=$ac_cv_prog_STRIP
5609 if test -n "$STRIP"; then
5610 echo "$as_me:$LINENO: result: $STRIP" >&5
5611 echo "${ECHO_T}$STRIP" >&6
5613 echo "$as_me:$LINENO: result: no" >&5
5614 echo "${ECHO_T}no" >&6
5618 if test -z "$ac_cv_prog_STRIP"; then
5620 # Extract the first word of "strip", so it can be a program name with args.
5621 set dummy strip; ac_word=$2
5622 echo "$as_me:$LINENO: checking for $ac_word" >&5
5623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5624 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5625 echo $ECHO_N "(cached) $ECHO_C" >&6
5627 if test -n "$ac_ct_STRIP"; then
5628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for ac_exec_ext in '' $ac_executable_extensions; do
5636 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5637 ac_cv_prog_ac_ct_STRIP="strip"
5638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5647 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5648 if test -n "$ac_ct_STRIP"; then
5649 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5650 echo "${ECHO_T}$ac_ct_STRIP" >&6
5652 echo "$as_me:$LINENO: result: no" >&5
5653 echo "${ECHO_T}no" >&6
5658 STRIP="$ac_cv_prog_STRIP"
5663 old_CFLAGS="$CFLAGS"
5665 # Set sane defaults for various variables
5666 test -z "$AR" && AR=ar
5667 test -z "$AR_FLAGS" && AR_FLAGS=cru
5668 test -z "$AS" && AS=as
5669 test -z "$CC" && CC=cc
5670 test -z "$LTCC" && LTCC=$CC
5671 test -z "$DLLTOOL" && DLLTOOL=dlltool
5672 test -z "$LD" && LD=ld
5673 test -z "$LN_S" && LN_S="ln -s"
5674 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5675 test -z "$NM" && NM=nm
5676 test -z "$SED" && SED=sed
5677 test -z "$OBJDUMP" && OBJDUMP=objdump
5678 test -z "$RANLIB" && RANLIB=:
5679 test -z "$STRIP" && STRIP=:
5680 test -z "$ac_objext" && ac_objext=o
5682 # Determine commands to create old-style static archives.
5683 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5684 old_postinstall_cmds='chmod 644 $oldlib'
5685 old_postuninstall_cmds=
5687 if test -n "$RANLIB"; then
5690 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5693 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5696 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5699 # Only perform the check for file, if the check method requires it
5700 case $deplibs_check_method in
5702 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5703 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5704 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5705 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5706 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5713 lt_save_MAGIC_CMD="$MAGIC_CMD"
5714 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5715 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5716 for ac_dir in $ac_dummy; do
5718 test -z "$ac_dir" && ac_dir=.
5719 if test -f $ac_dir/${ac_tool_prefix}file; then
5720 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5721 if test -n "$file_magic_test_file"; then
5722 case $deplibs_check_method in
5724 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5725 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5726 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5727 $EGREP "$file_magic_regex" > /dev/null; then
5732 *** Warning: the command libtool uses to detect shared libraries,
5733 *** $file_magic_cmd, produces output that libtool cannot recognize.
5734 *** The result is that libtool may fail to recognize shared libraries
5735 *** as such. This will affect the creation of libtool libraries that
5736 *** depend on shared libraries, but programs linked with such libtool
5737 *** libraries will work regardless of this problem. Nevertheless, you
5738 *** may want to report the problem to your system manager and/or to
5739 *** bug-libtool@gnu.org
5749 MAGIC_CMD="$lt_save_MAGIC_CMD"
5754 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5755 if test -n "$MAGIC_CMD"; then
5756 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5757 echo "${ECHO_T}$MAGIC_CMD" >&6
5759 echo "$as_me:$LINENO: result: no" >&5
5760 echo "${ECHO_T}no" >&6
5763 if test -z "$lt_cv_path_MAGIC_CMD"; then
5764 if test -n "$ac_tool_prefix"; then
5765 echo "$as_me:$LINENO: checking for file" >&5
5766 echo $ECHO_N "checking for file... $ECHO_C" >&6
5767 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5775 lt_save_MAGIC_CMD="$MAGIC_CMD"
5776 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5777 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5778 for ac_dir in $ac_dummy; do
5780 test -z "$ac_dir" && ac_dir=.
5781 if test -f $ac_dir/file; then
5782 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5783 if test -n "$file_magic_test_file"; then
5784 case $deplibs_check_method in
5786 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5787 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5788 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5789 $EGREP "$file_magic_regex" > /dev/null; then
5794 *** Warning: the command libtool uses to detect shared libraries,
5795 *** $file_magic_cmd, produces output that libtool cannot recognize.
5796 *** The result is that libtool may fail to recognize shared libraries
5797 *** as such. This will affect the creation of libtool libraries that
5798 *** depend on shared libraries, but programs linked with such libtool
5799 *** libraries will work regardless of this problem. Nevertheless, you
5800 *** may want to report the problem to your system manager and/or to
5801 *** bug-libtool@gnu.org
5811 MAGIC_CMD="$lt_save_MAGIC_CMD"
5816 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5817 if test -n "$MAGIC_CMD"; then
5818 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5819 echo "${ECHO_T}$MAGIC_CMD" >&6
5821 echo "$as_me:$LINENO: result: no" >&5
5822 echo "${ECHO_T}no" >&6
5837 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5838 if test "${enable_libtool_lock+set}" = set; then
5839 enableval="$enable_libtool_lock"
5842 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5845 # Check whether --with-pic or --without-pic was given.
5846 if test "${with_pic+set}" = set; then
5852 test -z "$pic_mode" && pic_mode=default
5854 # Use C for the default configuration in the libtool script
5858 ac_cpp='$CPP $CPPFLAGS'
5859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5864 # Source file extension for C test sources.
5867 # Object file extension for compiled C test sources.
5871 # Code to be used in simple compile tests
5872 lt_simple_compile_test_code="int some_variable = 0;\n"
5874 # Code to be used in simple link tests
5875 lt_simple_link_test_code='int main(){return(0);}\n'
5878 # If no C compiler was specified, use CC.
5881 # Allow CC to be a program name with arguments.
5886 # Check for any special shared library compilation flags.
5889 if test "$GCC" = no; then
5892 lt_prog_cc_shlib='-belf'
5896 if test -n "$lt_prog_cc_shlib"; then
5897 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5898 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5899 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5901 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5902 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5903 lt_cv_prog_cc_can_build_shared=no
5909 # Check to make sure the static flag actually works.
5911 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5912 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5913 if test "${lt_prog_compiler_static_works+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 lt_prog_compiler_static_works=no
5917 save_LDFLAGS="$LDFLAGS"
5918 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5919 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5920 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5921 # The compiler can only warn and ignore the option if not recognized
5922 # So say no if there are warnings
5923 if test -s conftest.err; then
5924 # Append any errors to the config.log.
5925 cat conftest.err 1>&5
5927 lt_prog_compiler_static_works=yes
5931 LDFLAGS="$save_LDFLAGS"
5934 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5935 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5937 if test x"$lt_prog_compiler_static_works" = xyes; then
5940 lt_prog_compiler_static=
5946 lt_prog_compiler_no_builtin_flag=
5948 if test "$GCC" = yes; then
5949 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5952 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5953 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5954 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5955 echo $ECHO_N "(cached) $ECHO_C" >&6
5957 lt_cv_prog_compiler_rtti_exceptions=no
5958 ac_outfile=conftest.$ac_objext
5959 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5960 lt_compiler_flag="-fno-rtti -fno-exceptions"
5961 # Insert the option either (1) after the last *FLAGS variable, or
5962 # (2) before a word containing "conftest.", or (3) at the end.
5963 # Note that $ac_compile itself does not contain backslashes and begins
5964 # with a dollar sign (not a hyphen), so the echo should work correctly.
5965 # The option is referenced via a variable to avoid confusing sed.
5966 lt_compile=`echo "$ac_compile" | $SED \
5967 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5969 -e 's:$: $lt_compiler_flag:'`
5970 (eval echo "\"\$as_me:5970: $lt_compile\"" >&5)
5971 (eval "$lt_compile" 2>conftest.err)
5973 cat conftest.err >&5
5974 echo "$as_me:5974: \$? = $ac_status" >&5
5975 if (exit $ac_status) && test -s "$ac_outfile"; then
5976 # The compiler can only warn and ignore the option if not recognized
5977 # So say no if there are warnings
5978 if test ! -s conftest.err; then
5979 lt_cv_prog_compiler_rtti_exceptions=yes
5985 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5986 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5988 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5989 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5996 lt_prog_compiler_wl=
5997 lt_prog_compiler_pic=
5998 lt_prog_compiler_static=
6000 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6001 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6003 if test "$GCC" = yes; then
6004 lt_prog_compiler_wl='-Wl,'
6005 lt_prog_compiler_static='-static'
6009 # All AIX code is PIC.
6010 if test "$host_cpu" = ia64; then
6011 # AIX 5 now supports IA64 processor
6012 lt_prog_compiler_static='-Bstatic'
6017 # FIXME: we need at least 68020 code to build shared libraries, but
6018 # adding the `-m68020' flag to GCC prevents building anything better,
6020 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6023 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6024 # PIC is the default for these OSes.
6027 mingw* | pw32* | os2*)
6028 # This hack is so that the source file can tell whether it is being
6029 # built for inclusion in a dll (and should export symbols for example).
6030 lt_prog_compiler_pic='-DDLL_EXPORT'
6033 darwin* | rhapsody*)
6034 # PIC is the default on this platform
6035 # Common symbols not allowed in MH_DYLIB files
6036 lt_prog_compiler_pic='-fno-common'
6040 # Just because we use GCC doesn't mean we suddenly get shared libraries
6041 # on systems that don't support them.
6042 lt_prog_compiler_can_build_shared=no
6047 if test -d /usr/nec; then
6048 lt_prog_compiler_pic=-Kconform_pic
6053 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6060 lt_prog_compiler_pic='-fPIC'
6066 lt_prog_compiler_pic='-fPIC'
6070 # PORTME Check for flag to pass linker flags through the system compiler.
6073 lt_prog_compiler_wl='-Wl,'
6074 if test "$host_cpu" = ia64; then
6075 # AIX 5 now supports IA64 processor
6076 lt_prog_compiler_static='-Bstatic'
6078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6082 mingw* | pw32* | os2*)
6083 # This hack is so that the source file can tell whether it is being
6084 # built for inclusion in a dll (and should export symbols for example).
6085 lt_prog_compiler_pic='-DDLL_EXPORT'
6088 hpux9* | hpux10* | hpux11*)
6089 lt_prog_compiler_wl='-Wl,'
6090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6097 lt_prog_compiler_pic='+Z'
6100 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6101 lt_prog_compiler_static='${wl}-a ${wl}archive'
6104 irix5* | irix6* | nonstopux*)
6105 lt_prog_compiler_wl='-Wl,'
6106 # PIC (with -KPIC) is the default.
6107 lt_prog_compiler_static='-non_shared'
6111 lt_prog_compiler_pic='-KPIC'
6112 lt_prog_compiler_static='-Bstatic'
6118 lt_prog_compiler_wl='-Wl,'
6119 lt_prog_compiler_pic='-KPIC'
6120 lt_prog_compiler_static='-static'
6123 lt_prog_compiler_wl='-Wl,'
6124 # All Alpha code is PIC.
6125 lt_prog_compiler_static='-non_shared'
6130 osf3* | osf4* | osf5*)
6131 lt_prog_compiler_wl='-Wl,'
6132 # All OSF/1 code is PIC.
6133 lt_prog_compiler_static='-non_shared'
6137 lt_prog_compiler_pic='-Kpic'
6138 lt_prog_compiler_static='-dn'
6142 lt_prog_compiler_wl='-Wl,'
6143 lt_prog_compiler_pic='-KPIC'
6144 lt_prog_compiler_static='-Bstatic'
6148 lt_prog_compiler_wl='-Qoption ld '
6149 lt_prog_compiler_pic='-PIC'
6150 lt_prog_compiler_static='-Bstatic'
6153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6154 lt_prog_compiler_wl='-Wl,'
6155 lt_prog_compiler_pic='-KPIC'
6156 lt_prog_compiler_static='-Bstatic'
6160 if test -d /usr/nec ;then
6161 lt_prog_compiler_pic='-Kconform_pic'
6162 lt_prog_compiler_static='-Bstatic'
6167 lt_prog_compiler_pic='-pic'
6168 lt_prog_compiler_static='-Bstatic'
6172 lt_prog_compiler_can_build_shared=no
6177 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6178 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6181 # Check to make sure the PIC flag actually works.
6183 if test -n "$lt_prog_compiler_pic"; then
6185 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6186 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6187 if test "${lt_prog_compiler_pic_works+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 lt_prog_compiler_pic_works=no
6191 ac_outfile=conftest.$ac_objext
6192 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6193 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6194 # Insert the option either (1) after the last *FLAGS variable, or
6195 # (2) before a word containing "conftest.", or (3) at the end.
6196 # Note that $ac_compile itself does not contain backslashes and begins
6197 # with a dollar sign (not a hyphen), so the echo should work correctly.
6198 # The option is referenced via a variable to avoid confusing sed.
6199 lt_compile=`echo "$ac_compile" | $SED \
6200 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6202 -e 's:$: $lt_compiler_flag:'`
6203 (eval echo "\"\$as_me:6203: $lt_compile\"" >&5)
6204 (eval "$lt_compile" 2>conftest.err)
6206 cat conftest.err >&5
6207 echo "$as_me:6207: \$? = $ac_status" >&5
6208 if (exit $ac_status) && test -s "$ac_outfile"; then
6209 # The compiler can only warn and ignore the option if not recognized
6210 # So say no if there are warnings
6211 if test ! -s conftest.err; then
6212 lt_prog_compiler_pic_works=yes
6218 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6219 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6221 if test x"$lt_prog_compiler_pic_works" = xyes; then
6222 case $lt_prog_compiler_pic in
6224 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6227 lt_prog_compiler_pic=
6228 lt_prog_compiler_can_build_shared=no
6233 # For platforms which do not support PIC, -DPIC is meaningless:
6235 lt_prog_compiler_pic=
6238 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6242 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6243 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6244 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 lt_cv_prog_compiler_c_o=no
6248 $rm -r conftest 2>/dev/null
6252 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6254 lt_compiler_flag="-o out/conftest2.$ac_objext"
6255 # Insert the option either (1) after the last *FLAGS variable, or
6256 # (2) before a word containing "conftest.", or (3) at the end.
6257 # Note that $ac_compile itself does not contain backslashes and begins
6258 # with a dollar sign (not a hyphen), so the echo should work correctly.
6259 lt_compile=`echo "$ac_compile" | $SED \
6260 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6262 -e 's:$: $lt_compiler_flag:'`
6263 (eval echo "\"\$as_me:6263: $lt_compile\"" >&5)
6264 (eval "$lt_compile" 2>out/conftest.err)
6266 cat out/conftest.err >&5
6267 echo "$as_me:6267: \$? = $ac_status" >&5
6268 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6270 # The compiler can only warn and ignore the option if not recognized
6271 # So say no if there are warnings
6272 if test ! -s out/conftest.err; then
6273 lt_cv_prog_compiler_c_o=yes
6278 # SGI C++ compiler will create directory out/ii_files/ for
6279 # template instantiation
6280 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6281 $rm out/* && rmdir out
6287 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6288 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6291 hard_links="nottested"
6292 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6293 # do not overwrite the value of need_locks provided by the user
6294 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6295 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6298 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6300 ln conftest.a conftest.b 2>&5 || hard_links=no
6301 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6302 echo "$as_me:$LINENO: result: $hard_links" >&5
6303 echo "${ECHO_T}$hard_links" >&6
6304 if test "$hard_links" = no; then
6305 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6306 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6313 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6314 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6317 allow_undefined_flag=
6318 enable_shared_with_static_runtimes=no
6320 archive_expsym_cmds=
6321 old_archive_From_new_cmds=
6322 old_archive_from_expsyms_cmds=
6323 export_dynamic_flag_spec=
6324 whole_archive_flag_spec=
6325 thread_safe_flag_spec=
6326 hardcode_libdir_flag_spec=
6327 hardcode_libdir_flag_spec_ld=
6328 hardcode_libdir_separator=
6331 hardcode_shlibpath_var=unsupported
6332 link_all_deplibs=unknown
6333 hardcode_automatic=no
6336 always_export_symbols=no
6337 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6338 # include_expsyms should be a list of space-separated symbols to be *always*
6339 # included in the symbol list
6341 # exclude_expsyms can be an extended regexp of symbols to exclude
6342 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6343 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6344 # as well as any symbol that contains `d'.
6345 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6346 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6347 # platforms (ab)use it in PIC code, but their linkers get confused if
6348 # the symbol is explicitly referenced. Since portable code cannot
6349 # rely on this symbol name, it's probably fine to never include it in
6350 # preloaded symbol tables.
6351 extract_expsyms_cmds=
6354 cygwin* | mingw* | pw32*)
6355 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6356 # When not using gcc, we currently assume that we are using
6357 # Microsoft Visual C++.
6358 if test "$GCC" != yes; then
6368 if test "$with_gnu_ld" = yes; then
6369 # If archive_cmds runs LD, not CC, wlarc should be empty
6372 # See if GNU ld supports shared libraries.
6374 aix3* | aix4* | aix5*)
6375 # On AIX/PPC, the GNU linker is very broken
6376 if test "$host_cpu" != ia64; then
6380 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6381 *** to be unable to reliably create shared libraries on AIX.
6382 *** Therefore, libtool is disabling shared libraries support. If you
6383 *** really care for shared libraries, you may want to modify your PATH
6384 *** so that a non-GNU linker is found, and then restart.
6391 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)'
6392 hardcode_libdir_flag_spec='-L$libdir'
6393 hardcode_minus_L=yes
6395 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6396 # that the semantics of dynamic libraries on AmigaOS, at least up
6397 # to version 4, is to share data among multiple programs linked
6398 # with the same dynamic library. Since this doesn't match the
6399 # behavior of shared libraries on other platforms, we can't use
6405 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6406 allow_undefined_flag=unsupported
6407 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6408 # support --undefined. This deserves some investigation. FIXME
6409 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6415 cygwin* | mingw* | pw32*)
6416 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6417 # as there is no search path for DLLs.
6418 hardcode_libdir_flag_spec='-L$libdir'
6419 allow_undefined_flag=unsupported
6420 always_export_symbols=no
6421 enable_shared_with_static_runtimes=yes
6422 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6424 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6426 # If the export-symbols file already is a .def file (1st line
6427 # is EXPORTS), use it as is; otherwise, prepend...
6428 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6429 cp $export_symbols $output_objdir/$soname.def;
6431 echo EXPORTS > $output_objdir/$soname.def;
6432 cat $export_symbols >> $output_objdir/$soname.def;
6434 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6440 netbsd* | knetbsd*-gnu)
6441 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6442 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6446 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6451 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6455 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6456 *** create shared libraries on Solaris systems. Therefore, libtool
6457 *** is disabling shared libraries support. We urge you to upgrade GNU
6458 *** binutils to release 2.9.1 or newer. Another option is to modify
6459 *** your PATH or compiler configuration so that the native linker is
6460 *** used, and then restart.
6463 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6465 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6472 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6475 hardcode_shlibpath_var=no
6479 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6480 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6481 archive_cmds="$tmp_archive_cmds"
6482 supports_anon_versioning=no
6483 case `$LD -v 2>/dev/null` in
6484 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6485 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6486 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6487 *\ 2.11.*) ;; # other 2.11 versions
6488 *) supports_anon_versioning=yes ;;
6490 if test $supports_anon_versioning = yes; then
6491 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6492 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6493 $echo "local: *; };" >> $output_objdir/$libname.ver~
6494 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6496 archive_expsym_cmds="$tmp_archive_cmds"
6505 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6506 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6507 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6514 if test "$ld_shlibs" = yes; then
6515 runpath_var=LD_RUN_PATH
6516 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6517 export_dynamic_flag_spec='${wl}--export-dynamic'
6518 # ancient GNU ld didn't support --whole-archive et. al.
6519 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6520 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6522 whole_archive_flag_spec=
6526 # PORTME fill in a description of your system's linker (not GNU ld)
6529 allow_undefined_flag=unsupported
6530 always_export_symbols=yes
6531 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'
6532 # Note: this linker hardcodes the directories in LIBPATH if there
6533 # are no directories specified by -L.
6534 hardcode_minus_L=yes
6535 if test "$GCC" = yes && test -z "$link_static_flag"; then
6536 # Neither direct hardcoding nor static linking is supported with a
6538 hardcode_direct=unsupported
6543 if test "$host_cpu" = ia64; then
6544 # On IA64, the linker does run time linking by default, so we don't
6545 # have to do anything special.
6546 aix_use_runtimelinking=no
6547 exp_sym_flag='-Bexport'
6550 # If we're using GNU nm, then we don't want the "-C" option.
6551 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6552 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6553 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'
6555 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'
6557 aix_use_runtimelinking=no
6559 # Test if we are trying to use run time linking or normal
6560 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6561 # need to do runtime linking.
6562 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6563 for ld_flag in $LDFLAGS; do
6564 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6565 aix_use_runtimelinking=yes
6571 exp_sym_flag='-bexport'
6572 no_entry_flag='-bnoentry'
6575 # When large executables or shared objects are built, AIX ld can
6576 # have problems creating the table of contents. If linking a library
6577 # or program results in "error TOC overflow" add -mminimal-toc to
6578 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6579 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6583 hardcode_libdir_separator=':'
6584 link_all_deplibs=yes
6586 if test "$GCC" = yes; then
6587 case $host_os in aix4.012|aix4.012.*)
6588 # We only want to do this on AIX 4.2 and lower, the check
6589 # below for broken collect2 doesn't work under 4.3+
6590 collect2name=`${CC} -print-prog-name=collect2`
6591 if test -f "$collect2name" && \
6592 strings "$collect2name" | grep resolve_lib_name >/dev/null
6594 # We have reworked collect2
6597 # We have old collect2
6598 hardcode_direct=unsupported
6599 # It fails to find uninstalled libraries when the uninstalled
6600 # path is not listed in the libpath. Setting hardcode_minus_L
6601 # to unsupported forces relinking
6602 hardcode_minus_L=yes
6603 hardcode_libdir_flag_spec='-L$libdir'
6604 hardcode_libdir_separator=
6607 shared_flag='-shared'
6610 if test "$host_cpu" = ia64; then
6611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6612 # chokes on -Wl,-G. The following line is correct:
6615 if test "$aix_use_runtimelinking" = yes; then
6616 shared_flag='${wl}-G'
6618 shared_flag='${wl}-bM:SRE'
6623 # It seems that -bexpall does not export symbols beginning with
6624 # underscore (_), so it is better to generate a list of symbols to export.
6625 always_export_symbols=yes
6626 if test "$aix_use_runtimelinking" = yes; then
6627 # Warning - without using the other runtime loading flags (-brtl),
6628 # -berok will link without error, but may produce a broken library.
6629 allow_undefined_flag='-berok'
6630 # Determine the default libpath from the value encoded in an empty executable.
6631 cat >conftest.$ac_ext <<_ACEOF
6634 cat confdefs.h >>conftest.$ac_ext
6635 cat >>conftest.$ac_ext <<_ACEOF
6636 /* end confdefs.h. */
6646 rm -f conftest.$ac_objext conftest$ac_exeext
6647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6648 (eval $ac_link) 2>conftest.er1
6650 grep -v '^ *+' conftest.er1 >conftest.err
6652 cat conftest.err >&5
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } &&
6655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); }; } &&
6661 { ac_try='test -s conftest$ac_exeext'
6662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
6668 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6670 # Check for a 64-bit object if we didn't find anything.
6671 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; }
6674 echo "$as_me: failed program was:" >&5
6675 sed 's/^/| /' conftest.$ac_ext >&5
6678 rm -f conftest.err conftest.$ac_objext \
6679 conftest$ac_exeext conftest.$ac_ext
6680 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6682 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6683 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
6685 if test "$host_cpu" = ia64; then
6686 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6687 allow_undefined_flag="-z nodefs"
6688 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
6690 # Determine the default libpath from the value encoded in an empty executable.
6691 cat >conftest.$ac_ext <<_ACEOF
6694 cat confdefs.h >>conftest.$ac_ext
6695 cat >>conftest.$ac_ext <<_ACEOF
6696 /* end confdefs.h. */
6706 rm -f conftest.$ac_objext conftest$ac_exeext
6707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6708 (eval $ac_link) 2>conftest.er1
6710 grep -v '^ *+' conftest.er1 >conftest.err
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } &&
6715 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6720 (exit $ac_status); }; } &&
6721 { ac_try='test -s conftest$ac_exeext'
6722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); }; }; then
6728 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6730 # Check for a 64-bit object if we didn't find anything.
6731 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; }
6734 echo "$as_me: failed program was:" >&5
6735 sed 's/^/| /' conftest.$ac_ext >&5
6738 rm -f conftest.err conftest.$ac_objext \
6739 conftest$ac_exeext conftest.$ac_ext
6740 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6742 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6743 # Warning - without using the other run time loading flags,
6744 # -berok will link without error, but may produce a broken library.
6745 no_undefined_flag=' ${wl}-bernotok'
6746 allow_undefined_flag=' ${wl}-berok'
6747 # -bexpall does not export symbols beginning with underscore (_)
6748 always_export_symbols=yes
6749 # Exported symbols can be pulled into shared objects from archives
6750 whole_archive_flag_spec=' '
6751 archive_cmds_need_lc=yes
6752 # This is similar to how AIX traditionally builds it's shared libraries.
6753 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
6759 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)'
6760 hardcode_libdir_flag_spec='-L$libdir'
6761 hardcode_minus_L=yes
6762 # see comment about different semantics on the GNU ld section
6767 export_dynamic_flag_spec=-rdynamic
6770 cygwin* | mingw* | pw32*)
6771 # When not using gcc, we currently assume that we are using
6772 # Microsoft Visual C++.
6773 # hardcode_libdir_flag_spec is actually meaningless, as there is
6774 # no search path for DLLs.
6775 hardcode_libdir_flag_spec=' '
6776 allow_undefined_flag=unsupported
6777 # Tell ltmain to make .lib files, not .a files.
6779 # Tell ltmain to make .dll files, not .so files.
6781 # FIXME: Setting linknames here is a bad hack.
6782 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6783 # The linker will automatically build a .lib file if we build a DLL.
6784 old_archive_From_new_cmds='true'
6785 # FIXME: Should let the user specify the lib program.
6786 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6787 fix_srcfile_path='`cygpath -w "$srcfile"`'
6788 enable_shared_with_static_runtimes=yes
6791 darwin* | rhapsody*)
6792 if test "$GXX" = yes ; then
6793 archive_cmds_need_lc=no
6795 rhapsody* | darwin1.[012])
6796 allow_undefined_flag='-undefined suppress'
6799 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6800 allow_undefined_flag='-flat_namespace -undefined suppress'
6802 case ${MACOSX_DEPLOYMENT_TARGET} in
6804 allow_undefined_flag='-flat_namespace -undefined suppress'
6807 allow_undefined_flag='-undefined dynamic_lookup'
6813 lt_int_apple_cc_single_mod=no
6814 output_verbose_link_cmd='echo'
6815 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
6816 lt_int_apple_cc_single_mod=yes
6818 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6819 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6821 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6823 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6824 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6825 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
6826 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6828 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6830 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}'
6832 hardcode_automatic=yes
6833 hardcode_shlibpath_var=unsupported
6834 whole_archive_flag_spec='-all_load $convenience'
6835 link_all_deplibs=yes
6842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6843 hardcode_libdir_flag_spec='-L$libdir'
6844 hardcode_shlibpath_var=no
6851 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6852 # support. Future versions do this automatically, but an explicit c++rt0.o
6853 # does not break anything, and helps significantly (at the cost of a little
6856 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6857 hardcode_libdir_flag_spec='-R$libdir'
6859 hardcode_shlibpath_var=no
6862 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6864 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6866 hardcode_minus_L=yes
6867 hardcode_shlibpath_var=no
6870 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6871 freebsd* | kfreebsd*-gnu)
6872 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6873 hardcode_libdir_flag_spec='-R$libdir'
6875 hardcode_shlibpath_var=no
6879 if test "$GCC" = yes; then
6880 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'
6882 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'
6884 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6885 hardcode_libdir_separator=:
6888 # hardcode_minus_L: Not really in the search PATH,
6889 # but as the default location of the library.
6890 hardcode_minus_L=yes
6891 export_dynamic_flag_spec='${wl}-E'
6895 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6898 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6901 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6907 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6910 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6914 if test "$with_gnu_ld" = no; then
6917 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6918 hardcode_libdir_flag_spec_ld='+b $libdir'
6919 hardcode_libdir_separator=:
6921 hardcode_shlibpath_var=no
6924 hardcode_libdir_flag_spec='-L$libdir'
6926 hardcode_shlibpath_var=no
6928 # hardcode_minus_L: Not really in the search PATH,
6929 # but as the default location of the library.
6930 hardcode_minus_L=yes
6933 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6934 hardcode_libdir_separator=:
6936 export_dynamic_flag_spec='${wl}-E'
6938 # hardcode_minus_L: Not really in the search PATH,
6939 # but as the default location of the library.
6940 hardcode_minus_L=yes
6946 irix5* | irix6* | nonstopux*)
6947 if test "$GCC" = yes; then
6948 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'
6950 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'
6951 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6954 hardcode_libdir_separator=:
6955 link_all_deplibs=yes
6958 netbsd* | knetbsd*-gnu)
6959 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6960 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6962 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6964 hardcode_libdir_flag_spec='-R$libdir'
6966 hardcode_shlibpath_var=no
6970 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6972 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6973 hardcode_libdir_separator=:
6974 hardcode_shlibpath_var=no
6979 hardcode_shlibpath_var=no
6980 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6981 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6982 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6983 export_dynamic_flag_spec='${wl}-E'
6986 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6987 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6988 hardcode_libdir_flag_spec='-R$libdir'
6991 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6992 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6999 hardcode_libdir_flag_spec='-L$libdir'
7000 hardcode_minus_L=yes
7001 allow_undefined_flag=unsupported
7002 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'
7003 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7007 if test "$GCC" = yes; then
7008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7009 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'
7011 allow_undefined_flag=' -expect_unresolved \*'
7012 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'
7014 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7015 hardcode_libdir_separator=:
7018 osf4* | osf5*) # as osf3* with the addition of -msym flag
7019 if test "$GCC" = yes; then
7020 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7021 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'
7022 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7024 allow_undefined_flag=' -expect_unresolved \*'
7025 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'
7026 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7027 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7029 # Both c and cxx compiler support -rpath directly
7030 hardcode_libdir_flag_spec='-rpath $libdir'
7032 hardcode_libdir_separator=:
7036 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7037 hardcode_shlibpath_var=no
7038 export_dynamic_flag_spec='${wl}-Bexport'
7039 runpath_var=LD_RUN_PATH
7040 hardcode_runpath_var=yes
7044 no_undefined_flag=' -z text'
7045 if test "$GCC" = yes; then
7046 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7047 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7048 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7050 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7051 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7052 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7054 hardcode_libdir_flag_spec='-R$libdir'
7055 hardcode_shlibpath_var=no
7057 solaris2.[0-5] | solaris2.[0-5].*) ;;
7058 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7059 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7061 link_all_deplibs=yes
7065 if test "x$host_vendor" = xsequent; then
7066 # Use $CC to link under sequent, because it throws in some extra .o
7067 # files that make .init and .fini sections work.
7068 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7070 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7072 hardcode_libdir_flag_spec='-L$libdir'
7074 hardcode_minus_L=yes
7075 hardcode_shlibpath_var=no
7079 case $host_vendor in
7081 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7082 hardcode_direct=yes # is this really true???
7085 ## LD is ld it makes a PLAMLIB
7086 ## CC just makes a GrossModule.
7087 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7088 reload_cmds='$CC -r -o $output$reload_objs'
7092 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7093 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7096 runpath_var='LD_RUN_PATH'
7097 hardcode_shlibpath_var=no
7101 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7102 hardcode_shlibpath_var=no
7103 export_dynamic_flag_spec='-Bexport'
7107 if test -d /usr/nec; then
7108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7109 hardcode_shlibpath_var=no
7110 runpath_var=LD_RUN_PATH
7111 hardcode_runpath_var=yes
7117 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7120 hardcode_shlibpath_var=no
7121 hardcode_runpath_var=yes
7122 runpath_var=LD_RUN_PATH
7125 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7126 no_undefined_flag='${wl}-z ${wl}text'
7127 if test "$GCC" = yes; then
7128 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7130 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7132 runpath_var='LD_RUN_PATH'
7133 hardcode_shlibpath_var=no
7137 no_undefined_flag=' -z text'
7138 # $CC -shared without GNU ld will not create a library from C++
7139 # object files and a static libstdc++, better avoid it by now
7140 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7141 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7142 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7143 hardcode_libdir_flag_spec=
7144 hardcode_shlibpath_var=no
7145 runpath_var='LD_RUN_PATH'
7149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7150 hardcode_libdir_flag_spec='-L$libdir'
7151 hardcode_shlibpath_var=no
7160 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7161 echo "${ECHO_T}$ld_shlibs" >&6
7162 test "$ld_shlibs" = no && can_build_shared=no
7164 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7165 if test "$GCC" = yes; then
7166 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7170 # Do we need to explicitly link libc?
7172 case "x$archive_cmds_need_lc" in
7174 # Assume -lc should be added
7175 archive_cmds_need_lc=yes
7177 if test "$enable_shared" = yes && test "$GCC" = yes; then
7178 case $archive_cmds in
7180 # FIXME: we may have to deal with multi-command sequences.
7183 # Test whether the compiler implicitly links with -lc since on some
7184 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7185 # to ld, don't add -lc before -lgcc.
7186 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7187 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7189 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7192 (eval $ac_compile) 2>&5
7194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7195 (exit $ac_status); } 2>conftest.err; then
7198 libobjs=conftest.$ac_objext
7200 wl=$lt_prog_compiler_wl
7206 lt_save_allow_undefined_flag=$allow_undefined_flag
7207 allow_undefined_flag=
7208 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7209 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); }
7214 archive_cmds_need_lc=no
7216 archive_cmds_need_lc=yes
7218 allow_undefined_flag=$lt_save_allow_undefined_flag
7220 cat conftest.err 1>&5
7223 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7224 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7231 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7232 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7234 libname_spec='lib$name'
7242 shlibpath_overrides_runpath=unknown
7244 dynamic_linker="$host_os ld.so"
7245 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7246 if test "$GCC" = yes; then
7247 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7248 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7249 # if the path contains ";" then we assume it to be the separator
7250 # otherwise default to the standard path separator (i.e. ":") - it is
7251 # assumed that no part of a normal pathname contains ";" but that should
7252 # okay in the real world where ";" in dirpaths is itself problematic.
7253 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7255 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7258 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7260 need_lib_prefix=unknown
7261 hardcode_into_libs=no
7263 # when you set need_version to no, make sure it does not cause -set_version
7264 # flags to be left without arguments
7265 need_version=unknown
7270 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7271 shlibpath_var=LIBPATH
7273 # AIX 3 has no versioning support, so we append a major version to the name.
7274 soname_spec='${libname}${release}${shared_ext}$major'
7281 hardcode_into_libs=yes
7282 if test "$host_cpu" = ia64; then
7283 # AIX 5 supports IA64
7284 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7285 shlibpath_var=LD_LIBRARY_PATH
7287 # With GCC up to 2.95.x, collect2 would create an import file
7288 # for dependence libraries. The import file would start with
7289 # the line `#! .'. This would cause the generated library to
7290 # depend on `.', always an invalid library. This was fixed in
7291 # development snapshots of GCC prior to 3.0.
7293 aix4 | aix4.[01] | aix4.[01].*)
7294 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7296 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7303 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7304 # soname into executable. Probably we can add versioning support to
7305 # collect2, so additional links can be useful in future.
7306 if test "$aix_use_runtimelinking" = yes; then
7307 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7308 # instead of lib<name>.a to let people know that these are not
7309 # typical AIX shared libraries.
7310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7312 # We preserve .a as extension for shared libraries through AIX4.2
7313 # and later when we are not doing run time linking.
7314 library_names_spec='${libname}${release}.a $libname.a'
7315 soname_spec='${libname}${release}${shared_ext}$major'
7317 shlibpath_var=LIBPATH
7322 library_names_spec='$libname.ixlibrary $libname.a'
7323 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7324 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'
7328 library_names_spec='${libname}${shared_ext}'
7329 dynamic_linker="$host_os ld.so"
7330 shlibpath_var=LIBRARY_PATH
7336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7337 soname_spec='${libname}${release}${shared_ext}$major'
7338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7339 shlibpath_var=LD_LIBRARY_PATH
7340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7342 # the default ld.so.conf also contains /usr/contrib/lib and
7343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7344 # libtool to hard-code these into programs
7347 cygwin* | mingw* | pw32*)
7348 version_type=windows
7353 case $GCC,$host_os in
7354 yes,cygwin* | yes,mingw* | yes,pw32*)
7355 library_names_spec='$libname.dll.a'
7356 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7357 postinstall_cmds='base_file=`basename \${file}`~
7358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7359 dldir=$destdir/`dirname \$dlpath`~
7360 test -d \$dldir || mkdir -p \$dldir~
7361 $install_prog $dir/$dlname \$dldir/$dlname'
7362 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7363 dlpath=$dir/\$dldll~
7365 shlibpath_overrides_runpath=yes
7369 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7370 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7371 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7374 # MinGW DLLs use traditional 'lib' prefix
7375 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7376 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7377 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7378 # It is most probably a Windows format PATH printed by
7379 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7380 # path with ; separators, and with drive letters. We can handle the
7381 # drive letters (cygwin fileutils understands them), so leave them,
7382 # especially as we might pass files found there to a mingw objdump,
7383 # which wouldn't understand a cygwinified path. Ahh.
7384 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7390 # pw32 DLLs use 'pw' prefix rather than 'lib'
7391 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7397 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7400 dynamic_linker='Win32 ld.exe'
7401 # FIXME: first we should search . and the directory the executable is in
7405 darwin* | rhapsody*)
7406 dynamic_linker="$host_os dyld"
7410 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7411 soname_spec='${libname}${release}${major}$shared_ext'
7412 shlibpath_overrides_runpath=yes
7413 shlibpath_var=DYLD_LIBRARY_PATH
7414 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7415 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7416 if test "$GCC" = yes; then
7417 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"`
7419 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7421 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7429 soname_spec='${libname}${release}${shared_ext}$major'
7430 shlibpath_var=LD_LIBRARY_PATH
7441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7442 soname_spec='${libname}${release}${shared_ext}$major'
7443 shlibpath_var=LD_LIBRARY_PATH
7444 shlibpath_overrides_runpath=no
7445 hardcode_into_libs=yes
7446 dynamic_linker='GNU ld.so'
7450 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7451 version_type=freebsd-$objformat
7452 case $version_type in
7454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7459 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7463 shlibpath_var=LD_LIBRARY_PATH
7466 shlibpath_overrides_runpath=yes
7468 freebsd3.01* | freebsdelf3.01*)
7469 shlibpath_overrides_runpath=yes
7470 hardcode_into_libs=yes
7473 shlibpath_overrides_runpath=no
7474 hardcode_into_libs=yes
7483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7484 soname_spec='${libname}${release}${shared_ext}$major'
7485 shlibpath_var=LD_LIBRARY_PATH
7486 hardcode_into_libs=yes
7489 hpux9* | hpux10* | hpux11*)
7490 # Give a soname corresponding to the major version so that dld.sl refuses to
7491 # link against other versions.
7498 hardcode_into_libs=yes
7499 dynamic_linker="$host_os dld.so"
7500 shlibpath_var=LD_LIBRARY_PATH
7501 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7503 soname_spec='${libname}${release}${shared_ext}$major'
7504 if test "X$HPUX_IA64_MODE" = X32; then
7505 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7507 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7509 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7513 hardcode_into_libs=yes
7514 dynamic_linker="$host_os dld.sl"
7515 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7516 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7518 soname_spec='${libname}${release}${shared_ext}$major'
7519 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7520 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7524 dynamic_linker="$host_os dld.sl"
7525 shlibpath_var=SHLIB_PATH
7526 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7528 soname_spec='${libname}${release}${shared_ext}$major'
7531 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7532 postinstall_cmds='chmod 555 $lib'
7535 irix5* | irix6* | nonstopux*)
7537 nonstopux*) version_type=nonstopux ;;
7539 if test "$lt_cv_prog_gnu_ld" = yes; then
7547 soname_spec='${libname}${release}${shared_ext}$major'
7548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7550 irix5* | nonstopux*)
7554 case $LD in # libtool.m4 will add one of these switches to LD
7555 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7556 libsuff= shlibsuff= libmagic=32-bit;;
7557 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7558 libsuff=32 shlibsuff=N32 libmagic=N32;;
7559 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7560 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7561 *) libsuff= shlibsuff= libmagic=never-match;;
7565 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7566 shlibpath_overrides_runpath=no
7567 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7568 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7569 hardcode_into_libs=yes
7572 # No shared lib support for Linux oldld, aout, or coff.
7573 linux*oldld* | linux*aout* | linux*coff*)
7577 # This must be Linux ELF.
7582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7583 soname_spec='${libname}${release}${shared_ext}$major'
7584 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7585 shlibpath_var=LD_LIBRARY_PATH
7586 shlibpath_overrides_runpath=no
7587 # This implies no fast_install, which is unacceptable.
7588 # Some rework will be needed to allow for fast_install
7589 # before this can be enabled.
7590 hardcode_into_libs=yes
7592 # Append ld.so.conf contents to the search path
7593 if test -f /etc/ld.so.conf; then
7594 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7595 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7598 # We used to test for /lib/ld.so.1 and disable shared libraries on
7599 # powerpc, because MkLinux only supported shared libraries with the
7600 # GNU dynamic linker. Since this was broken with cross compilers,
7601 # most powerpc-linux boxes support dynamic linking these days and
7602 # people can always --disable-shared, the test was removed, and we
7603 # assume the GNU/Linux dynamic linker is in use.
7604 dynamic_linker='GNU/Linux ld.so'
7611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7612 soname_spec='${libname}${release}${shared_ext}$major'
7613 shlibpath_var=LD_LIBRARY_PATH
7614 shlibpath_overrides_runpath=no
7615 hardcode_into_libs=yes
7616 dynamic_linker='GNU ld.so'
7623 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7625 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7626 dynamic_linker='NetBSD (a.out) ld.so'
7628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7629 soname_spec='${libname}${release}${shared_ext}$major'
7630 dynamic_linker='NetBSD ld.elf_so'
7632 shlibpath_var=LD_LIBRARY_PATH
7633 shlibpath_overrides_runpath=yes
7634 hardcode_into_libs=yes
7639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7640 shlibpath_var=LD_LIBRARY_PATH
7641 shlibpath_overrides_runpath=yes
7648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7649 soname_spec='${libname}${release}${shared_ext}$major'
7650 shlibpath_var=LD_LIBRARY_PATH
7651 shlibpath_overrides_runpath=yes
7658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7659 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7660 shlibpath_var=LD_LIBRARY_PATH
7661 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7663 openbsd2.[89] | openbsd2.[89].*)
7664 shlibpath_overrides_runpath=no
7667 shlibpath_overrides_runpath=yes
7671 shlibpath_overrides_runpath=yes
7676 libname_spec='$name'
7679 library_names_spec='$libname${shared_ext} $libname.a'
7680 dynamic_linker='OS/2 ld.exe'
7681 shlibpath_var=LIBPATH
7684 osf3* | osf4* | osf5*)
7688 soname_spec='${libname}${release}${shared_ext}$major'
7689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7690 shlibpath_var=LD_LIBRARY_PATH
7691 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7692 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7697 soname_spec='${libname}${release}${shared_ext}$major'
7698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7699 shlibpath_var=LD_LIBRARY_PATH
7706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7707 soname_spec='${libname}${release}${shared_ext}$major'
7708 shlibpath_var=LD_LIBRARY_PATH
7709 shlibpath_overrides_runpath=yes
7710 hardcode_into_libs=yes
7711 # ldd complains unless libraries are executable
7712 postinstall_cmds='chmod +x $lib'
7717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7718 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7719 shlibpath_var=LD_LIBRARY_PATH
7720 shlibpath_overrides_runpath=yes
7721 if test "$with_gnu_ld" = yes; then
7727 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7730 soname_spec='${libname}${release}${shared_ext}$major'
7731 shlibpath_var=LD_LIBRARY_PATH
7732 case $host_vendor in
7734 shlibpath_overrides_runpath=no
7736 export_dynamic_flag_spec='${wl}-Blargedynsym'
7737 runpath_var=LD_RUN_PATH
7745 shlibpath_overrides_runpath=no
7746 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7752 if test -d /usr/nec ;then
7754 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7755 soname_spec='$libname${shared_ext}.$major'
7756 shlibpath_var=LD_LIBRARY_PATH
7762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7763 soname_spec='${libname}${release}${shared_ext}$major'
7764 shlibpath_var=LD_LIBRARY_PATH
7771 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7772 echo "${ECHO_T}$dynamic_linker" >&6
7773 test "$dynamic_linker" = no && can_build_shared=no
7775 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7776 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7778 if test -n "$hardcode_libdir_flag_spec" || \
7779 test -n "$runpath_var " || \
7780 test "X$hardcode_automatic"="Xyes" ; then
7782 # We can hardcode non-existant directories.
7783 if test "$hardcode_direct" != no &&
7784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7785 # have to relink, otherwise we might link with an installed library
7786 # when we should be linking with a yet-to-be-installed one
7787 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7788 test "$hardcode_minus_L" != no; then
7789 # Linking always hardcodes the temporary library directory.
7790 hardcode_action=relink
7792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7793 hardcode_action=immediate
7796 # We cannot hardcode anything, or else we can only hardcode existing
7798 hardcode_action=unsupported
7800 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7801 echo "${ECHO_T}$hardcode_action" >&6
7803 if test "$hardcode_action" = relink; then
7804 # Fast installation is not supported
7805 enable_fast_install=no
7806 elif test "$shlibpath_overrides_runpath" = yes ||
7807 test "$enable_shared" = no; then
7808 # Fast installation is not necessary
7809 enable_fast_install=needless
7814 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7815 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7816 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7817 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7818 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7819 echo "$as_me:$LINENO: result: yes" >&5
7820 echo "${ECHO_T}yes" >&6
7822 # FIXME - insert some real tests, host_os isn't really good enough
7825 if test -n "$STRIP" ; then
7826 striplib="$STRIP -x"
7827 echo "$as_me:$LINENO: result: yes" >&5
7828 echo "${ECHO_T}yes" >&6
7830 echo "$as_me:$LINENO: result: no" >&5
7831 echo "${ECHO_T}no" >&6
7835 echo "$as_me:$LINENO: result: no" >&5
7836 echo "${ECHO_T}no" >&6
7841 if test "x$enable_dlopen" != xyes; then
7842 enable_dlopen=unknown
7843 enable_dlopen_self=unknown
7844 enable_dlopen_self_static=unknown
7851 lt_cv_dlopen="load_add_on"
7853 lt_cv_dlopen_self=yes
7857 lt_cv_dlopen="LoadLibrary"
7862 lt_cv_dlopen="dlopen"
7867 # if libdl is installed we need to link against it
7868 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7869 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7870 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 ac_check_lib_save_LIBS=$LIBS
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7882 /* Override any gcc2 internal prototype to avoid an error. */
7886 /* We use char because int might match the return type of a gcc2
7887 builtin and then its argument prototype would still apply. */
7897 rm -f conftest.$ac_objext conftest$ac_exeext
7898 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7899 (eval $ac_link) 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } &&
7906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); }; } &&
7912 { ac_try='test -s conftest$ac_exeext'
7913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7917 (exit $ac_status); }; }; then
7918 ac_cv_lib_dl_dlopen=yes
7920 echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7923 ac_cv_lib_dl_dlopen=no
7925 rm -f conftest.err conftest.$ac_objext \
7926 conftest$ac_exeext conftest.$ac_ext
7927 LIBS=$ac_check_lib_save_LIBS
7929 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7930 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7931 if test $ac_cv_lib_dl_dlopen = yes; then
7932 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7937 lt_cv_dlopen_self=yes
7944 echo "$as_me:$LINENO: checking for shl_load" >&5
7945 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7946 if test "${ac_cv_func_shl_load+set}" = set; then
7947 echo $ECHO_N "(cached) $ECHO_C" >&6
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7955 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7957 #define shl_load innocuous_shl_load
7959 /* System header to define __stub macros and hopefully few prototypes,
7960 which can conflict with char shl_load (); below.
7961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7962 <limits.h> exists even on freestanding compilers. */
7965 # include <limits.h>
7967 # include <assert.h>
7972 /* Override any gcc2 internal prototype to avoid an error. */
7977 /* We use char because int might match the return type of a gcc2
7978 builtin and then its argument prototype would still apply. */
7980 /* The GNU C library defines this for functions which it implements
7981 to always fail with ENOSYS. Some functions are actually named
7982 something starting with __ and the normal name is an alias. */
7983 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7986 char (*f) () = shl_load;
7995 return f != shl_load;
8000 rm -f conftest.$ac_objext conftest$ac_exeext
8001 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8002 (eval $ac_link) 2>conftest.er1
8004 grep -v '^ *+' conftest.er1 >conftest.err
8006 cat conftest.err >&5
8007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8008 (exit $ac_status); } &&
8009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8014 (exit $ac_status); }; } &&
8015 { ac_try='test -s conftest$ac_exeext'
8016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8020 (exit $ac_status); }; }; then
8021 ac_cv_func_shl_load=yes
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8026 ac_cv_func_shl_load=no
8028 rm -f conftest.err conftest.$ac_objext \
8029 conftest$ac_exeext conftest.$ac_ext
8031 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8032 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8033 if test $ac_cv_func_shl_load = yes; then
8034 lt_cv_dlopen="shl_load"
8036 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8037 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8038 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8039 echo $ECHO_N "(cached) $ECHO_C" >&6
8041 ac_check_lib_save_LIBS=$LIBS
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8050 /* Override any gcc2 internal prototype to avoid an error. */
8054 /* We use char because int might match the return type of a gcc2
8055 builtin and then its argument prototype would still apply. */
8065 rm -f conftest.$ac_objext conftest$ac_exeext
8066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8067 (eval $ac_link) 2>conftest.er1
8069 grep -v '^ *+' conftest.er1 >conftest.err
8071 cat conftest.err >&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } &&
8074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8079 (exit $ac_status); }; } &&
8080 { ac_try='test -s conftest$ac_exeext'
8081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8085 (exit $ac_status); }; }; then
8086 ac_cv_lib_dld_shl_load=yes
8088 echo "$as_me: failed program was:" >&5
8089 sed 's/^/| /' conftest.$ac_ext >&5
8091 ac_cv_lib_dld_shl_load=no
8093 rm -f conftest.err conftest.$ac_objext \
8094 conftest$ac_exeext conftest.$ac_ext
8095 LIBS=$ac_check_lib_save_LIBS
8097 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8098 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8099 if test $ac_cv_lib_dld_shl_load = yes; then
8100 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8102 echo "$as_me:$LINENO: checking for dlopen" >&5
8103 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8104 if test "${ac_cv_func_dlopen+set}" = set; then
8105 echo $ECHO_N "(cached) $ECHO_C" >&6
8107 cat >conftest.$ac_ext <<_ACEOF
8110 cat confdefs.h >>conftest.$ac_ext
8111 cat >>conftest.$ac_ext <<_ACEOF
8112 /* end confdefs.h. */
8113 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8114 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8115 #define dlopen innocuous_dlopen
8117 /* System header to define __stub macros and hopefully few prototypes,
8118 which can conflict with char dlopen (); below.
8119 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8120 <limits.h> exists even on freestanding compilers. */
8123 # include <limits.h>
8125 # include <assert.h>
8130 /* Override any gcc2 internal prototype to avoid an error. */
8135 /* We use char because int might match the return type of a gcc2
8136 builtin and then its argument prototype would still apply. */
8138 /* The GNU C library defines this for functions which it implements
8139 to always fail with ENOSYS. Some functions are actually named
8140 something starting with __ and the normal name is an alias. */
8141 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8144 char (*f) () = dlopen;
8158 rm -f conftest.$ac_objext conftest$ac_exeext
8159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8160 (eval $ac_link) 2>conftest.er1
8162 grep -v '^ *+' conftest.er1 >conftest.err
8164 cat conftest.err >&5
8165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8166 (exit $ac_status); } &&
8167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); }; } &&
8173 { ac_try='test -s conftest$ac_exeext'
8174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); }; }; then
8179 ac_cv_func_dlopen=yes
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8184 ac_cv_func_dlopen=no
8186 rm -f conftest.err conftest.$ac_objext \
8187 conftest$ac_exeext conftest.$ac_ext
8189 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8190 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8191 if test $ac_cv_func_dlopen = yes; then
8192 lt_cv_dlopen="dlopen"
8194 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8195 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8196 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8197 echo $ECHO_N "(cached) $ECHO_C" >&6
8199 ac_check_lib_save_LIBS=$LIBS
8201 cat >conftest.$ac_ext <<_ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h. */
8208 /* Override any gcc2 internal prototype to avoid an error. */
8212 /* We use char because int might match the return type of a gcc2
8213 builtin and then its argument prototype would still apply. */
8223 rm -f conftest.$ac_objext conftest$ac_exeext
8224 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8225 (eval $ac_link) 2>conftest.er1
8227 grep -v '^ *+' conftest.er1 >conftest.err
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); } &&
8232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; } &&
8238 { ac_try='test -s conftest$ac_exeext'
8239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_lib_dl_dlopen=yes
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8249 ac_cv_lib_dl_dlopen=no
8251 rm -f conftest.err conftest.$ac_objext \
8252 conftest$ac_exeext conftest.$ac_ext
8253 LIBS=$ac_check_lib_save_LIBS
8255 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8256 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8257 if test $ac_cv_lib_dl_dlopen = yes; then
8258 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8260 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8261 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8262 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8263 echo $ECHO_N "(cached) $ECHO_C" >&6
8265 ac_check_lib_save_LIBS=$LIBS
8267 cat >conftest.$ac_ext <<_ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h. */
8274 /* Override any gcc2 internal prototype to avoid an error. */
8278 /* We use char because int might match the return type of a gcc2
8279 builtin and then its argument prototype would still apply. */
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291 (eval $ac_link) 2>conftest.er1
8293 grep -v '^ *+' conftest.er1 >conftest.err
8295 cat conftest.err >&5
8296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } &&
8298 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); }; } &&
8304 { ac_try='test -s conftest$ac_exeext'
8305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8309 (exit $ac_status); }; }; then
8310 ac_cv_lib_svld_dlopen=yes
8312 echo "$as_me: failed program was:" >&5
8313 sed 's/^/| /' conftest.$ac_ext >&5
8315 ac_cv_lib_svld_dlopen=no
8317 rm -f conftest.err conftest.$ac_objext \
8318 conftest$ac_exeext conftest.$ac_ext
8319 LIBS=$ac_check_lib_save_LIBS
8321 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8322 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8323 if test $ac_cv_lib_svld_dlopen = yes; then
8324 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8326 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8327 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8328 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_check_lib_save_LIBS=$LIBS
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_lib_dld_dld_link=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_lib_dld_dld_link=no
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8389 if test $ac_cv_lib_dld_dld_link = yes; then
8390 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8411 if test "x$lt_cv_dlopen" != xno; then
8417 case $lt_cv_dlopen in
8419 save_CPPFLAGS="$CPPFLAGS"
8420 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8422 save_LDFLAGS="$LDFLAGS"
8423 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8426 LIBS="$lt_cv_dlopen_libs $LIBS"
8428 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8429 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8430 if test "${lt_cv_dlopen_self+set}" = set; then
8431 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 if test "$cross_compiling" = yes; then :
8434 lt_cv_dlopen_self=cross
8436 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8437 lt_status=$lt_dlunknown
8438 cat > conftest.$ac_ext <<EOF
8439 #line 8439 "configure"
8440 #include "confdefs.h"
8449 # define LT_DLGLOBAL RTLD_GLOBAL
8452 # define LT_DLGLOBAL DL_GLOBAL
8454 # define LT_DLGLOBAL 0
8458 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8459 find out it does not work in some platform. */
8460 #ifndef LT_DLLAZY_OR_NOW
8462 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8465 # define LT_DLLAZY_OR_NOW DL_LAZY
8468 # define LT_DLLAZY_OR_NOW RTLD_NOW
8471 # define LT_DLLAZY_OR_NOW DL_NOW
8473 # define LT_DLLAZY_OR_NOW 0
8481 extern "C" void exit (int);
8484 void fnord() { int i=42;}
8487 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8488 int status = $lt_dlunknown;
8492 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8493 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8494 /* dlclose (self); */
8500 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8501 (eval $ac_link) 2>&5
8503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8504 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8505 (./conftest; exit; ) 2>/dev/null
8508 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8509 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8510 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8513 # compilation failed
8514 lt_cv_dlopen_self=no
8521 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8522 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8524 if test "x$lt_cv_dlopen_self" = xyes; then
8525 LDFLAGS="$LDFLAGS $link_static_flag"
8526 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8527 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8528 if test "${lt_cv_dlopen_self_static+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8531 if test "$cross_compiling" = yes; then :
8532 lt_cv_dlopen_self_static=cross
8534 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8535 lt_status=$lt_dlunknown
8536 cat > conftest.$ac_ext <<EOF
8537 #line 8537 "configure"
8538 #include "confdefs.h"
8547 # define LT_DLGLOBAL RTLD_GLOBAL
8550 # define LT_DLGLOBAL DL_GLOBAL
8552 # define LT_DLGLOBAL 0
8556 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8557 find out it does not work in some platform. */
8558 #ifndef LT_DLLAZY_OR_NOW
8560 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8563 # define LT_DLLAZY_OR_NOW DL_LAZY
8566 # define LT_DLLAZY_OR_NOW RTLD_NOW
8569 # define LT_DLLAZY_OR_NOW DL_NOW
8571 # define LT_DLLAZY_OR_NOW 0
8579 extern "C" void exit (int);
8582 void fnord() { int i=42;}
8585 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8586 int status = $lt_dlunknown;
8590 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8591 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8592 /* dlclose (self); */
8598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8599 (eval $ac_link) 2>&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8603 (./conftest; exit; ) 2>/dev/null
8606 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8607 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8608 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8611 # compilation failed
8612 lt_cv_dlopen_self_static=no
8619 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8620 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8623 CPPFLAGS="$save_CPPFLAGS"
8624 LDFLAGS="$save_LDFLAGS"
8629 case $lt_cv_dlopen_self in
8630 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8631 *) enable_dlopen_self=unknown ;;
8634 case $lt_cv_dlopen_self_static in
8635 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8636 *) enable_dlopen_self_static=unknown ;;
8641 # Report which librarie types wil actually be built
8642 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8643 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8644 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8645 echo "${ECHO_T}$can_build_shared" >&6
8647 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8648 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8649 test "$can_build_shared" = "no" && enable_shared=no
8651 # On AIX, shared libraries and static libraries use the same namespace, and
8652 # are all built from PIC.
8655 test "$enable_shared" = yes && enable_static=no
8656 if test -n "$RANLIB"; then
8657 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8658 postinstall_cmds='$RANLIB $lib'
8663 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8664 test "$enable_shared" = yes && enable_static=no
8667 darwin* | rhapsody*)
8668 if test "$GCC" = yes; then
8669 archive_cmds_need_lc=no
8671 rhapsody* | darwin1.[012])
8672 allow_undefined_flag='-undefined suppress'
8675 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8676 allow_undefined_flag='-flat_namespace -undefined suppress'
8678 case ${MACOSX_DEPLOYMENT_TARGET} in
8680 allow_undefined_flag='-flat_namespace -undefined suppress'
8683 allow_undefined_flag='-undefined dynamic_lookup'
8689 output_verbose_link_cmd='echo'
8690 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8691 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8692 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8693 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}'
8694 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}'
8696 hardcode_automatic=yes
8697 hardcode_shlibpath_var=unsupported
8698 whole_archive_flag_spec='-all_load $convenience'
8699 link_all_deplibs=yes
8705 echo "$as_me:$LINENO: result: $enable_shared" >&5
8706 echo "${ECHO_T}$enable_shared" >&6
8708 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8709 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8710 # Make sure either enable_shared or enable_static is yes.
8711 test "$enable_shared" = yes || enable_static=yes
8712 echo "$as_me:$LINENO: result: $enable_static" >&5
8713 echo "${ECHO_T}$enable_static" >&6
8715 # The else clause should only fire when bootstrapping the
8716 # libtool distribution, otherwise you forgot to ship ltmain.sh
8717 # with your package, and you will get complaints that there are
8718 # no rules to generate ltmain.sh.
8719 if test -f "$ltmain"; then
8720 # See if we are running on zsh, and set the options which allow our commands through
8721 # without removal of \ escapes.
8722 if test -n "${ZSH_VERSION+set}" ; then
8723 setopt NO_GLOB_SUBST
8725 # Now quote all the things that may contain metacharacters while being
8726 # careful not to overquote the AC_SUBSTed values. We take copies of the
8727 # variables and quote the copies for generation of the libtool script.
8728 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8730 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8731 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8732 deplibs_check_method reload_flag reload_cmds need_locks \
8733 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8734 lt_cv_sys_global_symbol_to_c_name_address \
8735 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8736 old_postinstall_cmds old_postuninstall_cmds \
8740 lt_prog_compiler_wl \
8741 lt_prog_compiler_pic \
8742 lt_prog_compiler_static \
8743 lt_prog_compiler_no_builtin_flag \
8744 export_dynamic_flag_spec \
8745 thread_safe_flag_spec \
8746 whole_archive_flag_spec \
8747 enable_shared_with_static_runtimes \
8749 old_archive_from_new_cmds \
8754 compiler_lib_search_path \
8756 archive_expsym_cmds \
8758 postuninstall_cmds \
8759 old_archive_from_expsyms_cmds \
8760 allow_undefined_flag \
8762 export_symbols_cmds \
8763 hardcode_libdir_flag_spec \
8764 hardcode_libdir_flag_spec_ld \
8765 hardcode_libdir_separator \
8766 hardcode_automatic \
8768 module_expsym_cmds \
8769 lt_cv_prog_compiler_c_o \
8774 old_archive_cmds | \
8775 old_archive_from_new_cmds | \
8777 archive_expsym_cmds | \
8779 module_expsym_cmds | \
8780 old_archive_from_expsyms_cmds | \
8781 export_symbols_cmds | \
8782 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8783 postinstall_cmds | postuninstall_cmds | \
8784 old_postinstall_cmds | old_postuninstall_cmds | \
8785 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8786 # Double-quote double-evaled strings.
8787 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8790 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8796 *'\$0 --fallback-echo"')
8797 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8802 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8804 { echo "$as_me:$LINENO: creating $ofile" >&5
8805 echo "$as_me: creating $ofile" >&6;}
8807 cat <<__EOF__ >> "$cfgfile"
8810 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8811 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8812 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8814 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8815 # Free Software Foundation, Inc.
8817 # This file is part of GNU Libtool:
8818 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8820 # This program is free software; you can redistribute it and/or modify
8821 # it under the terms of the GNU General Public License as published by
8822 # the Free Software Foundation; either version 2 of the License, or
8823 # (at your option) any later version.
8825 # This program is distributed in the hope that it will be useful, but
8826 # WITHOUT ANY WARRANTY; without even the implied warranty of
8827 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8828 # General Public License for more details.
8830 # You should have received a copy of the GNU General Public License
8831 # along with this program; if not, write to the Free Software
8832 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8834 # As a special exception to the GNU General Public License, if you
8835 # distribute this file as part of a program that contains a
8836 # configuration script generated by Autoconf, you may include it under
8837 # the same distribution terms that you use for the rest of that program.
8839 # A sed program that does not truncate output.
8842 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8843 Xsed="$SED -e s/^X//"
8845 # The HP-UX ksh and POSIX shell print the target directory to stdout
8847 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
8849 # The names of the tagged configurations supported by this script.
8852 # ### BEGIN LIBTOOL CONFIG
8854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8856 # Shell to use when invoking shell scripts.
8859 # Whether or not to build shared libraries.
8860 build_libtool_libs=$enable_shared
8862 # Whether or not to build static libraries.
8863 build_old_libs=$enable_static
8865 # Whether or not to add -lc for building shared libraries.
8866 build_libtool_need_lc=$archive_cmds_need_lc
8868 # Whether or not to disallow shared libs when runtime libs are static
8869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8871 # Whether or not to optimize for fast installation.
8872 fast_install=$enable_fast_install
8875 host_alias=$host_alias
8878 # An echo program that does not interpret backslashes.
8883 AR_FLAGS=$lt_AR_FLAGS
8888 # A language-specific compiler.
8891 # Is the compiler the GNU C compiler?
8897 # The linker used to build libraries.
8900 # Whether we need hard or soft links.
8903 # A BSD-compatible nm program.
8906 # A symbol stripping program
8909 # Used to examine libraries when file_magic_cmd begins "file"
8910 MAGIC_CMD=$MAGIC_CMD
8912 # Used on cygwin: DLL creation program.
8915 # Used on cygwin: object dumper.
8918 # Used on cygwin: assembler.
8921 # The name of the directory that contains temporary libtool files.
8924 # How to create reloadable object files.
8925 reload_flag=$lt_reload_flag
8926 reload_cmds=$lt_reload_cmds
8928 # How to pass a linker flag through the compiler.
8929 wl=$lt_lt_prog_compiler_wl
8931 # Object file suffix (normally "o").
8934 # Old archive suffix (normally "a").
8937 # Shared library suffix (normally ".so").
8938 shrext_cmds='$shrext_cmds'
8940 # Executable file suffix (normally "").
8943 # Additional compiler flags for building library objects.
8944 pic_flag=$lt_lt_prog_compiler_pic
8947 # What is the maximum length of a command?
8948 max_cmd_len=$lt_cv_sys_max_cmd_len
8950 # Does compiler simultaneously support -c and -o options?
8951 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8953 # Must we lock files when doing compilation ?
8954 need_locks=$lt_need_locks
8956 # Do we need the lib prefix for modules?
8957 need_lib_prefix=$need_lib_prefix
8959 # Do we need a version for libraries?
8960 need_version=$need_version
8962 # Whether dlopen is supported.
8963 dlopen_support=$enable_dlopen
8965 # Whether dlopen of programs is supported.
8966 dlopen_self=$enable_dlopen_self
8968 # Whether dlopen of statically linked programs is supported.
8969 dlopen_self_static=$enable_dlopen_self_static
8971 # Compiler flag to prevent dynamic linking.
8972 link_static_flag=$lt_lt_prog_compiler_static
8974 # Compiler flag to turn off builtin functions.
8975 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8977 # Compiler flag to allow reflexive dlopens.
8978 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8980 # Compiler flag to generate shared objects directly from archives.
8981 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8983 # Compiler flag to generate thread-safe objects.
8984 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8986 # Library versioning type.
8987 version_type=$version_type
8989 # Format of library name prefix.
8990 libname_spec=$lt_libname_spec
8992 # List of archive names. First name is the real one, the rest are links.
8993 # The last name is the one that the linker finds with -lNAME.
8994 library_names_spec=$lt_library_names_spec
8996 # The coded name of the library, if different from the real name.
8997 soname_spec=$lt_soname_spec
8999 # Commands used to build and install an old-style archive.
9001 old_archive_cmds=$lt_old_archive_cmds
9002 old_postinstall_cmds=$lt_old_postinstall_cmds
9003 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9005 # Create an old-style archive from a shared archive.
9006 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9008 # Create a temporary old-style archive to link instead of a shared archive.
9009 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9011 # Commands used to build and install a shared archive.
9012 archive_cmds=$lt_archive_cmds
9013 archive_expsym_cmds=$lt_archive_expsym_cmds
9014 postinstall_cmds=$lt_postinstall_cmds
9015 postuninstall_cmds=$lt_postuninstall_cmds
9017 # Commands used to build a loadable module (assumed same as above if empty)
9018 module_cmds=$lt_module_cmds
9019 module_expsym_cmds=$lt_module_expsym_cmds
9021 # Commands to strip libraries.
9022 old_striplib=$lt_old_striplib
9023 striplib=$lt_striplib
9025 # Dependencies to place before the objects being linked to create a
9027 predep_objects=$lt_predep_objects
9029 # Dependencies to place after the objects being linked to create a
9031 postdep_objects=$lt_postdep_objects
9033 # Dependencies to place before the objects being linked to create a
9037 # Dependencies to place after the objects being linked to create a
9039 postdeps=$lt_postdeps
9041 # The library search path used internally by the compiler when linking
9043 compiler_lib_search_path=$lt_compiler_lib_search_path
9045 # Method to check whether dependent libraries are shared objects.
9046 deplibs_check_method=$lt_deplibs_check_method
9048 # Command to use when deplibs_check_method == file_magic.
9049 file_magic_cmd=$lt_file_magic_cmd
9051 # Flag that allows shared libraries with undefined symbols to be built.
9052 allow_undefined_flag=$lt_allow_undefined_flag
9054 # Flag that forces no undefined symbols.
9055 no_undefined_flag=$lt_no_undefined_flag
9057 # Commands used to finish a libtool library installation in a directory.
9058 finish_cmds=$lt_finish_cmds
9060 # Same as above, but a single script fragment to be evaled but not shown.
9061 finish_eval=$lt_finish_eval
9063 # Take the output of nm and produce a listing of raw symbols and C names.
9064 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9066 # Transform the output of nm in a proper C declaration
9067 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9069 # Transform the output of nm in a C name address pair
9070 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9072 # This is the shared library runtime path variable.
9073 runpath_var=$runpath_var
9075 # This is the shared library path variable.
9076 shlibpath_var=$shlibpath_var
9078 # Is shlibpath searched before the hard-coded library search path?
9079 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9081 # How to hardcode a shared library path into an executable.
9082 hardcode_action=$hardcode_action
9084 # Whether we should hardcode library paths into libraries.
9085 hardcode_into_libs=$hardcode_into_libs
9087 # Flag to hardcode \$libdir into a binary during linking.
9088 # This must work even if \$libdir does not exist.
9089 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9091 # If ld is used when linking, flag to hardcode \$libdir into
9092 # a binary during linking. This must work even if \$libdir does
9094 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9096 # Whether we need a single -rpath flag with a separated argument.
9097 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9099 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9101 hardcode_direct=$hardcode_direct
9103 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9105 hardcode_minus_L=$hardcode_minus_L
9107 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9108 # the resulting binary.
9109 hardcode_shlibpath_var=$hardcode_shlibpath_var
9111 # Set to yes if building a shared library automatically hardcodes DIR into the library
9112 # and all subsequent libraries and executables linked against it.
9113 hardcode_automatic=$hardcode_automatic
9115 # Variables whose values should be saved in libtool wrapper scripts and
9116 # restored at relink time.
9117 variables_saved_for_relink="$variables_saved_for_relink"
9119 # Whether libtool must link a program against all its dependency libraries.
9120 link_all_deplibs=$link_all_deplibs
9122 # Compile-time system search path for libraries
9123 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9125 # Run-time system search path for libraries
9126 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9128 # Fix the shell variable \$srcfile for the compiler.
9129 fix_srcfile_path="$fix_srcfile_path"
9131 # Set to yes if exported symbols are required.
9132 always_export_symbols=$always_export_symbols
9134 # The commands to list exported symbols.
9135 export_symbols_cmds=$lt_export_symbols_cmds
9137 # The commands to extract the exported symbol list from a shared archive.
9138 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9140 # Symbols that should not be listed in the preloaded symbols.
9141 exclude_expsyms=$lt_exclude_expsyms
9143 # Symbols that must always be exported.
9144 include_expsyms=$lt_include_expsyms
9146 # ### END LIBTOOL CONFIG
9153 cat <<\EOF >> "$cfgfile"
9155 # AIX sometimes has problems with the GCC collect2 program. For some
9156 # reason, if we set the COLLECT_NAMES environment variable, the problems
9157 # vanish in a puff of smoke.
9158 if test "X${COLLECT_NAMES+set}" != Xset; then
9160 export COLLECT_NAMES
9166 # We use sed instead of cat because bash on DJGPP gets confused if
9167 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9168 # text mode, it properly converts lines to CR/LF. This bash problem
9169 # is reportedly fixed, but why not run on old versions too?
9170 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9172 mv -f "$cfgfile" "$ofile" || \
9173 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9177 # If there is no Makefile yet, we rely on a make rule to execute
9178 # `config.status --recheck' to rerun these tests and create the
9179 # libtool script then.
9180 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9181 if test -f "$ltmain_in"; then
9182 test -f Makefile && make "$ltmain"
9188 ac_cpp='$CPP $CPPFLAGS'
9189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9196 # Check whether --with-tags or --without-tags was given.
9197 if test "${with_tags+set}" = set; then
9198 withval="$with_tags"
9202 if test -f "$ltmain" && test -n "$tagnames"; then
9203 if test ! -f "${ofile}"; then
9204 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9205 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9208 if test -z "$LTCC"; then
9209 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9210 if test -z "$LTCC"; then
9211 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9212 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9214 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9215 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9219 # Extract list of available tagged configurations in $ofile.
9220 # Note that this assumes the entire list is on one line.
9221 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9223 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9224 for tagname in $tagnames; do
9226 # Check whether tagname contains only valid characters
9227 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9229 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9230 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9231 { (exit 1); exit 1; }; }
9235 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9237 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9238 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9239 { (exit 1); exit 1; }; }
9242 # Update the list of available tags.
9243 if test -n "$tagname"; then
9244 echo appending configuration tag \"$tagname\" to $ofile
9248 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9250 ac_cpp='$CXXCPP $CPPFLAGS'
9251 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9252 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9253 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9258 archive_cmds_need_lc_CXX=no
9259 allow_undefined_flag_CXX=
9260 always_export_symbols_CXX=no
9261 archive_expsym_cmds_CXX=
9262 export_dynamic_flag_spec_CXX=
9263 hardcode_direct_CXX=no
9264 hardcode_libdir_flag_spec_CXX=
9265 hardcode_libdir_flag_spec_ld_CXX=
9266 hardcode_libdir_separator_CXX=
9267 hardcode_minus_L_CXX=no
9268 hardcode_automatic_CXX=no
9270 module_expsym_cmds_CXX=
9271 link_all_deplibs_CXX=unknown
9272 old_archive_cmds_CXX=$old_archive_cmds
9273 no_undefined_flag_CXX=
9274 whole_archive_flag_spec_CXX=
9275 enable_shared_with_static_runtimes_CXX=no
9277 # Dependencies to place before and after the object being linked:
9279 postdep_objects_CXX=
9282 compiler_lib_search_path_CXX=
9284 # Source file extension for C++ test sources.
9287 # Object file extension for compiled C++ test sources.
9291 # Code to be used in simple compile tests
9292 lt_simple_compile_test_code="int some_variable = 0;\n"
9294 # Code to be used in simple link tests
9295 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9297 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9299 # If no C compiler was specified, use CC.
9302 # Allow CC to be a program name with arguments.
9306 # Allow CC to be a program name with arguments.
9311 lt_save_with_gnu_ld=$with_gnu_ld
9312 lt_save_path_LD=$lt_cv_path_LD
9313 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9314 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9316 unset lt_cv_prog_gnu_ld
9318 if test -n "${lt_cv_path_LDCXX+set}"; then
9319 lt_cv_path_LD=$lt_cv_path_LDCXX
9323 test -z "${LDCXX+set}" || LD=$LDCXX
9327 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9329 # We don't want -fno-exception wen compiling C++ code, so set the
9330 # no_builtin_flag separately
9331 if test "$GXX" = yes; then
9332 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9334 lt_prog_compiler_no_builtin_flag_CXX=
9337 if test "$GXX" = yes; then
9338 # Set up default GNU C++ configuration
9341 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9342 if test "${with_gnu_ld+set}" = set; then
9343 withval="$with_gnu_ld"
9344 test "$withval" = no || with_gnu_ld=yes
9349 if test "$GCC" = yes; then
9350 # Check if gcc -print-prog-name=ld gives a path.
9351 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9352 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9355 # gcc leaves a trailing carriage return which upsets mingw
9356 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9358 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9361 # Accept absolute paths.
9363 re_direlt='/[^/][^/]*/\.\./'
9364 # Canonicalize the pathname of ld
9365 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9366 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9367 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9369 test -z "$LD" && LD="$ac_prog"
9372 # If it fails, then pretend we aren't using GCC.
9376 # If it is relative, then search for the first ld in PATH.
9380 elif test "$with_gnu_ld" = yes; then
9381 echo "$as_me:$LINENO: checking for GNU ld" >&5
9382 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9384 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9385 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9387 if test "${lt_cv_path_LD+set}" = set; then
9388 echo $ECHO_N "(cached) $ECHO_C" >&6
9390 if test -z "$LD"; then
9391 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9392 for ac_dir in $PATH; do
9394 test -z "$ac_dir" && ac_dir=.
9395 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9396 lt_cv_path_LD="$ac_dir/$ac_prog"
9397 # Check to see if the program is GNU ld. I'd rather use --version,
9398 # but apparently some GNU ld's only accept -v.
9399 # Break only if it was the GNU/non-GNU ld that we prefer.
9400 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9401 *GNU* | *'with BFD'*)
9402 test "$with_gnu_ld" != no && break
9405 test "$with_gnu_ld" != yes && break
9412 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9417 if test -n "$LD"; then
9418 echo "$as_me:$LINENO: result: $LD" >&5
9419 echo "${ECHO_T}$LD" >&6
9421 echo "$as_me:$LINENO: result: no" >&5
9422 echo "${ECHO_T}no" >&6
9424 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9425 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9426 { (exit 1); exit 1; }; }
9427 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9428 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9429 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9430 echo $ECHO_N "(cached) $ECHO_C" >&6
9432 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9433 case `$LD -v 2>&1 </dev/null` in
9434 *GNU* | *'with BFD'*)
9435 lt_cv_prog_gnu_ld=yes
9438 lt_cv_prog_gnu_ld=no
9442 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9443 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9444 with_gnu_ld=$lt_cv_prog_gnu_ld
9448 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9449 # archiving commands below assume that GNU ld is being used.
9450 if test "$with_gnu_ld" = yes; then
9451 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9452 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'
9454 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9455 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9457 # If archive_cmds runs LD, not CC, wlarc should be empty
9458 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9459 # investigate it a little bit more. (MM)
9462 # ancient GNU ld didn't support --whole-archive et. al.
9463 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9464 grep 'no-whole-archive' > /dev/null; then
9465 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9467 whole_archive_flag_spec_CXX=
9473 # A generic and very simple default shared library creation
9474 # command for GNU C++ for the case where it uses the native
9475 # linker, instead of GNU ld. If possible, this setting should
9476 # overridden to take advantage of the native linker features on
9477 # the platform it is being used on.
9478 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9481 # Commands to make compiler produce verbose output that lists
9482 # what "hidden" libraries, object files and flags are used when
9483 # linking a shared library.
9484 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9492 # PORTME: fill in a description of your system's C++ link characteristics
9493 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9494 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9498 # FIXME: insert proper C++ library support
9502 if test "$host_cpu" = ia64; then
9503 # On IA64, the linker does run time linking by default, so we don't
9504 # have to do anything special.
9505 aix_use_runtimelinking=no
9506 exp_sym_flag='-Bexport'
9509 aix_use_runtimelinking=no
9511 # Test if we are trying to use run time linking or normal
9512 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9513 # need to do runtime linking.
9514 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9515 for ld_flag in $LDFLAGS; do
9518 aix_use_runtimelinking=yes
9525 exp_sym_flag='-bexport'
9526 no_entry_flag='-bnoentry'
9529 # When large executables or shared objects are built, AIX ld can
9530 # have problems creating the table of contents. If linking a library
9531 # or program results in "error TOC overflow" add -mminimal-toc to
9532 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9533 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9536 hardcode_direct_CXX=yes
9537 hardcode_libdir_separator_CXX=':'
9538 link_all_deplibs_CXX=yes
9540 if test "$GXX" = yes; then
9541 case $host_os in aix4.012|aix4.012.*)
9542 # We only want to do this on AIX 4.2 and lower, the check
9543 # below for broken collect2 doesn't work under 4.3+
9544 collect2name=`${CC} -print-prog-name=collect2`
9545 if test -f "$collect2name" && \
9546 strings "$collect2name" | grep resolve_lib_name >/dev/null
9548 # We have reworked collect2
9549 hardcode_direct_CXX=yes
9551 # We have old collect2
9552 hardcode_direct_CXX=unsupported
9553 # It fails to find uninstalled libraries when the uninstalled
9554 # path is not listed in the libpath. Setting hardcode_minus_L
9555 # to unsupported forces relinking
9556 hardcode_minus_L_CXX=yes
9557 hardcode_libdir_flag_spec_CXX='-L$libdir'
9558 hardcode_libdir_separator_CXX=
9561 shared_flag='-shared'
9564 if test "$host_cpu" = ia64; then
9565 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9566 # chokes on -Wl,-G. The following line is correct:
9569 if test "$aix_use_runtimelinking" = yes; then
9570 shared_flag='${wl}-G'
9572 shared_flag='${wl}-bM:SRE'
9577 # It seems that -bexpall does not export symbols beginning with
9578 # underscore (_), so it is better to generate a list of symbols to export.
9579 always_export_symbols_CXX=yes
9580 if test "$aix_use_runtimelinking" = yes; then
9581 # Warning - without using the other runtime loading flags (-brtl),
9582 # -berok will link without error, but may produce a broken library.
9583 allow_undefined_flag_CXX='-berok'
9584 # Determine the default libpath from the value encoded in an empty executable.
9585 cat >conftest.$ac_ext <<_ACEOF
9588 cat confdefs.h >>conftest.$ac_ext
9589 cat >>conftest.$ac_ext <<_ACEOF
9590 /* end confdefs.h. */
9600 rm -f conftest.$ac_objext conftest$ac_exeext
9601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9602 (eval $ac_link) 2>conftest.er1
9604 grep -v '^ *+' conftest.er1 >conftest.err
9606 cat conftest.err >&5
9607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9608 (exit $ac_status); } &&
9609 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9614 (exit $ac_status); }; } &&
9615 { ac_try='test -s conftest$ac_exeext'
9616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9620 (exit $ac_status); }; }; then
9622 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9624 # Check for a 64-bit object if we didn't find anything.
9625 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; }
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9632 rm -f conftest.err conftest.$ac_objext \
9633 conftest$ac_exeext conftest.$ac_ext
9634 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9636 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9638 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9640 if test "$host_cpu" = ia64; then
9641 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9642 allow_undefined_flag_CXX="-z nodefs"
9643 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9645 # Determine the default libpath from the value encoded in an empty executable.
9646 cat >conftest.$ac_ext <<_ACEOF
9649 cat confdefs.h >>conftest.$ac_ext
9650 cat >>conftest.$ac_ext <<_ACEOF
9651 /* end confdefs.h. */
9661 rm -f conftest.$ac_objext conftest$ac_exeext
9662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9663 (eval $ac_link) 2>conftest.er1
9665 grep -v '^ *+' conftest.er1 >conftest.err
9667 cat conftest.err >&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); } &&
9670 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; } &&
9676 { ac_try='test -s conftest$ac_exeext'
9677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; }; then
9683 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9685 # Check for a 64-bit object if we didn't find anything.
9686 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; }
9689 echo "$as_me: failed program was:" >&5
9690 sed 's/^/| /' conftest.$ac_ext >&5
9693 rm -f conftest.err conftest.$ac_objext \
9694 conftest$ac_exeext conftest.$ac_ext
9695 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9697 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9698 # Warning - without using the other run time loading flags,
9699 # -berok will link without error, but may produce a broken library.
9700 no_undefined_flag_CXX=' ${wl}-bernotok'
9701 allow_undefined_flag_CXX=' ${wl}-berok'
9702 # -bexpall does not export symbols beginning with underscore (_)
9703 always_export_symbols_CXX=yes
9704 # Exported symbols can be pulled into shared objects from archives
9705 whole_archive_flag_spec_CXX=' '
9706 archive_cmds_need_lc_CXX=yes
9707 # This is similar to how AIX traditionally builds it's shared libraries.
9708 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9713 case $cc_basename in
9715 # FIXME: insert proper C++ library support
9721 cygwin* | mingw* | pw32*)
9722 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9723 # as there is no search path for DLLs.
9724 hardcode_libdir_flag_spec_CXX='-L$libdir'
9725 allow_undefined_flag_CXX=unsupported
9726 always_export_symbols_CXX=no
9727 enable_shared_with_static_runtimes_CXX=yes
9729 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9730 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9731 # If the export-symbols file already is a .def file (1st line
9732 # is EXPORTS), use it as is; otherwise, prepend...
9733 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9734 cp $export_symbols $output_objdir/$soname.def;
9736 echo EXPORTS > $output_objdir/$soname.def;
9737 cat $export_symbols >> $output_objdir/$soname.def;
9739 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9745 darwin* | rhapsody*)
9746 if test "$GXX" = yes; then
9747 archive_cmds_need_lc_CXX=no
9749 rhapsody* | darwin1.[012])
9750 allow_undefined_flag_CXX='-undefined suppress'
9753 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9754 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9756 case ${MACOSX_DEPLOYMENT_TARGET} in
9758 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9761 allow_undefined_flag_CXX='-undefined dynamic_lookup'
9767 lt_int_apple_cc_single_mod=no
9768 output_verbose_link_cmd='echo'
9769 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9770 lt_int_apple_cc_single_mod=yes
9772 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9773 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9775 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9777 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9779 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9780 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9781 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}'
9783 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9785 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}'
9786 hardcode_direct_CXX=no
9787 hardcode_automatic_CXX=yes
9788 hardcode_shlibpath_var_CXX=unsupported
9789 whole_archive_flag_spec_CXX='-all_load $convenience'
9790 link_all_deplibs_CXX=yes
9797 case $cc_basename in
9799 # FIXME: insert proper C++ library support
9803 # Green Hills C++ Compiler
9804 # FIXME: insert proper C++ library support
9808 # FIXME: insert proper C++ library support
9814 # C++ shared libraries reported to be fairly broken before switch to ELF
9818 archive_cmds_need_lc_CXX=no
9820 freebsd* | kfreebsd*-gnu)
9821 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9828 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9829 hardcode_libdir_separator_CXX=:
9830 export_dynamic_flag_spec_CXX='${wl}-E'
9831 hardcode_direct_CXX=yes
9832 hardcode_minus_L_CXX=yes # Not in the search PATH,
9833 # but as the default
9834 # location of the library.
9836 case $cc_basename in
9838 # FIXME: insert proper C++ library support
9842 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'
9843 # Commands to make compiler produce verbose output that lists
9844 # what "hidden" libraries, object files and flags are used when
9845 # linking a shared library.
9847 # There doesn't appear to be a way to prevent this compiler from
9848 # explicitly linking system object files so we need to strip them
9849 # from the output so that they don't get included in the library
9851 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'
9854 if test "$GXX" = yes; then
9855 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'
9857 # FIXME: insert proper C++ library support
9864 if test $with_gnu_ld = no; then
9867 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9868 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9869 hardcode_libdir_separator_CXX=:
9872 hardcode_libdir_flag_spec_CXX='-L$libdir'
9875 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9876 hardcode_libdir_separator_CXX=:
9877 export_dynamic_flag_spec_CXX='${wl}-E'
9883 hardcode_direct_CXX=no
9884 hardcode_shlibpath_var_CXX=no
9887 hardcode_direct_CXX=no
9888 hardcode_shlibpath_var_CXX=no
9889 hardcode_minus_L_CXX=yes # Not in the search PATH,
9890 # but as the default
9891 # location of the library.
9894 hardcode_direct_CXX=yes
9895 hardcode_minus_L_CXX=yes # Not in the search PATH,
9896 # but as the default
9897 # location of the library.
9901 case $cc_basename in
9903 # FIXME: insert proper C++ library support
9909 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9912 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9915 # Commands to make compiler produce verbose output that lists
9916 # what "hidden" libraries, object files and flags are used when
9917 # linking a shared library.
9919 # There doesn't appear to be a way to prevent this compiler from
9920 # explicitly linking system object files so we need to strip them
9921 # from the output so that they don't get included in the library
9923 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'
9926 if test "$GXX" = yes; then
9927 if test $with_gnu_ld = no; then
9930 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9933 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'
9938 # FIXME: insert proper C++ library support
9945 case $cc_basename in
9948 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
9950 # Archives containing C++ object files must be created using
9951 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9952 # necessary to make sure instantiated templates are included
9954 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9957 if test "$GXX" = yes; then
9958 if test "$with_gnu_ld" = no; then
9959 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
9961 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'
9964 link_all_deplibs_CXX=yes
9967 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9968 hardcode_libdir_separator_CXX=:
9971 case $cc_basename in
9973 # Kuck and Associates, Inc. (KAI) C++ Compiler
9975 # KCC will only create a shared library if the output file
9976 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9977 # to its proper name (with version) after linking.
9978 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'
9979 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'
9980 # Commands to make compiler produce verbose output that lists
9981 # what "hidden" libraries, object files and flags are used when
9982 # linking a shared library.
9984 # There doesn't appear to be a way to prevent this compiler from
9985 # explicitly linking system object files so we need to strip them
9986 # from the output so that they don't get included in the library
9988 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'
9990 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9991 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9993 # Archives containing C++ object files must be created using
9994 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9995 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10000 archive_cmds_need_lc_CXX=no
10001 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10002 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'
10003 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10005 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10010 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'
10012 runpath_var=LD_RUN_PATH
10013 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10014 hardcode_libdir_separator_CXX=:
10016 # Commands to make compiler produce verbose output that lists
10017 # what "hidden" libraries, object files and flags are used when
10018 # linking a shared library.
10020 # There doesn't appear to be a way to prevent this compiler from
10021 # explicitly linking system object files so we need to strip them
10022 # from the output so that they don't get included in the library
10024 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'
10029 # FIXME: insert proper C++ library support
10033 # FIXME: insert proper C++ library support
10037 case $cc_basename in
10039 # FIXME: insert proper C++ library support
10043 # FIXME: insert proper C++ library support
10048 netbsd* | knetbsd*-gnu)
10049 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10050 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10052 hardcode_libdir_flag_spec_CXX='-R$libdir'
10053 hardcode_direct_CXX=yes
10054 hardcode_shlibpath_var_CXX=no
10056 # Workaround some broken pre-1.5 toolchains
10057 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10060 case $cc_basename in
10062 # Kuck and Associates, Inc. (KAI) C++ Compiler
10064 # KCC will only create a shared library if the output file
10065 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10066 # to its proper name (with version) after linking.
10067 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'
10069 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10070 hardcode_libdir_separator_CXX=:
10072 # Archives containing C++ object files must be created using
10073 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10074 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10078 # Rational C++ 2.4.1
10079 # FIXME: insert proper C++ library support
10083 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10084 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10086 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10087 hardcode_libdir_separator_CXX=:
10089 # Commands to make compiler produce verbose output that lists
10090 # what "hidden" libraries, object files and flags are used when
10091 # linking a shared library.
10093 # There doesn't appear to be a way to prevent this compiler from
10094 # explicitly linking system object files so we need to strip them
10095 # from the output so that they don't get included in the library
10097 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'
10100 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10101 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10102 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10104 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10105 hardcode_libdir_separator_CXX=:
10107 # Commands to make compiler produce verbose output that lists
10108 # what "hidden" libraries, object files and flags are used when
10109 # linking a shared library.
10110 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10113 # FIXME: insert proper C++ library support
10120 case $cc_basename in
10122 # Kuck and Associates, Inc. (KAI) C++ Compiler
10124 # KCC will only create a shared library if the output file
10125 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10126 # to its proper name (with version) after linking.
10127 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'
10129 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10130 hardcode_libdir_separator_CXX=:
10132 # Archives containing C++ object files must be created using
10133 # the KAI C++ compiler.
10134 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10137 # Rational C++ 2.4.1
10138 # FIXME: insert proper C++ library support
10142 allow_undefined_flag_CXX=' -expect_unresolved \*'
10143 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10144 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10145 echo "-hidden">> $lib.exp~
10146 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10149 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10150 hardcode_libdir_separator_CXX=:
10152 # Commands to make compiler produce verbose output that lists
10153 # what "hidden" libraries, object files and flags are used when
10154 # linking a shared library.
10156 # There doesn't appear to be a way to prevent this compiler from
10157 # explicitly linking system object files so we need to strip them
10158 # from the output so that they don't get included in the library
10160 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'
10163 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10164 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10165 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10167 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10168 hardcode_libdir_separator_CXX=:
10170 # Commands to make compiler produce verbose output that lists
10171 # what "hidden" libraries, object files and flags are used when
10172 # linking a shared library.
10173 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10176 # FIXME: insert proper C++ library support
10183 # FIXME: insert proper C++ library support
10187 archive_cmds_need_lc_CXX=no
10188 case $cc_basename in
10190 # FIXME: insert proper C++ library support
10194 # FIXME: insert proper C++ library support
10200 case $cc_basename in
10203 # FIXME: insert proper C++ library support
10208 # FIXME: insert proper C++ library support
10212 # FIXME: insert proper C++ library support
10218 case $cc_basename in
10220 # Sun C++ 4.2, 5.x and Centerline C++
10221 no_undefined_flag_CXX=' -zdefs'
10222 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10223 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10224 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10226 hardcode_libdir_flag_spec_CXX='-R$libdir'
10227 hardcode_shlibpath_var_CXX=no
10229 solaris2.0-5 | solaris2.0-5.*) ;;
10231 # The C++ compiler is used as linker so we must use $wl
10232 # flag to pass the commands to the underlying system
10234 # Supported since Solaris 2.6 (maybe 2.5.1?)
10235 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10238 link_all_deplibs_CXX=yes
10240 # Commands to make compiler produce verbose output that lists
10241 # what "hidden" libraries, object files and flags are used when
10242 # linking a shared library.
10244 # There doesn't appear to be a way to prevent this compiler from
10245 # explicitly linking system object files so we need to strip them
10246 # from the output so that they don't get included in the library
10248 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10250 # Archives containing C++ object files must be created using
10251 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10252 # necessary to make sure instantiated templates are included
10254 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10257 # Green Hills C++ Compiler
10258 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10260 # The C++ compiler must be used to create the archive.
10261 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10264 # GNU C++ compiler with Solaris linker
10265 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10266 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10267 if $CC --version | grep -v '^2\.7' > /dev/null; then
10268 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10269 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10270 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10272 # Commands to make compiler produce verbose output that lists
10273 # what "hidden" libraries, object files and flags are used when
10274 # linking a shared library.
10275 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10277 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10279 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10280 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10281 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10283 # Commands to make compiler produce verbose output that lists
10284 # what "hidden" libraries, object files and flags are used when
10285 # linking a shared library.
10286 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10289 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10294 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10295 archive_cmds_need_lc_CXX=no
10298 case $cc_basename in
10300 # NonStop-UX NCC 3.20
10301 # FIXME: insert proper C++ library support
10305 # FIXME: insert proper C++ library support
10311 # FIXME: insert proper C++ library support
10315 # FIXME: insert proper C++ library support
10319 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10320 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10321 test "$ld_shlibs_CXX" = no && can_build_shared=no
10327 cat > conftest.$ac_ext <<EOF
10331 Foo (void) { a = 0; }
10337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10338 (eval $ac_compile) 2>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); }; then
10342 # Parse the compiler output and extract the necessary
10343 # objects, libraries and library flags.
10345 # Sentinel used to keep track of whether or not we are before
10346 # the conftest object file.
10347 pre_test_object_deps_done=no
10349 # The `*' in the case matches for architectures that use `case' in
10350 # $output_verbose_cmd can trigger glob expansion during the loop
10351 # eval without this substitution.
10352 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10354 for p in `eval $output_verbose_link_cmd`; do
10358 # Some compilers place space between "-{L,R}" and the path.
10359 # Remove the space.
10360 if test $p = "-L" \
10361 || test $p = "-R"; then
10368 if test "$pre_test_object_deps_done" = no; then
10371 # Internal compiler library paths should come after those
10372 # provided the user. The postdeps already come after the
10373 # user supplied libs so there is no need to process them.
10374 if test -z "$compiler_lib_search_path_CXX"; then
10375 compiler_lib_search_path_CXX="${prev}${p}"
10377 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10380 # The "-l" case would never come before the object being
10381 # linked, so don't bother handling this case.
10384 if test -z "$postdeps_CXX"; then
10385 postdeps_CXX="${prev}${p}"
10387 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10393 # This assumes that the test object file only shows up
10394 # once in the compiler output.
10395 if test "$p" = "conftest.$objext"; then
10396 pre_test_object_deps_done=yes
10400 if test "$pre_test_object_deps_done" = no; then
10401 if test -z "$predep_objects_CXX"; then
10402 predep_objects_CXX="$p"
10404 predep_objects_CXX="$predep_objects_CXX $p"
10407 if test -z "$postdep_objects_CXX"; then
10408 postdep_objects_CXX="$p"
10410 postdep_objects_CXX="$postdep_objects_CXX $p"
10415 *) ;; # Ignore the rest.
10423 echo "libtool.m4: error: problem compiling CXX test program"
10426 $rm -f confest.$objext
10428 case " $postdeps_CXX " in
10429 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10432 lt_prog_compiler_wl_CXX=
10433 lt_prog_compiler_pic_CXX=
10434 lt_prog_compiler_static_CXX=
10436 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10437 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10439 # C++ specific cases for pic, static, wl, etc.
10440 if test "$GXX" = yes; then
10441 lt_prog_compiler_wl_CXX='-Wl,'
10442 lt_prog_compiler_static_CXX='-static'
10446 # All AIX code is PIC.
10447 if test "$host_cpu" = ia64; then
10448 # AIX 5 now supports IA64 processor
10449 lt_prog_compiler_static_CXX='-Bstatic'
10453 # FIXME: we need at least 68020 code to build shared libraries, but
10454 # adding the `-m68020' flag to GCC prevents building anything better,
10456 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10458 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10459 # PIC is the default for these OSes.
10461 mingw* | os2* | pw32*)
10462 # This hack is so that the source file can tell whether it is being
10463 # built for inclusion in a dll (and should export symbols for example).
10464 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10466 darwin* | rhapsody*)
10467 # PIC is the default on this platform
10468 # Common symbols not allowed in MH_DYLIB files
10469 lt_prog_compiler_pic_CXX='-fno-common'
10472 # DJGPP does not support shared libraries at all
10473 lt_prog_compiler_pic_CXX=
10476 if test -d /usr/nec; then
10477 lt_prog_compiler_pic_CXX=-Kconform_pic
10481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10482 # not for PA HP-UX.
10483 case "$host_cpu" in
10487 lt_prog_compiler_pic_CXX='-fPIC'
10492 lt_prog_compiler_pic_CXX='-fPIC'
10498 # All AIX code is PIC.
10499 if test "$host_cpu" = ia64; then
10500 # AIX 5 now supports IA64 processor
10501 lt_prog_compiler_static_CXX='-Bstatic'
10503 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10507 case $cc_basename in
10509 # Green Hills C++ Compiler
10510 # _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"
10515 case $cc_basename in
10517 lt_prog_compiler_pic_CXX='-KPIC'
10520 # Green Hills C++ Compiler
10521 lt_prog_compiler_pic_CXX='-pic'
10527 freebsd* | kfreebsd*-gnu)
10528 # FreeBSD uses GNU C++
10530 hpux9* | hpux10* | hpux11*)
10531 case $cc_basename in
10533 lt_prog_compiler_wl_CXX='-Wl,'
10534 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10535 if test "$host_cpu" != ia64; then
10536 lt_prog_compiler_pic_CXX='+Z'
10540 lt_prog_compiler_wl_CXX='-Wl,'
10541 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10542 case "$host_cpu" in
10547 lt_prog_compiler_pic_CXX='+Z'
10555 irix5* | irix6* | nonstopux*)
10556 case $cc_basename in
10558 lt_prog_compiler_wl_CXX='-Wl,'
10559 lt_prog_compiler_static_CXX='-non_shared'
10560 # CC pic flag -KPIC is the default.
10567 case $cc_basename in
10570 lt_prog_compiler_wl_CXX='--backend -Wl,'
10571 lt_prog_compiler_pic_CXX='-fPIC'
10575 lt_prog_compiler_wl_CXX='-Wl,'
10576 lt_prog_compiler_pic_CXX='-KPIC'
10577 lt_prog_compiler_static_CXX='-static'
10581 # Make sure the PIC flag is empty. It appears that all Alpha
10582 # Linux and Compaq Tru64 Unix objects are PIC.
10583 lt_prog_compiler_pic_CXX=
10584 lt_prog_compiler_static_CXX='-non_shared'
10595 case $cc_basename in
10597 lt_prog_compiler_pic_CXX='-W c,exportall'
10603 netbsd* | knetbsd*-gnu)
10605 osf3* | osf4* | osf5*)
10606 case $cc_basename in
10608 lt_prog_compiler_wl_CXX='--backend -Wl,'
10611 # Rational C++ 2.4.1
10612 lt_prog_compiler_pic_CXX='-pic'
10615 # Digital/Compaq C++
10616 lt_prog_compiler_wl_CXX='-Wl,'
10617 # Make sure the PIC flag is empty. It appears that all Alpha
10618 # Linux and Compaq Tru64 Unix objects are PIC.
10619 lt_prog_compiler_pic_CXX=
10620 lt_prog_compiler_static_CXX='-non_shared'
10629 case $cc_basename in
10631 lt_prog_compiler_pic_CXX='-fPIC'
10638 case $cc_basename in
10640 # Sun C++ 4.2, 5.x and Centerline C++
10641 lt_prog_compiler_pic_CXX='-KPIC'
10642 lt_prog_compiler_static_CXX='-Bstatic'
10643 lt_prog_compiler_wl_CXX='-Qoption ld '
10646 # Green Hills C++ Compiler
10647 lt_prog_compiler_pic_CXX='-PIC'
10654 case $cc_basename in
10657 lt_prog_compiler_pic_CXX='-pic'
10658 lt_prog_compiler_static_CXX='-Bstatic'
10662 lt_prog_compiler_pic_CXX='-pic'
10669 case $cc_basename in
10671 # NonStop-UX NCC 3.20
10672 lt_prog_compiler_pic_CXX='-KPIC'
10683 lt_prog_compiler_can_build_shared_CXX=no
10688 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10689 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10692 # Check to make sure the PIC flag actually works.
10694 if test -n "$lt_prog_compiler_pic_CXX"; then
10696 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10697 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10698 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10699 echo $ECHO_N "(cached) $ECHO_C" >&6
10701 lt_prog_compiler_pic_works_CXX=no
10702 ac_outfile=conftest.$ac_objext
10703 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10704 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10705 # Insert the option either (1) after the last *FLAGS variable, or
10706 # (2) before a word containing "conftest.", or (3) at the end.
10707 # Note that $ac_compile itself does not contain backslashes and begins
10708 # with a dollar sign (not a hyphen), so the echo should work correctly.
10709 # The option is referenced via a variable to avoid confusing sed.
10710 lt_compile=`echo "$ac_compile" | $SED \
10711 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10712 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10713 -e 's:$: $lt_compiler_flag:'`
10714 (eval echo "\"\$as_me:10714: $lt_compile\"" >&5)
10715 (eval "$lt_compile" 2>conftest.err)
10717 cat conftest.err >&5
10718 echo "$as_me:10718: \$? = $ac_status" >&5
10719 if (exit $ac_status) && test -s "$ac_outfile"; then
10720 # The compiler can only warn and ignore the option if not recognized
10721 # So say no if there are warnings
10722 if test ! -s conftest.err; then
10723 lt_prog_compiler_pic_works_CXX=yes
10729 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10730 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10732 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10733 case $lt_prog_compiler_pic_CXX in
10735 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10738 lt_prog_compiler_pic_CXX=
10739 lt_prog_compiler_can_build_shared_CXX=no
10744 # For platforms which do not support PIC, -DPIC is meaningless:
10746 lt_prog_compiler_pic_CXX=
10749 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10753 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10754 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10755 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10756 echo $ECHO_N "(cached) $ECHO_C" >&6
10758 lt_cv_prog_compiler_c_o_CXX=no
10759 $rm -r conftest 2>/dev/null
10763 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10765 lt_compiler_flag="-o out/conftest2.$ac_objext"
10766 # Insert the option either (1) after the last *FLAGS variable, or
10767 # (2) before a word containing "conftest.", or (3) at the end.
10768 # Note that $ac_compile itself does not contain backslashes and begins
10769 # with a dollar sign (not a hyphen), so the echo should work correctly.
10770 lt_compile=`echo "$ac_compile" | $SED \
10771 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10772 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10773 -e 's:$: $lt_compiler_flag:'`
10774 (eval echo "\"\$as_me:10774: $lt_compile\"" >&5)
10775 (eval "$lt_compile" 2>out/conftest.err)
10777 cat out/conftest.err >&5
10778 echo "$as_me:10778: \$? = $ac_status" >&5
10779 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10781 # The compiler can only warn and ignore the option if not recognized
10782 # So say no if there are warnings
10783 if test ! -s out/conftest.err; then
10784 lt_cv_prog_compiler_c_o_CXX=yes
10789 # SGI C++ compiler will create directory out/ii_files/ for
10790 # template instantiation
10791 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10792 $rm out/* && rmdir out
10798 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10799 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10802 hard_links="nottested"
10803 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10804 # do not overwrite the value of need_locks provided by the user
10805 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10806 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10809 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10811 ln conftest.a conftest.b 2>&5 || hard_links=no
10812 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10813 echo "$as_me:$LINENO: result: $hard_links" >&5
10814 echo "${ECHO_T}$hard_links" >&6
10815 if test "$hard_links" = no; then
10816 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10817 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10824 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10825 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10827 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10830 # If we're using GNU nm, then we don't want the "-C" option.
10831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10833 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'
10835 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'
10839 export_symbols_cmds_CXX="$ltdll_cmds"
10842 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10845 link_all_deplibs_CXX=no
10848 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10852 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10853 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10854 test "$ld_shlibs_CXX" = no && can_build_shared=no
10856 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10857 if test "$GCC" = yes; then
10858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10862 # Do we need to explicitly link libc?
10864 case "x$archive_cmds_need_lc_CXX" in
10866 # Assume -lc should be added
10867 archive_cmds_need_lc_CXX=yes
10869 if test "$enable_shared" = yes && test "$GCC" = yes; then
10870 case $archive_cmds_CXX in
10872 # FIXME: we may have to deal with multi-command sequences.
10875 # Test whether the compiler implicitly links with -lc since on some
10876 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10877 # to ld, don't add -lc before -lgcc.
10878 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10879 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10881 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10883 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10884 (eval $ac_compile) 2>&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } 2>conftest.err; then
10890 libobjs=conftest.$ac_objext
10892 wl=$lt_prog_compiler_wl_CXX
10898 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10899 allow_undefined_flag_CXX=
10900 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10901 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); }
10906 archive_cmds_need_lc_CXX=no
10908 archive_cmds_need_lc_CXX=yes
10910 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10912 cat conftest.err 1>&5
10915 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10916 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10923 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10924 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10925 library_names_spec=
10926 libname_spec='lib$name'
10930 postuninstall_cmds=
10934 shlibpath_overrides_runpath=unknown
10936 dynamic_linker="$host_os ld.so"
10937 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10938 if test "$GCC" = yes; then
10939 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10940 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10941 # if the path contains ";" then we assume it to be the separator
10942 # otherwise default to the standard path separator (i.e. ":") - it is
10943 # assumed that no part of a normal pathname contains ";" but that should
10944 # okay in the real world where ";" in dirpaths is itself problematic.
10945 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10947 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10950 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10952 need_lib_prefix=unknown
10953 hardcode_into_libs=no
10955 # when you set need_version to no, make sure it does not cause -set_version
10956 # flags to be left without arguments
10957 need_version=unknown
10962 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10963 shlibpath_var=LIBPATH
10965 # AIX 3 has no versioning support, so we append a major version to the name.
10966 soname_spec='${libname}${release}${shared_ext}$major'
10973 hardcode_into_libs=yes
10974 if test "$host_cpu" = ia64; then
10975 # AIX 5 supports IA64
10976 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10977 shlibpath_var=LD_LIBRARY_PATH
10979 # With GCC up to 2.95.x, collect2 would create an import file
10980 # for dependence libraries. The import file would start with
10981 # the line `#! .'. This would cause the generated library to
10982 # depend on `.', always an invalid library. This was fixed in
10983 # development snapshots of GCC prior to 3.0.
10985 aix4 | aix4.[01] | aix4.[01].*)
10986 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10988 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10991 can_build_shared=no
10995 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10996 # soname into executable. Probably we can add versioning support to
10997 # collect2, so additional links can be useful in future.
10998 if test "$aix_use_runtimelinking" = yes; then
10999 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11000 # instead of lib<name>.a to let people know that these are not
11001 # typical AIX shared libraries.
11002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004 # We preserve .a as extension for shared libraries through AIX4.2
11005 # and later when we are not doing run time linking.
11006 library_names_spec='${libname}${release}.a $libname.a'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LIBPATH
11014 library_names_spec='$libname.ixlibrary $libname.a'
11015 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11016 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'
11020 library_names_spec='${libname}${shared_ext}'
11021 dynamic_linker="$host_os ld.so"
11022 shlibpath_var=LIBRARY_PATH
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11031 shlibpath_var=LD_LIBRARY_PATH
11032 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11033 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11034 # the default ld.so.conf also contains /usr/contrib/lib and
11035 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11036 # libtool to hard-code these into programs
11039 cygwin* | mingw* | pw32*)
11040 version_type=windows
11045 case $GCC,$host_os in
11046 yes,cygwin* | yes,mingw* | yes,pw32*)
11047 library_names_spec='$libname.dll.a'
11048 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11049 postinstall_cmds='base_file=`basename \${file}`~
11050 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11051 dldir=$destdir/`dirname \$dlpath`~
11052 test -d \$dldir || mkdir -p \$dldir~
11053 $install_prog $dir/$dlname \$dldir/$dlname'
11054 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11055 dlpath=$dir/\$dldll~
11057 shlibpath_overrides_runpath=yes
11061 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11062 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11063 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11066 # MinGW DLLs use traditional 'lib' prefix
11067 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11068 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11069 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11070 # It is most probably a Windows format PATH printed by
11071 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11072 # path with ; separators, and with drive letters. We can handle the
11073 # drive letters (cygwin fileutils understands them), so leave them,
11074 # especially as we might pass files found there to a mingw objdump,
11075 # which wouldn't understand a cygwinified path. Ahh.
11076 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11078 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11082 # pw32 DLLs use 'pw' prefix rather than 'lib'
11083 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11089 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11092 dynamic_linker='Win32 ld.exe'
11093 # FIXME: first we should search . and the directory the executable is in
11097 darwin* | rhapsody*)
11098 dynamic_linker="$host_os dyld"
11099 version_type=darwin
11102 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11103 soname_spec='${libname}${release}${major}$shared_ext'
11104 shlibpath_overrides_runpath=yes
11105 shlibpath_var=DYLD_LIBRARY_PATH
11106 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11107 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11108 if test "$GCC" = yes; then
11109 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"`
11111 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11113 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11121 soname_spec='${libname}${release}${shared_ext}$major'
11122 shlibpath_var=LD_LIBRARY_PATH
11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11134 soname_spec='${libname}${release}${shared_ext}$major'
11135 shlibpath_var=LD_LIBRARY_PATH
11136 shlibpath_overrides_runpath=no
11137 hardcode_into_libs=yes
11138 dynamic_linker='GNU ld.so'
11142 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11143 version_type=freebsd-$objformat
11144 case $version_type in
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11155 shlibpath_var=LD_LIBRARY_PATH
11158 shlibpath_overrides_runpath=yes
11160 freebsd3.01* | freebsdelf3.01*)
11161 shlibpath_overrides_runpath=yes
11162 hardcode_into_libs=yes
11165 shlibpath_overrides_runpath=no
11166 hardcode_into_libs=yes
11175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11176 soname_spec='${libname}${release}${shared_ext}$major'
11177 shlibpath_var=LD_LIBRARY_PATH
11178 hardcode_into_libs=yes
11181 hpux9* | hpux10* | hpux11*)
11182 # Give a soname corresponding to the major version so that dld.sl refuses to
11183 # link against other versions.
11187 case "$host_cpu" in
11190 hardcode_into_libs=yes
11191 dynamic_linker="$host_os dld.so"
11192 shlibpath_var=LD_LIBRARY_PATH
11193 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11195 soname_spec='${libname}${release}${shared_ext}$major'
11196 if test "X$HPUX_IA64_MODE" = X32; then
11197 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11199 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11201 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11205 hardcode_into_libs=yes
11206 dynamic_linker="$host_os dld.sl"
11207 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11208 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11210 soname_spec='${libname}${release}${shared_ext}$major'
11211 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11216 dynamic_linker="$host_os dld.sl"
11217 shlibpath_var=SHLIB_PATH
11218 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11220 soname_spec='${libname}${release}${shared_ext}$major'
11223 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11224 postinstall_cmds='chmod 555 $lib'
11227 irix5* | irix6* | nonstopux*)
11229 nonstopux*) version_type=nonstopux ;;
11231 if test "$lt_cv_prog_gnu_ld" = yes; then
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11242 irix5* | nonstopux*)
11243 libsuff= shlibsuff=
11246 case $LD in # libtool.m4 will add one of these switches to LD
11247 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11248 libsuff= shlibsuff= libmagic=32-bit;;
11249 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11250 libsuff=32 shlibsuff=N32 libmagic=N32;;
11251 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11252 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11253 *) libsuff= shlibsuff= libmagic=never-match;;
11257 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11258 shlibpath_overrides_runpath=no
11259 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11260 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11261 hardcode_into_libs=yes
11264 # No shared lib support for Linux oldld, aout, or coff.
11265 linux*oldld* | linux*aout* | linux*coff*)
11269 # This must be Linux ELF.
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11277 shlibpath_var=LD_LIBRARY_PATH
11278 shlibpath_overrides_runpath=no
11279 # This implies no fast_install, which is unacceptable.
11280 # Some rework will be needed to allow for fast_install
11281 # before this can be enabled.
11282 hardcode_into_libs=yes
11284 # Append ld.so.conf contents to the search path
11285 if test -f /etc/ld.so.conf; then
11286 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11287 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11290 # We used to test for /lib/ld.so.1 and disable shared libraries on
11291 # powerpc, because MkLinux only supported shared libraries with the
11292 # GNU dynamic linker. Since this was broken with cross compilers,
11293 # most powerpc-linux boxes support dynamic linking these days and
11294 # people can always --disable-shared, the test was removed, and we
11295 # assume the GNU/Linux dynamic linker is in use.
11296 dynamic_linker='GNU/Linux ld.so'
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11304 soname_spec='${libname}${release}${shared_ext}$major'
11305 shlibpath_var=LD_LIBRARY_PATH
11306 shlibpath_overrides_runpath=no
11307 hardcode_into_libs=yes
11308 dynamic_linker='GNU ld.so'
11315 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11318 dynamic_linker='NetBSD (a.out) ld.so'
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11321 soname_spec='${libname}${release}${shared_ext}$major'
11322 dynamic_linker='NetBSD ld.elf_so'
11324 shlibpath_var=LD_LIBRARY_PATH
11325 shlibpath_overrides_runpath=yes
11326 hardcode_into_libs=yes
11331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11332 shlibpath_var=LD_LIBRARY_PATH
11333 shlibpath_overrides_runpath=yes
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 shlibpath_var=LD_LIBRARY_PATH
11343 shlibpath_overrides_runpath=yes
11350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11351 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11352 shlibpath_var=LD_LIBRARY_PATH
11353 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11355 openbsd2.[89] | openbsd2.[89].*)
11356 shlibpath_overrides_runpath=no
11359 shlibpath_overrides_runpath=yes
11363 shlibpath_overrides_runpath=yes
11368 libname_spec='$name'
11371 library_names_spec='$libname${shared_ext} $libname.a'
11372 dynamic_linker='OS/2 ld.exe'
11373 shlibpath_var=LIBPATH
11376 osf3* | osf4* | osf5*)
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11384 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11389 soname_spec='${libname}${release}${shared_ext}$major'
11390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11391 shlibpath_var=LD_LIBRARY_PATH
11398 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 shlibpath_var=LD_LIBRARY_PATH
11401 shlibpath_overrides_runpath=yes
11402 hardcode_into_libs=yes
11403 # ldd complains unless libraries are executable
11404 postinstall_cmds='chmod +x $lib'
11409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11410 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11411 shlibpath_var=LD_LIBRARY_PATH
11412 shlibpath_overrides_runpath=yes
11413 if test "$with_gnu_ld" = yes; then
11419 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11422 soname_spec='${libname}${release}${shared_ext}$major'
11423 shlibpath_var=LD_LIBRARY_PATH
11424 case $host_vendor in
11426 shlibpath_overrides_runpath=no
11428 export_dynamic_flag_spec='${wl}-Blargedynsym'
11429 runpath_var=LD_RUN_PATH
11437 shlibpath_overrides_runpath=no
11438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11444 if test -d /usr/nec ;then
11446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11447 soname_spec='$libname${shared_ext}.$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11455 soname_spec='${libname}${release}${shared_ext}$major'
11456 shlibpath_var=LD_LIBRARY_PATH
11463 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11464 echo "${ECHO_T}$dynamic_linker" >&6
11465 test "$dynamic_linker" = no && can_build_shared=no
11467 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11468 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11469 hardcode_action_CXX=
11470 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11471 test -n "$runpath_var CXX" || \
11472 test "X$hardcode_automatic_CXX"="Xyes" ; then
11474 # We can hardcode non-existant directories.
11475 if test "$hardcode_direct_CXX" != no &&
11476 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11477 # have to relink, otherwise we might link with an installed library
11478 # when we should be linking with a yet-to-be-installed one
11479 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11480 test "$hardcode_minus_L_CXX" != no; then
11481 # Linking always hardcodes the temporary library directory.
11482 hardcode_action_CXX=relink
11484 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11485 hardcode_action_CXX=immediate
11488 # We cannot hardcode anything, or else we can only hardcode existing
11490 hardcode_action_CXX=unsupported
11492 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11493 echo "${ECHO_T}$hardcode_action_CXX" >&6
11495 if test "$hardcode_action_CXX" = relink; then
11496 # Fast installation is not supported
11497 enable_fast_install=no
11498 elif test "$shlibpath_overrides_runpath" = yes ||
11499 test "$enable_shared" = no; then
11500 # Fast installation is not necessary
11501 enable_fast_install=needless
11506 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11507 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11508 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11509 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11510 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11511 echo "$as_me:$LINENO: result: yes" >&5
11512 echo "${ECHO_T}yes" >&6
11514 # FIXME - insert some real tests, host_os isn't really good enough
11517 if test -n "$STRIP" ; then
11518 striplib="$STRIP -x"
11519 echo "$as_me:$LINENO: result: yes" >&5
11520 echo "${ECHO_T}yes" >&6
11522 echo "$as_me:$LINENO: result: no" >&5
11523 echo "${ECHO_T}no" >&6
11527 echo "$as_me:$LINENO: result: no" >&5
11528 echo "${ECHO_T}no" >&6
11533 if test "x$enable_dlopen" != xyes; then
11534 enable_dlopen=unknown
11535 enable_dlopen_self=unknown
11536 enable_dlopen_self_static=unknown
11543 lt_cv_dlopen="load_add_on"
11545 lt_cv_dlopen_self=yes
11549 lt_cv_dlopen="LoadLibrary"
11554 lt_cv_dlopen="dlopen"
11559 # if libdl is installed we need to link against it
11560 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11561 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11562 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11565 ac_check_lib_save_LIBS=$LIBS
11567 cat >conftest.$ac_ext <<_ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11574 /* Override any gcc2 internal prototype to avoid an error. */
11578 /* We use char because int might match the return type of a gcc2
11579 builtin and then its argument prototype would still apply. */
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11591 (eval $ac_link) 2>conftest.er1
11593 grep -v '^ *+' conftest.er1 >conftest.err
11595 cat conftest.err >&5
11596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597 (exit $ac_status); } &&
11598 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11600 (eval $ac_try) 2>&5
11602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11603 (exit $ac_status); }; } &&
11604 { ac_try='test -s conftest$ac_exeext'
11605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11606 (eval $ac_try) 2>&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); }; }; then
11610 ac_cv_lib_dl_dlopen=yes
11612 echo "$as_me: failed program was:" >&5
11613 sed 's/^/| /' conftest.$ac_ext >&5
11615 ac_cv_lib_dl_dlopen=no
11617 rm -f conftest.err conftest.$ac_objext \
11618 conftest$ac_exeext conftest.$ac_ext
11619 LIBS=$ac_check_lib_save_LIBS
11621 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11622 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11623 if test $ac_cv_lib_dl_dlopen = yes; then
11624 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11627 lt_cv_dlopen="dyld"
11629 lt_cv_dlopen_self=yes
11636 echo "$as_me:$LINENO: checking for shl_load" >&5
11637 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11638 if test "${ac_cv_func_shl_load+set}" = set; then
11639 echo $ECHO_N "(cached) $ECHO_C" >&6
11641 cat >conftest.$ac_ext <<_ACEOF
11644 cat confdefs.h >>conftest.$ac_ext
11645 cat >>conftest.$ac_ext <<_ACEOF
11646 /* end confdefs.h. */
11647 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11649 #define shl_load innocuous_shl_load
11651 /* System header to define __stub macros and hopefully few prototypes,
11652 which can conflict with char shl_load (); below.
11653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11654 <limits.h> exists even on freestanding compilers. */
11657 # include <limits.h>
11659 # include <assert.h>
11664 /* Override any gcc2 internal prototype to avoid an error. */
11669 /* We use char because int might match the return type of a gcc2
11670 builtin and then its argument prototype would still apply. */
11672 /* The GNU C library defines this for functions which it implements
11673 to always fail with ENOSYS. Some functions are actually named
11674 something starting with __ and the normal name is an alias. */
11675 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11678 char (*f) () = shl_load;
11687 return f != shl_load;
11692 rm -f conftest.$ac_objext conftest$ac_exeext
11693 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11694 (eval $ac_link) 2>conftest.er1
11696 grep -v '^ *+' conftest.er1 >conftest.err
11698 cat conftest.err >&5
11699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11700 (exit $ac_status); } &&
11701 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11703 (eval $ac_try) 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; } &&
11707 { ac_try='test -s conftest$ac_exeext'
11708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11709 (eval $ac_try) 2>&5
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); }; }; then
11713 ac_cv_func_shl_load=yes
11715 echo "$as_me: failed program was:" >&5
11716 sed 's/^/| /' conftest.$ac_ext >&5
11718 ac_cv_func_shl_load=no
11720 rm -f conftest.err conftest.$ac_objext \
11721 conftest$ac_exeext conftest.$ac_ext
11723 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11724 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11725 if test $ac_cv_func_shl_load = yes; then
11726 lt_cv_dlopen="shl_load"
11728 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11729 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11730 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11733 ac_check_lib_save_LIBS=$LIBS
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11742 /* Override any gcc2 internal prototype to avoid an error. */
11746 /* We use char because int might match the return type of a gcc2
11747 builtin and then its argument prototype would still apply. */
11757 rm -f conftest.$ac_objext conftest$ac_exeext
11758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11759 (eval $ac_link) 2>conftest.er1
11761 grep -v '^ *+' conftest.er1 >conftest.err
11763 cat conftest.err >&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); } &&
11766 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; }; then
11778 ac_cv_lib_dld_shl_load=yes
11780 echo "$as_me: failed program was:" >&5
11781 sed 's/^/| /' conftest.$ac_ext >&5
11783 ac_cv_lib_dld_shl_load=no
11785 rm -f conftest.err conftest.$ac_objext \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11790 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11791 if test $ac_cv_lib_dld_shl_load = yes; then
11792 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11794 echo "$as_me:$LINENO: checking for dlopen" >&5
11795 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11796 if test "${ac_cv_func_dlopen+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11807 #define dlopen innocuous_dlopen
11809 /* System header to define __stub macros and hopefully few prototypes,
11810 which can conflict with char dlopen (); below.
11811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11812 <limits.h> exists even on freestanding compilers. */
11815 # include <limits.h>
11817 # include <assert.h>
11822 /* Override any gcc2 internal prototype to avoid an error. */
11827 /* We use char because int might match the return type of a gcc2
11828 builtin and then its argument prototype would still apply. */
11830 /* The GNU C library defines this for functions which it implements
11831 to always fail with ENOSYS. Some functions are actually named
11832 something starting with __ and the normal name is an alias. */
11833 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11836 char (*f) () = dlopen;
11845 return f != dlopen;
11850 rm -f conftest.$ac_objext conftest$ac_exeext
11851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11852 (eval $ac_link) 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } &&
11859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11861 (eval $ac_try) 2>&5
11863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11864 (exit $ac_status); }; } &&
11865 { ac_try='test -s conftest$ac_exeext'
11866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11867 (eval $ac_try) 2>&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); }; }; then
11871 ac_cv_func_dlopen=yes
11873 echo "$as_me: failed program was:" >&5
11874 sed 's/^/| /' conftest.$ac_ext >&5
11876 ac_cv_func_dlopen=no
11878 rm -f conftest.err conftest.$ac_objext \
11879 conftest$ac_exeext conftest.$ac_ext
11881 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11882 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11883 if test $ac_cv_func_dlopen = yes; then
11884 lt_cv_dlopen="dlopen"
11886 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11887 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11888 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11889 echo $ECHO_N "(cached) $ECHO_C" >&6
11891 ac_check_lib_save_LIBS=$LIBS
11893 cat >conftest.$ac_ext <<_ACEOF
11896 cat confdefs.h >>conftest.$ac_ext
11897 cat >>conftest.$ac_ext <<_ACEOF
11898 /* end confdefs.h. */
11900 /* Override any gcc2 internal prototype to avoid an error. */
11904 /* We use char because int might match the return type of a gcc2
11905 builtin and then its argument prototype would still apply. */
11915 rm -f conftest.$ac_objext conftest$ac_exeext
11916 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11917 (eval $ac_link) 2>conftest.er1
11919 grep -v '^ *+' conftest.er1 >conftest.err
11921 cat conftest.err >&5
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); } &&
11924 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; } &&
11930 { ac_try='test -s conftest$ac_exeext'
11931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11932 (eval $ac_try) 2>&5
11934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11935 (exit $ac_status); }; }; then
11936 ac_cv_lib_dl_dlopen=yes
11938 echo "$as_me: failed program was:" >&5
11939 sed 's/^/| /' conftest.$ac_ext >&5
11941 ac_cv_lib_dl_dlopen=no
11943 rm -f conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11949 if test $ac_cv_lib_dl_dlopen = yes; then
11950 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11952 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11955 echo $ECHO_N "(cached) $ECHO_C" >&6
11957 ac_check_lib_save_LIBS=$LIBS
11958 LIBS="-lsvld $LIBS"
11959 cat >conftest.$ac_ext <<_ACEOF
11962 cat confdefs.h >>conftest.$ac_ext
11963 cat >>conftest.$ac_ext <<_ACEOF
11964 /* end confdefs.h. */
11966 /* Override any gcc2 internal prototype to avoid an error. */
11970 /* We use char because int might match the return type of a gcc2
11971 builtin and then its argument prototype would still apply. */
11981 rm -f conftest.$ac_objext conftest$ac_exeext
11982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11983 (eval $ac_link) 2>conftest.er1
11985 grep -v '^ *+' conftest.er1 >conftest.err
11987 cat conftest.err >&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); } &&
11990 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11992 (eval $ac_try) 2>&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); }; } &&
11996 { ac_try='test -s conftest$ac_exeext'
11997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11998 (eval $ac_try) 2>&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); }; }; then
12002 ac_cv_lib_svld_dlopen=yes
12004 echo "$as_me: failed program was:" >&5
12005 sed 's/^/| /' conftest.$ac_ext >&5
12007 ac_cv_lib_svld_dlopen=no
12009 rm -f conftest.err conftest.$ac_objext \
12010 conftest$ac_exeext conftest.$ac_ext
12011 LIBS=$ac_check_lib_save_LIBS
12013 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12014 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12015 if test $ac_cv_lib_svld_dlopen = yes; then
12016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12018 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12019 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12020 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 ac_check_lib_save_LIBS=$LIBS
12025 cat >conftest.$ac_ext <<_ACEOF
12028 cat confdefs.h >>conftest.$ac_ext
12029 cat >>conftest.$ac_ext <<_ACEOF
12030 /* end confdefs.h. */
12032 /* Override any gcc2 internal prototype to avoid an error. */
12036 /* We use char because int might match the return type of a gcc2
12037 builtin and then its argument prototype would still apply. */
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12049 (eval $ac_link) 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } &&
12056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12058 (eval $ac_try) 2>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); }; } &&
12062 { ac_try='test -s conftest$ac_exeext'
12063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12064 (eval $ac_try) 2>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); }; }; then
12068 ac_cv_lib_dld_dld_link=yes
12070 echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12073 ac_cv_lib_dld_dld_link=no
12075 rm -f conftest.err conftest.$ac_objext \
12076 conftest$ac_exeext conftest.$ac_ext
12077 LIBS=$ac_check_lib_save_LIBS
12079 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12080 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12081 if test $ac_cv_lib_dld_dld_link = yes; then
12082 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12103 if test "x$lt_cv_dlopen" != xno; then
12109 case $lt_cv_dlopen in
12111 save_CPPFLAGS="$CPPFLAGS"
12112 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12114 save_LDFLAGS="$LDFLAGS"
12115 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12118 LIBS="$lt_cv_dlopen_libs $LIBS"
12120 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12121 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12122 if test "${lt_cv_dlopen_self+set}" = set; then
12123 echo $ECHO_N "(cached) $ECHO_C" >&6
12125 if test "$cross_compiling" = yes; then :
12126 lt_cv_dlopen_self=cross
12128 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12129 lt_status=$lt_dlunknown
12130 cat > conftest.$ac_ext <<EOF
12131 #line 12131 "configure"
12132 #include "confdefs.h"
12141 # define LT_DLGLOBAL RTLD_GLOBAL
12144 # define LT_DLGLOBAL DL_GLOBAL
12146 # define LT_DLGLOBAL 0
12150 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12151 find out it does not work in some platform. */
12152 #ifndef LT_DLLAZY_OR_NOW
12154 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12157 # define LT_DLLAZY_OR_NOW DL_LAZY
12160 # define LT_DLLAZY_OR_NOW RTLD_NOW
12163 # define LT_DLLAZY_OR_NOW DL_NOW
12165 # define LT_DLLAZY_OR_NOW 0
12173 extern "C" void exit (int);
12176 void fnord() { int i=42;}
12179 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12180 int status = $lt_dlunknown;
12184 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12185 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12186 /* dlclose (self); */
12192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12193 (eval $ac_link) 2>&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12197 (./conftest; exit; ) 2>/dev/null
12199 case x$lt_status in
12200 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12201 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12202 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12205 # compilation failed
12206 lt_cv_dlopen_self=no
12213 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12214 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12216 if test "x$lt_cv_dlopen_self" = xyes; then
12217 LDFLAGS="$LDFLAGS $link_static_flag"
12218 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12219 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12220 if test "${lt_cv_dlopen_self_static+set}" = set; then
12221 echo $ECHO_N "(cached) $ECHO_C" >&6
12223 if test "$cross_compiling" = yes; then :
12224 lt_cv_dlopen_self_static=cross
12226 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12227 lt_status=$lt_dlunknown
12228 cat > conftest.$ac_ext <<EOF
12229 #line 12229 "configure"
12230 #include "confdefs.h"
12239 # define LT_DLGLOBAL RTLD_GLOBAL
12242 # define LT_DLGLOBAL DL_GLOBAL
12244 # define LT_DLGLOBAL 0
12248 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12249 find out it does not work in some platform. */
12250 #ifndef LT_DLLAZY_OR_NOW
12252 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12255 # define LT_DLLAZY_OR_NOW DL_LAZY
12258 # define LT_DLLAZY_OR_NOW RTLD_NOW
12261 # define LT_DLLAZY_OR_NOW DL_NOW
12263 # define LT_DLLAZY_OR_NOW 0
12271 extern "C" void exit (int);
12274 void fnord() { int i=42;}
12277 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12278 int status = $lt_dlunknown;
12282 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12283 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284 /* dlclose (self); */
12290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12291 (eval $ac_link) 2>&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12295 (./conftest; exit; ) 2>/dev/null
12297 case x$lt_status in
12298 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12299 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12300 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12303 # compilation failed
12304 lt_cv_dlopen_self_static=no
12311 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12312 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12315 CPPFLAGS="$save_CPPFLAGS"
12316 LDFLAGS="$save_LDFLAGS"
12321 case $lt_cv_dlopen_self in
12322 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12323 *) enable_dlopen_self=unknown ;;
12326 case $lt_cv_dlopen_self_static in
12327 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12328 *) enable_dlopen_self_static=unknown ;;
12333 # The else clause should only fire when bootstrapping the
12334 # libtool distribution, otherwise you forgot to ship ltmain.sh
12335 # with your package, and you will get complaints that there are
12336 # no rules to generate ltmain.sh.
12337 if test -f "$ltmain"; then
12338 # See if we are running on zsh, and set the options which allow our commands through
12339 # without removal of \ escapes.
12340 if test -n "${ZSH_VERSION+set}" ; then
12341 setopt NO_GLOB_SUBST
12343 # Now quote all the things that may contain metacharacters while being
12344 # careful not to overquote the AC_SUBSTed values. We take copies of the
12345 # variables and quote the copies for generation of the libtool script.
12346 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12348 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12349 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12350 deplibs_check_method reload_flag reload_cmds need_locks \
12351 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12352 lt_cv_sys_global_symbol_to_c_name_address \
12353 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12354 old_postinstall_cmds old_postuninstall_cmds \
12358 lt_prog_compiler_wl_CXX \
12359 lt_prog_compiler_pic_CXX \
12360 lt_prog_compiler_static_CXX \
12361 lt_prog_compiler_no_builtin_flag_CXX \
12362 export_dynamic_flag_spec_CXX \
12363 thread_safe_flag_spec_CXX \
12364 whole_archive_flag_spec_CXX \
12365 enable_shared_with_static_runtimes_CXX \
12366 old_archive_cmds_CXX \
12367 old_archive_from_new_cmds_CXX \
12368 predep_objects_CXX \
12369 postdep_objects_CXX \
12372 compiler_lib_search_path_CXX \
12374 archive_expsym_cmds_CXX \
12375 postinstall_cmds_CXX \
12376 postuninstall_cmds_CXX \
12377 old_archive_from_expsyms_cmds_CXX \
12378 allow_undefined_flag_CXX \
12379 no_undefined_flag_CXX \
12380 export_symbols_cmds_CXX \
12381 hardcode_libdir_flag_spec_CXX \
12382 hardcode_libdir_flag_spec_ld_CXX \
12383 hardcode_libdir_separator_CXX \
12384 hardcode_automatic_CXX \
12386 module_expsym_cmds_CXX \
12387 lt_cv_prog_compiler_c_o_CXX \
12388 exclude_expsyms_CXX \
12389 include_expsyms_CXX; do
12392 old_archive_cmds_CXX | \
12393 old_archive_from_new_cmds_CXX | \
12394 archive_cmds_CXX | \
12395 archive_expsym_cmds_CXX | \
12396 module_cmds_CXX | \
12397 module_expsym_cmds_CXX | \
12398 old_archive_from_expsyms_cmds_CXX | \
12399 export_symbols_cmds_CXX | \
12400 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12401 postinstall_cmds | postuninstall_cmds | \
12402 old_postinstall_cmds | old_postuninstall_cmds | \
12403 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12404 # Double-quote double-evaled strings.
12405 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12408 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12414 *'\$0 --fallback-echo"')
12415 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12421 cat <<__EOF__ >> "$cfgfile"
12422 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12424 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12426 # Shell to use when invoking shell scripts.
12429 # Whether or not to build shared libraries.
12430 build_libtool_libs=$enable_shared
12432 # Whether or not to build static libraries.
12433 build_old_libs=$enable_static
12435 # Whether or not to add -lc for building shared libraries.
12436 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12438 # Whether or not to disallow shared libs when runtime libs are static
12439 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12441 # Whether or not to optimize for fast installation.
12442 fast_install=$enable_fast_install
12445 host_alias=$host_alias
12448 # An echo program that does not interpret backslashes.
12453 AR_FLAGS=$lt_AR_FLAGS
12458 # A language-specific compiler.
12459 CC=$lt_compiler_CXX
12461 # Is the compiler the GNU C compiler?
12467 # The linker used to build libraries.
12470 # Whether we need hard or soft links.
12473 # A BSD-compatible nm program.
12476 # A symbol stripping program
12479 # Used to examine libraries when file_magic_cmd begins "file"
12480 MAGIC_CMD=$MAGIC_CMD
12482 # Used on cygwin: DLL creation program.
12485 # Used on cygwin: object dumper.
12488 # Used on cygwin: assembler.
12491 # The name of the directory that contains temporary libtool files.
12494 # How to create reloadable object files.
12495 reload_flag=$lt_reload_flag
12496 reload_cmds=$lt_reload_cmds
12498 # How to pass a linker flag through the compiler.
12499 wl=$lt_lt_prog_compiler_wl_CXX
12501 # Object file suffix (normally "o").
12502 objext="$ac_objext"
12504 # Old archive suffix (normally "a").
12507 # Shared library suffix (normally ".so").
12508 shrext_cmds='$shrext_cmds'
12510 # Executable file suffix (normally "").
12513 # Additional compiler flags for building library objects.
12514 pic_flag=$lt_lt_prog_compiler_pic_CXX
12517 # What is the maximum length of a command?
12518 max_cmd_len=$lt_cv_sys_max_cmd_len
12520 # Does compiler simultaneously support -c and -o options?
12521 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12523 # Must we lock files when doing compilation ?
12524 need_locks=$lt_need_locks
12526 # Do we need the lib prefix for modules?
12527 need_lib_prefix=$need_lib_prefix
12529 # Do we need a version for libraries?
12530 need_version=$need_version
12532 # Whether dlopen is supported.
12533 dlopen_support=$enable_dlopen
12535 # Whether dlopen of programs is supported.
12536 dlopen_self=$enable_dlopen_self
12538 # Whether dlopen of statically linked programs is supported.
12539 dlopen_self_static=$enable_dlopen_self_static
12541 # Compiler flag to prevent dynamic linking.
12542 link_static_flag=$lt_lt_prog_compiler_static_CXX
12544 # Compiler flag to turn off builtin functions.
12545 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12547 # Compiler flag to allow reflexive dlopens.
12548 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12550 # Compiler flag to generate shared objects directly from archives.
12551 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12553 # Compiler flag to generate thread-safe objects.
12554 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12556 # Library versioning type.
12557 version_type=$version_type
12559 # Format of library name prefix.
12560 libname_spec=$lt_libname_spec
12562 # List of archive names. First name is the real one, the rest are links.
12563 # The last name is the one that the linker finds with -lNAME.
12564 library_names_spec=$lt_library_names_spec
12566 # The coded name of the library, if different from the real name.
12567 soname_spec=$lt_soname_spec
12569 # Commands used to build and install an old-style archive.
12571 old_archive_cmds=$lt_old_archive_cmds_CXX
12572 old_postinstall_cmds=$lt_old_postinstall_cmds
12573 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12575 # Create an old-style archive from a shared archive.
12576 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12578 # Create a temporary old-style archive to link instead of a shared archive.
12579 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12581 # Commands used to build and install a shared archive.
12582 archive_cmds=$lt_archive_cmds_CXX
12583 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12584 postinstall_cmds=$lt_postinstall_cmds
12585 postuninstall_cmds=$lt_postuninstall_cmds
12587 # Commands used to build a loadable module (assumed same as above if empty)
12588 module_cmds=$lt_module_cmds_CXX
12589 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12591 # Commands to strip libraries.
12592 old_striplib=$lt_old_striplib
12593 striplib=$lt_striplib
12595 # Dependencies to place before the objects being linked to create a
12597 predep_objects=$lt_predep_objects_CXX
12599 # Dependencies to place after the objects being linked to create a
12601 postdep_objects=$lt_postdep_objects_CXX
12603 # Dependencies to place before the objects being linked to create a
12605 predeps=$lt_predeps_CXX
12607 # Dependencies to place after the objects being linked to create a
12609 postdeps=$lt_postdeps_CXX
12611 # The library search path used internally by the compiler when linking
12612 # a shared library.
12613 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12615 # Method to check whether dependent libraries are shared objects.
12616 deplibs_check_method=$lt_deplibs_check_method
12618 # Command to use when deplibs_check_method == file_magic.
12619 file_magic_cmd=$lt_file_magic_cmd
12621 # Flag that allows shared libraries with undefined symbols to be built.
12622 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12624 # Flag that forces no undefined symbols.
12625 no_undefined_flag=$lt_no_undefined_flag_CXX
12627 # Commands used to finish a libtool library installation in a directory.
12628 finish_cmds=$lt_finish_cmds
12630 # Same as above, but a single script fragment to be evaled but not shown.
12631 finish_eval=$lt_finish_eval
12633 # Take the output of nm and produce a listing of raw symbols and C names.
12634 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12636 # Transform the output of nm in a proper C declaration
12637 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12639 # Transform the output of nm in a C name address pair
12640 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12642 # This is the shared library runtime path variable.
12643 runpath_var=$runpath_var
12645 # This is the shared library path variable.
12646 shlibpath_var=$shlibpath_var
12648 # Is shlibpath searched before the hard-coded library search path?
12649 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12651 # How to hardcode a shared library path into an executable.
12652 hardcode_action=$hardcode_action_CXX
12654 # Whether we should hardcode library paths into libraries.
12655 hardcode_into_libs=$hardcode_into_libs
12657 # Flag to hardcode \$libdir into a binary during linking.
12658 # This must work even if \$libdir does not exist.
12659 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12661 # If ld is used when linking, flag to hardcode \$libdir into
12662 # a binary during linking. This must work even if \$libdir does
12664 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12666 # Whether we need a single -rpath flag with a separated argument.
12667 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12669 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12670 # resulting binary.
12671 hardcode_direct=$hardcode_direct_CXX
12673 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12674 # resulting binary.
12675 hardcode_minus_L=$hardcode_minus_L_CXX
12677 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12678 # the resulting binary.
12679 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12681 # Set to yes if building a shared library automatically hardcodes DIR into the library
12682 # and all subsequent libraries and executables linked against it.
12683 hardcode_automatic=$hardcode_automatic_CXX
12685 # Variables whose values should be saved in libtool wrapper scripts and
12686 # restored at relink time.
12687 variables_saved_for_relink="$variables_saved_for_relink"
12689 # Whether libtool must link a program against all its dependency libraries.
12690 link_all_deplibs=$link_all_deplibs_CXX
12692 # Compile-time system search path for libraries
12693 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12695 # Run-time system search path for libraries
12696 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12698 # Fix the shell variable \$srcfile for the compiler.
12699 fix_srcfile_path="$fix_srcfile_path_CXX"
12701 # Set to yes if exported symbols are required.
12702 always_export_symbols=$always_export_symbols_CXX
12704 # The commands to list exported symbols.
12705 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12707 # The commands to extract the exported symbol list from a shared archive.
12708 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12710 # Symbols that should not be listed in the preloaded symbols.
12711 exclude_expsyms=$lt_exclude_expsyms_CXX
12713 # Symbols that must always be exported.
12714 include_expsyms=$lt_include_expsyms_CXX
12716 # ### END LIBTOOL TAG CONFIG: $tagname
12722 # If there is no Makefile yet, we rely on a make rule to execute
12723 # `config.status --recheck' to rerun these tests and create the
12724 # libtool script then.
12725 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12726 if test -f "$ltmain_in"; then
12727 test -f Makefile && make "$ltmain"
12733 ac_cpp='$CPP $CPPFLAGS'
12734 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12735 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12736 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12742 with_gnu_ldcxx=$with_gnu_ld
12743 with_gnu_ld=$lt_save_with_gnu_ld
12744 lt_cv_path_LDCXX=$lt_cv_path_LD
12745 lt_cv_path_LD=$lt_save_path_LD
12746 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12747 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12755 if test -n "$F77" && test "X$F77" != "Xno"; then
12758 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12759 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12760 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12763 archive_cmds_need_lc_F77=no
12764 allow_undefined_flag_F77=
12765 always_export_symbols_F77=no
12766 archive_expsym_cmds_F77=
12767 export_dynamic_flag_spec_F77=
12768 hardcode_direct_F77=no
12769 hardcode_libdir_flag_spec_F77=
12770 hardcode_libdir_flag_spec_ld_F77=
12771 hardcode_libdir_separator_F77=
12772 hardcode_minus_L_F77=no
12773 hardcode_automatic_F77=no
12775 module_expsym_cmds_F77=
12776 link_all_deplibs_F77=unknown
12777 old_archive_cmds_F77=$old_archive_cmds
12778 no_undefined_flag_F77=
12779 whole_archive_flag_spec_F77=
12780 enable_shared_with_static_runtimes_F77=no
12782 # Source file extension for f77 test sources.
12785 # Object file extension for compiled f77 test sources.
12789 # Code to be used in simple compile tests
12790 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12792 # Code to be used in simple link tests
12793 lt_simple_link_test_code=" program t\n end\n"
12795 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12797 # If no C compiler was specified, use CC.
12800 # Allow CC to be a program name with arguments.
12804 # Allow CC to be a program name with arguments.
12809 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12811 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12812 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12813 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12814 echo "${ECHO_T}$can_build_shared" >&6
12816 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12817 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12818 test "$can_build_shared" = "no" && enable_shared=no
12820 # On AIX, shared libraries and static libraries use the same namespace, and
12821 # are all built from PIC.
12824 test "$enable_shared" = yes && enable_static=no
12825 if test -n "$RANLIB"; then
12826 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12827 postinstall_cmds='$RANLIB $lib'
12831 test "$enable_shared" = yes && enable_static=no
12834 echo "$as_me:$LINENO: result: $enable_shared" >&5
12835 echo "${ECHO_T}$enable_shared" >&6
12837 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12838 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12839 # Make sure either enable_shared or enable_static is yes.
12840 test "$enable_shared" = yes || enable_static=yes
12841 echo "$as_me:$LINENO: result: $enable_static" >&5
12842 echo "${ECHO_T}$enable_static" >&6
12844 test "$ld_shlibs_F77" = no && can_build_shared=no
12849 lt_prog_compiler_wl_F77=
12850 lt_prog_compiler_pic_F77=
12851 lt_prog_compiler_static_F77=
12853 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12854 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12856 if test "$GCC" = yes; then
12857 lt_prog_compiler_wl_F77='-Wl,'
12858 lt_prog_compiler_static_F77='-static'
12862 # All AIX code is PIC.
12863 if test "$host_cpu" = ia64; then
12864 # AIX 5 now supports IA64 processor
12865 lt_prog_compiler_static_F77='-Bstatic'
12870 # FIXME: we need at least 68020 code to build shared libraries, but
12871 # adding the `-m68020' flag to GCC prevents building anything better,
12873 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12876 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12877 # PIC is the default for these OSes.
12880 mingw* | pw32* | os2*)
12881 # This hack is so that the source file can tell whether it is being
12882 # built for inclusion in a dll (and should export symbols for example).
12883 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12886 darwin* | rhapsody*)
12887 # PIC is the default on this platform
12888 # Common symbols not allowed in MH_DYLIB files
12889 lt_prog_compiler_pic_F77='-fno-common'
12893 # Just because we use GCC doesn't mean we suddenly get shared libraries
12894 # on systems that don't support them.
12895 lt_prog_compiler_can_build_shared_F77=no
12900 if test -d /usr/nec; then
12901 lt_prog_compiler_pic_F77=-Kconform_pic
12906 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12907 # not for PA HP-UX.
12908 case "$host_cpu" in
12913 lt_prog_compiler_pic_F77='-fPIC'
12919 lt_prog_compiler_pic_F77='-fPIC'
12923 # PORTME Check for flag to pass linker flags through the system compiler.
12926 lt_prog_compiler_wl_F77='-Wl,'
12927 if test "$host_cpu" = ia64; then
12928 # AIX 5 now supports IA64 processor
12929 lt_prog_compiler_static_F77='-Bstatic'
12931 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12935 mingw* | pw32* | os2*)
12936 # This hack is so that the source file can tell whether it is being
12937 # built for inclusion in a dll (and should export symbols for example).
12938 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12941 hpux9* | hpux10* | hpux11*)
12942 lt_prog_compiler_wl_F77='-Wl,'
12943 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12944 # not for PA HP-UX.
12945 case "$host_cpu" in
12950 lt_prog_compiler_pic_F77='+Z'
12953 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12954 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12957 irix5* | irix6* | nonstopux*)
12958 lt_prog_compiler_wl_F77='-Wl,'
12959 # PIC (with -KPIC) is the default.
12960 lt_prog_compiler_static_F77='-non_shared'
12964 lt_prog_compiler_pic_F77='-KPIC'
12965 lt_prog_compiler_static_F77='-Bstatic'
12971 lt_prog_compiler_wl_F77='-Wl,'
12972 lt_prog_compiler_pic_F77='-KPIC'
12973 lt_prog_compiler_static_F77='-static'
12976 lt_prog_compiler_wl_F77='-Wl,'
12977 # All Alpha code is PIC.
12978 lt_prog_compiler_static_F77='-non_shared'
12983 osf3* | osf4* | osf5*)
12984 lt_prog_compiler_wl_F77='-Wl,'
12985 # All OSF/1 code is PIC.
12986 lt_prog_compiler_static_F77='-non_shared'
12990 lt_prog_compiler_pic_F77='-Kpic'
12991 lt_prog_compiler_static_F77='-dn'
12995 lt_prog_compiler_wl_F77='-Wl,'
12996 lt_prog_compiler_pic_F77='-KPIC'
12997 lt_prog_compiler_static_F77='-Bstatic'
13001 lt_prog_compiler_wl_F77='-Qoption ld '
13002 lt_prog_compiler_pic_F77='-PIC'
13003 lt_prog_compiler_static_F77='-Bstatic'
13006 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13007 lt_prog_compiler_wl_F77='-Wl,'
13008 lt_prog_compiler_pic_F77='-KPIC'
13009 lt_prog_compiler_static_F77='-Bstatic'
13013 if test -d /usr/nec ;then
13014 lt_prog_compiler_pic_F77='-Kconform_pic'
13015 lt_prog_compiler_static_F77='-Bstatic'
13020 lt_prog_compiler_pic_F77='-pic'
13021 lt_prog_compiler_static_F77='-Bstatic'
13025 lt_prog_compiler_can_build_shared_F77=no
13030 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13031 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13034 # Check to make sure the PIC flag actually works.
13036 if test -n "$lt_prog_compiler_pic_F77"; then
13038 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13039 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13040 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13041 echo $ECHO_N "(cached) $ECHO_C" >&6
13043 lt_prog_compiler_pic_works_F77=no
13044 ac_outfile=conftest.$ac_objext
13045 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13046 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13047 # Insert the option either (1) after the last *FLAGS variable, or
13048 # (2) before a word containing "conftest.", or (3) at the end.
13049 # Note that $ac_compile itself does not contain backslashes and begins
13050 # with a dollar sign (not a hyphen), so the echo should work correctly.
13051 # The option is referenced via a variable to avoid confusing sed.
13052 lt_compile=`echo "$ac_compile" | $SED \
13053 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13054 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13055 -e 's:$: $lt_compiler_flag:'`
13056 (eval echo "\"\$as_me:13056: $lt_compile\"" >&5)
13057 (eval "$lt_compile" 2>conftest.err)
13059 cat conftest.err >&5
13060 echo "$as_me:13060: \$? = $ac_status" >&5
13061 if (exit $ac_status) && test -s "$ac_outfile"; then
13062 # The compiler can only warn and ignore the option if not recognized
13063 # So say no if there are warnings
13064 if test ! -s conftest.err; then
13065 lt_prog_compiler_pic_works_F77=yes
13071 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13072 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13074 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13075 case $lt_prog_compiler_pic_F77 in
13077 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13080 lt_prog_compiler_pic_F77=
13081 lt_prog_compiler_can_build_shared_F77=no
13086 # For platforms which do not support PIC, -DPIC is meaningless:
13088 lt_prog_compiler_pic_F77=
13091 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13095 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13096 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13097 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13098 echo $ECHO_N "(cached) $ECHO_C" >&6
13100 lt_cv_prog_compiler_c_o_F77=no
13101 $rm -r conftest 2>/dev/null
13105 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13107 lt_compiler_flag="-o out/conftest2.$ac_objext"
13108 # Insert the option either (1) after the last *FLAGS variable, or
13109 # (2) before a word containing "conftest.", or (3) at the end.
13110 # Note that $ac_compile itself does not contain backslashes and begins
13111 # with a dollar sign (not a hyphen), so the echo should work correctly.
13112 lt_compile=`echo "$ac_compile" | $SED \
13113 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13114 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13115 -e 's:$: $lt_compiler_flag:'`
13116 (eval echo "\"\$as_me:13116: $lt_compile\"" >&5)
13117 (eval "$lt_compile" 2>out/conftest.err)
13119 cat out/conftest.err >&5
13120 echo "$as_me:13120: \$? = $ac_status" >&5
13121 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13123 # The compiler can only warn and ignore the option if not recognized
13124 # So say no if there are warnings
13125 if test ! -s out/conftest.err; then
13126 lt_cv_prog_compiler_c_o_F77=yes
13131 # SGI C++ compiler will create directory out/ii_files/ for
13132 # template instantiation
13133 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13134 $rm out/* && rmdir out
13140 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13141 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13144 hard_links="nottested"
13145 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13146 # do not overwrite the value of need_locks provided by the user
13147 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13148 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13151 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13153 ln conftest.a conftest.b 2>&5 || hard_links=no
13154 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13155 echo "$as_me:$LINENO: result: $hard_links" >&5
13156 echo "${ECHO_T}$hard_links" >&6
13157 if test "$hard_links" = no; then
13158 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13159 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13166 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13167 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13170 allow_undefined_flag_F77=
13171 enable_shared_with_static_runtimes_F77=no
13173 archive_expsym_cmds_F77=
13174 old_archive_From_new_cmds_F77=
13175 old_archive_from_expsyms_cmds_F77=
13176 export_dynamic_flag_spec_F77=
13177 whole_archive_flag_spec_F77=
13178 thread_safe_flag_spec_F77=
13179 hardcode_libdir_flag_spec_F77=
13180 hardcode_libdir_flag_spec_ld_F77=
13181 hardcode_libdir_separator_F77=
13182 hardcode_direct_F77=no
13183 hardcode_minus_L_F77=no
13184 hardcode_shlibpath_var_F77=unsupported
13185 link_all_deplibs_F77=unknown
13186 hardcode_automatic_F77=no
13188 module_expsym_cmds_F77=
13189 always_export_symbols_F77=no
13190 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13191 # include_expsyms should be a list of space-separated symbols to be *always*
13192 # included in the symbol list
13193 include_expsyms_F77=
13194 # exclude_expsyms can be an extended regexp of symbols to exclude
13195 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13196 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13197 # as well as any symbol that contains `d'.
13198 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13199 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13200 # platforms (ab)use it in PIC code, but their linkers get confused if
13201 # the symbol is explicitly referenced. Since portable code cannot
13202 # rely on this symbol name, it's probably fine to never include it in
13203 # preloaded symbol tables.
13204 extract_expsyms_cmds=
13207 cygwin* | mingw* | pw32*)
13208 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13209 # When not using gcc, we currently assume that we are using
13210 # Microsoft Visual C++.
13211 if test "$GCC" != yes; then
13221 if test "$with_gnu_ld" = yes; then
13222 # If archive_cmds runs LD, not CC, wlarc should be empty
13225 # See if GNU ld supports shared libraries.
13227 aix3* | aix4* | aix5*)
13228 # On AIX/PPC, the GNU linker is very broken
13229 if test "$host_cpu" != ia64; then
13233 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13234 *** to be unable to reliably create shared libraries on AIX.
13235 *** Therefore, libtool is disabling shared libraries support. If you
13236 *** really care for shared libraries, you may want to modify your PATH
13237 *** so that a non-GNU linker is found, and then restart.
13244 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)'
13245 hardcode_libdir_flag_spec_F77='-L$libdir'
13246 hardcode_minus_L_F77=yes
13248 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13249 # that the semantics of dynamic libraries on AmigaOS, at least up
13250 # to version 4, is to share data among multiple programs linked
13251 # with the same dynamic library. Since this doesn't match the
13252 # behavior of shared libraries on other platforms, we can't use
13258 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13259 allow_undefined_flag_F77=unsupported
13260 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13261 # support --undefined. This deserves some investigation. FIXME
13262 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13268 cygwin* | mingw* | pw32*)
13269 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13270 # as there is no search path for DLLs.
13271 hardcode_libdir_flag_spec_F77='-L$libdir'
13272 allow_undefined_flag_F77=unsupported
13273 always_export_symbols_F77=no
13274 enable_shared_with_static_runtimes_F77=yes
13275 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13277 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13279 # If the export-symbols file already is a .def file (1st line
13280 # is EXPORTS), use it as is; otherwise, prepend...
13281 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13282 cp $export_symbols $output_objdir/$soname.def;
13284 echo EXPORTS > $output_objdir/$soname.def;
13285 cat $export_symbols >> $output_objdir/$soname.def;
13287 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13293 netbsd* | knetbsd*-gnu)
13294 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13295 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13298 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13299 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13304 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13308 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13309 *** create shared libraries on Solaris systems. Therefore, libtool
13310 *** is disabling shared libraries support. We urge you to upgrade GNU
13311 *** binutils to release 2.9.1 or newer. Another option is to modify
13312 *** your PATH or compiler configuration so that the native linker is
13313 *** used, and then restart.
13316 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13317 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13318 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13325 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13327 hardcode_direct_F77=yes
13328 hardcode_shlibpath_var_F77=no
13332 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13333 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13334 archive_cmds_F77="$tmp_archive_cmds"
13335 supports_anon_versioning=no
13336 case `$LD -v 2>/dev/null` in
13337 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13338 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13339 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13340 *\ 2.11.*) ;; # other 2.11 versions
13341 *) supports_anon_versioning=yes ;;
13343 if test $supports_anon_versioning = yes; then
13344 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13345 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13346 $echo "local: *; };" >> $output_objdir/$libname.ver~
13347 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13349 archive_expsym_cmds_F77="$tmp_archive_cmds"
13351 link_all_deplibs_F77=no
13358 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13359 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13360 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13367 if test "$ld_shlibs_F77" = yes; then
13368 runpath_var=LD_RUN_PATH
13369 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13370 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13371 # ancient GNU ld didn't support --whole-archive et. al.
13372 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13373 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13375 whole_archive_flag_spec_F77=
13379 # PORTME fill in a description of your system's linker (not GNU ld)
13382 allow_undefined_flag_F77=unsupported
13383 always_export_symbols_F77=yes
13384 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'
13385 # Note: this linker hardcodes the directories in LIBPATH if there
13386 # are no directories specified by -L.
13387 hardcode_minus_L_F77=yes
13388 if test "$GCC" = yes && test -z "$link_static_flag"; then
13389 # Neither direct hardcoding nor static linking is supported with a
13391 hardcode_direct_F77=unsupported
13396 if test "$host_cpu" = ia64; then
13397 # On IA64, the linker does run time linking by default, so we don't
13398 # have to do anything special.
13399 aix_use_runtimelinking=no
13400 exp_sym_flag='-Bexport'
13403 # If we're using GNU nm, then we don't want the "-C" option.
13404 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13405 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13406 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'
13408 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'
13410 aix_use_runtimelinking=no
13412 # Test if we are trying to use run time linking or normal
13413 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13414 # need to do runtime linking.
13415 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13416 for ld_flag in $LDFLAGS; do
13417 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13418 aix_use_runtimelinking=yes
13424 exp_sym_flag='-bexport'
13425 no_entry_flag='-bnoentry'
13428 # When large executables or shared objects are built, AIX ld can
13429 # have problems creating the table of contents. If linking a library
13430 # or program results in "error TOC overflow" add -mminimal-toc to
13431 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13432 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13434 archive_cmds_F77=''
13435 hardcode_direct_F77=yes
13436 hardcode_libdir_separator_F77=':'
13437 link_all_deplibs_F77=yes
13439 if test "$GCC" = yes; then
13440 case $host_os in aix4.012|aix4.012.*)
13441 # We only want to do this on AIX 4.2 and lower, the check
13442 # below for broken collect2 doesn't work under 4.3+
13443 collect2name=`${CC} -print-prog-name=collect2`
13444 if test -f "$collect2name" && \
13445 strings "$collect2name" | grep resolve_lib_name >/dev/null
13447 # We have reworked collect2
13448 hardcode_direct_F77=yes
13450 # We have old collect2
13451 hardcode_direct_F77=unsupported
13452 # It fails to find uninstalled libraries when the uninstalled
13453 # path is not listed in the libpath. Setting hardcode_minus_L
13454 # to unsupported forces relinking
13455 hardcode_minus_L_F77=yes
13456 hardcode_libdir_flag_spec_F77='-L$libdir'
13457 hardcode_libdir_separator_F77=
13460 shared_flag='-shared'
13463 if test "$host_cpu" = ia64; then
13464 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13465 # chokes on -Wl,-G. The following line is correct:
13468 if test "$aix_use_runtimelinking" = yes; then
13469 shared_flag='${wl}-G'
13471 shared_flag='${wl}-bM:SRE'
13476 # It seems that -bexpall does not export symbols beginning with
13477 # underscore (_), so it is better to generate a list of symbols to export.
13478 always_export_symbols_F77=yes
13479 if test "$aix_use_runtimelinking" = yes; then
13480 # Warning - without using the other runtime loading flags (-brtl),
13481 # -berok will link without error, but may produce a broken library.
13482 allow_undefined_flag_F77='-berok'
13483 # Determine the default libpath from the value encoded in an empty executable.
13484 cat >conftest.$ac_ext <<_ACEOF
13489 rm -f conftest.$ac_objext conftest$ac_exeext
13490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13491 (eval $ac_link) 2>conftest.er1
13493 grep -v '^ *+' conftest.er1 >conftest.err
13495 cat conftest.err >&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); } &&
13498 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13500 (eval $ac_try) 2>&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); }; } &&
13504 { ac_try='test -s conftest$ac_exeext'
13505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13506 (eval $ac_try) 2>&5
13508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13509 (exit $ac_status); }; }; then
13511 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13513 # Check for a 64-bit object if we didn't find anything.
13514 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; }
13517 echo "$as_me: failed program was:" >&5
13518 sed 's/^/| /' conftest.$ac_ext >&5
13521 rm -f conftest.err conftest.$ac_objext \
13522 conftest$ac_exeext conftest.$ac_ext
13523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13525 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13526 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13528 if test "$host_cpu" = ia64; then
13529 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13530 allow_undefined_flag_F77="-z nodefs"
13531 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13533 # Determine the default libpath from the value encoded in an empty executable.
13534 cat >conftest.$ac_ext <<_ACEOF
13539 rm -f conftest.$ac_objext conftest$ac_exeext
13540 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13541 (eval $ac_link) 2>conftest.er1
13543 grep -v '^ *+' conftest.er1 >conftest.err
13545 cat conftest.err >&5
13546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13547 (exit $ac_status); } &&
13548 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13550 (eval $ac_try) 2>&5
13552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13553 (exit $ac_status); }; } &&
13554 { ac_try='test -s conftest$ac_exeext'
13555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13556 (eval $ac_try) 2>&5
13558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); }; }; then
13561 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13563 # Check for a 64-bit object if we didn't find anything.
13564 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; }
13567 echo "$as_me: failed program was:" >&5
13568 sed 's/^/| /' conftest.$ac_ext >&5
13571 rm -f conftest.err conftest.$ac_objext \
13572 conftest$ac_exeext conftest.$ac_ext
13573 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13575 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13576 # Warning - without using the other run time loading flags,
13577 # -berok will link without error, but may produce a broken library.
13578 no_undefined_flag_F77=' ${wl}-bernotok'
13579 allow_undefined_flag_F77=' ${wl}-berok'
13580 # -bexpall does not export symbols beginning with underscore (_)
13581 always_export_symbols_F77=yes
13582 # Exported symbols can be pulled into shared objects from archives
13583 whole_archive_flag_spec_F77=' '
13584 archive_cmds_need_lc_F77=yes
13585 # This is similar to how AIX traditionally builds it's shared libraries.
13586 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13592 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)'
13593 hardcode_libdir_flag_spec_F77='-L$libdir'
13594 hardcode_minus_L_F77=yes
13595 # see comment about different semantics on the GNU ld section
13600 export_dynamic_flag_spec_F77=-rdynamic
13603 cygwin* | mingw* | pw32*)
13604 # When not using gcc, we currently assume that we are using
13605 # Microsoft Visual C++.
13606 # hardcode_libdir_flag_spec is actually meaningless, as there is
13607 # no search path for DLLs.
13608 hardcode_libdir_flag_spec_F77=' '
13609 allow_undefined_flag_F77=unsupported
13610 # Tell ltmain to make .lib files, not .a files.
13612 # Tell ltmain to make .dll files, not .so files.
13614 # FIXME: Setting linknames here is a bad hack.
13615 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13616 # The linker will automatically build a .lib file if we build a DLL.
13617 old_archive_From_new_cmds_F77='true'
13618 # FIXME: Should let the user specify the lib program.
13619 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13620 fix_srcfile_path='`cygpath -w "$srcfile"`'
13621 enable_shared_with_static_runtimes_F77=yes
13624 darwin* | rhapsody*)
13625 if test "$GXX" = yes ; then
13626 archive_cmds_need_lc_F77=no
13628 rhapsody* | darwin1.[012])
13629 allow_undefined_flag_F77='-undefined suppress'
13632 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13633 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13635 case ${MACOSX_DEPLOYMENT_TARGET} in
13637 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13640 allow_undefined_flag_F77='-undefined dynamic_lookup'
13646 lt_int_apple_cc_single_mod=no
13647 output_verbose_link_cmd='echo'
13648 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13649 lt_int_apple_cc_single_mod=yes
13651 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13652 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13654 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13656 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13657 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13658 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13659 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13661 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13663 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}'
13664 hardcode_direct_F77=no
13665 hardcode_automatic_F77=yes
13666 hardcode_shlibpath_var_F77=unsupported
13667 whole_archive_flag_spec_F77='-all_load $convenience'
13668 link_all_deplibs_F77=yes
13675 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13676 hardcode_libdir_flag_spec_F77='-L$libdir'
13677 hardcode_shlibpath_var_F77=no
13684 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13685 # support. Future versions do this automatically, but an explicit c++rt0.o
13686 # does not break anything, and helps significantly (at the cost of a little
13689 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13690 hardcode_libdir_flag_spec_F77='-R$libdir'
13691 hardcode_direct_F77=yes
13692 hardcode_shlibpath_var_F77=no
13695 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13697 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13698 hardcode_direct_F77=yes
13699 hardcode_minus_L_F77=yes
13700 hardcode_shlibpath_var_F77=no
13703 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13704 freebsd* | kfreebsd*-gnu)
13705 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13706 hardcode_libdir_flag_spec_F77='-R$libdir'
13707 hardcode_direct_F77=yes
13708 hardcode_shlibpath_var_F77=no
13712 if test "$GCC" = yes; then
13713 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'
13715 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'
13717 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13718 hardcode_libdir_separator_F77=:
13719 hardcode_direct_F77=yes
13721 # hardcode_minus_L: Not really in the search PATH,
13722 # but as the default location of the library.
13723 hardcode_minus_L_F77=yes
13724 export_dynamic_flag_spec_F77='${wl}-E'
13728 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13729 case "$host_cpu" in
13731 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13734 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13738 case "$host_cpu" in
13740 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13743 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13747 if test "$with_gnu_ld" = no; then
13748 case "$host_cpu" in
13750 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13751 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13752 hardcode_libdir_separator_F77=:
13753 hardcode_direct_F77=no
13754 hardcode_shlibpath_var_F77=no
13757 hardcode_libdir_flag_spec_F77='-L$libdir'
13758 hardcode_direct_F77=no
13759 hardcode_shlibpath_var_F77=no
13761 # hardcode_minus_L: Not really in the search PATH,
13762 # but as the default location of the library.
13763 hardcode_minus_L_F77=yes
13766 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13767 hardcode_libdir_separator_F77=:
13768 hardcode_direct_F77=yes
13769 export_dynamic_flag_spec_F77='${wl}-E'
13771 # hardcode_minus_L: Not really in the search PATH,
13772 # but as the default location of the library.
13773 hardcode_minus_L_F77=yes
13779 irix5* | irix6* | nonstopux*)
13780 if test "$GCC" = yes; then
13781 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'
13783 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'
13784 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13786 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13787 hardcode_libdir_separator_F77=:
13788 link_all_deplibs_F77=yes
13791 netbsd* | knetbsd*-gnu)
13792 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13793 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13795 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13797 hardcode_libdir_flag_spec_F77='-R$libdir'
13798 hardcode_direct_F77=yes
13799 hardcode_shlibpath_var_F77=no
13803 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13804 hardcode_direct_F77=yes
13805 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13806 hardcode_libdir_separator_F77=:
13807 hardcode_shlibpath_var_F77=no
13811 hardcode_direct_F77=yes
13812 hardcode_shlibpath_var_F77=no
13813 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13814 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13815 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13816 export_dynamic_flag_spec_F77='${wl}-E'
13819 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13820 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13821 hardcode_libdir_flag_spec_F77='-R$libdir'
13824 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13825 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13832 hardcode_libdir_flag_spec_F77='-L$libdir'
13833 hardcode_minus_L_F77=yes
13834 allow_undefined_flag_F77=unsupported
13835 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'
13836 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13840 if test "$GCC" = yes; then
13841 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13842 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'
13844 allow_undefined_flag_F77=' -expect_unresolved \*'
13845 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'
13847 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13848 hardcode_libdir_separator_F77=:
13851 osf4* | osf5*) # as osf3* with the addition of -msym flag
13852 if test "$GCC" = yes; then
13853 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13854 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'
13855 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13857 allow_undefined_flag_F77=' -expect_unresolved \*'
13858 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'
13859 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~
13860 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13862 # Both c and cxx compiler support -rpath directly
13863 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13865 hardcode_libdir_separator_F77=:
13869 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13870 hardcode_shlibpath_var_F77=no
13871 export_dynamic_flag_spec_F77='${wl}-Bexport'
13872 runpath_var=LD_RUN_PATH
13873 hardcode_runpath_var=yes
13877 no_undefined_flag_F77=' -z text'
13878 if test "$GCC" = yes; then
13879 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13880 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13881 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13883 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13884 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13885 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13887 hardcode_libdir_flag_spec_F77='-R$libdir'
13888 hardcode_shlibpath_var_F77=no
13890 solaris2.[0-5] | solaris2.[0-5].*) ;;
13891 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13892 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13894 link_all_deplibs_F77=yes
13898 if test "x$host_vendor" = xsequent; then
13899 # Use $CC to link under sequent, because it throws in some extra .o
13900 # files that make .init and .fini sections work.
13901 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13903 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13905 hardcode_libdir_flag_spec_F77='-L$libdir'
13906 hardcode_direct_F77=yes
13907 hardcode_minus_L_F77=yes
13908 hardcode_shlibpath_var_F77=no
13912 case $host_vendor in
13914 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13915 hardcode_direct_F77=yes # is this really true???
13918 ## LD is ld it makes a PLAMLIB
13919 ## CC just makes a GrossModule.
13920 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13921 reload_cmds_F77='$CC -r -o $output$reload_objs'
13922 hardcode_direct_F77=no
13925 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13926 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13929 runpath_var='LD_RUN_PATH'
13930 hardcode_shlibpath_var_F77=no
13934 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13935 hardcode_shlibpath_var_F77=no
13936 export_dynamic_flag_spec_F77='-Bexport'
13940 if test -d /usr/nec; then
13941 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13942 hardcode_shlibpath_var_F77=no
13943 runpath_var=LD_RUN_PATH
13944 hardcode_runpath_var=yes
13950 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13951 hardcode_direct_F77=yes
13952 hardcode_minus_L_F77=no
13953 hardcode_shlibpath_var_F77=no
13954 hardcode_runpath_var=yes
13955 runpath_var=LD_RUN_PATH
13958 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13959 no_undefined_flag_F77='${wl}-z ${wl}text'
13960 if test "$GCC" = yes; then
13961 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13963 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13965 runpath_var='LD_RUN_PATH'
13966 hardcode_shlibpath_var_F77=no
13970 no_undefined_flag_F77=' -z text'
13971 # $CC -shared without GNU ld will not create a library from C++
13972 # object files and a static libstdc++, better avoid it by now
13973 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13974 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13976 hardcode_libdir_flag_spec_F77=
13977 hardcode_shlibpath_var_F77=no
13978 runpath_var='LD_RUN_PATH'
13982 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13983 hardcode_libdir_flag_spec_F77='-L$libdir'
13984 hardcode_shlibpath_var_F77=no
13993 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13994 echo "${ECHO_T}$ld_shlibs_F77" >&6
13995 test "$ld_shlibs_F77" = no && can_build_shared=no
13997 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13998 if test "$GCC" = yes; then
13999 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14003 # Do we need to explicitly link libc?
14005 case "x$archive_cmds_need_lc_F77" in
14007 # Assume -lc should be added
14008 archive_cmds_need_lc_F77=yes
14010 if test "$enable_shared" = yes && test "$GCC" = yes; then
14011 case $archive_cmds_F77 in
14013 # FIXME: we may have to deal with multi-command sequences.
14016 # Test whether the compiler implicitly links with -lc since on some
14017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14018 # to ld, don't add -lc before -lgcc.
14019 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14022 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14025 (eval $ac_compile) 2>&5
14027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14028 (exit $ac_status); } 2>conftest.err; then
14031 libobjs=conftest.$ac_objext
14033 wl=$lt_prog_compiler_wl_F77
14039 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14040 allow_undefined_flag_F77=
14041 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14042 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14045 (exit $ac_status); }
14047 archive_cmds_need_lc_F77=no
14049 archive_cmds_need_lc_F77=yes
14051 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14053 cat conftest.err 1>&5
14056 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14057 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14064 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14065 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14066 library_names_spec=
14067 libname_spec='lib$name'
14071 postuninstall_cmds=
14075 shlibpath_overrides_runpath=unknown
14077 dynamic_linker="$host_os ld.so"
14078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14079 if test "$GCC" = yes; then
14080 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14081 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14082 # if the path contains ";" then we assume it to be the separator
14083 # otherwise default to the standard path separator (i.e. ":") - it is
14084 # assumed that no part of a normal pathname contains ";" but that should
14085 # okay in the real world where ";" in dirpaths is itself problematic.
14086 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14088 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14091 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14093 need_lib_prefix=unknown
14094 hardcode_into_libs=no
14096 # when you set need_version to no, make sure it does not cause -set_version
14097 # flags to be left without arguments
14098 need_version=unknown
14103 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14104 shlibpath_var=LIBPATH
14106 # AIX 3 has no versioning support, so we append a major version to the name.
14107 soname_spec='${libname}${release}${shared_ext}$major'
14114 hardcode_into_libs=yes
14115 if test "$host_cpu" = ia64; then
14116 # AIX 5 supports IA64
14117 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14118 shlibpath_var=LD_LIBRARY_PATH
14120 # With GCC up to 2.95.x, collect2 would create an import file
14121 # for dependence libraries. The import file would start with
14122 # the line `#! .'. This would cause the generated library to
14123 # depend on `.', always an invalid library. This was fixed in
14124 # development snapshots of GCC prior to 3.0.
14126 aix4 | aix4.[01] | aix4.[01].*)
14127 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14129 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14132 can_build_shared=no
14136 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14137 # soname into executable. Probably we can add versioning support to
14138 # collect2, so additional links can be useful in future.
14139 if test "$aix_use_runtimelinking" = yes; then
14140 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14141 # instead of lib<name>.a to let people know that these are not
14142 # typical AIX shared libraries.
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14145 # We preserve .a as extension for shared libraries through AIX4.2
14146 # and later when we are not doing run time linking.
14147 library_names_spec='${libname}${release}.a $libname.a'
14148 soname_spec='${libname}${release}${shared_ext}$major'
14150 shlibpath_var=LIBPATH
14155 library_names_spec='$libname.ixlibrary $libname.a'
14156 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14157 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'
14161 library_names_spec='${libname}${shared_ext}'
14162 dynamic_linker="$host_os ld.so"
14163 shlibpath_var=LIBRARY_PATH
14169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14170 soname_spec='${libname}${release}${shared_ext}$major'
14171 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14172 shlibpath_var=LD_LIBRARY_PATH
14173 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14174 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14175 # the default ld.so.conf also contains /usr/contrib/lib and
14176 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14177 # libtool to hard-code these into programs
14180 cygwin* | mingw* | pw32*)
14181 version_type=windows
14186 case $GCC,$host_os in
14187 yes,cygwin* | yes,mingw* | yes,pw32*)
14188 library_names_spec='$libname.dll.a'
14189 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14190 postinstall_cmds='base_file=`basename \${file}`~
14191 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14192 dldir=$destdir/`dirname \$dlpath`~
14193 test -d \$dldir || mkdir -p \$dldir~
14194 $install_prog $dir/$dlname \$dldir/$dlname'
14195 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14196 dlpath=$dir/\$dldll~
14198 shlibpath_overrides_runpath=yes
14202 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14203 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14204 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14207 # MinGW DLLs use traditional 'lib' prefix
14208 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14209 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14210 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14211 # It is most probably a Windows format PATH printed by
14212 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14213 # path with ; separators, and with drive letters. We can handle the
14214 # drive letters (cygwin fileutils understands them), so leave them,
14215 # especially as we might pass files found there to a mingw objdump,
14216 # which wouldn't understand a cygwinified path. Ahh.
14217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14219 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14223 # pw32 DLLs use 'pw' prefix rather than 'lib'
14224 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14230 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14233 dynamic_linker='Win32 ld.exe'
14234 # FIXME: first we should search . and the directory the executable is in
14238 darwin* | rhapsody*)
14239 dynamic_linker="$host_os dyld"
14240 version_type=darwin
14243 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14244 soname_spec='${libname}${release}${major}$shared_ext'
14245 shlibpath_overrides_runpath=yes
14246 shlibpath_var=DYLD_LIBRARY_PATH
14247 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14248 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14249 if test "$GCC" = yes; then
14250 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"`
14252 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14254 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 shlibpath_var=LD_LIBRARY_PATH
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14275 soname_spec='${libname}${release}${shared_ext}$major'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 shlibpath_overrides_runpath=no
14278 hardcode_into_libs=yes
14279 dynamic_linker='GNU ld.so'
14283 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14284 version_type=freebsd-$objformat
14285 case $version_type in
14287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14296 shlibpath_var=LD_LIBRARY_PATH
14299 shlibpath_overrides_runpath=yes
14301 freebsd3.01* | freebsdelf3.01*)
14302 shlibpath_overrides_runpath=yes
14303 hardcode_into_libs=yes
14306 shlibpath_overrides_runpath=no
14307 hardcode_into_libs=yes
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 shlibpath_var=LD_LIBRARY_PATH
14319 hardcode_into_libs=yes
14322 hpux9* | hpux10* | hpux11*)
14323 # Give a soname corresponding to the major version so that dld.sl refuses to
14324 # link against other versions.
14328 case "$host_cpu" in
14331 hardcode_into_libs=yes
14332 dynamic_linker="$host_os dld.so"
14333 shlibpath_var=LD_LIBRARY_PATH
14334 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14336 soname_spec='${libname}${release}${shared_ext}$major'
14337 if test "X$HPUX_IA64_MODE" = X32; then
14338 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14340 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14342 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14346 hardcode_into_libs=yes
14347 dynamic_linker="$host_os dld.sl"
14348 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14349 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14351 soname_spec='${libname}${release}${shared_ext}$major'
14352 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14353 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14357 dynamic_linker="$host_os dld.sl"
14358 shlibpath_var=SHLIB_PATH
14359 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14361 soname_spec='${libname}${release}${shared_ext}$major'
14364 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14365 postinstall_cmds='chmod 555 $lib'
14368 irix5* | irix6* | nonstopux*)
14370 nonstopux*) version_type=nonstopux ;;
14372 if test "$lt_cv_prog_gnu_ld" = yes; then
14380 soname_spec='${libname}${release}${shared_ext}$major'
14381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14383 irix5* | nonstopux*)
14384 libsuff= shlibsuff=
14387 case $LD in # libtool.m4 will add one of these switches to LD
14388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14389 libsuff= shlibsuff= libmagic=32-bit;;
14390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14391 libsuff=32 shlibsuff=N32 libmagic=N32;;
14392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14394 *) libsuff= shlibsuff= libmagic=never-match;;
14398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14399 shlibpath_overrides_runpath=no
14400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14402 hardcode_into_libs=yes
14405 # No shared lib support for Linux oldld, aout, or coff.
14406 linux*oldld* | linux*aout* | linux*coff*)
14410 # This must be Linux ELF.
14415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14416 soname_spec='${libname}${release}${shared_ext}$major'
14417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14418 shlibpath_var=LD_LIBRARY_PATH
14419 shlibpath_overrides_runpath=no
14420 # This implies no fast_install, which is unacceptable.
14421 # Some rework will be needed to allow for fast_install
14422 # before this can be enabled.
14423 hardcode_into_libs=yes
14425 # Append ld.so.conf contents to the search path
14426 if test -f /etc/ld.so.conf; then
14427 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14428 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14431 # We used to test for /lib/ld.so.1 and disable shared libraries on
14432 # powerpc, because MkLinux only supported shared libraries with the
14433 # GNU dynamic linker. Since this was broken with cross compilers,
14434 # most powerpc-linux boxes support dynamic linking these days and
14435 # people can always --disable-shared, the test was removed, and we
14436 # assume the GNU/Linux dynamic linker is in use.
14437 dynamic_linker='GNU/Linux ld.so'
14444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14445 soname_spec='${libname}${release}${shared_ext}$major'
14446 shlibpath_var=LD_LIBRARY_PATH
14447 shlibpath_overrides_runpath=no
14448 hardcode_into_libs=yes
14449 dynamic_linker='GNU ld.so'
14456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14458 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14459 dynamic_linker='NetBSD (a.out) ld.so'
14461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14462 soname_spec='${libname}${release}${shared_ext}$major'
14463 dynamic_linker='NetBSD ld.elf_so'
14465 shlibpath_var=LD_LIBRARY_PATH
14466 shlibpath_overrides_runpath=yes
14467 hardcode_into_libs=yes
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 shlibpath_var=LD_LIBRARY_PATH
14474 shlibpath_overrides_runpath=yes
14481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14482 soname_spec='${libname}${release}${shared_ext}$major'
14483 shlibpath_var=LD_LIBRARY_PATH
14484 shlibpath_overrides_runpath=yes
14491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14492 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14493 shlibpath_var=LD_LIBRARY_PATH
14494 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14496 openbsd2.[89] | openbsd2.[89].*)
14497 shlibpath_overrides_runpath=no
14500 shlibpath_overrides_runpath=yes
14504 shlibpath_overrides_runpath=yes
14509 libname_spec='$name'
14512 library_names_spec='$libname${shared_ext} $libname.a'
14513 dynamic_linker='OS/2 ld.exe'
14514 shlibpath_var=LIBPATH
14517 osf3* | osf4* | osf5*)
14521 soname_spec='${libname}${release}${shared_ext}$major'
14522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14523 shlibpath_var=LD_LIBRARY_PATH
14524 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14525 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 shlibpath_var=LD_LIBRARY_PATH
14539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14540 soname_spec='${libname}${release}${shared_ext}$major'
14541 shlibpath_var=LD_LIBRARY_PATH
14542 shlibpath_overrides_runpath=yes
14543 hardcode_into_libs=yes
14544 # ldd complains unless libraries are executable
14545 postinstall_cmds='chmod +x $lib'
14550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14551 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14552 shlibpath_var=LD_LIBRARY_PATH
14553 shlibpath_overrides_runpath=yes
14554 if test "$with_gnu_ld" = yes; then
14560 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14563 soname_spec='${libname}${release}${shared_ext}$major'
14564 shlibpath_var=LD_LIBRARY_PATH
14565 case $host_vendor in
14567 shlibpath_overrides_runpath=no
14569 export_dynamic_flag_spec='${wl}-Blargedynsym'
14570 runpath_var=LD_RUN_PATH
14578 shlibpath_overrides_runpath=no
14579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14585 if test -d /usr/nec ;then
14587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14588 soname_spec='$libname${shared_ext}.$major'
14589 shlibpath_var=LD_LIBRARY_PATH
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14596 soname_spec='${libname}${release}${shared_ext}$major'
14597 shlibpath_var=LD_LIBRARY_PATH
14604 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14605 echo "${ECHO_T}$dynamic_linker" >&6
14606 test "$dynamic_linker" = no && can_build_shared=no
14608 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14609 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14610 hardcode_action_F77=
14611 if test -n "$hardcode_libdir_flag_spec_F77" || \
14612 test -n "$runpath_var F77" || \
14613 test "X$hardcode_automatic_F77"="Xyes" ; then
14615 # We can hardcode non-existant directories.
14616 if test "$hardcode_direct_F77" != no &&
14617 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14618 # have to relink, otherwise we might link with an installed library
14619 # when we should be linking with a yet-to-be-installed one
14620 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14621 test "$hardcode_minus_L_F77" != no; then
14622 # Linking always hardcodes the temporary library directory.
14623 hardcode_action_F77=relink
14625 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14626 hardcode_action_F77=immediate
14629 # We cannot hardcode anything, or else we can only hardcode existing
14631 hardcode_action_F77=unsupported
14633 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14634 echo "${ECHO_T}$hardcode_action_F77" >&6
14636 if test "$hardcode_action_F77" = relink; then
14637 # Fast installation is not supported
14638 enable_fast_install=no
14639 elif test "$shlibpath_overrides_runpath" = yes ||
14640 test "$enable_shared" = no; then
14641 # Fast installation is not necessary
14642 enable_fast_install=needless
14647 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14648 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14649 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14650 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14651 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14652 echo "$as_me:$LINENO: result: yes" >&5
14653 echo "${ECHO_T}yes" >&6
14655 # FIXME - insert some real tests, host_os isn't really good enough
14658 if test -n "$STRIP" ; then
14659 striplib="$STRIP -x"
14660 echo "$as_me:$LINENO: result: yes" >&5
14661 echo "${ECHO_T}yes" >&6
14663 echo "$as_me:$LINENO: result: no" >&5
14664 echo "${ECHO_T}no" >&6
14668 echo "$as_me:$LINENO: result: no" >&5
14669 echo "${ECHO_T}no" >&6
14676 # The else clause should only fire when bootstrapping the
14677 # libtool distribution, otherwise you forgot to ship ltmain.sh
14678 # with your package, and you will get complaints that there are
14679 # no rules to generate ltmain.sh.
14680 if test -f "$ltmain"; then
14681 # See if we are running on zsh, and set the options which allow our commands through
14682 # without removal of \ escapes.
14683 if test -n "${ZSH_VERSION+set}" ; then
14684 setopt NO_GLOB_SUBST
14686 # Now quote all the things that may contain metacharacters while being
14687 # careful not to overquote the AC_SUBSTed values. We take copies of the
14688 # variables and quote the copies for generation of the libtool script.
14689 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14691 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14692 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14693 deplibs_check_method reload_flag reload_cmds need_locks \
14694 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14695 lt_cv_sys_global_symbol_to_c_name_address \
14696 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14697 old_postinstall_cmds old_postuninstall_cmds \
14701 lt_prog_compiler_wl_F77 \
14702 lt_prog_compiler_pic_F77 \
14703 lt_prog_compiler_static_F77 \
14704 lt_prog_compiler_no_builtin_flag_F77 \
14705 export_dynamic_flag_spec_F77 \
14706 thread_safe_flag_spec_F77 \
14707 whole_archive_flag_spec_F77 \
14708 enable_shared_with_static_runtimes_F77 \
14709 old_archive_cmds_F77 \
14710 old_archive_from_new_cmds_F77 \
14711 predep_objects_F77 \
14712 postdep_objects_F77 \
14715 compiler_lib_search_path_F77 \
14717 archive_expsym_cmds_F77 \
14718 postinstall_cmds_F77 \
14719 postuninstall_cmds_F77 \
14720 old_archive_from_expsyms_cmds_F77 \
14721 allow_undefined_flag_F77 \
14722 no_undefined_flag_F77 \
14723 export_symbols_cmds_F77 \
14724 hardcode_libdir_flag_spec_F77 \
14725 hardcode_libdir_flag_spec_ld_F77 \
14726 hardcode_libdir_separator_F77 \
14727 hardcode_automatic_F77 \
14729 module_expsym_cmds_F77 \
14730 lt_cv_prog_compiler_c_o_F77 \
14731 exclude_expsyms_F77 \
14732 include_expsyms_F77; do
14735 old_archive_cmds_F77 | \
14736 old_archive_from_new_cmds_F77 | \
14737 archive_cmds_F77 | \
14738 archive_expsym_cmds_F77 | \
14739 module_cmds_F77 | \
14740 module_expsym_cmds_F77 | \
14741 old_archive_from_expsyms_cmds_F77 | \
14742 export_symbols_cmds_F77 | \
14743 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14744 postinstall_cmds | postuninstall_cmds | \
14745 old_postinstall_cmds | old_postuninstall_cmds | \
14746 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14747 # Double-quote double-evaled strings.
14748 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14751 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14757 *'\$0 --fallback-echo"')
14758 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14764 cat <<__EOF__ >> "$cfgfile"
14765 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14767 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769 # Shell to use when invoking shell scripts.
14772 # Whether or not to build shared libraries.
14773 build_libtool_libs=$enable_shared
14775 # Whether or not to build static libraries.
14776 build_old_libs=$enable_static
14778 # Whether or not to add -lc for building shared libraries.
14779 build_libtool_need_lc=$archive_cmds_need_lc_F77
14781 # Whether or not to disallow shared libs when runtime libs are static
14782 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14784 # Whether or not to optimize for fast installation.
14785 fast_install=$enable_fast_install
14788 host_alias=$host_alias
14791 # An echo program that does not interpret backslashes.
14796 AR_FLAGS=$lt_AR_FLAGS
14801 # A language-specific compiler.
14802 CC=$lt_compiler_F77
14804 # Is the compiler the GNU C compiler?
14810 # The linker used to build libraries.
14813 # Whether we need hard or soft links.
14816 # A BSD-compatible nm program.
14819 # A symbol stripping program
14822 # Used to examine libraries when file_magic_cmd begins "file"
14823 MAGIC_CMD=$MAGIC_CMD
14825 # Used on cygwin: DLL creation program.
14828 # Used on cygwin: object dumper.
14831 # Used on cygwin: assembler.
14834 # The name of the directory that contains temporary libtool files.
14837 # How to create reloadable object files.
14838 reload_flag=$lt_reload_flag
14839 reload_cmds=$lt_reload_cmds
14841 # How to pass a linker flag through the compiler.
14842 wl=$lt_lt_prog_compiler_wl_F77
14844 # Object file suffix (normally "o").
14845 objext="$ac_objext"
14847 # Old archive suffix (normally "a").
14850 # Shared library suffix (normally ".so").
14851 shrext_cmds='$shrext_cmds'
14853 # Executable file suffix (normally "").
14856 # Additional compiler flags for building library objects.
14857 pic_flag=$lt_lt_prog_compiler_pic_F77
14860 # What is the maximum length of a command?
14861 max_cmd_len=$lt_cv_sys_max_cmd_len
14863 # Does compiler simultaneously support -c and -o options?
14864 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14866 # Must we lock files when doing compilation ?
14867 need_locks=$lt_need_locks
14869 # Do we need the lib prefix for modules?
14870 need_lib_prefix=$need_lib_prefix
14872 # Do we need a version for libraries?
14873 need_version=$need_version
14875 # Whether dlopen is supported.
14876 dlopen_support=$enable_dlopen
14878 # Whether dlopen of programs is supported.
14879 dlopen_self=$enable_dlopen_self
14881 # Whether dlopen of statically linked programs is supported.
14882 dlopen_self_static=$enable_dlopen_self_static
14884 # Compiler flag to prevent dynamic linking.
14885 link_static_flag=$lt_lt_prog_compiler_static_F77
14887 # Compiler flag to turn off builtin functions.
14888 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14890 # Compiler flag to allow reflexive dlopens.
14891 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14893 # Compiler flag to generate shared objects directly from archives.
14894 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14896 # Compiler flag to generate thread-safe objects.
14897 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14899 # Library versioning type.
14900 version_type=$version_type
14902 # Format of library name prefix.
14903 libname_spec=$lt_libname_spec
14905 # List of archive names. First name is the real one, the rest are links.
14906 # The last name is the one that the linker finds with -lNAME.
14907 library_names_spec=$lt_library_names_spec
14909 # The coded name of the library, if different from the real name.
14910 soname_spec=$lt_soname_spec
14912 # Commands used to build and install an old-style archive.
14914 old_archive_cmds=$lt_old_archive_cmds_F77
14915 old_postinstall_cmds=$lt_old_postinstall_cmds
14916 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918 # Create an old-style archive from a shared archive.
14919 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14921 # Create a temporary old-style archive to link instead of a shared archive.
14922 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14924 # Commands used to build and install a shared archive.
14925 archive_cmds=$lt_archive_cmds_F77
14926 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14927 postinstall_cmds=$lt_postinstall_cmds
14928 postuninstall_cmds=$lt_postuninstall_cmds
14930 # Commands used to build a loadable module (assumed same as above if empty)
14931 module_cmds=$lt_module_cmds_F77
14932 module_expsym_cmds=$lt_module_expsym_cmds_F77
14934 # Commands to strip libraries.
14935 old_striplib=$lt_old_striplib
14936 striplib=$lt_striplib
14938 # Dependencies to place before the objects being linked to create a
14940 predep_objects=$lt_predep_objects_F77
14942 # Dependencies to place after the objects being linked to create a
14944 postdep_objects=$lt_postdep_objects_F77
14946 # Dependencies to place before the objects being linked to create a
14948 predeps=$lt_predeps_F77
14950 # Dependencies to place after the objects being linked to create a
14952 postdeps=$lt_postdeps_F77
14954 # The library search path used internally by the compiler when linking
14955 # a shared library.
14956 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14958 # Method to check whether dependent libraries are shared objects.
14959 deplibs_check_method=$lt_deplibs_check_method
14961 # Command to use when deplibs_check_method == file_magic.
14962 file_magic_cmd=$lt_file_magic_cmd
14964 # Flag that allows shared libraries with undefined symbols to be built.
14965 allow_undefined_flag=$lt_allow_undefined_flag_F77
14967 # Flag that forces no undefined symbols.
14968 no_undefined_flag=$lt_no_undefined_flag_F77
14970 # Commands used to finish a libtool library installation in a directory.
14971 finish_cmds=$lt_finish_cmds
14973 # Same as above, but a single script fragment to be evaled but not shown.
14974 finish_eval=$lt_finish_eval
14976 # Take the output of nm and produce a listing of raw symbols and C names.
14977 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14979 # Transform the output of nm in a proper C declaration
14980 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14982 # Transform the output of nm in a C name address pair
14983 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14985 # This is the shared library runtime path variable.
14986 runpath_var=$runpath_var
14988 # This is the shared library path variable.
14989 shlibpath_var=$shlibpath_var
14991 # Is shlibpath searched before the hard-coded library search path?
14992 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14994 # How to hardcode a shared library path into an executable.
14995 hardcode_action=$hardcode_action_F77
14997 # Whether we should hardcode library paths into libraries.
14998 hardcode_into_libs=$hardcode_into_libs
15000 # Flag to hardcode \$libdir into a binary during linking.
15001 # This must work even if \$libdir does not exist.
15002 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15004 # If ld is used when linking, flag to hardcode \$libdir into
15005 # a binary during linking. This must work even if \$libdir does
15007 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15009 # Whether we need a single -rpath flag with a separated argument.
15010 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15012 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15013 # resulting binary.
15014 hardcode_direct=$hardcode_direct_F77
15016 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15017 # resulting binary.
15018 hardcode_minus_L=$hardcode_minus_L_F77
15020 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15021 # the resulting binary.
15022 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15024 # Set to yes if building a shared library automatically hardcodes DIR into the library
15025 # and all subsequent libraries and executables linked against it.
15026 hardcode_automatic=$hardcode_automatic_F77
15028 # Variables whose values should be saved in libtool wrapper scripts and
15029 # restored at relink time.
15030 variables_saved_for_relink="$variables_saved_for_relink"
15032 # Whether libtool must link a program against all its dependency libraries.
15033 link_all_deplibs=$link_all_deplibs_F77
15035 # Compile-time system search path for libraries
15036 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038 # Run-time system search path for libraries
15039 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041 # Fix the shell variable \$srcfile for the compiler.
15042 fix_srcfile_path="$fix_srcfile_path_F77"
15044 # Set to yes if exported symbols are required.
15045 always_export_symbols=$always_export_symbols_F77
15047 # The commands to list exported symbols.
15048 export_symbols_cmds=$lt_export_symbols_cmds_F77
15050 # The commands to extract the exported symbol list from a shared archive.
15051 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15053 # Symbols that should not be listed in the preloaded symbols.
15054 exclude_expsyms=$lt_exclude_expsyms_F77
15056 # Symbols that must always be exported.
15057 include_expsyms=$lt_include_expsyms_F77
15059 # ### END LIBTOOL TAG CONFIG: $tagname
15065 # If there is no Makefile yet, we rely on a make rule to execute
15066 # `config.status --recheck' to rerun these tests and create the
15067 # libtool script then.
15068 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15069 if test -f "$ltmain_in"; then
15070 test -f Makefile && make "$ltmain"
15076 ac_cpp='$CPP $CPPFLAGS'
15077 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15089 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15093 # Source file extension for Java test sources.
15096 # Object file extension for compiled Java test sources.
15100 # Code to be used in simple compile tests
15101 lt_simple_compile_test_code="class foo {}\n"
15103 # Code to be used in simple link tests
15104 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15106 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15108 # If no C compiler was specified, use CC.
15111 # Allow CC to be a program name with arguments.
15115 # Allow CC to be a program name with arguments.
15121 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15122 archive_cmds_need_lc_GCJ=no
15125 lt_prog_compiler_no_builtin_flag_GCJ=
15127 if test "$GCC" = yes; then
15128 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15131 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15132 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15133 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15134 echo $ECHO_N "(cached) $ECHO_C" >&6
15136 lt_cv_prog_compiler_rtti_exceptions=no
15137 ac_outfile=conftest.$ac_objext
15138 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15139 lt_compiler_flag="-fno-rtti -fno-exceptions"
15140 # Insert the option either (1) after the last *FLAGS variable, or
15141 # (2) before a word containing "conftest.", or (3) at the end.
15142 # Note that $ac_compile itself does not contain backslashes and begins
15143 # with a dollar sign (not a hyphen), so the echo should work correctly.
15144 # The option is referenced via a variable to avoid confusing sed.
15145 lt_compile=`echo "$ac_compile" | $SED \
15146 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15147 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15148 -e 's:$: $lt_compiler_flag:'`
15149 (eval echo "\"\$as_me:15149: $lt_compile\"" >&5)
15150 (eval "$lt_compile" 2>conftest.err)
15152 cat conftest.err >&5
15153 echo "$as_me:15153: \$? = $ac_status" >&5
15154 if (exit $ac_status) && test -s "$ac_outfile"; then
15155 # The compiler can only warn and ignore the option if not recognized
15156 # So say no if there are warnings
15157 if test ! -s conftest.err; then
15158 lt_cv_prog_compiler_rtti_exceptions=yes
15164 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15165 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15167 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15168 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15175 lt_prog_compiler_wl_GCJ=
15176 lt_prog_compiler_pic_GCJ=
15177 lt_prog_compiler_static_GCJ=
15179 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15180 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15182 if test "$GCC" = yes; then
15183 lt_prog_compiler_wl_GCJ='-Wl,'
15184 lt_prog_compiler_static_GCJ='-static'
15188 # All AIX code is PIC.
15189 if test "$host_cpu" = ia64; then
15190 # AIX 5 now supports IA64 processor
15191 lt_prog_compiler_static_GCJ='-Bstatic'
15196 # FIXME: we need at least 68020 code to build shared libraries, but
15197 # adding the `-m68020' flag to GCC prevents building anything better,
15199 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15202 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15203 # PIC is the default for these OSes.
15206 mingw* | pw32* | os2*)
15207 # This hack is so that the source file can tell whether it is being
15208 # built for inclusion in a dll (and should export symbols for example).
15209 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15212 darwin* | rhapsody*)
15213 # PIC is the default on this platform
15214 # Common symbols not allowed in MH_DYLIB files
15215 lt_prog_compiler_pic_GCJ='-fno-common'
15219 # Just because we use GCC doesn't mean we suddenly get shared libraries
15220 # on systems that don't support them.
15221 lt_prog_compiler_can_build_shared_GCJ=no
15226 if test -d /usr/nec; then
15227 lt_prog_compiler_pic_GCJ=-Kconform_pic
15232 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15233 # not for PA HP-UX.
15234 case "$host_cpu" in
15239 lt_prog_compiler_pic_GCJ='-fPIC'
15245 lt_prog_compiler_pic_GCJ='-fPIC'
15249 # PORTME Check for flag to pass linker flags through the system compiler.
15252 lt_prog_compiler_wl_GCJ='-Wl,'
15253 if test "$host_cpu" = ia64; then
15254 # AIX 5 now supports IA64 processor
15255 lt_prog_compiler_static_GCJ='-Bstatic'
15257 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15261 mingw* | pw32* | os2*)
15262 # This hack is so that the source file can tell whether it is being
15263 # built for inclusion in a dll (and should export symbols for example).
15264 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15267 hpux9* | hpux10* | hpux11*)
15268 lt_prog_compiler_wl_GCJ='-Wl,'
15269 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15270 # not for PA HP-UX.
15271 case "$host_cpu" in
15276 lt_prog_compiler_pic_GCJ='+Z'
15279 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15280 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15283 irix5* | irix6* | nonstopux*)
15284 lt_prog_compiler_wl_GCJ='-Wl,'
15285 # PIC (with -KPIC) is the default.
15286 lt_prog_compiler_static_GCJ='-non_shared'
15290 lt_prog_compiler_pic_GCJ='-KPIC'
15291 lt_prog_compiler_static_GCJ='-Bstatic'
15297 lt_prog_compiler_wl_GCJ='-Wl,'
15298 lt_prog_compiler_pic_GCJ='-KPIC'
15299 lt_prog_compiler_static_GCJ='-static'
15302 lt_prog_compiler_wl_GCJ='-Wl,'
15303 # All Alpha code is PIC.
15304 lt_prog_compiler_static_GCJ='-non_shared'
15309 osf3* | osf4* | osf5*)
15310 lt_prog_compiler_wl_GCJ='-Wl,'
15311 # All OSF/1 code is PIC.
15312 lt_prog_compiler_static_GCJ='-non_shared'
15316 lt_prog_compiler_pic_GCJ='-Kpic'
15317 lt_prog_compiler_static_GCJ='-dn'
15321 lt_prog_compiler_wl_GCJ='-Wl,'
15322 lt_prog_compiler_pic_GCJ='-KPIC'
15323 lt_prog_compiler_static_GCJ='-Bstatic'
15327 lt_prog_compiler_wl_GCJ='-Qoption ld '
15328 lt_prog_compiler_pic_GCJ='-PIC'
15329 lt_prog_compiler_static_GCJ='-Bstatic'
15332 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15333 lt_prog_compiler_wl_GCJ='-Wl,'
15334 lt_prog_compiler_pic_GCJ='-KPIC'
15335 lt_prog_compiler_static_GCJ='-Bstatic'
15339 if test -d /usr/nec ;then
15340 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15341 lt_prog_compiler_static_GCJ='-Bstatic'
15346 lt_prog_compiler_pic_GCJ='-pic'
15347 lt_prog_compiler_static_GCJ='-Bstatic'
15351 lt_prog_compiler_can_build_shared_GCJ=no
15356 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15357 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15360 # Check to make sure the PIC flag actually works.
15362 if test -n "$lt_prog_compiler_pic_GCJ"; then
15364 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15365 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15366 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15367 echo $ECHO_N "(cached) $ECHO_C" >&6
15369 lt_prog_compiler_pic_works_GCJ=no
15370 ac_outfile=conftest.$ac_objext
15371 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15372 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15373 # Insert the option either (1) after the last *FLAGS variable, or
15374 # (2) before a word containing "conftest.", or (3) at the end.
15375 # Note that $ac_compile itself does not contain backslashes and begins
15376 # with a dollar sign (not a hyphen), so the echo should work correctly.
15377 # The option is referenced via a variable to avoid confusing sed.
15378 lt_compile=`echo "$ac_compile" | $SED \
15379 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15380 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15381 -e 's:$: $lt_compiler_flag:'`
15382 (eval echo "\"\$as_me:15382: $lt_compile\"" >&5)
15383 (eval "$lt_compile" 2>conftest.err)
15385 cat conftest.err >&5
15386 echo "$as_me:15386: \$? = $ac_status" >&5
15387 if (exit $ac_status) && test -s "$ac_outfile"; then
15388 # The compiler can only warn and ignore the option if not recognized
15389 # So say no if there are warnings
15390 if test ! -s conftest.err; then
15391 lt_prog_compiler_pic_works_GCJ=yes
15397 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15398 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15400 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15401 case $lt_prog_compiler_pic_GCJ in
15403 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15406 lt_prog_compiler_pic_GCJ=
15407 lt_prog_compiler_can_build_shared_GCJ=no
15412 # For platforms which do not support PIC, -DPIC is meaningless:
15414 lt_prog_compiler_pic_GCJ=
15417 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15421 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15422 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15423 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15424 echo $ECHO_N "(cached) $ECHO_C" >&6
15426 lt_cv_prog_compiler_c_o_GCJ=no
15427 $rm -r conftest 2>/dev/null
15431 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15433 lt_compiler_flag="-o out/conftest2.$ac_objext"
15434 # Insert the option either (1) after the last *FLAGS variable, or
15435 # (2) before a word containing "conftest.", or (3) at the end.
15436 # Note that $ac_compile itself does not contain backslashes and begins
15437 # with a dollar sign (not a hyphen), so the echo should work correctly.
15438 lt_compile=`echo "$ac_compile" | $SED \
15439 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15441 -e 's:$: $lt_compiler_flag:'`
15442 (eval echo "\"\$as_me:15442: $lt_compile\"" >&5)
15443 (eval "$lt_compile" 2>out/conftest.err)
15445 cat out/conftest.err >&5
15446 echo "$as_me:15446: \$? = $ac_status" >&5
15447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15449 # The compiler can only warn and ignore the option if not recognized
15450 # So say no if there are warnings
15451 if test ! -s out/conftest.err; then
15452 lt_cv_prog_compiler_c_o_GCJ=yes
15457 # SGI C++ compiler will create directory out/ii_files/ for
15458 # template instantiation
15459 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15460 $rm out/* && rmdir out
15466 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15467 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15470 hard_links="nottested"
15471 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15472 # do not overwrite the value of need_locks provided by the user
15473 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15474 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15477 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15479 ln conftest.a conftest.b 2>&5 || hard_links=no
15480 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15481 echo "$as_me:$LINENO: result: $hard_links" >&5
15482 echo "${ECHO_T}$hard_links" >&6
15483 if test "$hard_links" = no; then
15484 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15485 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15492 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15493 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15496 allow_undefined_flag_GCJ=
15497 enable_shared_with_static_runtimes_GCJ=no
15499 archive_expsym_cmds_GCJ=
15500 old_archive_From_new_cmds_GCJ=
15501 old_archive_from_expsyms_cmds_GCJ=
15502 export_dynamic_flag_spec_GCJ=
15503 whole_archive_flag_spec_GCJ=
15504 thread_safe_flag_spec_GCJ=
15505 hardcode_libdir_flag_spec_GCJ=
15506 hardcode_libdir_flag_spec_ld_GCJ=
15507 hardcode_libdir_separator_GCJ=
15508 hardcode_direct_GCJ=no
15509 hardcode_minus_L_GCJ=no
15510 hardcode_shlibpath_var_GCJ=unsupported
15511 link_all_deplibs_GCJ=unknown
15512 hardcode_automatic_GCJ=no
15514 module_expsym_cmds_GCJ=
15515 always_export_symbols_GCJ=no
15516 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15517 # include_expsyms should be a list of space-separated symbols to be *always*
15518 # included in the symbol list
15519 include_expsyms_GCJ=
15520 # exclude_expsyms can be an extended regexp of symbols to exclude
15521 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15522 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15523 # as well as any symbol that contains `d'.
15524 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15525 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15526 # platforms (ab)use it in PIC code, but their linkers get confused if
15527 # the symbol is explicitly referenced. Since portable code cannot
15528 # rely on this symbol name, it's probably fine to never include it in
15529 # preloaded symbol tables.
15530 extract_expsyms_cmds=
15533 cygwin* | mingw* | pw32*)
15534 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15535 # When not using gcc, we currently assume that we are using
15536 # Microsoft Visual C++.
15537 if test "$GCC" != yes; then
15547 if test "$with_gnu_ld" = yes; then
15548 # If archive_cmds runs LD, not CC, wlarc should be empty
15551 # See if GNU ld supports shared libraries.
15553 aix3* | aix4* | aix5*)
15554 # On AIX/PPC, the GNU linker is very broken
15555 if test "$host_cpu" != ia64; then
15559 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15560 *** to be unable to reliably create shared libraries on AIX.
15561 *** Therefore, libtool is disabling shared libraries support. If you
15562 *** really care for shared libraries, you may want to modify your PATH
15563 *** so that a non-GNU linker is found, and then restart.
15570 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)'
15571 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15572 hardcode_minus_L_GCJ=yes
15574 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15575 # that the semantics of dynamic libraries on AmigaOS, at least up
15576 # to version 4, is to share data among multiple programs linked
15577 # with the same dynamic library. Since this doesn't match the
15578 # behavior of shared libraries on other platforms, we can't use
15584 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15585 allow_undefined_flag_GCJ=unsupported
15586 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15587 # support --undefined. This deserves some investigation. FIXME
15588 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15594 cygwin* | mingw* | pw32*)
15595 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15596 # as there is no search path for DLLs.
15597 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15598 allow_undefined_flag_GCJ=unsupported
15599 always_export_symbols_GCJ=no
15600 enable_shared_with_static_runtimes_GCJ=yes
15601 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15603 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15604 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15605 # If the export-symbols file already is a .def file (1st line
15606 # is EXPORTS), use it as is; otherwise, prepend...
15607 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15608 cp $export_symbols $output_objdir/$soname.def;
15610 echo EXPORTS > $output_objdir/$soname.def;
15611 cat $export_symbols >> $output_objdir/$soname.def;
15613 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15619 netbsd* | knetbsd*-gnu)
15620 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15621 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15624 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15625 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15630 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15634 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15635 *** create shared libraries on Solaris systems. Therefore, libtool
15636 *** is disabling shared libraries support. We urge you to upgrade GNU
15637 *** binutils to release 2.9.1 or newer. Another option is to modify
15638 *** your PATH or compiler configuration so that the native linker is
15639 *** used, and then restart.
15642 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15643 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15644 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15651 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15653 hardcode_direct_GCJ=yes
15654 hardcode_shlibpath_var_GCJ=no
15658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15659 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15660 archive_cmds_GCJ="$tmp_archive_cmds"
15661 supports_anon_versioning=no
15662 case `$LD -v 2>/dev/null` in
15663 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15666 *\ 2.11.*) ;; # other 2.11 versions
15667 *) supports_anon_versioning=yes ;;
15669 if test $supports_anon_versioning = yes; then
15670 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15671 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15672 $echo "local: *; };" >> $output_objdir/$libname.ver~
15673 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15675 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15677 link_all_deplibs_GCJ=no
15684 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15685 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15686 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15693 if test "$ld_shlibs_GCJ" = yes; then
15694 runpath_var=LD_RUN_PATH
15695 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15696 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15697 # ancient GNU ld didn't support --whole-archive et. al.
15698 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15699 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15701 whole_archive_flag_spec_GCJ=
15705 # PORTME fill in a description of your system's linker (not GNU ld)
15708 allow_undefined_flag_GCJ=unsupported
15709 always_export_symbols_GCJ=yes
15710 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'
15711 # Note: this linker hardcodes the directories in LIBPATH if there
15712 # are no directories specified by -L.
15713 hardcode_minus_L_GCJ=yes
15714 if test "$GCC" = yes && test -z "$link_static_flag"; then
15715 # Neither direct hardcoding nor static linking is supported with a
15717 hardcode_direct_GCJ=unsupported
15722 if test "$host_cpu" = ia64; then
15723 # On IA64, the linker does run time linking by default, so we don't
15724 # have to do anything special.
15725 aix_use_runtimelinking=no
15726 exp_sym_flag='-Bexport'
15729 # If we're using GNU nm, then we don't want the "-C" option.
15730 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15731 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15732 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'
15734 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'
15736 aix_use_runtimelinking=no
15738 # Test if we are trying to use run time linking or normal
15739 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15740 # need to do runtime linking.
15741 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15742 for ld_flag in $LDFLAGS; do
15743 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15744 aix_use_runtimelinking=yes
15750 exp_sym_flag='-bexport'
15751 no_entry_flag='-bnoentry'
15754 # When large executables or shared objects are built, AIX ld can
15755 # have problems creating the table of contents. If linking a library
15756 # or program results in "error TOC overflow" add -mminimal-toc to
15757 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15758 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15760 archive_cmds_GCJ=''
15761 hardcode_direct_GCJ=yes
15762 hardcode_libdir_separator_GCJ=':'
15763 link_all_deplibs_GCJ=yes
15765 if test "$GCC" = yes; then
15766 case $host_os in aix4.012|aix4.012.*)
15767 # We only want to do this on AIX 4.2 and lower, the check
15768 # below for broken collect2 doesn't work under 4.3+
15769 collect2name=`${CC} -print-prog-name=collect2`
15770 if test -f "$collect2name" && \
15771 strings "$collect2name" | grep resolve_lib_name >/dev/null
15773 # We have reworked collect2
15774 hardcode_direct_GCJ=yes
15776 # We have old collect2
15777 hardcode_direct_GCJ=unsupported
15778 # It fails to find uninstalled libraries when the uninstalled
15779 # path is not listed in the libpath. Setting hardcode_minus_L
15780 # to unsupported forces relinking
15781 hardcode_minus_L_GCJ=yes
15782 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15783 hardcode_libdir_separator_GCJ=
15786 shared_flag='-shared'
15789 if test "$host_cpu" = ia64; then
15790 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15791 # chokes on -Wl,-G. The following line is correct:
15794 if test "$aix_use_runtimelinking" = yes; then
15795 shared_flag='${wl}-G'
15797 shared_flag='${wl}-bM:SRE'
15802 # It seems that -bexpall does not export symbols beginning with
15803 # underscore (_), so it is better to generate a list of symbols to export.
15804 always_export_symbols_GCJ=yes
15805 if test "$aix_use_runtimelinking" = yes; then
15806 # Warning - without using the other runtime loading flags (-brtl),
15807 # -berok will link without error, but may produce a broken library.
15808 allow_undefined_flag_GCJ='-berok'
15809 # Determine the default libpath from the value encoded in an empty executable.
15810 cat >conftest.$ac_ext <<_ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15825 rm -f conftest.$ac_objext conftest$ac_exeext
15826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15827 (eval $ac_link) 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); } &&
15834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15836 (eval $ac_try) 2>&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); }; } &&
15840 { ac_try='test -s conftest$ac_exeext'
15841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15842 (eval $ac_try) 2>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); }; }; then
15847 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15849 # Check for a 64-bit object if we didn't find anything.
15850 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; }
15853 echo "$as_me: failed program was:" >&5
15854 sed 's/^/| /' conftest.$ac_ext >&5
15857 rm -f conftest.err conftest.$ac_objext \
15858 conftest$ac_exeext conftest.$ac_ext
15859 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15861 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15862 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15864 if test "$host_cpu" = ia64; then
15865 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15866 allow_undefined_flag_GCJ="-z nodefs"
15867 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15869 # Determine the default libpath from the value encoded in an empty executable.
15870 cat >conftest.$ac_ext <<_ACEOF
15873 cat confdefs.h >>conftest.$ac_ext
15874 cat >>conftest.$ac_ext <<_ACEOF
15875 /* end confdefs.h. */
15885 rm -f conftest.$ac_objext conftest$ac_exeext
15886 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15887 (eval $ac_link) 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15896 (eval $ac_try) 2>&5
15898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899 (exit $ac_status); }; } &&
15900 { ac_try='test -s conftest$ac_exeext'
15901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902 (eval $ac_try) 2>&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); }; }; then
15907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15909 # Check for a 64-bit object if we didn't find anything.
15910 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; }
15913 echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15917 rm -f conftest.err conftest.$ac_objext \
15918 conftest$ac_exeext conftest.$ac_ext
15919 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15921 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15922 # Warning - without using the other run time loading flags,
15923 # -berok will link without error, but may produce a broken library.
15924 no_undefined_flag_GCJ=' ${wl}-bernotok'
15925 allow_undefined_flag_GCJ=' ${wl}-berok'
15926 # -bexpall does not export symbols beginning with underscore (_)
15927 always_export_symbols_GCJ=yes
15928 # Exported symbols can be pulled into shared objects from archives
15929 whole_archive_flag_spec_GCJ=' '
15930 archive_cmds_need_lc_GCJ=yes
15931 # This is similar to how AIX traditionally builds it's shared libraries.
15932 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15938 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)'
15939 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15940 hardcode_minus_L_GCJ=yes
15941 # see comment about different semantics on the GNU ld section
15946 export_dynamic_flag_spec_GCJ=-rdynamic
15949 cygwin* | mingw* | pw32*)
15950 # When not using gcc, we currently assume that we are using
15951 # Microsoft Visual C++.
15952 # hardcode_libdir_flag_spec is actually meaningless, as there is
15953 # no search path for DLLs.
15954 hardcode_libdir_flag_spec_GCJ=' '
15955 allow_undefined_flag_GCJ=unsupported
15956 # Tell ltmain to make .lib files, not .a files.
15958 # Tell ltmain to make .dll files, not .so files.
15960 # FIXME: Setting linknames here is a bad hack.
15961 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15962 # The linker will automatically build a .lib file if we build a DLL.
15963 old_archive_From_new_cmds_GCJ='true'
15964 # FIXME: Should let the user specify the lib program.
15965 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15966 fix_srcfile_path='`cygpath -w "$srcfile"`'
15967 enable_shared_with_static_runtimes_GCJ=yes
15970 darwin* | rhapsody*)
15971 if test "$GXX" = yes ; then
15972 archive_cmds_need_lc_GCJ=no
15974 rhapsody* | darwin1.[012])
15975 allow_undefined_flag_GCJ='-undefined suppress'
15978 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15979 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15981 case ${MACOSX_DEPLOYMENT_TARGET} in
15983 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
15986 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
15992 lt_int_apple_cc_single_mod=no
15993 output_verbose_link_cmd='echo'
15994 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15995 lt_int_apple_cc_single_mod=yes
15997 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15998 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16000 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16002 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16003 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16004 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16005 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16007 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16009 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}'
16010 hardcode_direct_GCJ=no
16011 hardcode_automatic_GCJ=yes
16012 hardcode_shlibpath_var_GCJ=unsupported
16013 whole_archive_flag_spec_GCJ='-all_load $convenience'
16014 link_all_deplibs_GCJ=yes
16021 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16023 hardcode_shlibpath_var_GCJ=no
16030 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16031 # support. Future versions do this automatically, but an explicit c++rt0.o
16032 # does not break anything, and helps significantly (at the cost of a little
16035 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16036 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16037 hardcode_direct_GCJ=yes
16038 hardcode_shlibpath_var_GCJ=no
16041 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16043 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16044 hardcode_direct_GCJ=yes
16045 hardcode_minus_L_GCJ=yes
16046 hardcode_shlibpath_var_GCJ=no
16049 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16050 freebsd* | kfreebsd*-gnu)
16051 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16052 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16053 hardcode_direct_GCJ=yes
16054 hardcode_shlibpath_var_GCJ=no
16058 if test "$GCC" = yes; then
16059 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'
16061 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'
16063 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16064 hardcode_libdir_separator_GCJ=:
16065 hardcode_direct_GCJ=yes
16067 # hardcode_minus_L: Not really in the search PATH,
16068 # but as the default location of the library.
16069 hardcode_minus_L_GCJ=yes
16070 export_dynamic_flag_spec_GCJ='${wl}-E'
16074 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16075 case "$host_cpu" in
16077 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16080 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16084 case "$host_cpu" in
16086 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16089 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16093 if test "$with_gnu_ld" = no; then
16094 case "$host_cpu" in
16096 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16097 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16098 hardcode_libdir_separator_GCJ=:
16099 hardcode_direct_GCJ=no
16100 hardcode_shlibpath_var_GCJ=no
16103 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16104 hardcode_direct_GCJ=no
16105 hardcode_shlibpath_var_GCJ=no
16107 # hardcode_minus_L: Not really in the search PATH,
16108 # but as the default location of the library.
16109 hardcode_minus_L_GCJ=yes
16112 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16113 hardcode_libdir_separator_GCJ=:
16114 hardcode_direct_GCJ=yes
16115 export_dynamic_flag_spec_GCJ='${wl}-E'
16117 # hardcode_minus_L: Not really in the search PATH,
16118 # but as the default location of the library.
16119 hardcode_minus_L_GCJ=yes
16125 irix5* | irix6* | nonstopux*)
16126 if test "$GCC" = yes; then
16127 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'
16129 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'
16130 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16132 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16133 hardcode_libdir_separator_GCJ=:
16134 link_all_deplibs_GCJ=yes
16137 netbsd* | knetbsd*-gnu)
16138 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16139 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16141 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16143 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16144 hardcode_direct_GCJ=yes
16145 hardcode_shlibpath_var_GCJ=no
16149 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16150 hardcode_direct_GCJ=yes
16151 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16152 hardcode_libdir_separator_GCJ=:
16153 hardcode_shlibpath_var_GCJ=no
16157 hardcode_direct_GCJ=yes
16158 hardcode_shlibpath_var_GCJ=no
16159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16160 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16161 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16162 export_dynamic_flag_spec_GCJ='${wl}-E'
16165 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16166 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16167 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16170 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16171 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16178 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16179 hardcode_minus_L_GCJ=yes
16180 allow_undefined_flag_GCJ=unsupported
16181 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'
16182 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16186 if test "$GCC" = yes; then
16187 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16188 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'
16190 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16191 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'
16193 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16194 hardcode_libdir_separator_GCJ=:
16197 osf4* | osf5*) # as osf3* with the addition of -msym flag
16198 if test "$GCC" = yes; then
16199 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16200 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'
16201 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16203 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16204 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'
16205 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~
16206 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16208 # Both c and cxx compiler support -rpath directly
16209 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16211 hardcode_libdir_separator_GCJ=:
16215 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16216 hardcode_shlibpath_var_GCJ=no
16217 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16218 runpath_var=LD_RUN_PATH
16219 hardcode_runpath_var=yes
16223 no_undefined_flag_GCJ=' -z text'
16224 if test "$GCC" = yes; then
16225 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16226 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16227 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16229 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16230 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16231 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16233 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16234 hardcode_shlibpath_var_GCJ=no
16236 solaris2.[0-5] | solaris2.[0-5].*) ;;
16237 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16238 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16240 link_all_deplibs_GCJ=yes
16244 if test "x$host_vendor" = xsequent; then
16245 # Use $CC to link under sequent, because it throws in some extra .o
16246 # files that make .init and .fini sections work.
16247 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16249 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16251 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16252 hardcode_direct_GCJ=yes
16253 hardcode_minus_L_GCJ=yes
16254 hardcode_shlibpath_var_GCJ=no
16258 case $host_vendor in
16260 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16261 hardcode_direct_GCJ=yes # is this really true???
16264 ## LD is ld it makes a PLAMLIB
16265 ## CC just makes a GrossModule.
16266 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16267 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16268 hardcode_direct_GCJ=no
16271 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16272 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16275 runpath_var='LD_RUN_PATH'
16276 hardcode_shlibpath_var_GCJ=no
16280 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16281 hardcode_shlibpath_var_GCJ=no
16282 export_dynamic_flag_spec_GCJ='-Bexport'
16286 if test -d /usr/nec; then
16287 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16288 hardcode_shlibpath_var_GCJ=no
16289 runpath_var=LD_RUN_PATH
16290 hardcode_runpath_var=yes
16296 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16297 hardcode_direct_GCJ=yes
16298 hardcode_minus_L_GCJ=no
16299 hardcode_shlibpath_var_GCJ=no
16300 hardcode_runpath_var=yes
16301 runpath_var=LD_RUN_PATH
16304 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16305 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16306 if test "$GCC" = yes; then
16307 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16309 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16311 runpath_var='LD_RUN_PATH'
16312 hardcode_shlibpath_var_GCJ=no
16316 no_undefined_flag_GCJ=' -z text'
16317 # $CC -shared without GNU ld will not create a library from C++
16318 # object files and a static libstdc++, better avoid it by now
16319 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16320 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16321 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16322 hardcode_libdir_flag_spec_GCJ=
16323 hardcode_shlibpath_var_GCJ=no
16324 runpath_var='LD_RUN_PATH'
16328 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16330 hardcode_shlibpath_var_GCJ=no
16339 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16340 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16341 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16344 if test "$GCC" = yes; then
16345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16349 # Do we need to explicitly link libc?
16351 case "x$archive_cmds_need_lc_GCJ" in
16353 # Assume -lc should be added
16354 archive_cmds_need_lc_GCJ=yes
16356 if test "$enable_shared" = yes && test "$GCC" = yes; then
16357 case $archive_cmds_GCJ in
16359 # FIXME: we may have to deal with multi-command sequences.
16362 # Test whether the compiler implicitly links with -lc since on some
16363 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16364 # to ld, don't add -lc before -lgcc.
16365 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16366 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16368 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16371 (eval $ac_compile) 2>&5
16373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374 (exit $ac_status); } 2>conftest.err; then
16377 libobjs=conftest.$ac_objext
16379 wl=$lt_prog_compiler_wl_GCJ
16385 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16386 allow_undefined_flag_GCJ=
16387 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16388 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }
16393 archive_cmds_need_lc_GCJ=no
16395 archive_cmds_need_lc_GCJ=yes
16397 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16399 cat conftest.err 1>&5
16402 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16403 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16410 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16411 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16412 library_names_spec=
16413 libname_spec='lib$name'
16417 postuninstall_cmds=
16421 shlibpath_overrides_runpath=unknown
16423 dynamic_linker="$host_os ld.so"
16424 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16425 if test "$GCC" = yes; then
16426 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16427 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16428 # if the path contains ";" then we assume it to be the separator
16429 # otherwise default to the standard path separator (i.e. ":") - it is
16430 # assumed that no part of a normal pathname contains ";" but that should
16431 # okay in the real world where ";" in dirpaths is itself problematic.
16432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16434 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16437 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16439 need_lib_prefix=unknown
16440 hardcode_into_libs=no
16442 # when you set need_version to no, make sure it does not cause -set_version
16443 # flags to be left without arguments
16444 need_version=unknown
16449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16450 shlibpath_var=LIBPATH
16452 # AIX 3 has no versioning support, so we append a major version to the name.
16453 soname_spec='${libname}${release}${shared_ext}$major'
16460 hardcode_into_libs=yes
16461 if test "$host_cpu" = ia64; then
16462 # AIX 5 supports IA64
16463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16464 shlibpath_var=LD_LIBRARY_PATH
16466 # With GCC up to 2.95.x, collect2 would create an import file
16467 # for dependence libraries. The import file would start with
16468 # the line `#! .'. This would cause the generated library to
16469 # depend on `.', always an invalid library. This was fixed in
16470 # development snapshots of GCC prior to 3.0.
16472 aix4 | aix4.[01] | aix4.[01].*)
16473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16475 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16478 can_build_shared=no
16482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16483 # soname into executable. Probably we can add versioning support to
16484 # collect2, so additional links can be useful in future.
16485 if test "$aix_use_runtimelinking" = yes; then
16486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16487 # instead of lib<name>.a to let people know that these are not
16488 # typical AIX shared libraries.
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 # We preserve .a as extension for shared libraries through AIX4.2
16492 # and later when we are not doing run time linking.
16493 library_names_spec='${libname}${release}.a $libname.a'
16494 soname_spec='${libname}${release}${shared_ext}$major'
16496 shlibpath_var=LIBPATH
16501 library_names_spec='$libname.ixlibrary $libname.a'
16502 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16503 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'
16507 library_names_spec='${libname}${shared_ext}'
16508 dynamic_linker="$host_os ld.so"
16509 shlibpath_var=LIBRARY_PATH
16515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16516 soname_spec='${libname}${release}${shared_ext}$major'
16517 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16518 shlibpath_var=LD_LIBRARY_PATH
16519 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16520 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16521 # the default ld.so.conf also contains /usr/contrib/lib and
16522 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16523 # libtool to hard-code these into programs
16526 cygwin* | mingw* | pw32*)
16527 version_type=windows
16532 case $GCC,$host_os in
16533 yes,cygwin* | yes,mingw* | yes,pw32*)
16534 library_names_spec='$libname.dll.a'
16535 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16536 postinstall_cmds='base_file=`basename \${file}`~
16537 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16538 dldir=$destdir/`dirname \$dlpath`~
16539 test -d \$dldir || mkdir -p \$dldir~
16540 $install_prog $dir/$dlname \$dldir/$dlname'
16541 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16542 dlpath=$dir/\$dldll~
16544 shlibpath_overrides_runpath=yes
16548 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16549 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16550 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16553 # MinGW DLLs use traditional 'lib' prefix
16554 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16555 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16556 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16557 # It is most probably a Windows format PATH printed by
16558 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16559 # path with ; separators, and with drive letters. We can handle the
16560 # drive letters (cygwin fileutils understands them), so leave them,
16561 # especially as we might pass files found there to a mingw objdump,
16562 # which wouldn't understand a cygwinified path. Ahh.
16563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16565 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16569 # pw32 DLLs use 'pw' prefix rather than 'lib'
16570 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16576 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16579 dynamic_linker='Win32 ld.exe'
16580 # FIXME: first we should search . and the directory the executable is in
16584 darwin* | rhapsody*)
16585 dynamic_linker="$host_os dyld"
16586 version_type=darwin
16589 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16590 soname_spec='${libname}${release}${major}$shared_ext'
16591 shlibpath_overrides_runpath=yes
16592 shlibpath_var=DYLD_LIBRARY_PATH
16593 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16594 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16595 if test "$GCC" = yes; then
16596 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"`
16598 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16600 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16608 soname_spec='${libname}${release}${shared_ext}$major'
16609 shlibpath_var=LD_LIBRARY_PATH
16620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16621 soname_spec='${libname}${release}${shared_ext}$major'
16622 shlibpath_var=LD_LIBRARY_PATH
16623 shlibpath_overrides_runpath=no
16624 hardcode_into_libs=yes
16625 dynamic_linker='GNU ld.so'
16629 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16630 version_type=freebsd-$objformat
16631 case $version_type in
16633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16638 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16642 shlibpath_var=LD_LIBRARY_PATH
16645 shlibpath_overrides_runpath=yes
16647 freebsd3.01* | freebsdelf3.01*)
16648 shlibpath_overrides_runpath=yes
16649 hardcode_into_libs=yes
16652 shlibpath_overrides_runpath=no
16653 hardcode_into_libs=yes
16662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16663 soname_spec='${libname}${release}${shared_ext}$major'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 hardcode_into_libs=yes
16668 hpux9* | hpux10* | hpux11*)
16669 # Give a soname corresponding to the major version so that dld.sl refuses to
16670 # link against other versions.
16674 case "$host_cpu" in
16677 hardcode_into_libs=yes
16678 dynamic_linker="$host_os dld.so"
16679 shlibpath_var=LD_LIBRARY_PATH
16680 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16683 if test "X$HPUX_IA64_MODE" = X32; then
16684 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16686 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16688 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16692 hardcode_into_libs=yes
16693 dynamic_linker="$host_os dld.sl"
16694 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16697 soname_spec='${libname}${release}${shared_ext}$major'
16698 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16699 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16703 dynamic_linker="$host_os dld.sl"
16704 shlibpath_var=SHLIB_PATH
16705 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16707 soname_spec='${libname}${release}${shared_ext}$major'
16710 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16711 postinstall_cmds='chmod 555 $lib'
16714 irix5* | irix6* | nonstopux*)
16716 nonstopux*) version_type=nonstopux ;;
16718 if test "$lt_cv_prog_gnu_ld" = yes; then
16726 soname_spec='${libname}${release}${shared_ext}$major'
16727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16729 irix5* | nonstopux*)
16730 libsuff= shlibsuff=
16733 case $LD in # libtool.m4 will add one of these switches to LD
16734 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16735 libsuff= shlibsuff= libmagic=32-bit;;
16736 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16737 libsuff=32 shlibsuff=N32 libmagic=N32;;
16738 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16739 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16740 *) libsuff= shlibsuff= libmagic=never-match;;
16744 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16745 shlibpath_overrides_runpath=no
16746 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16747 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16748 hardcode_into_libs=yes
16751 # No shared lib support for Linux oldld, aout, or coff.
16752 linux*oldld* | linux*aout* | linux*coff*)
16756 # This must be Linux ELF.
16761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16762 soname_spec='${libname}${release}${shared_ext}$major'
16763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16764 shlibpath_var=LD_LIBRARY_PATH
16765 shlibpath_overrides_runpath=no
16766 # This implies no fast_install, which is unacceptable.
16767 # Some rework will be needed to allow for fast_install
16768 # before this can be enabled.
16769 hardcode_into_libs=yes
16771 # Append ld.so.conf contents to the search path
16772 if test -f /etc/ld.so.conf; then
16773 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16774 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16777 # We used to test for /lib/ld.so.1 and disable shared libraries on
16778 # powerpc, because MkLinux only supported shared libraries with the
16779 # GNU dynamic linker. Since this was broken with cross compilers,
16780 # most powerpc-linux boxes support dynamic linking these days and
16781 # people can always --disable-shared, the test was removed, and we
16782 # assume the GNU/Linux dynamic linker is in use.
16783 dynamic_linker='GNU/Linux ld.so'
16790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16791 soname_spec='${libname}${release}${shared_ext}$major'
16792 shlibpath_var=LD_LIBRARY_PATH
16793 shlibpath_overrides_runpath=no
16794 hardcode_into_libs=yes
16795 dynamic_linker='GNU ld.so'
16802 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16804 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16805 dynamic_linker='NetBSD (a.out) ld.so'
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 dynamic_linker='NetBSD ld.elf_so'
16811 shlibpath_var=LD_LIBRARY_PATH
16812 shlibpath_overrides_runpath=yes
16813 hardcode_into_libs=yes
16818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16819 shlibpath_var=LD_LIBRARY_PATH
16820 shlibpath_overrides_runpath=yes
16827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16828 soname_spec='${libname}${release}${shared_ext}$major'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=yes
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16838 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16842 openbsd2.[89] | openbsd2.[89].*)
16843 shlibpath_overrides_runpath=no
16846 shlibpath_overrides_runpath=yes
16850 shlibpath_overrides_runpath=yes
16855 libname_spec='$name'
16858 library_names_spec='$libname${shared_ext} $libname.a'
16859 dynamic_linker='OS/2 ld.exe'
16860 shlibpath_var=LIBPATH
16863 osf3* | osf4* | osf5*)
16867 soname_spec='${libname}${release}${shared_ext}$major'
16868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16869 shlibpath_var=LD_LIBRARY_PATH
16870 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16871 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16876 soname_spec='${libname}${release}${shared_ext}$major'
16877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16878 shlibpath_var=LD_LIBRARY_PATH
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 shlibpath_var=LD_LIBRARY_PATH
16888 shlibpath_overrides_runpath=yes
16889 hardcode_into_libs=yes
16890 # ldd complains unless libraries are executable
16891 postinstall_cmds='chmod +x $lib'
16896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16897 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16898 shlibpath_var=LD_LIBRARY_PATH
16899 shlibpath_overrides_runpath=yes
16900 if test "$with_gnu_ld" = yes; then
16906 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16909 soname_spec='${libname}${release}${shared_ext}$major'
16910 shlibpath_var=LD_LIBRARY_PATH
16911 case $host_vendor in
16913 shlibpath_overrides_runpath=no
16915 export_dynamic_flag_spec='${wl}-Blargedynsym'
16916 runpath_var=LD_RUN_PATH
16924 shlibpath_overrides_runpath=no
16925 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16931 if test -d /usr/nec ;then
16933 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16934 soname_spec='$libname${shared_ext}.$major'
16935 shlibpath_var=LD_LIBRARY_PATH
16941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16942 soname_spec='${libname}${release}${shared_ext}$major'
16943 shlibpath_var=LD_LIBRARY_PATH
16950 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16951 echo "${ECHO_T}$dynamic_linker" >&6
16952 test "$dynamic_linker" = no && can_build_shared=no
16954 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16955 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16956 hardcode_action_GCJ=
16957 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16958 test -n "$runpath_var GCJ" || \
16959 test "X$hardcode_automatic_GCJ"="Xyes" ; then
16961 # We can hardcode non-existant directories.
16962 if test "$hardcode_direct_GCJ" != no &&
16963 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16964 # have to relink, otherwise we might link with an installed library
16965 # when we should be linking with a yet-to-be-installed one
16966 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16967 test "$hardcode_minus_L_GCJ" != no; then
16968 # Linking always hardcodes the temporary library directory.
16969 hardcode_action_GCJ=relink
16971 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16972 hardcode_action_GCJ=immediate
16975 # We cannot hardcode anything, or else we can only hardcode existing
16977 hardcode_action_GCJ=unsupported
16979 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16980 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16982 if test "$hardcode_action_GCJ" = relink; then
16983 # Fast installation is not supported
16984 enable_fast_install=no
16985 elif test "$shlibpath_overrides_runpath" = yes ||
16986 test "$enable_shared" = no; then
16987 # Fast installation is not necessary
16988 enable_fast_install=needless
16993 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16994 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16995 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16996 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16997 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16998 echo "$as_me:$LINENO: result: yes" >&5
16999 echo "${ECHO_T}yes" >&6
17001 # FIXME - insert some real tests, host_os isn't really good enough
17004 if test -n "$STRIP" ; then
17005 striplib="$STRIP -x"
17006 echo "$as_me:$LINENO: result: yes" >&5
17007 echo "${ECHO_T}yes" >&6
17009 echo "$as_me:$LINENO: result: no" >&5
17010 echo "${ECHO_T}no" >&6
17014 echo "$as_me:$LINENO: result: no" >&5
17015 echo "${ECHO_T}no" >&6
17020 if test "x$enable_dlopen" != xyes; then
17021 enable_dlopen=unknown
17022 enable_dlopen_self=unknown
17023 enable_dlopen_self_static=unknown
17030 lt_cv_dlopen="load_add_on"
17032 lt_cv_dlopen_self=yes
17036 lt_cv_dlopen="LoadLibrary"
17041 lt_cv_dlopen="dlopen"
17046 # if libdl is installed we need to link against it
17047 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17048 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17049 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17050 echo $ECHO_N "(cached) $ECHO_C" >&6
17052 ac_check_lib_save_LIBS=$LIBS
17054 cat >conftest.$ac_ext <<_ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17061 /* Override any gcc2 internal prototype to avoid an error. */
17065 /* We use char because int might match the return type of a gcc2
17066 builtin and then its argument prototype would still apply. */
17076 rm -f conftest.$ac_objext conftest$ac_exeext
17077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17078 (eval $ac_link) 2>conftest.er1
17080 grep -v '^ *+' conftest.er1 >conftest.err
17082 cat conftest.err >&5
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); } &&
17085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; } &&
17091 { ac_try='test -s conftest$ac_exeext'
17092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17093 (eval $ac_try) 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_lib_dl_dlopen=yes
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_cv_lib_dl_dlopen=no
17104 rm -f conftest.err conftest.$ac_objext \
17105 conftest$ac_exeext conftest.$ac_ext
17106 LIBS=$ac_check_lib_save_LIBS
17108 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17109 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17110 if test $ac_cv_lib_dl_dlopen = yes; then
17111 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17114 lt_cv_dlopen="dyld"
17116 lt_cv_dlopen_self=yes
17123 echo "$as_me:$LINENO: checking for shl_load" >&5
17124 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17125 if test "${ac_cv_func_shl_load+set}" = set; then
17126 echo $ECHO_N "(cached) $ECHO_C" >&6
17128 cat >conftest.$ac_ext <<_ACEOF
17131 cat confdefs.h >>conftest.$ac_ext
17132 cat >>conftest.$ac_ext <<_ACEOF
17133 /* end confdefs.h. */
17134 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17135 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17136 #define shl_load innocuous_shl_load
17138 /* System header to define __stub macros and hopefully few prototypes,
17139 which can conflict with char shl_load (); below.
17140 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17141 <limits.h> exists even on freestanding compilers. */
17144 # include <limits.h>
17146 # include <assert.h>
17151 /* Override any gcc2 internal prototype to avoid an error. */
17156 /* We use char because int might match the return type of a gcc2
17157 builtin and then its argument prototype would still apply. */
17159 /* The GNU C library defines this for functions which it implements
17160 to always fail with ENOSYS. Some functions are actually named
17161 something starting with __ and the normal name is an alias. */
17162 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17165 char (*f) () = shl_load;
17174 return f != shl_load;
17179 rm -f conftest.$ac_objext conftest$ac_exeext
17180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17181 (eval $ac_link) 2>conftest.er1
17183 grep -v '^ *+' conftest.er1 >conftest.err
17185 cat conftest.err >&5
17186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17187 (exit $ac_status); } &&
17188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17189 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17190 (eval $ac_try) 2>&5
17192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17193 (exit $ac_status); }; } &&
17194 { ac_try='test -s conftest$ac_exeext'
17195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17196 (eval $ac_try) 2>&5
17198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17199 (exit $ac_status); }; }; then
17200 ac_cv_func_shl_load=yes
17202 echo "$as_me: failed program was:" >&5
17203 sed 's/^/| /' conftest.$ac_ext >&5
17205 ac_cv_func_shl_load=no
17207 rm -f conftest.err conftest.$ac_objext \
17208 conftest$ac_exeext conftest.$ac_ext
17210 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17211 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17212 if test $ac_cv_func_shl_load = yes; then
17213 lt_cv_dlopen="shl_load"
17215 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17216 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17217 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17218 echo $ECHO_N "(cached) $ECHO_C" >&6
17220 ac_check_lib_save_LIBS=$LIBS
17222 cat >conftest.$ac_ext <<_ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17229 /* Override any gcc2 internal prototype to avoid an error. */
17233 /* We use char because int might match the return type of a gcc2
17234 builtin and then its argument prototype would still apply. */
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17246 (eval $ac_link) 2>conftest.er1
17248 grep -v '^ *+' conftest.er1 >conftest.err
17250 cat conftest.err >&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); } &&
17253 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17255 (eval $ac_try) 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest$ac_exeext'
17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17261 (eval $ac_try) 2>&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); }; }; then
17265 ac_cv_lib_dld_shl_load=yes
17267 echo "$as_me: failed program was:" >&5
17268 sed 's/^/| /' conftest.$ac_ext >&5
17270 ac_cv_lib_dld_shl_load=no
17272 rm -f conftest.err conftest.$ac_objext \
17273 conftest$ac_exeext conftest.$ac_ext
17274 LIBS=$ac_check_lib_save_LIBS
17276 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17277 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17278 if test $ac_cv_lib_dld_shl_load = yes; then
17279 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17281 echo "$as_me:$LINENO: checking for dlopen" >&5
17282 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17283 if test "${ac_cv_func_dlopen+set}" = set; then
17284 echo $ECHO_N "(cached) $ECHO_C" >&6
17286 cat >conftest.$ac_ext <<_ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17293 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17294 #define dlopen innocuous_dlopen
17296 /* System header to define __stub macros and hopefully few prototypes,
17297 which can conflict with char dlopen (); below.
17298 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17299 <limits.h> exists even on freestanding compilers. */
17302 # include <limits.h>
17304 # include <assert.h>
17309 /* Override any gcc2 internal prototype to avoid an error. */
17314 /* We use char because int might match the return type of a gcc2
17315 builtin and then its argument prototype would still apply. */
17317 /* The GNU C library defines this for functions which it implements
17318 to always fail with ENOSYS. Some functions are actually named
17319 something starting with __ and the normal name is an alias. */
17320 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17323 char (*f) () = dlopen;
17332 return f != dlopen;
17337 rm -f conftest.$ac_objext conftest$ac_exeext
17338 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17339 (eval $ac_link) 2>conftest.er1
17341 grep -v '^ *+' conftest.er1 >conftest.err
17343 cat conftest.err >&5
17344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17345 (exit $ac_status); } &&
17346 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17348 (eval $ac_try) 2>&5
17350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17351 (exit $ac_status); }; } &&
17352 { ac_try='test -s conftest$ac_exeext'
17353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17354 (eval $ac_try) 2>&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); }; }; then
17358 ac_cv_func_dlopen=yes
17360 echo "$as_me: failed program was:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_func_dlopen=no
17365 rm -f conftest.err conftest.$ac_objext \
17366 conftest$ac_exeext conftest.$ac_ext
17368 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17369 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17370 if test $ac_cv_func_dlopen = yes; then
17371 lt_cv_dlopen="dlopen"
17373 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17374 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17375 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17376 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 ac_check_lib_save_LIBS=$LIBS
17380 cat >conftest.$ac_ext <<_ACEOF
17383 cat confdefs.h >>conftest.$ac_ext
17384 cat >>conftest.$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17387 /* Override any gcc2 internal prototype to avoid an error. */
17391 /* We use char because int might match the return type of a gcc2
17392 builtin and then its argument prototype would still apply. */
17402 rm -f conftest.$ac_objext conftest$ac_exeext
17403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17404 (eval $ac_link) 2>conftest.er1
17406 grep -v '^ *+' conftest.er1 >conftest.err
17408 cat conftest.err >&5
17409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17410 (exit $ac_status); } &&
17411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17413 (eval $ac_try) 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try='test -s conftest$ac_exeext'
17418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17419 (eval $ac_try) 2>&5
17421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17422 (exit $ac_status); }; }; then
17423 ac_cv_lib_dl_dlopen=yes
17425 echo "$as_me: failed program was:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ac_cv_lib_dl_dlopen=no
17430 rm -f conftest.err conftest.$ac_objext \
17431 conftest$ac_exeext conftest.$ac_ext
17432 LIBS=$ac_check_lib_save_LIBS
17434 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17435 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17436 if test $ac_cv_lib_dl_dlopen = yes; then
17437 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17439 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17440 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17441 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17442 echo $ECHO_N "(cached) $ECHO_C" >&6
17444 ac_check_lib_save_LIBS=$LIBS
17445 LIBS="-lsvld $LIBS"
17446 cat >conftest.$ac_ext <<_ACEOF
17449 cat confdefs.h >>conftest.$ac_ext
17450 cat >>conftest.$ac_ext <<_ACEOF
17451 /* end confdefs.h. */
17453 /* Override any gcc2 internal prototype to avoid an error. */
17457 /* We use char because int might match the return type of a gcc2
17458 builtin and then its argument prototype would still apply. */
17468 rm -f conftest.$ac_objext conftest$ac_exeext
17469 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17470 (eval $ac_link) 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; } &&
17483 { ac_try='test -s conftest$ac_exeext'
17484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17485 (eval $ac_try) 2>&5
17487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); }; }; then
17489 ac_cv_lib_svld_dlopen=yes
17491 echo "$as_me: failed program was:" >&5
17492 sed 's/^/| /' conftest.$ac_ext >&5
17494 ac_cv_lib_svld_dlopen=no
17496 rm -f conftest.err conftest.$ac_objext \
17497 conftest$ac_exeext conftest.$ac_ext
17498 LIBS=$ac_check_lib_save_LIBS
17500 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17501 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17502 if test $ac_cv_lib_svld_dlopen = yes; then
17503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17505 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17506 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17507 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17508 echo $ECHO_N "(cached) $ECHO_C" >&6
17510 ac_check_lib_save_LIBS=$LIBS
17512 cat >conftest.$ac_ext <<_ACEOF
17515 cat confdefs.h >>conftest.$ac_ext
17516 cat >>conftest.$ac_ext <<_ACEOF
17517 /* end confdefs.h. */
17519 /* Override any gcc2 internal prototype to avoid an error. */
17523 /* We use char because int might match the return type of a gcc2
17524 builtin and then its argument prototype would still apply. */
17534 rm -f conftest.$ac_objext conftest$ac_exeext
17535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17536 (eval $ac_link) 2>conftest.er1
17538 grep -v '^ *+' conftest.er1 >conftest.err
17540 cat conftest.err >&5
17541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17542 (exit $ac_status); } &&
17543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17545 (eval $ac_try) 2>&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); }; } &&
17549 { ac_try='test -s conftest$ac_exeext'
17550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17551 (eval $ac_try) 2>&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); }; }; then
17555 ac_cv_lib_dld_dld_link=yes
17557 echo "$as_me: failed program was:" >&5
17558 sed 's/^/| /' conftest.$ac_ext >&5
17560 ac_cv_lib_dld_dld_link=no
17562 rm -f conftest.err conftest.$ac_objext \
17563 conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17566 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17567 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17568 if test $ac_cv_lib_dld_dld_link = yes; then
17569 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17590 if test "x$lt_cv_dlopen" != xno; then
17596 case $lt_cv_dlopen in
17598 save_CPPFLAGS="$CPPFLAGS"
17599 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17601 save_LDFLAGS="$LDFLAGS"
17602 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17605 LIBS="$lt_cv_dlopen_libs $LIBS"
17607 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17608 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17609 if test "${lt_cv_dlopen_self+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 if test "$cross_compiling" = yes; then :
17613 lt_cv_dlopen_self=cross
17615 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17616 lt_status=$lt_dlunknown
17617 cat > conftest.$ac_ext <<EOF
17618 #line 17618 "configure"
17619 #include "confdefs.h"
17628 # define LT_DLGLOBAL RTLD_GLOBAL
17631 # define LT_DLGLOBAL DL_GLOBAL
17633 # define LT_DLGLOBAL 0
17637 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17638 find out it does not work in some platform. */
17639 #ifndef LT_DLLAZY_OR_NOW
17641 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17644 # define LT_DLLAZY_OR_NOW DL_LAZY
17647 # define LT_DLLAZY_OR_NOW RTLD_NOW
17650 # define LT_DLLAZY_OR_NOW DL_NOW
17652 # define LT_DLLAZY_OR_NOW 0
17660 extern "C" void exit (int);
17663 void fnord() { int i=42;}
17666 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17667 int status = $lt_dlunknown;
17671 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17672 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17673 /* dlclose (self); */
17679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17680 (eval $ac_link) 2>&5
17682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17683 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17684 (./conftest; exit; ) 2>/dev/null
17686 case x$lt_status in
17687 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17688 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17689 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17692 # compilation failed
17693 lt_cv_dlopen_self=no
17700 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17701 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17703 if test "x$lt_cv_dlopen_self" = xyes; then
17704 LDFLAGS="$LDFLAGS $link_static_flag"
17705 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17706 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17707 if test "${lt_cv_dlopen_self_static+set}" = set; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 if test "$cross_compiling" = yes; then :
17711 lt_cv_dlopen_self_static=cross
17713 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17714 lt_status=$lt_dlunknown
17715 cat > conftest.$ac_ext <<EOF
17716 #line 17716 "configure"
17717 #include "confdefs.h"
17726 # define LT_DLGLOBAL RTLD_GLOBAL
17729 # define LT_DLGLOBAL DL_GLOBAL
17731 # define LT_DLGLOBAL 0
17735 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17736 find out it does not work in some platform. */
17737 #ifndef LT_DLLAZY_OR_NOW
17739 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17742 # define LT_DLLAZY_OR_NOW DL_LAZY
17745 # define LT_DLLAZY_OR_NOW RTLD_NOW
17748 # define LT_DLLAZY_OR_NOW DL_NOW
17750 # define LT_DLLAZY_OR_NOW 0
17758 extern "C" void exit (int);
17761 void fnord() { int i=42;}
17764 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17765 int status = $lt_dlunknown;
17769 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17770 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17771 /* dlclose (self); */
17777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17778 (eval $ac_link) 2>&5
17780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17781 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17782 (./conftest; exit; ) 2>/dev/null
17784 case x$lt_status in
17785 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17786 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17787 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17790 # compilation failed
17791 lt_cv_dlopen_self_static=no
17798 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17799 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17802 CPPFLAGS="$save_CPPFLAGS"
17803 LDFLAGS="$save_LDFLAGS"
17808 case $lt_cv_dlopen_self in
17809 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17810 *) enable_dlopen_self=unknown ;;
17813 case $lt_cv_dlopen_self_static in
17814 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17815 *) enable_dlopen_self_static=unknown ;;
17820 # The else clause should only fire when bootstrapping the
17821 # libtool distribution, otherwise you forgot to ship ltmain.sh
17822 # with your package, and you will get complaints that there are
17823 # no rules to generate ltmain.sh.
17824 if test -f "$ltmain"; then
17825 # See if we are running on zsh, and set the options which allow our commands through
17826 # without removal of \ escapes.
17827 if test -n "${ZSH_VERSION+set}" ; then
17828 setopt NO_GLOB_SUBST
17830 # Now quote all the things that may contain metacharacters while being
17831 # careful not to overquote the AC_SUBSTed values. We take copies of the
17832 # variables and quote the copies for generation of the libtool script.
17833 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17835 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17836 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17837 deplibs_check_method reload_flag reload_cmds need_locks \
17838 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17839 lt_cv_sys_global_symbol_to_c_name_address \
17840 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17841 old_postinstall_cmds old_postuninstall_cmds \
17845 lt_prog_compiler_wl_GCJ \
17846 lt_prog_compiler_pic_GCJ \
17847 lt_prog_compiler_static_GCJ \
17848 lt_prog_compiler_no_builtin_flag_GCJ \
17849 export_dynamic_flag_spec_GCJ \
17850 thread_safe_flag_spec_GCJ \
17851 whole_archive_flag_spec_GCJ \
17852 enable_shared_with_static_runtimes_GCJ \
17853 old_archive_cmds_GCJ \
17854 old_archive_from_new_cmds_GCJ \
17855 predep_objects_GCJ \
17856 postdep_objects_GCJ \
17859 compiler_lib_search_path_GCJ \
17861 archive_expsym_cmds_GCJ \
17862 postinstall_cmds_GCJ \
17863 postuninstall_cmds_GCJ \
17864 old_archive_from_expsyms_cmds_GCJ \
17865 allow_undefined_flag_GCJ \
17866 no_undefined_flag_GCJ \
17867 export_symbols_cmds_GCJ \
17868 hardcode_libdir_flag_spec_GCJ \
17869 hardcode_libdir_flag_spec_ld_GCJ \
17870 hardcode_libdir_separator_GCJ \
17871 hardcode_automatic_GCJ \
17873 module_expsym_cmds_GCJ \
17874 lt_cv_prog_compiler_c_o_GCJ \
17875 exclude_expsyms_GCJ \
17876 include_expsyms_GCJ; do
17879 old_archive_cmds_GCJ | \
17880 old_archive_from_new_cmds_GCJ | \
17881 archive_cmds_GCJ | \
17882 archive_expsym_cmds_GCJ | \
17883 module_cmds_GCJ | \
17884 module_expsym_cmds_GCJ | \
17885 old_archive_from_expsyms_cmds_GCJ | \
17886 export_symbols_cmds_GCJ | \
17887 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17888 postinstall_cmds | postuninstall_cmds | \
17889 old_postinstall_cmds | old_postuninstall_cmds | \
17890 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17891 # Double-quote double-evaled strings.
17892 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17895 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17901 *'\$0 --fallback-echo"')
17902 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17908 cat <<__EOF__ >> "$cfgfile"
17909 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17911 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17913 # Shell to use when invoking shell scripts.
17916 # Whether or not to build shared libraries.
17917 build_libtool_libs=$enable_shared
17919 # Whether or not to build static libraries.
17920 build_old_libs=$enable_static
17922 # Whether or not to add -lc for building shared libraries.
17923 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17925 # Whether or not to disallow shared libs when runtime libs are static
17926 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17928 # Whether or not to optimize for fast installation.
17929 fast_install=$enable_fast_install
17932 host_alias=$host_alias
17935 # An echo program that does not interpret backslashes.
17940 AR_FLAGS=$lt_AR_FLAGS
17945 # A language-specific compiler.
17946 CC=$lt_compiler_GCJ
17948 # Is the compiler the GNU C compiler?
17954 # The linker used to build libraries.
17957 # Whether we need hard or soft links.
17960 # A BSD-compatible nm program.
17963 # A symbol stripping program
17966 # Used to examine libraries when file_magic_cmd begins "file"
17967 MAGIC_CMD=$MAGIC_CMD
17969 # Used on cygwin: DLL creation program.
17972 # Used on cygwin: object dumper.
17975 # Used on cygwin: assembler.
17978 # The name of the directory that contains temporary libtool files.
17981 # How to create reloadable object files.
17982 reload_flag=$lt_reload_flag
17983 reload_cmds=$lt_reload_cmds
17985 # How to pass a linker flag through the compiler.
17986 wl=$lt_lt_prog_compiler_wl_GCJ
17988 # Object file suffix (normally "o").
17989 objext="$ac_objext"
17991 # Old archive suffix (normally "a").
17994 # Shared library suffix (normally ".so").
17995 shrext_cmds='$shrext_cmds'
17997 # Executable file suffix (normally "").
18000 # Additional compiler flags for building library objects.
18001 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18004 # What is the maximum length of a command?
18005 max_cmd_len=$lt_cv_sys_max_cmd_len
18007 # Does compiler simultaneously support -c and -o options?
18008 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18010 # Must we lock files when doing compilation ?
18011 need_locks=$lt_need_locks
18013 # Do we need the lib prefix for modules?
18014 need_lib_prefix=$need_lib_prefix
18016 # Do we need a version for libraries?
18017 need_version=$need_version
18019 # Whether dlopen is supported.
18020 dlopen_support=$enable_dlopen
18022 # Whether dlopen of programs is supported.
18023 dlopen_self=$enable_dlopen_self
18025 # Whether dlopen of statically linked programs is supported.
18026 dlopen_self_static=$enable_dlopen_self_static
18028 # Compiler flag to prevent dynamic linking.
18029 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18031 # Compiler flag to turn off builtin functions.
18032 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18034 # Compiler flag to allow reflexive dlopens.
18035 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18037 # Compiler flag to generate shared objects directly from archives.
18038 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18040 # Compiler flag to generate thread-safe objects.
18041 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18043 # Library versioning type.
18044 version_type=$version_type
18046 # Format of library name prefix.
18047 libname_spec=$lt_libname_spec
18049 # List of archive names. First name is the real one, the rest are links.
18050 # The last name is the one that the linker finds with -lNAME.
18051 library_names_spec=$lt_library_names_spec
18053 # The coded name of the library, if different from the real name.
18054 soname_spec=$lt_soname_spec
18056 # Commands used to build and install an old-style archive.
18058 old_archive_cmds=$lt_old_archive_cmds_GCJ
18059 old_postinstall_cmds=$lt_old_postinstall_cmds
18060 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18062 # Create an old-style archive from a shared archive.
18063 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18065 # Create a temporary old-style archive to link instead of a shared archive.
18066 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18068 # Commands used to build and install a shared archive.
18069 archive_cmds=$lt_archive_cmds_GCJ
18070 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18071 postinstall_cmds=$lt_postinstall_cmds
18072 postuninstall_cmds=$lt_postuninstall_cmds
18074 # Commands used to build a loadable module (assumed same as above if empty)
18075 module_cmds=$lt_module_cmds_GCJ
18076 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18078 # Commands to strip libraries.
18079 old_striplib=$lt_old_striplib
18080 striplib=$lt_striplib
18082 # Dependencies to place before the objects being linked to create a
18084 predep_objects=$lt_predep_objects_GCJ
18086 # Dependencies to place after the objects being linked to create a
18088 postdep_objects=$lt_postdep_objects_GCJ
18090 # Dependencies to place before the objects being linked to create a
18092 predeps=$lt_predeps_GCJ
18094 # Dependencies to place after the objects being linked to create a
18096 postdeps=$lt_postdeps_GCJ
18098 # The library search path used internally by the compiler when linking
18099 # a shared library.
18100 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18102 # Method to check whether dependent libraries are shared objects.
18103 deplibs_check_method=$lt_deplibs_check_method
18105 # Command to use when deplibs_check_method == file_magic.
18106 file_magic_cmd=$lt_file_magic_cmd
18108 # Flag that allows shared libraries with undefined symbols to be built.
18109 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18111 # Flag that forces no undefined symbols.
18112 no_undefined_flag=$lt_no_undefined_flag_GCJ
18114 # Commands used to finish a libtool library installation in a directory.
18115 finish_cmds=$lt_finish_cmds
18117 # Same as above, but a single script fragment to be evaled but not shown.
18118 finish_eval=$lt_finish_eval
18120 # Take the output of nm and produce a listing of raw symbols and C names.
18121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18123 # Transform the output of nm in a proper C declaration
18124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18126 # Transform the output of nm in a C name address pair
18127 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18129 # This is the shared library runtime path variable.
18130 runpath_var=$runpath_var
18132 # This is the shared library path variable.
18133 shlibpath_var=$shlibpath_var
18135 # Is shlibpath searched before the hard-coded library search path?
18136 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18138 # How to hardcode a shared library path into an executable.
18139 hardcode_action=$hardcode_action_GCJ
18141 # Whether we should hardcode library paths into libraries.
18142 hardcode_into_libs=$hardcode_into_libs
18144 # Flag to hardcode \$libdir into a binary during linking.
18145 # This must work even if \$libdir does not exist.
18146 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18148 # If ld is used when linking, flag to hardcode \$libdir into
18149 # a binary during linking. This must work even if \$libdir does
18151 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18153 # Whether we need a single -rpath flag with a separated argument.
18154 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18156 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18157 # resulting binary.
18158 hardcode_direct=$hardcode_direct_GCJ
18160 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18161 # resulting binary.
18162 hardcode_minus_L=$hardcode_minus_L_GCJ
18164 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18165 # the resulting binary.
18166 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18168 # Set to yes if building a shared library automatically hardcodes DIR into the library
18169 # and all subsequent libraries and executables linked against it.
18170 hardcode_automatic=$hardcode_automatic_GCJ
18172 # Variables whose values should be saved in libtool wrapper scripts and
18173 # restored at relink time.
18174 variables_saved_for_relink="$variables_saved_for_relink"
18176 # Whether libtool must link a program against all its dependency libraries.
18177 link_all_deplibs=$link_all_deplibs_GCJ
18179 # Compile-time system search path for libraries
18180 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18182 # Run-time system search path for libraries
18183 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18185 # Fix the shell variable \$srcfile for the compiler.
18186 fix_srcfile_path="$fix_srcfile_path_GCJ"
18188 # Set to yes if exported symbols are required.
18189 always_export_symbols=$always_export_symbols_GCJ
18191 # The commands to list exported symbols.
18192 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18194 # The commands to extract the exported symbol list from a shared archive.
18195 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18197 # Symbols that should not be listed in the preloaded symbols.
18198 exclude_expsyms=$lt_exclude_expsyms_GCJ
18200 # Symbols that must always be exported.
18201 include_expsyms=$lt_include_expsyms_GCJ
18203 # ### END LIBTOOL TAG CONFIG: $tagname
18209 # If there is no Makefile yet, we rely on a make rule to execute
18210 # `config.status --recheck' to rerun these tests and create the
18211 # libtool script then.
18212 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18213 if test -f "$ltmain_in"; then
18214 test -f Makefile && make "$ltmain"
18220 ac_cpp='$CPP $CPPFLAGS'
18221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18236 # Source file extension for RC test sources.
18239 # Object file extension for compiled RC test sources.
18243 # Code to be used in simple compile tests
18244 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18246 # Code to be used in simple link tests
18247 lt_simple_link_test_code="$lt_simple_compile_test_code"
18249 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18251 # If no C compiler was specified, use CC.
18254 # Allow CC to be a program name with arguments.
18258 # Allow CC to be a program name with arguments.
18263 lt_cv_prog_compiler_c_o_RC=yes
18265 # The else clause should only fire when bootstrapping the
18266 # libtool distribution, otherwise you forgot to ship ltmain.sh
18267 # with your package, and you will get complaints that there are
18268 # no rules to generate ltmain.sh.
18269 if test -f "$ltmain"; then
18270 # See if we are running on zsh, and set the options which allow our commands through
18271 # without removal of \ escapes.
18272 if test -n "${ZSH_VERSION+set}" ; then
18273 setopt NO_GLOB_SUBST
18275 # Now quote all the things that may contain metacharacters while being
18276 # careful not to overquote the AC_SUBSTed values. We take copies of the
18277 # variables and quote the copies for generation of the libtool script.
18278 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18280 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18281 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18282 deplibs_check_method reload_flag reload_cmds need_locks \
18283 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18284 lt_cv_sys_global_symbol_to_c_name_address \
18285 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18286 old_postinstall_cmds old_postuninstall_cmds \
18290 lt_prog_compiler_wl_RC \
18291 lt_prog_compiler_pic_RC \
18292 lt_prog_compiler_static_RC \
18293 lt_prog_compiler_no_builtin_flag_RC \
18294 export_dynamic_flag_spec_RC \
18295 thread_safe_flag_spec_RC \
18296 whole_archive_flag_spec_RC \
18297 enable_shared_with_static_runtimes_RC \
18298 old_archive_cmds_RC \
18299 old_archive_from_new_cmds_RC \
18300 predep_objects_RC \
18301 postdep_objects_RC \
18304 compiler_lib_search_path_RC \
18306 archive_expsym_cmds_RC \
18307 postinstall_cmds_RC \
18308 postuninstall_cmds_RC \
18309 old_archive_from_expsyms_cmds_RC \
18310 allow_undefined_flag_RC \
18311 no_undefined_flag_RC \
18312 export_symbols_cmds_RC \
18313 hardcode_libdir_flag_spec_RC \
18314 hardcode_libdir_flag_spec_ld_RC \
18315 hardcode_libdir_separator_RC \
18316 hardcode_automatic_RC \
18318 module_expsym_cmds_RC \
18319 lt_cv_prog_compiler_c_o_RC \
18320 exclude_expsyms_RC \
18321 include_expsyms_RC; do
18324 old_archive_cmds_RC | \
18325 old_archive_from_new_cmds_RC | \
18326 archive_cmds_RC | \
18327 archive_expsym_cmds_RC | \
18329 module_expsym_cmds_RC | \
18330 old_archive_from_expsyms_cmds_RC | \
18331 export_symbols_cmds_RC | \
18332 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18333 postinstall_cmds | postuninstall_cmds | \
18334 old_postinstall_cmds | old_postuninstall_cmds | \
18335 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18336 # Double-quote double-evaled strings.
18337 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18340 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18346 *'\$0 --fallback-echo"')
18347 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18353 cat <<__EOF__ >> "$cfgfile"
18354 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18356 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18358 # Shell to use when invoking shell scripts.
18361 # Whether or not to build shared libraries.
18362 build_libtool_libs=$enable_shared
18364 # Whether or not to build static libraries.
18365 build_old_libs=$enable_static
18367 # Whether or not to add -lc for building shared libraries.
18368 build_libtool_need_lc=$archive_cmds_need_lc_RC
18370 # Whether or not to disallow shared libs when runtime libs are static
18371 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18373 # Whether or not to optimize for fast installation.
18374 fast_install=$enable_fast_install
18377 host_alias=$host_alias
18380 # An echo program that does not interpret backslashes.
18385 AR_FLAGS=$lt_AR_FLAGS
18390 # A language-specific compiler.
18393 # Is the compiler the GNU C compiler?
18399 # The linker used to build libraries.
18402 # Whether we need hard or soft links.
18405 # A BSD-compatible nm program.
18408 # A symbol stripping program
18411 # Used to examine libraries when file_magic_cmd begins "file"
18412 MAGIC_CMD=$MAGIC_CMD
18414 # Used on cygwin: DLL creation program.
18417 # Used on cygwin: object dumper.
18420 # Used on cygwin: assembler.
18423 # The name of the directory that contains temporary libtool files.
18426 # How to create reloadable object files.
18427 reload_flag=$lt_reload_flag
18428 reload_cmds=$lt_reload_cmds
18430 # How to pass a linker flag through the compiler.
18431 wl=$lt_lt_prog_compiler_wl_RC
18433 # Object file suffix (normally "o").
18434 objext="$ac_objext"
18436 # Old archive suffix (normally "a").
18439 # Shared library suffix (normally ".so").
18440 shrext_cmds='$shrext_cmds'
18442 # Executable file suffix (normally "").
18445 # Additional compiler flags for building library objects.
18446 pic_flag=$lt_lt_prog_compiler_pic_RC
18449 # What is the maximum length of a command?
18450 max_cmd_len=$lt_cv_sys_max_cmd_len
18452 # Does compiler simultaneously support -c and -o options?
18453 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18455 # Must we lock files when doing compilation ?
18456 need_locks=$lt_need_locks
18458 # Do we need the lib prefix for modules?
18459 need_lib_prefix=$need_lib_prefix
18461 # Do we need a version for libraries?
18462 need_version=$need_version
18464 # Whether dlopen is supported.
18465 dlopen_support=$enable_dlopen
18467 # Whether dlopen of programs is supported.
18468 dlopen_self=$enable_dlopen_self
18470 # Whether dlopen of statically linked programs is supported.
18471 dlopen_self_static=$enable_dlopen_self_static
18473 # Compiler flag to prevent dynamic linking.
18474 link_static_flag=$lt_lt_prog_compiler_static_RC
18476 # Compiler flag to turn off builtin functions.
18477 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18479 # Compiler flag to allow reflexive dlopens.
18480 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18482 # Compiler flag to generate shared objects directly from archives.
18483 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18485 # Compiler flag to generate thread-safe objects.
18486 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18488 # Library versioning type.
18489 version_type=$version_type
18491 # Format of library name prefix.
18492 libname_spec=$lt_libname_spec
18494 # List of archive names. First name is the real one, the rest are links.
18495 # The last name is the one that the linker finds with -lNAME.
18496 library_names_spec=$lt_library_names_spec
18498 # The coded name of the library, if different from the real name.
18499 soname_spec=$lt_soname_spec
18501 # Commands used to build and install an old-style archive.
18503 old_archive_cmds=$lt_old_archive_cmds_RC
18504 old_postinstall_cmds=$lt_old_postinstall_cmds
18505 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18507 # Create an old-style archive from a shared archive.
18508 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18510 # Create a temporary old-style archive to link instead of a shared archive.
18511 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18513 # Commands used to build and install a shared archive.
18514 archive_cmds=$lt_archive_cmds_RC
18515 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18516 postinstall_cmds=$lt_postinstall_cmds
18517 postuninstall_cmds=$lt_postuninstall_cmds
18519 # Commands used to build a loadable module (assumed same as above if empty)
18520 module_cmds=$lt_module_cmds_RC
18521 module_expsym_cmds=$lt_module_expsym_cmds_RC
18523 # Commands to strip libraries.
18524 old_striplib=$lt_old_striplib
18525 striplib=$lt_striplib
18527 # Dependencies to place before the objects being linked to create a
18529 predep_objects=$lt_predep_objects_RC
18531 # Dependencies to place after the objects being linked to create a
18533 postdep_objects=$lt_postdep_objects_RC
18535 # Dependencies to place before the objects being linked to create a
18537 predeps=$lt_predeps_RC
18539 # Dependencies to place after the objects being linked to create a
18541 postdeps=$lt_postdeps_RC
18543 # The library search path used internally by the compiler when linking
18544 # a shared library.
18545 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18547 # Method to check whether dependent libraries are shared objects.
18548 deplibs_check_method=$lt_deplibs_check_method
18550 # Command to use when deplibs_check_method == file_magic.
18551 file_magic_cmd=$lt_file_magic_cmd
18553 # Flag that allows shared libraries with undefined symbols to be built.
18554 allow_undefined_flag=$lt_allow_undefined_flag_RC
18556 # Flag that forces no undefined symbols.
18557 no_undefined_flag=$lt_no_undefined_flag_RC
18559 # Commands used to finish a libtool library installation in a directory.
18560 finish_cmds=$lt_finish_cmds
18562 # Same as above, but a single script fragment to be evaled but not shown.
18563 finish_eval=$lt_finish_eval
18565 # Take the output of nm and produce a listing of raw symbols and C names.
18566 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18568 # Transform the output of nm in a proper C declaration
18569 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18571 # Transform the output of nm in a C name address pair
18572 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18574 # This is the shared library runtime path variable.
18575 runpath_var=$runpath_var
18577 # This is the shared library path variable.
18578 shlibpath_var=$shlibpath_var
18580 # Is shlibpath searched before the hard-coded library search path?
18581 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18583 # How to hardcode a shared library path into an executable.
18584 hardcode_action=$hardcode_action_RC
18586 # Whether we should hardcode library paths into libraries.
18587 hardcode_into_libs=$hardcode_into_libs
18589 # Flag to hardcode \$libdir into a binary during linking.
18590 # This must work even if \$libdir does not exist.
18591 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18593 # If ld is used when linking, flag to hardcode \$libdir into
18594 # a binary during linking. This must work even if \$libdir does
18596 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18598 # Whether we need a single -rpath flag with a separated argument.
18599 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18601 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18602 # resulting binary.
18603 hardcode_direct=$hardcode_direct_RC
18605 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18606 # resulting binary.
18607 hardcode_minus_L=$hardcode_minus_L_RC
18609 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18610 # the resulting binary.
18611 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18613 # Set to yes if building a shared library automatically hardcodes DIR into the library
18614 # and all subsequent libraries and executables linked against it.
18615 hardcode_automatic=$hardcode_automatic_RC
18617 # Variables whose values should be saved in libtool wrapper scripts and
18618 # restored at relink time.
18619 variables_saved_for_relink="$variables_saved_for_relink"
18621 # Whether libtool must link a program against all its dependency libraries.
18622 link_all_deplibs=$link_all_deplibs_RC
18624 # Compile-time system search path for libraries
18625 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18627 # Run-time system search path for libraries
18628 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18630 # Fix the shell variable \$srcfile for the compiler.
18631 fix_srcfile_path="$fix_srcfile_path_RC"
18633 # Set to yes if exported symbols are required.
18634 always_export_symbols=$always_export_symbols_RC
18636 # The commands to list exported symbols.
18637 export_symbols_cmds=$lt_export_symbols_cmds_RC
18639 # The commands to extract the exported symbol list from a shared archive.
18640 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18642 # Symbols that should not be listed in the preloaded symbols.
18643 exclude_expsyms=$lt_exclude_expsyms_RC
18645 # Symbols that must always be exported.
18646 include_expsyms=$lt_include_expsyms_RC
18648 # ### END LIBTOOL TAG CONFIG: $tagname
18654 # If there is no Makefile yet, we rely on a make rule to execute
18655 # `config.status --recheck' to rerun these tests and create the
18656 # libtool script then.
18657 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18658 if test -f "$ltmain_in"; then
18659 test -f Makefile && make "$ltmain"
18665 ac_cpp='$CPP $CPPFLAGS'
18666 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18667 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18668 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18676 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18677 { (exit 1); exit 1; }; }
18681 # Append the new tag name to the list of available tags.
18682 if test -n "$tagname" ; then
18683 available_tags="$available_tags $tagname"
18689 # Now substitute the updated list of available tags.
18690 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18691 mv "${ofile}T" "$ofile"
18695 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18696 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18697 { (exit 1); exit 1; }; }
18703 # This can be used to rebuild libtool when needed
18704 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18706 # Always use our own libtool.
18707 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18709 # Prevent multiple expansion
18722 # Check whether --with-system-libtool or --without-system-libtool was given.
18723 if test "${with_system_libtool+set}" = set; then
18724 withval="$with_system_libtool"
18725 # Extract the first word of "libtool", so it can be a program name with args.
18726 set dummy libtool; ac_word=$2
18727 echo "$as_me:$LINENO: checking for $ac_word" >&5
18728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18729 if test "${ac_cv_path_LIBTOOL+set}" = set; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18734 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
18737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18738 as_dummy="$PATH:/usr/local/bin"
18739 for as_dir in $as_dummy
18742 test -z "$as_dir" && as_dir=.
18743 for ac_exec_ext in '' $ac_executable_extensions; do
18744 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18745 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
18746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18755 LIBTOOL=$ac_cv_path_LIBTOOL
18757 if test -n "$LIBTOOL"; then
18758 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
18759 echo "${ECHO_T}$LIBTOOL" >&6
18761 echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18767 LIBTOOL="`pwd`/libtool"
18786 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
18787 if test "${enable_strict_dependencies+set}" = set; then
18788 enableval="$enable_strict_dependencies"
18792 logdir='${localstatedir}/log/radius'
18793 echo "$as_me:$LINENO: checking logdir" >&5
18794 echo $ECHO_N "checking logdir... $ECHO_C" >&6
18796 # Check whether --with-logdir or --without-logdir was given.
18797 if test "${with_logdir+set}" = set; then
18798 withval="$with_logdir"
18801 { { echo "$as_me:$LINENO: error: Need logdir" >&5
18802 echo "$as_me: error: Need logdir" >&2;}
18803 { (exit 1); exit 1; }; }
18814 echo "$as_me:$LINENO: result: $logdir" >&5
18815 echo "${ECHO_T}$logdir" >&6
18817 radacctdir='${logdir}/radacct'
18818 echo "$as_me:$LINENO: checking radacctdir" >&5
18819 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
18821 # Check whether --with-radacctdir or --without-radacctdir was given.
18822 if test "${with_radacctdir+set}" = set; then
18823 withval="$with_radacctdir"
18826 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
18827 echo "$as_me: error: Need radacctdir" >&2;}
18828 { (exit 1); exit 1; }; }
18833 radacctdir="$withval"
18839 echo "$as_me:$LINENO: result: $radacctdir" >&5
18840 echo "${ECHO_T}$radacctdir" >&6
18842 raddbdir='${sysconfdir}/raddb'
18843 echo "$as_me:$LINENO: checking raddbdir" >&5
18844 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
18846 # Check whether --with-raddbdir or --without-raddbdir was given.
18847 if test "${with_raddbdir+set}" = set; then
18848 withval="$with_raddbdir"
18851 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
18852 echo "$as_me: error: Need raddbdir" >&2;}
18853 { (exit 1); exit 1; }; }
18858 raddbdir="$withval"
18864 echo "$as_me:$LINENO: result: $raddbdir" >&5
18865 echo "${ECHO_T}$raddbdir" >&6
18869 # Check whether --with-ascend-binary or --without-ascend-binary was given.
18870 if test "${with_ascend_binary+set}" = set; then
18871 withval="$with_ascend_binary"
18880 if test "X$ASCEND_BINARY" = "Xyes"; then
18881 cat >>confdefs.h <<\_ACEOF
18882 #define ASCEND_BINARY 1
18889 # Check whether --with-threads or --without-threads was given.
18890 if test "${with_threads+set}" = set; then
18891 withval="$with_threads"
18903 # Check whether --with-snmp or --without-snmp was given.
18904 if test "${with_snmp+set}" = set; then
18905 withval="$with_snmp"
18915 rad_enable_largefiles=no
18917 # Check whether --with-large-files or --without-large-files was given.
18918 if test "${with_large_files+set}" = set; then
18919 withval="$with_large_files"
18922 rad_enable_largefiles=yes
18934 # Check whether --with-static_modules or --without-static_modules was given.
18935 if test "${with_static_modules+set}" = set; then
18936 withval="$with_static_modules"
18938 for i in $withval; do
18939 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
18944 # Check whether --enable-developer or --disable-developer was given.
18945 if test "${enable_developer+set}" = set; then
18946 enableval="$enable_developer"
18947 case "$enableval" in
18957 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
18963 # Check whether --with-experimental-modules or --without-experimental-modules was given.
18964 if test "${with_experimental_modules+set}" = set; then
18965 withval="$with_experimental_modules"
18976 # Check whether --with-openssl-includes or --without-openssl-includes was given.
18977 if test "${with_openssl_includes+set}" = set; then
18978 withval="$with_openssl_includes"
18980 *) OPENSSL_INCLUDE_DIR="$withval"
18987 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
18988 if test "${with_openssl_libraries+set}" = set; then
18989 withval="$with_openssl_libraries"
18991 *) OPENSSL_LIB_DIR="$withval"
18999 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19000 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19001 withval="$with_rlm_FOO_lib_dir"
19010 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19011 if test "${with_rlm_FOO_include_dir+set}" = set; then
19012 withval="$with_rlm_FOO_include_dir"
19023 # Check whether --with-udpfromto or --without-udpfromto was given.
19024 if test "${with_udpfromto+set}" = set; then
19025 withval="$with_udpfromto"
19036 if test "x$WITH_UDPFROMTO" = "xyes"; then
19037 cat >>confdefs.h <<\_ACEOF
19038 #define WITH_UDPFROMTO 1
19044 CHECKRAD=checkrad.pl
19045 # Extract the first word of "perl", so it can be a program name with args.
19046 set dummy perl; ac_word=$2
19047 echo "$as_me:$LINENO: checking for $ac_word" >&5
19048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19049 if test "${ac_cv_path_PERL+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19054 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19058 for as_dir in $PATH
19061 test -z "$as_dir" && as_dir=.
19062 for ac_exec_ext in '' $ac_executable_extensions; do
19063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19064 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19071 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19075 PERL=$ac_cv_path_PERL
19077 if test -n "$PERL"; then
19078 echo "$as_me:$LINENO: result: $PERL" >&5
19079 echo "${ECHO_T}$PERL" >&6
19081 echo "$as_me:$LINENO: result: no" >&5
19082 echo "${ECHO_T}no" >&6
19085 if test "x$ac_cv_path_PERL" = "x"; then
19086 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19087 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19089 # Extract the first word of "snmpget", so it can be a program name with args.
19090 set dummy snmpget; ac_word=$2
19091 echo "$as_me:$LINENO: checking for $ac_word" >&5
19092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19093 if test "${ac_cv_path_SNMPGET+set}" = set; then
19094 echo $ECHO_N "(cached) $ECHO_C" >&6
19098 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19102 for as_dir in $PATH
19105 test -z "$as_dir" && as_dir=.
19106 for ac_exec_ext in '' $ac_executable_extensions; do
19107 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19108 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19118 SNMPGET=$ac_cv_path_SNMPGET
19120 if test -n "$SNMPGET"; then
19121 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19122 echo "${ECHO_T}$SNMPGET" >&6
19124 echo "$as_me:$LINENO: result: no" >&5
19125 echo "${ECHO_T}no" >&6
19128 if test "x$ac_cv_path_SNMPGET" = "x"; then
19129 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19130 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19133 # Extract the first word of "snmpwalk", so it can be a program name with args.
19134 set dummy snmpwalk; ac_word=$2
19135 echo "$as_me:$LINENO: checking for $ac_word" >&5
19136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19137 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19138 echo $ECHO_N "(cached) $ECHO_C" >&6
19142 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19146 for as_dir in $PATH
19149 test -z "$as_dir" && as_dir=.
19150 for ac_exec_ext in '' $ac_executable_extensions; do
19151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19152 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19162 SNMPWALK=$ac_cv_path_SNMPWALK
19164 if test -n "$SNMPWALK"; then
19165 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19166 echo "${ECHO_T}$SNMPWALK" >&6
19168 echo "$as_me:$LINENO: result: no" >&5
19169 echo "${ECHO_T}no" >&6
19172 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19173 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19174 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19177 # Extract the first word of "rusers", so it can be a program name with args.
19178 set dummy rusers; ac_word=$2
19179 echo "$as_me:$LINENO: checking for $ac_word" >&5
19180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19181 if test "${ac_cv_path_RUSERS+set}" = set; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19186 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19190 for as_dir in $PATH
19193 test -z "$as_dir" && as_dir=.
19194 for ac_exec_ext in '' $ac_executable_extensions; do
19195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19196 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19203 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19207 RUSERS=$ac_cv_path_RUSERS
19209 if test -n "$RUSERS"; then
19210 echo "$as_me:$LINENO: result: $RUSERS" >&5
19211 echo "${ECHO_T}$RUSERS" >&6
19213 echo "$as_me:$LINENO: result: no" >&5
19214 echo "${ECHO_T}no" >&6
19218 missing_dir=`cd $ac_aux_dir && pwd`
19219 echo "$as_me:$LINENO: checking for working aclocal" >&5
19220 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19221 # Run test in a subshell; some versions of sh will print an error if
19222 # an executable is not found, even if stderr is redirected.
19223 # Redirect stdin to placate older versions of autoconf. Sigh.
19224 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19226 echo "$as_me:$LINENO: result: found" >&5
19227 echo "${ECHO_T}found" >&6
19229 ACLOCAL="$missing_dir/missing aclocal"
19230 echo "$as_me:$LINENO: result: missing" >&5
19231 echo "${ECHO_T}missing" >&6
19234 echo "$as_me:$LINENO: checking for working autoconf" >&5
19235 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19236 # Run test in a subshell; some versions of sh will print an error if
19237 # an executable is not found, even if stderr is redirected.
19238 # Redirect stdin to placate older versions of autoconf. Sigh.
19239 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19241 echo "$as_me:$LINENO: result: found" >&5
19242 echo "${ECHO_T}found" >&6
19244 AUTOCONF="$missing_dir/missing autoconf"
19245 echo "$as_me:$LINENO: result: missing" >&5
19246 echo "${ECHO_T}missing" >&6
19249 echo "$as_me:$LINENO: checking for working autoheader" >&5
19250 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19251 # Run test in a subshell; some versions of sh will print an error if
19252 # an executable is not found, even if stderr is redirected.
19253 # Redirect stdin to placate older versions of autoconf. Sigh.
19254 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19255 AUTOHEADER=autoheader
19256 echo "$as_me:$LINENO: result: found" >&5
19257 echo "${ECHO_T}found" >&6
19259 AUTOHEADER="$missing_dir/missing autoheader"
19260 echo "$as_me:$LINENO: result: missing" >&5
19261 echo "${ECHO_T}missing" >&6
19265 # Extract the first word of "locate", so it can be a program name with args.
19266 set dummy locate; ac_word=$2
19267 echo "$as_me:$LINENO: checking for $ac_word" >&5
19268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19269 if test "${ac_cv_path_LOCATE+set}" = set; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19274 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19278 for as_dir in $PATH
19281 test -z "$as_dir" && as_dir=.
19282 for ac_exec_ext in '' $ac_executable_extensions; do
19283 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19284 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19294 LOCATE=$ac_cv_path_LOCATE
19296 if test -n "$LOCATE"; then
19297 echo "$as_me:$LINENO: result: $LOCATE" >&5
19298 echo "${ECHO_T}$LOCATE" >&6
19300 echo "$as_me:$LINENO: result: no" >&5
19301 echo "${ECHO_T}no" >&6
19304 # Extract the first word of "dirname", so it can be a program name with args.
19305 set dummy dirname; ac_word=$2
19306 echo "$as_me:$LINENO: checking for $ac_word" >&5
19307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19308 if test "${ac_cv_path_DIRNAME+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19313 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19317 for as_dir in $PATH
19320 test -z "$as_dir" && as_dir=.
19321 for ac_exec_ext in '' $ac_executable_extensions; do
19322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19323 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19333 DIRNAME=$ac_cv_path_DIRNAME
19335 if test -n "$DIRNAME"; then
19336 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19337 echo "${ECHO_T}$DIRNAME" >&6
19339 echo "$as_me:$LINENO: result: no" >&5
19340 echo "${ECHO_T}no" >&6
19343 # Extract the first word of "grep", so it can be a program name with args.
19344 set dummy grep; ac_word=$2
19345 echo "$as_me:$LINENO: checking for $ac_word" >&5
19346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19347 if test "${ac_cv_path_GREP+set}" = set; then
19348 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19359 test -z "$as_dir" && as_dir=.
19360 for ac_exec_ext in '' $ac_executable_extensions; do
19361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
19363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19372 GREP=$ac_cv_path_GREP
19374 if test -n "$GREP"; then
19375 echo "$as_me:$LINENO: result: $GREP" >&5
19376 echo "${ECHO_T}$GREP" >&6
19378 echo "$as_me:$LINENO: result: no" >&5
19379 echo "${ECHO_T}no" >&6
19385 if test "x$WITH_THREADS" = "xyes"; then
19386 if test $ac_cv_prog_suncc = "yes"; then
19387 CFLAGS="$CFLAGS -mt"
19391 for ac_header in pthread.h
19393 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19394 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19395 echo "$as_me:$LINENO: checking for $ac_header" >&5
19396 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19397 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19398 echo $ECHO_N "(cached) $ECHO_C" >&6
19400 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19401 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19403 # Is the header compilable?
19404 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19405 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19406 cat >conftest.$ac_ext <<_ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412 $ac_includes_default
19413 #include <$ac_header>
19415 rm -f conftest.$ac_objext
19416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19417 (eval $ac_compile) 2>conftest.er1
19419 grep -v '^ *+' conftest.er1 >conftest.err
19421 cat conftest.err >&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); } &&
19424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19426 (eval $ac_try) 2>&5
19428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19429 (exit $ac_status); }; } &&
19430 { ac_try='test -s conftest.$ac_objext'
19431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19432 (eval $ac_try) 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_header_compiler=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_header_compiler=no
19443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19445 echo "${ECHO_T}$ac_header_compiler" >&6
19447 # Is the header present?
19448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19450 cat >conftest.$ac_ext <<_ACEOF
19453 cat confdefs.h >>conftest.$ac_ext
19454 cat >>conftest.$ac_ext <<_ACEOF
19455 /* end confdefs.h. */
19456 #include <$ac_header>
19458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19461 grep -v '^ *+' conftest.er1 >conftest.err
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } >/dev/null; then
19466 if test -s conftest.err; then
19467 ac_cpp_err=$ac_c_preproc_warn_flag
19468 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19475 if test -z "$ac_cpp_err"; then
19476 ac_header_preproc=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19481 ac_header_preproc=no
19483 rm -f conftest.err conftest.$ac_ext
19484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19485 echo "${ECHO_T}$ac_header_preproc" >&6
19487 # So? What about this header?
19488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19494 ac_header_preproc=yes
19497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19511 ## ------------------------------------------ ##
19512 ## Report this to the AC_PACKAGE_NAME lists. ##
19513 ## ------------------------------------------ ##
19516 sed "s/^/$as_me: WARNING: /" >&2
19519 echo "$as_me:$LINENO: checking for $ac_header" >&5
19520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19522 echo $ECHO_N "(cached) $ECHO_C" >&6
19524 eval "$as_ac_Header=\$ac_header_preproc"
19526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19531 cat >>confdefs.h <<_ACEOF
19532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19542 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
19543 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
19544 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
19545 echo $ECHO_N "(cached) $ECHO_C" >&6
19547 ac_check_lib_save_LIBS=$LIBS
19548 LIBS="-lpthread $LIBS"
19549 cat >conftest.$ac_ext <<_ACEOF
19552 cat confdefs.h >>conftest.$ac_ext
19553 cat >>conftest.$ac_ext <<_ACEOF
19554 /* end confdefs.h. */
19556 /* Override any gcc2 internal prototype to avoid an error. */
19560 /* We use char because int might match the return type of a gcc2
19561 builtin and then its argument prototype would still apply. */
19562 char pthread_create ();
19571 rm -f conftest.$ac_objext conftest$ac_exeext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19573 (eval $ac_link) 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest$ac_exeext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_lib_pthread_pthread_create=yes
19594 echo "$as_me: failed program was:" >&5
19595 sed 's/^/| /' conftest.$ac_ext >&5
19597 ac_cv_lib_pthread_pthread_create=no
19599 rm -f conftest.err conftest.$ac_objext \
19600 conftest$ac_exeext conftest.$ac_ext
19601 LIBS=$ac_check_lib_save_LIBS
19603 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
19604 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
19605 if test $ac_cv_lib_pthread_pthread_create = yes; then
19606 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
19607 LIBS="$LIBS -lpthread"
19609 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
19610 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
19611 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
19612 echo $ECHO_N "(cached) $ECHO_C" >&6
19614 ac_check_lib_save_LIBS=$LIBS
19616 cat >conftest.$ac_ext <<_ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19623 /* Override any gcc2 internal prototype to avoid an error. */
19627 /* We use char because int might match the return type of a gcc2
19628 builtin and then its argument prototype would still apply. */
19629 char pthread_create ();
19638 rm -f conftest.$ac_objext conftest$ac_exeext
19639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19640 (eval $ac_link) 2>conftest.er1
19642 grep -v '^ *+' conftest.er1 >conftest.err
19644 cat conftest.err >&5
19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19646 (exit $ac_status); } &&
19647 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19648 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19649 (eval $ac_try) 2>&5
19651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19652 (exit $ac_status); }; } &&
19653 { ac_try='test -s conftest$ac_exeext'
19654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19655 (eval $ac_try) 2>&5
19657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19658 (exit $ac_status); }; }; then
19659 ac_cv_lib_c_r_pthread_create=yes
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19664 ac_cv_lib_c_r_pthread_create=no
19666 rm -f conftest.err conftest.$ac_objext \
19667 conftest$ac_exeext conftest.$ac_ext
19668 LIBS=$ac_check_lib_save_LIBS
19670 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
19671 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
19672 if test $ac_cv_lib_c_r_pthread_create = yes; then
19673 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
19684 if test "x$WITH_THREADS" != "xyes"; then
19686 ac_cv_header_pthread_h="no"
19690 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
19691 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
19692 if test "${ac_cv_search_sem_init+set}" = set; then
19693 echo $ECHO_N "(cached) $ECHO_C" >&6
19695 ac_func_search_save_LIBS=$LIBS
19696 ac_cv_search_sem_init=no
19697 cat >conftest.$ac_ext <<_ACEOF
19700 cat confdefs.h >>conftest.$ac_ext
19701 cat >>conftest.$ac_ext <<_ACEOF
19702 /* end confdefs.h. */
19704 /* Override any gcc2 internal prototype to avoid an error. */
19708 /* We use char because int might match the return type of a gcc2
19709 builtin and then its argument prototype would still apply. */
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19721 (eval $ac_link) 2>conftest.er1
19723 grep -v '^ *+' conftest.er1 >conftest.err
19725 cat conftest.err >&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); } &&
19728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19730 (eval $ac_try) 2>&5
19732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19733 (exit $ac_status); }; } &&
19734 { ac_try='test -s conftest$ac_exeext'
19735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19736 (eval $ac_try) 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 ac_cv_search_sem_init="none required"
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19746 rm -f conftest.err conftest.$ac_objext \
19747 conftest$ac_exeext conftest.$ac_ext
19748 if test "$ac_cv_search_sem_init" = no; then
19749 for ac_lib in pthread sem posix4 rt; do
19750 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19751 cat >conftest.$ac_ext <<_ACEOF
19754 cat confdefs.h >>conftest.$ac_ext
19755 cat >>conftest.$ac_ext <<_ACEOF
19756 /* end confdefs.h. */
19758 /* Override any gcc2 internal prototype to avoid an error. */
19762 /* We use char because int might match the return type of a gcc2
19763 builtin and then its argument prototype would still apply. */
19773 rm -f conftest.$ac_objext conftest$ac_exeext
19774 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19775 (eval $ac_link) 2>conftest.er1
19777 grep -v '^ *+' conftest.er1 >conftest.err
19779 cat conftest.err >&5
19780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19781 (exit $ac_status); } &&
19782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19784 (eval $ac_try) 2>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); }; } &&
19788 { ac_try='test -s conftest$ac_exeext'
19789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19790 (eval $ac_try) 2>&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); }; }; then
19794 ac_cv_search_sem_init="-l$ac_lib"
19797 echo "$as_me: failed program was:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19801 rm -f conftest.err conftest.$ac_objext \
19802 conftest$ac_exeext conftest.$ac_ext
19805 LIBS=$ac_func_search_save_LIBS
19807 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
19808 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
19809 if test "$ac_cv_search_sem_init" != no; then
19810 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
19813 { { 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
19814 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;}
19815 { (exit 1); exit 1; }; }
19822 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
19823 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
19824 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
19825 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lsocket $LIBS"
19829 cat >conftest.$ac_ext <<_ACEOF
19832 cat confdefs.h >>conftest.$ac_ext
19833 cat >>conftest.$ac_ext <<_ACEOF
19834 /* end confdefs.h. */
19836 /* Override any gcc2 internal prototype to avoid an error. */
19840 /* We use char because int might match the return type of a gcc2
19841 builtin and then its argument prototype would still apply. */
19842 char getsockname ();
19851 rm -f conftest.$ac_objext conftest$ac_exeext
19852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19853 (eval $ac_link) 2>conftest.er1
19855 grep -v '^ *+' conftest.er1 >conftest.err
19857 cat conftest.err >&5
19858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19859 (exit $ac_status); } &&
19860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19862 (eval $ac_try) 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest$ac_exeext'
19867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19868 (eval $ac_try) 2>&5
19870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19871 (exit $ac_status); }; }; then
19872 ac_cv_lib_socket_getsockname=yes
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19877 ac_cv_lib_socket_getsockname=no
19879 rm -f conftest.err conftest.$ac_objext \
19880 conftest$ac_exeext conftest.$ac_ext
19881 LIBS=$ac_check_lib_save_LIBS
19883 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
19884 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
19885 if test $ac_cv_lib_socket_getsockname = yes; then
19886 cat >>confdefs.h <<_ACEOF
19887 #define HAVE_LIBSOCKET 1
19890 LIBS="-lsocket $LIBS"
19896 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
19897 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
19898 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
19899 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 ac_check_lib_save_LIBS=$LIBS
19902 LIBS="-lresolv $LIBS"
19903 cat >conftest.$ac_ext <<_ACEOF
19906 cat confdefs.h >>conftest.$ac_ext
19907 cat >>conftest.$ac_ext <<_ACEOF
19908 /* end confdefs.h. */
19910 /* Override any gcc2 internal prototype to avoid an error. */
19914 /* We use char because int might match the return type of a gcc2
19915 builtin and then its argument prototype would still apply. */
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19927 (eval $ac_link) 2>conftest.er1
19929 grep -v '^ *+' conftest.er1 >conftest.err
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19936 (eval $ac_try) 2>&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); }; } &&
19940 { ac_try='test -s conftest$ac_exeext'
19941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19942 (eval $ac_try) 2>&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); }; }; then
19946 ac_cv_lib_resolv_inet_aton=yes
19948 echo "$as_me: failed program was:" >&5
19949 sed 's/^/| /' conftest.$ac_ext >&5
19951 ac_cv_lib_resolv_inet_aton=no
19953 rm -f conftest.err conftest.$ac_objext \
19954 conftest$ac_exeext conftest.$ac_ext
19955 LIBS=$ac_check_lib_save_LIBS
19957 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
19958 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
19959 if test $ac_cv_lib_resolv_inet_aton = yes; then
19960 cat >>confdefs.h <<_ACEOF
19961 #define HAVE_LIBRESOLV 1
19964 LIBS="-lresolv $LIBS"
19970 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
19971 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
19972 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
19973 echo $ECHO_N "(cached) $ECHO_C" >&6
19975 ac_check_lib_save_LIBS=$LIBS
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19984 /* Override any gcc2 internal prototype to avoid an error. */
19988 /* We use char because int might match the return type of a gcc2
19989 builtin and then its argument prototype would still apply. */
19999 rm -f conftest.$ac_objext conftest$ac_exeext
20000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20001 (eval $ac_link) 2>conftest.er1
20003 grep -v '^ *+' conftest.er1 >conftest.err
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } &&
20008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20010 (eval $ac_try) 2>&5
20012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20013 (exit $ac_status); }; } &&
20014 { ac_try='test -s conftest$ac_exeext'
20015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20016 (eval $ac_try) 2>&5
20018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20019 (exit $ac_status); }; }; then
20020 ac_cv_lib_nsl_inet_ntoa=yes
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20025 ac_cv_lib_nsl_inet_ntoa=no
20027 rm -f conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20029 LIBS=$ac_check_lib_save_LIBS
20031 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20032 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20033 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20034 cat >>confdefs.h <<_ACEOF
20035 #define HAVE_LIBNSL 1
20046 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20055 ac_header_dirent=no
20056 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20057 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20058 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20059 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20060 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20063 cat >conftest.$ac_ext <<_ACEOF
20066 cat confdefs.h >>conftest.$ac_ext
20067 cat >>conftest.$ac_ext <<_ACEOF
20068 /* end confdefs.h. */
20069 #include <sys/types.h>
20081 rm -f conftest.$ac_objext
20082 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20083 (eval $ac_compile) 2>conftest.er1
20085 grep -v '^ *+' conftest.er1 >conftest.err
20087 cat conftest.err >&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); } &&
20090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20092 (eval $ac_try) 2>&5
20094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20095 (exit $ac_status); }; } &&
20096 { ac_try='test -s conftest.$ac_objext'
20097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20098 (eval $ac_try) 2>&5
20100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20101 (exit $ac_status); }; }; then
20102 eval "$as_ac_Header=yes"
20104 echo "$as_me: failed program was:" >&5
20105 sed 's/^/| /' conftest.$ac_ext >&5
20107 eval "$as_ac_Header=no"
20109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20111 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20112 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20114 cat >>confdefs.h <<_ACEOF
20115 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20118 ac_header_dirent=$ac_hdr; break
20122 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20123 if test $ac_header_dirent = dirent.h; then
20124 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20125 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20126 if test "${ac_cv_search_opendir+set}" = set; then
20127 echo $ECHO_N "(cached) $ECHO_C" >&6
20129 ac_func_search_save_LIBS=$LIBS
20130 ac_cv_search_opendir=no
20131 cat >conftest.$ac_ext <<_ACEOF
20134 cat confdefs.h >>conftest.$ac_ext
20135 cat >>conftest.$ac_ext <<_ACEOF
20136 /* end confdefs.h. */
20138 /* Override any gcc2 internal prototype to avoid an error. */
20142 /* We use char because int might match the return type of a gcc2
20143 builtin and then its argument prototype would still apply. */
20153 rm -f conftest.$ac_objext conftest$ac_exeext
20154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20155 (eval $ac_link) 2>conftest.er1
20157 grep -v '^ *+' conftest.er1 >conftest.err
20159 cat conftest.err >&5
20160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20161 (exit $ac_status); } &&
20162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20164 (eval $ac_try) 2>&5
20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20167 (exit $ac_status); }; } &&
20168 { ac_try='test -s conftest$ac_exeext'
20169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20170 (eval $ac_try) 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_cv_search_opendir="none required"
20176 echo "$as_me: failed program was:" >&5
20177 sed 's/^/| /' conftest.$ac_ext >&5
20180 rm -f conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20182 if test "$ac_cv_search_opendir" = no; then
20183 for ac_lib in dir; do
20184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20185 cat >conftest.$ac_ext <<_ACEOF
20188 cat confdefs.h >>conftest.$ac_ext
20189 cat >>conftest.$ac_ext <<_ACEOF
20190 /* end confdefs.h. */
20192 /* Override any gcc2 internal prototype to avoid an error. */
20196 /* We use char because int might match the return type of a gcc2
20197 builtin and then its argument prototype would still apply. */
20207 rm -f conftest.$ac_objext conftest$ac_exeext
20208 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20209 (eval $ac_link) 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20218 (eval $ac_try) 2>&5
20220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221 (exit $ac_status); }; } &&
20222 { ac_try='test -s conftest$ac_exeext'
20223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20224 (eval $ac_try) 2>&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); }; }; then
20228 ac_cv_search_opendir="-l$ac_lib"
20231 echo "$as_me: failed program was:" >&5
20232 sed 's/^/| /' conftest.$ac_ext >&5
20235 rm -f conftest.err conftest.$ac_objext \
20236 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_func_search_save_LIBS
20241 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20242 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20243 if test "$ac_cv_search_opendir" != no; then
20244 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20249 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20250 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20251 if test "${ac_cv_search_opendir+set}" = set; then
20252 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 ac_func_search_save_LIBS=$LIBS
20255 ac_cv_search_opendir=no
20256 cat >conftest.$ac_ext <<_ACEOF
20259 cat confdefs.h >>conftest.$ac_ext
20260 cat >>conftest.$ac_ext <<_ACEOF
20261 /* end confdefs.h. */
20263 /* Override any gcc2 internal prototype to avoid an error. */
20267 /* We use char because int might match the return type of a gcc2
20268 builtin and then its argument prototype would still apply. */
20278 rm -f conftest.$ac_objext conftest$ac_exeext
20279 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20280 (eval $ac_link) 2>conftest.er1
20282 grep -v '^ *+' conftest.er1 >conftest.err
20284 cat conftest.err >&5
20285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20286 (exit $ac_status); } &&
20287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20289 (eval $ac_try) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); }; } &&
20293 { ac_try='test -s conftest$ac_exeext'
20294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20295 (eval $ac_try) 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20299 ac_cv_search_opendir="none required"
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
20307 if test "$ac_cv_search_opendir" = no; then
20308 for ac_lib in x; do
20309 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20310 cat >conftest.$ac_ext <<_ACEOF
20313 cat confdefs.h >>conftest.$ac_ext
20314 cat >>conftest.$ac_ext <<_ACEOF
20315 /* end confdefs.h. */
20317 /* Override any gcc2 internal prototype to avoid an error. */
20321 /* We use char because int might match the return type of a gcc2
20322 builtin and then its argument prototype would still apply. */
20332 rm -f conftest.$ac_objext conftest$ac_exeext
20333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20334 (eval $ac_link) 2>conftest.er1
20336 grep -v '^ *+' conftest.er1 >conftest.err
20338 cat conftest.err >&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); } &&
20341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; } &&
20347 { ac_try='test -s conftest$ac_exeext'
20348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20349 (eval $ac_try) 2>&5
20351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20352 (exit $ac_status); }; }; then
20353 ac_cv_search_opendir="-l$ac_lib"
20356 echo "$as_me: failed program was:" >&5
20357 sed 's/^/| /' conftest.$ac_ext >&5
20360 rm -f conftest.err conftest.$ac_objext \
20361 conftest$ac_exeext conftest.$ac_ext
20364 LIBS=$ac_func_search_save_LIBS
20366 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20367 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20368 if test "$ac_cv_search_opendir" != no; then
20369 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20375 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20376 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20377 if test "${ac_cv_header_stdc+set}" = set; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20380 cat >conftest.$ac_ext <<_ACEOF
20383 cat confdefs.h >>conftest.$ac_ext
20384 cat >>conftest.$ac_ext <<_ACEOF
20385 /* end confdefs.h. */
20386 #include <stdlib.h>
20387 #include <stdarg.h>
20388 #include <string.h>
20399 rm -f conftest.$ac_objext
20400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20401 (eval $ac_compile) 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20410 (eval $ac_try) 2>&5
20412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20413 (exit $ac_status); }; } &&
20414 { ac_try='test -s conftest.$ac_objext'
20415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20416 (eval $ac_try) 2>&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); }; }; then
20420 ac_cv_header_stdc=yes
20422 echo "$as_me: failed program was:" >&5
20423 sed 's/^/| /' conftest.$ac_ext >&5
20425 ac_cv_header_stdc=no
20427 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20429 if test $ac_cv_header_stdc = yes; then
20430 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20431 cat >conftest.$ac_ext <<_ACEOF
20434 cat confdefs.h >>conftest.$ac_ext
20435 cat >>conftest.$ac_ext <<_ACEOF
20436 /* end confdefs.h. */
20437 #include <string.h>
20440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20441 $EGREP "memchr" >/dev/null 2>&1; then
20444 ac_cv_header_stdc=no
20450 if test $ac_cv_header_stdc = yes; then
20451 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20452 cat >conftest.$ac_ext <<_ACEOF
20455 cat confdefs.h >>conftest.$ac_ext
20456 cat >>conftest.$ac_ext <<_ACEOF
20457 /* end confdefs.h. */
20458 #include <stdlib.h>
20461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20462 $EGREP "free" >/dev/null 2>&1; then
20465 ac_cv_header_stdc=no
20471 if test $ac_cv_header_stdc = yes; then
20472 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20473 if test "$cross_compiling" = yes; then
20476 cat >conftest.$ac_ext <<_ACEOF
20479 cat confdefs.h >>conftest.$ac_ext
20480 cat >>conftest.$ac_ext <<_ACEOF
20481 /* end confdefs.h. */
20483 #if ((' ' & 0x0FF) == 0x020)
20484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20487 # define ISLOWER(c) \
20488 (('a' <= (c) && (c) <= 'i') \
20489 || ('j' <= (c) && (c) <= 'r') \
20490 || ('s' <= (c) && (c) <= 'z'))
20491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20499 for (i = 0; i < 256; i++)
20500 if (XOR (islower (i), ISLOWER (i))
20501 || toupper (i) != TOUPPER (i))
20506 rm -f conftest$ac_exeext
20507 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20508 (eval $ac_link) 2>&5
20510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20513 (eval $ac_try) 2>&5
20515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20516 (exit $ac_status); }; }; then
20519 echo "$as_me: program exited with status $ac_status" >&5
20520 echo "$as_me: failed program was:" >&5
20521 sed 's/^/| /' conftest.$ac_ext >&5
20523 ( exit $ac_status )
20524 ac_cv_header_stdc=no
20526 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20530 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20531 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20532 if test $ac_cv_header_stdc = yes; then
20534 cat >>confdefs.h <<\_ACEOF
20535 #define STDC_HEADERS 1
20540 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
20541 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
20542 if test "${ac_cv_header_time+set}" = set; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20545 cat >conftest.$ac_ext <<_ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <sys/types.h>
20552 #include <sys/time.h>
20558 if ((struct tm *) 0)
20564 rm -f conftest.$ac_objext
20565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20566 (eval $ac_compile) 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); } &&
20573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20575 (eval $ac_try) 2>&5
20577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20578 (exit $ac_status); }; } &&
20579 { ac_try='test -s conftest.$ac_objext'
20580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20581 (eval $ac_try) 2>&5
20583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20584 (exit $ac_status); }; }; then
20585 ac_cv_header_time=yes
20587 echo "$as_me: failed program was:" >&5
20588 sed 's/^/| /' conftest.$ac_ext >&5
20590 ac_cv_header_time=no
20592 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20594 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
20595 echo "${ECHO_T}$ac_cv_header_time" >&6
20596 if test $ac_cv_header_time = yes; then
20598 cat >>confdefs.h <<\_ACEOF
20599 #define TIME_WITH_SYS_TIME 1
20604 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
20605 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
20606 if test "${ac_cv_header_sys_wait_h+set}" = set; then
20607 echo $ECHO_N "(cached) $ECHO_C" >&6
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20615 #include <sys/types.h>
20616 #include <sys/wait.h>
20617 #ifndef WEXITSTATUS
20618 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
20621 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
20629 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
20634 rm -f conftest.$ac_objext
20635 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20636 (eval $ac_compile) 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } &&
20643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20645 (eval $ac_try) 2>&5
20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20648 (exit $ac_status); }; } &&
20649 { ac_try='test -s conftest.$ac_objext'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; }; then
20655 ac_cv_header_sys_wait_h=yes
20657 echo "$as_me: failed program was:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_header_sys_wait_h=no
20662 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20664 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
20665 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
20666 if test $ac_cv_header_sys_wait_h = yes; then
20668 cat >>confdefs.h <<\_ACEOF
20669 #define HAVE_SYS_WAIT_H 1
20734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20735 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20736 echo "$as_me:$LINENO: checking for $ac_header" >&5
20737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20738 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20739 echo $ECHO_N "(cached) $ECHO_C" >&6
20741 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20742 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20744 # Is the header compilable?
20745 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20746 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20753 $ac_includes_default
20754 #include <$ac_header>
20756 rm -f conftest.$ac_objext
20757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20758 (eval $ac_compile) 2>conftest.er1
20760 grep -v '^ *+' conftest.er1 >conftest.err
20762 cat conftest.err >&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); } &&
20765 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20767 (eval $ac_try) 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; } &&
20771 { ac_try='test -s conftest.$ac_objext'
20772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20773 (eval $ac_try) 2>&5
20775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20776 (exit $ac_status); }; }; then
20777 ac_header_compiler=yes
20779 echo "$as_me: failed program was:" >&5
20780 sed 's/^/| /' conftest.$ac_ext >&5
20782 ac_header_compiler=no
20784 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20785 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20786 echo "${ECHO_T}$ac_header_compiler" >&6
20788 # Is the header present?
20789 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20790 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20797 #include <$ac_header>
20799 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20800 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20802 grep -v '^ *+' conftest.er1 >conftest.err
20804 cat conftest.err >&5
20805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20806 (exit $ac_status); } >/dev/null; then
20807 if test -s conftest.err; then
20808 ac_cpp_err=$ac_c_preproc_warn_flag
20809 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20816 if test -z "$ac_cpp_err"; then
20817 ac_header_preproc=yes
20819 echo "$as_me: failed program was:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_header_preproc=no
20824 rm -f conftest.err conftest.$ac_ext
20825 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20826 echo "${ECHO_T}$ac_header_preproc" >&6
20828 # So? What about this header?
20829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20832 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20835 ac_header_preproc=yes
20838 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20839 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20840 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20841 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20842 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20843 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20845 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20849 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20852 ## ------------------------------------------ ##
20853 ## Report this to the AC_PACKAGE_NAME lists. ##
20854 ## ------------------------------------------ ##
20857 sed "s/^/$as_me: WARNING: /" >&2
20860 echo "$as_me:$LINENO: checking for $ac_header" >&5
20861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20862 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20863 echo $ECHO_N "(cached) $ECHO_C" >&6
20865 eval "$as_ac_Header=\$ac_header_preproc"
20867 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20868 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20882 if test "${ac_cv_header_regex_h+set}" = set; then
20883 echo "$as_me:$LINENO: checking for regex.h" >&5
20884 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
20885 if test "${ac_cv_header_regex_h+set}" = set; then
20886 echo $ECHO_N "(cached) $ECHO_C" >&6
20888 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
20889 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
20891 # Is the header compilable?
20892 echo "$as_me:$LINENO: checking regex.h usability" >&5
20893 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 $ac_includes_default
20903 rm -f conftest.$ac_objext
20904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20905 (eval $ac_compile) 2>conftest.er1
20907 grep -v '^ *+' conftest.er1 >conftest.err
20909 cat conftest.err >&5
20910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); } &&
20912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20914 (eval $ac_try) 2>&5
20916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20917 (exit $ac_status); }; } &&
20918 { ac_try='test -s conftest.$ac_objext'
20919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20920 (eval $ac_try) 2>&5
20922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20923 (exit $ac_status); }; }; then
20924 ac_header_compiler=yes
20926 echo "$as_me: failed program was:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_header_compiler=no
20931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20932 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20933 echo "${ECHO_T}$ac_header_compiler" >&6
20935 # Is the header present?
20936 echo "$as_me:$LINENO: checking regex.h presence" >&5
20937 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
20938 cat >conftest.$ac_ext <<_ACEOF
20941 cat confdefs.h >>conftest.$ac_ext
20942 cat >>conftest.$ac_ext <<_ACEOF
20943 /* end confdefs.h. */
20946 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20949 grep -v '^ *+' conftest.er1 >conftest.err
20951 cat conftest.err >&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); } >/dev/null; then
20954 if test -s conftest.err; then
20955 ac_cpp_err=$ac_c_preproc_warn_flag
20956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20963 if test -z "$ac_cpp_err"; then
20964 ac_header_preproc=yes
20966 echo "$as_me: failed program was:" >&5
20967 sed 's/^/| /' conftest.$ac_ext >&5
20969 ac_header_preproc=no
20971 rm -f conftest.err conftest.$ac_ext
20972 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20973 echo "${ECHO_T}$ac_header_preproc" >&6
20975 # So? What about this header?
20976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20978 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
20979 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
20980 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
20981 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
20982 ac_header_preproc=yes
20985 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
20986 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
20988 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
20989 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
20990 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
20991 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
20992 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
20993 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
20994 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
20995 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
20996 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
20999 ## ------------------------------------------ ##
21000 ## Report this to the AC_PACKAGE_NAME lists. ##
21001 ## ------------------------------------------ ##
21004 sed "s/^/$as_me: WARNING: /" >&2
21007 echo "$as_me:$LINENO: checking for regex.h" >&5
21008 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21009 if test "${ac_cv_header_regex_h+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 ac_cv_header_regex_h=$ac_header_preproc
21014 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21015 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21018 if test $ac_cv_header_regex_h = yes; then
21019 cat >>confdefs.h <<\_ACEOF
21020 #define HAVE_REGEX_H 1
21026 if test "x$ac_cv_header_regex_h" = "xyes"; then
21029 cat >conftest.$ac_ext <<_ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21036 #ifdef REG_EXTENDED
21041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21042 $EGREP "yes" >/dev/null 2>&1; then
21043 cat >>confdefs.h <<\_ACEOF
21044 #define HAVE_REG_EXTENDED 1
21054 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21056 cat >>confdefs.h <<\_ACEOF
21062 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21064 cat >>confdefs.h <<\_ACEOF
21070 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21071 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21074 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21075 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21076 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21081 old_CFLAGS="$CFLAGS"
21082 cat >conftest.$ac_ext <<_ACEOF
21085 cat confdefs.h >>conftest.$ac_ext
21086 cat >>conftest.$ac_ext <<_ACEOF
21087 /* end confdefs.h. */
21089 #include <openssl/ssl.h>
21098 rm -f conftest.$ac_objext
21099 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21100 (eval $ac_compile) 2>conftest.er1
21102 grep -v '^ *+' conftest.er1 >conftest.err
21104 cat conftest.err >&5
21105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21106 (exit $ac_status); } &&
21107 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21109 (eval $ac_try) 2>&5
21111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21112 (exit $ac_status); }; } &&
21113 { ac_try='test -s conftest.$ac_objext'
21114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21115 (eval $ac_try) 2>&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); }; }; then
21121 echo "$as_me: failed program was:" >&5
21122 sed 's/^/| /' conftest.$ac_ext >&5
21126 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21128 if test "x$smart_include" = "x"; then
21131 if test "x$LOCATE" != "x"; then
21135 for x in `${LOCATE} $file 2>/dev/null`; do
21136 base=`echo $x | sed "s%/${file}%%"`
21137 if test "x$x" = "x$base"; then
21141 dir=`${DIRNAME} $x 2>/dev/null`
21142 exclude=`echo ${dir} | ${GREP} /home`
21143 if test "x$exclude" != "x"; then
21147 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21148 if test "x$already" = "x"; then
21154 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21157 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21158 CFLAGS="$old_CFLAGS -I$try"
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21167 #include <openssl/ssl.h>
21176 rm -f conftest.$ac_objext
21177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21178 (eval $ac_compile) 2>conftest.er1
21180 grep -v '^ *+' conftest.er1 >conftest.err
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } &&
21185 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21187 (eval $ac_try) 2>&5
21189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21190 (exit $ac_status); }; } &&
21191 { ac_try='test -s conftest.$ac_objext'
21192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21193 (eval $ac_try) 2>&5
21195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21196 (exit $ac_status); }; }; then
21197 smart_include="-I$try"
21199 echo "$as_me: failed program was:" >&5
21200 sed 's/^/| /' conftest.$ac_ext >&5
21204 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21206 if test "x$smart_include" != "x"; then
21210 CFLAGS="$old_CFLAGS"
21213 if test "x$smart_include" != "x"; then
21214 echo "$as_me:$LINENO: result: yes" >&5
21215 echo "${ECHO_T}yes" >&6
21216 eval "ac_cv_header_$ac_safe=yes"
21217 CFLAGS="$old_CFLAGS $smart_include"
21218 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21220 echo "$as_me:$LINENO: result: no" >&5
21221 echo "${ECHO_T}no" >&6
21226 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21227 cat >>confdefs.h <<\_ACEOF
21228 #define HAVE_OPENSSL_SSL_H 1
21231 old_CPPFLAGS="$CPPFLAGS"
21232 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21233 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21246 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21248 echo "$as_me:$LINENO: checking for $ac_header" >&5
21249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21250 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21251 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21256 # Is the header compilable?
21257 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21258 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21259 cat >conftest.$ac_ext <<_ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h. */
21265 $ac_includes_default
21266 #include <$ac_header>
21268 rm -f conftest.$ac_objext
21269 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21270 (eval $ac_compile) 2>conftest.er1
21272 grep -v '^ *+' conftest.er1 >conftest.err
21274 cat conftest.err >&5
21275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21276 (exit $ac_status); } &&
21277 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21278 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21279 (eval $ac_try) 2>&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); }; } &&
21283 { ac_try='test -s conftest.$ac_objext'
21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21285 (eval $ac_try) 2>&5
21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21288 (exit $ac_status); }; }; then
21289 ac_header_compiler=yes
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21294 ac_header_compiler=no
21296 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21297 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21298 echo "${ECHO_T}$ac_header_compiler" >&6
21300 # Is the header present?
21301 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21302 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21303 cat >conftest.$ac_ext <<_ACEOF
21306 cat confdefs.h >>conftest.$ac_ext
21307 cat >>conftest.$ac_ext <<_ACEOF
21308 /* end confdefs.h. */
21309 #include <$ac_header>
21311 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21312 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21314 grep -v '^ *+' conftest.er1 >conftest.err
21316 cat conftest.err >&5
21317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } >/dev/null; then
21319 if test -s conftest.err; then
21320 ac_cpp_err=$ac_c_preproc_warn_flag
21321 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21328 if test -z "$ac_cpp_err"; then
21329 ac_header_preproc=yes
21331 echo "$as_me: failed program was:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_preproc=no
21336 rm -f conftest.err conftest.$ac_ext
21337 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21338 echo "${ECHO_T}$ac_header_preproc" >&6
21340 # So? What about this header?
21341 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21343 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21344 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21345 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21347 ac_header_preproc=yes
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21351 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21352 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21353 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21354 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21355 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21356 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21357 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21358 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21359 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21360 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21361 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21364 ## ------------------------------------------ ##
21365 ## Report this to the AC_PACKAGE_NAME lists. ##
21366 ## ------------------------------------------ ##
21369 sed "s/^/$as_me: WARNING: /" >&2
21372 echo "$as_me:$LINENO: checking for $ac_header" >&5
21373 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21374 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21375 echo $ECHO_N "(cached) $ECHO_C" >&6
21377 eval "$as_ac_Header=\$ac_header_preproc"
21379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21384 cat >>confdefs.h <<_ACEOF
21385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21392 CPPFLAGS="$old_CPPFLAGS"
21394 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
21395 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
21396 old_CPPFLAGS=$CPPFLAGS
21398 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21399 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <openssl/crypto.h>
21408 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
21413 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21414 $EGREP "yes" >/dev/null 2>&1; then
21419 if test "x$goodssl" != "xyes"; then
21420 echo "$as_me:$LINENO: result: no" >&5
21421 echo "${ECHO_T}no" >&6
21425 echo "$as_me:$LINENO: result: yes" >&5
21426 echo "${ECHO_T}yes" >&6
21428 # Look for the OpenSSL libraries.
21429 smart_try_dir=$OPENSSL_LIB_DIR
21432 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
21433 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
21434 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
21435 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
21441 LIBS="$LIBS -lcrypto"
21442 cat >conftest.$ac_ext <<_ACEOF
21445 cat confdefs.h >>conftest.$ac_ext
21446 cat >>conftest.$ac_ext <<_ACEOF
21447 /* end confdefs.h. */
21448 extern char DH_new();
21457 rm -f conftest.$ac_objext conftest$ac_exeext
21458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21459 (eval $ac_link) 2>conftest.er1
21461 grep -v '^ *+' conftest.er1 >conftest.err
21463 cat conftest.err >&5
21464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } &&
21466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21468 (eval $ac_try) 2>&5
21470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21471 (exit $ac_status); }; } &&
21472 { ac_try='test -s conftest$ac_exeext'
21473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21474 (eval $ac_try) 2>&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); }; }; then
21478 smart_lib="-lcrypto"
21480 echo "$as_me: failed program was:" >&5
21481 sed 's/^/| /' conftest.$ac_ext >&5
21484 rm -f conftest.err conftest.$ac_objext \
21485 conftest$ac_exeext conftest.$ac_ext
21487 if test "x$smart_lib" = "x"; then
21490 if test "x$LOCATE" != "x"; then
21492 file=libcrypto${libltdl_cv_shlibext}
21494 for x in `${LOCATE} $file 2>/dev/null`; do
21495 base=`echo $x | sed "s%/${file}%%"`
21496 if test "x$x" = "x$base"; then
21500 dir=`${DIRNAME} $x 2>/dev/null`
21501 exclude=`echo ${dir} | ${GREP} /home`
21502 if test "x$exclude" != "x"; then
21506 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21507 if test "x$already" = "x"; then
21513 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21517 if test "x$LOCATE" != "x"; then
21521 for x in `${LOCATE} $file 2>/dev/null`; do
21522 base=`echo $x | sed "s%/${file}%%"`
21523 if test "x$x" = "x$base"; then
21527 dir=`${DIRNAME} $x 2>/dev/null`
21528 exclude=`echo ${dir} | ${GREP} /home`
21529 if test "x$exclude" != "x"; then
21533 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21534 if test "x$already" = "x"; then
21540 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21543 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21544 LIBS="$old_LIBS -L$try -lcrypto"
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 extern char DH_new();
21561 rm -f conftest.$ac_objext conftest$ac_exeext
21562 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21563 (eval $ac_link) 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21569 (exit $ac_status); } &&
21570 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21572 (eval $ac_try) 2>&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); }; } &&
21576 { ac_try='test -s conftest$ac_exeext'
21577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21578 (eval $ac_try) 2>&5
21580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21581 (exit $ac_status); }; }; then
21582 smart_lib="-L$try -lcrypto"
21584 echo "$as_me: failed program was:" >&5
21585 sed 's/^/| /' conftest.$ac_ext >&5
21588 rm -f conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590 if test "x$smart_lib" != "x"; then
21597 if test "x$smart_lib" != "x"; then
21598 echo "$as_me:$LINENO: result: yes" >&5
21599 echo "${ECHO_T}yes" >&6
21600 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21601 LIBS="$old_LIBS $smart_lib"
21602 SMART_LIBS="$SMART_LIBS $smart_lib"
21604 echo "$as_me:$LINENO: result: no" >&5
21605 echo "${ECHO_T}no" >&6
21608 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
21611 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
21612 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
21613 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
21614 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
21621 cat >conftest.$ac_ext <<_ACEOF
21624 cat confdefs.h >>conftest.$ac_ext
21625 cat >>conftest.$ac_ext <<_ACEOF
21626 /* end confdefs.h. */
21627 extern char SSL_new();
21636 rm -f conftest.$ac_objext conftest$ac_exeext
21637 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21638 (eval $ac_link) 2>conftest.er1
21640 grep -v '^ *+' conftest.er1 >conftest.err
21642 cat conftest.err >&5
21643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21644 (exit $ac_status); } &&
21645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21647 (eval $ac_try) 2>&5
21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21650 (exit $ac_status); }; } &&
21651 { ac_try='test -s conftest$ac_exeext'
21652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21653 (eval $ac_try) 2>&5
21655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21656 (exit $ac_status); }; }; then
21659 echo "$as_me: failed program was:" >&5
21660 sed 's/^/| /' conftest.$ac_ext >&5
21663 rm -f conftest.err conftest.$ac_objext \
21664 conftest$ac_exeext conftest.$ac_ext
21666 if test "x$smart_lib" = "x"; then
21669 if test "x$LOCATE" != "x"; then
21671 file=libssl${libltdl_cv_shlibext}
21673 for x in `${LOCATE} $file 2>/dev/null`; do
21674 base=`echo $x | sed "s%/${file}%%"`
21675 if test "x$x" = "x$base"; then
21679 dir=`${DIRNAME} $x 2>/dev/null`
21680 exclude=`echo ${dir} | ${GREP} /home`
21681 if test "x$exclude" != "x"; then
21685 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21686 if test "x$already" = "x"; then
21692 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21696 if test "x$LOCATE" != "x"; then
21700 for x in `${LOCATE} $file 2>/dev/null`; do
21701 base=`echo $x | sed "s%/${file}%%"`
21702 if test "x$x" = "x$base"; then
21706 dir=`${DIRNAME} $x 2>/dev/null`
21707 exclude=`echo ${dir} | ${GREP} /home`
21708 if test "x$exclude" != "x"; then
21712 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
21713 if test "x$already" = "x"; then
21719 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
21722 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
21723 LIBS="$old_LIBS -L$try -lssl"
21725 cat >conftest.$ac_ext <<_ACEOF
21728 cat confdefs.h >>conftest.$ac_ext
21729 cat >>conftest.$ac_ext <<_ACEOF
21730 /* end confdefs.h. */
21731 extern char SSL_new();
21740 rm -f conftest.$ac_objext conftest$ac_exeext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21742 (eval $ac_link) 2>conftest.er1
21744 grep -v '^ *+' conftest.er1 >conftest.err
21746 cat conftest.err >&5
21747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21748 (exit $ac_status); } &&
21749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21751 (eval $ac_try) 2>&5
21753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21754 (exit $ac_status); }; } &&
21755 { ac_try='test -s conftest$ac_exeext'
21756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21757 (eval $ac_try) 2>&5
21759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21760 (exit $ac_status); }; }; then
21761 smart_lib="-L$try -lssl"
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21767 rm -f conftest.err conftest.$ac_objext \
21768 conftest$ac_exeext conftest.$ac_ext
21769 if test "x$smart_lib" != "x"; then
21776 if test "x$smart_lib" != "x"; then
21777 echo "$as_me:$LINENO: result: yes" >&5
21778 echo "${ECHO_T}yes" >&6
21779 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
21780 LIBS="$old_LIBS $smart_lib"
21781 SMART_LIBS="$SMART_LIBS $smart_lib"
21783 echo "$as_me:$LINENO: result: no" >&5
21784 echo "${ECHO_T}no" >&6
21787 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
21788 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21789 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
21791 if test "x$OPENSSL_LIB_DIR" != "x"; then
21792 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
21794 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
21801 CPPFLAGS=$old_CPPFLAGS
21806 export OPENSSL_LIBS
21809 echo "$as_me:$LINENO: checking for off_t" >&5
21810 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
21811 if test "${ac_cv_type_off_t+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 $ac_includes_default
21826 if (sizeof (off_t))
21832 rm -f conftest.$ac_objext
21833 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21834 (eval $ac_compile) 2>conftest.er1
21836 grep -v '^ *+' conftest.er1 >conftest.err
21838 cat conftest.err >&5
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } &&
21841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21843 (eval $ac_try) 2>&5
21845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21846 (exit $ac_status); }; } &&
21847 { ac_try='test -s conftest.$ac_objext'
21848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21849 (eval $ac_try) 2>&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); }; }; then
21853 ac_cv_type_off_t=yes
21855 echo "$as_me: failed program was:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ac_cv_type_off_t=no
21860 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21862 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
21863 echo "${ECHO_T}$ac_cv_type_off_t" >&6
21864 if test $ac_cv_type_off_t = yes; then
21868 cat >>confdefs.h <<_ACEOF
21874 echo "$as_me:$LINENO: checking for pid_t" >&5
21875 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
21876 if test "${ac_cv_type_pid_t+set}" = set; then
21877 echo $ECHO_N "(cached) $ECHO_C" >&6
21879 cat >conftest.$ac_ext <<_ACEOF
21882 cat confdefs.h >>conftest.$ac_ext
21883 cat >>conftest.$ac_ext <<_ACEOF
21884 /* end confdefs.h. */
21885 $ac_includes_default
21891 if (sizeof (pid_t))
21897 rm -f conftest.$ac_objext
21898 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21899 (eval $ac_compile) 2>conftest.er1
21901 grep -v '^ *+' conftest.er1 >conftest.err
21903 cat conftest.err >&5
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } &&
21906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21908 (eval $ac_try) 2>&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); }; } &&
21912 { ac_try='test -s conftest.$ac_objext'
21913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21914 (eval $ac_try) 2>&5
21916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); }; }; then
21918 ac_cv_type_pid_t=yes
21920 echo "$as_me: failed program was:" >&5
21921 sed 's/^/| /' conftest.$ac_ext >&5
21923 ac_cv_type_pid_t=no
21925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21927 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
21929 if test $ac_cv_type_pid_t = yes; then
21933 cat >>confdefs.h <<_ACEOF
21939 echo "$as_me:$LINENO: checking for size_t" >&5
21940 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21941 if test "${ac_cv_type_size_t+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21956 if (sizeof (size_t))
21962 rm -f conftest.$ac_objext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21964 (eval $ac_compile) 2>conftest.er1
21966 grep -v '^ *+' conftest.er1 >conftest.err
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest.$ac_objext'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_cv_type_size_t=yes
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21988 ac_cv_type_size_t=no
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21992 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21993 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21994 if test $ac_cv_type_size_t = yes; then
21998 cat >>confdefs.h <<_ACEOF
21999 #define size_t unsigned
22004 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22005 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22006 if test "${ac_cv_type_uid_t+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 cat >conftest.$ac_ext <<_ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <sys/types.h>
22018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22019 $EGREP "uid_t" >/dev/null 2>&1; then
22020 ac_cv_type_uid_t=yes
22022 ac_cv_type_uid_t=no
22027 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22028 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22029 if test $ac_cv_type_uid_t = no; then
22031 cat >>confdefs.h <<\_ACEOF
22036 cat >>confdefs.h <<\_ACEOF
22044 echo "$as_me:$LINENO: checking for socklen_t" >&5
22045 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22046 if test "${ac_cv_type_socklen_t+set}" = set; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22049 ac_cv_type_socklen_t=no
22050 cat >conftest.$ac_ext <<_ACEOF
22053 cat confdefs.h >>conftest.$ac_ext
22054 cat >>conftest.$ac_ext <<_ACEOF
22055 /* end confdefs.h. */
22056 #ifdef HAVE_SYS_TYPES_H
22057 #include <sys/types.h>
22059 #ifdef HAVE_SYS_SOCKET_H
22060 #include <sys/socket.h>
22071 rm -f conftest.$ac_objext
22072 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22073 (eval $ac_compile) 2>conftest.er1
22075 grep -v '^ *+' conftest.er1 >conftest.err
22077 cat conftest.err >&5
22078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22079 (exit $ac_status); } &&
22080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
22086 { ac_try='test -s conftest.$ac_objext'
22087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22088 (eval $ac_try) 2>&5
22090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22091 (exit $ac_status); }; }; then
22092 ac_cv_type_socklen_t=yes
22094 echo "$as_me: failed program was:" >&5
22095 sed 's/^/| /' conftest.$ac_ext >&5
22098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22102 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22103 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22105 if test "$ac_cv_type_socklen_t" != "yes"; then
22106 cat >>confdefs.h <<\_ACEOF
22107 #define socklen_t int
22114 echo "$as_me:$LINENO: checking for uint8_t" >&5
22115 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22116 if test "${ac_cv_type_uint8_t+set}" = set; then
22117 echo $ECHO_N "(cached) $ECHO_C" >&6
22119 ac_cv_type_uint8_t=no
22120 cat >conftest.$ac_ext <<_ACEOF
22123 cat confdefs.h >>conftest.$ac_ext
22124 cat >>conftest.$ac_ext <<_ACEOF
22125 /* end confdefs.h. */
22126 #ifdef HAVE_INTTYPES_H
22127 #include <inttypes.h>
22129 #ifdef HAVE_STDINT_H
22130 #include <stdint.h>
22141 rm -f conftest.$ac_objext
22142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22143 (eval $ac_compile) 2>conftest.er1
22145 grep -v '^ *+' conftest.er1 >conftest.err
22147 cat conftest.err >&5
22148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149 (exit $ac_status); } &&
22150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22152 (eval $ac_try) 2>&5
22154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22155 (exit $ac_status); }; } &&
22156 { ac_try='test -s conftest.$ac_objext'
22157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22158 (eval $ac_try) 2>&5
22160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22161 (exit $ac_status); }; }; then
22162 ac_cv_type_uint8_t=yes
22164 echo "$as_me: failed program was:" >&5
22165 sed 's/^/| /' conftest.$ac_ext >&5
22168 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22172 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22173 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22175 if test "$ac_cv_type_uint8_t" != "yes"; then
22176 cat >>confdefs.h <<\_ACEOF
22177 #define uint8_t unsigned char
22184 echo "$as_me:$LINENO: checking for uint16_t" >&5
22185 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22186 if test "${ac_cv_type_uint16_t+set}" = set; then
22187 echo $ECHO_N "(cached) $ECHO_C" >&6
22189 ac_cv_type_uint16_t=no
22190 cat >conftest.$ac_ext <<_ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 #ifdef HAVE_INTTYPES_H
22197 #include <inttypes.h>
22199 #ifdef HAVE_STDINT_H
22200 #include <stdint.h>
22211 rm -f conftest.$ac_objext
22212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22213 (eval $ac_compile) 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22219 (exit $ac_status); } &&
22220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22222 (eval $ac_try) 2>&5
22224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); }; } &&
22226 { ac_try='test -s conftest.$ac_objext'
22227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22228 (eval $ac_try) 2>&5
22230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22231 (exit $ac_status); }; }; then
22232 ac_cv_type_uint16_t=yes
22234 echo "$as_me: failed program was:" >&5
22235 sed 's/^/| /' conftest.$ac_ext >&5
22238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22242 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22243 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22245 if test "$ac_cv_type_uint16_t" != "yes"; then
22246 cat >>confdefs.h <<\_ACEOF
22247 #define uint16_t unsigned short
22254 echo "$as_me:$LINENO: checking for uint32_t" >&5
22255 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22256 if test "${ac_cv_type_uint32_t+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22259 ac_cv_type_uint32_t=no
22260 cat >conftest.$ac_ext <<_ACEOF
22263 cat confdefs.h >>conftest.$ac_ext
22264 cat >>conftest.$ac_ext <<_ACEOF
22265 /* end confdefs.h. */
22266 #ifdef HAVE_INTTYPES_H
22267 #include <inttypes.h>
22269 #ifdef HAVE_STDINT_H
22270 #include <stdint.h>
22281 rm -f conftest.$ac_objext
22282 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22283 (eval $ac_compile) 2>conftest.er1
22285 grep -v '^ *+' conftest.er1 >conftest.err
22287 cat conftest.err >&5
22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22289 (exit $ac_status); } &&
22290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22292 (eval $ac_try) 2>&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); }; } &&
22296 { ac_try='test -s conftest.$ac_objext'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; }; then
22302 ac_cv_type_uint32_t=yes
22304 echo "$as_me: failed program was:" >&5
22305 sed 's/^/| /' conftest.$ac_ext >&5
22308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22312 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22313 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22315 if test "$ac_cv_type_uint32_t" != "yes"; then
22316 cat >>confdefs.h <<\_ACEOF
22317 #define uint32_t unsigned int
22372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22373 echo "$as_me:$LINENO: checking for $ac_func" >&5
22374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22375 if eval "test \"\${$as_ac_var+set}\" = set"; then
22376 echo $ECHO_N "(cached) $ECHO_C" >&6
22378 cat >conftest.$ac_ext <<_ACEOF
22381 cat confdefs.h >>conftest.$ac_ext
22382 cat >>conftest.$ac_ext <<_ACEOF
22383 /* end confdefs.h. */
22384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22386 #define $ac_func innocuous_$ac_func
22388 /* System header to define __stub macros and hopefully few prototypes,
22389 which can conflict with char $ac_func (); below.
22390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22391 <limits.h> exists even on freestanding compilers. */
22394 # include <limits.h>
22396 # include <assert.h>
22401 /* Override any gcc2 internal prototype to avoid an error. */
22406 /* We use char because int might match the return type of a gcc2
22407 builtin and then its argument prototype would still apply. */
22409 /* The GNU C library defines this for functions which it implements
22410 to always fail with ENOSYS. Some functions are actually named
22411 something starting with __ and the normal name is an alias. */
22412 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22415 char (*f) () = $ac_func;
22424 return f != $ac_func;
22429 rm -f conftest.$ac_objext conftest$ac_exeext
22430 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22431 (eval $ac_link) 2>conftest.er1
22433 grep -v '^ *+' conftest.er1 >conftest.err
22435 cat conftest.err >&5
22436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22437 (exit $ac_status); } &&
22438 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_var=yes"
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22455 eval "$as_ac_var=no"
22457 rm -f conftest.err conftest.$ac_objext \
22458 conftest$ac_exeext conftest.$ac_ext
22460 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22461 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22462 if test `eval echo '${'$as_ac_var'}'` = yes; then
22463 cat >>confdefs.h <<_ACEOF
22464 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22481 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
22482 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
22483 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
22484 echo $ECHO_N "(cached) $ECHO_C" >&6
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22494 #include <string.h>
22495 #ifdef HAVE_UNISTD_H
22496 #include <unistd.h>
22498 #ifdef HAVE_CRYPT_H
22501 #ifdef HAVE_ERRNO_H
22504 #ifdef HAVE_RESOURCE_H
22505 #include <resource.h>
22507 #ifdef HAVE_GETOPT_H
22508 #include <getopt.h>
22510 #ifdef HAVE_MALLOC_H
22511 #include <malloc.h>
22516 #ifdef HAVE_UTMPX_H
22519 #ifdef HAVE_SYS_SELECT_H
22520 #include <sys/select.h>
22522 #ifdef HAVE_DLFCN_H
22525 #ifdef HAVE_REGEX_H
22528 #ifdef HAVE_SYSLOG_H
22529 #include <syslog.h>
22531 #ifdef HAVE_INTTYPES_H
22532 #include <inttypes.h>
22534 #ifdef HAVE_STDINT_H
22535 #include <stdint.h>
22537 #ifdef HAVE_ARPA_INET_H
22538 #include <arpa/inet.h>
22544 char *(*pfn) = (char *(*)) $ac_func
22549 rm -f conftest.$ac_objext
22550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22551 (eval $ac_compile) 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557 (exit $ac_status); } &&
22558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22560 (eval $ac_try) 2>&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); }; } &&
22564 { ac_try='test -s conftest.$ac_objext'
22565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22566 (eval $ac_try) 2>&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 eval "radius_cv_decl_needed_$ac_func=no"
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22575 eval "radius_cv_decl_needed_$ac_func=yes"
22577 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22580 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
22581 echo "$as_me:$LINENO: result: yes" >&5
22582 echo "${ECHO_T}yes" >&6
22583 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
22584 cat >>confdefs.h <<_ACEOF
22585 #define $radius_tr_decl 1
22589 echo "$as_me:$LINENO: result: no" >&5
22590 echo "${ECHO_T}no" >&6
22596 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
22597 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
22598 if test "${ac_cv_type_signal+set}" = set; then
22599 echo $ECHO_N "(cached) $ECHO_C" >&6
22601 cat >conftest.$ac_ext <<_ACEOF
22604 cat confdefs.h >>conftest.$ac_ext
22605 cat >>conftest.$ac_ext <<_ACEOF
22606 /* end confdefs.h. */
22607 #include <sys/types.h>
22608 #include <signal.h>
22613 extern "C" void (*signal (int, void (*)(int)))(int);
22615 void (*signal ()) ();
22626 rm -f conftest.$ac_objext
22627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22628 (eval $ac_compile) 2>conftest.er1
22630 grep -v '^ *+' conftest.er1 >conftest.err
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } &&
22635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22637 (eval $ac_try) 2>&5
22639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22640 (exit $ac_status); }; } &&
22641 { ac_try='test -s conftest.$ac_objext'
22642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22643 (eval $ac_try) 2>&5
22645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); }; }; then
22647 ac_cv_type_signal=void
22649 echo "$as_me: failed program was:" >&5
22650 sed 's/^/| /' conftest.$ac_ext >&5
22652 ac_cv_type_signal=int
22654 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22656 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
22657 echo "${ECHO_T}$ac_cv_type_signal" >&6
22659 cat >>confdefs.h <<_ACEOF
22660 #define RETSIGTYPE $ac_cv_type_signal
22665 if test "x$ac_cv_header_utmpx_h" = "xyes"
22668 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
22669 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
22672 cat >conftest.$ac_ext <<_ACEOF
22675 cat confdefs.h >>conftest.$ac_ext
22676 cat >>conftest.$ac_ext <<_ACEOF
22677 /* end confdefs.h. */
22681 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22687 int foo = offsetof(struct utmpx, ut_xtime)
22692 rm -f conftest.$ac_objext
22693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22694 (eval $ac_compile) 2>conftest.er1
22696 grep -v '^ *+' conftest.er1 >conftest.err
22698 cat conftest.err >&5
22699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22700 (exit $ac_status); } &&
22701 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22703 (eval $ac_try) 2>&5
22705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22706 (exit $ac_status); }; } &&
22707 { ac_try='test -s conftest.$ac_objext'
22708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22709 (eval $ac_try) 2>&5
22711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712 (exit $ac_status); }; }; then
22715 echo "$as_me: failed program was:" >&5
22716 sed 's/^/| /' conftest.$ac_ext >&5
22720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22722 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
22723 if test "x$has_element" != "x"; then
22724 echo "$as_me:$LINENO: result: yes" >&5
22725 echo "${ECHO_T}yes" >&6
22726 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
22728 echo "$as_me:$LINENO: result: no" >&5
22729 echo "${ECHO_T}no" >&6
22730 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
22733 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
22735 cat >>confdefs.h <<\_ACEOF
22736 #define ut_xtime ut_tv.tv_sec
22743 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
22744 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
22747 cat >conftest.$ac_ext <<_ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h. */
22754 #include <netinet/in.h>
22756 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
22762 int foo = offsetof(struct in_pktinfo, ipi_addr)
22767 rm -f conftest.$ac_objext
22768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22769 (eval $ac_compile) 2>conftest.er1
22771 grep -v '^ *+' conftest.er1 >conftest.err
22773 cat conftest.err >&5
22774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22775 (exit $ac_status); } &&
22776 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22778 (eval $ac_try) 2>&5
22780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22781 (exit $ac_status); }; } &&
22782 { ac_try='test -s conftest.$ac_objext'
22783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22784 (eval $ac_try) 2>&5
22786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22787 (exit $ac_status); }; }; then
22790 echo "$as_me: failed program was:" >&5
22791 sed 's/^/| /' conftest.$ac_ext >&5
22795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22797 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
22798 if test "x$has_element" != "x"; then
22799 echo "$as_me:$LINENO: result: yes" >&5
22800 echo "${ECHO_T}yes" >&6
22801 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
22803 echo "$as_me:$LINENO: result: no" >&5
22804 echo "${ECHO_T}no" >&6
22805 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
22808 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
22810 cat >>confdefs.h <<\_ACEOF
22811 #define HAVE_IP_PKTINFO 1
22817 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22818 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22819 if test "${ac_cv_c_const+set}" = set; then
22820 echo $ECHO_N "(cached) $ECHO_C" >&6
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22832 /* FIXME: Include the comments suggested by Paul. */
22833 #ifndef __cplusplus
22834 /* Ultrix mips cc rejects this. */
22835 typedef int charset[2];
22837 /* SunOS 4.1.1 cc rejects this. */
22838 char const *const *ccp;
22840 /* NEC SVR4.0.2 mips cc rejects this. */
22841 struct point {int x, y;};
22842 static struct point const zero = {0,0};
22843 /* AIX XL C 1.02.0.0 rejects this.
22844 It does not let you subtract one const X* pointer from another in
22845 an arm of an if-expression whose if-part is not a constant
22847 const char *g = "string";
22848 ccp = &g + (g ? g-g : 0);
22849 /* HPUX 7.0 cc rejects these. */
22852 ccp = (char const *const *) p;
22853 { /* SCO 3.2v4 cc rejects this. */
22855 char const *s = 0 ? (char *) 0 : (char const *) 0;
22859 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22860 int x[] = {25, 17};
22861 const int *foo = &x[0];
22864 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22865 typedef const int *iptr;
22869 { /* AIX XL C 1.02.0.0 rejects this saying
22870 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22871 struct s { int j; const int *ap[3]; };
22872 struct s *b; b->j = 5;
22874 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22875 const int foo = 10;
22883 rm -f conftest.$ac_objext
22884 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22885 (eval $ac_compile) 2>conftest.er1
22887 grep -v '^ *+' conftest.er1 >conftest.err
22889 cat conftest.err >&5
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); } &&
22892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22894 (eval $ac_try) 2>&5
22896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22897 (exit $ac_status); }; } &&
22898 { ac_try='test -s conftest.$ac_objext'
22899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22900 (eval $ac_try) 2>&5
22902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22903 (exit $ac_status); }; }; then
22906 echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22911 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22913 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22914 echo "${ECHO_T}$ac_cv_c_const" >&6
22915 if test $ac_cv_c_const = no; then
22917 cat >>confdefs.h <<\_ACEOF
22924 echo "$as_me:$LINENO: checking type of OS" >&5
22925 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
22927 echo "$as_me:$LINENO: result: $OS" >&5
22928 echo "${ECHO_T}$OS" >&6
22929 if test "$OS" = "OS/2"; then
22936 if test "x$GCC" = "xyes"; then
22937 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
22940 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
22941 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
22942 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
22943 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
22944 CFLAGS="$CFLAGS $devflags"
22946 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
22947 echo "${ECHO_T}yes. Using $devflags" >&6
22950 CFLAGS="$CFLAGS -DNDEBUG"
22952 echo "$as_me:$LINENO: result: no." >&5
22953 echo "${ECHO_T}no." >&6
22957 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
22958 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
22959 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
22960 echo $ECHO_N "(cached) $ECHO_C" >&6
22962 ac_check_lib_save_LIBS=$LIBS
22963 LIBS="-lcrypt $LIBS"
22964 cat >conftest.$ac_ext <<_ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22971 /* Override any gcc2 internal prototype to avoid an error. */
22975 /* We use char because int might match the return type of a gcc2
22976 builtin and then its argument prototype would still apply. */
22986 rm -f conftest.$ac_objext conftest$ac_exeext
22987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22988 (eval $ac_link) 2>conftest.er1
22990 grep -v '^ *+' conftest.er1 >conftest.err
22992 cat conftest.err >&5
22993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22994 (exit $ac_status); } &&
22995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
23001 { ac_try='test -s conftest$ac_exeext'
23002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23003 (eval $ac_try) 2>&5
23005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); }; }; then
23007 ac_cv_lib_crypt_crypt=yes
23009 echo "$as_me: failed program was:" >&5
23010 sed 's/^/| /' conftest.$ac_ext >&5
23012 ac_cv_lib_crypt_crypt=no
23014 rm -f conftest.err conftest.$ac_objext \
23015 conftest$ac_exeext conftest.$ac_ext
23016 LIBS=$ac_check_lib_save_LIBS
23018 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23019 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23020 if test $ac_cv_lib_crypt_crypt = yes; then
23025 if test "$CRYPTLIB" != ""; then
23026 cat >>confdefs.h <<\_ACEOF
23027 #define HAVE_CRYPT 1
23031 echo "$as_me:$LINENO: checking for crypt" >&5
23032 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23033 if test "${ac_cv_func_crypt+set}" = set; then
23034 echo $ECHO_N "(cached) $ECHO_C" >&6
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23044 #define crypt innocuous_crypt
23046 /* System header to define __stub macros and hopefully few prototypes,
23047 which can conflict with char crypt (); below.
23048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23049 <limits.h> exists even on freestanding compilers. */
23052 # include <limits.h>
23054 # include <assert.h>
23059 /* Override any gcc2 internal prototype to avoid an error. */
23064 /* We use char because int might match the return type of a gcc2
23065 builtin and then its argument prototype would still apply. */
23067 /* The GNU C library defines this for functions which it implements
23068 to always fail with ENOSYS. Some functions are actually named
23069 something starting with __ and the normal name is an alias. */
23070 #if defined (__stub_crypt) || defined (__stub___crypt)
23073 char (*f) () = crypt;
23087 rm -f conftest.$ac_objext conftest$ac_exeext
23088 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23089 (eval $ac_link) 2>conftest.er1
23091 grep -v '^ *+' conftest.er1 >conftest.err
23093 cat conftest.err >&5
23094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23095 (exit $ac_status); } &&
23096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23098 (eval $ac_try) 2>&5
23100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23101 (exit $ac_status); }; } &&
23102 { ac_try='test -s conftest$ac_exeext'
23103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23104 (eval $ac_try) 2>&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); }; }; then
23108 ac_cv_func_crypt=yes
23110 echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23113 ac_cv_func_crypt=no
23115 rm -f conftest.err conftest.$ac_objext \
23116 conftest$ac_exeext conftest.$ac_ext
23118 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23119 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23120 if test $ac_cv_func_crypt = yes; then
23121 cat >>confdefs.h <<\_ACEOF
23122 #define HAVE_CRYPT 1
23129 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23130 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23131 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23132 echo $ECHO_N "(cached) $ECHO_C" >&6
23134 ac_check_lib_save_LIBS=$LIBS
23135 LIBS="-lcipher $LIBS"
23136 cat >conftest.$ac_ext <<_ACEOF
23139 cat confdefs.h >>conftest.$ac_ext
23140 cat >>conftest.$ac_ext <<_ACEOF
23141 /* end confdefs.h. */
23143 /* Override any gcc2 internal prototype to avoid an error. */
23147 /* We use char because int might match the return type of a gcc2
23148 builtin and then its argument prototype would still apply. */
23158 rm -f conftest.$ac_objext conftest$ac_exeext
23159 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23160 (eval $ac_link) 2>conftest.er1
23162 grep -v '^ *+' conftest.er1 >conftest.err
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23166 (exit $ac_status); } &&
23167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23168 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23169 (eval $ac_try) 2>&5
23171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23172 (exit $ac_status); }; } &&
23173 { ac_try='test -s conftest$ac_exeext'
23174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23175 (eval $ac_try) 2>&5
23177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23178 (exit $ac_status); }; }; then
23179 ac_cv_lib_cipher_setkey=yes
23181 echo "$as_me: failed program was:" >&5
23182 sed 's/^/| /' conftest.$ac_ext >&5
23184 ac_cv_lib_cipher_setkey=no
23186 rm -f conftest.err conftest.$ac_objext \
23187 conftest$ac_exeext conftest.$ac_ext
23188 LIBS=$ac_check_lib_save_LIBS
23190 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23191 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23192 if test $ac_cv_lib_cipher_setkey = yes; then
23193 CRYPTLIB="${CRYPTLIB} -lcipher"
23199 if test "x$WITH_SNMP" = "xyes"; then
23204 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23205 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23207 cat >conftest.$ac_ext <<_ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23214 #ifdef HAVE_SYS_TYPES_H
23215 #include <sys/types.h>
23217 #ifdef HAVE_STDINT_H
23218 #include <stdint.h>
23220 #ifdef HAVE_STDIO_H
23223 #ifdef HAVE_NETDB_H
23226 #ifdef HAVE_UNISTD_H
23227 #include <unistd.h>
23229 #include <ucd-snmp/ucd-snmp-config.h>
23230 #include <ucd-snmp/asn1.h>
23231 #include <ucd-snmp/snmp.h>
23232 #include <ucd-snmp/snmp_impl.h>
23241 rm -f conftest.$ac_objext
23242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23243 (eval $ac_compile) 2>conftest.er1
23245 grep -v '^ *+' conftest.er1 >conftest.err
23247 cat conftest.err >&5
23248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23249 (exit $ac_status); } &&
23250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; } &&
23256 { ac_try='test -s conftest.$ac_objext'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; }; then
23262 SNMP_INCLUDE="";ucdsnmp=yes
23264 echo "$as_me: failed program was:" >&5
23265 sed 's/^/| /' conftest.$ac_ext >&5
23269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23271 if test "x$ucdsnmp" = "x"; then
23272 old_CFLAGS="$CFLAGS"
23273 for try in /usr/include /usr/local/include $snmp_include_dir; do
23274 CFLAGS="$old_CFLAGS -I$try"
23275 cat >conftest.$ac_ext <<_ACEOF
23278 cat confdefs.h >>conftest.$ac_ext
23279 cat >>conftest.$ac_ext <<_ACEOF
23280 /* end confdefs.h. */
23282 #ifdef HAVE_SYS_TYPES_H
23283 #include <sys/types.h>
23285 #ifdef HAVE_STDINT_H
23286 #include <stdint.h>
23288 #ifdef HAVE_STDIO_H
23291 #ifdef HAVE_NETDB_H
23294 #ifdef HAVE_UNISTD_H
23295 #include <unistd.h>
23297 #include <ucd-snmp/ucd-snmp-config.h>
23298 #include <ucd-snmp/asn1.h>
23299 #include <ucd-snmp/snmp.h>
23300 #include <ucd-snmp/snmp_impl.h>
23309 rm -f conftest.$ac_objext
23310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23311 (eval $ac_compile) 2>conftest.er1
23313 grep -v '^ *+' conftest.er1 >conftest.err
23315 cat conftest.err >&5
23316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23317 (exit $ac_status); } &&
23318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23320 (eval $ac_try) 2>&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); }; } &&
23324 { ac_try='test -s conftest.$ac_objext'
23325 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23326 (eval $ac_try) 2>&5
23328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23329 (exit $ac_status); }; }; then
23330 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23332 echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23337 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23338 if test "x$ucdsnmp" != "x"; then
23342 CFLAGS="$old_CFLAGS"
23345 if test "x$ucdsnmp" = "x"; then
23346 old_CFLAGS="$CFLAGS"
23347 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23348 CFLAGS="$old_CFLAGS -I$try"
23349 cat >conftest.$ac_ext <<_ACEOF
23352 cat confdefs.h >>conftest.$ac_ext
23353 cat >>conftest.$ac_ext <<_ACEOF
23354 /* end confdefs.h. */
23356 #ifdef HAVE_SYS_TYPES_H
23357 #include <sys/types.h>
23359 #ifdef HAVE_STDINT_H
23360 #include <stdint.h>
23362 #ifdef HAVE_STDIO_H
23365 #ifdef HAVE_NETDB_H
23368 #ifdef HAVE_UNISTD_H
23369 #include <unistd.h>
23373 #include <snmp_impl.h>
23382 rm -f conftest.$ac_objext
23383 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23384 (eval $ac_compile) 2>conftest.er1
23386 grep -v '^ *+' conftest.er1 >conftest.err
23388 cat conftest.err >&5
23389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23390 (exit $ac_status); } &&
23391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23393 (eval $ac_try) 2>&5
23395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23396 (exit $ac_status); }; } &&
23397 { ac_try='test -s conftest.$ac_objext'
23398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23399 (eval $ac_try) 2>&5
23401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23402 (exit $ac_status); }; }; then
23403 SNMP_INCLUDE="";ucdsnmp=no
23405 echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23410 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23411 if test "x$ucdsnmp" != "x"; then
23415 CFLAGS="$old_CFLAGS"
23418 if test "x$ucdsnmp" = "x"; then
23419 old_CFLAGS="$CFLAGS"
23420 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23421 CFLAGS="$old_CFLAGS -I$try"
23422 cat >conftest.$ac_ext <<_ACEOF
23425 cat confdefs.h >>conftest.$ac_ext
23426 cat >>conftest.$ac_ext <<_ACEOF
23427 /* end confdefs.h. */
23429 #ifdef HAVE_SYS_TYPES_H
23430 #include <sys/types.h>
23432 #ifdef HAVE_STDINT_H
23433 #include <stdint.h>
23435 #ifdef HAVE_STDIO_H
23438 #ifdef HAVE_NETDB_H
23441 #ifdef HAVE_UNISTD_H
23442 #include <unistd.h>
23446 #include <snmp_impl.h>
23455 rm -f conftest.$ac_objext
23456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23457 (eval $ac_compile) 2>conftest.er1
23459 grep -v '^ *+' conftest.er1 >conftest.err
23461 cat conftest.err >&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } &&
23464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23466 (eval $ac_try) 2>&5
23468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23469 (exit $ac_status); }; } &&
23470 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
23476 SNMP_INCLUDE="-I$try";ucdsnmp=no
23478 echo "$as_me: failed program was:" >&5
23479 sed 's/^/| /' conftest.$ac_ext >&5
23483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23484 if test "x$ucdsnmp" != "x"; then
23488 CFLAGS="$old_CFLAGS"
23491 if test "x$ucdsnmp" = "x"; then
23492 echo "$as_me:$LINENO: result: no" >&5
23493 echo "${ECHO_T}no" >&6
23495 if test "x$ucdsnmp" = "xyes"; then
23496 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
23497 echo "${ECHO_T}(ucd-snmp)yes" >&6
23498 cat >>confdefs.h <<\_ACEOF
23499 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H 1
23503 echo "$as_me:$LINENO: result: yes" >&5
23504 echo "${ECHO_T}yes" >&6
23505 cat >>confdefs.h <<\_ACEOF
23506 #define HAVE_ASN1_SNMP_SNMPIMPL_H 1
23510 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
23511 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
23514 LIBS="$old_LIBS -lsnmp"
23515 cat >conftest.$ac_ext <<_ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 extern char snmp_build_var_op();
23525 snmp_build_var_op()
23530 rm -f conftest.$ac_objext conftest$ac_exeext
23531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23532 (eval $ac_link) 2>conftest.er1
23534 grep -v '^ *+' conftest.er1 >conftest.err
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } &&
23539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23541 (eval $ac_try) 2>&5
23543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23544 (exit $ac_status); }; } &&
23545 { ac_try='test -s conftest$ac_exeext'
23546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23547 (eval $ac_try) 2>&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); }; }; then
23553 echo "$as_me: failed program was:" >&5
23554 sed 's/^/| /' conftest.$ac_ext >&5
23558 rm -f conftest.err conftest.$ac_objext \
23559 conftest$ac_exeext conftest.$ac_ext
23561 if test "x$SNMP_LIBS" = "x"; then
23562 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
23563 LIBS="$old_LIBS -L$try -lsnmp"
23564 cat >conftest.$ac_ext <<_ACEOF
23567 cat confdefs.h >>conftest.$ac_ext
23568 cat >>conftest.$ac_ext <<_ACEOF
23569 /* end confdefs.h. */
23570 extern char snmp_build_var_op();
23574 snmp_build_var_op()
23579 rm -f conftest.$ac_objext conftest$ac_exeext
23580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23581 (eval $ac_link) 2>conftest.er1
23583 grep -v '^ *+' conftest.er1 >conftest.err
23585 cat conftest.err >&5
23586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23587 (exit $ac_status); } &&
23588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23590 (eval $ac_try) 2>&5
23592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23593 (exit $ac_status); }; } &&
23594 { ac_try='test -s conftest$ac_exeext'
23595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23596 (eval $ac_try) 2>&5
23598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23599 (exit $ac_status); }; }; then
23600 SNMP_LIBS="-L$try -lsnmp"
23602 echo "$as_me: failed program was:" >&5
23603 sed 's/^/| /' conftest.$ac_ext >&5
23607 rm -f conftest.err conftest.$ac_objext \
23608 conftest$ac_exeext conftest.$ac_ext
23609 if test "x$SNMP_LIBS" != "x"; then
23612 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 extern char snmp_build_var_op();
23623 snmp_build_var_op()
23628 rm -f conftest.$ac_objext conftest$ac_exeext
23629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23630 (eval $ac_link) 2>conftest.er1
23632 grep -v '^ *+' conftest.er1 >conftest.err
23634 cat conftest.err >&5
23635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23636 (exit $ac_status); } &&
23637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23639 (eval $ac_try) 2>&5
23641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23642 (exit $ac_status); }; } &&
23643 { ac_try='test -s conftest$ac_exeext'
23644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23645 (eval $ac_try) 2>&5
23647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23648 (exit $ac_status); }; }; then
23649 SNMP_LIBS="-L$try -lsnmp -lcrypto"
23651 echo "$as_me: failed program was:" >&5
23652 sed 's/^/| /' conftest.$ac_ext >&5
23656 rm -f conftest.err conftest.$ac_objext \
23657 conftest$ac_exeext conftest.$ac_ext
23658 if test "x$SNMP_LIBS" != "x"; then
23665 CFLAGS="$old_CFLAGS"
23666 if test "x$SNMP_LIBS" = "x"; then
23667 echo "$as_me:$LINENO: result: no" >&5
23668 echo "${ECHO_T}no" >&6
23671 echo "$as_me:$LINENO: result: yes" >&5
23672 echo "${ECHO_T}yes" >&6
23673 cat >>confdefs.h <<\_ACEOF
23674 #define WITH_SNMP 1
23677 cat >>confdefs.h <<\_ACEOF
23678 #define HAVE_LIBSNMP 1
23686 gethostbyaddrrstyle=""
23687 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
23688 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
23691 cat >>confdefs.h <<\_ACEOF
23692 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23695 gethostbyaddrrstyle=BSD
23696 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
23697 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
23700 if test "x$gethostbyaddrrstyle" = "x"; then
23701 cat >conftest.$ac_ext <<_ACEOF
23704 cat confdefs.h >>conftest.$ac_ext
23705 cat >>conftest.$ac_ext <<_ACEOF
23706 /* end confdefs.h. */
23714 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
23719 rm -f conftest.$ac_objext conftest$ac_exeext
23720 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23721 (eval $ac_link) 2>conftest.er1
23723 grep -v '^ *+' conftest.er1 >conftest.err
23725 cat conftest.err >&5
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); } &&
23728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; } &&
23734 { ac_try='test -s conftest$ac_exeext'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; }; then
23741 cat >>confdefs.h <<\_ACEOF
23742 #define GETHOSTBYADDRRSTYLE GNUSTYLE
23745 gethostbyaddrrstyle=GNU
23748 echo "$as_me: failed program was:" >&5
23749 sed 's/^/| /' conftest.$ac_ext >&5
23752 rm -f conftest.err conftest.$ac_objext \
23753 conftest$ac_exeext conftest.$ac_ext
23755 if test "x$gethostbyaddrrstyle" = "x"; then
23756 cat >conftest.$ac_ext <<_ACEOF
23759 cat confdefs.h >>conftest.$ac_ext
23760 cat >>conftest.$ac_ext <<_ACEOF
23761 /* end confdefs.h. */
23769 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
23774 rm -f conftest.$ac_objext conftest$ac_exeext
23775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23776 (eval $ac_link) 2>conftest.er1
23778 grep -v '^ *+' conftest.er1 >conftest.err
23780 cat conftest.err >&5
23781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23782 (exit $ac_status); } &&
23783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23785 (eval $ac_try) 2>&5
23787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23788 (exit $ac_status); }; } &&
23789 { ac_try='test -s conftest$ac_exeext'
23790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23791 (eval $ac_try) 2>&5
23793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23794 (exit $ac_status); }; }; then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
23800 gethostbyaddrrstyle=SYSV
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23807 rm -f conftest.err conftest.$ac_objext \
23808 conftest$ac_exeext conftest.$ac_ext
23810 if test "x$gethostbyaddrrstyle" = "x"; then
23811 cat >conftest.$ac_ext <<_ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23824 gethostbyaddr(NULL, 0, 0)
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23831 (eval $ac_link) 2>conftest.er1
23833 grep -v '^ *+' conftest.er1 >conftest.err
23835 cat conftest.err >&5
23836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } &&
23838 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23840 (eval $ac_try) 2>&5
23842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23843 (exit $ac_status); }; } &&
23844 { ac_try='test -s conftest$ac_exeext'
23845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23846 (eval $ac_try) 2>&5
23848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23849 (exit $ac_status); }; }; then
23851 cat >>confdefs.h <<\_ACEOF
23852 #define GETHOSTBYADDRRSTYLE BSDSTYLE
23855 gethostbyaddrrstyle=BSD
23858 echo "$as_me: failed program was:" >&5
23859 sed 's/^/| /' conftest.$ac_ext >&5
23862 rm -f conftest.err conftest.$ac_objext \
23863 conftest$ac_exeext conftest.$ac_ext
23866 if test "x$gethostbyaddrrstyle" = "x"; then
23867 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
23868 echo "${ECHO_T}none! It must not exist, here." >&6
23870 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
23871 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
23874 if test "x$gethostbyaddrrstyle" = "xBSD"; then
23875 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
23876 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
23879 gethostbynamerstyle=""
23880 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
23881 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
23882 cat >conftest.$ac_ext <<_ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23895 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
23900 rm -f conftest.$ac_objext conftest$ac_exeext
23901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23902 (eval $ac_link) 2>conftest.er1
23904 grep -v '^ *+' conftest.er1 >conftest.err
23906 cat conftest.err >&5
23907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908 (exit $ac_status); } &&
23909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23911 (eval $ac_try) 2>&5
23913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23914 (exit $ac_status); }; } &&
23915 { ac_try='test -s conftest$ac_exeext'
23916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23917 (eval $ac_try) 2>&5
23919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23920 (exit $ac_status); }; }; then
23922 cat >>confdefs.h <<\_ACEOF
23923 #define GETHOSTBYNAMERSTYLE GNUSTYLE
23926 gethostbynamerstyle=GNU
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23933 rm -f conftest.err conftest.$ac_objext \
23934 conftest$ac_exeext conftest.$ac_ext
23935 if test "x$gethostbynamerstyle" = "x"; then
23936 cat >conftest.$ac_ext <<_ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h. */
23949 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956 (eval $ac_link) 2>conftest.er1
23958 grep -v '^ *+' conftest.er1 >conftest.err
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
23963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23965 (eval $ac_try) 2>&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); }; } &&
23969 { ac_try='test -s conftest$ac_exeext'
23970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23971 (eval $ac_try) 2>&5
23973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23974 (exit $ac_status); }; }; then
23976 cat >>confdefs.h <<\_ACEOF
23977 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
23980 gethostbynamerstyle=SYSV
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23987 rm -f conftest.err conftest.$ac_objext \
23988 conftest$ac_exeext conftest.$ac_ext
23990 if test "x$gethostbynamerstyle" = "x"; then
23991 cat >conftest.$ac_ext <<_ACEOF
23994 cat confdefs.h >>conftest.$ac_ext
23995 cat >>conftest.$ac_ext <<_ACEOF
23996 /* end confdefs.h. */
24004 gethostbyname(NULL)
24009 rm -f conftest.$ac_objext conftest$ac_exeext
24010 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24011 (eval $ac_link) 2>conftest.er1
24013 grep -v '^ *+' conftest.er1 >conftest.err
24015 cat conftest.err >&5
24016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24017 (exit $ac_status); } &&
24018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24020 (eval $ac_try) 2>&5
24022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24023 (exit $ac_status); }; } &&
24024 { ac_try='test -s conftest$ac_exeext'
24025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24026 (eval $ac_try) 2>&5
24028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24029 (exit $ac_status); }; }; then
24031 cat >>confdefs.h <<\_ACEOF
24032 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24035 gethostbynamerstyle=BSD
24038 echo "$as_me: failed program was:" >&5
24039 sed 's/^/| /' conftest.$ac_ext >&5
24042 rm -f conftest.err conftest.$ac_objext \
24043 conftest$ac_exeext conftest.$ac_ext
24046 if test "x$gethostbynamerstyle" = "x"; then
24047 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24048 echo "${ECHO_T}none! It must not exist, here." >&6
24050 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24051 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24054 if test "x$gethostbynamerstyle" = "xBSD"; then
24055 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24056 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24060 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24061 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24074 ctime_r(NULL, NULL, 0)
24079 rm -f conftest.$ac_objext conftest$ac_exeext
24080 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24081 (eval $ac_link) 2>conftest.er1
24083 grep -v '^ *+' conftest.er1 >conftest.err
24085 cat conftest.err >&5
24086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } &&
24088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24090 (eval $ac_try) 2>&5
24092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24093 (exit $ac_status); }; } &&
24094 { ac_try='test -s conftest$ac_exeext'
24095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24096 (eval $ac_try) 2>&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); }; }; then
24101 cat >>confdefs.h <<\_ACEOF
24102 #define CTIMERSTYLE SOLARISSTYLE
24105 ctimerstyle="SOLARIS"
24108 echo "$as_me: failed program was:" >&5
24109 sed 's/^/| /' conftest.$ac_ext >&5
24112 rm -f conftest.err conftest.$ac_objext \
24113 conftest$ac_exeext conftest.$ac_ext
24114 if test "x$ctimerstyle" = "x"; then
24115 cat >conftest.$ac_ext <<_ACEOF
24118 cat confdefs.h >>conftest.$ac_ext
24119 cat >>conftest.$ac_ext <<_ACEOF
24120 /* end confdefs.h. */
24127 ctime_r(NULL, NULL)
24132 rm -f conftest.$ac_objext conftest$ac_exeext
24133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24134 (eval $ac_link) 2>conftest.er1
24136 grep -v '^ *+' conftest.er1 >conftest.err
24138 cat conftest.err >&5
24139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24140 (exit $ac_status); } &&
24141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24143 (eval $ac_try) 2>&5
24145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24146 (exit $ac_status); }; } &&
24147 { ac_try='test -s conftest$ac_exeext'
24148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24149 (eval $ac_try) 2>&5
24151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24152 (exit $ac_status); }; }; then
24154 cat >>confdefs.h <<\_ACEOF
24155 #define CTIMERSTYLE POSIXSTYLE
24158 ctimerstyle="POSIX"
24161 echo "$as_me: failed program was:" >&5
24162 sed 's/^/| /' conftest.$ac_ext >&5
24165 rm -f conftest.err conftest.$ac_objext \
24166 conftest$ac_exeext conftest.$ac_ext
24169 if test "x$ctimerstyle" = "x"; then
24170 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24171 echo "${ECHO_T}none! It must not exist, here." >&6
24173 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24174 echo "${ECHO_T}${ctimerstyle}-style" >&6
24178 if test x"$rad_enable_largefiles" = xyes ; then
24179 echo "$as_me:$LINENO: checking for largefile linkage" >&5
24180 echo $ECHO_N "checking for largefile linkage... $ECHO_C" >&6
24183 echo "$as_me:$LINENO: result: no" >&5
24184 echo "${ECHO_T}no" >&6
24185 { { echo "$as_me:$LINENO: error: AIX before 4.2 does not support large files" >&5
24186 echo "$as_me: error: AIX before 4.2 does not support large files" >&2;}
24187 { (exit 1); exit 1; }; }
24190 echo "$as_me:$LINENO: result: ok" >&5
24191 echo "${ECHO_T}ok" >&6
24192 LFS_CFLAGS="-D_LARGE_FILES"
24197 echo "$as_me:$LINENO: result: ok" >&5
24198 echo "${ECHO_T}ok" >&6
24199 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24204 echo "$as_me:$LINENO: result: no" >&5
24205 echo "${ECHO_T}no" >&6
24206 { { echo "$as_me:$LINENO: error: Large files not supported on this platform" >&5
24207 echo "$as_me: error: Large files not supported on this platform" >&2;}
24208 { (exit 1); exit 1; }; }
24211 echo "$as_me:$LINENO: result: maybe" >&5
24212 echo "${ECHO_T}maybe" >&6
24213 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24217 cat >>confdefs.h <<\_ACEOF
24218 #define _GNU_SOURCE 1
24223 echo "$as_me:$LINENO: result: ok" >&5
24224 echo "${ECHO_T}ok" >&6
24225 # Extract the first word of "getconf", so it can be a program name with args.
24226 set dummy getconf; ac_word=$2
24227 echo "$as_me:$LINENO: checking for $ac_word" >&5
24228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24229 if test "${ac_cv_path_GETCONF+set}" = set; then
24230 echo $ECHO_N "(cached) $ECHO_C" >&6
24234 ac_cv_path_GETCONF="$GETCONF" # Let the user override the test with a path.
24237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24238 for as_dir in $PATH
24241 test -z "$as_dir" && as_dir=.
24242 for ac_exec_ext in '' $ac_executable_extensions; do
24243 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24244 ac_cv_path_GETCONF="$as_dir/$ac_word$ac_exec_ext"
24245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24254 GETCONF=$ac_cv_path_GETCONF
24256 if test -n "$GETCONF"; then
24257 echo "$as_me:$LINENO: result: $GETCONF" >&5
24258 echo "${ECHO_T}$GETCONF" >&6
24260 echo "$as_me:$LINENO: result: no" >&5
24261 echo "${ECHO_T}no" >&6
24264 if test -z "$GETCONF" ; then
24265 { { echo "$as_me:$LINENO: error: getconf required to configure large file support" >&5
24266 echo "$as_me: error: getconf required to configure large file support" >&2;}
24267 { (exit 1); exit 1; }; }
24269 LFS_CFLAGS=`$GETCONF LFS_CFLAGS`
24270 LFS_LDFLAGS=`$GETCONF LFS_LDFLAGS`
24271 LFS_LIBS=`$GETCONF LFS_LIBS`
24274 echo "$as_me:$LINENO: result: maybe" >&5
24275 echo "${ECHO_T}maybe" >&6
24276 LFS_CFLAGS="-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24291 export top_builddir
24292 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24293 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24297 if test "x$INCLTDL" != "x";then
24298 INCLTDL='-I${top_builddir}/''libltdl'
24304 if test "x$EXPERIMENTAL" = "xyes"; then
24305 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24306 mysubdirs=`echo $bar`
24308 for bar in `cat src/modules/stable`; do
24309 if test -f src/modules/$bar/configure; then
24310 mysubdirs="$mysubdirs src/modules/$bar"
24316 if test "x$EXPERIMENTAL" = "xyes"; then
24317 for foo in `ls -1 src/modules | grep rlm_`; do
24318 MODULES="$MODULES $foo"
24321 for foo in `cat src/modules/stable`; do
24322 MODULES="$MODULES $foo"
24328 subdirs="$subdirs $mysubdirs"
24333 ac_config_commands="$ac_config_commands stamp-h"
24335 ac_config_commands="$ac_config_commands build-radpaths-h"
24337 ac_config_commands="$ac_config_commands main-chmod"
24339 ac_config_commands="$ac_config_commands scripts-chmod"
24345 USE_SHARED_LIBS=$enable_shared
24347 USE_STATIC_LIBS=$enable_static
24355 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"
24356 cat >confcache <<\_ACEOF
24357 # This file is a shell script that caches the results of configure
24358 # tests run on this system so they can be shared between configure
24359 # scripts and configure runs, see configure's option --config-cache.
24360 # It is not useful on other systems. If it contains results you don't
24361 # want to keep, you may remove or edit it.
24363 # config.status only pays attention to the cache file if you give it
24364 # the --recheck option to rerun configure.
24366 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24367 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24368 # following values.
24372 # The following way of writing the cache mishandles newlines in values,
24373 # but we know of no workaround that is simple, portable, and efficient.
24374 # So, don't put newlines in cache variables' values.
24375 # Ultrix sh set writes to stderr and can't be redirected directly,
24376 # and sets the high bit in the cache file unless we assign to the vars.
24379 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24381 # `set' does not quote correctly, so add quotes (double-quote
24382 # substitution turns \\\\ into \\, and sed turns \\ into \).
24385 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24388 # `set' quotes correctly as required by POSIX, so do not add quotes.
24390 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24397 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24399 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24401 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24402 if test -w $cache_file; then
24403 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24404 cat confcache >$cache_file
24406 echo "not updating unwritable cache $cache_file"
24411 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24412 # Let make expand exec_prefix.
24413 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24415 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24416 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24417 # trailing colons and then remove the whole line if VPATH becomes empty
24418 # (actually we leave an empty line to preserve line numbers).
24419 if test "x$srcdir" = x.; then
24420 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24421 s/:*\$(srcdir):*/:/;
24422 s/:*\${srcdir}:*/:/;
24424 s/^\([^=]*=[ ]*\):*/\1/;
24430 DEFS=-DHAVE_CONFIG_H
24434 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24435 # 1. Remove the extension, and $U if already installed.
24436 ac_i=`echo "$ac_i" |
24437 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24439 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24440 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24442 LIBOBJS=$ac_libobjs
24444 LTLIBOBJS=$ac_ltlibobjs
24448 : ${CONFIG_STATUS=./config.status}
24449 ac_clean_files_save=$ac_clean_files
24450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24451 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24452 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24453 cat >$CONFIG_STATUS <<_ACEOF
24455 # Generated by $as_me.
24456 # Run this file to recreate the current configuration.
24457 # Compiler output produced by configure, useful for debugging
24458 # configure, is in config.log if it exists.
24461 ac_cs_recheck=false
24463 SHELL=\${CONFIG_SHELL-$SHELL}
24466 cat >>$CONFIG_STATUS <<\_ACEOF
24467 ## --------------------- ##
24468 ## M4sh Initialization. ##
24469 ## --------------------- ##
24471 # Be Bourne compatible
24472 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24475 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24476 # is contrary to our usage. Disable this feature.
24477 alias -g '${1+"$@"}'='"$@"'
24478 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24481 DUALCASE=1; export DUALCASE # for MKS sh
24483 # Support unset when possible.
24484 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24491 # Work around bugs in pre-3.0 UWIN ksh.
24492 $as_unset ENV MAIL MAILPATH
24499 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24500 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24501 LC_TELEPHONE LC_TIME
24503 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24504 eval $as_var=C; export $as_var
24510 # Required to use basename.
24511 if expr a : '\(a\)' >/dev/null 2>&1; then
24517 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24518 as_basename=basename
24524 # Name of the executable.
24525 as_me=`$as_basename "$0" ||
24526 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24527 X"$0" : 'X\(//\)$' \| \
24528 X"$0" : 'X\(/\)$' \| \
24529 . : '\(.\)' 2>/dev/null ||
24531 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24532 /^X\/\(\/\/\)$/{ s//\1/; q; }
24533 /^X\/\(\/\).*/{ s//\1/; q; }
24537 # PATH needs CR, and LINENO needs CR and PATH.
24538 # Avoid depending upon Character Ranges.
24539 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24540 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24541 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24542 as_cr_digits='0123456789'
24543 as_cr_alnum=$as_cr_Letters$as_cr_digits
24545 # The user is always right.
24546 if test "${PATH_SEPARATOR+set}" != set; then
24547 echo "#! /bin/sh" >conf$$.sh
24548 echo "exit 0" >>conf$$.sh
24550 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24559 as_lineno_1=$LINENO
24560 as_lineno_2=$LINENO
24561 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24562 test "x$as_lineno_1" != "x$as_lineno_2" &&
24563 test "x$as_lineno_3" = "x$as_lineno_2" || {
24564 # Find who we are. Look in the path if we contain no path at all
24567 *[\\/]* ) as_myself=$0 ;;
24568 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24569 for as_dir in $PATH
24572 test -z "$as_dir" && as_dir=.
24573 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24578 # We did not find ourselves, most probably we were run as `sh COMMAND'
24579 # in which case we are not to be found in the path.
24580 if test "x$as_myself" = x; then
24583 if test ! -f "$as_myself"; then
24584 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24585 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24586 { (exit 1); exit 1; }; }
24588 case $CONFIG_SHELL in
24590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24591 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24594 test -z "$as_dir" && as_dir=.
24595 for as_base in sh bash ksh sh5; do
24598 if ("$as_dir/$as_base" -c '
24599 as_lineno_1=$LINENO
24600 as_lineno_2=$LINENO
24601 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24602 test "x$as_lineno_1" != "x$as_lineno_2" &&
24603 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24604 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24605 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24606 CONFIG_SHELL=$as_dir/$as_base
24607 export CONFIG_SHELL
24608 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24616 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24617 # uniformly replaced by the line number. The first 'sed' inserts a
24618 # line-number line before each line; the second 'sed' does the real
24619 # work. The second script uses 'N' to pair each line-number line
24620 # with the numbered line, and appends trailing '-' during
24621 # substitution so that $LINENO is not a special case at line end.
24622 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24623 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24624 sed '=' <$as_myself |
24629 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24632 s,^['$as_cr_digits']*\n,,
24633 ' >$as_me.lineno &&
24634 chmod +x $as_me.lineno ||
24635 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24636 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24637 { (exit 1); exit 1; }; }
24639 # Don't try to exec as it changes $[0], causing all sort of problems
24640 # (the dirname of $[0] is not the place where we might find the
24641 # original and so on. Autoconf is especially sensible to this).
24643 # Exit status is that of the last command.
24648 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24649 *c*,-n*) ECHO_N= ECHO_C='
24651 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24652 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24655 if expr a : '\(a\)' >/dev/null 2>&1; then
24661 rm -f conf$$ conf$$.exe conf$$.file
24663 if ln -s conf$$.file conf$$ 2>/dev/null; then
24664 # We could just check for DJGPP; but this test a) works b) is more generic
24665 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24666 if test -f conf$$.exe; then
24667 # Don't use ln at all; we don't have any links
24672 elif ln conf$$.file conf$$ 2>/dev/null; then
24677 rm -f conf$$ conf$$.exe conf$$.file
24679 if mkdir -p . 2>/dev/null; then
24682 test -d ./-p && rmdir ./-p
24686 as_executable_p="test -f"
24688 # Sed expression to map a string onto a valid CPP name.
24689 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24691 # Sed expression to map a string onto a valid variable name.
24692 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24696 # We need space, tab and new line, in precisely that order.
24706 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24707 # report actual input values of CONFIG_FILES etc. instead of their
24708 # values after options handling. Logging --version etc. is OK.
24712 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24713 ## Running $as_me. ##
24718 This file was extended by $as_me, which was
24719 generated by GNU Autoconf 2.59. Invocation command line was
24721 CONFIG_FILES = $CONFIG_FILES
24722 CONFIG_HEADERS = $CONFIG_HEADERS
24723 CONFIG_LINKS = $CONFIG_LINKS
24724 CONFIG_COMMANDS = $CONFIG_COMMANDS
24728 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24732 # Files that config.status was made for.
24733 if test -n "$ac_config_files"; then
24734 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24737 if test -n "$ac_config_headers"; then
24738 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24741 if test -n "$ac_config_links"; then
24742 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24745 if test -n "$ac_config_commands"; then
24746 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24749 cat >>$CONFIG_STATUS <<\_ACEOF
24752 \`$as_me' instantiates files from templates according to the
24753 current configuration.
24755 Usage: $0 [OPTIONS] [FILE]...
24757 -h, --help print this help, then exit
24758 -V, --version print version number, then exit
24759 -q, --quiet do not print progress messages
24760 -d, --debug don't remove temporary files
24761 --recheck update $as_me by reconfiguring in the same conditions
24762 --file=FILE[:TEMPLATE]
24763 instantiate the configuration file FILE
24764 --header=FILE[:TEMPLATE]
24765 instantiate the configuration header FILE
24767 Configuration files:
24770 Configuration headers:
24773 Configuration commands:
24776 Report bugs to <bug-autoconf@gnu.org>."
24779 cat >>$CONFIG_STATUS <<_ACEOF
24782 configured by $0, generated by GNU Autoconf 2.59,
24783 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24785 Copyright (C) 2003 Free Software Foundation, Inc.
24786 This config.status script is free software; the Free Software Foundation
24787 gives unlimited permission to copy, distribute and modify it."
24791 cat >>$CONFIG_STATUS <<\_ACEOF
24792 # If no file are specified by the user, then we need to provide default
24793 # value. By we need to know if files were specified by the user.
24799 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24800 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24808 *) # This is not an option, so the user has probably given explicit
24811 ac_need_defaults=false;;
24815 # Handling of the options.
24817 cat >>$CONFIG_STATUS <<\_ACEOF
24818 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24820 --version | --vers* | -V )
24821 echo "$ac_cs_version"; exit 0 ;;
24823 # Conflict between --help and --header
24824 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24825 Try \`$0 --help' for more information." >&5
24826 echo "$as_me: error: ambiguous option: $1
24827 Try \`$0 --help' for more information." >&2;}
24828 { (exit 1); exit 1; }; };;
24829 --help | --hel | -h )
24830 echo "$ac_cs_usage"; exit 0 ;;
24831 --debug | --d* | -d )
24833 --file | --fil | --fi | --f )
24835 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24836 ac_need_defaults=false;;
24837 --header | --heade | --head | --hea )
24839 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24840 ac_need_defaults=false;;
24841 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24842 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24845 # This is an error.
24846 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24847 Try \`$0 --help' for more information." >&5
24848 echo "$as_me: error: unrecognized option: $1
24849 Try \`$0 --help' for more information." >&2;}
24850 { (exit 1); exit 1; }; } ;;
24852 *) ac_config_targets="$ac_config_targets $1" ;;
24858 ac_configure_extra_args=
24860 if $ac_cs_silent; then
24862 ac_configure_extra_args="$ac_configure_extra_args --silent"
24866 cat >>$CONFIG_STATUS <<_ACEOF
24867 if \$ac_cs_recheck; then
24868 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24869 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24878 cat >>$CONFIG_STATUS <<\_ACEOF
24879 for ac_config_target in $ac_config_targets
24881 case "$ac_config_target" in
24882 # Handling of arguments.
24883 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
24884 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
24885 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
24886 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
24887 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
24888 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
24889 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
24890 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
24891 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
24892 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
24893 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
24894 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
24895 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
24896 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
24897 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
24898 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
24899 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
24900 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
24901 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
24902 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24903 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24904 { (exit 1); exit 1; }; };;
24908 # If the user did not use the arguments to specify the items to instantiate,
24909 # then the envvar interface is used. Set only those that are not.
24910 # We use the long form for the default assignment because of an extremely
24911 # bizarre bug on SunOS 4.1.3.
24912 if $ac_need_defaults; then
24913 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24914 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24915 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24918 # Have a temporary directory for convenience. Make it in the build tree
24919 # simply because there is no reason to put it here, and in addition,
24920 # creating and moving files from /tmp can sometimes cause problems.
24921 # Create a temporary directory, and hook for its removal unless debugging.
24924 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24925 trap '{ (exit 1); exit 1; }' 1 2 13 15
24928 # Create a (secure) tmp directory for tmp files.
24931 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24932 test -n "$tmp" && test -d "$tmp"
24935 tmp=./confstat$$-$RANDOM
24936 (umask 077 && mkdir $tmp)
24939 echo "$me: cannot create a temporary directory in ." >&2
24940 { (exit 1); exit 1; }
24945 cat >>$CONFIG_STATUS <<_ACEOF
24948 # CONFIG_FILES section.
24951 # No need to generate the scripts if there are no CONFIG_FILES.
24952 # This happens for instance when ./config.status config.h
24953 if test -n "\$CONFIG_FILES"; then
24954 # Protect against being on the right side of a sed subst in config.status.
24955 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24956 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24957 s,@SHELL@,$SHELL,;t t
24958 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24959 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24960 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24961 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24962 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24963 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24964 s,@exec_prefix@,$exec_prefix,;t t
24965 s,@prefix@,$prefix,;t t
24966 s,@program_transform_name@,$program_transform_name,;t t
24967 s,@bindir@,$bindir,;t t
24968 s,@sbindir@,$sbindir,;t t
24969 s,@libexecdir@,$libexecdir,;t t
24970 s,@datadir@,$datadir,;t t
24971 s,@sysconfdir@,$sysconfdir,;t t
24972 s,@sharedstatedir@,$sharedstatedir,;t t
24973 s,@localstatedir@,$localstatedir,;t t
24974 s,@libdir@,$libdir,;t t
24975 s,@includedir@,$includedir,;t t
24976 s,@oldincludedir@,$oldincludedir,;t t
24977 s,@infodir@,$infodir,;t t
24978 s,@mandir@,$mandir,;t t
24979 s,@build_alias@,$build_alias,;t t
24980 s,@host_alias@,$host_alias,;t t
24981 s,@target_alias@,$target_alias,;t t
24982 s,@DEFS@,$DEFS,;t t
24983 s,@ECHO_C@,$ECHO_C,;t t
24984 s,@ECHO_N@,$ECHO_N,;t t
24985 s,@ECHO_T@,$ECHO_T,;t t
24986 s,@LIBS@,$LIBS,;t t
24988 s,@CFLAGS@,$CFLAGS,;t t
24989 s,@LDFLAGS@,$LDFLAGS,;t t
24990 s,@CPPFLAGS@,$CPPFLAGS,;t t
24991 s,@ac_ct_CC@,$ac_ct_CC,;t t
24992 s,@EXEEXT@,$EXEEXT,;t t
24993 s,@OBJEXT@,$OBJEXT,;t t
24995 s,@EGREP@,$EGREP,;t t
24996 s,@RANLIB@,$RANLIB,;t t
24997 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24998 s,@abs_top_builddir@,$abs_top_builddir,;t t
24999 s,@GMAKE@,$GMAKE,;t t
25000 s,@MAKE@,$MAKE,;t t
25001 s,@subdirs@,$subdirs,;t t
25002 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25003 s,@LIBTOOL@,$LIBTOOL,;t t
25004 s,@build@,$build,;t t
25005 s,@build_cpu@,$build_cpu,;t t
25006 s,@build_vendor@,$build_vendor,;t t
25007 s,@build_os@,$build_os,;t t
25008 s,@host@,$host,;t t
25009 s,@host_cpu@,$host_cpu,;t t
25010 s,@host_vendor@,$host_vendor,;t t
25011 s,@host_os@,$host_os,;t t
25012 s,@LN_S@,$LN_S,;t t
25013 s,@ECHO@,$ECHO,;t t
25015 s,@ac_ct_AR@,$ac_ct_AR,;t t
25016 s,@STRIP@,$STRIP,;t t
25017 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25019 s,@CXXFLAGS@,$CXXFLAGS,;t t
25020 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25021 s,@CXXCPP@,$CXXCPP,;t t
25023 s,@FFLAGS@,$FFLAGS,;t t
25024 s,@ac_ct_F77@,$ac_ct_F77,;t t
25025 s,@logdir@,$logdir,;t t
25026 s,@radacctdir@,$radacctdir,;t t
25027 s,@raddbdir@,$raddbdir,;t t
25028 s,@PERL@,$PERL,;t t
25029 s,@SNMPGET@,$SNMPGET,;t t
25030 s,@SNMPWALK@,$SNMPWALK,;t t
25031 s,@RUSERS@,$RUSERS,;t t
25032 s,@ACLOCAL@,$ACLOCAL,;t t
25033 s,@AUTOCONF@,$AUTOCONF,;t t
25034 s,@AUTOHEADER@,$AUTOHEADER,;t t
25035 s,@LOCATE@,$LOCATE,;t t
25036 s,@DIRNAME@,$DIRNAME,;t t
25037 s,@GREP@,$GREP,;t t
25038 s,@REGEX@,$REGEX,;t t
25039 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25040 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25041 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25042 s,@LIBPREFIX@,$LIBPREFIX,;t t
25043 s,@CRYPTLIB@,$CRYPTLIB,;t t
25044 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25045 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25046 s,@GETCONF@,$GETCONF,;t t
25047 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
25048 s,@LFS_LDFLAGS@,$LFS_LDFLAGS,;t t
25049 s,@LFS_LIBS@,$LFS_LIBS,;t t
25050 s,@HOSTINFO@,$HOSTINFO,;t t
25051 s,@LIBLTDL@,$LIBLTDL,;t t
25052 s,@INCLTDL@,$INCLTDL,;t t
25053 s,@MODULES@,$MODULES,;t t
25054 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25055 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25056 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25057 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25058 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25059 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25060 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25061 s,@LIBOBJS@,$LIBOBJS,;t t
25062 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25067 cat >>$CONFIG_STATUS <<\_ACEOF
25068 # Split the substitutions into bite-sized pieces for seds with
25069 # small command number limits, like on Digital OSF/1 and HP-UX.
25070 ac_max_sed_lines=48
25071 ac_sed_frag=1 # Number of current file.
25072 ac_beg=1 # First line for current file.
25073 ac_end=$ac_max_sed_lines # Line after last line for current file.
25076 while $ac_more_lines; do
25077 if test $ac_beg -gt 1; then
25078 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25080 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25082 if test ! -s $tmp/subs.frag; then
25083 ac_more_lines=false
25085 # The purpose of the label and of the branching condition is to
25086 # speed up the sed processing (if there are no `@' at all, there
25087 # is no need to browse any of the substitutions).
25088 # These are the two extra sed commands mentioned above.
25090 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25091 if test -z "$ac_sed_cmds"; then
25092 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25094 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25096 ac_sed_frag=`expr $ac_sed_frag + 1`
25098 ac_end=`expr $ac_end + $ac_max_sed_lines`
25101 if test -z "$ac_sed_cmds"; then
25104 fi # test -n "$CONFIG_FILES"
25107 cat >>$CONFIG_STATUS <<\_ACEOF
25108 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25109 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25111 - | *:- | *:-:* ) # input from stdin
25113 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25114 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25115 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25116 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25117 * ) ac_file_in=$ac_file.in ;;
25120 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25121 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25122 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25123 X"$ac_file" : 'X\(//\)[^/]' \| \
25124 X"$ac_file" : 'X\(//\)$' \| \
25125 X"$ac_file" : 'X\(/\)' \| \
25126 . : '\(.\)' 2>/dev/null ||
25128 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25129 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25130 /^X\(\/\/\)$/{ s//\1/; q; }
25131 /^X\(\/\).*/{ s//\1/; q; }
25133 { if $as_mkdir_p; then
25138 while test ! -d "$as_dir"; do
25139 as_dirs="$as_dir $as_dirs"
25140 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25141 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25142 X"$as_dir" : 'X\(//\)[^/]' \| \
25143 X"$as_dir" : 'X\(//\)$' \| \
25144 X"$as_dir" : 'X\(/\)' \| \
25145 . : '\(.\)' 2>/dev/null ||
25147 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25148 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25149 /^X\(\/\/\)$/{ s//\1/; q; }
25150 /^X\(\/\).*/{ s//\1/; q; }
25153 test ! -n "$as_dirs" || mkdir $as_dirs
25154 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25155 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25156 { (exit 1); exit 1; }; }; }
25160 if test "$ac_dir" != .; then
25161 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25162 # A "../" for each directory in $ac_dir_suffix.
25163 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25165 ac_dir_suffix= ac_top_builddir=
25169 .) # No --srcdir option. We are building in place.
25171 if test -z "$ac_top_builddir"; then
25174 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25176 [\\/]* | ?:[\\/]* ) # Absolute path.
25177 ac_srcdir=$srcdir$ac_dir_suffix;
25178 ac_top_srcdir=$srcdir ;;
25179 *) # Relative path.
25180 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25181 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25184 # Do not use `cd foo && pwd` to compute absolute paths, because
25185 # the directories may not exist.
25187 .) ac_abs_builddir="$ac_dir";;
25190 .) ac_abs_builddir=`pwd`;;
25191 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25192 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25195 case $ac_abs_builddir in
25196 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25198 case ${ac_top_builddir}. in
25199 .) ac_abs_top_builddir=$ac_abs_builddir;;
25200 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25201 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25204 case $ac_abs_builddir in
25205 .) ac_abs_srcdir=$ac_srcdir;;
25208 .) ac_abs_srcdir=$ac_abs_builddir;;
25209 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25210 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25213 case $ac_abs_builddir in
25214 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25216 case $ac_top_srcdir in
25217 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25218 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25219 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25225 # Let's still pretend it is `configure' which instantiates (i.e., don't
25226 # use $as_me), people would be surprised to read:
25227 # /* config.h. Generated by config.status. */
25228 if test x"$ac_file" = x-; then
25231 configure_input="$ac_file. "
25233 configure_input=$configure_input"Generated from `echo $ac_file_in |
25234 sed 's,.*/,,'` by configure."
25236 # First look for the input files in the build tree, otherwise in the
25238 ac_file_inputs=`IFS=:
25239 for f in $ac_file_in; do
25241 -) echo $tmp/stdin ;;
25243 # Absolute (can't be DOS-style, as IFS=:)
25244 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25245 echo "$as_me: error: cannot find input file: $f" >&2;}
25246 { (exit 1); exit 1; }; }
25249 if test -f "$f"; then
25252 elif test -f "$srcdir/$f"; then
25257 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25258 echo "$as_me: error: cannot find input file: $f" >&2;}
25259 { (exit 1); exit 1; }; }
25262 done` || { (exit 1); exit 1; }
25264 if test x"$ac_file" != x-; then
25265 { echo "$as_me:$LINENO: creating $ac_file" >&5
25266 echo "$as_me: creating $ac_file" >&6;}
25270 cat >>$CONFIG_STATUS <<_ACEOF
25274 cat >>$CONFIG_STATUS <<\_ACEOF
25276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25277 s,@configure_input@,$configure_input,;t t
25278 s,@srcdir@,$ac_srcdir,;t t
25279 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25280 s,@top_srcdir@,$ac_top_srcdir,;t t
25281 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25282 s,@builddir@,$ac_builddir,;t t
25283 s,@abs_builddir@,$ac_abs_builddir,;t t
25284 s,@top_builddir@,$ac_top_builddir,;t t
25285 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25286 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25288 if test x"$ac_file" != x-; then
25289 mv $tmp/out $ac_file
25297 cat >>$CONFIG_STATUS <<\_ACEOF
25300 # CONFIG_HEADER section.
25303 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25304 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25306 # ac_d sets the value in "#define NAME VALUE" lines.
25307 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25308 ac_dB='[ ].*$,\1#\2'
25311 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25312 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25313 ac_uB='$,\1#\2define\3'
25317 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25318 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25320 - | *:- | *:-:* ) # input from stdin
25322 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25323 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25324 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25325 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25326 * ) ac_file_in=$ac_file.in ;;
25329 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25330 echo "$as_me: creating $ac_file" >&6;}
25332 # First look for the input files in the build tree, otherwise in the
25334 ac_file_inputs=`IFS=:
25335 for f in $ac_file_in; do
25337 -) echo $tmp/stdin ;;
25339 # Absolute (can't be DOS-style, as IFS=:)
25340 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25341 echo "$as_me: error: cannot find input file: $f" >&2;}
25342 { (exit 1); exit 1; }; }
25343 # Do quote $f, to prevent DOS paths from being IFS'd.
25346 if test -f "$f"; then
25349 elif test -f "$srcdir/$f"; then
25354 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25355 echo "$as_me: error: cannot find input file: $f" >&2;}
25356 { (exit 1); exit 1; }; }
25359 done` || { (exit 1); exit 1; }
25360 # Remove the trailing spaces.
25361 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25365 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25366 # `conftest.undefs', that substitutes the proper values into
25367 # config.h.in to produce config.h. The first handles `#define'
25368 # templates, and the second `#undef' templates.
25369 # And first: Protect against being on the right side of a sed subst in
25370 # config.status. Protect against being in an unquoted here document
25371 # in config.status.
25372 rm -f conftest.defines conftest.undefs
25373 # Using a here document instead of a string reduces the quoting nightmare.
25374 # Putting comments in sed scripts is not portable.
25376 # `end' is used to avoid that the second main sed command (meant for
25377 # 0-ary CPP macros) applies to n-ary macro definitions.
25378 # See the Autoconf documentation for `clear'.
25379 cat >confdef2sed.sed <<\_ACEOF
25384 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25386 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25389 # If some macros were called several times there might be several times
25390 # the same #defines, which is useless. Nevertheless, we may not want to
25391 # sort them, since we want the *last* AC-DEFINE to be honored.
25392 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25393 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25394 rm -f confdef2sed.sed
25396 # This sed command replaces #undef with comments. This is necessary, for
25397 # example, in the case of _POSIX_SOURCE, which is predefined and required
25398 # on some systems where configure will not decide to define it.
25399 cat >>conftest.undefs <<\_ACEOF
25400 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25403 # Break up conftest.defines because some shells have a limit on the size
25404 # of here documents, and old seds have small limits too (100 cmds).
25405 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25406 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25407 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25408 echo ' :' >>$CONFIG_STATUS
25409 rm -f conftest.tail
25410 while grep . conftest.defines >/dev/null
25412 # Write a limited-size here document to $tmp/defines.sed.
25413 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25414 # Speed up: don't consider the non `#define' lines.
25415 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25416 # Work around the forget-to-reset-the-flag bug.
25417 echo 't clr' >>$CONFIG_STATUS
25418 echo ': clr' >>$CONFIG_STATUS
25419 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25421 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25423 mv $tmp/out $tmp/in
25425 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25426 rm -f conftest.defines
25427 mv conftest.tail conftest.defines
25429 rm -f conftest.defines
25430 echo ' fi # grep' >>$CONFIG_STATUS
25431 echo >>$CONFIG_STATUS
25433 # Break up conftest.undefs because some shells have a limit on the size
25434 # of here documents, and old seds have small limits too (100 cmds).
25435 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25436 rm -f conftest.tail
25437 while grep . conftest.undefs >/dev/null
25439 # Write a limited-size here document to $tmp/undefs.sed.
25440 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25441 # Speed up: don't consider the non `#undef'
25442 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25443 # Work around the forget-to-reset-the-flag bug.
25444 echo 't clr' >>$CONFIG_STATUS
25445 echo ': clr' >>$CONFIG_STATUS
25446 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25448 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25450 mv $tmp/out $tmp/in
25452 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25453 rm -f conftest.undefs
25454 mv conftest.tail conftest.undefs
25456 rm -f conftest.undefs
25458 cat >>$CONFIG_STATUS <<\_ACEOF
25459 # Let's still pretend it is `configure' which instantiates (i.e., don't
25460 # use $as_me), people would be surprised to read:
25461 # /* config.h. Generated by config.status. */
25462 if test x"$ac_file" = x-; then
25463 echo "/* Generated by configure. */" >$tmp/config.h
25465 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25467 cat $tmp/in >>$tmp/config.h
25469 if test x"$ac_file" != x-; then
25470 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25471 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25472 echo "$as_me: $ac_file is unchanged" >&6;}
25474 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25475 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25476 X"$ac_file" : 'X\(//\)[^/]' \| \
25477 X"$ac_file" : 'X\(//\)$' \| \
25478 X"$ac_file" : 'X\(/\)' \| \
25479 . : '\(.\)' 2>/dev/null ||
25481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25482 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25483 /^X\(\/\/\)$/{ s//\1/; q; }
25484 /^X\(\/\).*/{ s//\1/; q; }
25486 { if $as_mkdir_p; then
25491 while test ! -d "$as_dir"; do
25492 as_dirs="$as_dir $as_dirs"
25493 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25494 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25495 X"$as_dir" : 'X\(//\)[^/]' \| \
25496 X"$as_dir" : 'X\(//\)$' \| \
25497 X"$as_dir" : 'X\(/\)' \| \
25498 . : '\(.\)' 2>/dev/null ||
25500 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25501 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25502 /^X\(\/\/\)$/{ s//\1/; q; }
25503 /^X\(\/\).*/{ s//\1/; q; }
25506 test ! -n "$as_dirs" || mkdir $as_dirs
25507 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25508 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25509 { (exit 1); exit 1; }; }; }
25512 mv $tmp/config.h $ac_file
25516 rm -f $tmp/config.h
25520 cat >>$CONFIG_STATUS <<\_ACEOF
25523 # CONFIG_COMMANDS section.
25525 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25526 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25527 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25528 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25529 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25530 X"$ac_dest" : 'X\(//\)[^/]' \| \
25531 X"$ac_dest" : 'X\(//\)$' \| \
25532 X"$ac_dest" : 'X\(/\)' \| \
25533 . : '\(.\)' 2>/dev/null ||
25535 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25536 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25537 /^X\(\/\/\)$/{ s//\1/; q; }
25538 /^X\(\/\).*/{ s//\1/; q; }
25540 { if $as_mkdir_p; then
25545 while test ! -d "$as_dir"; do
25546 as_dirs="$as_dir $as_dirs"
25547 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25548 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25549 X"$as_dir" : 'X\(//\)[^/]' \| \
25550 X"$as_dir" : 'X\(//\)$' \| \
25551 X"$as_dir" : 'X\(/\)' \| \
25552 . : '\(.\)' 2>/dev/null ||
25554 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25555 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25556 /^X\(\/\/\)$/{ s//\1/; q; }
25557 /^X\(\/\).*/{ s//\1/; q; }
25560 test ! -n "$as_dirs" || mkdir $as_dirs
25561 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25562 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25563 { (exit 1); exit 1; }; }; }
25567 if test "$ac_dir" != .; then
25568 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25569 # A "../" for each directory in $ac_dir_suffix.
25570 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25572 ac_dir_suffix= ac_top_builddir=
25576 .) # No --srcdir option. We are building in place.
25578 if test -z "$ac_top_builddir"; then
25581 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25583 [\\/]* | ?:[\\/]* ) # Absolute path.
25584 ac_srcdir=$srcdir$ac_dir_suffix;
25585 ac_top_srcdir=$srcdir ;;
25586 *) # Relative path.
25587 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25588 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25591 # Do not use `cd foo && pwd` to compute absolute paths, because
25592 # the directories may not exist.
25594 .) ac_abs_builddir="$ac_dir";;
25597 .) ac_abs_builddir=`pwd`;;
25598 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25599 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25602 case $ac_abs_builddir in
25603 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25605 case ${ac_top_builddir}. in
25606 .) ac_abs_top_builddir=$ac_abs_builddir;;
25607 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25608 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25611 case $ac_abs_builddir in
25612 .) ac_abs_srcdir=$ac_srcdir;;
25615 .) ac_abs_srcdir=$ac_abs_builddir;;
25616 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25617 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25620 case $ac_abs_builddir in
25621 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25623 case $ac_top_srcdir in
25624 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25625 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25626 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25631 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25632 echo "$as_me: executing $ac_dest commands" >&6;}
25634 stamp-h ) echo timestamp > src/include/stamp-h ;;
25635 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
25636 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
25637 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
25642 cat >>$CONFIG_STATUS <<\_ACEOF
25644 { (exit 0); exit 0; }
25646 chmod +x $CONFIG_STATUS
25647 ac_clean_files=$ac_clean_files_save
25650 # configure is writing to config.log, and then calls config.status.
25651 # config.status does its own redirection, appending to config.log.
25652 # Unfortunately, on DOS this fails, as config.log is still kept open
25653 # by configure, so config.status won't be able to write to it; its
25654 # output is simply discarded. So we exec the FD to /dev/null,
25655 # effectively closing config.log, so it can be properly (re)opened and
25656 # appended to by config.status. When coming back to configure, we
25657 # need to make the FD available again.
25658 if test "$no_create" != yes; then
25660 ac_config_status_args=
25661 test "$silent" = yes &&
25662 ac_config_status_args="$ac_config_status_args --quiet"
25664 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25666 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25667 # would make configure fail if this is the last instruction.
25668 $ac_cs_success || { (exit 1); exit 1; }
25672 # CONFIG_SUBDIRS section.
25674 if test "$no_recursion" != yes; then
25676 # Remove --cache-file and --srcdir arguments so they do not pile up.
25677 ac_sub_configure_args=
25679 for ac_arg in $ac_configure_args; do
25680 if test -n "$ac_prev"; then
25685 -cache-file | --cache-file | --cache-fil | --cache-fi \
25686 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
25687 ac_prev=cache_file ;;
25688 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
25689 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
25692 --config-cache | -C)
25694 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
25696 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
25698 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
25700 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
25702 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
25706 # Always prepend --prefix to ensure using the same prefix
25707 # in subdir configurations.
25708 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
25711 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
25713 # Do not complain, so a configure script can configure whichever
25714 # parts of a large source tree are present.
25715 test -d $srcdir/$ac_dir || continue
25717 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
25718 echo "$as_me: configuring in $ac_dir" >&6;}
25719 { if $as_mkdir_p; then
25724 while test ! -d "$as_dir"; do
25725 as_dirs="$as_dir $as_dirs"
25726 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25727 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25728 X"$as_dir" : 'X\(//\)[^/]' \| \
25729 X"$as_dir" : 'X\(//\)$' \| \
25730 X"$as_dir" : 'X\(/\)' \| \
25731 . : '\(.\)' 2>/dev/null ||
25733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25734 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25735 /^X\(\/\/\)$/{ s//\1/; q; }
25736 /^X\(\/\).*/{ s//\1/; q; }
25739 test ! -n "$as_dirs" || mkdir $as_dirs
25740 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25741 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25742 { (exit 1); exit 1; }; }; }
25746 if test "$ac_dir" != .; then
25747 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25748 # A "../" for each directory in $ac_dir_suffix.
25749 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25751 ac_dir_suffix= ac_top_builddir=
25755 .) # No --srcdir option. We are building in place.
25757 if test -z "$ac_top_builddir"; then
25760 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25762 [\\/]* | ?:[\\/]* ) # Absolute path.
25763 ac_srcdir=$srcdir$ac_dir_suffix;
25764 ac_top_srcdir=$srcdir ;;
25765 *) # Relative path.
25766 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25767 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25770 # Do not use `cd foo && pwd` to compute absolute paths, because
25771 # the directories may not exist.
25773 .) ac_abs_builddir="$ac_dir";;
25776 .) ac_abs_builddir=`pwd`;;
25777 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25778 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25781 case $ac_abs_builddir in
25782 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25784 case ${ac_top_builddir}. in
25785 .) ac_abs_top_builddir=$ac_abs_builddir;;
25786 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25787 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25790 case $ac_abs_builddir in
25791 .) ac_abs_srcdir=$ac_srcdir;;
25794 .) ac_abs_srcdir=$ac_abs_builddir;;
25795 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25796 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25799 case $ac_abs_builddir in
25800 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25802 case $ac_top_srcdir in
25803 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25804 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25805 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25812 # Check for guested configure; otherwise get Cygnus style configure.
25813 if test -f $ac_srcdir/configure.gnu; then
25814 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
25815 elif test -f $ac_srcdir/configure; then
25816 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
25817 elif test -f $ac_srcdir/configure.in; then
25818 ac_sub_configure=$ac_configure
25820 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
25821 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
25825 # The recursion is here.
25826 if test -n "$ac_sub_configure"; then
25827 # Make the cache file name correct relative to the subdirectory.
25828 case $cache_file in
25829 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
25830 *) # Relative path.
25831 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
25834 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
25835 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
25836 # The eval makes quoting arguments work.
25837 eval $ac_sub_configure $ac_sub_configure_args \
25838 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
25839 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
25840 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
25841 { (exit 1); exit 1; }; }