2 # From configure.in Revision: 1.206 .
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 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 --disable-largefile omit support for large files
1025 --enable-shared[=PKGS]
1026 build shared libraries [default=yes]
1027 --enable-static[=PKGS]
1028 build static libraries [default=yes]
1029 --enable-fast-install[=PKGS]
1030 optimize for fast installation [default=yes]
1031 --disable-libtool-lock avoid locking (might break parallel builds)
1032 --enable-strict-dependencies Fail configure on lack of module dependancy.
1033 --enable-developer Enables features of interest to developers.
1036 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1037 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1038 --with-system-libtool try to use libtool installed in your system default=use our own
1039 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1040 --with-pic try to use only PIC/non-PIC objects [default=use
1043 include additional configurations [automatic]
1044 --with-logdir=DIR Directory for logfiles LOCALSTATEDIR/log/radius
1045 --with-radacctdir=PATH Directory for detail files LOGDIR/radacct
1046 --with-raddbdir=DIR Directory for config files SYSCONFDIR/raddb
1047 --with-ascend-binary Include support for Ascend binary filter attributes (default=yes)
1048 --with-threads Use threads, if available. (default=yes)
1049 --with-snmp Compile in SNMP support. (default=yes)
1050 --with-large-files Compile in large (2G+) file support. (default=no)
1051 --with-static-modules=QUOTED-MODULE-LIST
1052 --with-experimental-modules Use experimental and unstable modules. (default=no)
1053 --with-openssl-includes=DIR Directory to look for OpenSSL include files
1054 --with-openssl-libraries=DIR Directory to look for OpenSSL library files
1055 --with-rlm-FOO-lib-dir=DIR Directory to look for library files used by module FOO
1056 --with-rlm-FOO-include-dir=DIR Directory to look for include files used by module FOO
1057 --with-udpfromto Compile in UDPFROMTO support. (default=no)
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1067 CXX C++ compiler command
1068 CXXFLAGS C++ compiler flags
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1091 ac_dir_suffix= ac_top_builddir=
1095 .) # No --srcdir option. We are building in place.
1097 if test -z "$ac_top_builddir"; then
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1113 .) ac_abs_builddir="$ac_dir";;
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1160 $ac_configure --help
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1243 ac_must_keep_next=false
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1272 -* ) ac_must_keep_next=true ;;
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1301 # The following way of writing the cache mishandles newlines in values,
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1324 for ac_var in $ac_subst_vars
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1331 if test -n "$ac_subst_files"; then
1338 for ac_var in $ac_subst_files
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1346 if test -s confdefs.h; then
1353 sed "/^$/d" confdefs.h | sort
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1374 # Predefined preprocessor variables.
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1436 # Check that the precious variables saved in the cache have kept the same
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1511 ac_config_headers="$ac_config_headers src/include/autoconf.h"
1514 RADIUSD_MAJOR_VERSION=1
1515 RADIUSD_MINOR_VERSION=1.0-pre0
1516 RADIUSD_VERSION="${RADIUSD_MAJOR_VERSION}.${RADIUSD_MINOR_VERSION}"
1520 ac_cpp='$CPP $CPPFLAGS'
1521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1524 if test -n "$ac_tool_prefix"; then
1525 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1526 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1527 echo "$as_me:$LINENO: checking for $ac_word" >&5
1528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1529 if test "${ac_cv_prog_CC+set}" = set; then
1530 echo $ECHO_N "(cached) $ECHO_C" >&6
1532 if test -n "$CC"; then
1533 ac_cv_prog_CC="$CC" # Let the user override the test.
1535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539 test -z "$as_dir" && as_dir=.
1540 for ac_exec_ext in '' $ac_executable_extensions; do
1541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1542 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1552 if test -n "$CC"; then
1553 echo "$as_me:$LINENO: result: $CC" >&5
1554 echo "${ECHO_T}$CC" >&6
1556 echo "$as_me:$LINENO: result: no" >&5
1557 echo "${ECHO_T}no" >&6
1561 if test -z "$ac_cv_prog_CC"; then
1563 # Extract the first word of "gcc", so it can be a program name with args.
1564 set dummy gcc; ac_word=$2
1565 echo "$as_me:$LINENO: checking for $ac_word" >&5
1566 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1568 echo $ECHO_N "(cached) $ECHO_C" >&6
1570 if test -n "$ac_ct_CC"; then
1571 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1577 test -z "$as_dir" && as_dir=.
1578 for ac_exec_ext in '' $ac_executable_extensions; do
1579 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1580 ac_cv_prog_ac_ct_CC="gcc"
1581 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1590 if test -n "$ac_ct_CC"; then
1591 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1592 echo "${ECHO_T}$ac_ct_CC" >&6
1594 echo "$as_me:$LINENO: result: no" >&5
1595 echo "${ECHO_T}no" >&6
1603 if test -z "$CC"; then
1604 if test -n "$ac_tool_prefix"; then
1605 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1606 set dummy ${ac_tool_prefix}cc; ac_word=$2
1607 echo "$as_me:$LINENO: checking for $ac_word" >&5
1608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1609 if test "${ac_cv_prog_CC+set}" = set; then
1610 echo $ECHO_N "(cached) $ECHO_C" >&6
1612 if test -n "$CC"; then
1613 ac_cv_prog_CC="$CC" # Let the user override the test.
1615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1619 test -z "$as_dir" && as_dir=.
1620 for ac_exec_ext in '' $ac_executable_extensions; do
1621 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1622 ac_cv_prog_CC="${ac_tool_prefix}cc"
1623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1632 if test -n "$CC"; then
1633 echo "$as_me:$LINENO: result: $CC" >&5
1634 echo "${ECHO_T}$CC" >&6
1636 echo "$as_me:$LINENO: result: no" >&5
1637 echo "${ECHO_T}no" >&6
1641 if test -z "$ac_cv_prog_CC"; then
1643 # Extract the first word of "cc", so it can be a program name with args.
1644 set dummy cc; ac_word=$2
1645 echo "$as_me:$LINENO: checking for $ac_word" >&5
1646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1647 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1648 echo $ECHO_N "(cached) $ECHO_C" >&6
1650 if test -n "$ac_ct_CC"; then
1651 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1657 test -z "$as_dir" && as_dir=.
1658 for ac_exec_ext in '' $ac_executable_extensions; do
1659 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1660 ac_cv_prog_ac_ct_CC="cc"
1661 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1669 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1670 if test -n "$ac_ct_CC"; then
1671 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1672 echo "${ECHO_T}$ac_ct_CC" >&6
1674 echo "$as_me:$LINENO: result: no" >&5
1675 echo "${ECHO_T}no" >&6
1684 if test -z "$CC"; then
1685 # Extract the first word of "cc", so it can be a program name with args.
1686 set dummy cc; ac_word=$2
1687 echo "$as_me:$LINENO: checking for $ac_word" >&5
1688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1689 if test "${ac_cv_prog_CC+set}" = set; then
1690 echo $ECHO_N "(cached) $ECHO_C" >&6
1692 if test -n "$CC"; then
1693 ac_cv_prog_CC="$CC" # Let the user override the test.
1696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1700 test -z "$as_dir" && as_dir=.
1701 for ac_exec_ext in '' $ac_executable_extensions; do
1702 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1703 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1704 ac_prog_rejected=yes
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1714 if test $ac_prog_rejected = yes; then
1715 # We found a bogon in the path, so make sure we never use it.
1716 set dummy $ac_cv_prog_CC
1718 if test $# != 0; then
1719 # We chose a different compiler from the bogus one.
1720 # However, it has the same basename, so the bogon will be chosen
1721 # first if we set CC to just the basename; use the full file name.
1723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1729 if test -n "$CC"; then
1730 echo "$as_me:$LINENO: result: $CC" >&5
1731 echo "${ECHO_T}$CC" >&6
1733 echo "$as_me:$LINENO: result: no" >&5
1734 echo "${ECHO_T}no" >&6
1738 if test -z "$CC"; then
1739 if test -n "$ac_tool_prefix"; then
1742 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744 echo "$as_me:$LINENO: checking for $ac_word" >&5
1745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746 if test "${ac_cv_prog_CC+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1749 if test -n "$CC"; then
1750 ac_cv_prog_CC="$CC" # Let the user override the test.
1752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1756 test -z "$as_dir" && as_dir=.
1757 for ac_exec_ext in '' $ac_executable_extensions; do
1758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1769 if test -n "$CC"; then
1770 echo "$as_me:$LINENO: result: $CC" >&5
1771 echo "${ECHO_T}$CC" >&6
1773 echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1777 test -n "$CC" && break
1780 if test -z "$CC"; then
1784 # Extract the first word of "$ac_prog", so it can be a program name with args.
1785 set dummy $ac_prog; ac_word=$2
1786 echo "$as_me:$LINENO: checking for $ac_word" >&5
1787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1789 echo $ECHO_N "(cached) $ECHO_C" >&6
1791 if test -n "$ac_ct_CC"; then
1792 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1798 test -z "$as_dir" && as_dir=.
1799 for ac_exec_ext in '' $ac_executable_extensions; do
1800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801 ac_cv_prog_ac_ct_CC="$ac_prog"
1802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1811 if test -n "$ac_ct_CC"; then
1812 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1813 echo "${ECHO_T}$ac_ct_CC" >&6
1815 echo "$as_me:$LINENO: result: no" >&5
1816 echo "${ECHO_T}no" >&6
1819 test -n "$ac_ct_CC" && break
1828 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1829 See \`config.log' for more details." >&5
1830 echo "$as_me: error: no acceptable C compiler found in \$PATH
1831 See \`config.log' for more details." >&2;}
1832 { (exit 1); exit 1; }; }
1834 # Provide some information about the compiler.
1835 echo "$as_me:$LINENO:" \
1836 "checking for C compiler version" >&5
1837 ac_compiler=`set X $ac_compile; echo $2`
1838 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1839 (eval $ac_compiler --version </dev/null >&5) 2>&5
1841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1842 (exit $ac_status); }
1843 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1844 (eval $ac_compiler -v </dev/null >&5) 2>&5
1846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1847 (exit $ac_status); }
1848 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1849 (eval $ac_compiler -V </dev/null >&5) 2>&5
1851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1852 (exit $ac_status); }
1854 cat >conftest.$ac_ext <<_ACEOF
1857 cat confdefs.h >>conftest.$ac_ext
1858 cat >>conftest.$ac_ext <<_ACEOF
1859 /* end confdefs.h. */
1869 ac_clean_files_save=$ac_clean_files
1870 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1871 # Try to create an executable without -o first, disregard a.out.
1872 # It will help us diagnose broken compilers, and finding out an intuition
1874 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1875 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1876 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1877 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1878 (eval $ac_link_default) 2>&5
1880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1881 (exit $ac_status); }; then
1882 # Find the output, starting from the most likely. This scheme is
1883 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1886 # Be careful to initialize this variable, since it used to be cached.
1887 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1889 # b.out is created by i960 compilers.
1890 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1892 test -f "$ac_file" || continue
1894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1897 # This is the source file.
1900 # We found the default executable, but exeext='' is most
1904 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1905 # FIXME: I believe we export ac_cv_exeext for Libtool,
1906 # but it would be cool to find out if it's true. Does anybody
1907 # maintain Libtool? --akim.
1915 echo "$as_me: failed program was:" >&5
1916 sed 's/^/| /' conftest.$ac_ext >&5
1918 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1919 See \`config.log' for more details." >&5
1920 echo "$as_me: error: C compiler cannot create executables
1921 See \`config.log' for more details." >&2;}
1922 { (exit 77); exit 77; }; }
1925 ac_exeext=$ac_cv_exeext
1926 echo "$as_me:$LINENO: result: $ac_file" >&5
1927 echo "${ECHO_T}$ac_file" >&6
1929 # Check the compiler produces executables we can run. If not, either
1930 # the compiler is broken, or we cross compile.
1931 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1932 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1933 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1934 # If not cross compiling, check that we can run a simple program.
1935 if test "$cross_compiling" != yes; then
1936 if { ac_try='./$ac_file'
1937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1941 (exit $ac_status); }; }; then
1944 if test "$cross_compiling" = maybe; then
1947 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1948 If you meant to cross compile, use \`--host'.
1949 See \`config.log' for more details." >&5
1950 echo "$as_me: error: cannot run C compiled programs.
1951 If you meant to cross compile, use \`--host'.
1952 See \`config.log' for more details." >&2;}
1953 { (exit 1); exit 1; }; }
1957 echo "$as_me:$LINENO: result: yes" >&5
1958 echo "${ECHO_T}yes" >&6
1960 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1961 ac_clean_files=$ac_clean_files_save
1962 # Check the compiler produces executables we can run. If not, either
1963 # the compiler is broken, or we cross compile.
1964 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1965 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1966 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1967 echo "${ECHO_T}$cross_compiling" >&6
1969 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1970 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1972 (eval $ac_link) 2>&5
1974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1975 (exit $ac_status); }; then
1976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1978 # work properly (i.e., refer to `conftest.exe'), while it won't with
1980 for ac_file in conftest.exe conftest conftest.*; do
1981 test -f "$ac_file" || continue
1983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1991 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1992 See \`config.log' for more details." >&5
1993 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1994 See \`config.log' for more details." >&2;}
1995 { (exit 1); exit 1; }; }
1998 rm -f conftest$ac_cv_exeext
1999 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2000 echo "${ECHO_T}$ac_cv_exeext" >&6
2002 rm -f conftest.$ac_ext
2003 EXEEXT=$ac_cv_exeext
2005 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2006 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2007 if test "${ac_cv_objext+set}" = set; then
2008 echo $ECHO_N "(cached) $ECHO_C" >&6
2010 cat >conftest.$ac_ext <<_ACEOF
2013 cat confdefs.h >>conftest.$ac_ext
2014 cat >>conftest.$ac_ext <<_ACEOF
2015 /* end confdefs.h. */
2025 rm -f conftest.o conftest.obj
2026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2027 (eval $ac_compile) 2>&5
2029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2030 (exit $ac_status); }; then
2031 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2034 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2039 echo "$as_me: failed program was:" >&5
2040 sed 's/^/| /' conftest.$ac_ext >&5
2042 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2043 See \`config.log' for more details." >&5
2044 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2045 See \`config.log' for more details." >&2;}
2046 { (exit 1); exit 1; }; }
2049 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2051 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2052 echo "${ECHO_T}$ac_cv_objext" >&6
2053 OBJEXT=$ac_cv_objext
2055 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2056 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2057 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2058 echo $ECHO_N "(cached) $ECHO_C" >&6
2060 cat >conftest.$ac_ext <<_ACEOF
2063 cat confdefs.h >>conftest.$ac_ext
2064 cat >>conftest.$ac_ext <<_ACEOF
2065 /* end confdefs.h. */
2078 rm -f conftest.$ac_objext
2079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2080 (eval $ac_compile) 2>conftest.er1
2082 grep -v '^ *+' conftest.er1 >conftest.err
2084 cat conftest.err >&5
2085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086 (exit $ac_status); } &&
2087 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }; } &&
2093 { ac_try='test -s conftest.$ac_objext'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; }; then
2101 echo "$as_me: failed program was:" >&5
2102 sed 's/^/| /' conftest.$ac_ext >&5
2106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2107 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2110 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2111 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2112 GCC=`test $ac_compiler_gnu = yes && echo yes`
2113 ac_test_CFLAGS=${CFLAGS+set}
2114 ac_save_CFLAGS=$CFLAGS
2116 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2117 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2118 if test "${ac_cv_prog_cc_g+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2121 cat >conftest.$ac_ext <<_ACEOF
2124 cat confdefs.h >>conftest.$ac_ext
2125 cat >>conftest.$ac_ext <<_ACEOF
2126 /* end confdefs.h. */
2136 rm -f conftest.$ac_objext
2137 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2138 (eval $ac_compile) 2>conftest.er1
2140 grep -v '^ *+' conftest.er1 >conftest.err
2142 cat conftest.err >&5
2143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2144 (exit $ac_status); } &&
2145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2150 (exit $ac_status); }; } &&
2151 { ac_try='test -s conftest.$ac_objext'
2152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156 (exit $ac_status); }; }; then
2159 echo "$as_me: failed program was:" >&5
2160 sed 's/^/| /' conftest.$ac_ext >&5
2164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2166 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2167 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2168 if test "$ac_test_CFLAGS" = set; then
2169 CFLAGS=$ac_save_CFLAGS
2170 elif test $ac_cv_prog_cc_g = yes; then
2171 if test "$GCC" = yes; then
2177 if test "$GCC" = yes; then
2183 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2184 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2185 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2186 echo $ECHO_N "(cached) $ECHO_C" >&6
2188 ac_cv_prog_cc_stdc=no
2190 cat >conftest.$ac_ext <<_ACEOF
2193 cat confdefs.h >>conftest.$ac_ext
2194 cat >>conftest.$ac_ext <<_ACEOF
2195 /* end confdefs.h. */
2198 #include <sys/types.h>
2199 #include <sys/stat.h>
2200 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2201 struct buf { int x; };
2202 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2203 static char *e (p, i)
2209 static char *f (char * (*g) (char **, int), char **p, ...)
2214 s = g (p, va_arg (v,int));
2219 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2220 function prototypes and stuff, but not '\xHH' hex character constants.
2221 These don't provoke an error unfortunately, instead are silently treated
2222 as 'x'. The following induces an error, until -std1 is added to get
2223 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2224 array size at least. It's necessary to write '\x00'==0 to get something
2225 that's true only with -std1. */
2226 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2228 int test (int i, double x);
2229 struct s1 {int (*f) (int a);};
2230 struct s2 {int (*f) (double a);};
2231 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2237 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2242 # Don't try gcc -ansi; that turns off useful extensions and
2243 # breaks some systems' header files.
2244 # AIX -qlanglvl=ansi
2245 # Ultrix and OSF/1 -std1
2246 # HP-UX 10.20 and later -Ae
2247 # HP-UX older versions -Aa -D_HPUX_SOURCE
2248 # SVR4 -Xc -D__EXTENSIONS__
2249 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2251 CC="$ac_save_CC $ac_arg"
2252 rm -f conftest.$ac_objext
2253 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2254 (eval $ac_compile) 2>conftest.er1
2256 grep -v '^ *+' conftest.er1 >conftest.err
2258 cat conftest.err >&5
2259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260 (exit $ac_status); } &&
2261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2266 (exit $ac_status); }; } &&
2267 { ac_try='test -s conftest.$ac_objext'
2268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2272 (exit $ac_status); }; }; then
2273 ac_cv_prog_cc_stdc=$ac_arg
2276 echo "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2280 rm -f conftest.err conftest.$ac_objext
2282 rm -f conftest.$ac_ext conftest.$ac_objext
2287 case "x$ac_cv_prog_cc_stdc" in
2289 echo "$as_me:$LINENO: result: none needed" >&5
2290 echo "${ECHO_T}none needed" >&6 ;;
2292 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2293 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2294 CC="$CC $ac_cv_prog_cc_stdc" ;;
2297 # Some people use a C++ compiler to compile C. Since we use `exit',
2298 # in C++ we need to declare it. In case someone uses the same compiler
2299 # for both compiling C and C++ we need to have the C++ compiler decide
2300 # the declaration of exit, since it's the most demanding environment.
2301 cat >conftest.$ac_ext <<_ACEOF
2306 rm -f conftest.$ac_objext
2307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2308 (eval $ac_compile) 2>conftest.er1
2310 grep -v '^ *+' conftest.er1 >conftest.err
2312 cat conftest.err >&5
2313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2314 (exit $ac_status); } &&
2315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2320 (exit $ac_status); }; } &&
2321 { ac_try='test -s conftest.$ac_objext'
2322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2326 (exit $ac_status); }; }; then
2327 for ac_declaration in \
2329 'extern "C" void std::exit (int) throw (); using std::exit;' \
2330 'extern "C" void std::exit (int); using std::exit;' \
2331 'extern "C" void exit (int) throw ();' \
2332 'extern "C" void exit (int);' \
2335 cat >conftest.$ac_ext <<_ACEOF
2338 cat confdefs.h >>conftest.$ac_ext
2339 cat >>conftest.$ac_ext <<_ACEOF
2340 /* end confdefs.h. */
2351 rm -f conftest.$ac_objext
2352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2353 (eval $ac_compile) 2>conftest.er1
2355 grep -v '^ *+' conftest.er1 >conftest.err
2357 cat conftest.err >&5
2358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2359 (exit $ac_status); } &&
2360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365 (exit $ac_status); }; } &&
2366 { ac_try='test -s conftest.$ac_objext'
2367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371 (exit $ac_status); }; }; then
2374 echo "$as_me: failed program was:" >&5
2375 sed 's/^/| /' conftest.$ac_ext >&5
2379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2380 cat >conftest.$ac_ext <<_ACEOF
2383 cat confdefs.h >>conftest.$ac_ext
2384 cat >>conftest.$ac_ext <<_ACEOF
2385 /* end confdefs.h. */
2395 rm -f conftest.$ac_objext
2396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2397 (eval $ac_compile) 2>conftest.er1
2399 grep -v '^ *+' conftest.er1 >conftest.err
2401 cat conftest.err >&5
2402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2403 (exit $ac_status); } &&
2404 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; } &&
2410 { ac_try='test -s conftest.$ac_objext'
2411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2415 (exit $ac_status); }; }; then
2418 echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2425 if test -n "$ac_declaration"; then
2426 echo '#ifdef __cplusplus' >>confdefs.h
2427 echo $ac_declaration >>confdefs.h
2428 echo '#endif' >>confdefs.h
2432 echo "$as_me: failed program was:" >&5
2433 sed 's/^/| /' conftest.$ac_ext >&5
2436 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2438 ac_cpp='$CPP $CPPFLAGS'
2439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2446 ac_cpp='$CPP $CPPFLAGS'
2447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2450 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2451 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2452 # On Suns, sometimes $CPP names a directory.
2453 if test -n "$CPP" && test -d "$CPP"; then
2456 if test -z "$CPP"; then
2457 if test "${ac_cv_prog_CPP+set}" = set; then
2458 echo $ECHO_N "(cached) $ECHO_C" >&6
2460 # Double quotes because CPP needs to be expanded
2461 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2464 for ac_c_preproc_warn_flag in '' yes
2466 # Use a header file that comes with gcc, so configuring glibc
2467 # with a fresh cross-compiler works.
2468 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2469 # <limits.h> exists even on freestanding compilers.
2470 # On the NeXT, cc -E runs the code through the compiler's parser,
2471 # not just through cpp. "Syntax error" is here to catch this case.
2472 cat >conftest.$ac_ext <<_ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h. */
2479 # include <limits.h>
2481 # include <assert.h>
2485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2488 grep -v '^ *+' conftest.er1 >conftest.err
2490 cat conftest.err >&5
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2492 (exit $ac_status); } >/dev/null; then
2493 if test -s conftest.err; then
2494 ac_cpp_err=$ac_c_preproc_warn_flag
2495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2502 if test -z "$ac_cpp_err"; then
2505 echo "$as_me: failed program was:" >&5
2506 sed 's/^/| /' conftest.$ac_ext >&5
2508 # Broken: fails on valid input.
2511 rm -f conftest.err conftest.$ac_ext
2513 # OK, works on sane cases. Now check whether non-existent headers
2514 # can be detected and how.
2515 cat >conftest.$ac_ext <<_ACEOF
2518 cat confdefs.h >>conftest.$ac_ext
2519 cat >>conftest.$ac_ext <<_ACEOF
2520 /* end confdefs.h. */
2521 #include <ac_nonexistent.h>
2523 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2524 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2526 grep -v '^ *+' conftest.er1 >conftest.err
2528 cat conftest.err >&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); } >/dev/null; then
2531 if test -s conftest.err; then
2532 ac_cpp_err=$ac_c_preproc_warn_flag
2533 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2540 if test -z "$ac_cpp_err"; then
2541 # Broken: success on invalid input.
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 # Passes both tests.
2551 rm -f conftest.err conftest.$ac_ext
2554 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2555 rm -f conftest.err conftest.$ac_ext
2556 if $ac_preproc_ok; then
2568 echo "$as_me:$LINENO: result: $CPP" >&5
2569 echo "${ECHO_T}$CPP" >&6
2571 for ac_c_preproc_warn_flag in '' yes
2573 # Use a header file that comes with gcc, so configuring glibc
2574 # with a fresh cross-compiler works.
2575 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2576 # <limits.h> exists even on freestanding compilers.
2577 # On the NeXT, cc -E runs the code through the compiler's parser,
2578 # not just through cpp. "Syntax error" is here to catch this case.
2579 cat >conftest.$ac_ext <<_ACEOF
2582 cat confdefs.h >>conftest.$ac_ext
2583 cat >>conftest.$ac_ext <<_ACEOF
2584 /* end confdefs.h. */
2586 # include <limits.h>
2588 # include <assert.h>
2592 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2593 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595 grep -v '^ *+' conftest.er1 >conftest.err
2597 cat conftest.err >&5
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); } >/dev/null; then
2600 if test -s conftest.err; then
2601 ac_cpp_err=$ac_c_preproc_warn_flag
2602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2609 if test -z "$ac_cpp_err"; then
2612 echo "$as_me: failed program was:" >&5
2613 sed 's/^/| /' conftest.$ac_ext >&5
2615 # Broken: fails on valid input.
2618 rm -f conftest.err conftest.$ac_ext
2620 # OK, works on sane cases. Now check whether non-existent headers
2621 # can be detected and how.
2622 cat >conftest.$ac_ext <<_ACEOF
2625 cat confdefs.h >>conftest.$ac_ext
2626 cat >>conftest.$ac_ext <<_ACEOF
2627 /* end confdefs.h. */
2628 #include <ac_nonexistent.h>
2630 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2631 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2633 grep -v '^ *+' conftest.er1 >conftest.err
2635 cat conftest.err >&5
2636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637 (exit $ac_status); } >/dev/null; then
2638 if test -s conftest.err; then
2639 ac_cpp_err=$ac_c_preproc_warn_flag
2640 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2647 if test -z "$ac_cpp_err"; then
2648 # Broken: success on invalid input.
2651 echo "$as_me: failed program was:" >&5
2652 sed 's/^/| /' conftest.$ac_ext >&5
2654 # Passes both tests.
2658 rm -f conftest.err conftest.$ac_ext
2661 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2662 rm -f conftest.err conftest.$ac_ext
2663 if $ac_preproc_ok; then
2666 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2667 See \`config.log' for more details." >&5
2668 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2669 See \`config.log' for more details." >&2;}
2670 { (exit 1); exit 1; }; }
2674 ac_cpp='$CPP $CPPFLAGS'
2675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2680 echo "$as_me:$LINENO: checking for egrep" >&5
2681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2682 if test "${ac_cv_prog_egrep+set}" = set; then
2683 echo $ECHO_N "(cached) $ECHO_C" >&6
2685 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2686 then ac_cv_prog_egrep='grep -E'
2687 else ac_cv_prog_egrep='egrep'
2690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2692 EGREP=$ac_cv_prog_egrep
2696 echo "$as_me:$LINENO: checking for AIX" >&5
2697 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2698 cat >conftest.$ac_ext <<_ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h. */
2709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2710 $EGREP "yes" >/dev/null 2>&1; then
2711 echo "$as_me:$LINENO: result: yes" >&5
2712 echo "${ECHO_T}yes" >&6
2713 cat >>confdefs.h <<\_ACEOF
2714 #define _ALL_SOURCE 1
2718 echo "$as_me:$LINENO: result: no" >&5
2719 echo "${ECHO_T}no" >&6
2725 if test $ac_cv_c_compiler_gnu = yes; then
2726 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
2727 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
2728 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
2729 echo $ECHO_N "(cached) $ECHO_C" >&6
2731 ac_pattern="Autoconf.*'x'"
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2742 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2743 ac_cv_prog_gcc_traditional=yes
2745 ac_cv_prog_gcc_traditional=no
2750 if test $ac_cv_prog_gcc_traditional = no; then
2751 cat >conftest.$ac_ext <<_ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h. */
2760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2761 $EGREP "$ac_pattern" >/dev/null 2>&1; then
2762 ac_cv_prog_gcc_traditional=yes
2768 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
2769 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
2770 if test $ac_cv_prog_gcc_traditional = yes; then
2771 CC="$CC -traditional"
2775 echo "$as_me:$LINENO: checking whether we are using SUNPro C" >&5
2776 echo $ECHO_N "checking whether we are using SUNPro C... $ECHO_C" >&6
2777 if test "${ac_cv_prog_suncc+set}" = set; then
2778 echo $ECHO_N "(cached) $ECHO_C" >&6
2780 cat > conftest.c <<EOF
2785 if { ac_try='${CC-cc} -E conftest.c'
2786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790 (exit $ac_status); }; } | egrep yes >/dev/null 2>&1; then
2791 ac_cv_prog_suncc=yes
2796 echo "$as_me:$LINENO: result: $ac_cv_prog_suncc" >&5
2797 echo "${ECHO_T}$ac_cv_prog_suncc" >&6
2798 if test -n "$ac_tool_prefix"; then
2799 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
2800 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
2801 echo "$as_me:$LINENO: checking for $ac_word" >&5
2802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2803 if test "${ac_cv_prog_RANLIB+set}" = set; then
2804 echo $ECHO_N "(cached) $ECHO_C" >&6
2806 if test -n "$RANLIB"; then
2807 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
2817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 RANLIB=$ac_cv_prog_RANLIB
2826 if test -n "$RANLIB"; then
2827 echo "$as_me:$LINENO: result: $RANLIB" >&5
2828 echo "${ECHO_T}$RANLIB" >&6
2830 echo "$as_me:$LINENO: result: no" >&5
2831 echo "${ECHO_T}no" >&6
2835 if test -z "$ac_cv_prog_RANLIB"; then
2836 ac_ct_RANLIB=$RANLIB
2837 # Extract the first word of "ranlib", so it can be a program name with args.
2838 set dummy ranlib; ac_word=$2
2839 echo "$as_me:$LINENO: checking for $ac_word" >&5
2840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
2842 echo $ECHO_N "(cached) $ECHO_C" >&6
2844 if test -n "$ac_ct_RANLIB"; then
2845 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
2847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 test -z "$as_dir" && as_dir=.
2852 for ac_exec_ext in '' $ac_executable_extensions; do
2853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854 ac_cv_prog_ac_ct_RANLIB="ranlib"
2855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2861 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
2864 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
2865 if test -n "$ac_ct_RANLIB"; then
2866 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
2867 echo "${ECHO_T}$ac_ct_RANLIB" >&6
2869 echo "$as_me:$LINENO: result: no" >&5
2870 echo "${ECHO_T}no" >&6
2873 RANLIB=$ac_ct_RANLIB
2875 RANLIB="$ac_cv_prog_RANLIB"
2879 abs_top_builddir=`pwd`
2882 # Check whether --enable-largefile or --disable-largefile was given.
2883 if test "${enable_largefile+set}" = set; then
2884 enableval="$enable_largefile"
2887 if test "$enable_largefile" != no; then
2889 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
2890 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
2891 if test "${ac_cv_sys_largefile_CC+set}" = set; then
2892 echo $ECHO_N "(cached) $ECHO_C" >&6
2894 ac_cv_sys_largefile_CC=no
2895 if test "$GCC" != yes; then
2898 # IRIX 6.2 and later do not support large files by default,
2899 # so use the C compiler's -n32 option if that helps.
2900 cat >conftest.$ac_ext <<_ACEOF
2903 cat confdefs.h >>conftest.$ac_ext
2904 cat >>conftest.$ac_ext <<_ACEOF
2905 /* end confdefs.h. */
2906 #include <sys/types.h>
2907 /* Check that off_t can represent 2**63 - 1 correctly.
2908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
2909 since some C++ compilers masquerading as C compilers
2910 incorrectly reject 9223372036854775807. */
2911 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
2912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
2913 && LARGE_OFF_T % 2147483647 == 1)
2923 rm -f conftest.$ac_objext
2924 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2925 (eval $ac_compile) 2>conftest.er1
2927 grep -v '^ *+' conftest.er1 >conftest.err
2929 cat conftest.err >&5
2930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931 (exit $ac_status); } &&
2932 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937 (exit $ac_status); }; } &&
2938 { ac_try='test -s conftest.$ac_objext'
2939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2943 (exit $ac_status); }; }; then
2946 echo "$as_me: failed program was:" >&5
2947 sed 's/^/| /' conftest.$ac_ext >&5
2950 rm -f conftest.err conftest.$ac_objext
2952 rm -f conftest.$ac_objext
2953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2954 (eval $ac_compile) 2>conftest.er1
2956 grep -v '^ *+' conftest.er1 >conftest.err
2958 cat conftest.err >&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); } &&
2961 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2966 (exit $ac_status); }; } &&
2967 { ac_try='test -s conftest.$ac_objext'
2968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); }; }; then
2973 ac_cv_sys_largefile_CC=' -n32'; break
2975 echo "$as_me: failed program was:" >&5
2976 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f conftest.err conftest.$ac_objext
2983 rm -f conftest.$ac_ext
2986 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
2987 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
2988 if test "$ac_cv_sys_largefile_CC" != no; then
2989 CC=$CC$ac_cv_sys_largefile_CC
2992 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
2993 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
2994 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_cv_sys_file_offset_bits=no
2999 cat >conftest.$ac_ext <<_ACEOF
3002 cat confdefs.h >>conftest.$ac_ext
3003 cat >>conftest.$ac_ext <<_ACEOF
3004 /* end confdefs.h. */
3005 #include <sys/types.h>
3006 /* Check that off_t can represent 2**63 - 1 correctly.
3007 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3008 since some C++ compilers masquerading as C compilers
3009 incorrectly reject 9223372036854775807. */
3010 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3011 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3012 && LARGE_OFF_T % 2147483647 == 1)
3022 rm -f conftest.$ac_objext
3023 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3024 (eval $ac_compile) 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036 (exit $ac_status); }; } &&
3037 { ac_try='test -s conftest.$ac_objext'
3038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3042 (exit $ac_status); }; }; then
3045 echo "$as_me: failed program was:" >&5
3046 sed 's/^/| /' conftest.$ac_ext >&5
3049 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3050 cat >conftest.$ac_ext <<_ACEOF
3053 cat confdefs.h >>conftest.$ac_ext
3054 cat >>conftest.$ac_ext <<_ACEOF
3055 /* end confdefs.h. */
3056 #define _FILE_OFFSET_BITS 64
3057 #include <sys/types.h>
3058 /* Check that off_t can represent 2**63 - 1 correctly.
3059 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3060 since some C++ compilers masquerading as C compilers
3061 incorrectly reject 9223372036854775807. */
3062 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3063 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3064 && LARGE_OFF_T % 2147483647 == 1)
3074 rm -f conftest.$ac_objext
3075 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3076 (eval $ac_compile) 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3088 (exit $ac_status); }; } &&
3089 { ac_try='test -s conftest.$ac_objext'
3090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; }; then
3095 ac_cv_sys_file_offset_bits=64; break
3097 echo "$as_me: failed program was:" >&5
3098 sed 's/^/| /' conftest.$ac_ext >&5
3101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
3106 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
3107 if test "$ac_cv_sys_file_offset_bits" != no; then
3109 cat >>confdefs.h <<_ACEOF
3110 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
3115 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
3116 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
3117 if test "${ac_cv_sys_large_files+set}" = set; then
3118 echo $ECHO_N "(cached) $ECHO_C" >&6
3121 ac_cv_sys_large_files=no
3122 cat >conftest.$ac_ext <<_ACEOF
3125 cat confdefs.h >>conftest.$ac_ext
3126 cat >>conftest.$ac_ext <<_ACEOF
3127 /* end confdefs.h. */
3128 #include <sys/types.h>
3129 /* Check that off_t can represent 2**63 - 1 correctly.
3130 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3131 since some C++ compilers masquerading as C compilers
3132 incorrectly reject 9223372036854775807. */
3133 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3134 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3135 && LARGE_OFF_T % 2147483647 == 1)
3145 rm -f conftest.$ac_objext
3146 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3147 (eval $ac_compile) 2>conftest.er1
3149 grep -v '^ *+' conftest.er1 >conftest.err
3151 cat conftest.err >&5
3152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3153 (exit $ac_status); } &&
3154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; } &&
3160 { ac_try='test -s conftest.$ac_objext'
3161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3165 (exit $ac_status); }; }; then
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3173 cat >conftest.$ac_ext <<_ACEOF
3176 cat confdefs.h >>conftest.$ac_ext
3177 cat >>conftest.$ac_ext <<_ACEOF
3178 /* end confdefs.h. */
3179 #define _LARGE_FILES 1
3180 #include <sys/types.h>
3181 /* Check that off_t can represent 2**63 - 1 correctly.
3182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
3183 since some C++ compilers masquerading as C compilers
3184 incorrectly reject 9223372036854775807. */
3185 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
3186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
3187 && LARGE_OFF_T % 2147483647 == 1)
3197 rm -f conftest.$ac_objext
3198 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3199 (eval $ac_compile) 2>conftest.er1
3201 grep -v '^ *+' conftest.er1 >conftest.err
3203 cat conftest.err >&5
3204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3205 (exit $ac_status); } &&
3206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; } &&
3212 { ac_try='test -s conftest.$ac_objext'
3213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; }; then
3218 ac_cv_sys_large_files=1; break
3220 echo "$as_me: failed program was:" >&5
3221 sed 's/^/| /' conftest.$ac_ext >&5
3224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3228 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
3229 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
3230 if test "$ac_cv_sys_large_files" != no; then
3232 cat >>confdefs.h <<_ACEOF
3233 #define _LARGE_FILES $ac_cv_sys_large_files
3243 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
3244 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
3245 if test "${ac_cv_c_bigendian+set}" = set; then
3246 echo $ECHO_N "(cached) $ECHO_C" >&6
3248 # See if sys/param.h defines the BYTE_ORDER macro.
3249 cat >conftest.$ac_ext <<_ACEOF
3252 cat confdefs.h >>conftest.$ac_ext
3253 cat >>conftest.$ac_ext <<_ACEOF
3254 /* end confdefs.h. */
3255 #include <sys/types.h>
3256 #include <sys/param.h>
3261 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
3269 rm -f conftest.$ac_objext
3270 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3271 (eval $ac_compile) 2>conftest.er1
3273 grep -v '^ *+' conftest.er1 >conftest.err
3275 cat conftest.err >&5
3276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3277 (exit $ac_status); } &&
3278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3283 (exit $ac_status); }; } &&
3284 { ac_try='test -s conftest.$ac_objext'
3285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3289 (exit $ac_status); }; }; then
3290 # It does; now see whether it defined to BIG_ENDIAN or not.
3291 cat >conftest.$ac_ext <<_ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h. */
3297 #include <sys/types.h>
3298 #include <sys/param.h>
3303 #if BYTE_ORDER != BIG_ENDIAN
3311 rm -f conftest.$ac_objext
3312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3313 (eval $ac_compile) 2>conftest.er1
3315 grep -v '^ *+' conftest.er1 >conftest.err
3317 cat conftest.err >&5
3318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319 (exit $ac_status); } &&
3320 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; } &&
3326 { ac_try='test -s conftest.$ac_objext'
3327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3331 (exit $ac_status); }; }; then
3332 ac_cv_c_bigendian=yes
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3337 ac_cv_c_bigendian=no
3339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3341 echo "$as_me: failed program was:" >&5
3342 sed 's/^/| /' conftest.$ac_ext >&5
3344 # It does not; compile a test program.
3345 if test "$cross_compiling" = yes; then
3346 # try to guess the endianness by grepping values into an object file
3347 ac_cv_c_bigendian=unknown
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3354 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
3355 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
3356 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
3357 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
3358 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
3359 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
3363 _ascii (); _ebcdic ();
3368 rm -f conftest.$ac_objext
3369 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3370 (eval $ac_compile) 2>conftest.er1
3372 grep -v '^ *+' conftest.er1 >conftest.err
3374 cat conftest.err >&5
3375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3376 (exit $ac_status); } &&
3377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382 (exit $ac_status); }; } &&
3383 { ac_try='test -s conftest.$ac_objext'
3384 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3388 (exit $ac_status); }; }; then
3389 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
3390 ac_cv_c_bigendian=yes
3392 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
3393 if test "$ac_cv_c_bigendian" = unknown; then
3394 ac_cv_c_bigendian=no
3396 # finding both strings is unlikely to happen, but who knows?
3397 ac_cv_c_bigendian=unknown
3401 echo "$as_me: failed program was:" >&5
3402 sed 's/^/| /' conftest.$ac_ext >&5
3405 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3416 /* Are we little or big endian? From Harbison&Steele. */
3420 char c[sizeof (long)];
3423 exit (u.c[sizeof (long) - 1] == 1);
3426 rm -f conftest$ac_exeext
3427 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3428 (eval $ac_link) 2>&5
3430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3436 (exit $ac_status); }; }; then
3437 ac_cv_c_bigendian=no
3439 echo "$as_me: program exited with status $ac_status" >&5
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3444 ac_cv_c_bigendian=yes
3446 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3449 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3451 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
3452 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
3453 case $ac_cv_c_bigendian in
3456 cat >>confdefs.h <<\_ACEOF
3457 #define WORDS_BIGENDIAN 1
3463 { { echo "$as_me:$LINENO: error: unknown endianness
3464 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
3465 echo "$as_me: error: unknown endianness
3466 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
3467 { (exit 1); exit 1; }; } ;;
3471 # Extract the first word of "gmake", so it can be a program name with args.
3472 set dummy gmake; ac_word=$2
3473 echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3475 if test "${ac_cv_prog_GMAKE+set}" = set; then
3476 echo $ECHO_N "(cached) $ECHO_C" >&6
3478 if test -n "$GMAKE"; then
3479 ac_cv_prog_GMAKE="$GMAKE" # Let the user override the test.
3481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3485 test -z "$as_dir" && as_dir=.
3486 for ac_exec_ext in '' $ac_executable_extensions; do
3487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3488 ac_cv_prog_GMAKE="yes"
3489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_prog_GMAKE" && ac_cv_prog_GMAKE="no"
3498 GMAKE=$ac_cv_prog_GMAKE
3499 if test -n "$GMAKE"; then
3500 echo "$as_me:$LINENO: result: $GMAKE" >&5
3501 echo "${ECHO_T}$GMAKE" >&6
3503 echo "$as_me:$LINENO: result: no" >&5
3504 echo "${ECHO_T}no" >&6
3507 if test $GMAKE = no; then
3508 # Extract the first word of "make", so it can be a program name with args.
3509 set dummy make; ac_word=$2
3510 echo "$as_me:$LINENO: checking for $ac_word" >&5
3511 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3512 if test "${ac_cv_path_MAKE+set}" = set; then
3513 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3524 test -z "$as_dir" && as_dir=.
3525 for ac_exec_ext in '' $ac_executable_extensions; do
3526 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3527 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3534 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/bin/make"
3538 MAKE=$ac_cv_path_MAKE
3540 if test -n "$MAKE"; then
3541 echo "$as_me:$LINENO: result: $MAKE" >&5
3542 echo "${ECHO_T}$MAKE" >&6
3544 echo "$as_me:$LINENO: result: no" >&5
3545 echo "${ECHO_T}no" >&6
3549 # Extract the first word of "gmake", so it can be a program name with args.
3550 set dummy gmake; ac_word=$2
3551 echo "$as_me:$LINENO: checking for $ac_word" >&5
3552 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3553 if test "${ac_cv_path_MAKE+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3558 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3568 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
3569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3575 test -z "$ac_cv_path_MAKE" && ac_cv_path_MAKE="/usr/local/gnu/bin/make"
3579 MAKE=$ac_cv_path_MAKE
3581 if test -n "$MAKE"; then
3582 echo "$as_me:$LINENO: result: $MAKE" >&5
3583 echo "${ECHO_T}$MAKE" >&6
3585 echo "$as_me:$LINENO: result: no" >&5
3586 echo "${ECHO_T}no" >&6
3590 makever=`$ac_cv_path_MAKE --version 2>&1 | grep "GNU Make"`
3591 if test -z "$makever"; then
3592 { { echo "$as_me:$LINENO: error: GNU Make is not installed. Please download and install it
3593 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&5
3594 echo "$as_me: error: GNU Make is not installed. Please download and install it
3595 from ftp://prep.ai.mit.edu/pub/gnu/make/ before continuing." >&2;}
3596 { (exit 1); exit 1; }; }
3599 echo "$as_me:$LINENO: checking for lt_dlinit in -lltdl" >&5
3600 echo $ECHO_N "checking for lt_dlinit in -lltdl... $ECHO_C" >&6
3601 if test "${ac_cv_lib_ltdl_lt_dlinit+set}" = set; then
3602 echo $ECHO_N "(cached) $ECHO_C" >&6
3604 ac_check_lib_save_LIBS=$LIBS
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3613 /* Override any gcc2 internal prototype to avoid an error. */
3617 /* We use char because int might match the return type of a gcc2
3618 builtin and then its argument prototype would still apply. */
3628 rm -f conftest.$ac_objext conftest$ac_exeext
3629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3630 (eval $ac_link) 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } &&
3637 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3642 (exit $ac_status); }; } &&
3643 { ac_try='test -s conftest$ac_exeext'
3644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3648 (exit $ac_status); }; }; then
3649 ac_cv_lib_ltdl_lt_dlinit=yes
3651 echo "$as_me: failed program was:" >&5
3652 sed 's/^/| /' conftest.$ac_ext >&5
3654 ac_cv_lib_ltdl_lt_dlinit=no
3656 rm -f conftest.err conftest.$ac_objext \
3657 conftest$ac_exeext conftest.$ac_ext
3658 LIBS=$ac_check_lib_save_LIBS
3660 echo "$as_me:$LINENO: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
3661 echo "${ECHO_T}$ac_cv_lib_ltdl_lt_dlinit" >&6
3662 if test $ac_cv_lib_ltdl_lt_dlinit = yes; then
3663 test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no
3665 if test x"$enable_ltdl_install" = xno; then
3666 { echo "$as_me:$LINENO: WARNING: libltdl not installed, but installation disabled" >&5
3667 echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
3669 enable_ltdl_install=yes
3674 if test x"$enable_ltdl_install" = x"yes"; then
3675 ac_configure_args="$ac_configure_args --enable-ltdl-install"
3676 LIBLTDL='${top_builddir}/''libltdl'/libltdl.la
3677 LTDLINCL='-I${top_srcdir}/''libltdl'
3679 ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
3683 # For backwards non-gettext consistent compatibility...
3687 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3688 if test -f $ac_dir/install-sh; then
3690 ac_install_sh="$ac_aux_dir/install-sh -c"
3692 elif test -f $ac_dir/install.sh; then
3694 ac_install_sh="$ac_aux_dir/install.sh -c"
3696 elif test -f $ac_dir/shtool; then
3698 ac_install_sh="$ac_aux_dir/shtool install -c"
3702 if test -z "$ac_aux_dir"; then
3703 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3704 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3705 { (exit 1); exit 1; }; }
3707 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3708 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3709 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3713 if test x"$enable_ltdl_install" = x"yes"; then
3716 subdirs="$subdirs 'libltdl'"
3723 # Check whether --enable-shared or --disable-shared was given.
3724 if test "${enable_shared+set}" = set; then
3725 enableval="$enable_shared"
3726 p=${PACKAGE-default}
3728 yes) enable_shared=yes ;;
3729 no) enable_shared=no ;;
3732 # Look at the argument we got. We use all the common list separators.
3733 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3734 for pkg in $enableval; do
3736 if test "X$pkg" = "X$p"; then
3747 # Check whether --enable-static or --disable-static was given.
3748 if test "${enable_static+set}" = set; then
3749 enableval="$enable_static"
3750 p=${PACKAGE-default}
3752 yes) enable_static=yes ;;
3753 no) enable_static=no ;;
3756 # Look at the argument we got. We use all the common list separators.
3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3758 for pkg in $enableval; do
3760 if test "X$pkg" = "X$p"; then
3771 # Check whether --enable-fast-install or --disable-fast-install was given.
3772 if test "${enable_fast_install+set}" = set; then
3773 enableval="$enable_fast_install"
3774 p=${PACKAGE-default}
3776 yes) enable_fast_install=yes ;;
3777 no) enable_fast_install=no ;;
3779 enable_fast_install=no
3780 # Look at the argument we got. We use all the common list separators.
3781 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3782 for pkg in $enableval; do
3784 if test "X$pkg" = "X$p"; then
3785 enable_fast_install=yes
3792 enable_fast_install=yes
3795 # Make sure we can run config.sub.
3796 $ac_config_sub sun4 >/dev/null 2>&1 ||
3797 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3799 { (exit 1); exit 1; }; }
3801 echo "$as_me:$LINENO: checking build system type" >&5
3802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3803 if test "${ac_cv_build+set}" = set; then
3804 echo $ECHO_N "(cached) $ECHO_C" >&6
3806 ac_cv_build_alias=$build_alias
3807 test -z "$ac_cv_build_alias" &&
3808 ac_cv_build_alias=`$ac_config_guess`
3809 test -z "$ac_cv_build_alias" &&
3810 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3812 { (exit 1); exit 1; }; }
3813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3814 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3816 { (exit 1); exit 1; }; }
3819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3820 echo "${ECHO_T}$ac_cv_build" >&6
3822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3827 echo "$as_me:$LINENO: checking host system type" >&5
3828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3829 if test "${ac_cv_host+set}" = set; then
3830 echo $ECHO_N "(cached) $ECHO_C" >&6
3832 ac_cv_host_alias=$host_alias
3833 test -z "$ac_cv_host_alias" &&
3834 ac_cv_host_alias=$ac_cv_build_alias
3835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3836 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3838 { (exit 1); exit 1; }; }
3841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3842 echo "${ECHO_T}$ac_cv_host" >&6
3844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3851 if test "${lt_cv_path_SED+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3854 # Loop through the user's path and test for sed and gsed.
3855 # Then use that list of sed's as ones to test for truncation.
3856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 test -z "$as_dir" && as_dir=.
3861 for lt_ac_prog in sed gsed; do
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3864 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3872 # along with /bin/sed that truncates output.
3873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3874 test ! -f $lt_ac_sed && break
3875 cat /dev/null > conftest.in
3877 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3878 # Check for GNU sed and select it if it is found.
3879 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3880 lt_cv_path_SED=$lt_ac_sed
3884 cat conftest.in conftest.in >conftest.tmp
3885 mv conftest.tmp conftest.in
3886 cp conftest.in conftest.nl
3888 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3889 cmp -s conftest.out conftest.nl || break
3890 # 10000 chars as input seems more than enough
3891 test $lt_ac_count -gt 10 && break
3892 lt_ac_count=`expr $lt_ac_count + 1`
3893 if test $lt_ac_count -gt $lt_ac_max; then
3894 lt_ac_max=$lt_ac_count
3895 lt_cv_path_SED=$lt_ac_sed
3903 echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6
3907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3908 if test "${with_gnu_ld+set}" = set; then
3909 withval="$with_gnu_ld"
3910 test "$withval" = no || with_gnu_ld=yes
3915 if test "$GCC" = yes; then
3916 # Check if gcc -print-prog-name=ld gives a path.
3917 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3921 # gcc leaves a trailing carriage return which upsets mingw
3922 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3924 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3927 # Accept absolute paths.
3929 re_direlt='/[^/][^/]*/\.\./'
3930 # Canonicalize the pathname of ld
3931 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3932 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3933 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3935 test -z "$LD" && LD="$ac_prog"
3938 # If it fails, then pretend we aren't using GCC.
3942 # If it is relative, then search for the first ld in PATH.
3946 elif test "$with_gnu_ld" = yes; then
3947 echo "$as_me:$LINENO: checking for GNU ld" >&5
3948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3950 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3953 if test "${lt_cv_path_LD+set}" = set; then
3954 echo $ECHO_N "(cached) $ECHO_C" >&6
3956 if test -z "$LD"; then
3957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3958 for ac_dir in $PATH; do
3960 test -z "$ac_dir" && ac_dir=.
3961 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3962 lt_cv_path_LD="$ac_dir/$ac_prog"
3963 # Check to see if the program is GNU ld. I'd rather use --version,
3964 # but apparently some GNU ld's only accept -v.
3965 # Break only if it was the GNU/non-GNU ld that we prefer.
3966 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3967 *GNU* | *'with BFD'*)
3968 test "$with_gnu_ld" != no && break
3971 test "$with_gnu_ld" != yes && break
3978 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3983 if test -n "$LD"; then
3984 echo "$as_me:$LINENO: result: $LD" >&5
3985 echo "${ECHO_T}$LD" >&6
3987 echo "$as_me:$LINENO: result: no" >&5
3988 echo "${ECHO_T}no" >&6
3990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3992 { (exit 1); exit 1; }; }
3993 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3996 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3999 case `$LD -v 2>&1 </dev/null` in
4000 *GNU* | *'with BFD'*)
4001 lt_cv_prog_gnu_ld=yes
4004 lt_cv_prog_gnu_ld=no
4008 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4010 with_gnu_ld=$lt_cv_prog_gnu_ld
4013 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4015 if test "${lt_cv_ld_reload_flag+set}" = set; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 lt_cv_ld_reload_flag='-r'
4020 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4022 reload_flag=$lt_cv_ld_reload_flag
4023 case $reload_flag in
4025 *) reload_flag=" $reload_flag" ;;
4027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4029 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4030 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4031 if test "${lt_cv_path_NM+set}" = set; then
4032 echo $ECHO_N "(cached) $ECHO_C" >&6
4034 if test -n "$NM"; then
4035 # Let the user override the test.
4038 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4039 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4041 test -z "$ac_dir" && ac_dir=.
4042 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4043 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4044 # Check to see if the nm accepts a BSD-compat flag.
4045 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4046 # nm: unknown option "B" ignored
4047 # Tru64's nm complains that /dev/null is an invalid object file
4048 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4049 */dev/null* | *'Invalid file or object type'*)
4050 lt_cv_path_NM="$tmp_nm -B"
4054 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4056 lt_cv_path_NM="$tmp_nm -p"
4060 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4061 continue # so that we can try to find one that supports BSD flags
4068 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4071 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4072 echo "${ECHO_T}$lt_cv_path_NM" >&6
4075 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4076 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4078 if test "$LN_S" = "ln -s"; then
4079 echo "$as_me:$LINENO: result: yes" >&5
4080 echo "${ECHO_T}yes" >&6
4082 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4083 echo "${ECHO_T}no, using $LN_S" >&6
4086 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4087 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4088 if test "${lt_cv_deplibs_check_method+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 lt_cv_file_magic_cmd='$MAGIC_CMD'
4092 lt_cv_file_magic_test_file=
4093 lt_cv_deplibs_check_method='unknown'
4094 # Need to set the preceding variable on all platforms that support
4095 # interlibrary dependencies.
4096 # 'none' -- dependencies not supported.
4097 # `unknown' -- same as none, but documents that we really don't know.
4098 # 'pass_all' -- all dependencies passed with no checks.
4099 # 'test_compile' -- check by making test program.
4100 # 'file_magic [[regex]]' -- check by looking for files in library path
4101 # which responds to the $file_magic_cmd with a given extended regex.
4102 # If you have `file' or equivalent on your system and you're not sure
4103 # whether `pass_all' will *always* work, you probably want this one.
4107 lt_cv_deplibs_check_method=pass_all
4111 lt_cv_deplibs_check_method=pass_all
4115 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4116 lt_cv_file_magic_cmd='/usr/bin/file -L'
4117 lt_cv_file_magic_test_file=/shlib/libc.so
4121 # func_win32_libid is a shell function defined in ltmain.sh
4122 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4123 lt_cv_file_magic_cmd='func_win32_libid'
4127 # Base MSYS/MinGW do not provide the 'file' command needed by
4128 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4129 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4130 lt_cv_file_magic_cmd='$OBJDUMP -f'
4133 darwin* | rhapsody*)
4134 lt_cv_deplibs_check_method=pass_all
4137 freebsd* | kfreebsd*-gnu)
4138 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4141 # Not sure whether the presence of OpenBSD here was a mistake.
4142 # Let's accept both of them until this is cleared up.
4143 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4144 lt_cv_file_magic_cmd=/usr/bin/file
4145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4149 lt_cv_deplibs_check_method=pass_all
4154 lt_cv_deplibs_check_method=pass_all
4157 hpux10.20* | hpux11*)
4158 lt_cv_file_magic_cmd=/usr/bin/file
4161 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4162 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4165 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]'
4166 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4169 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4170 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4175 irix5* | irix6* | nonstopux*)
4177 *-32|*"-32 ") libmagic=32-bit;;
4178 *-n32|*"-n32 ") libmagic=N32;;
4179 *-64|*"-64 ") libmagic=64-bit;;
4180 *) libmagic=never-match;;
4182 lt_cv_deplibs_check_method=pass_all
4185 # This must be Linux ELF.
4187 lt_cv_deplibs_check_method=pass_all
4190 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
4191 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4192 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4194 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4199 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4200 lt_cv_file_magic_cmd=/usr/bin/file
4201 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4205 lt_cv_deplibs_check_method=unknown
4209 lt_cv_file_magic_cmd=/usr/bin/file
4210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4214 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4218 osf3* | osf4* | osf5*)
4219 lt_cv_deplibs_check_method=pass_all
4223 lt_cv_deplibs_check_method=pass_all
4227 lt_cv_deplibs_check_method=pass_all
4230 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4231 case $host_vendor in
4233 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]'
4234 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4237 lt_cv_deplibs_check_method=pass_all
4240 lt_cv_file_magic_cmd='/bin/file'
4241 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4244 lt_cv_file_magic_cmd='/bin/file'
4245 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4246 lt_cv_file_magic_test_file=/lib/libc.so
4249 lt_cv_deplibs_check_method=pass_all
4254 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4255 lt_cv_deplibs_check_method=pass_all
4260 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4261 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4262 file_magic_cmd=$lt_cv_file_magic_cmd
4263 deplibs_check_method=$lt_cv_deplibs_check_method
4264 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4269 # If no C compiler was specified, use CC.
4272 # Allow CC to be a program name with arguments.
4275 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4276 if test "${enable_libtool_lock+set}" = set; then
4277 enableval="$enable_libtool_lock"
4280 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4282 # Some flags need to be propagated to the compiler or linker for good
4286 # Find out which ABI we are using.
4287 echo 'int i;' > conftest.$ac_ext
4288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4289 (eval $ac_compile) 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); }; then
4293 case `/usr/bin/file conftest.$ac_objext` in
4305 # Find out which ABI we are using.
4306 echo '#line 4306 "configure"' > conftest.$ac_ext
4307 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4308 (eval $ac_compile) 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; then
4312 if test "$lt_cv_prog_gnu_ld" = yes; then
4313 case `/usr/bin/file conftest.$ac_objext` in
4315 LD="${LD-ld} -melf32bsmip"
4318 LD="${LD-ld} -melf32bmipn32"
4321 LD="${LD-ld} -melf64bmip"
4325 case `/usr/bin/file conftest.$ac_objext` in
4341 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4342 # Find out which ABI we are using.
4343 echo 'int i;' > conftest.$ac_ext
4344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4345 (eval $ac_compile) 2>&5
4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4348 (exit $ac_status); }; then
4349 case "`/usr/bin/file conftest.o`" in
4353 LD="${LD-ld} -m elf_i386"
4355 ppc64-*linux*|powerpc64-*linux*)
4356 LD="${LD-ld} -m elf32ppclinux"
4359 LD="${LD-ld} -m elf_s390"
4362 LD="${LD-ld} -m elf32_sparc"
4369 LD="${LD-ld} -m elf_x86_64"
4371 ppc*-*linux*|powerpc*-*linux*)
4372 LD="${LD-ld} -m elf64ppc"
4375 LD="${LD-ld} -m elf64_s390"
4378 LD="${LD-ld} -m elf64_sparc"
4388 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4389 SAVE_CFLAGS="$CFLAGS"
4390 CFLAGS="$CFLAGS -belf"
4391 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4392 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4393 if test "${lt_cv_cc_needs_belf+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 ac_cpp='$CPP $CPPFLAGS'
4398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4402 cat >conftest.$ac_ext <<_ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4417 rm -f conftest.$ac_objext conftest$ac_exeext
4418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4419 (eval $ac_link) 2>conftest.er1
4421 grep -v '^ *+' conftest.er1 >conftest.err
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } &&
4426 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); }; } &&
4432 { ac_try='test -s conftest$ac_exeext'
4433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437 (exit $ac_status); }; }; then
4438 lt_cv_cc_needs_belf=yes
4440 echo "$as_me: failed program was:" >&5
4441 sed 's/^/| /' conftest.$ac_ext >&5
4443 lt_cv_cc_needs_belf=no
4445 rm -f conftest.err conftest.$ac_objext \
4446 conftest$ac_exeext conftest.$ac_ext
4448 ac_cpp='$CPP $CPPFLAGS'
4449 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4450 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4451 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4454 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4455 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4456 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4457 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4458 CFLAGS="$SAVE_CFLAGS"
4464 need_locks="$enable_libtool_lock"
4467 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4468 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4469 if test "${ac_cv_header_stdc+set}" = set; then
4470 echo $ECHO_N "(cached) $ECHO_C" >&6
4472 cat >conftest.$ac_ext <<_ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h. */
4491 rm -f conftest.$ac_objext
4492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4493 (eval $ac_compile) 2>conftest.er1
4495 grep -v '^ *+' conftest.er1 >conftest.err
4497 cat conftest.err >&5
4498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4499 (exit $ac_status); } &&
4500 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; } &&
4506 { ac_try='test -s conftest.$ac_objext'
4507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); }; }; then
4512 ac_cv_header_stdc=yes
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4517 ac_cv_header_stdc=no
4519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4521 if test $ac_cv_header_stdc = yes; then
4522 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4533 $EGREP "memchr" >/dev/null 2>&1; then
4536 ac_cv_header_stdc=no
4542 if test $ac_cv_header_stdc = yes; then
4543 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4544 cat >conftest.$ac_ext <<_ACEOF
4547 cat confdefs.h >>conftest.$ac_ext
4548 cat >>conftest.$ac_ext <<_ACEOF
4549 /* end confdefs.h. */
4553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4554 $EGREP "free" >/dev/null 2>&1; then
4557 ac_cv_header_stdc=no
4563 if test $ac_cv_header_stdc = yes; then
4564 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4565 if test "$cross_compiling" = yes; then
4568 cat >conftest.$ac_ext <<_ACEOF
4571 cat confdefs.h >>conftest.$ac_ext
4572 cat >>conftest.$ac_ext <<_ACEOF
4573 /* end confdefs.h. */
4575 #if ((' ' & 0x0FF) == 0x020)
4576 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4577 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4579 # define ISLOWER(c) \
4580 (('a' <= (c) && (c) <= 'i') \
4581 || ('j' <= (c) && (c) <= 'r') \
4582 || ('s' <= (c) && (c) <= 'z'))
4583 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4586 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4591 for (i = 0; i < 256; i++)
4592 if (XOR (islower (i), ISLOWER (i))
4593 || toupper (i) != TOUPPER (i))
4598 rm -f conftest$ac_exeext
4599 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4600 (eval $ac_link) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4608 (exit $ac_status); }; }; then
4611 echo "$as_me: program exited with status $ac_status" >&5
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4616 ac_cv_header_stdc=no
4618 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4622 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4623 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4624 if test $ac_cv_header_stdc = yes; then
4626 cat >>confdefs.h <<\_ACEOF
4627 #define STDC_HEADERS 1
4632 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4642 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4643 inttypes.h stdint.h unistd.h
4645 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4646 echo "$as_me:$LINENO: checking for $ac_header" >&5
4647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4649 echo $ECHO_N "(cached) $ECHO_C" >&6
4651 cat >conftest.$ac_ext <<_ACEOF
4654 cat confdefs.h >>conftest.$ac_ext
4655 cat >>conftest.$ac_ext <<_ACEOF
4656 /* end confdefs.h. */
4657 $ac_includes_default
4659 #include <$ac_header>
4661 rm -f conftest.$ac_objext
4662 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663 (eval $ac_compile) 2>conftest.er1
4665 grep -v '^ *+' conftest.er1 >conftest.err
4667 cat conftest.err >&5
4668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4669 (exit $ac_status); } &&
4670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4675 (exit $ac_status); }; } &&
4676 { ac_try='test -s conftest.$ac_objext'
4677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4681 (exit $ac_status); }; }; then
4682 eval "$as_ac_Header=yes"
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4687 eval "$as_ac_Header=no"
4689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4691 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4692 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4694 cat >>confdefs.h <<_ACEOF
4695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704 for ac_header in dlfcn.h
4706 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4707 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4708 echo "$as_me:$LINENO: checking for $ac_header" >&5
4709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4710 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4711 echo $ECHO_N "(cached) $ECHO_C" >&6
4713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4714 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4716 # Is the header compilable?
4717 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4718 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4719 cat >conftest.$ac_ext <<_ACEOF
4722 cat confdefs.h >>conftest.$ac_ext
4723 cat >>conftest.$ac_ext <<_ACEOF
4724 /* end confdefs.h. */
4725 $ac_includes_default
4726 #include <$ac_header>
4728 rm -f conftest.$ac_objext
4729 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4730 (eval $ac_compile) 2>conftest.er1
4732 grep -v '^ *+' conftest.er1 >conftest.err
4734 cat conftest.err >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); } &&
4737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; } &&
4743 { ac_try='test -s conftest.$ac_objext'
4744 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748 (exit $ac_status); }; }; then
4749 ac_header_compiler=yes
4751 echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4754 ac_header_compiler=no
4756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4757 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4758 echo "${ECHO_T}$ac_header_compiler" >&6
4760 # Is the header present?
4761 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4762 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4763 cat >conftest.$ac_ext <<_ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <$ac_header>
4771 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4772 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null; then
4779 if test -s conftest.err; then
4780 ac_cpp_err=$ac_c_preproc_warn_flag
4781 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4788 if test -z "$ac_cpp_err"; then
4789 ac_header_preproc=yes
4791 echo "$as_me: failed program was:" >&5
4792 sed 's/^/| /' conftest.$ac_ext >&5
4794 ac_header_preproc=no
4796 rm -f conftest.err conftest.$ac_ext
4797 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4798 echo "${ECHO_T}$ac_header_preproc" >&6
4800 # So? What about this header?
4801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4807 ac_header_preproc=yes
4810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4824 ## ------------------------------------------ ##
4825 ## Report this to the AC_PACKAGE_NAME lists. ##
4826 ## ------------------------------------------ ##
4829 sed "s/^/$as_me: WARNING: /" >&2
4832 echo "$as_me:$LINENO: checking for $ac_header" >&5
4833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4834 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4835 echo $ECHO_N "(cached) $ECHO_C" >&6
4837 eval "$as_ac_Header=\$ac_header_preproc"
4839 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4840 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4844 cat >>confdefs.h <<_ACEOF
4845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4853 ac_cpp='$CXXCPP $CPPFLAGS'
4854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4857 if test -n "$ac_tool_prefix"; then
4858 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4860 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4861 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4862 echo "$as_me:$LINENO: checking for $ac_word" >&5
4863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4864 if test "${ac_cv_prog_CXX+set}" = set; then
4865 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 if test -n "$CXX"; then
4868 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 test -z "$as_dir" && as_dir=.
4875 for ac_exec_ext in '' $ac_executable_extensions; do
4876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4877 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4887 if test -n "$CXX"; then
4888 echo "$as_me:$LINENO: result: $CXX" >&5
4889 echo "${ECHO_T}$CXX" >&6
4891 echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6
4895 test -n "$CXX" && break
4898 if test -z "$CXX"; then
4900 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4902 # Extract the first word of "$ac_prog", so it can be a program name with args.
4903 set dummy $ac_prog; ac_word=$2
4904 echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4906 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4909 if test -n "$ac_ct_CXX"; then
4910 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4916 test -z "$as_dir" && as_dir=.
4917 for ac_exec_ext in '' $ac_executable_extensions; do
4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4919 ac_cv_prog_ac_ct_CXX="$ac_prog"
4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4929 if test -n "$ac_ct_CXX"; then
4930 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4931 echo "${ECHO_T}$ac_ct_CXX" >&6
4933 echo "$as_me:$LINENO: result: no" >&5
4934 echo "${ECHO_T}no" >&6
4937 test -n "$ac_ct_CXX" && break
4939 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4945 # Provide some information about the compiler.
4946 echo "$as_me:$LINENO:" \
4947 "checking for C++ compiler version" >&5
4948 ac_compiler=`set X $ac_compile; echo $2`
4949 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4950 (eval $ac_compiler --version </dev/null >&5) 2>&5
4952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4953 (exit $ac_status); }
4954 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4955 (eval $ac_compiler -v </dev/null >&5) 2>&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); }
4959 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4960 (eval $ac_compiler -V </dev/null >&5) 2>&5
4962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4963 (exit $ac_status); }
4965 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4966 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4967 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 cat >conftest.$ac_ext <<_ACEOF
4973 cat confdefs.h >>conftest.$ac_ext
4974 cat >>conftest.$ac_ext <<_ACEOF
4975 /* end confdefs.h. */
4988 rm -f conftest.$ac_objext
4989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4990 (eval $ac_compile) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } &&
4997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); }; } &&
5003 { ac_try='test -s conftest.$ac_objext'
5004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5008 (exit $ac_status); }; }; then
5011 echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5017 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5020 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5021 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5022 GXX=`test $ac_compiler_gnu = yes && echo yes`
5023 ac_test_CXXFLAGS=${CXXFLAGS+set}
5024 ac_save_CXXFLAGS=$CXXFLAGS
5026 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5027 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5028 if test "${ac_cv_prog_cxx_g+set}" = set; then
5029 echo $ECHO_N "(cached) $ECHO_C" >&6
5031 cat >conftest.$ac_ext <<_ACEOF
5034 cat confdefs.h >>conftest.$ac_ext
5035 cat >>conftest.$ac_ext <<_ACEOF
5036 /* end confdefs.h. */
5046 rm -f conftest.$ac_objext
5047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5048 (eval $ac_compile) 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } &&
5055 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); }; } &&
5061 { ac_try='test -s conftest.$ac_objext'
5062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5066 (exit $ac_status); }; }; then
5067 ac_cv_prog_cxx_g=yes
5069 echo "$as_me: failed program was:" >&5
5070 sed 's/^/| /' conftest.$ac_ext >&5
5074 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5076 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5077 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5078 if test "$ac_test_CXXFLAGS" = set; then
5079 CXXFLAGS=$ac_save_CXXFLAGS
5080 elif test $ac_cv_prog_cxx_g = yes; then
5081 if test "$GXX" = yes; then
5087 if test "$GXX" = yes; then
5093 for ac_declaration in \
5095 'extern "C" void std::exit (int) throw (); using std::exit;' \
5096 'extern "C" void std::exit (int); using std::exit;' \
5097 'extern "C" void exit (int) throw ();' \
5098 'extern "C" void exit (int);' \
5101 cat >conftest.$ac_ext <<_ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h. */
5117 rm -f conftest.$ac_objext
5118 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5119 (eval $ac_compile) 2>conftest.er1
5121 grep -v '^ *+' conftest.er1 >conftest.err
5123 cat conftest.err >&5
5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5125 (exit $ac_status); } &&
5126 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5131 (exit $ac_status); }; } &&
5132 { ac_try='test -s conftest.$ac_objext'
5133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5137 (exit $ac_status); }; }; then
5140 echo "$as_me: failed program was:" >&5
5141 sed 's/^/| /' conftest.$ac_ext >&5
5145 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5146 cat >conftest.$ac_ext <<_ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h. */
5161 rm -f conftest.$ac_objext
5162 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5163 (eval $ac_compile) 2>conftest.er1
5165 grep -v '^ *+' conftest.er1 >conftest.err
5167 cat conftest.err >&5
5168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5169 (exit $ac_status); } &&
5170 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5175 (exit $ac_status); }; } &&
5176 { ac_try='test -s conftest.$ac_objext'
5177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181 (exit $ac_status); }; }; then
5184 echo "$as_me: failed program was:" >&5
5185 sed 's/^/| /' conftest.$ac_ext >&5
5188 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5191 if test -n "$ac_declaration"; then
5192 echo '#ifdef __cplusplus' >>confdefs.h
5193 echo $ac_declaration >>confdefs.h
5194 echo '#endif' >>confdefs.h
5198 ac_cpp='$CXXCPP $CPPFLAGS'
5199 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5200 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5201 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5204 ac_cpp='$CXXCPP $CPPFLAGS'
5205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5208 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5209 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5210 if test -z "$CXXCPP"; then
5211 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5212 echo $ECHO_N "(cached) $ECHO_C" >&6
5214 # Double quotes because CXXCPP needs to be expanded
5215 for CXXCPP in "$CXX -E" "/lib/cpp"
5218 for ac_cxx_preproc_warn_flag in '' yes
5220 # Use a header file that comes with gcc, so configuring glibc
5221 # with a fresh cross-compiler works.
5222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5223 # <limits.h> exists even on freestanding compilers.
5224 # On the NeXT, cc -E runs the code through the compiler's parser,
5225 # not just through cpp. "Syntax error" is here to catch this case.
5226 cat >conftest.$ac_ext <<_ACEOF
5229 cat confdefs.h >>conftest.$ac_ext
5230 cat >>conftest.$ac_ext <<_ACEOF
5231 /* end confdefs.h. */
5233 # include <limits.h>
5235 # include <assert.h>
5239 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5240 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5242 grep -v '^ *+' conftest.er1 >conftest.err
5244 cat conftest.err >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); } >/dev/null; then
5247 if test -s conftest.err; then
5248 ac_cpp_err=$ac_cxx_preproc_warn_flag
5249 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5256 if test -z "$ac_cpp_err"; then
5259 echo "$as_me: failed program was:" >&5
5260 sed 's/^/| /' conftest.$ac_ext >&5
5262 # Broken: fails on valid input.
5265 rm -f conftest.err conftest.$ac_ext
5267 # OK, works on sane cases. Now check whether non-existent headers
5268 # can be detected and how.
5269 cat >conftest.$ac_ext <<_ACEOF
5272 cat confdefs.h >>conftest.$ac_ext
5273 cat >>conftest.$ac_ext <<_ACEOF
5274 /* end confdefs.h. */
5275 #include <ac_nonexistent.h>
5277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5280 grep -v '^ *+' conftest.er1 >conftest.err
5282 cat conftest.err >&5
5283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5284 (exit $ac_status); } >/dev/null; then
5285 if test -s conftest.err; then
5286 ac_cpp_err=$ac_cxx_preproc_warn_flag
5287 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5294 if test -z "$ac_cpp_err"; then
5295 # Broken: success on invalid input.
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5301 # Passes both tests.
5305 rm -f conftest.err conftest.$ac_ext
5308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5309 rm -f conftest.err conftest.$ac_ext
5310 if $ac_preproc_ok; then
5315 ac_cv_prog_CXXCPP=$CXXCPP
5318 CXXCPP=$ac_cv_prog_CXXCPP
5320 ac_cv_prog_CXXCPP=$CXXCPP
5322 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5323 echo "${ECHO_T}$CXXCPP" >&6
5325 for ac_cxx_preproc_warn_flag in '' yes
5327 # Use a header file that comes with gcc, so configuring glibc
5328 # with a fresh cross-compiler works.
5329 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5330 # <limits.h> exists even on freestanding compilers.
5331 # On the NeXT, cc -E runs the code through the compiler's parser,
5332 # not just through cpp. "Syntax error" is here to catch this case.
5333 cat >conftest.$ac_ext <<_ACEOF
5336 cat confdefs.h >>conftest.$ac_ext
5337 cat >>conftest.$ac_ext <<_ACEOF
5338 /* end confdefs.h. */
5340 # include <limits.h>
5342 # include <assert.h>
5346 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5347 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5349 grep -v '^ *+' conftest.er1 >conftest.err
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } >/dev/null; then
5354 if test -s conftest.err; then
5355 ac_cpp_err=$ac_cxx_preproc_warn_flag
5356 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5363 if test -z "$ac_cpp_err"; then
5366 echo "$as_me: failed program was:" >&5
5367 sed 's/^/| /' conftest.$ac_ext >&5
5369 # Broken: fails on valid input.
5372 rm -f conftest.err conftest.$ac_ext
5374 # OK, works on sane cases. Now check whether non-existent headers
5375 # can be detected and how.
5376 cat >conftest.$ac_ext <<_ACEOF
5379 cat confdefs.h >>conftest.$ac_ext
5380 cat >>conftest.$ac_ext <<_ACEOF
5381 /* end confdefs.h. */
5382 #include <ac_nonexistent.h>
5384 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5385 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5387 grep -v '^ *+' conftest.er1 >conftest.err
5389 cat conftest.err >&5
5390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391 (exit $ac_status); } >/dev/null; then
5392 if test -s conftest.err; then
5393 ac_cpp_err=$ac_cxx_preproc_warn_flag
5394 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5401 if test -z "$ac_cpp_err"; then
5402 # Broken: success on invalid input.
5405 echo "$as_me: failed program was:" >&5
5406 sed 's/^/| /' conftest.$ac_ext >&5
5408 # Passes both tests.
5412 rm -f conftest.err conftest.$ac_ext
5415 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5416 rm -f conftest.err conftest.$ac_ext
5417 if $ac_preproc_ok; then
5420 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5421 See \`config.log' for more details." >&5
5422 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5423 See \`config.log' for more details." >&2;}
5424 { (exit 1); exit 1; }; }
5428 ac_cpp='$CXXCPP $CPPFLAGS'
5429 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5430 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5431 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5435 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5436 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5438 if test -n "$ac_tool_prefix"; then
5439 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5441 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5442 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5443 echo "$as_me:$LINENO: checking for $ac_word" >&5
5444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5445 if test "${ac_cv_prog_F77+set}" = set; then
5446 echo $ECHO_N "(cached) $ECHO_C" >&6
5448 if test -n "$F77"; then
5449 ac_cv_prog_F77="$F77" # Let the user override the test.
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5455 test -z "$as_dir" && as_dir=.
5456 for ac_exec_ext in '' $ac_executable_extensions; do
5457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5458 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5468 if test -n "$F77"; then
5469 echo "$as_me:$LINENO: result: $F77" >&5
5470 echo "${ECHO_T}$F77" >&6
5472 echo "$as_me:$LINENO: result: no" >&5
5473 echo "${ECHO_T}no" >&6
5476 test -n "$F77" && break
5479 if test -z "$F77"; then
5481 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5483 # Extract the first word of "$ac_prog", so it can be a program name with args.
5484 set dummy $ac_prog; ac_word=$2
5485 echo "$as_me:$LINENO: checking for $ac_word" >&5
5486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5487 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 if test -n "$ac_ct_F77"; then
5491 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497 test -z "$as_dir" && as_dir=.
5498 for ac_exec_ext in '' $ac_executable_extensions; do
5499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5500 ac_cv_prog_ac_ct_F77="$ac_prog"
5501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5509 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5510 if test -n "$ac_ct_F77"; then
5511 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5512 echo "${ECHO_T}$ac_ct_F77" >&6
5514 echo "$as_me:$LINENO: result: no" >&5
5515 echo "${ECHO_T}no" >&6
5518 test -n "$ac_ct_F77" && break
5525 # Provide some information about the compiler.
5526 echo "$as_me:5526:" \
5527 "checking for Fortran 77 compiler version" >&5
5528 ac_compiler=`set X $ac_compile; echo $2`
5529 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5530 (eval $ac_compiler --version </dev/null >&5) 2>&5
5532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5533 (exit $ac_status); }
5534 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5535 (eval $ac_compiler -v </dev/null >&5) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }
5539 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5540 (eval $ac_compiler -V </dev/null >&5) 2>&5
5542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5543 (exit $ac_status); }
5546 # If we don't use `.F' as extension, the preprocessor is not run on the
5547 # input file. (Note that this only needs to work for GNU compilers.)
5550 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5551 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5552 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5553 echo $ECHO_N "(cached) $ECHO_C" >&6
5555 cat >conftest.$ac_ext <<_ACEOF
5563 rm -f conftest.$ac_objext
5564 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5565 (eval $ac_compile) 2>conftest.er1
5567 grep -v '^ *+' conftest.er1 >conftest.err
5569 cat conftest.err >&5
5570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5571 (exit $ac_status); } &&
5572 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5577 (exit $ac_status); }; } &&
5578 { ac_try='test -s conftest.$ac_objext'
5579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5583 (exit $ac_status); }; }; then
5586 echo "$as_me: failed program was:" >&5
5587 sed 's/^/| /' conftest.$ac_ext >&5
5591 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5595 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5596 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5598 ac_test_FFLAGS=${FFLAGS+set}
5599 ac_save_FFLAGS=$FFLAGS
5601 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5602 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5603 if test "${ac_cv_prog_f77_g+set}" = set; then
5604 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 cat >conftest.$ac_ext <<_ACEOF
5612 rm -f conftest.$ac_objext
5613 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5614 (eval $ac_compile) 2>conftest.er1
5616 grep -v '^ *+' conftest.er1 >conftest.err
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } &&
5621 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); }; } &&
5627 { ac_try='test -s conftest.$ac_objext'
5628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); }; }; then
5633 ac_cv_prog_f77_g=yes
5635 echo "$as_me: failed program was:" >&5
5636 sed 's/^/| /' conftest.$ac_ext >&5
5640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5643 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5644 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5645 if test "$ac_test_FFLAGS" = set; then
5646 FFLAGS=$ac_save_FFLAGS
5647 elif test $ac_cv_prog_f77_g = yes; then
5648 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5654 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5661 G77=`test $ac_compiler_gnu = yes && echo yes`
5663 ac_cpp='$CPP $CPPFLAGS'
5664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5670 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5672 # find the maximum length of command line arguments
5673 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5674 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5675 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5676 echo $ECHO_N "(cached) $ECHO_C" >&6
5683 # On DJGPP, this test can blow up pretty badly due to problems in libc
5684 # (any single argument exceeding 2000 bytes causes a buffer overrun
5685 # during glob expansion). Even if it were fixed, the result of this
5686 # check would be larger than it should be.
5687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5691 # Under GNU Hurd, this test is not required because there is
5692 # no limit to the length of command line arguments.
5693 # Libtool will interpret -1 as no limit whatsoever
5694 lt_cv_sys_max_cmd_len=-1;
5698 # On Win9x/ME, this test blows up -- it succeeds, but takes
5699 # about 5 minutes as the teststring grows exponentially.
5700 # Worse, since 9x/ME are not pre-emptively multitasking,
5701 # you end up with a "frozen" computer, even though with patience
5702 # the test eventually succeeds (with a max line length of 256k).
5703 # Instead, let's just punt: use the minimum linelength reported by
5704 # all of the supported platforms: 8192 (on NT/2K/XP).
5705 lt_cv_sys_max_cmd_len=8192;
5709 # On AmigaOS with pdksh, this test takes hours, literally.
5710 # So we just punt and use a minimum line length of 8192.
5711 lt_cv_sys_max_cmd_len=8192;
5715 # If test is not a shell built-in, we'll probably end up computing a
5716 # maximum length that is only half of the actual maximum length, but
5718 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5719 = "XX$teststring") >/dev/null 2>&1 &&
5720 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5721 lt_cv_sys_max_cmd_len=$new_result &&
5722 test $i != 17 # 1/2 MB should be enough
5725 teststring=$teststring$teststring
5728 # Add a significant safety factor because C++ compilers can tack on massive
5729 # amounts of additional arguments before passing them to the linker.
5730 # It appears as though 1/2 is a usable value.
5731 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5737 if test -n $lt_cv_sys_max_cmd_len ; then
5738 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5739 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5741 echo "$as_me:$LINENO: result: none" >&5
5742 echo "${ECHO_T}none" >&6
5748 # Check for command to grab the raw symbol name followed by C symbol from nm.
5749 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5750 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5752 echo $ECHO_N "(cached) $ECHO_C" >&6
5755 # These are sane defaults that work on at least a few old systems.
5756 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5758 # Character class describing NM global symbol codes.
5759 symcode='[BCDEGRST]'
5761 # Regexp to match symbols that can be accessed directly from C.
5762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5764 # Transform the above into a raw symbol and a C symbol.
5765 symxfrm='\1 \2\3 \3'
5767 # Transform an extracted symbol line into a proper C declaration
5768 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5770 # Transform an extracted symbol line into symbol name and symbol address
5771 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'"
5773 # Define system-specific variables.
5778 cygwin* | mingw* | pw32*)
5779 symcode='[ABCDGISTW]'
5781 hpux*) # Its linker distinguishes data from code symbols
5782 if test "$host_cpu" = ia64; then
5783 symcode='[ABCDEGRST]'
5785 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5786 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'"
5789 symcode='[BCDEGRST]'
5792 symcode='[BCDEGQRST]'
5802 # Handle CRLF in mingw tool chain
5806 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5810 # If we're using GNU nm, then use its standard symbol codes.
5811 case `$NM -V 2>&1` in
5812 *GNU* | *'with BFD'*)
5813 symcode='[ABCDGIRSTW]' ;;
5816 # Try without a prefix undercore, then with it.
5817 for ac_symprfx in "" "_"; do
5819 # Write the raw and C identifiers.
5820 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5822 # Check to see that the pipe works correctly.
5826 cat > conftest.$ac_ext <<EOF
5831 void nm_test_func(){}
5835 int main(){nm_test_var='a';nm_test_func();return(0);}
5838 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5839 (eval $ac_compile) 2>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); }; then
5843 # Now try to grab the symbols.
5845 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5846 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); } && test -s "$nlist"; then
5850 # Try sorting and uniquifying the output.
5851 if sort "$nlist" | uniq > "$nlist"T; then
5852 mv -f "$nlist"T "$nlist"
5857 # Make sure that we snagged all the symbols we need.
5858 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5859 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5860 cat <<EOF > conftest.$ac_ext
5866 # Now generate the symbol file.
5867 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5869 cat <<EOF >> conftest.$ac_ext
5870 #if defined (__STDC__) && __STDC__
5871 # define lt_ptr_t void *
5873 # define lt_ptr_t char *
5877 /* The mapping between symbol names and symbols. */
5882 lt_preloaded_symbols[] =
5885 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5886 cat <<\EOF >> conftest.$ac_ext
5894 # Now try linking the two files.
5895 mv conftest.$ac_objext conftstm.$ac_objext
5896 lt_save_LIBS="$LIBS"
5897 lt_save_CFLAGS="$CFLAGS"
5898 LIBS="conftstm.$ac_objext"
5899 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5900 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5901 (eval $ac_link) 2>&5
5903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5904 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5907 LIBS="$lt_save_LIBS"
5908 CFLAGS="$lt_save_CFLAGS"
5910 echo "cannot find nm_test_func in $nlist" >&5
5913 echo "cannot find nm_test_var in $nlist" >&5
5916 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5919 echo "$progname: failed program was:" >&5
5920 cat conftest.$ac_ext >&5
5922 rm -f conftest* conftst*
5924 # Do not use the global_symbol_pipe unless it works.
5925 if test "$pipe_works" = yes; then
5928 lt_cv_sys_global_symbol_pipe=
5934 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5935 lt_cv_sys_global_symbol_to_cdecl=
5937 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5938 echo "$as_me:$LINENO: result: failed" >&5
5939 echo "${ECHO_T}failed" >&6
5941 echo "$as_me:$LINENO: result: ok" >&5
5942 echo "${ECHO_T}ok" >&6
5945 echo "$as_me:$LINENO: checking for objdir" >&5
5946 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5947 if test "${lt_cv_objdir+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5950 rm -f .libs 2>/dev/null
5951 mkdir .libs 2>/dev/null
5952 if test -d .libs; then
5955 # MS-DOS does not allow filenames that begin with a dot.
5958 rmdir .libs 2>/dev/null
5960 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5961 echo "${ECHO_T}$lt_cv_objdir" >&6
5962 objdir=$lt_cv_objdir
5970 # AIX sometimes has problems with the GCC collect2 program. For some
5971 # reason, if we set the COLLECT_NAMES environment variable, the problems
5972 # vanish in a puff of smoke.
5973 if test "X${COLLECT_NAMES+set}" != Xset; then
5975 export COLLECT_NAMES
5980 # Sed substitution that helps us do robust quoting. It backslashifies
5981 # metacharacters that are still active within double-quoted strings.
5982 Xsed='sed -e s/^X//'
5983 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5985 # Same as above, but do not quote variable references.
5986 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5988 # Sed substitution to delay expansion of an escaped shell variable in a
5989 # double_quote_subst'ed string.
5990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5992 # Sed substitution to avoid accidental globbing in evaled expressions
5993 no_glob_subst='s/\*/\\\*/g'
5999 default_ofile=libtool
6000 can_build_shared=yes
6002 # All known linkers require a `.a' archive for static linking (except M$VC,
6003 # which needs '.lib').
6005 ltmain="$ac_aux_dir/ltmain.sh"
6006 ofile="$default_ofile"
6007 with_gnu_ld="$lt_cv_prog_gnu_ld"
6009 if test -n "$ac_tool_prefix"; then
6010 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6011 set dummy ${ac_tool_prefix}ar; ac_word=$2
6012 echo "$as_me:$LINENO: checking for $ac_word" >&5
6013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6014 if test "${ac_cv_prog_AR+set}" = set; then
6015 echo $ECHO_N "(cached) $ECHO_C" >&6
6017 if test -n "$AR"; then
6018 ac_cv_prog_AR="$AR" # Let the user override the test.
6020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 test -z "$as_dir" && as_dir=.
6025 for ac_exec_ext in '' $ac_executable_extensions; do
6026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6027 ac_cv_prog_AR="${ac_tool_prefix}ar"
6028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6037 if test -n "$AR"; then
6038 echo "$as_me:$LINENO: result: $AR" >&5
6039 echo "${ECHO_T}$AR" >&6
6041 echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6
6046 if test -z "$ac_cv_prog_AR"; then
6048 # Extract the first word of "ar", so it can be a program name with args.
6049 set dummy ar; ac_word=$2
6050 echo "$as_me:$LINENO: checking for $ac_word" >&5
6051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6052 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6055 if test -n "$ac_ct_AR"; then
6056 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_AR="ar"
6066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6075 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6076 if test -n "$ac_ct_AR"; then
6077 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6078 echo "${ECHO_T}$ac_ct_AR" >&6
6080 echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6089 if test -n "$ac_tool_prefix"; then
6090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6091 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6092 echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6094 if test "${ac_cv_prog_RANLIB+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6097 if test -n "$RANLIB"; then
6098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6104 test -z "$as_dir" && as_dir=.
6105 for ac_exec_ext in '' $ac_executable_extensions; do
6106 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6108 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6
6121 echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6
6126 if test -z "$ac_cv_prog_RANLIB"; then
6127 ac_ct_RANLIB=$RANLIB
6128 # Extract the first word of "ranlib", so it can be a program name with args.
6129 set dummy ranlib; ac_word=$2
6130 echo "$as_me:$LINENO: checking for $ac_word" >&5
6131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6132 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6133 echo $ECHO_N "(cached) $ECHO_C" >&6
6135 if test -n "$ac_ct_RANLIB"; then
6136 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 test -z "$as_dir" && as_dir=.
6143 for ac_exec_ext in '' $ac_executable_extensions; do
6144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6145 ac_cv_prog_ac_ct_RANLIB="ranlib"
6146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6152 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6155 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6156 if test -n "$ac_ct_RANLIB"; then
6157 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6158 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6160 echo "$as_me:$LINENO: result: no" >&5
6161 echo "${ECHO_T}no" >&6
6164 RANLIB=$ac_ct_RANLIB
6166 RANLIB="$ac_cv_prog_RANLIB"
6169 if test -n "$ac_tool_prefix"; then
6170 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6171 set dummy ${ac_tool_prefix}strip; ac_word=$2
6172 echo "$as_me:$LINENO: checking for $ac_word" >&5
6173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6174 if test "${ac_cv_prog_STRIP+set}" = set; then
6175 echo $ECHO_N "(cached) $ECHO_C" >&6
6177 if test -n "$STRIP"; then
6178 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 test -z "$as_dir" && as_dir=.
6185 for ac_exec_ext in '' $ac_executable_extensions; do
6186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6187 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6196 STRIP=$ac_cv_prog_STRIP
6197 if test -n "$STRIP"; then
6198 echo "$as_me:$LINENO: result: $STRIP" >&5
6199 echo "${ECHO_T}$STRIP" >&6
6201 echo "$as_me:$LINENO: result: no" >&5
6202 echo "${ECHO_T}no" >&6
6206 if test -z "$ac_cv_prog_STRIP"; then
6208 # Extract the first word of "strip", so it can be a program name with args.
6209 set dummy strip; ac_word=$2
6210 echo "$as_me:$LINENO: checking for $ac_word" >&5
6211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6212 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6213 echo $ECHO_N "(cached) $ECHO_C" >&6
6215 if test -n "$ac_ct_STRIP"; then
6216 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222 test -z "$as_dir" && as_dir=.
6223 for ac_exec_ext in '' $ac_executable_extensions; do
6224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6225 ac_cv_prog_ac_ct_STRIP="strip"
6226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6235 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6236 if test -n "$ac_ct_STRIP"; then
6237 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6238 echo "${ECHO_T}$ac_ct_STRIP" >&6
6240 echo "$as_me:$LINENO: result: no" >&5
6241 echo "${ECHO_T}no" >&6
6246 STRIP="$ac_cv_prog_STRIP"
6251 old_CFLAGS="$CFLAGS"
6253 # Set sane defaults for various variables
6254 test -z "$AR" && AR=ar
6255 test -z "$AR_FLAGS" && AR_FLAGS=cru
6256 test -z "$AS" && AS=as
6257 test -z "$CC" && CC=cc
6258 test -z "$LTCC" && LTCC=$CC
6259 test -z "$DLLTOOL" && DLLTOOL=dlltool
6260 test -z "$LD" && LD=ld
6261 test -z "$LN_S" && LN_S="ln -s"
6262 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6263 test -z "$NM" && NM=nm
6264 test -z "$SED" && SED=sed
6265 test -z "$OBJDUMP" && OBJDUMP=objdump
6266 test -z "$RANLIB" && RANLIB=:
6267 test -z "$STRIP" && STRIP=:
6268 test -z "$ac_objext" && ac_objext=o
6270 # Determine commands to create old-style static archives.
6271 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6272 old_postinstall_cmds='chmod 644 $oldlib'
6273 old_postuninstall_cmds=
6275 if test -n "$RANLIB"; then
6278 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6281 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6284 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6287 # Only perform the check for file, if the check method requires it
6288 case $deplibs_check_method in
6290 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6291 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6292 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6293 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6294 echo $ECHO_N "(cached) $ECHO_C" >&6
6298 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6301 lt_save_MAGIC_CMD="$MAGIC_CMD"
6302 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6303 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6304 for ac_dir in $ac_dummy; do
6306 test -z "$ac_dir" && ac_dir=.
6307 if test -f $ac_dir/${ac_tool_prefix}file; then
6308 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6309 if test -n "$file_magic_test_file"; then
6310 case $deplibs_check_method in
6312 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6313 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6314 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6315 $EGREP "$file_magic_regex" > /dev/null; then
6320 *** Warning: the command libtool uses to detect shared libraries,
6321 *** $file_magic_cmd, produces output that libtool cannot recognize.
6322 *** The result is that libtool may fail to recognize shared libraries
6323 *** as such. This will affect the creation of libtool libraries that
6324 *** depend on shared libraries, but programs linked with such libtool
6325 *** libraries will work regardless of this problem. Nevertheless, you
6326 *** may want to report the problem to your system manager and/or to
6327 *** bug-libtool@gnu.org
6337 MAGIC_CMD="$lt_save_MAGIC_CMD"
6342 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6343 if test -n "$MAGIC_CMD"; then
6344 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6345 echo "${ECHO_T}$MAGIC_CMD" >&6
6347 echo "$as_me:$LINENO: result: no" >&5
6348 echo "${ECHO_T}no" >&6
6351 if test -z "$lt_cv_path_MAGIC_CMD"; then
6352 if test -n "$ac_tool_prefix"; then
6353 echo "$as_me:$LINENO: checking for file" >&5
6354 echo $ECHO_N "checking for file... $ECHO_C" >&6
6355 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6356 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6363 lt_save_MAGIC_CMD="$MAGIC_CMD"
6364 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6365 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6366 for ac_dir in $ac_dummy; do
6368 test -z "$ac_dir" && ac_dir=.
6369 if test -f $ac_dir/file; then
6370 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6371 if test -n "$file_magic_test_file"; then
6372 case $deplibs_check_method in
6374 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6375 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6376 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6377 $EGREP "$file_magic_regex" > /dev/null; then
6382 *** Warning: the command libtool uses to detect shared libraries,
6383 *** $file_magic_cmd, produces output that libtool cannot recognize.
6384 *** The result is that libtool may fail to recognize shared libraries
6385 *** as such. This will affect the creation of libtool libraries that
6386 *** depend on shared libraries, but programs linked with such libtool
6387 *** libraries will work regardless of this problem. Nevertheless, you
6388 *** may want to report the problem to your system manager and/or to
6389 *** bug-libtool@gnu.org
6399 MAGIC_CMD="$lt_save_MAGIC_CMD"
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if test -n "$MAGIC_CMD"; then
6406 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6407 echo "${ECHO_T}$MAGIC_CMD" >&6
6409 echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6
6425 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6426 if test "${enable_libtool_lock+set}" = set; then
6427 enableval="$enable_libtool_lock"
6430 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6433 # Check whether --with-pic or --without-pic was given.
6434 if test "${with_pic+set}" = set; then
6440 test -z "$pic_mode" && pic_mode=default
6442 # Use C for the default configuration in the libtool script
6446 ac_cpp='$CPP $CPPFLAGS'
6447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6452 # Source file extension for C test sources.
6455 # Object file extension for compiled C test sources.
6459 # Code to be used in simple compile tests
6460 lt_simple_compile_test_code="int some_variable = 0;\n"
6462 # Code to be used in simple link tests
6463 lt_simple_link_test_code='int main(){return(0);}\n'
6466 # If no C compiler was specified, use CC.
6469 # Allow CC to be a program name with arguments.
6474 # Check for any special shared library compilation flags.
6477 if test "$GCC" = no; then
6480 lt_prog_cc_shlib='-belf'
6484 if test -n "$lt_prog_cc_shlib"; then
6485 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6486 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6487 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6489 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6490 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6491 lt_cv_prog_cc_can_build_shared=no
6497 # Check to make sure the static flag actually works.
6499 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6500 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6501 if test "${lt_prog_compiler_static_works+set}" = set; then
6502 echo $ECHO_N "(cached) $ECHO_C" >&6
6504 lt_prog_compiler_static_works=no
6505 save_LDFLAGS="$LDFLAGS"
6506 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6507 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6509 # The compiler can only warn and ignore the option if not recognized
6510 # So say no if there are warnings
6511 if test -s conftest.err; then
6512 # Append any errors to the config.log.
6513 cat conftest.err 1>&5
6515 lt_prog_compiler_static_works=yes
6519 LDFLAGS="$save_LDFLAGS"
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6525 if test x"$lt_prog_compiler_static_works" = xyes; then
6528 lt_prog_compiler_static=
6534 lt_prog_compiler_no_builtin_flag=
6536 if test "$GCC" = yes; then
6537 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6540 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6541 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6542 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6545 lt_cv_prog_compiler_rtti_exceptions=no
6546 ac_outfile=conftest.$ac_objext
6547 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6548 lt_compiler_flag="-fno-rtti -fno-exceptions"
6549 # Insert the option either (1) after the last *FLAGS variable, or
6550 # (2) before a word containing "conftest.", or (3) at the end.
6551 # Note that $ac_compile itself does not contain backslashes and begins
6552 # with a dollar sign (not a hyphen), so the echo should work correctly.
6553 # The option is referenced via a variable to avoid confusing sed.
6554 lt_compile=`echo "$ac_compile" | $SED \
6555 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6557 -e 's:$: $lt_compiler_flag:'`
6558 (eval echo "\"\$as_me:6558: $lt_compile\"" >&5)
6559 (eval "$lt_compile" 2>conftest.err)
6561 cat conftest.err >&5
6562 echo "$as_me:6562: \$? = $ac_status" >&5
6563 if (exit $ac_status) && test -s "$ac_outfile"; then
6564 # The compiler can only warn and ignore the option if not recognized
6565 # So say no if there are warnings
6566 if test ! -s conftest.err; then
6567 lt_cv_prog_compiler_rtti_exceptions=yes
6573 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6574 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6576 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6577 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6584 lt_prog_compiler_wl=
6585 lt_prog_compiler_pic=
6586 lt_prog_compiler_static=
6588 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6589 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6591 if test "$GCC" = yes; then
6592 lt_prog_compiler_wl='-Wl,'
6593 lt_prog_compiler_static='-static'
6597 # All AIX code is PIC.
6598 if test "$host_cpu" = ia64; then
6599 # AIX 5 now supports IA64 processor
6600 lt_prog_compiler_static='-Bstatic'
6605 # FIXME: we need at least 68020 code to build shared libraries, but
6606 # adding the `-m68020' flag to GCC prevents building anything better,
6608 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6611 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6612 # PIC is the default for these OSes.
6615 mingw* | pw32* | os2*)
6616 # This hack is so that the source file can tell whether it is being
6617 # built for inclusion in a dll (and should export symbols for example).
6618 lt_prog_compiler_pic='-DDLL_EXPORT'
6621 darwin* | rhapsody*)
6622 # PIC is the default on this platform
6623 # Common symbols not allowed in MH_DYLIB files
6624 lt_prog_compiler_pic='-fno-common'
6628 # Just because we use GCC doesn't mean we suddenly get shared libraries
6629 # on systems that don't support them.
6630 lt_prog_compiler_can_build_shared=no
6635 if test -d /usr/nec; then
6636 lt_prog_compiler_pic=-Kconform_pic
6641 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6648 lt_prog_compiler_pic='-fPIC'
6654 lt_prog_compiler_pic='-fPIC'
6658 # PORTME Check for flag to pass linker flags through the system compiler.
6661 lt_prog_compiler_wl='-Wl,'
6662 if test "$host_cpu" = ia64; then
6663 # AIX 5 now supports IA64 processor
6664 lt_prog_compiler_static='-Bstatic'
6666 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6670 mingw* | pw32* | os2*)
6671 # This hack is so that the source file can tell whether it is being
6672 # built for inclusion in a dll (and should export symbols for example).
6673 lt_prog_compiler_pic='-DDLL_EXPORT'
6676 hpux9* | hpux10* | hpux11*)
6677 lt_prog_compiler_wl='-Wl,'
6678 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6685 lt_prog_compiler_pic='+Z'
6688 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6689 lt_prog_compiler_static='${wl}-a ${wl}archive'
6692 irix5* | irix6* | nonstopux*)
6693 lt_prog_compiler_wl='-Wl,'
6694 # PIC (with -KPIC) is the default.
6695 lt_prog_compiler_static='-non_shared'
6699 lt_prog_compiler_pic='-KPIC'
6700 lt_prog_compiler_static='-Bstatic'
6706 lt_prog_compiler_wl='-Wl,'
6707 lt_prog_compiler_pic='-KPIC'
6708 lt_prog_compiler_static='-static'
6711 lt_prog_compiler_wl='-Wl,'
6712 # All Alpha code is PIC.
6713 lt_prog_compiler_static='-non_shared'
6718 osf3* | osf4* | osf5*)
6719 lt_prog_compiler_wl='-Wl,'
6720 # All OSF/1 code is PIC.
6721 lt_prog_compiler_static='-non_shared'
6725 lt_prog_compiler_pic='-Kpic'
6726 lt_prog_compiler_static='-dn'
6730 lt_prog_compiler_wl='-Wl,'
6731 lt_prog_compiler_pic='-KPIC'
6732 lt_prog_compiler_static='-Bstatic'
6736 lt_prog_compiler_wl='-Qoption ld '
6737 lt_prog_compiler_pic='-PIC'
6738 lt_prog_compiler_static='-Bstatic'
6741 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6742 lt_prog_compiler_wl='-Wl,'
6743 lt_prog_compiler_pic='-KPIC'
6744 lt_prog_compiler_static='-Bstatic'
6748 if test -d /usr/nec ;then
6749 lt_prog_compiler_pic='-Kconform_pic'
6750 lt_prog_compiler_static='-Bstatic'
6755 lt_prog_compiler_pic='-pic'
6756 lt_prog_compiler_static='-Bstatic'
6760 lt_prog_compiler_can_build_shared=no
6765 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6766 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6769 # Check to make sure the PIC flag actually works.
6771 if test -n "$lt_prog_compiler_pic"; then
6773 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6774 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6775 if test "${lt_prog_compiler_pic_works+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 lt_prog_compiler_pic_works=no
6779 ac_outfile=conftest.$ac_objext
6780 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6781 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6782 # Insert the option either (1) after the last *FLAGS variable, or
6783 # (2) before a word containing "conftest.", or (3) at the end.
6784 # Note that $ac_compile itself does not contain backslashes and begins
6785 # with a dollar sign (not a hyphen), so the echo should work correctly.
6786 # The option is referenced via a variable to avoid confusing sed.
6787 lt_compile=`echo "$ac_compile" | $SED \
6788 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6790 -e 's:$: $lt_compiler_flag:'`
6791 (eval echo "\"\$as_me:6791: $lt_compile\"" >&5)
6792 (eval "$lt_compile" 2>conftest.err)
6794 cat conftest.err >&5
6795 echo "$as_me:6795: \$? = $ac_status" >&5
6796 if (exit $ac_status) && test -s "$ac_outfile"; then
6797 # The compiler can only warn and ignore the option if not recognized
6798 # So say no if there are warnings
6799 if test ! -s conftest.err; then
6800 lt_prog_compiler_pic_works=yes
6806 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6807 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6809 if test x"$lt_prog_compiler_pic_works" = xyes; then
6810 case $lt_prog_compiler_pic in
6812 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6815 lt_prog_compiler_pic=
6816 lt_prog_compiler_can_build_shared=no
6821 # For platforms which do not support PIC, -DPIC is meaningless:
6823 lt_prog_compiler_pic=
6826 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6830 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6831 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6832 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6835 lt_cv_prog_compiler_c_o=no
6836 $rm -r conftest 2>/dev/null
6840 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6842 lt_compiler_flag="-o out/conftest2.$ac_objext"
6843 # Insert the option either (1) after the last *FLAGS variable, or
6844 # (2) before a word containing "conftest.", or (3) at the end.
6845 # Note that $ac_compile itself does not contain backslashes and begins
6846 # with a dollar sign (not a hyphen), so the echo should work correctly.
6847 lt_compile=`echo "$ac_compile" | $SED \
6848 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6849 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6850 -e 's:$: $lt_compiler_flag:'`
6851 (eval echo "\"\$as_me:6851: $lt_compile\"" >&5)
6852 (eval "$lt_compile" 2>out/conftest.err)
6854 cat out/conftest.err >&5
6855 echo "$as_me:6855: \$? = $ac_status" >&5
6856 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6858 # The compiler can only warn and ignore the option if not recognized
6859 # So say no if there are warnings
6860 if test ! -s out/conftest.err; then
6861 lt_cv_prog_compiler_c_o=yes
6866 # SGI C++ compiler will create directory out/ii_files/ for
6867 # template instantiation
6868 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6869 $rm out/* && rmdir out
6875 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6876 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6879 hard_links="nottested"
6880 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6881 # do not overwrite the value of need_locks provided by the user
6882 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6883 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6886 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6888 ln conftest.a conftest.b 2>&5 || hard_links=no
6889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6890 echo "$as_me:$LINENO: result: $hard_links" >&5
6891 echo "${ECHO_T}$hard_links" >&6
6892 if test "$hard_links" = no; then
6893 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6894 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6901 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6902 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6905 allow_undefined_flag=
6906 enable_shared_with_static_runtimes=no
6908 archive_expsym_cmds=
6909 old_archive_From_new_cmds=
6910 old_archive_from_expsyms_cmds=
6911 export_dynamic_flag_spec=
6912 whole_archive_flag_spec=
6913 thread_safe_flag_spec=
6914 hardcode_libdir_flag_spec=
6915 hardcode_libdir_flag_spec_ld=
6916 hardcode_libdir_separator=
6919 hardcode_shlibpath_var=unsupported
6920 link_all_deplibs=unknown
6921 hardcode_automatic=no
6924 always_export_symbols=no
6925 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6926 # include_expsyms should be a list of space-separated symbols to be *always*
6927 # included in the symbol list
6929 # exclude_expsyms can be an extended regexp of symbols to exclude
6930 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6931 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6932 # as well as any symbol that contains `d'.
6933 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6934 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6935 # platforms (ab)use it in PIC code, but their linkers get confused if
6936 # the symbol is explicitly referenced. Since portable code cannot
6937 # rely on this symbol name, it's probably fine to never include it in
6938 # preloaded symbol tables.
6939 extract_expsyms_cmds=
6942 cygwin* | mingw* | pw32*)
6943 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6944 # When not using gcc, we currently assume that we are using
6945 # Microsoft Visual C++.
6946 if test "$GCC" != yes; then
6956 if test "$with_gnu_ld" = yes; then
6957 # If archive_cmds runs LD, not CC, wlarc should be empty
6960 # See if GNU ld supports shared libraries.
6962 aix3* | aix4* | aix5*)
6963 # On AIX/PPC, the GNU linker is very broken
6964 if test "$host_cpu" != ia64; then
6968 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6969 *** to be unable to reliably create shared libraries on AIX.
6970 *** Therefore, libtool is disabling shared libraries support. If you
6971 *** really care for shared libraries, you may want to modify your PATH
6972 *** so that a non-GNU linker is found, and then restart.
6979 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)'
6980 hardcode_libdir_flag_spec='-L$libdir'
6981 hardcode_minus_L=yes
6983 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6984 # that the semantics of dynamic libraries on AmigaOS, at least up
6985 # to version 4, is to share data among multiple programs linked
6986 # with the same dynamic library. Since this doesn't match the
6987 # behavior of shared libraries on other platforms, we can't use
6993 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6994 allow_undefined_flag=unsupported
6995 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6996 # support --undefined. This deserves some investigation. FIXME
6997 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7003 cygwin* | mingw* | pw32*)
7004 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7005 # as there is no search path for DLLs.
7006 hardcode_libdir_flag_spec='-L$libdir'
7007 allow_undefined_flag=unsupported
7008 always_export_symbols=no
7009 enable_shared_with_static_runtimes=yes
7010 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7012 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7013 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7014 # If the export-symbols file already is a .def file (1st line
7015 # is EXPORTS), use it as is; otherwise, prepend...
7016 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7017 cp $export_symbols $output_objdir/$soname.def;
7019 echo EXPORTS > $output_objdir/$soname.def;
7020 cat $export_symbols >> $output_objdir/$soname.def;
7022 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
7028 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7029 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7030 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7033 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7034 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7039 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7043 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7044 *** create shared libraries on Solaris systems. Therefore, libtool
7045 *** is disabling shared libraries support. We urge you to upgrade GNU
7046 *** binutils to release 2.9.1 or newer. Another option is to modify
7047 *** your PATH or compiler configuration so that the native linker is
7048 *** used, and then restart.
7051 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7053 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7063 hardcode_shlibpath_var=no
7067 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7068 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7069 archive_cmds="$tmp_archive_cmds"
7070 supports_anon_versioning=no
7071 case `$LD -v 2>/dev/null` in
7072 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7073 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7074 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7075 *\ 2.11.*) ;; # other 2.11 versions
7076 *) supports_anon_versioning=yes ;;
7078 if test $supports_anon_versioning = yes; then
7079 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7080 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7081 $echo "local: *; };" >> $output_objdir/$libname.ver~
7082 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7084 archive_expsym_cmds="$tmp_archive_cmds"
7093 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7102 if test "$ld_shlibs" = yes; then
7103 runpath_var=LD_RUN_PATH
7104 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7105 export_dynamic_flag_spec='${wl}--export-dynamic'
7106 # ancient GNU ld didn't support --whole-archive et. al.
7107 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7108 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7110 whole_archive_flag_spec=
7114 # PORTME fill in a description of your system's linker (not GNU ld)
7117 allow_undefined_flag=unsupported
7118 always_export_symbols=yes
7119 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'
7120 # Note: this linker hardcodes the directories in LIBPATH if there
7121 # are no directories specified by -L.
7122 hardcode_minus_L=yes
7123 if test "$GCC" = yes && test -z "$link_static_flag"; then
7124 # Neither direct hardcoding nor static linking is supported with a
7126 hardcode_direct=unsupported
7131 if test "$host_cpu" = ia64; then
7132 # On IA64, the linker does run time linking by default, so we don't
7133 # have to do anything special.
7134 aix_use_runtimelinking=no
7135 exp_sym_flag='-Bexport'
7138 # If we're using GNU nm, then we don't want the "-C" option.
7139 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7140 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7141 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'
7143 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'
7145 aix_use_runtimelinking=no
7147 # Test if we are trying to use run time linking or normal
7148 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7149 # need to do runtime linking.
7150 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7151 for ld_flag in $LDFLAGS; do
7152 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7153 aix_use_runtimelinking=yes
7159 exp_sym_flag='-bexport'
7160 no_entry_flag='-bnoentry'
7163 # When large executables or shared objects are built, AIX ld can
7164 # have problems creating the table of contents. If linking a library
7165 # or program results in "error TOC overflow" add -mminimal-toc to
7166 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7167 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7171 hardcode_libdir_separator=':'
7172 link_all_deplibs=yes
7174 if test "$GCC" = yes; then
7175 case $host_os in aix4.012|aix4.012.*)
7176 # We only want to do this on AIX 4.2 and lower, the check
7177 # below for broken collect2 doesn't work under 4.3+
7178 collect2name=`${CC} -print-prog-name=collect2`
7179 if test -f "$collect2name" && \
7180 strings "$collect2name" | grep resolve_lib_name >/dev/null
7182 # We have reworked collect2
7185 # We have old collect2
7186 hardcode_direct=unsupported
7187 # It fails to find uninstalled libraries when the uninstalled
7188 # path is not listed in the libpath. Setting hardcode_minus_L
7189 # to unsupported forces relinking
7190 hardcode_minus_L=yes
7191 hardcode_libdir_flag_spec='-L$libdir'
7192 hardcode_libdir_separator=
7195 shared_flag='-shared'
7198 if test "$host_cpu" = ia64; then
7199 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7200 # chokes on -Wl,-G. The following line is correct:
7203 if test "$aix_use_runtimelinking" = yes; then
7204 shared_flag='${wl}-G'
7206 shared_flag='${wl}-bM:SRE'
7211 # It seems that -bexpall does not export symbols beginning with
7212 # underscore (_), so it is better to generate a list of symbols to export.
7213 always_export_symbols=yes
7214 if test "$aix_use_runtimelinking" = yes; then
7215 # Warning - without using the other runtime loading flags (-brtl),
7216 # -berok will link without error, but may produce a broken library.
7217 allow_undefined_flag='-berok'
7218 # Determine the default libpath from the value encoded in an empty executable.
7219 cat >conftest.$ac_ext <<_ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h. */
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236 (eval $ac_link) 2>conftest.er1
7238 grep -v '^ *+' conftest.er1 >conftest.err
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); }; } &&
7249 { ac_try='test -s conftest$ac_exeext'
7250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7254 (exit $ac_status); }; }; then
7256 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7258 # Check for a 64-bit object if we didn't find anything.
7259 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; }
7262 echo "$as_me: failed program was:" >&5
7263 sed 's/^/| /' conftest.$ac_ext >&5
7266 rm -f conftest.err conftest.$ac_objext \
7267 conftest$ac_exeext conftest.$ac_ext
7268 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7270 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7271 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"
7273 if test "$host_cpu" = ia64; then
7274 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7275 allow_undefined_flag="-z nodefs"
7276 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"
7278 # Determine the default libpath from the value encoded in an empty executable.
7279 cat >conftest.$ac_ext <<_ACEOF
7282 cat confdefs.h >>conftest.$ac_ext
7283 cat >>conftest.$ac_ext <<_ACEOF
7284 /* end confdefs.h. */
7294 rm -f conftest.$ac_objext conftest$ac_exeext
7295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7296 (eval $ac_link) 2>conftest.er1
7298 grep -v '^ *+' conftest.er1 >conftest.err
7300 cat conftest.err >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); } &&
7303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; } &&
7309 { ac_try='test -s conftest$ac_exeext'
7310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314 (exit $ac_status); }; }; then
7316 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7318 # Check for a 64-bit object if we didn't find anything.
7319 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; }
7322 echo "$as_me: failed program was:" >&5
7323 sed 's/^/| /' conftest.$ac_ext >&5
7326 rm -f conftest.err conftest.$ac_objext \
7327 conftest$ac_exeext conftest.$ac_ext
7328 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7330 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7331 # Warning - without using the other run time loading flags,
7332 # -berok will link without error, but may produce a broken library.
7333 no_undefined_flag=' ${wl}-bernotok'
7334 allow_undefined_flag=' ${wl}-berok'
7335 # -bexpall does not export symbols beginning with underscore (_)
7336 always_export_symbols=yes
7337 # Exported symbols can be pulled into shared objects from archives
7338 whole_archive_flag_spec=' '
7339 archive_cmds_need_lc=yes
7340 # This is similar to how AIX traditionally builds it's shared libraries.
7341 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'
7347 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)'
7348 hardcode_libdir_flag_spec='-L$libdir'
7349 hardcode_minus_L=yes
7350 # see comment about different semantics on the GNU ld section
7355 export_dynamic_flag_spec=-rdynamic
7358 cygwin* | mingw* | pw32*)
7359 # When not using gcc, we currently assume that we are using
7360 # Microsoft Visual C++.
7361 # hardcode_libdir_flag_spec is actually meaningless, as there is
7362 # no search path for DLLs.
7363 hardcode_libdir_flag_spec=' '
7364 allow_undefined_flag=unsupported
7365 # Tell ltmain to make .lib files, not .a files.
7367 # Tell ltmain to make .dll files, not .so files.
7369 # FIXME: Setting linknames here is a bad hack.
7370 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7371 # The linker will automatically build a .lib file if we build a DLL.
7372 old_archive_From_new_cmds='true'
7373 # FIXME: Should let the user specify the lib program.
7374 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7375 fix_srcfile_path='`cygpath -w "$srcfile"`'
7376 enable_shared_with_static_runtimes=yes
7379 darwin* | rhapsody*)
7380 if test "$GXX" = yes ; then
7381 archive_cmds_need_lc=no
7383 rhapsody* | darwin1.[012])
7384 allow_undefined_flag='-undefined suppress'
7387 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7388 allow_undefined_flag='-flat_namespace -undefined suppress'
7390 case ${MACOSX_DEPLOYMENT_TARGET} in
7392 allow_undefined_flag='-flat_namespace -undefined suppress'
7395 allow_undefined_flag='-undefined dynamic_lookup'
7401 lt_int_apple_cc_single_mod=no
7402 output_verbose_link_cmd='echo'
7403 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7404 lt_int_apple_cc_single_mod=yes
7406 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7407 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7409 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'
7411 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7412 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7413 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7414 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}'
7416 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}'
7418 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}'
7420 hardcode_automatic=yes
7421 hardcode_shlibpath_var=unsupported
7422 whole_archive_flag_spec='-all_load $convenience'
7423 link_all_deplibs=yes
7430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431 hardcode_libdir_flag_spec='-L$libdir'
7432 hardcode_shlibpath_var=no
7439 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7440 # support. Future versions do this automatically, but an explicit c++rt0.o
7441 # does not break anything, and helps significantly (at the cost of a little
7444 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7445 hardcode_libdir_flag_spec='-R$libdir'
7447 hardcode_shlibpath_var=no
7450 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7452 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7454 hardcode_minus_L=yes
7455 hardcode_shlibpath_var=no
7458 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7459 freebsd* | kfreebsd*-gnu)
7460 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7461 hardcode_libdir_flag_spec='-R$libdir'
7463 hardcode_shlibpath_var=no
7467 if test "$GCC" = yes; then
7468 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'
7470 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'
7472 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7473 hardcode_libdir_separator=:
7476 # hardcode_minus_L: Not really in the search PATH,
7477 # but as the default location of the library.
7478 hardcode_minus_L=yes
7479 export_dynamic_flag_spec='${wl}-E'
7483 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7486 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7489 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7495 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7498 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7502 if test "$with_gnu_ld" = no; then
7505 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7506 hardcode_libdir_flag_spec_ld='+b $libdir'
7507 hardcode_libdir_separator=:
7509 hardcode_shlibpath_var=no
7512 hardcode_libdir_flag_spec='-L$libdir'
7514 hardcode_shlibpath_var=no
7516 # hardcode_minus_L: Not really in the search PATH,
7517 # but as the default location of the library.
7518 hardcode_minus_L=yes
7521 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7522 hardcode_libdir_separator=:
7524 export_dynamic_flag_spec='${wl}-E'
7526 # hardcode_minus_L: Not really in the search PATH,
7527 # but as the default location of the library.
7528 hardcode_minus_L=yes
7534 irix5* | irix6* | nonstopux*)
7535 if test "$GCC" = yes; then
7536 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'
7538 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'
7539 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7541 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7542 hardcode_libdir_separator=:
7543 link_all_deplibs=yes
7546 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7547 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7548 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7550 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7552 hardcode_libdir_flag_spec='-R$libdir'
7554 hardcode_shlibpath_var=no
7558 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7560 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7561 hardcode_libdir_separator=:
7562 hardcode_shlibpath_var=no
7567 hardcode_shlibpath_var=no
7568 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7571 export_dynamic_flag_spec='${wl}-E'
7574 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7575 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7576 hardcode_libdir_flag_spec='-R$libdir'
7579 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7580 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7587 hardcode_libdir_flag_spec='-L$libdir'
7588 hardcode_minus_L=yes
7589 allow_undefined_flag=unsupported
7590 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'
7591 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7595 if test "$GCC" = yes; then
7596 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7597 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'
7599 allow_undefined_flag=' -expect_unresolved \*'
7600 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'
7602 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7603 hardcode_libdir_separator=:
7606 osf4* | osf5*) # as osf3* with the addition of -msym flag
7607 if test "$GCC" = yes; then
7608 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7609 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'
7610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7612 allow_undefined_flag=' -expect_unresolved \*'
7613 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'
7614 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7615 $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'
7617 # Both c and cxx compiler support -rpath directly
7618 hardcode_libdir_flag_spec='-rpath $libdir'
7620 hardcode_libdir_separator=:
7624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7625 hardcode_shlibpath_var=no
7626 export_dynamic_flag_spec='${wl}-Bexport'
7627 runpath_var=LD_RUN_PATH
7628 hardcode_runpath_var=yes
7632 no_undefined_flag=' -z text'
7633 if test "$GCC" = yes; then
7634 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7635 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7636 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7638 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7639 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7642 hardcode_libdir_flag_spec='-R$libdir'
7643 hardcode_shlibpath_var=no
7645 solaris2.[0-5] | solaris2.[0-5].*) ;;
7646 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7647 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7649 link_all_deplibs=yes
7653 if test "x$host_vendor" = xsequent; then
7654 # Use $CC to link under sequent, because it throws in some extra .o
7655 # files that make .init and .fini sections work.
7656 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7658 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7660 hardcode_libdir_flag_spec='-L$libdir'
7662 hardcode_minus_L=yes
7663 hardcode_shlibpath_var=no
7667 case $host_vendor in
7669 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7670 hardcode_direct=yes # is this really true???
7673 ## LD is ld it makes a PLAMLIB
7674 ## CC just makes a GrossModule.
7675 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7676 reload_cmds='$CC -r -o $output$reload_objs'
7680 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7684 runpath_var='LD_RUN_PATH'
7685 hardcode_shlibpath_var=no
7689 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690 hardcode_shlibpath_var=no
7691 export_dynamic_flag_spec='-Bexport'
7695 if test -d /usr/nec; then
7696 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7697 hardcode_shlibpath_var=no
7698 runpath_var=LD_RUN_PATH
7699 hardcode_runpath_var=yes
7705 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7708 hardcode_shlibpath_var=no
7709 hardcode_runpath_var=yes
7710 runpath_var=LD_RUN_PATH
7713 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7714 no_undefined_flag='${wl}-z ${wl}text'
7715 if test "$GCC" = yes; then
7716 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7718 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7720 runpath_var='LD_RUN_PATH'
7721 hardcode_shlibpath_var=no
7725 no_undefined_flag=' -z text'
7726 # $CC -shared without GNU ld will not create a library from C++
7727 # object files and a static libstdc++, better avoid it by now
7728 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7729 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7730 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7731 hardcode_libdir_flag_spec=
7732 hardcode_shlibpath_var=no
7733 runpath_var='LD_RUN_PATH'
7737 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7738 hardcode_libdir_flag_spec='-L$libdir'
7739 hardcode_shlibpath_var=no
7748 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7749 echo "${ECHO_T}$ld_shlibs" >&6
7750 test "$ld_shlibs" = no && can_build_shared=no
7752 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7753 if test "$GCC" = yes; then
7754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7758 # Do we need to explicitly link libc?
7760 case "x$archive_cmds_need_lc" in
7762 # Assume -lc should be added
7763 archive_cmds_need_lc=yes
7765 if test "$enable_shared" = yes && test "$GCC" = yes; then
7766 case $archive_cmds in
7768 # FIXME: we may have to deal with multi-command sequences.
7771 # Test whether the compiler implicitly links with -lc since on some
7772 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7773 # to ld, don't add -lc before -lgcc.
7774 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7775 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7779 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7780 (eval $ac_compile) 2>&5
7782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7783 (exit $ac_status); } 2>conftest.err; then
7786 libobjs=conftest.$ac_objext
7788 wl=$lt_prog_compiler_wl
7794 lt_save_allow_undefined_flag=$allow_undefined_flag
7795 allow_undefined_flag=
7796 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7797 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }
7802 archive_cmds_need_lc=no
7804 archive_cmds_need_lc=yes
7806 allow_undefined_flag=$lt_save_allow_undefined_flag
7808 cat conftest.err 1>&5
7811 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7812 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7819 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7820 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7822 libname_spec='lib$name'
7830 shlibpath_overrides_runpath=unknown
7832 dynamic_linker="$host_os ld.so"
7833 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7834 if test "$GCC" = yes; then
7835 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7836 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7837 # if the path contains ";" then we assume it to be the separator
7838 # otherwise default to the standard path separator (i.e. ":") - it is
7839 # assumed that no part of a normal pathname contains ";" but that should
7840 # okay in the real world where ";" in dirpaths is itself problematic.
7841 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7843 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7846 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7848 need_lib_prefix=unknown
7849 hardcode_into_libs=no
7851 # when you set need_version to no, make sure it does not cause -set_version
7852 # flags to be left without arguments
7853 need_version=unknown
7858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7859 shlibpath_var=LIBPATH
7861 # AIX 3 has no versioning support, so we append a major version to the name.
7862 soname_spec='${libname}${release}${shared_ext}$major'
7869 hardcode_into_libs=yes
7870 if test "$host_cpu" = ia64; then
7871 # AIX 5 supports IA64
7872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7873 shlibpath_var=LD_LIBRARY_PATH
7875 # With GCC up to 2.95.x, collect2 would create an import file
7876 # for dependence libraries. The import file would start with
7877 # the line `#! .'. This would cause the generated library to
7878 # depend on `.', always an invalid library. This was fixed in
7879 # development snapshots of GCC prior to 3.0.
7881 aix4 | aix4.[01] | aix4.[01].*)
7882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7884 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7892 # soname into executable. Probably we can add versioning support to
7893 # collect2, so additional links can be useful in future.
7894 if test "$aix_use_runtimelinking" = yes; then
7895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7896 # instead of lib<name>.a to let people know that these are not
7897 # typical AIX shared libraries.
7898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7900 # We preserve .a as extension for shared libraries through AIX4.2
7901 # and later when we are not doing run time linking.
7902 library_names_spec='${libname}${release}.a $libname.a'
7903 soname_spec='${libname}${release}${shared_ext}$major'
7905 shlibpath_var=LIBPATH
7910 library_names_spec='$libname.ixlibrary $libname.a'
7911 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7912 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'
7916 library_names_spec='${libname}${shared_ext}'
7917 dynamic_linker="$host_os ld.so"
7918 shlibpath_var=LIBRARY_PATH
7924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7925 soname_spec='${libname}${release}${shared_ext}$major'
7926 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7927 shlibpath_var=LD_LIBRARY_PATH
7928 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7929 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7930 # the default ld.so.conf also contains /usr/contrib/lib and
7931 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7932 # libtool to hard-code these into programs
7935 cygwin* | mingw* | pw32*)
7936 version_type=windows
7941 case $GCC,$host_os in
7942 yes,cygwin* | yes,mingw* | yes,pw32*)
7943 library_names_spec='$libname.dll.a'
7944 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7945 postinstall_cmds='base_file=`basename \${file}`~
7946 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7947 dldir=$destdir/`dirname \$dlpath`~
7948 test -d \$dldir || mkdir -p \$dldir~
7949 $install_prog $dir/$dlname \$dldir/$dlname'
7950 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7951 dlpath=$dir/\$dldll~
7953 shlibpath_overrides_runpath=yes
7957 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7958 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7959 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7962 # MinGW DLLs use traditional 'lib' prefix
7963 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7964 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7965 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7966 # It is most probably a Windows format PATH printed by
7967 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7968 # path with ; separators, and with drive letters. We can handle the
7969 # drive letters (cygwin fileutils understands them), so leave them,
7970 # especially as we might pass files found there to a mingw objdump,
7971 # which wouldn't understand a cygwinified path. Ahh.
7972 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7974 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7978 # pw32 DLLs use 'pw' prefix rather than 'lib'
7979 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7985 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7988 dynamic_linker='Win32 ld.exe'
7989 # FIXME: first we should search . and the directory the executable is in
7993 darwin* | rhapsody*)
7994 dynamic_linker="$host_os dyld"
7998 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7999 soname_spec='${libname}${release}${major}$shared_ext'
8000 shlibpath_overrides_runpath=yes
8001 shlibpath_var=DYLD_LIBRARY_PATH
8002 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
8003 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8004 if test "$GCC" = yes; then
8005 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"`
8007 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8017 soname_spec='${libname}${release}${shared_ext}$major'
8018 shlibpath_var=LD_LIBRARY_PATH
8029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8030 soname_spec='${libname}${release}${shared_ext}$major'
8031 shlibpath_var=LD_LIBRARY_PATH
8032 shlibpath_overrides_runpath=no
8033 hardcode_into_libs=yes
8034 dynamic_linker='GNU ld.so'
8038 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
8039 version_type=freebsd-$objformat
8040 case $version_type in
8042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8047 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8051 shlibpath_var=LD_LIBRARY_PATH
8054 shlibpath_overrides_runpath=yes
8056 freebsd3.01* | freebsdelf3.01*)
8057 shlibpath_overrides_runpath=yes
8058 hardcode_into_libs=yes
8061 shlibpath_overrides_runpath=no
8062 hardcode_into_libs=yes
8071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8072 soname_spec='${libname}${release}${shared_ext}$major'
8073 shlibpath_var=LD_LIBRARY_PATH
8074 hardcode_into_libs=yes
8077 hpux9* | hpux10* | hpux11*)
8078 # Give a soname corresponding to the major version so that dld.sl refuses to
8079 # link against other versions.
8086 hardcode_into_libs=yes
8087 dynamic_linker="$host_os dld.so"
8088 shlibpath_var=LD_LIBRARY_PATH
8089 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091 soname_spec='${libname}${release}${shared_ext}$major'
8092 if test "X$HPUX_IA64_MODE" = X32; then
8093 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8095 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8097 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8101 hardcode_into_libs=yes
8102 dynamic_linker="$host_os dld.sl"
8103 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8104 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8106 soname_spec='${libname}${release}${shared_ext}$major'
8107 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8108 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8112 dynamic_linker="$host_os dld.sl"
8113 shlibpath_var=SHLIB_PATH
8114 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8116 soname_spec='${libname}${release}${shared_ext}$major'
8119 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8120 postinstall_cmds='chmod 555 $lib'
8123 irix5* | irix6* | nonstopux*)
8125 nonstopux*) version_type=nonstopux ;;
8127 if test "$lt_cv_prog_gnu_ld" = yes; then
8135 soname_spec='${libname}${release}${shared_ext}$major'
8136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8138 irix5* | nonstopux*)
8142 case $LD in # libtool.m4 will add one of these switches to LD
8143 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8144 libsuff= shlibsuff= libmagic=32-bit;;
8145 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8146 libsuff=32 shlibsuff=N32 libmagic=N32;;
8147 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8148 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8149 *) libsuff= shlibsuff= libmagic=never-match;;
8153 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8154 shlibpath_overrides_runpath=no
8155 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8156 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8157 hardcode_into_libs=yes
8160 # No shared lib support for Linux oldld, aout, or coff.
8161 linux*oldld* | linux*aout* | linux*coff*)
8165 # This must be Linux ELF.
8170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8171 soname_spec='${libname}${release}${shared_ext}$major'
8172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8173 shlibpath_var=LD_LIBRARY_PATH
8174 shlibpath_overrides_runpath=no
8175 # This implies no fast_install, which is unacceptable.
8176 # Some rework will be needed to allow for fast_install
8177 # before this can be enabled.
8178 hardcode_into_libs=yes
8180 # Append ld.so.conf contents to the search path
8181 if test -f /etc/ld.so.conf; then
8182 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
8183 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8186 # We used to test for /lib/ld.so.1 and disable shared libraries on
8187 # powerpc, because MkLinux only supported shared libraries with the
8188 # GNU dynamic linker. Since this was broken with cross compilers,
8189 # most powerpc-linux boxes support dynamic linking these days and
8190 # people can always --disable-shared, the test was removed, and we
8191 # assume the GNU/Linux dynamic linker is in use.
8192 dynamic_linker='GNU/Linux ld.so'
8199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8200 soname_spec='${libname}${release}${shared_ext}$major'
8201 shlibpath_var=LD_LIBRARY_PATH
8202 shlibpath_overrides_runpath=no
8203 hardcode_into_libs=yes
8204 dynamic_linker='NetBSD ld.elf_so'
8211 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8212 soname_spec='${libname}${release}${shared_ext}$major'
8213 shlibpath_var=LD_LIBRARY_PATH
8214 shlibpath_overrides_runpath=no
8215 hardcode_into_libs=yes
8216 dynamic_linker='GNU ld.so'
8223 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8225 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8226 dynamic_linker='NetBSD (a.out) ld.so'
8228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8229 soname_spec='${libname}${release}${shared_ext}$major'
8230 dynamic_linker='NetBSD ld.elf_so'
8232 shlibpath_var=LD_LIBRARY_PATH
8233 shlibpath_overrides_runpath=yes
8234 hardcode_into_libs=yes
8239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8240 shlibpath_var=LD_LIBRARY_PATH
8241 shlibpath_overrides_runpath=yes
8248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249 soname_spec='${libname}${release}${shared_ext}$major'
8250 shlibpath_var=LD_LIBRARY_PATH
8251 shlibpath_overrides_runpath=yes
8258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8259 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8260 shlibpath_var=LD_LIBRARY_PATH
8261 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8263 openbsd2.[89] | openbsd2.[89].*)
8264 shlibpath_overrides_runpath=no
8267 shlibpath_overrides_runpath=yes
8271 shlibpath_overrides_runpath=yes
8276 libname_spec='$name'
8279 library_names_spec='$libname${shared_ext} $libname.a'
8280 dynamic_linker='OS/2 ld.exe'
8281 shlibpath_var=LIBPATH
8284 osf3* | osf4* | osf5*)
8288 soname_spec='${libname}${release}${shared_ext}$major'
8289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290 shlibpath_var=LD_LIBRARY_PATH
8291 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8292 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8297 soname_spec='${libname}${release}${shared_ext}$major'
8298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8299 shlibpath_var=LD_LIBRARY_PATH
8306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8307 soname_spec='${libname}${release}${shared_ext}$major'
8308 shlibpath_var=LD_LIBRARY_PATH
8309 shlibpath_overrides_runpath=yes
8310 hardcode_into_libs=yes
8311 # ldd complains unless libraries are executable
8312 postinstall_cmds='chmod +x $lib'
8317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8318 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8319 shlibpath_var=LD_LIBRARY_PATH
8320 shlibpath_overrides_runpath=yes
8321 if test "$with_gnu_ld" = yes; then
8327 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330 soname_spec='${libname}${release}${shared_ext}$major'
8331 shlibpath_var=LD_LIBRARY_PATH
8332 case $host_vendor in
8334 shlibpath_overrides_runpath=no
8336 export_dynamic_flag_spec='${wl}-Blargedynsym'
8337 runpath_var=LD_RUN_PATH
8345 shlibpath_overrides_runpath=no
8346 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8352 if test -d /usr/nec ;then
8354 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8355 soname_spec='$libname${shared_ext}.$major'
8356 shlibpath_var=LD_LIBRARY_PATH
8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8363 soname_spec='${libname}${release}${shared_ext}$major'
8364 shlibpath_var=LD_LIBRARY_PATH
8371 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8372 echo "${ECHO_T}$dynamic_linker" >&6
8373 test "$dynamic_linker" = no && can_build_shared=no
8375 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8376 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8378 if test -n "$hardcode_libdir_flag_spec" || \
8379 test -n "$runpath_var " || \
8380 test "X$hardcode_automatic"="Xyes" ; then
8382 # We can hardcode non-existant directories.
8383 if test "$hardcode_direct" != no &&
8384 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8385 # have to relink, otherwise we might link with an installed library
8386 # when we should be linking with a yet-to-be-installed one
8387 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8388 test "$hardcode_minus_L" != no; then
8389 # Linking always hardcodes the temporary library directory.
8390 hardcode_action=relink
8392 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8393 hardcode_action=immediate
8396 # We cannot hardcode anything, or else we can only hardcode existing
8398 hardcode_action=unsupported
8400 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8401 echo "${ECHO_T}$hardcode_action" >&6
8403 if test "$hardcode_action" = relink; then
8404 # Fast installation is not supported
8405 enable_fast_install=no
8406 elif test "$shlibpath_overrides_runpath" = yes ||
8407 test "$enable_shared" = no; then
8408 # Fast installation is not necessary
8409 enable_fast_install=needless
8414 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8415 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8416 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8417 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8418 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8419 echo "$as_me:$LINENO: result: yes" >&5
8420 echo "${ECHO_T}yes" >&6
8422 # FIXME - insert some real tests, host_os isn't really good enough
8425 if test -n "$STRIP" ; then
8426 striplib="$STRIP -x"
8427 echo "$as_me:$LINENO: result: yes" >&5
8428 echo "${ECHO_T}yes" >&6
8430 echo "$as_me:$LINENO: result: no" >&5
8431 echo "${ECHO_T}no" >&6
8435 echo "$as_me:$LINENO: result: no" >&5
8436 echo "${ECHO_T}no" >&6
8441 if test "x$enable_dlopen" != xyes; then
8442 enable_dlopen=unknown
8443 enable_dlopen_self=unknown
8444 enable_dlopen_self_static=unknown
8451 lt_cv_dlopen="load_add_on"
8453 lt_cv_dlopen_self=yes
8457 lt_cv_dlopen="LoadLibrary"
8462 lt_cv_dlopen="dlopen"
8467 # if libdl is installed we need to link against it
8468 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8469 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8470 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8473 ac_check_lib_save_LIBS=$LIBS
8475 cat >conftest.$ac_ext <<_ACEOF
8478 cat confdefs.h >>conftest.$ac_ext
8479 cat >>conftest.$ac_ext <<_ACEOF
8480 /* end confdefs.h. */
8482 /* Override any gcc2 internal prototype to avoid an error. */
8486 /* We use char because int might match the return type of a gcc2
8487 builtin and then its argument prototype would still apply. */
8497 rm -f conftest.$ac_objext conftest$ac_exeext
8498 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8499 (eval $ac_link) 2>conftest.er1
8501 grep -v '^ *+' conftest.er1 >conftest.err
8503 cat conftest.err >&5
8504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8505 (exit $ac_status); } &&
8506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511 (exit $ac_status); }; } &&
8512 { ac_try='test -s conftest$ac_exeext'
8513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); }; }; then
8518 ac_cv_lib_dl_dlopen=yes
8520 echo "$as_me: failed program was:" >&5
8521 sed 's/^/| /' conftest.$ac_ext >&5
8523 ac_cv_lib_dl_dlopen=no
8525 rm -f conftest.err conftest.$ac_objext \
8526 conftest$ac_exeext conftest.$ac_ext
8527 LIBS=$ac_check_lib_save_LIBS
8529 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8530 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8531 if test $ac_cv_lib_dl_dlopen = yes; then
8532 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8537 lt_cv_dlopen_self=yes
8544 echo "$as_me:$LINENO: checking for shl_load" >&5
8545 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8546 if test "${ac_cv_func_shl_load+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 cat >conftest.$ac_ext <<_ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8556 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8557 #define shl_load innocuous_shl_load
8559 /* System header to define __stub macros and hopefully few prototypes,
8560 which can conflict with char shl_load (); below.
8561 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8562 <limits.h> exists even on freestanding compilers. */
8565 # include <limits.h>
8567 # include <assert.h>
8572 /* Override any gcc2 internal prototype to avoid an error. */
8577 /* We use char because int might match the return type of a gcc2
8578 builtin and then its argument prototype would still apply. */
8580 /* The GNU C library defines this for functions which it implements
8581 to always fail with ENOSYS. Some functions are actually named
8582 something starting with __ and the normal name is an alias. */
8583 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8586 char (*f) () = shl_load;
8595 return f != shl_load;
8600 rm -f conftest.$ac_objext conftest$ac_exeext
8601 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8602 (eval $ac_link) 2>conftest.er1
8604 grep -v '^ *+' conftest.er1 >conftest.err
8606 cat conftest.err >&5
8607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8608 (exit $ac_status); } &&
8609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8610 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8614 (exit $ac_status); }; } &&
8615 { ac_try='test -s conftest$ac_exeext'
8616 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8620 (exit $ac_status); }; }; then
8621 ac_cv_func_shl_load=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8626 ac_cv_func_shl_load=no
8628 rm -f conftest.err conftest.$ac_objext \
8629 conftest$ac_exeext conftest.$ac_ext
8631 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8632 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8633 if test $ac_cv_func_shl_load = yes; then
8634 lt_cv_dlopen="shl_load"
8636 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8637 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8638 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8639 echo $ECHO_N "(cached) $ECHO_C" >&6
8641 ac_check_lib_save_LIBS=$LIBS
8643 cat >conftest.$ac_ext <<_ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8650 /* Override any gcc2 internal prototype to avoid an error. */
8654 /* We use char because int might match the return type of a gcc2
8655 builtin and then its argument prototype would still apply. */
8665 rm -f conftest.$ac_objext conftest$ac_exeext
8666 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8667 (eval $ac_link) 2>conftest.er1
8669 grep -v '^ *+' conftest.er1 >conftest.err
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8679 (exit $ac_status); }; } &&
8680 { ac_try='test -s conftest$ac_exeext'
8681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); }; }; then
8686 ac_cv_lib_dld_shl_load=yes
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8691 ac_cv_lib_dld_shl_load=no
8693 rm -f conftest.err conftest.$ac_objext \
8694 conftest$ac_exeext conftest.$ac_ext
8695 LIBS=$ac_check_lib_save_LIBS
8697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8698 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8699 if test $ac_cv_lib_dld_shl_load = yes; then
8700 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8702 echo "$as_me:$LINENO: checking for dlopen" >&5
8703 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8704 if test "${ac_cv_func_dlopen+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.$ac_ext <<_ACEOF
8710 cat confdefs.h >>conftest.$ac_ext
8711 cat >>conftest.$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8713 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8714 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8715 #define dlopen innocuous_dlopen
8717 /* System header to define __stub macros and hopefully few prototypes,
8718 which can conflict with char dlopen (); below.
8719 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8720 <limits.h> exists even on freestanding compilers. */
8723 # include <limits.h>
8725 # include <assert.h>
8730 /* Override any gcc2 internal prototype to avoid an error. */
8735 /* We use char because int might match the return type of a gcc2
8736 builtin and then its argument prototype would still apply. */
8738 /* The GNU C library defines this for functions which it implements
8739 to always fail with ENOSYS. Some functions are actually named
8740 something starting with __ and the normal name is an alias. */
8741 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8744 char (*f) () = dlopen;
8758 rm -f conftest.$ac_objext conftest$ac_exeext
8759 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8760 (eval $ac_link) 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } &&
8767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); }; } &&
8773 { ac_try='test -s conftest$ac_exeext'
8774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8778 (exit $ac_status); }; }; then
8779 ac_cv_func_dlopen=yes
8781 echo "$as_me: failed program was:" >&5
8782 sed 's/^/| /' conftest.$ac_ext >&5
8784 ac_cv_func_dlopen=no
8786 rm -f conftest.err conftest.$ac_objext \
8787 conftest$ac_exeext conftest.$ac_ext
8789 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8790 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8791 if test $ac_cv_func_dlopen = yes; then
8792 lt_cv_dlopen="dlopen"
8794 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8795 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8796 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8797 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_check_lib_save_LIBS=$LIBS
8801 cat >conftest.$ac_ext <<_ACEOF
8804 cat confdefs.h >>conftest.$ac_ext
8805 cat >>conftest.$ac_ext <<_ACEOF
8806 /* end confdefs.h. */
8808 /* Override any gcc2 internal prototype to avoid an error. */
8812 /* We use char because int might match the return type of a gcc2
8813 builtin and then its argument prototype would still apply. */
8823 rm -f conftest.$ac_objext conftest$ac_exeext
8824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8825 (eval $ac_link) 2>conftest.er1
8827 grep -v '^ *+' conftest.er1 >conftest.err
8829 cat conftest.err >&5
8830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8831 (exit $ac_status); } &&
8832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8837 (exit $ac_status); }; } &&
8838 { ac_try='test -s conftest$ac_exeext'
8839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8844 ac_cv_lib_dl_dlopen=yes
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8849 ac_cv_lib_dl_dlopen=no
8851 rm -f conftest.err conftest.$ac_objext \
8852 conftest$ac_exeext conftest.$ac_ext
8853 LIBS=$ac_check_lib_save_LIBS
8855 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8856 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8857 if test $ac_cv_lib_dl_dlopen = yes; then
8858 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8860 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8861 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8862 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8863 echo $ECHO_N "(cached) $ECHO_C" >&6
8865 ac_check_lib_save_LIBS=$LIBS
8867 cat >conftest.$ac_ext <<_ACEOF
8870 cat confdefs.h >>conftest.$ac_ext
8871 cat >>conftest.$ac_ext <<_ACEOF
8872 /* end confdefs.h. */
8874 /* Override any gcc2 internal prototype to avoid an error. */
8878 /* We use char because int might match the return type of a gcc2
8879 builtin and then its argument prototype would still apply. */
8889 rm -f conftest.$ac_objext conftest$ac_exeext
8890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8891 (eval $ac_link) 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } &&
8898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903 (exit $ac_status); }; } &&
8904 { ac_try='test -s conftest$ac_exeext'
8905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); }; }; then
8910 ac_cv_lib_svld_dlopen=yes
8912 echo "$as_me: failed program was:" >&5
8913 sed 's/^/| /' conftest.$ac_ext >&5
8915 ac_cv_lib_svld_dlopen=no
8917 rm -f conftest.err conftest.$ac_objext \
8918 conftest$ac_exeext conftest.$ac_ext
8919 LIBS=$ac_check_lib_save_LIBS
8921 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8922 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8923 if test $ac_cv_lib_svld_dlopen = yes; then
8924 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8926 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8927 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8928 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8929 echo $ECHO_N "(cached) $ECHO_C" >&6
8931 ac_check_lib_save_LIBS=$LIBS
8933 cat >conftest.$ac_ext <<_ACEOF
8936 cat confdefs.h >>conftest.$ac_ext
8937 cat >>conftest.$ac_ext <<_ACEOF
8938 /* end confdefs.h. */
8940 /* Override any gcc2 internal prototype to avoid an error. */
8944 /* We use char because int might match the return type of a gcc2
8945 builtin and then its argument prototype would still apply. */
8955 rm -f conftest.$ac_objext conftest$ac_exeext
8956 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8957 (eval $ac_link) 2>conftest.er1
8959 grep -v '^ *+' conftest.er1 >conftest.err
8961 cat conftest.err >&5
8962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8963 (exit $ac_status); } &&
8964 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); }; } &&
8970 { ac_try='test -s conftest$ac_exeext'
8971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); }; }; then
8976 ac_cv_lib_dld_dld_link=yes
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8981 ac_cv_lib_dld_dld_link=no
8983 rm -f conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext conftest.$ac_ext
8985 LIBS=$ac_check_lib_save_LIBS
8987 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8988 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8989 if test $ac_cv_lib_dld_dld_link = yes; then
8990 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9011 if test "x$lt_cv_dlopen" != xno; then
9017 case $lt_cv_dlopen in
9019 save_CPPFLAGS="$CPPFLAGS"
9020 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9022 save_LDFLAGS="$LDFLAGS"
9023 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9026 LIBS="$lt_cv_dlopen_libs $LIBS"
9028 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9029 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9030 if test "${lt_cv_dlopen_self+set}" = set; then
9031 echo $ECHO_N "(cached) $ECHO_C" >&6
9033 if test "$cross_compiling" = yes; then :
9034 lt_cv_dlopen_self=cross
9036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9037 lt_status=$lt_dlunknown
9038 cat > conftest.$ac_ext <<EOF
9039 #line 9039 "configure"
9040 #include "confdefs.h"
9049 # define LT_DLGLOBAL RTLD_GLOBAL
9052 # define LT_DLGLOBAL DL_GLOBAL
9054 # define LT_DLGLOBAL 0
9058 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9059 find out it does not work in some platform. */
9060 #ifndef LT_DLLAZY_OR_NOW
9062 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9065 # define LT_DLLAZY_OR_NOW DL_LAZY
9068 # define LT_DLLAZY_OR_NOW RTLD_NOW
9071 # define LT_DLLAZY_OR_NOW DL_NOW
9073 # define LT_DLLAZY_OR_NOW 0
9081 extern "C" void exit (int);
9084 void fnord() { int i=42;}
9087 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9088 int status = $lt_dlunknown;
9092 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9093 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9094 /* dlclose (self); */
9100 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101 (eval $ac_link) 2>&5
9103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9104 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9105 (./conftest; exit; ) 2>/dev/null
9108 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9109 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9110 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
9113 # compilation failed
9114 lt_cv_dlopen_self=no
9121 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9122 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9124 if test "x$lt_cv_dlopen_self" = xyes; then
9125 LDFLAGS="$LDFLAGS $link_static_flag"
9126 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9127 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9128 if test "${lt_cv_dlopen_self_static+set}" = set; then
9129 echo $ECHO_N "(cached) $ECHO_C" >&6
9131 if test "$cross_compiling" = yes; then :
9132 lt_cv_dlopen_self_static=cross
9134 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9135 lt_status=$lt_dlunknown
9136 cat > conftest.$ac_ext <<EOF
9137 #line 9137 "configure"
9138 #include "confdefs.h"
9147 # define LT_DLGLOBAL RTLD_GLOBAL
9150 # define LT_DLGLOBAL DL_GLOBAL
9152 # define LT_DLGLOBAL 0
9156 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9157 find out it does not work in some platform. */
9158 #ifndef LT_DLLAZY_OR_NOW
9160 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9163 # define LT_DLLAZY_OR_NOW DL_LAZY
9166 # define LT_DLLAZY_OR_NOW RTLD_NOW
9169 # define LT_DLLAZY_OR_NOW DL_NOW
9171 # define LT_DLLAZY_OR_NOW 0
9179 extern "C" void exit (int);
9182 void fnord() { int i=42;}
9185 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9186 int status = $lt_dlunknown;
9190 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9191 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9192 /* dlclose (self); */
9198 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9199 (eval $ac_link) 2>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9203 (./conftest; exit; ) 2>/dev/null
9206 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9207 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9208 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9211 # compilation failed
9212 lt_cv_dlopen_self_static=no
9219 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9220 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9223 CPPFLAGS="$save_CPPFLAGS"
9224 LDFLAGS="$save_LDFLAGS"
9229 case $lt_cv_dlopen_self in
9230 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9231 *) enable_dlopen_self=unknown ;;
9234 case $lt_cv_dlopen_self_static in
9235 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9236 *) enable_dlopen_self_static=unknown ;;
9241 # Report which librarie types wil actually be built
9242 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9243 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9244 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9245 echo "${ECHO_T}$can_build_shared" >&6
9247 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9248 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9249 test "$can_build_shared" = "no" && enable_shared=no
9251 # On AIX, shared libraries and static libraries use the same namespace, and
9252 # are all built from PIC.
9255 test "$enable_shared" = yes && enable_static=no
9256 if test -n "$RANLIB"; then
9257 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9258 postinstall_cmds='$RANLIB $lib'
9263 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9264 test "$enable_shared" = yes && enable_static=no
9267 darwin* | rhapsody*)
9268 if test "$GCC" = yes; then
9269 archive_cmds_need_lc=no
9271 rhapsody* | darwin1.[012])
9272 allow_undefined_flag='-undefined suppress'
9275 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9276 allow_undefined_flag='-flat_namespace -undefined suppress'
9278 case ${MACOSX_DEPLOYMENT_TARGET} in
9280 allow_undefined_flag='-flat_namespace -undefined suppress'
9283 allow_undefined_flag='-undefined dynamic_lookup'
9289 output_verbose_link_cmd='echo'
9290 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9291 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9292 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9293 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}'
9294 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}'
9296 hardcode_automatic=yes
9297 hardcode_shlibpath_var=unsupported
9298 whole_archive_flag_spec='-all_load $convenience'
9299 link_all_deplibs=yes
9305 echo "$as_me:$LINENO: result: $enable_shared" >&5
9306 echo "${ECHO_T}$enable_shared" >&6
9308 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9309 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9310 # Make sure either enable_shared or enable_static is yes.
9311 test "$enable_shared" = yes || enable_static=yes
9312 echo "$as_me:$LINENO: result: $enable_static" >&5
9313 echo "${ECHO_T}$enable_static" >&6
9315 # The else clause should only fire when bootstrapping the
9316 # libtool distribution, otherwise you forgot to ship ltmain.sh
9317 # with your package, and you will get complaints that there are
9318 # no rules to generate ltmain.sh.
9319 if test -f "$ltmain"; then
9320 # See if we are running on zsh, and set the options which allow our commands through
9321 # without removal of \ escapes.
9322 if test -n "${ZSH_VERSION+set}" ; then
9323 setopt NO_GLOB_SUBST
9325 # Now quote all the things that may contain metacharacters while being
9326 # careful not to overquote the AC_SUBSTed values. We take copies of the
9327 # variables and quote the copies for generation of the libtool script.
9328 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9330 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9331 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9332 deplibs_check_method reload_flag reload_cmds need_locks \
9333 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9334 lt_cv_sys_global_symbol_to_c_name_address \
9335 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9336 old_postinstall_cmds old_postuninstall_cmds \
9340 lt_prog_compiler_wl \
9341 lt_prog_compiler_pic \
9342 lt_prog_compiler_static \
9343 lt_prog_compiler_no_builtin_flag \
9344 export_dynamic_flag_spec \
9345 thread_safe_flag_spec \
9346 whole_archive_flag_spec \
9347 enable_shared_with_static_runtimes \
9349 old_archive_from_new_cmds \
9354 compiler_lib_search_path \
9356 archive_expsym_cmds \
9358 postuninstall_cmds \
9359 old_archive_from_expsyms_cmds \
9360 allow_undefined_flag \
9362 export_symbols_cmds \
9363 hardcode_libdir_flag_spec \
9364 hardcode_libdir_flag_spec_ld \
9365 hardcode_libdir_separator \
9366 hardcode_automatic \
9368 module_expsym_cmds \
9369 lt_cv_prog_compiler_c_o \
9374 old_archive_cmds | \
9375 old_archive_from_new_cmds | \
9377 archive_expsym_cmds | \
9379 module_expsym_cmds | \
9380 old_archive_from_expsyms_cmds | \
9381 export_symbols_cmds | \
9382 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9383 postinstall_cmds | postuninstall_cmds | \
9384 old_postinstall_cmds | old_postuninstall_cmds | \
9385 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9386 # Double-quote double-evaled strings.
9387 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9390 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9396 *'\$0 --fallback-echo"')
9397 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9402 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9404 { echo "$as_me:$LINENO: creating $ofile" >&5
9405 echo "$as_me: creating $ofile" >&6;}
9407 cat <<__EOF__ >> "$cfgfile"
9410 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9411 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9412 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9414 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9415 # Free Software Foundation, Inc.
9417 # This file is part of GNU Libtool:
9418 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9420 # This program is free software; you can redistribute it and/or modify
9421 # it under the terms of the GNU General Public License as published by
9422 # the Free Software Foundation; either version 2 of the License, or
9423 # (at your option) any later version.
9425 # This program is distributed in the hope that it will be useful, but
9426 # WITHOUT ANY WARRANTY; without even the implied warranty of
9427 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9428 # General Public License for more details.
9430 # You should have received a copy of the GNU General Public License
9431 # along with this program; if not, write to the Free Software
9432 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9434 # As a special exception to the GNU General Public License, if you
9435 # distribute this file as part of a program that contains a
9436 # configuration script generated by Autoconf, you may include it under
9437 # the same distribution terms that you use for the rest of that program.
9439 # A sed program that does not truncate output.
9442 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9443 Xsed="$SED -e s/^X//"
9445 # The HP-UX ksh and POSIX shell print the target directory to stdout
9447 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9449 # The names of the tagged configurations supported by this script.
9452 # ### BEGIN LIBTOOL CONFIG
9454 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9456 # Shell to use when invoking shell scripts.
9459 # Whether or not to build shared libraries.
9460 build_libtool_libs=$enable_shared
9462 # Whether or not to build static libraries.
9463 build_old_libs=$enable_static
9465 # Whether or not to add -lc for building shared libraries.
9466 build_libtool_need_lc=$archive_cmds_need_lc
9468 # Whether or not to disallow shared libs when runtime libs are static
9469 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9471 # Whether or not to optimize for fast installation.
9472 fast_install=$enable_fast_install
9475 host_alias=$host_alias
9478 # An echo program that does not interpret backslashes.
9483 AR_FLAGS=$lt_AR_FLAGS
9488 # A language-specific compiler.
9491 # Is the compiler the GNU C compiler?
9497 # The linker used to build libraries.
9500 # Whether we need hard or soft links.
9503 # A BSD-compatible nm program.
9506 # A symbol stripping program
9509 # Used to examine libraries when file_magic_cmd begins "file"
9510 MAGIC_CMD=$MAGIC_CMD
9512 # Used on cygwin: DLL creation program.
9515 # Used on cygwin: object dumper.
9518 # Used on cygwin: assembler.
9521 # The name of the directory that contains temporary libtool files.
9524 # How to create reloadable object files.
9525 reload_flag=$lt_reload_flag
9526 reload_cmds=$lt_reload_cmds
9528 # How to pass a linker flag through the compiler.
9529 wl=$lt_lt_prog_compiler_wl
9531 # Object file suffix (normally "o").
9534 # Old archive suffix (normally "a").
9537 # Shared library suffix (normally ".so").
9538 shrext_cmds='$shrext_cmds'
9540 # Executable file suffix (normally "").
9543 # Additional compiler flags for building library objects.
9544 pic_flag=$lt_lt_prog_compiler_pic
9547 # What is the maximum length of a command?
9548 max_cmd_len=$lt_cv_sys_max_cmd_len
9550 # Does compiler simultaneously support -c and -o options?
9551 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9553 # Must we lock files when doing compilation ?
9554 need_locks=$lt_need_locks
9556 # Do we need the lib prefix for modules?
9557 need_lib_prefix=$need_lib_prefix
9559 # Do we need a version for libraries?
9560 need_version=$need_version
9562 # Whether dlopen is supported.
9563 dlopen_support=$enable_dlopen
9565 # Whether dlopen of programs is supported.
9566 dlopen_self=$enable_dlopen_self
9568 # Whether dlopen of statically linked programs is supported.
9569 dlopen_self_static=$enable_dlopen_self_static
9571 # Compiler flag to prevent dynamic linking.
9572 link_static_flag=$lt_lt_prog_compiler_static
9574 # Compiler flag to turn off builtin functions.
9575 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9577 # Compiler flag to allow reflexive dlopens.
9578 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9580 # Compiler flag to generate shared objects directly from archives.
9581 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9583 # Compiler flag to generate thread-safe objects.
9584 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9586 # Library versioning type.
9587 version_type=$version_type
9589 # Format of library name prefix.
9590 libname_spec=$lt_libname_spec
9592 # List of archive names. First name is the real one, the rest are links.
9593 # The last name is the one that the linker finds with -lNAME.
9594 library_names_spec=$lt_library_names_spec
9596 # The coded name of the library, if different from the real name.
9597 soname_spec=$lt_soname_spec
9599 # Commands used to build and install an old-style archive.
9601 old_archive_cmds=$lt_old_archive_cmds
9602 old_postinstall_cmds=$lt_old_postinstall_cmds
9603 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9605 # Create an old-style archive from a shared archive.
9606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9608 # Create a temporary old-style archive to link instead of a shared archive.
9609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9611 # Commands used to build and install a shared archive.
9612 archive_cmds=$lt_archive_cmds
9613 archive_expsym_cmds=$lt_archive_expsym_cmds
9614 postinstall_cmds=$lt_postinstall_cmds
9615 postuninstall_cmds=$lt_postuninstall_cmds
9617 # Commands used to build a loadable module (assumed same as above if empty)
9618 module_cmds=$lt_module_cmds
9619 module_expsym_cmds=$lt_module_expsym_cmds
9621 # Commands to strip libraries.
9622 old_striplib=$lt_old_striplib
9623 striplib=$lt_striplib
9625 # Dependencies to place before the objects being linked to create a
9627 predep_objects=$lt_predep_objects
9629 # Dependencies to place after the objects being linked to create a
9631 postdep_objects=$lt_postdep_objects
9633 # Dependencies to place before the objects being linked to create a
9637 # Dependencies to place after the objects being linked to create a
9639 postdeps=$lt_postdeps
9641 # The library search path used internally by the compiler when linking
9643 compiler_lib_search_path=$lt_compiler_lib_search_path
9645 # Method to check whether dependent libraries are shared objects.
9646 deplibs_check_method=$lt_deplibs_check_method
9648 # Command to use when deplibs_check_method == file_magic.
9649 file_magic_cmd=$lt_file_magic_cmd
9651 # Flag that allows shared libraries with undefined symbols to be built.
9652 allow_undefined_flag=$lt_allow_undefined_flag
9654 # Flag that forces no undefined symbols.
9655 no_undefined_flag=$lt_no_undefined_flag
9657 # Commands used to finish a libtool library installation in a directory.
9658 finish_cmds=$lt_finish_cmds
9660 # Same as above, but a single script fragment to be evaled but not shown.
9661 finish_eval=$lt_finish_eval
9663 # Take the output of nm and produce a listing of raw symbols and C names.
9664 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9666 # Transform the output of nm in a proper C declaration
9667 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9669 # Transform the output of nm in a C name address pair
9670 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9672 # This is the shared library runtime path variable.
9673 runpath_var=$runpath_var
9675 # This is the shared library path variable.
9676 shlibpath_var=$shlibpath_var
9678 # Is shlibpath searched before the hard-coded library search path?
9679 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9681 # How to hardcode a shared library path into an executable.
9682 hardcode_action=$hardcode_action
9684 # Whether we should hardcode library paths into libraries.
9685 hardcode_into_libs=$hardcode_into_libs
9687 # Flag to hardcode \$libdir into a binary during linking.
9688 # This must work even if \$libdir does not exist.
9689 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9691 # If ld is used when linking, flag to hardcode \$libdir into
9692 # a binary during linking. This must work even if \$libdir does
9694 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9696 # Whether we need a single -rpath flag with a separated argument.
9697 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9699 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9701 hardcode_direct=$hardcode_direct
9703 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9705 hardcode_minus_L=$hardcode_minus_L
9707 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9708 # the resulting binary.
9709 hardcode_shlibpath_var=$hardcode_shlibpath_var
9711 # Set to yes if building a shared library automatically hardcodes DIR into the library
9712 # and all subsequent libraries and executables linked against it.
9713 hardcode_automatic=$hardcode_automatic
9715 # Variables whose values should be saved in libtool wrapper scripts and
9716 # restored at relink time.
9717 variables_saved_for_relink="$variables_saved_for_relink"
9719 # Whether libtool must link a program against all its dependency libraries.
9720 link_all_deplibs=$link_all_deplibs
9722 # Compile-time system search path for libraries
9723 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9725 # Run-time system search path for libraries
9726 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9728 # Fix the shell variable \$srcfile for the compiler.
9729 fix_srcfile_path="$fix_srcfile_path"
9731 # Set to yes if exported symbols are required.
9732 always_export_symbols=$always_export_symbols
9734 # The commands to list exported symbols.
9735 export_symbols_cmds=$lt_export_symbols_cmds
9737 # The commands to extract the exported symbol list from a shared archive.
9738 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9740 # Symbols that should not be listed in the preloaded symbols.
9741 exclude_expsyms=$lt_exclude_expsyms
9743 # Symbols that must always be exported.
9744 include_expsyms=$lt_include_expsyms
9746 # ### END LIBTOOL CONFIG
9753 cat <<\EOF >> "$cfgfile"
9755 # AIX sometimes has problems with the GCC collect2 program. For some
9756 # reason, if we set the COLLECT_NAMES environment variable, the problems
9757 # vanish in a puff of smoke.
9758 if test "X${COLLECT_NAMES+set}" != Xset; then
9760 export COLLECT_NAMES
9766 # We use sed instead of cat because bash on DJGPP gets confused if
9767 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9768 # text mode, it properly converts lines to CR/LF. This bash problem
9769 # is reportedly fixed, but why not run on old versions too?
9770 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9772 mv -f "$cfgfile" "$ofile" || \
9773 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9777 # If there is no Makefile yet, we rely on a make rule to execute
9778 # `config.status --recheck' to rerun these tests and create the
9779 # libtool script then.
9780 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9781 if test -f "$ltmain_in"; then
9782 test -f Makefile && make "$ltmain"
9788 ac_cpp='$CPP $CPPFLAGS'
9789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9796 # Check whether --with-tags or --without-tags was given.
9797 if test "${with_tags+set}" = set; then
9798 withval="$with_tags"
9802 if test -f "$ltmain" && test -n "$tagnames"; then
9803 if test ! -f "${ofile}"; then
9804 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9805 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9808 if test -z "$LTCC"; then
9809 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9810 if test -z "$LTCC"; then
9811 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9812 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9814 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9815 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9819 # Extract list of available tagged configurations in $ofile.
9820 # Note that this assumes the entire list is on one line.
9821 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9823 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9824 for tagname in $tagnames; do
9826 # Check whether tagname contains only valid characters
9827 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9829 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9830 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9831 { (exit 1); exit 1; }; }
9835 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9837 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9838 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9839 { (exit 1); exit 1; }; }
9842 # Update the list of available tags.
9843 if test -n "$tagname"; then
9844 echo appending configuration tag \"$tagname\" to $ofile
9848 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9850 ac_cpp='$CXXCPP $CPPFLAGS'
9851 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9852 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9853 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9858 archive_cmds_need_lc_CXX=no
9859 allow_undefined_flag_CXX=
9860 always_export_symbols_CXX=no
9861 archive_expsym_cmds_CXX=
9862 export_dynamic_flag_spec_CXX=
9863 hardcode_direct_CXX=no
9864 hardcode_libdir_flag_spec_CXX=
9865 hardcode_libdir_flag_spec_ld_CXX=
9866 hardcode_libdir_separator_CXX=
9867 hardcode_minus_L_CXX=no
9868 hardcode_automatic_CXX=no
9870 module_expsym_cmds_CXX=
9871 link_all_deplibs_CXX=unknown
9872 old_archive_cmds_CXX=$old_archive_cmds
9873 no_undefined_flag_CXX=
9874 whole_archive_flag_spec_CXX=
9875 enable_shared_with_static_runtimes_CXX=no
9877 # Dependencies to place before and after the object being linked:
9879 postdep_objects_CXX=
9882 compiler_lib_search_path_CXX=
9884 # Source file extension for C++ test sources.
9887 # Object file extension for compiled C++ test sources.
9891 # Code to be used in simple compile tests
9892 lt_simple_compile_test_code="int some_variable = 0;\n"
9894 # Code to be used in simple link tests
9895 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9897 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9899 # If no C compiler was specified, use CC.
9902 # Allow CC to be a program name with arguments.
9906 # Allow CC to be a program name with arguments.
9911 lt_save_with_gnu_ld=$with_gnu_ld
9912 lt_save_path_LD=$lt_cv_path_LD
9913 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9914 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9916 unset lt_cv_prog_gnu_ld
9918 if test -n "${lt_cv_path_LDCXX+set}"; then
9919 lt_cv_path_LD=$lt_cv_path_LDCXX
9923 test -z "${LDCXX+set}" || LD=$LDCXX
9927 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9929 # We don't want -fno-exception wen compiling C++ code, so set the
9930 # no_builtin_flag separately
9931 if test "$GXX" = yes; then
9932 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9934 lt_prog_compiler_no_builtin_flag_CXX=
9937 if test "$GXX" = yes; then
9938 # Set up default GNU C++ configuration
9941 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9942 if test "${with_gnu_ld+set}" = set; then
9943 withval="$with_gnu_ld"
9944 test "$withval" = no || with_gnu_ld=yes
9949 if test "$GCC" = yes; then
9950 # Check if gcc -print-prog-name=ld gives a path.
9951 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9952 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9955 # gcc leaves a trailing carriage return which upsets mingw
9956 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9958 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9961 # Accept absolute paths.
9963 re_direlt='/[^/][^/]*/\.\./'
9964 # Canonicalize the pathname of ld
9965 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9966 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9967 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9969 test -z "$LD" && LD="$ac_prog"
9972 # If it fails, then pretend we aren't using GCC.
9976 # If it is relative, then search for the first ld in PATH.
9980 elif test "$with_gnu_ld" = yes; then
9981 echo "$as_me:$LINENO: checking for GNU ld" >&5
9982 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9984 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9985 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9987 if test "${lt_cv_path_LD+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 if test -z "$LD"; then
9991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9992 for ac_dir in $PATH; do
9994 test -z "$ac_dir" && ac_dir=.
9995 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9996 lt_cv_path_LD="$ac_dir/$ac_prog"
9997 # Check to see if the program is GNU ld. I'd rather use --version,
9998 # but apparently some GNU ld's only accept -v.
9999 # Break only if it was the GNU/non-GNU ld that we prefer.
10000 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10001 *GNU* | *'with BFD'*)
10002 test "$with_gnu_ld" != no && break
10005 test "$with_gnu_ld" != yes && break
10012 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10016 LD="$lt_cv_path_LD"
10017 if test -n "$LD"; then
10018 echo "$as_me:$LINENO: result: $LD" >&5
10019 echo "${ECHO_T}$LD" >&6
10021 echo "$as_me:$LINENO: result: no" >&5
10022 echo "${ECHO_T}no" >&6
10024 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10025 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10026 { (exit 1); exit 1; }; }
10027 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10028 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10029 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10033 case `$LD -v 2>&1 </dev/null` in
10034 *GNU* | *'with BFD'*)
10035 lt_cv_prog_gnu_ld=yes
10038 lt_cv_prog_gnu_ld=no
10042 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10043 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10044 with_gnu_ld=$lt_cv_prog_gnu_ld
10048 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10049 # archiving commands below assume that GNU ld is being used.
10050 if test "$with_gnu_ld" = yes; then
10051 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10052 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'
10054 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10055 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10057 # If archive_cmds runs LD, not CC, wlarc should be empty
10058 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10059 # investigate it a little bit more. (MM)
10062 # ancient GNU ld didn't support --whole-archive et. al.
10063 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10064 grep 'no-whole-archive' > /dev/null; then
10065 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10067 whole_archive_flag_spec_CXX=
10073 # A generic and very simple default shared library creation
10074 # command for GNU C++ for the case where it uses the native
10075 # linker, instead of GNU ld. If possible, this setting should
10076 # overridden to take advantage of the native linker features on
10077 # the platform it is being used on.
10078 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10081 # Commands to make compiler produce verbose output that lists
10082 # what "hidden" libraries, object files and flags are used when
10083 # linking a shared library.
10084 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10092 # PORTME: fill in a description of your system's C++ link characteristics
10093 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10094 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10098 # FIXME: insert proper C++ library support
10102 if test "$host_cpu" = ia64; then
10103 # On IA64, the linker does run time linking by default, so we don't
10104 # have to do anything special.
10105 aix_use_runtimelinking=no
10106 exp_sym_flag='-Bexport'
10109 aix_use_runtimelinking=no
10111 # Test if we are trying to use run time linking or normal
10112 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10113 # need to do runtime linking.
10114 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10115 for ld_flag in $LDFLAGS; do
10118 aix_use_runtimelinking=yes
10125 exp_sym_flag='-bexport'
10126 no_entry_flag='-bnoentry'
10129 # When large executables or shared objects are built, AIX ld can
10130 # have problems creating the table of contents. If linking a library
10131 # or program results in "error TOC overflow" add -mminimal-toc to
10132 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10133 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10135 archive_cmds_CXX=''
10136 hardcode_direct_CXX=yes
10137 hardcode_libdir_separator_CXX=':'
10138 link_all_deplibs_CXX=yes
10140 if test "$GXX" = yes; then
10141 case $host_os in aix4.012|aix4.012.*)
10142 # We only want to do this on AIX 4.2 and lower, the check
10143 # below for broken collect2 doesn't work under 4.3+
10144 collect2name=`${CC} -print-prog-name=collect2`
10145 if test -f "$collect2name" && \
10146 strings "$collect2name" | grep resolve_lib_name >/dev/null
10148 # We have reworked collect2
10149 hardcode_direct_CXX=yes
10151 # We have old collect2
10152 hardcode_direct_CXX=unsupported
10153 # It fails to find uninstalled libraries when the uninstalled
10154 # path is not listed in the libpath. Setting hardcode_minus_L
10155 # to unsupported forces relinking
10156 hardcode_minus_L_CXX=yes
10157 hardcode_libdir_flag_spec_CXX='-L$libdir'
10158 hardcode_libdir_separator_CXX=
10161 shared_flag='-shared'
10164 if test "$host_cpu" = ia64; then
10165 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10166 # chokes on -Wl,-G. The following line is correct:
10169 if test "$aix_use_runtimelinking" = yes; then
10170 shared_flag='${wl}-G'
10172 shared_flag='${wl}-bM:SRE'
10177 # It seems that -bexpall does not export symbols beginning with
10178 # underscore (_), so it is better to generate a list of symbols to export.
10179 always_export_symbols_CXX=yes
10180 if test "$aix_use_runtimelinking" = yes; then
10181 # Warning - without using the other runtime loading flags (-brtl),
10182 # -berok will link without error, but may produce a broken library.
10183 allow_undefined_flag_CXX='-berok'
10184 # Determine the default libpath from the value encoded in an empty executable.
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10211 (eval $ac_try) 2>&5
10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214 (exit $ac_status); }; } &&
10215 { ac_try='test -s conftest$ac_exeext'
10216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10217 (eval $ac_try) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); }; }; then
10222 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10224 # Check for a 64-bit object if we didn't find anything.
10225 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; }
10228 echo "$as_me: failed program was:" >&5
10229 sed 's/^/| /' conftest.$ac_ext >&5
10232 rm -f conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10236 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10238 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"
10240 if test "$host_cpu" = ia64; then
10241 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10242 allow_undefined_flag_CXX="-z nodefs"
10243 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"
10245 # Determine the default libpath from the value encoded in an empty executable.
10246 cat >conftest.$ac_ext <<_ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10263 (eval $ac_link) 2>conftest.er1
10265 grep -v '^ *+' conftest.er1 >conftest.err
10267 cat conftest.err >&5
10268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10269 (exit $ac_status); } &&
10270 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10272 (eval $ac_try) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); }; } &&
10276 { ac_try='test -s conftest$ac_exeext'
10277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10278 (eval $ac_try) 2>&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); }; }; then
10283 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10285 # Check for a 64-bit object if we didn't find anything.
10286 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; }
10289 echo "$as_me: failed program was:" >&5
10290 sed 's/^/| /' conftest.$ac_ext >&5
10293 rm -f conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10297 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10298 # Warning - without using the other run time loading flags,
10299 # -berok will link without error, but may produce a broken library.
10300 no_undefined_flag_CXX=' ${wl}-bernotok'
10301 allow_undefined_flag_CXX=' ${wl}-berok'
10302 # -bexpall does not export symbols beginning with underscore (_)
10303 always_export_symbols_CXX=yes
10304 # Exported symbols can be pulled into shared objects from archives
10305 whole_archive_flag_spec_CXX=' '
10306 archive_cmds_need_lc_CXX=yes
10307 # This is similar to how AIX traditionally builds it's shared libraries.
10308 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'
10313 case $cc_basename in
10315 # FIXME: insert proper C++ library support
10321 cygwin* | mingw* | pw32*)
10322 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10323 # as there is no search path for DLLs.
10324 hardcode_libdir_flag_spec_CXX='-L$libdir'
10325 allow_undefined_flag_CXX=unsupported
10326 always_export_symbols_CXX=no
10327 enable_shared_with_static_runtimes_CXX=yes
10329 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10330 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'
10331 # If the export-symbols file already is a .def file (1st line
10332 # is EXPORTS), use it as is; otherwise, prepend...
10333 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10334 cp $export_symbols $output_objdir/$soname.def;
10336 echo EXPORTS > $output_objdir/$soname.def;
10337 cat $export_symbols >> $output_objdir/$soname.def;
10339 $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'
10345 darwin* | rhapsody*)
10346 if test "$GXX" = yes; then
10347 archive_cmds_need_lc_CXX=no
10349 rhapsody* | darwin1.[012])
10350 allow_undefined_flag_CXX='-undefined suppress'
10353 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10354 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10356 case ${MACOSX_DEPLOYMENT_TARGET} in
10358 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10361 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10367 lt_int_apple_cc_single_mod=no
10368 output_verbose_link_cmd='echo'
10369 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10370 lt_int_apple_cc_single_mod=yes
10372 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10373 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10375 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'
10377 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10379 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10380 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10381 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}'
10383 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}'
10385 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}'
10386 hardcode_direct_CXX=no
10387 hardcode_automatic_CXX=yes
10388 hardcode_shlibpath_var_CXX=unsupported
10389 whole_archive_flag_spec_CXX='-all_load $convenience'
10390 link_all_deplibs_CXX=yes
10397 case $cc_basename in
10399 # FIXME: insert proper C++ library support
10403 # Green Hills C++ Compiler
10404 # FIXME: insert proper C++ library support
10408 # FIXME: insert proper C++ library support
10414 # C++ shared libraries reported to be fairly broken before switch to ELF
10418 archive_cmds_need_lc_CXX=no
10420 freebsd* | kfreebsd*-gnu)
10421 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10428 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10429 hardcode_libdir_separator_CXX=:
10430 export_dynamic_flag_spec_CXX='${wl}-E'
10431 hardcode_direct_CXX=yes
10432 hardcode_minus_L_CXX=yes # Not in the search PATH,
10433 # but as the default
10434 # location of the library.
10436 case $cc_basename in
10438 # FIXME: insert proper C++ library support
10442 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'
10443 # Commands to make compiler produce verbose output that lists
10444 # what "hidden" libraries, object files and flags are used when
10445 # linking a shared library.
10447 # There doesn't appear to be a way to prevent this compiler from
10448 # explicitly linking system object files so we need to strip them
10449 # from the output so that they don't get included in the library
10451 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'
10454 if test "$GXX" = yes; then
10455 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'
10457 # FIXME: insert proper C++ library support
10464 if test $with_gnu_ld = no; then
10465 case "$host_cpu" in
10467 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10468 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10469 hardcode_libdir_separator_CXX=:
10472 hardcode_libdir_flag_spec_CXX='-L$libdir'
10475 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10476 hardcode_libdir_separator_CXX=:
10477 export_dynamic_flag_spec_CXX='${wl}-E'
10481 case "$host_cpu" in
10483 hardcode_direct_CXX=no
10484 hardcode_shlibpath_var_CXX=no
10487 hardcode_direct_CXX=no
10488 hardcode_shlibpath_var_CXX=no
10489 hardcode_minus_L_CXX=yes # Not in the search PATH,
10490 # but as the default
10491 # location of the library.
10494 hardcode_direct_CXX=yes
10495 hardcode_minus_L_CXX=yes # Not in the search PATH,
10496 # but as the default
10497 # location of the library.
10501 case $cc_basename in
10503 # FIXME: insert proper C++ library support
10507 case "$host_cpu" in
10509 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10512 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10515 # Commands to make compiler produce verbose output that lists
10516 # what "hidden" libraries, object files and flags are used when
10517 # linking a shared library.
10519 # There doesn't appear to be a way to prevent this compiler from
10520 # explicitly linking system object files so we need to strip them
10521 # from the output so that they don't get included in the library
10523 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'
10526 if test "$GXX" = yes; then
10527 if test $with_gnu_ld = no; then
10528 case "$host_cpu" in
10530 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10533 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'
10538 # FIXME: insert proper C++ library support
10545 case $cc_basename in
10548 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'
10550 # Archives containing C++ object files must be created using
10551 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10552 # necessary to make sure instantiated templates are included
10554 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10557 if test "$GXX" = yes; then
10558 if test "$with_gnu_ld" = no; then
10559 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'
10561 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'
10564 link_all_deplibs_CXX=yes
10567 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator_CXX=:
10571 case $cc_basename in
10573 # Kuck and Associates, Inc. (KAI) C++ Compiler
10575 # KCC will only create a shared library if the output file
10576 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10577 # to its proper name (with version) after linking.
10578 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'
10579 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'
10580 # Commands to make compiler produce verbose output that lists
10581 # what "hidden" libraries, object files and flags are used when
10582 # linking a shared library.
10584 # There doesn't appear to be a way to prevent this compiler from
10585 # explicitly linking system object files so we need to strip them
10586 # from the output so that they don't get included in the library
10588 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'
10590 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10593 # Archives containing C++ object files must be created using
10594 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10595 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10600 archive_cmds_need_lc_CXX=no
10601 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10602 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'
10603 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10604 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10605 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10609 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10610 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'
10612 runpath_var=LD_RUN_PATH
10613 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10614 hardcode_libdir_separator_CXX=:
10616 # Commands to make compiler produce verbose output that lists
10617 # what "hidden" libraries, object files and flags are used when
10618 # linking a shared library.
10620 # There doesn't appear to be a way to prevent this compiler from
10621 # explicitly linking system object files so we need to strip them
10622 # from the output so that they don't get included in the library
10624 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'
10629 # FIXME: insert proper C++ library support
10633 # FIXME: insert proper C++ library support
10637 case $cc_basename in
10639 # FIXME: insert proper C++ library support
10643 # FIXME: insert proper C++ library support
10648 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10650 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10652 hardcode_libdir_flag_spec_CXX='-R$libdir'
10653 hardcode_direct_CXX=yes
10654 hardcode_shlibpath_var_CXX=no
10656 # Workaround some broken pre-1.5 toolchains
10657 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10660 case $cc_basename in
10662 # Kuck and Associates, Inc. (KAI) C++ Compiler
10664 # KCC will only create a shared library if the output file
10665 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10666 # to its proper name (with version) after linking.
10667 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'
10669 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10670 hardcode_libdir_separator_CXX=:
10672 # Archives containing C++ object files must be created using
10673 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10674 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10678 # Rational C++ 2.4.1
10679 # FIXME: insert proper C++ library support
10683 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10684 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'
10686 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10687 hardcode_libdir_separator_CXX=:
10689 # Commands to make compiler produce verbose output that lists
10690 # what "hidden" libraries, object files and flags are used when
10691 # linking a shared library.
10693 # There doesn't appear to be a way to prevent this compiler from
10694 # explicitly linking system object files so we need to strip them
10695 # from the output so that they don't get included in the library
10697 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'
10700 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10701 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10702 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'
10704 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10705 hardcode_libdir_separator_CXX=:
10707 # Commands to make compiler produce verbose output that lists
10708 # what "hidden" libraries, object files and flags are used when
10709 # linking a shared library.
10710 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10713 # FIXME: insert proper C++ library support
10720 case $cc_basename in
10722 # Kuck and Associates, Inc. (KAI) C++ Compiler
10724 # KCC will only create a shared library if the output file
10725 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10726 # to its proper name (with version) after linking.
10727 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'
10729 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10730 hardcode_libdir_separator_CXX=:
10732 # Archives containing C++ object files must be created using
10733 # the KAI C++ compiler.
10734 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10737 # Rational C++ 2.4.1
10738 # FIXME: insert proper C++ library support
10742 allow_undefined_flag_CXX=' -expect_unresolved \*'
10743 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'
10744 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10745 echo "-hidden">> $lib.exp~
10746 $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~
10749 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10750 hardcode_libdir_separator_CXX=:
10752 # Commands to make compiler produce verbose output that lists
10753 # what "hidden" libraries, object files and flags are used when
10754 # linking a shared library.
10756 # There doesn't appear to be a way to prevent this compiler from
10757 # explicitly linking system object files so we need to strip them
10758 # from the output so that they don't get included in the library
10760 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'
10763 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10764 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10765 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'
10767 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10768 hardcode_libdir_separator_CXX=:
10770 # Commands to make compiler produce verbose output that lists
10771 # what "hidden" libraries, object files and flags are used when
10772 # linking a shared library.
10773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10776 # FIXME: insert proper C++ library support
10783 # FIXME: insert proper C++ library support
10787 archive_cmds_need_lc_CXX=no
10788 case $cc_basename in
10790 # FIXME: insert proper C++ library support
10794 # FIXME: insert proper C++ library support
10800 case $cc_basename in
10803 # FIXME: insert proper C++ library support
10808 # FIXME: insert proper C++ library support
10812 # FIXME: insert proper C++ library support
10818 case $cc_basename in
10820 # Sun C++ 4.2, 5.x and Centerline C++
10821 no_undefined_flag_CXX=' -zdefs'
10822 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10823 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10824 $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'
10826 hardcode_libdir_flag_spec_CXX='-R$libdir'
10827 hardcode_shlibpath_var_CXX=no
10829 solaris2.0-5 | solaris2.0-5.*) ;;
10831 # The C++ compiler is used as linker so we must use $wl
10832 # flag to pass the commands to the underlying system
10834 # Supported since Solaris 2.6 (maybe 2.5.1?)
10835 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10838 link_all_deplibs_CXX=yes
10840 # Commands to make compiler produce verbose output that lists
10841 # what "hidden" libraries, object files and flags are used when
10842 # linking a shared library.
10844 # There doesn't appear to be a way to prevent this compiler from
10845 # explicitly linking system object files so we need to strip them
10846 # from the output so that they don't get included in the library
10848 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'
10850 # Archives containing C++ object files must be created using
10851 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10852 # necessary to make sure instantiated templates are included
10854 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10857 # Green Hills C++ Compiler
10858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10860 # The C++ compiler must be used to create the archive.
10861 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10864 # GNU C++ compiler with Solaris linker
10865 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10866 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10867 if $CC --version | grep -v '^2\.7' > /dev/null; then
10868 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10869 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10870 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10872 # Commands to make compiler produce verbose output that lists
10873 # what "hidden" libraries, object files and flags are used when
10874 # linking a shared library.
10875 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10877 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10879 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10880 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10881 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10883 # Commands to make compiler produce verbose output that lists
10884 # what "hidden" libraries, object files and flags are used when
10885 # linking a shared library.
10886 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10889 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10894 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10895 archive_cmds_need_lc_CXX=no
10898 case $cc_basename in
10900 # NonStop-UX NCC 3.20
10901 # FIXME: insert proper C++ library support
10905 # FIXME: insert proper C++ library support
10911 # FIXME: insert proper C++ library support
10915 # FIXME: insert proper C++ library support
10919 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10920 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10921 test "$ld_shlibs_CXX" = no && can_build_shared=no
10927 cat > conftest.$ac_ext <<EOF
10931 Foo (void) { a = 0; }
10937 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10938 (eval $ac_compile) 2>&5
10940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10941 (exit $ac_status); }; then
10942 # Parse the compiler output and extract the necessary
10943 # objects, libraries and library flags.
10945 # Sentinel used to keep track of whether or not we are before
10946 # the conftest object file.
10947 pre_test_object_deps_done=no
10949 # The `*' in the case matches for architectures that use `case' in
10950 # $output_verbose_cmd can trigger glob expansion during the loop
10951 # eval without this substitution.
10952 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10954 for p in `eval $output_verbose_link_cmd`; do
10958 # Some compilers place space between "-{L,R}" and the path.
10959 # Remove the space.
10960 if test $p = "-L" \
10961 || test $p = "-R"; then
10968 if test "$pre_test_object_deps_done" = no; then
10971 # Internal compiler library paths should come after those
10972 # provided the user. The postdeps already come after the
10973 # user supplied libs so there is no need to process them.
10974 if test -z "$compiler_lib_search_path_CXX"; then
10975 compiler_lib_search_path_CXX="${prev}${p}"
10977 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10980 # The "-l" case would never come before the object being
10981 # linked, so don't bother handling this case.
10984 if test -z "$postdeps_CXX"; then
10985 postdeps_CXX="${prev}${p}"
10987 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10993 # This assumes that the test object file only shows up
10994 # once in the compiler output.
10995 if test "$p" = "conftest.$objext"; then
10996 pre_test_object_deps_done=yes
11000 if test "$pre_test_object_deps_done" = no; then
11001 if test -z "$predep_objects_CXX"; then
11002 predep_objects_CXX="$p"
11004 predep_objects_CXX="$predep_objects_CXX $p"
11007 if test -z "$postdep_objects_CXX"; then
11008 postdep_objects_CXX="$p"
11010 postdep_objects_CXX="$postdep_objects_CXX $p"
11015 *) ;; # Ignore the rest.
11023 echo "libtool.m4: error: problem compiling CXX test program"
11026 $rm -f confest.$objext
11028 case " $postdeps_CXX " in
11029 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11032 lt_prog_compiler_wl_CXX=
11033 lt_prog_compiler_pic_CXX=
11034 lt_prog_compiler_static_CXX=
11036 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11037 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11039 # C++ specific cases for pic, static, wl, etc.
11040 if test "$GXX" = yes; then
11041 lt_prog_compiler_wl_CXX='-Wl,'
11042 lt_prog_compiler_static_CXX='-static'
11046 # All AIX code is PIC.
11047 if test "$host_cpu" = ia64; then
11048 # AIX 5 now supports IA64 processor
11049 lt_prog_compiler_static_CXX='-Bstatic'
11053 # FIXME: we need at least 68020 code to build shared libraries, but
11054 # adding the `-m68020' flag to GCC prevents building anything better,
11056 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11058 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11059 # PIC is the default for these OSes.
11061 mingw* | os2* | pw32*)
11062 # This hack is so that the source file can tell whether it is being
11063 # built for inclusion in a dll (and should export symbols for example).
11064 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11066 darwin* | rhapsody*)
11067 # PIC is the default on this platform
11068 # Common symbols not allowed in MH_DYLIB files
11069 lt_prog_compiler_pic_CXX='-fno-common'
11072 # DJGPP does not support shared libraries at all
11073 lt_prog_compiler_pic_CXX=
11076 if test -d /usr/nec; then
11077 lt_prog_compiler_pic_CXX=-Kconform_pic
11081 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11082 # not for PA HP-UX.
11083 case "$host_cpu" in
11087 lt_prog_compiler_pic_CXX='-fPIC'
11092 lt_prog_compiler_pic_CXX='-fPIC'
11098 # All AIX code is PIC.
11099 if test "$host_cpu" = ia64; then
11100 # AIX 5 now supports IA64 processor
11101 lt_prog_compiler_static_CXX='-Bstatic'
11103 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11107 case $cc_basename in
11109 # Green Hills C++ Compiler
11110 # _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"
11115 case $cc_basename in
11117 lt_prog_compiler_pic_CXX='-KPIC'
11120 # Green Hills C++ Compiler
11121 lt_prog_compiler_pic_CXX='-pic'
11127 freebsd* | kfreebsd*-gnu)
11128 # FreeBSD uses GNU C++
11130 hpux9* | hpux10* | hpux11*)
11131 case $cc_basename in
11133 lt_prog_compiler_wl_CXX='-Wl,'
11134 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11135 if test "$host_cpu" != ia64; then
11136 lt_prog_compiler_pic_CXX='+Z'
11140 lt_prog_compiler_wl_CXX='-Wl,'
11141 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
11142 case "$host_cpu" in
11147 lt_prog_compiler_pic_CXX='+Z'
11155 irix5* | irix6* | nonstopux*)
11156 case $cc_basename in
11158 lt_prog_compiler_wl_CXX='-Wl,'
11159 lt_prog_compiler_static_CXX='-non_shared'
11160 # CC pic flag -KPIC is the default.
11167 case $cc_basename in
11170 lt_prog_compiler_wl_CXX='--backend -Wl,'
11171 lt_prog_compiler_pic_CXX='-fPIC'
11175 lt_prog_compiler_wl_CXX='-Wl,'
11176 lt_prog_compiler_pic_CXX='-KPIC'
11177 lt_prog_compiler_static_CXX='-static'
11181 # Make sure the PIC flag is empty. It appears that all Alpha
11182 # Linux and Compaq Tru64 Unix objects are PIC.
11183 lt_prog_compiler_pic_CXX=
11184 lt_prog_compiler_static_CXX='-non_shared'
11195 case $cc_basename in
11197 lt_prog_compiler_pic_CXX='-W c,exportall'
11203 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
11205 osf3* | osf4* | osf5*)
11206 case $cc_basename in
11208 lt_prog_compiler_wl_CXX='--backend -Wl,'
11211 # Rational C++ 2.4.1
11212 lt_prog_compiler_pic_CXX='-pic'
11215 # Digital/Compaq C++
11216 lt_prog_compiler_wl_CXX='-Wl,'
11217 # Make sure the PIC flag is empty. It appears that all Alpha
11218 # Linux and Compaq Tru64 Unix objects are PIC.
11219 lt_prog_compiler_pic_CXX=
11220 lt_prog_compiler_static_CXX='-non_shared'
11229 case $cc_basename in
11231 lt_prog_compiler_pic_CXX='-fPIC'
11238 case $cc_basename in
11240 # Sun C++ 4.2, 5.x and Centerline C++
11241 lt_prog_compiler_pic_CXX='-KPIC'
11242 lt_prog_compiler_static_CXX='-Bstatic'
11243 lt_prog_compiler_wl_CXX='-Qoption ld '
11246 # Green Hills C++ Compiler
11247 lt_prog_compiler_pic_CXX='-PIC'
11254 case $cc_basename in
11257 lt_prog_compiler_pic_CXX='-pic'
11258 lt_prog_compiler_static_CXX='-Bstatic'
11262 lt_prog_compiler_pic_CXX='-pic'
11269 case $cc_basename in
11271 # NonStop-UX NCC 3.20
11272 lt_prog_compiler_pic_CXX='-KPIC'
11283 lt_prog_compiler_can_build_shared_CXX=no
11288 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11289 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11292 # Check to make sure the PIC flag actually works.
11294 if test -n "$lt_prog_compiler_pic_CXX"; then
11296 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11297 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11298 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11299 echo $ECHO_N "(cached) $ECHO_C" >&6
11301 lt_prog_compiler_pic_works_CXX=no
11302 ac_outfile=conftest.$ac_objext
11303 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11304 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11305 # Insert the option either (1) after the last *FLAGS variable, or
11306 # (2) before a word containing "conftest.", or (3) at the end.
11307 # Note that $ac_compile itself does not contain backslashes and begins
11308 # with a dollar sign (not a hyphen), so the echo should work correctly.
11309 # The option is referenced via a variable to avoid confusing sed.
11310 lt_compile=`echo "$ac_compile" | $SED \
11311 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11313 -e 's:$: $lt_compiler_flag:'`
11314 (eval echo "\"\$as_me:11314: $lt_compile\"" >&5)
11315 (eval "$lt_compile" 2>conftest.err)
11317 cat conftest.err >&5
11318 echo "$as_me:11318: \$? = $ac_status" >&5
11319 if (exit $ac_status) && test -s "$ac_outfile"; then
11320 # The compiler can only warn and ignore the option if not recognized
11321 # So say no if there are warnings
11322 if test ! -s conftest.err; then
11323 lt_prog_compiler_pic_works_CXX=yes
11329 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11330 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11332 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11333 case $lt_prog_compiler_pic_CXX in
11335 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11338 lt_prog_compiler_pic_CXX=
11339 lt_prog_compiler_can_build_shared_CXX=no
11344 # For platforms which do not support PIC, -DPIC is meaningless:
11346 lt_prog_compiler_pic_CXX=
11349 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11353 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11354 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11355 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11356 echo $ECHO_N "(cached) $ECHO_C" >&6
11358 lt_cv_prog_compiler_c_o_CXX=no
11359 $rm -r conftest 2>/dev/null
11363 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11365 lt_compiler_flag="-o out/conftest2.$ac_objext"
11366 # Insert the option either (1) after the last *FLAGS variable, or
11367 # (2) before a word containing "conftest.", or (3) at the end.
11368 # Note that $ac_compile itself does not contain backslashes and begins
11369 # with a dollar sign (not a hyphen), so the echo should work correctly.
11370 lt_compile=`echo "$ac_compile" | $SED \
11371 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11372 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11373 -e 's:$: $lt_compiler_flag:'`
11374 (eval echo "\"\$as_me:11374: $lt_compile\"" >&5)
11375 (eval "$lt_compile" 2>out/conftest.err)
11377 cat out/conftest.err >&5
11378 echo "$as_me:11378: \$? = $ac_status" >&5
11379 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11381 # The compiler can only warn and ignore the option if not recognized
11382 # So say no if there are warnings
11383 if test ! -s out/conftest.err; then
11384 lt_cv_prog_compiler_c_o_CXX=yes
11389 # SGI C++ compiler will create directory out/ii_files/ for
11390 # template instantiation
11391 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11392 $rm out/* && rmdir out
11398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11399 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11402 hard_links="nottested"
11403 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11404 # do not overwrite the value of need_locks provided by the user
11405 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11406 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11409 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11411 ln conftest.a conftest.b 2>&5 || hard_links=no
11412 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11413 echo "$as_me:$LINENO: result: $hard_links" >&5
11414 echo "${ECHO_T}$hard_links" >&6
11415 if test "$hard_links" = no; then
11416 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11417 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11424 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11425 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11427 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11430 # If we're using GNU nm, then we don't want the "-C" option.
11431 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11432 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11433 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'
11435 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'
11439 export_symbols_cmds_CXX="$ltdll_cmds"
11442 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11445 link_all_deplibs_CXX=no
11448 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11452 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11453 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11454 test "$ld_shlibs_CXX" = no && can_build_shared=no
11456 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11457 if test "$GCC" = yes; then
11458 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11462 # Do we need to explicitly link libc?
11464 case "x$archive_cmds_need_lc_CXX" in
11466 # Assume -lc should be added
11467 archive_cmds_need_lc_CXX=yes
11469 if test "$enable_shared" = yes && test "$GCC" = yes; then
11470 case $archive_cmds_CXX in
11472 # FIXME: we may have to deal with multi-command sequences.
11475 # Test whether the compiler implicitly links with -lc since on some
11476 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11477 # to ld, don't add -lc before -lgcc.
11478 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11479 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11481 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11483 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11484 (eval $ac_compile) 2>&5
11486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487 (exit $ac_status); } 2>conftest.err; then
11490 libobjs=conftest.$ac_objext
11492 wl=$lt_prog_compiler_wl_CXX
11498 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11499 allow_undefined_flag_CXX=
11500 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11501 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); }
11506 archive_cmds_need_lc_CXX=no
11508 archive_cmds_need_lc_CXX=yes
11510 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11512 cat conftest.err 1>&5
11515 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11516 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11523 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11524 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11525 library_names_spec=
11526 libname_spec='lib$name'
11530 postuninstall_cmds=
11534 shlibpath_overrides_runpath=unknown
11536 dynamic_linker="$host_os ld.so"
11537 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11538 if test "$GCC" = yes; then
11539 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11540 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11541 # if the path contains ";" then we assume it to be the separator
11542 # otherwise default to the standard path separator (i.e. ":") - it is
11543 # assumed that no part of a normal pathname contains ";" but that should
11544 # okay in the real world where ";" in dirpaths is itself problematic.
11545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11547 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11550 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11552 need_lib_prefix=unknown
11553 hardcode_into_libs=no
11555 # when you set need_version to no, make sure it does not cause -set_version
11556 # flags to be left without arguments
11557 need_version=unknown
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11563 shlibpath_var=LIBPATH
11565 # AIX 3 has no versioning support, so we append a major version to the name.
11566 soname_spec='${libname}${release}${shared_ext}$major'
11573 hardcode_into_libs=yes
11574 if test "$host_cpu" = ia64; then
11575 # AIX 5 supports IA64
11576 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11577 shlibpath_var=LD_LIBRARY_PATH
11579 # With GCC up to 2.95.x, collect2 would create an import file
11580 # for dependence libraries. The import file would start with
11581 # the line `#! .'. This would cause the generated library to
11582 # depend on `.', always an invalid library. This was fixed in
11583 # development snapshots of GCC prior to 3.0.
11585 aix4 | aix4.[01] | aix4.[01].*)
11586 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11588 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11591 can_build_shared=no
11595 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11596 # soname into executable. Probably we can add versioning support to
11597 # collect2, so additional links can be useful in future.
11598 if test "$aix_use_runtimelinking" = yes; then
11599 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11600 # instead of lib<name>.a to let people know that these are not
11601 # typical AIX shared libraries.
11602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11604 # We preserve .a as extension for shared libraries through AIX4.2
11605 # and later when we are not doing run time linking.
11606 library_names_spec='${libname}${release}.a $libname.a'
11607 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LIBPATH
11614 library_names_spec='$libname.ixlibrary $libname.a'
11615 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11616 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'
11620 library_names_spec='${libname}${shared_ext}'
11621 dynamic_linker="$host_os ld.so"
11622 shlibpath_var=LIBRARY_PATH
11628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11629 soname_spec='${libname}${release}${shared_ext}$major'
11630 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11631 shlibpath_var=LD_LIBRARY_PATH
11632 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11633 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11634 # the default ld.so.conf also contains /usr/contrib/lib and
11635 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11636 # libtool to hard-code these into programs
11639 cygwin* | mingw* | pw32*)
11640 version_type=windows
11645 case $GCC,$host_os in
11646 yes,cygwin* | yes,mingw* | yes,pw32*)
11647 library_names_spec='$libname.dll.a'
11648 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11649 postinstall_cmds='base_file=`basename \${file}`~
11650 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11651 dldir=$destdir/`dirname \$dlpath`~
11652 test -d \$dldir || mkdir -p \$dldir~
11653 $install_prog $dir/$dlname \$dldir/$dlname'
11654 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11655 dlpath=$dir/\$dldll~
11657 shlibpath_overrides_runpath=yes
11661 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11662 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11663 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11666 # MinGW DLLs use traditional 'lib' prefix
11667 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11668 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11669 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11670 # It is most probably a Windows format PATH printed by
11671 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11672 # path with ; separators, and with drive letters. We can handle the
11673 # drive letters (cygwin fileutils understands them), so leave them,
11674 # especially as we might pass files found there to a mingw objdump,
11675 # which wouldn't understand a cygwinified path. Ahh.
11676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11678 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11682 # pw32 DLLs use 'pw' prefix rather than 'lib'
11683 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11689 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11692 dynamic_linker='Win32 ld.exe'
11693 # FIXME: first we should search . and the directory the executable is in
11697 darwin* | rhapsody*)
11698 dynamic_linker="$host_os dyld"
11699 version_type=darwin
11702 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11703 soname_spec='${libname}${release}${major}$shared_ext'
11704 shlibpath_overrides_runpath=yes
11705 shlibpath_var=DYLD_LIBRARY_PATH
11706 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11707 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11708 if test "$GCC" = yes; then
11709 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"`
11711 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11713 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11721 soname_spec='${libname}${release}${shared_ext}$major'
11722 shlibpath_var=LD_LIBRARY_PATH
11733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11735 shlibpath_var=LD_LIBRARY_PATH
11736 shlibpath_overrides_runpath=no
11737 hardcode_into_libs=yes
11738 dynamic_linker='GNU ld.so'
11742 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11743 version_type=freebsd-$objformat
11744 case $version_type in
11746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11755 shlibpath_var=LD_LIBRARY_PATH
11758 shlibpath_overrides_runpath=yes
11760 freebsd3.01* | freebsdelf3.01*)
11761 shlibpath_overrides_runpath=yes
11762 hardcode_into_libs=yes
11765 shlibpath_overrides_runpath=no
11766 hardcode_into_libs=yes
11775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11776 soname_spec='${libname}${release}${shared_ext}$major'
11777 shlibpath_var=LD_LIBRARY_PATH
11778 hardcode_into_libs=yes
11781 hpux9* | hpux10* | hpux11*)
11782 # Give a soname corresponding to the major version so that dld.sl refuses to
11783 # link against other versions.
11787 case "$host_cpu" in
11790 hardcode_into_libs=yes
11791 dynamic_linker="$host_os dld.so"
11792 shlibpath_var=LD_LIBRARY_PATH
11793 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11795 soname_spec='${libname}${release}${shared_ext}$major'
11796 if test "X$HPUX_IA64_MODE" = X32; then
11797 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11799 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11801 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11805 hardcode_into_libs=yes
11806 dynamic_linker="$host_os dld.sl"
11807 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11812 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11816 dynamic_linker="$host_os dld.sl"
11817 shlibpath_var=SHLIB_PATH
11818 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11820 soname_spec='${libname}${release}${shared_ext}$major'
11823 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11824 postinstall_cmds='chmod 555 $lib'
11827 irix5* | irix6* | nonstopux*)
11829 nonstopux*) version_type=nonstopux ;;
11831 if test "$lt_cv_prog_gnu_ld" = yes; then
11839 soname_spec='${libname}${release}${shared_ext}$major'
11840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11842 irix5* | nonstopux*)
11843 libsuff= shlibsuff=
11846 case $LD in # libtool.m4 will add one of these switches to LD
11847 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11848 libsuff= shlibsuff= libmagic=32-bit;;
11849 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11850 libsuff=32 shlibsuff=N32 libmagic=N32;;
11851 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11852 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11853 *) libsuff= shlibsuff= libmagic=never-match;;
11857 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11858 shlibpath_overrides_runpath=no
11859 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11860 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11861 hardcode_into_libs=yes
11864 # No shared lib support for Linux oldld, aout, or coff.
11865 linux*oldld* | linux*aout* | linux*coff*)
11869 # This must be Linux ELF.
11874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11875 soname_spec='${libname}${release}${shared_ext}$major'
11876 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11877 shlibpath_var=LD_LIBRARY_PATH
11878 shlibpath_overrides_runpath=no
11879 # This implies no fast_install, which is unacceptable.
11880 # Some rework will be needed to allow for fast_install
11881 # before this can be enabled.
11882 hardcode_into_libs=yes
11884 # Append ld.so.conf contents to the search path
11885 if test -f /etc/ld.so.conf; then
11886 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11887 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11890 # We used to test for /lib/ld.so.1 and disable shared libraries on
11891 # powerpc, because MkLinux only supported shared libraries with the
11892 # GNU dynamic linker. Since this was broken with cross compilers,
11893 # most powerpc-linux boxes support dynamic linking these days and
11894 # people can always --disable-shared, the test was removed, and we
11895 # assume the GNU/Linux dynamic linker is in use.
11896 dynamic_linker='GNU/Linux ld.so'
11903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11904 soname_spec='${libname}${release}${shared_ext}$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=no
11907 hardcode_into_libs=yes
11908 dynamic_linker='NetBSD ld.elf_so'
11915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11916 soname_spec='${libname}${release}${shared_ext}$major'
11917 shlibpath_var=LD_LIBRARY_PATH
11918 shlibpath_overrides_runpath=no
11919 hardcode_into_libs=yes
11920 dynamic_linker='GNU ld.so'
11927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11930 dynamic_linker='NetBSD (a.out) ld.so'
11932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11933 soname_spec='${libname}${release}${shared_ext}$major'
11934 dynamic_linker='NetBSD ld.elf_so'
11936 shlibpath_var=LD_LIBRARY_PATH
11937 shlibpath_overrides_runpath=yes
11938 hardcode_into_libs=yes
11943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11944 shlibpath_var=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath=yes
11952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11953 soname_spec='${libname}${release}${shared_ext}$major'
11954 shlibpath_var=LD_LIBRARY_PATH
11955 shlibpath_overrides_runpath=yes
11962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11963 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11964 shlibpath_var=LD_LIBRARY_PATH
11965 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11967 openbsd2.[89] | openbsd2.[89].*)
11968 shlibpath_overrides_runpath=no
11971 shlibpath_overrides_runpath=yes
11975 shlibpath_overrides_runpath=yes
11980 libname_spec='$name'
11983 library_names_spec='$libname${shared_ext} $libname.a'
11984 dynamic_linker='OS/2 ld.exe'
11985 shlibpath_var=LIBPATH
11988 osf3* | osf4* | osf5*)
11992 soname_spec='${libname}${release}${shared_ext}$major'
11993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11996 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12001 soname_spec='${libname}${release}${shared_ext}$major'
12002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12003 shlibpath_var=LD_LIBRARY_PATH
12010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12011 soname_spec='${libname}${release}${shared_ext}$major'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=yes
12014 hardcode_into_libs=yes
12015 # ldd complains unless libraries are executable
12016 postinstall_cmds='chmod +x $lib'
12021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12022 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12023 shlibpath_var=LD_LIBRARY_PATH
12024 shlibpath_overrides_runpath=yes
12025 if test "$with_gnu_ld" = yes; then
12031 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12034 soname_spec='${libname}${release}${shared_ext}$major'
12035 shlibpath_var=LD_LIBRARY_PATH
12036 case $host_vendor in
12038 shlibpath_overrides_runpath=no
12040 export_dynamic_flag_spec='${wl}-Blargedynsym'
12041 runpath_var=LD_RUN_PATH
12049 shlibpath_overrides_runpath=no
12050 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12056 if test -d /usr/nec ;then
12058 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12059 soname_spec='$libname${shared_ext}.$major'
12060 shlibpath_var=LD_LIBRARY_PATH
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 soname_spec='${libname}${release}${shared_ext}$major'
12068 shlibpath_var=LD_LIBRARY_PATH
12075 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12076 echo "${ECHO_T}$dynamic_linker" >&6
12077 test "$dynamic_linker" = no && can_build_shared=no
12079 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12080 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12081 hardcode_action_CXX=
12082 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12083 test -n "$runpath_var CXX" || \
12084 test "X$hardcode_automatic_CXX"="Xyes" ; then
12086 # We can hardcode non-existant directories.
12087 if test "$hardcode_direct_CXX" != no &&
12088 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12089 # have to relink, otherwise we might link with an installed library
12090 # when we should be linking with a yet-to-be-installed one
12091 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12092 test "$hardcode_minus_L_CXX" != no; then
12093 # Linking always hardcodes the temporary library directory.
12094 hardcode_action_CXX=relink
12096 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12097 hardcode_action_CXX=immediate
12100 # We cannot hardcode anything, or else we can only hardcode existing
12102 hardcode_action_CXX=unsupported
12104 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12105 echo "${ECHO_T}$hardcode_action_CXX" >&6
12107 if test "$hardcode_action_CXX" = relink; then
12108 # Fast installation is not supported
12109 enable_fast_install=no
12110 elif test "$shlibpath_overrides_runpath" = yes ||
12111 test "$enable_shared" = no; then
12112 # Fast installation is not necessary
12113 enable_fast_install=needless
12118 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
12119 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
12120 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
12121 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12122 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12123 echo "$as_me:$LINENO: result: yes" >&5
12124 echo "${ECHO_T}yes" >&6
12126 # FIXME - insert some real tests, host_os isn't really good enough
12129 if test -n "$STRIP" ; then
12130 striplib="$STRIP -x"
12131 echo "$as_me:$LINENO: result: yes" >&5
12132 echo "${ECHO_T}yes" >&6
12134 echo "$as_me:$LINENO: result: no" >&5
12135 echo "${ECHO_T}no" >&6
12139 echo "$as_me:$LINENO: result: no" >&5
12140 echo "${ECHO_T}no" >&6
12145 if test "x$enable_dlopen" != xyes; then
12146 enable_dlopen=unknown
12147 enable_dlopen_self=unknown
12148 enable_dlopen_self_static=unknown
12155 lt_cv_dlopen="load_add_on"
12157 lt_cv_dlopen_self=yes
12161 lt_cv_dlopen="LoadLibrary"
12166 lt_cv_dlopen="dlopen"
12171 # if libdl is installed we need to link against it
12172 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS=$LIBS
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12186 /* Override any gcc2 internal prototype to avoid an error. */
12190 /* We use char because int might match the return type of a gcc2
12191 builtin and then its argument prototype would still apply. */
12201 rm -f conftest.$ac_objext conftest$ac_exeext
12202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12203 (eval $ac_link) 2>conftest.er1
12205 grep -v '^ *+' conftest.er1 >conftest.err
12207 cat conftest.err >&5
12208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12209 (exit $ac_status); } &&
12210 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12212 (eval $ac_try) 2>&5
12214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12215 (exit $ac_status); }; } &&
12216 { ac_try='test -s conftest$ac_exeext'
12217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12218 (eval $ac_try) 2>&5
12220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12221 (exit $ac_status); }; }; then
12222 ac_cv_lib_dl_dlopen=yes
12224 echo "$as_me: failed program was:" >&5
12225 sed 's/^/| /' conftest.$ac_ext >&5
12227 ac_cv_lib_dl_dlopen=no
12229 rm -f conftest.err conftest.$ac_objext \
12230 conftest$ac_exeext conftest.$ac_ext
12231 LIBS=$ac_check_lib_save_LIBS
12233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12235 if test $ac_cv_lib_dl_dlopen = yes; then
12236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12239 lt_cv_dlopen="dyld"
12241 lt_cv_dlopen_self=yes
12248 echo "$as_me:$LINENO: checking for shl_load" >&5
12249 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12250 if test "${ac_cv_func_shl_load+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12259 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12261 #define shl_load innocuous_shl_load
12263 /* System header to define __stub macros and hopefully few prototypes,
12264 which can conflict with char shl_load (); below.
12265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12266 <limits.h> exists even on freestanding compilers. */
12269 # include <limits.h>
12271 # include <assert.h>
12276 /* Override any gcc2 internal prototype to avoid an error. */
12281 /* We use char because int might match the return type of a gcc2
12282 builtin and then its argument prototype would still apply. */
12284 /* The GNU C library defines this for functions which it implements
12285 to always fail with ENOSYS. Some functions are actually named
12286 something starting with __ and the normal name is an alias. */
12287 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12290 char (*f) () = shl_load;
12299 return f != shl_load;
12304 rm -f conftest.$ac_objext conftest$ac_exeext
12305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12306 (eval $ac_link) 2>conftest.er1
12308 grep -v '^ *+' conftest.er1 >conftest.err
12310 cat conftest.err >&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); } &&
12313 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12315 (eval $ac_try) 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; } &&
12319 { ac_try='test -s conftest$ac_exeext'
12320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12321 (eval $ac_try) 2>&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); }; }; then
12325 ac_cv_func_shl_load=yes
12327 echo "$as_me: failed program was:" >&5
12328 sed 's/^/| /' conftest.$ac_ext >&5
12330 ac_cv_func_shl_load=no
12332 rm -f conftest.err conftest.$ac_objext \
12333 conftest$ac_exeext conftest.$ac_ext
12335 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12336 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12337 if test $ac_cv_func_shl_load = yes; then
12338 lt_cv_dlopen="shl_load"
12340 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12341 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12342 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_check_lib_save_LIBS=$LIBS
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12354 /* Override any gcc2 internal prototype to avoid an error. */
12358 /* We use char because int might match the return type of a gcc2
12359 builtin and then its argument prototype would still apply. */
12369 rm -f conftest.$ac_objext conftest$ac_exeext
12370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12371 (eval $ac_link) 2>conftest.er1
12373 grep -v '^ *+' conftest.er1 >conftest.err
12375 cat conftest.err >&5
12376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12377 (exit $ac_status); } &&
12378 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12380 (eval $ac_try) 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; } &&
12384 { ac_try='test -s conftest$ac_exeext'
12385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12386 (eval $ac_try) 2>&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); }; }; then
12390 ac_cv_lib_dld_shl_load=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.$ac_ext >&5
12395 ac_cv_lib_dld_shl_load=no
12397 rm -f conftest.err conftest.$ac_objext \
12398 conftest$ac_exeext conftest.$ac_ext
12399 LIBS=$ac_check_lib_save_LIBS
12401 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12402 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12403 if test $ac_cv_lib_dld_shl_load = yes; then
12404 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12406 echo "$as_me:$LINENO: checking for dlopen" >&5
12407 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12408 if test "${ac_cv_func_dlopen+set}" = set; then
12409 echo $ECHO_N "(cached) $ECHO_C" >&6
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12419 #define dlopen innocuous_dlopen
12421 /* System header to define __stub macros and hopefully few prototypes,
12422 which can conflict with char dlopen (); below.
12423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12424 <limits.h> exists even on freestanding compilers. */
12427 # include <limits.h>
12429 # include <assert.h>
12434 /* Override any gcc2 internal prototype to avoid an error. */
12439 /* We use char because int might match the return type of a gcc2
12440 builtin and then its argument prototype would still apply. */
12442 /* The GNU C library defines this for functions which it implements
12443 to always fail with ENOSYS. Some functions are actually named
12444 something starting with __ and the normal name is an alias. */
12445 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12448 char (*f) () = dlopen;
12457 return f != dlopen;
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12464 (eval $ac_link) 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12473 (eval $ac_try) 2>&5
12475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12476 (exit $ac_status); }; } &&
12477 { ac_try='test -s conftest$ac_exeext'
12478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12479 (eval $ac_try) 2>&5
12481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12482 (exit $ac_status); }; }; then
12483 ac_cv_func_dlopen=yes
12485 echo "$as_me: failed program was:" >&5
12486 sed 's/^/| /' conftest.$ac_ext >&5
12488 ac_cv_func_dlopen=no
12490 rm -f conftest.err conftest.$ac_objext \
12491 conftest$ac_exeext conftest.$ac_ext
12493 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12494 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12495 if test $ac_cv_func_dlopen = yes; then
12496 lt_cv_dlopen="dlopen"
12498 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12499 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12500 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12501 echo $ECHO_N "(cached) $ECHO_C" >&6
12503 ac_check_lib_save_LIBS=$LIBS
12505 cat >conftest.$ac_ext <<_ACEOF
12508 cat confdefs.h >>conftest.$ac_ext
12509 cat >>conftest.$ac_ext <<_ACEOF
12510 /* end confdefs.h. */
12512 /* Override any gcc2 internal prototype to avoid an error. */
12516 /* We use char because int might match the return type of a gcc2
12517 builtin and then its argument prototype would still apply. */
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12529 (eval $ac_link) 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12538 (eval $ac_try) 2>&5
12540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12541 (exit $ac_status); }; } &&
12542 { ac_try='test -s conftest$ac_exeext'
12543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12544 (eval $ac_try) 2>&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); }; }; then
12548 ac_cv_lib_dl_dlopen=yes
12550 echo "$as_me: failed program was:" >&5
12551 sed 's/^/| /' conftest.$ac_ext >&5
12553 ac_cv_lib_dl_dlopen=no
12555 rm -f conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12559 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12560 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12561 if test $ac_cv_lib_dl_dlopen = yes; then
12562 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12564 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12565 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12566 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12567 echo $ECHO_N "(cached) $ECHO_C" >&6
12569 ac_check_lib_save_LIBS=$LIBS
12570 LIBS="-lsvld $LIBS"
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12578 /* Override any gcc2 internal prototype to avoid an error. */
12582 /* We use char because int might match the return type of a gcc2
12583 builtin and then its argument prototype would still apply. */
12593 rm -f conftest.$ac_objext conftest$ac_exeext
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>conftest.er1
12597 grep -v '^ *+' conftest.er1 >conftest.err
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } &&
12602 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12604 (eval $ac_try) 2>&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); }; } &&
12608 { ac_try='test -s conftest$ac_exeext'
12609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12610 (eval $ac_try) 2>&5
12612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12613 (exit $ac_status); }; }; then
12614 ac_cv_lib_svld_dlopen=yes
12616 echo "$as_me: failed program was:" >&5
12617 sed 's/^/| /' conftest.$ac_ext >&5
12619 ac_cv_lib_svld_dlopen=no
12621 rm -f conftest.err conftest.$ac_objext \
12622 conftest$ac_exeext conftest.$ac_ext
12623 LIBS=$ac_check_lib_save_LIBS
12625 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12626 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12627 if test $ac_cv_lib_svld_dlopen = yes; then
12628 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12630 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12631 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12632 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12633 echo $ECHO_N "(cached) $ECHO_C" >&6
12635 ac_check_lib_save_LIBS=$LIBS
12637 cat >conftest.$ac_ext <<_ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12644 /* Override any gcc2 internal prototype to avoid an error. */
12648 /* We use char because int might match the return type of a gcc2
12649 builtin and then its argument prototype would still apply. */
12659 rm -f conftest.$ac_objext conftest$ac_exeext
12660 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12661 (eval $ac_link) 2>conftest.er1
12663 grep -v '^ *+' conftest.er1 >conftest.err
12665 cat conftest.err >&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); } &&
12668 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12670 (eval $ac_try) 2>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; } &&
12674 { ac_try='test -s conftest$ac_exeext'
12675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12676 (eval $ac_try) 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; }; then
12680 ac_cv_lib_dld_dld_link=yes
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.$ac_ext >&5
12685 ac_cv_lib_dld_dld_link=no
12687 rm -f conftest.err conftest.$ac_objext \
12688 conftest$ac_exeext conftest.$ac_ext
12689 LIBS=$ac_check_lib_save_LIBS
12691 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12692 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12693 if test $ac_cv_lib_dld_dld_link = yes; then
12694 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12715 if test "x$lt_cv_dlopen" != xno; then
12721 case $lt_cv_dlopen in
12723 save_CPPFLAGS="$CPPFLAGS"
12724 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12726 save_LDFLAGS="$LDFLAGS"
12727 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12730 LIBS="$lt_cv_dlopen_libs $LIBS"
12732 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12733 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12734 if test "${lt_cv_dlopen_self+set}" = set; then
12735 echo $ECHO_N "(cached) $ECHO_C" >&6
12737 if test "$cross_compiling" = yes; then :
12738 lt_cv_dlopen_self=cross
12740 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12741 lt_status=$lt_dlunknown
12742 cat > conftest.$ac_ext <<EOF
12743 #line 12743 "configure"
12744 #include "confdefs.h"
12753 # define LT_DLGLOBAL RTLD_GLOBAL
12756 # define LT_DLGLOBAL DL_GLOBAL
12758 # define LT_DLGLOBAL 0
12762 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12763 find out it does not work in some platform. */
12764 #ifndef LT_DLLAZY_OR_NOW
12766 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12769 # define LT_DLLAZY_OR_NOW DL_LAZY
12772 # define LT_DLLAZY_OR_NOW RTLD_NOW
12775 # define LT_DLLAZY_OR_NOW DL_NOW
12777 # define LT_DLLAZY_OR_NOW 0
12785 extern "C" void exit (int);
12788 void fnord() { int i=42;}
12791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12792 int status = $lt_dlunknown;
12796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12797 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12798 /* dlclose (self); */
12804 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12805 (eval $ac_link) 2>&5
12807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12808 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12809 (./conftest; exit; ) 2>/dev/null
12811 case x$lt_status in
12812 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12813 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12814 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12817 # compilation failed
12818 lt_cv_dlopen_self=no
12825 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12826 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12828 if test "x$lt_cv_dlopen_self" = xyes; then
12829 LDFLAGS="$LDFLAGS $link_static_flag"
12830 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12831 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12832 if test "${lt_cv_dlopen_self_static+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 if test "$cross_compiling" = yes; then :
12836 lt_cv_dlopen_self_static=cross
12838 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12839 lt_status=$lt_dlunknown
12840 cat > conftest.$ac_ext <<EOF
12841 #line 12841 "configure"
12842 #include "confdefs.h"
12851 # define LT_DLGLOBAL RTLD_GLOBAL
12854 # define LT_DLGLOBAL DL_GLOBAL
12856 # define LT_DLGLOBAL 0
12860 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12861 find out it does not work in some platform. */
12862 #ifndef LT_DLLAZY_OR_NOW
12864 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12867 # define LT_DLLAZY_OR_NOW DL_LAZY
12870 # define LT_DLLAZY_OR_NOW RTLD_NOW
12873 # define LT_DLLAZY_OR_NOW DL_NOW
12875 # define LT_DLLAZY_OR_NOW 0
12883 extern "C" void exit (int);
12886 void fnord() { int i=42;}
12889 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12890 int status = $lt_dlunknown;
12894 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12895 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12896 /* dlclose (self); */
12902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12903 (eval $ac_link) 2>&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12906 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12907 (./conftest; exit; ) 2>/dev/null
12909 case x$lt_status in
12910 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12911 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12912 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12915 # compilation failed
12916 lt_cv_dlopen_self_static=no
12923 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12924 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12927 CPPFLAGS="$save_CPPFLAGS"
12928 LDFLAGS="$save_LDFLAGS"
12933 case $lt_cv_dlopen_self in
12934 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12935 *) enable_dlopen_self=unknown ;;
12938 case $lt_cv_dlopen_self_static in
12939 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12940 *) enable_dlopen_self_static=unknown ;;
12945 # The else clause should only fire when bootstrapping the
12946 # libtool distribution, otherwise you forgot to ship ltmain.sh
12947 # with your package, and you will get complaints that there are
12948 # no rules to generate ltmain.sh.
12949 if test -f "$ltmain"; then
12950 # See if we are running on zsh, and set the options which allow our commands through
12951 # without removal of \ escapes.
12952 if test -n "${ZSH_VERSION+set}" ; then
12953 setopt NO_GLOB_SUBST
12955 # Now quote all the things that may contain metacharacters while being
12956 # careful not to overquote the AC_SUBSTed values. We take copies of the
12957 # variables and quote the copies for generation of the libtool script.
12958 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12960 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12961 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12962 deplibs_check_method reload_flag reload_cmds need_locks \
12963 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12964 lt_cv_sys_global_symbol_to_c_name_address \
12965 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12966 old_postinstall_cmds old_postuninstall_cmds \
12970 lt_prog_compiler_wl_CXX \
12971 lt_prog_compiler_pic_CXX \
12972 lt_prog_compiler_static_CXX \
12973 lt_prog_compiler_no_builtin_flag_CXX \
12974 export_dynamic_flag_spec_CXX \
12975 thread_safe_flag_spec_CXX \
12976 whole_archive_flag_spec_CXX \
12977 enable_shared_with_static_runtimes_CXX \
12978 old_archive_cmds_CXX \
12979 old_archive_from_new_cmds_CXX \
12980 predep_objects_CXX \
12981 postdep_objects_CXX \
12984 compiler_lib_search_path_CXX \
12986 archive_expsym_cmds_CXX \
12987 postinstall_cmds_CXX \
12988 postuninstall_cmds_CXX \
12989 old_archive_from_expsyms_cmds_CXX \
12990 allow_undefined_flag_CXX \
12991 no_undefined_flag_CXX \
12992 export_symbols_cmds_CXX \
12993 hardcode_libdir_flag_spec_CXX \
12994 hardcode_libdir_flag_spec_ld_CXX \
12995 hardcode_libdir_separator_CXX \
12996 hardcode_automatic_CXX \
12998 module_expsym_cmds_CXX \
12999 lt_cv_prog_compiler_c_o_CXX \
13000 exclude_expsyms_CXX \
13001 include_expsyms_CXX; do
13004 old_archive_cmds_CXX | \
13005 old_archive_from_new_cmds_CXX | \
13006 archive_cmds_CXX | \
13007 archive_expsym_cmds_CXX | \
13008 module_cmds_CXX | \
13009 module_expsym_cmds_CXX | \
13010 old_archive_from_expsyms_cmds_CXX | \
13011 export_symbols_cmds_CXX | \
13012 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13013 postinstall_cmds | postuninstall_cmds | \
13014 old_postinstall_cmds | old_postuninstall_cmds | \
13015 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13016 # Double-quote double-evaled strings.
13017 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13020 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13026 *'\$0 --fallback-echo"')
13027 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13033 cat <<__EOF__ >> "$cfgfile"
13034 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13036 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13038 # Shell to use when invoking shell scripts.
13041 # Whether or not to build shared libraries.
13042 build_libtool_libs=$enable_shared
13044 # Whether or not to build static libraries.
13045 build_old_libs=$enable_static
13047 # Whether or not to add -lc for building shared libraries.
13048 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13050 # Whether or not to disallow shared libs when runtime libs are static
13051 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13053 # Whether or not to optimize for fast installation.
13054 fast_install=$enable_fast_install
13057 host_alias=$host_alias
13060 # An echo program that does not interpret backslashes.
13065 AR_FLAGS=$lt_AR_FLAGS
13070 # A language-specific compiler.
13071 CC=$lt_compiler_CXX
13073 # Is the compiler the GNU C compiler?
13079 # The linker used to build libraries.
13082 # Whether we need hard or soft links.
13085 # A BSD-compatible nm program.
13088 # A symbol stripping program
13091 # Used to examine libraries when file_magic_cmd begins "file"
13092 MAGIC_CMD=$MAGIC_CMD
13094 # Used on cygwin: DLL creation program.
13097 # Used on cygwin: object dumper.
13100 # Used on cygwin: assembler.
13103 # The name of the directory that contains temporary libtool files.
13106 # How to create reloadable object files.
13107 reload_flag=$lt_reload_flag
13108 reload_cmds=$lt_reload_cmds
13110 # How to pass a linker flag through the compiler.
13111 wl=$lt_lt_prog_compiler_wl_CXX
13113 # Object file suffix (normally "o").
13114 objext="$ac_objext"
13116 # Old archive suffix (normally "a").
13119 # Shared library suffix (normally ".so").
13120 shrext_cmds='$shrext_cmds'
13122 # Executable file suffix (normally "").
13125 # Additional compiler flags for building library objects.
13126 pic_flag=$lt_lt_prog_compiler_pic_CXX
13129 # What is the maximum length of a command?
13130 max_cmd_len=$lt_cv_sys_max_cmd_len
13132 # Does compiler simultaneously support -c and -o options?
13133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13135 # Must we lock files when doing compilation ?
13136 need_locks=$lt_need_locks
13138 # Do we need the lib prefix for modules?
13139 need_lib_prefix=$need_lib_prefix
13141 # Do we need a version for libraries?
13142 need_version=$need_version
13144 # Whether dlopen is supported.
13145 dlopen_support=$enable_dlopen
13147 # Whether dlopen of programs is supported.
13148 dlopen_self=$enable_dlopen_self
13150 # Whether dlopen of statically linked programs is supported.
13151 dlopen_self_static=$enable_dlopen_self_static
13153 # Compiler flag to prevent dynamic linking.
13154 link_static_flag=$lt_lt_prog_compiler_static_CXX
13156 # Compiler flag to turn off builtin functions.
13157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13159 # Compiler flag to allow reflexive dlopens.
13160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13162 # Compiler flag to generate shared objects directly from archives.
13163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13165 # Compiler flag to generate thread-safe objects.
13166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13168 # Library versioning type.
13169 version_type=$version_type
13171 # Format of library name prefix.
13172 libname_spec=$lt_libname_spec
13174 # List of archive names. First name is the real one, the rest are links.
13175 # The last name is the one that the linker finds with -lNAME.
13176 library_names_spec=$lt_library_names_spec
13178 # The coded name of the library, if different from the real name.
13179 soname_spec=$lt_soname_spec
13181 # Commands used to build and install an old-style archive.
13183 old_archive_cmds=$lt_old_archive_cmds_CXX
13184 old_postinstall_cmds=$lt_old_postinstall_cmds
13185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13187 # Create an old-style archive from a shared archive.
13188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13190 # Create a temporary old-style archive to link instead of a shared archive.
13191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13193 # Commands used to build and install a shared archive.
13194 archive_cmds=$lt_archive_cmds_CXX
13195 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13196 postinstall_cmds=$lt_postinstall_cmds
13197 postuninstall_cmds=$lt_postuninstall_cmds
13199 # Commands used to build a loadable module (assumed same as above if empty)
13200 module_cmds=$lt_module_cmds_CXX
13201 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13203 # Commands to strip libraries.
13204 old_striplib=$lt_old_striplib
13205 striplib=$lt_striplib
13207 # Dependencies to place before the objects being linked to create a
13209 predep_objects=$lt_predep_objects_CXX
13211 # Dependencies to place after the objects being linked to create a
13213 postdep_objects=$lt_postdep_objects_CXX
13215 # Dependencies to place before the objects being linked to create a
13217 predeps=$lt_predeps_CXX
13219 # Dependencies to place after the objects being linked to create a
13221 postdeps=$lt_postdeps_CXX
13223 # The library search path used internally by the compiler when linking
13224 # a shared library.
13225 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13227 # Method to check whether dependent libraries are shared objects.
13228 deplibs_check_method=$lt_deplibs_check_method
13230 # Command to use when deplibs_check_method == file_magic.
13231 file_magic_cmd=$lt_file_magic_cmd
13233 # Flag that allows shared libraries with undefined symbols to be built.
13234 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13236 # Flag that forces no undefined symbols.
13237 no_undefined_flag=$lt_no_undefined_flag_CXX
13239 # Commands used to finish a libtool library installation in a directory.
13240 finish_cmds=$lt_finish_cmds
13242 # Same as above, but a single script fragment to be evaled but not shown.
13243 finish_eval=$lt_finish_eval
13245 # Take the output of nm and produce a listing of raw symbols and C names.
13246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13248 # Transform the output of nm in a proper C declaration
13249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13251 # Transform the output of nm in a C name address pair
13252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13254 # This is the shared library runtime path variable.
13255 runpath_var=$runpath_var
13257 # This is the shared library path variable.
13258 shlibpath_var=$shlibpath_var
13260 # Is shlibpath searched before the hard-coded library search path?
13261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13263 # How to hardcode a shared library path into an executable.
13264 hardcode_action=$hardcode_action_CXX
13266 # Whether we should hardcode library paths into libraries.
13267 hardcode_into_libs=$hardcode_into_libs
13269 # Flag to hardcode \$libdir into a binary during linking.
13270 # This must work even if \$libdir does not exist.
13271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13273 # If ld is used when linking, flag to hardcode \$libdir into
13274 # a binary during linking. This must work even if \$libdir does
13276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13278 # Whether we need a single -rpath flag with a separated argument.
13279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13282 # resulting binary.
13283 hardcode_direct=$hardcode_direct_CXX
13285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13286 # resulting binary.
13287 hardcode_minus_L=$hardcode_minus_L_CXX
13289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13290 # the resulting binary.
13291 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13293 # Set to yes if building a shared library automatically hardcodes DIR into the library
13294 # and all subsequent libraries and executables linked against it.
13295 hardcode_automatic=$hardcode_automatic_CXX
13297 # Variables whose values should be saved in libtool wrapper scripts and
13298 # restored at relink time.
13299 variables_saved_for_relink="$variables_saved_for_relink"
13301 # Whether libtool must link a program against all its dependency libraries.
13302 link_all_deplibs=$link_all_deplibs_CXX
13304 # Compile-time system search path for libraries
13305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13307 # Run-time system search path for libraries
13308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13310 # Fix the shell variable \$srcfile for the compiler.
13311 fix_srcfile_path="$fix_srcfile_path_CXX"
13313 # Set to yes if exported symbols are required.
13314 always_export_symbols=$always_export_symbols_CXX
13316 # The commands to list exported symbols.
13317 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13319 # The commands to extract the exported symbol list from a shared archive.
13320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13322 # Symbols that should not be listed in the preloaded symbols.
13323 exclude_expsyms=$lt_exclude_expsyms_CXX
13325 # Symbols that must always be exported.
13326 include_expsyms=$lt_include_expsyms_CXX
13328 # ### END LIBTOOL TAG CONFIG: $tagname
13334 # If there is no Makefile yet, we rely on a make rule to execute
13335 # `config.status --recheck' to rerun these tests and create the
13336 # libtool script then.
13337 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13338 if test -f "$ltmain_in"; then
13339 test -f Makefile && make "$ltmain"
13345 ac_cpp='$CPP $CPPFLAGS'
13346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13354 with_gnu_ldcxx=$with_gnu_ld
13355 with_gnu_ld=$lt_save_with_gnu_ld
13356 lt_cv_path_LDCXX=$lt_cv_path_LD
13357 lt_cv_path_LD=$lt_save_path_LD
13358 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13359 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13367 if test -n "$F77" && test "X$F77" != "Xno"; then
13370 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13371 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13372 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13375 archive_cmds_need_lc_F77=no
13376 allow_undefined_flag_F77=
13377 always_export_symbols_F77=no
13378 archive_expsym_cmds_F77=
13379 export_dynamic_flag_spec_F77=
13380 hardcode_direct_F77=no
13381 hardcode_libdir_flag_spec_F77=
13382 hardcode_libdir_flag_spec_ld_F77=
13383 hardcode_libdir_separator_F77=
13384 hardcode_minus_L_F77=no
13385 hardcode_automatic_F77=no
13387 module_expsym_cmds_F77=
13388 link_all_deplibs_F77=unknown
13389 old_archive_cmds_F77=$old_archive_cmds
13390 no_undefined_flag_F77=
13391 whole_archive_flag_spec_F77=
13392 enable_shared_with_static_runtimes_F77=no
13394 # Source file extension for f77 test sources.
13397 # Object file extension for compiled f77 test sources.
13401 # Code to be used in simple compile tests
13402 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13404 # Code to be used in simple link tests
13405 lt_simple_link_test_code=" program t\n end\n"
13407 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13409 # If no C compiler was specified, use CC.
13412 # Allow CC to be a program name with arguments.
13416 # Allow CC to be a program name with arguments.
13421 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13423 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13424 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13425 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13426 echo "${ECHO_T}$can_build_shared" >&6
13428 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13429 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13430 test "$can_build_shared" = "no" && enable_shared=no
13432 # On AIX, shared libraries and static libraries use the same namespace, and
13433 # are all built from PIC.
13436 test "$enable_shared" = yes && enable_static=no
13437 if test -n "$RANLIB"; then
13438 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13439 postinstall_cmds='$RANLIB $lib'
13443 test "$enable_shared" = yes && enable_static=no
13446 echo "$as_me:$LINENO: result: $enable_shared" >&5
13447 echo "${ECHO_T}$enable_shared" >&6
13449 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13450 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13451 # Make sure either enable_shared or enable_static is yes.
13452 test "$enable_shared" = yes || enable_static=yes
13453 echo "$as_me:$LINENO: result: $enable_static" >&5
13454 echo "${ECHO_T}$enable_static" >&6
13456 test "$ld_shlibs_F77" = no && can_build_shared=no
13461 lt_prog_compiler_wl_F77=
13462 lt_prog_compiler_pic_F77=
13463 lt_prog_compiler_static_F77=
13465 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13466 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13468 if test "$GCC" = yes; then
13469 lt_prog_compiler_wl_F77='-Wl,'
13470 lt_prog_compiler_static_F77='-static'
13474 # All AIX code is PIC.
13475 if test "$host_cpu" = ia64; then
13476 # AIX 5 now supports IA64 processor
13477 lt_prog_compiler_static_F77='-Bstatic'
13482 # FIXME: we need at least 68020 code to build shared libraries, but
13483 # adding the `-m68020' flag to GCC prevents building anything better,
13485 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13488 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13489 # PIC is the default for these OSes.
13492 mingw* | pw32* | os2*)
13493 # This hack is so that the source file can tell whether it is being
13494 # built for inclusion in a dll (and should export symbols for example).
13495 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13498 darwin* | rhapsody*)
13499 # PIC is the default on this platform
13500 # Common symbols not allowed in MH_DYLIB files
13501 lt_prog_compiler_pic_F77='-fno-common'
13505 # Just because we use GCC doesn't mean we suddenly get shared libraries
13506 # on systems that don't support them.
13507 lt_prog_compiler_can_build_shared_F77=no
13512 if test -d /usr/nec; then
13513 lt_prog_compiler_pic_F77=-Kconform_pic
13518 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13519 # not for PA HP-UX.
13520 case "$host_cpu" in
13525 lt_prog_compiler_pic_F77='-fPIC'
13531 lt_prog_compiler_pic_F77='-fPIC'
13535 # PORTME Check for flag to pass linker flags through the system compiler.
13538 lt_prog_compiler_wl_F77='-Wl,'
13539 if test "$host_cpu" = ia64; then
13540 # AIX 5 now supports IA64 processor
13541 lt_prog_compiler_static_F77='-Bstatic'
13543 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13547 mingw* | pw32* | os2*)
13548 # This hack is so that the source file can tell whether it is being
13549 # built for inclusion in a dll (and should export symbols for example).
13550 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13553 hpux9* | hpux10* | hpux11*)
13554 lt_prog_compiler_wl_F77='-Wl,'
13555 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13556 # not for PA HP-UX.
13557 case "$host_cpu" in
13562 lt_prog_compiler_pic_F77='+Z'
13565 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13566 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13569 irix5* | irix6* | nonstopux*)
13570 lt_prog_compiler_wl_F77='-Wl,'
13571 # PIC (with -KPIC) is the default.
13572 lt_prog_compiler_static_F77='-non_shared'
13576 lt_prog_compiler_pic_F77='-KPIC'
13577 lt_prog_compiler_static_F77='-Bstatic'
13583 lt_prog_compiler_wl_F77='-Wl,'
13584 lt_prog_compiler_pic_F77='-KPIC'
13585 lt_prog_compiler_static_F77='-static'
13588 lt_prog_compiler_wl_F77='-Wl,'
13589 # All Alpha code is PIC.
13590 lt_prog_compiler_static_F77='-non_shared'
13595 osf3* | osf4* | osf5*)
13596 lt_prog_compiler_wl_F77='-Wl,'
13597 # All OSF/1 code is PIC.
13598 lt_prog_compiler_static_F77='-non_shared'
13602 lt_prog_compiler_pic_F77='-Kpic'
13603 lt_prog_compiler_static_F77='-dn'
13607 lt_prog_compiler_wl_F77='-Wl,'
13608 lt_prog_compiler_pic_F77='-KPIC'
13609 lt_prog_compiler_static_F77='-Bstatic'
13613 lt_prog_compiler_wl_F77='-Qoption ld '
13614 lt_prog_compiler_pic_F77='-PIC'
13615 lt_prog_compiler_static_F77='-Bstatic'
13618 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13619 lt_prog_compiler_wl_F77='-Wl,'
13620 lt_prog_compiler_pic_F77='-KPIC'
13621 lt_prog_compiler_static_F77='-Bstatic'
13625 if test -d /usr/nec ;then
13626 lt_prog_compiler_pic_F77='-Kconform_pic'
13627 lt_prog_compiler_static_F77='-Bstatic'
13632 lt_prog_compiler_pic_F77='-pic'
13633 lt_prog_compiler_static_F77='-Bstatic'
13637 lt_prog_compiler_can_build_shared_F77=no
13642 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13643 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13646 # Check to make sure the PIC flag actually works.
13648 if test -n "$lt_prog_compiler_pic_F77"; then
13650 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13651 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13652 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13653 echo $ECHO_N "(cached) $ECHO_C" >&6
13655 lt_prog_compiler_pic_works_F77=no
13656 ac_outfile=conftest.$ac_objext
13657 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13658 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13659 # Insert the option either (1) after the last *FLAGS variable, or
13660 # (2) before a word containing "conftest.", or (3) at the end.
13661 # Note that $ac_compile itself does not contain backslashes and begins
13662 # with a dollar sign (not a hyphen), so the echo should work correctly.
13663 # The option is referenced via a variable to avoid confusing sed.
13664 lt_compile=`echo "$ac_compile" | $SED \
13665 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13666 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13667 -e 's:$: $lt_compiler_flag:'`
13668 (eval echo "\"\$as_me:13668: $lt_compile\"" >&5)
13669 (eval "$lt_compile" 2>conftest.err)
13671 cat conftest.err >&5
13672 echo "$as_me:13672: \$? = $ac_status" >&5
13673 if (exit $ac_status) && test -s "$ac_outfile"; then
13674 # The compiler can only warn and ignore the option if not recognized
13675 # So say no if there are warnings
13676 if test ! -s conftest.err; then
13677 lt_prog_compiler_pic_works_F77=yes
13683 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13684 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13686 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13687 case $lt_prog_compiler_pic_F77 in
13689 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13692 lt_prog_compiler_pic_F77=
13693 lt_prog_compiler_can_build_shared_F77=no
13698 # For platforms which do not support PIC, -DPIC is meaningless:
13700 lt_prog_compiler_pic_F77=
13703 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13707 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13708 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13709 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13710 echo $ECHO_N "(cached) $ECHO_C" >&6
13712 lt_cv_prog_compiler_c_o_F77=no
13713 $rm -r conftest 2>/dev/null
13717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13719 lt_compiler_flag="-o out/conftest2.$ac_objext"
13720 # Insert the option either (1) after the last *FLAGS variable, or
13721 # (2) before a word containing "conftest.", or (3) at the end.
13722 # Note that $ac_compile itself does not contain backslashes and begins
13723 # with a dollar sign (not a hyphen), so the echo should work correctly.
13724 lt_compile=`echo "$ac_compile" | $SED \
13725 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13727 -e 's:$: $lt_compiler_flag:'`
13728 (eval echo "\"\$as_me:13728: $lt_compile\"" >&5)
13729 (eval "$lt_compile" 2>out/conftest.err)
13731 cat out/conftest.err >&5
13732 echo "$as_me:13732: \$? = $ac_status" >&5
13733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13735 # The compiler can only warn and ignore the option if not recognized
13736 # So say no if there are warnings
13737 if test ! -s out/conftest.err; then
13738 lt_cv_prog_compiler_c_o_F77=yes
13743 # SGI C++ compiler will create directory out/ii_files/ for
13744 # template instantiation
13745 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13746 $rm out/* && rmdir out
13752 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13753 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13756 hard_links="nottested"
13757 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13758 # do not overwrite the value of need_locks provided by the user
13759 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13760 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13763 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13765 ln conftest.a conftest.b 2>&5 || hard_links=no
13766 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13767 echo "$as_me:$LINENO: result: $hard_links" >&5
13768 echo "${ECHO_T}$hard_links" >&6
13769 if test "$hard_links" = no; then
13770 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13771 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13778 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13779 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13782 allow_undefined_flag_F77=
13783 enable_shared_with_static_runtimes_F77=no
13785 archive_expsym_cmds_F77=
13786 old_archive_From_new_cmds_F77=
13787 old_archive_from_expsyms_cmds_F77=
13788 export_dynamic_flag_spec_F77=
13789 whole_archive_flag_spec_F77=
13790 thread_safe_flag_spec_F77=
13791 hardcode_libdir_flag_spec_F77=
13792 hardcode_libdir_flag_spec_ld_F77=
13793 hardcode_libdir_separator_F77=
13794 hardcode_direct_F77=no
13795 hardcode_minus_L_F77=no
13796 hardcode_shlibpath_var_F77=unsupported
13797 link_all_deplibs_F77=unknown
13798 hardcode_automatic_F77=no
13800 module_expsym_cmds_F77=
13801 always_export_symbols_F77=no
13802 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13803 # include_expsyms should be a list of space-separated symbols to be *always*
13804 # included in the symbol list
13805 include_expsyms_F77=
13806 # exclude_expsyms can be an extended regexp of symbols to exclude
13807 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13808 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13809 # as well as any symbol that contains `d'.
13810 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13811 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13812 # platforms (ab)use it in PIC code, but their linkers get confused if
13813 # the symbol is explicitly referenced. Since portable code cannot
13814 # rely on this symbol name, it's probably fine to never include it in
13815 # preloaded symbol tables.
13816 extract_expsyms_cmds=
13819 cygwin* | mingw* | pw32*)
13820 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13821 # When not using gcc, we currently assume that we are using
13822 # Microsoft Visual C++.
13823 if test "$GCC" != yes; then
13833 if test "$with_gnu_ld" = yes; then
13834 # If archive_cmds runs LD, not CC, wlarc should be empty
13837 # See if GNU ld supports shared libraries.
13839 aix3* | aix4* | aix5*)
13840 # On AIX/PPC, the GNU linker is very broken
13841 if test "$host_cpu" != ia64; then
13845 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13846 *** to be unable to reliably create shared libraries on AIX.
13847 *** Therefore, libtool is disabling shared libraries support. If you
13848 *** really care for shared libraries, you may want to modify your PATH
13849 *** so that a non-GNU linker is found, and then restart.
13856 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)'
13857 hardcode_libdir_flag_spec_F77='-L$libdir'
13858 hardcode_minus_L_F77=yes
13860 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13861 # that the semantics of dynamic libraries on AmigaOS, at least up
13862 # to version 4, is to share data among multiple programs linked
13863 # with the same dynamic library. Since this doesn't match the
13864 # behavior of shared libraries on other platforms, we can't use
13870 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13871 allow_undefined_flag_F77=unsupported
13872 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13873 # support --undefined. This deserves some investigation. FIXME
13874 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13880 cygwin* | mingw* | pw32*)
13881 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13882 # as there is no search path for DLLs.
13883 hardcode_libdir_flag_spec_F77='-L$libdir'
13884 allow_undefined_flag_F77=unsupported
13885 always_export_symbols_F77=no
13886 enable_shared_with_static_runtimes_F77=yes
13887 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13889 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13890 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13891 # If the export-symbols file already is a .def file (1st line
13892 # is EXPORTS), use it as is; otherwise, prepend...
13893 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13894 cp $export_symbols $output_objdir/$soname.def;
13896 echo EXPORTS > $output_objdir/$soname.def;
13897 cat $export_symbols >> $output_objdir/$soname.def;
13899 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13905 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13906 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13907 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13910 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13911 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13916 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13920 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13921 *** create shared libraries on Solaris systems. Therefore, libtool
13922 *** is disabling shared libraries support. We urge you to upgrade GNU
13923 *** binutils to release 2.9.1 or newer. Another option is to modify
13924 *** your PATH or compiler configuration so that the native linker is
13925 *** used, and then restart.
13928 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13929 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13930 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13937 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13939 hardcode_direct_F77=yes
13940 hardcode_shlibpath_var_F77=no
13944 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13945 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13946 archive_cmds_F77="$tmp_archive_cmds"
13947 supports_anon_versioning=no
13948 case `$LD -v 2>/dev/null` in
13949 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13950 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13951 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13952 *\ 2.11.*) ;; # other 2.11 versions
13953 *) supports_anon_versioning=yes ;;
13955 if test $supports_anon_versioning = yes; then
13956 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13957 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13958 $echo "local: *; };" >> $output_objdir/$libname.ver~
13959 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13961 archive_expsym_cmds_F77="$tmp_archive_cmds"
13963 link_all_deplibs_F77=no
13970 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13971 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13972 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13979 if test "$ld_shlibs_F77" = yes; then
13980 runpath_var=LD_RUN_PATH
13981 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13982 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13983 # ancient GNU ld didn't support --whole-archive et. al.
13984 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13985 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13987 whole_archive_flag_spec_F77=
13991 # PORTME fill in a description of your system's linker (not GNU ld)
13994 allow_undefined_flag_F77=unsupported
13995 always_export_symbols_F77=yes
13996 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'
13997 # Note: this linker hardcodes the directories in LIBPATH if there
13998 # are no directories specified by -L.
13999 hardcode_minus_L_F77=yes
14000 if test "$GCC" = yes && test -z "$link_static_flag"; then
14001 # Neither direct hardcoding nor static linking is supported with a
14003 hardcode_direct_F77=unsupported
14008 if test "$host_cpu" = ia64; then
14009 # On IA64, the linker does run time linking by default, so we don't
14010 # have to do anything special.
14011 aix_use_runtimelinking=no
14012 exp_sym_flag='-Bexport'
14015 # If we're using GNU nm, then we don't want the "-C" option.
14016 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14017 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14018 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'
14020 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'
14022 aix_use_runtimelinking=no
14024 # Test if we are trying to use run time linking or normal
14025 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14026 # need to do runtime linking.
14027 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14028 for ld_flag in $LDFLAGS; do
14029 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14030 aix_use_runtimelinking=yes
14036 exp_sym_flag='-bexport'
14037 no_entry_flag='-bnoentry'
14040 # When large executables or shared objects are built, AIX ld can
14041 # have problems creating the table of contents. If linking a library
14042 # or program results in "error TOC overflow" add -mminimal-toc to
14043 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14044 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14046 archive_cmds_F77=''
14047 hardcode_direct_F77=yes
14048 hardcode_libdir_separator_F77=':'
14049 link_all_deplibs_F77=yes
14051 if test "$GCC" = yes; then
14052 case $host_os in aix4.012|aix4.012.*)
14053 # We only want to do this on AIX 4.2 and lower, the check
14054 # below for broken collect2 doesn't work under 4.3+
14055 collect2name=`${CC} -print-prog-name=collect2`
14056 if test -f "$collect2name" && \
14057 strings "$collect2name" | grep resolve_lib_name >/dev/null
14059 # We have reworked collect2
14060 hardcode_direct_F77=yes
14062 # We have old collect2
14063 hardcode_direct_F77=unsupported
14064 # It fails to find uninstalled libraries when the uninstalled
14065 # path is not listed in the libpath. Setting hardcode_minus_L
14066 # to unsupported forces relinking
14067 hardcode_minus_L_F77=yes
14068 hardcode_libdir_flag_spec_F77='-L$libdir'
14069 hardcode_libdir_separator_F77=
14072 shared_flag='-shared'
14075 if test "$host_cpu" = ia64; then
14076 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14077 # chokes on -Wl,-G. The following line is correct:
14080 if test "$aix_use_runtimelinking" = yes; then
14081 shared_flag='${wl}-G'
14083 shared_flag='${wl}-bM:SRE'
14088 # It seems that -bexpall does not export symbols beginning with
14089 # underscore (_), so it is better to generate a list of symbols to export.
14090 always_export_symbols_F77=yes
14091 if test "$aix_use_runtimelinking" = yes; then
14092 # Warning - without using the other runtime loading flags (-brtl),
14093 # -berok will link without error, but may produce a broken library.
14094 allow_undefined_flag_F77='-berok'
14095 # Determine the default libpath from the value encoded in an empty executable.
14096 cat >conftest.$ac_ext <<_ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>conftest.er1
14105 grep -v '^ *+' conftest.er1 >conftest.err
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14123 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14125 # Check for a 64-bit object if we didn't find anything.
14126 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; }
14129 echo "$as_me: failed program was:" >&5
14130 sed 's/^/| /' conftest.$ac_ext >&5
14133 rm -f conftest.err conftest.$ac_objext \
14134 conftest$ac_exeext conftest.$ac_ext
14135 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14137 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14138 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"
14140 if test "$host_cpu" = ia64; then
14141 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14142 allow_undefined_flag_F77="-z nodefs"
14143 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"
14145 # Determine the default libpath from the value encoded in an empty executable.
14146 cat >conftest.$ac_ext <<_ACEOF
14151 rm -f conftest.$ac_objext conftest$ac_exeext
14152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14153 (eval $ac_link) 2>conftest.er1
14155 grep -v '^ *+' conftest.er1 >conftest.err
14157 cat conftest.err >&5
14158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14159 (exit $ac_status); } &&
14160 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
14161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14162 (eval $ac_try) 2>&5
14164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); }; } &&
14166 { ac_try='test -s conftest$ac_exeext'
14167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14168 (eval $ac_try) 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; }; then
14173 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14175 # Check for a 64-bit object if we didn't find anything.
14176 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; }
14179 echo "$as_me: failed program was:" >&5
14180 sed 's/^/| /' conftest.$ac_ext >&5
14183 rm -f conftest.err conftest.$ac_objext \
14184 conftest$ac_exeext conftest.$ac_ext
14185 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14187 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14188 # Warning - without using the other run time loading flags,
14189 # -berok will link without error, but may produce a broken library.
14190 no_undefined_flag_F77=' ${wl}-bernotok'
14191 allow_undefined_flag_F77=' ${wl}-berok'
14192 # -bexpall does not export symbols beginning with underscore (_)
14193 always_export_symbols_F77=yes
14194 # Exported symbols can be pulled into shared objects from archives
14195 whole_archive_flag_spec_F77=' '
14196 archive_cmds_need_lc_F77=yes
14197 # This is similar to how AIX traditionally builds it's shared libraries.
14198 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'
14204 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)'
14205 hardcode_libdir_flag_spec_F77='-L$libdir'
14206 hardcode_minus_L_F77=yes
14207 # see comment about different semantics on the GNU ld section
14212 export_dynamic_flag_spec_F77=-rdynamic
14215 cygwin* | mingw* | pw32*)
14216 # When not using gcc, we currently assume that we are using
14217 # Microsoft Visual C++.
14218 # hardcode_libdir_flag_spec is actually meaningless, as there is
14219 # no search path for DLLs.
14220 hardcode_libdir_flag_spec_F77=' '
14221 allow_undefined_flag_F77=unsupported
14222 # Tell ltmain to make .lib files, not .a files.
14224 # Tell ltmain to make .dll files, not .so files.
14226 # FIXME: Setting linknames here is a bad hack.
14227 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14228 # The linker will automatically build a .lib file if we build a DLL.
14229 old_archive_From_new_cmds_F77='true'
14230 # FIXME: Should let the user specify the lib program.
14231 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14232 fix_srcfile_path='`cygpath -w "$srcfile"`'
14233 enable_shared_with_static_runtimes_F77=yes
14236 darwin* | rhapsody*)
14237 if test "$GXX" = yes ; then
14238 archive_cmds_need_lc_F77=no
14240 rhapsody* | darwin1.[012])
14241 allow_undefined_flag_F77='-undefined suppress'
14244 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14245 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14247 case ${MACOSX_DEPLOYMENT_TARGET} in
14249 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14252 allow_undefined_flag_F77='-undefined dynamic_lookup'
14258 lt_int_apple_cc_single_mod=no
14259 output_verbose_link_cmd='echo'
14260 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14261 lt_int_apple_cc_single_mod=yes
14263 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14264 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14266 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'
14268 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14269 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14270 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14271 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}'
14273 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}'
14275 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}'
14276 hardcode_direct_F77=no
14277 hardcode_automatic_F77=yes
14278 hardcode_shlibpath_var_F77=unsupported
14279 whole_archive_flag_spec_F77='-all_load $convenience'
14280 link_all_deplibs_F77=yes
14287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_libdir_flag_spec_F77='-L$libdir'
14289 hardcode_shlibpath_var_F77=no
14296 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14297 # support. Future versions do this automatically, but an explicit c++rt0.o
14298 # does not break anything, and helps significantly (at the cost of a little
14301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14302 hardcode_libdir_flag_spec_F77='-R$libdir'
14303 hardcode_direct_F77=yes
14304 hardcode_shlibpath_var_F77=no
14307 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14309 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14310 hardcode_direct_F77=yes
14311 hardcode_minus_L_F77=yes
14312 hardcode_shlibpath_var_F77=no
14315 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14316 freebsd* | kfreebsd*-gnu)
14317 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14318 hardcode_libdir_flag_spec_F77='-R$libdir'
14319 hardcode_direct_F77=yes
14320 hardcode_shlibpath_var_F77=no
14324 if test "$GCC" = yes; then
14325 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'
14327 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'
14329 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14330 hardcode_libdir_separator_F77=:
14331 hardcode_direct_F77=yes
14333 # hardcode_minus_L: Not really in the search PATH,
14334 # but as the default location of the library.
14335 hardcode_minus_L_F77=yes
14336 export_dynamic_flag_spec_F77='${wl}-E'
14340 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14341 case "$host_cpu" in
14343 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14350 case "$host_cpu" in
14352 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14355 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14359 if test "$with_gnu_ld" = no; then
14360 case "$host_cpu" in
14362 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14363 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14364 hardcode_libdir_separator_F77=:
14365 hardcode_direct_F77=no
14366 hardcode_shlibpath_var_F77=no
14369 hardcode_libdir_flag_spec_F77='-L$libdir'
14370 hardcode_direct_F77=no
14371 hardcode_shlibpath_var_F77=no
14373 # hardcode_minus_L: Not really in the search PATH,
14374 # but as the default location of the library.
14375 hardcode_minus_L_F77=yes
14378 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14379 hardcode_libdir_separator_F77=:
14380 hardcode_direct_F77=yes
14381 export_dynamic_flag_spec_F77='${wl}-E'
14383 # hardcode_minus_L: Not really in the search PATH,
14384 # but as the default location of the library.
14385 hardcode_minus_L_F77=yes
14391 irix5* | irix6* | nonstopux*)
14392 if test "$GCC" = yes; then
14393 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'
14395 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'
14396 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14398 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14399 hardcode_libdir_separator_F77=:
14400 link_all_deplibs_F77=yes
14403 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14404 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14405 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14407 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14409 hardcode_libdir_flag_spec_F77='-R$libdir'
14410 hardcode_direct_F77=yes
14411 hardcode_shlibpath_var_F77=no
14415 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14416 hardcode_direct_F77=yes
14417 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14418 hardcode_libdir_separator_F77=:
14419 hardcode_shlibpath_var_F77=no
14423 hardcode_direct_F77=yes
14424 hardcode_shlibpath_var_F77=no
14425 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14426 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14427 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14428 export_dynamic_flag_spec_F77='${wl}-E'
14431 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14432 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14433 hardcode_libdir_flag_spec_F77='-R$libdir'
14436 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14437 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14444 hardcode_libdir_flag_spec_F77='-L$libdir'
14445 hardcode_minus_L_F77=yes
14446 allow_undefined_flag_F77=unsupported
14447 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'
14448 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14452 if test "$GCC" = yes; then
14453 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14454 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'
14456 allow_undefined_flag_F77=' -expect_unresolved \*'
14457 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'
14459 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14460 hardcode_libdir_separator_F77=:
14463 osf4* | osf5*) # as osf3* with the addition of -msym flag
14464 if test "$GCC" = yes; then
14465 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14466 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'
14467 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14469 allow_undefined_flag_F77=' -expect_unresolved \*'
14470 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'
14471 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~
14472 $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'
14474 # Both c and cxx compiler support -rpath directly
14475 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14477 hardcode_libdir_separator_F77=:
14481 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14482 hardcode_shlibpath_var_F77=no
14483 export_dynamic_flag_spec_F77='${wl}-Bexport'
14484 runpath_var=LD_RUN_PATH
14485 hardcode_runpath_var=yes
14489 no_undefined_flag_F77=' -z text'
14490 if test "$GCC" = yes; then
14491 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14492 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14493 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14495 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14496 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14497 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14499 hardcode_libdir_flag_spec_F77='-R$libdir'
14500 hardcode_shlibpath_var_F77=no
14502 solaris2.[0-5] | solaris2.[0-5].*) ;;
14503 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14504 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14506 link_all_deplibs_F77=yes
14510 if test "x$host_vendor" = xsequent; then
14511 # Use $CC to link under sequent, because it throws in some extra .o
14512 # files that make .init and .fini sections work.
14513 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14517 hardcode_libdir_flag_spec_F77='-L$libdir'
14518 hardcode_direct_F77=yes
14519 hardcode_minus_L_F77=yes
14520 hardcode_shlibpath_var_F77=no
14524 case $host_vendor in
14526 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14527 hardcode_direct_F77=yes # is this really true???
14530 ## LD is ld it makes a PLAMLIB
14531 ## CC just makes a GrossModule.
14532 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14533 reload_cmds_F77='$CC -r -o $output$reload_objs'
14534 hardcode_direct_F77=no
14537 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14538 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14541 runpath_var='LD_RUN_PATH'
14542 hardcode_shlibpath_var_F77=no
14546 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14547 hardcode_shlibpath_var_F77=no
14548 export_dynamic_flag_spec_F77='-Bexport'
14552 if test -d /usr/nec; then
14553 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14554 hardcode_shlibpath_var_F77=no
14555 runpath_var=LD_RUN_PATH
14556 hardcode_runpath_var=yes
14562 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14563 hardcode_direct_F77=yes
14564 hardcode_minus_L_F77=no
14565 hardcode_shlibpath_var_F77=no
14566 hardcode_runpath_var=yes
14567 runpath_var=LD_RUN_PATH
14570 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14571 no_undefined_flag_F77='${wl}-z ${wl}text'
14572 if test "$GCC" = yes; then
14573 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14575 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14577 runpath_var='LD_RUN_PATH'
14578 hardcode_shlibpath_var_F77=no
14582 no_undefined_flag_F77=' -z text'
14583 # $CC -shared without GNU ld will not create a library from C++
14584 # object files and a static libstdc++, better avoid it by now
14585 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14586 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14588 hardcode_libdir_flag_spec_F77=
14589 hardcode_shlibpath_var_F77=no
14590 runpath_var='LD_RUN_PATH'
14594 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14595 hardcode_libdir_flag_spec_F77='-L$libdir'
14596 hardcode_shlibpath_var_F77=no
14605 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14606 echo "${ECHO_T}$ld_shlibs_F77" >&6
14607 test "$ld_shlibs_F77" = no && can_build_shared=no
14609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14610 if test "$GCC" = yes; then
14611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14615 # Do we need to explicitly link libc?
14617 case "x$archive_cmds_need_lc_F77" in
14619 # Assume -lc should be added
14620 archive_cmds_need_lc_F77=yes
14622 if test "$enable_shared" = yes && test "$GCC" = yes; then
14623 case $archive_cmds_F77 in
14625 # FIXME: we may have to deal with multi-command sequences.
14628 # Test whether the compiler implicitly links with -lc since on some
14629 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14630 # to ld, don't add -lc before -lgcc.
14631 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14632 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14634 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14636 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14637 (eval $ac_compile) 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); } 2>conftest.err; then
14643 libobjs=conftest.$ac_objext
14645 wl=$lt_prog_compiler_wl_F77
14651 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14652 allow_undefined_flag_F77=
14653 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14654 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14657 (exit $ac_status); }
14659 archive_cmds_need_lc_F77=no
14661 archive_cmds_need_lc_F77=yes
14663 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14665 cat conftest.err 1>&5
14668 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14669 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14676 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14677 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14678 library_names_spec=
14679 libname_spec='lib$name'
14683 postuninstall_cmds=
14687 shlibpath_overrides_runpath=unknown
14689 dynamic_linker="$host_os ld.so"
14690 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14691 if test "$GCC" = yes; then
14692 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14693 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14694 # if the path contains ";" then we assume it to be the separator
14695 # otherwise default to the standard path separator (i.e. ":") - it is
14696 # assumed that no part of a normal pathname contains ";" but that should
14697 # okay in the real world where ";" in dirpaths is itself problematic.
14698 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14700 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14703 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14705 need_lib_prefix=unknown
14706 hardcode_into_libs=no
14708 # when you set need_version to no, make sure it does not cause -set_version
14709 # flags to be left without arguments
14710 need_version=unknown
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14716 shlibpath_var=LIBPATH
14718 # AIX 3 has no versioning support, so we append a major version to the name.
14719 soname_spec='${libname}${release}${shared_ext}$major'
14726 hardcode_into_libs=yes
14727 if test "$host_cpu" = ia64; then
14728 # AIX 5 supports IA64
14729 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14730 shlibpath_var=LD_LIBRARY_PATH
14732 # With GCC up to 2.95.x, collect2 would create an import file
14733 # for dependence libraries. The import file would start with
14734 # the line `#! .'. This would cause the generated library to
14735 # depend on `.', always an invalid library. This was fixed in
14736 # development snapshots of GCC prior to 3.0.
14738 aix4 | aix4.[01] | aix4.[01].*)
14739 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14741 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14744 can_build_shared=no
14748 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14749 # soname into executable. Probably we can add versioning support to
14750 # collect2, so additional links can be useful in future.
14751 if test "$aix_use_runtimelinking" = yes; then
14752 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14753 # instead of lib<name>.a to let people know that these are not
14754 # typical AIX shared libraries.
14755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14757 # We preserve .a as extension for shared libraries through AIX4.2
14758 # and later when we are not doing run time linking.
14759 library_names_spec='${libname}${release}.a $libname.a'
14760 soname_spec='${libname}${release}${shared_ext}$major'
14762 shlibpath_var=LIBPATH
14767 library_names_spec='$libname.ixlibrary $libname.a'
14768 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14769 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'
14773 library_names_spec='${libname}${shared_ext}'
14774 dynamic_linker="$host_os ld.so"
14775 shlibpath_var=LIBRARY_PATH
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14784 shlibpath_var=LD_LIBRARY_PATH
14785 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14786 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14787 # the default ld.so.conf also contains /usr/contrib/lib and
14788 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14789 # libtool to hard-code these into programs
14792 cygwin* | mingw* | pw32*)
14793 version_type=windows
14798 case $GCC,$host_os in
14799 yes,cygwin* | yes,mingw* | yes,pw32*)
14800 library_names_spec='$libname.dll.a'
14801 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14802 postinstall_cmds='base_file=`basename \${file}`~
14803 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14804 dldir=$destdir/`dirname \$dlpath`~
14805 test -d \$dldir || mkdir -p \$dldir~
14806 $install_prog $dir/$dlname \$dldir/$dlname'
14807 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14808 dlpath=$dir/\$dldll~
14810 shlibpath_overrides_runpath=yes
14814 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14815 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14816 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14819 # MinGW DLLs use traditional 'lib' prefix
14820 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14821 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14822 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14823 # It is most probably a Windows format PATH printed by
14824 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14825 # path with ; separators, and with drive letters. We can handle the
14826 # drive letters (cygwin fileutils understands them), so leave them,
14827 # especially as we might pass files found there to a mingw objdump,
14828 # which wouldn't understand a cygwinified path. Ahh.
14829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14831 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14835 # pw32 DLLs use 'pw' prefix rather than 'lib'
14836 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14842 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14845 dynamic_linker='Win32 ld.exe'
14846 # FIXME: first we should search . and the directory the executable is in
14850 darwin* | rhapsody*)
14851 dynamic_linker="$host_os dyld"
14852 version_type=darwin
14855 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14856 soname_spec='${libname}${release}${major}$shared_ext'
14857 shlibpath_overrides_runpath=yes
14858 shlibpath_var=DYLD_LIBRARY_PATH
14859 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14860 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14861 if test "$GCC" = yes; then
14862 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"`
14864 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14866 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14874 soname_spec='${libname}${release}${shared_ext}$major'
14875 shlibpath_var=LD_LIBRARY_PATH
14886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14887 soname_spec='${libname}${release}${shared_ext}$major'
14888 shlibpath_var=LD_LIBRARY_PATH
14889 shlibpath_overrides_runpath=no
14890 hardcode_into_libs=yes
14891 dynamic_linker='GNU ld.so'
14895 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14896 version_type=freebsd-$objformat
14897 case $version_type in
14899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14904 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14908 shlibpath_var=LD_LIBRARY_PATH
14911 shlibpath_overrides_runpath=yes
14913 freebsd3.01* | freebsdelf3.01*)
14914 shlibpath_overrides_runpath=yes
14915 hardcode_into_libs=yes
14918 shlibpath_overrides_runpath=no
14919 hardcode_into_libs=yes
14928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14929 soname_spec='${libname}${release}${shared_ext}$major'
14930 shlibpath_var=LD_LIBRARY_PATH
14931 hardcode_into_libs=yes
14934 hpux9* | hpux10* | hpux11*)
14935 # Give a soname corresponding to the major version so that dld.sl refuses to
14936 # link against other versions.
14940 case "$host_cpu" in
14943 hardcode_into_libs=yes
14944 dynamic_linker="$host_os dld.so"
14945 shlibpath_var=LD_LIBRARY_PATH
14946 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14948 soname_spec='${libname}${release}${shared_ext}$major'
14949 if test "X$HPUX_IA64_MODE" = X32; then
14950 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14952 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14954 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14958 hardcode_into_libs=yes
14959 dynamic_linker="$host_os dld.sl"
14960 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14961 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14963 soname_spec='${libname}${release}${shared_ext}$major'
14964 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14969 dynamic_linker="$host_os dld.sl"
14970 shlibpath_var=SHLIB_PATH
14971 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14973 soname_spec='${libname}${release}${shared_ext}$major'
14976 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14977 postinstall_cmds='chmod 555 $lib'
14980 irix5* | irix6* | nonstopux*)
14982 nonstopux*) version_type=nonstopux ;;
14984 if test "$lt_cv_prog_gnu_ld" = yes; then
14992 soname_spec='${libname}${release}${shared_ext}$major'
14993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14995 irix5* | nonstopux*)
14996 libsuff= shlibsuff=
14999 case $LD in # libtool.m4 will add one of these switches to LD
15000 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15001 libsuff= shlibsuff= libmagic=32-bit;;
15002 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15003 libsuff=32 shlibsuff=N32 libmagic=N32;;
15004 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15005 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15006 *) libsuff= shlibsuff= libmagic=never-match;;
15010 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15011 shlibpath_overrides_runpath=no
15012 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15013 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15014 hardcode_into_libs=yes
15017 # No shared lib support for Linux oldld, aout, or coff.
15018 linux*oldld* | linux*aout* | linux*coff*)
15022 # This must be Linux ELF.
15027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15028 soname_spec='${libname}${release}${shared_ext}$major'
15029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15030 shlibpath_var=LD_LIBRARY_PATH
15031 shlibpath_overrides_runpath=no
15032 # This implies no fast_install, which is unacceptable.
15033 # Some rework will be needed to allow for fast_install
15034 # before this can be enabled.
15035 hardcode_into_libs=yes
15037 # Append ld.so.conf contents to the search path
15038 if test -f /etc/ld.so.conf; then
15039 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
15040 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15043 # We used to test for /lib/ld.so.1 and disable shared libraries on
15044 # powerpc, because MkLinux only supported shared libraries with the
15045 # GNU dynamic linker. Since this was broken with cross compilers,
15046 # most powerpc-linux boxes support dynamic linking these days and
15047 # people can always --disable-shared, the test was removed, and we
15048 # assume the GNU/Linux dynamic linker is in use.
15049 dynamic_linker='GNU/Linux ld.so'
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15057 soname_spec='${libname}${release}${shared_ext}$major'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15060 hardcode_into_libs=yes
15061 dynamic_linker='NetBSD ld.elf_so'
15068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15069 soname_spec='${libname}${release}${shared_ext}$major'
15070 shlibpath_var=LD_LIBRARY_PATH
15071 shlibpath_overrides_runpath=no
15072 hardcode_into_libs=yes
15073 dynamic_linker='GNU ld.so'
15080 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15082 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15083 dynamic_linker='NetBSD (a.out) ld.so'
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 dynamic_linker='NetBSD ld.elf_so'
15089 shlibpath_var=LD_LIBRARY_PATH
15090 shlibpath_overrides_runpath=yes
15091 hardcode_into_libs=yes
15096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15097 shlibpath_var=LD_LIBRARY_PATH
15098 shlibpath_overrides_runpath=yes
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15108 shlibpath_overrides_runpath=yes
15115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15116 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15117 shlibpath_var=LD_LIBRARY_PATH
15118 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15120 openbsd2.[89] | openbsd2.[89].*)
15121 shlibpath_overrides_runpath=no
15124 shlibpath_overrides_runpath=yes
15128 shlibpath_overrides_runpath=yes
15133 libname_spec='$name'
15136 library_names_spec='$libname${shared_ext} $libname.a'
15137 dynamic_linker='OS/2 ld.exe'
15138 shlibpath_var=LIBPATH
15141 osf3* | osf4* | osf5*)
15145 soname_spec='${libname}${release}${shared_ext}$major'
15146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15147 shlibpath_var=LD_LIBRARY_PATH
15148 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15149 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15154 soname_spec='${libname}${release}${shared_ext}$major'
15155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15156 shlibpath_var=LD_LIBRARY_PATH
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LD_LIBRARY_PATH
15166 shlibpath_overrides_runpath=yes
15167 hardcode_into_libs=yes
15168 # ldd complains unless libraries are executable
15169 postinstall_cmds='chmod +x $lib'
15174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15175 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15176 shlibpath_var=LD_LIBRARY_PATH
15177 shlibpath_overrides_runpath=yes
15178 if test "$with_gnu_ld" = yes; then
15184 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15187 soname_spec='${libname}${release}${shared_ext}$major'
15188 shlibpath_var=LD_LIBRARY_PATH
15189 case $host_vendor in
15191 shlibpath_overrides_runpath=no
15193 export_dynamic_flag_spec='${wl}-Blargedynsym'
15194 runpath_var=LD_RUN_PATH
15202 shlibpath_overrides_runpath=no
15203 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15209 if test -d /usr/nec ;then
15211 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15212 soname_spec='$libname${shared_ext}.$major'
15213 shlibpath_var=LD_LIBRARY_PATH
15219 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15220 soname_spec='${libname}${release}${shared_ext}$major'
15221 shlibpath_var=LD_LIBRARY_PATH
15228 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15229 echo "${ECHO_T}$dynamic_linker" >&6
15230 test "$dynamic_linker" = no && can_build_shared=no
15232 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15233 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15234 hardcode_action_F77=
15235 if test -n "$hardcode_libdir_flag_spec_F77" || \
15236 test -n "$runpath_var F77" || \
15237 test "X$hardcode_automatic_F77"="Xyes" ; then
15239 # We can hardcode non-existant directories.
15240 if test "$hardcode_direct_F77" != no &&
15241 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15242 # have to relink, otherwise we might link with an installed library
15243 # when we should be linking with a yet-to-be-installed one
15244 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15245 test "$hardcode_minus_L_F77" != no; then
15246 # Linking always hardcodes the temporary library directory.
15247 hardcode_action_F77=relink
15249 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15250 hardcode_action_F77=immediate
15253 # We cannot hardcode anything, or else we can only hardcode existing
15255 hardcode_action_F77=unsupported
15257 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15258 echo "${ECHO_T}$hardcode_action_F77" >&6
15260 if test "$hardcode_action_F77" = relink; then
15261 # Fast installation is not supported
15262 enable_fast_install=no
15263 elif test "$shlibpath_overrides_runpath" = yes ||
15264 test "$enable_shared" = no; then
15265 # Fast installation is not necessary
15266 enable_fast_install=needless
15271 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15272 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15273 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15274 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15275 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15276 echo "$as_me:$LINENO: result: yes" >&5
15277 echo "${ECHO_T}yes" >&6
15279 # FIXME - insert some real tests, host_os isn't really good enough
15282 if test -n "$STRIP" ; then
15283 striplib="$STRIP -x"
15284 echo "$as_me:$LINENO: result: yes" >&5
15285 echo "${ECHO_T}yes" >&6
15287 echo "$as_me:$LINENO: result: no" >&5
15288 echo "${ECHO_T}no" >&6
15292 echo "$as_me:$LINENO: result: no" >&5
15293 echo "${ECHO_T}no" >&6
15300 # The else clause should only fire when bootstrapping the
15301 # libtool distribution, otherwise you forgot to ship ltmain.sh
15302 # with your package, and you will get complaints that there are
15303 # no rules to generate ltmain.sh.
15304 if test -f "$ltmain"; then
15305 # See if we are running on zsh, and set the options which allow our commands through
15306 # without removal of \ escapes.
15307 if test -n "${ZSH_VERSION+set}" ; then
15308 setopt NO_GLOB_SUBST
15310 # Now quote all the things that may contain metacharacters while being
15311 # careful not to overquote the AC_SUBSTed values. We take copies of the
15312 # variables and quote the copies for generation of the libtool script.
15313 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15315 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15316 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15317 deplibs_check_method reload_flag reload_cmds need_locks \
15318 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15319 lt_cv_sys_global_symbol_to_c_name_address \
15320 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15321 old_postinstall_cmds old_postuninstall_cmds \
15325 lt_prog_compiler_wl_F77 \
15326 lt_prog_compiler_pic_F77 \
15327 lt_prog_compiler_static_F77 \
15328 lt_prog_compiler_no_builtin_flag_F77 \
15329 export_dynamic_flag_spec_F77 \
15330 thread_safe_flag_spec_F77 \
15331 whole_archive_flag_spec_F77 \
15332 enable_shared_with_static_runtimes_F77 \
15333 old_archive_cmds_F77 \
15334 old_archive_from_new_cmds_F77 \
15335 predep_objects_F77 \
15336 postdep_objects_F77 \
15339 compiler_lib_search_path_F77 \
15341 archive_expsym_cmds_F77 \
15342 postinstall_cmds_F77 \
15343 postuninstall_cmds_F77 \
15344 old_archive_from_expsyms_cmds_F77 \
15345 allow_undefined_flag_F77 \
15346 no_undefined_flag_F77 \
15347 export_symbols_cmds_F77 \
15348 hardcode_libdir_flag_spec_F77 \
15349 hardcode_libdir_flag_spec_ld_F77 \
15350 hardcode_libdir_separator_F77 \
15351 hardcode_automatic_F77 \
15353 module_expsym_cmds_F77 \
15354 lt_cv_prog_compiler_c_o_F77 \
15355 exclude_expsyms_F77 \
15356 include_expsyms_F77; do
15359 old_archive_cmds_F77 | \
15360 old_archive_from_new_cmds_F77 | \
15361 archive_cmds_F77 | \
15362 archive_expsym_cmds_F77 | \
15363 module_cmds_F77 | \
15364 module_expsym_cmds_F77 | \
15365 old_archive_from_expsyms_cmds_F77 | \
15366 export_symbols_cmds_F77 | \
15367 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15368 postinstall_cmds | postuninstall_cmds | \
15369 old_postinstall_cmds | old_postuninstall_cmds | \
15370 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15371 # Double-quote double-evaled strings.
15372 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15375 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15381 *'\$0 --fallback-echo"')
15382 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15388 cat <<__EOF__ >> "$cfgfile"
15389 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15391 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15393 # Shell to use when invoking shell scripts.
15396 # Whether or not to build shared libraries.
15397 build_libtool_libs=$enable_shared
15399 # Whether or not to build static libraries.
15400 build_old_libs=$enable_static
15402 # Whether or not to add -lc for building shared libraries.
15403 build_libtool_need_lc=$archive_cmds_need_lc_F77
15405 # Whether or not to disallow shared libs when runtime libs are static
15406 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15408 # Whether or not to optimize for fast installation.
15409 fast_install=$enable_fast_install
15412 host_alias=$host_alias
15415 # An echo program that does not interpret backslashes.
15420 AR_FLAGS=$lt_AR_FLAGS
15425 # A language-specific compiler.
15426 CC=$lt_compiler_F77
15428 # Is the compiler the GNU C compiler?
15434 # The linker used to build libraries.
15437 # Whether we need hard or soft links.
15440 # A BSD-compatible nm program.
15443 # A symbol stripping program
15446 # Used to examine libraries when file_magic_cmd begins "file"
15447 MAGIC_CMD=$MAGIC_CMD
15449 # Used on cygwin: DLL creation program.
15452 # Used on cygwin: object dumper.
15455 # Used on cygwin: assembler.
15458 # The name of the directory that contains temporary libtool files.
15461 # How to create reloadable object files.
15462 reload_flag=$lt_reload_flag
15463 reload_cmds=$lt_reload_cmds
15465 # How to pass a linker flag through the compiler.
15466 wl=$lt_lt_prog_compiler_wl_F77
15468 # Object file suffix (normally "o").
15469 objext="$ac_objext"
15471 # Old archive suffix (normally "a").
15474 # Shared library suffix (normally ".so").
15475 shrext_cmds='$shrext_cmds'
15477 # Executable file suffix (normally "").
15480 # Additional compiler flags for building library objects.
15481 pic_flag=$lt_lt_prog_compiler_pic_F77
15484 # What is the maximum length of a command?
15485 max_cmd_len=$lt_cv_sys_max_cmd_len
15487 # Does compiler simultaneously support -c and -o options?
15488 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15490 # Must we lock files when doing compilation ?
15491 need_locks=$lt_need_locks
15493 # Do we need the lib prefix for modules?
15494 need_lib_prefix=$need_lib_prefix
15496 # Do we need a version for libraries?
15497 need_version=$need_version
15499 # Whether dlopen is supported.
15500 dlopen_support=$enable_dlopen
15502 # Whether dlopen of programs is supported.
15503 dlopen_self=$enable_dlopen_self
15505 # Whether dlopen of statically linked programs is supported.
15506 dlopen_self_static=$enable_dlopen_self_static
15508 # Compiler flag to prevent dynamic linking.
15509 link_static_flag=$lt_lt_prog_compiler_static_F77
15511 # Compiler flag to turn off builtin functions.
15512 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15514 # Compiler flag to allow reflexive dlopens.
15515 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15517 # Compiler flag to generate shared objects directly from archives.
15518 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15520 # Compiler flag to generate thread-safe objects.
15521 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15523 # Library versioning type.
15524 version_type=$version_type
15526 # Format of library name prefix.
15527 libname_spec=$lt_libname_spec
15529 # List of archive names. First name is the real one, the rest are links.
15530 # The last name is the one that the linker finds with -lNAME.
15531 library_names_spec=$lt_library_names_spec
15533 # The coded name of the library, if different from the real name.
15534 soname_spec=$lt_soname_spec
15536 # Commands used to build and install an old-style archive.
15538 old_archive_cmds=$lt_old_archive_cmds_F77
15539 old_postinstall_cmds=$lt_old_postinstall_cmds
15540 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15542 # Create an old-style archive from a shared archive.
15543 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15545 # Create a temporary old-style archive to link instead of a shared archive.
15546 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15548 # Commands used to build and install a shared archive.
15549 archive_cmds=$lt_archive_cmds_F77
15550 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15551 postinstall_cmds=$lt_postinstall_cmds
15552 postuninstall_cmds=$lt_postuninstall_cmds
15554 # Commands used to build a loadable module (assumed same as above if empty)
15555 module_cmds=$lt_module_cmds_F77
15556 module_expsym_cmds=$lt_module_expsym_cmds_F77
15558 # Commands to strip libraries.
15559 old_striplib=$lt_old_striplib
15560 striplib=$lt_striplib
15562 # Dependencies to place before the objects being linked to create a
15564 predep_objects=$lt_predep_objects_F77
15566 # Dependencies to place after the objects being linked to create a
15568 postdep_objects=$lt_postdep_objects_F77
15570 # Dependencies to place before the objects being linked to create a
15572 predeps=$lt_predeps_F77
15574 # Dependencies to place after the objects being linked to create a
15576 postdeps=$lt_postdeps_F77
15578 # The library search path used internally by the compiler when linking
15579 # a shared library.
15580 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15582 # Method to check whether dependent libraries are shared objects.
15583 deplibs_check_method=$lt_deplibs_check_method
15585 # Command to use when deplibs_check_method == file_magic.
15586 file_magic_cmd=$lt_file_magic_cmd
15588 # Flag that allows shared libraries with undefined symbols to be built.
15589 allow_undefined_flag=$lt_allow_undefined_flag_F77
15591 # Flag that forces no undefined symbols.
15592 no_undefined_flag=$lt_no_undefined_flag_F77
15594 # Commands used to finish a libtool library installation in a directory.
15595 finish_cmds=$lt_finish_cmds
15597 # Same as above, but a single script fragment to be evaled but not shown.
15598 finish_eval=$lt_finish_eval
15600 # Take the output of nm and produce a listing of raw symbols and C names.
15601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15603 # Transform the output of nm in a proper C declaration
15604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15606 # Transform the output of nm in a C name address pair
15607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15609 # This is the shared library runtime path variable.
15610 runpath_var=$runpath_var
15612 # This is the shared library path variable.
15613 shlibpath_var=$shlibpath_var
15615 # Is shlibpath searched before the hard-coded library search path?
15616 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15618 # How to hardcode a shared library path into an executable.
15619 hardcode_action=$hardcode_action_F77
15621 # Whether we should hardcode library paths into libraries.
15622 hardcode_into_libs=$hardcode_into_libs
15624 # Flag to hardcode \$libdir into a binary during linking.
15625 # This must work even if \$libdir does not exist.
15626 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15628 # If ld is used when linking, flag to hardcode \$libdir into
15629 # a binary during linking. This must work even if \$libdir does
15631 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15633 # Whether we need a single -rpath flag with a separated argument.
15634 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15636 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15637 # resulting binary.
15638 hardcode_direct=$hardcode_direct_F77
15640 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15641 # resulting binary.
15642 hardcode_minus_L=$hardcode_minus_L_F77
15644 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15645 # the resulting binary.
15646 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15648 # Set to yes if building a shared library automatically hardcodes DIR into the library
15649 # and all subsequent libraries and executables linked against it.
15650 hardcode_automatic=$hardcode_automatic_F77
15652 # Variables whose values should be saved in libtool wrapper scripts and
15653 # restored at relink time.
15654 variables_saved_for_relink="$variables_saved_for_relink"
15656 # Whether libtool must link a program against all its dependency libraries.
15657 link_all_deplibs=$link_all_deplibs_F77
15659 # Compile-time system search path for libraries
15660 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15662 # Run-time system search path for libraries
15663 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15665 # Fix the shell variable \$srcfile for the compiler.
15666 fix_srcfile_path="$fix_srcfile_path_F77"
15668 # Set to yes if exported symbols are required.
15669 always_export_symbols=$always_export_symbols_F77
15671 # The commands to list exported symbols.
15672 export_symbols_cmds=$lt_export_symbols_cmds_F77
15674 # The commands to extract the exported symbol list from a shared archive.
15675 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15677 # Symbols that should not be listed in the preloaded symbols.
15678 exclude_expsyms=$lt_exclude_expsyms_F77
15680 # Symbols that must always be exported.
15681 include_expsyms=$lt_include_expsyms_F77
15683 # ### END LIBTOOL TAG CONFIG: $tagname
15689 # If there is no Makefile yet, we rely on a make rule to execute
15690 # `config.status --recheck' to rerun these tests and create the
15691 # libtool script then.
15692 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15693 if test -f "$ltmain_in"; then
15694 test -f Makefile && make "$ltmain"
15700 ac_cpp='$CPP $CPPFLAGS'
15701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15713 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15717 # Source file extension for Java test sources.
15720 # Object file extension for compiled Java test sources.
15724 # Code to be used in simple compile tests
15725 lt_simple_compile_test_code="class foo {}\n"
15727 # Code to be used in simple link tests
15728 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15730 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15732 # If no C compiler was specified, use CC.
15735 # Allow CC to be a program name with arguments.
15739 # Allow CC to be a program name with arguments.
15745 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15746 archive_cmds_need_lc_GCJ=no
15749 lt_prog_compiler_no_builtin_flag_GCJ=
15751 if test "$GCC" = yes; then
15752 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15755 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15756 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15757 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 lt_cv_prog_compiler_rtti_exceptions=no
15761 ac_outfile=conftest.$ac_objext
15762 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15763 lt_compiler_flag="-fno-rtti -fno-exceptions"
15764 # Insert the option either (1) after the last *FLAGS variable, or
15765 # (2) before a word containing "conftest.", or (3) at the end.
15766 # Note that $ac_compile itself does not contain backslashes and begins
15767 # with a dollar sign (not a hyphen), so the echo should work correctly.
15768 # The option is referenced via a variable to avoid confusing sed.
15769 lt_compile=`echo "$ac_compile" | $SED \
15770 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15771 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15772 -e 's:$: $lt_compiler_flag:'`
15773 (eval echo "\"\$as_me:15773: $lt_compile\"" >&5)
15774 (eval "$lt_compile" 2>conftest.err)
15776 cat conftest.err >&5
15777 echo "$as_me:15777: \$? = $ac_status" >&5
15778 if (exit $ac_status) && test -s "$ac_outfile"; then
15779 # The compiler can only warn and ignore the option if not recognized
15780 # So say no if there are warnings
15781 if test ! -s conftest.err; then
15782 lt_cv_prog_compiler_rtti_exceptions=yes
15788 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15789 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15791 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15792 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15799 lt_prog_compiler_wl_GCJ=
15800 lt_prog_compiler_pic_GCJ=
15801 lt_prog_compiler_static_GCJ=
15803 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15804 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15806 if test "$GCC" = yes; then
15807 lt_prog_compiler_wl_GCJ='-Wl,'
15808 lt_prog_compiler_static_GCJ='-static'
15812 # All AIX code is PIC.
15813 if test "$host_cpu" = ia64; then
15814 # AIX 5 now supports IA64 processor
15815 lt_prog_compiler_static_GCJ='-Bstatic'
15820 # FIXME: we need at least 68020 code to build shared libraries, but
15821 # adding the `-m68020' flag to GCC prevents building anything better,
15823 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15826 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15827 # PIC is the default for these OSes.
15830 mingw* | pw32* | os2*)
15831 # This hack is so that the source file can tell whether it is being
15832 # built for inclusion in a dll (and should export symbols for example).
15833 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15836 darwin* | rhapsody*)
15837 # PIC is the default on this platform
15838 # Common symbols not allowed in MH_DYLIB files
15839 lt_prog_compiler_pic_GCJ='-fno-common'
15843 # Just because we use GCC doesn't mean we suddenly get shared libraries
15844 # on systems that don't support them.
15845 lt_prog_compiler_can_build_shared_GCJ=no
15850 if test -d /usr/nec; then
15851 lt_prog_compiler_pic_GCJ=-Kconform_pic
15856 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15857 # not for PA HP-UX.
15858 case "$host_cpu" in
15863 lt_prog_compiler_pic_GCJ='-fPIC'
15869 lt_prog_compiler_pic_GCJ='-fPIC'
15873 # PORTME Check for flag to pass linker flags through the system compiler.
15876 lt_prog_compiler_wl_GCJ='-Wl,'
15877 if test "$host_cpu" = ia64; then
15878 # AIX 5 now supports IA64 processor
15879 lt_prog_compiler_static_GCJ='-Bstatic'
15881 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15885 mingw* | pw32* | os2*)
15886 # This hack is so that the source file can tell whether it is being
15887 # built for inclusion in a dll (and should export symbols for example).
15888 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15891 hpux9* | hpux10* | hpux11*)
15892 lt_prog_compiler_wl_GCJ='-Wl,'
15893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15894 # not for PA HP-UX.
15895 case "$host_cpu" in
15900 lt_prog_compiler_pic_GCJ='+Z'
15903 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15904 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15907 irix5* | irix6* | nonstopux*)
15908 lt_prog_compiler_wl_GCJ='-Wl,'
15909 # PIC (with -KPIC) is the default.
15910 lt_prog_compiler_static_GCJ='-non_shared'
15914 lt_prog_compiler_pic_GCJ='-KPIC'
15915 lt_prog_compiler_static_GCJ='-Bstatic'
15921 lt_prog_compiler_wl_GCJ='-Wl,'
15922 lt_prog_compiler_pic_GCJ='-KPIC'
15923 lt_prog_compiler_static_GCJ='-static'
15926 lt_prog_compiler_wl_GCJ='-Wl,'
15927 # All Alpha code is PIC.
15928 lt_prog_compiler_static_GCJ='-non_shared'
15933 osf3* | osf4* | osf5*)
15934 lt_prog_compiler_wl_GCJ='-Wl,'
15935 # All OSF/1 code is PIC.
15936 lt_prog_compiler_static_GCJ='-non_shared'
15940 lt_prog_compiler_pic_GCJ='-Kpic'
15941 lt_prog_compiler_static_GCJ='-dn'
15945 lt_prog_compiler_wl_GCJ='-Wl,'
15946 lt_prog_compiler_pic_GCJ='-KPIC'
15947 lt_prog_compiler_static_GCJ='-Bstatic'
15951 lt_prog_compiler_wl_GCJ='-Qoption ld '
15952 lt_prog_compiler_pic_GCJ='-PIC'
15953 lt_prog_compiler_static_GCJ='-Bstatic'
15956 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15957 lt_prog_compiler_wl_GCJ='-Wl,'
15958 lt_prog_compiler_pic_GCJ='-KPIC'
15959 lt_prog_compiler_static_GCJ='-Bstatic'
15963 if test -d /usr/nec ;then
15964 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15965 lt_prog_compiler_static_GCJ='-Bstatic'
15970 lt_prog_compiler_pic_GCJ='-pic'
15971 lt_prog_compiler_static_GCJ='-Bstatic'
15975 lt_prog_compiler_can_build_shared_GCJ=no
15980 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15981 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15984 # Check to make sure the PIC flag actually works.
15986 if test -n "$lt_prog_compiler_pic_GCJ"; then
15988 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15989 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15990 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15991 echo $ECHO_N "(cached) $ECHO_C" >&6
15993 lt_prog_compiler_pic_works_GCJ=no
15994 ac_outfile=conftest.$ac_objext
15995 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15996 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15997 # Insert the option either (1) after the last *FLAGS variable, or
15998 # (2) before a word containing "conftest.", or (3) at the end.
15999 # Note that $ac_compile itself does not contain backslashes and begins
16000 # with a dollar sign (not a hyphen), so the echo should work correctly.
16001 # The option is referenced via a variable to avoid confusing sed.
16002 lt_compile=`echo "$ac_compile" | $SED \
16003 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16004 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16005 -e 's:$: $lt_compiler_flag:'`
16006 (eval echo "\"\$as_me:16006: $lt_compile\"" >&5)
16007 (eval "$lt_compile" 2>conftest.err)
16009 cat conftest.err >&5
16010 echo "$as_me:16010: \$? = $ac_status" >&5
16011 if (exit $ac_status) && test -s "$ac_outfile"; then
16012 # The compiler can only warn and ignore the option if not recognized
16013 # So say no if there are warnings
16014 if test ! -s conftest.err; then
16015 lt_prog_compiler_pic_works_GCJ=yes
16021 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
16022 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
16024 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16025 case $lt_prog_compiler_pic_GCJ in
16027 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16030 lt_prog_compiler_pic_GCJ=
16031 lt_prog_compiler_can_build_shared_GCJ=no
16036 # For platforms which do not support PIC, -DPIC is meaningless:
16038 lt_prog_compiler_pic_GCJ=
16041 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16045 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16046 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16047 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16048 echo $ECHO_N "(cached) $ECHO_C" >&6
16050 lt_cv_prog_compiler_c_o_GCJ=no
16051 $rm -r conftest 2>/dev/null
16055 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16057 lt_compiler_flag="-o out/conftest2.$ac_objext"
16058 # Insert the option either (1) after the last *FLAGS variable, or
16059 # (2) before a word containing "conftest.", or (3) at the end.
16060 # Note that $ac_compile itself does not contain backslashes and begins
16061 # with a dollar sign (not a hyphen), so the echo should work correctly.
16062 lt_compile=`echo "$ac_compile" | $SED \
16063 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16064 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16065 -e 's:$: $lt_compiler_flag:'`
16066 (eval echo "\"\$as_me:16066: $lt_compile\"" >&5)
16067 (eval "$lt_compile" 2>out/conftest.err)
16069 cat out/conftest.err >&5
16070 echo "$as_me:16070: \$? = $ac_status" >&5
16071 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16073 # The compiler can only warn and ignore the option if not recognized
16074 # So say no if there are warnings
16075 if test ! -s out/conftest.err; then
16076 lt_cv_prog_compiler_c_o_GCJ=yes
16081 # SGI C++ compiler will create directory out/ii_files/ for
16082 # template instantiation
16083 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16084 $rm out/* && rmdir out
16090 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16091 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16094 hard_links="nottested"
16095 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16096 # do not overwrite the value of need_locks provided by the user
16097 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16098 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16101 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16103 ln conftest.a conftest.b 2>&5 || hard_links=no
16104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16105 echo "$as_me:$LINENO: result: $hard_links" >&5
16106 echo "${ECHO_T}$hard_links" >&6
16107 if test "$hard_links" = no; then
16108 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16109 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16116 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16117 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16120 allow_undefined_flag_GCJ=
16121 enable_shared_with_static_runtimes_GCJ=no
16123 archive_expsym_cmds_GCJ=
16124 old_archive_From_new_cmds_GCJ=
16125 old_archive_from_expsyms_cmds_GCJ=
16126 export_dynamic_flag_spec_GCJ=
16127 whole_archive_flag_spec_GCJ=
16128 thread_safe_flag_spec_GCJ=
16129 hardcode_libdir_flag_spec_GCJ=
16130 hardcode_libdir_flag_spec_ld_GCJ=
16131 hardcode_libdir_separator_GCJ=
16132 hardcode_direct_GCJ=no
16133 hardcode_minus_L_GCJ=no
16134 hardcode_shlibpath_var_GCJ=unsupported
16135 link_all_deplibs_GCJ=unknown
16136 hardcode_automatic_GCJ=no
16138 module_expsym_cmds_GCJ=
16139 always_export_symbols_GCJ=no
16140 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16141 # include_expsyms should be a list of space-separated symbols to be *always*
16142 # included in the symbol list
16143 include_expsyms_GCJ=
16144 # exclude_expsyms can be an extended regexp of symbols to exclude
16145 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16146 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16147 # as well as any symbol that contains `d'.
16148 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16149 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16150 # platforms (ab)use it in PIC code, but their linkers get confused if
16151 # the symbol is explicitly referenced. Since portable code cannot
16152 # rely on this symbol name, it's probably fine to never include it in
16153 # preloaded symbol tables.
16154 extract_expsyms_cmds=
16157 cygwin* | mingw* | pw32*)
16158 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16159 # When not using gcc, we currently assume that we are using
16160 # Microsoft Visual C++.
16161 if test "$GCC" != yes; then
16171 if test "$with_gnu_ld" = yes; then
16172 # If archive_cmds runs LD, not CC, wlarc should be empty
16175 # See if GNU ld supports shared libraries.
16177 aix3* | aix4* | aix5*)
16178 # On AIX/PPC, the GNU linker is very broken
16179 if test "$host_cpu" != ia64; then
16183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16184 *** to be unable to reliably create shared libraries on AIX.
16185 *** Therefore, libtool is disabling shared libraries support. If you
16186 *** really care for shared libraries, you may want to modify your PATH
16187 *** so that a non-GNU linker is found, and then restart.
16194 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)'
16195 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16196 hardcode_minus_L_GCJ=yes
16198 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16199 # that the semantics of dynamic libraries on AmigaOS, at least up
16200 # to version 4, is to share data among multiple programs linked
16201 # with the same dynamic library. Since this doesn't match the
16202 # behavior of shared libraries on other platforms, we can't use
16208 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16209 allow_undefined_flag_GCJ=unsupported
16210 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16211 # support --undefined. This deserves some investigation. FIXME
16212 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16218 cygwin* | mingw* | pw32*)
16219 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16220 # as there is no search path for DLLs.
16221 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16222 allow_undefined_flag_GCJ=unsupported
16223 always_export_symbols_GCJ=no
16224 enable_shared_with_static_runtimes_GCJ=yes
16225 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16227 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16228 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16229 # If the export-symbols file already is a .def file (1st line
16230 # is EXPORTS), use it as is; otherwise, prepend...
16231 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16232 cp $export_symbols $output_objdir/$soname.def;
16234 echo EXPORTS > $output_objdir/$soname.def;
16235 cat $export_symbols >> $output_objdir/$soname.def;
16237 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16243 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16244 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16245 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16248 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16249 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16254 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16259 *** create shared libraries on Solaris systems. Therefore, libtool
16260 *** is disabling shared libraries support. We urge you to upgrade GNU
16261 *** binutils to release 2.9.1 or newer. Another option is to modify
16262 *** your PATH or compiler configuration so that the native linker is
16263 *** used, and then restart.
16266 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16267 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16268 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16275 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_direct_GCJ=yes
16278 hardcode_shlibpath_var_GCJ=no
16282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16283 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16284 archive_cmds_GCJ="$tmp_archive_cmds"
16285 supports_anon_versioning=no
16286 case `$LD -v 2>/dev/null` in
16287 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16288 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16289 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16290 *\ 2.11.*) ;; # other 2.11 versions
16291 *) supports_anon_versioning=yes ;;
16293 if test $supports_anon_versioning = yes; then
16294 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16295 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16296 $echo "local: *; };" >> $output_objdir/$libname.ver~
16297 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16299 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16301 link_all_deplibs_GCJ=no
16308 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16309 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16310 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16317 if test "$ld_shlibs_GCJ" = yes; then
16318 runpath_var=LD_RUN_PATH
16319 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16320 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16321 # ancient GNU ld didn't support --whole-archive et. al.
16322 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16323 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16325 whole_archive_flag_spec_GCJ=
16329 # PORTME fill in a description of your system's linker (not GNU ld)
16332 allow_undefined_flag_GCJ=unsupported
16333 always_export_symbols_GCJ=yes
16334 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'
16335 # Note: this linker hardcodes the directories in LIBPATH if there
16336 # are no directories specified by -L.
16337 hardcode_minus_L_GCJ=yes
16338 if test "$GCC" = yes && test -z "$link_static_flag"; then
16339 # Neither direct hardcoding nor static linking is supported with a
16341 hardcode_direct_GCJ=unsupported
16346 if test "$host_cpu" = ia64; then
16347 # On IA64, the linker does run time linking by default, so we don't
16348 # have to do anything special.
16349 aix_use_runtimelinking=no
16350 exp_sym_flag='-Bexport'
16353 # If we're using GNU nm, then we don't want the "-C" option.
16354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16356 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'
16358 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'
16360 aix_use_runtimelinking=no
16362 # Test if we are trying to use run time linking or normal
16363 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16364 # need to do runtime linking.
16365 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16366 for ld_flag in $LDFLAGS; do
16367 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16368 aix_use_runtimelinking=yes
16374 exp_sym_flag='-bexport'
16375 no_entry_flag='-bnoentry'
16378 # When large executables or shared objects are built, AIX ld can
16379 # have problems creating the table of contents. If linking a library
16380 # or program results in "error TOC overflow" add -mminimal-toc to
16381 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16382 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16384 archive_cmds_GCJ=''
16385 hardcode_direct_GCJ=yes
16386 hardcode_libdir_separator_GCJ=':'
16387 link_all_deplibs_GCJ=yes
16389 if test "$GCC" = yes; then
16390 case $host_os in aix4.012|aix4.012.*)
16391 # We only want to do this on AIX 4.2 and lower, the check
16392 # below for broken collect2 doesn't work under 4.3+
16393 collect2name=`${CC} -print-prog-name=collect2`
16394 if test -f "$collect2name" && \
16395 strings "$collect2name" | grep resolve_lib_name >/dev/null
16397 # We have reworked collect2
16398 hardcode_direct_GCJ=yes
16400 # We have old collect2
16401 hardcode_direct_GCJ=unsupported
16402 # It fails to find uninstalled libraries when the uninstalled
16403 # path is not listed in the libpath. Setting hardcode_minus_L
16404 # to unsupported forces relinking
16405 hardcode_minus_L_GCJ=yes
16406 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16407 hardcode_libdir_separator_GCJ=
16410 shared_flag='-shared'
16413 if test "$host_cpu" = ia64; then
16414 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16415 # chokes on -Wl,-G. The following line is correct:
16418 if test "$aix_use_runtimelinking" = yes; then
16419 shared_flag='${wl}-G'
16421 shared_flag='${wl}-bM:SRE'
16426 # It seems that -bexpall does not export symbols beginning with
16427 # underscore (_), so it is better to generate a list of symbols to export.
16428 always_export_symbols_GCJ=yes
16429 if test "$aix_use_runtimelinking" = yes; then
16430 # Warning - without using the other runtime loading flags (-brtl),
16431 # -berok will link without error, but may produce a broken library.
16432 allow_undefined_flag_GCJ='-berok'
16433 # Determine the default libpath from the value encoded in an empty executable.
16434 cat >conftest.$ac_ext <<_ACEOF
16437 cat confdefs.h >>conftest.$ac_ext
16438 cat >>conftest.$ac_ext <<_ACEOF
16439 /* end confdefs.h. */
16449 rm -f conftest.$ac_objext conftest$ac_exeext
16450 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16451 (eval $ac_link) 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } &&
16458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16460 (eval $ac_try) 2>&5
16462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16463 (exit $ac_status); }; } &&
16464 { ac_try='test -s conftest$ac_exeext'
16465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16466 (eval $ac_try) 2>&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); }; }; then
16471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16473 # Check for a 64-bit object if we didn't find anything.
16474 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; }
16477 echo "$as_me: failed program was:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16481 rm -f conftest.err conftest.$ac_objext \
16482 conftest$ac_exeext conftest.$ac_ext
16483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16485 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16486 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"
16488 if test "$host_cpu" = ia64; then
16489 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16490 allow_undefined_flag_GCJ="-z nodefs"
16491 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"
16493 # Determine the default libpath from the value encoded in an empty executable.
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16509 rm -f conftest.$ac_objext conftest$ac_exeext
16510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16511 (eval $ac_link) 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } &&
16518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16520 (eval $ac_try) 2>&5
16522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16523 (exit $ac_status); }; } &&
16524 { ac_try='test -s conftest$ac_exeext'
16525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16526 (eval $ac_try) 2>&5
16528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16529 (exit $ac_status); }; }; then
16531 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16533 # Check for a 64-bit object if we didn't find anything.
16534 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; }
16537 echo "$as_me: failed program was:" >&5
16538 sed 's/^/| /' conftest.$ac_ext >&5
16541 rm -f conftest.err conftest.$ac_objext \
16542 conftest$ac_exeext conftest.$ac_ext
16543 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16545 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16546 # Warning - without using the other run time loading flags,
16547 # -berok will link without error, but may produce a broken library.
16548 no_undefined_flag_GCJ=' ${wl}-bernotok'
16549 allow_undefined_flag_GCJ=' ${wl}-berok'
16550 # -bexpall does not export symbols beginning with underscore (_)
16551 always_export_symbols_GCJ=yes
16552 # Exported symbols can be pulled into shared objects from archives
16553 whole_archive_flag_spec_GCJ=' '
16554 archive_cmds_need_lc_GCJ=yes
16555 # This is similar to how AIX traditionally builds it's shared libraries.
16556 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'
16562 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)'
16563 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16564 hardcode_minus_L_GCJ=yes
16565 # see comment about different semantics on the GNU ld section
16570 export_dynamic_flag_spec_GCJ=-rdynamic
16573 cygwin* | mingw* | pw32*)
16574 # When not using gcc, we currently assume that we are using
16575 # Microsoft Visual C++.
16576 # hardcode_libdir_flag_spec is actually meaningless, as there is
16577 # no search path for DLLs.
16578 hardcode_libdir_flag_spec_GCJ=' '
16579 allow_undefined_flag_GCJ=unsupported
16580 # Tell ltmain to make .lib files, not .a files.
16582 # Tell ltmain to make .dll files, not .so files.
16584 # FIXME: Setting linknames here is a bad hack.
16585 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16586 # The linker will automatically build a .lib file if we build a DLL.
16587 old_archive_From_new_cmds_GCJ='true'
16588 # FIXME: Should let the user specify the lib program.
16589 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16590 fix_srcfile_path='`cygpath -w "$srcfile"`'
16591 enable_shared_with_static_runtimes_GCJ=yes
16594 darwin* | rhapsody*)
16595 if test "$GXX" = yes ; then
16596 archive_cmds_need_lc_GCJ=no
16598 rhapsody* | darwin1.[012])
16599 allow_undefined_flag_GCJ='-undefined suppress'
16602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16605 case ${MACOSX_DEPLOYMENT_TARGET} in
16607 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16610 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16616 lt_int_apple_cc_single_mod=no
16617 output_verbose_link_cmd='echo'
16618 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16619 lt_int_apple_cc_single_mod=yes
16621 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16622 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16624 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'
16626 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16627 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16628 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16629 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}'
16631 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}'
16633 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}'
16634 hardcode_direct_GCJ=no
16635 hardcode_automatic_GCJ=yes
16636 hardcode_shlibpath_var_GCJ=unsupported
16637 whole_archive_flag_spec_GCJ='-all_load $convenience'
16638 link_all_deplibs_GCJ=yes
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16647 hardcode_shlibpath_var_GCJ=no
16654 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16655 # support. Future versions do this automatically, but an explicit c++rt0.o
16656 # does not break anything, and helps significantly (at the cost of a little
16659 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16660 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16661 hardcode_direct_GCJ=yes
16662 hardcode_shlibpath_var_GCJ=no
16665 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16667 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_direct_GCJ=yes
16669 hardcode_minus_L_GCJ=yes
16670 hardcode_shlibpath_var_GCJ=no
16673 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16674 freebsd* | kfreebsd*-gnu)
16675 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16676 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16677 hardcode_direct_GCJ=yes
16678 hardcode_shlibpath_var_GCJ=no
16682 if test "$GCC" = yes; then
16683 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'
16685 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'
16687 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16688 hardcode_libdir_separator_GCJ=:
16689 hardcode_direct_GCJ=yes
16691 # hardcode_minus_L: Not really in the search PATH,
16692 # but as the default location of the library.
16693 hardcode_minus_L_GCJ=yes
16694 export_dynamic_flag_spec_GCJ='${wl}-E'
16698 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16699 case "$host_cpu" in
16701 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16704 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16708 case "$host_cpu" in
16710 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16713 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16717 if test "$with_gnu_ld" = no; then
16718 case "$host_cpu" in
16720 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16721 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16722 hardcode_libdir_separator_GCJ=:
16723 hardcode_direct_GCJ=no
16724 hardcode_shlibpath_var_GCJ=no
16727 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16728 hardcode_direct_GCJ=no
16729 hardcode_shlibpath_var_GCJ=no
16731 # hardcode_minus_L: Not really in the search PATH,
16732 # but as the default location of the library.
16733 hardcode_minus_L_GCJ=yes
16736 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16737 hardcode_libdir_separator_GCJ=:
16738 hardcode_direct_GCJ=yes
16739 export_dynamic_flag_spec_GCJ='${wl}-E'
16741 # hardcode_minus_L: Not really in the search PATH,
16742 # but as the default location of the library.
16743 hardcode_minus_L_GCJ=yes
16749 irix5* | irix6* | nonstopux*)
16750 if test "$GCC" = yes; then
16751 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'
16753 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'
16754 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16756 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16757 hardcode_libdir_separator_GCJ=:
16758 link_all_deplibs_GCJ=yes
16761 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16762 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16763 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16765 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16767 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16768 hardcode_direct_GCJ=yes
16769 hardcode_shlibpath_var_GCJ=no
16773 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16774 hardcode_direct_GCJ=yes
16775 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16776 hardcode_libdir_separator_GCJ=:
16777 hardcode_shlibpath_var_GCJ=no
16781 hardcode_direct_GCJ=yes
16782 hardcode_shlibpath_var_GCJ=no
16783 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16784 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16785 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16786 export_dynamic_flag_spec_GCJ='${wl}-E'
16789 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16790 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16791 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16794 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16795 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16802 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16803 hardcode_minus_L_GCJ=yes
16804 allow_undefined_flag_GCJ=unsupported
16805 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'
16806 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16810 if test "$GCC" = yes; then
16811 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16812 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'
16814 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16815 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'
16817 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16818 hardcode_libdir_separator_GCJ=:
16821 osf4* | osf5*) # as osf3* with the addition of -msym flag
16822 if test "$GCC" = yes; then
16823 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16824 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'
16825 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16827 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16828 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'
16829 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~
16830 $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'
16832 # Both c and cxx compiler support -rpath directly
16833 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16835 hardcode_libdir_separator_GCJ=:
16839 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16840 hardcode_shlibpath_var_GCJ=no
16841 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16842 runpath_var=LD_RUN_PATH
16843 hardcode_runpath_var=yes
16847 no_undefined_flag_GCJ=' -z text'
16848 if test "$GCC" = yes; then
16849 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16850 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16851 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16853 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16854 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16855 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16857 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16858 hardcode_shlibpath_var_GCJ=no
16860 solaris2.[0-5] | solaris2.[0-5].*) ;;
16861 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16862 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16864 link_all_deplibs_GCJ=yes
16868 if test "x$host_vendor" = xsequent; then
16869 # Use $CC to link under sequent, because it throws in some extra .o
16870 # files that make .init and .fini sections work.
16871 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16873 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16875 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16876 hardcode_direct_GCJ=yes
16877 hardcode_minus_L_GCJ=yes
16878 hardcode_shlibpath_var_GCJ=no
16882 case $host_vendor in
16884 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16885 hardcode_direct_GCJ=yes # is this really true???
16888 ## LD is ld it makes a PLAMLIB
16889 ## CC just makes a GrossModule.
16890 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16891 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16892 hardcode_direct_GCJ=no
16895 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16896 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16899 runpath_var='LD_RUN_PATH'
16900 hardcode_shlibpath_var_GCJ=no
16904 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16905 hardcode_shlibpath_var_GCJ=no
16906 export_dynamic_flag_spec_GCJ='-Bexport'
16910 if test -d /usr/nec; then
16911 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16912 hardcode_shlibpath_var_GCJ=no
16913 runpath_var=LD_RUN_PATH
16914 hardcode_runpath_var=yes
16920 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16921 hardcode_direct_GCJ=yes
16922 hardcode_minus_L_GCJ=no
16923 hardcode_shlibpath_var_GCJ=no
16924 hardcode_runpath_var=yes
16925 runpath_var=LD_RUN_PATH
16928 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16929 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16930 if test "$GCC" = yes; then
16931 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16933 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 runpath_var='LD_RUN_PATH'
16936 hardcode_shlibpath_var_GCJ=no
16940 no_undefined_flag_GCJ=' -z text'
16941 # $CC -shared without GNU ld will not create a library from C++
16942 # object files and a static libstdc++, better avoid it by now
16943 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16944 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16945 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16946 hardcode_libdir_flag_spec_GCJ=
16947 hardcode_shlibpath_var_GCJ=no
16948 runpath_var='LD_RUN_PATH'
16952 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16954 hardcode_shlibpath_var_GCJ=no
16963 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16964 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16965 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16967 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16968 if test "$GCC" = yes; then
16969 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16973 # Do we need to explicitly link libc?
16975 case "x$archive_cmds_need_lc_GCJ" in
16977 # Assume -lc should be added
16978 archive_cmds_need_lc_GCJ=yes
16980 if test "$enable_shared" = yes && test "$GCC" = yes; then
16981 case $archive_cmds_GCJ in
16983 # FIXME: we may have to deal with multi-command sequences.
16986 # Test whether the compiler implicitly links with -lc since on some
16987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16988 # to ld, don't add -lc before -lgcc.
16989 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16992 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16995 (eval $ac_compile) 2>&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } 2>conftest.err; then
17001 libobjs=conftest.$ac_objext
17003 wl=$lt_prog_compiler_wl_GCJ
17009 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17010 allow_undefined_flag_GCJ=
17011 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17012 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); }
17017 archive_cmds_need_lc_GCJ=no
17019 archive_cmds_need_lc_GCJ=yes
17021 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17023 cat conftest.err 1>&5
17026 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17027 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17034 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17035 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17036 library_names_spec=
17037 libname_spec='lib$name'
17041 postuninstall_cmds=
17045 shlibpath_overrides_runpath=unknown
17047 dynamic_linker="$host_os ld.so"
17048 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17049 if test "$GCC" = yes; then
17050 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17051 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17052 # if the path contains ";" then we assume it to be the separator
17053 # otherwise default to the standard path separator (i.e. ":") - it is
17054 # assumed that no part of a normal pathname contains ";" but that should
17055 # okay in the real world where ";" in dirpaths is itself problematic.
17056 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17058 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17061 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17063 need_lib_prefix=unknown
17064 hardcode_into_libs=no
17066 # when you set need_version to no, make sure it does not cause -set_version
17067 # flags to be left without arguments
17068 need_version=unknown
17073 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17074 shlibpath_var=LIBPATH
17076 # AIX 3 has no versioning support, so we append a major version to the name.
17077 soname_spec='${libname}${release}${shared_ext}$major'
17084 hardcode_into_libs=yes
17085 if test "$host_cpu" = ia64; then
17086 # AIX 5 supports IA64
17087 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17088 shlibpath_var=LD_LIBRARY_PATH
17090 # With GCC up to 2.95.x, collect2 would create an import file
17091 # for dependence libraries. The import file would start with
17092 # the line `#! .'. This would cause the generated library to
17093 # depend on `.', always an invalid library. This was fixed in
17094 # development snapshots of GCC prior to 3.0.
17096 aix4 | aix4.[01] | aix4.[01].*)
17097 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17099 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17102 can_build_shared=no
17106 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17107 # soname into executable. Probably we can add versioning support to
17108 # collect2, so additional links can be useful in future.
17109 if test "$aix_use_runtimelinking" = yes; then
17110 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17111 # instead of lib<name>.a to let people know that these are not
17112 # typical AIX shared libraries.
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115 # We preserve .a as extension for shared libraries through AIX4.2
17116 # and later when we are not doing run time linking.
17117 library_names_spec='${libname}${release}.a $libname.a'
17118 soname_spec='${libname}${release}${shared_ext}$major'
17120 shlibpath_var=LIBPATH
17125 library_names_spec='$libname.ixlibrary $libname.a'
17126 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17127 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'
17131 library_names_spec='${libname}${shared_ext}'
17132 dynamic_linker="$host_os ld.so"
17133 shlibpath_var=LIBRARY_PATH
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17140 soname_spec='${libname}${release}${shared_ext}$major'
17141 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17142 shlibpath_var=LD_LIBRARY_PATH
17143 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17144 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17145 # the default ld.so.conf also contains /usr/contrib/lib and
17146 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17147 # libtool to hard-code these into programs
17150 cygwin* | mingw* | pw32*)
17151 version_type=windows
17156 case $GCC,$host_os in
17157 yes,cygwin* | yes,mingw* | yes,pw32*)
17158 library_names_spec='$libname.dll.a'
17159 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17160 postinstall_cmds='base_file=`basename \${file}`~
17161 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17162 dldir=$destdir/`dirname \$dlpath`~
17163 test -d \$dldir || mkdir -p \$dldir~
17164 $install_prog $dir/$dlname \$dldir/$dlname'
17165 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17166 dlpath=$dir/\$dldll~
17168 shlibpath_overrides_runpath=yes
17172 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17173 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17174 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17177 # MinGW DLLs use traditional 'lib' prefix
17178 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17179 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17180 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17181 # It is most probably a Windows format PATH printed by
17182 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17183 # path with ; separators, and with drive letters. We can handle the
17184 # drive letters (cygwin fileutils understands them), so leave them,
17185 # especially as we might pass files found there to a mingw objdump,
17186 # which wouldn't understand a cygwinified path. Ahh.
17187 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17189 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17193 # pw32 DLLs use 'pw' prefix rather than 'lib'
17194 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17200 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17203 dynamic_linker='Win32 ld.exe'
17204 # FIXME: first we should search . and the directory the executable is in
17208 darwin* | rhapsody*)
17209 dynamic_linker="$host_os dyld"
17210 version_type=darwin
17213 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17214 soname_spec='${libname}${release}${major}$shared_ext'
17215 shlibpath_overrides_runpath=yes
17216 shlibpath_var=DYLD_LIBRARY_PATH
17217 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17218 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17219 if test "$GCC" = yes; then
17220 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"`
17222 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17224 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17232 soname_spec='${libname}${release}${shared_ext}$major'
17233 shlibpath_var=LD_LIBRARY_PATH
17244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17245 soname_spec='${libname}${release}${shared_ext}$major'
17246 shlibpath_var=LD_LIBRARY_PATH
17247 shlibpath_overrides_runpath=no
17248 hardcode_into_libs=yes
17249 dynamic_linker='GNU ld.so'
17253 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17254 version_type=freebsd-$objformat
17255 case $version_type in
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17262 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17266 shlibpath_var=LD_LIBRARY_PATH
17269 shlibpath_overrides_runpath=yes
17271 freebsd3.01* | freebsdelf3.01*)
17272 shlibpath_overrides_runpath=yes
17273 hardcode_into_libs=yes
17276 shlibpath_overrides_runpath=no
17277 hardcode_into_libs=yes
17286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17287 soname_spec='${libname}${release}${shared_ext}$major'
17288 shlibpath_var=LD_LIBRARY_PATH
17289 hardcode_into_libs=yes
17292 hpux9* | hpux10* | hpux11*)
17293 # Give a soname corresponding to the major version so that dld.sl refuses to
17294 # link against other versions.
17298 case "$host_cpu" in
17301 hardcode_into_libs=yes
17302 dynamic_linker="$host_os dld.so"
17303 shlibpath_var=LD_LIBRARY_PATH
17304 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17306 soname_spec='${libname}${release}${shared_ext}$major'
17307 if test "X$HPUX_IA64_MODE" = X32; then
17308 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17310 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17316 hardcode_into_libs=yes
17317 dynamic_linker="$host_os dld.sl"
17318 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17319 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321 soname_spec='${libname}${release}${shared_ext}$major'
17322 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17327 dynamic_linker="$host_os dld.sl"
17328 shlibpath_var=SHLIB_PATH
17329 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17331 soname_spec='${libname}${release}${shared_ext}$major'
17334 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17335 postinstall_cmds='chmod 555 $lib'
17338 irix5* | irix6* | nonstopux*)
17340 nonstopux*) version_type=nonstopux ;;
17342 if test "$lt_cv_prog_gnu_ld" = yes; then
17350 soname_spec='${libname}${release}${shared_ext}$major'
17351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17353 irix5* | nonstopux*)
17354 libsuff= shlibsuff=
17357 case $LD in # libtool.m4 will add one of these switches to LD
17358 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17359 libsuff= shlibsuff= libmagic=32-bit;;
17360 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17361 libsuff=32 shlibsuff=N32 libmagic=N32;;
17362 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17363 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17364 *) libsuff= shlibsuff= libmagic=never-match;;
17368 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17369 shlibpath_overrides_runpath=no
17370 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17371 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17372 hardcode_into_libs=yes
17375 # No shared lib support for Linux oldld, aout, or coff.
17376 linux*oldld* | linux*aout* | linux*coff*)
17380 # This must be Linux ELF.
17385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17386 soname_spec='${libname}${release}${shared_ext}$major'
17387 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17388 shlibpath_var=LD_LIBRARY_PATH
17389 shlibpath_overrides_runpath=no
17390 # This implies no fast_install, which is unacceptable.
17391 # Some rework will be needed to allow for fast_install
17392 # before this can be enabled.
17393 hardcode_into_libs=yes
17395 # Append ld.so.conf contents to the search path
17396 if test -f /etc/ld.so.conf; then
17397 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17398 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17401 # We used to test for /lib/ld.so.1 and disable shared libraries on
17402 # powerpc, because MkLinux only supported shared libraries with the
17403 # GNU dynamic linker. Since this was broken with cross compilers,
17404 # most powerpc-linux boxes support dynamic linking these days and
17405 # people can always --disable-shared, the test was removed, and we
17406 # assume the GNU/Linux dynamic linker is in use.
17407 dynamic_linker='GNU/Linux ld.so'
17414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17415 soname_spec='${libname}${release}${shared_ext}$major'
17416 shlibpath_var=LD_LIBRARY_PATH
17417 shlibpath_overrides_runpath=no
17418 hardcode_into_libs=yes
17419 dynamic_linker='NetBSD ld.elf_so'
17426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17427 soname_spec='${libname}${release}${shared_ext}$major'
17428 shlibpath_var=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath=no
17430 hardcode_into_libs=yes
17431 dynamic_linker='GNU ld.so'
17438 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17440 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17441 dynamic_linker='NetBSD (a.out) ld.so'
17443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17444 soname_spec='${libname}${release}${shared_ext}$major'
17445 dynamic_linker='NetBSD ld.elf_so'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath=yes
17449 hardcode_into_libs=yes
17454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17455 shlibpath_var=LD_LIBRARY_PATH
17456 shlibpath_overrides_runpath=yes
17463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17464 soname_spec='${libname}${release}${shared_ext}$major'
17465 shlibpath_var=LD_LIBRARY_PATH
17466 shlibpath_overrides_runpath=yes
17473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17474 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17475 shlibpath_var=LD_LIBRARY_PATH
17476 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17478 openbsd2.[89] | openbsd2.[89].*)
17479 shlibpath_overrides_runpath=no
17482 shlibpath_overrides_runpath=yes
17486 shlibpath_overrides_runpath=yes
17491 libname_spec='$name'
17494 library_names_spec='$libname${shared_ext} $libname.a'
17495 dynamic_linker='OS/2 ld.exe'
17496 shlibpath_var=LIBPATH
17499 osf3* | osf4* | osf5*)
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 shlibpath_var=LD_LIBRARY_PATH
17506 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17507 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17512 soname_spec='${libname}${release}${shared_ext}$major'
17513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17514 shlibpath_var=LD_LIBRARY_PATH
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17522 soname_spec='${libname}${release}${shared_ext}$major'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 shlibpath_overrides_runpath=yes
17525 hardcode_into_libs=yes
17526 # ldd complains unless libraries are executable
17527 postinstall_cmds='chmod +x $lib'
17532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17533 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17534 shlibpath_var=LD_LIBRARY_PATH
17535 shlibpath_overrides_runpath=yes
17536 if test "$with_gnu_ld" = yes; then
17542 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17545 soname_spec='${libname}${release}${shared_ext}$major'
17546 shlibpath_var=LD_LIBRARY_PATH
17547 case $host_vendor in
17549 shlibpath_overrides_runpath=no
17551 export_dynamic_flag_spec='${wl}-Blargedynsym'
17552 runpath_var=LD_RUN_PATH
17560 shlibpath_overrides_runpath=no
17561 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17567 if test -d /usr/nec ;then
17569 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17570 soname_spec='$libname${shared_ext}.$major'
17571 shlibpath_var=LD_LIBRARY_PATH
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17578 soname_spec='${libname}${release}${shared_ext}$major'
17579 shlibpath_var=LD_LIBRARY_PATH
17586 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17587 echo "${ECHO_T}$dynamic_linker" >&6
17588 test "$dynamic_linker" = no && can_build_shared=no
17590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17592 hardcode_action_GCJ=
17593 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17594 test -n "$runpath_var GCJ" || \
17595 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17597 # We can hardcode non-existant directories.
17598 if test "$hardcode_direct_GCJ" != no &&
17599 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17600 # have to relink, otherwise we might link with an installed library
17601 # when we should be linking with a yet-to-be-installed one
17602 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17603 test "$hardcode_minus_L_GCJ" != no; then
17604 # Linking always hardcodes the temporary library directory.
17605 hardcode_action_GCJ=relink
17607 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17608 hardcode_action_GCJ=immediate
17611 # We cannot hardcode anything, or else we can only hardcode existing
17613 hardcode_action_GCJ=unsupported
17615 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17616 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17618 if test "$hardcode_action_GCJ" = relink; then
17619 # Fast installation is not supported
17620 enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622 test "$enable_shared" = no; then
17623 # Fast installation is not necessary
17624 enable_fast_install=needless
17629 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17630 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17631 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17632 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17633 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17634 echo "$as_me:$LINENO: result: yes" >&5
17635 echo "${ECHO_T}yes" >&6
17637 # FIXME - insert some real tests, host_os isn't really good enough
17640 if test -n "$STRIP" ; then
17641 striplib="$STRIP -x"
17642 echo "$as_me:$LINENO: result: yes" >&5
17643 echo "${ECHO_T}yes" >&6
17645 echo "$as_me:$LINENO: result: no" >&5
17646 echo "${ECHO_T}no" >&6
17650 echo "$as_me:$LINENO: result: no" >&5
17651 echo "${ECHO_T}no" >&6
17656 if test "x$enable_dlopen" != xyes; then
17657 enable_dlopen=unknown
17658 enable_dlopen_self=unknown
17659 enable_dlopen_self_static=unknown
17666 lt_cv_dlopen="load_add_on"
17668 lt_cv_dlopen_self=yes
17672 lt_cv_dlopen="LoadLibrary"
17677 lt_cv_dlopen="dlopen"
17682 # if libdl is installed we need to link against it
17683 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17684 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17685 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 ac_check_lib_save_LIBS=$LIBS
17690 cat >conftest.$ac_ext <<_ACEOF
17693 cat confdefs.h >>conftest.$ac_ext
17694 cat >>conftest.$ac_ext <<_ACEOF
17695 /* end confdefs.h. */
17697 /* Override any gcc2 internal prototype to avoid an error. */
17701 /* We use char because int might match the return type of a gcc2
17702 builtin and then its argument prototype would still apply. */
17712 rm -f conftest.$ac_objext conftest$ac_exeext
17713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17714 (eval $ac_link) 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17723 (eval $ac_try) 2>&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); }; } &&
17727 { ac_try='test -s conftest$ac_exeext'
17728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17729 (eval $ac_try) 2>&5
17731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17732 (exit $ac_status); }; }; then
17733 ac_cv_lib_dl_dlopen=yes
17735 echo "$as_me: failed program was:" >&5
17736 sed 's/^/| /' conftest.$ac_ext >&5
17738 ac_cv_lib_dl_dlopen=no
17740 rm -f conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17744 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17745 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17746 if test $ac_cv_lib_dl_dlopen = yes; then
17747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17750 lt_cv_dlopen="dyld"
17752 lt_cv_dlopen_self=yes
17759 echo "$as_me:$LINENO: checking for shl_load" >&5
17760 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17761 if test "${ac_cv_func_shl_load+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772 #define shl_load innocuous_shl_load
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char shl_load (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17780 # include <limits.h>
17782 # include <assert.h>
17787 /* Override any gcc2 internal prototype to avoid an error. */
17792 /* We use char because int might match the return type of a gcc2
17793 builtin and then its argument prototype would still apply. */
17795 /* The GNU C library defines this for functions which it implements
17796 to always fail with ENOSYS. Some functions are actually named
17797 something starting with __ and the normal name is an alias. */
17798 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17801 char (*f) () = shl_load;
17810 return f != shl_load;
17815 rm -f conftest.$ac_objext conftest$ac_exeext
17816 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17817 (eval $ac_link) 2>conftest.er1
17819 grep -v '^ *+' conftest.er1 >conftest.err
17821 cat conftest.err >&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); } &&
17824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17826 (eval $ac_try) 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest$ac_exeext'
17831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17832 (eval $ac_try) 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 ac_cv_func_shl_load=yes
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 ac_cv_func_shl_load=no
17843 rm -f conftest.err conftest.$ac_objext \
17844 conftest$ac_exeext conftest.$ac_ext
17846 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17847 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17848 if test $ac_cv_func_shl_load = yes; then
17849 lt_cv_dlopen="shl_load"
17851 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17852 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17853 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17854 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 ac_check_lib_save_LIBS=$LIBS
17858 cat >conftest.$ac_ext <<_ACEOF
17861 cat confdefs.h >>conftest.$ac_ext
17862 cat >>conftest.$ac_ext <<_ACEOF
17863 /* end confdefs.h. */
17865 /* Override any gcc2 internal prototype to avoid an error. */
17869 /* We use char because int might match the return type of a gcc2
17870 builtin and then its argument prototype would still apply. */
17880 rm -f conftest.$ac_objext conftest$ac_exeext
17881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17882 (eval $ac_link) 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17888 (exit $ac_status); } &&
17889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17890 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17891 (eval $ac_try) 2>&5
17893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17894 (exit $ac_status); }; } &&
17895 { ac_try='test -s conftest$ac_exeext'
17896 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17897 (eval $ac_try) 2>&5
17899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17900 (exit $ac_status); }; }; then
17901 ac_cv_lib_dld_shl_load=yes
17903 echo "$as_me: failed program was:" >&5
17904 sed 's/^/| /' conftest.$ac_ext >&5
17906 ac_cv_lib_dld_shl_load=no
17908 rm -f conftest.err conftest.$ac_objext \
17909 conftest$ac_exeext conftest.$ac_ext
17910 LIBS=$ac_check_lib_save_LIBS
17912 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17913 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17914 if test $ac_cv_lib_dld_shl_load = yes; then
17915 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17917 echo "$as_me:$LINENO: checking for dlopen" >&5
17918 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17919 if test "${ac_cv_func_dlopen+set}" = set; then
17920 echo $ECHO_N "(cached) $ECHO_C" >&6
17922 cat >conftest.$ac_ext <<_ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17930 #define dlopen innocuous_dlopen
17932 /* System header to define __stub macros and hopefully few prototypes,
17933 which can conflict with char dlopen (); below.
17934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17935 <limits.h> exists even on freestanding compilers. */
17938 # include <limits.h>
17940 # include <assert.h>
17945 /* Override any gcc2 internal prototype to avoid an error. */
17950 /* We use char because int might match the return type of a gcc2
17951 builtin and then its argument prototype would still apply. */
17953 /* The GNU C library defines this for functions which it implements
17954 to always fail with ENOSYS. Some functions are actually named
17955 something starting with __ and the normal name is an alias. */
17956 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17959 char (*f) () = dlopen;
17968 return f != dlopen;
17973 rm -f conftest.$ac_objext conftest$ac_exeext
17974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17975 (eval $ac_link) 2>conftest.er1
17977 grep -v '^ *+' conftest.er1 >conftest.err
17979 cat conftest.err >&5
17980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17981 (exit $ac_status); } &&
17982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17984 (eval $ac_try) 2>&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); }; } &&
17988 { ac_try='test -s conftest$ac_exeext'
17989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17990 (eval $ac_try) 2>&5
17992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17993 (exit $ac_status); }; }; then
17994 ac_cv_func_dlopen=yes
17996 echo "$as_me: failed program was:" >&5
17997 sed 's/^/| /' conftest.$ac_ext >&5
17999 ac_cv_func_dlopen=no
18001 rm -f conftest.err conftest.$ac_objext \
18002 conftest$ac_exeext conftest.$ac_ext
18004 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
18005 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
18006 if test $ac_cv_func_dlopen = yes; then
18007 lt_cv_dlopen="dlopen"
18009 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
18010 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
18011 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
18012 echo $ECHO_N "(cached) $ECHO_C" >&6
18014 ac_check_lib_save_LIBS=$LIBS
18016 cat >conftest.$ac_ext <<_ACEOF
18019 cat confdefs.h >>conftest.$ac_ext
18020 cat >>conftest.$ac_ext <<_ACEOF
18021 /* end confdefs.h. */
18023 /* Override any gcc2 internal prototype to avoid an error. */
18027 /* We use char because int might match the return type of a gcc2
18028 builtin and then its argument prototype would still apply. */
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18040 (eval $ac_link) 2>conftest.er1
18042 grep -v '^ *+' conftest.er1 >conftest.err
18044 cat conftest.err >&5
18045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046 (exit $ac_status); } &&
18047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18049 (eval $ac_try) 2>&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); }; } &&
18053 { ac_try='test -s conftest$ac_exeext'
18054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18055 (eval $ac_try) 2>&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); }; }; then
18059 ac_cv_lib_dl_dlopen=yes
18061 echo "$as_me: failed program was:" >&5
18062 sed 's/^/| /' conftest.$ac_ext >&5
18064 ac_cv_lib_dl_dlopen=no
18066 rm -f conftest.err conftest.$ac_objext \
18067 conftest$ac_exeext conftest.$ac_ext
18068 LIBS=$ac_check_lib_save_LIBS
18070 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
18071 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
18072 if test $ac_cv_lib_dl_dlopen = yes; then
18073 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
18075 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
18076 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
18077 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
18078 echo $ECHO_N "(cached) $ECHO_C" >&6
18080 ac_check_lib_save_LIBS=$LIBS
18081 LIBS="-lsvld $LIBS"
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18089 /* Override any gcc2 internal prototype to avoid an error. */
18093 /* We use char because int might match the return type of a gcc2
18094 builtin and then its argument prototype would still apply. */
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18106 (eval $ac_link) 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18115 (eval $ac_try) 2>&5
18117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18118 (exit $ac_status); }; } &&
18119 { ac_try='test -s conftest$ac_exeext'
18120 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18121 (eval $ac_try) 2>&5
18123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124 (exit $ac_status); }; }; then
18125 ac_cv_lib_svld_dlopen=yes
18127 echo "$as_me: failed program was:" >&5
18128 sed 's/^/| /' conftest.$ac_ext >&5
18130 ac_cv_lib_svld_dlopen=no
18132 rm -f conftest.err conftest.$ac_objext \
18133 conftest$ac_exeext conftest.$ac_ext
18134 LIBS=$ac_check_lib_save_LIBS
18136 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
18137 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
18138 if test $ac_cv_lib_svld_dlopen = yes; then
18139 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18141 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
18142 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
18143 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
18144 echo $ECHO_N "(cached) $ECHO_C" >&6
18146 ac_check_lib_save_LIBS=$LIBS
18148 cat >conftest.$ac_ext <<_ACEOF
18151 cat confdefs.h >>conftest.$ac_ext
18152 cat >>conftest.$ac_ext <<_ACEOF
18153 /* end confdefs.h. */
18155 /* Override any gcc2 internal prototype to avoid an error. */
18159 /* We use char because int might match the return type of a gcc2
18160 builtin and then its argument prototype would still apply. */
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18181 (eval $ac_try) 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; } &&
18185 { ac_try='test -s conftest$ac_exeext'
18186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18187 (eval $ac_try) 2>&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); }; }; then
18191 ac_cv_lib_dld_dld_link=yes
18193 echo "$as_me: failed program was:" >&5
18194 sed 's/^/| /' conftest.$ac_ext >&5
18196 ac_cv_lib_dld_dld_link=no
18198 rm -f conftest.err conftest.$ac_objext \
18199 conftest$ac_exeext conftest.$ac_ext
18200 LIBS=$ac_check_lib_save_LIBS
18202 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18203 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18204 if test $ac_cv_lib_dld_dld_link = yes; then
18205 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18226 if test "x$lt_cv_dlopen" != xno; then
18232 case $lt_cv_dlopen in
18234 save_CPPFLAGS="$CPPFLAGS"
18235 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18237 save_LDFLAGS="$LDFLAGS"
18238 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18241 LIBS="$lt_cv_dlopen_libs $LIBS"
18243 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18244 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18245 if test "${lt_cv_dlopen_self+set}" = set; then
18246 echo $ECHO_N "(cached) $ECHO_C" >&6
18248 if test "$cross_compiling" = yes; then :
18249 lt_cv_dlopen_self=cross
18251 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18252 lt_status=$lt_dlunknown
18253 cat > conftest.$ac_ext <<EOF
18254 #line 18254 "configure"
18255 #include "confdefs.h"
18264 # define LT_DLGLOBAL RTLD_GLOBAL
18267 # define LT_DLGLOBAL DL_GLOBAL
18269 # define LT_DLGLOBAL 0
18273 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18274 find out it does not work in some platform. */
18275 #ifndef LT_DLLAZY_OR_NOW
18277 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18280 # define LT_DLLAZY_OR_NOW DL_LAZY
18283 # define LT_DLLAZY_OR_NOW RTLD_NOW
18286 # define LT_DLLAZY_OR_NOW DL_NOW
18288 # define LT_DLLAZY_OR_NOW 0
18296 extern "C" void exit (int);
18299 void fnord() { int i=42;}
18302 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18303 int status = $lt_dlunknown;
18307 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18308 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18309 /* dlclose (self); */
18315 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18316 (eval $ac_link) 2>&5
18318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18319 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18320 (./conftest; exit; ) 2>/dev/null
18322 case x$lt_status in
18323 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18324 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18325 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18328 # compilation failed
18329 lt_cv_dlopen_self=no
18336 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18337 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18339 if test "x$lt_cv_dlopen_self" = xyes; then
18340 LDFLAGS="$LDFLAGS $link_static_flag"
18341 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18342 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18343 if test "${lt_cv_dlopen_self_static+set}" = set; then
18344 echo $ECHO_N "(cached) $ECHO_C" >&6
18346 if test "$cross_compiling" = yes; then :
18347 lt_cv_dlopen_self_static=cross
18349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18350 lt_status=$lt_dlunknown
18351 cat > conftest.$ac_ext <<EOF
18352 #line 18352 "configure"
18353 #include "confdefs.h"
18362 # define LT_DLGLOBAL RTLD_GLOBAL
18365 # define LT_DLGLOBAL DL_GLOBAL
18367 # define LT_DLGLOBAL 0
18371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18372 find out it does not work in some platform. */
18373 #ifndef LT_DLLAZY_OR_NOW
18375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18378 # define LT_DLLAZY_OR_NOW DL_LAZY
18381 # define LT_DLLAZY_OR_NOW RTLD_NOW
18384 # define LT_DLLAZY_OR_NOW DL_NOW
18386 # define LT_DLLAZY_OR_NOW 0
18394 extern "C" void exit (int);
18397 void fnord() { int i=42;}
18400 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18401 int status = $lt_dlunknown;
18405 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18406 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18407 /* dlclose (self); */
18413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18414 (eval $ac_link) 2>&5
18416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18417 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18418 (./conftest; exit; ) 2>/dev/null
18420 case x$lt_status in
18421 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18422 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18423 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18426 # compilation failed
18427 lt_cv_dlopen_self_static=no
18434 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18435 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18438 CPPFLAGS="$save_CPPFLAGS"
18439 LDFLAGS="$save_LDFLAGS"
18444 case $lt_cv_dlopen_self in
18445 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18446 *) enable_dlopen_self=unknown ;;
18449 case $lt_cv_dlopen_self_static in
18450 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18451 *) enable_dlopen_self_static=unknown ;;
18456 # The else clause should only fire when bootstrapping the
18457 # libtool distribution, otherwise you forgot to ship ltmain.sh
18458 # with your package, and you will get complaints that there are
18459 # no rules to generate ltmain.sh.
18460 if test -f "$ltmain"; then
18461 # See if we are running on zsh, and set the options which allow our commands through
18462 # without removal of \ escapes.
18463 if test -n "${ZSH_VERSION+set}" ; then
18464 setopt NO_GLOB_SUBST
18466 # Now quote all the things that may contain metacharacters while being
18467 # careful not to overquote the AC_SUBSTed values. We take copies of the
18468 # variables and quote the copies for generation of the libtool script.
18469 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18471 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18472 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18473 deplibs_check_method reload_flag reload_cmds need_locks \
18474 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18475 lt_cv_sys_global_symbol_to_c_name_address \
18476 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18477 old_postinstall_cmds old_postuninstall_cmds \
18481 lt_prog_compiler_wl_GCJ \
18482 lt_prog_compiler_pic_GCJ \
18483 lt_prog_compiler_static_GCJ \
18484 lt_prog_compiler_no_builtin_flag_GCJ \
18485 export_dynamic_flag_spec_GCJ \
18486 thread_safe_flag_spec_GCJ \
18487 whole_archive_flag_spec_GCJ \
18488 enable_shared_with_static_runtimes_GCJ \
18489 old_archive_cmds_GCJ \
18490 old_archive_from_new_cmds_GCJ \
18491 predep_objects_GCJ \
18492 postdep_objects_GCJ \
18495 compiler_lib_search_path_GCJ \
18497 archive_expsym_cmds_GCJ \
18498 postinstall_cmds_GCJ \
18499 postuninstall_cmds_GCJ \
18500 old_archive_from_expsyms_cmds_GCJ \
18501 allow_undefined_flag_GCJ \
18502 no_undefined_flag_GCJ \
18503 export_symbols_cmds_GCJ \
18504 hardcode_libdir_flag_spec_GCJ \
18505 hardcode_libdir_flag_spec_ld_GCJ \
18506 hardcode_libdir_separator_GCJ \
18507 hardcode_automatic_GCJ \
18509 module_expsym_cmds_GCJ \
18510 lt_cv_prog_compiler_c_o_GCJ \
18511 exclude_expsyms_GCJ \
18512 include_expsyms_GCJ; do
18515 old_archive_cmds_GCJ | \
18516 old_archive_from_new_cmds_GCJ | \
18517 archive_cmds_GCJ | \
18518 archive_expsym_cmds_GCJ | \
18519 module_cmds_GCJ | \
18520 module_expsym_cmds_GCJ | \
18521 old_archive_from_expsyms_cmds_GCJ | \
18522 export_symbols_cmds_GCJ | \
18523 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18524 postinstall_cmds | postuninstall_cmds | \
18525 old_postinstall_cmds | old_postuninstall_cmds | \
18526 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18527 # Double-quote double-evaled strings.
18528 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18537 *'\$0 --fallback-echo"')
18538 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18544 cat <<__EOF__ >> "$cfgfile"
18545 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18547 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18549 # Shell to use when invoking shell scripts.
18552 # Whether or not to build shared libraries.
18553 build_libtool_libs=$enable_shared
18555 # Whether or not to build static libraries.
18556 build_old_libs=$enable_static
18558 # Whether or not to add -lc for building shared libraries.
18559 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18561 # Whether or not to disallow shared libs when runtime libs are static
18562 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18564 # Whether or not to optimize for fast installation.
18565 fast_install=$enable_fast_install
18568 host_alias=$host_alias
18571 # An echo program that does not interpret backslashes.
18576 AR_FLAGS=$lt_AR_FLAGS
18581 # A language-specific compiler.
18582 CC=$lt_compiler_GCJ
18584 # Is the compiler the GNU C compiler?
18590 # The linker used to build libraries.
18593 # Whether we need hard or soft links.
18596 # A BSD-compatible nm program.
18599 # A symbol stripping program
18602 # Used to examine libraries when file_magic_cmd begins "file"
18603 MAGIC_CMD=$MAGIC_CMD
18605 # Used on cygwin: DLL creation program.
18608 # Used on cygwin: object dumper.
18611 # Used on cygwin: assembler.
18614 # The name of the directory that contains temporary libtool files.
18617 # How to create reloadable object files.
18618 reload_flag=$lt_reload_flag
18619 reload_cmds=$lt_reload_cmds
18621 # How to pass a linker flag through the compiler.
18622 wl=$lt_lt_prog_compiler_wl_GCJ
18624 # Object file suffix (normally "o").
18625 objext="$ac_objext"
18627 # Old archive suffix (normally "a").
18630 # Shared library suffix (normally ".so").
18631 shrext_cmds='$shrext_cmds'
18633 # Executable file suffix (normally "").
18636 # Additional compiler flags for building library objects.
18637 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18640 # What is the maximum length of a command?
18641 max_cmd_len=$lt_cv_sys_max_cmd_len
18643 # Does compiler simultaneously support -c and -o options?
18644 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18646 # Must we lock files when doing compilation ?
18647 need_locks=$lt_need_locks
18649 # Do we need the lib prefix for modules?
18650 need_lib_prefix=$need_lib_prefix
18652 # Do we need a version for libraries?
18653 need_version=$need_version
18655 # Whether dlopen is supported.
18656 dlopen_support=$enable_dlopen
18658 # Whether dlopen of programs is supported.
18659 dlopen_self=$enable_dlopen_self
18661 # Whether dlopen of statically linked programs is supported.
18662 dlopen_self_static=$enable_dlopen_self_static
18664 # Compiler flag to prevent dynamic linking.
18665 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18667 # Compiler flag to turn off builtin functions.
18668 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18670 # Compiler flag to allow reflexive dlopens.
18671 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18673 # Compiler flag to generate shared objects directly from archives.
18674 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18676 # Compiler flag to generate thread-safe objects.
18677 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18679 # Library versioning type.
18680 version_type=$version_type
18682 # Format of library name prefix.
18683 libname_spec=$lt_libname_spec
18685 # List of archive names. First name is the real one, the rest are links.
18686 # The last name is the one that the linker finds with -lNAME.
18687 library_names_spec=$lt_library_names_spec
18689 # The coded name of the library, if different from the real name.
18690 soname_spec=$lt_soname_spec
18692 # Commands used to build and install an old-style archive.
18694 old_archive_cmds=$lt_old_archive_cmds_GCJ
18695 old_postinstall_cmds=$lt_old_postinstall_cmds
18696 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18698 # Create an old-style archive from a shared archive.
18699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18701 # Create a temporary old-style archive to link instead of a shared archive.
18702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18704 # Commands used to build and install a shared archive.
18705 archive_cmds=$lt_archive_cmds_GCJ
18706 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18707 postinstall_cmds=$lt_postinstall_cmds
18708 postuninstall_cmds=$lt_postuninstall_cmds
18710 # Commands used to build a loadable module (assumed same as above if empty)
18711 module_cmds=$lt_module_cmds_GCJ
18712 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18714 # Commands to strip libraries.
18715 old_striplib=$lt_old_striplib
18716 striplib=$lt_striplib
18718 # Dependencies to place before the objects being linked to create a
18720 predep_objects=$lt_predep_objects_GCJ
18722 # Dependencies to place after the objects being linked to create a
18724 postdep_objects=$lt_postdep_objects_GCJ
18726 # Dependencies to place before the objects being linked to create a
18728 predeps=$lt_predeps_GCJ
18730 # Dependencies to place after the objects being linked to create a
18732 postdeps=$lt_postdeps_GCJ
18734 # The library search path used internally by the compiler when linking
18735 # a shared library.
18736 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18738 # Method to check whether dependent libraries are shared objects.
18739 deplibs_check_method=$lt_deplibs_check_method
18741 # Command to use when deplibs_check_method == file_magic.
18742 file_magic_cmd=$lt_file_magic_cmd
18744 # Flag that allows shared libraries with undefined symbols to be built.
18745 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18747 # Flag that forces no undefined symbols.
18748 no_undefined_flag=$lt_no_undefined_flag_GCJ
18750 # Commands used to finish a libtool library installation in a directory.
18751 finish_cmds=$lt_finish_cmds
18753 # Same as above, but a single script fragment to be evaled but not shown.
18754 finish_eval=$lt_finish_eval
18756 # Take the output of nm and produce a listing of raw symbols and C names.
18757 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18759 # Transform the output of nm in a proper C declaration
18760 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18762 # Transform the output of nm in a C name address pair
18763 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18765 # This is the shared library runtime path variable.
18766 runpath_var=$runpath_var
18768 # This is the shared library path variable.
18769 shlibpath_var=$shlibpath_var
18771 # Is shlibpath searched before the hard-coded library search path?
18772 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18774 # How to hardcode a shared library path into an executable.
18775 hardcode_action=$hardcode_action_GCJ
18777 # Whether we should hardcode library paths into libraries.
18778 hardcode_into_libs=$hardcode_into_libs
18780 # Flag to hardcode \$libdir into a binary during linking.
18781 # This must work even if \$libdir does not exist.
18782 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18784 # If ld is used when linking, flag to hardcode \$libdir into
18785 # a binary during linking. This must work even if \$libdir does
18787 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18789 # Whether we need a single -rpath flag with a separated argument.
18790 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18792 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18793 # resulting binary.
18794 hardcode_direct=$hardcode_direct_GCJ
18796 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18797 # resulting binary.
18798 hardcode_minus_L=$hardcode_minus_L_GCJ
18800 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18801 # the resulting binary.
18802 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18804 # Set to yes if building a shared library automatically hardcodes DIR into the library
18805 # and all subsequent libraries and executables linked against it.
18806 hardcode_automatic=$hardcode_automatic_GCJ
18808 # Variables whose values should be saved in libtool wrapper scripts and
18809 # restored at relink time.
18810 variables_saved_for_relink="$variables_saved_for_relink"
18812 # Whether libtool must link a program against all its dependency libraries.
18813 link_all_deplibs=$link_all_deplibs_GCJ
18815 # Compile-time system search path for libraries
18816 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18818 # Run-time system search path for libraries
18819 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18821 # Fix the shell variable \$srcfile for the compiler.
18822 fix_srcfile_path="$fix_srcfile_path_GCJ"
18824 # Set to yes if exported symbols are required.
18825 always_export_symbols=$always_export_symbols_GCJ
18827 # The commands to list exported symbols.
18828 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18830 # The commands to extract the exported symbol list from a shared archive.
18831 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18833 # Symbols that should not be listed in the preloaded symbols.
18834 exclude_expsyms=$lt_exclude_expsyms_GCJ
18836 # Symbols that must always be exported.
18837 include_expsyms=$lt_include_expsyms_GCJ
18839 # ### END LIBTOOL TAG CONFIG: $tagname
18845 # If there is no Makefile yet, we rely on a make rule to execute
18846 # `config.status --recheck' to rerun these tests and create the
18847 # libtool script then.
18848 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18849 if test -f "$ltmain_in"; then
18850 test -f Makefile && make "$ltmain"
18856 ac_cpp='$CPP $CPPFLAGS'
18857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18872 # Source file extension for RC test sources.
18875 # Object file extension for compiled RC test sources.
18879 # Code to be used in simple compile tests
18880 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18882 # Code to be used in simple link tests
18883 lt_simple_link_test_code="$lt_simple_compile_test_code"
18885 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18887 # If no C compiler was specified, use CC.
18890 # Allow CC to be a program name with arguments.
18894 # Allow CC to be a program name with arguments.
18899 lt_cv_prog_compiler_c_o_RC=yes
18901 # The else clause should only fire when bootstrapping the
18902 # libtool distribution, otherwise you forgot to ship ltmain.sh
18903 # with your package, and you will get complaints that there are
18904 # no rules to generate ltmain.sh.
18905 if test -f "$ltmain"; then
18906 # See if we are running on zsh, and set the options which allow our commands through
18907 # without removal of \ escapes.
18908 if test -n "${ZSH_VERSION+set}" ; then
18909 setopt NO_GLOB_SUBST
18911 # Now quote all the things that may contain metacharacters while being
18912 # careful not to overquote the AC_SUBSTed values. We take copies of the
18913 # variables and quote the copies for generation of the libtool script.
18914 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18916 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18917 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18918 deplibs_check_method reload_flag reload_cmds need_locks \
18919 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18920 lt_cv_sys_global_symbol_to_c_name_address \
18921 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18922 old_postinstall_cmds old_postuninstall_cmds \
18926 lt_prog_compiler_wl_RC \
18927 lt_prog_compiler_pic_RC \
18928 lt_prog_compiler_static_RC \
18929 lt_prog_compiler_no_builtin_flag_RC \
18930 export_dynamic_flag_spec_RC \
18931 thread_safe_flag_spec_RC \
18932 whole_archive_flag_spec_RC \
18933 enable_shared_with_static_runtimes_RC \
18934 old_archive_cmds_RC \
18935 old_archive_from_new_cmds_RC \
18936 predep_objects_RC \
18937 postdep_objects_RC \
18940 compiler_lib_search_path_RC \
18942 archive_expsym_cmds_RC \
18943 postinstall_cmds_RC \
18944 postuninstall_cmds_RC \
18945 old_archive_from_expsyms_cmds_RC \
18946 allow_undefined_flag_RC \
18947 no_undefined_flag_RC \
18948 export_symbols_cmds_RC \
18949 hardcode_libdir_flag_spec_RC \
18950 hardcode_libdir_flag_spec_ld_RC \
18951 hardcode_libdir_separator_RC \
18952 hardcode_automatic_RC \
18954 module_expsym_cmds_RC \
18955 lt_cv_prog_compiler_c_o_RC \
18956 exclude_expsyms_RC \
18957 include_expsyms_RC; do
18960 old_archive_cmds_RC | \
18961 old_archive_from_new_cmds_RC | \
18962 archive_cmds_RC | \
18963 archive_expsym_cmds_RC | \
18965 module_expsym_cmds_RC | \
18966 old_archive_from_expsyms_cmds_RC | \
18967 export_symbols_cmds_RC | \
18968 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18969 postinstall_cmds | postuninstall_cmds | \
18970 old_postinstall_cmds | old_postuninstall_cmds | \
18971 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18972 # Double-quote double-evaled strings.
18973 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18976 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18982 *'\$0 --fallback-echo"')
18983 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18989 cat <<__EOF__ >> "$cfgfile"
18990 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18992 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18994 # Shell to use when invoking shell scripts.
18997 # Whether or not to build shared libraries.
18998 build_libtool_libs=$enable_shared
19000 # Whether or not to build static libraries.
19001 build_old_libs=$enable_static
19003 # Whether or not to add -lc for building shared libraries.
19004 build_libtool_need_lc=$archive_cmds_need_lc_RC
19006 # Whether or not to disallow shared libs when runtime libs are static
19007 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19009 # Whether or not to optimize for fast installation.
19010 fast_install=$enable_fast_install
19013 host_alias=$host_alias
19016 # An echo program that does not interpret backslashes.
19021 AR_FLAGS=$lt_AR_FLAGS
19026 # A language-specific compiler.
19029 # Is the compiler the GNU C compiler?
19035 # The linker used to build libraries.
19038 # Whether we need hard or soft links.
19041 # A BSD-compatible nm program.
19044 # A symbol stripping program
19047 # Used to examine libraries when file_magic_cmd begins "file"
19048 MAGIC_CMD=$MAGIC_CMD
19050 # Used on cygwin: DLL creation program.
19053 # Used on cygwin: object dumper.
19056 # Used on cygwin: assembler.
19059 # The name of the directory that contains temporary libtool files.
19062 # How to create reloadable object files.
19063 reload_flag=$lt_reload_flag
19064 reload_cmds=$lt_reload_cmds
19066 # How to pass a linker flag through the compiler.
19067 wl=$lt_lt_prog_compiler_wl_RC
19069 # Object file suffix (normally "o").
19070 objext="$ac_objext"
19072 # Old archive suffix (normally "a").
19075 # Shared library suffix (normally ".so").
19076 shrext_cmds='$shrext_cmds'
19078 # Executable file suffix (normally "").
19081 # Additional compiler flags for building library objects.
19082 pic_flag=$lt_lt_prog_compiler_pic_RC
19085 # What is the maximum length of a command?
19086 max_cmd_len=$lt_cv_sys_max_cmd_len
19088 # Does compiler simultaneously support -c and -o options?
19089 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19091 # Must we lock files when doing compilation ?
19092 need_locks=$lt_need_locks
19094 # Do we need the lib prefix for modules?
19095 need_lib_prefix=$need_lib_prefix
19097 # Do we need a version for libraries?
19098 need_version=$need_version
19100 # Whether dlopen is supported.
19101 dlopen_support=$enable_dlopen
19103 # Whether dlopen of programs is supported.
19104 dlopen_self=$enable_dlopen_self
19106 # Whether dlopen of statically linked programs is supported.
19107 dlopen_self_static=$enable_dlopen_self_static
19109 # Compiler flag to prevent dynamic linking.
19110 link_static_flag=$lt_lt_prog_compiler_static_RC
19112 # Compiler flag to turn off builtin functions.
19113 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19115 # Compiler flag to allow reflexive dlopens.
19116 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19118 # Compiler flag to generate shared objects directly from archives.
19119 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19121 # Compiler flag to generate thread-safe objects.
19122 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19124 # Library versioning type.
19125 version_type=$version_type
19127 # Format of library name prefix.
19128 libname_spec=$lt_libname_spec
19130 # List of archive names. First name is the real one, the rest are links.
19131 # The last name is the one that the linker finds with -lNAME.
19132 library_names_spec=$lt_library_names_spec
19134 # The coded name of the library, if different from the real name.
19135 soname_spec=$lt_soname_spec
19137 # Commands used to build and install an old-style archive.
19139 old_archive_cmds=$lt_old_archive_cmds_RC
19140 old_postinstall_cmds=$lt_old_postinstall_cmds
19141 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19143 # Create an old-style archive from a shared archive.
19144 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19146 # Create a temporary old-style archive to link instead of a shared archive.
19147 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19149 # Commands used to build and install a shared archive.
19150 archive_cmds=$lt_archive_cmds_RC
19151 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19152 postinstall_cmds=$lt_postinstall_cmds
19153 postuninstall_cmds=$lt_postuninstall_cmds
19155 # Commands used to build a loadable module (assumed same as above if empty)
19156 module_cmds=$lt_module_cmds_RC
19157 module_expsym_cmds=$lt_module_expsym_cmds_RC
19159 # Commands to strip libraries.
19160 old_striplib=$lt_old_striplib
19161 striplib=$lt_striplib
19163 # Dependencies to place before the objects being linked to create a
19165 predep_objects=$lt_predep_objects_RC
19167 # Dependencies to place after the objects being linked to create a
19169 postdep_objects=$lt_postdep_objects_RC
19171 # Dependencies to place before the objects being linked to create a
19173 predeps=$lt_predeps_RC
19175 # Dependencies to place after the objects being linked to create a
19177 postdeps=$lt_postdeps_RC
19179 # The library search path used internally by the compiler when linking
19180 # a shared library.
19181 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19183 # Method to check whether dependent libraries are shared objects.
19184 deplibs_check_method=$lt_deplibs_check_method
19186 # Command to use when deplibs_check_method == file_magic.
19187 file_magic_cmd=$lt_file_magic_cmd
19189 # Flag that allows shared libraries with undefined symbols to be built.
19190 allow_undefined_flag=$lt_allow_undefined_flag_RC
19192 # Flag that forces no undefined symbols.
19193 no_undefined_flag=$lt_no_undefined_flag_RC
19195 # Commands used to finish a libtool library installation in a directory.
19196 finish_cmds=$lt_finish_cmds
19198 # Same as above, but a single script fragment to be evaled but not shown.
19199 finish_eval=$lt_finish_eval
19201 # Take the output of nm and produce a listing of raw symbols and C names.
19202 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19204 # Transform the output of nm in a proper C declaration
19205 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19207 # Transform the output of nm in a C name address pair
19208 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19210 # This is the shared library runtime path variable.
19211 runpath_var=$runpath_var
19213 # This is the shared library path variable.
19214 shlibpath_var=$shlibpath_var
19216 # Is shlibpath searched before the hard-coded library search path?
19217 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19219 # How to hardcode a shared library path into an executable.
19220 hardcode_action=$hardcode_action_RC
19222 # Whether we should hardcode library paths into libraries.
19223 hardcode_into_libs=$hardcode_into_libs
19225 # Flag to hardcode \$libdir into a binary during linking.
19226 # This must work even if \$libdir does not exist.
19227 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19229 # If ld is used when linking, flag to hardcode \$libdir into
19230 # a binary during linking. This must work even if \$libdir does
19232 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19234 # Whether we need a single -rpath flag with a separated argument.
19235 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19237 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19238 # resulting binary.
19239 hardcode_direct=$hardcode_direct_RC
19241 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19242 # resulting binary.
19243 hardcode_minus_L=$hardcode_minus_L_RC
19245 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19246 # the resulting binary.
19247 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19249 # Set to yes if building a shared library automatically hardcodes DIR into the library
19250 # and all subsequent libraries and executables linked against it.
19251 hardcode_automatic=$hardcode_automatic_RC
19253 # Variables whose values should be saved in libtool wrapper scripts and
19254 # restored at relink time.
19255 variables_saved_for_relink="$variables_saved_for_relink"
19257 # Whether libtool must link a program against all its dependency libraries.
19258 link_all_deplibs=$link_all_deplibs_RC
19260 # Compile-time system search path for libraries
19261 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19263 # Run-time system search path for libraries
19264 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19266 # Fix the shell variable \$srcfile for the compiler.
19267 fix_srcfile_path="$fix_srcfile_path_RC"
19269 # Set to yes if exported symbols are required.
19270 always_export_symbols=$always_export_symbols_RC
19272 # The commands to list exported symbols.
19273 export_symbols_cmds=$lt_export_symbols_cmds_RC
19275 # The commands to extract the exported symbol list from a shared archive.
19276 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19278 # Symbols that should not be listed in the preloaded symbols.
19279 exclude_expsyms=$lt_exclude_expsyms_RC
19281 # Symbols that must always be exported.
19282 include_expsyms=$lt_include_expsyms_RC
19284 # ### END LIBTOOL TAG CONFIG: $tagname
19290 # If there is no Makefile yet, we rely on a make rule to execute
19291 # `config.status --recheck' to rerun these tests and create the
19292 # libtool script then.
19293 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19294 if test -f "$ltmain_in"; then
19295 test -f Makefile && make "$ltmain"
19301 ac_cpp='$CPP $CPPFLAGS'
19302 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19303 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19304 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19311 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19312 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19313 { (exit 1); exit 1; }; }
19317 # Append the new tag name to the list of available tags.
19318 if test -n "$tagname" ; then
19319 available_tags="$available_tags $tagname"
19325 # Now substitute the updated list of available tags.
19326 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19327 mv "${ofile}T" "$ofile"
19331 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19332 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19333 { (exit 1); exit 1; }; }
19339 # This can be used to rebuild libtool when needed
19340 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19342 # Always use our own libtool.
19343 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19345 # Prevent multiple expansion
19358 # Check whether --with-system-libtool or --without-system-libtool was given.
19359 if test "${with_system_libtool+set}" = set; then
19360 withval="$with_system_libtool"
19361 # Extract the first word of "libtool", so it can be a program name with args.
19362 set dummy libtool; ac_word=$2
19363 echo "$as_me:$LINENO: checking for $ac_word" >&5
19364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19365 if test "${ac_cv_path_LIBTOOL+set}" = set; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19370 ac_cv_path_LIBTOOL="$LIBTOOL" # Let the user override the test with a path.
19373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19374 as_dummy="$PATH:/usr/local/bin"
19375 for as_dir in $as_dummy
19378 test -z "$as_dir" && as_dir=.
19379 for ac_exec_ext in '' $ac_executable_extensions; do
19380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19381 ac_cv_path_LIBTOOL="$as_dir/$ac_word$ac_exec_ext"
19382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19391 LIBTOOL=$ac_cv_path_LIBTOOL
19393 if test -n "$LIBTOOL"; then
19394 echo "$as_me:$LINENO: result: $LIBTOOL" >&5
19395 echo "${ECHO_T}$LIBTOOL" >&6
19397 echo "$as_me:$LINENO: result: no" >&5
19398 echo "${ECHO_T}no" >&6
19403 LIBTOOL="`pwd`/libtool"
19422 # Check whether --enable-strict-dependencies or --disable-strict-dependencies was given.
19423 if test "${enable_strict_dependencies+set}" = set; then
19424 enableval="$enable_strict_dependencies"
19428 logdir='${localstatedir}/log/radius'
19429 echo "$as_me:$LINENO: checking logdir" >&5
19430 echo $ECHO_N "checking logdir... $ECHO_C" >&6
19432 # Check whether --with-logdir or --without-logdir was given.
19433 if test "${with_logdir+set}" = set; then
19434 withval="$with_logdir"
19437 { { echo "$as_me:$LINENO: error: Need logdir" >&5
19438 echo "$as_me: error: Need logdir" >&2;}
19439 { (exit 1); exit 1; }; }
19450 echo "$as_me:$LINENO: result: $logdir" >&5
19451 echo "${ECHO_T}$logdir" >&6
19453 radacctdir='${logdir}/radacct'
19454 echo "$as_me:$LINENO: checking radacctdir" >&5
19455 echo $ECHO_N "checking radacctdir... $ECHO_C" >&6
19457 # Check whether --with-radacctdir or --without-radacctdir was given.
19458 if test "${with_radacctdir+set}" = set; then
19459 withval="$with_radacctdir"
19462 { { echo "$as_me:$LINENO: error: Need radacctdir" >&5
19463 echo "$as_me: error: Need radacctdir" >&2;}
19464 { (exit 1); exit 1; }; }
19469 radacctdir="$withval"
19475 echo "$as_me:$LINENO: result: $radacctdir" >&5
19476 echo "${ECHO_T}$radacctdir" >&6
19478 raddbdir='${sysconfdir}/raddb'
19479 echo "$as_me:$LINENO: checking raddbdir" >&5
19480 echo $ECHO_N "checking raddbdir... $ECHO_C" >&6
19482 # Check whether --with-raddbdir or --without-raddbdir was given.
19483 if test "${with_raddbdir+set}" = set; then
19484 withval="$with_raddbdir"
19487 { { echo "$as_me:$LINENO: error: Need raddbdir" >&5
19488 echo "$as_me: error: Need raddbdir" >&2;}
19489 { (exit 1); exit 1; }; }
19494 raddbdir="$withval"
19500 echo "$as_me:$LINENO: result: $raddbdir" >&5
19501 echo "${ECHO_T}$raddbdir" >&6
19505 # Check whether --with-ascend-binary or --without-ascend-binary was given.
19506 if test "${with_ascend_binary+set}" = set; then
19507 withval="$with_ascend_binary"
19516 if test "X$ASCEND_BINARY" = "Xyes"; then
19518 cat >>confdefs.h <<\_ACEOF
19519 #define ASCEND_BINARY
19526 # Check whether --with-threads or --without-threads was given.
19527 if test "${with_threads+set}" = set; then
19528 withval="$with_threads"
19540 # Check whether --with-snmp or --without-snmp was given.
19541 if test "${with_snmp+set}" = set; then
19542 withval="$with_snmp"
19552 rad_enable_largefiles=no
19554 # Check whether --with-large-files or --without-large-files was given.
19555 if test "${with_large_files+set}" = set; then
19556 withval="$with_large_files"
19559 rad_enable_largefiles=yes
19571 # Check whether --with-static_modules or --without-static_modules was given.
19572 if test "${with_static_modules+set}" = set; then
19573 withval="$with_static_modules"
19575 for i in $withval; do
19576 STATIC_MODULES="$STATIC_MODULES -dlpreopen ../modules/rlm_$i/rlm_$i.la"
19581 # Check whether --enable-developer or --disable-developer was given.
19582 if test "${enable_developer+set}" = set; then
19583 enableval="$enable_developer"
19584 case "$enableval" in
19594 if test "x$developer" != "xno" -a -d $srcdir/CVS; then
19600 # Check whether --with-experimental-modules or --without-experimental-modules was given.
19601 if test "${with_experimental_modules+set}" = set; then
19602 withval="$with_experimental_modules"
19613 # Check whether --with-openssl-includes or --without-openssl-includes was given.
19614 if test "${with_openssl_includes+set}" = set; then
19615 withval="$with_openssl_includes"
19617 *) OPENSSL_INCLUDE_DIR="$withval"
19624 # Check whether --with-openssl-libraries or --without-openssl-libraries was given.
19625 if test "${with_openssl_libraries+set}" = set; then
19626 withval="$with_openssl_libraries"
19628 *) OPENSSL_LIB_DIR="$withval"
19636 # Check whether --with-rlm-FOO-lib-dir or --without-rlm-FOO-lib-dir was given.
19637 if test "${with_rlm_FOO_lib_dir+set}" = set; then
19638 withval="$with_rlm_FOO_lib_dir"
19647 # Check whether --with-rlm-FOO-include-dir or --without-rlm-FOO-include-dir was given.
19648 if test "${with_rlm_FOO_include_dir+set}" = set; then
19649 withval="$with_rlm_FOO_include_dir"
19660 # Check whether --with-udpfromto or --without-udpfromto was given.
19661 if test "${with_udpfromto+set}" = set; then
19662 withval="$with_udpfromto"
19673 if test "x$WITH_UDPFROMTO" = "xyes"; then
19675 cat >>confdefs.h <<\_ACEOF
19676 #define WITH_UDPFROMTO
19682 CHECKRAD=checkrad.pl
19683 # Extract the first word of "perl", so it can be a program name with args.
19684 set dummy perl; ac_word=$2
19685 echo "$as_me:$LINENO: checking for $ac_word" >&5
19686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19687 if test "${ac_cv_path_PERL+set}" = set; then
19688 echo $ECHO_N "(cached) $ECHO_C" >&6
19692 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
19695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19696 for as_dir in $PATH
19699 test -z "$as_dir" && as_dir=.
19700 for ac_exec_ext in '' $ac_executable_extensions; do
19701 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19702 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
19703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19709 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="/usr/local/bin/perl"
19713 PERL=$ac_cv_path_PERL
19715 if test -n "$PERL"; then
19716 echo "$as_me:$LINENO: result: $PERL" >&5
19717 echo "${ECHO_T}$PERL" >&6
19719 echo "$as_me:$LINENO: result: no" >&5
19720 echo "${ECHO_T}no" >&6
19723 if test "x$ac_cv_path_PERL" = "x"; then
19724 { echo "$as_me:$LINENO: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&5
19725 echo "$as_me: WARNING: perl not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19727 # Extract the first word of "snmpget", so it can be a program name with args.
19728 set dummy snmpget; ac_word=$2
19729 echo "$as_me:$LINENO: checking for $ac_word" >&5
19730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19731 if test "${ac_cv_path_SNMPGET+set}" = set; then
19732 echo $ECHO_N "(cached) $ECHO_C" >&6
19736 ac_cv_path_SNMPGET="$SNMPGET" # Let the user override the test with a path.
19739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19740 for as_dir in $PATH
19743 test -z "$as_dir" && as_dir=.
19744 for ac_exec_ext in '' $ac_executable_extensions; do
19745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19746 ac_cv_path_SNMPGET="$as_dir/$ac_word$ac_exec_ext"
19747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19756 SNMPGET=$ac_cv_path_SNMPGET
19758 if test -n "$SNMPGET"; then
19759 echo "$as_me:$LINENO: result: $SNMPGET" >&5
19760 echo "${ECHO_T}$SNMPGET" >&6
19762 echo "$as_me:$LINENO: result: no" >&5
19763 echo "${ECHO_T}no" >&6
19766 if test "x$ac_cv_path_SNMPGET" = "x"; then
19767 { echo "$as_me:$LINENO: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&5
19768 echo "$as_me: WARNING: snmpget not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19771 # Extract the first word of "snmpwalk", so it can be a program name with args.
19772 set dummy snmpwalk; ac_word=$2
19773 echo "$as_me:$LINENO: checking for $ac_word" >&5
19774 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19775 if test "${ac_cv_path_SNMPWALK+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19780 ac_cv_path_SNMPWALK="$SNMPWALK" # Let the user override the test with a path.
19783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19784 for as_dir in $PATH
19787 test -z "$as_dir" && as_dir=.
19788 for ac_exec_ext in '' $ac_executable_extensions; do
19789 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19790 ac_cv_path_SNMPWALK="$as_dir/$ac_word$ac_exec_ext"
19791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19800 SNMPWALK=$ac_cv_path_SNMPWALK
19802 if test -n "$SNMPWALK"; then
19803 echo "$as_me:$LINENO: result: $SNMPWALK" >&5
19804 echo "${ECHO_T}$SNMPWALK" >&6
19806 echo "$as_me:$LINENO: result: no" >&5
19807 echo "${ECHO_T}no" >&6
19810 if test "x$ac_cv_path_SNMPWALK" = "x"; then
19811 { echo "$as_me:$LINENO: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&5
19812 echo "$as_me: WARNING: snmpwalk not found - Simultaneous-Use and checkrad.pl may not work" >&2;}
19815 # Extract the first word of "rusers", so it can be a program name with args.
19816 set dummy rusers; ac_word=$2
19817 echo "$as_me:$LINENO: checking for $ac_word" >&5
19818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19819 if test "${ac_cv_path_RUSERS+set}" = set; then
19820 echo $ECHO_N "(cached) $ECHO_C" >&6
19824 ac_cv_path_RUSERS="$RUSERS" # Let the user override the test with a path.
19827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19828 for as_dir in $PATH
19831 test -z "$as_dir" && as_dir=.
19832 for ac_exec_ext in '' $ac_executable_extensions; do
19833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19834 ac_cv_path_RUSERS="$as_dir/$ac_word$ac_exec_ext"
19835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19841 test -z "$ac_cv_path_RUSERS" && ac_cv_path_RUSERS="/usr/bin/rusers"
19845 RUSERS=$ac_cv_path_RUSERS
19847 if test -n "$RUSERS"; then
19848 echo "$as_me:$LINENO: result: $RUSERS" >&5
19849 echo "${ECHO_T}$RUSERS" >&6
19851 echo "$as_me:$LINENO: result: no" >&5
19852 echo "${ECHO_T}no" >&6
19856 missing_dir=`cd $ac_aux_dir && pwd`
19857 echo "$as_me:$LINENO: checking for working aclocal" >&5
19858 echo $ECHO_N "checking for working aclocal... $ECHO_C" >&6
19859 # Run test in a subshell; some versions of sh will print an error if
19860 # an executable is not found, even if stderr is redirected.
19861 # Redirect stdin to placate older versions of autoconf. Sigh.
19862 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
19864 echo "$as_me:$LINENO: result: found" >&5
19865 echo "${ECHO_T}found" >&6
19867 ACLOCAL="$missing_dir/missing aclocal"
19868 echo "$as_me:$LINENO: result: missing" >&5
19869 echo "${ECHO_T}missing" >&6
19872 echo "$as_me:$LINENO: checking for working autoconf" >&5
19873 echo $ECHO_N "checking for working autoconf... $ECHO_C" >&6
19874 # Run test in a subshell; some versions of sh will print an error if
19875 # an executable is not found, even if stderr is redirected.
19876 # Redirect stdin to placate older versions of autoconf. Sigh.
19877 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
19879 echo "$as_me:$LINENO: result: found" >&5
19880 echo "${ECHO_T}found" >&6
19882 AUTOCONF="$missing_dir/missing autoconf"
19883 echo "$as_me:$LINENO: result: missing" >&5
19884 echo "${ECHO_T}missing" >&6
19887 echo "$as_me:$LINENO: checking for working autoheader" >&5
19888 echo $ECHO_N "checking for working autoheader... $ECHO_C" >&6
19889 # Run test in a subshell; some versions of sh will print an error if
19890 # an executable is not found, even if stderr is redirected.
19891 # Redirect stdin to placate older versions of autoconf. Sigh.
19892 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
19893 AUTOHEADER=autoheader
19894 echo "$as_me:$LINENO: result: found" >&5
19895 echo "${ECHO_T}found" >&6
19897 AUTOHEADER="$missing_dir/missing autoheader"
19898 echo "$as_me:$LINENO: result: missing" >&5
19899 echo "${ECHO_T}missing" >&6
19903 # Extract the first word of "locate", so it can be a program name with args.
19904 set dummy locate; ac_word=$2
19905 echo "$as_me:$LINENO: checking for $ac_word" >&5
19906 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19907 if test "${ac_cv_path_LOCATE+set}" = set; then
19908 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_cv_path_LOCATE="$LOCATE" # Let the user override the test with a path.
19915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19916 for as_dir in $PATH
19919 test -z "$as_dir" && as_dir=.
19920 for ac_exec_ext in '' $ac_executable_extensions; do
19921 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19922 ac_cv_path_LOCATE="$as_dir/$ac_word$ac_exec_ext"
19923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19932 LOCATE=$ac_cv_path_LOCATE
19934 if test -n "$LOCATE"; then
19935 echo "$as_me:$LINENO: result: $LOCATE" >&5
19936 echo "${ECHO_T}$LOCATE" >&6
19938 echo "$as_me:$LINENO: result: no" >&5
19939 echo "${ECHO_T}no" >&6
19942 # Extract the first word of "dirname", so it can be a program name with args.
19943 set dummy dirname; ac_word=$2
19944 echo "$as_me:$LINENO: checking for $ac_word" >&5
19945 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19946 if test "${ac_cv_path_DIRNAME+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19951 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path.
19954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19955 for as_dir in $PATH
19958 test -z "$as_dir" && as_dir=.
19959 for ac_exec_ext in '' $ac_executable_extensions; do
19960 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19961 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext"
19962 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19971 DIRNAME=$ac_cv_path_DIRNAME
19973 if test -n "$DIRNAME"; then
19974 echo "$as_me:$LINENO: result: $DIRNAME" >&5
19975 echo "${ECHO_T}$DIRNAME" >&6
19977 echo "$as_me:$LINENO: result: no" >&5
19978 echo "${ECHO_T}no" >&6
19981 # Extract the first word of "grep", so it can be a program name with args.
19982 set dummy grep; ac_word=$2
19983 echo "$as_me:$LINENO: checking for $ac_word" >&5
19984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19985 if test "${ac_cv_path_GREP+set}" = set; then
19986 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
19993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19994 for as_dir in $PATH
19997 test -z "$as_dir" && as_dir=.
19998 for ac_exec_ext in '' $ac_executable_extensions; do
19999 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20000 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
20001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20010 GREP=$ac_cv_path_GREP
20012 if test -n "$GREP"; then
20013 echo "$as_me:$LINENO: result: $GREP" >&5
20014 echo "${ECHO_T}$GREP" >&6
20016 echo "$as_me:$LINENO: result: no" >&5
20017 echo "${ECHO_T}no" >&6
20023 if test "x$WITH_THREADS" = "xyes"; then
20024 if test $ac_cv_prog_suncc = "yes"; then
20025 CFLAGS="$CFLAGS -mt"
20029 for ac_header in pthread.h
20031 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20032 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20033 echo "$as_me:$LINENO: checking for $ac_header" >&5
20034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20036 echo $ECHO_N "(cached) $ECHO_C" >&6
20038 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20039 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20041 # Is the header compilable?
20042 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20043 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20044 cat >conftest.$ac_ext <<_ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050 $ac_includes_default
20051 #include <$ac_header>
20053 rm -f conftest.$ac_objext
20054 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20055 (eval $ac_compile) 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20061 (exit $ac_status); } &&
20062 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20064 (eval $ac_try) 2>&5
20066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20067 (exit $ac_status); }; } &&
20068 { ac_try='test -s conftest.$ac_objext'
20069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20070 (eval $ac_try) 2>&5
20072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20073 (exit $ac_status); }; }; then
20074 ac_header_compiler=yes
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20079 ac_header_compiler=no
20081 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20082 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20083 echo "${ECHO_T}$ac_header_compiler" >&6
20085 # Is the header present?
20086 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20088 cat >conftest.$ac_ext <<_ACEOF
20091 cat confdefs.h >>conftest.$ac_ext
20092 cat >>conftest.$ac_ext <<_ACEOF
20093 /* end confdefs.h. */
20094 #include <$ac_header>
20096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20103 (exit $ac_status); } >/dev/null; then
20104 if test -s conftest.err; then
20105 ac_cpp_err=$ac_c_preproc_warn_flag
20106 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20113 if test -z "$ac_cpp_err"; then
20114 ac_header_preproc=yes
20116 echo "$as_me: failed program was:" >&5
20117 sed 's/^/| /' conftest.$ac_ext >&5
20119 ac_header_preproc=no
20121 rm -f conftest.err conftest.$ac_ext
20122 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20123 echo "${ECHO_T}$ac_header_preproc" >&6
20125 # So? What about this header?
20126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20128 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20129 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20132 ac_header_preproc=yes
20135 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20136 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20137 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20138 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20139 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20140 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20141 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20142 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20145 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20146 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20149 ## ------------------------------------------ ##
20150 ## Report this to the AC_PACKAGE_NAME lists. ##
20151 ## ------------------------------------------ ##
20154 sed "s/^/$as_me: WARNING: /" >&2
20157 echo "$as_me:$LINENO: checking for $ac_header" >&5
20158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20159 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20160 echo $ECHO_N "(cached) $ECHO_C" >&6
20162 eval "$as_ac_Header=\$ac_header_preproc"
20164 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20165 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20169 cat >>confdefs.h <<_ACEOF
20170 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20180 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
20181 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
20182 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lpthread $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20194 /* Override any gcc2 internal prototype to avoid an error. */
20198 /* We use char because int might match the return type of a gcc2
20199 builtin and then its argument prototype would still apply. */
20200 char pthread_create ();
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20211 (eval $ac_link) 2>conftest.er1
20213 grep -v '^ *+' conftest.er1 >conftest.err
20215 cat conftest.err >&5
20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20217 (exit $ac_status); } &&
20218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20220 (eval $ac_try) 2>&5
20222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); }; } &&
20224 { ac_try='test -s conftest$ac_exeext'
20225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20226 (eval $ac_try) 2>&5
20228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20229 (exit $ac_status); }; }; then
20230 ac_cv_lib_pthread_pthread_create=yes
20232 echo "$as_me: failed program was:" >&5
20233 sed 's/^/| /' conftest.$ac_ext >&5
20235 ac_cv_lib_pthread_pthread_create=no
20237 rm -f conftest.err conftest.$ac_objext \
20238 conftest$ac_exeext conftest.$ac_ext
20239 LIBS=$ac_check_lib_save_LIBS
20241 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
20242 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
20243 if test $ac_cv_lib_pthread_pthread_create = yes; then
20244 CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
20245 LIBS="$LIBS -lpthread"
20247 echo "$as_me:$LINENO: checking for pthread_create in -lc_r" >&5
20248 echo $ECHO_N "checking for pthread_create in -lc_r... $ECHO_C" >&6
20249 if test "${ac_cv_lib_c_r_pthread_create+set}" = set; then
20250 echo $ECHO_N "(cached) $ECHO_C" >&6
20252 ac_check_lib_save_LIBS=$LIBS
20254 cat >conftest.$ac_ext <<_ACEOF
20257 cat confdefs.h >>conftest.$ac_ext
20258 cat >>conftest.$ac_ext <<_ACEOF
20259 /* end confdefs.h. */
20261 /* Override any gcc2 internal prototype to avoid an error. */
20265 /* We use char because int might match the return type of a gcc2
20266 builtin and then its argument prototype would still apply. */
20267 char pthread_create ();
20276 rm -f conftest.$ac_objext conftest$ac_exeext
20277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20278 (eval $ac_link) 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20284 (exit $ac_status); } &&
20285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20287 (eval $ac_try) 2>&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); }; } &&
20291 { ac_try='test -s conftest$ac_exeext'
20292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20293 (eval $ac_try) 2>&5
20295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20296 (exit $ac_status); }; }; then
20297 ac_cv_lib_c_r_pthread_create=yes
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20302 ac_cv_lib_c_r_pthread_create=no
20304 rm -f conftest.err conftest.$ac_objext \
20305 conftest$ac_exeext conftest.$ac_ext
20306 LIBS=$ac_check_lib_save_LIBS
20308 echo "$as_me:$LINENO: result: $ac_cv_lib_c_r_pthread_create" >&5
20309 echo "${ECHO_T}$ac_cv_lib_c_r_pthread_create" >&6
20310 if test $ac_cv_lib_c_r_pthread_create = yes; then
20311 CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
20322 if test "x$WITH_THREADS" != "xyes"; then
20324 ac_cv_header_pthread_h="no"
20328 echo "$as_me:$LINENO: checking for library containing sem_init" >&5
20329 echo $ECHO_N "checking for library containing sem_init... $ECHO_C" >&6
20330 if test "${ac_cv_search_sem_init+set}" = set; then
20331 echo $ECHO_N "(cached) $ECHO_C" >&6
20333 ac_func_search_save_LIBS=$LIBS
20334 ac_cv_search_sem_init=no
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any gcc2 internal prototype to avoid an error. */
20346 /* We use char because int might match the return type of a gcc2
20347 builtin and then its argument prototype would still apply. */
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20359 (eval $ac_link) 2>conftest.er1
20361 grep -v '^ *+' conftest.er1 >conftest.err
20363 cat conftest.err >&5
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } &&
20366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20368 (eval $ac_try) 2>&5
20370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371 (exit $ac_status); }; } &&
20372 { ac_try='test -s conftest$ac_exeext'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; }; then
20378 ac_cv_search_sem_init="none required"
20380 echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20384 rm -f conftest.err conftest.$ac_objext \
20385 conftest$ac_exeext conftest.$ac_ext
20386 if test "$ac_cv_search_sem_init" = no; then
20387 for ac_lib in pthread sem posix4 rt; do
20388 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20389 cat >conftest.$ac_ext <<_ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20396 /* Override any gcc2 internal prototype to avoid an error. */
20400 /* We use char because int might match the return type of a gcc2
20401 builtin and then its argument prototype would still apply. */
20411 rm -f conftest.$ac_objext conftest$ac_exeext
20412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20413 (eval $ac_link) 2>conftest.er1
20415 grep -v '^ *+' conftest.er1 >conftest.err
20417 cat conftest.err >&5
20418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } &&
20420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20422 (eval $ac_try) 2>&5
20424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20425 (exit $ac_status); }; } &&
20426 { ac_try='test -s conftest$ac_exeext'
20427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20428 (eval $ac_try) 2>&5
20430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20431 (exit $ac_status); }; }; then
20432 ac_cv_search_sem_init="-l$ac_lib"
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20439 rm -f conftest.err conftest.$ac_objext \
20440 conftest$ac_exeext conftest.$ac_ext
20443 LIBS=$ac_func_search_save_LIBS
20445 echo "$as_me:$LINENO: result: $ac_cv_search_sem_init" >&5
20446 echo "${ECHO_T}$ac_cv_search_sem_init" >&6
20447 if test "$ac_cv_search_sem_init" != no; then
20448 test "$ac_cv_search_sem_init" = "none required" || LIBS="$ac_cv_search_sem_init $LIBS"
20451 { { 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
20452 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;}
20453 { (exit 1); exit 1; }; }
20460 echo "$as_me:$LINENO: checking for getsockname in -lsocket" >&5
20461 echo $ECHO_N "checking for getsockname in -lsocket... $ECHO_C" >&6
20462 if test "${ac_cv_lib_socket_getsockname+set}" = set; then
20463 echo $ECHO_N "(cached) $ECHO_C" >&6
20465 ac_check_lib_save_LIBS=$LIBS
20466 LIBS="-lsocket $LIBS"
20467 cat >conftest.$ac_ext <<_ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h. */
20474 /* Override any gcc2 internal prototype to avoid an error. */
20478 /* We use char because int might match the return type of a gcc2
20479 builtin and then its argument prototype would still apply. */
20480 char getsockname ();
20489 rm -f conftest.$ac_objext conftest$ac_exeext
20490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20491 (eval $ac_link) 2>conftest.er1
20493 grep -v '^ *+' conftest.er1 >conftest.err
20495 cat conftest.err >&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); } &&
20498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20500 (eval $ac_try) 2>&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); }; } &&
20504 { ac_try='test -s conftest$ac_exeext'
20505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20506 (eval $ac_try) 2>&5
20508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20509 (exit $ac_status); }; }; then
20510 ac_cv_lib_socket_getsockname=yes
20512 echo "$as_me: failed program was:" >&5
20513 sed 's/^/| /' conftest.$ac_ext >&5
20515 ac_cv_lib_socket_getsockname=no
20517 rm -f conftest.err conftest.$ac_objext \
20518 conftest$ac_exeext conftest.$ac_ext
20519 LIBS=$ac_check_lib_save_LIBS
20521 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_getsockname" >&5
20522 echo "${ECHO_T}$ac_cv_lib_socket_getsockname" >&6
20523 if test $ac_cv_lib_socket_getsockname = yes; then
20524 cat >>confdefs.h <<_ACEOF
20525 #define HAVE_LIBSOCKET 1
20528 LIBS="-lsocket $LIBS"
20534 echo "$as_me:$LINENO: checking for inet_aton in -lresolv" >&5
20535 echo $ECHO_N "checking for inet_aton in -lresolv... $ECHO_C" >&6
20536 if test "${ac_cv_lib_resolv_inet_aton+set}" = set; then
20537 echo $ECHO_N "(cached) $ECHO_C" >&6
20539 ac_check_lib_save_LIBS=$LIBS
20540 LIBS="-lresolv $LIBS"
20541 cat >conftest.$ac_ext <<_ACEOF
20544 cat confdefs.h >>conftest.$ac_ext
20545 cat >>conftest.$ac_ext <<_ACEOF
20546 /* end confdefs.h. */
20548 /* Override any gcc2 internal prototype to avoid an error. */
20552 /* We use char because int might match the return type of a gcc2
20553 builtin and then its argument prototype would still apply. */
20563 rm -f conftest.$ac_objext conftest$ac_exeext
20564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20565 (eval $ac_link) 2>conftest.er1
20567 grep -v '^ *+' conftest.er1 >conftest.err
20569 cat conftest.err >&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); } &&
20572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20574 (eval $ac_try) 2>&5
20576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20577 (exit $ac_status); }; } &&
20578 { ac_try='test -s conftest$ac_exeext'
20579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20580 (eval $ac_try) 2>&5
20582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20583 (exit $ac_status); }; }; then
20584 ac_cv_lib_resolv_inet_aton=yes
20586 echo "$as_me: failed program was:" >&5
20587 sed 's/^/| /' conftest.$ac_ext >&5
20589 ac_cv_lib_resolv_inet_aton=no
20591 rm -f conftest.err conftest.$ac_objext \
20592 conftest$ac_exeext conftest.$ac_ext
20593 LIBS=$ac_check_lib_save_LIBS
20595 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_aton" >&5
20596 echo "${ECHO_T}$ac_cv_lib_resolv_inet_aton" >&6
20597 if test $ac_cv_lib_resolv_inet_aton = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define HAVE_LIBRESOLV 1
20602 LIBS="-lresolv $LIBS"
20608 echo "$as_me:$LINENO: checking for inet_ntoa in -lnsl" >&5
20609 echo $ECHO_N "checking for inet_ntoa in -lnsl... $ECHO_C" >&6
20610 if test "${ac_cv_lib_nsl_inet_ntoa+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any gcc2 internal prototype to avoid an error. */
20626 /* We use char because int might match the return type of a gcc2
20627 builtin and then its argument prototype would still apply. */
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20639 (eval $ac_link) 2>conftest.er1
20641 grep -v '^ *+' conftest.er1 >conftest.err
20643 cat conftest.err >&5
20644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20645 (exit $ac_status); } &&
20646 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20647 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20648 (eval $ac_try) 2>&5
20650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); }; } &&
20652 { ac_try='test -s conftest$ac_exeext'
20653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20654 (eval $ac_try) 2>&5
20656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657 (exit $ac_status); }; }; then
20658 ac_cv_lib_nsl_inet_ntoa=yes
20660 echo "$as_me: failed program was:" >&5
20661 sed 's/^/| /' conftest.$ac_ext >&5
20663 ac_cv_lib_nsl_inet_ntoa=no
20665 rm -f conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_ntoa" >&5
20670 echo "${ECHO_T}$ac_cv_lib_nsl_inet_ntoa" >&6
20671 if test $ac_cv_lib_nsl_inet_ntoa = yes; then
20672 cat >>confdefs.h <<_ACEOF
20673 #define HAVE_LIBNSL 1
20684 CFLAGS="$CFLAGS -D_ALL_SOURCE"
20693 ac_header_dirent=no
20694 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
20695 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
20696 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
20697 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
20698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20699 echo $ECHO_N "(cached) $ECHO_C" >&6
20701 cat >conftest.$ac_ext <<_ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h. */
20707 #include <sys/types.h>
20719 rm -f conftest.$ac_objext
20720 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20721 (eval $ac_compile) 2>conftest.er1
20723 grep -v '^ *+' conftest.er1 >conftest.err
20725 cat conftest.err >&5
20726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20727 (exit $ac_status); } &&
20728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20730 (eval $ac_try) 2>&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); }; } &&
20734 { ac_try='test -s conftest.$ac_objext'
20735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20736 (eval $ac_try) 2>&5
20738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20739 (exit $ac_status); }; }; then
20740 eval "$as_ac_Header=yes"
20742 echo "$as_me: failed program was:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 eval "$as_ac_Header=no"
20747 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20749 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20750 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20751 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20752 cat >>confdefs.h <<_ACEOF
20753 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
20756 ac_header_dirent=$ac_hdr; break
20760 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
20761 if test $ac_header_dirent = dirent.h; then
20762 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20763 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20764 if test "${ac_cv_search_opendir+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20767 ac_func_search_save_LIBS=$LIBS
20768 ac_cv_search_opendir=no
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20776 /* Override any gcc2 internal prototype to avoid an error. */
20780 /* We use char because int might match the return type of a gcc2
20781 builtin and then its argument prototype would still apply. */
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20793 (eval $ac_link) 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20802 (eval $ac_try) 2>&5
20804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20805 (exit $ac_status); }; } &&
20806 { ac_try='test -s conftest$ac_exeext'
20807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20808 (eval $ac_try) 2>&5
20810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20811 (exit $ac_status); }; }; then
20812 ac_cv_search_opendir="none required"
20814 echo "$as_me: failed program was:" >&5
20815 sed 's/^/| /' conftest.$ac_ext >&5
20818 rm -f conftest.err conftest.$ac_objext \
20819 conftest$ac_exeext conftest.$ac_ext
20820 if test "$ac_cv_search_opendir" = no; then
20821 for ac_lib in dir; do
20822 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20823 cat >conftest.$ac_ext <<_ACEOF
20826 cat confdefs.h >>conftest.$ac_ext
20827 cat >>conftest.$ac_ext <<_ACEOF
20828 /* end confdefs.h. */
20830 /* Override any gcc2 internal prototype to avoid an error. */
20834 /* We use char because int might match the return type of a gcc2
20835 builtin and then its argument prototype would still apply. */
20845 rm -f conftest.$ac_objext conftest$ac_exeext
20846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20847 (eval $ac_link) 2>conftest.er1
20849 grep -v '^ *+' conftest.er1 >conftest.err
20851 cat conftest.err >&5
20852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20853 (exit $ac_status); } &&
20854 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20856 (eval $ac_try) 2>&5
20858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20859 (exit $ac_status); }; } &&
20860 { ac_try='test -s conftest$ac_exeext'
20861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20862 (eval $ac_try) 2>&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); }; }; then
20866 ac_cv_search_opendir="-l$ac_lib"
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20873 rm -f conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20877 LIBS=$ac_func_search_save_LIBS
20879 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
20880 echo "${ECHO_T}$ac_cv_search_opendir" >&6
20881 if test "$ac_cv_search_opendir" != no; then
20882 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
20887 echo "$as_me:$LINENO: checking for library containing opendir" >&5
20888 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
20889 if test "${ac_cv_search_opendir+set}" = set; then
20890 echo $ECHO_N "(cached) $ECHO_C" >&6
20892 ac_func_search_save_LIBS=$LIBS
20893 ac_cv_search_opendir=no
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 /* Override any gcc2 internal prototype to avoid an error. */
20905 /* We use char because int might match the return type of a gcc2
20906 builtin and then its argument prototype would still apply. */
20916 rm -f conftest.$ac_objext conftest$ac_exeext
20917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20918 (eval $ac_link) 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20924 (exit $ac_status); } &&
20925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20927 (eval $ac_try) 2>&5
20929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20930 (exit $ac_status); }; } &&
20931 { ac_try='test -s conftest$ac_exeext'
20932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20933 (eval $ac_try) 2>&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); }; }; then
20937 ac_cv_search_opendir="none required"
20939 echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20943 rm -f conftest.err conftest.$ac_objext \
20944 conftest$ac_exeext conftest.$ac_ext
20945 if test "$ac_cv_search_opendir" = no; then
20946 for ac_lib in x; do
20947 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20948 cat >conftest.$ac_ext <<_ACEOF
20951 cat confdefs.h >>conftest.$ac_ext
20952 cat >>conftest.$ac_ext <<_ACEOF
20953 /* end confdefs.h. */
20955 /* Override any gcc2 internal prototype to avoid an error. */
20959 /* We use char because int might match the return type of a gcc2
20960 builtin and then its argument prototype would still apply. */
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20972 (eval $ac_link) 2>conftest.er1
20974 grep -v '^ *+' conftest.er1 >conftest.err
20976 cat conftest.err >&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); } &&
20979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20981 (eval $ac_try) 2>&5
20983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); }; } &&
20985 { ac_try='test -s conftest$ac_exeext'
20986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20987 (eval $ac_try) 2>&5
20989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); }; }; then
20991 ac_cv_search_opendir="-l$ac_lib"
20994 echo "$as_me: failed program was:" >&5
20995 sed 's/^/| /' conftest.$ac_ext >&5
20998 rm -f conftest.err conftest.$ac_objext \
20999 conftest$ac_exeext conftest.$ac_ext
21002 LIBS=$ac_func_search_save_LIBS
21004 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
21005 echo "${ECHO_T}$ac_cv_search_opendir" >&6
21006 if test "$ac_cv_search_opendir" != no; then
21007 test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
21013 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21014 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21015 if test "${ac_cv_header_stdc+set}" = set; then
21016 echo $ECHO_N "(cached) $ECHO_C" >&6
21018 cat >conftest.$ac_ext <<_ACEOF
21021 cat confdefs.h >>conftest.$ac_ext
21022 cat >>conftest.$ac_ext <<_ACEOF
21023 /* end confdefs.h. */
21024 #include <stdlib.h>
21025 #include <stdarg.h>
21026 #include <string.h>
21037 rm -f conftest.$ac_objext
21038 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21039 (eval $ac_compile) 2>conftest.er1
21041 grep -v '^ *+' conftest.er1 >conftest.err
21043 cat conftest.err >&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); } &&
21046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; } &&
21052 { ac_try='test -s conftest.$ac_objext'
21053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21054 (eval $ac_try) 2>&5
21056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21057 (exit $ac_status); }; }; then
21058 ac_cv_header_stdc=yes
21060 echo "$as_me: failed program was:" >&5
21061 sed 's/^/| /' conftest.$ac_ext >&5
21063 ac_cv_header_stdc=no
21065 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21067 if test $ac_cv_header_stdc = yes; then
21068 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21069 cat >conftest.$ac_ext <<_ACEOF
21072 cat confdefs.h >>conftest.$ac_ext
21073 cat >>conftest.$ac_ext <<_ACEOF
21074 /* end confdefs.h. */
21075 #include <string.h>
21078 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21079 $EGREP "memchr" >/dev/null 2>&1; then
21082 ac_cv_header_stdc=no
21088 if test $ac_cv_header_stdc = yes; then
21089 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 #include <stdlib.h>
21099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21100 $EGREP "free" >/dev/null 2>&1; then
21103 ac_cv_header_stdc=no
21109 if test $ac_cv_header_stdc = yes; then
21110 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21111 if test "$cross_compiling" = yes; then
21114 cat >conftest.$ac_ext <<_ACEOF
21117 cat confdefs.h >>conftest.$ac_ext
21118 cat >>conftest.$ac_ext <<_ACEOF
21119 /* end confdefs.h. */
21121 #if ((' ' & 0x0FF) == 0x020)
21122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21123 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21125 # define ISLOWER(c) \
21126 (('a' <= (c) && (c) <= 'i') \
21127 || ('j' <= (c) && (c) <= 'r') \
21128 || ('s' <= (c) && (c) <= 'z'))
21129 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21132 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21137 for (i = 0; i < 256; i++)
21138 if (XOR (islower (i), ISLOWER (i))
21139 || toupper (i) != TOUPPER (i))
21144 rm -f conftest$ac_exeext
21145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21146 (eval $ac_link) 2>&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21151 (eval $ac_try) 2>&5
21153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21154 (exit $ac_status); }; }; then
21157 echo "$as_me: program exited with status $ac_status" >&5
21158 echo "$as_me: failed program was:" >&5
21159 sed 's/^/| /' conftest.$ac_ext >&5
21161 ( exit $ac_status )
21162 ac_cv_header_stdc=no
21164 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21168 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21169 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21170 if test $ac_cv_header_stdc = yes; then
21172 cat >>confdefs.h <<\_ACEOF
21173 #define STDC_HEADERS 1
21178 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
21179 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
21180 if test "${ac_cv_header_time+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 cat >conftest.$ac_ext <<_ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h. */
21189 #include <sys/types.h>
21190 #include <sys/time.h>
21196 if ((struct tm *) 0)
21202 rm -f conftest.$ac_objext
21203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21204 (eval $ac_compile) 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } &&
21211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_header_time=yes
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21228 ac_cv_header_time=no
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
21233 echo "${ECHO_T}$ac_cv_header_time" >&6
21234 if test $ac_cv_header_time = yes; then
21236 cat >>confdefs.h <<\_ACEOF
21237 #define TIME_WITH_SYS_TIME 1
21242 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
21243 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
21244 if test "${ac_cv_header_sys_wait_h+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 #include <sys/types.h>
21254 #include <sys/wait.h>
21255 #ifndef WEXITSTATUS
21256 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
21259 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
21267 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
21272 rm -f conftest.$ac_objext
21273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21274 (eval $ac_compile) 2>conftest.er1
21276 grep -v '^ *+' conftest.er1 >conftest.err
21278 cat conftest.err >&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); } &&
21281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; } &&
21287 { ac_try='test -s conftest.$ac_objext'
21288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21289 (eval $ac_try) 2>&5
21291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21292 (exit $ac_status); }; }; then
21293 ac_cv_header_sys_wait_h=yes
21295 echo "$as_me: failed program was:" >&5
21296 sed 's/^/| /' conftest.$ac_ext >&5
21298 ac_cv_header_sys_wait_h=no
21300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21302 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
21303 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
21304 if test $ac_cv_header_sys_wait_h = yes; then
21306 cat >>confdefs.h <<\_ACEOF
21307 #define HAVE_SYS_WAIT_H 1
21372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21374 echo "$as_me:$LINENO: checking for $ac_header" >&5
21375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21377 echo $ECHO_N "(cached) $ECHO_C" >&6
21379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21382 # Is the header compilable?
21383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 $ac_includes_default
21392 #include <$ac_header>
21394 rm -f conftest.$ac_objext
21395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21396 (eval $ac_compile) 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21402 (exit $ac_status); } &&
21403 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21405 (eval $ac_try) 2>&5
21407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21408 (exit $ac_status); }; } &&
21409 { ac_try='test -s conftest.$ac_objext'
21410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21411 (eval $ac_try) 2>&5
21413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21414 (exit $ac_status); }; }; then
21415 ac_header_compiler=yes
21417 echo "$as_me: failed program was:" >&5
21418 sed 's/^/| /' conftest.$ac_ext >&5
21420 ac_header_compiler=no
21422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21423 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21424 echo "${ECHO_T}$ac_header_compiler" >&6
21426 # Is the header present?
21427 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21429 cat >conftest.$ac_ext <<_ACEOF
21432 cat confdefs.h >>conftest.$ac_ext
21433 cat >>conftest.$ac_ext <<_ACEOF
21434 /* end confdefs.h. */
21435 #include <$ac_header>
21437 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21438 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21440 grep -v '^ *+' conftest.er1 >conftest.err
21442 cat conftest.err >&5
21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21444 (exit $ac_status); } >/dev/null; then
21445 if test -s conftest.err; then
21446 ac_cpp_err=$ac_c_preproc_warn_flag
21447 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21454 if test -z "$ac_cpp_err"; then
21455 ac_header_preproc=yes
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 ac_header_preproc=no
21462 rm -f conftest.err conftest.$ac_ext
21463 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21464 echo "${ECHO_T}$ac_header_preproc" >&6
21466 # So? What about this header?
21467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21473 ac_header_preproc=yes
21476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21490 ## ------------------------------------------ ##
21491 ## Report this to the AC_PACKAGE_NAME lists. ##
21492 ## ------------------------------------------ ##
21495 sed "s/^/$as_me: WARNING: /" >&2
21498 echo "$as_me:$LINENO: checking for $ac_header" >&5
21499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21500 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21501 echo $ECHO_N "(cached) $ECHO_C" >&6
21503 eval "$as_ac_Header=\$ac_header_preproc"
21505 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21506 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21510 cat >>confdefs.h <<_ACEOF
21511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21520 if test "${ac_cv_header_regex_h+set}" = set; then
21521 echo "$as_me:$LINENO: checking for regex.h" >&5
21522 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21523 if test "${ac_cv_header_regex_h+set}" = set; then
21524 echo $ECHO_N "(cached) $ECHO_C" >&6
21526 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21527 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21529 # Is the header compilable?
21530 echo "$as_me:$LINENO: checking regex.h usability" >&5
21531 echo $ECHO_N "checking regex.h usability... $ECHO_C" >&6
21532 cat >conftest.$ac_ext <<_ACEOF
21535 cat confdefs.h >>conftest.$ac_ext
21536 cat >>conftest.$ac_ext <<_ACEOF
21537 /* end confdefs.h. */
21538 $ac_includes_default
21541 rm -f conftest.$ac_objext
21542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21543 (eval $ac_compile) 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21549 (exit $ac_status); } &&
21550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21552 (eval $ac_try) 2>&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); }; } &&
21556 { ac_try='test -s conftest.$ac_objext'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; }; then
21562 ac_header_compiler=yes
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21567 ac_header_compiler=no
21569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21570 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21571 echo "${ECHO_T}$ac_header_compiler" >&6
21573 # Is the header present?
21574 echo "$as_me:$LINENO: checking regex.h presence" >&5
21575 echo $ECHO_N "checking regex.h presence... $ECHO_C" >&6
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21584 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21585 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21587 grep -v '^ *+' conftest.er1 >conftest.err
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } >/dev/null; then
21592 if test -s conftest.err; then
21593 ac_cpp_err=$ac_c_preproc_warn_flag
21594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21601 if test -z "$ac_cpp_err"; then
21602 ac_header_preproc=yes
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 ac_header_preproc=no
21609 rm -f conftest.err conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21611 echo "${ECHO_T}$ac_header_preproc" >&6
21613 # So? What about this header?
21614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21616 { echo "$as_me:$LINENO: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&5
21617 echo "$as_me: WARNING: regex.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21618 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the compiler's result" >&5
21619 echo "$as_me: WARNING: regex.h: proceeding with the compiler's result" >&2;}
21620 ac_header_preproc=yes
21623 { echo "$as_me:$LINENO: WARNING: regex.h: present but cannot be compiled" >&5
21624 echo "$as_me: WARNING: regex.h: present but cannot be compiled" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: regex.h: check for missing prerequisite headers?" >&5
21626 echo "$as_me: WARNING: regex.h: check for missing prerequisite headers?" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: regex.h: see the Autoconf documentation" >&5
21628 echo "$as_me: WARNING: regex.h: see the Autoconf documentation" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&5
21630 echo "$as_me: WARNING: regex.h: section \"Present But Cannot Be Compiled\"" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: regex.h: proceeding with the preprocessor's result" >&5
21632 echo "$as_me: WARNING: regex.h: proceeding with the preprocessor's result" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: regex.h: in the future, the compiler will take precedence" >&5
21634 echo "$as_me: WARNING: regex.h: in the future, the compiler will take precedence" >&2;}
21637 ## ------------------------------------------ ##
21638 ## Report this to the AC_PACKAGE_NAME lists. ##
21639 ## ------------------------------------------ ##
21642 sed "s/^/$as_me: WARNING: /" >&2
21645 echo "$as_me:$LINENO: checking for regex.h" >&5
21646 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6
21647 if test "${ac_cv_header_regex_h+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 ac_cv_header_regex_h=$ac_header_preproc
21652 echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
21653 echo "${ECHO_T}$ac_cv_header_regex_h" >&6
21656 if test $ac_cv_header_regex_h = yes; then
21658 cat >>confdefs.h <<\_ACEOF
21659 #define HAVE_REGEX_H
21665 if test "x$ac_cv_header_regex_h" = "xyes"; then
21668 cat >conftest.$ac_ext <<_ACEOF
21671 cat confdefs.h >>conftest.$ac_ext
21672 cat >>conftest.$ac_ext <<_ACEOF
21673 /* end confdefs.h. */
21675 #ifdef REG_EXTENDED
21680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21681 $EGREP "yes" >/dev/null 2>&1; then
21683 cat >>confdefs.h <<\_ACEOF
21684 #define HAVE_REG_EXTENDED
21694 if test "x$ac_cv_header_sys_security_h" = "xyes" && test "x$ac_cv_header_prot_h" = "xyes"
21697 cat >>confdefs.h <<\_ACEOF
21703 if test "x$ac_cv_header_sia_h" = "xyes" && test "x$ac_cv_header_siad_h" = "xyes"
21706 cat >>confdefs.h <<\_ACEOF
21712 smart_try_dir="$OPENSSL_INCLUDE_DIR"
21713 CFLAGS="$CFLAGS -DOPENSSL_NO_KRB5"
21716 ac_safe=`echo "openssl/ssl.h" | sed 'y%./+-%__pm%'`
21717 echo "$as_me:$LINENO: checking for openssl/ssl.h" >&5
21718 echo $ECHO_N "checking for openssl/ssl.h... $ECHO_C" >&6
21723 old_CFLAGS="$CFLAGS"
21724 cat >conftest.$ac_ext <<_ACEOF
21727 cat confdefs.h >>conftest.$ac_ext
21728 cat >>conftest.$ac_ext <<_ACEOF
21729 /* end confdefs.h. */
21731 #include <openssl/ssl.h>
21740 rm -f conftest.$ac_objext
21741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21742 (eval $ac_compile) 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_objext'
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
21763 echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21770 if test "x$smart_include" = "x"; then
21773 if test "x$LOCATE" != "x"; then
21777 for x in `${LOCATE} $file 2>/dev/null`; do
21778 base=`echo $x | sed "s%/${file}%%"`
21779 if test "x$x" = "x$base"; then
21783 dir=`${DIRNAME} $x 2>/dev/null`
21784 exclude=`echo ${dir} | ${GREP} /home`
21785 if test "x$exclude" != "x"; then
21789 already=`echo \$smart_include_dir ${DIRS} | ${GREP} ${dir}`
21790 if test "x$already" = "x"; then
21796 eval "smart_include_dir=\"\$smart_include_dir $DIRS\""
21799 for try in $smart_try_dir $smart_include_dir /usr/local/include/ /opt/include; do
21800 CFLAGS="$old_CFLAGS -I$try"
21802 cat >conftest.$ac_ext <<_ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h. */
21809 #include <openssl/ssl.h>
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820 (eval $ac_compile) 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 smart_include="-I$try"
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21848 if test "x$smart_include" != "x"; then
21852 CFLAGS="$old_CFLAGS"
21855 if test "x$smart_include" != "x"; then
21856 echo "$as_me:$LINENO: result: yes" >&5
21857 echo "${ECHO_T}yes" >&6
21858 eval "ac_cv_header_$ac_safe=yes"
21859 CFLAGS="$old_CFLAGS $smart_include"
21860 SMART_CFLAGS="$SMART_CFLAGS $smart_include"
21862 echo "$as_me:$LINENO: result: no" >&5
21863 echo "${ECHO_T}no" >&6
21868 if test "x$ac_cv_header_openssl_ssl_h" = "xyes"; then
21870 cat >>confdefs.h <<\_ACEOF
21871 #define HAVE_OPENSSL_SSL_H
21874 old_CPPFLAGS="$CPPFLAGS"
21875 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
21876 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR $CPPFLAGS"
21889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21890 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21891 echo "$as_me:$LINENO: checking for $ac_header" >&5
21892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21893 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21896 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21897 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21899 # Is the header compilable?
21900 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21902 cat >conftest.$ac_ext <<_ACEOF
21905 cat confdefs.h >>conftest.$ac_ext
21906 cat >>conftest.$ac_ext <<_ACEOF
21907 /* end confdefs.h. */
21908 $ac_includes_default
21909 #include <$ac_header>
21911 rm -f conftest.$ac_objext
21912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21913 (eval $ac_compile) 2>conftest.er1
21915 grep -v '^ *+' conftest.er1 >conftest.err
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
21920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21922 (eval $ac_try) 2>&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); }; } &&
21926 { ac_try='test -s conftest.$ac_objext'
21927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21928 (eval $ac_try) 2>&5
21930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21931 (exit $ac_status); }; }; then
21932 ac_header_compiler=yes
21934 echo "$as_me: failed program was:" >&5
21935 sed 's/^/| /' conftest.$ac_ext >&5
21937 ac_header_compiler=no
21939 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21940 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21941 echo "${ECHO_T}$ac_header_compiler" >&6
21943 # Is the header present?
21944 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21946 cat >conftest.$ac_ext <<_ACEOF
21949 cat confdefs.h >>conftest.$ac_ext
21950 cat >>conftest.$ac_ext <<_ACEOF
21951 /* end confdefs.h. */
21952 #include <$ac_header>
21954 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21955 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21957 grep -v '^ *+' conftest.er1 >conftest.err
21959 cat conftest.err >&5
21960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21961 (exit $ac_status); } >/dev/null; then
21962 if test -s conftest.err; then
21963 ac_cpp_err=$ac_c_preproc_warn_flag
21964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21971 if test -z "$ac_cpp_err"; then
21972 ac_header_preproc=yes
21974 echo "$as_me: failed program was:" >&5
21975 sed 's/^/| /' conftest.$ac_ext >&5
21977 ac_header_preproc=no
21979 rm -f conftest.err conftest.$ac_ext
21980 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21981 echo "${ECHO_T}$ac_header_preproc" >&6
21983 # So? What about this header?
21984 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21986 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21987 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21989 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21990 ac_header_preproc=yes
21993 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21994 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21995 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21996 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21997 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21998 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22000 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22002 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22004 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22007 ## ------------------------------------------ ##
22008 ## Report this to the AC_PACKAGE_NAME lists. ##
22009 ## ------------------------------------------ ##
22012 sed "s/^/$as_me: WARNING: /" >&2
22015 echo "$as_me:$LINENO: checking for $ac_header" >&5
22016 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22017 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22018 echo $ECHO_N "(cached) $ECHO_C" >&6
22020 eval "$as_ac_Header=\$ac_header_preproc"
22022 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22023 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22027 cat >>confdefs.h <<_ACEOF
22028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22035 CPPFLAGS="$old_CPPFLAGS"
22037 echo "$as_me:$LINENO: checking for OpenSSL version >= 0.9.7" >&5
22038 echo $ECHO_N "checking for OpenSSL version >= 0.9.7... $ECHO_C" >&6
22039 old_CPPFLAGS=$CPPFLAGS
22041 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22042 CPPFLAGS="-I$OPENSSL_INCLUDE_DIR"
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 #include <openssl/crypto.h>
22051 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
22056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22057 $EGREP "yes" >/dev/null 2>&1; then
22062 if test "x$goodssl" != "xyes"; then
22063 echo "$as_me:$LINENO: result: no" >&5
22064 echo "${ECHO_T}no" >&6
22068 echo "$as_me:$LINENO: result: yes" >&5
22069 echo "${ECHO_T}yes" >&6
22071 # Look for the OpenSSL libraries.
22072 smart_try_dir=$OPENSSL_LIB_DIR
22075 sm_lib_safe=`echo "crypto" | sed 'y%./+-%__p_%'`
22076 sm_func_safe=`echo "DH_new" | sed 'y%./+-%__p_%'`
22077 echo "$as_me:$LINENO: checking for DH_new in -lcrypto" >&5
22078 echo $ECHO_N "checking for DH_new in -lcrypto... $ECHO_C" >&6
22084 LIBS="$LIBS -lcrypto"
22085 cat >conftest.$ac_ext <<_ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 extern char DH_new();
22100 rm -f conftest.$ac_objext conftest$ac_exeext
22101 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22102 (eval $ac_link) 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22108 (exit $ac_status); } &&
22109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22111 (eval $ac_try) 2>&5
22113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114 (exit $ac_status); }; } &&
22115 { ac_try='test -s conftest$ac_exeext'
22116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22117 (eval $ac_try) 2>&5
22119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22120 (exit $ac_status); }; }; then
22121 smart_lib="-lcrypto"
22123 echo "$as_me: failed program was:" >&5
22124 sed 's/^/| /' conftest.$ac_ext >&5
22127 rm -f conftest.err conftest.$ac_objext \
22128 conftest$ac_exeext conftest.$ac_ext
22130 if test "x$smart_lib" = "x"; then
22133 if test "x$LOCATE" != "x"; then
22135 file=libcrypto${libltdl_cv_shlibext}
22137 for x in `${LOCATE} $file 2>/dev/null`; do
22138 base=`echo $x | sed "s%/${file}%%"`
22139 if test "x$x" = "x$base"; then
22143 dir=`${DIRNAME} $x 2>/dev/null`
22144 exclude=`echo ${dir} | ${GREP} /home`
22145 if test "x$exclude" != "x"; then
22149 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22150 if test "x$already" = "x"; then
22156 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22160 if test "x$LOCATE" != "x"; then
22164 for x in `${LOCATE} $file 2>/dev/null`; do
22165 base=`echo $x | sed "s%/${file}%%"`
22166 if test "x$x" = "x$base"; then
22170 dir=`${DIRNAME} $x 2>/dev/null`
22171 exclude=`echo ${dir} | ${GREP} /home`
22172 if test "x$exclude" != "x"; then
22176 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22177 if test "x$already" = "x"; then
22183 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22186 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22187 LIBS="$old_LIBS -L$try -lcrypto"
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 extern char DH_new();
22204 rm -f conftest.$ac_objext conftest$ac_exeext
22205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22206 (eval $ac_link) 2>conftest.er1
22208 grep -v '^ *+' conftest.er1 >conftest.err
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } &&
22213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22215 (eval $ac_try) 2>&5
22217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22218 (exit $ac_status); }; } &&
22219 { ac_try='test -s conftest$ac_exeext'
22220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22221 (eval $ac_try) 2>&5
22223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22224 (exit $ac_status); }; }; then
22225 smart_lib="-L$try -lcrypto"
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22231 rm -f conftest.err conftest.$ac_objext \
22232 conftest$ac_exeext conftest.$ac_ext
22233 if test "x$smart_lib" != "x"; then
22240 if test "x$smart_lib" != "x"; then
22241 echo "$as_me:$LINENO: result: yes" >&5
22242 echo "${ECHO_T}yes" >&6
22243 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22244 LIBS="$old_LIBS $smart_lib"
22245 SMART_LIBS="$SMART_LIBS $smart_lib"
22247 echo "$as_me:$LINENO: result: no" >&5
22248 echo "${ECHO_T}no" >&6
22251 if test "x$ac_cv_lib_crypto_DH_new" = "xyes"; then
22254 sm_lib_safe=`echo "ssl" | sed 'y%./+-%__p_%'`
22255 sm_func_safe=`echo "SSL_new" | sed 'y%./+-%__p_%'`
22256 echo "$as_me:$LINENO: checking for SSL_new in -lssl" >&5
22257 echo $ECHO_N "checking for SSL_new in -lssl... $ECHO_C" >&6
22264 cat >conftest.$ac_ext <<_ACEOF
22267 cat confdefs.h >>conftest.$ac_ext
22268 cat >>conftest.$ac_ext <<_ACEOF
22269 /* end confdefs.h. */
22270 extern char SSL_new();
22279 rm -f conftest.$ac_objext conftest$ac_exeext
22280 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22281 (eval $ac_link) 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22287 (exit $ac_status); } &&
22288 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22290 (eval $ac_try) 2>&5
22292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22293 (exit $ac_status); }; } &&
22294 { ac_try='test -s conftest$ac_exeext'
22295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22296 (eval $ac_try) 2>&5
22298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22299 (exit $ac_status); }; }; then
22302 echo "$as_me: failed program was:" >&5
22303 sed 's/^/| /' conftest.$ac_ext >&5
22306 rm -f conftest.err conftest.$ac_objext \
22307 conftest$ac_exeext conftest.$ac_ext
22309 if test "x$smart_lib" = "x"; then
22312 if test "x$LOCATE" != "x"; then
22314 file=libssl${libltdl_cv_shlibext}
22316 for x in `${LOCATE} $file 2>/dev/null`; do
22317 base=`echo $x | sed "s%/${file}%%"`
22318 if test "x$x" = "x$base"; then
22322 dir=`${DIRNAME} $x 2>/dev/null`
22323 exclude=`echo ${dir} | ${GREP} /home`
22324 if test "x$exclude" != "x"; then
22328 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22329 if test "x$already" = "x"; then
22335 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22339 if test "x$LOCATE" != "x"; then
22343 for x in `${LOCATE} $file 2>/dev/null`; do
22344 base=`echo $x | sed "s%/${file}%%"`
22345 if test "x$x" = "x$base"; then
22349 dir=`${DIRNAME} $x 2>/dev/null`
22350 exclude=`echo ${dir} | ${GREP} /home`
22351 if test "x$exclude" != "x"; then
22355 already=`echo \$smart_lib_dir ${DIRS} | ${GREP} ${dir}`
22356 if test "x$already" = "x"; then
22362 eval "smart_lib_dir=\"\$smart_lib_dir $DIRS\""
22365 for try in $smart_try_dir $smart_lib_dir /usr/local/lib/ /opt/lib; do
22366 LIBS="$old_LIBS -L$try -lssl"
22368 cat >conftest.$ac_ext <<_ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 extern char SSL_new();
22383 rm -f conftest.$ac_objext conftest$ac_exeext
22384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22385 (eval $ac_link) 2>conftest.er1
22387 grep -v '^ *+' conftest.er1 >conftest.err
22389 cat conftest.err >&5
22390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22391 (exit $ac_status); } &&
22392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22394 (eval $ac_try) 2>&5
22396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22397 (exit $ac_status); }; } &&
22398 { ac_try='test -s conftest$ac_exeext'
22399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22400 (eval $ac_try) 2>&5
22402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22403 (exit $ac_status); }; }; then
22404 smart_lib="-L$try -lssl"
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22410 rm -f conftest.err conftest.$ac_objext \
22411 conftest$ac_exeext conftest.$ac_ext
22412 if test "x$smart_lib" != "x"; then
22419 if test "x$smart_lib" != "x"; then
22420 echo "$as_me:$LINENO: result: yes" >&5
22421 echo "${ECHO_T}yes" >&6
22422 eval "ac_cv_lib_${sm_lib_safe}_${sm_func_safe}=yes"
22423 LIBS="$old_LIBS $smart_lib"
22424 SMART_LIBS="$SMART_LIBS $smart_lib"
22426 echo "$as_me:$LINENO: result: no" >&5
22427 echo "${ECHO_T}no" >&6
22430 if test "x$ac_cv_lib_ssl_SSL_new" = "xyes"; then
22431 if test "x$OPENSSL_INCLUDE_DIR" != "x"; then
22432 OPENSSL_INCLUDE="-I$OPENSSL_INCLUDE_DIR"
22434 if test "x$OPENSSL_LIB_DIR" != "x"; then
22435 OPENSSL_LIBS="-L$OPENSSL_LIB_DIR"
22437 OPENSSL_LIBS="$OPENSSL_LIBS -lcrypto -lssl -lcrypto"
22444 CPPFLAGS=$old_CPPFLAGS
22449 export OPENSSL_LIBS
22452 echo "$as_me:$LINENO: checking for off_t" >&5
22453 echo $ECHO_N "checking for off_t... $ECHO_C" >&6
22454 if test "${ac_cv_type_off_t+set}" = set; then
22455 echo $ECHO_N "(cached) $ECHO_C" >&6
22457 cat >conftest.$ac_ext <<_ACEOF
22460 cat confdefs.h >>conftest.$ac_ext
22461 cat >>conftest.$ac_ext <<_ACEOF
22462 /* end confdefs.h. */
22463 $ac_includes_default
22469 if (sizeof (off_t))
22475 rm -f conftest.$ac_objext
22476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22477 (eval $ac_compile) 2>conftest.er1
22479 grep -v '^ *+' conftest.er1 >conftest.err
22481 cat conftest.err >&5
22482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22483 (exit $ac_status); } &&
22484 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22486 (eval $ac_try) 2>&5
22488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22489 (exit $ac_status); }; } &&
22490 { ac_try='test -s conftest.$ac_objext'
22491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22492 (eval $ac_try) 2>&5
22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22495 (exit $ac_status); }; }; then
22496 ac_cv_type_off_t=yes
22498 echo "$as_me: failed program was:" >&5
22499 sed 's/^/| /' conftest.$ac_ext >&5
22501 ac_cv_type_off_t=no
22503 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22505 echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
22506 echo "${ECHO_T}$ac_cv_type_off_t" >&6
22507 if test $ac_cv_type_off_t = yes; then
22511 cat >>confdefs.h <<_ACEOF
22517 echo "$as_me:$LINENO: checking for pid_t" >&5
22518 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
22519 if test "${ac_cv_type_pid_t+set}" = set; then
22520 echo $ECHO_N "(cached) $ECHO_C" >&6
22522 cat >conftest.$ac_ext <<_ACEOF
22525 cat confdefs.h >>conftest.$ac_ext
22526 cat >>conftest.$ac_ext <<_ACEOF
22527 /* end confdefs.h. */
22528 $ac_includes_default
22534 if (sizeof (pid_t))
22540 rm -f conftest.$ac_objext
22541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22542 (eval $ac_compile) 2>conftest.er1
22544 grep -v '^ *+' conftest.er1 >conftest.err
22546 cat conftest.err >&5
22547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22548 (exit $ac_status); } &&
22549 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22551 (eval $ac_try) 2>&5
22553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554 (exit $ac_status); }; } &&
22555 { ac_try='test -s conftest.$ac_objext'
22556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22557 (eval $ac_try) 2>&5
22559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22560 (exit $ac_status); }; }; then
22561 ac_cv_type_pid_t=yes
22563 echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22566 ac_cv_type_pid_t=no
22568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22570 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22571 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
22572 if test $ac_cv_type_pid_t = yes; then
22576 cat >>confdefs.h <<_ACEOF
22582 echo "$as_me:$LINENO: checking for size_t" >&5
22583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22584 if test "${ac_cv_type_size_t+set}" = set; then
22585 echo $ECHO_N "(cached) $ECHO_C" >&6
22587 cat >conftest.$ac_ext <<_ACEOF
22590 cat confdefs.h >>conftest.$ac_ext
22591 cat >>conftest.$ac_ext <<_ACEOF
22592 /* end confdefs.h. */
22593 $ac_includes_default
22599 if (sizeof (size_t))
22605 rm -f conftest.$ac_objext
22606 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22607 (eval $ac_compile) 2>conftest.er1
22609 grep -v '^ *+' conftest.er1 >conftest.err
22611 cat conftest.err >&5
22612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22613 (exit $ac_status); } &&
22614 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22616 (eval $ac_try) 2>&5
22618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22619 (exit $ac_status); }; } &&
22620 { ac_try='test -s conftest.$ac_objext'
22621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22622 (eval $ac_try) 2>&5
22624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22625 (exit $ac_status); }; }; then
22626 ac_cv_type_size_t=yes
22628 echo "$as_me: failed program was:" >&5
22629 sed 's/^/| /' conftest.$ac_ext >&5
22631 ac_cv_type_size_t=no
22633 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22635 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22636 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22637 if test $ac_cv_type_size_t = yes; then
22641 cat >>confdefs.h <<_ACEOF
22642 #define size_t unsigned
22647 echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
22648 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
22649 if test "${ac_cv_type_uid_t+set}" = set; then
22650 echo $ECHO_N "(cached) $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 #include <sys/types.h>
22661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22662 $EGREP "uid_t" >/dev/null 2>&1; then
22663 ac_cv_type_uid_t=yes
22665 ac_cv_type_uid_t=no
22670 echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
22671 echo "${ECHO_T}$ac_cv_type_uid_t" >&6
22672 if test $ac_cv_type_uid_t = no; then
22674 cat >>confdefs.h <<\_ACEOF
22679 cat >>confdefs.h <<\_ACEOF
22687 echo "$as_me:$LINENO: checking for socklen_t" >&5
22688 echo $ECHO_N "checking for socklen_t... $ECHO_C" >&6
22689 if test "${ac_cv_type_socklen_t+set}" = set; then
22690 echo $ECHO_N "(cached) $ECHO_C" >&6
22692 ac_cv_type_socklen_t=no
22693 cat >conftest.$ac_ext <<_ACEOF
22696 cat confdefs.h >>conftest.$ac_ext
22697 cat >>conftest.$ac_ext <<_ACEOF
22698 /* end confdefs.h. */
22699 #ifdef HAVE_SYS_TYPES_H
22700 #include <sys/types.h>
22702 #ifdef HAVE_SYS_SOCKET_H
22703 #include <sys/socket.h>
22714 rm -f conftest.$ac_objext
22715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22716 (eval $ac_compile) 2>conftest.er1
22718 grep -v '^ *+' conftest.er1 >conftest.err
22720 cat conftest.err >&5
22721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22722 (exit $ac_status); } &&
22723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22725 (eval $ac_try) 2>&5
22727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22728 (exit $ac_status); }; } &&
22729 { ac_try='test -s conftest.$ac_objext'
22730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22731 (eval $ac_try) 2>&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); }; }; then
22735 ac_cv_type_socklen_t=yes
22737 echo "$as_me: failed program was:" >&5
22738 sed 's/^/| /' conftest.$ac_ext >&5
22741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22745 echo "$as_me:$LINENO: result: $ac_cv_type_socklen_t" >&5
22746 echo "${ECHO_T}$ac_cv_type_socklen_t" >&6
22748 if test "$ac_cv_type_socklen_t" != "yes"; then
22750 cat >>confdefs.h <<\_ACEOF
22751 #define socklen_t int
22758 echo "$as_me:$LINENO: checking for uint8_t" >&5
22759 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
22760 if test "${ac_cv_type_uint8_t+set}" = set; then
22761 echo $ECHO_N "(cached) $ECHO_C" >&6
22763 ac_cv_type_uint8_t=no
22764 cat >conftest.$ac_ext <<_ACEOF
22767 cat confdefs.h >>conftest.$ac_ext
22768 cat >>conftest.$ac_ext <<_ACEOF
22769 /* end confdefs.h. */
22770 #ifdef HAVE_INTTYPES_H
22771 #include <inttypes.h>
22773 #ifdef HAVE_STDINT_H
22774 #include <stdint.h>
22785 rm -f conftest.$ac_objext
22786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22787 (eval $ac_compile) 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22793 (exit $ac_status); } &&
22794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22796 (eval $ac_try) 2>&5
22798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22799 (exit $ac_status); }; } &&
22800 { ac_try='test -s conftest.$ac_objext'
22801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22802 (eval $ac_try) 2>&5
22804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22805 (exit $ac_status); }; }; then
22806 ac_cv_type_uint8_t=yes
22808 echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22816 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
22817 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
22819 if test "$ac_cv_type_uint8_t" != "yes"; then
22821 cat >>confdefs.h <<\_ACEOF
22822 #define uint8_t unsigned char
22829 echo "$as_me:$LINENO: checking for uint16_t" >&5
22830 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
22831 if test "${ac_cv_type_uint16_t+set}" = set; then
22832 echo $ECHO_N "(cached) $ECHO_C" >&6
22834 ac_cv_type_uint16_t=no
22835 cat >conftest.$ac_ext <<_ACEOF
22838 cat confdefs.h >>conftest.$ac_ext
22839 cat >>conftest.$ac_ext <<_ACEOF
22840 /* end confdefs.h. */
22841 #ifdef HAVE_INTTYPES_H
22842 #include <inttypes.h>
22844 #ifdef HAVE_STDINT_H
22845 #include <stdint.h>
22856 rm -f conftest.$ac_objext
22857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22858 (eval $ac_compile) 2>conftest.er1
22860 grep -v '^ *+' conftest.er1 >conftest.err
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } &&
22865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; } &&
22871 { ac_try='test -s conftest.$ac_objext'
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; }; then
22877 ac_cv_type_uint16_t=yes
22879 echo "$as_me: failed program was:" >&5
22880 sed 's/^/| /' conftest.$ac_ext >&5
22883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22887 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
22888 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
22890 if test "$ac_cv_type_uint16_t" != "yes"; then
22892 cat >>confdefs.h <<\_ACEOF
22893 #define uint16_t unsigned short
22900 echo "$as_me:$LINENO: checking for uint32_t" >&5
22901 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
22902 if test "${ac_cv_type_uint32_t+set}" = set; then
22903 echo $ECHO_N "(cached) $ECHO_C" >&6
22905 ac_cv_type_uint32_t=no
22906 cat >conftest.$ac_ext <<_ACEOF
22909 cat confdefs.h >>conftest.$ac_ext
22910 cat >>conftest.$ac_ext <<_ACEOF
22911 /* end confdefs.h. */
22912 #ifdef HAVE_INTTYPES_H
22913 #include <inttypes.h>
22915 #ifdef HAVE_STDINT_H
22916 #include <stdint.h>
22927 rm -f conftest.$ac_objext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22929 (eval $ac_compile) 2>conftest.er1
22931 grep -v '^ *+' conftest.er1 >conftest.err
22933 cat conftest.err >&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22938 (eval $ac_try) 2>&5
22940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22941 (exit $ac_status); }; } &&
22942 { ac_try='test -s conftest.$ac_objext'
22943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22944 (eval $ac_try) 2>&5
22946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22947 (exit $ac_status); }; }; then
22948 ac_cv_type_uint32_t=yes
22950 echo "$as_me: failed program was:" >&5
22951 sed 's/^/| /' conftest.$ac_ext >&5
22954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22958 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
22959 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
22961 if test "$ac_cv_type_uint32_t" != "yes"; then
22963 cat >>confdefs.h <<\_ACEOF
22964 #define uint32_t unsigned int
23019 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23020 echo "$as_me:$LINENO: checking for $ac_func" >&5
23021 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23022 if eval "test \"\${$as_ac_var+set}\" = set"; then
23023 echo $ECHO_N "(cached) $ECHO_C" >&6
23025 cat >conftest.$ac_ext <<_ACEOF
23028 cat confdefs.h >>conftest.$ac_ext
23029 cat >>conftest.$ac_ext <<_ACEOF
23030 /* end confdefs.h. */
23031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23033 #define $ac_func innocuous_$ac_func
23035 /* System header to define __stub macros and hopefully few prototypes,
23036 which can conflict with char $ac_func (); below.
23037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23038 <limits.h> exists even on freestanding compilers. */
23041 # include <limits.h>
23043 # include <assert.h>
23048 /* Override any gcc2 internal prototype to avoid an error. */
23053 /* We use char because int might match the return type of a gcc2
23054 builtin and then its argument prototype would still apply. */
23056 /* The GNU C library defines this for functions which it implements
23057 to always fail with ENOSYS. Some functions are actually named
23058 something starting with __ and the normal name is an alias. */
23059 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23062 char (*f) () = $ac_func;
23071 return f != $ac_func;
23076 rm -f conftest.$ac_objext conftest$ac_exeext
23077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23078 (eval $ac_link) 2>conftest.er1
23080 grep -v '^ *+' conftest.er1 >conftest.err
23082 cat conftest.err >&5
23083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23084 (exit $ac_status); } &&
23085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23087 (eval $ac_try) 2>&5
23089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23090 (exit $ac_status); }; } &&
23091 { ac_try='test -s conftest$ac_exeext'
23092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23093 (eval $ac_try) 2>&5
23095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23096 (exit $ac_status); }; }; then
23097 eval "$as_ac_var=yes"
23099 echo "$as_me: failed program was:" >&5
23100 sed 's/^/| /' conftest.$ac_ext >&5
23102 eval "$as_ac_var=no"
23104 rm -f conftest.err conftest.$ac_objext \
23105 conftest$ac_exeext conftest.$ac_ext
23107 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23108 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23109 if test `eval echo '${'$as_ac_var'}'` = yes; then
23110 cat >>confdefs.h <<_ACEOF
23111 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23128 echo "$as_me:$LINENO: checking whether $ac_func must be declared" >&5
23129 echo $ECHO_N "checking whether $ac_func must be declared... $ECHO_C" >&6
23130 if eval "test \"\${radius_cv_decl_needed_$ac_func+set}\" = set"; then
23131 echo $ECHO_N "(cached) $ECHO_C" >&6
23133 cat >conftest.$ac_ext <<_ACEOF
23136 cat confdefs.h >>conftest.$ac_ext
23137 cat >>conftest.$ac_ext <<_ACEOF
23138 /* end confdefs.h. */
23141 #include <string.h>
23142 #ifdef HAVE_UNISTD_H
23143 #include <unistd.h>
23145 #ifdef HAVE_CRYPT_H
23148 #ifdef HAVE_ERRNO_H
23151 #ifdef HAVE_RESOURCE_H
23152 #include <resource.h>
23154 #ifdef HAVE_GETOPT_H
23155 #include <getopt.h>
23157 #ifdef HAVE_MALLOC_H
23158 #include <malloc.h>
23163 #ifdef HAVE_UTMPX_H
23166 #ifdef HAVE_SYS_SELECT_H
23167 #include <sys/select.h>
23169 #ifdef HAVE_DLFCN_H
23172 #ifdef HAVE_REGEX_H
23175 #ifdef HAVE_SYSLOG_H
23176 #include <syslog.h>
23178 #ifdef HAVE_INTTYPES_H
23179 #include <inttypes.h>
23181 #ifdef HAVE_STDINT_H
23182 #include <stdint.h>
23184 #ifdef HAVE_ARPA_INET_H
23185 #include <arpa/inet.h>
23191 char *(*pfn) = (char *(*)) $ac_func
23196 rm -f conftest.$ac_objext
23197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23198 (eval $ac_compile) 2>conftest.er1
23200 grep -v '^ *+' conftest.er1 >conftest.err
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try='test -s conftest.$ac_objext'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 eval "radius_cv_decl_needed_$ac_func=no"
23219 echo "$as_me: failed program was:" >&5
23220 sed 's/^/| /' conftest.$ac_ext >&5
23222 eval "radius_cv_decl_needed_$ac_func=yes"
23224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23227 if eval "test \"`echo '$radius_cv_decl_needed_'$ac_func`\" = yes"; then
23228 echo "$as_me:$LINENO: result: yes" >&5
23229 echo "${ECHO_T}yes" >&6
23230 radius_tr_decl=NEED_DECLARATION_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
23231 cat >>confdefs.h <<_ACEOF
23232 #define $radius_tr_decl 1
23236 echo "$as_me:$LINENO: result: no" >&5
23237 echo "${ECHO_T}no" >&6
23243 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
23244 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
23245 if test "${ac_cv_type_signal+set}" = set; then
23246 echo $ECHO_N "(cached) $ECHO_C" >&6
23248 cat >conftest.$ac_ext <<_ACEOF
23251 cat confdefs.h >>conftest.$ac_ext
23252 cat >>conftest.$ac_ext <<_ACEOF
23253 /* end confdefs.h. */
23254 #include <sys/types.h>
23255 #include <signal.h>
23260 extern "C" void (*signal (int, void (*)(int)))(int);
23262 void (*signal ()) ();
23273 rm -f conftest.$ac_objext
23274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23275 (eval $ac_compile) 2>conftest.er1
23277 grep -v '^ *+' conftest.er1 >conftest.err
23279 cat conftest.err >&5
23280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23281 (exit $ac_status); } &&
23282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23284 (eval $ac_try) 2>&5
23286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23287 (exit $ac_status); }; } &&
23288 { ac_try='test -s conftest.$ac_objext'
23289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23290 (eval $ac_try) 2>&5
23292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23293 (exit $ac_status); }; }; then
23294 ac_cv_type_signal=void
23296 echo "$as_me: failed program was:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 ac_cv_type_signal=int
23301 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23303 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
23304 echo "${ECHO_T}$ac_cv_type_signal" >&6
23306 cat >>confdefs.h <<_ACEOF
23307 #define RETSIGTYPE $ac_cv_type_signal
23312 if test "x$ac_cv_header_utmpx_h" = "xyes"
23315 echo "$as_me:$LINENO: checking for ut_xtime in struct utmpx" >&5
23316 echo $ECHO_N "checking for ut_xtime in struct utmpx... $ECHO_C" >&6
23319 cat >conftest.$ac_ext <<_ACEOF
23322 cat confdefs.h >>conftest.$ac_ext
23323 cat >>conftest.$ac_ext <<_ACEOF
23324 /* end confdefs.h. */
23328 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23334 int foo = offsetof(struct utmpx, ut_xtime)
23339 rm -f conftest.$ac_objext
23340 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23341 (eval $ac_compile) 2>conftest.er1
23343 grep -v '^ *+' conftest.er1 >conftest.err
23345 cat conftest.err >&5
23346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23347 (exit $ac_status); } &&
23348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23350 (eval $ac_try) 2>&5
23352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23353 (exit $ac_status); }; } &&
23354 { ac_try='test -s conftest.$ac_objext'
23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23356 (eval $ac_try) 2>&5
23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23359 (exit $ac_status); }; }; then
23362 echo "$as_me: failed program was:" >&5
23363 sed 's/^/| /' conftest.$ac_ext >&5
23367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23369 ac_safe_type=`echo "struct utmpx" | sed 'y% %_%'`
23370 if test "x$has_element" != "x"; then
23371 echo "$as_me:$LINENO: result: yes" >&5
23372 echo "${ECHO_T}yes" >&6
23373 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime=yes"
23375 echo "$as_me:$LINENO: result: no" >&5
23376 echo "${ECHO_T}no" >&6
23377 eval "ac_cv_type_${ac_safe_type}_has_ut_xtime="
23380 if test "x$ac_cv_type_struct_utmpx_has_ut_xtime" = "x"
23383 cat >>confdefs.h <<\_ACEOF
23384 #define ut_xtime ut_tv.tv_sec
23391 echo "$as_me:$LINENO: checking for ipi_addr in struct in_pktinfo" >&5
23392 echo $ECHO_N "checking for ipi_addr in struct in_pktinfo... $ECHO_C" >&6
23395 cat >conftest.$ac_ext <<_ACEOF
23398 cat confdefs.h >>conftest.$ac_ext
23399 cat >>conftest.$ac_ext <<_ACEOF
23400 /* end confdefs.h. */
23402 #include <netinet/in.h>
23404 #define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
23410 int foo = offsetof(struct in_pktinfo, ipi_addr)
23415 rm -f conftest.$ac_objext
23416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23417 (eval $ac_compile) 2>conftest.er1
23419 grep -v '^ *+' conftest.er1 >conftest.err
23421 cat conftest.err >&5
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); } &&
23424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; } &&
23430 { ac_try='test -s conftest.$ac_objext'
23431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23432 (eval $ac_try) 2>&5
23434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23435 (exit $ac_status); }; }; then
23438 echo "$as_me: failed program was:" >&5
23439 sed 's/^/| /' conftest.$ac_ext >&5
23443 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23445 ac_safe_type=`echo "struct in_pktinfo" | sed 'y% %_%'`
23446 if test "x$has_element" != "x"; then
23447 echo "$as_me:$LINENO: result: yes" >&5
23448 echo "${ECHO_T}yes" >&6
23449 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr=yes"
23451 echo "$as_me:$LINENO: result: no" >&5
23452 echo "${ECHO_T}no" >&6
23453 eval "ac_cv_type_${ac_safe_type}_has_ipi_addr="
23456 if test "x$ac_cv_type_struct_in_pktinfo_has_ipi_addr" = "xyes"
23459 cat >>confdefs.h <<\_ACEOF
23460 #define HAVE_IP_PKTINFO
23466 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
23467 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
23468 if test "${ac_cv_c_const+set}" = set; then
23469 echo $ECHO_N "(cached) $ECHO_C" >&6
23471 cat >conftest.$ac_ext <<_ACEOF
23474 cat confdefs.h >>conftest.$ac_ext
23475 cat >>conftest.$ac_ext <<_ACEOF
23476 /* end confdefs.h. */
23481 /* FIXME: Include the comments suggested by Paul. */
23482 #ifndef __cplusplus
23483 /* Ultrix mips cc rejects this. */
23484 typedef int charset[2];
23486 /* SunOS 4.1.1 cc rejects this. */
23487 char const *const *ccp;
23489 /* NEC SVR4.0.2 mips cc rejects this. */
23490 struct point {int x, y;};
23491 static struct point const zero = {0,0};
23492 /* AIX XL C 1.02.0.0 rejects this.
23493 It does not let you subtract one const X* pointer from another in
23494 an arm of an if-expression whose if-part is not a constant
23496 const char *g = "string";
23497 ccp = &g + (g ? g-g : 0);
23498 /* HPUX 7.0 cc rejects these. */
23501 ccp = (char const *const *) p;
23502 { /* SCO 3.2v4 cc rejects this. */
23504 char const *s = 0 ? (char *) 0 : (char const *) 0;
23508 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
23509 int x[] = {25, 17};
23510 const int *foo = &x[0];
23513 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
23514 typedef const int *iptr;
23518 { /* AIX XL C 1.02.0.0 rejects this saying
23519 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
23520 struct s { int j; const int *ap[3]; };
23521 struct s *b; b->j = 5;
23523 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
23524 const int foo = 10;
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534 (eval $ac_compile) 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
23541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23543 (eval $ac_try) 2>&5
23545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23546 (exit $ac_status); }; } &&
23547 { ac_try='test -s conftest.$ac_objext'
23548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23549 (eval $ac_try) 2>&5
23551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23552 (exit $ac_status); }; }; then
23555 echo "$as_me: failed program was:" >&5
23556 sed 's/^/| /' conftest.$ac_ext >&5
23560 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23562 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
23563 echo "${ECHO_T}$ac_cv_c_const" >&6
23564 if test $ac_cv_c_const = no; then
23566 cat >>confdefs.h <<\_ACEOF
23573 echo "$as_me:$LINENO: checking type of OS" >&5
23574 echo $ECHO_N "checking type of OS... $ECHO_C" >&6
23576 echo "$as_me:$LINENO: result: $OS" >&5
23577 echo "${ECHO_T}$OS" >&6
23578 if test "$OS" = "OS/2"; then
23585 if test "x$GCC" = "xyes"; then
23586 CFLAGS="$CFLAGS -Wall -D_GNU_SOURCE"
23589 echo "$as_me:$LINENO: checking for developer gcc flags" >&5
23590 echo $ECHO_N "checking for developer gcc flags... $ECHO_C" >&6
23591 if test "x$developer" = "xyes" -a "x$GCC" = "xyes"; then
23592 devflags="-g -Wshadow -Wpointer-arith -Wcast-qual -Wcast-align -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -W -Wredundant-decls -Wundef"
23593 CFLAGS="$CFLAGS $devflags"
23595 echo "$as_me:$LINENO: result: yes. Using $devflags" >&5
23596 echo "${ECHO_T}yes. Using $devflags" >&6
23599 CFLAGS="$CFLAGS -DNDEBUG"
23601 echo "$as_me:$LINENO: result: no." >&5
23602 echo "${ECHO_T}no." >&6
23606 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
23607 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
23608 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
23609 echo $ECHO_N "(cached) $ECHO_C" >&6
23611 ac_check_lib_save_LIBS=$LIBS
23612 LIBS="-lcrypt $LIBS"
23613 cat >conftest.$ac_ext <<_ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23620 /* Override any gcc2 internal prototype to avoid an error. */
23624 /* We use char because int might match the return type of a gcc2
23625 builtin and then its argument prototype would still apply. */
23635 rm -f conftest.$ac_objext conftest$ac_exeext
23636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23637 (eval $ac_link) 2>conftest.er1
23639 grep -v '^ *+' conftest.er1 >conftest.err
23641 cat conftest.err >&5
23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23643 (exit $ac_status); } &&
23644 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23646 (eval $ac_try) 2>&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); }; } &&
23650 { ac_try='test -s conftest$ac_exeext'
23651 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23652 (eval $ac_try) 2>&5
23654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23655 (exit $ac_status); }; }; then
23656 ac_cv_lib_crypt_crypt=yes
23658 echo "$as_me: failed program was:" >&5
23659 sed 's/^/| /' conftest.$ac_ext >&5
23661 ac_cv_lib_crypt_crypt=no
23663 rm -f conftest.err conftest.$ac_objext \
23664 conftest$ac_exeext conftest.$ac_ext
23665 LIBS=$ac_check_lib_save_LIBS
23667 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
23668 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
23669 if test $ac_cv_lib_crypt_crypt = yes; then
23674 if test "$CRYPTLIB" != ""; then
23676 cat >>confdefs.h <<\_ACEOF
23681 echo "$as_me:$LINENO: checking for crypt" >&5
23682 echo $ECHO_N "checking for crypt... $ECHO_C" >&6
23683 if test "${ac_cv_func_crypt+set}" = set; then
23684 echo $ECHO_N "(cached) $ECHO_C" >&6
23686 cat >conftest.$ac_ext <<_ACEOF
23689 cat confdefs.h >>conftest.$ac_ext
23690 cat >>conftest.$ac_ext <<_ACEOF
23691 /* end confdefs.h. */
23692 /* Define crypt to an innocuous variant, in case <limits.h> declares crypt.
23693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23694 #define crypt innocuous_crypt
23696 /* System header to define __stub macros and hopefully few prototypes,
23697 which can conflict with char crypt (); below.
23698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23699 <limits.h> exists even on freestanding compilers. */
23702 # include <limits.h>
23704 # include <assert.h>
23709 /* Override any gcc2 internal prototype to avoid an error. */
23714 /* We use char because int might match the return type of a gcc2
23715 builtin and then its argument prototype would still apply. */
23717 /* The GNU C library defines this for functions which it implements
23718 to always fail with ENOSYS. Some functions are actually named
23719 something starting with __ and the normal name is an alias. */
23720 #if defined (__stub_crypt) || defined (__stub___crypt)
23723 char (*f) () = crypt;
23737 rm -f conftest.$ac_objext conftest$ac_exeext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739 (eval $ac_link) 2>conftest.er1
23741 grep -v '^ *+' conftest.er1 >conftest.err
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } &&
23746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23748 (eval $ac_try) 2>&5
23750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23751 (exit $ac_status); }; } &&
23752 { ac_try='test -s conftest$ac_exeext'
23753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23754 (eval $ac_try) 2>&5
23756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23757 (exit $ac_status); }; }; then
23758 ac_cv_func_crypt=yes
23760 echo "$as_me: failed program was:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ac_cv_func_crypt=no
23765 rm -f conftest.err conftest.$ac_objext \
23766 conftest$ac_exeext conftest.$ac_ext
23768 echo "$as_me:$LINENO: result: $ac_cv_func_crypt" >&5
23769 echo "${ECHO_T}$ac_cv_func_crypt" >&6
23770 if test $ac_cv_func_crypt = yes; then
23772 cat >>confdefs.h <<\_ACEOF
23780 echo "$as_me:$LINENO: checking for setkey in -lcipher" >&5
23781 echo $ECHO_N "checking for setkey in -lcipher... $ECHO_C" >&6
23782 if test "${ac_cv_lib_cipher_setkey+set}" = set; then
23783 echo $ECHO_N "(cached) $ECHO_C" >&6
23785 ac_check_lib_save_LIBS=$LIBS
23786 LIBS="-lcipher $LIBS"
23787 cat >conftest.$ac_ext <<_ACEOF
23790 cat confdefs.h >>conftest.$ac_ext
23791 cat >>conftest.$ac_ext <<_ACEOF
23792 /* end confdefs.h. */
23794 /* Override any gcc2 internal prototype to avoid an error. */
23798 /* We use char because int might match the return type of a gcc2
23799 builtin and then its argument prototype would still apply. */
23809 rm -f conftest.$ac_objext conftest$ac_exeext
23810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23811 (eval $ac_link) 2>conftest.er1
23813 grep -v '^ *+' conftest.er1 >conftest.err
23815 cat conftest.err >&5
23816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23817 (exit $ac_status); } &&
23818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23820 (eval $ac_try) 2>&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); }; } &&
23824 { ac_try='test -s conftest$ac_exeext'
23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; }; then
23830 ac_cv_lib_cipher_setkey=yes
23832 echo "$as_me: failed program was:" >&5
23833 sed 's/^/| /' conftest.$ac_ext >&5
23835 ac_cv_lib_cipher_setkey=no
23837 rm -f conftest.err conftest.$ac_objext \
23838 conftest$ac_exeext conftest.$ac_ext
23839 LIBS=$ac_check_lib_save_LIBS
23841 echo "$as_me:$LINENO: result: $ac_cv_lib_cipher_setkey" >&5
23842 echo "${ECHO_T}$ac_cv_lib_cipher_setkey" >&6
23843 if test $ac_cv_lib_cipher_setkey = yes; then
23844 CRYPTLIB="${CRYPTLIB} -lcipher"
23850 if test "x$WITH_SNMP" = "xyes"; then
23855 echo "$as_me:$LINENO: checking for asn1.h,snmp.h,snmp_impl.h" >&5
23856 echo $ECHO_N "checking for asn1.h,snmp.h,snmp_impl.h... $ECHO_C" >&6
23858 cat >conftest.$ac_ext <<_ACEOF
23861 cat confdefs.h >>conftest.$ac_ext
23862 cat >>conftest.$ac_ext <<_ACEOF
23863 /* end confdefs.h. */
23865 #ifdef HAVE_SYS_TYPES_H
23866 #include <sys/types.h>
23868 #ifdef HAVE_STDINT_H
23869 #include <stdint.h>
23871 #ifdef HAVE_STDIO_H
23874 #ifdef HAVE_NETDB_H
23877 #ifdef HAVE_UNISTD_H
23878 #include <unistd.h>
23880 #include <ucd-snmp/ucd-snmp-config.h>
23881 #include <ucd-snmp/asn1.h>
23882 #include <ucd-snmp/snmp.h>
23883 #include <ucd-snmp/snmp_impl.h>
23892 rm -f conftest.$ac_objext
23893 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23894 (eval $ac_compile) 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23900 (exit $ac_status); } &&
23901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23903 (eval $ac_try) 2>&5
23905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23906 (exit $ac_status); }; } &&
23907 { ac_try='test -s conftest.$ac_objext'
23908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23909 (eval $ac_try) 2>&5
23911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23912 (exit $ac_status); }; }; then
23913 SNMP_INCLUDE="";ucdsnmp=yes
23915 echo "$as_me: failed program was:" >&5
23916 sed 's/^/| /' conftest.$ac_ext >&5
23920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23922 if test "x$ucdsnmp" = "x"; then
23923 old_CFLAGS="$CFLAGS"
23924 for try in /usr/include /usr/local/include $snmp_include_dir; do
23925 CFLAGS="$old_CFLAGS -I$try"
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23933 #ifdef HAVE_SYS_TYPES_H
23934 #include <sys/types.h>
23936 #ifdef HAVE_STDINT_H
23937 #include <stdint.h>
23939 #ifdef HAVE_STDIO_H
23942 #ifdef HAVE_NETDB_H
23945 #ifdef HAVE_UNISTD_H
23946 #include <unistd.h>
23948 #include <ucd-snmp/ucd-snmp-config.h>
23949 #include <ucd-snmp/asn1.h>
23950 #include <ucd-snmp/snmp.h>
23951 #include <ucd-snmp/snmp_impl.h>
23960 rm -f conftest.$ac_objext
23961 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23962 (eval $ac_compile) 2>conftest.er1
23964 grep -v '^ *+' conftest.er1 >conftest.err
23966 cat conftest.err >&5
23967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968 (exit $ac_status); } &&
23969 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
23975 { ac_try='test -s conftest.$ac_objext'
23976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23977 (eval $ac_try) 2>&5
23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23980 (exit $ac_status); }; }; then
23981 SNMP_INCLUDE="-I$try";ucdsnmp=yes
23983 echo "$as_me: failed program was:" >&5
23984 sed 's/^/| /' conftest.$ac_ext >&5
23988 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23989 if test "x$ucdsnmp" != "x"; then
23993 CFLAGS="$old_CFLAGS"
23996 if test "x$ucdsnmp" = "x"; then
23997 old_CFLAGS="$CFLAGS"
23998 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
23999 CFLAGS="$old_CFLAGS -I$try"
24000 cat >conftest.$ac_ext <<_ACEOF
24003 cat confdefs.h >>conftest.$ac_ext
24004 cat >>conftest.$ac_ext <<_ACEOF
24005 /* end confdefs.h. */
24007 #ifdef HAVE_SYS_TYPES_H
24008 #include <sys/types.h>
24010 #ifdef HAVE_STDINT_H
24011 #include <stdint.h>
24013 #ifdef HAVE_STDIO_H
24016 #ifdef HAVE_NETDB_H
24019 #ifdef HAVE_UNISTD_H
24020 #include <unistd.h>
24024 #include <snmp_impl.h>
24033 rm -f conftest.$ac_objext
24034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24035 (eval $ac_compile) 2>conftest.er1
24037 grep -v '^ *+' conftest.er1 >conftest.err
24039 cat conftest.err >&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); } &&
24042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; } &&
24048 { ac_try='test -s conftest.$ac_objext'
24049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24050 (eval $ac_try) 2>&5
24052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24053 (exit $ac_status); }; }; then
24054 SNMP_INCLUDE="";ucdsnmp=no
24056 echo "$as_me: failed program was:" >&5
24057 sed 's/^/| /' conftest.$ac_ext >&5
24061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24062 if test "x$ucdsnmp" != "x"; then
24066 CFLAGS="$old_CFLAGS"
24069 if test "x$ucdsnmp" = "x"; then
24070 old_CFLAGS="$CFLAGS"
24071 for try in /usr/include/ucd-snmp /usr/local/include/ucd-snmp $snmp_include_dir; do
24072 CFLAGS="$old_CFLAGS -I$try"
24073 cat >conftest.$ac_ext <<_ACEOF
24076 cat confdefs.h >>conftest.$ac_ext
24077 cat >>conftest.$ac_ext <<_ACEOF
24078 /* end confdefs.h. */
24080 #ifdef HAVE_SYS_TYPES_H
24081 #include <sys/types.h>
24083 #ifdef HAVE_STDINT_H
24084 #include <stdint.h>
24086 #ifdef HAVE_STDIO_H
24089 #ifdef HAVE_NETDB_H
24092 #ifdef HAVE_UNISTD_H
24093 #include <unistd.h>
24097 #include <snmp_impl.h>
24106 rm -f conftest.$ac_objext
24107 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24108 (eval $ac_compile) 2>conftest.er1
24110 grep -v '^ *+' conftest.er1 >conftest.err
24112 cat conftest.err >&5
24113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114 (exit $ac_status); } &&
24115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24117 (eval $ac_try) 2>&5
24119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24120 (exit $ac_status); }; } &&
24121 { ac_try='test -s conftest.$ac_objext'
24122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24123 (eval $ac_try) 2>&5
24125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24126 (exit $ac_status); }; }; then
24127 SNMP_INCLUDE="-I$try";ucdsnmp=no
24129 echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24134 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24135 if test "x$ucdsnmp" != "x"; then
24139 CFLAGS="$old_CFLAGS"
24142 if test "x$ucdsnmp" = "x"; then
24143 echo "$as_me:$LINENO: result: no" >&5
24144 echo "${ECHO_T}no" >&6
24146 if test "x$ucdsnmp" = "xyes"; then
24147 echo "$as_me:$LINENO: result: (ucd-snmp)yes" >&5
24148 echo "${ECHO_T}(ucd-snmp)yes" >&6
24150 cat >>confdefs.h <<\_ACEOF
24151 #define HAVE_UCD_SNMP_ASN1_SNMP_SNMPIMPL_H
24155 echo "$as_me:$LINENO: result: yes" >&5
24156 echo "${ECHO_T}yes" >&6
24158 cat >>confdefs.h <<\_ACEOF
24159 #define HAVE_ASN1_SNMP_SNMPIMPL_H
24163 echo "$as_me:$LINENO: checking for snmp_build_var_op in -lsnmp" >&5
24164 echo $ECHO_N "checking for snmp_build_var_op in -lsnmp... $ECHO_C" >&6
24167 LIBS="$old_LIBS -lsnmp"
24168 cat >conftest.$ac_ext <<_ACEOF
24171 cat confdefs.h >>conftest.$ac_ext
24172 cat >>conftest.$ac_ext <<_ACEOF
24173 /* end confdefs.h. */
24174 extern char snmp_build_var_op();
24178 snmp_build_var_op()
24183 rm -f conftest.$ac_objext conftest$ac_exeext
24184 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24185 (eval $ac_link) 2>conftest.er1
24187 grep -v '^ *+' conftest.er1 >conftest.err
24189 cat conftest.err >&5
24190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24191 (exit $ac_status); } &&
24192 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24194 (eval $ac_try) 2>&5
24196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24197 (exit $ac_status); }; } &&
24198 { ac_try='test -s conftest$ac_exeext'
24199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24200 (eval $ac_try) 2>&5
24202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24203 (exit $ac_status); }; }; then
24206 echo "$as_me: failed program was:" >&5
24207 sed 's/^/| /' conftest.$ac_ext >&5
24211 rm -f conftest.err conftest.$ac_objext \
24212 conftest$ac_exeext conftest.$ac_ext
24214 if test "x$SNMP_LIBS" = "x"; then
24215 for try in /usr/lib /usr/local/lib /usr/local/snmp/lib $snmp_lib_dir; do
24216 LIBS="$old_LIBS -L$try -lsnmp"
24217 cat >conftest.$ac_ext <<_ACEOF
24220 cat confdefs.h >>conftest.$ac_ext
24221 cat >>conftest.$ac_ext <<_ACEOF
24222 /* end confdefs.h. */
24223 extern char snmp_build_var_op();
24227 snmp_build_var_op()
24232 rm -f conftest.$ac_objext conftest$ac_exeext
24233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24234 (eval $ac_link) 2>conftest.er1
24236 grep -v '^ *+' conftest.er1 >conftest.err
24238 cat conftest.err >&5
24239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24240 (exit $ac_status); } &&
24241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24243 (eval $ac_try) 2>&5
24245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24246 (exit $ac_status); }; } &&
24247 { ac_try='test -s conftest$ac_exeext'
24248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24249 (eval $ac_try) 2>&5
24251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24252 (exit $ac_status); }; }; then
24253 SNMP_LIBS="-L$try -lsnmp"
24255 echo "$as_me: failed program was:" >&5
24256 sed 's/^/| /' conftest.$ac_ext >&5
24260 rm -f conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 if test "x$SNMP_LIBS" != "x"; then
24265 LIBS="$old_LIBS -L$try -lsnmp -lcrypto"
24266 cat >conftest.$ac_ext <<_ACEOF
24269 cat confdefs.h >>conftest.$ac_ext
24270 cat >>conftest.$ac_ext <<_ACEOF
24271 /* end confdefs.h. */
24272 extern char snmp_build_var_op();
24276 snmp_build_var_op()
24281 rm -f conftest.$ac_objext conftest$ac_exeext
24282 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24283 (eval $ac_link) 2>conftest.er1
24285 grep -v '^ *+' conftest.er1 >conftest.err
24287 cat conftest.err >&5
24288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24289 (exit $ac_status); } &&
24290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24292 (eval $ac_try) 2>&5
24294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24295 (exit $ac_status); }; } &&
24296 { ac_try='test -s conftest$ac_exeext'
24297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24298 (eval $ac_try) 2>&5
24300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24301 (exit $ac_status); }; }; then
24302 SNMP_LIBS="-L$try -lsnmp -lcrypto"
24304 echo "$as_me: failed program was:" >&5
24305 sed 's/^/| /' conftest.$ac_ext >&5
24309 rm -f conftest.err conftest.$ac_objext \
24310 conftest$ac_exeext conftest.$ac_ext
24311 if test "x$SNMP_LIBS" != "x"; then
24318 CFLAGS="$old_CFLAGS"
24319 if test "x$SNMP_LIBS" = "x"; then
24320 echo "$as_me:$LINENO: result: no" >&5
24321 echo "${ECHO_T}no" >&6
24324 echo "$as_me:$LINENO: result: yes" >&5
24325 echo "${ECHO_T}yes" >&6
24327 cat >>confdefs.h <<\_ACEOF
24332 cat >>confdefs.h <<\_ACEOF
24333 #define HAVE_LIBSNMP
24342 cat >>confdefs.h <<\_ACEOF
24347 cat >>confdefs.h <<\_ACEOF
24348 #define SYSVSTYLE 2
24352 cat >>confdefs.h <<\_ACEOF
24356 gethostbyaddrrstyle=""
24357 echo "$as_me:$LINENO: checking gethostbyaddr_r() syntax" >&5
24358 echo $ECHO_N "checking gethostbyaddr_r() syntax... $ECHO_C" >&6
24362 cat >>confdefs.h <<\_ACEOF
24363 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24366 gethostbyaddrrstyle=BSD
24367 { echo "$as_me:$LINENO: WARNING: FreeBSD overridden to BSD-style" >&5
24368 echo "$as_me: WARNING: FreeBSD overridden to BSD-style" >&2;}
24371 if test "x$gethostbyaddrrstyle" = "x"; then
24372 cat >conftest.$ac_ext <<_ACEOF
24375 cat confdefs.h >>conftest.$ac_ext
24376 cat >>conftest.$ac_ext <<_ACEOF
24377 /* end confdefs.h. */
24385 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL, NULL)
24390 rm -f conftest.$ac_objext conftest$ac_exeext
24391 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24392 (eval $ac_link) 2>conftest.er1
24394 grep -v '^ *+' conftest.er1 >conftest.err
24396 cat conftest.err >&5
24397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24398 (exit $ac_status); } &&
24399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24400 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24401 (eval $ac_try) 2>&5
24403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24404 (exit $ac_status); }; } &&
24405 { ac_try='test -s conftest$ac_exeext'
24406 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24407 (eval $ac_try) 2>&5
24409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24410 (exit $ac_status); }; }; then
24413 cat >>confdefs.h <<\_ACEOF
24414 #define GETHOSTBYADDRRSTYLE GNUSTYLE
24417 gethostbyaddrrstyle=GNU
24420 echo "$as_me: failed program was:" >&5
24421 sed 's/^/| /' conftest.$ac_ext >&5
24424 rm -f conftest.err conftest.$ac_objext \
24425 conftest$ac_exeext conftest.$ac_ext
24427 if test "x$gethostbyaddrrstyle" = "x"; then
24428 cat >conftest.$ac_ext <<_ACEOF
24431 cat confdefs.h >>conftest.$ac_ext
24432 cat >>conftest.$ac_ext <<_ACEOF
24433 /* end confdefs.h. */
24441 gethostbyaddr_r(NULL, 0, 0, NULL, NULL, 0, NULL)
24446 rm -f conftest.$ac_objext conftest$ac_exeext
24447 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24448 (eval $ac_link) 2>conftest.er1
24450 grep -v '^ *+' conftest.er1 >conftest.err
24452 cat conftest.err >&5
24453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24454 (exit $ac_status); } &&
24455 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24457 (eval $ac_try) 2>&5
24459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24460 (exit $ac_status); }; } &&
24461 { ac_try='test -s conftest$ac_exeext'
24462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24463 (eval $ac_try) 2>&5
24465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); }; }; then
24469 cat >>confdefs.h <<\_ACEOF
24470 #define GETHOSTBYADDRRSTYLE SYSVSTYLE
24473 gethostbyaddrrstyle=SYSV
24476 echo "$as_me: failed program was:" >&5
24477 sed 's/^/| /' conftest.$ac_ext >&5
24480 rm -f conftest.err conftest.$ac_objext \
24481 conftest$ac_exeext conftest.$ac_ext
24483 if test "x$gethostbyaddrrstyle" = "x"; then
24484 cat >conftest.$ac_ext <<_ACEOF
24487 cat confdefs.h >>conftest.$ac_ext
24488 cat >>conftest.$ac_ext <<_ACEOF
24489 /* end confdefs.h. */
24497 gethostbyaddr(NULL, 0, 0)
24502 rm -f conftest.$ac_objext conftest$ac_exeext
24503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24504 (eval $ac_link) 2>conftest.er1
24506 grep -v '^ *+' conftest.er1 >conftest.err
24508 cat conftest.err >&5
24509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24510 (exit $ac_status); } &&
24511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24513 (eval $ac_try) 2>&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); }; } &&
24517 { ac_try='test -s conftest$ac_exeext'
24518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24519 (eval $ac_try) 2>&5
24521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24522 (exit $ac_status); }; }; then
24525 cat >>confdefs.h <<\_ACEOF
24526 #define GETHOSTBYADDRRSTYLE BSDSTYLE
24529 gethostbyaddrrstyle=BSD
24532 echo "$as_me: failed program was:" >&5
24533 sed 's/^/| /' conftest.$ac_ext >&5
24536 rm -f conftest.err conftest.$ac_objext \
24537 conftest$ac_exeext conftest.$ac_ext
24540 if test "x$gethostbyaddrrstyle" = "x"; then
24541 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24542 echo "${ECHO_T}none! It must not exist, here." >&6
24544 echo "$as_me:$LINENO: result: ${gethostbyaddrrstyle}-style" >&5
24545 echo "${ECHO_T}${gethostbyaddrrstyle}-style" >&6
24548 if test "x$gethostbyaddrrstyle" = "xBSD"; then
24549 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&5
24550 echo "$as_me: WARNING: ****** BSD-style gethostbyaddr might NOT be thread-safe! ****** " >&2;}
24553 gethostbynamerstyle=""
24554 echo "$as_me:$LINENO: checking gethostbyname_r() syntax" >&5
24555 echo $ECHO_N "checking gethostbyname_r() syntax... $ECHO_C" >&6
24556 cat >conftest.$ac_ext <<_ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h. */
24569 gethostbyname_r(NULL, NULL, NULL, 0, NULL, NULL)
24574 rm -f conftest.$ac_objext conftest$ac_exeext
24575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24576 (eval $ac_link) 2>conftest.er1
24578 grep -v '^ *+' conftest.er1 >conftest.err
24580 cat conftest.err >&5
24581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24582 (exit $ac_status); } &&
24583 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24585 (eval $ac_try) 2>&5
24587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24588 (exit $ac_status); }; } &&
24589 { ac_try='test -s conftest$ac_exeext'
24590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24591 (eval $ac_try) 2>&5
24593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24594 (exit $ac_status); }; }; then
24597 cat >>confdefs.h <<\_ACEOF
24598 #define GETHOSTBYNAMERSTYLE GNUSTYLE
24601 gethostbynamerstyle=GNU
24604 echo "$as_me: failed program was:" >&5
24605 sed 's/^/| /' conftest.$ac_ext >&5
24608 rm -f conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24610 if test "x$gethostbynamerstyle" = "x"; then
24611 cat >conftest.$ac_ext <<_ACEOF
24614 cat confdefs.h >>conftest.$ac_ext
24615 cat >>conftest.$ac_ext <<_ACEOF
24616 /* end confdefs.h. */
24624 gethostbyname_r(NULL, NULL, NULL, 0, NULL)
24629 rm -f conftest.$ac_objext conftest$ac_exeext
24630 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24631 (eval $ac_link) 2>conftest.er1
24633 grep -v '^ *+' conftest.er1 >conftest.err
24635 cat conftest.err >&5
24636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24637 (exit $ac_status); } &&
24638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24640 (eval $ac_try) 2>&5
24642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24643 (exit $ac_status); }; } &&
24644 { ac_try='test -s conftest$ac_exeext'
24645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24646 (eval $ac_try) 2>&5
24648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24649 (exit $ac_status); }; }; then
24652 cat >>confdefs.h <<\_ACEOF
24653 #define GETHOSTBYNAMERSTYLE SYSVSTYLE
24656 gethostbynamerstyle=SYSV
24659 echo "$as_me: failed program was:" >&5
24660 sed 's/^/| /' conftest.$ac_ext >&5
24663 rm -f conftest.err conftest.$ac_objext \
24664 conftest$ac_exeext conftest.$ac_ext
24666 if test "x$gethostbynamerstyle" = "x"; then
24667 cat >conftest.$ac_ext <<_ACEOF
24670 cat confdefs.h >>conftest.$ac_ext
24671 cat >>conftest.$ac_ext <<_ACEOF
24672 /* end confdefs.h. */
24680 gethostbyname(NULL)
24685 rm -f conftest.$ac_objext conftest$ac_exeext
24686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24687 (eval $ac_link) 2>conftest.er1
24689 grep -v '^ *+' conftest.er1 >conftest.err
24691 cat conftest.err >&5
24692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24693 (exit $ac_status); } &&
24694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24696 (eval $ac_try) 2>&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); }; } &&
24700 { ac_try='test -s conftest$ac_exeext'
24701 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24702 (eval $ac_try) 2>&5
24704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24705 (exit $ac_status); }; }; then
24708 cat >>confdefs.h <<\_ACEOF
24709 #define GETHOSTBYNAMERSTYLE BSDSTYLE
24712 gethostbynamerstyle=BSD
24715 echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24719 rm -f conftest.err conftest.$ac_objext \
24720 conftest$ac_exeext conftest.$ac_ext
24723 if test "x$gethostbynamerstyle" = "x"; then
24724 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24725 echo "${ECHO_T}none! It must not exist, here." >&6
24727 echo "$as_me:$LINENO: result: ${gethostbynamerstyle}-style" >&5
24728 echo "${ECHO_T}${gethostbynamerstyle}-style" >&6
24731 if test "x$gethostbynamerstyle" = "xBSD"; then
24732 { echo "$as_me:$LINENO: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&5
24733 echo "$as_me: WARNING: ****** BSD-style gethostbyname might NOT be thread-safe! ****** " >&2;}
24737 cat >>confdefs.h <<\_ACEOF
24738 #define POSIXSTYLE 1
24742 cat >>confdefs.h <<\_ACEOF
24743 #define SOLARISSTYLE 2
24747 echo "$as_me:$LINENO: checking ctime_r() syntax" >&5
24748 echo $ECHO_N "checking ctime_r() syntax... $ECHO_C" >&6
24749 cat >conftest.$ac_ext <<_ACEOF
24752 cat confdefs.h >>conftest.$ac_ext
24753 cat >>conftest.$ac_ext <<_ACEOF
24754 /* end confdefs.h. */
24761 ctime_r(NULL, NULL, 0)
24766 rm -f conftest.$ac_objext conftest$ac_exeext
24767 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24768 (eval $ac_link) 2>conftest.er1
24770 grep -v '^ *+' conftest.er1 >conftest.err
24772 cat conftest.err >&5
24773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24774 (exit $ac_status); } &&
24775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24777 (eval $ac_try) 2>&5
24779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24780 (exit $ac_status); }; } &&
24781 { ac_try='test -s conftest$ac_exeext'
24782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24783 (eval $ac_try) 2>&5
24785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24786 (exit $ac_status); }; }; then
24789 cat >>confdefs.h <<\_ACEOF
24790 #define CTIMERSTYLE SOLARISSTYLE
24793 ctimerstyle="SOLARIS"
24796 echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24800 rm -f conftest.err conftest.$ac_objext \
24801 conftest$ac_exeext conftest.$ac_ext
24802 if test "x$ctimerstyle" = "x"; then
24803 cat >conftest.$ac_ext <<_ACEOF
24806 cat confdefs.h >>conftest.$ac_ext
24807 cat >>conftest.$ac_ext <<_ACEOF
24808 /* end confdefs.h. */
24815 ctime_r(NULL, NULL)
24820 rm -f conftest.$ac_objext conftest$ac_exeext
24821 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24822 (eval $ac_link) 2>conftest.er1
24824 grep -v '^ *+' conftest.er1 >conftest.err
24826 cat conftest.err >&5
24827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24828 (exit $ac_status); } &&
24829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24831 (eval $ac_try) 2>&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); }; } &&
24835 { ac_try='test -s conftest$ac_exeext'
24836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24837 (eval $ac_try) 2>&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); }; }; then
24843 cat >>confdefs.h <<\_ACEOF
24844 #define CTIMERSTYLE POSIXSTYLE
24847 ctimerstyle="POSIX"
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24854 rm -f conftest.err conftest.$ac_objext \
24855 conftest$ac_exeext conftest.$ac_ext
24858 if test "x$ctimerstyle" = "x"; then
24859 echo "$as_me:$LINENO: result: none! It must not exist, here." >&5
24860 echo "${ECHO_T}none! It must not exist, here." >&6
24862 echo "$as_me:$LINENO: result: ${ctimerstyle}-style" >&5
24863 echo "${ECHO_T}${ctimerstyle}-style" >&6
24871 export top_builddir
24872 echo "$as_me:$LINENO: result: top_builddir=$top_builddir" >&5
24873 echo "${ECHO_T}top_builddir=$top_builddir" >&6
24877 if test "x$INCLTDL" != "x";then
24878 INCLTDL='-I${top_builddir}/''libltdl'
24884 if test "x$EXPERIMENTAL" = "xyes"; then
24885 bar=`ls -1 src/modules/rlm_*/configure | sed 's%/configure%%'`
24886 mysubdirs=`echo $bar`
24888 for bar in `cat src/modules/stable`; do
24889 if test -f src/modules/$bar/configure; then
24890 mysubdirs="$mysubdirs src/modules/$bar"
24896 if test "x$EXPERIMENTAL" = "xyes"; then
24897 for foo in `ls -1 src/modules | grep rlm_`; do
24898 MODULES="$MODULES $foo"
24901 for foo in `cat src/modules/stable`; do
24902 MODULES="$MODULES $foo"
24908 subdirs="$subdirs $mysubdirs"
24913 ac_config_commands="$ac_config_commands stamp-h"
24915 ac_config_commands="$ac_config_commands build-radpaths-h"
24917 ac_config_commands="$ac_config_commands main-chmod"
24919 ac_config_commands="$ac_config_commands scripts-chmod"
24925 USE_SHARED_LIBS=$enable_shared
24927 USE_STATIC_LIBS=$enable_static
24935 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"
24936 cat >confcache <<\_ACEOF
24937 # This file is a shell script that caches the results of configure
24938 # tests run on this system so they can be shared between configure
24939 # scripts and configure runs, see configure's option --config-cache.
24940 # It is not useful on other systems. If it contains results you don't
24941 # want to keep, you may remove or edit it.
24943 # config.status only pays attention to the cache file if you give it
24944 # the --recheck option to rerun configure.
24946 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24947 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24948 # following values.
24952 # The following way of writing the cache mishandles newlines in values,
24953 # but we know of no workaround that is simple, portable, and efficient.
24954 # So, don't put newlines in cache variables' values.
24955 # Ultrix sh set writes to stderr and can't be redirected directly,
24956 # and sets the high bit in the cache file unless we assign to the vars.
24959 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24961 # `set' does not quote correctly, so add quotes (double-quote
24962 # substitution turns \\\\ into \\, and sed turns \\ into \).
24965 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24968 # `set' quotes correctly as required by POSIX, so do not add quotes.
24970 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24977 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24979 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24981 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24982 if test -w $cache_file; then
24983 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24984 cat confcache >$cache_file
24986 echo "not updating unwritable cache $cache_file"
24991 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24992 # Let make expand exec_prefix.
24993 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24995 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24996 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24997 # trailing colons and then remove the whole line if VPATH becomes empty
24998 # (actually we leave an empty line to preserve line numbers).
24999 if test "x$srcdir" = x.; then
25000 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25001 s/:*\$(srcdir):*/:/;
25002 s/:*\${srcdir}:*/:/;
25004 s/^\([^=]*=[ ]*\):*/\1/;
25010 DEFS=-DHAVE_CONFIG_H
25014 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25015 # 1. Remove the extension, and $U if already installed.
25016 ac_i=`echo "$ac_i" |
25017 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
25019 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
25020 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
25022 LIBOBJS=$ac_libobjs
25024 LTLIBOBJS=$ac_ltlibobjs
25028 : ${CONFIG_STATUS=./config.status}
25029 ac_clean_files_save=$ac_clean_files
25030 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25031 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
25032 echo "$as_me: creating $CONFIG_STATUS" >&6;}
25033 cat >$CONFIG_STATUS <<_ACEOF
25035 # Generated by $as_me.
25036 # Run this file to recreate the current configuration.
25037 # Compiler output produced by configure, useful for debugging
25038 # configure, is in config.log if it exists.
25041 ac_cs_recheck=false
25043 SHELL=\${CONFIG_SHELL-$SHELL}
25046 cat >>$CONFIG_STATUS <<\_ACEOF
25047 ## --------------------- ##
25048 ## M4sh Initialization. ##
25049 ## --------------------- ##
25051 # Be Bourne compatible
25052 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
25055 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25056 # is contrary to our usage. Disable this feature.
25057 alias -g '${1+"$@"}'='"$@"'
25058 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25061 DUALCASE=1; export DUALCASE # for MKS sh
25063 # Support unset when possible.
25064 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
25071 # Work around bugs in pre-3.0 UWIN ksh.
25072 $as_unset ENV MAIL MAILPATH
25079 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
25080 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
25081 LC_TELEPHONE LC_TIME
25083 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
25084 eval $as_var=C; export $as_var
25090 # Required to use basename.
25091 if expr a : '\(a\)' >/dev/null 2>&1; then
25097 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
25098 as_basename=basename
25104 # Name of the executable.
25105 as_me=`$as_basename "$0" ||
25106 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25107 X"$0" : 'X\(//\)$' \| \
25108 X"$0" : 'X\(/\)$' \| \
25109 . : '\(.\)' 2>/dev/null ||
25111 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
25112 /^X\/\(\/\/\)$/{ s//\1/; q; }
25113 /^X\/\(\/\).*/{ s//\1/; q; }
25117 # PATH needs CR, and LINENO needs CR and PATH.
25118 # Avoid depending upon Character Ranges.
25119 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25120 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25121 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25122 as_cr_digits='0123456789'
25123 as_cr_alnum=$as_cr_Letters$as_cr_digits
25125 # The user is always right.
25126 if test "${PATH_SEPARATOR+set}" != set; then
25127 echo "#! /bin/sh" >conf$$.sh
25128 echo "exit 0" >>conf$$.sh
25130 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
25139 as_lineno_1=$LINENO
25140 as_lineno_2=$LINENO
25141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25142 test "x$as_lineno_1" != "x$as_lineno_2" &&
25143 test "x$as_lineno_3" = "x$as_lineno_2" || {
25144 # Find who we are. Look in the path if we contain no path at all
25147 *[\\/]* ) as_myself=$0 ;;
25148 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25149 for as_dir in $PATH
25152 test -z "$as_dir" && as_dir=.
25153 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25158 # We did not find ourselves, most probably we were run as `sh COMMAND'
25159 # in which case we are not to be found in the path.
25160 if test "x$as_myself" = x; then
25163 if test ! -f "$as_myself"; then
25164 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
25165 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
25166 { (exit 1); exit 1; }; }
25168 case $CONFIG_SHELL in
25170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25171 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
25174 test -z "$as_dir" && as_dir=.
25175 for as_base in sh bash ksh sh5; do
25178 if ("$as_dir/$as_base" -c '
25179 as_lineno_1=$LINENO
25180 as_lineno_2=$LINENO
25181 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
25182 test "x$as_lineno_1" != "x$as_lineno_2" &&
25183 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
25184 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
25185 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
25186 CONFIG_SHELL=$as_dir/$as_base
25187 export CONFIG_SHELL
25188 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
25196 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
25197 # uniformly replaced by the line number. The first 'sed' inserts a
25198 # line-number line before each line; the second 'sed' does the real
25199 # work. The second script uses 'N' to pair each line-number line
25200 # with the numbered line, and appends trailing '-' during
25201 # substitution so that $LINENO is not a special case at line end.
25202 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
25203 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
25204 sed '=' <$as_myself |
25209 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
25212 s,^['$as_cr_digits']*\n,,
25213 ' >$as_me.lineno &&
25214 chmod +x $as_me.lineno ||
25215 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
25216 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
25217 { (exit 1); exit 1; }; }
25219 # Don't try to exec as it changes $[0], causing all sort of problems
25220 # (the dirname of $[0] is not the place where we might find the
25221 # original and so on. Autoconf is especially sensible to this).
25223 # Exit status is that of the last command.
25228 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
25229 *c*,-n*) ECHO_N= ECHO_C='
25231 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
25232 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
25235 if expr a : '\(a\)' >/dev/null 2>&1; then
25241 rm -f conf$$ conf$$.exe conf$$.file
25243 if ln -s conf$$.file conf$$ 2>/dev/null; then
25244 # We could just check for DJGPP; but this test a) works b) is more generic
25245 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
25246 if test -f conf$$.exe; then
25247 # Don't use ln at all; we don't have any links
25252 elif ln conf$$.file conf$$ 2>/dev/null; then
25257 rm -f conf$$ conf$$.exe conf$$.file
25259 if mkdir -p . 2>/dev/null; then
25262 test -d ./-p && rmdir ./-p
25266 as_executable_p="test -f"
25268 # Sed expression to map a string onto a valid CPP name.
25269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25271 # Sed expression to map a string onto a valid variable name.
25272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25276 # We need space, tab and new line, in precisely that order.
25286 # Open the log real soon, to keep \$[0] and so on meaningful, and to
25287 # report actual input values of CONFIG_FILES etc. instead of their
25288 # values after options handling. Logging --version etc. is OK.
25292 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25293 ## Running $as_me. ##
25298 This file was extended by $as_me, which was
25299 generated by GNU Autoconf 2.59. Invocation command line was
25301 CONFIG_FILES = $CONFIG_FILES
25302 CONFIG_HEADERS = $CONFIG_HEADERS
25303 CONFIG_LINKS = $CONFIG_LINKS
25304 CONFIG_COMMANDS = $CONFIG_COMMANDS
25308 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
25312 # Files that config.status was made for.
25313 if test -n "$ac_config_files"; then
25314 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
25317 if test -n "$ac_config_headers"; then
25318 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
25321 if test -n "$ac_config_links"; then
25322 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
25325 if test -n "$ac_config_commands"; then
25326 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
25329 cat >>$CONFIG_STATUS <<\_ACEOF
25332 \`$as_me' instantiates files from templates according to the
25333 current configuration.
25335 Usage: $0 [OPTIONS] [FILE]...
25337 -h, --help print this help, then exit
25338 -V, --version print version number, then exit
25339 -q, --quiet do not print progress messages
25340 -d, --debug don't remove temporary files
25341 --recheck update $as_me by reconfiguring in the same conditions
25342 --file=FILE[:TEMPLATE]
25343 instantiate the configuration file FILE
25344 --header=FILE[:TEMPLATE]
25345 instantiate the configuration header FILE
25347 Configuration files:
25350 Configuration headers:
25353 Configuration commands:
25356 Report bugs to <bug-autoconf@gnu.org>."
25359 cat >>$CONFIG_STATUS <<_ACEOF
25362 configured by $0, generated by GNU Autoconf 2.59,
25363 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
25365 Copyright (C) 2003 Free Software Foundation, Inc.
25366 This config.status script is free software; the Free Software Foundation
25367 gives unlimited permission to copy, distribute and modify it."
25371 cat >>$CONFIG_STATUS <<\_ACEOF
25372 # If no file are specified by the user, then we need to provide default
25373 # value. By we need to know if files were specified by the user.
25379 ac_option=`expr "x$1" : 'x\([^=]*\)='`
25380 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
25388 *) # This is not an option, so the user has probably given explicit
25391 ac_need_defaults=false;;
25395 # Handling of the options.
25397 cat >>$CONFIG_STATUS <<\_ACEOF
25398 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25400 --version | --vers* | -V )
25401 echo "$ac_cs_version"; exit 0 ;;
25403 # Conflict between --help and --header
25404 { { echo "$as_me:$LINENO: error: ambiguous option: $1
25405 Try \`$0 --help' for more information." >&5
25406 echo "$as_me: error: ambiguous option: $1
25407 Try \`$0 --help' for more information." >&2;}
25408 { (exit 1); exit 1; }; };;
25409 --help | --hel | -h )
25410 echo "$ac_cs_usage"; exit 0 ;;
25411 --debug | --d* | -d )
25413 --file | --fil | --fi | --f )
25415 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
25416 ac_need_defaults=false;;
25417 --header | --heade | --head | --hea )
25419 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
25420 ac_need_defaults=false;;
25421 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25422 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25425 # This is an error.
25426 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
25427 Try \`$0 --help' for more information." >&5
25428 echo "$as_me: error: unrecognized option: $1
25429 Try \`$0 --help' for more information." >&2;}
25430 { (exit 1); exit 1; }; } ;;
25432 *) ac_config_targets="$ac_config_targets $1" ;;
25438 ac_configure_extra_args=
25440 if $ac_cs_silent; then
25442 ac_configure_extra_args="$ac_configure_extra_args --silent"
25446 cat >>$CONFIG_STATUS <<_ACEOF
25447 if \$ac_cs_recheck; then
25448 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
25449 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25458 cat >>$CONFIG_STATUS <<\_ACEOF
25459 for ac_config_target in $ac_config_targets
25461 case "$ac_config_target" in
25462 # Handling of arguments.
25463 "./Make.inc" ) CONFIG_FILES="$CONFIG_FILES ./Make.inc" ;;
25464 "./src/include/build-radpaths-h" ) CONFIG_FILES="$CONFIG_FILES ./src/include/build-radpaths-h" ;;
25465 "./src/main/Makefile" ) CONFIG_FILES="$CONFIG_FILES ./src/main/Makefile" ;;
25466 "./src/main/checkrad.pl" ) CONFIG_FILES="$CONFIG_FILES ./src/main/checkrad.pl" ;;
25467 "./src/main/radlast" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radlast" ;;
25468 "./src/main/radtest" ) CONFIG_FILES="$CONFIG_FILES ./src/main/radtest" ;;
25469 "./scripts/rc.radiusd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/rc.radiusd" ;;
25470 "./scripts/radwatch" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radwatch" ;;
25471 "./scripts/check-radiusd-config" ) CONFIG_FILES="$CONFIG_FILES ./scripts/check-radiusd-config" ;;
25472 "./scripts/radiusd.cron.daily" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.daily" ;;
25473 "./scripts/radiusd.cron.monthly" ) CONFIG_FILES="$CONFIG_FILES ./scripts/radiusd.cron.monthly" ;;
25474 "./scripts/cryptpasswd" ) CONFIG_FILES="$CONFIG_FILES ./scripts/cryptpasswd" ;;
25475 "./raddb/dictionary" ) CONFIG_FILES="$CONFIG_FILES ./raddb/dictionary" ;;
25476 "./raddb/radiusd.conf" ) CONFIG_FILES="$CONFIG_FILES ./raddb/radiusd.conf" ;;
25477 "stamp-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS stamp-h" ;;
25478 "build-radpaths-h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS build-radpaths-h" ;;
25479 "main-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS main-chmod" ;;
25480 "scripts-chmod" ) CONFIG_COMMANDS="$CONFIG_COMMANDS scripts-chmod" ;;
25481 "src/include/autoconf.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/include/autoconf.h" ;;
25482 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25483 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25484 { (exit 1); exit 1; }; };;
25488 # If the user did not use the arguments to specify the items to instantiate,
25489 # then the envvar interface is used. Set only those that are not.
25490 # We use the long form for the default assignment because of an extremely
25491 # bizarre bug on SunOS 4.1.3.
25492 if $ac_need_defaults; then
25493 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25494 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25495 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25498 # Have a temporary directory for convenience. Make it in the build tree
25499 # simply because there is no reason to put it here, and in addition,
25500 # creating and moving files from /tmp can sometimes cause problems.
25501 # Create a temporary directory, and hook for its removal unless debugging.
25504 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
25505 trap '{ (exit 1); exit 1; }' 1 2 13 15
25508 # Create a (secure) tmp directory for tmp files.
25511 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
25512 test -n "$tmp" && test -d "$tmp"
25515 tmp=./confstat$$-$RANDOM
25516 (umask 077 && mkdir $tmp)
25519 echo "$me: cannot create a temporary directory in ." >&2
25520 { (exit 1); exit 1; }
25525 cat >>$CONFIG_STATUS <<_ACEOF
25528 # CONFIG_FILES section.
25531 # No need to generate the scripts if there are no CONFIG_FILES.
25532 # This happens for instance when ./config.status config.h
25533 if test -n "\$CONFIG_FILES"; then
25534 # Protect against being on the right side of a sed subst in config.status.
25535 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25536 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25537 s,@SHELL@,$SHELL,;t t
25538 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25539 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25540 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25541 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25542 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25543 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25544 s,@exec_prefix@,$exec_prefix,;t t
25545 s,@prefix@,$prefix,;t t
25546 s,@program_transform_name@,$program_transform_name,;t t
25547 s,@bindir@,$bindir,;t t
25548 s,@sbindir@,$sbindir,;t t
25549 s,@libexecdir@,$libexecdir,;t t
25550 s,@datadir@,$datadir,;t t
25551 s,@sysconfdir@,$sysconfdir,;t t
25552 s,@sharedstatedir@,$sharedstatedir,;t t
25553 s,@localstatedir@,$localstatedir,;t t
25554 s,@libdir@,$libdir,;t t
25555 s,@includedir@,$includedir,;t t
25556 s,@oldincludedir@,$oldincludedir,;t t
25557 s,@infodir@,$infodir,;t t
25558 s,@mandir@,$mandir,;t t
25559 s,@build_alias@,$build_alias,;t t
25560 s,@host_alias@,$host_alias,;t t
25561 s,@target_alias@,$target_alias,;t t
25562 s,@DEFS@,$DEFS,;t t
25563 s,@ECHO_C@,$ECHO_C,;t t
25564 s,@ECHO_N@,$ECHO_N,;t t
25565 s,@ECHO_T@,$ECHO_T,;t t
25566 s,@LIBS@,$LIBS,;t t
25568 s,@CFLAGS@,$CFLAGS,;t t
25569 s,@LDFLAGS@,$LDFLAGS,;t t
25570 s,@CPPFLAGS@,$CPPFLAGS,;t t
25571 s,@ac_ct_CC@,$ac_ct_CC,;t t
25572 s,@EXEEXT@,$EXEEXT,;t t
25573 s,@OBJEXT@,$OBJEXT,;t t
25575 s,@EGREP@,$EGREP,;t t
25576 s,@RANLIB@,$RANLIB,;t t
25577 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25578 s,@abs_top_builddir@,$abs_top_builddir,;t t
25579 s,@GMAKE@,$GMAKE,;t t
25580 s,@MAKE@,$MAKE,;t t
25581 s,@subdirs@,$subdirs,;t t
25582 s,@LIBLTDLPATH@,$LIBLTDLPATH,;t t
25583 s,@LIBTOOL@,$LIBTOOL,;t t
25584 s,@build@,$build,;t t
25585 s,@build_cpu@,$build_cpu,;t t
25586 s,@build_vendor@,$build_vendor,;t t
25587 s,@build_os@,$build_os,;t t
25588 s,@host@,$host,;t t
25589 s,@host_cpu@,$host_cpu,;t t
25590 s,@host_vendor@,$host_vendor,;t t
25591 s,@host_os@,$host_os,;t t
25592 s,@LN_S@,$LN_S,;t t
25593 s,@ECHO@,$ECHO,;t t
25595 s,@ac_ct_AR@,$ac_ct_AR,;t t
25596 s,@STRIP@,$STRIP,;t t
25597 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25599 s,@CXXFLAGS@,$CXXFLAGS,;t t
25600 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25601 s,@CXXCPP@,$CXXCPP,;t t
25603 s,@FFLAGS@,$FFLAGS,;t t
25604 s,@ac_ct_F77@,$ac_ct_F77,;t t
25605 s,@logdir@,$logdir,;t t
25606 s,@radacctdir@,$radacctdir,;t t
25607 s,@raddbdir@,$raddbdir,;t t
25608 s,@PERL@,$PERL,;t t
25609 s,@SNMPGET@,$SNMPGET,;t t
25610 s,@SNMPWALK@,$SNMPWALK,;t t
25611 s,@RUSERS@,$RUSERS,;t t
25612 s,@ACLOCAL@,$ACLOCAL,;t t
25613 s,@AUTOCONF@,$AUTOCONF,;t t
25614 s,@AUTOHEADER@,$AUTOHEADER,;t t
25615 s,@LOCATE@,$LOCATE,;t t
25616 s,@DIRNAME@,$DIRNAME,;t t
25617 s,@GREP@,$GREP,;t t
25618 s,@REGEX@,$REGEX,;t t
25619 s,@REGEX_EXTENDED@,$REGEX_EXTENDED,;t t
25620 s,@OPENSSL_INCLUDE@,$OPENSSL_INCLUDE,;t t
25621 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
25622 s,@LIBPREFIX@,$LIBPREFIX,;t t
25623 s,@CRYPTLIB@,$CRYPTLIB,;t t
25624 s,@SNMP_LIBS@,$SNMP_LIBS,;t t
25625 s,@SNMP_INCLUDE@,$SNMP_INCLUDE,;t t
25626 s,@HOSTINFO@,$HOSTINFO,;t t
25627 s,@LIBLTDL@,$LIBLTDL,;t t
25628 s,@INCLTDL@,$INCLTDL,;t t
25629 s,@MODULES@,$MODULES,;t t
25630 s,@INSTALLSTRIP@,$INSTALLSTRIP,;t t
25631 s,@USE_SHARED_LIBS@,$USE_SHARED_LIBS,;t t
25632 s,@USE_STATIC_LIBS@,$USE_STATIC_LIBS,;t t
25633 s,@STATIC_MODULES@,$STATIC_MODULES,;t t
25634 s,@RADIUSD_MAJOR_VERSION@,$RADIUSD_MAJOR_VERSION,;t t
25635 s,@RADIUSD_MINOR_VERSION@,$RADIUSD_MINOR_VERSION,;t t
25636 s,@RADIUSD_VERSION@,$RADIUSD_VERSION,;t t
25637 s,@LIBOBJS@,$LIBOBJS,;t t
25638 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25643 cat >>$CONFIG_STATUS <<\_ACEOF
25644 # Split the substitutions into bite-sized pieces for seds with
25645 # small command number limits, like on Digital OSF/1 and HP-UX.
25646 ac_max_sed_lines=48
25647 ac_sed_frag=1 # Number of current file.
25648 ac_beg=1 # First line for current file.
25649 ac_end=$ac_max_sed_lines # Line after last line for current file.
25652 while $ac_more_lines; do
25653 if test $ac_beg -gt 1; then
25654 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25656 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25658 if test ! -s $tmp/subs.frag; then
25659 ac_more_lines=false
25661 # The purpose of the label and of the branching condition is to
25662 # speed up the sed processing (if there are no `@' at all, there
25663 # is no need to browse any of the substitutions).
25664 # These are the two extra sed commands mentioned above.
25666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25667 if test -z "$ac_sed_cmds"; then
25668 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25670 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25672 ac_sed_frag=`expr $ac_sed_frag + 1`
25674 ac_end=`expr $ac_end + $ac_max_sed_lines`
25677 if test -z "$ac_sed_cmds"; then
25680 fi # test -n "$CONFIG_FILES"
25683 cat >>$CONFIG_STATUS <<\_ACEOF
25684 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25685 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25687 - | *:- | *:-:* ) # input from stdin
25689 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25690 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25691 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25692 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25693 * ) ac_file_in=$ac_file.in ;;
25696 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25697 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25699 X"$ac_file" : 'X\(//\)[^/]' \| \
25700 X"$ac_file" : 'X\(//\)$' \| \
25701 X"$ac_file" : 'X\(/\)' \| \
25702 . : '\(.\)' 2>/dev/null ||
25704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25705 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25706 /^X\(\/\/\)$/{ s//\1/; q; }
25707 /^X\(\/\).*/{ s//\1/; q; }
25709 { if $as_mkdir_p; then
25714 while test ! -d "$as_dir"; do
25715 as_dirs="$as_dir $as_dirs"
25716 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25717 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25718 X"$as_dir" : 'X\(//\)[^/]' \| \
25719 X"$as_dir" : 'X\(//\)$' \| \
25720 X"$as_dir" : 'X\(/\)' \| \
25721 . : '\(.\)' 2>/dev/null ||
25723 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25724 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25725 /^X\(\/\/\)$/{ s//\1/; q; }
25726 /^X\(\/\).*/{ s//\1/; q; }
25729 test ! -n "$as_dirs" || mkdir $as_dirs
25730 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25731 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25732 { (exit 1); exit 1; }; }; }
25736 if test "$ac_dir" != .; then
25737 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25738 # A "../" for each directory in $ac_dir_suffix.
25739 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25741 ac_dir_suffix= ac_top_builddir=
25745 .) # No --srcdir option. We are building in place.
25747 if test -z "$ac_top_builddir"; then
25750 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25752 [\\/]* | ?:[\\/]* ) # Absolute path.
25753 ac_srcdir=$srcdir$ac_dir_suffix;
25754 ac_top_srcdir=$srcdir ;;
25755 *) # Relative path.
25756 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25757 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25760 # Do not use `cd foo && pwd` to compute absolute paths, because
25761 # the directories may not exist.
25763 .) ac_abs_builddir="$ac_dir";;
25766 .) ac_abs_builddir=`pwd`;;
25767 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25768 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25771 case $ac_abs_builddir in
25772 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25774 case ${ac_top_builddir}. in
25775 .) ac_abs_top_builddir=$ac_abs_builddir;;
25776 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25777 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25780 case $ac_abs_builddir in
25781 .) ac_abs_srcdir=$ac_srcdir;;
25784 .) ac_abs_srcdir=$ac_abs_builddir;;
25785 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25786 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25789 case $ac_abs_builddir in
25790 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25792 case $ac_top_srcdir in
25793 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25794 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25795 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25801 # Let's still pretend it is `configure' which instantiates (i.e., don't
25802 # use $as_me), people would be surprised to read:
25803 # /* config.h. Generated by config.status. */
25804 if test x"$ac_file" = x-; then
25807 configure_input="$ac_file. "
25809 configure_input=$configure_input"Generated from `echo $ac_file_in |
25810 sed 's,.*/,,'` by configure."
25812 # First look for the input files in the build tree, otherwise in the
25814 ac_file_inputs=`IFS=:
25815 for f in $ac_file_in; do
25817 -) echo $tmp/stdin ;;
25819 # Absolute (can't be DOS-style, as IFS=:)
25820 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25821 echo "$as_me: error: cannot find input file: $f" >&2;}
25822 { (exit 1); exit 1; }; }
25825 if test -f "$f"; then
25828 elif test -f "$srcdir/$f"; then
25833 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25834 echo "$as_me: error: cannot find input file: $f" >&2;}
25835 { (exit 1); exit 1; }; }
25838 done` || { (exit 1); exit 1; }
25840 if test x"$ac_file" != x-; then
25841 { echo "$as_me:$LINENO: creating $ac_file" >&5
25842 echo "$as_me: creating $ac_file" >&6;}
25846 cat >>$CONFIG_STATUS <<_ACEOF
25850 cat >>$CONFIG_STATUS <<\_ACEOF
25852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25853 s,@configure_input@,$configure_input,;t t
25854 s,@srcdir@,$ac_srcdir,;t t
25855 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25856 s,@top_srcdir@,$ac_top_srcdir,;t t
25857 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25858 s,@builddir@,$ac_builddir,;t t
25859 s,@abs_builddir@,$ac_abs_builddir,;t t
25860 s,@top_builddir@,$ac_top_builddir,;t t
25861 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25862 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25864 if test x"$ac_file" != x-; then
25865 mv $tmp/out $ac_file
25873 cat >>$CONFIG_STATUS <<\_ACEOF
25876 # CONFIG_HEADER section.
25879 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25880 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25882 # ac_d sets the value in "#define NAME VALUE" lines.
25883 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25884 ac_dB='[ ].*$,\1#\2'
25887 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25888 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25889 ac_uB='$,\1#\2define\3'
25893 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25894 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25896 - | *:- | *:-:* ) # input from stdin
25898 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25899 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25900 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25901 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25902 * ) ac_file_in=$ac_file.in ;;
25905 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25906 echo "$as_me: creating $ac_file" >&6;}
25908 # First look for the input files in the build tree, otherwise in the
25910 ac_file_inputs=`IFS=:
25911 for f in $ac_file_in; do
25913 -) echo $tmp/stdin ;;
25915 # Absolute (can't be DOS-style, as IFS=:)
25916 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25917 echo "$as_me: error: cannot find input file: $f" >&2;}
25918 { (exit 1); exit 1; }; }
25919 # Do quote $f, to prevent DOS paths from being IFS'd.
25922 if test -f "$f"; then
25925 elif test -f "$srcdir/$f"; then
25930 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25931 echo "$as_me: error: cannot find input file: $f" >&2;}
25932 { (exit 1); exit 1; }; }
25935 done` || { (exit 1); exit 1; }
25936 # Remove the trailing spaces.
25937 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25941 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25942 # `conftest.undefs', that substitutes the proper values into
25943 # config.h.in to produce config.h. The first handles `#define'
25944 # templates, and the second `#undef' templates.
25945 # And first: Protect against being on the right side of a sed subst in
25946 # config.status. Protect against being in an unquoted here document
25947 # in config.status.
25948 rm -f conftest.defines conftest.undefs
25949 # Using a here document instead of a string reduces the quoting nightmare.
25950 # Putting comments in sed scripts is not portable.
25952 # `end' is used to avoid that the second main sed command (meant for
25953 # 0-ary CPP macros) applies to n-ary macro definitions.
25954 # See the Autoconf documentation for `clear'.
25955 cat >confdef2sed.sed <<\_ACEOF
25960 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25962 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25965 # If some macros were called several times there might be several times
25966 # the same #defines, which is useless. Nevertheless, we may not want to
25967 # sort them, since we want the *last* AC-DEFINE to be honored.
25968 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25969 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25970 rm -f confdef2sed.sed
25972 # This sed command replaces #undef with comments. This is necessary, for
25973 # example, in the case of _POSIX_SOURCE, which is predefined and required
25974 # on some systems where configure will not decide to define it.
25975 cat >>conftest.undefs <<\_ACEOF
25976 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25979 # Break up conftest.defines because some shells have a limit on the size
25980 # of here documents, and old seds have small limits too (100 cmds).
25981 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25982 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25983 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25984 echo ' :' >>$CONFIG_STATUS
25985 rm -f conftest.tail
25986 while grep . conftest.defines >/dev/null
25988 # Write a limited-size here document to $tmp/defines.sed.
25989 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25990 # Speed up: don't consider the non `#define' lines.
25991 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25992 # Work around the forget-to-reset-the-flag bug.
25993 echo 't clr' >>$CONFIG_STATUS
25994 echo ': clr' >>$CONFIG_STATUS
25995 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25997 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25999 mv $tmp/out $tmp/in
26001 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
26002 rm -f conftest.defines
26003 mv conftest.tail conftest.defines
26005 rm -f conftest.defines
26006 echo ' fi # grep' >>$CONFIG_STATUS
26007 echo >>$CONFIG_STATUS
26009 # Break up conftest.undefs because some shells have a limit on the size
26010 # of here documents, and old seds have small limits too (100 cmds).
26011 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
26012 rm -f conftest.tail
26013 while grep . conftest.undefs >/dev/null
26015 # Write a limited-size here document to $tmp/undefs.sed.
26016 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
26017 # Speed up: don't consider the non `#undef'
26018 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
26019 # Work around the forget-to-reset-the-flag bug.
26020 echo 't clr' >>$CONFIG_STATUS
26021 echo ': clr' >>$CONFIG_STATUS
26022 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
26024 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
26026 mv $tmp/out $tmp/in
26028 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
26029 rm -f conftest.undefs
26030 mv conftest.tail conftest.undefs
26032 rm -f conftest.undefs
26034 cat >>$CONFIG_STATUS <<\_ACEOF
26035 # Let's still pretend it is `configure' which instantiates (i.e., don't
26036 # use $as_me), people would be surprised to read:
26037 # /* config.h. Generated by config.status. */
26038 if test x"$ac_file" = x-; then
26039 echo "/* Generated by configure. */" >$tmp/config.h
26041 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
26043 cat $tmp/in >>$tmp/config.h
26045 if test x"$ac_file" != x-; then
26046 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
26047 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
26048 echo "$as_me: $ac_file is unchanged" >&6;}
26050 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
26051 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26052 X"$ac_file" : 'X\(//\)[^/]' \| \
26053 X"$ac_file" : 'X\(//\)$' \| \
26054 X"$ac_file" : 'X\(/\)' \| \
26055 . : '\(.\)' 2>/dev/null ||
26057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26058 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26059 /^X\(\/\/\)$/{ s//\1/; q; }
26060 /^X\(\/\).*/{ s//\1/; q; }
26062 { if $as_mkdir_p; then
26067 while test ! -d "$as_dir"; do
26068 as_dirs="$as_dir $as_dirs"
26069 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26070 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26071 X"$as_dir" : 'X\(//\)[^/]' \| \
26072 X"$as_dir" : 'X\(//\)$' \| \
26073 X"$as_dir" : 'X\(/\)' \| \
26074 . : '\(.\)' 2>/dev/null ||
26076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26077 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26078 /^X\(\/\/\)$/{ s//\1/; q; }
26079 /^X\(\/\).*/{ s//\1/; q; }
26082 test ! -n "$as_dirs" || mkdir $as_dirs
26083 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26084 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26085 { (exit 1); exit 1; }; }; }
26088 mv $tmp/config.h $ac_file
26092 rm -f $tmp/config.h
26096 cat >>$CONFIG_STATUS <<\_ACEOF
26099 # CONFIG_COMMANDS section.
26101 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
26102 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
26103 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
26104 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
26105 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26106 X"$ac_dest" : 'X\(//\)[^/]' \| \
26107 X"$ac_dest" : 'X\(//\)$' \| \
26108 X"$ac_dest" : 'X\(/\)' \| \
26109 . : '\(.\)' 2>/dev/null ||
26111 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26112 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26113 /^X\(\/\/\)$/{ s//\1/; q; }
26114 /^X\(\/\).*/{ s//\1/; q; }
26116 { if $as_mkdir_p; then
26121 while test ! -d "$as_dir"; do
26122 as_dirs="$as_dir $as_dirs"
26123 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26124 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26125 X"$as_dir" : 'X\(//\)[^/]' \| \
26126 X"$as_dir" : 'X\(//\)$' \| \
26127 X"$as_dir" : 'X\(/\)' \| \
26128 . : '\(.\)' 2>/dev/null ||
26130 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26131 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26132 /^X\(\/\/\)$/{ s//\1/; q; }
26133 /^X\(\/\).*/{ s//\1/; q; }
26136 test ! -n "$as_dirs" || mkdir $as_dirs
26137 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26138 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26139 { (exit 1); exit 1; }; }; }
26143 if test "$ac_dir" != .; then
26144 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26145 # A "../" for each directory in $ac_dir_suffix.
26146 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26148 ac_dir_suffix= ac_top_builddir=
26152 .) # No --srcdir option. We are building in place.
26154 if test -z "$ac_top_builddir"; then
26157 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26159 [\\/]* | ?:[\\/]* ) # Absolute path.
26160 ac_srcdir=$srcdir$ac_dir_suffix;
26161 ac_top_srcdir=$srcdir ;;
26162 *) # Relative path.
26163 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26164 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26167 # Do not use `cd foo && pwd` to compute absolute paths, because
26168 # the directories may not exist.
26170 .) ac_abs_builddir="$ac_dir";;
26173 .) ac_abs_builddir=`pwd`;;
26174 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26175 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26178 case $ac_abs_builddir in
26179 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26181 case ${ac_top_builddir}. in
26182 .) ac_abs_top_builddir=$ac_abs_builddir;;
26183 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26184 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26187 case $ac_abs_builddir in
26188 .) ac_abs_srcdir=$ac_srcdir;;
26191 .) ac_abs_srcdir=$ac_abs_builddir;;
26192 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26193 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26196 case $ac_abs_builddir in
26197 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26199 case $ac_top_srcdir in
26200 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26201 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26202 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26207 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
26208 echo "$as_me: executing $ac_dest commands" >&6;}
26210 stamp-h ) echo timestamp > src/include/stamp-h ;;
26211 build-radpaths-h ) (cd ./src/include && /bin/sh ./build-radpaths-h) ;;
26212 main-chmod ) (cd ./src/main && chmod +x checkrad.pl radlast radtest) ;;
26213 scripts-chmod ) (cd ./scripts && chmod +x rc.radiusd radwatch check-radiusd-config radiusd.cron.daily radiusd.cron.monthly cryptpasswd) ;;
26218 cat >>$CONFIG_STATUS <<\_ACEOF
26220 { (exit 0); exit 0; }
26222 chmod +x $CONFIG_STATUS
26223 ac_clean_files=$ac_clean_files_save
26226 # configure is writing to config.log, and then calls config.status.
26227 # config.status does its own redirection, appending to config.log.
26228 # Unfortunately, on DOS this fails, as config.log is still kept open
26229 # by configure, so config.status won't be able to write to it; its
26230 # output is simply discarded. So we exec the FD to /dev/null,
26231 # effectively closing config.log, so it can be properly (re)opened and
26232 # appended to by config.status. When coming back to configure, we
26233 # need to make the FD available again.
26234 if test "$no_create" != yes; then
26236 ac_config_status_args=
26237 test "$silent" = yes &&
26238 ac_config_status_args="$ac_config_status_args --quiet"
26240 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26242 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26243 # would make configure fail if this is the last instruction.
26244 $ac_cs_success || { (exit 1); exit 1; }
26248 # CONFIG_SUBDIRS section.
26250 if test "$no_recursion" != yes; then
26252 # Remove --cache-file and --srcdir arguments so they do not pile up.
26253 ac_sub_configure_args=
26255 for ac_arg in $ac_configure_args; do
26256 if test -n "$ac_prev"; then
26261 -cache-file | --cache-file | --cache-fil | --cache-fi \
26262 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
26263 ac_prev=cache_file ;;
26264 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
26265 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
26268 --config-cache | -C)
26270 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
26272 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
26274 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
26276 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
26278 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
26282 # Always prepend --prefix to ensure using the same prefix
26283 # in subdir configurations.
26284 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
26287 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
26289 # Do not complain, so a configure script can configure whichever
26290 # parts of a large source tree are present.
26291 test -d $srcdir/$ac_dir || continue
26293 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
26294 echo "$as_me: configuring in $ac_dir" >&6;}
26295 { if $as_mkdir_p; then
26300 while test ! -d "$as_dir"; do
26301 as_dirs="$as_dir $as_dirs"
26302 as_dir=`(dirname "$as_dir") 2>/dev/null ||
26303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26304 X"$as_dir" : 'X\(//\)[^/]' \| \
26305 X"$as_dir" : 'X\(//\)$' \| \
26306 X"$as_dir" : 'X\(/\)' \| \
26307 . : '\(.\)' 2>/dev/null ||
26309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
26310 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
26311 /^X\(\/\/\)$/{ s//\1/; q; }
26312 /^X\(\/\).*/{ s//\1/; q; }
26315 test ! -n "$as_dirs" || mkdir $as_dirs
26316 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
26317 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
26318 { (exit 1); exit 1; }; }; }
26322 if test "$ac_dir" != .; then
26323 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26324 # A "../" for each directory in $ac_dir_suffix.
26325 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
26327 ac_dir_suffix= ac_top_builddir=
26331 .) # No --srcdir option. We are building in place.
26333 if test -z "$ac_top_builddir"; then
26336 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
26338 [\\/]* | ?:[\\/]* ) # Absolute path.
26339 ac_srcdir=$srcdir$ac_dir_suffix;
26340 ac_top_srcdir=$srcdir ;;
26341 *) # Relative path.
26342 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
26343 ac_top_srcdir=$ac_top_builddir$srcdir ;;
26346 # Do not use `cd foo && pwd` to compute absolute paths, because
26347 # the directories may not exist.
26349 .) ac_abs_builddir="$ac_dir";;
26352 .) ac_abs_builddir=`pwd`;;
26353 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
26354 *) ac_abs_builddir=`pwd`/"$ac_dir";;
26357 case $ac_abs_builddir in
26358 .) ac_abs_top_builddir=${ac_top_builddir}.;;
26360 case ${ac_top_builddir}. in
26361 .) ac_abs_top_builddir=$ac_abs_builddir;;
26362 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
26363 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
26366 case $ac_abs_builddir in
26367 .) ac_abs_srcdir=$ac_srcdir;;
26370 .) ac_abs_srcdir=$ac_abs_builddir;;
26371 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
26372 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
26375 case $ac_abs_builddir in
26376 .) ac_abs_top_srcdir=$ac_top_srcdir;;
26378 case $ac_top_srcdir in
26379 .) ac_abs_top_srcdir=$ac_abs_builddir;;
26380 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
26381 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
26388 # Check for guested configure; otherwise get Cygnus style configure.
26389 if test -f $ac_srcdir/configure.gnu; then
26390 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
26391 elif test -f $ac_srcdir/configure; then
26392 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
26393 elif test -f $ac_srcdir/configure.in; then
26394 ac_sub_configure=$ac_configure
26396 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
26397 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
26401 # The recursion is here.
26402 if test -n "$ac_sub_configure"; then
26403 # Make the cache file name correct relative to the subdirectory.
26404 case $cache_file in
26405 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
26406 *) # Relative path.
26407 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
26410 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
26411 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
26412 # The eval makes quoting arguments work.
26413 eval $ac_sub_configure $ac_sub_configure_args \
26414 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
26415 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
26416 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
26417 { (exit 1); exit 1; }; }