2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for OpenPAM 20050201.
5 # Report bugs to <des@freebsd.org>.
7 # Copyright (C) 2003 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
10 ## --------------------- ##
11 ## M4sh Initialization. ##
12 ## --------------------- ##
14 # Be Bourne compatible
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24 DUALCASE=1; export DUALCASE # for MKS sh
26 # Support unset when possible.
27 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34 # Work around bugs in pre-3.0 UWIN ksh.
35 $as_unset ENV MAIL MAILPATH
42 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
43 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
46 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
47 eval $as_var=C; export $as_var
53 # Required to use basename.
54 if expr a : '\(a\)' >/dev/null 2>&1; then
60 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67 # Name of the executable.
68 as_me=`$as_basename "$0" ||
69 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
70 X"$0" : 'X\(//\)$' \| \
71 X"$0" : 'X\(/\)$' \| \
72 . : '\(.\)' 2>/dev/null ||
74 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
75 /^X\/\(\/\/\)$/{ s//\1/; q; }
76 /^X\/\(\/\).*/{ s//\1/; q; }
80 # PATH needs CR, and LINENO needs CR and PATH.
81 # Avoid depending upon Character Ranges.
82 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
83 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
84 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
85 as_cr_digits='0123456789'
86 as_cr_alnum=$as_cr_Letters$as_cr_digits
88 # The user is always right.
89 if test "${PATH_SEPARATOR+set}" != set; then
90 echo "#! /bin/sh" >conf$$.sh
91 echo "exit 0" >>conf$$.sh
93 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
104 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
105 test "x$as_lineno_1" != "x$as_lineno_2" &&
106 test "x$as_lineno_3" = "x$as_lineno_2" || {
107 # Find who we are. Look in the path if we contain no path at all
110 *[\\/]* ) as_myself=$0 ;;
111 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115 test -z "$as_dir" && as_dir=.
116 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
121 # We did not find ourselves, most probably we were run as `sh COMMAND'
122 # in which case we are not to be found in the path.
123 if test "x$as_myself" = x; then
126 if test ! -f "$as_myself"; then
127 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
128 { (exit 1); exit 1; }; }
130 case $CONFIG_SHELL in
132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
133 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
136 test -z "$as_dir" && as_dir=.
137 for as_base in sh bash ksh sh5; do
140 if ("$as_dir/$as_base" -c '
143 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
144 test "x$as_lineno_1" != "x$as_lineno_2" &&
145 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
146 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
147 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
148 CONFIG_SHELL=$as_dir/$as_base
150 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
159 # uniformly replaced by the line number. The first 'sed' inserts a
160 # line-number line before each line; the second 'sed' does the real
161 # work. The second script uses 'N' to pair each line-number line
162 # with the numbered line, and appends trailing '-' during
163 # substitution so that $LINENO is not a special case at line end.
164 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
165 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
166 sed '=' <$as_myself |
171 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
174 s,^['$as_cr_digits']*\n,,
176 chmod +x $as_me.lineno ||
177 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
178 { (exit 1); exit 1; }; }
180 # Don't try to exec as it changes $[0], causing all sort of problems
181 # (the dirname of $[0] is not the place where we might find the
182 # original and so on. Autoconf is especially sensible to this).
184 # Exit status is that of the last command.
189 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
190 *c*,-n*) ECHO_N= ECHO_C='
192 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
193 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
196 if expr a : '\(a\)' >/dev/null 2>&1; then
202 rm -f conf$$ conf$$.exe conf$$.file
204 if ln -s conf$$.file conf$$ 2>/dev/null; then
205 # We could just check for DJGPP; but this test a) works b) is more generic
206 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
207 if test -f conf$$.exe; then
208 # Don't use ln at all; we don't have any links
213 elif ln conf$$.file conf$$ 2>/dev/null; then
218 rm -f conf$$ conf$$.exe conf$$.file
220 if mkdir -p . 2>/dev/null; then
223 test -d ./-p && rmdir ./-p
227 as_executable_p="test -f"
229 # Sed expression to map a string onto a valid CPP name.
230 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
232 # Sed expression to map a string onto a valid variable name.
233 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237 # We need space, tab and new line, in precisely that order.
247 # Check that we are running under the correct shell.
248 SHELL=${CONFIG_SHELL-/bin/sh}
252 # Remove one level of quotation (which was required for Make).
253 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
258 if test "X$1" = X--no-reexec; then
259 # Discard the --no-reexec flag, and continue.
261 elif test "X$1" = X--fallback-echo; then
262 # Avoid inline document here, it may be left over
264 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
265 # Yippee, $echo works!
268 # Restart under the correct shell.
269 exec $SHELL "$0" --no-reexec ${1+"$@"}
272 if test "X$1" = X--fallback-echo; then
273 # used as fallback echo
281 # The HP-UX ksh and POSIX shell print the target directory to stdout
283 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
285 if test -z "$ECHO"; then
286 if test "X${echo_test_string+set}" != Xset; then
287 # find a string as large as possible, as long as the shell can cope with it
288 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
289 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
290 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
291 echo_test_string="`eval $cmd`" &&
292 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
300 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
301 test "X$echo_testing_string" = "X$echo_test_string"; then
304 # The Solaris, AIX, and Digital Unix default echo programs unquote
305 # backslashes. This makes it impossible to quote backslashes using
306 # echo "$something" | sed 's/\\/\\\\/g'
308 # So, first we look for a working echo in the user's PATH.
310 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
311 for dir in $PATH /usr/ucb; do
313 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
314 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
315 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
316 test "X$echo_testing_string" = "X$echo_test_string"; then
323 if test "X$echo" = Xecho; then
324 # We didn't find a better echo, so look for alternatives.
325 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
326 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
327 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # This shell has a builtin print -r that does the trick.
330 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
331 test "X$CONFIG_SHELL" != X/bin/ksh; then
332 # If we have ksh, try running configure again with it.
333 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
334 export ORIGINAL_CONFIG_SHELL
335 CONFIG_SHELL=/bin/ksh
337 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
341 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
342 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
343 test "X$echo_testing_string" = "X$echo_test_string"; then
346 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
347 test "X$echo_testing_string" = 'X\t' &&
348 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
352 SHELL="$CONFIG_SHELL"
354 echo="$CONFIG_SHELL $0 --fallback-echo"
355 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
356 test "X$echo_testing_string" = 'X\t' &&
357 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
358 test "X$echo_testing_string" = "X$echo_test_string"; then
359 echo="$CONFIG_SHELL $0 --fallback-echo"
361 # maybe with a smaller string...
364 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
365 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372 if test "$prev" != 'sed 50q "$0"'; then
373 echo_test_string=`eval $prev`
374 export echo_test_string
375 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
377 # Oops. We lost completely, so just stick with echo.
386 # Copy echo and quote the copy suitably for passing to libtool from
387 # the Makefile, instead of quoting the original, which is used later.
389 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
390 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
396 tagnames=${tagnames+${tagnames},}CXX
398 tagnames=${tagnames+${tagnames},}F77
401 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
402 # so uname gets run too.
403 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410 ac_default_prefix=/usr/local
411 ac_config_libobj_dir=.
416 SHELL=${CONFIG_SHELL-/bin/sh}
418 # Maximum number of lines to put in a shell here document.
419 # This variable seems obsolete. It should probably be removed, and
420 # only ac_max_sed_lines should be used.
421 : ${ac_max_here_lines=38}
423 # Identity of this package.
424 PACKAGE_NAME='OpenPAM'
425 PACKAGE_TARNAME='openpam'
426 PACKAGE_VERSION='20050201'
427 PACKAGE_STRING='OpenPAM 20050201'
428 PACKAGE_BUGREPORT='des@freebsd.org'
430 ac_unique_file="lib/pam_start.c"
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_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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXX CXXFLAGS ac_ct_CXX CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LIB_MAJ OPENPAM_MODULES_DIR WITH_PAM_SU_TRUE WITH_PAM_SU_FALSE WITH_PAM_UNIX_TRUE WITH_PAM_UNIX_FALSE DL_LIBS CRYPT_LIBS LIBOBJS LTLIBOBJS'
471 # Initialize some variables set by options.
473 ac_init_version=false
474 # The variables have the same names as the options, with
475 # dashes changed to underlines.
483 program_transform_name=s,x,x,
491 # Installation directory options.
492 # These are left unexpanded so users can "make install exec_prefix=/foo"
493 # and all the variables that are supposed to be based on exec_prefix
494 # by default will actually change.
495 # Use braces instead of parens because sh, perl, etc. also accept them.
496 bindir='${exec_prefix}/bin'
497 sbindir='${exec_prefix}/sbin'
498 libexecdir='${exec_prefix}/libexec'
499 datadir='${prefix}/share'
500 sysconfdir='${prefix}/etc'
501 sharedstatedir='${prefix}/com'
502 localstatedir='${prefix}/var'
503 libdir='${exec_prefix}/lib'
504 includedir='${prefix}/include'
505 oldincludedir='/usr/include'
506 infodir='${prefix}/info'
507 mandir='${prefix}/man'
512 # If the previous option needs an argument, assign it.
513 if test -n "$ac_prev"; then
514 eval "$ac_prev=\$ac_option"
519 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
521 # Accept the important Cygnus configure options, so we can diagnose typos.
525 -bindir | --bindir | --bindi | --bind | --bin | --bi)
527 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
530 -build | --build | --buil | --bui | --bu)
531 ac_prev=build_alias ;;
532 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
533 build_alias=$ac_optarg ;;
535 -cache-file | --cache-file | --cache-fil | --cache-fi \
536 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
537 ac_prev=cache_file ;;
538 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
539 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
540 cache_file=$ac_optarg ;;
543 cache_file=config.cache ;;
545 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
547 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
549 datadir=$ac_optarg ;;
551 -disable-* | --disable-*)
552 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
553 # Reject names that are not valid shell variable names.
554 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
555 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
556 { (exit 1); exit 1; }; }
557 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
558 eval "enable_$ac_feature=no" ;;
560 -enable-* | --enable-*)
561 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
562 # Reject names that are not valid shell variable names.
563 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
564 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
565 { (exit 1); exit 1; }; }
566 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
568 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
571 eval "enable_$ac_feature='$ac_optarg'" ;;
573 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
574 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
575 | --exec | --exe | --ex)
576 ac_prev=exec_prefix ;;
577 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
578 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
579 | --exec=* | --exe=* | --ex=*)
580 exec_prefix=$ac_optarg ;;
582 -gas | --gas | --ga | --g)
583 # Obsolete; use --with-gas.
586 -help | --help | --hel | --he | -h)
588 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
589 ac_init_help=recursive ;;
590 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
591 ac_init_help=short ;;
593 -host | --host | --hos | --ho)
594 ac_prev=host_alias ;;
595 -host=* | --host=* | --hos=* | --ho=*)
596 host_alias=$ac_optarg ;;
598 -includedir | --includedir | --includedi | --included | --include \
599 | --includ | --inclu | --incl | --inc)
600 ac_prev=includedir ;;
601 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
602 | --includ=* | --inclu=* | --incl=* | --inc=*)
603 includedir=$ac_optarg ;;
605 -infodir | --infodir | --infodi | --infod | --info | --inf)
607 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
608 infodir=$ac_optarg ;;
610 -libdir | --libdir | --libdi | --libd)
612 -libdir=* | --libdir=* | --libdi=* | --libd=*)
615 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
616 | --libexe | --libex | --libe)
617 ac_prev=libexecdir ;;
618 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
619 | --libexe=* | --libex=* | --libe=*)
620 libexecdir=$ac_optarg ;;
622 -localstatedir | --localstatedir | --localstatedi | --localstated \
623 | --localstate | --localstat | --localsta | --localst \
624 | --locals | --local | --loca | --loc | --lo)
625 ac_prev=localstatedir ;;
626 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
627 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
628 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
629 localstatedir=$ac_optarg ;;
631 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
633 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
637 # Obsolete; use --without-fp.
640 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
641 | --no-cr | --no-c | -n)
644 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
645 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
648 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
649 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
650 | --oldin | --oldi | --old | --ol | --o)
651 ac_prev=oldincludedir ;;
652 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
653 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
654 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
655 oldincludedir=$ac_optarg ;;
657 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
659 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
662 -program-prefix | --program-prefix | --program-prefi | --program-pref \
663 | --program-pre | --program-pr | --program-p)
664 ac_prev=program_prefix ;;
665 -program-prefix=* | --program-prefix=* | --program-prefi=* \
666 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
667 program_prefix=$ac_optarg ;;
669 -program-suffix | --program-suffix | --program-suffi | --program-suff \
670 | --program-suf | --program-su | --program-s)
671 ac_prev=program_suffix ;;
672 -program-suffix=* | --program-suffix=* | --program-suffi=* \
673 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
674 program_suffix=$ac_optarg ;;
676 -program-transform-name | --program-transform-name \
677 | --program-transform-nam | --program-transform-na \
678 | --program-transform-n | --program-transform- \
679 | --program-transform | --program-transfor \
680 | --program-transfo | --program-transf \
681 | --program-trans | --program-tran \
682 | --progr-tra | --program-tr | --program-t)
683 ac_prev=program_transform_name ;;
684 -program-transform-name=* | --program-transform-name=* \
685 | --program-transform-nam=* | --program-transform-na=* \
686 | --program-transform-n=* | --program-transform-=* \
687 | --program-transform=* | --program-transfor=* \
688 | --program-transfo=* | --program-transf=* \
689 | --program-trans=* | --program-tran=* \
690 | --progr-tra=* | --program-tr=* | --program-t=*)
691 program_transform_name=$ac_optarg ;;
693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
694 | -silent | --silent | --silen | --sile | --sil)
697 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
699 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
701 sbindir=$ac_optarg ;;
703 -sharedstatedir | --sharedstatedir | --sharedstatedi \
704 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
705 | --sharedst | --shareds | --shared | --share | --shar \
707 ac_prev=sharedstatedir ;;
708 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
709 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
710 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
712 sharedstatedir=$ac_optarg ;;
714 -site | --site | --sit)
716 -site=* | --site=* | --sit=*)
719 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
721 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
724 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
725 | --syscon | --sysco | --sysc | --sys | --sy)
726 ac_prev=sysconfdir ;;
727 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
728 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
729 sysconfdir=$ac_optarg ;;
731 -target | --target | --targe | --targ | --tar | --ta | --t)
732 ac_prev=target_alias ;;
733 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
734 target_alias=$ac_optarg ;;
736 -v | -verbose | --verbose | --verbos | --verbo | --verb)
739 -version | --version | --versio | --versi | --vers | -V)
743 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
744 # Reject names that are not valid shell variable names.
745 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
746 { echo "$as_me: error: invalid package name: $ac_package" >&2
747 { (exit 1); exit 1; }; }
748 ac_package=`echo $ac_package| sed 's/-/_/g'`
750 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
753 eval "with_$ac_package='$ac_optarg'" ;;
755 -without-* | --without-*)
756 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
757 # Reject names that are not valid shell variable names.
758 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
759 { echo "$as_me: error: invalid package name: $ac_package" >&2
760 { (exit 1); exit 1; }; }
761 ac_package=`echo $ac_package | sed 's/-/_/g'`
762 eval "with_$ac_package=no" ;;
765 # Obsolete; use --with-x.
768 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
769 | --x-incl | --x-inc | --x-in | --x-i)
770 ac_prev=x_includes ;;
771 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
772 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
773 x_includes=$ac_optarg ;;
775 -x-libraries | --x-libraries | --x-librarie | --x-librari \
776 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
777 ac_prev=x_libraries ;;
778 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
779 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
780 x_libraries=$ac_optarg ;;
782 -*) { echo "$as_me: error: unrecognized option: $ac_option
783 Try \`$0 --help' for more information." >&2
784 { (exit 1); exit 1; }; }
788 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
789 # Reject names that are not valid shell variable names.
790 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
791 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
792 { (exit 1); exit 1; }; }
793 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
794 eval "$ac_envvar='$ac_optarg'"
798 # FIXME: should be removed in autoconf 3.0.
799 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
800 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
801 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
802 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
808 if test -n "$ac_prev"; then
809 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
810 { echo "$as_me: error: missing argument to $ac_option" >&2
811 { (exit 1); exit 1; }; }
814 # Be sure to have absolute paths.
815 for ac_var in exec_prefix prefix
817 eval ac_val=$`echo $ac_var`
819 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
820 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
821 { (exit 1); exit 1; }; };;
825 # Be sure to have absolute paths.
826 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
827 localstatedir libdir includedir oldincludedir infodir mandir
829 eval ac_val=$`echo $ac_var`
831 [\\/$]* | ?:[\\/]* ) ;;
832 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
833 { (exit 1); exit 1; }; };;
837 # There might be people who depend on the old broken behavior: `$host'
838 # used to hold the argument of --host etc.
839 # FIXME: To remove some day.
844 # FIXME: To remove some day.
845 if test "x$host_alias" != x; then
846 if test "x$build_alias" = x; then
847 cross_compiling=maybe
848 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
849 If a cross compiler is detected then cross compile mode will be used." >&2
850 elif test "x$build_alias" != "x$host_alias"; then
856 test -n "$host_alias" && ac_tool_prefix=$host_alias-
858 test "$silent" = yes && exec 6>/dev/null
861 # Find the source files, if location was not specified.
862 if test -z "$srcdir"; then
863 ac_srcdir_defaulted=yes
864 # Try the directory containing this script, then its parent.
865 ac_confdir=`(dirname "$0") 2>/dev/null ||
866 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
867 X"$0" : 'X\(//\)[^/]' \| \
868 X"$0" : 'X\(//\)$' \| \
869 X"$0" : 'X\(/\)' \| \
870 . : '\(.\)' 2>/dev/null ||
872 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
873 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
874 /^X\(\/\/\)$/{ s//\1/; q; }
875 /^X\(\/\).*/{ s//\1/; q; }
878 if test ! -r $srcdir/$ac_unique_file; then
882 ac_srcdir_defaulted=no
884 if test ! -r $srcdir/$ac_unique_file; then
885 if test "$ac_srcdir_defaulted" = yes; then
886 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
887 { (exit 1); exit 1; }; }
889 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
890 { (exit 1); exit 1; }; }
893 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
894 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
895 { (exit 1); exit 1; }; }
896 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
897 ac_env_build_alias_set=${build_alias+set}
898 ac_env_build_alias_value=$build_alias
899 ac_cv_env_build_alias_set=${build_alias+set}
900 ac_cv_env_build_alias_value=$build_alias
901 ac_env_host_alias_set=${host_alias+set}
902 ac_env_host_alias_value=$host_alias
903 ac_cv_env_host_alias_set=${host_alias+set}
904 ac_cv_env_host_alias_value=$host_alias
905 ac_env_target_alias_set=${target_alias+set}
906 ac_env_target_alias_value=$target_alias
907 ac_cv_env_target_alias_set=${target_alias+set}
908 ac_cv_env_target_alias_value=$target_alias
909 ac_env_CC_set=${CC+set}
911 ac_cv_env_CC_set=${CC+set}
912 ac_cv_env_CC_value=$CC
913 ac_env_CFLAGS_set=${CFLAGS+set}
914 ac_env_CFLAGS_value=$CFLAGS
915 ac_cv_env_CFLAGS_set=${CFLAGS+set}
916 ac_cv_env_CFLAGS_value=$CFLAGS
917 ac_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_env_LDFLAGS_value=$LDFLAGS
919 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_cv_env_LDFLAGS_value=$LDFLAGS
921 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_env_CPPFLAGS_value=$CPPFLAGS
923 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
925 ac_env_CPP_set=${CPP+set}
926 ac_env_CPP_value=$CPP
927 ac_cv_env_CPP_set=${CPP+set}
928 ac_cv_env_CPP_value=$CPP
929 ac_env_CXX_set=${CXX+set}
930 ac_env_CXX_value=$CXX
931 ac_cv_env_CXX_set=${CXX+set}
932 ac_cv_env_CXX_value=$CXX
933 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_env_CXXFLAGS_value=$CXXFLAGS
935 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
937 ac_env_CXXCPP_set=${CXXCPP+set}
938 ac_env_CXXCPP_value=$CXXCPP
939 ac_cv_env_CXXCPP_set=${CXXCPP+set}
940 ac_cv_env_CXXCPP_value=$CXXCPP
941 ac_env_F77_set=${F77+set}
942 ac_env_F77_value=$F77
943 ac_cv_env_F77_set=${F77+set}
944 ac_cv_env_F77_value=$F77
945 ac_env_FFLAGS_set=${FFLAGS+set}
946 ac_env_FFLAGS_value=$FFLAGS
947 ac_cv_env_FFLAGS_set=${FFLAGS+set}
948 ac_cv_env_FFLAGS_value=$FFLAGS
951 # Report the --help message.
953 if test "$ac_init_help" = "long"; then
954 # Omit some internal or obsolete options to make the list less imposing.
955 # This message is too long to be a string in the A/UX 3.1 sh.
957 \`configure' configures OpenPAM 20050201 to adapt to many kinds of systems.
959 Usage: $0 [OPTION]... [VAR=VALUE]...
961 To assign environment variables (e.g., CC, CFLAGS...), specify them as
962 VAR=VALUE. See below for descriptions of some of the useful variables.
964 Defaults for the options are specified in brackets.
967 -h, --help display this help and exit
968 --help=short display options specific to this package
969 --help=recursive display the short help of all the included packages
970 -V, --version display version information and exit
971 -q, --quiet, --silent do not print \`checking...' messages
972 --cache-file=FILE cache test results in FILE [disabled]
973 -C, --config-cache alias for \`--cache-file=config.cache'
974 -n, --no-create do not create output files
975 --srcdir=DIR find the sources in DIR [configure dir or \`..']
980 Installation directories:
981 --prefix=PREFIX install architecture-independent files in PREFIX
983 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
986 By default, \`make install' will install all the files in
987 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
988 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
989 for instance \`--prefix=\$HOME'.
991 For better control, use the options below.
993 Fine tuning of the installation directories:
994 --bindir=DIR user executables [EPREFIX/bin]
995 --sbindir=DIR system admin executables [EPREFIX/sbin]
996 --libexecdir=DIR program executables [EPREFIX/libexec]
997 --datadir=DIR read-only architecture-independent data [PREFIX/share]
998 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
999 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1000 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1001 --libdir=DIR object code libraries [EPREFIX/lib]
1002 --includedir=DIR C header files [PREFIX/include]
1003 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1004 --infodir=DIR info documentation [PREFIX/info]
1005 --mandir=DIR man documentation [PREFIX/man]
1011 --program-prefix=PREFIX prepend PREFIX to installed program names
1012 --program-suffix=SUFFIX append SUFFIX to installed program names
1013 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1016 --build=BUILD configure for building on BUILD [guessed]
1017 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1018 --target=TARGET configure for building compilers for TARGET [HOST]
1022 if test -n "$ac_init_help"; then
1023 case $ac_init_help in
1024 short | recursive ) echo "Configuration of OpenPAM 20050201:";;
1029 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1030 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1031 --enable-static[=PKGS]
1032 build static libraries [default=no]
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-fast-install[=PKGS]
1036 optimize for fast installation [default=yes]
1037 --disable-libtool-lock avoid locking (might break parallel builds)
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-unversioned-modules
1041 support loading of unversioned modules
1044 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1045 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1046 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1047 --with-pic try to use only PIC/non-PIC objects [default=use
1050 include additional configurations [automatic]
1051 --with-modules-dir=DIR OpenPAM modules directory
1052 --with-pam-su compile example version of /bin/su
1053 --with-pam-unix compile example version of pam_unix.so
1055 Some influential environment variables:
1056 CC C compiler command
1057 CFLAGS C compiler flags
1058 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1059 nonstandard directory <lib dir>
1060 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1061 headers in a nonstandard directory <include dir>
1063 CXX C++ compiler command
1064 CXXFLAGS C++ compiler flags
1065 CXXCPP C++ preprocessor
1066 F77 Fortran 77 compiler command
1067 FFLAGS Fortran 77 compiler flags
1069 Use these variables to override the choices made by `configure' or to help
1070 it to find libraries and programs with nonstandard names/locations.
1072 Report bugs to <des@freebsd.org>.
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1088 ac_dir_suffix= ac_top_builddir=
1092 .) # No --srcdir option. We are building in place.
1094 if test -z "$ac_top_builddir"; then
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1110 .) ac_abs_builddir="$ac_dir";;
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1157 $ac_configure --help
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1168 OpenPAM configure 20050201
1169 generated by GNU Autoconf 2.59
1171 Copyright (C) 2003 Free Software Foundation, Inc.
1172 This configure script is free software; the Free Software Foundation
1173 gives unlimited permission to copy, distribute and modify it.
1179 This file contains any messages produced by compilers while
1180 running configure, to aid debugging if configure makes a mistake.
1182 It was created by OpenPAM $as_me 20050201, which was
1183 generated by GNU Autoconf 2.59. Invocation command line was
1194 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1195 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1196 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1197 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1198 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1201 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1204 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1205 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1206 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1207 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1208 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1209 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1217 test -z "$as_dir" && as_dir=.
1218 echo "PATH: $as_dir"
1233 # Keep a trace of the command line.
1234 # Strip out --no-create and --no-recursion so they do not pile up.
1235 # Strip out --silent because we don't want to record it for future runs.
1236 # Also quote any args containing shell meta-characters.
1237 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_must_keep_next=false
1248 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1249 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1250 | -silent | --silent | --silen | --sile | --sil)
1252 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1253 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1256 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1259 if test $ac_must_keep_next = true; then
1260 ac_must_keep_next=false # Got value, back to normal.
1263 *=* | --config-cache | -C | -disable-* | --disable-* \
1264 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1265 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1266 | -with-* | --with-* | -without-* | --without-* | --x)
1267 case "$ac_configure_args0 " in
1268 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1271 -* ) ac_must_keep_next=true ;;
1274 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1275 # Get rid of the leading space.
1281 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1282 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284 # When interrupted or exit'd, cleanup temporary files, and complete
1285 # config.log. We remove comments because anyway the quotes in there
1286 # would cause problems or look ugly.
1287 # WARNING: Be sure not to use single quotes in there, as some shells,
1288 # such as our DU 5.0 friend, will then `close' the trap.
1289 trap 'exit_status=$?
1290 # Save into config.log some information that might help in debugging.
1295 ## ---------------- ##
1296 ## Cache variables. ##
1297 ## ---------------- ##
1300 # The following way of writing the cache mishandles newlines in values,
1303 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1306 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1307 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1311 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1318 ## ----------------- ##
1319 ## Output variables. ##
1320 ## ----------------- ##
1323 for ac_var in $ac_subst_vars
1325 eval ac_val=$`echo $ac_var`
1326 echo "$ac_var='"'"'$ac_val'"'"'"
1330 if test -n "$ac_subst_files"; then
1337 for ac_var in $ac_subst_files
1339 eval ac_val=$`echo $ac_var`
1340 echo "$ac_var='"'"'$ac_val'"'"'"
1345 if test -s confdefs.h; then
1352 sed "/^$/d" confdefs.h | sort
1355 test "$ac_signal" != 0 &&
1356 echo "$as_me: caught signal $ac_signal"
1357 echo "$as_me: exit $exit_status"
1359 rm -f core *.core &&
1360 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1363 for ac_signal in 1 2 13 15; do
1364 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1368 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1369 rm -rf conftest* confdefs.h
1370 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1373 # Predefined preprocessor variables.
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_NAME "$PACKAGE_NAME"
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_STRING "$PACKAGE_STRING"
1395 cat >>confdefs.h <<_ACEOF
1396 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1400 # Let the site file select an alternate cache file if it wants to.
1401 # Prefer explicitly selected file to automatically selected ones.
1402 if test -z "$CONFIG_SITE"; then
1403 if test "x$prefix" != xNONE; then
1404 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1409 for ac_site_file in $CONFIG_SITE; do
1410 if test -r "$ac_site_file"; then
1411 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1412 echo "$as_me: loading site script $ac_site_file" >&6;}
1413 sed 's/^/| /' "$ac_site_file" >&5
1418 if test -r "$cache_file"; then
1419 # Some versions of bash will fail to source /dev/null (special
1420 # files actually), so we avoid doing that.
1421 if test -f "$cache_file"; then
1422 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1423 echo "$as_me: loading cache $cache_file" >&6;}
1425 [\\/]* | ?:[\\/]* ) . $cache_file;;
1426 *) . ./$cache_file;;
1430 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1431 echo "$as_me: creating cache $cache_file" >&6;}
1435 # Check that the precious variables saved in the cache have kept the same
1437 ac_cache_corrupted=false
1438 for ac_var in `(set) 2>&1 |
1439 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1440 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1441 eval ac_new_set=\$ac_env_${ac_var}_set
1442 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1443 eval ac_new_val="\$ac_env_${ac_var}_value"
1444 case $ac_old_set,$ac_new_set in
1446 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1447 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1448 ac_cache_corrupted=: ;;
1450 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1452 ac_cache_corrupted=: ;;
1455 if test "x$ac_old_val" != "x$ac_new_val"; then
1456 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1457 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1458 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1459 echo "$as_me: former value: $ac_old_val" >&2;}
1460 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1461 echo "$as_me: current value: $ac_new_val" >&2;}
1462 ac_cache_corrupted=:
1465 # Pass precious variables to config.status.
1466 if test "$ac_new_set" = set; then
1468 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1469 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1470 *) ac_arg=$ac_var=$ac_new_val ;;
1472 case " $ac_configure_args " in
1473 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1474 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1478 if $ac_cache_corrupted; then
1479 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1480 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1481 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1482 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1483 { (exit 1); exit 1; }; }
1487 ac_cpp='$CPP $CPPFLAGS'
1488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1519 ac_config_headers="$ac_config_headers config.h"
1523 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1524 if test -f $ac_dir/install-sh; then
1526 ac_install_sh="$ac_aux_dir/install-sh -c"
1528 elif test -f $ac_dir/install.sh; then
1530 ac_install_sh="$ac_aux_dir/install.sh -c"
1532 elif test -f $ac_dir/shtool; then
1534 ac_install_sh="$ac_aux_dir/shtool install -c"
1538 if test -z "$ac_aux_dir"; then
1539 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1540 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1541 { (exit 1); exit 1; }; }
1543 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1544 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1545 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1547 # Make sure we can run config.sub.
1548 $ac_config_sub sun4 >/dev/null 2>&1 ||
1549 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1550 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1551 { (exit 1); exit 1; }; }
1553 echo "$as_me:$LINENO: checking build system type" >&5
1554 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1555 if test "${ac_cv_build+set}" = set; then
1556 echo $ECHO_N "(cached) $ECHO_C" >&6
1558 ac_cv_build_alias=$build_alias
1559 test -z "$ac_cv_build_alias" &&
1560 ac_cv_build_alias=`$ac_config_guess`
1561 test -z "$ac_cv_build_alias" &&
1562 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1563 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1564 { (exit 1); exit 1; }; }
1565 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1566 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1567 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1568 { (exit 1); exit 1; }; }
1571 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1572 echo "${ECHO_T}$ac_cv_build" >&6
1574 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1575 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1576 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579 echo "$as_me:$LINENO: checking host system type" >&5
1580 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1581 if test "${ac_cv_host+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 ac_cv_host_alias=$host_alias
1585 test -z "$ac_cv_host_alias" &&
1586 ac_cv_host_alias=$ac_cv_build_alias
1587 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1588 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1589 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1590 { (exit 1); exit 1; }; }
1593 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1594 echo "${ECHO_T}$ac_cv_host" >&6
1596 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1597 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1598 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1601 echo "$as_me:$LINENO: checking target system type" >&5
1602 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1603 if test "${ac_cv_target+set}" = set; then
1604 echo $ECHO_N "(cached) $ECHO_C" >&6
1606 ac_cv_target_alias=$target_alias
1607 test "x$ac_cv_target_alias" = "x" &&
1608 ac_cv_target_alias=$ac_cv_host_alias
1609 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1610 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1611 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1612 { (exit 1); exit 1; }; }
1615 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1616 echo "${ECHO_T}$ac_cv_target" >&6
1617 target=$ac_cv_target
1618 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1619 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1620 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1623 # The aliases save the names the user supplied, while $host etc.
1624 # will get canonicalized.
1625 test -n "$target_alias" &&
1626 test "$program_prefix$program_suffix$program_transform_name" = \
1628 program_prefix=${target_alias}-
1630 ac_cpp='$CPP $CPPFLAGS'
1631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1634 if test -n "$ac_tool_prefix"; then
1635 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1636 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1637 echo "$as_me:$LINENO: checking for $ac_word" >&5
1638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1639 if test "${ac_cv_prog_CC+set}" = set; then
1640 echo $ECHO_N "(cached) $ECHO_C" >&6
1642 if test -n "$CC"; then
1643 ac_cv_prog_CC="$CC" # Let the user override the test.
1645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1649 test -z "$as_dir" && as_dir=.
1650 for ac_exec_ext in '' $ac_executable_extensions; do
1651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1652 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1662 if test -n "$CC"; then
1663 echo "$as_me:$LINENO: result: $CC" >&5
1664 echo "${ECHO_T}$CC" >&6
1666 echo "$as_me:$LINENO: result: no" >&5
1667 echo "${ECHO_T}no" >&6
1671 if test -z "$ac_cv_prog_CC"; then
1673 # Extract the first word of "gcc", so it can be a program name with args.
1674 set dummy gcc; ac_word=$2
1675 echo "$as_me:$LINENO: checking for $ac_word" >&5
1676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1677 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1678 echo $ECHO_N "(cached) $ECHO_C" >&6
1680 if test -n "$ac_ct_CC"; then
1681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 test -z "$as_dir" && as_dir=.
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1690 ac_cv_prog_ac_ct_CC="gcc"
1691 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1699 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1700 if test -n "$ac_ct_CC"; then
1701 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1702 echo "${ECHO_T}$ac_ct_CC" >&6
1704 echo "$as_me:$LINENO: result: no" >&5
1705 echo "${ECHO_T}no" >&6
1713 if test -z "$CC"; then
1714 if test -n "$ac_tool_prefix"; then
1715 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1716 set dummy ${ac_tool_prefix}cc; ac_word=$2
1717 echo "$as_me:$LINENO: checking for $ac_word" >&5
1718 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1719 if test "${ac_cv_prog_CC+set}" = set; then
1720 echo $ECHO_N "(cached) $ECHO_C" >&6
1722 if test -n "$CC"; then
1723 ac_cv_prog_CC="$CC" # Let the user override the test.
1725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1729 test -z "$as_dir" && as_dir=.
1730 for ac_exec_ext in '' $ac_executable_extensions; do
1731 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1732 ac_cv_prog_CC="${ac_tool_prefix}cc"
1733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1742 if test -n "$CC"; then
1743 echo "$as_me:$LINENO: result: $CC" >&5
1744 echo "${ECHO_T}$CC" >&6
1746 echo "$as_me:$LINENO: result: no" >&5
1747 echo "${ECHO_T}no" >&6
1751 if test -z "$ac_cv_prog_CC"; then
1753 # Extract the first word of "cc", so it can be a program name with args.
1754 set dummy cc; ac_word=$2
1755 echo "$as_me:$LINENO: checking for $ac_word" >&5
1756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1758 echo $ECHO_N "(cached) $ECHO_C" >&6
1760 if test -n "$ac_ct_CC"; then
1761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1767 test -z "$as_dir" && as_dir=.
1768 for ac_exec_ext in '' $ac_executable_extensions; do
1769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1770 ac_cv_prog_ac_ct_CC="cc"
1771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1779 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1780 if test -n "$ac_ct_CC"; then
1781 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1782 echo "${ECHO_T}$ac_ct_CC" >&6
1784 echo "$as_me:$LINENO: result: no" >&5
1785 echo "${ECHO_T}no" >&6
1794 if test -z "$CC"; then
1795 # Extract the first word of "cc", so it can be a program name with args.
1796 set dummy cc; ac_word=$2
1797 echo "$as_me:$LINENO: checking for $ac_word" >&5
1798 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1799 if test "${ac_cv_prog_CC+set}" = set; then
1800 echo $ECHO_N "(cached) $ECHO_C" >&6
1802 if test -n "$CC"; then
1803 ac_cv_prog_CC="$CC" # Let the user override the test.
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1810 test -z "$as_dir" && as_dir=.
1811 for ac_exec_ext in '' $ac_executable_extensions; do
1812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1814 ac_prog_rejected=yes
1818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1824 if test $ac_prog_rejected = yes; then
1825 # We found a bogon in the path, so make sure we never use it.
1826 set dummy $ac_cv_prog_CC
1828 if test $# != 0; then
1829 # We chose a different compiler from the bogus one.
1830 # However, it has the same basename, so the bogon will be chosen
1831 # first if we set CC to just the basename; use the full file name.
1833 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1839 if test -n "$CC"; then
1840 echo "$as_me:$LINENO: result: $CC" >&5
1841 echo "${ECHO_T}$CC" >&6
1843 echo "$as_me:$LINENO: result: no" >&5
1844 echo "${ECHO_T}no" >&6
1848 if test -z "$CC"; then
1849 if test -n "$ac_tool_prefix"; then
1852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1854 echo "$as_me:$LINENO: checking for $ac_word" >&5
1855 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1856 if test "${ac_cv_prog_CC+set}" = set; then
1857 echo $ECHO_N "(cached) $ECHO_C" >&6
1859 if test -n "$CC"; then
1860 ac_cv_prog_CC="$CC" # Let the user override the test.
1862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 test -z "$as_dir" && as_dir=.
1867 for ac_exec_ext in '' $ac_executable_extensions; do
1868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1869 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1879 if test -n "$CC"; then
1880 echo "$as_me:$LINENO: result: $CC" >&5
1881 echo "${ECHO_T}$CC" >&6
1883 echo "$as_me:$LINENO: result: no" >&5
1884 echo "${ECHO_T}no" >&6
1887 test -n "$CC" && break
1890 if test -z "$CC"; then
1894 # Extract the first word of "$ac_prog", so it can be a program name with args.
1895 set dummy $ac_prog; ac_word=$2
1896 echo "$as_me:$LINENO: checking for $ac_word" >&5
1897 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1898 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1899 echo $ECHO_N "(cached) $ECHO_C" >&6
1901 if test -n "$ac_ct_CC"; then
1902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 for ac_exec_ext in '' $ac_executable_extensions; do
1910 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1911 ac_cv_prog_ac_ct_CC="$ac_prog"
1912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1920 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1921 if test -n "$ac_ct_CC"; then
1922 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1923 echo "${ECHO_T}$ac_ct_CC" >&6
1925 echo "$as_me:$LINENO: result: no" >&5
1926 echo "${ECHO_T}no" >&6
1929 test -n "$ac_ct_CC" && break
1938 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1939 See \`config.log' for more details." >&5
1940 echo "$as_me: error: no acceptable C compiler found in \$PATH
1941 See \`config.log' for more details." >&2;}
1942 { (exit 1); exit 1; }; }
1944 # Provide some information about the compiler.
1945 echo "$as_me:$LINENO:" \
1946 "checking for C compiler version" >&5
1947 ac_compiler=`set X $ac_compile; echo $2`
1948 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1949 (eval $ac_compiler --version </dev/null >&5) 2>&5
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }
1953 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1954 (eval $ac_compiler -v </dev/null >&5) 2>&5
1956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1957 (exit $ac_status); }
1958 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1959 (eval $ac_compiler -V </dev/null >&5) 2>&5
1961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1962 (exit $ac_status); }
1964 cat >conftest.$ac_ext <<_ACEOF
1967 cat confdefs.h >>conftest.$ac_ext
1968 cat >>conftest.$ac_ext <<_ACEOF
1969 /* end confdefs.h. */
1979 ac_clean_files_save=$ac_clean_files
1980 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1981 # Try to create an executable without -o first, disregard a.out.
1982 # It will help us diagnose broken compilers, and finding out an intuition
1984 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1985 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1986 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1987 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1988 (eval $ac_link_default) 2>&5
1990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1991 (exit $ac_status); }; then
1992 # Find the output, starting from the most likely. This scheme is
1993 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1996 # Be careful to initialize this variable, since it used to be cached.
1997 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1999 # b.out is created by i960 compilers.
2000 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2002 test -f "$ac_file" || continue
2004 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2007 # This is the source file.
2010 # We found the default executable, but exeext='' is most
2014 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2015 # FIXME: I believe we export ac_cv_exeext for Libtool,
2016 # but it would be cool to find out if it's true. Does anybody
2017 # maintain Libtool? --akim.
2025 echo "$as_me: failed program was:" >&5
2026 sed 's/^/| /' conftest.$ac_ext >&5
2028 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2029 See \`config.log' for more details." >&5
2030 echo "$as_me: error: C compiler cannot create executables
2031 See \`config.log' for more details." >&2;}
2032 { (exit 77); exit 77; }; }
2035 ac_exeext=$ac_cv_exeext
2036 echo "$as_me:$LINENO: result: $ac_file" >&5
2037 echo "${ECHO_T}$ac_file" >&6
2039 # Check the compiler produces executables we can run. If not, either
2040 # the compiler is broken, or we cross compile.
2041 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2042 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2043 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2044 # If not cross compiling, check that we can run a simple program.
2045 if test "$cross_compiling" != yes; then
2046 if { ac_try='./$ac_file'
2047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2051 (exit $ac_status); }; }; then
2054 if test "$cross_compiling" = maybe; then
2057 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2058 If you meant to cross compile, use \`--host'.
2059 See \`config.log' for more details." >&5
2060 echo "$as_me: error: cannot run C compiled programs.
2061 If you meant to cross compile, use \`--host'.
2062 See \`config.log' for more details." >&2;}
2063 { (exit 1); exit 1; }; }
2067 echo "$as_me:$LINENO: result: yes" >&5
2068 echo "${ECHO_T}yes" >&6
2070 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2071 ac_clean_files=$ac_clean_files_save
2072 # Check the compiler produces executables we can run. If not, either
2073 # the compiler is broken, or we cross compile.
2074 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2075 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2076 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2077 echo "${ECHO_T}$cross_compiling" >&6
2079 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2080 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2081 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2082 (eval $ac_link) 2>&5
2084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2085 (exit $ac_status); }; then
2086 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2087 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2088 # work properly (i.e., refer to `conftest.exe'), while it won't with
2090 for ac_file in conftest.exe conftest conftest.*; do
2091 test -f "$ac_file" || continue
2093 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2094 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2101 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2108 rm -f conftest$ac_cv_exeext
2109 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2110 echo "${ECHO_T}$ac_cv_exeext" >&6
2112 rm -f conftest.$ac_ext
2113 EXEEXT=$ac_cv_exeext
2115 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2116 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2117 if test "${ac_cv_objext+set}" = set; then
2118 echo $ECHO_N "(cached) $ECHO_C" >&6
2120 cat >conftest.$ac_ext <<_ACEOF
2123 cat confdefs.h >>conftest.$ac_ext
2124 cat >>conftest.$ac_ext <<_ACEOF
2125 /* end confdefs.h. */
2135 rm -f conftest.o conftest.obj
2136 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2137 (eval $ac_compile) 2>&5
2139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2140 (exit $ac_status); }; then
2141 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2143 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2144 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2149 echo "$as_me: failed program was:" >&5
2150 sed 's/^/| /' conftest.$ac_ext >&5
2152 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2153 See \`config.log' for more details." >&5
2154 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2155 See \`config.log' for more details." >&2;}
2156 { (exit 1); exit 1; }; }
2159 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2161 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2162 echo "${ECHO_T}$ac_cv_objext" >&6
2163 OBJEXT=$ac_cv_objext
2165 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2166 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2167 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2170 cat >conftest.$ac_ext <<_ACEOF
2173 cat confdefs.h >>conftest.$ac_ext
2174 cat >>conftest.$ac_ext <<_ACEOF
2175 /* end confdefs.h. */
2188 rm -f conftest.$ac_objext
2189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2190 (eval $ac_compile) 2>conftest.er1
2192 grep -v '^ *+' conftest.er1 >conftest.err
2194 cat conftest.err >&5
2195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2196 (exit $ac_status); } &&
2197 { ac_try='test -z "$ac_c_werror_flag"
2198 || test ! -s conftest.err'
2199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2203 (exit $ac_status); }; } &&
2204 { ac_try='test -s conftest.$ac_objext'
2205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209 (exit $ac_status); }; }; then
2212 echo "$as_me: failed program was:" >&5
2213 sed 's/^/| /' conftest.$ac_ext >&5
2217 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2218 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2221 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2222 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2223 GCC=`test $ac_compiler_gnu = yes && echo yes`
2224 ac_test_CFLAGS=${CFLAGS+set}
2225 ac_save_CFLAGS=$CFLAGS
2227 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2228 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2229 if test "${ac_cv_prog_cc_g+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
2232 cat >conftest.$ac_ext <<_ACEOF
2235 cat confdefs.h >>conftest.$ac_ext
2236 cat >>conftest.$ac_ext <<_ACEOF
2237 /* end confdefs.h. */
2247 rm -f conftest.$ac_objext
2248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249 (eval $ac_compile) 2>conftest.er1
2251 grep -v '^ *+' conftest.er1 >conftest.err
2253 cat conftest.err >&5
2254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255 (exit $ac_status); } &&
2256 { ac_try='test -z "$ac_c_werror_flag"
2257 || test ! -s conftest.err'
2258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); }; } &&
2263 { ac_try='test -s conftest.$ac_objext'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; }; then
2271 echo "$as_me: failed program was:" >&5
2272 sed 's/^/| /' conftest.$ac_ext >&5
2276 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2278 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2279 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2280 if test "$ac_test_CFLAGS" = set; then
2281 CFLAGS=$ac_save_CFLAGS
2282 elif test $ac_cv_prog_cc_g = yes; then
2283 if test "$GCC" = yes; then
2289 if test "$GCC" = yes; then
2295 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2296 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2297 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2298 echo $ECHO_N "(cached) $ECHO_C" >&6
2300 ac_cv_prog_cc_stdc=no
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2310 #include <sys/types.h>
2311 #include <sys/stat.h>
2312 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2313 struct buf { int x; };
2314 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2315 static char *e (p, i)
2321 static char *f (char * (*g) (char **, int), char **p, ...)
2326 s = g (p, va_arg (v,int));
2331 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2332 function prototypes and stuff, but not '\xHH' hex character constants.
2333 These don't provoke an error unfortunately, instead are silently treated
2334 as 'x'. The following induces an error, until -std1 is added to get
2335 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2336 array size at least. It's necessary to write '\x00'==0 to get something
2337 that's true only with -std1. */
2338 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2340 int test (int i, double x);
2341 struct s1 {int (*f) (int a);};
2342 struct s2 {int (*f) (double a);};
2343 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2349 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2354 # Don't try gcc -ansi; that turns off useful extensions and
2355 # breaks some systems' header files.
2356 # AIX -qlanglvl=ansi
2357 # Ultrix and OSF/1 -std1
2358 # HP-UX 10.20 and later -Ae
2359 # HP-UX older versions -Aa -D_HPUX_SOURCE
2360 # SVR4 -Xc -D__EXTENSIONS__
2361 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2363 CC="$ac_save_CC $ac_arg"
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366 (eval $ac_compile) 2>conftest.er1
2368 grep -v '^ *+' conftest.er1 >conftest.err
2370 cat conftest.err >&5
2371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372 (exit $ac_status); } &&
2373 { ac_try='test -z "$ac_c_werror_flag"
2374 || test ! -s conftest.err'
2375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379 (exit $ac_status); }; } &&
2380 { ac_try='test -s conftest.$ac_objext'
2381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); }; }; then
2386 ac_cv_prog_cc_stdc=$ac_arg
2389 echo "$as_me: failed program was:" >&5
2390 sed 's/^/| /' conftest.$ac_ext >&5
2393 rm -f conftest.err conftest.$ac_objext
2395 rm -f conftest.$ac_ext conftest.$ac_objext
2400 case "x$ac_cv_prog_cc_stdc" in
2402 echo "$as_me:$LINENO: result: none needed" >&5
2403 echo "${ECHO_T}none needed" >&6 ;;
2405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2407 CC="$CC $ac_cv_prog_cc_stdc" ;;
2410 # Some people use a C++ compiler to compile C. Since we use `exit',
2411 # in C++ we need to declare it. In case someone uses the same compiler
2412 # for both compiling C and C++ we need to have the C++ compiler decide
2413 # the declaration of exit, since it's the most demanding environment.
2414 cat >conftest.$ac_ext <<_ACEOF
2419 rm -f conftest.$ac_objext
2420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2421 (eval $ac_compile) 2>conftest.er1
2423 grep -v '^ *+' conftest.er1 >conftest.err
2425 cat conftest.err >&5
2426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2427 (exit $ac_status); } &&
2428 { ac_try='test -z "$ac_c_werror_flag"
2429 || test ! -s conftest.err'
2430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2434 (exit $ac_status); }; } &&
2435 { ac_try='test -s conftest.$ac_objext'
2436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2440 (exit $ac_status); }; }; then
2441 for ac_declaration in \
2443 'extern "C" void std::exit (int) throw (); using std::exit;' \
2444 'extern "C" void std::exit (int); using std::exit;' \
2445 'extern "C" void exit (int) throw ();' \
2446 'extern "C" void exit (int);' \
2449 cat >conftest.$ac_ext <<_ACEOF
2452 cat confdefs.h >>conftest.$ac_ext
2453 cat >>conftest.$ac_ext <<_ACEOF
2454 /* end confdefs.h. */
2465 rm -f conftest.$ac_objext
2466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2467 (eval $ac_compile) 2>conftest.er1
2469 grep -v '^ *+' conftest.er1 >conftest.err
2471 cat conftest.err >&5
2472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2473 (exit $ac_status); } &&
2474 { ac_try='test -z "$ac_c_werror_flag"
2475 || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2495 cat >conftest.$ac_ext <<_ACEOF
2498 cat confdefs.h >>conftest.$ac_ext
2499 cat >>conftest.$ac_ext <<_ACEOF
2500 /* end confdefs.h. */
2510 rm -f conftest.$ac_objext
2511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2512 (eval $ac_compile) 2>conftest.er1
2514 grep -v '^ *+' conftest.er1 >conftest.err
2516 cat conftest.err >&5
2517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518 (exit $ac_status); } &&
2519 { ac_try='test -z "$ac_c_werror_flag"
2520 || test ! -s conftest.err'
2521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }; } &&
2526 { ac_try='test -s conftest.$ac_objext'
2527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; }; then
2534 echo "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2541 if test -n "$ac_declaration"; then
2542 echo '#ifdef __cplusplus' >>confdefs.h
2543 echo $ac_declaration >>confdefs.h
2544 echo '#endif' >>confdefs.h
2548 echo "$as_me: failed program was:" >&5
2549 sed 's/^/| /' conftest.$ac_ext >&5
2552 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2554 ac_cpp='$CPP $CPPFLAGS'
2555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2560 echo "$as_me:$LINENO: checking for working volatile" >&5
2561 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
2562 if test "${ac_cv_c_volatile+set}" = set; then
2563 echo $ECHO_N "(cached) $ECHO_C" >&6
2565 cat >conftest.$ac_ext <<_ACEOF
2568 cat confdefs.h >>conftest.$ac_ext
2569 cat >>conftest.$ac_ext <<_ACEOF
2570 /* end confdefs.h. */
2582 rm -f conftest.$ac_objext
2583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2584 (eval $ac_compile) 2>conftest.er1
2586 grep -v '^ *+' conftest.er1 >conftest.err
2588 cat conftest.err >&5
2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590 (exit $ac_status); } &&
2591 { ac_try='test -z "$ac_c_werror_flag"
2592 || test ! -s conftest.err'
2593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; } &&
2598 { ac_try='test -s conftest.$ac_objext'
2599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603 (exit $ac_status); }; }; then
2604 ac_cv_c_volatile=yes
2606 echo "$as_me: failed program was:" >&5
2607 sed 's/^/| /' conftest.$ac_ext >&5
2611 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2613 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
2614 echo "${ECHO_T}$ac_cv_c_volatile" >&6
2615 if test $ac_cv_c_volatile = no; then
2617 cat >>confdefs.h <<\_ACEOF
2623 # Check whether --enable-static or --disable-static was given.
2624 if test "${enable_static+set}" = set; then
2625 enableval="$enable_static"
2626 p=${PACKAGE-default}
2628 yes) enable_static=yes ;;
2629 no) enable_static=no ;;
2632 # Look at the argument we got. We use all the common list separators.
2633 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2634 for pkg in $enableval; do
2636 if test "X$pkg" = "X$p"; then
2648 # Check whether --enable-shared or --disable-shared was given.
2649 if test "${enable_shared+set}" = set; then
2650 enableval="$enable_shared"
2651 p=${PACKAGE-default}
2653 yes) enable_shared=yes ;;
2654 no) enable_shared=no ;;
2657 # Look at the argument we got. We use all the common list separators.
2658 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2659 for pkg in $enableval; do
2661 if test "X$pkg" = "X$p"; then
2672 # Check whether --enable-fast-install or --disable-fast-install was given.
2673 if test "${enable_fast_install+set}" = set; then
2674 enableval="$enable_fast_install"
2675 p=${PACKAGE-default}
2677 yes) enable_fast_install=yes ;;
2678 no) enable_fast_install=no ;;
2680 enable_fast_install=no
2681 # Look at the argument we got. We use all the common list separators.
2682 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2683 for pkg in $enableval; do
2685 if test "X$pkg" = "X$p"; then
2686 enable_fast_install=yes
2693 enable_fast_install=yes
2696 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
2697 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
2698 if test "${lt_cv_path_SED+set}" = set; then
2699 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 # Loop through the user's path and test for sed and gsed.
2702 # Then use that list of sed's as ones to test for truncation.
2703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707 test -z "$as_dir" && as_dir=.
2708 for lt_ac_prog in sed gsed; do
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
2711 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
2718 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
2719 # along with /bin/sed that truncates output.
2720 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
2721 test ! -f $lt_ac_sed && break
2722 cat /dev/null > conftest.in
2724 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
2725 # Check for GNU sed and select it if it is found.
2726 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
2727 lt_cv_path_SED=$lt_ac_sed
2731 cat conftest.in conftest.in >conftest.tmp
2732 mv conftest.tmp conftest.in
2733 cp conftest.in conftest.nl
2735 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
2736 cmp -s conftest.out conftest.nl || break
2737 # 10000 chars as input seems more than enough
2738 test $lt_ac_count -gt 10 && break
2739 lt_ac_count=`expr $lt_ac_count + 1`
2740 if test $lt_ac_count -gt $lt_ac_max; then
2741 lt_ac_max=$lt_ac_count
2742 lt_cv_path_SED=$lt_ac_sed
2750 echo "$as_me:$LINENO: result: $SED" >&5
2751 echo "${ECHO_T}$SED" >&6
2753 echo "$as_me:$LINENO: checking for egrep" >&5
2754 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2755 if test "${ac_cv_prog_egrep+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2759 then ac_cv_prog_egrep='grep -E'
2760 else ac_cv_prog_egrep='egrep'
2763 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2764 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2765 EGREP=$ac_cv_prog_egrep
2769 # Check whether --with-gnu-ld or --without-gnu-ld was given.
2770 if test "${with_gnu_ld+set}" = set; then
2771 withval="$with_gnu_ld"
2772 test "$withval" = no || with_gnu_ld=yes
2777 if test "$GCC" = yes; then
2778 # Check if gcc -print-prog-name=ld gives a path.
2779 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
2780 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
2783 # gcc leaves a trailing carriage return which upsets mingw
2784 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
2786 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
2789 # Accept absolute paths.
2791 re_direlt='/[^/][^/]*/\.\./'
2792 # Canonicalize the pathname of ld
2793 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
2794 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
2795 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
2797 test -z "$LD" && LD="$ac_prog"
2800 # If it fails, then pretend we aren't using GCC.
2804 # If it is relative, then search for the first ld in PATH.
2808 elif test "$with_gnu_ld" = yes; then
2809 echo "$as_me:$LINENO: checking for GNU ld" >&5
2810 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
2812 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
2813 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
2815 if test "${lt_cv_path_LD+set}" = set; then
2816 echo $ECHO_N "(cached) $ECHO_C" >&6
2818 if test -z "$LD"; then
2819 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2820 for ac_dir in $PATH; do
2822 test -z "$ac_dir" && ac_dir=.
2823 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
2824 lt_cv_path_LD="$ac_dir/$ac_prog"
2825 # Check to see if the program is GNU ld. I'd rather use --version,
2826 # but apparently some GNU ld's only accept -v.
2827 # Break only if it was the GNU/non-GNU ld that we prefer.
2828 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
2829 *GNU* | *'with BFD'*)
2830 test "$with_gnu_ld" != no && break
2833 test "$with_gnu_ld" != yes && break
2840 lt_cv_path_LD="$LD" # Let the user override the test with a path.
2845 if test -n "$LD"; then
2846 echo "$as_me:$LINENO: result: $LD" >&5
2847 echo "${ECHO_T}$LD" >&6
2849 echo "$as_me:$LINENO: result: no" >&5
2850 echo "${ECHO_T}no" >&6
2852 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
2853 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
2854 { (exit 1); exit 1; }; }
2855 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
2856 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
2857 if test "${lt_cv_prog_gnu_ld+set}" = set; then
2858 echo $ECHO_N "(cached) $ECHO_C" >&6
2860 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
2861 case `$LD -v 2>&1 </dev/null` in
2862 *GNU* | *'with BFD'*)
2863 lt_cv_prog_gnu_ld=yes
2866 lt_cv_prog_gnu_ld=no
2870 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
2871 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
2872 with_gnu_ld=$lt_cv_prog_gnu_ld
2875 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
2876 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
2877 if test "${lt_cv_ld_reload_flag+set}" = set; then
2878 echo $ECHO_N "(cached) $ECHO_C" >&6
2880 lt_cv_ld_reload_flag='-r'
2882 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
2883 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
2884 reload_flag=$lt_cv_ld_reload_flag
2885 case $reload_flag in
2887 *) reload_flag=" $reload_flag" ;;
2889 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2892 if test "$GCC" = yes; then
2893 reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
2895 reload_cmds='$LD$reload_flag -o $output$reload_objs'
2900 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
2901 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
2902 if test "${lt_cv_path_NM+set}" = set; then
2903 echo $ECHO_N "(cached) $ECHO_C" >&6
2905 if test -n "$NM"; then
2906 # Let the user override the test.
2909 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
2910 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
2912 test -z "$ac_dir" && ac_dir=.
2913 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
2914 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
2915 # Check to see if the nm accepts a BSD-compat flag.
2916 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
2917 # nm: unknown option "B" ignored
2918 # Tru64's nm complains that /dev/null is an invalid object file
2919 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
2920 */dev/null* | *'Invalid file or object type'*)
2921 lt_cv_path_NM="$tmp_nm -B"
2925 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
2927 lt_cv_path_NM="$tmp_nm -p"
2931 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
2932 continue # so that we can try to find one that supports BSD flags
2939 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
2942 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
2943 echo "${ECHO_T}$lt_cv_path_NM" >&6
2946 echo "$as_me:$LINENO: checking whether ln -s works" >&5
2947 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
2949 if test "$LN_S" = "ln -s"; then
2950 echo "$as_me:$LINENO: result: yes" >&5
2951 echo "${ECHO_T}yes" >&6
2953 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
2954 echo "${ECHO_T}no, using $LN_S" >&6
2957 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
2958 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
2959 if test "${lt_cv_deplibs_check_method+set}" = set; then
2960 echo $ECHO_N "(cached) $ECHO_C" >&6
2962 lt_cv_file_magic_cmd='$MAGIC_CMD'
2963 lt_cv_file_magic_test_file=
2964 lt_cv_deplibs_check_method='unknown'
2965 # Need to set the preceding variable on all platforms that support
2966 # interlibrary dependencies.
2967 # 'none' -- dependencies not supported.
2968 # `unknown' -- same as none, but documents that we really don't know.
2969 # 'pass_all' -- all dependencies passed with no checks.
2970 # 'test_compile' -- check by making test program.
2971 # 'file_magic [[regex]]' -- check by looking for files in library path
2972 # which responds to the $file_magic_cmd with a given extended regex.
2973 # If you have `file' or equivalent on your system and you're not sure
2974 # whether `pass_all' will *always* work, you probably want this one.
2978 lt_cv_deplibs_check_method=pass_all
2982 lt_cv_deplibs_check_method=pass_all
2986 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
2987 lt_cv_file_magic_cmd='/usr/bin/file -L'
2988 lt_cv_file_magic_test_file=/shlib/libc.so
2992 # func_win32_libid is a shell function defined in ltmain.sh
2993 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
2994 lt_cv_file_magic_cmd='func_win32_libid'
2998 # Base MSYS/MinGW do not provide the 'file' command needed by
2999 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3000 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3001 lt_cv_file_magic_cmd='$OBJDUMP -f'
3004 darwin* | rhapsody*)
3005 lt_cv_deplibs_check_method=pass_all
3008 freebsd* | kfreebsd*-gnu)
3009 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3012 # Not sure whether the presence of OpenBSD here was a mistake.
3013 # Let's accept both of them until this is cleared up.
3014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3015 lt_cv_file_magic_cmd=/usr/bin/file
3016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3020 lt_cv_deplibs_check_method=pass_all
3025 lt_cv_deplibs_check_method=pass_all
3028 hpux10.20* | hpux11*)
3029 lt_cv_file_magic_cmd=/usr/bin/file
3032 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3033 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3036 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]'
3037 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3040 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3041 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3046 irix5* | irix6* | nonstopux*)
3048 *-32|*"-32 ") libmagic=32-bit;;
3049 *-n32|*"-n32 ") libmagic=N32;;
3050 *-64|*"-64 ") libmagic=64-bit;;
3051 *) libmagic=never-match;;
3053 lt_cv_deplibs_check_method=pass_all
3056 # This must be Linux ELF.
3058 lt_cv_deplibs_check_method=pass_all
3062 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3063 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3065 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3070 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3071 lt_cv_file_magic_cmd=/usr/bin/file
3072 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3076 lt_cv_deplibs_check_method=unknown
3080 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3083 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3087 osf3* | osf4* | osf5*)
3088 lt_cv_deplibs_check_method=pass_all
3092 lt_cv_deplibs_check_method=pass_all
3096 lt_cv_deplibs_check_method=pass_all
3099 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3100 case $host_vendor in
3102 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]'
3103 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3106 lt_cv_deplibs_check_method=pass_all
3109 lt_cv_file_magic_cmd='/bin/file'
3110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3113 lt_cv_file_magic_cmd='/bin/file'
3114 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3115 lt_cv_file_magic_test_file=/lib/libc.so
3118 lt_cv_deplibs_check_method=pass_all
3123 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3124 lt_cv_deplibs_check_method=pass_all
3129 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3130 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3131 file_magic_cmd=$lt_cv_file_magic_cmd
3132 deplibs_check_method=$lt_cv_deplibs_check_method
3133 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3138 # If no C compiler was specified, use CC.
3141 # Allow CC to be a program name with arguments.
3144 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3145 if test "${enable_libtool_lock+set}" = set; then
3146 enableval="$enable_libtool_lock"
3149 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3151 # Some flags need to be propagated to the compiler or linker for good
3155 # Find out which ABI we are using.
3156 echo 'int i;' > conftest.$ac_ext
3157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3158 (eval $ac_compile) 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; then
3162 case `/usr/bin/file conftest.$ac_objext` in
3174 # Find out which ABI we are using.
3175 echo '#line 3175 "configure"' > conftest.$ac_ext
3176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3177 (eval $ac_compile) 2>&5
3179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3180 (exit $ac_status); }; then
3181 if test "$lt_cv_prog_gnu_ld" = yes; then
3182 case `/usr/bin/file conftest.$ac_objext` in
3184 LD="${LD-ld} -melf32bsmip"
3187 LD="${LD-ld} -melf32bmipn32"
3190 LD="${LD-ld} -melf64bmip"
3194 case `/usr/bin/file conftest.$ac_objext` in
3210 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3211 # Find out which ABI we are using.
3212 echo 'int i;' > conftest.$ac_ext
3213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3214 (eval $ac_compile) 2>&5
3216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3217 (exit $ac_status); }; then
3218 case "`/usr/bin/file conftest.o`" in
3222 LD="${LD-ld} -m elf_i386"
3224 ppc64-*linux*|powerpc64-*linux*)
3225 LD="${LD-ld} -m elf32ppclinux"
3228 LD="${LD-ld} -m elf_s390"
3231 LD="${LD-ld} -m elf32_sparc"
3238 LD="${LD-ld} -m elf_x86_64"
3240 ppc*-*linux*|powerpc*-*linux*)
3241 LD="${LD-ld} -m elf64ppc"
3244 LD="${LD-ld} -m elf64_s390"
3247 LD="${LD-ld} -m elf64_sparc"
3257 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3258 SAVE_CFLAGS="$CFLAGS"
3259 CFLAGS="$CFLAGS -belf"
3260 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3261 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3262 if test "${lt_cv_cc_needs_belf+set}" = set; then
3263 echo $ECHO_N "(cached) $ECHO_C" >&6
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3271 cat >conftest.$ac_ext <<_ACEOF
3274 cat confdefs.h >>conftest.$ac_ext
3275 cat >>conftest.$ac_ext <<_ACEOF
3276 /* end confdefs.h. */
3286 rm -f conftest.$ac_objext conftest$ac_exeext
3287 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3288 (eval $ac_link) 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag"
3296 || test ! -s conftest.err'
3297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301 (exit $ac_status); }; } &&
3302 { ac_try='test -s conftest$ac_exeext'
3303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3307 (exit $ac_status); }; }; then
3308 lt_cv_cc_needs_belf=yes
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 lt_cv_cc_needs_belf=no
3315 rm -f conftest.err conftest.$ac_objext \
3316 conftest$ac_exeext conftest.$ac_ext
3318 ac_cpp='$CPP $CPPFLAGS'
3319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3324 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3325 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3326 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3327 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3328 CFLAGS="$SAVE_CFLAGS"
3334 need_locks="$enable_libtool_lock"
3338 ac_cpp='$CPP $CPPFLAGS'
3339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3342 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3343 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3344 # On Suns, sometimes $CPP names a directory.
3345 if test -n "$CPP" && test -d "$CPP"; then
3348 if test -z "$CPP"; then
3349 if test "${ac_cv_prog_CPP+set}" = set; then
3350 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 # Double quotes because CPP needs to be expanded
3353 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3356 for ac_c_preproc_warn_flag in '' yes
3358 # Use a header file that comes with gcc, so configuring glibc
3359 # with a fresh cross-compiler works.
3360 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3361 # <limits.h> exists even on freestanding compilers.
3362 # On the NeXT, cc -E runs the code through the compiler's parser,
3363 # not just through cpp. "Syntax error" is here to catch this case.
3364 cat >conftest.$ac_ext <<_ACEOF
3367 cat confdefs.h >>conftest.$ac_ext
3368 cat >>conftest.$ac_ext <<_ACEOF
3369 /* end confdefs.h. */
3371 # include <limits.h>
3373 # include <assert.h>
3377 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3378 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3380 grep -v '^ *+' conftest.er1 >conftest.err
3382 cat conftest.err >&5
3383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384 (exit $ac_status); } >/dev/null; then
3385 if test -s conftest.err; then
3386 ac_cpp_err=$ac_c_preproc_warn_flag
3387 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3394 if test -z "$ac_cpp_err"; then
3397 echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3400 # Broken: fails on valid input.
3403 rm -f conftest.err conftest.$ac_ext
3405 # OK, works on sane cases. Now check whether non-existent headers
3406 # can be detected and how.
3407 cat >conftest.$ac_ext <<_ACEOF
3410 cat confdefs.h >>conftest.$ac_ext
3411 cat >>conftest.$ac_ext <<_ACEOF
3412 /* end confdefs.h. */
3413 #include <ac_nonexistent.h>
3415 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3416 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3418 grep -v '^ *+' conftest.er1 >conftest.err
3420 cat conftest.err >&5
3421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3422 (exit $ac_status); } >/dev/null; then
3423 if test -s conftest.err; then
3424 ac_cpp_err=$ac_c_preproc_warn_flag
3425 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3432 if test -z "$ac_cpp_err"; then
3433 # Broken: success on invalid input.
3436 echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3439 # Passes both tests.
3443 rm -f conftest.err conftest.$ac_ext
3446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3447 rm -f conftest.err conftest.$ac_ext
3448 if $ac_preproc_ok; then
3460 echo "$as_me:$LINENO: result: $CPP" >&5
3461 echo "${ECHO_T}$CPP" >&6
3463 for ac_c_preproc_warn_flag in '' yes
3465 # Use a header file that comes with gcc, so configuring glibc
3466 # with a fresh cross-compiler works.
3467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3468 # <limits.h> exists even on freestanding compilers.
3469 # On the NeXT, cc -E runs the code through the compiler's parser,
3470 # not just through cpp. "Syntax error" is here to catch this case.
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3478 # include <limits.h>
3480 # include <assert.h>
3484 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3485 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3487 grep -v '^ *+' conftest.er1 >conftest.err
3489 cat conftest.err >&5
3490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3491 (exit $ac_status); } >/dev/null; then
3492 if test -s conftest.err; then
3493 ac_cpp_err=$ac_c_preproc_warn_flag
3494 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3501 if test -z "$ac_cpp_err"; then
3504 echo "$as_me: failed program was:" >&5
3505 sed 's/^/| /' conftest.$ac_ext >&5
3507 # Broken: fails on valid input.
3510 rm -f conftest.err conftest.$ac_ext
3512 # OK, works on sane cases. Now check whether non-existent headers
3513 # can be detected and how.
3514 cat >conftest.$ac_ext <<_ACEOF
3517 cat confdefs.h >>conftest.$ac_ext
3518 cat >>conftest.$ac_ext <<_ACEOF
3519 /* end confdefs.h. */
3520 #include <ac_nonexistent.h>
3522 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3523 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3525 grep -v '^ *+' conftest.er1 >conftest.err
3527 cat conftest.err >&5
3528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529 (exit $ac_status); } >/dev/null; then
3530 if test -s conftest.err; then
3531 ac_cpp_err=$ac_c_preproc_warn_flag
3532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3539 if test -z "$ac_cpp_err"; then
3540 # Broken: success on invalid input.
3543 echo "$as_me: failed program was:" >&5
3544 sed 's/^/| /' conftest.$ac_ext >&5
3546 # Passes both tests.
3550 rm -f conftest.err conftest.$ac_ext
3553 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3554 rm -f conftest.err conftest.$ac_ext
3555 if $ac_preproc_ok; then
3558 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3559 See \`config.log' for more details." >&5
3560 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3561 See \`config.log' for more details." >&2;}
3562 { (exit 1); exit 1; }; }
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3572 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3573 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3574 if test "${ac_cv_header_stdc+set}" = set; then
3575 echo $ECHO_N "(cached) $ECHO_C" >&6
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3596 rm -f conftest.$ac_objext
3597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3598 (eval $ac_compile) 2>conftest.er1
3600 grep -v '^ *+' conftest.er1 >conftest.err
3602 cat conftest.err >&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); } &&
3605 { ac_try='test -z "$ac_c_werror_flag"
3606 || test ! -s conftest.err'
3607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); }; } &&
3612 { ac_try='test -s conftest.$ac_objext'
3613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617 (exit $ac_status); }; }; then
3618 ac_cv_header_stdc=yes
3620 echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3623 ac_cv_header_stdc=no
3625 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3627 if test $ac_cv_header_stdc = yes; then
3628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3629 cat >conftest.$ac_ext <<_ACEOF
3632 cat confdefs.h >>conftest.$ac_ext
3633 cat >>conftest.$ac_ext <<_ACEOF
3634 /* end confdefs.h. */
3638 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3639 $EGREP "memchr" >/dev/null 2>&1; then
3642 ac_cv_header_stdc=no
3648 if test $ac_cv_header_stdc = yes; then
3649 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3650 cat >conftest.$ac_ext <<_ACEOF
3653 cat confdefs.h >>conftest.$ac_ext
3654 cat >>conftest.$ac_ext <<_ACEOF
3655 /* end confdefs.h. */
3659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3660 $EGREP "free" >/dev/null 2>&1; then
3663 ac_cv_header_stdc=no
3669 if test $ac_cv_header_stdc = yes; then
3670 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3671 if test "$cross_compiling" = yes; then
3674 cat >conftest.$ac_ext <<_ACEOF
3677 cat confdefs.h >>conftest.$ac_ext
3678 cat >>conftest.$ac_ext <<_ACEOF
3679 /* end confdefs.h. */
3681 #if ((' ' & 0x0FF) == 0x020)
3682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3685 # define ISLOWER(c) \
3686 (('a' <= (c) && (c) <= 'i') \
3687 || ('j' <= (c) && (c) <= 'r') \
3688 || ('s' <= (c) && (c) <= 'z'))
3689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3697 for (i = 0; i < 256; i++)
3698 if (XOR (islower (i), ISLOWER (i))
3699 || toupper (i) != TOUPPER (i))
3704 rm -f conftest$ac_exeext
3705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3706 (eval $ac_link) 2>&5
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714 (exit $ac_status); }; }; then
3717 echo "$as_me: program exited with status $ac_status" >&5
3718 echo "$as_me: failed program was:" >&5
3719 sed 's/^/| /' conftest.$ac_ext >&5
3722 ac_cv_header_stdc=no
3724 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3728 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3729 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3730 if test $ac_cv_header_stdc = yes; then
3732 cat >>confdefs.h <<\_ACEOF
3733 #define STDC_HEADERS 1
3738 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3748 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3749 inttypes.h stdint.h unistd.h
3751 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3752 echo "$as_me:$LINENO: checking for $ac_header" >&5
3753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3754 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3755 echo $ECHO_N "(cached) $ECHO_C" >&6
3757 cat >conftest.$ac_ext <<_ACEOF
3760 cat confdefs.h >>conftest.$ac_ext
3761 cat >>conftest.$ac_ext <<_ACEOF
3762 /* end confdefs.h. */
3763 $ac_includes_default
3765 #include <$ac_header>
3767 rm -f conftest.$ac_objext
3768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3769 (eval $ac_compile) 2>conftest.er1
3771 grep -v '^ *+' conftest.er1 >conftest.err
3773 cat conftest.err >&5
3774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775 (exit $ac_status); } &&
3776 { ac_try='test -z "$ac_c_werror_flag"
3777 || test ! -s conftest.err'
3778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3782 (exit $ac_status); }; } &&
3783 { ac_try='test -s conftest.$ac_objext'
3784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3788 (exit $ac_status); }; }; then
3789 eval "$as_ac_Header=yes"
3791 echo "$as_me: failed program was:" >&5
3792 sed 's/^/| /' conftest.$ac_ext >&5
3794 eval "$as_ac_Header=no"
3796 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3798 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3799 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3801 cat >>confdefs.h <<_ACEOF
3802 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3811 for ac_header in dlfcn.h
3813 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3814 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3815 echo "$as_me:$LINENO: checking for $ac_header" >&5
3816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3818 echo $ECHO_N "(cached) $ECHO_C" >&6
3820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3823 # Is the header compilable?
3824 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3826 cat >conftest.$ac_ext <<_ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832 $ac_includes_default
3833 #include <$ac_header>
3835 rm -f conftest.$ac_objext
3836 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3837 (eval $ac_compile) 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); } &&
3844 { ac_try='test -z "$ac_c_werror_flag"
3845 || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest.$ac_objext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_header_compiler=yes
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3862 ac_header_compiler=no
3864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3866 echo "${ECHO_T}$ac_header_compiler" >&6
3868 # Is the header present?
3869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3871 cat >conftest.$ac_ext <<_ACEOF
3874 cat confdefs.h >>conftest.$ac_ext
3875 cat >>conftest.$ac_ext <<_ACEOF
3876 /* end confdefs.h. */
3877 #include <$ac_header>
3879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3880 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } >/dev/null; then
3887 if test -s conftest.err; then
3888 ac_cpp_err=$ac_c_preproc_warn_flag
3889 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3896 if test -z "$ac_cpp_err"; then
3897 ac_header_preproc=yes
3899 echo "$as_me: failed program was:" >&5
3900 sed 's/^/| /' conftest.$ac_ext >&5
3902 ac_header_preproc=no
3904 rm -f conftest.err conftest.$ac_ext
3905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3906 echo "${ECHO_T}$ac_header_preproc" >&6
3908 # So? What about this header?
3909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3911 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3915 ac_header_preproc=yes
3918 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3920 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
3921 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
3922 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3924 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
3925 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
3926 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3928 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3932 ## ------------------------------ ##
3933 ## Report this to des@freebsd.org ##
3934 ## ------------------------------ ##
3937 sed "s/^/$as_me: WARNING: /" >&2
3940 echo "$as_me:$LINENO: checking for $ac_header" >&5
3941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3943 echo $ECHO_N "(cached) $ECHO_C" >&6
3945 eval "$as_ac_Header=\$ac_header_preproc"
3947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3952 cat >>confdefs.h <<_ACEOF
3953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3961 ac_cpp='$CXXCPP $CPPFLAGS'
3962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3965 if test -n "$ac_tool_prefix"; then
3966 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3968 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3969 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3970 echo "$as_me:$LINENO: checking for $ac_word" >&5
3971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3972 if test "${ac_cv_prog_CXX+set}" = set; then
3973 echo $ECHO_N "(cached) $ECHO_C" >&6
3975 if test -n "$CXX"; then
3976 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3982 test -z "$as_dir" && as_dir=.
3983 for ac_exec_ext in '' $ac_executable_extensions; do
3984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3985 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3995 if test -n "$CXX"; then
3996 echo "$as_me:$LINENO: result: $CXX" >&5
3997 echo "${ECHO_T}$CXX" >&6
3999 echo "$as_me:$LINENO: result: no" >&5
4000 echo "${ECHO_T}no" >&6
4003 test -n "$CXX" && break
4006 if test -z "$CXX"; then
4008 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4010 # Extract the first word of "$ac_prog", so it can be a program name with args.
4011 set dummy $ac_prog; ac_word=$2
4012 echo "$as_me:$LINENO: checking for $ac_word" >&5
4013 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4014 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 if test -n "$ac_ct_CXX"; then
4018 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 test -z "$as_dir" && as_dir=.
4025 for ac_exec_ext in '' $ac_executable_extensions; do
4026 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4027 ac_cv_prog_ac_ct_CXX="$ac_prog"
4028 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4036 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4037 if test -n "$ac_ct_CXX"; then
4038 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4039 echo "${ECHO_T}$ac_ct_CXX" >&6
4041 echo "$as_me:$LINENO: result: no" >&5
4042 echo "${ECHO_T}no" >&6
4045 test -n "$ac_ct_CXX" && break
4047 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4053 # Provide some information about the compiler.
4054 echo "$as_me:$LINENO:" \
4055 "checking for C++ compiler version" >&5
4056 ac_compiler=`set X $ac_compile; echo $2`
4057 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4058 (eval $ac_compiler --version </dev/null >&5) 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }
4062 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4063 (eval $ac_compiler -v </dev/null >&5) 2>&5
4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4066 (exit $ac_status); }
4067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4068 (eval $ac_compiler -V </dev/null >&5) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }
4073 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4074 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4075 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 cat >conftest.$ac_ext <<_ACEOF
4081 cat confdefs.h >>conftest.$ac_ext
4082 cat >>conftest.$ac_ext <<_ACEOF
4083 /* end confdefs.h. */
4096 rm -f conftest.$ac_objext
4097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4098 (eval $ac_compile) 2>conftest.er1
4100 grep -v '^ *+' conftest.er1 >conftest.err
4102 cat conftest.err >&5
4103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4104 (exit $ac_status); } &&
4105 { ac_try='test -z "$ac_cxx_werror_flag"
4106 || test ! -s conftest.err'
4107 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); }; } &&
4112 { ac_try='test -s conftest.$ac_objext'
4113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4117 (exit $ac_status); }; }; then
4120 echo "$as_me: failed program was:" >&5
4121 sed 's/^/| /' conftest.$ac_ext >&5
4125 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4126 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4129 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4130 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4131 GXX=`test $ac_compiler_gnu = yes && echo yes`
4132 ac_test_CXXFLAGS=${CXXFLAGS+set}
4133 ac_save_CXXFLAGS=$CXXFLAGS
4135 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4136 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4137 if test "${ac_cv_prog_cxx_g+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4140 cat >conftest.$ac_ext <<_ACEOF
4143 cat confdefs.h >>conftest.$ac_ext
4144 cat >>conftest.$ac_ext <<_ACEOF
4145 /* end confdefs.h. */
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157 (eval $ac_compile) 2>conftest.er1
4159 grep -v '^ *+' conftest.er1 >conftest.err
4161 cat conftest.err >&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); } &&
4164 { ac_try='test -z "$ac_cxx_werror_flag"
4165 || test ! -s conftest.err'
4166 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170 (exit $ac_status); }; } &&
4171 { ac_try='test -s conftest.$ac_objext'
4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); }; }; then
4177 ac_cv_prog_cxx_g=yes
4179 echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4187 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4188 if test "$ac_test_CXXFLAGS" = set; then
4189 CXXFLAGS=$ac_save_CXXFLAGS
4190 elif test $ac_cv_prog_cxx_g = yes; then
4191 if test "$GXX" = yes; then
4197 if test "$GXX" = yes; then
4203 for ac_declaration in \
4205 'extern "C" void std::exit (int) throw (); using std::exit;' \
4206 'extern "C" void std::exit (int); using std::exit;' \
4207 'extern "C" void exit (int) throw ();' \
4208 'extern "C" void exit (int);' \
4211 cat >conftest.$ac_ext <<_ACEOF
4214 cat confdefs.h >>conftest.$ac_ext
4215 cat >>conftest.$ac_ext <<_ACEOF
4216 /* end confdefs.h. */
4227 rm -f conftest.$ac_objext
4228 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4229 (eval $ac_compile) 2>conftest.er1
4231 grep -v '^ *+' conftest.er1 >conftest.err
4233 cat conftest.err >&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); } &&
4236 { ac_try='test -z "$ac_cxx_werror_flag"
4237 || test ! -s conftest.err'
4238 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4242 (exit $ac_status); }; } &&
4243 { ac_try='test -s conftest.$ac_objext'
4244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; }; then
4251 echo "$as_me: failed program was:" >&5
4252 sed 's/^/| /' conftest.$ac_ext >&5
4256 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4257 cat >conftest.$ac_ext <<_ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h. */
4272 rm -f conftest.$ac_objext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4274 (eval $ac_compile) 2>conftest.er1
4276 grep -v '^ *+' conftest.er1 >conftest.err
4278 cat conftest.err >&5
4279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280 (exit $ac_status); } &&
4281 { ac_try='test -z "$ac_cxx_werror_flag"
4282 || test ! -s conftest.err'
4283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287 (exit $ac_status); }; } &&
4288 { ac_try='test -s conftest.$ac_objext'
4289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293 (exit $ac_status); }; }; then
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4300 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4303 if test -n "$ac_declaration"; then
4304 echo '#ifdef __cplusplus' >>confdefs.h
4305 echo $ac_declaration >>confdefs.h
4306 echo '#endif' >>confdefs.h
4310 ac_cpp='$CXXCPP $CPPFLAGS'
4311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4317 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4318 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4319 (test "X$CXX" != "Xg++"))) ; then
4321 ac_cpp='$CXXCPP $CPPFLAGS'
4322 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4323 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4324 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4325 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4326 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4327 if test -z "$CXXCPP"; then
4328 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4329 echo $ECHO_N "(cached) $ECHO_C" >&6
4331 # Double quotes because CXXCPP needs to be expanded
4332 for CXXCPP in "$CXX -E" "/lib/cpp"
4335 for ac_cxx_preproc_warn_flag in '' yes
4337 # Use a header file that comes with gcc, so configuring glibc
4338 # with a fresh cross-compiler works.
4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4340 # <limits.h> exists even on freestanding compilers.
4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4342 # not just through cpp. "Syntax error" is here to catch this case.
4343 cat >conftest.$ac_ext <<_ACEOF
4346 cat confdefs.h >>conftest.$ac_ext
4347 cat >>conftest.$ac_ext <<_ACEOF
4348 /* end confdefs.h. */
4350 # include <limits.h>
4352 # include <assert.h>
4356 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4357 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4359 grep -v '^ *+' conftest.er1 >conftest.err
4361 cat conftest.err >&5
4362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4363 (exit $ac_status); } >/dev/null; then
4364 if test -s conftest.err; then
4365 ac_cpp_err=$ac_cxx_preproc_warn_flag
4366 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4373 if test -z "$ac_cpp_err"; then
4376 echo "$as_me: failed program was:" >&5
4377 sed 's/^/| /' conftest.$ac_ext >&5
4379 # Broken: fails on valid input.
4382 rm -f conftest.err conftest.$ac_ext
4384 # OK, works on sane cases. Now check whether non-existent headers
4385 # can be detected and how.
4386 cat >conftest.$ac_ext <<_ACEOF
4389 cat confdefs.h >>conftest.$ac_ext
4390 cat >>conftest.$ac_ext <<_ACEOF
4391 /* end confdefs.h. */
4392 #include <ac_nonexistent.h>
4394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4397 grep -v '^ *+' conftest.er1 >conftest.err
4399 cat conftest.err >&5
4400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4401 (exit $ac_status); } >/dev/null; then
4402 if test -s conftest.err; then
4403 ac_cpp_err=$ac_cxx_preproc_warn_flag
4404 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4411 if test -z "$ac_cpp_err"; then
4412 # Broken: success on invalid input.
4415 echo "$as_me: failed program was:" >&5
4416 sed 's/^/| /' conftest.$ac_ext >&5
4418 # Passes both tests.
4422 rm -f conftest.err conftest.$ac_ext
4425 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4426 rm -f conftest.err conftest.$ac_ext
4427 if $ac_preproc_ok; then
4432 ac_cv_prog_CXXCPP=$CXXCPP
4435 CXXCPP=$ac_cv_prog_CXXCPP
4437 ac_cv_prog_CXXCPP=$CXXCPP
4439 echo "$as_me:$LINENO: result: $CXXCPP" >&5
4440 echo "${ECHO_T}$CXXCPP" >&6
4442 for ac_cxx_preproc_warn_flag in '' yes
4444 # Use a header file that comes with gcc, so configuring glibc
4445 # with a fresh cross-compiler works.
4446 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4447 # <limits.h> exists even on freestanding compilers.
4448 # On the NeXT, cc -E runs the code through the compiler's parser,
4449 # not just through cpp. "Syntax error" is here to catch this case.
4450 cat >conftest.$ac_ext <<_ACEOF
4453 cat confdefs.h >>conftest.$ac_ext
4454 cat >>conftest.$ac_ext <<_ACEOF
4455 /* end confdefs.h. */
4457 # include <limits.h>
4459 # include <assert.h>
4463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4464 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } >/dev/null; then
4471 if test -s conftest.err; then
4472 ac_cpp_err=$ac_cxx_preproc_warn_flag
4473 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4480 if test -z "$ac_cpp_err"; then
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 # Broken: fails on valid input.
4489 rm -f conftest.err conftest.$ac_ext
4491 # OK, works on sane cases. Now check whether non-existent headers
4492 # can be detected and how.
4493 cat >conftest.$ac_ext <<_ACEOF
4496 cat confdefs.h >>conftest.$ac_ext
4497 cat >>conftest.$ac_ext <<_ACEOF
4498 /* end confdefs.h. */
4499 #include <ac_nonexistent.h>
4501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4504 grep -v '^ *+' conftest.er1 >conftest.err
4506 cat conftest.err >&5
4507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508 (exit $ac_status); } >/dev/null; then
4509 if test -s conftest.err; then
4510 ac_cpp_err=$ac_cxx_preproc_warn_flag
4511 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4518 if test -z "$ac_cpp_err"; then
4519 # Broken: success on invalid input.
4522 echo "$as_me: failed program was:" >&5
4523 sed 's/^/| /' conftest.$ac_ext >&5
4525 # Passes both tests.
4529 rm -f conftest.err conftest.$ac_ext
4532 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4533 rm -f conftest.err conftest.$ac_ext
4534 if $ac_preproc_ok; then
4537 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4538 See \`config.log' for more details." >&5
4539 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4540 See \`config.log' for more details." >&2;}
4541 { (exit 1); exit 1; }; }
4545 ac_cpp='$CXXCPP $CPPFLAGS'
4546 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4547 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4548 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4554 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
4555 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4556 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
4557 if test -n "$ac_tool_prefix"; then
4558 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4560 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4562 echo "$as_me:$LINENO: checking for $ac_word" >&5
4563 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4564 if test "${ac_cv_prog_F77+set}" = set; then
4565 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 if test -n "$F77"; then
4568 ac_cv_prog_F77="$F77" # Let the user override the test.
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4574 test -z "$as_dir" && as_dir=.
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4577 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
4578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4587 if test -n "$F77"; then
4588 echo "$as_me:$LINENO: result: $F77" >&5
4589 echo "${ECHO_T}$F77" >&6
4591 echo "$as_me:$LINENO: result: no" >&5
4592 echo "${ECHO_T}no" >&6
4595 test -n "$F77" && break
4598 if test -z "$F77"; then
4600 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
4602 # Extract the first word of "$ac_prog", so it can be a program name with args.
4603 set dummy $ac_prog; ac_word=$2
4604 echo "$as_me:$LINENO: checking for $ac_word" >&5
4605 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4606 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
4607 echo $ECHO_N "(cached) $ECHO_C" >&6
4609 if test -n "$ac_ct_F77"; then
4610 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
4612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4616 test -z "$as_dir" && as_dir=.
4617 for ac_exec_ext in '' $ac_executable_extensions; do
4618 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4619 ac_cv_prog_ac_ct_F77="$ac_prog"
4620 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4628 ac_ct_F77=$ac_cv_prog_ac_ct_F77
4629 if test -n "$ac_ct_F77"; then
4630 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
4631 echo "${ECHO_T}$ac_ct_F77" >&6
4633 echo "$as_me:$LINENO: result: no" >&5
4634 echo "${ECHO_T}no" >&6
4637 test -n "$ac_ct_F77" && break
4644 # Provide some information about the compiler.
4645 echo "$as_me:4645:" \
4646 "checking for Fortran 77 compiler version" >&5
4647 ac_compiler=`set X $ac_compile; echo $2`
4648 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4649 (eval $ac_compiler --version </dev/null >&5) 2>&5
4651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652 (exit $ac_status); }
4653 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4654 (eval $ac_compiler -v </dev/null >&5) 2>&5
4656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657 (exit $ac_status); }
4658 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4659 (eval $ac_compiler -V </dev/null >&5) 2>&5
4661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4662 (exit $ac_status); }
4665 # If we don't use `.F' as extension, the preprocessor is not run on the
4666 # input file. (Note that this only needs to work for GNU compilers.)
4669 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
4670 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
4671 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4674 cat >conftest.$ac_ext <<_ACEOF
4682 rm -f conftest.$ac_objext
4683 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4684 (eval $ac_compile) 2>conftest.er1
4686 grep -v '^ *+' conftest.er1 >conftest.err
4688 cat conftest.err >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); } &&
4691 { ac_try='test -z "$ac_f77_werror_flag"
4692 || test ! -s conftest.err'
4693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4697 (exit $ac_status); }; } &&
4698 { ac_try='test -s conftest.$ac_objext'
4699 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; }; then
4706 echo "$as_me: failed program was:" >&5
4707 sed 's/^/| /' conftest.$ac_ext >&5
4711 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4712 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
4715 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
4716 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
4718 ac_test_FFLAGS=${FFLAGS+set}
4719 ac_save_FFLAGS=$FFLAGS
4721 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
4722 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
4723 if test "${ac_cv_prog_f77_g+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4727 cat >conftest.$ac_ext <<_ACEOF
4732 rm -f conftest.$ac_objext
4733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4734 (eval $ac_compile) 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } &&
4741 { ac_try='test -z "$ac_f77_werror_flag"
4742 || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4754 ac_cv_prog_f77_g=yes
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
4766 if test "$ac_test_FFLAGS" = set; then
4767 FFLAGS=$ac_save_FFLAGS
4768 elif test $ac_cv_prog_f77_g = yes; then
4769 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4775 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
4782 G77=`test $ac_compiler_gnu = yes && echo yes`
4784 ac_cpp='$CPP $CPPFLAGS'
4785 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4786 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4787 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4791 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
4793 # find the maximum length of command line arguments
4794 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4795 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
4796 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4797 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 # On DJGPP, this test can blow up pretty badly due to problems in libc
4805 # (any single argument exceeding 2000 bytes causes a buffer overrun
4806 # during glob expansion). Even if it were fixed, the result of this
4807 # check would be larger than it should be.
4808 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4812 # Under GNU Hurd, this test is not required because there is
4813 # no limit to the length of command line arguments.
4814 # Libtool will interpret -1 as no limit whatsoever
4815 lt_cv_sys_max_cmd_len=-1;
4819 # On Win9x/ME, this test blows up -- it succeeds, but takes
4820 # about 5 minutes as the teststring grows exponentially.
4821 # Worse, since 9x/ME are not pre-emptively multitasking,
4822 # you end up with a "frozen" computer, even though with patience
4823 # the test eventually succeeds (with a max line length of 256k).
4824 # Instead, let's just punt: use the minimum linelength reported by
4825 # all of the supported platforms: 8192 (on NT/2K/XP).
4826 lt_cv_sys_max_cmd_len=8192;
4830 # On AmigaOS with pdksh, this test takes hours, literally.
4831 # So we just punt and use a minimum line length of 8192.
4832 lt_cv_sys_max_cmd_len=8192;
4835 netbsd* | freebsd* | openbsd* | darwin* )
4836 # This has been around since 386BSD, at least. Likely further.
4837 if test -x /sbin/sysctl; then
4838 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4839 elif test -x /usr/sbin/sysctl; then
4840 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4842 lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
4844 # And add a safety zone
4845 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4849 # If test is not a shell built-in, we'll probably end up computing a
4850 # maximum length that is only half of the actual maximum length, but
4852 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4853 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
4854 = "XX$teststring") >/dev/null 2>&1 &&
4855 new_result=`expr "X$teststring" : ".*" 2>&1` &&
4856 lt_cv_sys_max_cmd_len=$new_result &&
4857 test $i != 17 # 1/2 MB should be enough
4860 teststring=$teststring$teststring
4863 # Add a significant safety factor because C++ compilers can tack on massive
4864 # amounts of additional arguments before passing them to the linker.
4865 # It appears as though 1/2 is a usable value.
4866 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4872 if test -n $lt_cv_sys_max_cmd_len ; then
4873 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
4874 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
4876 echo "$as_me:$LINENO: result: none" >&5
4877 echo "${ECHO_T}none" >&6
4883 # Check for command to grab the raw symbol name followed by C symbol from nm.
4884 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
4885 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
4886 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
4887 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 # These are sane defaults that work on at least a few old systems.
4891 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
4893 # Character class describing NM global symbol codes.
4894 symcode='[BCDEGRST]'
4896 # Regexp to match symbols that can be accessed directly from C.
4897 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
4899 # Transform the above into a raw symbol and a C symbol.
4900 symxfrm='\1 \2\3 \3'
4902 # Transform an extracted symbol line into a proper C declaration
4903 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
4905 # Transform an extracted symbol line into symbol name and symbol address
4906 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'"
4908 # Define system-specific variables.
4913 cygwin* | mingw* | pw32*)
4914 symcode='[ABCDGISTW]'
4916 hpux*) # Its linker distinguishes data from code symbols
4917 if test "$host_cpu" = ia64; then
4918 symcode='[ABCDEGRST]'
4920 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4921 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'"
4924 if test "$host_cpu" = ia64; then
4925 symcode='[ABCDGIRSTW]'
4926 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
4927 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'"
4931 symcode='[BCDEGRST]'
4934 symcode='[BCDEGQRST]'
4944 # Handle CRLF in mingw tool chain
4948 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
4952 # If we're using GNU nm, then use its standard symbol codes.
4953 case `$NM -V 2>&1` in
4954 *GNU* | *'with BFD'*)
4955 symcode='[ABCDGIRSTW]' ;;
4958 # Try without a prefix undercore, then with it.
4959 for ac_symprfx in "" "_"; do
4961 # Write the raw and C identifiers.
4962 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
4964 # Check to see that the pipe works correctly.
4968 cat > conftest.$ac_ext <<EOF
4973 void nm_test_func(){}
4977 int main(){nm_test_var='a';nm_test_func();return(0);}
4980 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4981 (eval $ac_compile) 2>&5
4983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4984 (exit $ac_status); }; then
4985 # Now try to grab the symbols.
4987 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
4988 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
4990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4991 (exit $ac_status); } && test -s "$nlist"; then
4992 # Try sorting and uniquifying the output.
4993 if sort "$nlist" | uniq > "$nlist"T; then
4994 mv -f "$nlist"T "$nlist"
4999 # Make sure that we snagged all the symbols we need.
5000 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5001 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5002 cat <<EOF > conftest.$ac_ext
5008 # Now generate the symbol file.
5009 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5011 cat <<EOF >> conftest.$ac_ext
5012 #if defined (__STDC__) && __STDC__
5013 # define lt_ptr_t void *
5015 # define lt_ptr_t char *
5019 /* The mapping between symbol names and symbols. */
5024 lt_preloaded_symbols[] =
5027 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5028 cat <<\EOF >> conftest.$ac_ext
5036 # Now try linking the two files.
5037 mv conftest.$ac_objext conftstm.$ac_objext
5038 lt_save_LIBS="$LIBS"
5039 lt_save_CFLAGS="$CFLAGS"
5040 LIBS="conftstm.$ac_objext"
5041 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5043 (eval $ac_link) 2>&5
5045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5046 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5049 LIBS="$lt_save_LIBS"
5050 CFLAGS="$lt_save_CFLAGS"
5052 echo "cannot find nm_test_func in $nlist" >&5
5055 echo "cannot find nm_test_var in $nlist" >&5
5058 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5061 echo "$progname: failed program was:" >&5
5062 cat conftest.$ac_ext >&5
5064 rm -f conftest* conftst*
5066 # Do not use the global_symbol_pipe unless it works.
5067 if test "$pipe_works" = yes; then
5070 lt_cv_sys_global_symbol_pipe=
5076 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5077 lt_cv_sys_global_symbol_to_cdecl=
5079 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5080 echo "$as_me:$LINENO: result: failed" >&5
5081 echo "${ECHO_T}failed" >&6
5083 echo "$as_me:$LINENO: result: ok" >&5
5084 echo "${ECHO_T}ok" >&6
5087 echo "$as_me:$LINENO: checking for objdir" >&5
5088 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5089 if test "${lt_cv_objdir+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 rm -f .libs 2>/dev/null
5093 mkdir .libs 2>/dev/null
5094 if test -d .libs; then
5097 # MS-DOS does not allow filenames that begin with a dot.
5100 rmdir .libs 2>/dev/null
5102 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5103 echo "${ECHO_T}$lt_cv_objdir" >&6
5104 objdir=$lt_cv_objdir
5112 # AIX sometimes has problems with the GCC collect2 program. For some
5113 # reason, if we set the COLLECT_NAMES environment variable, the problems
5114 # vanish in a puff of smoke.
5115 if test "X${COLLECT_NAMES+set}" != Xset; then
5117 export COLLECT_NAMES
5122 # Sed substitution that helps us do robust quoting. It backslashifies
5123 # metacharacters that are still active within double-quoted strings.
5124 Xsed='sed -e s/^X//'
5125 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5127 # Same as above, but do not quote variable references.
5128 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5130 # Sed substitution to delay expansion of an escaped shell variable in a
5131 # double_quote_subst'ed string.
5132 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5134 # Sed substitution to avoid accidental globbing in evaled expressions
5135 no_glob_subst='s/\*/\\\*/g'
5141 default_ofile=libtool
5142 can_build_shared=yes
5144 # All known linkers require a `.a' archive for static linking (except M$VC,
5145 # which needs '.lib').
5147 ltmain="$ac_aux_dir/ltmain.sh"
5148 ofile="$default_ofile"
5149 with_gnu_ld="$lt_cv_prog_gnu_ld"
5151 if test -n "$ac_tool_prefix"; then
5152 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5153 set dummy ${ac_tool_prefix}ar; ac_word=$2
5154 echo "$as_me:$LINENO: checking for $ac_word" >&5
5155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5156 if test "${ac_cv_prog_AR+set}" = set; then
5157 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 if test -n "$AR"; then
5160 ac_cv_prog_AR="$AR" # Let the user override the test.
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5169 ac_cv_prog_AR="${ac_tool_prefix}ar"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 if test -n "$AR"; then
5180 echo "$as_me:$LINENO: result: $AR" >&5
5181 echo "${ECHO_T}$AR" >&6
5183 echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6
5188 if test -z "$ac_cv_prog_AR"; then
5190 # Extract the first word of "ar", so it can be a program name with args.
5191 set dummy ar; ac_word=$2
5192 echo "$as_me:$LINENO: checking for $ac_word" >&5
5193 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5194 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5195 echo $ECHO_N "(cached) $ECHO_C" >&6
5197 if test -n "$ac_ct_AR"; then
5198 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir=.
5205 for ac_exec_ext in '' $ac_executable_extensions; do
5206 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5207 ac_cv_prog_ac_ct_AR="ar"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5217 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5218 if test -n "$ac_ct_AR"; then
5219 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5220 echo "${ECHO_T}$ac_ct_AR" >&6
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5231 if test -n "$ac_tool_prefix"; then
5232 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5233 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5234 echo "$as_me:$LINENO: checking for $ac_word" >&5
5235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5236 if test "${ac_cv_prog_RANLIB+set}" = set; then
5237 echo $ECHO_N "(cached) $ECHO_C" >&6
5239 if test -n "$RANLIB"; then
5240 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 test -z "$as_dir" && as_dir=.
5247 for ac_exec_ext in '' $ac_executable_extensions; do
5248 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5249 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5250 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5258 RANLIB=$ac_cv_prog_RANLIB
5259 if test -n "$RANLIB"; then
5260 echo "$as_me:$LINENO: result: $RANLIB" >&5
5261 echo "${ECHO_T}$RANLIB" >&6
5263 echo "$as_me:$LINENO: result: no" >&5
5264 echo "${ECHO_T}no" >&6
5268 if test -z "$ac_cv_prog_RANLIB"; then
5269 ac_ct_RANLIB=$RANLIB
5270 # Extract the first word of "ranlib", so it can be a program name with args.
5271 set dummy ranlib; ac_word=$2
5272 echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5274 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5277 if test -n "$ac_ct_RANLIB"; then
5278 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5287 ac_cv_prog_ac_ct_RANLIB="ranlib"
5288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5294 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5297 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5298 if test -n "$ac_ct_RANLIB"; then
5299 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5300 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5302 echo "$as_me:$LINENO: result: no" >&5
5303 echo "${ECHO_T}no" >&6
5306 RANLIB=$ac_ct_RANLIB
5308 RANLIB="$ac_cv_prog_RANLIB"
5311 if test -n "$ac_tool_prefix"; then
5312 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5313 set dummy ${ac_tool_prefix}strip; ac_word=$2
5314 echo "$as_me:$LINENO: checking for $ac_word" >&5
5315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5316 if test "${ac_cv_prog_STRIP+set}" = set; then
5317 echo $ECHO_N "(cached) $ECHO_C" >&6
5319 if test -n "$STRIP"; then
5320 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5326 test -z "$as_dir" && as_dir=.
5327 for ac_exec_ext in '' $ac_executable_extensions; do
5328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5329 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 STRIP=$ac_cv_prog_STRIP
5339 if test -n "$STRIP"; then
5340 echo "$as_me:$LINENO: result: $STRIP" >&5
5341 echo "${ECHO_T}$STRIP" >&6
5343 echo "$as_me:$LINENO: result: no" >&5
5344 echo "${ECHO_T}no" >&6
5348 if test -z "$ac_cv_prog_STRIP"; then
5350 # Extract the first word of "strip", so it can be a program name with args.
5351 set dummy strip; ac_word=$2
5352 echo "$as_me:$LINENO: checking for $ac_word" >&5
5353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5354 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5355 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 if test -n "$ac_ct_STRIP"; then
5358 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 test -z "$as_dir" && as_dir=.
5365 for ac_exec_ext in '' $ac_executable_extensions; do
5366 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5367 ac_cv_prog_ac_ct_STRIP="strip"
5368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5374 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5377 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5378 if test -n "$ac_ct_STRIP"; then
5379 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5380 echo "${ECHO_T}$ac_ct_STRIP" >&6
5382 echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6
5388 STRIP="$ac_cv_prog_STRIP"
5393 old_CFLAGS="$CFLAGS"
5395 # Set sane defaults for various variables
5396 test -z "$AR" && AR=ar
5397 test -z "$AR_FLAGS" && AR_FLAGS=cru
5398 test -z "$AS" && AS=as
5399 test -z "$CC" && CC=cc
5400 test -z "$LTCC" && LTCC=$CC
5401 test -z "$DLLTOOL" && DLLTOOL=dlltool
5402 test -z "$LD" && LD=ld
5403 test -z "$LN_S" && LN_S="ln -s"
5404 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5405 test -z "$NM" && NM=nm
5406 test -z "$SED" && SED=sed
5407 test -z "$OBJDUMP" && OBJDUMP=objdump
5408 test -z "$RANLIB" && RANLIB=:
5409 test -z "$STRIP" && STRIP=:
5410 test -z "$ac_objext" && ac_objext=o
5412 # Determine commands to create old-style static archives.
5413 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5414 old_postinstall_cmds='chmod 644 $oldlib'
5415 old_postuninstall_cmds=
5417 if test -n "$RANLIB"; then
5420 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5423 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5426 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5429 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
5431 # Only perform the check for file, if the check method requires it
5432 case $deplibs_check_method in
5434 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5435 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5436 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5437 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5442 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5445 lt_save_MAGIC_CMD="$MAGIC_CMD"
5446 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5447 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5448 for ac_dir in $ac_dummy; do
5450 test -z "$ac_dir" && ac_dir=.
5451 if test -f $ac_dir/${ac_tool_prefix}file; then
5452 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
5453 if test -n "$file_magic_test_file"; then
5454 case $deplibs_check_method in
5456 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5457 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5458 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5459 $EGREP "$file_magic_regex" > /dev/null; then
5464 *** Warning: the command libtool uses to detect shared libraries,
5465 *** $file_magic_cmd, produces output that libtool cannot recognize.
5466 *** The result is that libtool may fail to recognize shared libraries
5467 *** as such. This will affect the creation of libtool libraries that
5468 *** depend on shared libraries, but programs linked with such libtool
5469 *** libraries will work regardless of this problem. Nevertheless, you
5470 *** may want to report the problem to your system manager and/or to
5471 *** bug-libtool@gnu.org
5481 MAGIC_CMD="$lt_save_MAGIC_CMD"
5486 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5487 if test -n "$MAGIC_CMD"; then
5488 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5489 echo "${ECHO_T}$MAGIC_CMD" >&6
5491 echo "$as_me:$LINENO: result: no" >&5
5492 echo "${ECHO_T}no" >&6
5495 if test -z "$lt_cv_path_MAGIC_CMD"; then
5496 if test -n "$ac_tool_prefix"; then
5497 echo "$as_me:$LINENO: checking for file" >&5
5498 echo $ECHO_N "checking for file... $ECHO_C" >&6
5499 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5500 echo $ECHO_N "(cached) $ECHO_C" >&6
5504 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5507 lt_save_MAGIC_CMD="$MAGIC_CMD"
5508 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5509 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
5510 for ac_dir in $ac_dummy; do
5512 test -z "$ac_dir" && ac_dir=.
5513 if test -f $ac_dir/file; then
5514 lt_cv_path_MAGIC_CMD="$ac_dir/file"
5515 if test -n "$file_magic_test_file"; then
5516 case $deplibs_check_method in
5518 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
5519 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5520 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
5521 $EGREP "$file_magic_regex" > /dev/null; then
5526 *** Warning: the command libtool uses to detect shared libraries,
5527 *** $file_magic_cmd, produces output that libtool cannot recognize.
5528 *** The result is that libtool may fail to recognize shared libraries
5529 *** as such. This will affect the creation of libtool libraries that
5530 *** depend on shared libraries, but programs linked with such libtool
5531 *** libraries will work regardless of this problem. Nevertheless, you
5532 *** may want to report the problem to your system manager and/or to
5533 *** bug-libtool@gnu.org
5543 MAGIC_CMD="$lt_save_MAGIC_CMD"
5548 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
5549 if test -n "$MAGIC_CMD"; then
5550 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
5551 echo "${ECHO_T}$MAGIC_CMD" >&6
5553 echo "$as_me:$LINENO: result: no" >&5
5554 echo "${ECHO_T}no" >&6
5569 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
5570 if test "${enable_libtool_lock+set}" = set; then
5571 enableval="$enable_libtool_lock"
5574 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5577 # Check whether --with-pic or --without-pic was given.
5578 if test "${with_pic+set}" = set; then
5584 test -z "$pic_mode" && pic_mode=default
5586 # Use C for the default configuration in the libtool script
5590 ac_cpp='$CPP $CPPFLAGS'
5591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5596 # Source file extension for C test sources.
5599 # Object file extension for compiled C test sources.
5603 # Code to be used in simple compile tests
5604 lt_simple_compile_test_code="int some_variable = 0;\n"
5606 # Code to be used in simple link tests
5607 lt_simple_link_test_code='int main(){return(0);}\n'
5610 # If no C compiler was specified, use CC.
5613 # Allow CC to be a program name with arguments.
5618 # Check for any special shared library compilation flags.
5621 if test "$GCC" = no; then
5624 lt_prog_cc_shlib='-belf'
5628 if test -n "$lt_prog_cc_shlib"; then
5629 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
5630 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
5631 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
5633 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
5634 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
5635 lt_cv_prog_cc_can_build_shared=no
5641 # Check to make sure the static flag actually works.
5643 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
5644 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
5645 if test "${lt_prog_compiler_static_works+set}" = set; then
5646 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 lt_prog_compiler_static_works=no
5649 save_LDFLAGS="$LDFLAGS"
5650 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
5651 printf "$lt_simple_link_test_code" > conftest.$ac_ext
5652 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
5653 # The compiler can only warn and ignore the option if not recognized
5654 # So say no if there are warnings
5655 if test -s conftest.err; then
5656 # Append any errors to the config.log.
5657 cat conftest.err 1>&5
5659 lt_prog_compiler_static_works=yes
5663 LDFLAGS="$save_LDFLAGS"
5666 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
5667 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
5669 if test x"$lt_prog_compiler_static_works" = xyes; then
5672 lt_prog_compiler_static=
5678 lt_prog_compiler_no_builtin_flag=
5680 if test "$GCC" = yes; then
5681 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
5684 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
5685 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
5686 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
5687 echo $ECHO_N "(cached) $ECHO_C" >&6
5689 lt_cv_prog_compiler_rtti_exceptions=no
5690 ac_outfile=conftest.$ac_objext
5691 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5692 lt_compiler_flag="-fno-rtti -fno-exceptions"
5693 # Insert the option either (1) after the last *FLAGS variable, or
5694 # (2) before a word containing "conftest.", or (3) at the end.
5695 # Note that $ac_compile itself does not contain backslashes and begins
5696 # with a dollar sign (not a hyphen), so the echo should work correctly.
5697 # The option is referenced via a variable to avoid confusing sed.
5698 lt_compile=`echo "$ac_compile" | $SED \
5699 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5701 -e 's:$: $lt_compiler_flag:'`
5702 (eval echo "\"\$as_me:5702: $lt_compile\"" >&5)
5703 (eval "$lt_compile" 2>conftest.err)
5705 cat conftest.err >&5
5706 echo "$as_me:5706: \$? = $ac_status" >&5
5707 if (exit $ac_status) && test -s "$ac_outfile"; then
5708 # The compiler can only warn and ignore the option if not recognized
5709 # So say no if there are warnings
5710 if test ! -s conftest.err; then
5711 lt_cv_prog_compiler_rtti_exceptions=yes
5717 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
5718 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
5720 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
5721 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
5728 lt_prog_compiler_wl=
5729 lt_prog_compiler_pic=
5730 lt_prog_compiler_static=
5732 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
5733 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
5735 if test "$GCC" = yes; then
5736 lt_prog_compiler_wl='-Wl,'
5737 lt_prog_compiler_static='-static'
5741 # All AIX code is PIC.
5742 if test "$host_cpu" = ia64; then
5743 # AIX 5 now supports IA64 processor
5744 lt_prog_compiler_static='-Bstatic'
5749 # FIXME: we need at least 68020 code to build shared libraries, but
5750 # adding the `-m68020' flag to GCC prevents building anything better,
5752 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
5755 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
5756 # PIC is the default for these OSes.
5759 mingw* | pw32* | os2*)
5760 # This hack is so that the source file can tell whether it is being
5761 # built for inclusion in a dll (and should export symbols for example).
5762 lt_prog_compiler_pic='-DDLL_EXPORT'
5765 darwin* | rhapsody*)
5766 # PIC is the default on this platform
5767 # Common symbols not allowed in MH_DYLIB files
5768 lt_prog_compiler_pic='-fno-common'
5772 # Just because we use GCC doesn't mean we suddenly get shared libraries
5773 # on systems that don't support them.
5774 lt_prog_compiler_can_build_shared=no
5779 if test -d /usr/nec; then
5780 lt_prog_compiler_pic=-Kconform_pic
5785 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5792 lt_prog_compiler_pic='-fPIC'
5798 lt_prog_compiler_pic='-fPIC'
5802 # PORTME Check for flag to pass linker flags through the system compiler.
5805 lt_prog_compiler_wl='-Wl,'
5806 if test "$host_cpu" = ia64; then
5807 # AIX 5 now supports IA64 processor
5808 lt_prog_compiler_static='-Bstatic'
5810 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
5814 # PIC is the default on this platform
5815 # Common symbols not allowed in MH_DYLIB files
5816 case "$cc_basename" in
5818 lt_prog_compiler_pic='-qnocommon'
5819 lt_prog_compiler_wl='-Wl,'
5824 mingw* | pw32* | os2*)
5825 # This hack is so that the source file can tell whether it is being
5826 # built for inclusion in a dll (and should export symbols for example).
5827 lt_prog_compiler_pic='-DDLL_EXPORT'
5830 hpux9* | hpux10* | hpux11*)
5831 lt_prog_compiler_wl='-Wl,'
5832 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
5839 lt_prog_compiler_pic='+Z'
5842 # Is there a better lt_prog_compiler_static that works with the bundled CC?
5843 lt_prog_compiler_static='${wl}-a ${wl}archive'
5846 irix5* | irix6* | nonstopux*)
5847 lt_prog_compiler_wl='-Wl,'
5848 # PIC (with -KPIC) is the default.
5849 lt_prog_compiler_static='-non_shared'
5853 lt_prog_compiler_pic='-KPIC'
5854 lt_prog_compiler_static='-Bstatic'
5860 lt_prog_compiler_wl='-Wl,'
5861 lt_prog_compiler_pic='-KPIC'
5862 lt_prog_compiler_static='-static'
5865 lt_prog_compiler_wl='-Wl,'
5866 # All Alpha code is PIC.
5867 lt_prog_compiler_static='-non_shared'
5872 osf3* | osf4* | osf5*)
5873 lt_prog_compiler_wl='-Wl,'
5874 # All OSF/1 code is PIC.
5875 lt_prog_compiler_static='-non_shared'
5879 lt_prog_compiler_pic='-Kpic'
5880 lt_prog_compiler_static='-dn'
5884 lt_prog_compiler_wl='-Wl,'
5885 lt_prog_compiler_pic='-KPIC'
5886 lt_prog_compiler_static='-Bstatic'
5890 lt_prog_compiler_wl='-Qoption ld '
5891 lt_prog_compiler_pic='-PIC'
5892 lt_prog_compiler_static='-Bstatic'
5895 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
5896 lt_prog_compiler_wl='-Wl,'
5897 lt_prog_compiler_pic='-KPIC'
5898 lt_prog_compiler_static='-Bstatic'
5902 if test -d /usr/nec ;then
5903 lt_prog_compiler_pic='-Kconform_pic'
5904 lt_prog_compiler_static='-Bstatic'
5909 lt_prog_compiler_pic='-pic'
5910 lt_prog_compiler_static='-Bstatic'
5914 lt_prog_compiler_can_build_shared=no
5919 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
5920 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
5923 # Check to make sure the PIC flag actually works.
5925 if test -n "$lt_prog_compiler_pic"; then
5927 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
5928 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
5929 if test "${lt_prog_compiler_pic_works+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 lt_prog_compiler_pic_works=no
5933 ac_outfile=conftest.$ac_objext
5934 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5935 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
5936 # Insert the option either (1) after the last *FLAGS variable, or
5937 # (2) before a word containing "conftest.", or (3) at the end.
5938 # Note that $ac_compile itself does not contain backslashes and begins
5939 # with a dollar sign (not a hyphen), so the echo should work correctly.
5940 # The option is referenced via a variable to avoid confusing sed.
5941 lt_compile=`echo "$ac_compile" | $SED \
5942 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
5943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
5944 -e 's:$: $lt_compiler_flag:'`
5945 (eval echo "\"\$as_me:5945: $lt_compile\"" >&5)
5946 (eval "$lt_compile" 2>conftest.err)
5948 cat conftest.err >&5
5949 echo "$as_me:5949: \$? = $ac_status" >&5
5950 if (exit $ac_status) && test -s "$ac_outfile"; then
5951 # The compiler can only warn and ignore the option if not recognized
5952 # So say no if there are warnings
5953 if test ! -s conftest.err; then
5954 lt_prog_compiler_pic_works=yes
5960 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
5961 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
5963 if test x"$lt_prog_compiler_pic_works" = xyes; then
5964 case $lt_prog_compiler_pic in
5966 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
5969 lt_prog_compiler_pic=
5970 lt_prog_compiler_can_build_shared=no
5975 # For platforms which do not support PIC, -DPIC is meaningless:
5977 lt_prog_compiler_pic=
5980 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
5984 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
5985 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
5986 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
5987 echo $ECHO_N "(cached) $ECHO_C" >&6
5989 lt_cv_prog_compiler_c_o=no
5990 $rm -r conftest 2>/dev/null
5994 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
5996 lt_compiler_flag="-o out/conftest2.$ac_objext"
5997 # Insert the option either (1) after the last *FLAGS variable, or
5998 # (2) before a word containing "conftest.", or (3) at the end.
5999 # Note that $ac_compile itself does not contain backslashes and begins
6000 # with a dollar sign (not a hyphen), so the echo should work correctly.
6001 lt_compile=`echo "$ac_compile" | $SED \
6002 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6003 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6004 -e 's:$: $lt_compiler_flag:'`
6005 (eval echo "\"\$as_me:6005: $lt_compile\"" >&5)
6006 (eval "$lt_compile" 2>out/conftest.err)
6008 cat out/conftest.err >&5
6009 echo "$as_me:6009: \$? = $ac_status" >&5
6010 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6012 # The compiler can only warn and ignore the option if not recognized
6013 # So say no if there are warnings
6014 if test ! -s out/conftest.err; then
6015 lt_cv_prog_compiler_c_o=yes
6020 # SGI C++ compiler will create directory out/ii_files/ for
6021 # template instantiation
6022 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6023 $rm out/* && rmdir out
6029 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6030 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6033 hard_links="nottested"
6034 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6035 # do not overwrite the value of need_locks provided by the user
6036 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6037 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6040 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6042 ln conftest.a conftest.b 2>&5 || hard_links=no
6043 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6044 echo "$as_me:$LINENO: result: $hard_links" >&5
6045 echo "${ECHO_T}$hard_links" >&6
6046 if test "$hard_links" = no; then
6047 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6048 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6055 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6056 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6059 allow_undefined_flag=
6060 enable_shared_with_static_runtimes=no
6062 archive_expsym_cmds=
6063 old_archive_From_new_cmds=
6064 old_archive_from_expsyms_cmds=
6065 export_dynamic_flag_spec=
6066 whole_archive_flag_spec=
6067 thread_safe_flag_spec=
6068 hardcode_libdir_flag_spec=
6069 hardcode_libdir_flag_spec_ld=
6070 hardcode_libdir_separator=
6073 hardcode_shlibpath_var=unsupported
6074 link_all_deplibs=unknown
6075 hardcode_automatic=no
6078 always_export_symbols=no
6079 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6080 # include_expsyms should be a list of space-separated symbols to be *always*
6081 # included in the symbol list
6083 # exclude_expsyms can be an extended regexp of symbols to exclude
6084 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6085 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6086 # as well as any symbol that contains `d'.
6087 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6088 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6089 # platforms (ab)use it in PIC code, but their linkers get confused if
6090 # the symbol is explicitly referenced. Since portable code cannot
6091 # rely on this symbol name, it's probably fine to never include it in
6092 # preloaded symbol tables.
6093 extract_expsyms_cmds=
6096 cygwin* | mingw* | pw32*)
6097 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6098 # When not using gcc, we currently assume that we are using
6099 # Microsoft Visual C++.
6100 if test "$GCC" != yes; then
6110 if test "$with_gnu_ld" = yes; then
6111 # If archive_cmds runs LD, not CC, wlarc should be empty
6114 # See if GNU ld supports shared libraries.
6116 aix3* | aix4* | aix5*)
6117 # On AIX/PPC, the GNU linker is very broken
6118 if test "$host_cpu" != ia64; then
6122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6123 *** to be unable to reliably create shared libraries on AIX.
6124 *** Therefore, libtool is disabling shared libraries support. If you
6125 *** really care for shared libraries, you may want to modify your PATH
6126 *** so that a non-GNU linker is found, and then restart.
6133 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)'
6134 hardcode_libdir_flag_spec='-L$libdir'
6135 hardcode_minus_L=yes
6137 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6138 # that the semantics of dynamic libraries on AmigaOS, at least up
6139 # to version 4, is to share data among multiple programs linked
6140 # with the same dynamic library. Since this doesn't match the
6141 # behavior of shared libraries on other platforms, we can't use
6147 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6148 allow_undefined_flag=unsupported
6149 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6150 # support --undefined. This deserves some investigation. FIXME
6151 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6157 cygwin* | mingw* | pw32*)
6158 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6159 # as there is no search path for DLLs.
6160 hardcode_libdir_flag_spec='-L$libdir'
6161 allow_undefined_flag=unsupported
6162 always_export_symbols=no
6163 enable_shared_with_static_runtimes=yes
6164 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6166 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6168 # If the export-symbols file already is a .def file (1st line
6169 # is EXPORTS), use it as is; otherwise, prepend...
6170 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6171 cp $export_symbols $output_objdir/$soname.def;
6173 echo EXPORTS > $output_objdir/$soname.def;
6174 cat $export_symbols >> $output_objdir/$soname.def;
6176 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6183 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6184 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6188 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6193 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6198 *** create shared libraries on Solaris systems. Therefore, libtool
6199 *** is disabling shared libraries support. We urge you to upgrade GNU
6200 *** binutils to release 2.9.1 or newer. Another option is to modify
6201 *** your PATH or compiler configuration so that the native linker is
6202 *** used, and then restart.
6205 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6206 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6207 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6214 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6217 hardcode_shlibpath_var=no
6221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6222 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6223 archive_cmds="$tmp_archive_cmds"
6224 supports_anon_versioning=no
6225 case `$LD -v 2>/dev/null` in
6226 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6227 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6228 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6229 *\ 2.11.*) ;; # other 2.11 versions
6230 *) supports_anon_versioning=yes ;;
6232 if test $supports_anon_versioning = yes; then
6233 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6234 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6235 $echo "local: *; };" >> $output_objdir/$libname.ver~
6236 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6238 archive_expsym_cmds="$tmp_archive_cmds"
6246 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6247 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6248 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6255 if test "$ld_shlibs" = yes; then
6256 runpath_var=LD_RUN_PATH
6257 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6258 export_dynamic_flag_spec='${wl}--export-dynamic'
6259 # ancient GNU ld didn't support --whole-archive et. al.
6260 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6261 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6263 whole_archive_flag_spec=
6267 # PORTME fill in a description of your system's linker (not GNU ld)
6270 allow_undefined_flag=unsupported
6271 always_export_symbols=yes
6272 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'
6273 # Note: this linker hardcodes the directories in LIBPATH if there
6274 # are no directories specified by -L.
6275 hardcode_minus_L=yes
6276 if test "$GCC" = yes && test -z "$link_static_flag"; then
6277 # Neither direct hardcoding nor static linking is supported with a
6279 hardcode_direct=unsupported
6284 if test "$host_cpu" = ia64; then
6285 # On IA64, the linker does run time linking by default, so we don't
6286 # have to do anything special.
6287 aix_use_runtimelinking=no
6288 exp_sym_flag='-Bexport'
6291 # If we're using GNU nm, then we don't want the "-C" option.
6292 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6293 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6294 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'
6296 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'
6298 aix_use_runtimelinking=no
6300 # Test if we are trying to use run time linking or normal
6301 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6302 # need to do runtime linking.
6303 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6304 for ld_flag in $LDFLAGS; do
6305 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6306 aix_use_runtimelinking=yes
6312 exp_sym_flag='-bexport'
6313 no_entry_flag='-bnoentry'
6316 # When large executables or shared objects are built, AIX ld can
6317 # have problems creating the table of contents. If linking a library
6318 # or program results in "error TOC overflow" add -mminimal-toc to
6319 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6320 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6324 hardcode_libdir_separator=':'
6325 link_all_deplibs=yes
6327 if test "$GCC" = yes; then
6328 case $host_os in aix4.012|aix4.012.*)
6329 # We only want to do this on AIX 4.2 and lower, the check
6330 # below for broken collect2 doesn't work under 4.3+
6331 collect2name=`${CC} -print-prog-name=collect2`
6332 if test -f "$collect2name" && \
6333 strings "$collect2name" | grep resolve_lib_name >/dev/null
6335 # We have reworked collect2
6338 # We have old collect2
6339 hardcode_direct=unsupported
6340 # It fails to find uninstalled libraries when the uninstalled
6341 # path is not listed in the libpath. Setting hardcode_minus_L
6342 # to unsupported forces relinking
6343 hardcode_minus_L=yes
6344 hardcode_libdir_flag_spec='-L$libdir'
6345 hardcode_libdir_separator=
6348 shared_flag='-shared'
6351 if test "$host_cpu" = ia64; then
6352 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6353 # chokes on -Wl,-G. The following line is correct:
6356 if test "$aix_use_runtimelinking" = yes; then
6357 shared_flag='${wl}-G'
6359 shared_flag='${wl}-bM:SRE'
6364 # It seems that -bexpall does not export symbols beginning with
6365 # underscore (_), so it is better to generate a list of symbols to export.
6366 always_export_symbols=yes
6367 if test "$aix_use_runtimelinking" = yes; then
6368 # Warning - without using the other runtime loading flags (-brtl),
6369 # -berok will link without error, but may produce a broken library.
6370 allow_undefined_flag='-berok'
6371 # Determine the default libpath from the value encoded in an empty executable.
6372 cat >conftest.$ac_ext <<_ACEOF
6375 cat confdefs.h >>conftest.$ac_ext
6376 cat >>conftest.$ac_ext <<_ACEOF
6377 /* end confdefs.h. */
6387 rm -f conftest.$ac_objext conftest$ac_exeext
6388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6389 (eval $ac_link) 2>conftest.er1
6391 grep -v '^ *+' conftest.er1 >conftest.err
6393 cat conftest.err >&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try='test -z "$ac_c_werror_flag"
6397 || test ! -s conftest.err'
6398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6402 (exit $ac_status); }; } &&
6403 { ac_try='test -s conftest$ac_exeext'
6404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); }; }; then
6410 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6412 # Check for a 64-bit object if we didn't find anything.
6413 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; }
6416 echo "$as_me: failed program was:" >&5
6417 sed 's/^/| /' conftest.$ac_ext >&5
6420 rm -f conftest.err conftest.$ac_objext \
6421 conftest$ac_exeext conftest.$ac_ext
6422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6424 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6425 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"
6427 if test "$host_cpu" = ia64; then
6428 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6429 allow_undefined_flag="-z nodefs"
6430 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"
6432 # Determine the default libpath from the value encoded in an empty executable.
6433 cat >conftest.$ac_ext <<_ACEOF
6436 cat confdefs.h >>conftest.$ac_ext
6437 cat >>conftest.$ac_ext <<_ACEOF
6438 /* end confdefs.h. */
6448 rm -f conftest.$ac_objext conftest$ac_exeext
6449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6450 (eval $ac_link) 2>conftest.er1
6452 grep -v '^ *+' conftest.er1 >conftest.err
6454 cat conftest.err >&5
6455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6456 (exit $ac_status); } &&
6457 { ac_try='test -z "$ac_c_werror_flag"
6458 || test ! -s conftest.err'
6459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }; } &&
6464 { ac_try='test -s conftest$ac_exeext'
6465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; }; then
6471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6473 # Check for a 64-bit object if we didn't find anything.
6474 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; }
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6481 rm -f conftest.err conftest.$ac_objext \
6482 conftest$ac_exeext conftest.$ac_ext
6483 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6485 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6486 # Warning - without using the other run time loading flags,
6487 # -berok will link without error, but may produce a broken library.
6488 no_undefined_flag=' ${wl}-bernotok'
6489 allow_undefined_flag=' ${wl}-berok'
6490 # -bexpall does not export symbols beginning with underscore (_)
6491 always_export_symbols=yes
6492 # Exported symbols can be pulled into shared objects from archives
6493 whole_archive_flag_spec=' '
6494 archive_cmds_need_lc=yes
6495 # This is similar to how AIX traditionally builds it's shared libraries.
6496 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'
6502 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)'
6503 hardcode_libdir_flag_spec='-L$libdir'
6504 hardcode_minus_L=yes
6505 # see comment about different semantics on the GNU ld section
6510 export_dynamic_flag_spec=-rdynamic
6513 cygwin* | mingw* | pw32*)
6514 # When not using gcc, we currently assume that we are using
6515 # Microsoft Visual C++.
6516 # hardcode_libdir_flag_spec is actually meaningless, as there is
6517 # no search path for DLLs.
6518 hardcode_libdir_flag_spec=' '
6519 allow_undefined_flag=unsupported
6520 # Tell ltmain to make .lib files, not .a files.
6522 # Tell ltmain to make .dll files, not .so files.
6524 # FIXME: Setting linknames here is a bad hack.
6525 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
6526 # The linker will automatically build a .lib file if we build a DLL.
6527 old_archive_From_new_cmds='true'
6528 # FIXME: Should let the user specify the lib program.
6529 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
6530 fix_srcfile_path='`cygpath -w "$srcfile"`'
6531 enable_shared_with_static_runtimes=yes
6534 darwin* | rhapsody*)
6536 rhapsody* | darwin1.[012])
6537 allow_undefined_flag='${wl}-undefined ${wl}suppress'
6540 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
6541 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6543 case ${MACOSX_DEPLOYMENT_TARGET} in
6545 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
6548 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
6554 archive_cmds_need_lc=no
6556 hardcode_automatic=yes
6557 hardcode_shlibpath_var=unsupported
6558 whole_archive_flag_spec=''
6559 link_all_deplibs=yes
6560 if test "$GCC" = yes ; then
6561 output_verbose_link_cmd='echo'
6562 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
6563 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6564 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6565 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}'
6566 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}'
6568 case "$cc_basename" in
6570 output_verbose_link_cmd='echo'
6571 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
6572 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
6573 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
6574 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
6575 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}'
6585 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6586 hardcode_libdir_flag_spec='-L$libdir'
6587 hardcode_shlibpath_var=no
6594 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
6595 # support. Future versions do this automatically, but an explicit c++rt0.o
6596 # does not break anything, and helps significantly (at the cost of a little
6599 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
6600 hardcode_libdir_flag_spec='-R$libdir'
6602 hardcode_shlibpath_var=no
6605 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
6607 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6609 hardcode_minus_L=yes
6610 hardcode_shlibpath_var=no
6613 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
6614 freebsd* | kfreebsd*-gnu)
6615 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
6616 hardcode_libdir_flag_spec='-R$libdir'
6618 hardcode_shlibpath_var=no
6622 if test "$GCC" = yes; then
6623 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'
6625 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'
6627 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6628 hardcode_libdir_separator=:
6631 # hardcode_minus_L: Not really in the search PATH,
6632 # but as the default location of the library.
6633 hardcode_minus_L=yes
6634 export_dynamic_flag_spec='${wl}-E'
6638 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
6641 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6644 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
6650 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
6653 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
6657 if test "$with_gnu_ld" = no; then
6660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6661 hardcode_libdir_flag_spec_ld='+b $libdir'
6662 hardcode_libdir_separator=:
6664 hardcode_shlibpath_var=no
6667 hardcode_libdir_flag_spec='-L$libdir'
6669 hardcode_shlibpath_var=no
6671 # hardcode_minus_L: Not really in the search PATH,
6672 # but as the default location of the library.
6673 hardcode_minus_L=yes
6676 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
6677 hardcode_libdir_separator=:
6679 export_dynamic_flag_spec='${wl}-E'
6681 # hardcode_minus_L: Not really in the search PATH,
6682 # but as the default location of the library.
6683 hardcode_minus_L=yes
6689 irix5* | irix6* | nonstopux*)
6690 if test "$GCC" = yes; then
6691 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'
6693 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'
6694 hardcode_libdir_flag_spec_ld='-rpath $libdir'
6696 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6697 hardcode_libdir_separator=:
6698 link_all_deplibs=yes
6702 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6703 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
6705 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
6707 hardcode_libdir_flag_spec='-R$libdir'
6709 hardcode_shlibpath_var=no
6713 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6716 hardcode_libdir_separator=:
6717 hardcode_shlibpath_var=no
6722 hardcode_shlibpath_var=no
6723 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6724 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6725 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
6726 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6727 export_dynamic_flag_spec='${wl}-E'
6730 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
6731 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6732 hardcode_libdir_flag_spec='-R$libdir'
6735 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
6736 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6743 hardcode_libdir_flag_spec='-L$libdir'
6744 hardcode_minus_L=yes
6745 allow_undefined_flag=unsupported
6746 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'
6747 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
6751 if test "$GCC" = yes; then
6752 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6753 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'
6755 allow_undefined_flag=' -expect_unresolved \*'
6756 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'
6758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6759 hardcode_libdir_separator=:
6762 osf4* | osf5*) # as osf3* with the addition of -msym flag
6763 if test "$GCC" = yes; then
6764 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
6765 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'
6766 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
6768 allow_undefined_flag=' -expect_unresolved \*'
6769 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'
6770 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
6771 $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'
6773 # Both c and cxx compiler support -rpath directly
6774 hardcode_libdir_flag_spec='-rpath $libdir'
6776 hardcode_libdir_separator=:
6780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6781 hardcode_shlibpath_var=no
6782 export_dynamic_flag_spec='${wl}-Bexport'
6783 runpath_var=LD_RUN_PATH
6784 hardcode_runpath_var=yes
6788 no_undefined_flag=' -z text'
6789 if test "$GCC" = yes; then
6790 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6791 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6792 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
6794 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6795 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6796 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6798 hardcode_libdir_flag_spec='-R$libdir'
6799 hardcode_shlibpath_var=no
6801 solaris2.[0-5] | solaris2.[0-5].*) ;;
6802 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
6803 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
6805 link_all_deplibs=yes
6809 if test "x$host_vendor" = xsequent; then
6810 # Use $CC to link under sequent, because it throws in some extra .o
6811 # files that make .init and .fini sections work.
6812 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
6814 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
6816 hardcode_libdir_flag_spec='-L$libdir'
6818 hardcode_minus_L=yes
6819 hardcode_shlibpath_var=no
6823 case $host_vendor in
6825 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6826 hardcode_direct=yes # is this really true???
6829 ## LD is ld it makes a PLAMLIB
6830 ## CC just makes a GrossModule.
6831 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6832 reload_cmds='$CC -r -o $output$reload_objs'
6836 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6837 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
6840 runpath_var='LD_RUN_PATH'
6841 hardcode_shlibpath_var=no
6845 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6846 hardcode_shlibpath_var=no
6847 export_dynamic_flag_spec='-Bexport'
6851 if test -d /usr/nec; then
6852 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6853 hardcode_shlibpath_var=no
6854 runpath_var=LD_RUN_PATH
6855 hardcode_runpath_var=yes
6861 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
6864 hardcode_shlibpath_var=no
6865 hardcode_runpath_var=yes
6866 runpath_var=LD_RUN_PATH
6869 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
6870 no_undefined_flag='${wl}-z ${wl}text'
6871 if test "$GCC" = yes; then
6872 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6874 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
6876 runpath_var='LD_RUN_PATH'
6877 hardcode_shlibpath_var=no
6881 no_undefined_flag=' -z text'
6882 # $CC -shared without GNU ld will not create a library from C++
6883 # object files and a static libstdc++, better avoid it by now
6884 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
6885 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
6886 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
6887 hardcode_libdir_flag_spec=
6888 hardcode_shlibpath_var=no
6889 runpath_var='LD_RUN_PATH'
6893 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
6894 hardcode_libdir_flag_spec='-L$libdir'
6895 hardcode_shlibpath_var=no
6904 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
6905 echo "${ECHO_T}$ld_shlibs" >&6
6906 test "$ld_shlibs" = no && can_build_shared=no
6908 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
6909 if test "$GCC" = yes; then
6910 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
6914 # Do we need to explicitly link libc?
6916 case "x$archive_cmds_need_lc" in
6918 # Assume -lc should be added
6919 archive_cmds_need_lc=yes
6921 if test "$enable_shared" = yes && test "$GCC" = yes; then
6922 case $archive_cmds in
6924 # FIXME: we may have to deal with multi-command sequences.
6927 # Test whether the compiler implicitly links with -lc since on some
6928 # systems, -lgcc has to come before -lc. If gcc already passes -lc
6929 # to ld, don't add -lc before -lgcc.
6930 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
6931 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
6933 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6935 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6936 (eval $ac_compile) 2>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } 2>conftest.err; then
6942 libobjs=conftest.$ac_objext
6944 wl=$lt_prog_compiler_wl
6950 lt_save_allow_undefined_flag=$allow_undefined_flag
6951 allow_undefined_flag=
6952 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
6953 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }
6958 archive_cmds_need_lc=no
6960 archive_cmds_need_lc=yes
6962 allow_undefined_flag=$lt_save_allow_undefined_flag
6964 cat conftest.err 1>&5
6967 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
6968 echo "${ECHO_T}$archive_cmds_need_lc" >&6
6975 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
6976 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
6978 libname_spec='lib$name'
6986 shlibpath_overrides_runpath=unknown
6988 dynamic_linker="$host_os ld.so"
6989 sys_lib_dlsearch_path_spec="/lib /usr/lib"
6990 if test "$GCC" = yes; then
6991 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
6992 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
6993 # if the path contains ";" then we assume it to be the separator
6994 # otherwise default to the standard path separator (i.e. ":") - it is
6995 # assumed that no part of a normal pathname contains ";" but that should
6996 # okay in the real world where ";" in dirpaths is itself problematic.
6997 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
6999 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7004 need_lib_prefix=unknown
7005 hardcode_into_libs=no
7007 # when you set need_version to no, make sure it does not cause -set_version
7008 # flags to be left without arguments
7009 need_version=unknown
7014 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7015 shlibpath_var=LIBPATH
7017 # AIX 3 has no versioning support, so we append a major version to the name.
7018 soname_spec='${libname}${release}${shared_ext}$major'
7025 hardcode_into_libs=yes
7026 if test "$host_cpu" = ia64; then
7027 # AIX 5 supports IA64
7028 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7029 shlibpath_var=LD_LIBRARY_PATH
7031 # With GCC up to 2.95.x, collect2 would create an import file
7032 # for dependence libraries. The import file would start with
7033 # the line `#! .'. This would cause the generated library to
7034 # depend on `.', always an invalid library. This was fixed in
7035 # development snapshots of GCC prior to 3.0.
7037 aix4 | aix4.[01] | aix4.[01].*)
7038 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7040 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7047 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7048 # soname into executable. Probably we can add versioning support to
7049 # collect2, so additional links can be useful in future.
7050 if test "$aix_use_runtimelinking" = yes; then
7051 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7052 # instead of lib<name>.a to let people know that these are not
7053 # typical AIX shared libraries.
7054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7056 # We preserve .a as extension for shared libraries through AIX4.2
7057 # and later when we are not doing run time linking.
7058 library_names_spec='${libname}${release}.a $libname.a'
7059 soname_spec='${libname}${release}${shared_ext}$major'
7061 shlibpath_var=LIBPATH
7066 library_names_spec='$libname.ixlibrary $libname.a'
7067 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7068 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'
7072 library_names_spec='${libname}${shared_ext}'
7073 dynamic_linker="$host_os ld.so"
7074 shlibpath_var=LIBRARY_PATH
7080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7081 soname_spec='${libname}${release}${shared_ext}$major'
7082 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7083 shlibpath_var=LD_LIBRARY_PATH
7084 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7085 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7086 # the default ld.so.conf also contains /usr/contrib/lib and
7087 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7088 # libtool to hard-code these into programs
7091 cygwin* | mingw* | pw32*)
7092 version_type=windows
7097 case $GCC,$host_os in
7098 yes,cygwin* | yes,mingw* | yes,pw32*)
7099 library_names_spec='$libname.dll.a'
7100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7101 postinstall_cmds='base_file=`basename \${file}`~
7102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7103 dldir=$destdir/`dirname \$dlpath`~
7104 test -d \$dldir || mkdir -p \$dldir~
7105 $install_prog $dir/$dlname \$dldir/$dlname'
7106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7107 dlpath=$dir/\$dldll~
7109 shlibpath_overrides_runpath=yes
7113 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7114 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7115 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7118 # MinGW DLLs use traditional 'lib' prefix
7119 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7120 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7121 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7122 # It is most probably a Windows format PATH printed by
7123 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7124 # path with ; separators, and with drive letters. We can handle the
7125 # drive letters (cygwin fileutils understands them), so leave them,
7126 # especially as we might pass files found there to a mingw objdump,
7127 # which wouldn't understand a cygwinified path. Ahh.
7128 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7130 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7134 # pw32 DLLs use 'pw' prefix rather than 'lib'
7135 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7141 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7144 dynamic_linker='Win32 ld.exe'
7145 # FIXME: first we should search . and the directory the executable is in
7149 darwin* | rhapsody*)
7150 dynamic_linker="$host_os dyld"
7154 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7155 soname_spec='${libname}${release}${major}$shared_ext'
7156 shlibpath_overrides_runpath=yes
7157 shlibpath_var=DYLD_LIBRARY_PATH
7158 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7159 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7160 if test "$GCC" = yes; then
7161 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"`
7163 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7165 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7173 soname_spec='${libname}${release}${shared_ext}$major'
7174 shlibpath_var=LD_LIBRARY_PATH
7185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7186 soname_spec='${libname}${release}${shared_ext}$major'
7187 shlibpath_var=LD_LIBRARY_PATH
7188 shlibpath_overrides_runpath=no
7189 hardcode_into_libs=yes
7190 dynamic_linker='GNU ld.so'
7194 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7195 version_type=freebsd-$objformat
7196 case $version_type in
7198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7203 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7207 shlibpath_var=LD_LIBRARY_PATH
7210 shlibpath_overrides_runpath=yes
7212 freebsd3.01* | freebsdelf3.01*)
7213 shlibpath_overrides_runpath=yes
7214 hardcode_into_libs=yes
7217 shlibpath_overrides_runpath=no
7218 hardcode_into_libs=yes
7227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7228 soname_spec='${libname}${release}${shared_ext}$major'
7229 shlibpath_var=LD_LIBRARY_PATH
7230 hardcode_into_libs=yes
7233 hpux9* | hpux10* | hpux11*)
7234 # Give a soname corresponding to the major version so that dld.sl refuses to
7235 # link against other versions.
7242 hardcode_into_libs=yes
7243 dynamic_linker="$host_os dld.so"
7244 shlibpath_var=LD_LIBRARY_PATH
7245 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7247 soname_spec='${libname}${release}${shared_ext}$major'
7248 if test "X$HPUX_IA64_MODE" = X32; then
7249 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7251 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7253 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7257 hardcode_into_libs=yes
7258 dynamic_linker="$host_os dld.sl"
7259 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7262 soname_spec='${libname}${release}${shared_ext}$major'
7263 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7264 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7268 dynamic_linker="$host_os dld.sl"
7269 shlibpath_var=SHLIB_PATH
7270 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7272 soname_spec='${libname}${release}${shared_ext}$major'
7275 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7276 postinstall_cmds='chmod 555 $lib'
7279 irix5* | irix6* | nonstopux*)
7281 nonstopux*) version_type=nonstopux ;;
7283 if test "$lt_cv_prog_gnu_ld" = yes; then
7291 soname_spec='${libname}${release}${shared_ext}$major'
7292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7294 irix5* | nonstopux*)
7298 case $LD in # libtool.m4 will add one of these switches to LD
7299 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7300 libsuff= shlibsuff= libmagic=32-bit;;
7301 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7302 libsuff=32 shlibsuff=N32 libmagic=N32;;
7303 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7304 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7305 *) libsuff= shlibsuff= libmagic=never-match;;
7309 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7310 shlibpath_overrides_runpath=no
7311 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7312 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7313 hardcode_into_libs=yes
7316 # No shared lib support for Linux oldld, aout, or coff.
7317 linux*oldld* | linux*aout* | linux*coff*)
7321 # This must be Linux ELF.
7326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7327 soname_spec='${libname}${release}${shared_ext}$major'
7328 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7329 shlibpath_var=LD_LIBRARY_PATH
7330 shlibpath_overrides_runpath=no
7331 # This implies no fast_install, which is unacceptable.
7332 # Some rework will be needed to allow for fast_install
7333 # before this can be enabled.
7334 hardcode_into_libs=yes
7336 # Append ld.so.conf contents to the search path
7337 if test -f /etc/ld.so.conf; then
7338 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7342 # We used to test for /lib/ld.so.1 and disable shared libraries on
7343 # powerpc, because MkLinux only supported shared libraries with the
7344 # GNU dynamic linker. Since this was broken with cross compilers,
7345 # most powerpc-linux boxes support dynamic linking these days and
7346 # people can always --disable-shared, the test was removed, and we
7347 # assume the GNU/Linux dynamic linker is in use.
7348 dynamic_linker='GNU/Linux ld.so'
7355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7356 soname_spec='${libname}${release}${shared_ext}$major'
7357 shlibpath_var=LD_LIBRARY_PATH
7358 shlibpath_overrides_runpath=no
7359 hardcode_into_libs=yes
7360 dynamic_linker='GNU ld.so'
7367 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7370 dynamic_linker='NetBSD (a.out) ld.so'
7372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7373 soname_spec='${libname}${release}${shared_ext}$major'
7374 dynamic_linker='NetBSD ld.elf_so'
7376 shlibpath_var=LD_LIBRARY_PATH
7377 shlibpath_overrides_runpath=yes
7378 hardcode_into_libs=yes
7383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7384 shlibpath_var=LD_LIBRARY_PATH
7385 shlibpath_overrides_runpath=yes
7392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7393 soname_spec='${libname}${release}${shared_ext}$major'
7394 shlibpath_var=LD_LIBRARY_PATH
7395 shlibpath_overrides_runpath=yes
7402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7403 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7404 shlibpath_var=LD_LIBRARY_PATH
7405 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7407 openbsd2.[89] | openbsd2.[89].*)
7408 shlibpath_overrides_runpath=no
7411 shlibpath_overrides_runpath=yes
7415 shlibpath_overrides_runpath=yes
7420 libname_spec='$name'
7423 library_names_spec='$libname${shared_ext} $libname.a'
7424 dynamic_linker='OS/2 ld.exe'
7425 shlibpath_var=LIBPATH
7428 osf3* | osf4* | osf5*)
7432 soname_spec='${libname}${release}${shared_ext}$major'
7433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7434 shlibpath_var=LD_LIBRARY_PATH
7435 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7436 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7441 soname_spec='${libname}${release}${shared_ext}$major'
7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7443 shlibpath_var=LD_LIBRARY_PATH
7450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7451 soname_spec='${libname}${release}${shared_ext}$major'
7452 shlibpath_var=LD_LIBRARY_PATH
7453 shlibpath_overrides_runpath=yes
7454 hardcode_into_libs=yes
7455 # ldd complains unless libraries are executable
7456 postinstall_cmds='chmod +x $lib'
7461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7462 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
7463 shlibpath_var=LD_LIBRARY_PATH
7464 shlibpath_overrides_runpath=yes
7465 if test "$with_gnu_ld" = yes; then
7471 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
7473 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7474 soname_spec='${libname}${release}${shared_ext}$major'
7475 shlibpath_var=LD_LIBRARY_PATH
7476 case $host_vendor in
7478 shlibpath_overrides_runpath=no
7480 export_dynamic_flag_spec='${wl}-Blargedynsym'
7481 runpath_var=LD_RUN_PATH
7489 shlibpath_overrides_runpath=no
7490 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
7496 if test -d /usr/nec ;then
7498 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
7499 soname_spec='$libname${shared_ext}.$major'
7500 shlibpath_var=LD_LIBRARY_PATH
7506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7507 soname_spec='${libname}${release}${shared_ext}$major'
7508 shlibpath_var=LD_LIBRARY_PATH
7515 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
7516 echo "${ECHO_T}$dynamic_linker" >&6
7517 test "$dynamic_linker" = no && can_build_shared=no
7519 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7520 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7522 if test -n "$hardcode_libdir_flag_spec" || \
7523 test -n "$runpath_var" || \
7524 test "X$hardcode_automatic" = "Xyes" ; then
7526 # We can hardcode non-existant directories.
7527 if test "$hardcode_direct" != no &&
7528 # If the only mechanism to avoid hardcoding is shlibpath_var, we
7529 # have to relink, otherwise we might link with an installed library
7530 # when we should be linking with a yet-to-be-installed one
7531 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7532 test "$hardcode_minus_L" != no; then
7533 # Linking always hardcodes the temporary library directory.
7534 hardcode_action=relink
7536 # We can link without hardcoding, and we can hardcode nonexisting dirs.
7537 hardcode_action=immediate
7540 # We cannot hardcode anything, or else we can only hardcode existing
7542 hardcode_action=unsupported
7544 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7545 echo "${ECHO_T}$hardcode_action" >&6
7547 if test "$hardcode_action" = relink; then
7548 # Fast installation is not supported
7549 enable_fast_install=no
7550 elif test "$shlibpath_overrides_runpath" = yes ||
7551 test "$enable_shared" = no; then
7552 # Fast installation is not necessary
7553 enable_fast_install=needless
7558 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7559 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7560 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7561 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7562 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7563 echo "$as_me:$LINENO: result: yes" >&5
7564 echo "${ECHO_T}yes" >&6
7566 # FIXME - insert some real tests, host_os isn't really good enough
7569 if test -n "$STRIP" ; then
7570 striplib="$STRIP -x"
7571 echo "$as_me:$LINENO: result: yes" >&5
7572 echo "${ECHO_T}yes" >&6
7574 echo "$as_me:$LINENO: result: no" >&5
7575 echo "${ECHO_T}no" >&6
7579 echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6
7585 if test "x$enable_dlopen" != xyes; then
7586 enable_dlopen=unknown
7587 enable_dlopen_self=unknown
7588 enable_dlopen_self_static=unknown
7595 lt_cv_dlopen="load_add_on"
7597 lt_cv_dlopen_self=yes
7601 lt_cv_dlopen="LoadLibrary"
7606 lt_cv_dlopen="dlopen"
7611 # if libdl is installed we need to link against it
7612 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7613 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7614 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7615 echo $ECHO_N "(cached) $ECHO_C" >&6
7617 ac_check_lib_save_LIBS=$LIBS
7619 cat >conftest.$ac_ext <<_ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7626 /* Override any gcc2 internal prototype to avoid an error. */
7630 /* We use char because int might match the return type of a gcc2
7631 builtin and then its argument prototype would still apply. */
7641 rm -f conftest.$ac_objext conftest$ac_exeext
7642 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7643 (eval $ac_link) 2>conftest.er1
7645 grep -v '^ *+' conftest.er1 >conftest.err
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } &&
7650 { ac_try='test -z "$ac_c_werror_flag"
7651 || test ! -s conftest.err'
7652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); }; } &&
7657 { ac_try='test -s conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 ac_cv_lib_dl_dlopen=yes
7665 echo "$as_me: failed program was:" >&5
7666 sed 's/^/| /' conftest.$ac_ext >&5
7668 ac_cv_lib_dl_dlopen=no
7670 rm -f conftest.err conftest.$ac_objext \
7671 conftest$ac_exeext conftest.$ac_ext
7672 LIBS=$ac_check_lib_save_LIBS
7674 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
7675 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
7676 if test $ac_cv_lib_dl_dlopen = yes; then
7677 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
7682 lt_cv_dlopen_self=yes
7689 echo "$as_me:$LINENO: checking for shl_load" >&5
7690 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
7691 if test "${ac_cv_func_shl_load+set}" = set; then
7692 echo $ECHO_N "(cached) $ECHO_C" >&6
7694 cat >conftest.$ac_ext <<_ACEOF
7697 cat confdefs.h >>conftest.$ac_ext
7698 cat >>conftest.$ac_ext <<_ACEOF
7699 /* end confdefs.h. */
7700 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
7701 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7702 #define shl_load innocuous_shl_load
7704 /* System header to define __stub macros and hopefully few prototypes,
7705 which can conflict with char shl_load (); below.
7706 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707 <limits.h> exists even on freestanding compilers. */
7710 # include <limits.h>
7712 # include <assert.h>
7717 /* Override any gcc2 internal prototype to avoid an error. */
7722 /* We use char because int might match the return type of a gcc2
7723 builtin and then its argument prototype would still apply. */
7725 /* The GNU C library defines this for functions which it implements
7726 to always fail with ENOSYS. Some functions are actually named
7727 something starting with __ and the normal name is an alias. */
7728 #if defined (__stub_shl_load) || defined (__stub___shl_load)
7731 char (*f) () = shl_load;
7740 return f != shl_load;
7745 rm -f conftest.$ac_objext conftest$ac_exeext
7746 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7747 (eval $ac_link) 2>conftest.er1
7749 grep -v '^ *+' conftest.er1 >conftest.err
7751 cat conftest.err >&5
7752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7753 (exit $ac_status); } &&
7754 { ac_try='test -z "$ac_c_werror_flag"
7755 || test ! -s conftest.err'
7756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); }; } &&
7761 { ac_try='test -s conftest$ac_exeext'
7762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); }; }; then
7767 ac_cv_func_shl_load=yes
7769 echo "$as_me: failed program was:" >&5
7770 sed 's/^/| /' conftest.$ac_ext >&5
7772 ac_cv_func_shl_load=no
7774 rm -f conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7777 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
7778 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
7779 if test $ac_cv_func_shl_load = yes; then
7780 lt_cv_dlopen="shl_load"
7782 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
7783 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
7784 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7787 ac_check_lib_save_LIBS=$LIBS
7789 cat >conftest.$ac_ext <<_ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7796 /* Override any gcc2 internal prototype to avoid an error. */
7800 /* We use char because int might match the return type of a gcc2
7801 builtin and then its argument prototype would still apply. */
7811 rm -f conftest.$ac_objext conftest$ac_exeext
7812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7813 (eval $ac_link) 2>conftest.er1
7815 grep -v '^ *+' conftest.er1 >conftest.err
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_c_werror_flag"
7821 || test ! -s conftest.err'
7822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); }; } &&
7827 { ac_try='test -s conftest$ac_exeext'
7828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); }; }; then
7833 ac_cv_lib_dld_shl_load=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 ac_cv_lib_dld_shl_load=no
7840 rm -f conftest.err conftest.$ac_objext \
7841 conftest$ac_exeext conftest.$ac_ext
7842 LIBS=$ac_check_lib_save_LIBS
7844 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
7845 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
7846 if test $ac_cv_lib_dld_shl_load = yes; then
7847 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
7849 echo "$as_me:$LINENO: checking for dlopen" >&5
7850 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
7851 if test "${ac_cv_func_dlopen+set}" = set; then
7852 echo $ECHO_N "(cached) $ECHO_C" >&6
7854 cat >conftest.$ac_ext <<_ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
7859 /* end confdefs.h. */
7860 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
7861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7862 #define dlopen innocuous_dlopen
7864 /* System header to define __stub macros and hopefully few prototypes,
7865 which can conflict with char dlopen (); below.
7866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7867 <limits.h> exists even on freestanding compilers. */
7870 # include <limits.h>
7872 # include <assert.h>
7877 /* Override any gcc2 internal prototype to avoid an error. */
7882 /* We use char because int might match the return type of a gcc2
7883 builtin and then its argument prototype would still apply. */
7885 /* The GNU C library defines this for functions which it implements
7886 to always fail with ENOSYS. Some functions are actually named
7887 something starting with __ and the normal name is an alias. */
7888 #if defined (__stub_dlopen) || defined (__stub___dlopen)
7891 char (*f) () = dlopen;
7905 rm -f conftest.$ac_objext conftest$ac_exeext
7906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7907 (eval $ac_link) 2>conftest.er1
7909 grep -v '^ *+' conftest.er1 >conftest.err
7911 cat conftest.err >&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } &&
7914 { ac_try='test -z "$ac_c_werror_flag"
7915 || test ! -s conftest.err'
7916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7920 (exit $ac_status); }; } &&
7921 { ac_try='test -s conftest$ac_exeext'
7922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7926 (exit $ac_status); }; }; then
7927 ac_cv_func_dlopen=yes
7929 echo "$as_me: failed program was:" >&5
7930 sed 's/^/| /' conftest.$ac_ext >&5
7932 ac_cv_func_dlopen=no
7934 rm -f conftest.err conftest.$ac_objext \
7935 conftest$ac_exeext conftest.$ac_ext
7937 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
7938 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
7939 if test $ac_cv_func_dlopen = yes; then
7940 lt_cv_dlopen="dlopen"
7942 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
7943 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
7944 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7947 ac_check_lib_save_LIBS=$LIBS
7949 cat >conftest.$ac_ext <<_ACEOF
7952 cat confdefs.h >>conftest.$ac_ext
7953 cat >>conftest.$ac_ext <<_ACEOF
7954 /* end confdefs.h. */
7956 /* Override any gcc2 internal prototype to avoid an error. */
7960 /* We use char because int might match the return type of a gcc2
7961 builtin and then its argument prototype would still apply. */
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7973 (eval $ac_link) 2>conftest.er1
7975 grep -v '^ *+' conftest.er1 >conftest.err
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } &&
7980 { ac_try='test -z "$ac_c_werror_flag"
7981 || test ! -s conftest.err'
7982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); }; } &&
7987 { ac_try='test -s conftest$ac_exeext'
7988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7992 (exit $ac_status); }; }; then
7993 ac_cv_lib_dl_dlopen=yes
7995 echo "$as_me: failed program was:" >&5
7996 sed 's/^/| /' conftest.$ac_ext >&5
7998 ac_cv_lib_dl_dlopen=no
8000 rm -f conftest.err conftest.$ac_objext \
8001 conftest$ac_exeext conftest.$ac_ext
8002 LIBS=$ac_check_lib_save_LIBS
8004 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8005 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8006 if test $ac_cv_lib_dl_dlopen = yes; then
8007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8009 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8010 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8011 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8012 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_check_lib_save_LIBS=$LIBS
8016 cat >conftest.$ac_ext <<_ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8023 /* Override any gcc2 internal prototype to avoid an error. */
8027 /* We use char because int might match the return type of a gcc2
8028 builtin and then its argument prototype would still apply. */
8038 rm -f conftest.$ac_objext conftest$ac_exeext
8039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8040 (eval $ac_link) 2>conftest.er1
8042 grep -v '^ *+' conftest.er1 >conftest.err
8044 cat conftest.err >&5
8045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8046 (exit $ac_status); } &&
8047 { ac_try='test -z "$ac_c_werror_flag"
8048 || test ! -s conftest.err'
8049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); }; } &&
8054 { ac_try='test -s conftest$ac_exeext'
8055 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); }; }; then
8060 ac_cv_lib_svld_dlopen=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 ac_cv_lib_svld_dlopen=no
8067 rm -f conftest.err conftest.$ac_objext \
8068 conftest$ac_exeext conftest.$ac_ext
8069 LIBS=$ac_check_lib_save_LIBS
8071 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8072 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8073 if test $ac_cv_lib_svld_dlopen = yes; then
8074 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8076 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8077 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8078 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8079 echo $ECHO_N "(cached) $ECHO_C" >&6
8081 ac_check_lib_save_LIBS=$LIBS
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8090 /* Override any gcc2 internal prototype to avoid an error. */
8094 /* We use char because int might match the return type of a gcc2
8095 builtin and then its argument prototype would still apply. */
8105 rm -f conftest.$ac_objext conftest$ac_exeext
8106 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8107 (eval $ac_link) 2>conftest.er1
8109 grep -v '^ *+' conftest.er1 >conftest.err
8111 cat conftest.err >&5
8112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8113 (exit $ac_status); } &&
8114 { ac_try='test -z "$ac_c_werror_flag"
8115 || test ! -s conftest.err'
8116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); }; } &&
8121 { ac_try='test -s conftest$ac_exeext'
8122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); }; }; then
8127 ac_cv_lib_dld_dld_link=yes
8129 echo "$as_me: failed program was:" >&5
8130 sed 's/^/| /' conftest.$ac_ext >&5
8132 ac_cv_lib_dld_dld_link=no
8134 rm -f conftest.err conftest.$ac_objext \
8135 conftest$ac_exeext conftest.$ac_ext
8136 LIBS=$ac_check_lib_save_LIBS
8138 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8139 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8140 if test $ac_cv_lib_dld_dld_link = yes; then
8141 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8162 if test "x$lt_cv_dlopen" != xno; then
8168 case $lt_cv_dlopen in
8170 save_CPPFLAGS="$CPPFLAGS"
8171 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8173 save_LDFLAGS="$LDFLAGS"
8174 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8177 LIBS="$lt_cv_dlopen_libs $LIBS"
8179 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8180 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8181 if test "${lt_cv_dlopen_self+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8184 if test "$cross_compiling" = yes; then :
8185 lt_cv_dlopen_self=cross
8187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8188 lt_status=$lt_dlunknown
8189 cat > conftest.$ac_ext <<EOF
8190 #line 8190 "configure"
8191 #include "confdefs.h"
8200 # define LT_DLGLOBAL RTLD_GLOBAL
8203 # define LT_DLGLOBAL DL_GLOBAL
8205 # define LT_DLGLOBAL 0
8209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8210 find out it does not work in some platform. */
8211 #ifndef LT_DLLAZY_OR_NOW
8213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8216 # define LT_DLLAZY_OR_NOW DL_LAZY
8219 # define LT_DLLAZY_OR_NOW RTLD_NOW
8222 # define LT_DLLAZY_OR_NOW DL_NOW
8224 # define LT_DLLAZY_OR_NOW 0
8232 extern "C" void exit (int);
8235 void fnord() { int i=42;}
8238 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8239 int status = $lt_dlunknown;
8243 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8244 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8245 /* dlclose (self); */
8251 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8252 (eval $ac_link) 2>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8256 (./conftest; exit; ) 2>/dev/null
8259 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8260 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8261 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8264 # compilation failed
8265 lt_cv_dlopen_self=no
8272 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8273 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8275 if test "x$lt_cv_dlopen_self" = xyes; then
8276 LDFLAGS="$LDFLAGS $link_static_flag"
8277 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8278 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8279 if test "${lt_cv_dlopen_self_static+set}" = set; then
8280 echo $ECHO_N "(cached) $ECHO_C" >&6
8282 if test "$cross_compiling" = yes; then :
8283 lt_cv_dlopen_self_static=cross
8285 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8286 lt_status=$lt_dlunknown
8287 cat > conftest.$ac_ext <<EOF
8288 #line 8288 "configure"
8289 #include "confdefs.h"
8298 # define LT_DLGLOBAL RTLD_GLOBAL
8301 # define LT_DLGLOBAL DL_GLOBAL
8303 # define LT_DLGLOBAL 0
8307 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8308 find out it does not work in some platform. */
8309 #ifndef LT_DLLAZY_OR_NOW
8311 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8314 # define LT_DLLAZY_OR_NOW DL_LAZY
8317 # define LT_DLLAZY_OR_NOW RTLD_NOW
8320 # define LT_DLLAZY_OR_NOW DL_NOW
8322 # define LT_DLLAZY_OR_NOW 0
8330 extern "C" void exit (int);
8333 void fnord() { int i=42;}
8336 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8337 int status = $lt_dlunknown;
8341 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8342 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8343 /* dlclose (self); */
8349 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8350 (eval $ac_link) 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8354 (./conftest; exit; ) 2>/dev/null
8357 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8358 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8359 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8362 # compilation failed
8363 lt_cv_dlopen_self_static=no
8370 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8371 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8374 CPPFLAGS="$save_CPPFLAGS"
8375 LDFLAGS="$save_LDFLAGS"
8380 case $lt_cv_dlopen_self in
8381 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8382 *) enable_dlopen_self=unknown ;;
8385 case $lt_cv_dlopen_self_static in
8386 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8387 *) enable_dlopen_self_static=unknown ;;
8392 # Report which librarie types wil actually be built
8393 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8394 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8395 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8396 echo "${ECHO_T}$can_build_shared" >&6
8398 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8399 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8400 test "$can_build_shared" = "no" && enable_shared=no
8402 # On AIX, shared libraries and static libraries use the same namespace, and
8403 # are all built from PIC.
8406 test "$enable_shared" = yes && enable_static=no
8407 if test -n "$RANLIB"; then
8408 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8409 postinstall_cmds='$RANLIB $lib'
8414 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8415 test "$enable_shared" = yes && enable_static=no
8419 echo "$as_me:$LINENO: result: $enable_shared" >&5
8420 echo "${ECHO_T}$enable_shared" >&6
8422 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8423 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8424 # Make sure either enable_shared or enable_static is yes.
8425 test "$enable_shared" = yes || enable_static=yes
8426 echo "$as_me:$LINENO: result: $enable_static" >&5
8427 echo "${ECHO_T}$enable_static" >&6
8429 # The else clause should only fire when bootstrapping the
8430 # libtool distribution, otherwise you forgot to ship ltmain.sh
8431 # with your package, and you will get complaints that there are
8432 # no rules to generate ltmain.sh.
8433 if test -f "$ltmain"; then
8434 # See if we are running on zsh, and set the options which allow our commands through
8435 # without removal of \ escapes.
8436 if test -n "${ZSH_VERSION+set}" ; then
8437 setopt NO_GLOB_SUBST
8439 # Now quote all the things that may contain metacharacters while being
8440 # careful not to overquote the AC_SUBSTed values. We take copies of the
8441 # variables and quote the copies for generation of the libtool script.
8442 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
8444 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8445 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8446 deplibs_check_method reload_flag reload_cmds need_locks \
8447 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8448 lt_cv_sys_global_symbol_to_c_name_address \
8449 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8450 old_postinstall_cmds old_postuninstall_cmds \
8454 lt_prog_compiler_wl \
8455 lt_prog_compiler_pic \
8456 lt_prog_compiler_static \
8457 lt_prog_compiler_no_builtin_flag \
8458 export_dynamic_flag_spec \
8459 thread_safe_flag_spec \
8460 whole_archive_flag_spec \
8461 enable_shared_with_static_runtimes \
8463 old_archive_from_new_cmds \
8468 compiler_lib_search_path \
8470 archive_expsym_cmds \
8472 postuninstall_cmds \
8473 old_archive_from_expsyms_cmds \
8474 allow_undefined_flag \
8476 export_symbols_cmds \
8477 hardcode_libdir_flag_spec \
8478 hardcode_libdir_flag_spec_ld \
8479 hardcode_libdir_separator \
8480 hardcode_automatic \
8482 module_expsym_cmds \
8483 lt_cv_prog_compiler_c_o \
8488 old_archive_cmds | \
8489 old_archive_from_new_cmds | \
8491 archive_expsym_cmds | \
8493 module_expsym_cmds | \
8494 old_archive_from_expsyms_cmds | \
8495 export_symbols_cmds | \
8496 extract_expsyms_cmds | reload_cmds | finish_cmds | \
8497 postinstall_cmds | postuninstall_cmds | \
8498 old_postinstall_cmds | old_postuninstall_cmds | \
8499 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
8500 # Double-quote double-evaled strings.
8501 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
8504 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
8510 *'\$0 --fallback-echo"')
8511 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
8516 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
8518 { echo "$as_me:$LINENO: creating $ofile" >&5
8519 echo "$as_me: creating $ofile" >&6;}
8521 cat <<__EOF__ >> "$cfgfile"
8524 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
8525 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
8526 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
8528 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
8529 # Free Software Foundation, Inc.
8531 # This file is part of GNU Libtool:
8532 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
8534 # This program is free software; you can redistribute it and/or modify
8535 # it under the terms of the GNU General Public License as published by
8536 # the Free Software Foundation; either version 2 of the License, or
8537 # (at your option) any later version.
8539 # This program is distributed in the hope that it will be useful, but
8540 # WITHOUT ANY WARRANTY; without even the implied warranty of
8541 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8542 # General Public License for more details.
8544 # You should have received a copy of the GNU General Public License
8545 # along with this program; if not, write to the Free Software
8546 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
8548 # As a special exception to the GNU General Public License, if you
8549 # distribute this file as part of a program that contains a
8550 # configuration script generated by Autoconf, you may include it under
8551 # the same distribution terms that you use for the rest of that program.
8553 # A sed program that does not truncate output.
8556 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
8557 Xsed="$SED -e s/^X//"
8559 # The HP-UX ksh and POSIX shell print the target directory to stdout
8561 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8563 # The names of the tagged configurations supported by this script.
8566 # ### BEGIN LIBTOOL CONFIG
8568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
8570 # Shell to use when invoking shell scripts.
8573 # Whether or not to build shared libraries.
8574 build_libtool_libs=$enable_shared
8576 # Whether or not to build static libraries.
8577 build_old_libs=$enable_static
8579 # Whether or not to add -lc for building shared libraries.
8580 build_libtool_need_lc=$archive_cmds_need_lc
8582 # Whether or not to disallow shared libs when runtime libs are static
8583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
8585 # Whether or not to optimize for fast installation.
8586 fast_install=$enable_fast_install
8589 host_alias=$host_alias
8592 # An echo program that does not interpret backslashes.
8597 AR_FLAGS=$lt_AR_FLAGS
8602 # A language-specific compiler.
8605 # Is the compiler the GNU C compiler?
8611 # The linker used to build libraries.
8614 # Whether we need hard or soft links.
8617 # A BSD-compatible nm program.
8620 # A symbol stripping program
8623 # Used to examine libraries when file_magic_cmd begins "file"
8624 MAGIC_CMD=$MAGIC_CMD
8626 # Used on cygwin: DLL creation program.
8629 # Used on cygwin: object dumper.
8632 # Used on cygwin: assembler.
8635 # The name of the directory that contains temporary libtool files.
8638 # How to create reloadable object files.
8639 reload_flag=$lt_reload_flag
8640 reload_cmds=$lt_reload_cmds
8642 # How to pass a linker flag through the compiler.
8643 wl=$lt_lt_prog_compiler_wl
8645 # Object file suffix (normally "o").
8648 # Old archive suffix (normally "a").
8651 # Shared library suffix (normally ".so").
8652 shrext_cmds='$shrext_cmds'
8654 # Executable file suffix (normally "").
8657 # Additional compiler flags for building library objects.
8658 pic_flag=$lt_lt_prog_compiler_pic
8661 # What is the maximum length of a command?
8662 max_cmd_len=$lt_cv_sys_max_cmd_len
8664 # Does compiler simultaneously support -c and -o options?
8665 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
8667 # Must we lock files when doing compilation ?
8668 need_locks=$lt_need_locks
8670 # Do we need the lib prefix for modules?
8671 need_lib_prefix=$need_lib_prefix
8673 # Do we need a version for libraries?
8674 need_version=$need_version
8676 # Whether dlopen is supported.
8677 dlopen_support=$enable_dlopen
8679 # Whether dlopen of programs is supported.
8680 dlopen_self=$enable_dlopen_self
8682 # Whether dlopen of statically linked programs is supported.
8683 dlopen_self_static=$enable_dlopen_self_static
8685 # Compiler flag to prevent dynamic linking.
8686 link_static_flag=$lt_lt_prog_compiler_static
8688 # Compiler flag to turn off builtin functions.
8689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
8691 # Compiler flag to allow reflexive dlopens.
8692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
8694 # Compiler flag to generate shared objects directly from archives.
8695 whole_archive_flag_spec=$lt_whole_archive_flag_spec
8697 # Compiler flag to generate thread-safe objects.
8698 thread_safe_flag_spec=$lt_thread_safe_flag_spec
8700 # Library versioning type.
8701 version_type=$version_type
8703 # Format of library name prefix.
8704 libname_spec=$lt_libname_spec
8706 # List of archive names. First name is the real one, the rest are links.
8707 # The last name is the one that the linker finds with -lNAME.
8708 library_names_spec=$lt_library_names_spec
8710 # The coded name of the library, if different from the real name.
8711 soname_spec=$lt_soname_spec
8713 # Commands used to build and install an old-style archive.
8715 old_archive_cmds=$lt_old_archive_cmds
8716 old_postinstall_cmds=$lt_old_postinstall_cmds
8717 old_postuninstall_cmds=$lt_old_postuninstall_cmds
8719 # Create an old-style archive from a shared archive.
8720 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
8722 # Create a temporary old-style archive to link instead of a shared archive.
8723 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
8725 # Commands used to build and install a shared archive.
8726 archive_cmds=$lt_archive_cmds
8727 archive_expsym_cmds=$lt_archive_expsym_cmds
8728 postinstall_cmds=$lt_postinstall_cmds
8729 postuninstall_cmds=$lt_postuninstall_cmds
8731 # Commands used to build a loadable module (assumed same as above if empty)
8732 module_cmds=$lt_module_cmds
8733 module_expsym_cmds=$lt_module_expsym_cmds
8735 # Commands to strip libraries.
8736 old_striplib=$lt_old_striplib
8737 striplib=$lt_striplib
8739 # Dependencies to place before the objects being linked to create a
8741 predep_objects=$lt_predep_objects
8743 # Dependencies to place after the objects being linked to create a
8745 postdep_objects=$lt_postdep_objects
8747 # Dependencies to place before the objects being linked to create a
8751 # Dependencies to place after the objects being linked to create a
8753 postdeps=$lt_postdeps
8755 # The library search path used internally by the compiler when linking
8757 compiler_lib_search_path=$lt_compiler_lib_search_path
8759 # Method to check whether dependent libraries are shared objects.
8760 deplibs_check_method=$lt_deplibs_check_method
8762 # Command to use when deplibs_check_method == file_magic.
8763 file_magic_cmd=$lt_file_magic_cmd
8765 # Flag that allows shared libraries with undefined symbols to be built.
8766 allow_undefined_flag=$lt_allow_undefined_flag
8768 # Flag that forces no undefined symbols.
8769 no_undefined_flag=$lt_no_undefined_flag
8771 # Commands used to finish a libtool library installation in a directory.
8772 finish_cmds=$lt_finish_cmds
8774 # Same as above, but a single script fragment to be evaled but not shown.
8775 finish_eval=$lt_finish_eval
8777 # Take the output of nm and produce a listing of raw symbols and C names.
8778 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
8780 # Transform the output of nm in a proper C declaration
8781 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
8783 # Transform the output of nm in a C name address pair
8784 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
8786 # This is the shared library runtime path variable.
8787 runpath_var=$runpath_var
8789 # This is the shared library path variable.
8790 shlibpath_var=$shlibpath_var
8792 # Is shlibpath searched before the hard-coded library search path?
8793 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
8795 # How to hardcode a shared library path into an executable.
8796 hardcode_action=$hardcode_action
8798 # Whether we should hardcode library paths into libraries.
8799 hardcode_into_libs=$hardcode_into_libs
8801 # Flag to hardcode \$libdir into a binary during linking.
8802 # This must work even if \$libdir does not exist.
8803 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
8805 # If ld is used when linking, flag to hardcode \$libdir into
8806 # a binary during linking. This must work even if \$libdir does
8808 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
8810 # Whether we need a single -rpath flag with a separated argument.
8811 hardcode_libdir_separator=$lt_hardcode_libdir_separator
8813 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
8815 hardcode_direct=$hardcode_direct
8817 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
8819 hardcode_minus_L=$hardcode_minus_L
8821 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
8822 # the resulting binary.
8823 hardcode_shlibpath_var=$hardcode_shlibpath_var
8825 # Set to yes if building a shared library automatically hardcodes DIR into the library
8826 # and all subsequent libraries and executables linked against it.
8827 hardcode_automatic=$hardcode_automatic
8829 # Variables whose values should be saved in libtool wrapper scripts and
8830 # restored at relink time.
8831 variables_saved_for_relink="$variables_saved_for_relink"
8833 # Whether libtool must link a program against all its dependency libraries.
8834 link_all_deplibs=$link_all_deplibs
8836 # Compile-time system search path for libraries
8837 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
8839 # Run-time system search path for libraries
8840 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
8842 # Fix the shell variable \$srcfile for the compiler.
8843 fix_srcfile_path="$fix_srcfile_path"
8845 # Set to yes if exported symbols are required.
8846 always_export_symbols=$always_export_symbols
8848 # The commands to list exported symbols.
8849 export_symbols_cmds=$lt_export_symbols_cmds
8851 # The commands to extract the exported symbol list from a shared archive.
8852 extract_expsyms_cmds=$lt_extract_expsyms_cmds
8854 # Symbols that should not be listed in the preloaded symbols.
8855 exclude_expsyms=$lt_exclude_expsyms
8857 # Symbols that must always be exported.
8858 include_expsyms=$lt_include_expsyms
8860 # ### END LIBTOOL CONFIG
8867 cat <<\EOF >> "$cfgfile"
8869 # AIX sometimes has problems with the GCC collect2 program. For some
8870 # reason, if we set the COLLECT_NAMES environment variable, the problems
8871 # vanish in a puff of smoke.
8872 if test "X${COLLECT_NAMES+set}" != Xset; then
8874 export COLLECT_NAMES
8880 # We use sed instead of cat because bash on DJGPP gets confused if
8881 # if finds mixed CR/LF and LF-only lines. Since sed operates in
8882 # text mode, it properly converts lines to CR/LF. This bash problem
8883 # is reportedly fixed, but why not run on old versions too?
8884 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
8886 mv -f "$cfgfile" "$ofile" || \
8887 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
8891 # If there is no Makefile yet, we rely on a make rule to execute
8892 # `config.status --recheck' to rerun these tests and create the
8893 # libtool script then.
8894 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
8895 if test -f "$ltmain_in"; then
8896 test -f Makefile && make "$ltmain"
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8910 # Check whether --with-tags or --without-tags was given.
8911 if test "${with_tags+set}" = set; then
8912 withval="$with_tags"
8916 if test -f "$ltmain" && test -n "$tagnames"; then
8917 if test ! -f "${ofile}"; then
8918 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
8919 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
8922 if test -z "$LTCC"; then
8923 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
8924 if test -z "$LTCC"; then
8925 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
8926 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
8928 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
8929 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
8933 # Extract list of available tagged configurations in $ofile.
8934 # Note that this assumes the entire list is on one line.
8935 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
8937 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8938 for tagname in $tagnames; do
8940 # Check whether tagname contains only valid characters
8941 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
8943 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
8944 echo "$as_me: error: invalid tag name: $tagname" >&2;}
8945 { (exit 1); exit 1; }; }
8949 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
8951 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
8952 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
8953 { (exit 1); exit 1; }; }
8956 # Update the list of available tags.
8957 if test -n "$tagname"; then
8958 echo appending configuration tag \"$tagname\" to $ofile
8962 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
8963 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
8964 (test "X$CXX" != "Xg++"))) ; then
8966 ac_cpp='$CXXCPP $CPPFLAGS'
8967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8974 archive_cmds_need_lc_CXX=no
8975 allow_undefined_flag_CXX=
8976 always_export_symbols_CXX=no
8977 archive_expsym_cmds_CXX=
8978 export_dynamic_flag_spec_CXX=
8979 hardcode_direct_CXX=no
8980 hardcode_libdir_flag_spec_CXX=
8981 hardcode_libdir_flag_spec_ld_CXX=
8982 hardcode_libdir_separator_CXX=
8983 hardcode_minus_L_CXX=no
8984 hardcode_automatic_CXX=no
8986 module_expsym_cmds_CXX=
8987 link_all_deplibs_CXX=unknown
8988 old_archive_cmds_CXX=$old_archive_cmds
8989 no_undefined_flag_CXX=
8990 whole_archive_flag_spec_CXX=
8991 enable_shared_with_static_runtimes_CXX=no
8993 # Dependencies to place before and after the object being linked:
8995 postdep_objects_CXX=
8998 compiler_lib_search_path_CXX=
9000 # Source file extension for C++ test sources.
9003 # Object file extension for compiled C++ test sources.
9007 # Code to be used in simple compile tests
9008 lt_simple_compile_test_code="int some_variable = 0;\n"
9010 # Code to be used in simple link tests
9011 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9015 # If no C compiler was specified, use CC.
9018 # Allow CC to be a program name with arguments.
9022 # Allow CC to be a program name with arguments.
9027 lt_save_with_gnu_ld=$with_gnu_ld
9028 lt_save_path_LD=$lt_cv_path_LD
9029 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9030 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9032 unset lt_cv_prog_gnu_ld
9034 if test -n "${lt_cv_path_LDCXX+set}"; then
9035 lt_cv_path_LD=$lt_cv_path_LDCXX
9039 test -z "${LDCXX+set}" || LD=$LDCXX
9043 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9045 # We don't want -fno-exception wen compiling C++ code, so set the
9046 # no_builtin_flag separately
9047 if test "$GXX" = yes; then
9048 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9050 lt_prog_compiler_no_builtin_flag_CXX=
9053 if test "$GXX" = yes; then
9054 # Set up default GNU C++ configuration
9057 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9058 if test "${with_gnu_ld+set}" = set; then
9059 withval="$with_gnu_ld"
9060 test "$withval" = no || with_gnu_ld=yes
9065 if test "$GCC" = yes; then
9066 # Check if gcc -print-prog-name=ld gives a path.
9067 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9068 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9071 # gcc leaves a trailing carriage return which upsets mingw
9072 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9074 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9077 # Accept absolute paths.
9079 re_direlt='/[^/][^/]*/\.\./'
9080 # Canonicalize the pathname of ld
9081 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9082 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9083 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9085 test -z "$LD" && LD="$ac_prog"
9088 # If it fails, then pretend we aren't using GCC.
9092 # If it is relative, then search for the first ld in PATH.
9096 elif test "$with_gnu_ld" = yes; then
9097 echo "$as_me:$LINENO: checking for GNU ld" >&5
9098 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9100 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9101 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9103 if test "${lt_cv_path_LD+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 if test -z "$LD"; then
9107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9108 for ac_dir in $PATH; do
9110 test -z "$ac_dir" && ac_dir=.
9111 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9112 lt_cv_path_LD="$ac_dir/$ac_prog"
9113 # Check to see if the program is GNU ld. I'd rather use --version,
9114 # but apparently some GNU ld's only accept -v.
9115 # Break only if it was the GNU/non-GNU ld that we prefer.
9116 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9117 *GNU* | *'with BFD'*)
9118 test "$with_gnu_ld" != no && break
9121 test "$with_gnu_ld" != yes && break
9128 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9133 if test -n "$LD"; then
9134 echo "$as_me:$LINENO: result: $LD" >&5
9135 echo "${ECHO_T}$LD" >&6
9137 echo "$as_me:$LINENO: result: no" >&5
9138 echo "${ECHO_T}no" >&6
9140 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9141 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9142 { (exit 1); exit 1; }; }
9143 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9144 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9145 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9149 case `$LD -v 2>&1 </dev/null` in
9150 *GNU* | *'with BFD'*)
9151 lt_cv_prog_gnu_ld=yes
9154 lt_cv_prog_gnu_ld=no
9158 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9159 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9160 with_gnu_ld=$lt_cv_prog_gnu_ld
9164 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9165 # archiving commands below assume that GNU ld is being used.
9166 if test "$with_gnu_ld" = yes; then
9167 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9168 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'
9170 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9171 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9173 # If archive_cmds runs LD, not CC, wlarc should be empty
9174 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9175 # investigate it a little bit more. (MM)
9178 # ancient GNU ld didn't support --whole-archive et. al.
9179 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9180 grep 'no-whole-archive' > /dev/null; then
9181 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9183 whole_archive_flag_spec_CXX=
9189 # A generic and very simple default shared library creation
9190 # command for GNU C++ for the case where it uses the native
9191 # linker, instead of GNU ld. If possible, this setting should
9192 # overridden to take advantage of the native linker features on
9193 # the platform it is being used on.
9194 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9197 # Commands to make compiler produce verbose output that lists
9198 # what "hidden" libraries, object files and flags are used when
9199 # linking a shared library.
9200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9208 # PORTME: fill in a description of your system's C++ link characteristics
9209 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9210 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9214 # FIXME: insert proper C++ library support
9218 if test "$host_cpu" = ia64; then
9219 # On IA64, the linker does run time linking by default, so we don't
9220 # have to do anything special.
9221 aix_use_runtimelinking=no
9222 exp_sym_flag='-Bexport'
9225 aix_use_runtimelinking=no
9227 # Test if we are trying to use run time linking or normal
9228 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9229 # need to do runtime linking.
9230 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9231 for ld_flag in $LDFLAGS; do
9234 aix_use_runtimelinking=yes
9241 exp_sym_flag='-bexport'
9242 no_entry_flag='-bnoentry'
9245 # When large executables or shared objects are built, AIX ld can
9246 # have problems creating the table of contents. If linking a library
9247 # or program results in "error TOC overflow" add -mminimal-toc to
9248 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9249 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9252 hardcode_direct_CXX=yes
9253 hardcode_libdir_separator_CXX=':'
9254 link_all_deplibs_CXX=yes
9256 if test "$GXX" = yes; then
9257 case $host_os in aix4.012|aix4.012.*)
9258 # We only want to do this on AIX 4.2 and lower, the check
9259 # below for broken collect2 doesn't work under 4.3+
9260 collect2name=`${CC} -print-prog-name=collect2`
9261 if test -f "$collect2name" && \
9262 strings "$collect2name" | grep resolve_lib_name >/dev/null
9264 # We have reworked collect2
9265 hardcode_direct_CXX=yes
9267 # We have old collect2
9268 hardcode_direct_CXX=unsupported
9269 # It fails to find uninstalled libraries when the uninstalled
9270 # path is not listed in the libpath. Setting hardcode_minus_L
9271 # to unsupported forces relinking
9272 hardcode_minus_L_CXX=yes
9273 hardcode_libdir_flag_spec_CXX='-L$libdir'
9274 hardcode_libdir_separator_CXX=
9277 shared_flag='-shared'
9280 if test "$host_cpu" = ia64; then
9281 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9282 # chokes on -Wl,-G. The following line is correct:
9285 if test "$aix_use_runtimelinking" = yes; then
9286 shared_flag='${wl}-G'
9288 shared_flag='${wl}-bM:SRE'
9293 # It seems that -bexpall does not export symbols beginning with
9294 # underscore (_), so it is better to generate a list of symbols to export.
9295 always_export_symbols_CXX=yes
9296 if test "$aix_use_runtimelinking" = yes; then
9297 # Warning - without using the other runtime loading flags (-brtl),
9298 # -berok will link without error, but may produce a broken library.
9299 allow_undefined_flag_CXX='-berok'
9300 # Determine the default libpath from the value encoded in an empty executable.
9301 cat >conftest.$ac_ext <<_ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9316 rm -f conftest.$ac_objext conftest$ac_exeext
9317 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9318 (eval $ac_link) 2>conftest.er1
9320 grep -v '^ *+' conftest.er1 >conftest.err
9322 cat conftest.err >&5
9323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9324 (exit $ac_status); } &&
9325 { ac_try='test -z "$ac_cxx_werror_flag"
9326 || test ! -s conftest.err'
9327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9331 (exit $ac_status); }; } &&
9332 { ac_try='test -s conftest$ac_exeext'
9333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); }; }; then
9339 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9341 # Check for a 64-bit object if we didn't find anything.
9342 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; }
9345 echo "$as_me: failed program was:" >&5
9346 sed 's/^/| /' conftest.$ac_ext >&5
9349 rm -f conftest.err conftest.$ac_objext \
9350 conftest$ac_exeext conftest.$ac_ext
9351 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9353 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9355 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"
9357 if test "$host_cpu" = ia64; then
9358 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9359 allow_undefined_flag_CXX="-z nodefs"
9360 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"
9362 # Determine the default libpath from the value encoded in an empty executable.
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9378 rm -f conftest.$ac_objext conftest$ac_exeext
9379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9380 (eval $ac_link) 2>conftest.er1
9382 grep -v '^ *+' conftest.er1 >conftest.err
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } &&
9387 { ac_try='test -z "$ac_cxx_werror_flag"
9388 || test ! -s conftest.err'
9389 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); }; } &&
9394 { ac_try='test -s conftest$ac_exeext'
9395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9399 (exit $ac_status); }; }; then
9401 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9403 # Check for a 64-bit object if we didn't find anything.
9404 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; }
9407 echo "$as_me: failed program was:" >&5
9408 sed 's/^/| /' conftest.$ac_ext >&5
9411 rm -f conftest.err conftest.$ac_objext \
9412 conftest$ac_exeext conftest.$ac_ext
9413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9415 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9416 # Warning - without using the other run time loading flags,
9417 # -berok will link without error, but may produce a broken library.
9418 no_undefined_flag_CXX=' ${wl}-bernotok'
9419 allow_undefined_flag_CXX=' ${wl}-berok'
9420 # -bexpall does not export symbols beginning with underscore (_)
9421 always_export_symbols_CXX=yes
9422 # Exported symbols can be pulled into shared objects from archives
9423 whole_archive_flag_spec_CXX=' '
9424 archive_cmds_need_lc_CXX=yes
9425 # This is similar to how AIX traditionally builds it's shared libraries.
9426 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'
9431 case $cc_basename in
9433 # FIXME: insert proper C++ library support
9440 cygwin* | mingw* | pw32*)
9441 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9442 # as there is no search path for DLLs.
9443 hardcode_libdir_flag_spec_CXX='-L$libdir'
9444 allow_undefined_flag_CXX=unsupported
9445 always_export_symbols_CXX=no
9446 enable_shared_with_static_runtimes_CXX=yes
9448 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9449 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'
9450 # If the export-symbols file already is a .def file (1st line
9451 # is EXPORTS), use it as is; otherwise, prepend...
9452 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9453 cp $export_symbols $output_objdir/$soname.def;
9455 echo EXPORTS > $output_objdir/$soname.def;
9456 cat $export_symbols >> $output_objdir/$soname.def;
9458 $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'
9463 darwin* | rhapsody*)
9465 rhapsody* | darwin1.[012])
9466 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
9469 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9470 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9472 case ${MACOSX_DEPLOYMENT_TARGET} in
9474 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9477 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
9483 archive_cmds_need_lc_CXX=no
9484 hardcode_direct_CXX=no
9485 hardcode_automatic_CXX=yes
9486 hardcode_shlibpath_var_CXX=unsupported
9487 whole_archive_flag_spec_CXX=''
9488 link_all_deplibs_CXX=yes
9490 if test "$GXX" = yes ; then
9491 lt_int_apple_cc_single_mod=no
9492 output_verbose_link_cmd='echo'
9493 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
9494 lt_int_apple_cc_single_mod=yes
9496 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9497 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9499 archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9501 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9502 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9503 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9504 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}'
9506 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9508 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}'
9510 case "$cc_basename" in
9512 output_verbose_link_cmd='echo'
9513 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9514 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9516 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9517 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}'
9527 case $cc_basename in
9529 # FIXME: insert proper C++ library support
9533 # Green Hills C++ Compiler
9534 # FIXME: insert proper C++ library support
9538 # FIXME: insert proper C++ library support
9544 # C++ shared libraries reported to be fairly broken before switch to ELF
9548 archive_cmds_need_lc_CXX=no
9550 freebsd* | kfreebsd*-gnu)
9551 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
9558 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9559 hardcode_libdir_separator_CXX=:
9560 export_dynamic_flag_spec_CXX='${wl}-E'
9561 hardcode_direct_CXX=yes
9562 hardcode_minus_L_CXX=yes # Not in the search PATH,
9563 # but as the default
9564 # location of the library.
9566 case $cc_basename in
9568 # FIXME: insert proper C++ library support
9572 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'
9573 # Commands to make compiler produce verbose output that lists
9574 # what "hidden" libraries, object files and flags are used when
9575 # linking a shared library.
9577 # There doesn't appear to be a way to prevent this compiler from
9578 # explicitly linking system object files so we need to strip them
9579 # from the output so that they don't get included in the library
9581 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'
9584 if test "$GXX" = yes; then
9585 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'
9587 # FIXME: insert proper C++ library support
9594 if test $with_gnu_ld = no; then
9597 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9598 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
9599 hardcode_libdir_separator_CXX=:
9602 hardcode_libdir_flag_spec_CXX='-L$libdir'
9605 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
9606 hardcode_libdir_separator_CXX=:
9607 export_dynamic_flag_spec_CXX='${wl}-E'
9613 hardcode_direct_CXX=no
9614 hardcode_shlibpath_var_CXX=no
9617 hardcode_direct_CXX=no
9618 hardcode_shlibpath_var_CXX=no
9619 hardcode_minus_L_CXX=yes # Not in the search PATH,
9620 # but as the default
9621 # location of the library.
9624 hardcode_direct_CXX=yes
9625 hardcode_minus_L_CXX=yes # Not in the search PATH,
9626 # but as the default
9627 # location of the library.
9631 case $cc_basename in
9633 # FIXME: insert proper C++ library support
9639 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9642 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9645 # Commands to make compiler produce verbose output that lists
9646 # what "hidden" libraries, object files and flags are used when
9647 # linking a shared library.
9649 # There doesn't appear to be a way to prevent this compiler from
9650 # explicitly linking system object files so we need to strip them
9651 # from the output so that they don't get included in the library
9653 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'
9656 if test "$GXX" = yes; then
9657 if test $with_gnu_ld = no; then
9660 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
9663 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'
9668 # FIXME: insert proper C++ library support
9675 case $cc_basename in
9678 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'
9680 # Archives containing C++ object files must be created using
9681 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
9682 # necessary to make sure instantiated templates are included
9684 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
9687 if test "$GXX" = yes; then
9688 if test "$with_gnu_ld" = no; then
9689 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'
9691 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'
9694 link_all_deplibs_CXX=yes
9697 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9698 hardcode_libdir_separator_CXX=:
9701 case $cc_basename in
9703 # Kuck and Associates, Inc. (KAI) C++ Compiler
9705 # KCC will only create a shared library if the output file
9706 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9707 # to its proper name (with version) after linking.
9708 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'
9709 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'
9710 # Commands to make compiler produce verbose output that lists
9711 # what "hidden" libraries, object files and flags are used when
9712 # linking a shared library.
9714 # There doesn't appear to be a way to prevent this compiler from
9715 # explicitly linking system object files so we need to strip them
9716 # from the output so that they don't get included in the library
9718 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'
9720 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
9721 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9723 # Archives containing C++ object files must be created using
9724 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9725 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9730 # version 8.0 and above of icpc choke on multiply defined symbols
9731 # if we add $predep_objects and $postdep_objects, however 7.1 and
9732 # earlier do not add the objects themselves.
9733 case `$CC -V 2>&1` in
9735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9736 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'
9738 *) # Version 8.0 or newer
9739 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9740 archive_expsym_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9743 archive_cmds_need_lc_CXX=no
9744 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9746 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9750 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9751 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'
9753 runpath_var=LD_RUN_PATH
9754 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9755 hardcode_libdir_separator_CXX=:
9757 # Commands to make compiler produce verbose output that lists
9758 # what "hidden" libraries, object files and flags are used when
9759 # linking a shared library.
9761 # There doesn't appear to be a way to prevent this compiler from
9762 # explicitly linking system object files so we need to strip them
9763 # from the output so that they don't get included in the library
9765 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'
9770 # FIXME: insert proper C++ library support
9774 # FIXME: insert proper C++ library support
9778 case $cc_basename in
9780 # FIXME: insert proper C++ library support
9784 # FIXME: insert proper C++ library support
9790 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9791 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
9793 hardcode_libdir_flag_spec_CXX='-R$libdir'
9794 hardcode_direct_CXX=yes
9795 hardcode_shlibpath_var_CXX=no
9797 # Workaround some broken pre-1.5 toolchains
9798 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
9801 # C++ shared libraries are fairly broken
9805 hardcode_direct_CXX=yes
9806 hardcode_shlibpath_var_CXX=no
9807 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9808 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9810 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
9811 export_dynamic_flag_spec_CXX='${wl}-E'
9812 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9814 output_verbose_link_cmd='echo'
9817 case $cc_basename in
9819 # Kuck and Associates, Inc. (KAI) C++ Compiler
9821 # KCC will only create a shared library if the output file
9822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9823 # to its proper name (with version) after linking.
9824 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'
9826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9827 hardcode_libdir_separator_CXX=:
9829 # Archives containing C++ object files must be created using
9830 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
9831 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
9835 # Rational C++ 2.4.1
9836 # FIXME: insert proper C++ library support
9840 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9841 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'
9843 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9844 hardcode_libdir_separator_CXX=:
9846 # Commands to make compiler produce verbose output that lists
9847 # what "hidden" libraries, object files and flags are used when
9848 # linking a shared library.
9850 # There doesn't appear to be a way to prevent this compiler from
9851 # explicitly linking system object files so we need to strip them
9852 # from the output so that they don't get included in the library
9854 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'
9857 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9858 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9859 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'
9861 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9862 hardcode_libdir_separator_CXX=:
9864 # Commands to make compiler produce verbose output that lists
9865 # what "hidden" libraries, object files and flags are used when
9866 # linking a shared library.
9867 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9870 # FIXME: insert proper C++ library support
9877 case $cc_basename in
9879 # Kuck and Associates, Inc. (KAI) C++ Compiler
9881 # KCC will only create a shared library if the output file
9882 # ends with ".so" (or ".sl" for HP-UX), so rename the library
9883 # to its proper name (with version) after linking.
9884 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'
9886 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
9887 hardcode_libdir_separator_CXX=:
9889 # Archives containing C++ object files must be created using
9890 # the KAI C++ compiler.
9891 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
9894 # Rational C++ 2.4.1
9895 # FIXME: insert proper C++ library support
9899 allow_undefined_flag_CXX=' -expect_unresolved \*'
9900 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'
9901 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
9902 echo "-hidden">> $lib.exp~
9903 $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~
9906 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
9907 hardcode_libdir_separator_CXX=:
9909 # Commands to make compiler produce verbose output that lists
9910 # what "hidden" libraries, object files and flags are used when
9911 # linking a shared library.
9913 # There doesn't appear to be a way to prevent this compiler from
9914 # explicitly linking system object files so we need to strip them
9915 # from the output so that they don't get included in the library
9917 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'
9920 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
9921 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
9922 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'
9924 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
9925 hardcode_libdir_separator_CXX=:
9927 # Commands to make compiler produce verbose output that lists
9928 # what "hidden" libraries, object files and flags are used when
9929 # linking a shared library.
9930 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9933 # FIXME: insert proper C++ library support
9940 # FIXME: insert proper C++ library support
9944 archive_cmds_need_lc_CXX=no
9945 case $cc_basename in
9947 # FIXME: insert proper C++ library support
9951 # FIXME: insert proper C++ library support
9957 case $cc_basename in
9960 # FIXME: insert proper C++ library support
9965 # FIXME: insert proper C++ library support
9969 # FIXME: insert proper C++ library support
9975 case $cc_basename in
9977 # Sun C++ 4.2, 5.x and Centerline C++
9978 no_undefined_flag_CXX=' -zdefs'
9979 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
9980 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9981 $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'
9983 hardcode_libdir_flag_spec_CXX='-R$libdir'
9984 hardcode_shlibpath_var_CXX=no
9986 solaris2.0-5 | solaris2.0-5.*) ;;
9988 # The C++ compiler is used as linker so we must use $wl
9989 # flag to pass the commands to the underlying system
9991 # Supported since Solaris 2.6 (maybe 2.5.1?)
9992 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9995 link_all_deplibs_CXX=yes
9997 # Commands to make compiler produce verbose output that lists
9998 # what "hidden" libraries, object files and flags are used when
9999 # linking a shared library.
10001 # There doesn't appear to be a way to prevent this compiler from
10002 # explicitly linking system object files so we need to strip them
10003 # from the output so that they don't get included in the library
10005 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'
10007 # Archives containing C++ object files must be created using
10008 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10009 # necessary to make sure instantiated templates are included
10011 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10014 # Green Hills C++ Compiler
10015 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10017 # The C++ compiler must be used to create the archive.
10018 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10021 # GNU C++ compiler with Solaris linker
10022 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10023 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10024 if $CC --version | grep -v '^2\.7' > /dev/null; then
10025 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10026 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10027 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10029 # Commands to make compiler produce verbose output that lists
10030 # what "hidden" libraries, object files and flags are used when
10031 # linking a shared library.
10032 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10034 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10036 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10037 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10038 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10040 # Commands to make compiler produce verbose output that lists
10041 # what "hidden" libraries, object files and flags are used when
10042 # linking a shared library.
10043 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10046 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10051 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10052 archive_cmds_need_lc_CXX=no
10055 case $cc_basename in
10057 # NonStop-UX NCC 3.20
10058 # FIXME: insert proper C++ library support
10062 # FIXME: insert proper C++ library support
10068 # FIXME: insert proper C++ library support
10072 # FIXME: insert proper C++ library support
10076 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10077 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10078 test "$ld_shlibs_CXX" = no && can_build_shared=no
10084 cat > conftest.$ac_ext <<EOF
10088 Foo (void) { a = 0; }
10094 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10095 (eval $ac_compile) 2>&5
10097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10098 (exit $ac_status); }; then
10099 # Parse the compiler output and extract the necessary
10100 # objects, libraries and library flags.
10102 # Sentinel used to keep track of whether or not we are before
10103 # the conftest object file.
10104 pre_test_object_deps_done=no
10106 # The `*' in the case matches for architectures that use `case' in
10107 # $output_verbose_cmd can trigger glob expansion during the loop
10108 # eval without this substitution.
10109 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10111 for p in `eval $output_verbose_link_cmd`; do
10115 # Some compilers place space between "-{L,R}" and the path.
10116 # Remove the space.
10117 if test $p = "-L" \
10118 || test $p = "-R"; then
10125 if test "$pre_test_object_deps_done" = no; then
10128 # Internal compiler library paths should come after those
10129 # provided the user. The postdeps already come after the
10130 # user supplied libs so there is no need to process them.
10131 if test -z "$compiler_lib_search_path_CXX"; then
10132 compiler_lib_search_path_CXX="${prev}${p}"
10134 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10137 # The "-l" case would never come before the object being
10138 # linked, so don't bother handling this case.
10141 if test -z "$postdeps_CXX"; then
10142 postdeps_CXX="${prev}${p}"
10144 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10150 # This assumes that the test object file only shows up
10151 # once in the compiler output.
10152 if test "$p" = "conftest.$objext"; then
10153 pre_test_object_deps_done=yes
10157 if test "$pre_test_object_deps_done" = no; then
10158 if test -z "$predep_objects_CXX"; then
10159 predep_objects_CXX="$p"
10161 predep_objects_CXX="$predep_objects_CXX $p"
10164 if test -z "$postdep_objects_CXX"; then
10165 postdep_objects_CXX="$p"
10167 postdep_objects_CXX="$postdep_objects_CXX $p"
10172 *) ;; # Ignore the rest.
10180 echo "libtool.m4: error: problem compiling CXX test program"
10183 $rm -f confest.$objext
10185 case " $postdeps_CXX " in
10186 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10189 lt_prog_compiler_wl_CXX=
10190 lt_prog_compiler_pic_CXX=
10191 lt_prog_compiler_static_CXX=
10193 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10194 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10196 # C++ specific cases for pic, static, wl, etc.
10197 if test "$GXX" = yes; then
10198 lt_prog_compiler_wl_CXX='-Wl,'
10199 lt_prog_compiler_static_CXX='-static'
10203 # All AIX code is PIC.
10204 if test "$host_cpu" = ia64; then
10205 # AIX 5 now supports IA64 processor
10206 lt_prog_compiler_static_CXX='-Bstatic'
10210 # FIXME: we need at least 68020 code to build shared libraries, but
10211 # adding the `-m68020' flag to GCC prevents building anything better,
10213 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10215 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10216 # PIC is the default for these OSes.
10218 mingw* | os2* | pw32*)
10219 # This hack is so that the source file can tell whether it is being
10220 # built for inclusion in a dll (and should export symbols for example).
10221 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10223 darwin* | rhapsody*)
10224 # PIC is the default on this platform
10225 # Common symbols not allowed in MH_DYLIB files
10226 lt_prog_compiler_pic_CXX='-fno-common'
10229 # DJGPP does not support shared libraries at all
10230 lt_prog_compiler_pic_CXX=
10233 if test -d /usr/nec; then
10234 lt_prog_compiler_pic_CXX=-Kconform_pic
10238 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10239 # not for PA HP-UX.
10240 case "$host_cpu" in
10244 lt_prog_compiler_pic_CXX='-fPIC'
10249 lt_prog_compiler_pic_CXX='-fPIC'
10255 # All AIX code is PIC.
10256 if test "$host_cpu" = ia64; then
10257 # AIX 5 now supports IA64 processor
10258 lt_prog_compiler_static_CXX='-Bstatic'
10260 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10264 case $cc_basename in
10266 # Green Hills C++ Compiler
10267 # _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"
10272 # PIC is the default on this platform
10273 # Common symbols not allowed in MH_DYLIB files
10274 case "$cc_basename" in
10276 lt_prog_compiler_pic_CXX='-qnocommon'
10277 lt_prog_compiler_wl_CXX='-Wl,'
10282 case $cc_basename in
10284 lt_prog_compiler_pic_CXX='-KPIC'
10287 # Green Hills C++ Compiler
10288 lt_prog_compiler_pic_CXX='-pic'
10294 freebsd* | kfreebsd*-gnu)
10295 # FreeBSD uses GNU C++
10297 hpux9* | hpux10* | hpux11*)
10298 case $cc_basename in
10300 lt_prog_compiler_wl_CXX='-Wl,'
10301 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10302 if test "$host_cpu" != ia64; then
10303 lt_prog_compiler_pic_CXX='+Z'
10307 lt_prog_compiler_wl_CXX='-Wl,'
10308 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10309 case "$host_cpu" in
10314 lt_prog_compiler_pic_CXX='+Z'
10322 irix5* | irix6* | nonstopux*)
10323 case $cc_basename in
10325 lt_prog_compiler_wl_CXX='-Wl,'
10326 lt_prog_compiler_static_CXX='-non_shared'
10327 # CC pic flag -KPIC is the default.
10334 case $cc_basename in
10337 lt_prog_compiler_wl_CXX='--backend -Wl,'
10338 lt_prog_compiler_pic_CXX='-fPIC'
10342 lt_prog_compiler_wl_CXX='-Wl,'
10343 lt_prog_compiler_pic_CXX='-KPIC'
10344 lt_prog_compiler_static_CXX='-static'
10348 # Make sure the PIC flag is empty. It appears that all Alpha
10349 # Linux and Compaq Tru64 Unix objects are PIC.
10350 lt_prog_compiler_pic_CXX=
10351 lt_prog_compiler_static_CXX='-non_shared'
10362 case $cc_basename in
10364 lt_prog_compiler_pic_CXX='-W c,exportall'
10372 osf3* | osf4* | osf5*)
10373 case $cc_basename in
10375 lt_prog_compiler_wl_CXX='--backend -Wl,'
10378 # Rational C++ 2.4.1
10379 lt_prog_compiler_pic_CXX='-pic'
10382 # Digital/Compaq C++
10383 lt_prog_compiler_wl_CXX='-Wl,'
10384 # Make sure the PIC flag is empty. It appears that all Alpha
10385 # Linux and Compaq Tru64 Unix objects are PIC.
10386 lt_prog_compiler_pic_CXX=
10387 lt_prog_compiler_static_CXX='-non_shared'
10396 case $cc_basename in
10398 lt_prog_compiler_pic_CXX='-fPIC'
10405 case $cc_basename in
10407 # Sun C++ 4.2, 5.x and Centerline C++
10408 lt_prog_compiler_pic_CXX='-KPIC'
10409 lt_prog_compiler_static_CXX='-Bstatic'
10410 lt_prog_compiler_wl_CXX='-Qoption ld '
10413 # Green Hills C++ Compiler
10414 lt_prog_compiler_pic_CXX='-PIC'
10421 case $cc_basename in
10424 lt_prog_compiler_pic_CXX='-pic'
10425 lt_prog_compiler_static_CXX='-Bstatic'
10429 lt_prog_compiler_pic_CXX='-pic'
10436 case $cc_basename in
10438 # NonStop-UX NCC 3.20
10439 lt_prog_compiler_pic_CXX='-KPIC'
10450 lt_prog_compiler_can_build_shared_CXX=no
10455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10456 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10459 # Check to make sure the PIC flag actually works.
10461 if test -n "$lt_prog_compiler_pic_CXX"; then
10463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10465 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10466 echo $ECHO_N "(cached) $ECHO_C" >&6
10468 lt_prog_compiler_pic_works_CXX=no
10469 ac_outfile=conftest.$ac_objext
10470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10471 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10472 # Insert the option either (1) after the last *FLAGS variable, or
10473 # (2) before a word containing "conftest.", or (3) at the end.
10474 # Note that $ac_compile itself does not contain backslashes and begins
10475 # with a dollar sign (not a hyphen), so the echo should work correctly.
10476 # The option is referenced via a variable to avoid confusing sed.
10477 lt_compile=`echo "$ac_compile" | $SED \
10478 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10480 -e 's:$: $lt_compiler_flag:'`
10481 (eval echo "\"\$as_me:10481: $lt_compile\"" >&5)
10482 (eval "$lt_compile" 2>conftest.err)
10484 cat conftest.err >&5
10485 echo "$as_me:10485: \$? = $ac_status" >&5
10486 if (exit $ac_status) && test -s "$ac_outfile"; then
10487 # The compiler can only warn and ignore the option if not recognized
10488 # So say no if there are warnings
10489 if test ! -s conftest.err; then
10490 lt_prog_compiler_pic_works_CXX=yes
10496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10497 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10499 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10500 case $lt_prog_compiler_pic_CXX in
10502 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10505 lt_prog_compiler_pic_CXX=
10506 lt_prog_compiler_can_build_shared_CXX=no
10511 # For platforms which do not support PIC, -DPIC is meaningless:
10513 lt_prog_compiler_pic_CXX=
10516 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10523 echo $ECHO_N "(cached) $ECHO_C" >&6
10525 lt_cv_prog_compiler_c_o_CXX=no
10526 $rm -r conftest 2>/dev/null
10530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10532 lt_compiler_flag="-o out/conftest2.$ac_objext"
10533 # Insert the option either (1) after the last *FLAGS variable, or
10534 # (2) before a word containing "conftest.", or (3) at the end.
10535 # Note that $ac_compile itself does not contain backslashes and begins
10536 # with a dollar sign (not a hyphen), so the echo should work correctly.
10537 lt_compile=`echo "$ac_compile" | $SED \
10538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10540 -e 's:$: $lt_compiler_flag:'`
10541 (eval echo "\"\$as_me:10541: $lt_compile\"" >&5)
10542 (eval "$lt_compile" 2>out/conftest.err)
10544 cat out/conftest.err >&5
10545 echo "$as_me:10545: \$? = $ac_status" >&5
10546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10548 # The compiler can only warn and ignore the option if not recognized
10549 # So say no if there are warnings
10550 if test ! -s out/conftest.err; then
10551 lt_cv_prog_compiler_c_o_CXX=yes
10556 # SGI C++ compiler will create directory out/ii_files/ for
10557 # template instantiation
10558 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
10559 $rm out/* && rmdir out
10565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10569 hard_links="nottested"
10570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10571 # do not overwrite the value of need_locks provided by the user
10572 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
10573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
10576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10578 ln conftest.a conftest.b 2>&5 || hard_links=no
10579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10580 echo "$as_me:$LINENO: result: $hard_links" >&5
10581 echo "${ECHO_T}$hard_links" >&6
10582 if test "$hard_links" = no; then
10583 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10597 # If we're using GNU nm, then we don't want the "-C" option.
10598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
10600 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'
10602 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'
10606 export_symbols_cmds_CXX="$ltdll_cmds"
10609 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
10612 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10616 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10617 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10618 test "$ld_shlibs_CXX" = no && can_build_shared=no
10620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10621 if test "$GCC" = yes; then
10622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10626 # Do we need to explicitly link libc?
10628 case "x$archive_cmds_need_lc_CXX" in
10630 # Assume -lc should be added
10631 archive_cmds_need_lc_CXX=yes
10633 if test "$enable_shared" = yes && test "$GCC" = yes; then
10634 case $archive_cmds_CXX in
10636 # FIXME: we may have to deal with multi-command sequences.
10639 # Test whether the compiler implicitly links with -lc since on some
10640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10641 # to ld, don't add -lc before -lgcc.
10642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
10643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
10645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10648 (eval $ac_compile) 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } 2>conftest.err; then
10654 libobjs=conftest.$ac_objext
10656 wl=$lt_prog_compiler_wl_CXX
10662 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
10663 allow_undefined_flag_CXX=
10664 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
10665 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }
10670 archive_cmds_need_lc_CXX=no
10672 archive_cmds_need_lc_CXX=yes
10674 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
10676 cat conftest.err 1>&5
10679 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
10680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
10687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
10688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
10689 library_names_spec=
10690 libname_spec='lib$name'
10694 postuninstall_cmds=
10698 shlibpath_overrides_runpath=unknown
10700 dynamic_linker="$host_os ld.so"
10701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10702 if test "$GCC" = yes; then
10703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10704 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
10705 # if the path contains ";" then we assume it to be the separator
10706 # otherwise default to the standard path separator (i.e. ":") - it is
10707 # assumed that no part of a normal pathname contains ";" but that should
10708 # okay in the real world where ";" in dirpaths is itself problematic.
10709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10716 need_lib_prefix=unknown
10717 hardcode_into_libs=no
10719 # when you set need_version to no, make sure it does not cause -set_version
10720 # flags to be left without arguments
10721 need_version=unknown
10726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10727 shlibpath_var=LIBPATH
10729 # AIX 3 has no versioning support, so we append a major version to the name.
10730 soname_spec='${libname}${release}${shared_ext}$major'
10737 hardcode_into_libs=yes
10738 if test "$host_cpu" = ia64; then
10739 # AIX 5 supports IA64
10740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10741 shlibpath_var=LD_LIBRARY_PATH
10743 # With GCC up to 2.95.x, collect2 would create an import file
10744 # for dependence libraries. The import file would start with
10745 # the line `#! .'. This would cause the generated library to
10746 # depend on `.', always an invalid library. This was fixed in
10747 # development snapshots of GCC prior to 3.0.
10749 aix4 | aix4.[01] | aix4.[01].*)
10750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10752 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
10755 can_build_shared=no
10759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10760 # soname into executable. Probably we can add versioning support to
10761 # collect2, so additional links can be useful in future.
10762 if test "$aix_use_runtimelinking" = yes; then
10763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10764 # instead of lib<name>.a to let people know that these are not
10765 # typical AIX shared libraries.
10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10768 # We preserve .a as extension for shared libraries through AIX4.2
10769 # and later when we are not doing run time linking.
10770 library_names_spec='${libname}${release}.a $libname.a'
10771 soname_spec='${libname}${release}${shared_ext}$major'
10773 shlibpath_var=LIBPATH
10778 library_names_spec='$libname.ixlibrary $libname.a'
10779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10780 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'
10784 library_names_spec='${libname}${shared_ext}'
10785 dynamic_linker="$host_os ld.so"
10786 shlibpath_var=LIBRARY_PATH
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10795 shlibpath_var=LD_LIBRARY_PATH
10796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10798 # the default ld.so.conf also contains /usr/contrib/lib and
10799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10800 # libtool to hard-code these into programs
10803 cygwin* | mingw* | pw32*)
10804 version_type=windows
10809 case $GCC,$host_os in
10810 yes,cygwin* | yes,mingw* | yes,pw32*)
10811 library_names_spec='$libname.dll.a'
10812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10813 postinstall_cmds='base_file=`basename \${file}`~
10814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
10815 dldir=$destdir/`dirname \$dlpath`~
10816 test -d \$dldir || mkdir -p \$dldir~
10817 $install_prog $dir/$dlname \$dldir/$dlname'
10818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10819 dlpath=$dir/\$dldll~
10821 shlibpath_overrides_runpath=yes
10825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10830 # MinGW DLLs use traditional 'lib' prefix
10831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
10834 # It is most probably a Windows format PATH printed by
10835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
10836 # path with ; separators, and with drive letters. We can handle the
10837 # drive letters (cygwin fileutils understands them), so leave them,
10838 # especially as we might pass files found there to a mingw objdump,
10839 # which wouldn't understand a cygwinified path. Ahh.
10840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10846 # pw32 DLLs use 'pw' prefix rather than 'lib'
10847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
10853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10856 dynamic_linker='Win32 ld.exe'
10857 # FIXME: first we should search . and the directory the executable is in
10861 darwin* | rhapsody*)
10862 dynamic_linker="$host_os dyld"
10863 version_type=darwin
10866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10867 soname_spec='${libname}${release}${major}$shared_ext'
10868 shlibpath_overrides_runpath=yes
10869 shlibpath_var=DYLD_LIBRARY_PATH
10870 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
10871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
10872 if test "$GCC" = yes; then
10873 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"`
10875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
10877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10898 soname_spec='${libname}${release}${shared_ext}$major'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 shlibpath_overrides_runpath=no
10901 hardcode_into_libs=yes
10902 dynamic_linker='GNU ld.so'
10906 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
10907 version_type=freebsd-$objformat
10908 case $version_type in
10910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10919 shlibpath_var=LD_LIBRARY_PATH
10922 shlibpath_overrides_runpath=yes
10924 freebsd3.01* | freebsdelf3.01*)
10925 shlibpath_overrides_runpath=yes
10926 hardcode_into_libs=yes
10929 shlibpath_overrides_runpath=no
10930 hardcode_into_libs=yes
10939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10940 soname_spec='${libname}${release}${shared_ext}$major'
10941 shlibpath_var=LD_LIBRARY_PATH
10942 hardcode_into_libs=yes
10945 hpux9* | hpux10* | hpux11*)
10946 # Give a soname corresponding to the major version so that dld.sl refuses to
10947 # link against other versions.
10951 case "$host_cpu" in
10954 hardcode_into_libs=yes
10955 dynamic_linker="$host_os dld.so"
10956 shlibpath_var=LD_LIBRARY_PATH
10957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 if test "X$HPUX_IA64_MODE" = X32; then
10961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10969 hardcode_into_libs=yes
10970 dynamic_linker="$host_os dld.sl"
10971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10974 soname_spec='${libname}${release}${shared_ext}$major'
10975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10980 dynamic_linker="$host_os dld.sl"
10981 shlibpath_var=SHLIB_PATH
10982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10984 soname_spec='${libname}${release}${shared_ext}$major'
10987 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10988 postinstall_cmds='chmod 555 $lib'
10991 irix5* | irix6* | nonstopux*)
10993 nonstopux*) version_type=nonstopux ;;
10995 if test "$lt_cv_prog_gnu_ld" = yes; then
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11006 irix5* | nonstopux*)
11007 libsuff= shlibsuff=
11010 case $LD in # libtool.m4 will add one of these switches to LD
11011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11012 libsuff= shlibsuff= libmagic=32-bit;;
11013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11014 libsuff=32 shlibsuff=N32 libmagic=N32;;
11015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11017 *) libsuff= shlibsuff= libmagic=never-match;;
11021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11022 shlibpath_overrides_runpath=no
11023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11025 hardcode_into_libs=yes
11028 # No shared lib support for Linux oldld, aout, or coff.
11029 linux*oldld* | linux*aout* | linux*coff*)
11033 # This must be Linux ELF.
11038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11039 soname_spec='${libname}${release}${shared_ext}$major'
11040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11041 shlibpath_var=LD_LIBRARY_PATH
11042 shlibpath_overrides_runpath=no
11043 # This implies no fast_install, which is unacceptable.
11044 # Some rework will be needed to allow for fast_install
11045 # before this can be enabled.
11046 hardcode_into_libs=yes
11048 # Append ld.so.conf contents to the search path
11049 if test -f /etc/ld.so.conf; then
11050 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11054 # We used to test for /lib/ld.so.1 and disable shared libraries on
11055 # powerpc, because MkLinux only supported shared libraries with the
11056 # GNU dynamic linker. Since this was broken with cross compilers,
11057 # most powerpc-linux boxes support dynamic linking these days and
11058 # people can always --disable-shared, the test was removed, and we
11059 # assume the GNU/Linux dynamic linker is in use.
11060 dynamic_linker='GNU/Linux ld.so'
11067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11068 soname_spec='${libname}${release}${shared_ext}$major'
11069 shlibpath_var=LD_LIBRARY_PATH
11070 shlibpath_overrides_runpath=no
11071 hardcode_into_libs=yes
11072 dynamic_linker='GNU ld.so'
11079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11082 dynamic_linker='NetBSD (a.out) ld.so'
11084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11085 soname_spec='${libname}${release}${shared_ext}$major'
11086 dynamic_linker='NetBSD ld.elf_so'
11088 shlibpath_var=LD_LIBRARY_PATH
11089 shlibpath_overrides_runpath=yes
11090 hardcode_into_libs=yes
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 shlibpath_var=LD_LIBRARY_PATH
11097 shlibpath_overrides_runpath=yes
11104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11105 soname_spec='${libname}${release}${shared_ext}$major'
11106 shlibpath_var=LD_LIBRARY_PATH
11107 shlibpath_overrides_runpath=yes
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11116 shlibpath_var=LD_LIBRARY_PATH
11117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11119 openbsd2.[89] | openbsd2.[89].*)
11120 shlibpath_overrides_runpath=no
11123 shlibpath_overrides_runpath=yes
11127 shlibpath_overrides_runpath=yes
11132 libname_spec='$name'
11135 library_names_spec='$libname${shared_ext} $libname.a'
11136 dynamic_linker='OS/2 ld.exe'
11137 shlibpath_var=LIBPATH
11140 osf3* | osf4* | osf5*)
11144 soname_spec='${libname}${release}${shared_ext}$major'
11145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11146 shlibpath_var=LD_LIBRARY_PATH
11147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11153 soname_spec='${libname}${release}${shared_ext}$major'
11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11155 shlibpath_var=LD_LIBRARY_PATH
11162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11163 soname_spec='${libname}${release}${shared_ext}$major'
11164 shlibpath_var=LD_LIBRARY_PATH
11165 shlibpath_overrides_runpath=yes
11166 hardcode_into_libs=yes
11167 # ldd complains unless libraries are executable
11168 postinstall_cmds='chmod +x $lib'
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 shlibpath_overrides_runpath=yes
11177 if test "$with_gnu_ld" = yes; then
11183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11186 soname_spec='${libname}${release}${shared_ext}$major'
11187 shlibpath_var=LD_LIBRARY_PATH
11188 case $host_vendor in
11190 shlibpath_overrides_runpath=no
11192 export_dynamic_flag_spec='${wl}-Blargedynsym'
11193 runpath_var=LD_RUN_PATH
11201 shlibpath_overrides_runpath=no
11202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11208 if test -d /usr/nec ;then
11210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11211 soname_spec='$libname${shared_ext}.$major'
11212 shlibpath_var=LD_LIBRARY_PATH
11218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11219 soname_spec='${libname}${release}${shared_ext}$major'
11220 shlibpath_var=LD_LIBRARY_PATH
11227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11228 echo "${ECHO_T}$dynamic_linker" >&6
11229 test "$dynamic_linker" = no && can_build_shared=no
11231 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11232 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11233 hardcode_action_CXX=
11234 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11235 test -n "$runpath_var_CXX" || \
11236 test "X$hardcode_automatic_CXX" = "Xyes" ; then
11238 # We can hardcode non-existant directories.
11239 if test "$hardcode_direct_CXX" != no &&
11240 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11241 # have to relink, otherwise we might link with an installed library
11242 # when we should be linking with a yet-to-be-installed one
11243 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11244 test "$hardcode_minus_L_CXX" != no; then
11245 # Linking always hardcodes the temporary library directory.
11246 hardcode_action_CXX=relink
11248 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11249 hardcode_action_CXX=immediate
11252 # We cannot hardcode anything, or else we can only hardcode existing
11254 hardcode_action_CXX=unsupported
11256 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11257 echo "${ECHO_T}$hardcode_action_CXX" >&6
11259 if test "$hardcode_action_CXX" = relink; then
11260 # Fast installation is not supported
11261 enable_fast_install=no
11262 elif test "$shlibpath_overrides_runpath" = yes ||
11263 test "$enable_shared" = no; then
11264 # Fast installation is not necessary
11265 enable_fast_install=needless
11270 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11271 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11272 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11275 echo "$as_me:$LINENO: result: yes" >&5
11276 echo "${ECHO_T}yes" >&6
11278 # FIXME - insert some real tests, host_os isn't really good enough
11281 if test -n "$STRIP" ; then
11282 striplib="$STRIP -x"
11283 echo "$as_me:$LINENO: result: yes" >&5
11284 echo "${ECHO_T}yes" >&6
11286 echo "$as_me:$LINENO: result: no" >&5
11287 echo "${ECHO_T}no" >&6
11291 echo "$as_me:$LINENO: result: no" >&5
11292 echo "${ECHO_T}no" >&6
11297 if test "x$enable_dlopen" != xyes; then
11298 enable_dlopen=unknown
11299 enable_dlopen_self=unknown
11300 enable_dlopen_self_static=unknown
11307 lt_cv_dlopen="load_add_on"
11309 lt_cv_dlopen_self=yes
11313 lt_cv_dlopen="LoadLibrary"
11318 lt_cv_dlopen="dlopen"
11323 # if libdl is installed we need to link against it
11324 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 ac_check_lib_save_LIBS=$LIBS
11331 cat >conftest.$ac_ext <<_ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11338 /* Override any gcc2 internal prototype to avoid an error. */
11342 /* We use char because int might match the return type of a gcc2
11343 builtin and then its argument prototype would still apply. */
11353 rm -f conftest.$ac_objext conftest$ac_exeext
11354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11355 (eval $ac_link) 2>conftest.er1
11357 grep -v '^ *+' conftest.er1 >conftest.err
11359 cat conftest.err >&5
11360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11361 (exit $ac_status); } &&
11362 { ac_try='test -z "$ac_cxx_werror_flag"
11363 || test ! -s conftest.err'
11364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11365 (eval $ac_try) 2>&5
11367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11368 (exit $ac_status); }; } &&
11369 { ac_try='test -s conftest$ac_exeext'
11370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11371 (eval $ac_try) 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 ac_cv_lib_dl_dlopen=yes
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11380 ac_cv_lib_dl_dlopen=no
11382 rm -f conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 LIBS=$ac_check_lib_save_LIBS
11386 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11388 if test $ac_cv_lib_dl_dlopen = yes; then
11389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11392 lt_cv_dlopen="dyld"
11394 lt_cv_dlopen_self=yes
11401 echo "$as_me:$LINENO: checking for shl_load" >&5
11402 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11403 if test "${ac_cv_func_shl_load+set}" = set; then
11404 echo $ECHO_N "(cached) $ECHO_C" >&6
11406 cat >conftest.$ac_ext <<_ACEOF
11409 cat confdefs.h >>conftest.$ac_ext
11410 cat >>conftest.$ac_ext <<_ACEOF
11411 /* end confdefs.h. */
11412 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11414 #define shl_load innocuous_shl_load
11416 /* System header to define __stub macros and hopefully few prototypes,
11417 which can conflict with char shl_load (); below.
11418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11419 <limits.h> exists even on freestanding compilers. */
11422 # include <limits.h>
11424 # include <assert.h>
11429 /* Override any gcc2 internal prototype to avoid an error. */
11434 /* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11437 /* The GNU C library defines this for functions which it implements
11438 to always fail with ENOSYS. Some functions are actually named
11439 something starting with __ and the normal name is an alias. */
11440 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11443 char (*f) () = shl_load;
11452 return f != shl_load;
11457 rm -f conftest.$ac_objext conftest$ac_exeext
11458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11459 (eval $ac_link) 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } &&
11466 { ac_try='test -z "$ac_cxx_werror_flag"
11467 || test ! -s conftest.err'
11468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11469 (eval $ac_try) 2>&5
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; } &&
11473 { ac_try='test -s conftest$ac_exeext'
11474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11475 (eval $ac_try) 2>&5
11477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11478 (exit $ac_status); }; }; then
11479 ac_cv_func_shl_load=yes
11481 echo "$as_me: failed program was:" >&5
11482 sed 's/^/| /' conftest.$ac_ext >&5
11484 ac_cv_func_shl_load=no
11486 rm -f conftest.err conftest.$ac_objext \
11487 conftest$ac_exeext conftest.$ac_ext
11489 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11490 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11491 if test $ac_cv_func_shl_load = yes; then
11492 lt_cv_dlopen="shl_load"
11494 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11495 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11496 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11497 echo $ECHO_N "(cached) $ECHO_C" >&6
11499 ac_check_lib_save_LIBS=$LIBS
11501 cat >conftest.$ac_ext <<_ACEOF
11504 cat confdefs.h >>conftest.$ac_ext
11505 cat >>conftest.$ac_ext <<_ACEOF
11506 /* end confdefs.h. */
11508 /* Override any gcc2 internal prototype to avoid an error. */
11512 /* We use char because int might match the return type of a gcc2
11513 builtin and then its argument prototype would still apply. */
11523 rm -f conftest.$ac_objext conftest$ac_exeext
11524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11525 (eval $ac_link) 2>conftest.er1
11527 grep -v '^ *+' conftest.er1 >conftest.err
11529 cat conftest.err >&5
11530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11531 (exit $ac_status); } &&
11532 { ac_try='test -z "$ac_cxx_werror_flag"
11533 || test ! -s conftest.err'
11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11535 (eval $ac_try) 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; } &&
11539 { ac_try='test -s conftest$ac_exeext'
11540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11541 (eval $ac_try) 2>&5
11543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11544 (exit $ac_status); }; }; then
11545 ac_cv_lib_dld_shl_load=yes
11547 echo "$as_me: failed program was:" >&5
11548 sed 's/^/| /' conftest.$ac_ext >&5
11550 ac_cv_lib_dld_shl_load=no
11552 rm -f conftest.err conftest.$ac_objext \
11553 conftest$ac_exeext conftest.$ac_ext
11554 LIBS=$ac_check_lib_save_LIBS
11556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11558 if test $ac_cv_lib_dld_shl_load = yes; then
11559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11561 echo "$as_me:$LINENO: checking for dlopen" >&5
11562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11563 if test "${ac_cv_func_dlopen+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11566 cat >conftest.$ac_ext <<_ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
11573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11574 #define dlopen innocuous_dlopen
11576 /* System header to define __stub macros and hopefully few prototypes,
11577 which can conflict with char dlopen (); below.
11578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11579 <limits.h> exists even on freestanding compilers. */
11582 # include <limits.h>
11584 # include <assert.h>
11589 /* Override any gcc2 internal prototype to avoid an error. */
11594 /* We use char because int might match the return type of a gcc2
11595 builtin and then its argument prototype would still apply. */
11597 /* The GNU C library defines this for functions which it implements
11598 to always fail with ENOSYS. Some functions are actually named
11599 something starting with __ and the normal name is an alias. */
11600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11603 char (*f) () = dlopen;
11612 return f != dlopen;
11617 rm -f conftest.$ac_objext conftest$ac_exeext
11618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11619 (eval $ac_link) 2>conftest.er1
11621 grep -v '^ *+' conftest.er1 >conftest.err
11623 cat conftest.err >&5
11624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11625 (exit $ac_status); } &&
11626 { ac_try='test -z "$ac_cxx_werror_flag"
11627 || test ! -s conftest.err'
11628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11629 (eval $ac_try) 2>&5
11631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632 (exit $ac_status); }; } &&
11633 { ac_try='test -s conftest$ac_exeext'
11634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11635 (eval $ac_try) 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; }; then
11639 ac_cv_func_dlopen=yes
11641 echo "$as_me: failed program was:" >&5
11642 sed 's/^/| /' conftest.$ac_ext >&5
11644 ac_cv_func_dlopen=no
11646 rm -f conftest.err conftest.$ac_objext \
11647 conftest$ac_exeext conftest.$ac_ext
11649 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
11650 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
11651 if test $ac_cv_func_dlopen = yes; then
11652 lt_cv_dlopen="dlopen"
11654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 ac_check_lib_save_LIBS=$LIBS
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11668 /* Override any gcc2 internal prototype to avoid an error. */
11672 /* We use char because int might match the return type of a gcc2
11673 builtin and then its argument prototype would still apply. */
11683 rm -f conftest.$ac_objext conftest$ac_exeext
11684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11685 (eval $ac_link) 2>conftest.er1
11687 grep -v '^ *+' conftest.er1 >conftest.err
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } &&
11692 { ac_try='test -z "$ac_cxx_werror_flag"
11693 || test ! -s conftest.err'
11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11695 (eval $ac_try) 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try='test -s conftest$ac_exeext'
11700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11701 (eval $ac_try) 2>&5
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; }; then
11705 ac_cv_lib_dl_dlopen=yes
11707 echo "$as_me: failed program was:" >&5
11708 sed 's/^/| /' conftest.$ac_ext >&5
11710 ac_cv_lib_dl_dlopen=no
11712 rm -f conftest.err conftest.$ac_objext \
11713 conftest$ac_exeext conftest.$ac_ext
11714 LIBS=$ac_check_lib_save_LIBS
11716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11718 if test $ac_cv_lib_dl_dlopen = yes; then
11719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11721 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11722 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
11723 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11724 echo $ECHO_N "(cached) $ECHO_C" >&6
11726 ac_check_lib_save_LIBS=$LIBS
11727 LIBS="-lsvld $LIBS"
11728 cat >conftest.$ac_ext <<_ACEOF
11731 cat confdefs.h >>conftest.$ac_ext
11732 cat >>conftest.$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 /* Override any gcc2 internal prototype to avoid an error. */
11739 /* We use char because int might match the return type of a gcc2
11740 builtin and then its argument prototype would still apply. */
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11752 (eval $ac_link) 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } &&
11759 { ac_try='test -z "$ac_cxx_werror_flag"
11760 || test ! -s conftest.err'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; } &&
11766 { ac_try='test -s conftest$ac_exeext'
11767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11768 (eval $ac_try) 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; }; then
11772 ac_cv_lib_svld_dlopen=yes
11774 echo "$as_me: failed program was:" >&5
11775 sed 's/^/| /' conftest.$ac_ext >&5
11777 ac_cv_lib_svld_dlopen=no
11779 rm -f conftest.err conftest.$ac_objext \
11780 conftest$ac_exeext conftest.$ac_ext
11781 LIBS=$ac_check_lib_save_LIBS
11783 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11784 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
11785 if test $ac_cv_lib_svld_dlopen = yes; then
11786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11788 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11789 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
11790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11791 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 ac_check_lib_save_LIBS=$LIBS
11795 cat >conftest.$ac_ext <<_ACEOF
11798 cat confdefs.h >>conftest.$ac_ext
11799 cat >>conftest.$ac_ext <<_ACEOF
11800 /* end confdefs.h. */
11802 /* Override any gcc2 internal prototype to avoid an error. */
11806 /* We use char because int might match the return type of a gcc2
11807 builtin and then its argument prototype would still apply. */
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11819 (eval $ac_link) 2>conftest.er1
11821 grep -v '^ *+' conftest.er1 >conftest.err
11823 cat conftest.err >&5
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); } &&
11826 { ac_try='test -z "$ac_cxx_werror_flag"
11827 || test ! -s conftest.err'
11828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11829 (eval $ac_try) 2>&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); }; } &&
11833 { ac_try='test -s conftest$ac_exeext'
11834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11835 (eval $ac_try) 2>&5
11837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11838 (exit $ac_status); }; }; then
11839 ac_cv_lib_dld_dld_link=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.$ac_ext >&5
11844 ac_cv_lib_dld_dld_link=no
11846 rm -f conftest.err conftest.$ac_objext \
11847 conftest$ac_exeext conftest.$ac_ext
11848 LIBS=$ac_check_lib_save_LIBS
11850 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
11852 if test $ac_cv_lib_dld_dld_link = yes; then
11853 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
11874 if test "x$lt_cv_dlopen" != xno; then
11880 case $lt_cv_dlopen in
11882 save_CPPFLAGS="$CPPFLAGS"
11883 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11885 save_LDFLAGS="$LDFLAGS"
11886 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11889 LIBS="$lt_cv_dlopen_libs $LIBS"
11891 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
11893 if test "${lt_cv_dlopen_self+set}" = set; then
11894 echo $ECHO_N "(cached) $ECHO_C" >&6
11896 if test "$cross_compiling" = yes; then :
11897 lt_cv_dlopen_self=cross
11899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11900 lt_status=$lt_dlunknown
11901 cat > conftest.$ac_ext <<EOF
11902 #line 11902 "configure"
11903 #include "confdefs.h"
11912 # define LT_DLGLOBAL RTLD_GLOBAL
11915 # define LT_DLGLOBAL DL_GLOBAL
11917 # define LT_DLGLOBAL 0
11921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11922 find out it does not work in some platform. */
11923 #ifndef LT_DLLAZY_OR_NOW
11925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11928 # define LT_DLLAZY_OR_NOW DL_LAZY
11931 # define LT_DLLAZY_OR_NOW RTLD_NOW
11934 # define LT_DLLAZY_OR_NOW DL_NOW
11936 # define LT_DLLAZY_OR_NOW 0
11944 extern "C" void exit (int);
11947 void fnord() { int i=42;}
11950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11951 int status = $lt_dlunknown;
11955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11957 /* dlclose (self); */
11963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11964 (eval $ac_link) 2>&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11968 (./conftest; exit; ) 2>/dev/null
11970 case x$lt_status in
11971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11973 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
11976 # compilation failed
11977 lt_cv_dlopen_self=no
11984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11985 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
11987 if test "x$lt_cv_dlopen_self" = xyes; then
11988 LDFLAGS="$LDFLAGS $link_static_flag"
11989 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11990 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
11991 if test "${lt_cv_dlopen_self_static+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11994 if test "$cross_compiling" = yes; then :
11995 lt_cv_dlopen_self_static=cross
11997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11998 lt_status=$lt_dlunknown
11999 cat > conftest.$ac_ext <<EOF
12000 #line 12000 "configure"
12001 #include "confdefs.h"
12010 # define LT_DLGLOBAL RTLD_GLOBAL
12013 # define LT_DLGLOBAL DL_GLOBAL
12015 # define LT_DLGLOBAL 0
12019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12020 find out it does not work in some platform. */
12021 #ifndef LT_DLLAZY_OR_NOW
12023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12026 # define LT_DLLAZY_OR_NOW DL_LAZY
12029 # define LT_DLLAZY_OR_NOW RTLD_NOW
12032 # define LT_DLLAZY_OR_NOW DL_NOW
12034 # define LT_DLLAZY_OR_NOW 0
12042 extern "C" void exit (int);
12045 void fnord() { int i=42;}
12048 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12049 int status = $lt_dlunknown;
12053 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12054 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12055 /* dlclose (self); */
12061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12062 (eval $ac_link) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12066 (./conftest; exit; ) 2>/dev/null
12068 case x$lt_status in
12069 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12070 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12071 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12074 # compilation failed
12075 lt_cv_dlopen_self_static=no
12082 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12083 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12086 CPPFLAGS="$save_CPPFLAGS"
12087 LDFLAGS="$save_LDFLAGS"
12092 case $lt_cv_dlopen_self in
12093 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12094 *) enable_dlopen_self=unknown ;;
12097 case $lt_cv_dlopen_self_static in
12098 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12099 *) enable_dlopen_self_static=unknown ;;
12104 # The else clause should only fire when bootstrapping the
12105 # libtool distribution, otherwise you forgot to ship ltmain.sh
12106 # with your package, and you will get complaints that there are
12107 # no rules to generate ltmain.sh.
12108 if test -f "$ltmain"; then
12109 # See if we are running on zsh, and set the options which allow our commands through
12110 # without removal of \ escapes.
12111 if test -n "${ZSH_VERSION+set}" ; then
12112 setopt NO_GLOB_SUBST
12114 # Now quote all the things that may contain metacharacters while being
12115 # careful not to overquote the AC_SUBSTed values. We take copies of the
12116 # variables and quote the copies for generation of the libtool script.
12117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12121 deplibs_check_method reload_flag reload_cmds need_locks \
12122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12123 lt_cv_sys_global_symbol_to_c_name_address \
12124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12125 old_postinstall_cmds old_postuninstall_cmds \
12129 lt_prog_compiler_wl_CXX \
12130 lt_prog_compiler_pic_CXX \
12131 lt_prog_compiler_static_CXX \
12132 lt_prog_compiler_no_builtin_flag_CXX \
12133 export_dynamic_flag_spec_CXX \
12134 thread_safe_flag_spec_CXX \
12135 whole_archive_flag_spec_CXX \
12136 enable_shared_with_static_runtimes_CXX \
12137 old_archive_cmds_CXX \
12138 old_archive_from_new_cmds_CXX \
12139 predep_objects_CXX \
12140 postdep_objects_CXX \
12143 compiler_lib_search_path_CXX \
12145 archive_expsym_cmds_CXX \
12146 postinstall_cmds_CXX \
12147 postuninstall_cmds_CXX \
12148 old_archive_from_expsyms_cmds_CXX \
12149 allow_undefined_flag_CXX \
12150 no_undefined_flag_CXX \
12151 export_symbols_cmds_CXX \
12152 hardcode_libdir_flag_spec_CXX \
12153 hardcode_libdir_flag_spec_ld_CXX \
12154 hardcode_libdir_separator_CXX \
12155 hardcode_automatic_CXX \
12157 module_expsym_cmds_CXX \
12158 lt_cv_prog_compiler_c_o_CXX \
12159 exclude_expsyms_CXX \
12160 include_expsyms_CXX; do
12163 old_archive_cmds_CXX | \
12164 old_archive_from_new_cmds_CXX | \
12165 archive_cmds_CXX | \
12166 archive_expsym_cmds_CXX | \
12167 module_cmds_CXX | \
12168 module_expsym_cmds_CXX | \
12169 old_archive_from_expsyms_cmds_CXX | \
12170 export_symbols_cmds_CXX | \
12171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12172 postinstall_cmds | postuninstall_cmds | \
12173 old_postinstall_cmds | old_postuninstall_cmds | \
12174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12175 # Double-quote double-evaled strings.
12176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12185 *'\$0 --fallback-echo"')
12186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12192 cat <<__EOF__ >> "$cfgfile"
12193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12197 # Shell to use when invoking shell scripts.
12200 # Whether or not to build shared libraries.
12201 build_libtool_libs=$enable_shared
12203 # Whether or not to build static libraries.
12204 build_old_libs=$enable_static
12206 # Whether or not to add -lc for building shared libraries.
12207 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12209 # Whether or not to disallow shared libs when runtime libs are static
12210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12212 # Whether or not to optimize for fast installation.
12213 fast_install=$enable_fast_install
12216 host_alias=$host_alias
12219 # An echo program that does not interpret backslashes.
12224 AR_FLAGS=$lt_AR_FLAGS
12229 # A language-specific compiler.
12230 CC=$lt_compiler_CXX
12232 # Is the compiler the GNU C compiler?
12238 # The linker used to build libraries.
12241 # Whether we need hard or soft links.
12244 # A BSD-compatible nm program.
12247 # A symbol stripping program
12250 # Used to examine libraries when file_magic_cmd begins "file"
12251 MAGIC_CMD=$MAGIC_CMD
12253 # Used on cygwin: DLL creation program.
12256 # Used on cygwin: object dumper.
12259 # Used on cygwin: assembler.
12262 # The name of the directory that contains temporary libtool files.
12265 # How to create reloadable object files.
12266 reload_flag=$lt_reload_flag
12267 reload_cmds=$lt_reload_cmds
12269 # How to pass a linker flag through the compiler.
12270 wl=$lt_lt_prog_compiler_wl_CXX
12272 # Object file suffix (normally "o").
12273 objext="$ac_objext"
12275 # Old archive suffix (normally "a").
12278 # Shared library suffix (normally ".so").
12279 shrext_cmds='$shrext_cmds'
12281 # Executable file suffix (normally "").
12284 # Additional compiler flags for building library objects.
12285 pic_flag=$lt_lt_prog_compiler_pic_CXX
12288 # What is the maximum length of a command?
12289 max_cmd_len=$lt_cv_sys_max_cmd_len
12291 # Does compiler simultaneously support -c and -o options?
12292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12294 # Must we lock files when doing compilation ?
12295 need_locks=$lt_need_locks
12297 # Do we need the lib prefix for modules?
12298 need_lib_prefix=$need_lib_prefix
12300 # Do we need a version for libraries?
12301 need_version=$need_version
12303 # Whether dlopen is supported.
12304 dlopen_support=$enable_dlopen
12306 # Whether dlopen of programs is supported.
12307 dlopen_self=$enable_dlopen_self
12309 # Whether dlopen of statically linked programs is supported.
12310 dlopen_self_static=$enable_dlopen_self_static
12312 # Compiler flag to prevent dynamic linking.
12313 link_static_flag=$lt_lt_prog_compiler_static_CXX
12315 # Compiler flag to turn off builtin functions.
12316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12318 # Compiler flag to allow reflexive dlopens.
12319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12321 # Compiler flag to generate shared objects directly from archives.
12322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12324 # Compiler flag to generate thread-safe objects.
12325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12327 # Library versioning type.
12328 version_type=$version_type
12330 # Format of library name prefix.
12331 libname_spec=$lt_libname_spec
12333 # List of archive names. First name is the real one, the rest are links.
12334 # The last name is the one that the linker finds with -lNAME.
12335 library_names_spec=$lt_library_names_spec
12337 # The coded name of the library, if different from the real name.
12338 soname_spec=$lt_soname_spec
12340 # Commands used to build and install an old-style archive.
12342 old_archive_cmds=$lt_old_archive_cmds_CXX
12343 old_postinstall_cmds=$lt_old_postinstall_cmds
12344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12346 # Create an old-style archive from a shared archive.
12347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12349 # Create a temporary old-style archive to link instead of a shared archive.
12350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12352 # Commands used to build and install a shared archive.
12353 archive_cmds=$lt_archive_cmds_CXX
12354 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12355 postinstall_cmds=$lt_postinstall_cmds
12356 postuninstall_cmds=$lt_postuninstall_cmds
12358 # Commands used to build a loadable module (assumed same as above if empty)
12359 module_cmds=$lt_module_cmds_CXX
12360 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12362 # Commands to strip libraries.
12363 old_striplib=$lt_old_striplib
12364 striplib=$lt_striplib
12366 # Dependencies to place before the objects being linked to create a
12368 predep_objects=$lt_predep_objects_CXX
12370 # Dependencies to place after the objects being linked to create a
12372 postdep_objects=$lt_postdep_objects_CXX
12374 # Dependencies to place before the objects being linked to create a
12376 predeps=$lt_predeps_CXX
12378 # Dependencies to place after the objects being linked to create a
12380 postdeps=$lt_postdeps_CXX
12382 # The library search path used internally by the compiler when linking
12383 # a shared library.
12384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12386 # Method to check whether dependent libraries are shared objects.
12387 deplibs_check_method=$lt_deplibs_check_method
12389 # Command to use when deplibs_check_method == file_magic.
12390 file_magic_cmd=$lt_file_magic_cmd
12392 # Flag that allows shared libraries with undefined symbols to be built.
12393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12395 # Flag that forces no undefined symbols.
12396 no_undefined_flag=$lt_no_undefined_flag_CXX
12398 # Commands used to finish a libtool library installation in a directory.
12399 finish_cmds=$lt_finish_cmds
12401 # Same as above, but a single script fragment to be evaled but not shown.
12402 finish_eval=$lt_finish_eval
12404 # Take the output of nm and produce a listing of raw symbols and C names.
12405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12407 # Transform the output of nm in a proper C declaration
12408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12410 # Transform the output of nm in a C name address pair
12411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12413 # This is the shared library runtime path variable.
12414 runpath_var=$runpath_var
12416 # This is the shared library path variable.
12417 shlibpath_var=$shlibpath_var
12419 # Is shlibpath searched before the hard-coded library search path?
12420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12422 # How to hardcode a shared library path into an executable.
12423 hardcode_action=$hardcode_action_CXX
12425 # Whether we should hardcode library paths into libraries.
12426 hardcode_into_libs=$hardcode_into_libs
12428 # Flag to hardcode \$libdir into a binary during linking.
12429 # This must work even if \$libdir does not exist.
12430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12432 # If ld is used when linking, flag to hardcode \$libdir into
12433 # a binary during linking. This must work even if \$libdir does
12435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12437 # Whether we need a single -rpath flag with a separated argument.
12438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12441 # resulting binary.
12442 hardcode_direct=$hardcode_direct_CXX
12444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12445 # resulting binary.
12446 hardcode_minus_L=$hardcode_minus_L_CXX
12448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12449 # the resulting binary.
12450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12452 # Set to yes if building a shared library automatically hardcodes DIR into the library
12453 # and all subsequent libraries and executables linked against it.
12454 hardcode_automatic=$hardcode_automatic_CXX
12456 # Variables whose values should be saved in libtool wrapper scripts and
12457 # restored at relink time.
12458 variables_saved_for_relink="$variables_saved_for_relink"
12460 # Whether libtool must link a program against all its dependency libraries.
12461 link_all_deplibs=$link_all_deplibs_CXX
12463 # Compile-time system search path for libraries
12464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12466 # Run-time system search path for libraries
12467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12469 # Fix the shell variable \$srcfile for the compiler.
12470 fix_srcfile_path="$fix_srcfile_path_CXX"
12472 # Set to yes if exported symbols are required.
12473 always_export_symbols=$always_export_symbols_CXX
12475 # The commands to list exported symbols.
12476 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12478 # The commands to extract the exported symbol list from a shared archive.
12479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12481 # Symbols that should not be listed in the preloaded symbols.
12482 exclude_expsyms=$lt_exclude_expsyms_CXX
12484 # Symbols that must always be exported.
12485 include_expsyms=$lt_include_expsyms_CXX
12487 # ### END LIBTOOL TAG CONFIG: $tagname
12493 # If there is no Makefile yet, we rely on a make rule to execute
12494 # `config.status --recheck' to rerun these tests and create the
12495 # libtool script then.
12496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12497 if test -f "$ltmain_in"; then
12498 test -f Makefile && make "$ltmain"
12504 ac_cpp='$CPP $CPPFLAGS'
12505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12513 with_gnu_ldcxx=$with_gnu_ld
12514 with_gnu_ld=$lt_save_with_gnu_ld
12515 lt_cv_path_LDCXX=$lt_cv_path_LD
12516 lt_cv_path_LD=$lt_save_path_LD
12517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12526 if test -n "$F77" && test "X$F77" != "Xno"; then
12529 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12530 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12531 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12534 archive_cmds_need_lc_F77=no
12535 allow_undefined_flag_F77=
12536 always_export_symbols_F77=no
12537 archive_expsym_cmds_F77=
12538 export_dynamic_flag_spec_F77=
12539 hardcode_direct_F77=no
12540 hardcode_libdir_flag_spec_F77=
12541 hardcode_libdir_flag_spec_ld_F77=
12542 hardcode_libdir_separator_F77=
12543 hardcode_minus_L_F77=no
12544 hardcode_automatic_F77=no
12546 module_expsym_cmds_F77=
12547 link_all_deplibs_F77=unknown
12548 old_archive_cmds_F77=$old_archive_cmds
12549 no_undefined_flag_F77=
12550 whole_archive_flag_spec_F77=
12551 enable_shared_with_static_runtimes_F77=no
12553 # Source file extension for f77 test sources.
12556 # Object file extension for compiled f77 test sources.
12560 # Code to be used in simple compile tests
12561 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
12563 # Code to be used in simple link tests
12564 lt_simple_link_test_code=" program t\n end\n"
12566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12568 # If no C compiler was specified, use CC.
12571 # Allow CC to be a program name with arguments.
12575 # Allow CC to be a program name with arguments.
12580 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12585 echo "${ECHO_T}$can_build_shared" >&6
12587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12589 test "$can_build_shared" = "no" && enable_shared=no
12591 # On AIX, shared libraries and static libraries use the same namespace, and
12592 # are all built from PIC.
12595 test "$enable_shared" = yes && enable_static=no
12596 if test -n "$RANLIB"; then
12597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12598 postinstall_cmds='$RANLIB $lib'
12602 test "$enable_shared" = yes && enable_static=no
12605 echo "$as_me:$LINENO: result: $enable_shared" >&5
12606 echo "${ECHO_T}$enable_shared" >&6
12608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12610 # Make sure either enable_shared or enable_static is yes.
12611 test "$enable_shared" = yes || enable_static=yes
12612 echo "$as_me:$LINENO: result: $enable_static" >&5
12613 echo "${ECHO_T}$enable_static" >&6
12615 test "$ld_shlibs_F77" = no && can_build_shared=no
12620 lt_prog_compiler_wl_F77=
12621 lt_prog_compiler_pic_F77=
12622 lt_prog_compiler_static_F77=
12624 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12627 if test "$GCC" = yes; then
12628 lt_prog_compiler_wl_F77='-Wl,'
12629 lt_prog_compiler_static_F77='-static'
12633 # All AIX code is PIC.
12634 if test "$host_cpu" = ia64; then
12635 # AIX 5 now supports IA64 processor
12636 lt_prog_compiler_static_F77='-Bstatic'
12641 # FIXME: we need at least 68020 code to build shared libraries, but
12642 # adding the `-m68020' flag to GCC prevents building anything better,
12644 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12648 # PIC is the default for these OSes.
12651 mingw* | pw32* | os2*)
12652 # This hack is so that the source file can tell whether it is being
12653 # built for inclusion in a dll (and should export symbols for example).
12654 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12657 darwin* | rhapsody*)
12658 # PIC is the default on this platform
12659 # Common symbols not allowed in MH_DYLIB files
12660 lt_prog_compiler_pic_F77='-fno-common'
12664 # Just because we use GCC doesn't mean we suddenly get shared libraries
12665 # on systems that don't support them.
12666 lt_prog_compiler_can_build_shared_F77=no
12671 if test -d /usr/nec; then
12672 lt_prog_compiler_pic_F77=-Kconform_pic
12677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12678 # not for PA HP-UX.
12679 case "$host_cpu" in
12684 lt_prog_compiler_pic_F77='-fPIC'
12690 lt_prog_compiler_pic_F77='-fPIC'
12694 # PORTME Check for flag to pass linker flags through the system compiler.
12697 lt_prog_compiler_wl_F77='-Wl,'
12698 if test "$host_cpu" = ia64; then
12699 # AIX 5 now supports IA64 processor
12700 lt_prog_compiler_static_F77='-Bstatic'
12702 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
12706 # PIC is the default on this platform
12707 # Common symbols not allowed in MH_DYLIB files
12708 case "$cc_basename" in
12710 lt_prog_compiler_pic_F77='-qnocommon'
12711 lt_prog_compiler_wl_F77='-Wl,'
12716 mingw* | pw32* | os2*)
12717 # This hack is so that the source file can tell whether it is being
12718 # built for inclusion in a dll (and should export symbols for example).
12719 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12722 hpux9* | hpux10* | hpux11*)
12723 lt_prog_compiler_wl_F77='-Wl,'
12724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12725 # not for PA HP-UX.
12726 case "$host_cpu" in
12731 lt_prog_compiler_pic_F77='+Z'
12734 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12735 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
12738 irix5* | irix6* | nonstopux*)
12739 lt_prog_compiler_wl_F77='-Wl,'
12740 # PIC (with -KPIC) is the default.
12741 lt_prog_compiler_static_F77='-non_shared'
12745 lt_prog_compiler_pic_F77='-KPIC'
12746 lt_prog_compiler_static_F77='-Bstatic'
12752 lt_prog_compiler_wl_F77='-Wl,'
12753 lt_prog_compiler_pic_F77='-KPIC'
12754 lt_prog_compiler_static_F77='-static'
12757 lt_prog_compiler_wl_F77='-Wl,'
12758 # All Alpha code is PIC.
12759 lt_prog_compiler_static_F77='-non_shared'
12764 osf3* | osf4* | osf5*)
12765 lt_prog_compiler_wl_F77='-Wl,'
12766 # All OSF/1 code is PIC.
12767 lt_prog_compiler_static_F77='-non_shared'
12771 lt_prog_compiler_pic_F77='-Kpic'
12772 lt_prog_compiler_static_F77='-dn'
12776 lt_prog_compiler_wl_F77='-Wl,'
12777 lt_prog_compiler_pic_F77='-KPIC'
12778 lt_prog_compiler_static_F77='-Bstatic'
12782 lt_prog_compiler_wl_F77='-Qoption ld '
12783 lt_prog_compiler_pic_F77='-PIC'
12784 lt_prog_compiler_static_F77='-Bstatic'
12787 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
12788 lt_prog_compiler_wl_F77='-Wl,'
12789 lt_prog_compiler_pic_F77='-KPIC'
12790 lt_prog_compiler_static_F77='-Bstatic'
12794 if test -d /usr/nec ;then
12795 lt_prog_compiler_pic_F77='-Kconform_pic'
12796 lt_prog_compiler_static_F77='-Bstatic'
12801 lt_prog_compiler_pic_F77='-pic'
12802 lt_prog_compiler_static_F77='-Bstatic'
12806 lt_prog_compiler_can_build_shared_F77=no
12811 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
12812 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
12815 # Check to make sure the PIC flag actually works.
12817 if test -n "$lt_prog_compiler_pic_F77"; then
12819 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
12820 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
12821 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12824 lt_prog_compiler_pic_works_F77=no
12825 ac_outfile=conftest.$ac_objext
12826 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12827 lt_compiler_flag="$lt_prog_compiler_pic_F77"
12828 # Insert the option either (1) after the last *FLAGS variable, or
12829 # (2) before a word containing "conftest.", or (3) at the end.
12830 # Note that $ac_compile itself does not contain backslashes and begins
12831 # with a dollar sign (not a hyphen), so the echo should work correctly.
12832 # The option is referenced via a variable to avoid confusing sed.
12833 lt_compile=`echo "$ac_compile" | $SED \
12834 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12835 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12836 -e 's:$: $lt_compiler_flag:'`
12837 (eval echo "\"\$as_me:12837: $lt_compile\"" >&5)
12838 (eval "$lt_compile" 2>conftest.err)
12840 cat conftest.err >&5
12841 echo "$as_me:12841: \$? = $ac_status" >&5
12842 if (exit $ac_status) && test -s "$ac_outfile"; then
12843 # The compiler can only warn and ignore the option if not recognized
12844 # So say no if there are warnings
12845 if test ! -s conftest.err; then
12846 lt_prog_compiler_pic_works_F77=yes
12852 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
12853 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
12855 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
12856 case $lt_prog_compiler_pic_F77 in
12858 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
12861 lt_prog_compiler_pic_F77=
12862 lt_prog_compiler_can_build_shared_F77=no
12867 # For platforms which do not support PIC, -DPIC is meaningless:
12869 lt_prog_compiler_pic_F77=
12872 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
12876 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12877 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12878 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
12879 echo $ECHO_N "(cached) $ECHO_C" >&6
12881 lt_cv_prog_compiler_c_o_F77=no
12882 $rm -r conftest 2>/dev/null
12886 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12888 lt_compiler_flag="-o out/conftest2.$ac_objext"
12889 # Insert the option either (1) after the last *FLAGS variable, or
12890 # (2) before a word containing "conftest.", or (3) at the end.
12891 # Note that $ac_compile itself does not contain backslashes and begins
12892 # with a dollar sign (not a hyphen), so the echo should work correctly.
12893 lt_compile=`echo "$ac_compile" | $SED \
12894 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12895 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12896 -e 's:$: $lt_compiler_flag:'`
12897 (eval echo "\"\$as_me:12897: $lt_compile\"" >&5)
12898 (eval "$lt_compile" 2>out/conftest.err)
12900 cat out/conftest.err >&5
12901 echo "$as_me:12901: \$? = $ac_status" >&5
12902 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12904 # The compiler can only warn and ignore the option if not recognized
12905 # So say no if there are warnings
12906 if test ! -s out/conftest.err; then
12907 lt_cv_prog_compiler_c_o_F77=yes
12912 # SGI C++ compiler will create directory out/ii_files/ for
12913 # template instantiation
12914 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12915 $rm out/* && rmdir out
12921 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
12922 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
12925 hard_links="nottested"
12926 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
12927 # do not overwrite the value of need_locks provided by the user
12928 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12929 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12932 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12934 ln conftest.a conftest.b 2>&5 || hard_links=no
12935 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12936 echo "$as_me:$LINENO: result: $hard_links" >&5
12937 echo "${ECHO_T}$hard_links" >&6
12938 if test "$hard_links" = no; then
12939 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12940 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12947 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12948 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12951 allow_undefined_flag_F77=
12952 enable_shared_with_static_runtimes_F77=no
12954 archive_expsym_cmds_F77=
12955 old_archive_From_new_cmds_F77=
12956 old_archive_from_expsyms_cmds_F77=
12957 export_dynamic_flag_spec_F77=
12958 whole_archive_flag_spec_F77=
12959 thread_safe_flag_spec_F77=
12960 hardcode_libdir_flag_spec_F77=
12961 hardcode_libdir_flag_spec_ld_F77=
12962 hardcode_libdir_separator_F77=
12963 hardcode_direct_F77=no
12964 hardcode_minus_L_F77=no
12965 hardcode_shlibpath_var_F77=unsupported
12966 link_all_deplibs_F77=unknown
12967 hardcode_automatic_F77=no
12969 module_expsym_cmds_F77=
12970 always_export_symbols_F77=no
12971 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12972 # include_expsyms should be a list of space-separated symbols to be *always*
12973 # included in the symbol list
12974 include_expsyms_F77=
12975 # exclude_expsyms can be an extended regexp of symbols to exclude
12976 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12977 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12978 # as well as any symbol that contains `d'.
12979 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
12980 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12981 # platforms (ab)use it in PIC code, but their linkers get confused if
12982 # the symbol is explicitly referenced. Since portable code cannot
12983 # rely on this symbol name, it's probably fine to never include it in
12984 # preloaded symbol tables.
12985 extract_expsyms_cmds=
12988 cygwin* | mingw* | pw32*)
12989 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12990 # When not using gcc, we currently assume that we are using
12991 # Microsoft Visual C++.
12992 if test "$GCC" != yes; then
13002 if test "$with_gnu_ld" = yes; then
13003 # If archive_cmds runs LD, not CC, wlarc should be empty
13006 # See if GNU ld supports shared libraries.
13008 aix3* | aix4* | aix5*)
13009 # On AIX/PPC, the GNU linker is very broken
13010 if test "$host_cpu" != ia64; then
13014 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13015 *** to be unable to reliably create shared libraries on AIX.
13016 *** Therefore, libtool is disabling shared libraries support. If you
13017 *** really care for shared libraries, you may want to modify your PATH
13018 *** so that a non-GNU linker is found, and then restart.
13025 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)'
13026 hardcode_libdir_flag_spec_F77='-L$libdir'
13027 hardcode_minus_L_F77=yes
13029 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13030 # that the semantics of dynamic libraries on AmigaOS, at least up
13031 # to version 4, is to share data among multiple programs linked
13032 # with the same dynamic library. Since this doesn't match the
13033 # behavior of shared libraries on other platforms, we can't use
13039 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13040 allow_undefined_flag_F77=unsupported
13041 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13042 # support --undefined. This deserves some investigation. FIXME
13043 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13049 cygwin* | mingw* | pw32*)
13050 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13051 # as there is no search path for DLLs.
13052 hardcode_libdir_flag_spec_F77='-L$libdir'
13053 allow_undefined_flag_F77=unsupported
13054 always_export_symbols_F77=no
13055 enable_shared_with_static_runtimes_F77=yes
13056 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13058 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13059 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13060 # If the export-symbols file already is a .def file (1st line
13061 # is EXPORTS), use it as is; otherwise, prepend...
13062 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13063 cp $export_symbols $output_objdir/$soname.def;
13065 echo EXPORTS > $output_objdir/$soname.def;
13066 cat $export_symbols >> $output_objdir/$soname.def;
13068 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13076 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13079 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13080 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13085 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13089 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13090 *** create shared libraries on Solaris systems. Therefore, libtool
13091 *** is disabling shared libraries support. We urge you to upgrade GNU
13092 *** binutils to release 2.9.1 or newer. Another option is to modify
13093 *** your PATH or compiler configuration so that the native linker is
13094 *** used, and then restart.
13097 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13098 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13099 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13106 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13108 hardcode_direct_F77=yes
13109 hardcode_shlibpath_var_F77=no
13113 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13114 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13115 archive_cmds_F77="$tmp_archive_cmds"
13116 supports_anon_versioning=no
13117 case `$LD -v 2>/dev/null` in
13118 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13119 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13120 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13121 *\ 2.11.*) ;; # other 2.11 versions
13122 *) supports_anon_versioning=yes ;;
13124 if test $supports_anon_versioning = yes; then
13125 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13126 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13127 $echo "local: *; };" >> $output_objdir/$libname.ver~
13128 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13130 archive_expsym_cmds_F77="$tmp_archive_cmds"
13138 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13139 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13147 if test "$ld_shlibs_F77" = yes; then
13148 runpath_var=LD_RUN_PATH
13149 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13150 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13151 # ancient GNU ld didn't support --whole-archive et. al.
13152 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13153 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13155 whole_archive_flag_spec_F77=
13159 # PORTME fill in a description of your system's linker (not GNU ld)
13162 allow_undefined_flag_F77=unsupported
13163 always_export_symbols_F77=yes
13164 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'
13165 # Note: this linker hardcodes the directories in LIBPATH if there
13166 # are no directories specified by -L.
13167 hardcode_minus_L_F77=yes
13168 if test "$GCC" = yes && test -z "$link_static_flag"; then
13169 # Neither direct hardcoding nor static linking is supported with a
13171 hardcode_direct_F77=unsupported
13176 if test "$host_cpu" = ia64; then
13177 # On IA64, the linker does run time linking by default, so we don't
13178 # have to do anything special.
13179 aix_use_runtimelinking=no
13180 exp_sym_flag='-Bexport'
13183 # If we're using GNU nm, then we don't want the "-C" option.
13184 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13185 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13186 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'
13188 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'
13190 aix_use_runtimelinking=no
13192 # Test if we are trying to use run time linking or normal
13193 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13194 # need to do runtime linking.
13195 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13196 for ld_flag in $LDFLAGS; do
13197 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13198 aix_use_runtimelinking=yes
13204 exp_sym_flag='-bexport'
13205 no_entry_flag='-bnoentry'
13208 # When large executables or shared objects are built, AIX ld can
13209 # have problems creating the table of contents. If linking a library
13210 # or program results in "error TOC overflow" add -mminimal-toc to
13211 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13212 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13214 archive_cmds_F77=''
13215 hardcode_direct_F77=yes
13216 hardcode_libdir_separator_F77=':'
13217 link_all_deplibs_F77=yes
13219 if test "$GCC" = yes; then
13220 case $host_os in aix4.012|aix4.012.*)
13221 # We only want to do this on AIX 4.2 and lower, the check
13222 # below for broken collect2 doesn't work under 4.3+
13223 collect2name=`${CC} -print-prog-name=collect2`
13224 if test -f "$collect2name" && \
13225 strings "$collect2name" | grep resolve_lib_name >/dev/null
13227 # We have reworked collect2
13228 hardcode_direct_F77=yes
13230 # We have old collect2
13231 hardcode_direct_F77=unsupported
13232 # It fails to find uninstalled libraries when the uninstalled
13233 # path is not listed in the libpath. Setting hardcode_minus_L
13234 # to unsupported forces relinking
13235 hardcode_minus_L_F77=yes
13236 hardcode_libdir_flag_spec_F77='-L$libdir'
13237 hardcode_libdir_separator_F77=
13240 shared_flag='-shared'
13243 if test "$host_cpu" = ia64; then
13244 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13245 # chokes on -Wl,-G. The following line is correct:
13248 if test "$aix_use_runtimelinking" = yes; then
13249 shared_flag='${wl}-G'
13251 shared_flag='${wl}-bM:SRE'
13256 # It seems that -bexpall does not export symbols beginning with
13257 # underscore (_), so it is better to generate a list of symbols to export.
13258 always_export_symbols_F77=yes
13259 if test "$aix_use_runtimelinking" = yes; then
13260 # Warning - without using the other runtime loading flags (-brtl),
13261 # -berok will link without error, but may produce a broken library.
13262 allow_undefined_flag_F77='-berok'
13263 # Determine the default libpath from the value encoded in an empty executable.
13264 cat >conftest.$ac_ext <<_ACEOF
13269 rm -f conftest.$ac_objext conftest$ac_exeext
13270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13271 (eval $ac_link) 2>conftest.er1
13273 grep -v '^ *+' conftest.er1 >conftest.err
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } &&
13278 { ac_try='test -z "$ac_f77_werror_flag"
13279 || test ! -s conftest.err'
13280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13281 (eval $ac_try) 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try='test -s conftest$ac_exeext'
13286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13287 (eval $ac_try) 2>&5
13289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13290 (exit $ac_status); }; }; then
13292 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13294 # Check for a 64-bit object if we didn't find anything.
13295 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; }
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13302 rm -f conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13306 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13307 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"
13309 if test "$host_cpu" = ia64; then
13310 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13311 allow_undefined_flag_F77="-z nodefs"
13312 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"
13314 # Determine the default libpath from the value encoded in an empty executable.
13315 cat >conftest.$ac_ext <<_ACEOF
13320 rm -f conftest.$ac_objext conftest$ac_exeext
13321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13322 (eval $ac_link) 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } &&
13329 { ac_try='test -z "$ac_f77_werror_flag"
13330 || test ! -s conftest.err'
13331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13332 (eval $ac_try) 2>&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); }; } &&
13336 { ac_try='test -s conftest$ac_exeext'
13337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13338 (eval $ac_try) 2>&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); }; }; then
13343 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13345 # Check for a 64-bit object if we didn't find anything.
13346 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; }
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13353 rm -f conftest.err conftest.$ac_objext \
13354 conftest$ac_exeext conftest.$ac_ext
13355 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13357 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13358 # Warning - without using the other run time loading flags,
13359 # -berok will link without error, but may produce a broken library.
13360 no_undefined_flag_F77=' ${wl}-bernotok'
13361 allow_undefined_flag_F77=' ${wl}-berok'
13362 # -bexpall does not export symbols beginning with underscore (_)
13363 always_export_symbols_F77=yes
13364 # Exported symbols can be pulled into shared objects from archives
13365 whole_archive_flag_spec_F77=' '
13366 archive_cmds_need_lc_F77=yes
13367 # This is similar to how AIX traditionally builds it's shared libraries.
13368 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'
13374 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)'
13375 hardcode_libdir_flag_spec_F77='-L$libdir'
13376 hardcode_minus_L_F77=yes
13377 # see comment about different semantics on the GNU ld section
13382 export_dynamic_flag_spec_F77=-rdynamic
13385 cygwin* | mingw* | pw32*)
13386 # When not using gcc, we currently assume that we are using
13387 # Microsoft Visual C++.
13388 # hardcode_libdir_flag_spec is actually meaningless, as there is
13389 # no search path for DLLs.
13390 hardcode_libdir_flag_spec_F77=' '
13391 allow_undefined_flag_F77=unsupported
13392 # Tell ltmain to make .lib files, not .a files.
13394 # Tell ltmain to make .dll files, not .so files.
13396 # FIXME: Setting linknames here is a bad hack.
13397 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13398 # The linker will automatically build a .lib file if we build a DLL.
13399 old_archive_From_new_cmds_F77='true'
13400 # FIXME: Should let the user specify the lib program.
13401 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13402 fix_srcfile_path='`cygpath -w "$srcfile"`'
13403 enable_shared_with_static_runtimes_F77=yes
13406 darwin* | rhapsody*)
13408 rhapsody* | darwin1.[012])
13409 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13412 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13413 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13415 case ${MACOSX_DEPLOYMENT_TARGET} in
13417 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13420 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13426 archive_cmds_need_lc_F77=no
13427 hardcode_direct_F77=no
13428 hardcode_automatic_F77=yes
13429 hardcode_shlibpath_var_F77=unsupported
13430 whole_archive_flag_spec_F77=''
13431 link_all_deplibs_F77=yes
13432 if test "$GCC" = yes ; then
13433 output_verbose_link_cmd='echo'
13434 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13435 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13436 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13437 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13438 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}'
13440 case "$cc_basename" in
13442 output_verbose_link_cmd='echo'
13443 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13444 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13445 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13446 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13447 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}'
13457 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13458 hardcode_libdir_flag_spec_F77='-L$libdir'
13459 hardcode_shlibpath_var_F77=no
13466 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13467 # support. Future versions do this automatically, but an explicit c++rt0.o
13468 # does not break anything, and helps significantly (at the cost of a little
13471 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13472 hardcode_libdir_flag_spec_F77='-R$libdir'
13473 hardcode_direct_F77=yes
13474 hardcode_shlibpath_var_F77=no
13477 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13479 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13480 hardcode_direct_F77=yes
13481 hardcode_minus_L_F77=yes
13482 hardcode_shlibpath_var_F77=no
13485 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13486 freebsd* | kfreebsd*-gnu)
13487 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13488 hardcode_libdir_flag_spec_F77='-R$libdir'
13489 hardcode_direct_F77=yes
13490 hardcode_shlibpath_var_F77=no
13494 if test "$GCC" = yes; then
13495 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'
13497 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'
13499 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13500 hardcode_libdir_separator_F77=:
13501 hardcode_direct_F77=yes
13503 # hardcode_minus_L: Not really in the search PATH,
13504 # but as the default location of the library.
13505 hardcode_minus_L_F77=yes
13506 export_dynamic_flag_spec_F77='${wl}-E'
13510 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13511 case "$host_cpu" in
13513 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13516 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13520 case "$host_cpu" in
13522 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13525 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13529 if test "$with_gnu_ld" = no; then
13530 case "$host_cpu" in
13532 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13533 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13534 hardcode_libdir_separator_F77=:
13535 hardcode_direct_F77=no
13536 hardcode_shlibpath_var_F77=no
13539 hardcode_libdir_flag_spec_F77='-L$libdir'
13540 hardcode_direct_F77=no
13541 hardcode_shlibpath_var_F77=no
13543 # hardcode_minus_L: Not really in the search PATH,
13544 # but as the default location of the library.
13545 hardcode_minus_L_F77=yes
13548 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13549 hardcode_libdir_separator_F77=:
13550 hardcode_direct_F77=yes
13551 export_dynamic_flag_spec_F77='${wl}-E'
13553 # hardcode_minus_L: Not really in the search PATH,
13554 # but as the default location of the library.
13555 hardcode_minus_L_F77=yes
13561 irix5* | irix6* | nonstopux*)
13562 if test "$GCC" = yes; then
13563 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'
13565 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'
13566 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13568 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13569 hardcode_libdir_separator_F77=:
13570 link_all_deplibs_F77=yes
13574 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13575 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13577 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13579 hardcode_libdir_flag_spec_F77='-R$libdir'
13580 hardcode_direct_F77=yes
13581 hardcode_shlibpath_var_F77=no
13585 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13586 hardcode_direct_F77=yes
13587 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13588 hardcode_libdir_separator_F77=:
13589 hardcode_shlibpath_var_F77=no
13593 hardcode_direct_F77=yes
13594 hardcode_shlibpath_var_F77=no
13595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13596 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13597 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13598 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13599 export_dynamic_flag_spec_F77='${wl}-E'
13602 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13603 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13604 hardcode_libdir_flag_spec_F77='-R$libdir'
13607 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13608 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13615 hardcode_libdir_flag_spec_F77='-L$libdir'
13616 hardcode_minus_L_F77=yes
13617 allow_undefined_flag_F77=unsupported
13618 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'
13619 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13623 if test "$GCC" = yes; then
13624 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13625 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'
13627 allow_undefined_flag_F77=' -expect_unresolved \*'
13628 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'
13630 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13631 hardcode_libdir_separator_F77=:
13634 osf4* | osf5*) # as osf3* with the addition of -msym flag
13635 if test "$GCC" = yes; then
13636 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13637 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'
13638 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13640 allow_undefined_flag_F77=' -expect_unresolved \*'
13641 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'
13642 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~
13643 $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'
13645 # Both c and cxx compiler support -rpath directly
13646 hardcode_libdir_flag_spec_F77='-rpath $libdir'
13648 hardcode_libdir_separator_F77=:
13652 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13653 hardcode_shlibpath_var_F77=no
13654 export_dynamic_flag_spec_F77='${wl}-Bexport'
13655 runpath_var=LD_RUN_PATH
13656 hardcode_runpath_var=yes
13660 no_undefined_flag_F77=' -z text'
13661 if test "$GCC" = yes; then
13662 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13663 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13664 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13666 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13667 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13670 hardcode_libdir_flag_spec_F77='-R$libdir'
13671 hardcode_shlibpath_var_F77=no
13673 solaris2.[0-5] | solaris2.[0-5].*) ;;
13674 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13675 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13677 link_all_deplibs_F77=yes
13681 if test "x$host_vendor" = xsequent; then
13682 # Use $CC to link under sequent, because it throws in some extra .o
13683 # files that make .init and .fini sections work.
13684 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13686 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13688 hardcode_libdir_flag_spec_F77='-L$libdir'
13689 hardcode_direct_F77=yes
13690 hardcode_minus_L_F77=yes
13691 hardcode_shlibpath_var_F77=no
13695 case $host_vendor in
13697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13698 hardcode_direct_F77=yes # is this really true???
13701 ## LD is ld it makes a PLAMLIB
13702 ## CC just makes a GrossModule.
13703 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13704 reload_cmds_F77='$CC -r -o $output$reload_objs'
13705 hardcode_direct_F77=no
13708 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13709 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
13712 runpath_var='LD_RUN_PATH'
13713 hardcode_shlibpath_var_F77=no
13717 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13718 hardcode_shlibpath_var_F77=no
13719 export_dynamic_flag_spec_F77='-Bexport'
13723 if test -d /usr/nec; then
13724 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13725 hardcode_shlibpath_var_F77=no
13726 runpath_var=LD_RUN_PATH
13727 hardcode_runpath_var=yes
13733 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13734 hardcode_direct_F77=yes
13735 hardcode_minus_L_F77=no
13736 hardcode_shlibpath_var_F77=no
13737 hardcode_runpath_var=yes
13738 runpath_var=LD_RUN_PATH
13741 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
13742 no_undefined_flag_F77='${wl}-z ${wl}text'
13743 if test "$GCC" = yes; then
13744 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13746 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13748 runpath_var='LD_RUN_PATH'
13749 hardcode_shlibpath_var_F77=no
13753 no_undefined_flag_F77=' -z text'
13754 # $CC -shared without GNU ld will not create a library from C++
13755 # object files and a static libstdc++, better avoid it by now
13756 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13757 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13758 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13759 hardcode_libdir_flag_spec_F77=
13760 hardcode_shlibpath_var_F77=no
13761 runpath_var='LD_RUN_PATH'
13765 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13766 hardcode_libdir_flag_spec_F77='-L$libdir'
13767 hardcode_shlibpath_var_F77=no
13776 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
13777 echo "${ECHO_T}$ld_shlibs_F77" >&6
13778 test "$ld_shlibs_F77" = no && can_build_shared=no
13780 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13781 if test "$GCC" = yes; then
13782 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13786 # Do we need to explicitly link libc?
13788 case "x$archive_cmds_need_lc_F77" in
13790 # Assume -lc should be added
13791 archive_cmds_need_lc_F77=yes
13793 if test "$enable_shared" = yes && test "$GCC" = yes; then
13794 case $archive_cmds_F77 in
13796 # FIXME: we may have to deal with multi-command sequences.
13799 # Test whether the compiler implicitly links with -lc since on some
13800 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13801 # to ld, don't add -lc before -lgcc.
13802 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13803 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13808 (eval $ac_compile) 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); } 2>conftest.err; then
13814 libobjs=conftest.$ac_objext
13816 wl=$lt_prog_compiler_wl_F77
13822 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
13823 allow_undefined_flag_F77=
13824 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13825 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13828 (exit $ac_status); }
13830 archive_cmds_need_lc_F77=no
13832 archive_cmds_need_lc_F77=yes
13834 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
13836 cat conftest.err 1>&5
13839 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
13840 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
13847 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13848 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13849 library_names_spec=
13850 libname_spec='lib$name'
13854 postuninstall_cmds=
13858 shlibpath_overrides_runpath=unknown
13860 dynamic_linker="$host_os ld.so"
13861 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13862 if test "$GCC" = yes; then
13863 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13864 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13865 # if the path contains ";" then we assume it to be the separator
13866 # otherwise default to the standard path separator (i.e. ":") - it is
13867 # assumed that no part of a normal pathname contains ";" but that should
13868 # okay in the real world where ";" in dirpaths is itself problematic.
13869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13874 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13876 need_lib_prefix=unknown
13877 hardcode_into_libs=no
13879 # when you set need_version to no, make sure it does not cause -set_version
13880 # flags to be left without arguments
13881 need_version=unknown
13886 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13887 shlibpath_var=LIBPATH
13889 # AIX 3 has no versioning support, so we append a major version to the name.
13890 soname_spec='${libname}${release}${shared_ext}$major'
13897 hardcode_into_libs=yes
13898 if test "$host_cpu" = ia64; then
13899 # AIX 5 supports IA64
13900 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13901 shlibpath_var=LD_LIBRARY_PATH
13903 # With GCC up to 2.95.x, collect2 would create an import file
13904 # for dependence libraries. The import file would start with
13905 # the line `#! .'. This would cause the generated library to
13906 # depend on `.', always an invalid library. This was fixed in
13907 # development snapshots of GCC prior to 3.0.
13909 aix4 | aix4.[01] | aix4.[01].*)
13910 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13912 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13915 can_build_shared=no
13919 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13920 # soname into executable. Probably we can add versioning support to
13921 # collect2, so additional links can be useful in future.
13922 if test "$aix_use_runtimelinking" = yes; then
13923 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13924 # instead of lib<name>.a to let people know that these are not
13925 # typical AIX shared libraries.
13926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13928 # We preserve .a as extension for shared libraries through AIX4.2
13929 # and later when we are not doing run time linking.
13930 library_names_spec='${libname}${release}.a $libname.a'
13931 soname_spec='${libname}${release}${shared_ext}$major'
13933 shlibpath_var=LIBPATH
13938 library_names_spec='$libname.ixlibrary $libname.a'
13939 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13940 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'
13944 library_names_spec='${libname}${shared_ext}'
13945 dynamic_linker="$host_os ld.so"
13946 shlibpath_var=LIBRARY_PATH
13952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13954 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13955 shlibpath_var=LD_LIBRARY_PATH
13956 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13957 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13958 # the default ld.so.conf also contains /usr/contrib/lib and
13959 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13960 # libtool to hard-code these into programs
13963 cygwin* | mingw* | pw32*)
13964 version_type=windows
13969 case $GCC,$host_os in
13970 yes,cygwin* | yes,mingw* | yes,pw32*)
13971 library_names_spec='$libname.dll.a'
13972 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13973 postinstall_cmds='base_file=`basename \${file}`~
13974 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13975 dldir=$destdir/`dirname \$dlpath`~
13976 test -d \$dldir || mkdir -p \$dldir~
13977 $install_prog $dir/$dlname \$dldir/$dlname'
13978 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13979 dlpath=$dir/\$dldll~
13981 shlibpath_overrides_runpath=yes
13985 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13986 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13987 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13990 # MinGW DLLs use traditional 'lib' prefix
13991 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13992 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13993 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13994 # It is most probably a Windows format PATH printed by
13995 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13996 # path with ; separators, and with drive letters. We can handle the
13997 # drive letters (cygwin fileutils understands them), so leave them,
13998 # especially as we might pass files found there to a mingw objdump,
13999 # which wouldn't understand a cygwinified path. Ahh.
14000 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14002 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14006 # pw32 DLLs use 'pw' prefix rather than 'lib'
14007 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14013 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14016 dynamic_linker='Win32 ld.exe'
14017 # FIXME: first we should search . and the directory the executable is in
14021 darwin* | rhapsody*)
14022 dynamic_linker="$host_os dyld"
14023 version_type=darwin
14026 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14027 soname_spec='${libname}${release}${major}$shared_ext'
14028 shlibpath_overrides_runpath=yes
14029 shlibpath_var=DYLD_LIBRARY_PATH
14030 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14031 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14032 if test "$GCC" = yes; then
14033 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"`
14035 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14037 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14045 soname_spec='${libname}${release}${shared_ext}$major'
14046 shlibpath_var=LD_LIBRARY_PATH
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14058 soname_spec='${libname}${release}${shared_ext}$major'
14059 shlibpath_var=LD_LIBRARY_PATH
14060 shlibpath_overrides_runpath=no
14061 hardcode_into_libs=yes
14062 dynamic_linker='GNU ld.so'
14066 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14067 version_type=freebsd-$objformat
14068 case $version_type in
14070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14075 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14079 shlibpath_var=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath=yes
14084 freebsd3.01* | freebsdelf3.01*)
14085 shlibpath_overrides_runpath=yes
14086 hardcode_into_libs=yes
14089 shlibpath_overrides_runpath=no
14090 hardcode_into_libs=yes
14099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14100 soname_spec='${libname}${release}${shared_ext}$major'
14101 shlibpath_var=LD_LIBRARY_PATH
14102 hardcode_into_libs=yes
14105 hpux9* | hpux10* | hpux11*)
14106 # Give a soname corresponding to the major version so that dld.sl refuses to
14107 # link against other versions.
14111 case "$host_cpu" in
14114 hardcode_into_libs=yes
14115 dynamic_linker="$host_os dld.so"
14116 shlibpath_var=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 soname_spec='${libname}${release}${shared_ext}$major'
14120 if test "X$HPUX_IA64_MODE" = X32; then
14121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14129 hardcode_into_libs=yes
14130 dynamic_linker="$host_os dld.sl"
14131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14134 soname_spec='${libname}${release}${shared_ext}$major'
14135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14140 dynamic_linker="$host_os dld.sl"
14141 shlibpath_var=SHLIB_PATH
14142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14144 soname_spec='${libname}${release}${shared_ext}$major'
14147 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14148 postinstall_cmds='chmod 555 $lib'
14151 irix5* | irix6* | nonstopux*)
14153 nonstopux*) version_type=nonstopux ;;
14155 if test "$lt_cv_prog_gnu_ld" = yes; then
14163 soname_spec='${libname}${release}${shared_ext}$major'
14164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14166 irix5* | nonstopux*)
14167 libsuff= shlibsuff=
14170 case $LD in # libtool.m4 will add one of these switches to LD
14171 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14172 libsuff= shlibsuff= libmagic=32-bit;;
14173 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14174 libsuff=32 shlibsuff=N32 libmagic=N32;;
14175 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14176 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14177 *) libsuff= shlibsuff= libmagic=never-match;;
14181 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14182 shlibpath_overrides_runpath=no
14183 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14184 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14185 hardcode_into_libs=yes
14188 # No shared lib support for Linux oldld, aout, or coff.
14189 linux*oldld* | linux*aout* | linux*coff*)
14193 # This must be Linux ELF.
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14201 shlibpath_var=LD_LIBRARY_PATH
14202 shlibpath_overrides_runpath=no
14203 # This implies no fast_install, which is unacceptable.
14204 # Some rework will be needed to allow for fast_install
14205 # before this can be enabled.
14206 hardcode_into_libs=yes
14208 # Append ld.so.conf contents to the search path
14209 if test -f /etc/ld.so.conf; then
14210 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14211 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14214 # We used to test for /lib/ld.so.1 and disable shared libraries on
14215 # powerpc, because MkLinux only supported shared libraries with the
14216 # GNU dynamic linker. Since this was broken with cross compilers,
14217 # most powerpc-linux boxes support dynamic linking these days and
14218 # people can always --disable-shared, the test was removed, and we
14219 # assume the GNU/Linux dynamic linker is in use.
14220 dynamic_linker='GNU/Linux ld.so'
14227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14228 soname_spec='${libname}${release}${shared_ext}$major'
14229 shlibpath_var=LD_LIBRARY_PATH
14230 shlibpath_overrides_runpath=no
14231 hardcode_into_libs=yes
14232 dynamic_linker='GNU ld.so'
14239 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14241 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14242 dynamic_linker='NetBSD (a.out) ld.so'
14244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14245 soname_spec='${libname}${release}${shared_ext}$major'
14246 dynamic_linker='NetBSD ld.elf_so'
14248 shlibpath_var=LD_LIBRARY_PATH
14249 shlibpath_overrides_runpath=yes
14250 hardcode_into_libs=yes
14255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14256 shlibpath_var=LD_LIBRARY_PATH
14257 shlibpath_overrides_runpath=yes
14264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14265 soname_spec='${libname}${release}${shared_ext}$major'
14266 shlibpath_var=LD_LIBRARY_PATH
14267 shlibpath_overrides_runpath=yes
14274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14275 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14276 shlibpath_var=LD_LIBRARY_PATH
14277 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14279 openbsd2.[89] | openbsd2.[89].*)
14280 shlibpath_overrides_runpath=no
14283 shlibpath_overrides_runpath=yes
14287 shlibpath_overrides_runpath=yes
14292 libname_spec='$name'
14295 library_names_spec='$libname${shared_ext} $libname.a'
14296 dynamic_linker='OS/2 ld.exe'
14297 shlibpath_var=LIBPATH
14300 osf3* | osf4* | osf5*)
14304 soname_spec='${libname}${release}${shared_ext}$major'
14305 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14306 shlibpath_var=LD_LIBRARY_PATH
14307 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14308 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14313 soname_spec='${libname}${release}${shared_ext}$major'
14314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14315 shlibpath_var=LD_LIBRARY_PATH
14322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14323 soname_spec='${libname}${release}${shared_ext}$major'
14324 shlibpath_var=LD_LIBRARY_PATH
14325 shlibpath_overrides_runpath=yes
14326 hardcode_into_libs=yes
14327 # ldd complains unless libraries are executable
14328 postinstall_cmds='chmod +x $lib'
14333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14334 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14335 shlibpath_var=LD_LIBRARY_PATH
14336 shlibpath_overrides_runpath=yes
14337 if test "$with_gnu_ld" = yes; then
14343 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14346 soname_spec='${libname}${release}${shared_ext}$major'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 case $host_vendor in
14350 shlibpath_overrides_runpath=no
14352 export_dynamic_flag_spec='${wl}-Blargedynsym'
14353 runpath_var=LD_RUN_PATH
14361 shlibpath_overrides_runpath=no
14362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14368 if test -d /usr/nec ;then
14370 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14371 soname_spec='$libname${shared_ext}.$major'
14372 shlibpath_var=LD_LIBRARY_PATH
14378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14379 soname_spec='${libname}${release}${shared_ext}$major'
14380 shlibpath_var=LD_LIBRARY_PATH
14387 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14388 echo "${ECHO_T}$dynamic_linker" >&6
14389 test "$dynamic_linker" = no && can_build_shared=no
14391 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14392 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14393 hardcode_action_F77=
14394 if test -n "$hardcode_libdir_flag_spec_F77" || \
14395 test -n "$runpath_var_F77" || \
14396 test "X$hardcode_automatic_F77" = "Xyes" ; then
14398 # We can hardcode non-existant directories.
14399 if test "$hardcode_direct_F77" != no &&
14400 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14401 # have to relink, otherwise we might link with an installed library
14402 # when we should be linking with a yet-to-be-installed one
14403 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14404 test "$hardcode_minus_L_F77" != no; then
14405 # Linking always hardcodes the temporary library directory.
14406 hardcode_action_F77=relink
14408 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14409 hardcode_action_F77=immediate
14412 # We cannot hardcode anything, or else we can only hardcode existing
14414 hardcode_action_F77=unsupported
14416 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14417 echo "${ECHO_T}$hardcode_action_F77" >&6
14419 if test "$hardcode_action_F77" = relink; then
14420 # Fast installation is not supported
14421 enable_fast_install=no
14422 elif test "$shlibpath_overrides_runpath" = yes ||
14423 test "$enable_shared" = no; then
14424 # Fast installation is not necessary
14425 enable_fast_install=needless
14430 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14431 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14432 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14433 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14434 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14435 echo "$as_me:$LINENO: result: yes" >&5
14436 echo "${ECHO_T}yes" >&6
14438 # FIXME - insert some real tests, host_os isn't really good enough
14441 if test -n "$STRIP" ; then
14442 striplib="$STRIP -x"
14443 echo "$as_me:$LINENO: result: yes" >&5
14444 echo "${ECHO_T}yes" >&6
14446 echo "$as_me:$LINENO: result: no" >&5
14447 echo "${ECHO_T}no" >&6
14451 echo "$as_me:$LINENO: result: no" >&5
14452 echo "${ECHO_T}no" >&6
14459 # The else clause should only fire when bootstrapping the
14460 # libtool distribution, otherwise you forgot to ship ltmain.sh
14461 # with your package, and you will get complaints that there are
14462 # no rules to generate ltmain.sh.
14463 if test -f "$ltmain"; then
14464 # See if we are running on zsh, and set the options which allow our commands through
14465 # without removal of \ escapes.
14466 if test -n "${ZSH_VERSION+set}" ; then
14467 setopt NO_GLOB_SUBST
14469 # Now quote all the things that may contain metacharacters while being
14470 # careful not to overquote the AC_SUBSTed values. We take copies of the
14471 # variables and quote the copies for generation of the libtool script.
14472 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14474 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14475 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14476 deplibs_check_method reload_flag reload_cmds need_locks \
14477 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14478 lt_cv_sys_global_symbol_to_c_name_address \
14479 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14480 old_postinstall_cmds old_postuninstall_cmds \
14484 lt_prog_compiler_wl_F77 \
14485 lt_prog_compiler_pic_F77 \
14486 lt_prog_compiler_static_F77 \
14487 lt_prog_compiler_no_builtin_flag_F77 \
14488 export_dynamic_flag_spec_F77 \
14489 thread_safe_flag_spec_F77 \
14490 whole_archive_flag_spec_F77 \
14491 enable_shared_with_static_runtimes_F77 \
14492 old_archive_cmds_F77 \
14493 old_archive_from_new_cmds_F77 \
14494 predep_objects_F77 \
14495 postdep_objects_F77 \
14498 compiler_lib_search_path_F77 \
14500 archive_expsym_cmds_F77 \
14501 postinstall_cmds_F77 \
14502 postuninstall_cmds_F77 \
14503 old_archive_from_expsyms_cmds_F77 \
14504 allow_undefined_flag_F77 \
14505 no_undefined_flag_F77 \
14506 export_symbols_cmds_F77 \
14507 hardcode_libdir_flag_spec_F77 \
14508 hardcode_libdir_flag_spec_ld_F77 \
14509 hardcode_libdir_separator_F77 \
14510 hardcode_automatic_F77 \
14512 module_expsym_cmds_F77 \
14513 lt_cv_prog_compiler_c_o_F77 \
14514 exclude_expsyms_F77 \
14515 include_expsyms_F77; do
14518 old_archive_cmds_F77 | \
14519 old_archive_from_new_cmds_F77 | \
14520 archive_cmds_F77 | \
14521 archive_expsym_cmds_F77 | \
14522 module_cmds_F77 | \
14523 module_expsym_cmds_F77 | \
14524 old_archive_from_expsyms_cmds_F77 | \
14525 export_symbols_cmds_F77 | \
14526 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14527 postinstall_cmds | postuninstall_cmds | \
14528 old_postinstall_cmds | old_postuninstall_cmds | \
14529 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14530 # Double-quote double-evaled strings.
14531 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14534 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14540 *'\$0 --fallback-echo"')
14541 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14547 cat <<__EOF__ >> "$cfgfile"
14548 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14550 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14552 # Shell to use when invoking shell scripts.
14555 # Whether or not to build shared libraries.
14556 build_libtool_libs=$enable_shared
14558 # Whether or not to build static libraries.
14559 build_old_libs=$enable_static
14561 # Whether or not to add -lc for building shared libraries.
14562 build_libtool_need_lc=$archive_cmds_need_lc_F77
14564 # Whether or not to disallow shared libs when runtime libs are static
14565 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14567 # Whether or not to optimize for fast installation.
14568 fast_install=$enable_fast_install
14571 host_alias=$host_alias
14574 # An echo program that does not interpret backslashes.
14579 AR_FLAGS=$lt_AR_FLAGS
14584 # A language-specific compiler.
14585 CC=$lt_compiler_F77
14587 # Is the compiler the GNU C compiler?
14593 # The linker used to build libraries.
14596 # Whether we need hard or soft links.
14599 # A BSD-compatible nm program.
14602 # A symbol stripping program
14605 # Used to examine libraries when file_magic_cmd begins "file"
14606 MAGIC_CMD=$MAGIC_CMD
14608 # Used on cygwin: DLL creation program.
14611 # Used on cygwin: object dumper.
14614 # Used on cygwin: assembler.
14617 # The name of the directory that contains temporary libtool files.
14620 # How to create reloadable object files.
14621 reload_flag=$lt_reload_flag
14622 reload_cmds=$lt_reload_cmds
14624 # How to pass a linker flag through the compiler.
14625 wl=$lt_lt_prog_compiler_wl_F77
14627 # Object file suffix (normally "o").
14628 objext="$ac_objext"
14630 # Old archive suffix (normally "a").
14633 # Shared library suffix (normally ".so").
14634 shrext_cmds='$shrext_cmds'
14636 # Executable file suffix (normally "").
14639 # Additional compiler flags for building library objects.
14640 pic_flag=$lt_lt_prog_compiler_pic_F77
14643 # What is the maximum length of a command?
14644 max_cmd_len=$lt_cv_sys_max_cmd_len
14646 # Does compiler simultaneously support -c and -o options?
14647 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14649 # Must we lock files when doing compilation ?
14650 need_locks=$lt_need_locks
14652 # Do we need the lib prefix for modules?
14653 need_lib_prefix=$need_lib_prefix
14655 # Do we need a version for libraries?
14656 need_version=$need_version
14658 # Whether dlopen is supported.
14659 dlopen_support=$enable_dlopen
14661 # Whether dlopen of programs is supported.
14662 dlopen_self=$enable_dlopen_self
14664 # Whether dlopen of statically linked programs is supported.
14665 dlopen_self_static=$enable_dlopen_self_static
14667 # Compiler flag to prevent dynamic linking.
14668 link_static_flag=$lt_lt_prog_compiler_static_F77
14670 # Compiler flag to turn off builtin functions.
14671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14673 # Compiler flag to allow reflexive dlopens.
14674 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14676 # Compiler flag to generate shared objects directly from archives.
14677 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14679 # Compiler flag to generate thread-safe objects.
14680 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14682 # Library versioning type.
14683 version_type=$version_type
14685 # Format of library name prefix.
14686 libname_spec=$lt_libname_spec
14688 # List of archive names. First name is the real one, the rest are links.
14689 # The last name is the one that the linker finds with -lNAME.
14690 library_names_spec=$lt_library_names_spec
14692 # The coded name of the library, if different from the real name.
14693 soname_spec=$lt_soname_spec
14695 # Commands used to build and install an old-style archive.
14697 old_archive_cmds=$lt_old_archive_cmds_F77
14698 old_postinstall_cmds=$lt_old_postinstall_cmds
14699 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14701 # Create an old-style archive from a shared archive.
14702 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14704 # Create a temporary old-style archive to link instead of a shared archive.
14705 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14707 # Commands used to build and install a shared archive.
14708 archive_cmds=$lt_archive_cmds_F77
14709 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14710 postinstall_cmds=$lt_postinstall_cmds
14711 postuninstall_cmds=$lt_postuninstall_cmds
14713 # Commands used to build a loadable module (assumed same as above if empty)
14714 module_cmds=$lt_module_cmds_F77
14715 module_expsym_cmds=$lt_module_expsym_cmds_F77
14717 # Commands to strip libraries.
14718 old_striplib=$lt_old_striplib
14719 striplib=$lt_striplib
14721 # Dependencies to place before the objects being linked to create a
14723 predep_objects=$lt_predep_objects_F77
14725 # Dependencies to place after the objects being linked to create a
14727 postdep_objects=$lt_postdep_objects_F77
14729 # Dependencies to place before the objects being linked to create a
14731 predeps=$lt_predeps_F77
14733 # Dependencies to place after the objects being linked to create a
14735 postdeps=$lt_postdeps_F77
14737 # The library search path used internally by the compiler when linking
14738 # a shared library.
14739 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
14741 # Method to check whether dependent libraries are shared objects.
14742 deplibs_check_method=$lt_deplibs_check_method
14744 # Command to use when deplibs_check_method == file_magic.
14745 file_magic_cmd=$lt_file_magic_cmd
14747 # Flag that allows shared libraries with undefined symbols to be built.
14748 allow_undefined_flag=$lt_allow_undefined_flag_F77
14750 # Flag that forces no undefined symbols.
14751 no_undefined_flag=$lt_no_undefined_flag_F77
14753 # Commands used to finish a libtool library installation in a directory.
14754 finish_cmds=$lt_finish_cmds
14756 # Same as above, but a single script fragment to be evaled but not shown.
14757 finish_eval=$lt_finish_eval
14759 # Take the output of nm and produce a listing of raw symbols and C names.
14760 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14762 # Transform the output of nm in a proper C declaration
14763 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14765 # Transform the output of nm in a C name address pair
14766 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14768 # This is the shared library runtime path variable.
14769 runpath_var=$runpath_var
14771 # This is the shared library path variable.
14772 shlibpath_var=$shlibpath_var
14774 # Is shlibpath searched before the hard-coded library search path?
14775 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14777 # How to hardcode a shared library path into an executable.
14778 hardcode_action=$hardcode_action_F77
14780 # Whether we should hardcode library paths into libraries.
14781 hardcode_into_libs=$hardcode_into_libs
14783 # Flag to hardcode \$libdir into a binary during linking.
14784 # This must work even if \$libdir does not exist.
14785 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
14787 # If ld is used when linking, flag to hardcode \$libdir into
14788 # a binary during linking. This must work even if \$libdir does
14790 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
14792 # Whether we need a single -rpath flag with a separated argument.
14793 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
14795 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14796 # resulting binary.
14797 hardcode_direct=$hardcode_direct_F77
14799 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14800 # resulting binary.
14801 hardcode_minus_L=$hardcode_minus_L_F77
14803 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14804 # the resulting binary.
14805 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
14807 # Set to yes if building a shared library automatically hardcodes DIR into the library
14808 # and all subsequent libraries and executables linked against it.
14809 hardcode_automatic=$hardcode_automatic_F77
14811 # Variables whose values should be saved in libtool wrapper scripts and
14812 # restored at relink time.
14813 variables_saved_for_relink="$variables_saved_for_relink"
14815 # Whether libtool must link a program against all its dependency libraries.
14816 link_all_deplibs=$link_all_deplibs_F77
14818 # Compile-time system search path for libraries
14819 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14821 # Run-time system search path for libraries
14822 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14824 # Fix the shell variable \$srcfile for the compiler.
14825 fix_srcfile_path="$fix_srcfile_path_F77"
14827 # Set to yes if exported symbols are required.
14828 always_export_symbols=$always_export_symbols_F77
14830 # The commands to list exported symbols.
14831 export_symbols_cmds=$lt_export_symbols_cmds_F77
14833 # The commands to extract the exported symbol list from a shared archive.
14834 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14836 # Symbols that should not be listed in the preloaded symbols.
14837 exclude_expsyms=$lt_exclude_expsyms_F77
14839 # Symbols that must always be exported.
14840 include_expsyms=$lt_include_expsyms_F77
14842 # ### END LIBTOOL TAG CONFIG: $tagname
14848 # If there is no Makefile yet, we rely on a make rule to execute
14849 # `config.status --recheck' to rerun these tests and create the
14850 # libtool script then.
14851 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14852 if test -f "$ltmain_in"; then
14853 test -f Makefile && make "$ltmain"
14859 ac_cpp='$CPP $CPPFLAGS'
14860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14872 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
14876 # Source file extension for Java test sources.
14879 # Object file extension for compiled Java test sources.
14883 # Code to be used in simple compile tests
14884 lt_simple_compile_test_code="class foo {}\n"
14886 # Code to be used in simple link tests
14887 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
14889 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14891 # If no C compiler was specified, use CC.
14894 # Allow CC to be a program name with arguments.
14898 # Allow CC to be a program name with arguments.
14904 # GCJ did not exist at the time GCC didn't implicitly link libc in.
14905 archive_cmds_need_lc_GCJ=no
14908 lt_prog_compiler_no_builtin_flag_GCJ=
14910 if test "$GCC" = yes; then
14911 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
14914 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
14915 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
14916 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
14917 echo $ECHO_N "(cached) $ECHO_C" >&6
14919 lt_cv_prog_compiler_rtti_exceptions=no
14920 ac_outfile=conftest.$ac_objext
14921 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14922 lt_compiler_flag="-fno-rtti -fno-exceptions"
14923 # Insert the option either (1) after the last *FLAGS variable, or
14924 # (2) before a word containing "conftest.", or (3) at the end.
14925 # Note that $ac_compile itself does not contain backslashes and begins
14926 # with a dollar sign (not a hyphen), so the echo should work correctly.
14927 # The option is referenced via a variable to avoid confusing sed.
14928 lt_compile=`echo "$ac_compile" | $SED \
14929 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
14930 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14931 -e 's:$: $lt_compiler_flag:'`
14932 (eval echo "\"\$as_me:14932: $lt_compile\"" >&5)
14933 (eval "$lt_compile" 2>conftest.err)
14935 cat conftest.err >&5
14936 echo "$as_me:14936: \$? = $ac_status" >&5
14937 if (exit $ac_status) && test -s "$ac_outfile"; then
14938 # The compiler can only warn and ignore the option if not recognized
14939 # So say no if there are warnings
14940 if test ! -s conftest.err; then
14941 lt_cv_prog_compiler_rtti_exceptions=yes
14947 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14948 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
14950 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14951 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
14958 lt_prog_compiler_wl_GCJ=
14959 lt_prog_compiler_pic_GCJ=
14960 lt_prog_compiler_static_GCJ=
14962 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14963 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14965 if test "$GCC" = yes; then
14966 lt_prog_compiler_wl_GCJ='-Wl,'
14967 lt_prog_compiler_static_GCJ='-static'
14971 # All AIX code is PIC.
14972 if test "$host_cpu" = ia64; then
14973 # AIX 5 now supports IA64 processor
14974 lt_prog_compiler_static_GCJ='-Bstatic'
14979 # FIXME: we need at least 68020 code to build shared libraries, but
14980 # adding the `-m68020' flag to GCC prevents building anything better,
14982 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
14985 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14986 # PIC is the default for these OSes.
14989 mingw* | pw32* | os2*)
14990 # This hack is so that the source file can tell whether it is being
14991 # built for inclusion in a dll (and should export symbols for example).
14992 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
14995 darwin* | rhapsody*)
14996 # PIC is the default on this platform
14997 # Common symbols not allowed in MH_DYLIB files
14998 lt_prog_compiler_pic_GCJ='-fno-common'
15002 # Just because we use GCC doesn't mean we suddenly get shared libraries
15003 # on systems that don't support them.
15004 lt_prog_compiler_can_build_shared_GCJ=no
15009 if test -d /usr/nec; then
15010 lt_prog_compiler_pic_GCJ=-Kconform_pic
15015 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15016 # not for PA HP-UX.
15017 case "$host_cpu" in
15022 lt_prog_compiler_pic_GCJ='-fPIC'
15028 lt_prog_compiler_pic_GCJ='-fPIC'
15032 # PORTME Check for flag to pass linker flags through the system compiler.
15035 lt_prog_compiler_wl_GCJ='-Wl,'
15036 if test "$host_cpu" = ia64; then
15037 # AIX 5 now supports IA64 processor
15038 lt_prog_compiler_static_GCJ='-Bstatic'
15040 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15044 # PIC is the default on this platform
15045 # Common symbols not allowed in MH_DYLIB files
15046 case "$cc_basename" in
15048 lt_prog_compiler_pic_GCJ='-qnocommon'
15049 lt_prog_compiler_wl_GCJ='-Wl,'
15054 mingw* | pw32* | os2*)
15055 # This hack is so that the source file can tell whether it is being
15056 # built for inclusion in a dll (and should export symbols for example).
15057 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15060 hpux9* | hpux10* | hpux11*)
15061 lt_prog_compiler_wl_GCJ='-Wl,'
15062 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15063 # not for PA HP-UX.
15064 case "$host_cpu" in
15069 lt_prog_compiler_pic_GCJ='+Z'
15072 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15073 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15076 irix5* | irix6* | nonstopux*)
15077 lt_prog_compiler_wl_GCJ='-Wl,'
15078 # PIC (with -KPIC) is the default.
15079 lt_prog_compiler_static_GCJ='-non_shared'
15083 lt_prog_compiler_pic_GCJ='-KPIC'
15084 lt_prog_compiler_static_GCJ='-Bstatic'
15090 lt_prog_compiler_wl_GCJ='-Wl,'
15091 lt_prog_compiler_pic_GCJ='-KPIC'
15092 lt_prog_compiler_static_GCJ='-static'
15095 lt_prog_compiler_wl_GCJ='-Wl,'
15096 # All Alpha code is PIC.
15097 lt_prog_compiler_static_GCJ='-non_shared'
15102 osf3* | osf4* | osf5*)
15103 lt_prog_compiler_wl_GCJ='-Wl,'
15104 # All OSF/1 code is PIC.
15105 lt_prog_compiler_static_GCJ='-non_shared'
15109 lt_prog_compiler_pic_GCJ='-Kpic'
15110 lt_prog_compiler_static_GCJ='-dn'
15114 lt_prog_compiler_wl_GCJ='-Wl,'
15115 lt_prog_compiler_pic_GCJ='-KPIC'
15116 lt_prog_compiler_static_GCJ='-Bstatic'
15120 lt_prog_compiler_wl_GCJ='-Qoption ld '
15121 lt_prog_compiler_pic_GCJ='-PIC'
15122 lt_prog_compiler_static_GCJ='-Bstatic'
15125 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15126 lt_prog_compiler_wl_GCJ='-Wl,'
15127 lt_prog_compiler_pic_GCJ='-KPIC'
15128 lt_prog_compiler_static_GCJ='-Bstatic'
15132 if test -d /usr/nec ;then
15133 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15134 lt_prog_compiler_static_GCJ='-Bstatic'
15139 lt_prog_compiler_pic_GCJ='-pic'
15140 lt_prog_compiler_static_GCJ='-Bstatic'
15144 lt_prog_compiler_can_build_shared_GCJ=no
15149 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15150 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15153 # Check to make sure the PIC flag actually works.
15155 if test -n "$lt_prog_compiler_pic_GCJ"; then
15157 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15158 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15159 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15160 echo $ECHO_N "(cached) $ECHO_C" >&6
15162 lt_prog_compiler_pic_works_GCJ=no
15163 ac_outfile=conftest.$ac_objext
15164 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15165 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15166 # Insert the option either (1) after the last *FLAGS variable, or
15167 # (2) before a word containing "conftest.", or (3) at the end.
15168 # Note that $ac_compile itself does not contain backslashes and begins
15169 # with a dollar sign (not a hyphen), so the echo should work correctly.
15170 # The option is referenced via a variable to avoid confusing sed.
15171 lt_compile=`echo "$ac_compile" | $SED \
15172 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15173 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15174 -e 's:$: $lt_compiler_flag:'`
15175 (eval echo "\"\$as_me:15175: $lt_compile\"" >&5)
15176 (eval "$lt_compile" 2>conftest.err)
15178 cat conftest.err >&5
15179 echo "$as_me:15179: \$? = $ac_status" >&5
15180 if (exit $ac_status) && test -s "$ac_outfile"; then
15181 # The compiler can only warn and ignore the option if not recognized
15182 # So say no if there are warnings
15183 if test ! -s conftest.err; then
15184 lt_prog_compiler_pic_works_GCJ=yes
15190 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15191 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15193 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15194 case $lt_prog_compiler_pic_GCJ in
15196 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15199 lt_prog_compiler_pic_GCJ=
15200 lt_prog_compiler_can_build_shared_GCJ=no
15205 # For platforms which do not support PIC, -DPIC is meaningless:
15207 lt_prog_compiler_pic_GCJ=
15210 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15214 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15215 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15216 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15219 lt_cv_prog_compiler_c_o_GCJ=no
15220 $rm -r conftest 2>/dev/null
15224 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15226 lt_compiler_flag="-o out/conftest2.$ac_objext"
15227 # Insert the option either (1) after the last *FLAGS variable, or
15228 # (2) before a word containing "conftest.", or (3) at the end.
15229 # Note that $ac_compile itself does not contain backslashes and begins
15230 # with a dollar sign (not a hyphen), so the echo should work correctly.
15231 lt_compile=`echo "$ac_compile" | $SED \
15232 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15233 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15234 -e 's:$: $lt_compiler_flag:'`
15235 (eval echo "\"\$as_me:15235: $lt_compile\"" >&5)
15236 (eval "$lt_compile" 2>out/conftest.err)
15238 cat out/conftest.err >&5
15239 echo "$as_me:15239: \$? = $ac_status" >&5
15240 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15242 # The compiler can only warn and ignore the option if not recognized
15243 # So say no if there are warnings
15244 if test ! -s out/conftest.err; then
15245 lt_cv_prog_compiler_c_o_GCJ=yes
15250 # SGI C++ compiler will create directory out/ii_files/ for
15251 # template instantiation
15252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15253 $rm out/* && rmdir out
15259 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15263 hard_links="nottested"
15264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15265 # do not overwrite the value of need_locks provided by the user
15266 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15272 ln conftest.a conftest.b 2>&5 || hard_links=no
15273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15274 echo "$as_me:$LINENO: result: $hard_links" >&5
15275 echo "${ECHO_T}$hard_links" >&6
15276 if test "$hard_links" = no; then
15277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15285 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15289 allow_undefined_flag_GCJ=
15290 enable_shared_with_static_runtimes_GCJ=no
15292 archive_expsym_cmds_GCJ=
15293 old_archive_From_new_cmds_GCJ=
15294 old_archive_from_expsyms_cmds_GCJ=
15295 export_dynamic_flag_spec_GCJ=
15296 whole_archive_flag_spec_GCJ=
15297 thread_safe_flag_spec_GCJ=
15298 hardcode_libdir_flag_spec_GCJ=
15299 hardcode_libdir_flag_spec_ld_GCJ=
15300 hardcode_libdir_separator_GCJ=
15301 hardcode_direct_GCJ=no
15302 hardcode_minus_L_GCJ=no
15303 hardcode_shlibpath_var_GCJ=unsupported
15304 link_all_deplibs_GCJ=unknown
15305 hardcode_automatic_GCJ=no
15307 module_expsym_cmds_GCJ=
15308 always_export_symbols_GCJ=no
15309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15310 # include_expsyms should be a list of space-separated symbols to be *always*
15311 # included in the symbol list
15312 include_expsyms_GCJ=
15313 # exclude_expsyms can be an extended regexp of symbols to exclude
15314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15316 # as well as any symbol that contains `d'.
15317 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15319 # platforms (ab)use it in PIC code, but their linkers get confused if
15320 # the symbol is explicitly referenced. Since portable code cannot
15321 # rely on this symbol name, it's probably fine to never include it in
15322 # preloaded symbol tables.
15323 extract_expsyms_cmds=
15326 cygwin* | mingw* | pw32*)
15327 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15328 # When not using gcc, we currently assume that we are using
15329 # Microsoft Visual C++.
15330 if test "$GCC" != yes; then
15340 if test "$with_gnu_ld" = yes; then
15341 # If archive_cmds runs LD, not CC, wlarc should be empty
15344 # See if GNU ld supports shared libraries.
15346 aix3* | aix4* | aix5*)
15347 # On AIX/PPC, the GNU linker is very broken
15348 if test "$host_cpu" != ia64; then
15352 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15353 *** to be unable to reliably create shared libraries on AIX.
15354 *** Therefore, libtool is disabling shared libraries support. If you
15355 *** really care for shared libraries, you may want to modify your PATH
15356 *** so that a non-GNU linker is found, and then restart.
15363 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)'
15364 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15365 hardcode_minus_L_GCJ=yes
15367 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15368 # that the semantics of dynamic libraries on AmigaOS, at least up
15369 # to version 4, is to share data among multiple programs linked
15370 # with the same dynamic library. Since this doesn't match the
15371 # behavior of shared libraries on other platforms, we can't use
15377 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15378 allow_undefined_flag_GCJ=unsupported
15379 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15380 # support --undefined. This deserves some investigation. FIXME
15381 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15387 cygwin* | mingw* | pw32*)
15388 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15389 # as there is no search path for DLLs.
15390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15391 allow_undefined_flag_GCJ=unsupported
15392 always_export_symbols_GCJ=no
15393 enable_shared_with_static_runtimes_GCJ=yes
15394 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15396 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15397 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15398 # If the export-symbols file already is a .def file (1st line
15399 # is EXPORTS), use it as is; otherwise, prepend...
15400 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15401 cp $export_symbols $output_objdir/$soname.def;
15403 echo EXPORTS > $output_objdir/$soname.def;
15404 cat $export_symbols >> $output_objdir/$soname.def;
15406 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15413 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15414 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15417 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15418 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15423 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15427 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15428 *** create shared libraries on Solaris systems. Therefore, libtool
15429 *** is disabling shared libraries support. We urge you to upgrade GNU
15430 *** binutils to release 2.9.1 or newer. Another option is to modify
15431 *** your PATH or compiler configuration so that the native linker is
15432 *** used, and then restart.
15435 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15436 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15437 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15444 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15446 hardcode_direct_GCJ=yes
15447 hardcode_shlibpath_var_GCJ=no
15451 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15452 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15453 archive_cmds_GCJ="$tmp_archive_cmds"
15454 supports_anon_versioning=no
15455 case `$LD -v 2>/dev/null` in
15456 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15457 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15458 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15459 *\ 2.11.*) ;; # other 2.11 versions
15460 *) supports_anon_versioning=yes ;;
15462 if test $supports_anon_versioning = yes; then
15463 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15464 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15465 $echo "local: *; };" >> $output_objdir/$libname.ver~
15466 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15468 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15477 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15478 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15485 if test "$ld_shlibs_GCJ" = yes; then
15486 runpath_var=LD_RUN_PATH
15487 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15488 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15489 # ancient GNU ld didn't support --whole-archive et. al.
15490 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15491 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15493 whole_archive_flag_spec_GCJ=
15497 # PORTME fill in a description of your system's linker (not GNU ld)
15500 allow_undefined_flag_GCJ=unsupported
15501 always_export_symbols_GCJ=yes
15502 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'
15503 # Note: this linker hardcodes the directories in LIBPATH if there
15504 # are no directories specified by -L.
15505 hardcode_minus_L_GCJ=yes
15506 if test "$GCC" = yes && test -z "$link_static_flag"; then
15507 # Neither direct hardcoding nor static linking is supported with a
15509 hardcode_direct_GCJ=unsupported
15514 if test "$host_cpu" = ia64; then
15515 # On IA64, the linker does run time linking by default, so we don't
15516 # have to do anything special.
15517 aix_use_runtimelinking=no
15518 exp_sym_flag='-Bexport'
15521 # If we're using GNU nm, then we don't want the "-C" option.
15522 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15523 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15524 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'
15526 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'
15528 aix_use_runtimelinking=no
15530 # Test if we are trying to use run time linking or normal
15531 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15532 # need to do runtime linking.
15533 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15534 for ld_flag in $LDFLAGS; do
15535 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15536 aix_use_runtimelinking=yes
15542 exp_sym_flag='-bexport'
15543 no_entry_flag='-bnoentry'
15546 # When large executables or shared objects are built, AIX ld can
15547 # have problems creating the table of contents. If linking a library
15548 # or program results in "error TOC overflow" add -mminimal-toc to
15549 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15550 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15552 archive_cmds_GCJ=''
15553 hardcode_direct_GCJ=yes
15554 hardcode_libdir_separator_GCJ=':'
15555 link_all_deplibs_GCJ=yes
15557 if test "$GCC" = yes; then
15558 case $host_os in aix4.012|aix4.012.*)
15559 # We only want to do this on AIX 4.2 and lower, the check
15560 # below for broken collect2 doesn't work under 4.3+
15561 collect2name=`${CC} -print-prog-name=collect2`
15562 if test -f "$collect2name" && \
15563 strings "$collect2name" | grep resolve_lib_name >/dev/null
15565 # We have reworked collect2
15566 hardcode_direct_GCJ=yes
15568 # We have old collect2
15569 hardcode_direct_GCJ=unsupported
15570 # It fails to find uninstalled libraries when the uninstalled
15571 # path is not listed in the libpath. Setting hardcode_minus_L
15572 # to unsupported forces relinking
15573 hardcode_minus_L_GCJ=yes
15574 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15575 hardcode_libdir_separator_GCJ=
15578 shared_flag='-shared'
15581 if test "$host_cpu" = ia64; then
15582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15583 # chokes on -Wl,-G. The following line is correct:
15586 if test "$aix_use_runtimelinking" = yes; then
15587 shared_flag='${wl}-G'
15589 shared_flag='${wl}-bM:SRE'
15594 # It seems that -bexpall does not export symbols beginning with
15595 # underscore (_), so it is better to generate a list of symbols to export.
15596 always_export_symbols_GCJ=yes
15597 if test "$aix_use_runtimelinking" = yes; then
15598 # Warning - without using the other runtime loading flags (-brtl),
15599 # -berok will link without error, but may produce a broken library.
15600 allow_undefined_flag_GCJ='-berok'
15601 # Determine the default libpath from the value encoded in an empty executable.
15602 cat >conftest.$ac_ext <<_ACEOF
15605 cat confdefs.h >>conftest.$ac_ext
15606 cat >>conftest.$ac_ext <<_ACEOF
15607 /* end confdefs.h. */
15617 rm -f conftest.$ac_objext conftest$ac_exeext
15618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15619 (eval $ac_link) 2>conftest.er1
15621 grep -v '^ *+' conftest.er1 >conftest.err
15623 cat conftest.err >&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); } &&
15626 { ac_try='test -z "$ac_c_werror_flag"
15627 || test ! -s conftest.err'
15628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15629 (eval $ac_try) 2>&5
15631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15632 (exit $ac_status); }; } &&
15633 { ac_try='test -s conftest$ac_exeext'
15634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15635 (eval $ac_try) 2>&5
15637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15638 (exit $ac_status); }; }; then
15640 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15642 # Check for a 64-bit object if we didn't find anything.
15643 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; }
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15650 rm -f conftest.err conftest.$ac_objext \
15651 conftest$ac_exeext conftest.$ac_ext
15652 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15654 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15655 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"
15657 if test "$host_cpu" = ia64; then
15658 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15659 allow_undefined_flag_GCJ="-z nodefs"
15660 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"
15662 # Determine the default libpath from the value encoded in an empty executable.
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15678 rm -f conftest.$ac_objext conftest$ac_exeext
15679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15680 (eval $ac_link) 2>conftest.er1
15682 grep -v '^ *+' conftest.er1 >conftest.err
15684 cat conftest.err >&5
15685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686 (exit $ac_status); } &&
15687 { ac_try='test -z "$ac_c_werror_flag"
15688 || test ! -s conftest.err'
15689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15690 (eval $ac_try) 2>&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); }; } &&
15694 { ac_try='test -s conftest$ac_exeext'
15695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15696 (eval $ac_try) 2>&5
15698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15699 (exit $ac_status); }; }; then
15701 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15703 # Check for a 64-bit object if we didn't find anything.
15704 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; }
15707 echo "$as_me: failed program was:" >&5
15708 sed 's/^/| /' conftest.$ac_ext >&5
15711 rm -f conftest.err conftest.$ac_objext \
15712 conftest$ac_exeext conftest.$ac_ext
15713 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15715 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15716 # Warning - without using the other run time loading flags,
15717 # -berok will link without error, but may produce a broken library.
15718 no_undefined_flag_GCJ=' ${wl}-bernotok'
15719 allow_undefined_flag_GCJ=' ${wl}-berok'
15720 # -bexpall does not export symbols beginning with underscore (_)
15721 always_export_symbols_GCJ=yes
15722 # Exported symbols can be pulled into shared objects from archives
15723 whole_archive_flag_spec_GCJ=' '
15724 archive_cmds_need_lc_GCJ=yes
15725 # This is similar to how AIX traditionally builds it's shared libraries.
15726 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'
15732 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)'
15733 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15734 hardcode_minus_L_GCJ=yes
15735 # see comment about different semantics on the GNU ld section
15740 export_dynamic_flag_spec_GCJ=-rdynamic
15743 cygwin* | mingw* | pw32*)
15744 # When not using gcc, we currently assume that we are using
15745 # Microsoft Visual C++.
15746 # hardcode_libdir_flag_spec is actually meaningless, as there is
15747 # no search path for DLLs.
15748 hardcode_libdir_flag_spec_GCJ=' '
15749 allow_undefined_flag_GCJ=unsupported
15750 # Tell ltmain to make .lib files, not .a files.
15752 # Tell ltmain to make .dll files, not .so files.
15754 # FIXME: Setting linknames here is a bad hack.
15755 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15756 # The linker will automatically build a .lib file if we build a DLL.
15757 old_archive_From_new_cmds_GCJ='true'
15758 # FIXME: Should let the user specify the lib program.
15759 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
15760 fix_srcfile_path='`cygpath -w "$srcfile"`'
15761 enable_shared_with_static_runtimes_GCJ=yes
15764 darwin* | rhapsody*)
15766 rhapsody* | darwin1.[012])
15767 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
15770 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15771 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15773 case ${MACOSX_DEPLOYMENT_TARGET} in
15775 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15778 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
15784 archive_cmds_need_lc_GCJ=no
15785 hardcode_direct_GCJ=no
15786 hardcode_automatic_GCJ=yes
15787 hardcode_shlibpath_var_GCJ=unsupported
15788 whole_archive_flag_spec_GCJ=''
15789 link_all_deplibs_GCJ=yes
15790 if test "$GCC" = yes ; then
15791 output_verbose_link_cmd='echo'
15792 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15793 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15794 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15795 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15796 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}'
15798 case "$cc_basename" in
15800 output_verbose_link_cmd='echo'
15801 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15802 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15803 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15804 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15805 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}'
15815 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15817 hardcode_shlibpath_var_GCJ=no
15824 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15825 # support. Future versions do this automatically, but an explicit c++rt0.o
15826 # does not break anything, and helps significantly (at the cost of a little
15829 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15830 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15831 hardcode_direct_GCJ=yes
15832 hardcode_shlibpath_var_GCJ=no
15835 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15837 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15838 hardcode_direct_GCJ=yes
15839 hardcode_minus_L_GCJ=yes
15840 hardcode_shlibpath_var_GCJ=no
15843 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15844 freebsd* | kfreebsd*-gnu)
15845 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15846 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15847 hardcode_direct_GCJ=yes
15848 hardcode_shlibpath_var_GCJ=no
15852 if test "$GCC" = yes; then
15853 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'
15855 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'
15857 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15858 hardcode_libdir_separator_GCJ=:
15859 hardcode_direct_GCJ=yes
15861 # hardcode_minus_L: Not really in the search PATH,
15862 # but as the default location of the library.
15863 hardcode_minus_L_GCJ=yes
15864 export_dynamic_flag_spec_GCJ='${wl}-E'
15868 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15869 case "$host_cpu" in
15871 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15874 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15878 case "$host_cpu" in
15880 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
15883 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15887 if test "$with_gnu_ld" = no; then
15888 case "$host_cpu" in
15890 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15891 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
15892 hardcode_libdir_separator_GCJ=:
15893 hardcode_direct_GCJ=no
15894 hardcode_shlibpath_var_GCJ=no
15897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15898 hardcode_direct_GCJ=no
15899 hardcode_shlibpath_var_GCJ=no
15901 # hardcode_minus_L: Not really in the search PATH,
15902 # but as the default location of the library.
15903 hardcode_minus_L_GCJ=yes
15906 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
15907 hardcode_libdir_separator_GCJ=:
15908 hardcode_direct_GCJ=yes
15909 export_dynamic_flag_spec_GCJ='${wl}-E'
15911 # hardcode_minus_L: Not really in the search PATH,
15912 # but as the default location of the library.
15913 hardcode_minus_L_GCJ=yes
15919 irix5* | irix6* | nonstopux*)
15920 if test "$GCC" = yes; then
15921 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'
15923 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'
15924 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
15926 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15927 hardcode_libdir_separator_GCJ=:
15928 link_all_deplibs_GCJ=yes
15932 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15933 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15935 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15937 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15938 hardcode_direct_GCJ=yes
15939 hardcode_shlibpath_var_GCJ=no
15943 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15944 hardcode_direct_GCJ=yes
15945 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15946 hardcode_libdir_separator_GCJ=:
15947 hardcode_shlibpath_var_GCJ=no
15951 hardcode_direct_GCJ=yes
15952 hardcode_shlibpath_var_GCJ=no
15953 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15954 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15955 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15956 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15957 export_dynamic_flag_spec_GCJ='${wl}-E'
15960 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15961 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15962 hardcode_libdir_flag_spec_GCJ='-R$libdir'
15965 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
15973 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15974 hardcode_minus_L_GCJ=yes
15975 allow_undefined_flag_GCJ=unsupported
15976 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'
15977 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15981 if test "$GCC" = yes; then
15982 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15983 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'
15985 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15986 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'
15988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15989 hardcode_libdir_separator_GCJ=:
15992 osf4* | osf5*) # as osf3* with the addition of -msym flag
15993 if test "$GCC" = yes; then
15994 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
15995 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'
15996 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
15998 allow_undefined_flag_GCJ=' -expect_unresolved \*'
15999 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'
16000 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~
16001 $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'
16003 # Both c and cxx compiler support -rpath directly
16004 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16006 hardcode_libdir_separator_GCJ=:
16010 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16011 hardcode_shlibpath_var_GCJ=no
16012 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16013 runpath_var=LD_RUN_PATH
16014 hardcode_runpath_var=yes
16018 no_undefined_flag_GCJ=' -z text'
16019 if test "$GCC" = yes; then
16020 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16021 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16022 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16024 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16025 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16026 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16028 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16029 hardcode_shlibpath_var_GCJ=no
16031 solaris2.[0-5] | solaris2.[0-5].*) ;;
16032 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16033 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16035 link_all_deplibs_GCJ=yes
16039 if test "x$host_vendor" = xsequent; then
16040 # Use $CC to link under sequent, because it throws in some extra .o
16041 # files that make .init and .fini sections work.
16042 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16044 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16046 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16047 hardcode_direct_GCJ=yes
16048 hardcode_minus_L_GCJ=yes
16049 hardcode_shlibpath_var_GCJ=no
16053 case $host_vendor in
16055 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16056 hardcode_direct_GCJ=yes # is this really true???
16059 ## LD is ld it makes a PLAMLIB
16060 ## CC just makes a GrossModule.
16061 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16062 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16063 hardcode_direct_GCJ=no
16066 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16067 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16070 runpath_var='LD_RUN_PATH'
16071 hardcode_shlibpath_var_GCJ=no
16075 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16076 hardcode_shlibpath_var_GCJ=no
16077 export_dynamic_flag_spec_GCJ='-Bexport'
16081 if test -d /usr/nec; then
16082 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16083 hardcode_shlibpath_var_GCJ=no
16084 runpath_var=LD_RUN_PATH
16085 hardcode_runpath_var=yes
16091 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16092 hardcode_direct_GCJ=yes
16093 hardcode_minus_L_GCJ=no
16094 hardcode_shlibpath_var_GCJ=no
16095 hardcode_runpath_var=yes
16096 runpath_var=LD_RUN_PATH
16099 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16100 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16101 if test "$GCC" = yes; then
16102 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16104 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16106 runpath_var='LD_RUN_PATH'
16107 hardcode_shlibpath_var_GCJ=no
16111 no_undefined_flag_GCJ=' -z text'
16112 # $CC -shared without GNU ld will not create a library from C++
16113 # object files and a static libstdc++, better avoid it by now
16114 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16115 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16116 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16117 hardcode_libdir_flag_spec_GCJ=
16118 hardcode_shlibpath_var_GCJ=no
16119 runpath_var='LD_RUN_PATH'
16123 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16124 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125 hardcode_shlibpath_var_GCJ=no
16134 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16135 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16136 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16138 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16139 if test "$GCC" = yes; then
16140 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16144 # Do we need to explicitly link libc?
16146 case "x$archive_cmds_need_lc_GCJ" in
16148 # Assume -lc should be added
16149 archive_cmds_need_lc_GCJ=yes
16151 if test "$enable_shared" = yes && test "$GCC" = yes; then
16152 case $archive_cmds_GCJ in
16154 # FIXME: we may have to deal with multi-command sequences.
16157 # Test whether the compiler implicitly links with -lc since on some
16158 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16159 # to ld, don't add -lc before -lgcc.
16160 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16161 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16163 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16166 (eval $ac_compile) 2>&5
16168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16169 (exit $ac_status); } 2>conftest.err; then
16172 libobjs=conftest.$ac_objext
16174 wl=$lt_prog_compiler_wl_GCJ
16180 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16181 allow_undefined_flag_GCJ=
16182 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16183 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16186 (exit $ac_status); }
16188 archive_cmds_need_lc_GCJ=no
16190 archive_cmds_need_lc_GCJ=yes
16192 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16194 cat conftest.err 1>&5
16197 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16198 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16205 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16206 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16207 library_names_spec=
16208 libname_spec='lib$name'
16212 postuninstall_cmds=
16216 shlibpath_overrides_runpath=unknown
16218 dynamic_linker="$host_os ld.so"
16219 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16220 if test "$GCC" = yes; then
16221 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16222 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16223 # if the path contains ";" then we assume it to be the separator
16224 # otherwise default to the standard path separator (i.e. ":") - it is
16225 # assumed that no part of a normal pathname contains ";" but that should
16226 # okay in the real world where ";" in dirpaths is itself problematic.
16227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16232 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16234 need_lib_prefix=unknown
16235 hardcode_into_libs=no
16237 # when you set need_version to no, make sure it does not cause -set_version
16238 # flags to be left without arguments
16239 need_version=unknown
16244 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16245 shlibpath_var=LIBPATH
16247 # AIX 3 has no versioning support, so we append a major version to the name.
16248 soname_spec='${libname}${release}${shared_ext}$major'
16255 hardcode_into_libs=yes
16256 if test "$host_cpu" = ia64; then
16257 # AIX 5 supports IA64
16258 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16259 shlibpath_var=LD_LIBRARY_PATH
16261 # With GCC up to 2.95.x, collect2 would create an import file
16262 # for dependence libraries. The import file would start with
16263 # the line `#! .'. This would cause the generated library to
16264 # depend on `.', always an invalid library. This was fixed in
16265 # development snapshots of GCC prior to 3.0.
16267 aix4 | aix4.[01] | aix4.[01].*)
16268 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16270 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16273 can_build_shared=no
16277 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16278 # soname into executable. Probably we can add versioning support to
16279 # collect2, so additional links can be useful in future.
16280 if test "$aix_use_runtimelinking" = yes; then
16281 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16282 # instead of lib<name>.a to let people know that these are not
16283 # typical AIX shared libraries.
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16286 # We preserve .a as extension for shared libraries through AIX4.2
16287 # and later when we are not doing run time linking.
16288 library_names_spec='${libname}${release}.a $libname.a'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16291 shlibpath_var=LIBPATH
16296 library_names_spec='$libname.ixlibrary $libname.a'
16297 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16298 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'
16302 library_names_spec='${libname}${shared_ext}'
16303 dynamic_linker="$host_os ld.so"
16304 shlibpath_var=LIBRARY_PATH
16310 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16311 soname_spec='${libname}${release}${shared_ext}$major'
16312 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16315 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16316 # the default ld.so.conf also contains /usr/contrib/lib and
16317 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16318 # libtool to hard-code these into programs
16321 cygwin* | mingw* | pw32*)
16322 version_type=windows
16327 case $GCC,$host_os in
16328 yes,cygwin* | yes,mingw* | yes,pw32*)
16329 library_names_spec='$libname.dll.a'
16330 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16331 postinstall_cmds='base_file=`basename \${file}`~
16332 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16333 dldir=$destdir/`dirname \$dlpath`~
16334 test -d \$dldir || mkdir -p \$dldir~
16335 $install_prog $dir/$dlname \$dldir/$dlname'
16336 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16337 dlpath=$dir/\$dldll~
16339 shlibpath_overrides_runpath=yes
16343 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16344 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16345 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16348 # MinGW DLLs use traditional 'lib' prefix
16349 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16350 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16351 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16352 # It is most probably a Windows format PATH printed by
16353 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16354 # path with ; separators, and with drive letters. We can handle the
16355 # drive letters (cygwin fileutils understands them), so leave them,
16356 # especially as we might pass files found there to a mingw objdump,
16357 # which wouldn't understand a cygwinified path. Ahh.
16358 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16360 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16364 # pw32 DLLs use 'pw' prefix rather than 'lib'
16365 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16371 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16374 dynamic_linker='Win32 ld.exe'
16375 # FIXME: first we should search . and the directory the executable is in
16379 darwin* | rhapsody*)
16380 dynamic_linker="$host_os dyld"
16381 version_type=darwin
16384 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16385 soname_spec='${libname}${release}${major}$shared_ext'
16386 shlibpath_overrides_runpath=yes
16387 shlibpath_var=DYLD_LIBRARY_PATH
16388 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16389 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16390 if test "$GCC" = yes; then
16391 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"`
16393 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16395 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16402 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16403 soname_spec='${libname}${release}${shared_ext}$major'
16404 shlibpath_var=LD_LIBRARY_PATH
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 shlibpath_var=LD_LIBRARY_PATH
16418 shlibpath_overrides_runpath=no
16419 hardcode_into_libs=yes
16420 dynamic_linker='GNU ld.so'
16424 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16425 version_type=freebsd-$objformat
16426 case $version_type in
16428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16433 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16437 shlibpath_var=LD_LIBRARY_PATH
16440 shlibpath_overrides_runpath=yes
16442 freebsd3.01* | freebsdelf3.01*)
16443 shlibpath_overrides_runpath=yes
16444 hardcode_into_libs=yes
16447 shlibpath_overrides_runpath=no
16448 hardcode_into_libs=yes
16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16458 soname_spec='${libname}${release}${shared_ext}$major'
16459 shlibpath_var=LD_LIBRARY_PATH
16460 hardcode_into_libs=yes
16463 hpux9* | hpux10* | hpux11*)
16464 # Give a soname corresponding to the major version so that dld.sl refuses to
16465 # link against other versions.
16469 case "$host_cpu" in
16472 hardcode_into_libs=yes
16473 dynamic_linker="$host_os dld.so"
16474 shlibpath_var=LD_LIBRARY_PATH
16475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16477 soname_spec='${libname}${release}${shared_ext}$major'
16478 if test "X$HPUX_IA64_MODE" = X32; then
16479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16487 hardcode_into_libs=yes
16488 dynamic_linker="$host_os dld.sl"
16489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16498 dynamic_linker="$host_os dld.sl"
16499 shlibpath_var=SHLIB_PATH
16500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16502 soname_spec='${libname}${release}${shared_ext}$major'
16505 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16506 postinstall_cmds='chmod 555 $lib'
16509 irix5* | irix6* | nonstopux*)
16511 nonstopux*) version_type=nonstopux ;;
16513 if test "$lt_cv_prog_gnu_ld" = yes; then
16521 soname_spec='${libname}${release}${shared_ext}$major'
16522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16524 irix5* | nonstopux*)
16525 libsuff= shlibsuff=
16528 case $LD in # libtool.m4 will add one of these switches to LD
16529 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16530 libsuff= shlibsuff= libmagic=32-bit;;
16531 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16532 libsuff=32 shlibsuff=N32 libmagic=N32;;
16533 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16534 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16535 *) libsuff= shlibsuff= libmagic=never-match;;
16539 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16540 shlibpath_overrides_runpath=no
16541 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16542 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16543 hardcode_into_libs=yes
16546 # No shared lib support for Linux oldld, aout, or coff.
16547 linux*oldld* | linux*aout* | linux*coff*)
16551 # This must be Linux ELF.
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557 soname_spec='${libname}${release}${shared_ext}$major'
16558 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=no
16561 # This implies no fast_install, which is unacceptable.
16562 # Some rework will be needed to allow for fast_install
16563 # before this can be enabled.
16564 hardcode_into_libs=yes
16566 # Append ld.so.conf contents to the search path
16567 if test -f /etc/ld.so.conf; then
16568 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16569 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16572 # We used to test for /lib/ld.so.1 and disable shared libraries on
16573 # powerpc, because MkLinux only supported shared libraries with the
16574 # GNU dynamic linker. Since this was broken with cross compilers,
16575 # most powerpc-linux boxes support dynamic linking these days and
16576 # people can always --disable-shared, the test was removed, and we
16577 # assume the GNU/Linux dynamic linker is in use.
16578 dynamic_linker='GNU/Linux ld.so'
16585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16586 soname_spec='${libname}${release}${shared_ext}$major'
16587 shlibpath_var=LD_LIBRARY_PATH
16588 shlibpath_overrides_runpath=no
16589 hardcode_into_libs=yes
16590 dynamic_linker='GNU ld.so'
16597 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16599 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16600 dynamic_linker='NetBSD (a.out) ld.so'
16602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16603 soname_spec='${libname}${release}${shared_ext}$major'
16604 dynamic_linker='NetBSD ld.elf_so'
16606 shlibpath_var=LD_LIBRARY_PATH
16607 shlibpath_overrides_runpath=yes
16608 hardcode_into_libs=yes
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16614 shlibpath_var=LD_LIBRARY_PATH
16615 shlibpath_overrides_runpath=yes
16622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623 soname_spec='${libname}${release}${shared_ext}$major'
16624 shlibpath_var=LD_LIBRARY_PATH
16625 shlibpath_overrides_runpath=yes
16632 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16634 shlibpath_var=LD_LIBRARY_PATH
16635 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16637 openbsd2.[89] | openbsd2.[89].*)
16638 shlibpath_overrides_runpath=no
16641 shlibpath_overrides_runpath=yes
16645 shlibpath_overrides_runpath=yes
16650 libname_spec='$name'
16653 library_names_spec='$libname${shared_ext} $libname.a'
16654 dynamic_linker='OS/2 ld.exe'
16655 shlibpath_var=LIBPATH
16658 osf3* | osf4* | osf5*)
16662 soname_spec='${libname}${release}${shared_ext}$major'
16663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16664 shlibpath_var=LD_LIBRARY_PATH
16665 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16666 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16671 soname_spec='${libname}${release}${shared_ext}$major'
16672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16673 shlibpath_var=LD_LIBRARY_PATH
16680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16681 soname_spec='${libname}${release}${shared_ext}$major'
16682 shlibpath_var=LD_LIBRARY_PATH
16683 shlibpath_overrides_runpath=yes
16684 hardcode_into_libs=yes
16685 # ldd complains unless libraries are executable
16686 postinstall_cmds='chmod +x $lib'
16691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16692 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16693 shlibpath_var=LD_LIBRARY_PATH
16694 shlibpath_overrides_runpath=yes
16695 if test "$with_gnu_ld" = yes; then
16701 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16704 soname_spec='${libname}${release}${shared_ext}$major'
16705 shlibpath_var=LD_LIBRARY_PATH
16706 case $host_vendor in
16708 shlibpath_overrides_runpath=no
16710 export_dynamic_flag_spec='${wl}-Blargedynsym'
16711 runpath_var=LD_RUN_PATH
16719 shlibpath_overrides_runpath=no
16720 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16726 if test -d /usr/nec ;then
16728 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16729 soname_spec='$libname${shared_ext}.$major'
16730 shlibpath_var=LD_LIBRARY_PATH
16736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16737 soname_spec='${libname}${release}${shared_ext}$major'
16738 shlibpath_var=LD_LIBRARY_PATH
16745 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16746 echo "${ECHO_T}$dynamic_linker" >&6
16747 test "$dynamic_linker" = no && can_build_shared=no
16749 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16750 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16751 hardcode_action_GCJ=
16752 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16753 test -n "$runpath_var_GCJ" || \
16754 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
16756 # We can hardcode non-existant directories.
16757 if test "$hardcode_direct_GCJ" != no &&
16758 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16759 # have to relink, otherwise we might link with an installed library
16760 # when we should be linking with a yet-to-be-installed one
16761 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16762 test "$hardcode_minus_L_GCJ" != no; then
16763 # Linking always hardcodes the temporary library directory.
16764 hardcode_action_GCJ=relink
16766 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16767 hardcode_action_GCJ=immediate
16770 # We cannot hardcode anything, or else we can only hardcode existing
16772 hardcode_action_GCJ=unsupported
16774 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16775 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16777 if test "$hardcode_action_GCJ" = relink; then
16778 # Fast installation is not supported
16779 enable_fast_install=no
16780 elif test "$shlibpath_overrides_runpath" = yes ||
16781 test "$enable_shared" = no; then
16782 # Fast installation is not necessary
16783 enable_fast_install=needless
16788 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16789 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16790 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16791 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16792 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16793 echo "$as_me:$LINENO: result: yes" >&5
16794 echo "${ECHO_T}yes" >&6
16796 # FIXME - insert some real tests, host_os isn't really good enough
16799 if test -n "$STRIP" ; then
16800 striplib="$STRIP -x"
16801 echo "$as_me:$LINENO: result: yes" >&5
16802 echo "${ECHO_T}yes" >&6
16804 echo "$as_me:$LINENO: result: no" >&5
16805 echo "${ECHO_T}no" >&6
16809 echo "$as_me:$LINENO: result: no" >&5
16810 echo "${ECHO_T}no" >&6
16815 if test "x$enable_dlopen" != xyes; then
16816 enable_dlopen=unknown
16817 enable_dlopen_self=unknown
16818 enable_dlopen_self_static=unknown
16825 lt_cv_dlopen="load_add_on"
16827 lt_cv_dlopen_self=yes
16831 lt_cv_dlopen="LoadLibrary"
16836 lt_cv_dlopen="dlopen"
16841 # if libdl is installed we need to link against it
16842 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
16843 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
16844 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
16845 echo $ECHO_N "(cached) $ECHO_C" >&6
16847 ac_check_lib_save_LIBS=$LIBS
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16856 /* Override any gcc2 internal prototype to avoid an error. */
16860 /* We use char because int might match the return type of a gcc2
16861 builtin and then its argument prototype would still apply. */
16871 rm -f conftest.$ac_objext conftest$ac_exeext
16872 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16873 (eval $ac_link) 2>conftest.er1
16875 grep -v '^ *+' conftest.er1 >conftest.err
16877 cat conftest.err >&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); } &&
16880 { ac_try='test -z "$ac_c_werror_flag"
16881 || test ! -s conftest.err'
16882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16883 (eval $ac_try) 2>&5
16885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16886 (exit $ac_status); }; } &&
16887 { ac_try='test -s conftest$ac_exeext'
16888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16889 (eval $ac_try) 2>&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); }; }; then
16893 ac_cv_lib_dl_dlopen=yes
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16898 ac_cv_lib_dl_dlopen=no
16900 rm -f conftest.err conftest.$ac_objext \
16901 conftest$ac_exeext conftest.$ac_ext
16902 LIBS=$ac_check_lib_save_LIBS
16904 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
16905 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
16906 if test $ac_cv_lib_dl_dlopen = yes; then
16907 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16910 lt_cv_dlopen="dyld"
16912 lt_cv_dlopen_self=yes
16919 echo "$as_me:$LINENO: checking for shl_load" >&5
16920 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
16921 if test "${ac_cv_func_shl_load+set}" = set; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16924 cat >conftest.$ac_ext <<_ACEOF
16927 cat confdefs.h >>conftest.$ac_ext
16928 cat >>conftest.$ac_ext <<_ACEOF
16929 /* end confdefs.h. */
16930 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
16931 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16932 #define shl_load innocuous_shl_load
16934 /* System header to define __stub macros and hopefully few prototypes,
16935 which can conflict with char shl_load (); below.
16936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16937 <limits.h> exists even on freestanding compilers. */
16940 # include <limits.h>
16942 # include <assert.h>
16947 /* Override any gcc2 internal prototype to avoid an error. */
16952 /* We use char because int might match the return type of a gcc2
16953 builtin and then its argument prototype would still apply. */
16955 /* The GNU C library defines this for functions which it implements
16956 to always fail with ENOSYS. Some functions are actually named
16957 something starting with __ and the normal name is an alias. */
16958 #if defined (__stub_shl_load) || defined (__stub___shl_load)
16961 char (*f) () = shl_load;
16970 return f != shl_load;
16975 rm -f conftest.$ac_objext conftest$ac_exeext
16976 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16977 (eval $ac_link) 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag"
16985 || test ! -s conftest.err'
16986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16987 (eval $ac_try) 2>&5
16989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990 (exit $ac_status); }; } &&
16991 { ac_try='test -s conftest$ac_exeext'
16992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16993 (eval $ac_try) 2>&5
16995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16996 (exit $ac_status); }; }; then
16997 ac_cv_func_shl_load=yes
16999 echo "$as_me: failed program was:" >&5
17000 sed 's/^/| /' conftest.$ac_ext >&5
17002 ac_cv_func_shl_load=no
17004 rm -f conftest.err conftest.$ac_objext \
17005 conftest$ac_exeext conftest.$ac_ext
17007 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17008 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17009 if test $ac_cv_func_shl_load = yes; then
17010 lt_cv_dlopen="shl_load"
17012 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17013 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17014 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17015 echo $ECHO_N "(cached) $ECHO_C" >&6
17017 ac_check_lib_save_LIBS=$LIBS
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17026 /* Override any gcc2 internal prototype to avoid an error. */
17030 /* We use char because int might match the return type of a gcc2
17031 builtin and then its argument prototype would still apply. */
17041 rm -f conftest.$ac_objext conftest$ac_exeext
17042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17043 (eval $ac_link) 2>conftest.er1
17045 grep -v '^ *+' conftest.er1 >conftest.err
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } &&
17050 { ac_try='test -z "$ac_c_werror_flag"
17051 || test ! -s conftest.err'
17052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17053 (eval $ac_try) 2>&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); }; } &&
17057 { ac_try='test -s conftest$ac_exeext'
17058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17059 (eval $ac_try) 2>&5
17061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062 (exit $ac_status); }; }; then
17063 ac_cv_lib_dld_shl_load=yes
17065 echo "$as_me: failed program was:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 ac_cv_lib_dld_shl_load=no
17070 rm -f conftest.err conftest.$ac_objext \
17071 conftest$ac_exeext conftest.$ac_ext
17072 LIBS=$ac_check_lib_save_LIBS
17074 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17075 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17076 if test $ac_cv_lib_dld_shl_load = yes; then
17077 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17079 echo "$as_me:$LINENO: checking for dlopen" >&5
17080 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17081 if test "${ac_cv_func_dlopen+set}" = set; then
17082 echo $ECHO_N "(cached) $ECHO_C" >&6
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17090 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17092 #define dlopen innocuous_dlopen
17094 /* System header to define __stub macros and hopefully few prototypes,
17095 which can conflict with char dlopen (); below.
17096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17097 <limits.h> exists even on freestanding compilers. */
17100 # include <limits.h>
17102 # include <assert.h>
17107 /* Override any gcc2 internal prototype to avoid an error. */
17112 /* We use char because int might match the return type of a gcc2
17113 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17121 char (*f) () = dlopen;
17130 return f != dlopen;
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17137 (eval $ac_link) 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag"
17145 || test ! -s conftest.err'
17146 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17147 (eval $ac_try) 2>&5
17149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); }; } &&
17151 { ac_try='test -s conftest$ac_exeext'
17152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17153 (eval $ac_try) 2>&5
17155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17156 (exit $ac_status); }; }; then
17157 ac_cv_func_dlopen=yes
17159 echo "$as_me: failed program was:" >&5
17160 sed 's/^/| /' conftest.$ac_ext >&5
17162 ac_cv_func_dlopen=no
17164 rm -f conftest.err conftest.$ac_objext \
17165 conftest$ac_exeext conftest.$ac_ext
17167 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17168 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17169 if test $ac_cv_func_dlopen = yes; then
17170 lt_cv_dlopen="dlopen"
17172 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17173 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17174 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17175 echo $ECHO_N "(cached) $ECHO_C" >&6
17177 ac_check_lib_save_LIBS=$LIBS
17179 cat >conftest.$ac_ext <<_ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h. */
17186 /* Override any gcc2 internal prototype to avoid an error. */
17190 /* We use char because int might match the return type of a gcc2
17191 builtin and then its argument prototype would still apply. */
17201 rm -f conftest.$ac_objext conftest$ac_exeext
17202 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17203 (eval $ac_link) 2>conftest.er1
17205 grep -v '^ *+' conftest.er1 >conftest.err
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } &&
17210 { ac_try='test -z "$ac_c_werror_flag"
17211 || test ! -s conftest.err'
17212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17213 (eval $ac_try) 2>&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); }; } &&
17217 { ac_try='test -s conftest$ac_exeext'
17218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17219 (eval $ac_try) 2>&5
17221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17222 (exit $ac_status); }; }; then
17223 ac_cv_lib_dl_dlopen=yes
17225 echo "$as_me: failed program was:" >&5
17226 sed 's/^/| /' conftest.$ac_ext >&5
17228 ac_cv_lib_dl_dlopen=no
17230 rm -f conftest.err conftest.$ac_objext \
17231 conftest$ac_exeext conftest.$ac_ext
17232 LIBS=$ac_check_lib_save_LIBS
17234 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17235 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17236 if test $ac_cv_lib_dl_dlopen = yes; then
17237 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17239 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17240 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17241 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17242 echo $ECHO_N "(cached) $ECHO_C" >&6
17244 ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lsvld $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17253 /* Override any gcc2 internal prototype to avoid an error. */
17257 /* We use char because int might match the return type of a gcc2
17258 builtin and then its argument prototype would still apply. */
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17270 (eval $ac_link) 2>conftest.er1
17272 grep -v '^ *+' conftest.er1 >conftest.err
17274 cat conftest.err >&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); } &&
17277 { ac_try='test -z "$ac_c_werror_flag"
17278 || test ! -s conftest.err'
17279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17280 (eval $ac_try) 2>&5
17282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17283 (exit $ac_status); }; } &&
17284 { ac_try='test -s conftest$ac_exeext'
17285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17286 (eval $ac_try) 2>&5
17288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17289 (exit $ac_status); }; }; then
17290 ac_cv_lib_svld_dlopen=yes
17292 echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17295 ac_cv_lib_svld_dlopen=no
17297 rm -f conftest.err conftest.$ac_objext \
17298 conftest$ac_exeext conftest.$ac_ext
17299 LIBS=$ac_check_lib_save_LIBS
17301 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17302 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17303 if test $ac_cv_lib_svld_dlopen = yes; then
17304 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17306 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17307 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17308 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17309 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 ac_check_lib_save_LIBS=$LIBS
17313 cat >conftest.$ac_ext <<_ACEOF
17316 cat confdefs.h >>conftest.$ac_ext
17317 cat >>conftest.$ac_ext <<_ACEOF
17318 /* end confdefs.h. */
17320 /* Override any gcc2 internal prototype to avoid an error. */
17324 /* We use char because int might match the return type of a gcc2
17325 builtin and then its argument prototype would still apply. */
17335 rm -f conftest.$ac_objext conftest$ac_exeext
17336 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17337 (eval $ac_link) 2>conftest.er1
17339 grep -v '^ *+' conftest.er1 >conftest.err
17341 cat conftest.err >&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); } &&
17344 { ac_try='test -z "$ac_c_werror_flag"
17345 || test ! -s conftest.err'
17346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17347 (eval $ac_try) 2>&5
17349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17350 (exit $ac_status); }; } &&
17351 { ac_try='test -s conftest$ac_exeext'
17352 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17353 (eval $ac_try) 2>&5
17355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356 (exit $ac_status); }; }; then
17357 ac_cv_lib_dld_dld_link=yes
17359 echo "$as_me: failed program was:" >&5
17360 sed 's/^/| /' conftest.$ac_ext >&5
17362 ac_cv_lib_dld_dld_link=no
17364 rm -f conftest.err conftest.$ac_objext \
17365 conftest$ac_exeext conftest.$ac_ext
17366 LIBS=$ac_check_lib_save_LIBS
17368 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17369 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17370 if test $ac_cv_lib_dld_dld_link = yes; then
17371 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17392 if test "x$lt_cv_dlopen" != xno; then
17398 case $lt_cv_dlopen in
17400 save_CPPFLAGS="$CPPFLAGS"
17401 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17403 save_LDFLAGS="$LDFLAGS"
17404 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17407 LIBS="$lt_cv_dlopen_libs $LIBS"
17409 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17410 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17411 if test "${lt_cv_dlopen_self+set}" = set; then
17412 echo $ECHO_N "(cached) $ECHO_C" >&6
17414 if test "$cross_compiling" = yes; then :
17415 lt_cv_dlopen_self=cross
17417 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17418 lt_status=$lt_dlunknown
17419 cat > conftest.$ac_ext <<EOF
17420 #line 17420 "configure"
17421 #include "confdefs.h"
17430 # define LT_DLGLOBAL RTLD_GLOBAL
17433 # define LT_DLGLOBAL DL_GLOBAL
17435 # define LT_DLGLOBAL 0
17439 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17440 find out it does not work in some platform. */
17441 #ifndef LT_DLLAZY_OR_NOW
17443 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17446 # define LT_DLLAZY_OR_NOW DL_LAZY
17449 # define LT_DLLAZY_OR_NOW RTLD_NOW
17452 # define LT_DLLAZY_OR_NOW DL_NOW
17454 # define LT_DLLAZY_OR_NOW 0
17462 extern "C" void exit (int);
17465 void fnord() { int i=42;}
17468 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17469 int status = $lt_dlunknown;
17473 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17474 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17475 /* dlclose (self); */
17481 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17482 (eval $ac_link) 2>&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17486 (./conftest; exit; ) 2>/dev/null
17488 case x$lt_status in
17489 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17490 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17491 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17494 # compilation failed
17495 lt_cv_dlopen_self=no
17502 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17503 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17505 if test "x$lt_cv_dlopen_self" = xyes; then
17506 LDFLAGS="$LDFLAGS $link_static_flag"
17507 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17508 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17509 if test "${lt_cv_dlopen_self_static+set}" = set; then
17510 echo $ECHO_N "(cached) $ECHO_C" >&6
17512 if test "$cross_compiling" = yes; then :
17513 lt_cv_dlopen_self_static=cross
17515 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17516 lt_status=$lt_dlunknown
17517 cat > conftest.$ac_ext <<EOF
17518 #line 17518 "configure"
17519 #include "confdefs.h"
17528 # define LT_DLGLOBAL RTLD_GLOBAL
17531 # define LT_DLGLOBAL DL_GLOBAL
17533 # define LT_DLGLOBAL 0
17537 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17538 find out it does not work in some platform. */
17539 #ifndef LT_DLLAZY_OR_NOW
17541 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17544 # define LT_DLLAZY_OR_NOW DL_LAZY
17547 # define LT_DLLAZY_OR_NOW RTLD_NOW
17550 # define LT_DLLAZY_OR_NOW DL_NOW
17552 # define LT_DLLAZY_OR_NOW 0
17560 extern "C" void exit (int);
17563 void fnord() { int i=42;}
17566 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17567 int status = $lt_dlunknown;
17571 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17572 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17573 /* dlclose (self); */
17579 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17580 (eval $ac_link) 2>&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17584 (./conftest; exit; ) 2>/dev/null
17586 case x$lt_status in
17587 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17588 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17589 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17592 # compilation failed
17593 lt_cv_dlopen_self_static=no
17600 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17601 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17604 CPPFLAGS="$save_CPPFLAGS"
17605 LDFLAGS="$save_LDFLAGS"
17610 case $lt_cv_dlopen_self in
17611 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17612 *) enable_dlopen_self=unknown ;;
17615 case $lt_cv_dlopen_self_static in
17616 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17617 *) enable_dlopen_self_static=unknown ;;
17622 # The else clause should only fire when bootstrapping the
17623 # libtool distribution, otherwise you forgot to ship ltmain.sh
17624 # with your package, and you will get complaints that there are
17625 # no rules to generate ltmain.sh.
17626 if test -f "$ltmain"; then
17627 # See if we are running on zsh, and set the options which allow our commands through
17628 # without removal of \ escapes.
17629 if test -n "${ZSH_VERSION+set}" ; then
17630 setopt NO_GLOB_SUBST
17632 # Now quote all the things that may contain metacharacters while being
17633 # careful not to overquote the AC_SUBSTed values. We take copies of the
17634 # variables and quote the copies for generation of the libtool script.
17635 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17637 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17638 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17639 deplibs_check_method reload_flag reload_cmds need_locks \
17640 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17641 lt_cv_sys_global_symbol_to_c_name_address \
17642 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17643 old_postinstall_cmds old_postuninstall_cmds \
17647 lt_prog_compiler_wl_GCJ \
17648 lt_prog_compiler_pic_GCJ \
17649 lt_prog_compiler_static_GCJ \
17650 lt_prog_compiler_no_builtin_flag_GCJ \
17651 export_dynamic_flag_spec_GCJ \
17652 thread_safe_flag_spec_GCJ \
17653 whole_archive_flag_spec_GCJ \
17654 enable_shared_with_static_runtimes_GCJ \
17655 old_archive_cmds_GCJ \
17656 old_archive_from_new_cmds_GCJ \
17657 predep_objects_GCJ \
17658 postdep_objects_GCJ \
17661 compiler_lib_search_path_GCJ \
17663 archive_expsym_cmds_GCJ \
17664 postinstall_cmds_GCJ \
17665 postuninstall_cmds_GCJ \
17666 old_archive_from_expsyms_cmds_GCJ \
17667 allow_undefined_flag_GCJ \
17668 no_undefined_flag_GCJ \
17669 export_symbols_cmds_GCJ \
17670 hardcode_libdir_flag_spec_GCJ \
17671 hardcode_libdir_flag_spec_ld_GCJ \
17672 hardcode_libdir_separator_GCJ \
17673 hardcode_automatic_GCJ \
17675 module_expsym_cmds_GCJ \
17676 lt_cv_prog_compiler_c_o_GCJ \
17677 exclude_expsyms_GCJ \
17678 include_expsyms_GCJ; do
17681 old_archive_cmds_GCJ | \
17682 old_archive_from_new_cmds_GCJ | \
17683 archive_cmds_GCJ | \
17684 archive_expsym_cmds_GCJ | \
17685 module_cmds_GCJ | \
17686 module_expsym_cmds_GCJ | \
17687 old_archive_from_expsyms_cmds_GCJ | \
17688 export_symbols_cmds_GCJ | \
17689 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17690 postinstall_cmds | postuninstall_cmds | \
17691 old_postinstall_cmds | old_postuninstall_cmds | \
17692 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17693 # Double-quote double-evaled strings.
17694 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17697 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17703 *'\$0 --fallback-echo"')
17704 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17710 cat <<__EOF__ >> "$cfgfile"
17711 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17713 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17715 # Shell to use when invoking shell scripts.
17718 # Whether or not to build shared libraries.
17719 build_libtool_libs=$enable_shared
17721 # Whether or not to build static libraries.
17722 build_old_libs=$enable_static
17724 # Whether or not to add -lc for building shared libraries.
17725 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17727 # Whether or not to disallow shared libs when runtime libs are static
17728 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17730 # Whether or not to optimize for fast installation.
17731 fast_install=$enable_fast_install
17734 host_alias=$host_alias
17737 # An echo program that does not interpret backslashes.
17742 AR_FLAGS=$lt_AR_FLAGS
17747 # A language-specific compiler.
17748 CC=$lt_compiler_GCJ
17750 # Is the compiler the GNU C compiler?
17756 # The linker used to build libraries.
17759 # Whether we need hard or soft links.
17762 # A BSD-compatible nm program.
17765 # A symbol stripping program
17768 # Used to examine libraries when file_magic_cmd begins "file"
17769 MAGIC_CMD=$MAGIC_CMD
17771 # Used on cygwin: DLL creation program.
17774 # Used on cygwin: object dumper.
17777 # Used on cygwin: assembler.
17780 # The name of the directory that contains temporary libtool files.
17783 # How to create reloadable object files.
17784 reload_flag=$lt_reload_flag
17785 reload_cmds=$lt_reload_cmds
17787 # How to pass a linker flag through the compiler.
17788 wl=$lt_lt_prog_compiler_wl_GCJ
17790 # Object file suffix (normally "o").
17791 objext="$ac_objext"
17793 # Old archive suffix (normally "a").
17796 # Shared library suffix (normally ".so").
17797 shrext_cmds='$shrext_cmds'
17799 # Executable file suffix (normally "").
17802 # Additional compiler flags for building library objects.
17803 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17806 # What is the maximum length of a command?
17807 max_cmd_len=$lt_cv_sys_max_cmd_len
17809 # Does compiler simultaneously support -c and -o options?
17810 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17812 # Must we lock files when doing compilation ?
17813 need_locks=$lt_need_locks
17815 # Do we need the lib prefix for modules?
17816 need_lib_prefix=$need_lib_prefix
17818 # Do we need a version for libraries?
17819 need_version=$need_version
17821 # Whether dlopen is supported.
17822 dlopen_support=$enable_dlopen
17824 # Whether dlopen of programs is supported.
17825 dlopen_self=$enable_dlopen_self
17827 # Whether dlopen of statically linked programs is supported.
17828 dlopen_self_static=$enable_dlopen_self_static
17830 # Compiler flag to prevent dynamic linking.
17831 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17833 # Compiler flag to turn off builtin functions.
17834 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17836 # Compiler flag to allow reflexive dlopens.
17837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17839 # Compiler flag to generate shared objects directly from archives.
17840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17842 # Compiler flag to generate thread-safe objects.
17843 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17845 # Library versioning type.
17846 version_type=$version_type
17848 # Format of library name prefix.
17849 libname_spec=$lt_libname_spec
17851 # List of archive names. First name is the real one, the rest are links.
17852 # The last name is the one that the linker finds with -lNAME.
17853 library_names_spec=$lt_library_names_spec
17855 # The coded name of the library, if different from the real name.
17856 soname_spec=$lt_soname_spec
17858 # Commands used to build and install an old-style archive.
17860 old_archive_cmds=$lt_old_archive_cmds_GCJ
17861 old_postinstall_cmds=$lt_old_postinstall_cmds
17862 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17864 # Create an old-style archive from a shared archive.
17865 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17867 # Create a temporary old-style archive to link instead of a shared archive.
17868 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17870 # Commands used to build and install a shared archive.
17871 archive_cmds=$lt_archive_cmds_GCJ
17872 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17873 postinstall_cmds=$lt_postinstall_cmds
17874 postuninstall_cmds=$lt_postuninstall_cmds
17876 # Commands used to build a loadable module (assumed same as above if empty)
17877 module_cmds=$lt_module_cmds_GCJ
17878 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17880 # Commands to strip libraries.
17881 old_striplib=$lt_old_striplib
17882 striplib=$lt_striplib
17884 # Dependencies to place before the objects being linked to create a
17886 predep_objects=$lt_predep_objects_GCJ
17888 # Dependencies to place after the objects being linked to create a
17890 postdep_objects=$lt_postdep_objects_GCJ
17892 # Dependencies to place before the objects being linked to create a
17894 predeps=$lt_predeps_GCJ
17896 # Dependencies to place after the objects being linked to create a
17898 postdeps=$lt_postdeps_GCJ
17900 # The library search path used internally by the compiler when linking
17901 # a shared library.
17902 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17904 # Method to check whether dependent libraries are shared objects.
17905 deplibs_check_method=$lt_deplibs_check_method
17907 # Command to use when deplibs_check_method == file_magic.
17908 file_magic_cmd=$lt_file_magic_cmd
17910 # Flag that allows shared libraries with undefined symbols to be built.
17911 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17913 # Flag that forces no undefined symbols.
17914 no_undefined_flag=$lt_no_undefined_flag_GCJ
17916 # Commands used to finish a libtool library installation in a directory.
17917 finish_cmds=$lt_finish_cmds
17919 # Same as above, but a single script fragment to be evaled but not shown.
17920 finish_eval=$lt_finish_eval
17922 # Take the output of nm and produce a listing of raw symbols and C names.
17923 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17925 # Transform the output of nm in a proper C declaration
17926 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17928 # Transform the output of nm in a C name address pair
17929 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17931 # This is the shared library runtime path variable.
17932 runpath_var=$runpath_var
17934 # This is the shared library path variable.
17935 shlibpath_var=$shlibpath_var
17937 # Is shlibpath searched before the hard-coded library search path?
17938 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17940 # How to hardcode a shared library path into an executable.
17941 hardcode_action=$hardcode_action_GCJ
17943 # Whether we should hardcode library paths into libraries.
17944 hardcode_into_libs=$hardcode_into_libs
17946 # Flag to hardcode \$libdir into a binary during linking.
17947 # This must work even if \$libdir does not exist.
17948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17950 # If ld is used when linking, flag to hardcode \$libdir into
17951 # a binary during linking. This must work even if \$libdir does
17953 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17955 # Whether we need a single -rpath flag with a separated argument.
17956 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17958 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17959 # resulting binary.
17960 hardcode_direct=$hardcode_direct_GCJ
17962 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17963 # resulting binary.
17964 hardcode_minus_L=$hardcode_minus_L_GCJ
17966 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17967 # the resulting binary.
17968 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17970 # Set to yes if building a shared library automatically hardcodes DIR into the library
17971 # and all subsequent libraries and executables linked against it.
17972 hardcode_automatic=$hardcode_automatic_GCJ
17974 # Variables whose values should be saved in libtool wrapper scripts and
17975 # restored at relink time.
17976 variables_saved_for_relink="$variables_saved_for_relink"
17978 # Whether libtool must link a program against all its dependency libraries.
17979 link_all_deplibs=$link_all_deplibs_GCJ
17981 # Compile-time system search path for libraries
17982 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17984 # Run-time system search path for libraries
17985 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17987 # Fix the shell variable \$srcfile for the compiler.
17988 fix_srcfile_path="$fix_srcfile_path_GCJ"
17990 # Set to yes if exported symbols are required.
17991 always_export_symbols=$always_export_symbols_GCJ
17993 # The commands to list exported symbols.
17994 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
17996 # The commands to extract the exported symbol list from a shared archive.
17997 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17999 # Symbols that should not be listed in the preloaded symbols.
18000 exclude_expsyms=$lt_exclude_expsyms_GCJ
18002 # Symbols that must always be exported.
18003 include_expsyms=$lt_include_expsyms_GCJ
18005 # ### END LIBTOOL TAG CONFIG: $tagname
18011 # If there is no Makefile yet, we rely on a make rule to execute
18012 # `config.status --recheck' to rerun these tests and create the
18013 # libtool script then.
18014 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18015 if test -f "$ltmain_in"; then
18016 test -f Makefile && make "$ltmain"
18022 ac_cpp='$CPP $CPPFLAGS'
18023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18038 # Source file extension for RC test sources.
18041 # Object file extension for compiled RC test sources.
18045 # Code to be used in simple compile tests
18046 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18048 # Code to be used in simple link tests
18049 lt_simple_link_test_code="$lt_simple_compile_test_code"
18051 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18053 # If no C compiler was specified, use CC.
18056 # Allow CC to be a program name with arguments.
18060 # Allow CC to be a program name with arguments.
18065 lt_cv_prog_compiler_c_o_RC=yes
18067 # The else clause should only fire when bootstrapping the
18068 # libtool distribution, otherwise you forgot to ship ltmain.sh
18069 # with your package, and you will get complaints that there are
18070 # no rules to generate ltmain.sh.
18071 if test -f "$ltmain"; then
18072 # See if we are running on zsh, and set the options which allow our commands through
18073 # without removal of \ escapes.
18074 if test -n "${ZSH_VERSION+set}" ; then
18075 setopt NO_GLOB_SUBST
18077 # Now quote all the things that may contain metacharacters while being
18078 # careful not to overquote the AC_SUBSTed values. We take copies of the
18079 # variables and quote the copies for generation of the libtool script.
18080 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18082 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18083 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18084 deplibs_check_method reload_flag reload_cmds need_locks \
18085 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18086 lt_cv_sys_global_symbol_to_c_name_address \
18087 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18088 old_postinstall_cmds old_postuninstall_cmds \
18092 lt_prog_compiler_wl_RC \
18093 lt_prog_compiler_pic_RC \
18094 lt_prog_compiler_static_RC \
18095 lt_prog_compiler_no_builtin_flag_RC \
18096 export_dynamic_flag_spec_RC \
18097 thread_safe_flag_spec_RC \
18098 whole_archive_flag_spec_RC \
18099 enable_shared_with_static_runtimes_RC \
18100 old_archive_cmds_RC \
18101 old_archive_from_new_cmds_RC \
18102 predep_objects_RC \
18103 postdep_objects_RC \
18106 compiler_lib_search_path_RC \
18108 archive_expsym_cmds_RC \
18109 postinstall_cmds_RC \
18110 postuninstall_cmds_RC \
18111 old_archive_from_expsyms_cmds_RC \
18112 allow_undefined_flag_RC \
18113 no_undefined_flag_RC \
18114 export_symbols_cmds_RC \
18115 hardcode_libdir_flag_spec_RC \
18116 hardcode_libdir_flag_spec_ld_RC \
18117 hardcode_libdir_separator_RC \
18118 hardcode_automatic_RC \
18120 module_expsym_cmds_RC \
18121 lt_cv_prog_compiler_c_o_RC \
18122 exclude_expsyms_RC \
18123 include_expsyms_RC; do
18126 old_archive_cmds_RC | \
18127 old_archive_from_new_cmds_RC | \
18128 archive_cmds_RC | \
18129 archive_expsym_cmds_RC | \
18131 module_expsym_cmds_RC | \
18132 old_archive_from_expsyms_cmds_RC | \
18133 export_symbols_cmds_RC | \
18134 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18135 postinstall_cmds | postuninstall_cmds | \
18136 old_postinstall_cmds | old_postuninstall_cmds | \
18137 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18138 # Double-quote double-evaled strings.
18139 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18142 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18148 *'\$0 --fallback-echo"')
18149 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18155 cat <<__EOF__ >> "$cfgfile"
18156 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18158 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18160 # Shell to use when invoking shell scripts.
18163 # Whether or not to build shared libraries.
18164 build_libtool_libs=$enable_shared
18166 # Whether or not to build static libraries.
18167 build_old_libs=$enable_static
18169 # Whether or not to add -lc for building shared libraries.
18170 build_libtool_need_lc=$archive_cmds_need_lc_RC
18172 # Whether or not to disallow shared libs when runtime libs are static
18173 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18175 # Whether or not to optimize for fast installation.
18176 fast_install=$enable_fast_install
18179 host_alias=$host_alias
18182 # An echo program that does not interpret backslashes.
18187 AR_FLAGS=$lt_AR_FLAGS
18192 # A language-specific compiler.
18195 # Is the compiler the GNU C compiler?
18201 # The linker used to build libraries.
18204 # Whether we need hard or soft links.
18207 # A BSD-compatible nm program.
18210 # A symbol stripping program
18213 # Used to examine libraries when file_magic_cmd begins "file"
18214 MAGIC_CMD=$MAGIC_CMD
18216 # Used on cygwin: DLL creation program.
18219 # Used on cygwin: object dumper.
18222 # Used on cygwin: assembler.
18225 # The name of the directory that contains temporary libtool files.
18228 # How to create reloadable object files.
18229 reload_flag=$lt_reload_flag
18230 reload_cmds=$lt_reload_cmds
18232 # How to pass a linker flag through the compiler.
18233 wl=$lt_lt_prog_compiler_wl_RC
18235 # Object file suffix (normally "o").
18236 objext="$ac_objext"
18238 # Old archive suffix (normally "a").
18241 # Shared library suffix (normally ".so").
18242 shrext_cmds='$shrext_cmds'
18244 # Executable file suffix (normally "").
18247 # Additional compiler flags for building library objects.
18248 pic_flag=$lt_lt_prog_compiler_pic_RC
18251 # What is the maximum length of a command?
18252 max_cmd_len=$lt_cv_sys_max_cmd_len
18254 # Does compiler simultaneously support -c and -o options?
18255 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18257 # Must we lock files when doing compilation ?
18258 need_locks=$lt_need_locks
18260 # Do we need the lib prefix for modules?
18261 need_lib_prefix=$need_lib_prefix
18263 # Do we need a version for libraries?
18264 need_version=$need_version
18266 # Whether dlopen is supported.
18267 dlopen_support=$enable_dlopen
18269 # Whether dlopen of programs is supported.
18270 dlopen_self=$enable_dlopen_self
18272 # Whether dlopen of statically linked programs is supported.
18273 dlopen_self_static=$enable_dlopen_self_static
18275 # Compiler flag to prevent dynamic linking.
18276 link_static_flag=$lt_lt_prog_compiler_static_RC
18278 # Compiler flag to turn off builtin functions.
18279 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18281 # Compiler flag to allow reflexive dlopens.
18282 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18284 # Compiler flag to generate shared objects directly from archives.
18285 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18287 # Compiler flag to generate thread-safe objects.
18288 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18290 # Library versioning type.
18291 version_type=$version_type
18293 # Format of library name prefix.
18294 libname_spec=$lt_libname_spec
18296 # List of archive names. First name is the real one, the rest are links.
18297 # The last name is the one that the linker finds with -lNAME.
18298 library_names_spec=$lt_library_names_spec
18300 # The coded name of the library, if different from the real name.
18301 soname_spec=$lt_soname_spec
18303 # Commands used to build and install an old-style archive.
18305 old_archive_cmds=$lt_old_archive_cmds_RC
18306 old_postinstall_cmds=$lt_old_postinstall_cmds
18307 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18309 # Create an old-style archive from a shared archive.
18310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18312 # Create a temporary old-style archive to link instead of a shared archive.
18313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18315 # Commands used to build and install a shared archive.
18316 archive_cmds=$lt_archive_cmds_RC
18317 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18318 postinstall_cmds=$lt_postinstall_cmds
18319 postuninstall_cmds=$lt_postuninstall_cmds
18321 # Commands used to build a loadable module (assumed same as above if empty)
18322 module_cmds=$lt_module_cmds_RC
18323 module_expsym_cmds=$lt_module_expsym_cmds_RC
18325 # Commands to strip libraries.
18326 old_striplib=$lt_old_striplib
18327 striplib=$lt_striplib
18329 # Dependencies to place before the objects being linked to create a
18331 predep_objects=$lt_predep_objects_RC
18333 # Dependencies to place after the objects being linked to create a
18335 postdep_objects=$lt_postdep_objects_RC
18337 # Dependencies to place before the objects being linked to create a
18339 predeps=$lt_predeps_RC
18341 # Dependencies to place after the objects being linked to create a
18343 postdeps=$lt_postdeps_RC
18345 # The library search path used internally by the compiler when linking
18346 # a shared library.
18347 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18349 # Method to check whether dependent libraries are shared objects.
18350 deplibs_check_method=$lt_deplibs_check_method
18352 # Command to use when deplibs_check_method == file_magic.
18353 file_magic_cmd=$lt_file_magic_cmd
18355 # Flag that allows shared libraries with undefined symbols to be built.
18356 allow_undefined_flag=$lt_allow_undefined_flag_RC
18358 # Flag that forces no undefined symbols.
18359 no_undefined_flag=$lt_no_undefined_flag_RC
18361 # Commands used to finish a libtool library installation in a directory.
18362 finish_cmds=$lt_finish_cmds
18364 # Same as above, but a single script fragment to be evaled but not shown.
18365 finish_eval=$lt_finish_eval
18367 # Take the output of nm and produce a listing of raw symbols and C names.
18368 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18370 # Transform the output of nm in a proper C declaration
18371 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18373 # Transform the output of nm in a C name address pair
18374 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18376 # This is the shared library runtime path variable.
18377 runpath_var=$runpath_var
18379 # This is the shared library path variable.
18380 shlibpath_var=$shlibpath_var
18382 # Is shlibpath searched before the hard-coded library search path?
18383 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18385 # How to hardcode a shared library path into an executable.
18386 hardcode_action=$hardcode_action_RC
18388 # Whether we should hardcode library paths into libraries.
18389 hardcode_into_libs=$hardcode_into_libs
18391 # Flag to hardcode \$libdir into a binary during linking.
18392 # This must work even if \$libdir does not exist.
18393 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18395 # If ld is used when linking, flag to hardcode \$libdir into
18396 # a binary during linking. This must work even if \$libdir does
18398 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18400 # Whether we need a single -rpath flag with a separated argument.
18401 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18403 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18404 # resulting binary.
18405 hardcode_direct=$hardcode_direct_RC
18407 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18408 # resulting binary.
18409 hardcode_minus_L=$hardcode_minus_L_RC
18411 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18412 # the resulting binary.
18413 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18415 # Set to yes if building a shared library automatically hardcodes DIR into the library
18416 # and all subsequent libraries and executables linked against it.
18417 hardcode_automatic=$hardcode_automatic_RC
18419 # Variables whose values should be saved in libtool wrapper scripts and
18420 # restored at relink time.
18421 variables_saved_for_relink="$variables_saved_for_relink"
18423 # Whether libtool must link a program against all its dependency libraries.
18424 link_all_deplibs=$link_all_deplibs_RC
18426 # Compile-time system search path for libraries
18427 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18429 # Run-time system search path for libraries
18430 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18432 # Fix the shell variable \$srcfile for the compiler.
18433 fix_srcfile_path="$fix_srcfile_path_RC"
18435 # Set to yes if exported symbols are required.
18436 always_export_symbols=$always_export_symbols_RC
18438 # The commands to list exported symbols.
18439 export_symbols_cmds=$lt_export_symbols_cmds_RC
18441 # The commands to extract the exported symbol list from a shared archive.
18442 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18444 # Symbols that should not be listed in the preloaded symbols.
18445 exclude_expsyms=$lt_exclude_expsyms_RC
18447 # Symbols that must always be exported.
18448 include_expsyms=$lt_include_expsyms_RC
18450 # ### END LIBTOOL TAG CONFIG: $tagname
18456 # If there is no Makefile yet, we rely on a make rule to execute
18457 # `config.status --recheck' to rerun these tests and create the
18458 # libtool script then.
18459 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18460 if test -f "$ltmain_in"; then
18461 test -f Makefile && make "$ltmain"
18467 ac_cpp='$CPP $CPPFLAGS'
18468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18477 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18478 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18479 { (exit 1); exit 1; }; }
18483 # Append the new tag name to the list of available tags.
18484 if test -n "$tagname" ; then
18485 available_tags="$available_tags $tagname"
18491 # Now substitute the updated list of available tags.
18492 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18493 mv "${ofile}T" "$ofile"
18497 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18498 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18499 { (exit 1); exit 1; }; }
18505 # This can be used to rebuild libtool when needed
18506 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18508 # Always use our own libtool.
18509 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18511 # Prevent multiple expansion
18532 am__api_version="1.8"
18533 # Find a good install program. We prefer a C program (faster),
18534 # so one script is as good as another. But avoid the broken or
18535 # incompatible versions:
18536 # SysV /etc/install, /usr/sbin/install
18537 # SunOS /usr/etc/install
18538 # IRIX /sbin/install
18540 # AmigaOS /C/install, which installs bootblocks on floppy discs
18541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
18542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
18543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
18544 # OS/2's system install, which has a completely different semantic
18545 # ./install, which can be erroneously created by make from ./install.sh.
18546 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
18547 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
18548 if test -z "$INSTALL"; then
18549 if test "${ac_cv_path_install+set}" = set; then
18550 echo $ECHO_N "(cached) $ECHO_C" >&6
18552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18553 for as_dir in $PATH
18556 test -z "$as_dir" && as_dir=.
18557 # Account for people who put trailing slashes in PATH elements.
18559 ./ | .// | /cC/* | \
18560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
18561 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
18564 # OSF1 and SCO ODT 3.0 have their own names for install.
18565 # Don't use installbsd from OSF since it installs stuff as root
18567 for ac_prog in ginstall scoinst install; do
18568 for ac_exec_ext in '' $ac_executable_extensions; do
18569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
18570 if test $ac_prog = install &&
18571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18572 # AIX install. It has an incompatible calling convention.
18574 elif test $ac_prog = install &&
18575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
18576 # program-specific install script used by HP pwplus--don't use.
18579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
18591 if test "${ac_cv_path_install+set}" = set; then
18592 INSTALL=$ac_cv_path_install
18594 # As a last resort, use the slow shell script. We don't cache a
18595 # path for INSTALL within a source directory, because that will
18596 # break other packages using the cache if that directory is
18597 # removed, or if the path is relative.
18598 INSTALL=$ac_install_sh
18601 echo "$as_me:$LINENO: result: $INSTALL" >&5
18602 echo "${ECHO_T}$INSTALL" >&6
18604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
18605 # It thinks the first close brace ends the variable substitution.
18606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
18608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
18610 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
18612 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
18613 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
18616 echo timestamp > conftest.file
18617 # Do `set' in a subshell so we don't clobber the current shell's
18618 # arguments. Must try -L first in case configure is actually a
18619 # symlink; some systems play weird games with the mod time of symlinks
18620 # (eg FreeBSD returns the mod time of the symlink's containing
18623 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
18624 if test "$*" = "X"; then
18626 set X `ls -t $srcdir/configure conftest.file`
18628 rm -f conftest.file
18629 if test "$*" != "X $srcdir/configure conftest.file" \
18630 && test "$*" != "X conftest.file $srcdir/configure"; then
18632 # If neither matched, then we have a broken ls. This can happen
18633 # if, for instance, CONFIG_SHELL is bash and it inherits a
18634 # broken ls alias from the environment. This has actually
18635 # happened. Such a system could not be considered "sane".
18636 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
18637 alias in your environment" >&5
18638 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
18639 alias in your environment" >&2;}
18640 { (exit 1); exit 1; }; }
18643 test "$2" = conftest.file
18649 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
18650 Check your system clock" >&5
18651 echo "$as_me: error: newly created file is older than distributed files!
18652 Check your system clock" >&2;}
18653 { (exit 1); exit 1; }; }
18655 echo "$as_me:$LINENO: result: yes" >&5
18656 echo "${ECHO_T}yes" >&6
18657 test "$program_prefix" != NONE &&
18658 program_transform_name="s,^,$program_prefix,;$program_transform_name"
18659 # Use a double $ so make ignores it.
18660 test "$program_suffix" != NONE &&
18661 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
18662 # Double any \ or $. echo might interpret backslashes.
18663 # By default was `s,x,x', remove it if useless.
18664 cat <<\_ACEOF >conftest.sed
18665 s/[\\$]/&&/g;s/;s,x,x,$//
18667 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
18670 # expand $ac_aux_dir to an absolute path
18671 am_aux_dir=`cd $ac_aux_dir && pwd`
18673 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
18674 # Use eval to expand $SHELL
18675 if eval "$MISSING --run true"; then
18676 am_missing_run="$MISSING --run "
18679 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
18680 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
18683 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
18684 # Keeping the `.' argument allows $(mkdir_p) to be used without
18685 # argument. Indeed, we sometimes output rules like
18686 # $(mkdir_p) $(somedir)
18687 # where $(somedir) is conditionally defined.
18688 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
18689 # expensive solution, as it forces Make to start a sub-shell.)
18690 mkdir_p='mkdir -p -- .'
18692 # On NextStep and OpenStep, the `mkdir' command does not
18693 # recognize any option. It will interpret all options as
18694 # directories to create, and then abort because `.' already
18696 for d in ./-p ./--version;
18698 test -d $d && rmdir $d
18700 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
18701 if test -f "$ac_aux_dir/mkinstalldirs"; then
18702 mkdir_p='$(mkinstalldirs)'
18704 mkdir_p='$(install_sh) -d'
18708 for ac_prog in gawk mawk nawk awk
18710 # Extract the first word of "$ac_prog", so it can be a program name with args.
18711 set dummy $ac_prog; ac_word=$2
18712 echo "$as_me:$LINENO: checking for $ac_word" >&5
18713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18714 if test "${ac_cv_prog_AWK+set}" = set; then
18715 echo $ECHO_N "(cached) $ECHO_C" >&6
18717 if test -n "$AWK"; then
18718 ac_cv_prog_AWK="$AWK" # Let the user override the test.
18720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18724 test -z "$as_dir" && as_dir=.
18725 for ac_exec_ext in '' $ac_executable_extensions; do
18726 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18727 ac_cv_prog_AWK="$ac_prog"
18728 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18736 AWK=$ac_cv_prog_AWK
18737 if test -n "$AWK"; then
18738 echo "$as_me:$LINENO: result: $AWK" >&5
18739 echo "${ECHO_T}$AWK" >&6
18741 echo "$as_me:$LINENO: result: no" >&5
18742 echo "${ECHO_T}no" >&6
18745 test -n "$AWK" && break
18748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
18751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18752 echo $ECHO_N "(cached) $ECHO_C" >&6
18754 cat >conftest.make <<\_ACEOF
18756 @echo 'ac_maketemp="$(MAKE)"'
18758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18760 if test -n "$ac_maketemp"; then
18761 eval ac_cv_prog_make_${ac_make}_set=yes
18763 eval ac_cv_prog_make_${ac_make}_set=no
18765 rm -f conftest.make
18767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18768 echo "$as_me:$LINENO: result: yes" >&5
18769 echo "${ECHO_T}yes" >&6
18772 echo "$as_me:$LINENO: result: no" >&5
18773 echo "${ECHO_T}no" >&6
18774 SET_MAKE="MAKE=${MAKE-make}"
18777 rm -rf .tst 2>/dev/null
18778 mkdir .tst 2>/dev/null
18779 if test -d .tst; then
18784 rmdir .tst 2>/dev/null
18786 DEPDIR="${am__leading_dot}deps"
18788 ac_config_commands="$ac_config_commands depfiles"
18791 am_make=${MAKE-make}
18792 cat > confinc << 'END'
18797 # If we don't find an include directive, just comment out the code.
18798 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
18799 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
18803 # First try GNU make style include.
18804 echo "include confinc" > confmf
18805 # We grep out `Entering directory' and `Leaving directory'
18806 # messages which can occur if `w' ends up in MAKEFLAGS.
18807 # In particular we don't look at `^make:' because GNU make might
18808 # be invoked under some other name (usually "gmake"), in which
18809 # case it prints its new name instead of `make'.
18810 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
18811 am__include=include
18815 # Now try BSD make style include.
18816 if test "$am__include" = "#"; then
18817 echo '.include "confinc"' > confmf
18818 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
18819 am__include=.include
18826 echo "$as_me:$LINENO: result: $_am_result" >&5
18827 echo "${ECHO_T}$_am_result" >&6
18828 rm -f confinc confmf
18830 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
18831 if test "${enable_dependency_tracking+set}" = set; then
18832 enableval="$enable_dependency_tracking"
18835 if test "x$enable_dependency_tracking" != xno; then
18836 am_depcomp="$ac_aux_dir/depcomp"
18841 if test "x$enable_dependency_tracking" != xno; then
18851 # test to see if srcdir already configured
18852 if test "`cd $srcdir && pwd`" != "`pwd`" &&
18853 test -f $srcdir/config.status; then
18854 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
18855 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
18856 { (exit 1); exit 1; }; }
18859 # test whether we have cygpath
18860 if test -z "$CYGPATH_W"; then
18861 if (cygpath --version) >/dev/null 2>/dev/null; then
18862 CYGPATH_W='cygpath -w'
18869 # Define the identity of the package.
18874 cat >>confdefs.h <<_ACEOF
18875 #define PACKAGE "$PACKAGE"
18879 cat >>confdefs.h <<_ACEOF
18880 #define VERSION "$VERSION"
18883 # Some tools Automake needs.
18885 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
18888 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
18891 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
18894 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
18897 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
18900 AMTAR=${AMTAR-"${am_missing_run}tar"}
18902 install_sh=${install_sh-"$am_aux_dir/install-sh"}
18904 # Installed binaries are usually stripped using `strip' when the user
18905 # run `make install-strip'. However `strip' might not be the right
18906 # tool to use in cross-compilation environments, therefore Automake
18907 # will honor the `STRIP' environment variable to overrule this program.
18908 if test "$cross_compiling" != no; then
18909 if test -n "$ac_tool_prefix"; then
18910 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
18911 set dummy ${ac_tool_prefix}strip; ac_word=$2
18912 echo "$as_me:$LINENO: checking for $ac_word" >&5
18913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18914 if test "${ac_cv_prog_STRIP+set}" = set; then
18915 echo $ECHO_N "(cached) $ECHO_C" >&6
18917 if test -n "$STRIP"; then
18918 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
18920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18921 for as_dir in $PATH
18924 test -z "$as_dir" && as_dir=.
18925 for ac_exec_ext in '' $ac_executable_extensions; do
18926 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18927 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
18928 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18936 STRIP=$ac_cv_prog_STRIP
18937 if test -n "$STRIP"; then
18938 echo "$as_me:$LINENO: result: $STRIP" >&5
18939 echo "${ECHO_T}$STRIP" >&6
18941 echo "$as_me:$LINENO: result: no" >&5
18942 echo "${ECHO_T}no" >&6
18946 if test -z "$ac_cv_prog_STRIP"; then
18948 # Extract the first word of "strip", so it can be a program name with args.
18949 set dummy strip; ac_word=$2
18950 echo "$as_me:$LINENO: checking for $ac_word" >&5
18951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18952 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 if test -n "$ac_ct_STRIP"; then
18956 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
18958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18959 for as_dir in $PATH
18962 test -z "$as_dir" && as_dir=.
18963 for ac_exec_ext in '' $ac_executable_extensions; do
18964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18965 ac_cv_prog_ac_ct_STRIP="strip"
18966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18972 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
18975 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
18976 if test -n "$ac_ct_STRIP"; then
18977 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
18978 echo "${ECHO_T}$ac_ct_STRIP" >&6
18980 echo "$as_me:$LINENO: result: no" >&5
18981 echo "${ECHO_T}no" >&6
18986 STRIP="$ac_cv_prog_STRIP"
18990 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
18992 # We need awk for the "check" target. The system "awk" is bad on
18996 depcc="$CC" am_compiler_list=
18998 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
18999 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19000 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19001 echo $ECHO_N "(cached) $ECHO_C" >&6
19003 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19004 # We make a subdir and do the tests there. Otherwise we can end up
19005 # making bogus files that we don't know about and never remove. For
19006 # instance it was reported that on HP-UX the gcc test will end up
19007 # making a dummy file named `D' -- because `-MD' means `put the output
19010 # Copy depcomp to subdir because otherwise we won't find it if we're
19011 # using a relative directory.
19012 cp "$am_depcomp" conftest.dir
19014 # We will build objects and dependencies in a subdirectory because
19015 # it helps to detect inapplicable dependency modes. For instance
19016 # both Tru64's cc and ICC support -MD to output dependencies as a
19017 # side effect of compilation, but ICC will put the dependencies in
19018 # the current directory while Tru64 will put them in the object
19022 am_cv_CC_dependencies_compiler_type=none
19023 if test "$am_compiler_list" = ""; then
19024 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19026 for depmode in $am_compiler_list; do
19027 # Setup a source with many dependencies, because some compilers
19028 # like to wrap large dependency lists on column 80 (with \), and
19029 # we should not choose a depcomp mode which is confused by this.
19031 # We need to recreate these files for each test, as the compiler may
19032 # overwrite some of them when testing with obscure command lines.
19033 # This happens at least with the AIX C compiler.
19035 for i in 1 2 3 4 5 6; do
19036 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19037 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19038 # Solaris 8's {/usr,}/bin/sh.
19039 touch sub/conftst$i.h
19041 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19045 # after this tag, mechanisms are not by side-effect, so they'll
19046 # only be used when explicitly requested
19047 if test "x$enable_dependency_tracking" = xyes; then
19055 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19056 # mode. It turns out that the SunPro C++ compiler does not properly
19057 # handle `-M -o', and we need to detect this.
19058 if depmode=$depmode \
19059 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19060 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19061 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19062 >/dev/null 2>conftest.err &&
19063 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19064 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19065 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19066 # icc doesn't choke on unknown options, it will just issue warnings
19067 # or remarks (even with -Werror). So we grep stderr for any message
19068 # that says an option was ignored or not supported.
19069 # When given -MP, icc 7.0 and 7.1 complain thusly:
19070 # icc: Command line warning: ignoring option '-M'; no argument required
19071 # The diagnosis changed in icc 8.0:
19072 # icc: Command line remark: option '-MP' not supported
19073 if (grep 'ignoring option' conftest.err ||
19074 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19075 am_cv_CC_dependencies_compiler_type=$depmode
19082 rm -rf conftest.dir
19084 am_cv_CC_dependencies_compiler_type=none
19088 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19089 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19090 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19095 test "x$enable_dependency_tracking" != xno \
19096 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19097 am__fastdepCC_TRUE=
19098 am__fastdepCC_FALSE='#'
19100 am__fastdepCC_TRUE='#'
19101 am__fastdepCC_FALSE=
19105 depcc="$CXX" am_compiler_list=
19107 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19108 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19109 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
19110 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19113 # We make a subdir and do the tests there. Otherwise we can end up
19114 # making bogus files that we don't know about and never remove. For
19115 # instance it was reported that on HP-UX the gcc test will end up
19116 # making a dummy file named `D' -- because `-MD' means `put the output
19119 # Copy depcomp to subdir because otherwise we won't find it if we're
19120 # using a relative directory.
19121 cp "$am_depcomp" conftest.dir
19123 # We will build objects and dependencies in a subdirectory because
19124 # it helps to detect inapplicable dependency modes. For instance
19125 # both Tru64's cc and ICC support -MD to output dependencies as a
19126 # side effect of compilation, but ICC will put the dependencies in
19127 # the current directory while Tru64 will put them in the object
19131 am_cv_CXX_dependencies_compiler_type=none
19132 if test "$am_compiler_list" = ""; then
19133 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19135 for depmode in $am_compiler_list; do
19136 # Setup a source with many dependencies, because some compilers
19137 # like to wrap large dependency lists on column 80 (with \), and
19138 # we should not choose a depcomp mode which is confused by this.
19140 # We need to recreate these files for each test, as the compiler may
19141 # overwrite some of them when testing with obscure command lines.
19142 # This happens at least with the AIX C compiler.
19144 for i in 1 2 3 4 5 6; do
19145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19146 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19147 # Solaris 8's {/usr,}/bin/sh.
19148 touch sub/conftst$i.h
19150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19154 # after this tag, mechanisms are not by side-effect, so they'll
19155 # only be used when explicitly requested
19156 if test "x$enable_dependency_tracking" = xyes; then
19164 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19165 # mode. It turns out that the SunPro C++ compiler does not properly
19166 # handle `-M -o', and we need to detect this.
19167 if depmode=$depmode \
19168 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19169 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19170 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19171 >/dev/null 2>conftest.err &&
19172 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19173 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19174 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19175 # icc doesn't choke on unknown options, it will just issue warnings
19176 # or remarks (even with -Werror). So we grep stderr for any message
19177 # that says an option was ignored or not supported.
19178 # When given -MP, icc 7.0 and 7.1 complain thusly:
19179 # icc: Command line warning: ignoring option '-M'; no argument required
19180 # The diagnosis changed in icc 8.0:
19181 # icc: Command line remark: option '-MP' not supported
19182 if (grep 'ignoring option' conftest.err ||
19183 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19184 am_cv_CXX_dependencies_compiler_type=$depmode
19191 rm -rf conftest.dir
19193 am_cv_CXX_dependencies_compiler_type=none
19197 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
19198 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
19199 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
19204 test "x$enable_dependency_tracking" != xno \
19205 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
19206 am__fastdepCXX_TRUE=
19207 am__fastdepCXX_FALSE='#'
19209 am__fastdepCXX_TRUE='#'
19210 am__fastdepCXX_FALSE=
19219 cat >>confdefs.h <<_ACEOF
19220 #define LIB_MAJ $LIB_MAJ
19224 echo "$as_me:$LINENO: checking whether loading unversioned modules support is enabled" >&5
19225 echo $ECHO_N "checking whether loading unversioned modules support is enabled... $ECHO_C" >&6
19226 # Check whether --enable-unversioned-modules or --disable-unversioned-modules was given.
19227 if test "${enable_unversioned_modules+set}" = set; then
19228 enableval="$enable_unversioned_modules"
19229 if test "$enableval" = "no"; then
19231 cat >>confdefs.h <<\_ACEOF
19232 #define DISABLE_UNVERSIONED_MODULES 1
19236 echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6
19239 echo "$as_me:$LINENO: result: yes" >&5
19240 echo "${ECHO_T}yes" >&6
19243 echo "$as_me:$LINENO: checking for modules directory support" >&5
19244 echo $ECHO_N "checking for modules directory support... $ECHO_C" >&6
19246 # Check whether --with-modules-dir or --without-modules-dir was given.
19247 if test "${with_modules_dir+set}" = set; then
19248 withval="$with_modules_dir"
19249 if test "$withval" != "no"; then
19250 OPENPAM_MODULES_DIR="$withval"
19252 cat >>confdefs.h <<_ACEOF
19253 #define OPENPAM_MODULES_DIR "$OPENPAM_MODULES_DIR"
19256 echo "$as_me:$LINENO: result: $OPENPAM_MODULES_DIR" >&5
19257 echo "${ECHO_T}$OPENPAM_MODULES_DIR" >&6
19259 OPENPAM_MODULES_DIR="$libdir"
19260 echo "$as_me:$LINENO: result: no" >&5
19261 echo "${ECHO_T}no" >&6
19264 OPENPAM_MODULES_DIR="$libdir"
19265 echo "$as_me:$LINENO: result: no" >&5
19266 echo "${ECHO_T}no" >&6
19270 echo "$as_me:$LINENO: checking whether to build example version of /bin/su" >&5
19271 echo $ECHO_N "checking whether to build example version of /bin/su... $ECHO_C" >&6
19273 # Check whether --with-pam-su or --without-pam-su was given.
19274 if test "${with_pam_su+set}" = set; then
19275 withval="$with_pam_su"
19280 echo "$as_me:$LINENO: result: $with_pam_su" >&5
19281 echo "${ECHO_T}$with_pam_su" >&6
19283 echo "$as_me:$LINENO: checking whether to build example version of pam_unix.so" >&5
19284 echo $ECHO_N "checking whether to build example version of pam_unix.so... $ECHO_C" >&6
19286 # Check whether --with-pam-unix or --without-pam-unix was given.
19287 if test "${with_pam_unix+set}" = set; then
19288 withval="$with_pam_unix"
19293 echo "$as_me:$LINENO: result: $with_pam_unix" >&5
19294 echo "${ECHO_T}$with_pam_unix" >&6
19298 if test "x$with_pam_su" = "xyes"; then
19300 WITH_PAM_SU_FALSE='#'
19302 WITH_PAM_SU_TRUE='#'
19308 if test "x$with_pam_unix" = "xyes"; then
19309 WITH_PAM_UNIX_TRUE=
19310 WITH_PAM_UNIX_FALSE='#'
19312 WITH_PAM_UNIX_TRUE='#'
19313 WITH_PAM_UNIX_FALSE=
19317 # Find a good install program. We prefer a C program (faster),
19318 # so one script is as good as another. But avoid the broken or
19319 # incompatible versions:
19320 # SysV /etc/install, /usr/sbin/install
19321 # SunOS /usr/etc/install
19322 # IRIX /sbin/install
19324 # AmigaOS /C/install, which installs bootblocks on floppy discs
19325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19328 # OS/2's system install, which has a completely different semantic
19329 # ./install, which can be erroneously created by make from ./install.sh.
19330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
19332 if test -z "$INSTALL"; then
19333 if test "${ac_cv_path_install+set}" = set; then
19334 echo $ECHO_N "(cached) $ECHO_C" >&6
19336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19337 for as_dir in $PATH
19340 test -z "$as_dir" && as_dir=.
19341 # Account for people who put trailing slashes in PATH elements.
19343 ./ | .// | /cC/* | \
19344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19345 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19348 # OSF1 and SCO ODT 3.0 have their own names for install.
19349 # Don't use installbsd from OSF since it installs stuff as root
19351 for ac_prog in ginstall scoinst install; do
19352 for ac_exec_ext in '' $ac_executable_extensions; do
19353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
19354 if test $ac_prog = install &&
19355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19356 # AIX install. It has an incompatible calling convention.
19358 elif test $ac_prog = install &&
19359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19360 # program-specific install script used by HP pwplus--don't use.
19363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19375 if test "${ac_cv_path_install+set}" = set; then
19376 INSTALL=$ac_cv_path_install
19378 # As a last resort, use the slow shell script. We don't cache a
19379 # path for INSTALL within a source directory, because that will
19380 # break other packages using the cache if that directory is
19381 # removed, or if the path is relative.
19382 INSTALL=$ac_install_sh
19385 echo "$as_me:$LINENO: result: $INSTALL" >&5
19386 echo "${ECHO_T}$INSTALL" >&6
19388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19389 # It thinks the first close brace ends the variable substitution.
19390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
19392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
19394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
19398 for ac_header in crypt.h
19400 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19402 echo "$as_me:$LINENO: checking for $ac_header" >&5
19403 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19404 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19407 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19408 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19410 # Is the header compilable?
19411 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19419 $ac_includes_default
19420 #include <$ac_header>
19422 rm -f conftest.$ac_objext
19423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19424 (eval $ac_compile) 2>conftest.er1
19426 grep -v '^ *+' conftest.er1 >conftest.err
19428 cat conftest.err >&5
19429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19430 (exit $ac_status); } &&
19431 { ac_try='test -z "$ac_c_werror_flag"
19432 || test ! -s conftest.err'
19433 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19434 (eval $ac_try) 2>&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); }; } &&
19438 { ac_try='test -s conftest.$ac_objext'
19439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19440 (eval $ac_try) 2>&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); }; }; then
19444 ac_header_compiler=yes
19446 echo "$as_me: failed program was:" >&5
19447 sed 's/^/| /' conftest.$ac_ext >&5
19449 ac_header_compiler=no
19451 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19452 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19453 echo "${ECHO_T}$ac_header_compiler" >&6
19455 # Is the header present?
19456 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 #include <$ac_header>
19466 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19467 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } >/dev/null; then
19474 if test -s conftest.err; then
19475 ac_cpp_err=$ac_c_preproc_warn_flag
19476 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19483 if test -z "$ac_cpp_err"; then
19484 ac_header_preproc=yes
19486 echo "$as_me: failed program was:" >&5
19487 sed 's/^/| /' conftest.$ac_ext >&5
19489 ac_header_preproc=no
19491 rm -f conftest.err conftest.$ac_ext
19492 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19493 echo "${ECHO_T}$ac_header_preproc" >&6
19495 # So? What about this header?
19496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19502 ac_header_preproc=yes
19505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19519 ## ------------------------------ ##
19520 ## Report this to des@freebsd.org ##
19521 ## ------------------------------ ##
19524 sed "s/^/$as_me: WARNING: /" >&2
19527 echo "$as_me:$LINENO: checking for $ac_header" >&5
19528 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19529 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19530 echo $ECHO_N "(cached) $ECHO_C" >&6
19532 eval "$as_ac_Header=\$ac_header_preproc"
19534 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19535 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19538 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19539 cat >>confdefs.h <<_ACEOF
19540 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19549 for ac_func in fpurge
19551 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19552 echo "$as_me:$LINENO: checking for $ac_func" >&5
19553 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19554 if eval "test \"\${$as_ac_var+set}\" = set"; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 cat >conftest.$ac_ext <<_ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19564 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19565 #define $ac_func innocuous_$ac_func
19567 /* System header to define __stub macros and hopefully few prototypes,
19568 which can conflict with char $ac_func (); below.
19569 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19570 <limits.h> exists even on freestanding compilers. */
19573 # include <limits.h>
19575 # include <assert.h>
19580 /* Override any gcc2 internal prototype to avoid an error. */
19585 /* We use char because int might match the return type of a gcc2
19586 builtin and then its argument prototype would still apply. */
19588 /* The GNU C library defines this for functions which it implements
19589 to always fail with ENOSYS. Some functions are actually named
19590 something starting with __ and the normal name is an alias. */
19591 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19594 char (*f) () = $ac_func;
19603 return f != $ac_func;
19608 rm -f conftest.$ac_objext conftest$ac_exeext
19609 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19610 (eval $ac_link) 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag"
19618 || test ! -s conftest.err'
19619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19620 (eval $ac_try) 2>&5
19622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19623 (exit $ac_status); }; } &&
19624 { ac_try='test -s conftest$ac_exeext'
19625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19626 (eval $ac_try) 2>&5
19628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19629 (exit $ac_status); }; }; then
19630 eval "$as_ac_var=yes"
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19635 eval "$as_ac_var=no"
19637 rm -f conftest.err conftest.$ac_objext \
19638 conftest$ac_exeext conftest.$ac_ext
19640 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19641 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19642 if test `eval echo '${'$as_ac_var'}'` = yes; then
19643 cat >>confdefs.h <<_ACEOF
19644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19652 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19653 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19654 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 ac_check_lib_save_LIBS=$LIBS
19659 cat >conftest.$ac_ext <<_ACEOF
19662 cat confdefs.h >>conftest.$ac_ext
19663 cat >>conftest.$ac_ext <<_ACEOF
19664 /* end confdefs.h. */
19666 /* Override any gcc2 internal prototype to avoid an error. */
19670 /* We use char because int might match the return type of a gcc2
19671 builtin and then its argument prototype would still apply. */
19681 rm -f conftest.$ac_objext conftest$ac_exeext
19682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19683 (eval $ac_link) 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_c_werror_flag"
19691 || test ! -s conftest.err'
19692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19693 (eval $ac_try) 2>&5
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }; } &&
19697 { ac_try='test -s conftest$ac_exeext'
19698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19699 (eval $ac_try) 2>&5
19701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19702 (exit $ac_status); }; }; then
19703 ac_cv_lib_dl_dlopen=yes
19705 echo "$as_me: failed program was:" >&5
19706 sed 's/^/| /' conftest.$ac_ext >&5
19708 ac_cv_lib_dl_dlopen=no
19710 rm -f conftest.err conftest.$ac_objext \
19711 conftest$ac_exeext conftest.$ac_ext
19712 LIBS=$ac_check_lib_save_LIBS
19714 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19715 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19716 if test $ac_cv_lib_dl_dlopen = yes; then
19723 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
19724 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
19725 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
19726 echo $ECHO_N "(cached) $ECHO_C" >&6
19728 ac_check_lib_save_LIBS=$LIBS
19729 LIBS="-lcrypt $LIBS"
19730 cat >conftest.$ac_ext <<_ACEOF
19733 cat confdefs.h >>conftest.$ac_ext
19734 cat >>conftest.$ac_ext <<_ACEOF
19735 /* end confdefs.h. */
19737 /* Override any gcc2 internal prototype to avoid an error. */
19741 /* We use char because int might match the return type of a gcc2
19742 builtin and then its argument prototype would still apply. */
19752 rm -f conftest.$ac_objext conftest$ac_exeext
19753 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19754 (eval $ac_link) 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19760 (exit $ac_status); } &&
19761 { ac_try='test -z "$ac_c_werror_flag"
19762 || test ! -s conftest.err'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest$ac_exeext'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; }; then
19774 ac_cv_lib_crypt_crypt=yes
19776 echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19779 ac_cv_lib_crypt_crypt=no
19781 rm -f conftest.err conftest.$ac_objext \
19782 conftest$ac_exeext conftest.$ac_ext
19783 LIBS=$ac_check_lib_save_LIBS
19785 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
19786 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
19787 if test $ac_cv_lib_crypt_crypt = yes; then
19793 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
19796 CFLAGS="$CFLAGS -Werror"
19799 ac_config_files="$ac_config_files bin/Makefile bin/su/Makefile include/Makefile include/security/Makefile lib/Makefile modules/Makefile modules/pam_unix/Makefile modules/pam_deny/Makefile modules/pam_permit/Makefile doc/Makefile doc/man/Makefile Makefile"
19801 cat >confcache <<\_ACEOF
19802 # This file is a shell script that caches the results of configure
19803 # tests run on this system so they can be shared between configure
19804 # scripts and configure runs, see configure's option --config-cache.
19805 # It is not useful on other systems. If it contains results you don't
19806 # want to keep, you may remove or edit it.
19808 # config.status only pays attention to the cache file if you give it
19809 # the --recheck option to rerun configure.
19811 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19812 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19813 # following values.
19817 # The following way of writing the cache mishandles newlines in values,
19818 # but we know of no workaround that is simple, portable, and efficient.
19819 # So, don't put newlines in cache variables' values.
19820 # Ultrix sh set writes to stderr and can't be redirected directly,
19821 # and sets the high bit in the cache file unless we assign to the vars.
19824 case `(ac_space=' '; set | grep ac_space) 2>&1` in
19826 # `set' does not quote correctly, so add quotes (double-quote
19827 # substitution turns \\\\ into \\, and sed turns \\ into \).
19830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19833 # `set' quotes correctly as required by POSIX, so do not add quotes.
19835 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19842 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19844 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19846 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19847 if test -w $cache_file; then
19848 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19849 cat confcache >$cache_file
19851 echo "not updating unwritable cache $cache_file"
19856 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19857 # Let make expand exec_prefix.
19858 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19860 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19861 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19862 # trailing colons and then remove the whole line if VPATH becomes empty
19863 # (actually we leave an empty line to preserve line numbers).
19864 if test "x$srcdir" = x.; then
19865 ac_vpsub='/^[ ]*VPATH[ ]*=/{
19866 s/:*\$(srcdir):*/:/;
19867 s/:*\${srcdir}:*/:/;
19869 s/^\([^=]*=[ ]*\):*/\1/;
19875 DEFS=-DHAVE_CONFIG_H
19879 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19880 # 1. Remove the extension, and $U if already installed.
19881 ac_i=`echo "$ac_i" |
19882 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19884 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19885 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19887 LIBOBJS=$ac_libobjs
19889 LTLIBOBJS=$ac_ltlibobjs
19892 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19893 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19894 Usually this means the macro was only invoked conditionally." >&5
19895 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19896 Usually this means the macro was only invoked conditionally." >&2;}
19897 { (exit 1); exit 1; }; }
19899 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19900 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19901 Usually this means the macro was only invoked conditionally." >&5
19902 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19903 Usually this means the macro was only invoked conditionally." >&2;}
19904 { (exit 1); exit 1; }; }
19906 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19907 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19908 Usually this means the macro was only invoked conditionally." >&5
19909 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19910 Usually this means the macro was only invoked conditionally." >&2;}
19911 { (exit 1); exit 1; }; }
19913 if test -z "${WITH_PAM_SU_TRUE}" && test -z "${WITH_PAM_SU_FALSE}"; then
19914 { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_SU\" was never defined.
19915 Usually this means the macro was only invoked conditionally." >&5
19916 echo "$as_me: error: conditional \"WITH_PAM_SU\" was never defined.
19917 Usually this means the macro was only invoked conditionally." >&2;}
19918 { (exit 1); exit 1; }; }
19920 if test -z "${WITH_PAM_UNIX_TRUE}" && test -z "${WITH_PAM_UNIX_FALSE}"; then
19921 { { echo "$as_me:$LINENO: error: conditional \"WITH_PAM_UNIX\" was never defined.
19922 Usually this means the macro was only invoked conditionally." >&5
19923 echo "$as_me: error: conditional \"WITH_PAM_UNIX\" was never defined.
19924 Usually this means the macro was only invoked conditionally." >&2;}
19925 { (exit 1); exit 1; }; }
19928 : ${CONFIG_STATUS=./config.status}
19929 ac_clean_files_save=$ac_clean_files
19930 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19931 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19932 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19933 cat >$CONFIG_STATUS <<_ACEOF
19935 # Generated by $as_me.
19936 # Run this file to recreate the current configuration.
19937 # Compiler output produced by configure, useful for debugging
19938 # configure, is in config.log if it exists.
19941 ac_cs_recheck=false
19943 SHELL=\${CONFIG_SHELL-$SHELL}
19946 cat >>$CONFIG_STATUS <<\_ACEOF
19947 ## --------------------- ##
19948 ## M4sh Initialization. ##
19949 ## --------------------- ##
19951 # Be Bourne compatible
19952 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19955 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19956 # is contrary to our usage. Disable this feature.
19957 alias -g '${1+"$@"}'='"$@"'
19958 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19961 DUALCASE=1; export DUALCASE # for MKS sh
19963 # Support unset when possible.
19964 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19971 # Work around bugs in pre-3.0 UWIN ksh.
19972 $as_unset ENV MAIL MAILPATH
19979 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19980 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19981 LC_TELEPHONE LC_TIME
19983 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19984 eval $as_var=C; export $as_var
19990 # Required to use basename.
19991 if expr a : '\(a\)' >/dev/null 2>&1; then
19997 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19998 as_basename=basename
20004 # Name of the executable.
20005 as_me=`$as_basename "$0" ||
20006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20007 X"$0" : 'X\(//\)$' \| \
20008 X"$0" : 'X\(/\)$' \| \
20009 . : '\(.\)' 2>/dev/null ||
20011 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20012 /^X\/\(\/\/\)$/{ s//\1/; q; }
20013 /^X\/\(\/\).*/{ s//\1/; q; }
20017 # PATH needs CR, and LINENO needs CR and PATH.
20018 # Avoid depending upon Character Ranges.
20019 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20020 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20021 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20022 as_cr_digits='0123456789'
20023 as_cr_alnum=$as_cr_Letters$as_cr_digits
20025 # The user is always right.
20026 if test "${PATH_SEPARATOR+set}" != set; then
20027 echo "#! /bin/sh" >conf$$.sh
20028 echo "exit 0" >>conf$$.sh
20030 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20039 as_lineno_1=$LINENO
20040 as_lineno_2=$LINENO
20041 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20042 test "x$as_lineno_1" != "x$as_lineno_2" &&
20043 test "x$as_lineno_3" = "x$as_lineno_2" || {
20044 # Find who we are. Look in the path if we contain no path at all
20047 *[\\/]* ) as_myself=$0 ;;
20048 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20049 for as_dir in $PATH
20052 test -z "$as_dir" && as_dir=.
20053 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20058 # We did not find ourselves, most probably we were run as `sh COMMAND'
20059 # in which case we are not to be found in the path.
20060 if test "x$as_myself" = x; then
20063 if test ! -f "$as_myself"; then
20064 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20065 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20066 { (exit 1); exit 1; }; }
20068 case $CONFIG_SHELL in
20070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20071 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20074 test -z "$as_dir" && as_dir=.
20075 for as_base in sh bash ksh sh5; do
20078 if ("$as_dir/$as_base" -c '
20079 as_lineno_1=$LINENO
20080 as_lineno_2=$LINENO
20081 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20082 test "x$as_lineno_1" != "x$as_lineno_2" &&
20083 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
20084 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20085 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20086 CONFIG_SHELL=$as_dir/$as_base
20087 export CONFIG_SHELL
20088 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20096 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20097 # uniformly replaced by the line number. The first 'sed' inserts a
20098 # line-number line before each line; the second 'sed' does the real
20099 # work. The second script uses 'N' to pair each line-number line
20100 # with the numbered line, and appends trailing '-' during
20101 # substitution so that $LINENO is not a special case at line end.
20102 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20103 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
20104 sed '=' <$as_myself |
20109 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20112 s,^['$as_cr_digits']*\n,,
20113 ' >$as_me.lineno &&
20114 chmod +x $as_me.lineno ||
20115 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20116 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20117 { (exit 1); exit 1; }; }
20119 # Don't try to exec as it changes $[0], causing all sort of problems
20120 # (the dirname of $[0] is not the place where we might find the
20121 # original and so on. Autoconf is especially sensible to this).
20123 # Exit status is that of the last command.
20128 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20129 *c*,-n*) ECHO_N= ECHO_C='
20131 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20132 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
20135 if expr a : '\(a\)' >/dev/null 2>&1; then
20141 rm -f conf$$ conf$$.exe conf$$.file
20143 if ln -s conf$$.file conf$$ 2>/dev/null; then
20144 # We could just check for DJGPP; but this test a) works b) is more generic
20145 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20146 if test -f conf$$.exe; then
20147 # Don't use ln at all; we don't have any links
20152 elif ln conf$$.file conf$$ 2>/dev/null; then
20157 rm -f conf$$ conf$$.exe conf$$.file
20159 if mkdir -p . 2>/dev/null; then
20162 test -d ./-p && rmdir ./-p
20166 as_executable_p="test -f"
20168 # Sed expression to map a string onto a valid CPP name.
20169 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20171 # Sed expression to map a string onto a valid variable name.
20172 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20176 # We need space, tab and new line, in precisely that order.
20186 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20187 # report actual input values of CONFIG_FILES etc. instead of their
20188 # values after options handling. Logging --version etc. is OK.
20192 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20193 ## Running $as_me. ##
20198 This file was extended by OpenPAM $as_me 20050201, which was
20199 generated by GNU Autoconf 2.59. Invocation command line was
20201 CONFIG_FILES = $CONFIG_FILES
20202 CONFIG_HEADERS = $CONFIG_HEADERS
20203 CONFIG_LINKS = $CONFIG_LINKS
20204 CONFIG_COMMANDS = $CONFIG_COMMANDS
20208 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20212 # Files that config.status was made for.
20213 if test -n "$ac_config_files"; then
20214 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20217 if test -n "$ac_config_headers"; then
20218 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20221 if test -n "$ac_config_links"; then
20222 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20225 if test -n "$ac_config_commands"; then
20226 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20229 cat >>$CONFIG_STATUS <<\_ACEOF
20232 \`$as_me' instantiates files from templates according to the
20233 current configuration.
20235 Usage: $0 [OPTIONS] [FILE]...
20237 -h, --help print this help, then exit
20238 -V, --version print version number, then exit
20239 -q, --quiet do not print progress messages
20240 -d, --debug don't remove temporary files
20241 --recheck update $as_me by reconfiguring in the same conditions
20242 --file=FILE[:TEMPLATE]
20243 instantiate the configuration file FILE
20244 --header=FILE[:TEMPLATE]
20245 instantiate the configuration header FILE
20247 Configuration files:
20250 Configuration headers:
20253 Configuration commands:
20256 Report bugs to <bug-autoconf@gnu.org>."
20259 cat >>$CONFIG_STATUS <<_ACEOF
20261 OpenPAM config.status 20050201
20262 configured by $0, generated by GNU Autoconf 2.59,
20263 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20265 Copyright (C) 2003 Free Software Foundation, Inc.
20266 This config.status script is free software; the Free Software Foundation
20267 gives unlimited permission to copy, distribute and modify it."
20272 cat >>$CONFIG_STATUS <<\_ACEOF
20273 # If no file are specified by the user, then we need to provide default
20274 # value. By we need to know if files were specified by the user.
20280 ac_option=`expr "x$1" : 'x\([^=]*\)='`
20281 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20289 *) # This is not an option, so the user has probably given explicit
20292 ac_need_defaults=false;;
20296 # Handling of the options.
20298 cat >>$CONFIG_STATUS <<\_ACEOF
20299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20301 --version | --vers* | -V )
20302 echo "$ac_cs_version"; exit 0 ;;
20304 # Conflict between --help and --header
20305 { { echo "$as_me:$LINENO: error: ambiguous option: $1
20306 Try \`$0 --help' for more information." >&5
20307 echo "$as_me: error: ambiguous option: $1
20308 Try \`$0 --help' for more information." >&2;}
20309 { (exit 1); exit 1; }; };;
20310 --help | --hel | -h )
20311 echo "$ac_cs_usage"; exit 0 ;;
20312 --debug | --d* | -d )
20314 --file | --fil | --fi | --f )
20316 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20317 ac_need_defaults=false;;
20318 --header | --heade | --head | --hea )
20320 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20321 ac_need_defaults=false;;
20322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20323 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20326 # This is an error.
20327 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20328 Try \`$0 --help' for more information." >&5
20329 echo "$as_me: error: unrecognized option: $1
20330 Try \`$0 --help' for more information." >&2;}
20331 { (exit 1); exit 1; }; } ;;
20333 *) ac_config_targets="$ac_config_targets $1" ;;
20339 ac_configure_extra_args=
20341 if $ac_cs_silent; then
20343 ac_configure_extra_args="$ac_configure_extra_args --silent"
20347 cat >>$CONFIG_STATUS <<_ACEOF
20348 if \$ac_cs_recheck; then
20349 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20350 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20355 cat >>$CONFIG_STATUS <<_ACEOF
20357 # INIT-COMMANDS section.
20360 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20366 cat >>$CONFIG_STATUS <<\_ACEOF
20367 for ac_config_target in $ac_config_targets
20369 case "$ac_config_target" in
20370 # Handling of arguments.
20371 "bin/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;;
20372 "bin/su/Makefile" ) CONFIG_FILES="$CONFIG_FILES bin/su/Makefile" ;;
20373 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20374 "include/security/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/security/Makefile" ;;
20375 "lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20376 "modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/Makefile" ;;
20377 "modules/pam_unix/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_unix/Makefile" ;;
20378 "modules/pam_deny/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_deny/Makefile" ;;
20379 "modules/pam_permit/Makefile" ) CONFIG_FILES="$CONFIG_FILES modules/pam_permit/Makefile" ;;
20380 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20381 "doc/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/man/Makefile" ;;
20382 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20383 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20384 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20385 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20386 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20387 { (exit 1); exit 1; }; };;
20391 # If the user did not use the arguments to specify the items to instantiate,
20392 # then the envvar interface is used. Set only those that are not.
20393 # We use the long form for the default assignment because of an extremely
20394 # bizarre bug on SunOS 4.1.3.
20395 if $ac_need_defaults; then
20396 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20397 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20398 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20401 # Have a temporary directory for convenience. Make it in the build tree
20402 # simply because there is no reason to put it here, and in addition,
20403 # creating and moving files from /tmp can sometimes cause problems.
20404 # Create a temporary directory, and hook for its removal unless debugging.
20407 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20408 trap '{ (exit 1); exit 1; }' 1 2 13 15
20411 # Create a (secure) tmp directory for tmp files.
20414 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20415 test -n "$tmp" && test -d "$tmp"
20418 tmp=./confstat$$-$RANDOM
20419 (umask 077 && mkdir $tmp)
20422 echo "$me: cannot create a temporary directory in ." >&2
20423 { (exit 1); exit 1; }
20428 cat >>$CONFIG_STATUS <<_ACEOF
20431 # CONFIG_FILES section.
20434 # No need to generate the scripts if there are no CONFIG_FILES.
20435 # This happens for instance when ./config.status config.h
20436 if test -n "\$CONFIG_FILES"; then
20437 # Protect against being on the right side of a sed subst in config.status.
20438 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20439 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20440 s,@SHELL@,$SHELL,;t t
20441 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20442 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20443 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20444 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20445 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20446 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20447 s,@exec_prefix@,$exec_prefix,;t t
20448 s,@prefix@,$prefix,;t t
20449 s,@program_transform_name@,$program_transform_name,;t t
20450 s,@bindir@,$bindir,;t t
20451 s,@sbindir@,$sbindir,;t t
20452 s,@libexecdir@,$libexecdir,;t t
20453 s,@datadir@,$datadir,;t t
20454 s,@sysconfdir@,$sysconfdir,;t t
20455 s,@sharedstatedir@,$sharedstatedir,;t t
20456 s,@localstatedir@,$localstatedir,;t t
20457 s,@libdir@,$libdir,;t t
20458 s,@includedir@,$includedir,;t t
20459 s,@oldincludedir@,$oldincludedir,;t t
20460 s,@infodir@,$infodir,;t t
20461 s,@mandir@,$mandir,;t t
20462 s,@build_alias@,$build_alias,;t t
20463 s,@host_alias@,$host_alias,;t t
20464 s,@target_alias@,$target_alias,;t t
20465 s,@DEFS@,$DEFS,;t t
20466 s,@ECHO_C@,$ECHO_C,;t t
20467 s,@ECHO_N@,$ECHO_N,;t t
20468 s,@ECHO_T@,$ECHO_T,;t t
20469 s,@LIBS@,$LIBS,;t t
20470 s,@build@,$build,;t t
20471 s,@build_cpu@,$build_cpu,;t t
20472 s,@build_vendor@,$build_vendor,;t t
20473 s,@build_os@,$build_os,;t t
20474 s,@host@,$host,;t t
20475 s,@host_cpu@,$host_cpu,;t t
20476 s,@host_vendor@,$host_vendor,;t t
20477 s,@host_os@,$host_os,;t t
20478 s,@target@,$target,;t t
20479 s,@target_cpu@,$target_cpu,;t t
20480 s,@target_vendor@,$target_vendor,;t t
20481 s,@target_os@,$target_os,;t t
20483 s,@CFLAGS@,$CFLAGS,;t t
20484 s,@LDFLAGS@,$LDFLAGS,;t t
20485 s,@CPPFLAGS@,$CPPFLAGS,;t t
20486 s,@ac_ct_CC@,$ac_ct_CC,;t t
20487 s,@EXEEXT@,$EXEEXT,;t t
20488 s,@OBJEXT@,$OBJEXT,;t t
20489 s,@EGREP@,$EGREP,;t t
20490 s,@LN_S@,$LN_S,;t t
20491 s,@ECHO@,$ECHO,;t t
20493 s,@ac_ct_AR@,$ac_ct_AR,;t t
20494 s,@RANLIB@,$RANLIB,;t t
20495 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20496 s,@STRIP@,$STRIP,;t t
20497 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20500 s,@CXXFLAGS@,$CXXFLAGS,;t t
20501 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20502 s,@CXXCPP@,$CXXCPP,;t t
20504 s,@FFLAGS@,$FFLAGS,;t t
20505 s,@ac_ct_F77@,$ac_ct_F77,;t t
20506 s,@LIBTOOL@,$LIBTOOL,;t t
20507 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20508 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20509 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20510 s,@CYGPATH_W@,$CYGPATH_W,;t t
20511 s,@PACKAGE@,$PACKAGE,;t t
20512 s,@VERSION@,$VERSION,;t t
20513 s,@ACLOCAL@,$ACLOCAL,;t t
20514 s,@AUTOCONF@,$AUTOCONF,;t t
20515 s,@AUTOMAKE@,$AUTOMAKE,;t t
20516 s,@AUTOHEADER@,$AUTOHEADER,;t t
20517 s,@MAKEINFO@,$MAKEINFO,;t t
20518 s,@AMTAR@,$AMTAR,;t t
20519 s,@install_sh@,$install_sh,;t t
20520 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20521 s,@mkdir_p@,$mkdir_p,;t t
20523 s,@SET_MAKE@,$SET_MAKE,;t t
20524 s,@am__leading_dot@,$am__leading_dot,;t t
20525 s,@DEPDIR@,$DEPDIR,;t t
20526 s,@am__include@,$am__include,;t t
20527 s,@am__quote@,$am__quote,;t t
20528 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20529 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20530 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20531 s,@CCDEPMODE@,$CCDEPMODE,;t t
20532 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20533 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20534 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20535 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20536 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20537 s,@LIB_MAJ@,$LIB_MAJ,;t t
20538 s,@OPENPAM_MODULES_DIR@,$OPENPAM_MODULES_DIR,;t t
20539 s,@WITH_PAM_SU_TRUE@,$WITH_PAM_SU_TRUE,;t t
20540 s,@WITH_PAM_SU_FALSE@,$WITH_PAM_SU_FALSE,;t t
20541 s,@WITH_PAM_UNIX_TRUE@,$WITH_PAM_UNIX_TRUE,;t t
20542 s,@WITH_PAM_UNIX_FALSE@,$WITH_PAM_UNIX_FALSE,;t t
20543 s,@DL_LIBS@,$DL_LIBS,;t t
20544 s,@CRYPT_LIBS@,$CRYPT_LIBS,;t t
20545 s,@LIBOBJS@,$LIBOBJS,;t t
20546 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20551 cat >>$CONFIG_STATUS <<\_ACEOF
20552 # Split the substitutions into bite-sized pieces for seds with
20553 # small command number limits, like on Digital OSF/1 and HP-UX.
20554 ac_max_sed_lines=48
20555 ac_sed_frag=1 # Number of current file.
20556 ac_beg=1 # First line for current file.
20557 ac_end=$ac_max_sed_lines # Line after last line for current file.
20560 while $ac_more_lines; do
20561 if test $ac_beg -gt 1; then
20562 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20564 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20566 if test ! -s $tmp/subs.frag; then
20567 ac_more_lines=false
20569 # The purpose of the label and of the branching condition is to
20570 # speed up the sed processing (if there are no `@' at all, there
20571 # is no need to browse any of the substitutions).
20572 # These are the two extra sed commands mentioned above.
20574 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20575 if test -z "$ac_sed_cmds"; then
20576 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20578 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20580 ac_sed_frag=`expr $ac_sed_frag + 1`
20582 ac_end=`expr $ac_end + $ac_max_sed_lines`
20585 if test -z "$ac_sed_cmds"; then
20588 fi # test -n "$CONFIG_FILES"
20591 cat >>$CONFIG_STATUS <<\_ACEOF
20592 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20593 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20595 - | *:- | *:-:* ) # input from stdin
20597 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20598 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20599 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20600 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20601 * ) ac_file_in=$ac_file.in ;;
20604 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20605 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20606 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20607 X"$ac_file" : 'X\(//\)[^/]' \| \
20608 X"$ac_file" : 'X\(//\)$' \| \
20609 X"$ac_file" : 'X\(/\)' \| \
20610 . : '\(.\)' 2>/dev/null ||
20612 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20613 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20614 /^X\(\/\/\)$/{ s//\1/; q; }
20615 /^X\(\/\).*/{ s//\1/; q; }
20617 { if $as_mkdir_p; then
20622 while test ! -d "$as_dir"; do
20623 as_dirs="$as_dir $as_dirs"
20624 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20625 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20626 X"$as_dir" : 'X\(//\)[^/]' \| \
20627 X"$as_dir" : 'X\(//\)$' \| \
20628 X"$as_dir" : 'X\(/\)' \| \
20629 . : '\(.\)' 2>/dev/null ||
20631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20633 /^X\(\/\/\)$/{ s//\1/; q; }
20634 /^X\(\/\).*/{ s//\1/; q; }
20637 test ! -n "$as_dirs" || mkdir $as_dirs
20638 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20639 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20640 { (exit 1); exit 1; }; }; }
20644 if test "$ac_dir" != .; then
20645 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20646 # A "../" for each directory in $ac_dir_suffix.
20647 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20649 ac_dir_suffix= ac_top_builddir=
20653 .) # No --srcdir option. We are building in place.
20655 if test -z "$ac_top_builddir"; then
20658 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20660 [\\/]* | ?:[\\/]* ) # Absolute path.
20661 ac_srcdir=$srcdir$ac_dir_suffix;
20662 ac_top_srcdir=$srcdir ;;
20663 *) # Relative path.
20664 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20665 ac_top_srcdir=$ac_top_builddir$srcdir ;;
20668 # Do not use `cd foo && pwd` to compute absolute paths, because
20669 # the directories may not exist.
20671 .) ac_abs_builddir="$ac_dir";;
20674 .) ac_abs_builddir=`pwd`;;
20675 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20676 *) ac_abs_builddir=`pwd`/"$ac_dir";;
20679 case $ac_abs_builddir in
20680 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20682 case ${ac_top_builddir}. in
20683 .) ac_abs_top_builddir=$ac_abs_builddir;;
20684 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20685 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20688 case $ac_abs_builddir in
20689 .) ac_abs_srcdir=$ac_srcdir;;
20692 .) ac_abs_srcdir=$ac_abs_builddir;;
20693 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20694 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20697 case $ac_abs_builddir in
20698 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20700 case $ac_top_srcdir in
20701 .) ac_abs_top_srcdir=$ac_abs_builddir;;
20702 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20703 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20709 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20710 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20713 if test x"$ac_file" != x-; then
20714 { echo "$as_me:$LINENO: creating $ac_file" >&5
20715 echo "$as_me: creating $ac_file" >&6;}
20718 # Let's still pretend it is `configure' which instantiates (i.e., don't
20719 # use $as_me), people would be surprised to read:
20720 # /* config.h. Generated by config.status. */
20721 if test x"$ac_file" = x-; then
20724 configure_input="$ac_file. "
20726 configure_input=$configure_input"Generated from `echo $ac_file_in |
20727 sed 's,.*/,,'` by configure."
20729 # First look for the input files in the build tree, otherwise in the
20731 ac_file_inputs=`IFS=:
20732 for f in $ac_file_in; do
20734 -) echo $tmp/stdin ;;
20736 # Absolute (can't be DOS-style, as IFS=:)
20737 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20738 echo "$as_me: error: cannot find input file: $f" >&2;}
20739 { (exit 1); exit 1; }; }
20742 if test -f "$f"; then
20745 elif test -f "$srcdir/$f"; then
20750 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20751 echo "$as_me: error: cannot find input file: $f" >&2;}
20752 { (exit 1); exit 1; }; }
20755 done` || { (exit 1); exit 1; }
20757 cat >>$CONFIG_STATUS <<_ACEOF
20761 cat >>$CONFIG_STATUS <<\_ACEOF
20763 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20764 s,@configure_input@,$configure_input,;t t
20765 s,@srcdir@,$ac_srcdir,;t t
20766 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20767 s,@top_srcdir@,$ac_top_srcdir,;t t
20768 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20769 s,@builddir@,$ac_builddir,;t t
20770 s,@abs_builddir@,$ac_abs_builddir,;t t
20771 s,@top_builddir@,$ac_top_builddir,;t t
20772 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20773 s,@INSTALL@,$ac_INSTALL,;t t
20774 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20776 if test x"$ac_file" != x-; then
20777 mv $tmp/out $ac_file
20785 cat >>$CONFIG_STATUS <<\_ACEOF
20788 # CONFIG_HEADER section.
20791 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20792 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20794 # ac_d sets the value in "#define NAME VALUE" lines.
20795 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
20796 ac_dB='[ ].*$,\1#\2'
20799 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20800 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
20801 ac_uB='$,\1#\2define\3'
20805 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20806 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20808 - | *:- | *:-:* ) # input from stdin
20810 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20811 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20812 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20813 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20814 * ) ac_file_in=$ac_file.in ;;
20817 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20818 echo "$as_me: creating $ac_file" >&6;}
20820 # First look for the input files in the build tree, otherwise in the
20822 ac_file_inputs=`IFS=:
20823 for f in $ac_file_in; do
20825 -) echo $tmp/stdin ;;
20827 # Absolute (can't be DOS-style, as IFS=:)
20828 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20829 echo "$as_me: error: cannot find input file: $f" >&2;}
20830 { (exit 1); exit 1; }; }
20831 # Do quote $f, to prevent DOS paths from being IFS'd.
20834 if test -f "$f"; then
20837 elif test -f "$srcdir/$f"; then
20842 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20843 echo "$as_me: error: cannot find input file: $f" >&2;}
20844 { (exit 1); exit 1; }; }
20847 done` || { (exit 1); exit 1; }
20848 # Remove the trailing spaces.
20849 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
20853 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20854 # `conftest.undefs', that substitutes the proper values into
20855 # config.h.in to produce config.h. The first handles `#define'
20856 # templates, and the second `#undef' templates.
20857 # And first: Protect against being on the right side of a sed subst in
20858 # config.status. Protect against being in an unquoted here document
20859 # in config.status.
20860 rm -f conftest.defines conftest.undefs
20861 # Using a here document instead of a string reduces the quoting nightmare.
20862 # Putting comments in sed scripts is not portable.
20864 # `end' is used to avoid that the second main sed command (meant for
20865 # 0-ary CPP macros) applies to n-ary macro definitions.
20866 # See the Autoconf documentation for `clear'.
20867 cat >confdef2sed.sed <<\_ACEOF
20872 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20874 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20877 # If some macros were called several times there might be several times
20878 # the same #defines, which is useless. Nevertheless, we may not want to
20879 # sort them, since we want the *last* AC-DEFINE to be honored.
20880 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20881 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20882 rm -f confdef2sed.sed
20884 # This sed command replaces #undef with comments. This is necessary, for
20885 # example, in the case of _POSIX_SOURCE, which is predefined and required
20886 # on some systems where configure will not decide to define it.
20887 cat >>conftest.undefs <<\_ACEOF
20888 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20891 # Break up conftest.defines because some shells have a limit on the size
20892 # of here documents, and old seds have small limits too (100 cmds).
20893 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20894 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20895 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20896 echo ' :' >>$CONFIG_STATUS
20897 rm -f conftest.tail
20898 while grep . conftest.defines >/dev/null
20900 # Write a limited-size here document to $tmp/defines.sed.
20901 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20902 # Speed up: don't consider the non `#define' lines.
20903 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
20904 # Work around the forget-to-reset-the-flag bug.
20905 echo 't clr' >>$CONFIG_STATUS
20906 echo ': clr' >>$CONFIG_STATUS
20907 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20909 sed -f $tmp/defines.sed $tmp/in >$tmp/out
20911 mv $tmp/out $tmp/in
20913 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20914 rm -f conftest.defines
20915 mv conftest.tail conftest.defines
20917 rm -f conftest.defines
20918 echo ' fi # grep' >>$CONFIG_STATUS
20919 echo >>$CONFIG_STATUS
20921 # Break up conftest.undefs because some shells have a limit on the size
20922 # of here documents, and old seds have small limits too (100 cmds).
20923 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
20924 rm -f conftest.tail
20925 while grep . conftest.undefs >/dev/null
20927 # Write a limited-size here document to $tmp/undefs.sed.
20928 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20929 # Speed up: don't consider the non `#undef'
20930 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
20931 # Work around the forget-to-reset-the-flag bug.
20932 echo 't clr' >>$CONFIG_STATUS
20933 echo ': clr' >>$CONFIG_STATUS
20934 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20936 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20938 mv $tmp/out $tmp/in
20940 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20941 rm -f conftest.undefs
20942 mv conftest.tail conftest.undefs
20944 rm -f conftest.undefs
20946 cat >>$CONFIG_STATUS <<\_ACEOF
20947 # Let's still pretend it is `configure' which instantiates (i.e., don't
20948 # use $as_me), people would be surprised to read:
20949 # /* config.h. Generated by config.status. */
20950 if test x"$ac_file" = x-; then
20951 echo "/* Generated by configure. */" >$tmp/config.h
20953 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
20955 cat $tmp/in >>$tmp/config.h
20957 if test x"$ac_file" != x-; then
20958 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20959 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20960 echo "$as_me: $ac_file is unchanged" >&6;}
20962 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20963 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20964 X"$ac_file" : 'X\(//\)[^/]' \| \
20965 X"$ac_file" : 'X\(//\)$' \| \
20966 X"$ac_file" : 'X\(/\)' \| \
20967 . : '\(.\)' 2>/dev/null ||
20969 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20970 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20971 /^X\(\/\/\)$/{ s//\1/; q; }
20972 /^X\(\/\).*/{ s//\1/; q; }
20974 { if $as_mkdir_p; then
20979 while test ! -d "$as_dir"; do
20980 as_dirs="$as_dir $as_dirs"
20981 as_dir=`(dirname "$as_dir") 2>/dev/null ||
20982 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20983 X"$as_dir" : 'X\(//\)[^/]' \| \
20984 X"$as_dir" : 'X\(//\)$' \| \
20985 X"$as_dir" : 'X\(/\)' \| \
20986 . : '\(.\)' 2>/dev/null ||
20988 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20989 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20990 /^X\(\/\/\)$/{ s//\1/; q; }
20991 /^X\(\/\).*/{ s//\1/; q; }
20994 test ! -n "$as_dirs" || mkdir $as_dirs
20995 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20996 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20997 { (exit 1); exit 1; }; }; }
21000 mv $tmp/config.h $ac_file
21004 rm -f $tmp/config.h
21006 # Compute $ac_file's index in $config_headers.
21008 for _am_header in $config_headers :; do
21009 case $_am_header in
21010 $ac_file | $ac_file:* )
21013 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21016 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21017 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21018 X$ac_file : 'X\(//\)[^/]' \| \
21019 X$ac_file : 'X\(//\)$' \| \
21020 X$ac_file : 'X\(/\)' \| \
21021 . : '\(.\)' 2>/dev/null ||
21023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21024 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21025 /^X\(\/\/\)$/{ s//\1/; q; }
21026 /^X\(\/\).*/{ s//\1/; q; }
21027 s/.*/./; q'`/stamp-h$_am_stamp_count
21030 cat >>$CONFIG_STATUS <<\_ACEOF
21033 # CONFIG_COMMANDS section.
21035 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21036 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21037 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21038 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21039 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21040 X"$ac_dest" : 'X\(//\)[^/]' \| \
21041 X"$ac_dest" : 'X\(//\)$' \| \
21042 X"$ac_dest" : 'X\(/\)' \| \
21043 . : '\(.\)' 2>/dev/null ||
21045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21046 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21047 /^X\(\/\/\)$/{ s//\1/; q; }
21048 /^X\(\/\).*/{ s//\1/; q; }
21050 { if $as_mkdir_p; then
21055 while test ! -d "$as_dir"; do
21056 as_dirs="$as_dir $as_dirs"
21057 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21058 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21059 X"$as_dir" : 'X\(//\)[^/]' \| \
21060 X"$as_dir" : 'X\(//\)$' \| \
21061 X"$as_dir" : 'X\(/\)' \| \
21062 . : '\(.\)' 2>/dev/null ||
21064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21065 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21066 /^X\(\/\/\)$/{ s//\1/; q; }
21067 /^X\(\/\).*/{ s//\1/; q; }
21070 test ! -n "$as_dirs" || mkdir $as_dirs
21071 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21072 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21073 { (exit 1); exit 1; }; }; }
21077 if test "$ac_dir" != .; then
21078 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21079 # A "../" for each directory in $ac_dir_suffix.
21080 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21082 ac_dir_suffix= ac_top_builddir=
21086 .) # No --srcdir option. We are building in place.
21088 if test -z "$ac_top_builddir"; then
21091 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21093 [\\/]* | ?:[\\/]* ) # Absolute path.
21094 ac_srcdir=$srcdir$ac_dir_suffix;
21095 ac_top_srcdir=$srcdir ;;
21096 *) # Relative path.
21097 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21098 ac_top_srcdir=$ac_top_builddir$srcdir ;;
21101 # Do not use `cd foo && pwd` to compute absolute paths, because
21102 # the directories may not exist.
21104 .) ac_abs_builddir="$ac_dir";;
21107 .) ac_abs_builddir=`pwd`;;
21108 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21109 *) ac_abs_builddir=`pwd`/"$ac_dir";;
21112 case $ac_abs_builddir in
21113 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21115 case ${ac_top_builddir}. in
21116 .) ac_abs_top_builddir=$ac_abs_builddir;;
21117 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21118 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21121 case $ac_abs_builddir in
21122 .) ac_abs_srcdir=$ac_srcdir;;
21125 .) ac_abs_srcdir=$ac_abs_builddir;;
21126 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21127 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21130 case $ac_abs_builddir in
21131 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21133 case $ac_top_srcdir in
21134 .) ac_abs_top_srcdir=$ac_abs_builddir;;
21135 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21136 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21141 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21142 echo "$as_me: executing $ac_dest commands" >&6;}
21144 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21145 # Strip MF so we end up with the name of the file.
21146 mf=`echo "$mf" | sed -e 's/:.*$//'`
21147 # Check whether this is an Automake generated Makefile or not.
21148 # We used to match only the files named `Makefile.in', but
21149 # some people rename them; so instead we look at the file content.
21150 # Grep'ing the first line is not enough: some people post-process
21151 # each Makefile.in and add a new line on top of each file to say so.
21152 # So let's grep whole file.
21153 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21154 dirpart=`(dirname "$mf") 2>/dev/null ||
21155 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21156 X"$mf" : 'X\(//\)[^/]' \| \
21157 X"$mf" : 'X\(//\)$' \| \
21158 X"$mf" : 'X\(/\)' \| \
21159 . : '\(.\)' 2>/dev/null ||
21161 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21162 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21163 /^X\(\/\/\)$/{ s//\1/; q; }
21164 /^X\(\/\).*/{ s//\1/; q; }
21169 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21170 # Extract the definition of DEP_FILES from the Makefile without
21172 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21173 test -z "$DEPDIR" && continue
21174 # When using ansi2knr, U may be empty or an underscore; expand it
21175 U=`sed -n 's/^U = //p' < "$mf"`
21176 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21177 # We invoke sed twice because it is the simplest approach to
21178 # changing $(DEPDIR) to its actual value in the expansion.
21179 for file in `sed -n '
21180 /^DEP_FILES = .*\\\\$/ {
21189 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21190 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21191 # Make sure the directory exists.
21192 test -f "$dirpart/$file" && continue
21193 fdir=`(dirname "$file") 2>/dev/null ||
21194 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21195 X"$file" : 'X\(//\)[^/]' \| \
21196 X"$file" : 'X\(//\)$' \| \
21197 X"$file" : 'X\(/\)' \| \
21198 . : '\(.\)' 2>/dev/null ||
21200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21202 /^X\(\/\/\)$/{ s//\1/; q; }
21203 /^X\(\/\).*/{ s//\1/; q; }
21205 { if $as_mkdir_p; then
21206 mkdir -p $dirpart/$fdir
21208 as_dir=$dirpart/$fdir
21210 while test ! -d "$as_dir"; do
21211 as_dirs="$as_dir $as_dirs"
21212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
21213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21214 X"$as_dir" : 'X\(//\)[^/]' \| \
21215 X"$as_dir" : 'X\(//\)$' \| \
21216 X"$as_dir" : 'X\(/\)' \| \
21217 . : '\(.\)' 2>/dev/null ||
21219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21221 /^X\(\/\/\)$/{ s//\1/; q; }
21222 /^X\(\/\).*/{ s//\1/; q; }
21225 test ! -n "$as_dirs" || mkdir $as_dirs
21226 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21227 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21228 { (exit 1); exit 1; }; }; }
21230 # echo "creating $dirpart/$file"
21231 echo '# dummy' > "$dirpart/$file"
21239 cat >>$CONFIG_STATUS <<\_ACEOF
21241 { (exit 0); exit 0; }
21243 chmod +x $CONFIG_STATUS
21244 ac_clean_files=$ac_clean_files_save
21247 # configure is writing to config.log, and then calls config.status.
21248 # config.status does its own redirection, appending to config.log.
21249 # Unfortunately, on DOS this fails, as config.log is still kept open
21250 # by configure, so config.status won't be able to write to it; its
21251 # output is simply discarded. So we exec the FD to /dev/null,
21252 # effectively closing config.log, so it can be properly (re)opened and
21253 # appended to by config.status. When coming back to configure, we
21254 # need to make the FD available again.
21255 if test "$no_create" != yes; then
21257 ac_config_status_args=
21258 test "$silent" = yes &&
21259 ac_config_status_args="$ac_config_status_args --quiet"
21261 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21263 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21264 # would make configure fail if this is the last instruction.
21265 $ac_cs_success || { (exit 1); exit 1; }