2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for opensaml 2.1.
5 # Report bugs to <mace-opensaml-users@internet2.edu>.
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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='opensaml'
425 PACKAGE_TARNAME='saml'
426 PACKAGE_VERSION='2.1'
427 PACKAGE_STRING='opensaml 2.1'
428 PACKAGE_BUGREPORT='mace-opensaml-users@internet2.edu'
430 # Factoring default headers for most tests.
431 ac_includes_default="\
434 # include <sys/types.h>
437 # include <sys/stat.h>
448 # if !STDC_HEADERS && HAVE_MEMORY_H
454 # include <strings.h>
457 # include <inttypes.h>
467 ac_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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DX_PROJECT DX_CONFIG DX_DOCDIR DX_ENV DX_FLAG_doc DX_DOXYGEN ac_pt_DX_DOXYGEN DX_FLAG_[]DX_CURRENT_FEATURE DX_PERL ac_pt_DX_PERL DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_FLAG_[]DX_CURRENT_FEATURE DX_DOT ac_pt_DX_DOT DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_FLAG_[]DX_CURRENT_FEATURE DX_HHC ac_pt_DX_HHC DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_FLAG_[]DX_CURRENT_FEATURE DX_LATEX ac_pt_DX_LATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_FLAG_[]DX_CURRENT_FEATURE DX_DVIPS ac_pt_DX_DVIPS DX_FLAG_[]DX_CURRENT_FEATURE DX_EGREP ac_pt_DX_EGREP DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_FLAG_[]DX_CURRENT_FEATURE DX_PDFLATEX ac_pt_DX_PDFLATEX DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_FLAG_[]DX_CURRENT_FEATURE DX_COND_pdf_TRUE DX_COND_pdf_FALSE DX_COND_latex_TRUE DX_COND_latex_FALSE DOXYGEN_PAPER_SIZE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL acx_pthread_config PTHREAD_CC PTHREAD_LIBS PTHREAD_CFLAGS PKG_CONFIG LOG4SHIB_CONFIG LOG4CPP_CONFIG CXXTEST CXXTESTFLAGS BUILD_UNITTEST_TRUE BUILD_UNITTEST_FALSE DX_INCLUDE LIBOBJS LTLIBOBJS'
470 # Initialize some variables set by options.
472 ac_init_version=false
473 # The variables have the same names as the options, with
474 # dashes changed to underlines.
482 program_transform_name=s,x,x,
490 # Installation directory options.
491 # These are left unexpanded so users can "make install exec_prefix=/foo"
492 # and all the variables that are supposed to be based on exec_prefix
493 # by default will actually change.
494 # Use braces instead of parens because sh, perl, etc. also accept them.
495 bindir='${exec_prefix}/bin'
496 sbindir='${exec_prefix}/sbin'
497 libexecdir='${exec_prefix}/libexec'
498 datadir='${prefix}/share'
499 sysconfdir='${prefix}/etc'
500 sharedstatedir='${prefix}/com'
501 localstatedir='${prefix}/var'
502 libdir='${exec_prefix}/lib'
503 includedir='${prefix}/include'
504 oldincludedir='/usr/include'
505 infodir='${prefix}/info'
506 mandir='${prefix}/man'
511 # If the previous option needs an argument, assign it.
512 if test -n "$ac_prev"; then
513 eval "$ac_prev=\$ac_option"
518 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
520 # Accept the important Cygnus configure options, so we can diagnose typos.
524 -bindir | --bindir | --bindi | --bind | --bin | --bi)
526 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
529 -build | --build | --buil | --bui | --bu)
530 ac_prev=build_alias ;;
531 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
532 build_alias=$ac_optarg ;;
534 -cache-file | --cache-file | --cache-fil | --cache-fi \
535 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
536 ac_prev=cache_file ;;
537 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
538 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
539 cache_file=$ac_optarg ;;
542 cache_file=config.cache ;;
544 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
546 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
548 datadir=$ac_optarg ;;
550 -disable-* | --disable-*)
551 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
552 # Reject names that are not valid shell variable names.
553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
555 { (exit 1); exit 1; }; }
556 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
557 eval "enable_$ac_feature=no" ;;
559 -enable-* | --enable-*)
560 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
561 # Reject names that are not valid shell variable names.
562 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564 { (exit 1); exit 1; }; }
565 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
567 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
570 eval "enable_$ac_feature='$ac_optarg'" ;;
572 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
573 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
574 | --exec | --exe | --ex)
575 ac_prev=exec_prefix ;;
576 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
577 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
578 | --exec=* | --exe=* | --ex=*)
579 exec_prefix=$ac_optarg ;;
581 -gas | --gas | --ga | --g)
582 # Obsolete; use --with-gas.
585 -help | --help | --hel | --he | -h)
587 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
588 ac_init_help=recursive ;;
589 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
590 ac_init_help=short ;;
592 -host | --host | --hos | --ho)
593 ac_prev=host_alias ;;
594 -host=* | --host=* | --hos=* | --ho=*)
595 host_alias=$ac_optarg ;;
597 -includedir | --includedir | --includedi | --included | --include \
598 | --includ | --inclu | --incl | --inc)
599 ac_prev=includedir ;;
600 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
601 | --includ=* | --inclu=* | --incl=* | --inc=*)
602 includedir=$ac_optarg ;;
604 -infodir | --infodir | --infodi | --infod | --info | --inf)
606 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
607 infodir=$ac_optarg ;;
609 -libdir | --libdir | --libdi | --libd)
611 -libdir=* | --libdir=* | --libdi=* | --libd=*)
614 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
615 | --libexe | --libex | --libe)
616 ac_prev=libexecdir ;;
617 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
618 | --libexe=* | --libex=* | --libe=*)
619 libexecdir=$ac_optarg ;;
621 -localstatedir | --localstatedir | --localstatedi | --localstated \
622 | --localstate | --localstat | --localsta | --localst \
623 | --locals | --local | --loca | --loc | --lo)
624 ac_prev=localstatedir ;;
625 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
626 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
627 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
628 localstatedir=$ac_optarg ;;
630 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
632 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
636 # Obsolete; use --without-fp.
639 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
640 | --no-cr | --no-c | -n)
643 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
644 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
647 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
648 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
649 | --oldin | --oldi | --old | --ol | --o)
650 ac_prev=oldincludedir ;;
651 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
652 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
653 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
654 oldincludedir=$ac_optarg ;;
656 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
658 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
661 -program-prefix | --program-prefix | --program-prefi | --program-pref \
662 | --program-pre | --program-pr | --program-p)
663 ac_prev=program_prefix ;;
664 -program-prefix=* | --program-prefix=* | --program-prefi=* \
665 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
666 program_prefix=$ac_optarg ;;
668 -program-suffix | --program-suffix | --program-suffi | --program-suff \
669 | --program-suf | --program-su | --program-s)
670 ac_prev=program_suffix ;;
671 -program-suffix=* | --program-suffix=* | --program-suffi=* \
672 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
673 program_suffix=$ac_optarg ;;
675 -program-transform-name | --program-transform-name \
676 | --program-transform-nam | --program-transform-na \
677 | --program-transform-n | --program-transform- \
678 | --program-transform | --program-transfor \
679 | --program-transfo | --program-transf \
680 | --program-trans | --program-tran \
681 | --progr-tra | --program-tr | --program-t)
682 ac_prev=program_transform_name ;;
683 -program-transform-name=* | --program-transform-name=* \
684 | --program-transform-nam=* | --program-transform-na=* \
685 | --program-transform-n=* | --program-transform-=* \
686 | --program-transform=* | --program-transfor=* \
687 | --program-transfo=* | --program-transf=* \
688 | --program-trans=* | --program-tran=* \
689 | --progr-tra=* | --program-tr=* | --program-t=*)
690 program_transform_name=$ac_optarg ;;
692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
693 | -silent | --silent | --silen | --sile | --sil)
696 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
698 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
700 sbindir=$ac_optarg ;;
702 -sharedstatedir | --sharedstatedir | --sharedstatedi \
703 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
704 | --sharedst | --shareds | --shared | --share | --shar \
706 ac_prev=sharedstatedir ;;
707 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
708 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
709 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
711 sharedstatedir=$ac_optarg ;;
713 -site | --site | --sit)
715 -site=* | --site=* | --sit=*)
718 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
720 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
723 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
724 | --syscon | --sysco | --sysc | --sys | --sy)
725 ac_prev=sysconfdir ;;
726 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
727 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
728 sysconfdir=$ac_optarg ;;
730 -target | --target | --targe | --targ | --tar | --ta | --t)
731 ac_prev=target_alias ;;
732 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
733 target_alias=$ac_optarg ;;
735 -v | -verbose | --verbose | --verbos | --verbo | --verb)
738 -version | --version | --versio | --versi | --vers | -V)
742 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
743 # Reject names that are not valid shell variable names.
744 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
745 { echo "$as_me: error: invalid package name: $ac_package" >&2
746 { (exit 1); exit 1; }; }
747 ac_package=`echo $ac_package| sed 's/-/_/g'`
749 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
752 eval "with_$ac_package='$ac_optarg'" ;;
754 -without-* | --without-*)
755 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
756 # Reject names that are not valid shell variable names.
757 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
758 { echo "$as_me: error: invalid package name: $ac_package" >&2
759 { (exit 1); exit 1; }; }
760 ac_package=`echo $ac_package | sed 's/-/_/g'`
761 eval "with_$ac_package=no" ;;
764 # Obsolete; use --with-x.
767 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
768 | --x-incl | --x-inc | --x-in | --x-i)
769 ac_prev=x_includes ;;
770 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
771 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
772 x_includes=$ac_optarg ;;
774 -x-libraries | --x-libraries | --x-librarie | --x-librari \
775 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
776 ac_prev=x_libraries ;;
777 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
778 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
779 x_libraries=$ac_optarg ;;
781 -*) { echo "$as_me: error: unrecognized option: $ac_option
782 Try \`$0 --help' for more information." >&2
783 { (exit 1); exit 1; }; }
787 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
788 # Reject names that are not valid shell variable names.
789 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
790 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
791 { (exit 1); exit 1; }; }
792 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
793 eval "$ac_envvar='$ac_optarg'"
797 # FIXME: should be removed in autoconf 3.0.
798 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
799 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
800 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
801 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
807 if test -n "$ac_prev"; then
808 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
809 { echo "$as_me: error: missing argument to $ac_option" >&2
810 { (exit 1); exit 1; }; }
813 # Be sure to have absolute paths.
814 for ac_var in exec_prefix prefix
816 eval ac_val=$`echo $ac_var`
818 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
819 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
820 { (exit 1); exit 1; }; };;
824 # Be sure to have absolute paths.
825 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
826 localstatedir libdir includedir oldincludedir infodir mandir
828 eval ac_val=$`echo $ac_var`
830 [\\/$]* | ?:[\\/]* ) ;;
831 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
832 { (exit 1); exit 1; }; };;
836 # There might be people who depend on the old broken behavior: `$host'
837 # used to hold the argument of --host etc.
838 # FIXME: To remove some day.
843 # FIXME: To remove some day.
844 if test "x$host_alias" != x; then
845 if test "x$build_alias" = x; then
846 cross_compiling=maybe
847 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
848 If a cross compiler is detected then cross compile mode will be used." >&2
849 elif test "x$build_alias" != "x$host_alias"; then
855 test -n "$host_alias" && ac_tool_prefix=$host_alias-
857 test "$silent" = yes && exec 6>/dev/null
860 # Find the source files, if location was not specified.
861 if test -z "$srcdir"; then
862 ac_srcdir_defaulted=yes
863 # Try the directory containing this script, then its parent.
864 ac_confdir=`(dirname "$0") 2>/dev/null ||
865 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
866 X"$0" : 'X\(//\)[^/]' \| \
867 X"$0" : 'X\(//\)$' \| \
868 X"$0" : 'X\(/\)' \| \
869 . : '\(.\)' 2>/dev/null ||
871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
873 /^X\(\/\/\)$/{ s//\1/; q; }
874 /^X\(\/\).*/{ s//\1/; q; }
877 if test ! -r $srcdir/$ac_unique_file; then
881 ac_srcdir_defaulted=no
883 if test ! -r $srcdir/$ac_unique_file; then
884 if test "$ac_srcdir_defaulted" = yes; then
885 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
886 { (exit 1); exit 1; }; }
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
889 { (exit 1); exit 1; }; }
892 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
893 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
894 { (exit 1); exit 1; }; }
895 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
896 ac_env_build_alias_set=${build_alias+set}
897 ac_env_build_alias_value=$build_alias
898 ac_cv_env_build_alias_set=${build_alias+set}
899 ac_cv_env_build_alias_value=$build_alias
900 ac_env_host_alias_set=${host_alias+set}
901 ac_env_host_alias_value=$host_alias
902 ac_cv_env_host_alias_set=${host_alias+set}
903 ac_cv_env_host_alias_value=$host_alias
904 ac_env_target_alias_set=${target_alias+set}
905 ac_env_target_alias_value=$target_alias
906 ac_cv_env_target_alias_set=${target_alias+set}
907 ac_cv_env_target_alias_value=$target_alias
908 ac_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
909 ac_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
910 ac_cv_env_DOXYGEN_PAPER_SIZE_set=${DOXYGEN_PAPER_SIZE+set}
911 ac_cv_env_DOXYGEN_PAPER_SIZE_value=$DOXYGEN_PAPER_SIZE
912 ac_env_CC_set=${CC+set}
914 ac_cv_env_CC_set=${CC+set}
915 ac_cv_env_CC_value=$CC
916 ac_env_CFLAGS_set=${CFLAGS+set}
917 ac_env_CFLAGS_value=$CFLAGS
918 ac_cv_env_CFLAGS_set=${CFLAGS+set}
919 ac_cv_env_CFLAGS_value=$CFLAGS
920 ac_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_env_LDFLAGS_value=$LDFLAGS
922 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
923 ac_cv_env_LDFLAGS_value=$LDFLAGS
924 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_env_CPPFLAGS_value=$CPPFLAGS
926 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
927 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
928 ac_env_CXX_set=${CXX+set}
929 ac_env_CXX_value=$CXX
930 ac_cv_env_CXX_set=${CXX+set}
931 ac_cv_env_CXX_value=$CXX
932 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_env_CXXFLAGS_value=$CXXFLAGS
934 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
936 ac_env_CPP_set=${CPP+set}
937 ac_env_CPP_value=$CPP
938 ac_cv_env_CPP_set=${CPP+set}
939 ac_cv_env_CPP_value=$CPP
940 ac_env_CXXCPP_set=${CXXCPP+set}
941 ac_env_CXXCPP_value=$CXXCPP
942 ac_cv_env_CXXCPP_set=${CXXCPP+set}
943 ac_cv_env_CXXCPP_value=$CXXCPP
944 ac_env_F77_set=${F77+set}
945 ac_env_F77_value=$F77
946 ac_cv_env_F77_set=${F77+set}
947 ac_cv_env_F77_value=$F77
948 ac_env_FFLAGS_set=${FFLAGS+set}
949 ac_env_FFLAGS_value=$FFLAGS
950 ac_cv_env_FFLAGS_set=${FFLAGS+set}
951 ac_cv_env_FFLAGS_value=$FFLAGS
954 # Report the --help message.
956 if test "$ac_init_help" = "long"; then
957 # Omit some internal or obsolete options to make the list less imposing.
958 # This message is too long to be a string in the A/UX 3.1 sh.
960 \`configure' configures opensaml 2.1 to adapt to many kinds of systems.
962 Usage: $0 [OPTION]... [VAR=VALUE]...
964 To assign environment variables (e.g., CC, CFLAGS...), specify them as
965 VAR=VALUE. See below for descriptions of some of the useful variables.
967 Defaults for the options are specified in brackets.
970 -h, --help display this help and exit
971 --help=short display options specific to this package
972 --help=recursive display the short help of all the included packages
973 -V, --version display version information and exit
974 -q, --quiet, --silent do not print \`checking...' messages
975 --cache-file=FILE cache test results in FILE [disabled]
976 -C, --config-cache alias for \`--cache-file=config.cache'
977 -n, --no-create do not create output files
978 --srcdir=DIR find the sources in DIR [configure dir or \`..']
983 Installation directories:
984 --prefix=PREFIX install architecture-independent files in PREFIX
986 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
989 By default, \`make install' will install all the files in
990 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
991 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
992 for instance \`--prefix=\$HOME'.
994 For better control, use the options below.
996 Fine tuning of the installation directories:
997 --bindir=DIR user executables [EPREFIX/bin]
998 --sbindir=DIR system admin executables [EPREFIX/sbin]
999 --libexecdir=DIR program executables [EPREFIX/libexec]
1000 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1001 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1002 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1003 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1004 --libdir=DIR object code libraries [EPREFIX/lib]
1005 --includedir=DIR C header files [PREFIX/include]
1006 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1007 --infodir=DIR info documentation [PREFIX/info]
1008 --mandir=DIR man documentation [PREFIX/man]
1014 --program-prefix=PREFIX prepend PREFIX to installed program names
1015 --program-suffix=SUFFIX append SUFFIX to installed program names
1016 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1019 --build=BUILD configure for building on BUILD [guessed]
1020 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of opensaml 2.1:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --disable-doxygen-doc don't generate any doxygen documentation
1034 --disable-doxygen-dot don't generate graphics for doxygen documentation
1035 --enable-doxygen-man generate doxygen manual pages
1036 --enable-doxygen-rtf generate doxygen RTF documentation
1037 --enable-doxygen-xml generate doxygen XML documentation
1038 --enable-doxygen-chm generate doxygen compressed HTML help documentation
1039 --enable-doxygen-chi generate doxygen seperate compressed HTML help index
1041 --disable-doxygen-html don't generate doxygen plain HTML documentation
1042 --enable-doxygen-ps generate doxygen PostScript documentation
1043 --enable-doxygen-pdf generate doxygen PDF documentation
1044 --enable-debug Have GCC compile with symbols (Default = no)
1045 --disable-dependency-tracking speeds up one-time build
1046 --enable-dependency-tracking do not reject slow dependency extractors
1047 --enable-static[=PKGS]
1048 build static libraries [default=no]
1049 --enable-shared[=PKGS]
1050 build shared libraries [default=yes]
1051 --enable-fast-install[=PKGS]
1052 optimize for fast installation [default=yes]
1053 --disable-libtool-lock avoid locking (might break parallel builds)
1056 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1057 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1058 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1059 --with-pic try to use only PIC/non-PIC objects [default=use
1062 include additional configurations [automatic]
1063 --with-zlib=PATH where zlib is installed
1064 --with-openssl=PATH where openssl is installed
1065 --with-log4shib=PATH where log4shib-config is installed
1066 --with-log4cpp=PATH where log4cpp-config is installed
1067 --with-xerces=PATH where xerces-c is installed
1068 --with-xmlsec=PATH where xmlsec is installed
1069 --with-xmltooling=PATH where xmltooling is installed
1070 --with-cxxtest=PATH where cxxtest is installed
1072 Some influential environment variables:
1074 a4wide (default), a4, letter, legal or executive
1075 CC C compiler command
1076 CFLAGS C compiler flags
1077 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1078 nonstandard directory <lib dir>
1079 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1080 headers in a nonstandard directory <include dir>
1081 CXX C++ compiler command
1082 CXXFLAGS C++ compiler flags
1084 CXXCPP C++ preprocessor
1085 F77 Fortran 77 compiler command
1086 FFLAGS Fortran 77 compiler flags
1088 Use these variables to override the choices made by `configure' or to help
1089 it to find libraries and programs with nonstandard names/locations.
1091 Report bugs to <mace-opensaml-users@internet2.edu>.
1095 if test "$ac_init_help" = "recursive"; then
1096 # If there are subdirs, report their specific --help.
1098 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1099 test -d $ac_dir || continue
1102 if test "$ac_dir" != .; then
1103 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1104 # A "../" for each directory in $ac_dir_suffix.
1105 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1107 ac_dir_suffix= ac_top_builddir=
1111 .) # No --srcdir option. We are building in place.
1113 if test -z "$ac_top_builddir"; then
1116 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1118 [\\/]* | ?:[\\/]* ) # Absolute path.
1119 ac_srcdir=$srcdir$ac_dir_suffix;
1120 ac_top_srcdir=$srcdir ;;
1122 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1123 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1126 # Do not use `cd foo && pwd` to compute absolute paths, because
1127 # the directories may not exist.
1129 .) ac_abs_builddir="$ac_dir";;
1132 .) ac_abs_builddir=`pwd`;;
1133 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1134 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1137 case $ac_abs_builddir in
1138 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1140 case ${ac_top_builddir}. in
1141 .) ac_abs_top_builddir=$ac_abs_builddir;;
1142 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1143 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1146 case $ac_abs_builddir in
1147 .) ac_abs_srcdir=$ac_srcdir;;
1150 .) ac_abs_srcdir=$ac_abs_builddir;;
1151 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1152 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1155 case $ac_abs_builddir in
1156 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1158 case $ac_top_srcdir in
1159 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1160 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1161 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1166 # Check for guested configure; otherwise get Cygnus style configure.
1167 if test -f $ac_srcdir/configure.gnu; then
1169 $SHELL $ac_srcdir/configure.gnu --help=recursive
1170 elif test -f $ac_srcdir/configure; then
1172 $SHELL $ac_srcdir/configure --help=recursive
1173 elif test -f $ac_srcdir/configure.ac ||
1174 test -f $ac_srcdir/configure.in; then
1176 $ac_configure --help
1178 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1184 test -n "$ac_init_help" && exit 0
1185 if $ac_init_version; then
1187 opensaml configure 2.1
1188 generated by GNU Autoconf 2.59
1190 Copyright (C) 2003 Free Software Foundation, Inc.
1191 This configure script is free software; the Free Software Foundation
1192 gives unlimited permission to copy, distribute and modify it.
1198 This file contains any messages produced by compilers while
1199 running configure, to aid debugging if configure makes a mistake.
1201 It was created by opensaml $as_me 2.1, which was
1202 generated by GNU Autoconf 2.59. Invocation command line was
1213 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1214 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1215 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1216 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1217 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1219 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1220 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1222 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1223 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1224 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1225 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1226 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1227 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1228 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1236 test -z "$as_dir" && as_dir=.
1237 echo "PATH: $as_dir"
1252 # Keep a trace of the command line.
1253 # Strip out --no-create and --no-recursion so they do not pile up.
1254 # Strip out --silent because we don't want to record it for future runs.
1255 # Also quote any args containing shell meta-characters.
1256 # Make two passes to allow for proper duplicate-argument suppression.
1261 ac_must_keep_next=false
1267 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1269 | -silent | --silent | --silen | --sile | --sil)
1271 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1272 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1275 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1277 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1278 if test $ac_must_keep_next = true; then
1279 ac_must_keep_next=false # Got value, back to normal.
1282 *=* | --config-cache | -C | -disable-* | --disable-* \
1283 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1284 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1285 | -with-* | --with-* | -without-* | --without-* | --x)
1286 case "$ac_configure_args0 " in
1287 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1290 -* ) ac_must_keep_next=true ;;
1293 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1294 # Get rid of the leading space.
1300 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1301 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1303 # When interrupted or exit'd, cleanup temporary files, and complete
1304 # config.log. We remove comments because anyway the quotes in there
1305 # would cause problems or look ugly.
1306 # WARNING: Be sure not to use single quotes in there, as some shells,
1307 # such as our DU 5.0 friend, will then `close' the trap.
1308 trap 'exit_status=$?
1309 # Save into config.log some information that might help in debugging.
1314 ## ---------------- ##
1315 ## Cache variables. ##
1316 ## ---------------- ##
1319 # The following way of writing the cache mishandles newlines in values,
1322 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1325 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1326 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1330 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1337 ## ----------------- ##
1338 ## Output variables. ##
1339 ## ----------------- ##
1342 for ac_var in $ac_subst_vars
1344 eval ac_val=$`echo $ac_var`
1345 echo "$ac_var='"'"'$ac_val'"'"'"
1349 if test -n "$ac_subst_files"; then
1356 for ac_var in $ac_subst_files
1358 eval ac_val=$`echo $ac_var`
1359 echo "$ac_var='"'"'$ac_val'"'"'"
1364 if test -s confdefs.h; then
1371 sed "/^$/d" confdefs.h | sort
1374 test "$ac_signal" != 0 &&
1375 echo "$as_me: caught signal $ac_signal"
1376 echo "$as_me: exit $exit_status"
1378 rm -f core *.core &&
1379 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1382 for ac_signal in 1 2 13 15; do
1383 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1387 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1388 rm -rf conftest* confdefs.h
1389 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1392 # Predefined preprocessor variables.
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_NAME "$PACKAGE_NAME"
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1404 cat >>confdefs.h <<_ACEOF
1405 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_STRING "$PACKAGE_STRING"
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1419 # Let the site file select an alternate cache file if it wants to.
1420 # Prefer explicitly selected file to automatically selected ones.
1421 if test -z "$CONFIG_SITE"; then
1422 if test "x$prefix" != xNONE; then
1423 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1425 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1428 for ac_site_file in $CONFIG_SITE; do
1429 if test -r "$ac_site_file"; then
1430 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1431 echo "$as_me: loading site script $ac_site_file" >&6;}
1432 sed 's/^/| /' "$ac_site_file" >&5
1437 if test -r "$cache_file"; then
1438 # Some versions of bash will fail to source /dev/null (special
1439 # files actually), so we avoid doing that.
1440 if test -f "$cache_file"; then
1441 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1442 echo "$as_me: loading cache $cache_file" >&6;}
1444 [\\/]* | ?:[\\/]* ) . $cache_file;;
1445 *) . ./$cache_file;;
1449 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1450 echo "$as_me: creating cache $cache_file" >&6;}
1454 # Check that the precious variables saved in the cache have kept the same
1456 ac_cache_corrupted=false
1457 for ac_var in `(set) 2>&1 |
1458 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1459 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1460 eval ac_new_set=\$ac_env_${ac_var}_set
1461 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1462 eval ac_new_val="\$ac_env_${ac_var}_value"
1463 case $ac_old_set,$ac_new_set in
1465 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1466 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1467 ac_cache_corrupted=: ;;
1469 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1470 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1471 ac_cache_corrupted=: ;;
1474 if test "x$ac_old_val" != "x$ac_new_val"; then
1475 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1476 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1477 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1478 echo "$as_me: former value: $ac_old_val" >&2;}
1479 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1480 echo "$as_me: current value: $ac_new_val" >&2;}
1481 ac_cache_corrupted=:
1484 # Pass precious variables to config.status.
1485 if test "$ac_new_set" = set; then
1487 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1488 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1489 *) ac_arg=$ac_var=$ac_new_val ;;
1491 case " $ac_configure_args " in
1492 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1493 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1497 if $ac_cache_corrupted; then
1498 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1499 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1500 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1501 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1502 { (exit 1); exit 1; }; }
1506 ac_cpp='$CPP $CPPFLAGS'
1507 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1508 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1509 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1537 ac_config_headers="$ac_config_headers config.h"
1539 am__api_version="1.9"
1541 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1542 if test -f $ac_dir/install-sh; then
1544 ac_install_sh="$ac_aux_dir/install-sh -c"
1546 elif test -f $ac_dir/install.sh; then
1548 ac_install_sh="$ac_aux_dir/install.sh -c"
1550 elif test -f $ac_dir/shtool; then
1552 ac_install_sh="$ac_aux_dir/shtool install -c"
1556 if test -z "$ac_aux_dir"; then
1557 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1558 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1559 { (exit 1); exit 1; }; }
1561 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1562 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1563 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1565 # Find a good install program. We prefer a C program (faster),
1566 # so one script is as good as another. But avoid the broken or
1567 # incompatible versions:
1568 # SysV /etc/install, /usr/sbin/install
1569 # SunOS /usr/etc/install
1570 # IRIX /sbin/install
1572 # AmigaOS /C/install, which installs bootblocks on floppy discs
1573 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1574 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1575 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1576 # OS/2's system install, which has a completely different semantic
1577 # ./install, which can be erroneously created by make from ./install.sh.
1578 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1579 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1580 if test -z "$INSTALL"; then
1581 if test "${ac_cv_path_install+set}" = set; then
1582 echo $ECHO_N "(cached) $ECHO_C" >&6
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 # Account for people who put trailing slashes in PATH elements.
1591 ./ | .// | /cC/* | \
1592 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1593 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1596 # OSF1 and SCO ODT 3.0 have their own names for install.
1597 # Don't use installbsd from OSF since it installs stuff as root
1599 for ac_prog in ginstall scoinst install; do
1600 for ac_exec_ext in '' $ac_executable_extensions; do
1601 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1602 if test $ac_prog = install &&
1603 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1604 # AIX install. It has an incompatible calling convention.
1606 elif test $ac_prog = install &&
1607 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1608 # program-specific install script used by HP pwplus--don't use.
1611 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1623 if test "${ac_cv_path_install+set}" = set; then
1624 INSTALL=$ac_cv_path_install
1626 # As a last resort, use the slow shell script. We don't cache a
1627 # path for INSTALL within a source directory, because that will
1628 # break other packages using the cache if that directory is
1629 # removed, or if the path is relative.
1630 INSTALL=$ac_install_sh
1633 echo "$as_me:$LINENO: result: $INSTALL" >&5
1634 echo "${ECHO_T}$INSTALL" >&6
1636 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1637 # It thinks the first close brace ends the variable substitution.
1638 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1640 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1642 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1644 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1645 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1648 echo timestamp > conftest.file
1649 # Do `set' in a subshell so we don't clobber the current shell's
1650 # arguments. Must try -L first in case configure is actually a
1651 # symlink; some systems play weird games with the mod time of symlinks
1652 # (eg FreeBSD returns the mod time of the symlink's containing
1655 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1656 if test "$*" = "X"; then
1658 set X `ls -t $srcdir/configure conftest.file`
1661 if test "$*" != "X $srcdir/configure conftest.file" \
1662 && test "$*" != "X conftest.file $srcdir/configure"; then
1664 # If neither matched, then we have a broken ls. This can happen
1665 # if, for instance, CONFIG_SHELL is bash and it inherits a
1666 # broken ls alias from the environment. This has actually
1667 # happened. Such a system could not be considered "sane".
1668 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1669 alias in your environment" >&5
1670 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1671 alias in your environment" >&2;}
1672 { (exit 1); exit 1; }; }
1675 test "$2" = conftest.file
1681 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1682 Check your system clock" >&5
1683 echo "$as_me: error: newly created file is older than distributed files!
1684 Check your system clock" >&2;}
1685 { (exit 1); exit 1; }; }
1687 echo "$as_me:$LINENO: result: yes" >&5
1688 echo "${ECHO_T}yes" >&6
1689 test "$program_prefix" != NONE &&
1690 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1691 # Use a double $ so make ignores it.
1692 test "$program_suffix" != NONE &&
1693 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1694 # Double any \ or $. echo might interpret backslashes.
1695 # By default was `s,x,x', remove it if useless.
1696 cat <<\_ACEOF >conftest.sed
1697 s/[\\$]/&&/g;s/;s,x,x,$//
1699 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1702 # expand $ac_aux_dir to an absolute path
1703 am_aux_dir=`cd $ac_aux_dir && pwd`
1705 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1706 # Use eval to expand $SHELL
1707 if eval "$MISSING --run true"; then
1708 am_missing_run="$MISSING --run "
1711 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1712 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1715 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1716 # We used to keeping the `.' as first argument, in order to
1717 # allow $(mkdir_p) to be used without argument. As in
1718 # $(mkdir_p) $(somedir)
1719 # where $(somedir) is conditionally defined. However this is wrong
1721 # 1. if the package is installed by a user who cannot write `.'
1722 # make install will fail,
1723 # 2. the above comment should most certainly read
1724 # $(mkdir_p) $(DESTDIR)$(somedir)
1725 # so it does not work when $(somedir) is undefined and
1726 # $(DESTDIR) is not.
1727 # To support the latter case, we have to write
1728 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1729 # so the `.' trick is pointless.
1730 mkdir_p='mkdir -p --'
1732 # On NextStep and OpenStep, the `mkdir' command does not
1733 # recognize any option. It will interpret all options as
1734 # directories to create, and then abort because `.' already
1736 for d in ./-p ./--version;
1738 test -d $d && rmdir $d
1740 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1741 if test -f "$ac_aux_dir/mkinstalldirs"; then
1742 mkdir_p='$(mkinstalldirs)'
1744 mkdir_p='$(install_sh) -d'
1748 for ac_prog in gawk mawk nawk awk
1750 # Extract the first word of "$ac_prog", so it can be a program name with args.
1751 set dummy $ac_prog; ac_word=$2
1752 echo "$as_me:$LINENO: checking for $ac_word" >&5
1753 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1754 if test "${ac_cv_prog_AWK+set}" = set; then
1755 echo $ECHO_N "(cached) $ECHO_C" >&6
1757 if test -n "$AWK"; then
1758 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1764 test -z "$as_dir" && as_dir=.
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1767 ac_cv_prog_AWK="$ac_prog"
1768 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1777 if test -n "$AWK"; then
1778 echo "$as_me:$LINENO: result: $AWK" >&5
1779 echo "${ECHO_T}$AWK" >&6
1781 echo "$as_me:$LINENO: result: no" >&5
1782 echo "${ECHO_T}no" >&6
1785 test -n "$AWK" && break
1788 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1789 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1790 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1791 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1792 echo $ECHO_N "(cached) $ECHO_C" >&6
1794 cat >conftest.make <<\_ACEOF
1796 @echo 'ac_maketemp="$(MAKE)"'
1798 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1799 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1800 if test -n "$ac_maketemp"; then
1801 eval ac_cv_prog_make_${ac_make}_set=yes
1803 eval ac_cv_prog_make_${ac_make}_set=no
1807 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1808 echo "$as_me:$LINENO: result: yes" >&5
1809 echo "${ECHO_T}yes" >&6
1812 echo "$as_me:$LINENO: result: no" >&5
1813 echo "${ECHO_T}no" >&6
1814 SET_MAKE="MAKE=${MAKE-make}"
1817 rm -rf .tst 2>/dev/null
1818 mkdir .tst 2>/dev/null
1819 if test -d .tst; then
1824 rmdir .tst 2>/dev/null
1826 # test to see if srcdir already configured
1827 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1828 test -f $srcdir/config.status; then
1829 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1830 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1831 { (exit 1); exit 1; }; }
1834 # test whether we have cygpath
1835 if test -z "$CYGPATH_W"; then
1836 if (cygpath --version) >/dev/null 2>/dev/null; then
1837 CYGPATH_W='cygpath -w'
1844 # Define the identity of the package.
1849 cat >>confdefs.h <<_ACEOF
1850 #define PACKAGE "$PACKAGE"
1854 cat >>confdefs.h <<_ACEOF
1855 #define VERSION "$VERSION"
1858 # Some tools Automake needs.
1860 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1863 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1866 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1869 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1872 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1874 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1876 # Installed binaries are usually stripped using `strip' when the user
1877 # run `make install-strip'. However `strip' might not be the right
1878 # tool to use in cross-compilation environments, therefore Automake
1879 # will honor the `STRIP' environment variable to overrule this program.
1880 if test "$cross_compiling" != no; then
1881 if test -n "$ac_tool_prefix"; then
1882 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1883 set dummy ${ac_tool_prefix}strip; ac_word=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_STRIP+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$STRIP"; then
1890 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir=.
1897 for ac_exec_ext in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1908 STRIP=$ac_cv_prog_STRIP
1909 if test -n "$STRIP"; then
1910 echo "$as_me:$LINENO: result: $STRIP" >&5
1911 echo "${ECHO_T}$STRIP" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1918 if test -z "$ac_cv_prog_STRIP"; then
1920 # Extract the first word of "strip", so it can be a program name with args.
1921 set dummy strip; ac_word=$2
1922 echo "$as_me:$LINENO: checking for $ac_word" >&5
1923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1924 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1925 echo $ECHO_N "(cached) $ECHO_C" >&6
1927 if test -n "$ac_ct_STRIP"; then
1928 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1934 test -z "$as_dir" && as_dir=.
1935 for ac_exec_ext in '' $ac_executable_extensions; do
1936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1937 ac_cv_prog_ac_ct_STRIP="strip"
1938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1944 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1947 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1948 if test -n "$ac_ct_STRIP"; then
1949 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1950 echo "${ECHO_T}$ac_ct_STRIP" >&6
1952 echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1958 STRIP="$ac_cv_prog_STRIP"
1962 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1964 # We need awk for the "check" target. The system "awk" is bad on
1966 # Always define AMTAR for backward compatibility.
1968 AMTAR=${AMTAR-"${am_missing_run}tar"}
1970 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1977 # This file is part of Autoconf. -*- Autoconf -*-
1979 # Copyright (C) 2004 Oren Ben-Kiki
1980 # This file is distributed under the same terms as the Autoconf macro files.
1982 # Generate automatic documentation using Doxygen. Works in concert with the
1983 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1984 # following public macros:
1986 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
1987 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
1988 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
1989 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
1990 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
1991 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
1994 # By default, HTML, PDF and PS documentation is generated as this seems to be
1995 # the most popular and portable combination. MAN pages created by Doxygen are
1996 # usually problematic, though by picking an appropriate subset and doing some
1997 # massaging they might be better than nothing. CHM and RTF are specific for MS
1998 # (note that you can't generate both HTML and CHM at the same time). The XML is
1999 # rather useless unless you apply specialized post-processing to it.
2001 # The macro mainly controls the default state of the feature. The use can
2002 # override the default by specifying --enable or --disable. The macros ensure
2003 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2004 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2005 # Finally, each feature will be automatically disabled (with a warning) if the
2006 # required programs are missing.
2008 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2009 # the following parameters: a one-word name for the project for use as a
2010 # filename base etc., an optional configuration file name (the default is
2011 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2012 # name (the default is 'doxygen-doc').
2030 ## --------------- ##
2031 ## Private macros. ##
2032 ## --------------- ##
2034 # DX_ENV_APPEND(VARIABLE, VALUE)
2035 # ------------------------------
2036 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2041 # Expand into a shell expression prints the directory part of a path.
2044 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2045 # -------------------------------------
2046 # Expands according to the M4 (static) status of the feature.
2049 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2050 # ----------------------------------
2051 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2054 # DX_TEST_FEATURE(FEATURE)
2055 # ------------------------
2056 # Expand to a shell expression testing whether the feature is active.
2059 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2060 # -------------------------------------------------
2061 # Verify that a required features has the right state before trying to turn on
2062 # the DX_CURRENT_FEATURE.
2065 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2066 # ----------------------------------------------------------
2067 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2070 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2071 # CHECK_DEPEND, CLEAR_DEPEND,
2072 # REQUIRE, DO-IF-ON, DO-IF-OFF)
2073 # --------------------------------------------
2074 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2075 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2076 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2077 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2078 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2079 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2082 ## -------------- ##
2083 ## Public macros. ##
2084 ## -------------- ##
2086 # DX_XXX_FEATURE(DEFAULT_STATE)
2087 # -----------------------------
2099 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2100 # ---------------------------------------------------------
2101 # PROJECT also serves as the base name for the documentation files.
2102 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2105 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2109 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2113 # This macro figures out how to build C programs using POSIX threads.
2114 # It sets the PTHREAD_LIBS output variable to the threads library and
2115 # linker flags, and the PTHREAD_CFLAGS output variable to any special
2116 # C compiler flags that are needed. (The user can also force certain
2117 # compiler flags/libs to be tested by setting these environment
2120 # Also sets PTHREAD_CC to any special C compiler that is needed for
2121 # multi-threaded programs (defaults to the value of CC otherwise).
2122 # (This is necessary on AIX to use the special cc_r compiler alias.)
2124 # NOTE: You are assumed to not only compile your program with these
2125 # flags, but also link it with them as well. e.g. you should link
2126 # with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2129 # If you are only building threads programs, you may wish to use
2130 # these variables in your default LIBS, CFLAGS, and CC:
2132 # LIBS="$PTHREAD_LIBS $LIBS"
2133 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2136 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2137 # constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2138 # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2140 # ACTION-IF-FOUND is a list of shell commands to run if a threads
2141 # library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2142 # run it if it is not found. If ACTION-IF-FOUND is not specified, the
2143 # default action will define HAVE_PTHREAD.
2145 # Please let the authors know if this macro fails on any platform, or
2146 # if you have any other suggestions or comments. This macro was based
2147 # on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2148 # (with help from M. Frigo), as well as ac_pthread and hb_pthread
2149 # macros posted by Alejandro Forero Cuervo to the autoconf macro
2150 # repository. We are also grateful for the helpful feedback of
2159 # Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2161 # This program is free software; you can redistribute it and/or
2162 # modify it under the terms of the GNU General Public License as
2163 # published by the Free Software Foundation; either version 2 of the
2164 # License, or (at your option) any later version.
2166 # This program is distributed in the hope that it will be useful, but
2167 # WITHOUT ANY WARRANTY; without even the implied warranty of
2168 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2169 # General Public License for more details.
2171 # You should have received a copy of the GNU General Public License
2172 # along with this program; if not, write to the Free Software
2173 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2176 # As a special exception, the respective Autoconf Macro's copyright
2177 # owner gives unlimited permission to copy, distribute and modify the
2178 # configure scripts that are the output of Autoconf when processing
2179 # the Macro. You need not follow the terms of the GNU General Public
2180 # License when using or distributing such scripts, even though
2181 # portions of the text of the Macro appear in them. The GNU General
2182 # Public License (GPL) does govern all other use of the material that
2183 # constitutes the Autoconf Macro.
2185 # This special exception to the GPL applies to versions of the
2186 # Autoconf Macro released by the Autoconf Macro Archive. When you
2187 # make and distribute a modified version of the Autoconf Macro, you
2188 # may extend this special exception to the GPL to apply to your
2189 # modified version as well.
2207 DX_CONFIG=doxygen.cfg
2212 # Environment variables used inside doxygen.cfg:
2213 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2215 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2217 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2219 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2226 # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2227 if test "${enable_doxygen_doc+set}" = set; then
2228 enableval="$enable_doxygen_doc"
2230 case "$enableval" in
2242 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2243 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2244 { (exit 1); exit 1; }; }
2255 if test "$DX_FLAG_doc" = 1; then
2257 if test -n "$ac_tool_prefix"; then
2258 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2259 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2260 echo "$as_me:$LINENO: checking for $ac_word" >&5
2261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2262 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2263 echo $ECHO_N "(cached) $ECHO_C" >&6
2267 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2274 test -z "$as_dir" && as_dir=.
2275 for ac_exec_ext in '' $ac_executable_extensions; do
2276 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2277 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2287 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2289 if test -n "$DX_DOXYGEN"; then
2290 echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2291 echo "${ECHO_T}$DX_DOXYGEN" >&6
2293 echo "$as_me:$LINENO: result: no" >&5
2294 echo "${ECHO_T}no" >&6
2298 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2299 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2300 # Extract the first word of "doxygen", so it can be a program name with args.
2301 set dummy doxygen; ac_word=$2
2302 echo "$as_me:$LINENO: checking for $ac_word" >&5
2303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2304 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2305 echo $ECHO_N "(cached) $ECHO_C" >&6
2307 case $ac_pt_DX_DOXYGEN in
2309 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2319 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2329 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2331 if test -n "$ac_pt_DX_DOXYGEN"; then
2332 echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2333 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2335 echo "$as_me:$LINENO: result: no" >&5
2336 echo "${ECHO_T}no" >&6
2339 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2341 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2344 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2345 { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2346 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2352 if test -n "$ac_tool_prefix"; then
2353 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2354 set dummy ${ac_tool_prefix}perl; ac_word=$2
2355 echo "$as_me:$LINENO: checking for $ac_word" >&5
2356 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2357 if test "${ac_cv_path_DX_PERL+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2362 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2369 test -z "$as_dir" && as_dir=.
2370 for ac_exec_ext in '' $ac_executable_extensions; do
2371 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2372 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2382 DX_PERL=$ac_cv_path_DX_PERL
2384 if test -n "$DX_PERL"; then
2385 echo "$as_me:$LINENO: result: $DX_PERL" >&5
2386 echo "${ECHO_T}$DX_PERL" >&6
2388 echo "$as_me:$LINENO: result: no" >&5
2389 echo "${ECHO_T}no" >&6
2393 if test -z "$ac_cv_path_DX_PERL"; then
2394 ac_pt_DX_PERL=$DX_PERL
2395 # Extract the first word of "perl", so it can be a program name with args.
2396 set dummy perl; ac_word=$2
2397 echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2399 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 case $ac_pt_DX_PERL in
2404 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2414 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2426 if test -n "$ac_pt_DX_PERL"; then
2427 echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2428 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2430 echo "$as_me:$LINENO: result: no" >&5
2431 echo "${ECHO_T}no" >&6
2434 DX_PERL=$ac_pt_DX_PERL
2436 DX_PERL="$ac_cv_path_DX_PERL"
2439 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2440 { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2441 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2448 if test "$DX_FLAG_doc" = 1; then
2453 DX_COND_doc_FALSE='#'
2455 DX_COND_doc_TRUE='#'
2459 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2467 DX_COND_doc_FALSE='#'
2469 DX_COND_doc_TRUE='#'
2482 # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2483 if test "${enable_doxygen_dot+set}" = set; then
2484 enableval="$enable_doxygen_dot"
2486 case "$enableval" in
2492 test "$DX_FLAG_doc" = "1" \
2493 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2494 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2495 { (exit 1); exit 1; }; }
2503 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2504 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2505 { (exit 1); exit 1; }; }
2514 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2519 if test "$DX_FLAG_dot" = 1; then
2521 if test -n "$ac_tool_prefix"; then
2522 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2523 set dummy ${ac_tool_prefix}dot; ac_word=$2
2524 echo "$as_me:$LINENO: checking for $ac_word" >&5
2525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2526 if test "${ac_cv_path_DX_DOT+set}" = set; then
2527 echo $ECHO_N "(cached) $ECHO_C" >&6
2531 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2538 test -z "$as_dir" && as_dir=.
2539 for ac_exec_ext in '' $ac_executable_extensions; do
2540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2541 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 DX_DOT=$ac_cv_path_DX_DOT
2553 if test -n "$DX_DOT"; then
2554 echo "$as_me:$LINENO: result: $DX_DOT" >&5
2555 echo "${ECHO_T}$DX_DOT" >&6
2557 echo "$as_me:$LINENO: result: no" >&5
2558 echo "${ECHO_T}no" >&6
2562 if test -z "$ac_cv_path_DX_DOT"; then
2563 ac_pt_DX_DOT=$DX_DOT
2564 # Extract the first word of "dot", so it can be a program name with args.
2565 set dummy dot; ac_word=$2
2566 echo "$as_me:$LINENO: checking for $ac_word" >&5
2567 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2568 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2569 echo $ECHO_N "(cached) $ECHO_C" >&6
2571 case $ac_pt_DX_DOT in
2573 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir=.
2581 for ac_exec_ext in '' $ac_executable_extensions; do
2582 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2583 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2584 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2595 if test -n "$ac_pt_DX_DOT"; then
2596 echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2597 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2599 echo "$as_me:$LINENO: result: no" >&5
2600 echo "${ECHO_T}no" >&6
2603 DX_DOT=$ac_pt_DX_DOT
2605 DX_DOT="$ac_cv_path_DX_DOT"
2608 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2609 { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2610 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2617 if test "$DX_FLAG_dot" = 1; then
2622 DX_COND_dot_FALSE='#'
2624 DX_COND_dot_TRUE='#'
2628 DX_ENV="$DX_ENV HAVE_DOT='YES'"
2630 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2638 DX_COND_dot_FALSE='#'
2640 DX_COND_dot_TRUE='#'
2644 DX_ENV="$DX_ENV HAVE_DOT='NO'"
2650 # Man pages generation:
2654 # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2655 if test "${enable_doxygen_man+set}" = set; then
2656 enableval="$enable_doxygen_man"
2658 case "$enableval" in
2664 test "$DX_FLAG_doc" = "1" \
2665 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2666 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2667 { (exit 1); exit 1; }; }
2675 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2676 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2677 { (exit 1); exit 1; }; }
2686 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2691 if test "$DX_FLAG_man" = 1; then
2695 if test "$DX_FLAG_man" = 1; then
2700 DX_COND_man_FALSE='#'
2702 DX_COND_man_TRUE='#'
2706 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2714 DX_COND_man_FALSE='#'
2716 DX_COND_man_TRUE='#'
2720 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2726 # RTF file generation:
2730 # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2731 if test "${enable_doxygen_rtf+set}" = set; then
2732 enableval="$enable_doxygen_rtf"
2734 case "$enableval" in
2740 test "$DX_FLAG_doc" = "1" \
2741 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2742 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2743 { (exit 1); exit 1; }; }
2751 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2752 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2753 { (exit 1); exit 1; }; }
2762 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2767 if test "$DX_FLAG_rtf" = 1; then
2771 if test "$DX_FLAG_rtf" = 1; then
2776 DX_COND_rtf_FALSE='#'
2778 DX_COND_rtf_TRUE='#'
2782 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2790 DX_COND_rtf_FALSE='#'
2792 DX_COND_rtf_TRUE='#'
2796 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2802 # XML file generation:
2806 # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2807 if test "${enable_doxygen_xml+set}" = set; then
2808 enableval="$enable_doxygen_xml"
2810 case "$enableval" in
2816 test "$DX_FLAG_doc" = "1" \
2817 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2818 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2819 { (exit 1); exit 1; }; }
2827 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2828 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2829 { (exit 1); exit 1; }; }
2838 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2843 if test "$DX_FLAG_xml" = 1; then
2847 if test "$DX_FLAG_xml" = 1; then
2852 DX_COND_xml_FALSE='#'
2854 DX_COND_xml_TRUE='#'
2858 DX_ENV="$DX_ENV GENERATE_XML='YES'"
2866 DX_COND_xml_FALSE='#'
2868 DX_COND_xml_TRUE='#'
2872 DX_ENV="$DX_ENV GENERATE_XML='NO'"
2878 # (Compressed) HTML help generation:
2882 # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2883 if test "${enable_doxygen_chm+set}" = set; then
2884 enableval="$enable_doxygen_chm"
2886 case "$enableval" in
2892 test "$DX_FLAG_doc" = "1" \
2893 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2894 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2895 { (exit 1); exit 1; }; }
2903 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2904 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2905 { (exit 1); exit 1; }; }
2914 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2919 if test "$DX_FLAG_chm" = 1; then
2921 if test -n "$ac_tool_prefix"; then
2922 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2923 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2924 echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2926 if test "${ac_cv_path_DX_HHC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2931 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938 test -z "$as_dir" && as_dir=.
2939 for ac_exec_ext in '' $ac_executable_extensions; do
2940 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2941 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2942 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2951 DX_HHC=$ac_cv_path_DX_HHC
2953 if test -n "$DX_HHC"; then
2954 echo "$as_me:$LINENO: result: $DX_HHC" >&5
2955 echo "${ECHO_T}$DX_HHC" >&6
2957 echo "$as_me:$LINENO: result: no" >&5
2958 echo "${ECHO_T}no" >&6
2962 if test -z "$ac_cv_path_DX_HHC"; then
2963 ac_pt_DX_HHC=$DX_HHC
2964 # Extract the first word of "hhc", so it can be a program name with args.
2965 set dummy hhc; ac_word=$2
2966 echo "$as_me:$LINENO: checking for $ac_word" >&5
2967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2968 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2969 echo $ECHO_N "(cached) $ECHO_C" >&6
2971 case $ac_pt_DX_HHC in
2973 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2980 test -z "$as_dir" && as_dir=.
2981 for ac_exec_ext in '' $ac_executable_extensions; do
2982 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2983 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2993 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
2995 if test -n "$ac_pt_DX_HHC"; then
2996 echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
2997 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
2999 echo "$as_me:$LINENO: result: no" >&5
3000 echo "${ECHO_T}no" >&6
3003 DX_HHC=$ac_pt_DX_HHC
3005 DX_HHC="$ac_cv_path_DX_HHC"
3008 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3009 { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3010 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3017 if test "$DX_FLAG_chm" = 1; then
3022 DX_COND_chm_FALSE='#'
3024 DX_COND_chm_TRUE='#'
3028 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3030 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3032 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3040 DX_COND_chm_FALSE='#'
3042 DX_COND_chm_TRUE='#'
3046 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3052 # Seperate CHI file generation.
3056 # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3057 if test "${enable_doxygen_chi+set}" = set; then
3058 enableval="$enable_doxygen_chi"
3060 case "$enableval" in
3066 test "$DX_FLAG_chm" = "1" \
3067 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3068 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3069 { (exit 1); exit 1; }; }
3077 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3078 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3079 { (exit 1); exit 1; }; }
3088 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3093 if test "$DX_FLAG_chi" = 1; then
3097 if test "$DX_FLAG_chi" = 1; then
3102 DX_COND_chi_FALSE='#'
3104 DX_COND_chi_TRUE='#'
3108 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3116 DX_COND_chi_FALSE='#'
3118 DX_COND_chi_TRUE='#'
3122 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3128 # Plain HTML pages generation:
3132 # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3133 if test "${enable_doxygen_html+set}" = set; then
3134 enableval="$enable_doxygen_html"
3136 case "$enableval" in
3142 test "$DX_FLAG_doc" = "1" \
3143 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3144 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3145 { (exit 1); exit 1; }; }
3147 test "$DX_FLAG_chm" = "0" \
3148 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3149 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3150 { (exit 1); exit 1; }; }
3158 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3159 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3160 { (exit 1); exit 1; }; }
3169 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3172 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3177 if test "$DX_FLAG_html" = 1; then
3181 if test "$DX_FLAG_html" = 1; then
3186 DX_COND_html_FALSE='#'
3188 DX_COND_html_TRUE='#'
3192 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3200 DX_COND_html_FALSE='#'
3202 DX_COND_html_TRUE='#'
3206 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3212 # PostScript file generation:
3216 # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3217 if test "${enable_doxygen_ps+set}" = set; then
3218 enableval="$enable_doxygen_ps"
3220 case "$enableval" in
3226 test "$DX_FLAG_doc" = "1" \
3227 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3228 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3229 { (exit 1); exit 1; }; }
3237 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3238 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3239 { (exit 1); exit 1; }; }
3248 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3253 if test "$DX_FLAG_ps" = 1; then
3255 if test -n "$ac_tool_prefix"; then
3256 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3257 set dummy ${ac_tool_prefix}latex; ac_word=$2
3258 echo "$as_me:$LINENO: checking for $ac_word" >&5
3259 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3260 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3261 echo $ECHO_N "(cached) $ECHO_C" >&6
3265 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3272 test -z "$as_dir" && as_dir=.
3273 for ac_exec_ext in '' $ac_executable_extensions; do
3274 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3275 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3276 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 DX_LATEX=$ac_cv_path_DX_LATEX
3287 if test -n "$DX_LATEX"; then
3288 echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3289 echo "${ECHO_T}$DX_LATEX" >&6
3291 echo "$as_me:$LINENO: result: no" >&5
3292 echo "${ECHO_T}no" >&6
3296 if test -z "$ac_cv_path_DX_LATEX"; then
3297 ac_pt_DX_LATEX=$DX_LATEX
3298 # Extract the first word of "latex", so it can be a program name with args.
3299 set dummy latex; ac_word=$2
3300 echo "$as_me:$LINENO: checking for $ac_word" >&5
3301 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3302 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3303 echo $ECHO_N "(cached) $ECHO_C" >&6
3305 case $ac_pt_DX_LATEX in
3307 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3314 test -z "$as_dir" && as_dir=.
3315 for ac_exec_ext in '' $ac_executable_extensions; do
3316 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3317 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3318 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3327 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3329 if test -n "$ac_pt_DX_LATEX"; then
3330 echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3331 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3333 echo "$as_me:$LINENO: result: no" >&5
3334 echo "${ECHO_T}no" >&6
3337 DX_LATEX=$ac_pt_DX_LATEX
3339 DX_LATEX="$ac_cv_path_DX_LATEX"
3342 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3343 { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3344 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3350 if test -n "$ac_tool_prefix"; then
3351 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3352 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3358 case $DX_MAKEINDEX in
3360 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 test -z "$as_dir" && as_dir=.
3368 for ac_exec_ext in '' $ac_executable_extensions; do
3369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3370 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3371 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3382 if test -n "$DX_MAKEINDEX"; then
3383 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3384 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3386 echo "$as_me:$LINENO: result: no" >&5
3387 echo "${ECHO_T}no" >&6
3391 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3392 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3393 # Extract the first word of "makeindex", so it can be a program name with args.
3394 set dummy makeindex; ac_word=$2
3395 echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3397 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 case $ac_pt_DX_MAKEINDEX in
3402 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3422 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3424 if test -n "$ac_pt_DX_MAKEINDEX"; then
3425 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3426 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3428 echo "$as_me:$LINENO: result: no" >&5
3429 echo "${ECHO_T}no" >&6
3432 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3434 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3437 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3438 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3439 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3445 if test -n "$ac_tool_prefix"; then
3446 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3447 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3448 echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3450 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3475 DX_DVIPS=$ac_cv_path_DX_DVIPS
3477 if test -n "$DX_DVIPS"; then
3478 echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3479 echo "${ECHO_T}$DX_DVIPS" >&6
3481 echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6
3486 if test -z "$ac_cv_path_DX_DVIPS"; then
3487 ac_pt_DX_DVIPS=$DX_DVIPS
3488 # Extract the first word of "dvips", so it can be a program name with args.
3489 set dummy dvips; ac_word=$2
3490 echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3492 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3495 case $ac_pt_DX_DVIPS in
3497 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3507 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3517 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3519 if test -n "$ac_pt_DX_DVIPS"; then
3520 echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3521 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3523 echo "$as_me:$LINENO: result: no" >&5
3524 echo "${ECHO_T}no" >&6
3527 DX_DVIPS=$ac_pt_DX_DVIPS
3529 DX_DVIPS="$ac_cv_path_DX_DVIPS"
3532 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3533 { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3534 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3542 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3543 echo "$as_me:$LINENO: checking for $ac_word" >&5
3544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3545 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3546 echo $ECHO_N "(cached) $ECHO_C" >&6
3550 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 DX_EGREP=$ac_cv_path_DX_EGREP
3572 if test -n "$DX_EGREP"; then
3573 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3574 echo "${ECHO_T}$DX_EGREP" >&6
3576 echo "$as_me:$LINENO: result: no" >&5
3577 echo "${ECHO_T}no" >&6
3581 if test -z "$ac_cv_path_DX_EGREP"; then
3582 ac_pt_DX_EGREP=$DX_EGREP
3583 # Extract the first word of "egrep", so it can be a program name with args.
3584 set dummy egrep; ac_word=$2
3585 echo "$as_me:$LINENO: checking for $ac_word" >&5
3586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3587 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3588 echo $ECHO_N "(cached) $ECHO_C" >&6
3590 case $ac_pt_DX_EGREP in
3592 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3603 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3612 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3614 if test -n "$ac_pt_DX_EGREP"; then
3615 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3616 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3618 echo "$as_me:$LINENO: result: no" >&5
3619 echo "${ECHO_T}no" >&6
3622 DX_EGREP=$ac_pt_DX_EGREP
3624 DX_EGREP="$ac_cv_path_DX_EGREP"
3627 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3628 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3629 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3636 if test "$DX_FLAG_ps" = 1; then
3641 DX_COND_ps_FALSE='#'
3654 DX_COND_ps_FALSE='#'
3665 # PDF file generation:
3669 # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3670 if test "${enable_doxygen_pdf+set}" = set; then
3671 enableval="$enable_doxygen_pdf"
3673 case "$enableval" in
3679 test "$DX_FLAG_doc" = "1" \
3680 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3681 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3682 { (exit 1); exit 1; }; }
3690 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3691 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3692 { (exit 1); exit 1; }; }
3701 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3706 if test "$DX_FLAG_pdf" = 1; then
3708 if test -n "$ac_tool_prefix"; then
3709 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3710 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3711 echo "$as_me:$LINENO: checking for $ac_word" >&5
3712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3713 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3716 case $DX_PDFLATEX in
3718 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3738 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3740 if test -n "$DX_PDFLATEX"; then
3741 echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3742 echo "${ECHO_T}$DX_PDFLATEX" >&6
3744 echo "$as_me:$LINENO: result: no" >&5
3745 echo "${ECHO_T}no" >&6
3749 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3750 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3751 # Extract the first word of "pdflatex", so it can be a program name with args.
3752 set dummy pdflatex; ac_word=$2
3753 echo "$as_me:$LINENO: checking for $ac_word" >&5
3754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3755 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3756 echo $ECHO_N "(cached) $ECHO_C" >&6
3758 case $ac_pt_DX_PDFLATEX in
3760 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767 test -z "$as_dir" && as_dir=.
3768 for ac_exec_ext in '' $ac_executable_extensions; do
3769 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3770 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3782 if test -n "$ac_pt_DX_PDFLATEX"; then
3783 echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3784 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3786 echo "$as_me:$LINENO: result: no" >&5
3787 echo "${ECHO_T}no" >&6
3790 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3792 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3795 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3796 { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3797 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3803 if test -n "$ac_tool_prefix"; then
3804 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3805 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3806 echo "$as_me:$LINENO: checking for $ac_word" >&5
3807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3808 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3809 echo $ECHO_N "(cached) $ECHO_C" >&6
3811 case $DX_MAKEINDEX in
3813 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 test -z "$as_dir" && as_dir=.
3821 for ac_exec_ext in '' $ac_executable_extensions; do
3822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3823 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3833 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3835 if test -n "$DX_MAKEINDEX"; then
3836 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3837 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3839 echo "$as_me:$LINENO: result: no" >&5
3840 echo "${ECHO_T}no" >&6
3844 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3845 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3846 # Extract the first word of "makeindex", so it can be a program name with args.
3847 set dummy makeindex; ac_word=$2
3848 echo "$as_me:$LINENO: checking for $ac_word" >&5
3849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3850 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3851 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 case $ac_pt_DX_MAKEINDEX in
3855 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 test -z "$as_dir" && as_dir=.
3863 for ac_exec_ext in '' $ac_executable_extensions; do
3864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3865 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3877 if test -n "$ac_pt_DX_MAKEINDEX"; then
3878 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3879 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3881 echo "$as_me:$LINENO: result: no" >&5
3882 echo "${ECHO_T}no" >&6
3885 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3887 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3890 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3891 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3892 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3898 if test -n "$ac_tool_prefix"; then
3899 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3900 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3901 echo "$as_me:$LINENO: checking for $ac_word" >&5
3902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3903 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3904 echo $ECHO_N "(cached) $ECHO_C" >&6
3908 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3915 test -z "$as_dir" && as_dir=.
3916 for ac_exec_ext in '' $ac_executable_extensions; do
3917 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3918 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 DX_EGREP=$ac_cv_path_DX_EGREP
3930 if test -n "$DX_EGREP"; then
3931 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3932 echo "${ECHO_T}$DX_EGREP" >&6
3934 echo "$as_me:$LINENO: result: no" >&5
3935 echo "${ECHO_T}no" >&6
3939 if test -z "$ac_cv_path_DX_EGREP"; then
3940 ac_pt_DX_EGREP=$DX_EGREP
3941 # Extract the first word of "egrep", so it can be a program name with args.
3942 set dummy egrep; ac_word=$2
3943 echo "$as_me:$LINENO: checking for $ac_word" >&5
3944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3945 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3946 echo $ECHO_N "(cached) $ECHO_C" >&6
3948 case $ac_pt_DX_EGREP in
3950 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957 test -z "$as_dir" && as_dir=.
3958 for ac_exec_ext in '' $ac_executable_extensions; do
3959 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3960 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3961 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3972 if test -n "$ac_pt_DX_EGREP"; then
3973 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3974 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3976 echo "$as_me:$LINENO: result: no" >&5
3977 echo "${ECHO_T}no" >&6
3980 DX_EGREP=$ac_pt_DX_EGREP
3982 DX_EGREP="$ac_cv_path_DX_EGREP"
3985 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
3986 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
3987 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
3994 if test "$DX_FLAG_pdf" = 1; then
3999 DX_COND_pdf_FALSE='#'
4001 DX_COND_pdf_TRUE='#'
4012 DX_COND_pdf_FALSE='#'
4014 DX_COND_pdf_TRUE='#'
4023 # LaTeX generation for PS and/or PDF:
4024 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4029 DX_COND_latex_FALSE='#'
4031 DX_COND_latex_TRUE='#'
4032 DX_COND_latex_FALSE=
4035 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4042 DX_COND_latex_FALSE='#'
4044 DX_COND_latex_TRUE='#'
4045 DX_COND_latex_FALSE=
4048 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4052 # Paper size for PS and/or PDF:
4054 case "$DOXYGEN_PAPER_SIZE" in
4057 DOXYGEN_PAPER_SIZE=""
4060 a4wide|a4|letter|legal|executive)
4061 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4065 { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4066 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4067 { (exit 1); exit 1; }; }
4072 #echo DX_FLAG_doc=$DX_FLAG_doc
4073 #echo DX_FLAG_dot=$DX_FLAG_dot
4074 #echo DX_FLAG_man=$DX_FLAG_man
4075 #echo DX_FLAG_html=$DX_FLAG_html
4076 #echo DX_FLAG_chm=$DX_FLAG_chm
4077 #echo DX_FLAG_chi=$DX_FLAG_chi
4078 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4079 #echo DX_FLAG_xml=$DX_FLAG_xml
4080 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4081 #echo DX_FLAG_ps=$DX_FLAG_ps
4082 #echo DX_ENV=$DX_ENV
4086 # Check whether --enable-debug or --disable-debug was given.
4087 if test "${enable_debug+set}" = set; then
4088 enableval="$enable_debug"
4089 enable_debug=$enableval
4094 if test "$enable_debug" = "yes" ; then
4095 GCC_CFLAGS="$CFLAGS -Wall -g -D_DEBUG"
4096 GCC_CXXFLAGS="$CXXFLAGS -Wall -g -D_DEBUG"
4098 GCC_CFLAGS="$CFLAGS -Wall -O2 -DNDEBUG"
4099 GCC_CXXFLAGS="$CXXFLAGS -Wall -O2 -DNDEBUG"
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 if test -n "$ac_tool_prefix"; then
4108 for ac_prog in gcc gcc3 cc
4110 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4111 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4112 echo "$as_me:$LINENO: checking for $ac_word" >&5
4113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4114 if test "${ac_cv_prog_CC+set}" = set; then
4115 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 if test -n "$CC"; then
4118 ac_cv_prog_CC="$CC" # Let the user override the test.
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 test -z "$as_dir" && as_dir=.
4125 for ac_exec_ext in '' $ac_executable_extensions; do
4126 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4127 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4137 if test -n "$CC"; then
4138 echo "$as_me:$LINENO: result: $CC" >&5
4139 echo "${ECHO_T}$CC" >&6
4141 echo "$as_me:$LINENO: result: no" >&5
4142 echo "${ECHO_T}no" >&6
4145 test -n "$CC" && break
4148 if test -z "$CC"; then
4150 for ac_prog in gcc gcc3 cc
4152 # Extract the first word of "$ac_prog", so it can be a program name with args.
4153 set dummy $ac_prog; ac_word=$2
4154 echo "$as_me:$LINENO: checking for $ac_word" >&5
4155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4156 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4157 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 if test -n "$ac_ct_CC"; then
4160 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 test -z "$as_dir" && as_dir=.
4167 for ac_exec_ext in '' $ac_executable_extensions; do
4168 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4169 ac_cv_prog_ac_ct_CC="$ac_prog"
4170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4178 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179 if test -n "$ac_ct_CC"; then
4180 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4181 echo "${ECHO_T}$ac_ct_CC" >&6
4183 echo "$as_me:$LINENO: result: no" >&5
4184 echo "${ECHO_T}no" >&6
4187 test -n "$ac_ct_CC" && break
4194 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4195 See \`config.log' for more details." >&5
4196 echo "$as_me: error: no acceptable C compiler found in \$PATH
4197 See \`config.log' for more details." >&2;}
4198 { (exit 1); exit 1; }; }
4200 # Provide some information about the compiler.
4201 echo "$as_me:$LINENO:" \
4202 "checking for C compiler version" >&5
4203 ac_compiler=`set X $ac_compile; echo $2`
4204 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4205 (eval $ac_compiler --version </dev/null >&5) 2>&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); }
4209 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4210 (eval $ac_compiler -v </dev/null >&5) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }
4214 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4215 (eval $ac_compiler -V </dev/null >&5) 2>&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); }
4220 cat >conftest.$ac_ext <<_ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4235 ac_clean_files_save=$ac_clean_files
4236 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4237 # Try to create an executable without -o first, disregard a.out.
4238 # It will help us diagnose broken compilers, and finding out an intuition
4240 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4241 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4242 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4243 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4244 (eval $ac_link_default) 2>&5
4246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4247 (exit $ac_status); }; then
4248 # Find the output, starting from the most likely. This scheme is
4249 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4252 # Be careful to initialize this variable, since it used to be cached.
4253 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4255 # b.out is created by i960 compilers.
4256 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4258 test -f "$ac_file" || continue
4260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4263 # This is the source file.
4266 # We found the default executable, but exeext='' is most
4270 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4271 # FIXME: I believe we export ac_cv_exeext for Libtool,
4272 # but it would be cool to find out if it's true. Does anybody
4273 # maintain Libtool? --akim.
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4284 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4285 See \`config.log' for more details." >&5
4286 echo "$as_me: error: C compiler cannot create executables
4287 See \`config.log' for more details." >&2;}
4288 { (exit 77); exit 77; }; }
4291 ac_exeext=$ac_cv_exeext
4292 echo "$as_me:$LINENO: result: $ac_file" >&5
4293 echo "${ECHO_T}$ac_file" >&6
4295 # Check the compiler produces executables we can run. If not, either
4296 # the compiler is broken, or we cross compile.
4297 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4298 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4299 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4300 # If not cross compiling, check that we can run a simple program.
4301 if test "$cross_compiling" != yes; then
4302 if { ac_try='./$ac_file'
4303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); }; }; then
4310 if test "$cross_compiling" = maybe; then
4313 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4314 If you meant to cross compile, use \`--host'.
4315 See \`config.log' for more details." >&5
4316 echo "$as_me: error: cannot run C compiled programs.
4317 If you meant to cross compile, use \`--host'.
4318 See \`config.log' for more details." >&2;}
4319 { (exit 1); exit 1; }; }
4323 echo "$as_me:$LINENO: result: yes" >&5
4324 echo "${ECHO_T}yes" >&6
4326 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4327 ac_clean_files=$ac_clean_files_save
4328 # Check the compiler produces executables we can run. If not, either
4329 # the compiler is broken, or we cross compile.
4330 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4331 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4332 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4333 echo "${ECHO_T}$cross_compiling" >&6
4335 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4336 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4337 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4338 (eval $ac_link) 2>&5
4340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341 (exit $ac_status); }; then
4342 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4343 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4344 # work properly (i.e., refer to `conftest.exe'), while it won't with
4346 for ac_file in conftest.exe conftest conftest.*; do
4347 test -f "$ac_file" || continue
4349 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4350 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4357 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4358 See \`config.log' for more details." >&5
4359 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4360 See \`config.log' for more details." >&2;}
4361 { (exit 1); exit 1; }; }
4364 rm -f conftest$ac_cv_exeext
4365 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4366 echo "${ECHO_T}$ac_cv_exeext" >&6
4368 rm -f conftest.$ac_ext
4369 EXEEXT=$ac_cv_exeext
4371 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4372 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4373 if test "${ac_cv_objext+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 cat >conftest.$ac_ext <<_ACEOF
4379 cat confdefs.h >>conftest.$ac_ext
4380 cat >>conftest.$ac_ext <<_ACEOF
4381 /* end confdefs.h. */
4391 rm -f conftest.o conftest.obj
4392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4393 (eval $ac_compile) 2>&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; then
4397 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4399 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4400 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4405 echo "$as_me: failed program was:" >&5
4406 sed 's/^/| /' conftest.$ac_ext >&5
4408 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4409 See \`config.log' for more details." >&5
4410 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4411 See \`config.log' for more details." >&2;}
4412 { (exit 1); exit 1; }; }
4415 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4417 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4418 echo "${ECHO_T}$ac_cv_objext" >&6
4419 OBJEXT=$ac_cv_objext
4421 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4422 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4423 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4424 echo $ECHO_N "(cached) $ECHO_C" >&6
4426 cat >conftest.$ac_ext <<_ACEOF
4429 cat confdefs.h >>conftest.$ac_ext
4430 cat >>conftest.$ac_ext <<_ACEOF
4431 /* end confdefs.h. */
4444 rm -f conftest.$ac_objext
4445 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4446 (eval $ac_compile) 2>conftest.er1
4448 grep -v '^ *+' conftest.er1 >conftest.err
4450 cat conftest.err >&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); } &&
4453 { ac_try='test -z "$ac_c_werror_flag"
4454 || test ! -s conftest.err'
4455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); }; } &&
4460 { ac_try='test -s conftest.$ac_objext'
4461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); }; }; then
4468 echo "$as_me: failed program was:" >&5
4469 sed 's/^/| /' conftest.$ac_ext >&5
4473 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4474 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4477 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4478 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4479 GCC=`test $ac_compiler_gnu = yes && echo yes`
4480 ac_test_CFLAGS=${CFLAGS+set}
4481 ac_save_CFLAGS=$CFLAGS
4483 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4484 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4485 if test "${ac_cv_prog_cc_g+set}" = set; then
4486 echo $ECHO_N "(cached) $ECHO_C" >&6
4488 cat >conftest.$ac_ext <<_ACEOF
4491 cat confdefs.h >>conftest.$ac_ext
4492 cat >>conftest.$ac_ext <<_ACEOF
4493 /* end confdefs.h. */
4503 rm -f conftest.$ac_objext
4504 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505 (eval $ac_compile) 2>conftest.er1
4507 grep -v '^ *+' conftest.er1 >conftest.err
4509 cat conftest.err >&5
4510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511 (exit $ac_status); } &&
4512 { ac_try='test -z "$ac_c_werror_flag"
4513 || test ! -s conftest.err'
4514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4518 (exit $ac_status); }; } &&
4519 { ac_try='test -s conftest.$ac_objext'
4520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4524 (exit $ac_status); }; }; then
4527 echo "$as_me: failed program was:" >&5
4528 sed 's/^/| /' conftest.$ac_ext >&5
4532 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4534 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4535 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4536 if test "$ac_test_CFLAGS" = set; then
4537 CFLAGS=$ac_save_CFLAGS
4538 elif test $ac_cv_prog_cc_g = yes; then
4539 if test "$GCC" = yes; then
4545 if test "$GCC" = yes; then
4551 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4552 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4553 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4554 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 ac_cv_prog_cc_stdc=no
4558 cat >conftest.$ac_ext <<_ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4566 #include <sys/types.h>
4567 #include <sys/stat.h>
4568 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4569 struct buf { int x; };
4570 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4571 static char *e (p, i)
4577 static char *f (char * (*g) (char **, int), char **p, ...)
4582 s = g (p, va_arg (v,int));
4587 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4588 function prototypes and stuff, but not '\xHH' hex character constants.
4589 These don't provoke an error unfortunately, instead are silently treated
4590 as 'x'. The following induces an error, until -std1 is added to get
4591 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4592 array size at least. It's necessary to write '\x00'==0 to get something
4593 that's true only with -std1. */
4594 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4596 int test (int i, double x);
4597 struct s1 {int (*f) (int a);};
4598 struct s2 {int (*f) (double a);};
4599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4610 # Don't try gcc -ansi; that turns off useful extensions and
4611 # breaks some systems' header files.
4612 # AIX -qlanglvl=ansi
4613 # Ultrix and OSF/1 -std1
4614 # HP-UX 10.20 and later -Ae
4615 # HP-UX older versions -Aa -D_HPUX_SOURCE
4616 # SVR4 -Xc -D__EXTENSIONS__
4617 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4619 CC="$ac_save_CC $ac_arg"
4620 rm -f conftest.$ac_objext
4621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4622 (eval $ac_compile) 2>conftest.er1
4624 grep -v '^ *+' conftest.er1 >conftest.err
4626 cat conftest.err >&5
4627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4628 (exit $ac_status); } &&
4629 { ac_try='test -z "$ac_c_werror_flag"
4630 || test ! -s conftest.err'
4631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635 (exit $ac_status); }; } &&
4636 { ac_try='test -s conftest.$ac_objext'
4637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641 (exit $ac_status); }; }; then
4642 ac_cv_prog_cc_stdc=$ac_arg
4645 echo "$as_me: failed program was:" >&5
4646 sed 's/^/| /' conftest.$ac_ext >&5
4649 rm -f conftest.err conftest.$ac_objext
4651 rm -f conftest.$ac_ext conftest.$ac_objext
4656 case "x$ac_cv_prog_cc_stdc" in
4658 echo "$as_me:$LINENO: result: none needed" >&5
4659 echo "${ECHO_T}none needed" >&6 ;;
4661 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4662 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4663 CC="$CC $ac_cv_prog_cc_stdc" ;;
4666 # Some people use a C++ compiler to compile C. Since we use `exit',
4667 # in C++ we need to declare it. In case someone uses the same compiler
4668 # for both compiling C and C++ we need to have the C++ compiler decide
4669 # the declaration of exit, since it's the most demanding environment.
4670 cat >conftest.$ac_ext <<_ACEOF
4675 rm -f conftest.$ac_objext
4676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4677 (eval $ac_compile) 2>conftest.er1
4679 grep -v '^ *+' conftest.er1 >conftest.err
4681 cat conftest.err >&5
4682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4683 (exit $ac_status); } &&
4684 { ac_try='test -z "$ac_c_werror_flag"
4685 || test ! -s conftest.err'
4686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4690 (exit $ac_status); }; } &&
4691 { ac_try='test -s conftest.$ac_objext'
4692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4696 (exit $ac_status); }; }; then
4697 for ac_declaration in \
4699 'extern "C" void std::exit (int) throw (); using std::exit;' \
4700 'extern "C" void std::exit (int); using std::exit;' \
4701 'extern "C" void exit (int) throw ();' \
4702 'extern "C" void exit (int);' \
4705 cat >conftest.$ac_ext <<_ACEOF
4708 cat confdefs.h >>conftest.$ac_ext
4709 cat >>conftest.$ac_ext <<_ACEOF
4710 /* end confdefs.h. */
4721 rm -f conftest.$ac_objext
4722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4723 (eval $ac_compile) 2>conftest.er1
4725 grep -v '^ *+' conftest.er1 >conftest.err
4727 cat conftest.err >&5
4728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729 (exit $ac_status); } &&
4730 { ac_try='test -z "$ac_c_werror_flag"
4731 || test ! -s conftest.err'
4732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4736 (exit $ac_status); }; } &&
4737 { ac_try='test -s conftest.$ac_objext'
4738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); }; }; then
4745 echo "$as_me: failed program was:" >&5
4746 sed 's/^/| /' conftest.$ac_ext >&5
4750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4751 cat >conftest.$ac_ext <<_ACEOF
4754 cat confdefs.h >>conftest.$ac_ext
4755 cat >>conftest.$ac_ext <<_ACEOF
4756 /* end confdefs.h. */
4766 rm -f conftest.$ac_objext
4767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4768 (eval $ac_compile) 2>conftest.er1
4770 grep -v '^ *+' conftest.er1 >conftest.err
4772 cat conftest.err >&5
4773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4774 (exit $ac_status); } &&
4775 { ac_try='test -z "$ac_c_werror_flag"
4776 || test ! -s conftest.err'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; } &&
4782 { ac_try='test -s conftest.$ac_objext'
4783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4787 (exit $ac_status); }; }; then
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4797 if test -n "$ac_declaration"; then
4798 echo '#ifdef __cplusplus' >>confdefs.h
4799 echo $ac_declaration >>confdefs.h
4800 echo '#endif' >>confdefs.h
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cpp='$CPP $CPPFLAGS'
4811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814 DEPDIR="${am__leading_dot}deps"
4816 ac_config_commands="$ac_config_commands depfiles"
4819 am_make=${MAKE-make}
4820 cat > confinc << 'END'
4825 # If we don't find an include directive, just comment out the code.
4826 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4827 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4831 # First try GNU make style include.
4832 echo "include confinc" > confmf
4833 # We grep out `Entering directory' and `Leaving directory'
4834 # messages which can occur if `w' ends up in MAKEFLAGS.
4835 # In particular we don't look at `^make:' because GNU make might
4836 # be invoked under some other name (usually "gmake"), in which
4837 # case it prints its new name instead of `make'.
4838 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4843 # Now try BSD make style include.
4844 if test "$am__include" = "#"; then
4845 echo '.include "confinc"' > confmf
4846 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4847 am__include=.include
4854 echo "$as_me:$LINENO: result: $_am_result" >&5
4855 echo "${ECHO_T}$_am_result" >&6
4856 rm -f confinc confmf
4858 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4859 if test "${enable_dependency_tracking+set}" = set; then
4860 enableval="$enable_dependency_tracking"
4863 if test "x$enable_dependency_tracking" != xno; then
4864 am_depcomp="$ac_aux_dir/depcomp"
4869 if test "x$enable_dependency_tracking" != xno; then
4880 depcc="$CC" am_compiler_list=
4882 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4883 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4884 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4888 # We make a subdir and do the tests there. Otherwise we can end up
4889 # making bogus files that we don't know about and never remove. For
4890 # instance it was reported that on HP-UX the gcc test will end up
4891 # making a dummy file named `D' -- because `-MD' means `put the output
4894 # Copy depcomp to subdir because otherwise we won't find it if we're
4895 # using a relative directory.
4896 cp "$am_depcomp" conftest.dir
4898 # We will build objects and dependencies in a subdirectory because
4899 # it helps to detect inapplicable dependency modes. For instance
4900 # both Tru64's cc and ICC support -MD to output dependencies as a
4901 # side effect of compilation, but ICC will put the dependencies in
4902 # the current directory while Tru64 will put them in the object
4906 am_cv_CC_dependencies_compiler_type=none
4907 if test "$am_compiler_list" = ""; then
4908 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910 for depmode in $am_compiler_list; do
4911 # Setup a source with many dependencies, because some compilers
4912 # like to wrap large dependency lists on column 80 (with \), and
4913 # we should not choose a depcomp mode which is confused by this.
4915 # We need to recreate these files for each test, as the compiler may
4916 # overwrite some of them when testing with obscure command lines.
4917 # This happens at least with the AIX C compiler.
4919 for i in 1 2 3 4 5 6; do
4920 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4921 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4922 # Solaris 8's {/usr,}/bin/sh.
4923 touch sub/conftst$i.h
4925 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4929 # after this tag, mechanisms are not by side-effect, so they'll
4930 # only be used when explicitly requested
4931 if test "x$enable_dependency_tracking" = xyes; then
4939 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4940 # mode. It turns out that the SunPro C++ compiler does not properly
4941 # handle `-M -o', and we need to detect this.
4942 if depmode=$depmode \
4943 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4944 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4945 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4946 >/dev/null 2>conftest.err &&
4947 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4948 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4949 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4950 # icc doesn't choke on unknown options, it will just issue warnings
4951 # or remarks (even with -Werror). So we grep stderr for any message
4952 # that says an option was ignored or not supported.
4953 # When given -MP, icc 7.0 and 7.1 complain thusly:
4954 # icc: Command line warning: ignoring option '-M'; no argument required
4955 # The diagnosis changed in icc 8.0:
4956 # icc: Command line remark: option '-MP' not supported
4957 if (grep 'ignoring option' conftest.err ||
4958 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4959 am_cv_CC_dependencies_compiler_type=$depmode
4968 am_cv_CC_dependencies_compiler_type=none
4972 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4973 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4974 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4979 test "x$enable_dependency_tracking" != xno \
4980 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4982 am__fastdepCC_FALSE='#'
4984 am__fastdepCC_TRUE='#'
4985 am__fastdepCC_FALSE=
4990 ac_cpp='$CXXCPP $CPPFLAGS'
4991 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4992 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4993 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4994 if test -n "$ac_tool_prefix"; then
4995 for ac_prog in $CCC g++ g++3 c++ CC
4997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4998 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4999 echo "$as_me:$LINENO: checking for $ac_word" >&5
5000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5001 if test "${ac_cv_prog_CXX+set}" = set; then
5002 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 if test -n "$CXX"; then
5005 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 test -z "$as_dir" && as_dir=.
5012 for ac_exec_ext in '' $ac_executable_extensions; do
5013 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5014 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 if test -n "$CXX"; then
5025 echo "$as_me:$LINENO: result: $CXX" >&5
5026 echo "${ECHO_T}$CXX" >&6
5028 echo "$as_me:$LINENO: result: no" >&5
5029 echo "${ECHO_T}no" >&6
5032 test -n "$CXX" && break
5035 if test -z "$CXX"; then
5037 for ac_prog in $CCC g++ g++3 c++ CC
5039 # Extract the first word of "$ac_prog", so it can be a program name with args.
5040 set dummy $ac_prog; ac_word=$2
5041 echo "$as_me:$LINENO: checking for $ac_word" >&5
5042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5043 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5044 echo $ECHO_N "(cached) $ECHO_C" >&6
5046 if test -n "$ac_ct_CXX"; then
5047 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 test -z "$as_dir" && as_dir=.
5054 for ac_exec_ext in '' $ac_executable_extensions; do
5055 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5056 ac_cv_prog_ac_ct_CXX="$ac_prog"
5057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5066 if test -n "$ac_ct_CXX"; then
5067 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5068 echo "${ECHO_T}$ac_ct_CXX" >&6
5070 echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6
5074 test -n "$ac_ct_CXX" && break
5076 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5082 # Provide some information about the compiler.
5083 echo "$as_me:$LINENO:" \
5084 "checking for C++ compiler version" >&5
5085 ac_compiler=`set X $ac_compile; echo $2`
5086 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5087 (eval $ac_compiler --version </dev/null >&5) 2>&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); }
5091 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5092 (eval $ac_compiler -v </dev/null >&5) 2>&5
5094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5095 (exit $ac_status); }
5096 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5097 (eval $ac_compiler -V </dev/null >&5) 2>&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }
5102 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5103 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5104 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5105 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 cat >conftest.$ac_ext <<_ACEOF
5110 cat confdefs.h >>conftest.$ac_ext
5111 cat >>conftest.$ac_ext <<_ACEOF
5112 /* end confdefs.h. */
5125 rm -f conftest.$ac_objext
5126 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5127 (eval $ac_compile) 2>conftest.er1
5129 grep -v '^ *+' conftest.er1 >conftest.err
5131 cat conftest.err >&5
5132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133 (exit $ac_status); } &&
5134 { ac_try='test -z "$ac_cxx_werror_flag"
5135 || test ! -s conftest.err'
5136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5140 (exit $ac_status); }; } &&
5141 { ac_try='test -s conftest.$ac_objext'
5142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5146 (exit $ac_status); }; }; then
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5154 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5155 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5158 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5159 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5160 GXX=`test $ac_compiler_gnu = yes && echo yes`
5161 ac_test_CXXFLAGS=${CXXFLAGS+set}
5162 ac_save_CXXFLAGS=$CXXFLAGS
5164 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5165 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5166 if test "${ac_cv_prog_cxx_g+set}" = set; then
5167 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 cat >conftest.$ac_ext <<_ACEOF
5172 cat confdefs.h >>conftest.$ac_ext
5173 cat >>conftest.$ac_ext <<_ACEOF
5174 /* end confdefs.h. */
5184 rm -f conftest.$ac_objext
5185 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5186 (eval $ac_compile) 2>conftest.er1
5188 grep -v '^ *+' conftest.er1 >conftest.err
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } &&
5193 { ac_try='test -z "$ac_cxx_werror_flag"
5194 || test ! -s conftest.err'
5195 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); }; } &&
5200 { ac_try='test -s conftest.$ac_objext'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; }; then
5206 ac_cv_prog_cxx_g=yes
5208 echo "$as_me: failed program was:" >&5
5209 sed 's/^/| /' conftest.$ac_ext >&5
5213 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5215 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5216 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5217 if test "$ac_test_CXXFLAGS" = set; then
5218 CXXFLAGS=$ac_save_CXXFLAGS
5219 elif test $ac_cv_prog_cxx_g = yes; then
5220 if test "$GXX" = yes; then
5226 if test "$GXX" = yes; then
5232 for ac_declaration in \
5234 'extern "C" void std::exit (int) throw (); using std::exit;' \
5235 'extern "C" void std::exit (int); using std::exit;' \
5236 'extern "C" void exit (int) throw ();' \
5237 'extern "C" void exit (int);' \
5240 cat >conftest.$ac_ext <<_ACEOF
5243 cat confdefs.h >>conftest.$ac_ext
5244 cat >>conftest.$ac_ext <<_ACEOF
5245 /* end confdefs.h. */
5256 rm -f conftest.$ac_objext
5257 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5258 (eval $ac_compile) 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } &&
5265 { ac_try='test -z "$ac_cxx_werror_flag"
5266 || test ! -s conftest.err'
5267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5271 (exit $ac_status); }; } &&
5272 { ac_try='test -s conftest.$ac_objext'
5273 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5277 (exit $ac_status); }; }; then
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.$ac_ext >&5
5285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5286 cat >conftest.$ac_ext <<_ACEOF
5289 cat confdefs.h >>conftest.$ac_ext
5290 cat >>conftest.$ac_ext <<_ACEOF
5291 /* end confdefs.h. */
5301 rm -f conftest.$ac_objext
5302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5303 (eval $ac_compile) 2>conftest.er1
5305 grep -v '^ *+' conftest.er1 >conftest.err
5307 cat conftest.err >&5
5308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5309 (exit $ac_status); } &&
5310 { ac_try='test -z "$ac_cxx_werror_flag"
5311 || test ! -s conftest.err'
5312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); }; } &&
5317 { ac_try='test -s conftest.$ac_objext'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; }; then
5325 echo "$as_me: failed program was:" >&5
5326 sed 's/^/| /' conftest.$ac_ext >&5
5329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5332 if test -n "$ac_declaration"; then
5333 echo '#ifdef __cplusplus' >>confdefs.h
5334 echo $ac_declaration >>confdefs.h
5335 echo '#endif' >>confdefs.h
5339 ac_cpp='$CPP $CPPFLAGS'
5340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5344 depcc="$CXX" am_compiler_list=
5346 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5347 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5348 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5349 echo $ECHO_N "(cached) $ECHO_C" >&6
5351 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5352 # We make a subdir and do the tests there. Otherwise we can end up
5353 # making bogus files that we don't know about and never remove. For
5354 # instance it was reported that on HP-UX the gcc test will end up
5355 # making a dummy file named `D' -- because `-MD' means `put the output
5358 # Copy depcomp to subdir because otherwise we won't find it if we're
5359 # using a relative directory.
5360 cp "$am_depcomp" conftest.dir
5362 # We will build objects and dependencies in a subdirectory because
5363 # it helps to detect inapplicable dependency modes. For instance
5364 # both Tru64's cc and ICC support -MD to output dependencies as a
5365 # side effect of compilation, but ICC will put the dependencies in
5366 # the current directory while Tru64 will put them in the object
5370 am_cv_CXX_dependencies_compiler_type=none
5371 if test "$am_compiler_list" = ""; then
5372 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5374 for depmode in $am_compiler_list; do
5375 # Setup a source with many dependencies, because some compilers
5376 # like to wrap large dependency lists on column 80 (with \), and
5377 # we should not choose a depcomp mode which is confused by this.
5379 # We need to recreate these files for each test, as the compiler may
5380 # overwrite some of them when testing with obscure command lines.
5381 # This happens at least with the AIX C compiler.
5383 for i in 1 2 3 4 5 6; do
5384 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5385 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5386 # Solaris 8's {/usr,}/bin/sh.
5387 touch sub/conftst$i.h
5389 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5393 # after this tag, mechanisms are not by side-effect, so they'll
5394 # only be used when explicitly requested
5395 if test "x$enable_dependency_tracking" = xyes; then
5403 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5404 # mode. It turns out that the SunPro C++ compiler does not properly
5405 # handle `-M -o', and we need to detect this.
5406 if depmode=$depmode \
5407 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5408 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5409 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5410 >/dev/null 2>conftest.err &&
5411 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5412 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5413 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5414 # icc doesn't choke on unknown options, it will just issue warnings
5415 # or remarks (even with -Werror). So we grep stderr for any message
5416 # that says an option was ignored or not supported.
5417 # When given -MP, icc 7.0 and 7.1 complain thusly:
5418 # icc: Command line warning: ignoring option '-M'; no argument required
5419 # The diagnosis changed in icc 8.0:
5420 # icc: Command line remark: option '-MP' not supported
5421 if (grep 'ignoring option' conftest.err ||
5422 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5423 am_cv_CXX_dependencies_compiler_type=$depmode
5432 am_cv_CXX_dependencies_compiler_type=none
5436 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5437 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5438 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5443 test "x$enable_dependency_tracking" != xno \
5444 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5445 am__fastdepCXX_TRUE=
5446 am__fastdepCXX_FALSE='#'
5448 am__fastdepCXX_TRUE='#'
5449 am__fastdepCXX_FALSE=
5453 # Make sure we can run config.sub.
5454 $ac_config_sub sun4 >/dev/null 2>&1 ||
5455 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5456 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5457 { (exit 1); exit 1; }; }
5459 echo "$as_me:$LINENO: checking build system type" >&5
5460 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5461 if test "${ac_cv_build+set}" = set; then
5462 echo $ECHO_N "(cached) $ECHO_C" >&6
5464 ac_cv_build_alias=$build_alias
5465 test -z "$ac_cv_build_alias" &&
5466 ac_cv_build_alias=`$ac_config_guess`
5467 test -z "$ac_cv_build_alias" &&
5468 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5469 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5470 { (exit 1); exit 1; }; }
5471 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5472 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5473 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5474 { (exit 1); exit 1; }; }
5477 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5478 echo "${ECHO_T}$ac_cv_build" >&6
5480 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5481 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5482 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5485 echo "$as_me:$LINENO: checking host system type" >&5
5486 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5487 if test "${ac_cv_host+set}" = set; then
5488 echo $ECHO_N "(cached) $ECHO_C" >&6
5490 ac_cv_host_alias=$host_alias
5491 test -z "$ac_cv_host_alias" &&
5492 ac_cv_host_alias=$ac_cv_build_alias
5493 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5494 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5495 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5496 { (exit 1); exit 1; }; }
5499 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5500 echo "${ECHO_T}$ac_cv_host" >&6
5502 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5503 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5504 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5508 if test "$GCC" = "yes" ; then
5509 # AC_HAVE_GCC_VERSION(4,0,0,0,
5511 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5512 # [Define to enable class visibility control in gcc.])
5513 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5514 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5516 CFLAGS="$GCC_CFLAGS"
5517 CXXFLAGS="$GCC_CXXFLAGS"
5519 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5520 case "${host_cpu}-${host_os}" in
5522 if test "$CXX" = "CC" ; then
5523 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5529 # Check whether --enable-static or --disable-static was given.
5530 if test "${enable_static+set}" = set; then
5531 enableval="$enable_static"
5532 p=${PACKAGE-default}
5534 yes) enable_static=yes ;;
5535 no) enable_static=no ;;
5538 # Look at the argument we got. We use all the common list separators.
5539 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5540 for pkg in $enableval; do
5542 if test "X$pkg" = "X$p"; then
5554 # Check whether --enable-shared or --disable-shared was given.
5555 if test "${enable_shared+set}" = set; then
5556 enableval="$enable_shared"
5557 p=${PACKAGE-default}
5559 yes) enable_shared=yes ;;
5560 no) enable_shared=no ;;
5563 # Look at the argument we got. We use all the common list separators.
5564 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5565 for pkg in $enableval; do
5567 if test "X$pkg" = "X$p"; then
5578 # Check whether --enable-fast-install or --disable-fast-install was given.
5579 if test "${enable_fast_install+set}" = set; then
5580 enableval="$enable_fast_install"
5581 p=${PACKAGE-default}
5583 yes) enable_fast_install=yes ;;
5584 no) enable_fast_install=no ;;
5586 enable_fast_install=no
5587 # Look at the argument we got. We use all the common list separators.
5588 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5589 for pkg in $enableval; do
5591 if test "X$pkg" = "X$p"; then
5592 enable_fast_install=yes
5599 enable_fast_install=yes
5602 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5603 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5604 if test "${lt_cv_path_SED+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5607 # Loop through the user's path and test for sed and gsed.
5608 # Then use that list of sed's as ones to test for truncation.
5609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir=.
5614 for lt_ac_prog in sed gsed; do
5615 for ac_exec_ext in '' $ac_executable_extensions; do
5616 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5617 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5624 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5625 # along with /bin/sed that truncates output.
5626 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5627 test ! -f $lt_ac_sed && break
5628 cat /dev/null > conftest.in
5630 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5631 # Check for GNU sed and select it if it is found.
5632 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5633 lt_cv_path_SED=$lt_ac_sed
5637 cat conftest.in conftest.in >conftest.tmp
5638 mv conftest.tmp conftest.in
5639 cp conftest.in conftest.nl
5641 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5642 cmp -s conftest.out conftest.nl || break
5643 # 10000 chars as input seems more than enough
5644 test $lt_ac_count -gt 10 && break
5645 lt_ac_count=`expr $lt_ac_count + 1`
5646 if test $lt_ac_count -gt $lt_ac_max; then
5647 lt_ac_max=$lt_ac_count
5648 lt_cv_path_SED=$lt_ac_sed
5656 echo "$as_me:$LINENO: result: $SED" >&5
5657 echo "${ECHO_T}$SED" >&6
5659 echo "$as_me:$LINENO: checking for egrep" >&5
5660 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5661 if test "${ac_cv_prog_egrep+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5664 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5665 then ac_cv_prog_egrep='grep -E'
5666 else ac_cv_prog_egrep='egrep'
5669 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5670 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5671 EGREP=$ac_cv_prog_egrep
5675 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5676 if test "${with_gnu_ld+set}" = set; then
5677 withval="$with_gnu_ld"
5678 test "$withval" = no || with_gnu_ld=yes
5683 if test "$GCC" = yes; then
5684 # Check if gcc -print-prog-name=ld gives a path.
5685 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5686 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5689 # gcc leaves a trailing carriage return which upsets mingw
5690 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5692 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5695 # Accept absolute paths.
5697 re_direlt='/[^/][^/]*/\.\./'
5698 # Canonicalize the pathname of ld
5699 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5700 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5701 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5703 test -z "$LD" && LD="$ac_prog"
5706 # If it fails, then pretend we aren't using GCC.
5710 # If it is relative, then search for the first ld in PATH.
5714 elif test "$with_gnu_ld" = yes; then
5715 echo "$as_me:$LINENO: checking for GNU ld" >&5
5716 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5718 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5719 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5721 if test "${lt_cv_path_LD+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5724 if test -z "$LD"; then
5725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5726 for ac_dir in $PATH; do
5728 test -z "$ac_dir" && ac_dir=.
5729 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5730 lt_cv_path_LD="$ac_dir/$ac_prog"
5731 # Check to see if the program is GNU ld. I'd rather use --version,
5732 # but apparently some GNU ld's only accept -v.
5733 # Break only if it was the GNU/non-GNU ld that we prefer.
5734 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5735 *GNU* | *'with BFD'*)
5736 test "$with_gnu_ld" != no && break
5739 test "$with_gnu_ld" != yes && break
5746 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5751 if test -n "$LD"; then
5752 echo "$as_me:$LINENO: result: $LD" >&5
5753 echo "${ECHO_T}$LD" >&6
5755 echo "$as_me:$LINENO: result: no" >&5
5756 echo "${ECHO_T}no" >&6
5758 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5759 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5760 { (exit 1); exit 1; }; }
5761 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5762 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5763 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5766 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5767 case `$LD -v 2>&1 </dev/null` in
5768 *GNU* | *'with BFD'*)
5769 lt_cv_prog_gnu_ld=yes
5772 lt_cv_prog_gnu_ld=no
5776 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5777 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5778 with_gnu_ld=$lt_cv_prog_gnu_ld
5781 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5782 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5783 if test "${lt_cv_ld_reload_flag+set}" = set; then
5784 echo $ECHO_N "(cached) $ECHO_C" >&6
5786 lt_cv_ld_reload_flag='-r'
5788 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5789 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5790 reload_flag=$lt_cv_ld_reload_flag
5791 case $reload_flag in
5793 *) reload_flag=" $reload_flag" ;;
5795 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5797 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5798 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5799 if test "${lt_cv_path_NM+set}" = set; then
5800 echo $ECHO_N "(cached) $ECHO_C" >&6
5802 if test -n "$NM"; then
5803 # Let the user override the test.
5806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5807 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5809 test -z "$ac_dir" && ac_dir=.
5810 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5811 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5812 # Check to see if the nm accepts a BSD-compat flag.
5813 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5814 # nm: unknown option "B" ignored
5815 # Tru64's nm complains that /dev/null is an invalid object file
5816 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5817 */dev/null* | *'Invalid file or object type'*)
5818 lt_cv_path_NM="$tmp_nm -B"
5822 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5824 lt_cv_path_NM="$tmp_nm -p"
5828 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5829 continue # so that we can try to find one that supports BSD flags
5836 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5839 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5840 echo "${ECHO_T}$lt_cv_path_NM" >&6
5843 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5844 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5846 if test "$LN_S" = "ln -s"; then
5847 echo "$as_me:$LINENO: result: yes" >&5
5848 echo "${ECHO_T}yes" >&6
5850 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5851 echo "${ECHO_T}no, using $LN_S" >&6
5854 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5855 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5856 if test "${lt_cv_deplibs_check_method+set}" = set; then
5857 echo $ECHO_N "(cached) $ECHO_C" >&6
5859 lt_cv_file_magic_cmd='$MAGIC_CMD'
5860 lt_cv_file_magic_test_file=
5861 lt_cv_deplibs_check_method='unknown'
5862 # Need to set the preceding variable on all platforms that support
5863 # interlibrary dependencies.
5864 # 'none' -- dependencies not supported.
5865 # `unknown' -- same as none, but documents that we really don't know.
5866 # 'pass_all' -- all dependencies passed with no checks.
5867 # 'test_compile' -- check by making test program.
5868 # 'file_magic [[regex]]' -- check by looking for files in library path
5869 # which responds to the $file_magic_cmd with a given extended regex.
5870 # If you have `file' or equivalent on your system and you're not sure
5871 # whether `pass_all' will *always* work, you probably want this one.
5875 lt_cv_deplibs_check_method=pass_all
5879 lt_cv_deplibs_check_method=pass_all
5883 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5884 lt_cv_file_magic_cmd='/usr/bin/file -L'
5885 lt_cv_file_magic_test_file=/shlib/libc.so
5889 # func_win32_libid is a shell function defined in ltmain.sh
5890 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5891 lt_cv_file_magic_cmd='func_win32_libid'
5895 # Base MSYS/MinGW do not provide the 'file' command needed by
5896 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5897 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5898 lt_cv_file_magic_cmd='$OBJDUMP -f'
5901 darwin* | rhapsody*)
5902 lt_cv_deplibs_check_method=pass_all
5905 freebsd* | kfreebsd*-gnu)
5906 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5909 # Not sure whether the presence of OpenBSD here was a mistake.
5910 # Let's accept both of them until this is cleared up.
5911 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5912 lt_cv_file_magic_cmd=/usr/bin/file
5913 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5917 lt_cv_deplibs_check_method=pass_all
5922 lt_cv_deplibs_check_method=pass_all
5925 hpux10.20* | hpux11*)
5926 lt_cv_file_magic_cmd=/usr/bin/file
5929 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5930 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5933 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]'
5934 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5937 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5938 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5943 irix5* | irix6* | nonstopux*)
5945 *-32|*"-32 ") libmagic=32-bit;;
5946 *-n32|*"-n32 ") libmagic=N32;;
5947 *-64|*"-64 ") libmagic=64-bit;;
5948 *) libmagic=never-match;;
5950 lt_cv_deplibs_check_method=pass_all
5953 # This must be Linux ELF.
5956 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5957 lt_cv_deplibs_check_method=pass_all ;;
5959 # glibc up to 2.1.1 does not perform some relocations on ARM
5960 # this will be overridden with pass_all, but let us keep it just in case
5961 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5963 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5964 lt_cv_deplibs_check_method=pass_all
5968 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5969 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5971 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5976 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5977 lt_cv_file_magic_cmd=/usr/bin/file
5978 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5982 lt_cv_deplibs_check_method=unknown
5986 lt_cv_file_magic_cmd=/usr/bin/file
5987 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5988 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5989 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
5991 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
5995 osf3* | osf4* | osf5*)
5996 lt_cv_deplibs_check_method=pass_all
6000 lt_cv_deplibs_check_method=pass_all
6004 lt_cv_deplibs_check_method=pass_all
6007 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6008 case $host_vendor in
6010 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]'
6011 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6014 lt_cv_deplibs_check_method=pass_all
6017 lt_cv_file_magic_cmd='/bin/file'
6018 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6021 lt_cv_file_magic_cmd='/bin/file'
6022 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6023 lt_cv_file_magic_test_file=/lib/libc.so
6026 lt_cv_deplibs_check_method=pass_all
6031 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6032 lt_cv_deplibs_check_method=pass_all
6037 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6038 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6039 file_magic_cmd=$lt_cv_file_magic_cmd
6040 deplibs_check_method=$lt_cv_deplibs_check_method
6041 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6046 # If no C compiler was specified, use CC.
6049 # Allow CC to be a program name with arguments.
6053 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6054 if test "${enable_libtool_lock+set}" = set; then
6055 enableval="$enable_libtool_lock"
6058 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6060 # Some flags need to be propagated to the compiler or linker for good
6064 # Find out which ABI we are using.
6065 echo 'int i;' > conftest.$ac_ext
6066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6067 (eval $ac_compile) 2>&5
6069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6070 (exit $ac_status); }; then
6071 case `/usr/bin/file conftest.$ac_objext` in
6083 # Find out which ABI we are using.
6084 echo '#line 6084 "configure"' > conftest.$ac_ext
6085 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6086 (eval $ac_compile) 2>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; then
6090 if test "$lt_cv_prog_gnu_ld" = yes; then
6091 case `/usr/bin/file conftest.$ac_objext` in
6093 LD="${LD-ld} -melf32bsmip"
6096 LD="${LD-ld} -melf32bmipn32"
6099 LD="${LD-ld} -melf64bmip"
6103 case `/usr/bin/file conftest.$ac_objext` in
6119 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6120 # Find out which ABI we are using.
6121 echo 'int i;' > conftest.$ac_ext
6122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6123 (eval $ac_compile) 2>&5
6125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6126 (exit $ac_status); }; then
6127 case "`/usr/bin/file conftest.o`" in
6131 LD="${LD-ld} -m elf_i386"
6133 ppc64-*linux*|powerpc64-*linux*)
6134 LD="${LD-ld} -m elf32ppclinux"
6137 LD="${LD-ld} -m elf_s390"
6140 LD="${LD-ld} -m elf32_sparc"
6147 LD="${LD-ld} -m elf_x86_64"
6149 ppc*-*linux*|powerpc*-*linux*)
6150 LD="${LD-ld} -m elf64ppc"
6153 LD="${LD-ld} -m elf64_s390"
6156 LD="${LD-ld} -m elf64_sparc"
6166 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6167 SAVE_CFLAGS="$CFLAGS"
6168 CFLAGS="$CFLAGS -belf"
6169 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6170 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6171 if test "${lt_cv_cc_needs_belf+set}" = set; then
6172 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_cpp='$CPP $CPPFLAGS'
6176 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6177 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6178 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6180 cat >conftest.$ac_ext <<_ACEOF
6183 cat confdefs.h >>conftest.$ac_ext
6184 cat >>conftest.$ac_ext <<_ACEOF
6185 /* end confdefs.h. */
6195 rm -f conftest.$ac_objext conftest$ac_exeext
6196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6197 (eval $ac_link) 2>conftest.er1
6199 grep -v '^ *+' conftest.er1 >conftest.err
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } &&
6204 { ac_try='test -z "$ac_c_werror_flag"
6205 || test ! -s conftest.err'
6206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6210 (exit $ac_status); }; } &&
6211 { ac_try='test -s conftest$ac_exeext'
6212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); }; }; then
6217 lt_cv_cc_needs_belf=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.$ac_ext >&5
6222 lt_cv_cc_needs_belf=no
6224 rm -f conftest.err conftest.$ac_objext \
6225 conftest$ac_exeext conftest.$ac_ext
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6233 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6234 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6235 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6236 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6237 CFLAGS="$SAVE_CFLAGS"
6243 need_locks="$enable_libtool_lock"
6247 ac_cpp='$CPP $CPPFLAGS'
6248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6251 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6252 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6253 # On Suns, sometimes $CPP names a directory.
6254 if test -n "$CPP" && test -d "$CPP"; then
6257 if test -z "$CPP"; then
6258 if test "${ac_cv_prog_CPP+set}" = set; then
6259 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 # Double quotes because CPP needs to be expanded
6262 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6265 for ac_c_preproc_warn_flag in '' yes
6267 # Use a header file that comes with gcc, so configuring glibc
6268 # with a fresh cross-compiler works.
6269 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6270 # <limits.h> exists even on freestanding compilers.
6271 # On the NeXT, cc -E runs the code through the compiler's parser,
6272 # not just through cpp. "Syntax error" is here to catch this case.
6273 cat >conftest.$ac_ext <<_ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h. */
6280 # include <limits.h>
6282 # include <assert.h>
6286 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6287 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6289 grep -v '^ *+' conftest.er1 >conftest.err
6291 cat conftest.err >&5
6292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6293 (exit $ac_status); } >/dev/null; then
6294 if test -s conftest.err; then
6295 ac_cpp_err=$ac_c_preproc_warn_flag
6296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6303 if test -z "$ac_cpp_err"; then
6306 echo "$as_me: failed program was:" >&5
6307 sed 's/^/| /' conftest.$ac_ext >&5
6309 # Broken: fails on valid input.
6312 rm -f conftest.err conftest.$ac_ext
6314 # OK, works on sane cases. Now check whether non-existent headers
6315 # can be detected and how.
6316 cat >conftest.$ac_ext <<_ACEOF
6319 cat confdefs.h >>conftest.$ac_ext
6320 cat >>conftest.$ac_ext <<_ACEOF
6321 /* end confdefs.h. */
6322 #include <ac_nonexistent.h>
6324 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6325 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6327 grep -v '^ *+' conftest.er1 >conftest.err
6329 cat conftest.err >&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); } >/dev/null; then
6332 if test -s conftest.err; then
6333 ac_cpp_err=$ac_c_preproc_warn_flag
6334 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6341 if test -z "$ac_cpp_err"; then
6342 # Broken: success on invalid input.
6345 echo "$as_me: failed program was:" >&5
6346 sed 's/^/| /' conftest.$ac_ext >&5
6348 # Passes both tests.
6352 rm -f conftest.err conftest.$ac_ext
6355 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6356 rm -f conftest.err conftest.$ac_ext
6357 if $ac_preproc_ok; then
6369 echo "$as_me:$LINENO: result: $CPP" >&5
6370 echo "${ECHO_T}$CPP" >&6
6372 for ac_c_preproc_warn_flag in '' yes
6374 # Use a header file that comes with gcc, so configuring glibc
6375 # with a fresh cross-compiler works.
6376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6377 # <limits.h> exists even on freestanding compilers.
6378 # On the NeXT, cc -E runs the code through the compiler's parser,
6379 # not just through cpp. "Syntax error" is here to catch this case.
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6387 # include <limits.h>
6389 # include <assert.h>
6393 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6394 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } >/dev/null; then
6401 if test -s conftest.err; then
6402 ac_cpp_err=$ac_c_preproc_warn_flag
6403 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6410 if test -z "$ac_cpp_err"; then
6413 echo "$as_me: failed program was:" >&5
6414 sed 's/^/| /' conftest.$ac_ext >&5
6416 # Broken: fails on valid input.
6419 rm -f conftest.err conftest.$ac_ext
6421 # OK, works on sane cases. Now check whether non-existent headers
6422 # can be detected and how.
6423 cat >conftest.$ac_ext <<_ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <ac_nonexistent.h>
6431 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6432 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6434 grep -v '^ *+' conftest.er1 >conftest.err
6436 cat conftest.err >&5
6437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } >/dev/null; then
6439 if test -s conftest.err; then
6440 ac_cpp_err=$ac_c_preproc_warn_flag
6441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6448 if test -z "$ac_cpp_err"; then
6449 # Broken: success on invalid input.
6452 echo "$as_me: failed program was:" >&5
6453 sed 's/^/| /' conftest.$ac_ext >&5
6455 # Passes both tests.
6459 rm -f conftest.err conftest.$ac_ext
6462 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6463 rm -f conftest.err conftest.$ac_ext
6464 if $ac_preproc_ok; then
6467 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6468 See \`config.log' for more details." >&5
6469 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6470 See \`config.log' for more details." >&2;}
6471 { (exit 1); exit 1; }; }
6475 ac_cpp='$CPP $CPPFLAGS'
6476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6481 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6482 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6483 if test "${ac_cv_header_stdc+set}" = set; then
6484 echo $ECHO_N "(cached) $ECHO_C" >&6
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6505 rm -f conftest.$ac_objext
6506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6507 (eval $ac_compile) 2>conftest.er1
6509 grep -v '^ *+' conftest.er1 >conftest.err
6511 cat conftest.err >&5
6512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513 (exit $ac_status); } &&
6514 { ac_try='test -z "$ac_c_werror_flag"
6515 || test ! -s conftest.err'
6516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; } &&
6521 { ac_try='test -s conftest.$ac_objext'
6522 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6526 (exit $ac_status); }; }; then
6527 ac_cv_header_stdc=yes
6529 echo "$as_me: failed program was:" >&5
6530 sed 's/^/| /' conftest.$ac_ext >&5
6532 ac_cv_header_stdc=no
6534 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6536 if test $ac_cv_header_stdc = yes; then
6537 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6538 cat >conftest.$ac_ext <<_ACEOF
6541 cat confdefs.h >>conftest.$ac_ext
6542 cat >>conftest.$ac_ext <<_ACEOF
6543 /* end confdefs.h. */
6547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6548 $EGREP "memchr" >/dev/null 2>&1; then
6551 ac_cv_header_stdc=no
6557 if test $ac_cv_header_stdc = yes; then
6558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6559 cat >conftest.$ac_ext <<_ACEOF
6562 cat confdefs.h >>conftest.$ac_ext
6563 cat >>conftest.$ac_ext <<_ACEOF
6564 /* end confdefs.h. */
6568 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6569 $EGREP "free" >/dev/null 2>&1; then
6572 ac_cv_header_stdc=no
6578 if test $ac_cv_header_stdc = yes; then
6579 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6580 if test "$cross_compiling" = yes; then
6583 cat >conftest.$ac_ext <<_ACEOF
6586 cat confdefs.h >>conftest.$ac_ext
6587 cat >>conftest.$ac_ext <<_ACEOF
6588 /* end confdefs.h. */
6590 #if ((' ' & 0x0FF) == 0x020)
6591 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6592 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6594 # define ISLOWER(c) \
6595 (('a' <= (c) && (c) <= 'i') \
6596 || ('j' <= (c) && (c) <= 'r') \
6597 || ('s' <= (c) && (c) <= 'z'))
6598 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6601 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6606 for (i = 0; i < 256; i++)
6607 if (XOR (islower (i), ISLOWER (i))
6608 || toupper (i) != TOUPPER (i))
6613 rm -f conftest$ac_exeext
6614 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6615 (eval $ac_link) 2>&5
6617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6618 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6619 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6626 echo "$as_me: program exited with status $ac_status" >&5
6627 echo "$as_me: failed program was:" >&5
6628 sed 's/^/| /' conftest.$ac_ext >&5
6631 ac_cv_header_stdc=no
6633 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6637 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6638 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6639 if test $ac_cv_header_stdc = yes; then
6641 cat >>confdefs.h <<\_ACEOF
6642 #define STDC_HEADERS 1
6647 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6657 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6658 inttypes.h stdint.h unistd.h
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6663 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 $ac_includes_default
6674 #include <$ac_header>
6676 rm -f conftest.$ac_objext
6677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6678 (eval $ac_compile) 2>conftest.er1
6680 grep -v '^ *+' conftest.er1 >conftest.err
6682 cat conftest.err >&5
6683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6684 (exit $ac_status); } &&
6685 { ac_try='test -z "$ac_c_werror_flag"
6686 || test ! -s conftest.err'
6687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); }; } &&
6692 { ac_try='test -s conftest.$ac_objext'
6693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); }; }; then
6698 eval "$as_ac_Header=yes"
6700 echo "$as_me: failed program was:" >&5
6701 sed 's/^/| /' conftest.$ac_ext >&5
6703 eval "$as_ac_Header=no"
6705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6707 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6708 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6709 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6710 cat >>confdefs.h <<_ACEOF
6711 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6720 for ac_header in dlfcn.h
6722 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6724 echo "$as_me:$LINENO: checking for $ac_header" >&5
6725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6727 echo $ECHO_N "(cached) $ECHO_C" >&6
6729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6732 # Is the header compilable?
6733 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6734 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6735 cat >conftest.$ac_ext <<_ACEOF
6738 cat confdefs.h >>conftest.$ac_ext
6739 cat >>conftest.$ac_ext <<_ACEOF
6740 /* end confdefs.h. */
6741 $ac_includes_default
6742 #include <$ac_header>
6744 rm -f conftest.$ac_objext
6745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6746 (eval $ac_compile) 2>conftest.er1
6748 grep -v '^ *+' conftest.er1 >conftest.err
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } &&
6753 { ac_try='test -z "$ac_c_werror_flag"
6754 || test ! -s conftest.err'
6755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; } &&
6760 { ac_try='test -s conftest.$ac_objext'
6761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); }; }; then
6766 ac_header_compiler=yes
6768 echo "$as_me: failed program was:" >&5
6769 sed 's/^/| /' conftest.$ac_ext >&5
6771 ac_header_compiler=no
6773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6775 echo "${ECHO_T}$ac_header_compiler" >&6
6777 # Is the header present?
6778 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <$ac_header>
6788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6791 grep -v '^ *+' conftest.er1 >conftest.err
6793 cat conftest.err >&5
6794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6795 (exit $ac_status); } >/dev/null; then
6796 if test -s conftest.err; then
6797 ac_cpp_err=$ac_c_preproc_warn_flag
6798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6805 if test -z "$ac_cpp_err"; then
6806 ac_header_preproc=yes
6808 echo "$as_me: failed program was:" >&5
6809 sed 's/^/| /' conftest.$ac_ext >&5
6811 ac_header_preproc=no
6813 rm -f conftest.err conftest.$ac_ext
6814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6815 echo "${ECHO_T}$ac_header_preproc" >&6
6817 # So? What about this header?
6818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6824 ac_header_preproc=yes
6827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6841 ## ------------------------------------------------ ##
6842 ## Report this to mace-opensaml-users@internet2.edu ##
6843 ## ------------------------------------------------ ##
6846 sed "s/^/$as_me: WARNING: /" >&2
6849 echo "$as_me:$LINENO: checking for $ac_header" >&5
6850 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6851 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6854 eval "$as_ac_Header=\$ac_header_preproc"
6856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6860 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6861 cat >>confdefs.h <<_ACEOF
6862 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6870 ac_cpp='$CXXCPP $CPPFLAGS'
6871 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6872 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6873 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6874 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6875 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6876 if test -z "$CXXCPP"; then
6877 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6878 echo $ECHO_N "(cached) $ECHO_C" >&6
6880 # Double quotes because CXXCPP needs to be expanded
6881 for CXXCPP in "$CXX -E" "/lib/cpp"
6884 for ac_cxx_preproc_warn_flag in '' yes
6886 # Use a header file that comes with gcc, so configuring glibc
6887 # with a fresh cross-compiler works.
6888 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6889 # <limits.h> exists even on freestanding compilers.
6890 # On the NeXT, cc -E runs the code through the compiler's parser,
6891 # not just through cpp. "Syntax error" is here to catch this case.
6892 cat >conftest.$ac_ext <<_ACEOF
6895 cat confdefs.h >>conftest.$ac_ext
6896 cat >>conftest.$ac_ext <<_ACEOF
6897 /* end confdefs.h. */
6899 # include <limits.h>
6901 # include <assert.h>
6905 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6906 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6908 grep -v '^ *+' conftest.er1 >conftest.err
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } >/dev/null; then
6913 if test -s conftest.err; then
6914 ac_cpp_err=$ac_cxx_preproc_warn_flag
6915 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6922 if test -z "$ac_cpp_err"; then
6925 echo "$as_me: failed program was:" >&5
6926 sed 's/^/| /' conftest.$ac_ext >&5
6928 # Broken: fails on valid input.
6931 rm -f conftest.err conftest.$ac_ext
6933 # OK, works on sane cases. Now check whether non-existent headers
6934 # can be detected and how.
6935 cat >conftest.$ac_ext <<_ACEOF
6938 cat confdefs.h >>conftest.$ac_ext
6939 cat >>conftest.$ac_ext <<_ACEOF
6940 /* end confdefs.h. */
6941 #include <ac_nonexistent.h>
6943 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6944 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6946 grep -v '^ *+' conftest.er1 >conftest.err
6948 cat conftest.err >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); } >/dev/null; then
6951 if test -s conftest.err; then
6952 ac_cpp_err=$ac_cxx_preproc_warn_flag
6953 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6960 if test -z "$ac_cpp_err"; then
6961 # Broken: success on invalid input.
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6967 # Passes both tests.
6971 rm -f conftest.err conftest.$ac_ext
6974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6975 rm -f conftest.err conftest.$ac_ext
6976 if $ac_preproc_ok; then
6981 ac_cv_prog_CXXCPP=$CXXCPP
6984 CXXCPP=$ac_cv_prog_CXXCPP
6986 ac_cv_prog_CXXCPP=$CXXCPP
6988 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6989 echo "${ECHO_T}$CXXCPP" >&6
6991 for ac_cxx_preproc_warn_flag in '' yes
6993 # Use a header file that comes with gcc, so configuring glibc
6994 # with a fresh cross-compiler works.
6995 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6996 # <limits.h> exists even on freestanding compilers.
6997 # On the NeXT, cc -E runs the code through the compiler's parser,
6998 # not just through cpp. "Syntax error" is here to catch this case.
6999 cat >conftest.$ac_ext <<_ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7006 # include <limits.h>
7008 # include <assert.h>
7012 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7013 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } >/dev/null; then
7020 if test -s conftest.err; then
7021 ac_cpp_err=$ac_cxx_preproc_warn_flag
7022 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7029 if test -z "$ac_cpp_err"; then
7032 echo "$as_me: failed program was:" >&5
7033 sed 's/^/| /' conftest.$ac_ext >&5
7035 # Broken: fails on valid input.
7038 rm -f conftest.err conftest.$ac_ext
7040 # OK, works on sane cases. Now check whether non-existent headers
7041 # can be detected and how.
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 #include <ac_nonexistent.h>
7050 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7051 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7053 grep -v '^ *+' conftest.er1 >conftest.err
7055 cat conftest.err >&5
7056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7057 (exit $ac_status); } >/dev/null; then
7058 if test -s conftest.err; then
7059 ac_cpp_err=$ac_cxx_preproc_warn_flag
7060 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7067 if test -z "$ac_cpp_err"; then
7068 # Broken: success on invalid input.
7071 echo "$as_me: failed program was:" >&5
7072 sed 's/^/| /' conftest.$ac_ext >&5
7074 # Passes both tests.
7078 rm -f conftest.err conftest.$ac_ext
7081 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7082 rm -f conftest.err conftest.$ac_ext
7083 if $ac_preproc_ok; then
7086 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7087 See \`config.log' for more details." >&5
7088 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7089 See \`config.log' for more details." >&2;}
7090 { (exit 1); exit 1; }; }
7094 ac_cpp='$CXXCPP $CPPFLAGS'
7095 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7096 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7097 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7101 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7102 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7103 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7104 if test -n "$ac_tool_prefix"; then
7105 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7107 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7108 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7109 echo "$as_me:$LINENO: checking for $ac_word" >&5
7110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7111 if test "${ac_cv_prog_F77+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 if test -n "$F77"; then
7115 ac_cv_prog_F77="$F77" # Let the user override the test.
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7134 if test -n "$F77"; then
7135 echo "$as_me:$LINENO: result: $F77" >&5
7136 echo "${ECHO_T}$F77" >&6
7138 echo "$as_me:$LINENO: result: no" >&5
7139 echo "${ECHO_T}no" >&6
7142 test -n "$F77" && break
7145 if test -z "$F77"; then
7147 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7149 # Extract the first word of "$ac_prog", so it can be a program name with args.
7150 set dummy $ac_prog; ac_word=$2
7151 echo "$as_me:$LINENO: checking for $ac_word" >&5
7152 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7153 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 if test -n "$ac_ct_F77"; then
7157 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7163 test -z "$as_dir" && as_dir=.
7164 for ac_exec_ext in '' $ac_executable_extensions; do
7165 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7166 ac_cv_prog_ac_ct_F77="$ac_prog"
7167 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7176 if test -n "$ac_ct_F77"; then
7177 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7178 echo "${ECHO_T}$ac_ct_F77" >&6
7180 echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6
7184 test -n "$ac_ct_F77" && break
7191 # Provide some information about the compiler.
7192 echo "$as_me:7192:" \
7193 "checking for Fortran 77 compiler version" >&5
7194 ac_compiler=`set X $ac_compile; echo $2`
7195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7196 (eval $ac_compiler --version </dev/null >&5) 2>&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); }
7200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7201 (eval $ac_compiler -v </dev/null >&5) 2>&5
7203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7204 (exit $ac_status); }
7205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7206 (eval $ac_compiler -V </dev/null >&5) 2>&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); }
7212 # If we don't use `.F' as extension, the preprocessor is not run on the
7213 # input file. (Note that this only needs to work for GNU compilers.)
7216 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7217 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7218 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 cat >conftest.$ac_ext <<_ACEOF
7229 rm -f conftest.$ac_objext
7230 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7231 (eval $ac_compile) 2>conftest.er1
7233 grep -v '^ *+' conftest.er1 >conftest.err
7235 cat conftest.err >&5
7236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7237 (exit $ac_status); } &&
7238 { ac_try='test -z "$ac_f77_werror_flag"
7239 || test ! -s conftest.err'
7240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7244 (exit $ac_status); }; } &&
7245 { ac_try='test -s conftest.$ac_objext'
7246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7250 (exit $ac_status); }; }; then
7253 echo "$as_me: failed program was:" >&5
7254 sed 's/^/| /' conftest.$ac_ext >&5
7258 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7259 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7262 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7263 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7265 ac_test_FFLAGS=${FFLAGS+set}
7266 ac_save_FFLAGS=$FFLAGS
7268 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7269 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7270 if test "${ac_cv_prog_f77_g+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7274 cat >conftest.$ac_ext <<_ACEOF
7279 rm -f conftest.$ac_objext
7280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7281 (eval $ac_compile) 2>conftest.er1
7283 grep -v '^ *+' conftest.er1 >conftest.err
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } &&
7288 { ac_try='test -z "$ac_f77_werror_flag"
7289 || test ! -s conftest.err'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; } &&
7295 { ac_try='test -s conftest.$ac_objext'
7296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); }; }; then
7301 ac_cv_prog_f77_g=yes
7303 echo "$as_me: failed program was:" >&5
7304 sed 's/^/| /' conftest.$ac_ext >&5
7308 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7311 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7312 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7313 if test "$ac_test_FFLAGS" = set; then
7314 FFLAGS=$ac_save_FFLAGS
7315 elif test $ac_cv_prog_f77_g = yes; then
7316 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7322 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7329 G77=`test $ac_compiler_gnu = yes && echo yes`
7331 ac_cpp='$CPP $CPPFLAGS'
7332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7338 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7340 # find the maximum length of command line arguments
7341 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7342 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7343 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7344 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 # On DJGPP, this test can blow up pretty badly due to problems in libc
7352 # (any single argument exceeding 2000 bytes causes a buffer overrun
7353 # during glob expansion). Even if it were fixed, the result of this
7354 # check would be larger than it should be.
7355 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7359 # Under GNU Hurd, this test is not required because there is
7360 # no limit to the length of command line arguments.
7361 # Libtool will interpret -1 as no limit whatsoever
7362 lt_cv_sys_max_cmd_len=-1;
7366 # On Win9x/ME, this test blows up -- it succeeds, but takes
7367 # about 5 minutes as the teststring grows exponentially.
7368 # Worse, since 9x/ME are not pre-emptively multitasking,
7369 # you end up with a "frozen" computer, even though with patience
7370 # the test eventually succeeds (with a max line length of 256k).
7371 # Instead, let's just punt: use the minimum linelength reported by
7372 # all of the supported platforms: 8192 (on NT/2K/XP).
7373 lt_cv_sys_max_cmd_len=8192;
7377 # On AmigaOS with pdksh, this test takes hours, literally.
7378 # So we just punt and use a minimum line length of 8192.
7379 lt_cv_sys_max_cmd_len=8192;
7383 # If test is not a shell built-in, we'll probably end up computing a
7384 # maximum length that is only half of the actual maximum length, but
7386 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7387 = "XX$teststring") >/dev/null 2>&1 &&
7388 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7389 lt_cv_sys_max_cmd_len=$new_result &&
7390 test $i != 17 # 1/2 MB should be enough
7393 teststring=$teststring$teststring
7396 # Add a significant safety factor because C++ compilers can tack on massive
7397 # amounts of additional arguments before passing them to the linker.
7398 # It appears as though 1/2 is a usable value.
7399 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7405 if test -n $lt_cv_sys_max_cmd_len ; then
7406 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7407 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7409 echo "$as_me:$LINENO: result: none" >&5
7410 echo "${ECHO_T}none" >&6
7416 # Check for command to grab the raw symbol name followed by C symbol from nm.
7417 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7418 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7419 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7423 # These are sane defaults that work on at least a few old systems.
7424 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7426 # Character class describing NM global symbol codes.
7427 symcode='[BCDEGRST]'
7429 # Regexp to match symbols that can be accessed directly from C.
7430 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7432 # Transform the above into a raw symbol and a C symbol.
7433 symxfrm='\1 \2\3 \3'
7435 # Transform an extracted symbol line into a proper C declaration
7436 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7438 # Transform an extracted symbol line into symbol name and symbol address
7439 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'"
7441 # Define system-specific variables.
7446 cygwin* | mingw* | pw32*)
7447 symcode='[ABCDGISTW]'
7449 hpux*) # Its linker distinguishes data from code symbols
7450 if test "$host_cpu" = ia64; then
7451 symcode='[ABCDEGRST]'
7453 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7454 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'"
7457 symcode='[BCDEGRST]'
7460 symcode='[BCDEGQRST]'
7470 # Handle CRLF in mingw tool chain
7474 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478 # If we're using GNU nm, then use its standard symbol codes.
7479 case `$NM -V 2>&1` in
7480 *GNU* | *'with BFD'*)
7481 symcode='[ABCDGIRSTW]' ;;
7484 # Try without a prefix undercore, then with it.
7485 for ac_symprfx in "" "_"; do
7487 # Write the raw and C identifiers.
7488 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7490 # Check to see that the pipe works correctly.
7494 cat > conftest.$ac_ext <<EOF
7499 void nm_test_func(){}
7503 int main(){nm_test_var='a';nm_test_func();return(0);}
7506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7507 (eval $ac_compile) 2>&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; then
7511 # Now try to grab the symbols.
7513 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7514 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && test -s "$nlist"; then
7518 # Try sorting and uniquifying the output.
7519 if sort "$nlist" | uniq > "$nlist"T; then
7520 mv -f "$nlist"T "$nlist"
7525 # Make sure that we snagged all the symbols we need.
7526 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7527 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7528 cat <<EOF > conftest.$ac_ext
7534 # Now generate the symbol file.
7535 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7537 cat <<EOF >> conftest.$ac_ext
7538 #if defined (__STDC__) && __STDC__
7539 # define lt_ptr_t void *
7541 # define lt_ptr_t char *
7545 /* The mapping between symbol names and symbols. */
7550 lt_preloaded_symbols[] =
7553 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7554 cat <<\EOF >> conftest.$ac_ext
7562 # Now try linking the two files.
7563 mv conftest.$ac_objext conftstm.$ac_objext
7564 lt_save_LIBS="$LIBS"
7565 lt_save_CFLAGS="$CFLAGS"
7566 LIBS="conftstm.$ac_objext"
7567 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7568 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7569 (eval $ac_link) 2>&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7575 LIBS="$lt_save_LIBS"
7576 CFLAGS="$lt_save_CFLAGS"
7578 echo "cannot find nm_test_func in $nlist" >&5
7581 echo "cannot find nm_test_var in $nlist" >&5
7584 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7587 echo "$progname: failed program was:" >&5
7588 cat conftest.$ac_ext >&5
7590 rm -f conftest* conftst*
7592 # Do not use the global_symbol_pipe unless it works.
7593 if test "$pipe_works" = yes; then
7596 lt_cv_sys_global_symbol_pipe=
7602 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7603 lt_cv_sys_global_symbol_to_cdecl=
7605 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7606 echo "$as_me:$LINENO: result: failed" >&5
7607 echo "${ECHO_T}failed" >&6
7609 echo "$as_me:$LINENO: result: ok" >&5
7610 echo "${ECHO_T}ok" >&6
7613 echo "$as_me:$LINENO: checking for objdir" >&5
7614 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7615 if test "${lt_cv_objdir+set}" = set; then
7616 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 rm -f .libs 2>/dev/null
7619 mkdir .libs 2>/dev/null
7620 if test -d .libs; then
7623 # MS-DOS does not allow filenames that begin with a dot.
7626 rmdir .libs 2>/dev/null
7628 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7629 echo "${ECHO_T}$lt_cv_objdir" >&6
7630 objdir=$lt_cv_objdir
7638 # AIX sometimes has problems with the GCC collect2 program. For some
7639 # reason, if we set the COLLECT_NAMES environment variable, the problems
7640 # vanish in a puff of smoke.
7641 if test "X${COLLECT_NAMES+set}" != Xset; then
7643 export COLLECT_NAMES
7648 # Sed substitution that helps us do robust quoting. It backslashifies
7649 # metacharacters that are still active within double-quoted strings.
7650 Xsed='sed -e s/^X//'
7651 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7653 # Same as above, but do not quote variable references.
7654 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7656 # Sed substitution to delay expansion of an escaped shell variable in a
7657 # double_quote_subst'ed string.
7658 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7660 # Sed substitution to avoid accidental globbing in evaled expressions
7661 no_glob_subst='s/\*/\\\*/g'
7667 default_ofile=libtool
7668 can_build_shared=yes
7670 # All known linkers require a `.a' archive for static linking (except M$VC,
7671 # which needs '.lib').
7673 ltmain="$ac_aux_dir/ltmain.sh"
7674 ofile="$default_ofile"
7675 with_gnu_ld="$lt_cv_prog_gnu_ld"
7677 if test -n "$ac_tool_prefix"; then
7678 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7679 set dummy ${ac_tool_prefix}ar; ac_word=$2
7680 echo "$as_me:$LINENO: checking for $ac_word" >&5
7681 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7682 if test "${ac_cv_prog_AR+set}" = set; then
7683 echo $ECHO_N "(cached) $ECHO_C" >&6
7685 if test -n "$AR"; then
7686 ac_cv_prog_AR="$AR" # Let the user override the test.
7688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7692 test -z "$as_dir" && as_dir=.
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_AR="${ac_tool_prefix}ar"
7696 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7705 if test -n "$AR"; then
7706 echo "$as_me:$LINENO: result: $AR" >&5
7707 echo "${ECHO_T}$AR" >&6
7709 echo "$as_me:$LINENO: result: no" >&5
7710 echo "${ECHO_T}no" >&6
7714 if test -z "$ac_cv_prog_AR"; then
7716 # Extract the first word of "ar", so it can be a program name with args.
7717 set dummy ar; ac_word=$2
7718 echo "$as_me:$LINENO: checking for $ac_word" >&5
7719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7720 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 if test -n "$ac_ct_AR"; then
7724 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7733 ac_cv_prog_ac_ct_AR="ar"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7740 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7743 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7744 if test -n "$ac_ct_AR"; then
7745 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7746 echo "${ECHO_T}$ac_ct_AR" >&6
7748 echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6
7757 if test -n "$ac_tool_prefix"; then
7758 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7759 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7760 echo "$as_me:$LINENO: checking for $ac_word" >&5
7761 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7762 if test "${ac_cv_prog_RANLIB+set}" = set; then
7763 echo $ECHO_N "(cached) $ECHO_C" >&6
7765 if test -n "$RANLIB"; then
7766 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 test -z "$as_dir" && as_dir=.
7773 for ac_exec_ext in '' $ac_executable_extensions; do
7774 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7775 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7784 RANLIB=$ac_cv_prog_RANLIB
7785 if test -n "$RANLIB"; then
7786 echo "$as_me:$LINENO: result: $RANLIB" >&5
7787 echo "${ECHO_T}$RANLIB" >&6
7789 echo "$as_me:$LINENO: result: no" >&5
7790 echo "${ECHO_T}no" >&6
7794 if test -z "$ac_cv_prog_RANLIB"; then
7795 ac_ct_RANLIB=$RANLIB
7796 # Extract the first word of "ranlib", so it can be a program name with args.
7797 set dummy ranlib; ac_word=$2
7798 echo "$as_me:$LINENO: checking for $ac_word" >&5
7799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7800 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7801 echo $ECHO_N "(cached) $ECHO_C" >&6
7803 if test -n "$ac_ct_RANLIB"; then
7804 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7810 test -z "$as_dir" && as_dir=.
7811 for ac_exec_ext in '' $ac_executable_extensions; do
7812 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7813 ac_cv_prog_ac_ct_RANLIB="ranlib"
7814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7820 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7823 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7824 if test -n "$ac_ct_RANLIB"; then
7825 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7826 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7828 echo "$as_me:$LINENO: result: no" >&5
7829 echo "${ECHO_T}no" >&6
7832 RANLIB=$ac_ct_RANLIB
7834 RANLIB="$ac_cv_prog_RANLIB"
7837 if test -n "$ac_tool_prefix"; then
7838 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7839 set dummy ${ac_tool_prefix}strip; ac_word=$2
7840 echo "$as_me:$LINENO: checking for $ac_word" >&5
7841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7842 if test "${ac_cv_prog_STRIP+set}" = set; then
7843 echo $ECHO_N "(cached) $ECHO_C" >&6
7845 if test -n "$STRIP"; then
7846 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 test -z "$as_dir" && as_dir=.
7853 for ac_exec_ext in '' $ac_executable_extensions; do
7854 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7855 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 STRIP=$ac_cv_prog_STRIP
7865 if test -n "$STRIP"; then
7866 echo "$as_me:$LINENO: result: $STRIP" >&5
7867 echo "${ECHO_T}$STRIP" >&6
7869 echo "$as_me:$LINENO: result: no" >&5
7870 echo "${ECHO_T}no" >&6
7874 if test -z "$ac_cv_prog_STRIP"; then
7876 # Extract the first word of "strip", so it can be a program name with args.
7877 set dummy strip; ac_word=$2
7878 echo "$as_me:$LINENO: checking for $ac_word" >&5
7879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7880 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 if test -n "$ac_ct_STRIP"; then
7884 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 test -z "$as_dir" && as_dir=.
7891 for ac_exec_ext in '' $ac_executable_extensions; do
7892 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7893 ac_cv_prog_ac_ct_STRIP="strip"
7894 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7900 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7903 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7904 if test -n "$ac_ct_STRIP"; then
7905 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7906 echo "${ECHO_T}$ac_ct_STRIP" >&6
7908 echo "$as_me:$LINENO: result: no" >&5
7909 echo "${ECHO_T}no" >&6
7914 STRIP="$ac_cv_prog_STRIP"
7919 old_CFLAGS="$CFLAGS"
7921 # Set sane defaults for various variables
7922 test -z "$AR" && AR=ar
7923 test -z "$AR_FLAGS" && AR_FLAGS=cru
7924 test -z "$AS" && AS=as
7925 test -z "$CC" && CC=cc
7926 test -z "$LTCC" && LTCC=$CC
7927 test -z "$DLLTOOL" && DLLTOOL=dlltool
7928 test -z "$LD" && LD=ld
7929 test -z "$LN_S" && LN_S="ln -s"
7930 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7931 test -z "$NM" && NM=nm
7932 test -z "$SED" && SED=sed
7933 test -z "$OBJDUMP" && OBJDUMP=objdump
7934 test -z "$RANLIB" && RANLIB=:
7935 test -z "$STRIP" && STRIP=:
7936 test -z "$ac_objext" && ac_objext=o
7938 # Determine commands to create old-style static archives.
7939 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7940 old_postinstall_cmds='chmod 644 $oldlib'
7941 old_postuninstall_cmds=
7943 if test -n "$RANLIB"; then
7946 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7949 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7952 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7955 # Only perform the check for file, if the check method requires it
7956 case $deplibs_check_method in
7958 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7959 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7960 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7961 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7962 echo $ECHO_N "(cached) $ECHO_C" >&6
7966 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7969 lt_save_MAGIC_CMD="$MAGIC_CMD"
7970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7971 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7972 for ac_dir in $ac_dummy; do
7974 test -z "$ac_dir" && ac_dir=.
7975 if test -f $ac_dir/${ac_tool_prefix}file; then
7976 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7977 if test -n "$file_magic_test_file"; then
7978 case $deplibs_check_method in
7980 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
7981 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7982 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7983 $EGREP "$file_magic_regex" > /dev/null; then
7988 *** Warning: the command libtool uses to detect shared libraries,
7989 *** $file_magic_cmd, produces output that libtool cannot recognize.
7990 *** The result is that libtool may fail to recognize shared libraries
7991 *** as such. This will affect the creation of libtool libraries that
7992 *** depend on shared libraries, but programs linked with such libtool
7993 *** libraries will work regardless of this problem. Nevertheless, you
7994 *** may want to report the problem to your system manager and/or to
7995 *** bug-libtool@gnu.org
8005 MAGIC_CMD="$lt_save_MAGIC_CMD"
8010 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8011 if test -n "$MAGIC_CMD"; then
8012 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8013 echo "${ECHO_T}$MAGIC_CMD" >&6
8015 echo "$as_me:$LINENO: result: no" >&5
8016 echo "${ECHO_T}no" >&6
8019 if test -z "$lt_cv_path_MAGIC_CMD"; then
8020 if test -n "$ac_tool_prefix"; then
8021 echo "$as_me:$LINENO: checking for file" >&5
8022 echo $ECHO_N "checking for file... $ECHO_C" >&6
8023 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8024 echo $ECHO_N "(cached) $ECHO_C" >&6
8028 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8031 lt_save_MAGIC_CMD="$MAGIC_CMD"
8032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8033 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8034 for ac_dir in $ac_dummy; do
8036 test -z "$ac_dir" && ac_dir=.
8037 if test -f $ac_dir/file; then
8038 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8039 if test -n "$file_magic_test_file"; then
8040 case $deplibs_check_method in
8042 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8043 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8044 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8045 $EGREP "$file_magic_regex" > /dev/null; then
8050 *** Warning: the command libtool uses to detect shared libraries,
8051 *** $file_magic_cmd, produces output that libtool cannot recognize.
8052 *** The result is that libtool may fail to recognize shared libraries
8053 *** as such. This will affect the creation of libtool libraries that
8054 *** depend on shared libraries, but programs linked with such libtool
8055 *** libraries will work regardless of this problem. Nevertheless, you
8056 *** may want to report the problem to your system manager and/or to
8057 *** bug-libtool@gnu.org
8067 MAGIC_CMD="$lt_save_MAGIC_CMD"
8072 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8073 if test -n "$MAGIC_CMD"; then
8074 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8075 echo "${ECHO_T}$MAGIC_CMD" >&6
8077 echo "$as_me:$LINENO: result: no" >&5
8078 echo "${ECHO_T}no" >&6
8093 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8094 if test "${enable_libtool_lock+set}" = set; then
8095 enableval="$enable_libtool_lock"
8098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8101 # Check whether --with-pic or --without-pic was given.
8102 if test "${with_pic+set}" = set; then
8108 test -z "$pic_mode" && pic_mode=default
8110 # Use C for the default configuration in the libtool script
8114 ac_cpp='$CPP $CPPFLAGS'
8115 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8116 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8117 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8120 # Source file extension for C test sources.
8123 # Object file extension for compiled C test sources.
8127 # Code to be used in simple compile tests
8128 lt_simple_compile_test_code="int some_variable = 0;\n"
8130 # Code to be used in simple link tests
8131 lt_simple_link_test_code='int main(){return(0);}\n'
8134 # If no C compiler was specified, use CC.
8137 # Allow CC to be a program name with arguments.
8142 # Check for any special shared library compilation flags.
8145 if test "$GCC" = no; then
8148 lt_prog_cc_shlib='-belf'
8152 if test -n "$lt_prog_cc_shlib"; then
8153 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8154 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8155 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8157 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8158 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8159 lt_cv_prog_cc_can_build_shared=no
8165 # Check to make sure the static flag actually works.
8167 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8168 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8169 if test "${lt_prog_compiler_static_works+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8172 lt_prog_compiler_static_works=no
8173 save_LDFLAGS="$LDFLAGS"
8174 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8175 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8176 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8177 # The compiler can only warn and ignore the option if not recognized
8178 # So say no if there are warnings
8179 if test -s conftest.err; then
8180 # Append any errors to the config.log.
8181 cat conftest.err 1>&5
8183 lt_prog_compiler_static_works=yes
8187 LDFLAGS="$save_LDFLAGS"
8190 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8191 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8193 if test x"$lt_prog_compiler_static_works" = xyes; then
8196 lt_prog_compiler_static=
8202 ## There is no encapsulation within the following macros, do not change
8203 ## the running order or otherwise move them around unless you know exactly
8204 ## what you are doing...
8206 lt_prog_compiler_no_builtin_flag=
8208 if test "$GCC" = yes; then
8209 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8212 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8213 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8214 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8215 echo $ECHO_N "(cached) $ECHO_C" >&6
8217 lt_cv_prog_compiler_rtti_exceptions=no
8218 ac_outfile=conftest.$ac_objext
8219 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8220 lt_compiler_flag="-fno-rtti -fno-exceptions"
8221 # Insert the option either (1) after the last *FLAGS variable, or
8222 # (2) before a word containing "conftest.", or (3) at the end.
8223 # Note that $ac_compile itself does not contain backslashes and begins
8224 # with a dollar sign (not a hyphen), so the echo should work correctly.
8225 # The option is referenced via a variable to avoid confusing sed.
8226 lt_compile=`echo "$ac_compile" | $SED \
8227 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8228 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8229 -e 's:$: $lt_compiler_flag:'`
8230 (eval echo "\"\$as_me:8230: $lt_compile\"" >&5)
8231 (eval "$lt_compile" 2>conftest.err)
8233 cat conftest.err >&5
8234 echo "$as_me:8234: \$? = $ac_status" >&5
8235 if (exit $ac_status) && test -s "$ac_outfile"; then
8236 # The compiler can only warn and ignore the option if not recognized
8237 # So say no if there are warnings
8238 if test ! -s conftest.err; then
8239 lt_cv_prog_compiler_rtti_exceptions=yes
8245 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8246 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8248 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8249 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8256 lt_prog_compiler_wl=
8257 lt_prog_compiler_pic=
8258 lt_prog_compiler_static=
8260 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8261 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8263 if test "$GCC" = yes; then
8264 lt_prog_compiler_wl='-Wl,'
8265 lt_prog_compiler_static='-static'
8269 # All AIX code is PIC.
8270 if test "$host_cpu" = ia64; then
8271 # AIX 5 now supports IA64 processor
8272 lt_prog_compiler_static='-Bstatic'
8277 # FIXME: we need at least 68020 code to build shared libraries, but
8278 # adding the `-m68020' flag to GCC prevents building anything better,
8280 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8283 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8284 # PIC is the default for these OSes.
8287 mingw* | pw32* | os2*)
8288 # This hack is so that the source file can tell whether it is being
8289 # built for inclusion in a dll (and should export symbols for example).
8290 lt_prog_compiler_pic='-DDLL_EXPORT'
8293 darwin* | rhapsody*)
8294 # PIC is the default on this platform
8295 # Common symbols not allowed in MH_DYLIB files
8296 lt_prog_compiler_pic='-fno-common'
8300 # Just because we use GCC doesn't mean we suddenly get shared libraries
8301 # on systems that don't support them.
8302 lt_prog_compiler_can_build_shared=no
8307 if test -d /usr/nec; then
8308 lt_prog_compiler_pic=-Kconform_pic
8313 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8320 lt_prog_compiler_pic='-fPIC'
8326 lt_prog_compiler_pic='-fPIC'
8330 # PORTME Check for flag to pass linker flags through the system compiler.
8333 lt_prog_compiler_wl='-Wl,'
8334 if test "$host_cpu" = ia64; then
8335 # AIX 5 now supports IA64 processor
8336 lt_prog_compiler_static='-Bstatic'
8338 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8342 mingw* | pw32* | os2*)
8343 # This hack is so that the source file can tell whether it is being
8344 # built for inclusion in a dll (and should export symbols for example).
8345 lt_prog_compiler_pic='-DDLL_EXPORT'
8348 hpux9* | hpux10* | hpux11*)
8349 lt_prog_compiler_wl='-Wl,'
8350 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8357 lt_prog_compiler_pic='+Z'
8360 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8361 lt_prog_compiler_static='${wl}-a ${wl}archive'
8364 irix5* | irix6* | nonstopux*)
8365 lt_prog_compiler_wl='-Wl,'
8366 # PIC (with -KPIC) is the default.
8367 lt_prog_compiler_static='-non_shared'
8371 lt_prog_compiler_pic='-KPIC'
8372 lt_prog_compiler_static='-Bstatic'
8378 lt_prog_compiler_wl='-Wl,'
8379 lt_prog_compiler_pic='-KPIC'
8380 lt_prog_compiler_static='-static'
8383 lt_prog_compiler_wl='-Wl,'
8384 # All Alpha code is PIC.
8385 lt_prog_compiler_static='-non_shared'
8390 osf3* | osf4* | osf5*)
8391 lt_prog_compiler_wl='-Wl,'
8392 # All OSF/1 code is PIC.
8393 lt_prog_compiler_static='-non_shared'
8397 lt_prog_compiler_pic='-Kpic'
8398 lt_prog_compiler_static='-dn'
8402 lt_prog_compiler_wl='-Wl,'
8403 lt_prog_compiler_pic='-KPIC'
8404 lt_prog_compiler_static='-Bstatic'
8408 lt_prog_compiler_wl='-Qoption ld '
8409 lt_prog_compiler_pic='-PIC'
8410 lt_prog_compiler_static='-Bstatic'
8413 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8414 lt_prog_compiler_wl='-Wl,'
8415 lt_prog_compiler_pic='-KPIC'
8416 lt_prog_compiler_static='-Bstatic'
8420 if test -d /usr/nec ;then
8421 lt_prog_compiler_pic='-Kconform_pic'
8422 lt_prog_compiler_static='-Bstatic'
8427 lt_prog_compiler_pic='-pic'
8428 lt_prog_compiler_static='-Bstatic'
8432 lt_prog_compiler_can_build_shared=no
8437 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8438 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8441 # Check to make sure the PIC flag actually works.
8443 if test -n "$lt_prog_compiler_pic"; then
8445 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8446 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8447 if test "${lt_prog_compiler_pic_works+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 lt_prog_compiler_pic_works=no
8451 ac_outfile=conftest.$ac_objext
8452 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8453 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8454 # Insert the option either (1) after the last *FLAGS variable, or
8455 # (2) before a word containing "conftest.", or (3) at the end.
8456 # Note that $ac_compile itself does not contain backslashes and begins
8457 # with a dollar sign (not a hyphen), so the echo should work correctly.
8458 # The option is referenced via a variable to avoid confusing sed.
8459 lt_compile=`echo "$ac_compile" | $SED \
8460 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8461 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8462 -e 's:$: $lt_compiler_flag:'`
8463 (eval echo "\"\$as_me:8463: $lt_compile\"" >&5)
8464 (eval "$lt_compile" 2>conftest.err)
8466 cat conftest.err >&5
8467 echo "$as_me:8467: \$? = $ac_status" >&5
8468 if (exit $ac_status) && test -s "$ac_outfile"; then
8469 # The compiler can only warn and ignore the option if not recognized
8470 # So say no if there are warnings
8471 if test ! -s conftest.err; then
8472 lt_prog_compiler_pic_works=yes
8478 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8479 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8481 if test x"$lt_prog_compiler_pic_works" = xyes; then
8482 case $lt_prog_compiler_pic in
8484 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8487 lt_prog_compiler_pic=
8488 lt_prog_compiler_can_build_shared=no
8493 # For platforms which do not support PIC, -DPIC is meaningless:
8495 lt_prog_compiler_pic=
8498 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8502 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8503 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8504 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8507 lt_cv_prog_compiler_c_o=no
8508 $rm -r conftest 2>/dev/null
8512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8514 lt_compiler_flag="-o out/conftest2.$ac_objext"
8515 # Insert the option either (1) after the last *FLAGS variable, or
8516 # (2) before a word containing "conftest.", or (3) at the end.
8517 # Note that $ac_compile itself does not contain backslashes and begins
8518 # with a dollar sign (not a hyphen), so the echo should work correctly.
8519 lt_compile=`echo "$ac_compile" | $SED \
8520 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522 -e 's:$: $lt_compiler_flag:'`
8523 (eval echo "\"\$as_me:8523: $lt_compile\"" >&5)
8524 (eval "$lt_compile" 2>out/conftest.err)
8526 cat out/conftest.err >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8530 # The compiler can only warn and ignore the option if not recognized
8531 # So say no if there are warnings
8532 if test ! -s out/conftest.err; then
8533 lt_cv_prog_compiler_c_o=yes
8538 # SGI C++ compiler will create directory out/ii_files/ for
8539 # template instantiation
8540 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8541 $rm out/* && rmdir out
8547 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8548 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8551 hard_links="nottested"
8552 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8553 # do not overwrite the value of need_locks provided by the user
8554 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8555 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8558 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8560 ln conftest.a conftest.b 2>&5 || hard_links=no
8561 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8562 echo "$as_me:$LINENO: result: $hard_links" >&5
8563 echo "${ECHO_T}$hard_links" >&6
8564 if test "$hard_links" = no; then
8565 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8566 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8573 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8574 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8577 allow_undefined_flag=
8578 enable_shared_with_static_runtimes=no
8580 archive_expsym_cmds=
8581 old_archive_From_new_cmds=
8582 old_archive_from_expsyms_cmds=
8583 export_dynamic_flag_spec=
8584 whole_archive_flag_spec=
8585 thread_safe_flag_spec=
8586 hardcode_libdir_flag_spec=
8587 hardcode_libdir_flag_spec_ld=
8588 hardcode_libdir_separator=
8591 hardcode_shlibpath_var=unsupported
8592 link_all_deplibs=unknown
8593 hardcode_automatic=no
8596 always_export_symbols=no
8597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8598 # include_expsyms should be a list of space-separated symbols to be *always*
8599 # included in the symbol list
8601 # exclude_expsyms can be an extended regexp of symbols to exclude
8602 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8603 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8604 # as well as any symbol that contains `d'.
8605 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8606 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8607 # platforms (ab)use it in PIC code, but their linkers get confused if
8608 # the symbol is explicitly referenced. Since portable code cannot
8609 # rely on this symbol name, it's probably fine to never include it in
8610 # preloaded symbol tables.
8611 extract_expsyms_cmds=
8614 cygwin* | mingw* | pw32*)
8615 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8616 # When not using gcc, we currently assume that we are using
8617 # Microsoft Visual C++.
8618 if test "$GCC" != yes; then
8628 if test "$with_gnu_ld" = yes; then
8629 # If archive_cmds runs LD, not CC, wlarc should be empty
8632 # See if GNU ld supports shared libraries.
8634 aix3* | aix4* | aix5*)
8635 # On AIX/PPC, the GNU linker is very broken
8636 if test "$host_cpu" != ia64; then
8640 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8641 *** to be unable to reliably create shared libraries on AIX.
8642 *** Therefore, libtool is disabling shared libraries support. If you
8643 *** really care for shared libraries, you may want to modify your PATH
8644 *** so that a non-GNU linker is found, and then restart.
8651 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)'
8652 hardcode_libdir_flag_spec='-L$libdir'
8653 hardcode_minus_L=yes
8655 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8656 # that the semantics of dynamic libraries on AmigaOS, at least up
8657 # to version 4, is to share data among multiple programs linked
8658 # with the same dynamic library. Since this doesn't match the
8659 # behavior of shared libraries on other platforms, we can't use
8665 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8666 allow_undefined_flag=unsupported
8667 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8668 # support --undefined. This deserves some investigation. FIXME
8669 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8675 cygwin* | mingw* | pw32*)
8676 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8677 # as there is no search path for DLLs.
8678 hardcode_libdir_flag_spec='-L$libdir'
8679 allow_undefined_flag=unsupported
8680 always_export_symbols=no
8681 enable_shared_with_static_runtimes=yes
8682 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8684 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8685 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8686 # If the export-symbols file already is a .def file (1st line
8687 # is EXPORTS), use it as is; otherwise, prepend...
8688 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8689 cp $export_symbols $output_objdir/$soname.def;
8691 echo EXPORTS > $output_objdir/$soname.def;
8692 cat $export_symbols >> $output_objdir/$soname.def;
8694 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8701 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8702 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8705 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8706 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8711 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8715 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8716 *** create shared libraries on Solaris systems. Therefore, libtool
8717 *** is disabling shared libraries support. We urge you to upgrade GNU
8718 *** binutils to release 2.9.1 or newer. Another option is to modify
8719 *** your PATH or compiler configuration so that the native linker is
8720 *** used, and then restart.
8723 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8725 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8735 hardcode_shlibpath_var=no
8739 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8740 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8741 archive_cmds="$tmp_archive_cmds"
8742 supports_anon_versioning=no
8743 case `$LD -v 2>/dev/null` in
8744 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8745 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8746 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8747 *\ 2.11.*) ;; # other 2.11 versions
8748 *) supports_anon_versioning=yes ;;
8750 if test $supports_anon_versioning = yes; then
8751 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8752 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8753 $echo "local: *; };" >> $output_objdir/$libname.ver~
8754 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8756 archive_expsym_cmds="$tmp_archive_cmds"
8764 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8773 if test "$ld_shlibs" = yes; then
8774 runpath_var=LD_RUN_PATH
8775 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8776 export_dynamic_flag_spec='${wl}--export-dynamic'
8777 # ancient GNU ld didn't support --whole-archive et. al.
8778 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8779 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8781 whole_archive_flag_spec=
8785 # PORTME fill in a description of your system's linker (not GNU ld)
8788 allow_undefined_flag=unsupported
8789 always_export_symbols=yes
8790 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'
8791 # Note: this linker hardcodes the directories in LIBPATH if there
8792 # are no directories specified by -L.
8793 hardcode_minus_L=yes
8794 if test "$GCC" = yes && test -z "$link_static_flag"; then
8795 # Neither direct hardcoding nor static linking is supported with a
8797 hardcode_direct=unsupported
8802 if test "$host_cpu" = ia64; then
8803 # On IA64, the linker does run time linking by default, so we don't
8804 # have to do anything special.
8805 aix_use_runtimelinking=no
8806 exp_sym_flag='-Bexport'
8809 # If we're using GNU nm, then we don't want the "-C" option.
8810 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8811 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8812 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'
8814 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'
8816 aix_use_runtimelinking=no
8818 # Test if we are trying to use run time linking or normal
8819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8820 # need to do runtime linking.
8821 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8822 for ld_flag in $LDFLAGS; do
8823 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8824 aix_use_runtimelinking=yes
8830 exp_sym_flag='-bexport'
8831 no_entry_flag='-bnoentry'
8834 # When large executables or shared objects are built, AIX ld can
8835 # have problems creating the table of contents. If linking a library
8836 # or program results in "error TOC overflow" add -mminimal-toc to
8837 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8838 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8842 hardcode_libdir_separator=':'
8843 link_all_deplibs=yes
8845 if test "$GCC" = yes; then
8846 case $host_os in aix4.012|aix4.012.*)
8847 # We only want to do this on AIX 4.2 and lower, the check
8848 # below for broken collect2 doesn't work under 4.3+
8849 collect2name=`${CC} -print-prog-name=collect2`
8850 if test -f "$collect2name" && \
8851 strings "$collect2name" | grep resolve_lib_name >/dev/null
8853 # We have reworked collect2
8856 # We have old collect2
8857 hardcode_direct=unsupported
8858 # It fails to find uninstalled libraries when the uninstalled
8859 # path is not listed in the libpath. Setting hardcode_minus_L
8860 # to unsupported forces relinking
8861 hardcode_minus_L=yes
8862 hardcode_libdir_flag_spec='-L$libdir'
8863 hardcode_libdir_separator=
8866 shared_flag='-shared'
8869 if test "$host_cpu" = ia64; then
8870 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8871 # chokes on -Wl,-G. The following line is correct:
8874 if test "$aix_use_runtimelinking" = yes; then
8875 shared_flag='${wl}-G'
8877 shared_flag='${wl}-bM:SRE'
8882 # It seems that -bexpall does not export symbols beginning with
8883 # underscore (_), so it is better to generate a list of symbols to export.
8884 always_export_symbols=yes
8885 if test "$aix_use_runtimelinking" = yes; then
8886 # Warning - without using the other runtime loading flags (-brtl),
8887 # -berok will link without error, but may produce a broken library.
8888 allow_undefined_flag='-berok'
8889 # Determine the default libpath from the value encoded in an empty executable.
8890 cat >conftest.$ac_ext <<_ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8905 rm -f conftest.$ac_objext conftest$ac_exeext
8906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8907 (eval $ac_link) 2>conftest.er1
8909 grep -v '^ *+' conftest.er1 >conftest.err
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8913 (exit $ac_status); } &&
8914 { ac_try='test -z "$ac_c_werror_flag"
8915 || test ! -s conftest.err'
8916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 (exit $ac_status); }; } &&
8921 { ac_try='test -s conftest$ac_exeext'
8922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); }; }; then
8928 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8930 # Check for a 64-bit object if we didn't find anything.
8931 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; }
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8938 rm -f conftest.err conftest.$ac_objext \
8939 conftest$ac_exeext conftest.$ac_ext
8940 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8942 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8943 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"
8945 if test "$host_cpu" = ia64; then
8946 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8947 allow_undefined_flag="-z nodefs"
8948 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"
8950 # Determine the default libpath from the value encoded in an empty executable.
8951 cat >conftest.$ac_ext <<_ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8970 grep -v '^ *+' conftest.er1 >conftest.err
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag"
8976 || test ! -s conftest.err'
8977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest$ac_exeext'
8983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987 (exit $ac_status); }; }; then
8989 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8991 # Check for a 64-bit object if we didn't find anything.
8992 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; }
8995 echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8999 rm -f conftest.err conftest.$ac_objext \
9000 conftest$ac_exeext conftest.$ac_ext
9001 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9004 # Warning - without using the other run time loading flags,
9005 # -berok will link without error, but may produce a broken library.
9006 no_undefined_flag=' ${wl}-bernotok'
9007 allow_undefined_flag=' ${wl}-berok'
9008 # -bexpall does not export symbols beginning with underscore (_)
9009 always_export_symbols=yes
9010 # Exported symbols can be pulled into shared objects from archives
9011 whole_archive_flag_spec=' '
9012 archive_cmds_need_lc=yes
9013 # This is similar to how AIX traditionally builds it's shared libraries.
9014 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'
9020 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)'
9021 hardcode_libdir_flag_spec='-L$libdir'
9022 hardcode_minus_L=yes
9023 # see comment about different semantics on the GNU ld section
9028 export_dynamic_flag_spec=-rdynamic
9031 cygwin* | mingw* | pw32*)
9032 # When not using gcc, we currently assume that we are using
9033 # Microsoft Visual C++.
9034 # hardcode_libdir_flag_spec is actually meaningless, as there is
9035 # no search path for DLLs.
9036 hardcode_libdir_flag_spec=' '
9037 allow_undefined_flag=unsupported
9038 # Tell ltmain to make .lib files, not .a files.
9040 # Tell ltmain to make .dll files, not .so files.
9042 # FIXME: Setting linknames here is a bad hack.
9043 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9044 # The linker will automatically build a .lib file if we build a DLL.
9045 old_archive_From_new_cmds='true'
9046 # FIXME: Should let the user specify the lib program.
9047 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9048 fix_srcfile_path='`cygpath -w "$srcfile"`'
9049 enable_shared_with_static_runtimes=yes
9052 darwin* | rhapsody*)
9053 if test "$GXX" = yes ; then
9054 archive_cmds_need_lc=no
9056 rhapsody* | darwin1.[012])
9057 allow_undefined_flag='-undefined suppress'
9060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9061 allow_undefined_flag='-flat_namespace -undefined suppress'
9063 case ${MACOSX_DEPLOYMENT_TARGET} in
9065 allow_undefined_flag='-flat_namespace -undefined suppress'
9068 allow_undefined_flag='-undefined dynamic_lookup'
9074 lt_int_apple_cc_single_mod=no
9075 output_verbose_link_cmd='echo'
9076 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9077 lt_int_apple_cc_single_mod=yes
9079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9080 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9082 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9084 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9085 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9086 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9087 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9089 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9091 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}'
9093 hardcode_automatic=yes
9094 hardcode_shlibpath_var=unsupported
9095 whole_archive_flag_spec='-all_load $convenience'
9096 link_all_deplibs=yes
9103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9104 hardcode_libdir_flag_spec='-L$libdir'
9105 hardcode_shlibpath_var=no
9112 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9113 # support. Future versions do this automatically, but an explicit c++rt0.o
9114 # does not break anything, and helps significantly (at the cost of a little
9117 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9118 hardcode_libdir_flag_spec='-R$libdir'
9120 hardcode_shlibpath_var=no
9123 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9125 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9127 hardcode_minus_L=yes
9128 hardcode_shlibpath_var=no
9131 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9132 freebsd* | kfreebsd*-gnu)
9133 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9134 hardcode_libdir_flag_spec='-R$libdir'
9136 hardcode_shlibpath_var=no
9140 if test "$GCC" = yes; then
9141 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'
9143 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'
9145 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9146 hardcode_libdir_separator=:
9149 # hardcode_minus_L: Not really in the search PATH,
9150 # but as the default location of the library.
9151 hardcode_minus_L=yes
9152 export_dynamic_flag_spec='${wl}-E'
9156 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9159 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9162 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9168 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9171 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9175 if test "$with_gnu_ld" = no; then
9178 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9179 hardcode_libdir_flag_spec_ld='+b $libdir'
9180 hardcode_libdir_separator=:
9182 hardcode_shlibpath_var=no
9185 hardcode_libdir_flag_spec='-L$libdir'
9187 hardcode_shlibpath_var=no
9189 # hardcode_minus_L: Not really in the search PATH,
9190 # but as the default location of the library.
9191 hardcode_minus_L=yes
9194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9195 hardcode_libdir_separator=:
9197 export_dynamic_flag_spec='${wl}-E'
9199 # hardcode_minus_L: Not really in the search PATH,
9200 # but as the default location of the library.
9201 hardcode_minus_L=yes
9207 irix5* | irix6* | nonstopux*)
9208 if test "$GCC" = yes; then
9209 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'
9211 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'
9212 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9215 hardcode_libdir_separator=:
9216 link_all_deplibs=yes
9220 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9221 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9223 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9225 hardcode_libdir_flag_spec='-R$libdir'
9227 hardcode_shlibpath_var=no
9231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9233 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9234 hardcode_libdir_separator=:
9235 hardcode_shlibpath_var=no
9240 hardcode_shlibpath_var=no
9241 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9242 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9243 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244 export_dynamic_flag_spec='${wl}-E'
9247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9248 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249 hardcode_libdir_flag_spec='-R$libdir'
9252 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9260 hardcode_libdir_flag_spec='-L$libdir'
9261 hardcode_minus_L=yes
9262 allow_undefined_flag=unsupported
9263 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'
9264 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9268 if test "$GCC" = yes; then
9269 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270 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'
9272 allow_undefined_flag=' -expect_unresolved \*'
9273 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'
9275 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276 hardcode_libdir_separator=:
9279 osf4* | osf5*) # as osf3* with the addition of -msym flag
9280 if test "$GCC" = yes; then
9281 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282 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'
9283 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9285 allow_undefined_flag=' -expect_unresolved \*'
9286 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'
9287 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9288 $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'
9290 # Both c and cxx compiler support -rpath directly
9291 hardcode_libdir_flag_spec='-rpath $libdir'
9293 hardcode_libdir_separator=:
9297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9298 hardcode_shlibpath_var=no
9299 export_dynamic_flag_spec='${wl}-Bexport'
9300 runpath_var=LD_RUN_PATH
9301 hardcode_runpath_var=yes
9305 no_undefined_flag=' -z text'
9306 if test "$GCC" = yes; then
9307 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9308 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9309 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9311 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9312 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9313 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9315 hardcode_libdir_flag_spec='-R$libdir'
9316 hardcode_shlibpath_var=no
9318 solaris2.[0-5] | solaris2.[0-5].*) ;;
9319 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9320 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9322 link_all_deplibs=yes
9326 if test "x$host_vendor" = xsequent; then
9327 # Use $CC to link under sequent, because it throws in some extra .o
9328 # files that make .init and .fini sections work.
9329 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9331 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9333 hardcode_libdir_flag_spec='-L$libdir'
9335 hardcode_minus_L=yes
9336 hardcode_shlibpath_var=no
9340 case $host_vendor in
9342 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9343 hardcode_direct=yes # is this really true???
9346 ## LD is ld it makes a PLAMLIB
9347 ## CC just makes a GrossModule.
9348 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9349 reload_cmds='$CC -r -o $output$reload_objs'
9353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9357 runpath_var='LD_RUN_PATH'
9358 hardcode_shlibpath_var=no
9362 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9363 hardcode_shlibpath_var=no
9364 export_dynamic_flag_spec='-Bexport'
9368 if test -d /usr/nec; then
9369 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9370 hardcode_shlibpath_var=no
9371 runpath_var=LD_RUN_PATH
9372 hardcode_runpath_var=yes
9378 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9381 hardcode_shlibpath_var=no
9382 hardcode_runpath_var=yes
9383 runpath_var=LD_RUN_PATH
9386 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9387 no_undefined_flag='${wl}-z ${wl}text'
9388 if test "$GCC" = yes; then
9389 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9391 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9393 runpath_var='LD_RUN_PATH'
9394 hardcode_shlibpath_var=no
9398 no_undefined_flag=' -z text'
9399 # $CC -shared without GNU ld will not create a library from C++
9400 # object files and a static libstdc++, better avoid it by now
9401 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9403 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9404 hardcode_libdir_flag_spec=
9405 hardcode_shlibpath_var=no
9406 runpath_var='LD_RUN_PATH'
9410 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_shlibpath_var=no
9421 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9422 echo "${ECHO_T}$ld_shlibs" >&6
9423 test "$ld_shlibs" = no && can_build_shared=no
9425 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9426 if test "$GCC" = yes; then
9427 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9431 # Do we need to explicitly link libc?
9433 case "x$archive_cmds_need_lc" in
9435 # Assume -lc should be added
9436 archive_cmds_need_lc=yes
9438 if test "$enable_shared" = yes && test "$GCC" = yes; then
9439 case $archive_cmds in
9441 # FIXME: we may have to deal with multi-command sequences.
9444 # Test whether the compiler implicitly links with -lc since on some
9445 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9446 # to ld, don't add -lc before -lgcc.
9447 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9448 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9450 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9452 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9453 (eval $ac_compile) 2>&5
9455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456 (exit $ac_status); } 2>conftest.err; then
9459 libobjs=conftest.$ac_objext
9461 wl=$lt_prog_compiler_wl
9467 lt_save_allow_undefined_flag=$allow_undefined_flag
9468 allow_undefined_flag=
9469 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9470 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }
9475 archive_cmds_need_lc=no
9477 archive_cmds_need_lc=yes
9479 allow_undefined_flag=$lt_save_allow_undefined_flag
9481 cat conftest.err 1>&5
9484 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9485 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9492 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9493 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9495 libname_spec='lib$name'
9503 shlibpath_overrides_runpath=unknown
9505 dynamic_linker="$host_os ld.so"
9506 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9507 if test "$GCC" = yes; then
9508 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9509 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9510 # if the path contains ";" then we assume it to be the separator
9511 # otherwise default to the standard path separator (i.e. ":") - it is
9512 # assumed that no part of a normal pathname contains ";" but that should
9513 # okay in the real world where ";" in dirpaths is itself problematic.
9514 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9516 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9519 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9521 need_lib_prefix=unknown
9522 hardcode_into_libs=no
9524 # when you set need_version to no, make sure it does not cause -set_version
9525 # flags to be left without arguments
9526 need_version=unknown
9531 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9532 shlibpath_var=LIBPATH
9534 # AIX 3 has no versioning support, so we append a major version to the name.
9535 soname_spec='${libname}${release}${shared_ext}$major'
9542 hardcode_into_libs=yes
9543 if test "$host_cpu" = ia64; then
9544 # AIX 5 supports IA64
9545 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9546 shlibpath_var=LD_LIBRARY_PATH
9548 # With GCC up to 2.95.x, collect2 would create an import file
9549 # for dependence libraries. The import file would start with
9550 # the line `#! .'. This would cause the generated library to
9551 # depend on `.', always an invalid library. This was fixed in
9552 # development snapshots of GCC prior to 3.0.
9554 aix4 | aix4.[01] | aix4.[01].*)
9555 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9557 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9564 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9565 # soname into executable. Probably we can add versioning support to
9566 # collect2, so additional links can be useful in future.
9567 if test "$aix_use_runtimelinking" = yes; then
9568 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9569 # instead of lib<name>.a to let people know that these are not
9570 # typical AIX shared libraries.
9571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9573 # We preserve .a as extension for shared libraries through AIX4.2
9574 # and later when we are not doing run time linking.
9575 library_names_spec='${libname}${release}.a $libname.a'
9576 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LIBPATH
9583 library_names_spec='$libname.ixlibrary $libname.a'
9584 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9585 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'
9589 library_names_spec='${libname}${shared_ext}'
9590 dynamic_linker="$host_os ld.so"
9591 shlibpath_var=LIBRARY_PATH
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9600 shlibpath_var=LD_LIBRARY_PATH
9601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9603 # the default ld.so.conf also contains /usr/contrib/lib and
9604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9605 # libtool to hard-code these into programs
9608 cygwin* | mingw* | pw32*)
9609 version_type=windows
9614 case $GCC,$host_os in
9615 yes,cygwin* | yes,mingw* | yes,pw32*)
9616 library_names_spec='$libname.dll.a'
9617 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9618 postinstall_cmds='base_file=`basename \${file}`~
9619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9620 dldir=$destdir/`dirname \$dlpath`~
9621 test -d \$dldir || mkdir -p \$dldir~
9622 $install_prog $dir/$dlname \$dldir/$dlname'
9623 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9624 dlpath=$dir/\$dldll~
9626 shlibpath_overrides_runpath=yes
9630 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9631 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9632 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9635 # MinGW DLLs use traditional 'lib' prefix
9636 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9637 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9638 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9639 # It is most probably a Windows format PATH printed by
9640 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9641 # path with ; separators, and with drive letters. We can handle the
9642 # drive letters (cygwin fileutils understands them), so leave them,
9643 # especially as we might pass files found there to a mingw objdump,
9644 # which wouldn't understand a cygwinified path. Ahh.
9645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9651 # pw32 DLLs use 'pw' prefix rather than 'lib'
9652 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9658 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9661 dynamic_linker='Win32 ld.exe'
9662 # FIXME: first we should search . and the directory the executable is in
9666 darwin* | rhapsody*)
9667 dynamic_linker="$host_os dyld"
9671 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9672 soname_spec='${libname}${release}${major}$shared_ext'
9673 shlibpath_overrides_runpath=yes
9674 shlibpath_var=DYLD_LIBRARY_PATH
9675 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9676 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9677 if test "$GCC" = yes; then
9678 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"`
9680 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9682 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9690 soname_spec='${libname}${release}${shared_ext}$major'
9691 shlibpath_var=LD_LIBRARY_PATH
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9703 soname_spec='${libname}${release}${shared_ext}$major'
9704 shlibpath_var=LD_LIBRARY_PATH
9705 shlibpath_overrides_runpath=no
9706 hardcode_into_libs=yes
9707 dynamic_linker='GNU ld.so'
9711 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9712 version_type=freebsd-$objformat
9713 case $version_type in
9715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9720 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9724 shlibpath_var=LD_LIBRARY_PATH
9727 shlibpath_overrides_runpath=yes
9729 freebsd3.01* | freebsdelf3.01*)
9730 shlibpath_overrides_runpath=yes
9731 hardcode_into_libs=yes
9734 shlibpath_overrides_runpath=no
9735 hardcode_into_libs=yes
9744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9745 soname_spec='${libname}${release}${shared_ext}$major'
9746 shlibpath_var=LD_LIBRARY_PATH
9747 hardcode_into_libs=yes
9750 hpux9* | hpux10* | hpux11*)
9751 # Give a soname corresponding to the major version so that dld.sl refuses to
9752 # link against other versions.
9759 hardcode_into_libs=yes
9760 dynamic_linker="$host_os dld.so"
9761 shlibpath_var=LD_LIBRARY_PATH
9762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9764 soname_spec='${libname}${release}${shared_ext}$major'
9765 if test "X$HPUX_IA64_MODE" = X32; then
9766 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9768 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9770 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9774 hardcode_into_libs=yes
9775 dynamic_linker="$host_os dld.sl"
9776 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9777 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779 soname_spec='${libname}${release}${shared_ext}$major'
9780 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9781 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9785 dynamic_linker="$host_os dld.sl"
9786 shlibpath_var=SHLIB_PATH
9787 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9789 soname_spec='${libname}${release}${shared_ext}$major'
9792 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9793 postinstall_cmds='chmod 555 $lib'
9796 irix5* | irix6* | nonstopux*)
9798 nonstopux*) version_type=nonstopux ;;
9800 if test "$lt_cv_prog_gnu_ld" = yes; then
9808 soname_spec='${libname}${release}${shared_ext}$major'
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9811 irix5* | nonstopux*)
9815 case $LD in # libtool.m4 will add one of these switches to LD
9816 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9817 libsuff= shlibsuff= libmagic=32-bit;;
9818 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9819 libsuff=32 shlibsuff=N32 libmagic=N32;;
9820 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9821 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9822 *) libsuff= shlibsuff= libmagic=never-match;;
9826 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9827 shlibpath_overrides_runpath=no
9828 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9829 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9830 hardcode_into_libs=yes
9833 # No shared lib support for Linux oldld, aout, or coff.
9834 linux*oldld* | linux*aout* | linux*coff*)
9838 # This must be Linux ELF.
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 soname_spec='${libname}${release}${shared_ext}$major'
9845 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9846 shlibpath_var=LD_LIBRARY_PATH
9847 shlibpath_overrides_runpath=no
9848 # This implies no fast_install, which is unacceptable.
9849 # Some rework will be needed to allow for fast_install
9850 # before this can be enabled.
9851 hardcode_into_libs=yes
9853 # find out which ABI we are using
9856 x86_64*|s390x*|powerpc64*)
9857 echo '#line 9857 "configure"' > conftest.$ac_ext
9858 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9859 (eval $ac_compile) 2>&5
9861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); }; then
9863 case `/usr/bin/file conftest.$ac_objext` in
9866 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9874 # Append ld.so.conf contents to the search path
9875 if test -f /etc/ld.so.conf; then
9876 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9877 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9880 # We used to test for /lib/ld.so.1 and disable shared libraries on
9881 # powerpc, because MkLinux only supported shared libraries with the
9882 # GNU dynamic linker. Since this was broken with cross compilers,
9883 # most powerpc-linux boxes support dynamic linking these days and
9884 # people can always --disable-shared, the test was removed, and we
9885 # assume the GNU/Linux dynamic linker is in use.
9886 dynamic_linker='GNU/Linux ld.so'
9893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9894 soname_spec='${libname}${release}${shared_ext}$major'
9895 shlibpath_var=LD_LIBRARY_PATH
9896 shlibpath_overrides_runpath=no
9897 hardcode_into_libs=yes
9898 dynamic_linker='GNU ld.so'
9905 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9908 dynamic_linker='NetBSD (a.out) ld.so'
9910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9911 soname_spec='${libname}${release}${shared_ext}$major'
9912 dynamic_linker='NetBSD ld.elf_so'
9914 shlibpath_var=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath=yes
9916 hardcode_into_libs=yes
9921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9922 shlibpath_var=LD_LIBRARY_PATH
9923 shlibpath_overrides_runpath=yes
9930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9931 soname_spec='${libname}${release}${shared_ext}$major'
9932 shlibpath_var=LD_LIBRARY_PATH
9933 shlibpath_overrides_runpath=yes
9940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9941 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9942 shlibpath_var=LD_LIBRARY_PATH
9943 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9945 openbsd2.[89] | openbsd2.[89].*)
9946 shlibpath_overrides_runpath=no
9949 shlibpath_overrides_runpath=yes
9953 shlibpath_overrides_runpath=yes
9958 libname_spec='$name'
9961 library_names_spec='$libname${shared_ext} $libname.a'
9962 dynamic_linker='OS/2 ld.exe'
9963 shlibpath_var=LIBPATH
9966 osf3* | osf4* | osf5*)
9970 soname_spec='${libname}${release}${shared_ext}$major'
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9974 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9979 soname_spec='${libname}${release}${shared_ext}$major'
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 shlibpath_var=LD_LIBRARY_PATH
9988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989 soname_spec='${libname}${release}${shared_ext}$major'
9990 shlibpath_var=LD_LIBRARY_PATH
9991 shlibpath_overrides_runpath=yes
9992 hardcode_into_libs=yes
9993 # ldd complains unless libraries are executable
9994 postinstall_cmds='chmod +x $lib'
9999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10000 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10001 shlibpath_var=LD_LIBRARY_PATH
10002 shlibpath_overrides_runpath=yes
10003 if test "$with_gnu_ld" = yes; then
10009 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10012 soname_spec='${libname}${release}${shared_ext}$major'
10013 shlibpath_var=LD_LIBRARY_PATH
10014 case $host_vendor in
10016 shlibpath_overrides_runpath=no
10018 export_dynamic_flag_spec='${wl}-Blargedynsym'
10019 runpath_var=LD_RUN_PATH
10027 shlibpath_overrides_runpath=no
10028 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10034 if test -d /usr/nec ;then
10036 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10037 soname_spec='$libname${shared_ext}.$major'
10038 shlibpath_var=LD_LIBRARY_PATH
10044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10045 soname_spec='${libname}${release}${shared_ext}$major'
10046 shlibpath_var=LD_LIBRARY_PATH
10053 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10054 echo "${ECHO_T}$dynamic_linker" >&6
10055 test "$dynamic_linker" = no && can_build_shared=no
10057 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10058 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10060 if test -n "$hardcode_libdir_flag_spec" || \
10061 test -n "$runpath_var " || \
10062 test "X$hardcode_automatic"="Xyes" ; then
10064 # We can hardcode non-existant directories.
10065 if test "$hardcode_direct" != no &&
10066 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10067 # have to relink, otherwise we might link with an installed library
10068 # when we should be linking with a yet-to-be-installed one
10069 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10070 test "$hardcode_minus_L" != no; then
10071 # Linking always hardcodes the temporary library directory.
10072 hardcode_action=relink
10074 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10075 hardcode_action=immediate
10078 # We cannot hardcode anything, or else we can only hardcode existing
10080 hardcode_action=unsupported
10082 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10083 echo "${ECHO_T}$hardcode_action" >&6
10085 if test "$hardcode_action" = relink; then
10086 # Fast installation is not supported
10087 enable_fast_install=no
10088 elif test "$shlibpath_overrides_runpath" = yes ||
10089 test "$enable_shared" = no; then
10090 # Fast installation is not necessary
10091 enable_fast_install=needless
10096 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10097 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10098 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10099 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10100 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10101 echo "$as_me:$LINENO: result: yes" >&5
10102 echo "${ECHO_T}yes" >&6
10104 # FIXME - insert some real tests, host_os isn't really good enough
10107 if test -n "$STRIP" ; then
10108 striplib="$STRIP -x"
10109 echo "$as_me:$LINENO: result: yes" >&5
10110 echo "${ECHO_T}yes" >&6
10112 echo "$as_me:$LINENO: result: no" >&5
10113 echo "${ECHO_T}no" >&6
10117 echo "$as_me:$LINENO: result: no" >&5
10118 echo "${ECHO_T}no" >&6
10123 if test "x$enable_dlopen" != xyes; then
10124 enable_dlopen=unknown
10125 enable_dlopen_self=unknown
10126 enable_dlopen_self_static=unknown
10133 lt_cv_dlopen="load_add_on"
10135 lt_cv_dlopen_self=yes
10139 lt_cv_dlopen="LoadLibrary"
10144 lt_cv_dlopen="dlopen"
10149 # if libdl is installed we need to link against it
10150 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10153 echo $ECHO_N "(cached) $ECHO_C" >&6
10155 ac_check_lib_save_LIBS=$LIBS
10157 cat >conftest.$ac_ext <<_ACEOF
10160 cat confdefs.h >>conftest.$ac_ext
10161 cat >>conftest.$ac_ext <<_ACEOF
10162 /* end confdefs.h. */
10164 /* Override any gcc2 internal prototype to avoid an error. */
10168 /* We use char because int might match the return type of a gcc2
10169 builtin and then its argument prototype would still apply. */
10179 rm -f conftest.$ac_objext conftest$ac_exeext
10180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10181 (eval $ac_link) 2>conftest.er1
10183 grep -v '^ *+' conftest.er1 >conftest.err
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } &&
10188 { ac_try='test -z "$ac_c_werror_flag"
10189 || test ! -s conftest.err'
10190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10191 (eval $ac_try) 2>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); }; } &&
10195 { ac_try='test -s conftest$ac_exeext'
10196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10197 (eval $ac_try) 2>&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); }; }; then
10201 ac_cv_lib_dl_dlopen=yes
10203 echo "$as_me: failed program was:" >&5
10204 sed 's/^/| /' conftest.$ac_ext >&5
10206 ac_cv_lib_dl_dlopen=no
10208 rm -f conftest.err conftest.$ac_objext \
10209 conftest$ac_exeext conftest.$ac_ext
10210 LIBS=$ac_check_lib_save_LIBS
10212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10214 if test $ac_cv_lib_dl_dlopen = yes; then
10215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10218 lt_cv_dlopen="dyld"
10220 lt_cv_dlopen_self=yes
10227 echo "$as_me:$LINENO: checking for shl_load" >&5
10228 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10229 if test "${ac_cv_func_shl_load+set}" = set; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 cat >conftest.$ac_ext <<_ACEOF
10235 cat confdefs.h >>conftest.$ac_ext
10236 cat >>conftest.$ac_ext <<_ACEOF
10237 /* end confdefs.h. */
10238 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10239 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10240 #define shl_load innocuous_shl_load
10242 /* System header to define __stub macros and hopefully few prototypes,
10243 which can conflict with char shl_load (); below.
10244 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10245 <limits.h> exists even on freestanding compilers. */
10248 # include <limits.h>
10250 # include <assert.h>
10255 /* Override any gcc2 internal prototype to avoid an error. */
10260 /* We use char because int might match the return type of a gcc2
10261 builtin and then its argument prototype would still apply. */
10263 /* The GNU C library defines this for functions which it implements
10264 to always fail with ENOSYS. Some functions are actually named
10265 something starting with __ and the normal name is an alias. */
10266 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10269 char (*f) () = shl_load;
10278 return f != shl_load;
10283 rm -f conftest.$ac_objext conftest$ac_exeext
10284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10285 (eval $ac_link) 2>conftest.er1
10287 grep -v '^ *+' conftest.er1 >conftest.err
10289 cat conftest.err >&5
10290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10291 (exit $ac_status); } &&
10292 { ac_try='test -z "$ac_c_werror_flag"
10293 || test ! -s conftest.err'
10294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10295 (eval $ac_try) 2>&5
10297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10298 (exit $ac_status); }; } &&
10299 { ac_try='test -s conftest$ac_exeext'
10300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10301 (eval $ac_try) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); }; }; then
10305 ac_cv_func_shl_load=yes
10307 echo "$as_me: failed program was:" >&5
10308 sed 's/^/| /' conftest.$ac_ext >&5
10310 ac_cv_func_shl_load=no
10312 rm -f conftest.err conftest.$ac_objext \
10313 conftest$ac_exeext conftest.$ac_ext
10315 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10316 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10317 if test $ac_cv_func_shl_load = yes; then
10318 lt_cv_dlopen="shl_load"
10320 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10321 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10322 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 ac_check_lib_save_LIBS=$LIBS
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10334 /* Override any gcc2 internal prototype to avoid an error. */
10338 /* We use char because int might match the return type of a gcc2
10339 builtin and then its argument prototype would still apply. */
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10351 (eval $ac_link) 2>conftest.er1
10353 grep -v '^ *+' conftest.er1 >conftest.err
10355 cat conftest.err >&5
10356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10357 (exit $ac_status); } &&
10358 { ac_try='test -z "$ac_c_werror_flag"
10359 || test ! -s conftest.err'
10360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10361 (eval $ac_try) 2>&5
10363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10364 (exit $ac_status); }; } &&
10365 { ac_try='test -s conftest$ac_exeext'
10366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10367 (eval $ac_try) 2>&5
10369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10370 (exit $ac_status); }; }; then
10371 ac_cv_lib_dld_shl_load=yes
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10376 ac_cv_lib_dld_shl_load=no
10378 rm -f conftest.err conftest.$ac_objext \
10379 conftest$ac_exeext conftest.$ac_ext
10380 LIBS=$ac_check_lib_save_LIBS
10382 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10383 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10384 if test $ac_cv_lib_dld_shl_load = yes; then
10385 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10387 echo "$as_me:$LINENO: checking for dlopen" >&5
10388 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10389 if test "${ac_cv_func_dlopen+set}" = set; then
10390 echo $ECHO_N "(cached) $ECHO_C" >&6
10392 cat >conftest.$ac_ext <<_ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10399 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10400 #define dlopen innocuous_dlopen
10402 /* System header to define __stub macros and hopefully few prototypes,
10403 which can conflict with char dlopen (); below.
10404 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10405 <limits.h> exists even on freestanding compilers. */
10408 # include <limits.h>
10410 # include <assert.h>
10415 /* Override any gcc2 internal prototype to avoid an error. */
10420 /* We use char because int might match the return type of a gcc2
10421 builtin and then its argument prototype would still apply. */
10423 /* The GNU C library defines this for functions which it implements
10424 to always fail with ENOSYS. Some functions are actually named
10425 something starting with __ and the normal name is an alias. */
10426 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10429 char (*f) () = dlopen;
10438 return f != dlopen;
10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10445 (eval $ac_link) 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } &&
10452 { ac_try='test -z "$ac_c_werror_flag"
10453 || test ! -s conftest.err'
10454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10455 (eval $ac_try) 2>&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10458 (exit $ac_status); }; } &&
10459 { ac_try='test -s conftest$ac_exeext'
10460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10461 (eval $ac_try) 2>&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_func_dlopen=yes
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10470 ac_cv_func_dlopen=no
10472 rm -f conftest.err conftest.$ac_objext \
10473 conftest$ac_exeext conftest.$ac_ext
10475 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10476 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10477 if test $ac_cv_func_dlopen = yes; then
10478 lt_cv_dlopen="dlopen"
10480 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10481 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10482 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 ac_check_lib_save_LIBS=$LIBS
10487 cat >conftest.$ac_ext <<_ACEOF
10490 cat confdefs.h >>conftest.$ac_ext
10491 cat >>conftest.$ac_ext <<_ACEOF
10492 /* end confdefs.h. */
10494 /* Override any gcc2 internal prototype to avoid an error. */
10498 /* We use char because int might match the return type of a gcc2
10499 builtin and then its argument prototype would still apply. */
10509 rm -f conftest.$ac_objext conftest$ac_exeext
10510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10511 (eval $ac_link) 2>conftest.er1
10513 grep -v '^ *+' conftest.er1 >conftest.err
10515 cat conftest.err >&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } &&
10518 { ac_try='test -z "$ac_c_werror_flag"
10519 || test ! -s conftest.err'
10520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10521 (eval $ac_try) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); }; } &&
10525 { ac_try='test -s conftest$ac_exeext'
10526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10527 (eval $ac_try) 2>&5
10529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10530 (exit $ac_status); }; }; then
10531 ac_cv_lib_dl_dlopen=yes
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.$ac_ext >&5
10536 ac_cv_lib_dl_dlopen=no
10538 rm -f conftest.err conftest.$ac_objext \
10539 conftest$ac_exeext conftest.$ac_ext
10540 LIBS=$ac_check_lib_save_LIBS
10542 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10543 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10544 if test $ac_cv_lib_dl_dlopen = yes; then
10545 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10547 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10548 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10549 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10550 echo $ECHO_N "(cached) $ECHO_C" >&6
10552 ac_check_lib_save_LIBS=$LIBS
10553 LIBS="-lsvld $LIBS"
10554 cat >conftest.$ac_ext <<_ACEOF
10557 cat confdefs.h >>conftest.$ac_ext
10558 cat >>conftest.$ac_ext <<_ACEOF
10559 /* end confdefs.h. */
10561 /* Override any gcc2 internal prototype to avoid an error. */
10565 /* We use char because int might match the return type of a gcc2
10566 builtin and then its argument prototype would still apply. */
10576 rm -f conftest.$ac_objext conftest$ac_exeext
10577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10578 (eval $ac_link) 2>conftest.er1
10580 grep -v '^ *+' conftest.er1 >conftest.err
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } &&
10585 { ac_try='test -z "$ac_c_werror_flag"
10586 || test ! -s conftest.err'
10587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10588 (eval $ac_try) 2>&5
10590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10591 (exit $ac_status); }; } &&
10592 { ac_try='test -s conftest$ac_exeext'
10593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10594 (eval $ac_try) 2>&5
10596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10597 (exit $ac_status); }; }; then
10598 ac_cv_lib_svld_dlopen=yes
10600 echo "$as_me: failed program was:" >&5
10601 sed 's/^/| /' conftest.$ac_ext >&5
10603 ac_cv_lib_svld_dlopen=no
10605 rm -f conftest.err conftest.$ac_objext \
10606 conftest$ac_exeext conftest.$ac_ext
10607 LIBS=$ac_check_lib_save_LIBS
10609 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10610 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10611 if test $ac_cv_lib_svld_dlopen = yes; then
10612 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10614 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10615 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10616 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10617 echo $ECHO_N "(cached) $ECHO_C" >&6
10619 ac_check_lib_save_LIBS=$LIBS
10621 cat >conftest.$ac_ext <<_ACEOF
10624 cat confdefs.h >>conftest.$ac_ext
10625 cat >>conftest.$ac_ext <<_ACEOF
10626 /* end confdefs.h. */
10628 /* Override any gcc2 internal prototype to avoid an error. */
10632 /* We use char because int might match the return type of a gcc2
10633 builtin and then its argument prototype would still apply. */
10643 rm -f conftest.$ac_objext conftest$ac_exeext
10644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10645 (eval $ac_link) 2>conftest.er1
10647 grep -v '^ *+' conftest.er1 >conftest.err
10649 cat conftest.err >&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); } &&
10652 { ac_try='test -z "$ac_c_werror_flag"
10653 || test ! -s conftest.err'
10654 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10655 (eval $ac_try) 2>&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); }; } &&
10659 { ac_try='test -s conftest$ac_exeext'
10660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10661 (eval $ac_try) 2>&5
10663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10664 (exit $ac_status); }; }; then
10665 ac_cv_lib_dld_dld_link=yes
10667 echo "$as_me: failed program was:" >&5
10668 sed 's/^/| /' conftest.$ac_ext >&5
10670 ac_cv_lib_dld_dld_link=no
10672 rm -f conftest.err conftest.$ac_objext \
10673 conftest$ac_exeext conftest.$ac_ext
10674 LIBS=$ac_check_lib_save_LIBS
10676 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10677 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10678 if test $ac_cv_lib_dld_dld_link = yes; then
10679 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10700 if test "x$lt_cv_dlopen" != xno; then
10706 case $lt_cv_dlopen in
10708 save_CPPFLAGS="$CPPFLAGS"
10709 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10711 save_LDFLAGS="$LDFLAGS"
10712 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10715 LIBS="$lt_cv_dlopen_libs $LIBS"
10717 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10718 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10719 if test "${lt_cv_dlopen_self+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
10722 if test "$cross_compiling" = yes; then :
10723 lt_cv_dlopen_self=cross
10725 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10726 lt_status=$lt_dlunknown
10727 cat > conftest.$ac_ext <<EOF
10728 #line 10728 "configure"
10729 #include "confdefs.h"
10738 # define LT_DLGLOBAL RTLD_GLOBAL
10741 # define LT_DLGLOBAL DL_GLOBAL
10743 # define LT_DLGLOBAL 0
10747 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10748 find out it does not work in some platform. */
10749 #ifndef LT_DLLAZY_OR_NOW
10751 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10754 # define LT_DLLAZY_OR_NOW DL_LAZY
10757 # define LT_DLLAZY_OR_NOW RTLD_NOW
10760 # define LT_DLLAZY_OR_NOW DL_NOW
10762 # define LT_DLLAZY_OR_NOW 0
10770 extern "C" void exit (int);
10773 void fnord() { int i=42;}
10776 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10777 int status = $lt_dlunknown;
10781 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10782 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10783 /* dlclose (self); */
10789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10790 (eval $ac_link) 2>&5
10792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10793 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10794 (./conftest; exit; ) 2>/dev/null
10796 case x$lt_status in
10797 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10798 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10799 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10802 # compilation failed
10803 lt_cv_dlopen_self=no
10810 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10811 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10813 if test "x$lt_cv_dlopen_self" = xyes; then
10814 LDFLAGS="$LDFLAGS $link_static_flag"
10815 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10816 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10817 if test "${lt_cv_dlopen_self_static+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 if test "$cross_compiling" = yes; then :
10821 lt_cv_dlopen_self_static=cross
10823 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10824 lt_status=$lt_dlunknown
10825 cat > conftest.$ac_ext <<EOF
10826 #line 10826 "configure"
10827 #include "confdefs.h"
10836 # define LT_DLGLOBAL RTLD_GLOBAL
10839 # define LT_DLGLOBAL DL_GLOBAL
10841 # define LT_DLGLOBAL 0
10845 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10846 find out it does not work in some platform. */
10847 #ifndef LT_DLLAZY_OR_NOW
10849 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10852 # define LT_DLLAZY_OR_NOW DL_LAZY
10855 # define LT_DLLAZY_OR_NOW RTLD_NOW
10858 # define LT_DLLAZY_OR_NOW DL_NOW
10860 # define LT_DLLAZY_OR_NOW 0
10868 extern "C" void exit (int);
10871 void fnord() { int i=42;}
10874 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10875 int status = $lt_dlunknown;
10879 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10880 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10881 /* dlclose (self); */
10887 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10888 (eval $ac_link) 2>&5
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10892 (./conftest; exit; ) 2>/dev/null
10894 case x$lt_status in
10895 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10896 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10897 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10900 # compilation failed
10901 lt_cv_dlopen_self_static=no
10908 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10909 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10912 CPPFLAGS="$save_CPPFLAGS"
10913 LDFLAGS="$save_LDFLAGS"
10918 case $lt_cv_dlopen_self in
10919 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10920 *) enable_dlopen_self=unknown ;;
10923 case $lt_cv_dlopen_self_static in
10924 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10925 *) enable_dlopen_self_static=unknown ;;
10930 # Report which librarie types wil actually be built
10931 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10932 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10933 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10934 echo "${ECHO_T}$can_build_shared" >&6
10936 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10937 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10938 test "$can_build_shared" = "no" && enable_shared=no
10940 # On AIX, shared libraries and static libraries use the same namespace, and
10941 # are all built from PIC.
10944 test "$enable_shared" = yes && enable_static=no
10945 if test -n "$RANLIB"; then
10946 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10947 postinstall_cmds='$RANLIB $lib'
10952 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10953 test "$enable_shared" = yes && enable_static=no
10956 darwin* | rhapsody*)
10957 if test "$GCC" = yes; then
10958 archive_cmds_need_lc=no
10960 rhapsody* | darwin1.[012])
10961 allow_undefined_flag='-undefined suppress'
10964 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10965 allow_undefined_flag='-flat_namespace -undefined suppress'
10967 case ${MACOSX_DEPLOYMENT_TARGET} in
10969 allow_undefined_flag='-flat_namespace -undefined suppress'
10972 allow_undefined_flag='-undefined dynamic_lookup'
10978 output_verbose_link_cmd='echo'
10979 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
10980 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10981 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10982 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}'
10983 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}'
10985 hardcode_automatic=yes
10986 hardcode_shlibpath_var=unsupported
10987 whole_archive_flag_spec='-all_load $convenience'
10988 link_all_deplibs=yes
10994 echo "$as_me:$LINENO: result: $enable_shared" >&5
10995 echo "${ECHO_T}$enable_shared" >&6
10997 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10998 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
10999 # Make sure either enable_shared or enable_static is yes.
11000 test "$enable_shared" = yes || enable_static=yes
11001 echo "$as_me:$LINENO: result: $enable_static" >&5
11002 echo "${ECHO_T}$enable_static" >&6
11004 # The else clause should only fire when bootstrapping the
11005 # libtool distribution, otherwise you forgot to ship ltmain.sh
11006 # with your package, and you will get complaints that there are
11007 # no rules to generate ltmain.sh.
11008 if test -f "$ltmain"; then
11009 # See if we are running on zsh, and set the options which allow our commands through
11010 # without removal of \ escapes.
11011 if test -n "${ZSH_VERSION+set}" ; then
11012 setopt NO_GLOB_SUBST
11014 # Now quote all the things that may contain metacharacters while being
11015 # careful not to overquote the AC_SUBSTed values. We take copies of the
11016 # variables and quote the copies for generation of the libtool script.
11017 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11019 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11020 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11021 deplibs_check_method reload_flag reload_cmds need_locks \
11022 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11023 lt_cv_sys_global_symbol_to_c_name_address \
11024 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11025 old_postinstall_cmds old_postuninstall_cmds \
11029 lt_prog_compiler_wl \
11030 lt_prog_compiler_pic \
11031 lt_prog_compiler_static \
11032 lt_prog_compiler_no_builtin_flag \
11033 export_dynamic_flag_spec \
11034 thread_safe_flag_spec \
11035 whole_archive_flag_spec \
11036 enable_shared_with_static_runtimes \
11038 old_archive_from_new_cmds \
11043 compiler_lib_search_path \
11045 archive_expsym_cmds \
11047 postuninstall_cmds \
11048 old_archive_from_expsyms_cmds \
11049 allow_undefined_flag \
11050 no_undefined_flag \
11051 export_symbols_cmds \
11052 hardcode_libdir_flag_spec \
11053 hardcode_libdir_flag_spec_ld \
11054 hardcode_libdir_separator \
11055 hardcode_automatic \
11057 module_expsym_cmds \
11058 lt_cv_prog_compiler_c_o \
11060 include_expsyms; do
11063 old_archive_cmds | \
11064 old_archive_from_new_cmds | \
11066 archive_expsym_cmds | \
11068 module_expsym_cmds | \
11069 old_archive_from_expsyms_cmds | \
11070 export_symbols_cmds | \
11071 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11072 postinstall_cmds | postuninstall_cmds | \
11073 old_postinstall_cmds | old_postuninstall_cmds | \
11074 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11075 # Double-quote double-evaled strings.
11076 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11079 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11085 *'\$0 --fallback-echo"')
11086 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11090 cfgfile="${ofile}T"
11091 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11093 { echo "$as_me:$LINENO: creating $ofile" >&5
11094 echo "$as_me: creating $ofile" >&6;}
11096 cat <<__EOF__ >> "$cfgfile"
11099 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11100 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11101 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11103 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11104 # Free Software Foundation, Inc.
11106 # This file is part of GNU Libtool:
11107 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11109 # This program is free software; you can redistribute it and/or modify
11110 # it under the terms of the GNU General Public License as published by
11111 # the Free Software Foundation; either version 2 of the License, or
11112 # (at your option) any later version.
11114 # This program is distributed in the hope that it will be useful, but
11115 # WITHOUT ANY WARRANTY; without even the implied warranty of
11116 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11117 # General Public License for more details.
11119 # You should have received a copy of the GNU General Public License
11120 # along with this program; if not, write to the Free Software
11121 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11123 # As a special exception to the GNU General Public License, if you
11124 # distribute this file as part of a program that contains a
11125 # configuration script generated by Autoconf, you may include it under
11126 # the same distribution terms that you use for the rest of that program.
11128 # A sed program that does not truncate output.
11131 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11132 Xsed="$SED -e s/^X//"
11134 # The HP-UX ksh and POSIX shell print the target directory to stdout
11135 # if CDPATH is set.
11136 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11138 # The names of the tagged configurations supported by this script.
11141 # ### BEGIN LIBTOOL CONFIG
11143 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11145 # Shell to use when invoking shell scripts.
11148 # Whether or not to build shared libraries.
11149 build_libtool_libs=$enable_shared
11151 # Whether or not to build static libraries.
11152 build_old_libs=$enable_static
11154 # Whether or not to add -lc for building shared libraries.
11155 build_libtool_need_lc=$archive_cmds_need_lc
11157 # Whether or not to disallow shared libs when runtime libs are static
11158 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11160 # Whether or not to optimize for fast installation.
11161 fast_install=$enable_fast_install
11164 host_alias=$host_alias
11167 # An echo program that does not interpret backslashes.
11172 AR_FLAGS=$lt_AR_FLAGS
11177 # A language-specific compiler.
11180 # Is the compiler the GNU C compiler?
11186 # The linker used to build libraries.
11189 # Whether we need hard or soft links.
11192 # A BSD-compatible nm program.
11195 # A symbol stripping program
11198 # Used to examine libraries when file_magic_cmd begins "file"
11199 MAGIC_CMD=$MAGIC_CMD
11201 # Used on cygwin: DLL creation program.
11204 # Used on cygwin: object dumper.
11207 # Used on cygwin: assembler.
11210 # The name of the directory that contains temporary libtool files.
11213 # How to create reloadable object files.
11214 reload_flag=$lt_reload_flag
11215 reload_cmds=$lt_reload_cmds
11217 # How to pass a linker flag through the compiler.
11218 wl=$lt_lt_prog_compiler_wl
11220 # Object file suffix (normally "o").
11221 objext="$ac_objext"
11223 # Old archive suffix (normally "a").
11226 # Shared library suffix (normally ".so").
11227 shrext_cmds='$shrext_cmds'
11229 # Executable file suffix (normally "").
11232 # Additional compiler flags for building library objects.
11233 pic_flag=$lt_lt_prog_compiler_pic
11236 # What is the maximum length of a command?
11237 max_cmd_len=$lt_cv_sys_max_cmd_len
11239 # Does compiler simultaneously support -c and -o options?
11240 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11242 # Must we lock files when doing compilation ?
11243 need_locks=$lt_need_locks
11245 # Do we need the lib prefix for modules?
11246 need_lib_prefix=$need_lib_prefix
11248 # Do we need a version for libraries?
11249 need_version=$need_version
11251 # Whether dlopen is supported.
11252 dlopen_support=$enable_dlopen
11254 # Whether dlopen of programs is supported.
11255 dlopen_self=$enable_dlopen_self
11257 # Whether dlopen of statically linked programs is supported.
11258 dlopen_self_static=$enable_dlopen_self_static
11260 # Compiler flag to prevent dynamic linking.
11261 link_static_flag=$lt_lt_prog_compiler_static
11263 # Compiler flag to turn off builtin functions.
11264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11266 # Compiler flag to allow reflexive dlopens.
11267 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11269 # Compiler flag to generate shared objects directly from archives.
11270 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11272 # Compiler flag to generate thread-safe objects.
11273 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11275 # Library versioning type.
11276 version_type=$version_type
11278 # Format of library name prefix.
11279 libname_spec=$lt_libname_spec
11281 # List of archive names. First name is the real one, the rest are links.
11282 # The last name is the one that the linker finds with -lNAME.
11283 library_names_spec=$lt_library_names_spec
11285 # The coded name of the library, if different from the real name.
11286 soname_spec=$lt_soname_spec
11288 # Commands used to build and install an old-style archive.
11290 old_archive_cmds=$lt_old_archive_cmds
11291 old_postinstall_cmds=$lt_old_postinstall_cmds
11292 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11294 # Create an old-style archive from a shared archive.
11295 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11297 # Create a temporary old-style archive to link instead of a shared archive.
11298 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11300 # Commands used to build and install a shared archive.
11301 archive_cmds=$lt_archive_cmds
11302 archive_expsym_cmds=$lt_archive_expsym_cmds
11303 postinstall_cmds=$lt_postinstall_cmds
11304 postuninstall_cmds=$lt_postuninstall_cmds
11306 # Commands used to build a loadable module (assumed same as above if empty)
11307 module_cmds=$lt_module_cmds
11308 module_expsym_cmds=$lt_module_expsym_cmds
11310 # Commands to strip libraries.
11311 old_striplib=$lt_old_striplib
11312 striplib=$lt_striplib
11314 # Dependencies to place before the objects being linked to create a
11316 predep_objects=$lt_predep_objects
11318 # Dependencies to place after the objects being linked to create a
11320 postdep_objects=$lt_postdep_objects
11322 # Dependencies to place before the objects being linked to create a
11324 predeps=$lt_predeps
11326 # Dependencies to place after the objects being linked to create a
11328 postdeps=$lt_postdeps
11330 # The library search path used internally by the compiler when linking
11331 # a shared library.
11332 compiler_lib_search_path=$lt_compiler_lib_search_path
11334 # Method to check whether dependent libraries are shared objects.
11335 deplibs_check_method=$lt_deplibs_check_method
11337 # Command to use when deplibs_check_method == file_magic.
11338 file_magic_cmd=$lt_file_magic_cmd
11340 # Flag that allows shared libraries with undefined symbols to be built.
11341 allow_undefined_flag=$lt_allow_undefined_flag
11343 # Flag that forces no undefined symbols.
11344 no_undefined_flag=$lt_no_undefined_flag
11346 # Commands used to finish a libtool library installation in a directory.
11347 finish_cmds=$lt_finish_cmds
11349 # Same as above, but a single script fragment to be evaled but not shown.
11350 finish_eval=$lt_finish_eval
11352 # Take the output of nm and produce a listing of raw symbols and C names.
11353 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11355 # Transform the output of nm in a proper C declaration
11356 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11358 # Transform the output of nm in a C name address pair
11359 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11361 # This is the shared library runtime path variable.
11362 runpath_var=$runpath_var
11364 # This is the shared library path variable.
11365 shlibpath_var=$shlibpath_var
11367 # Is shlibpath searched before the hard-coded library search path?
11368 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11370 # How to hardcode a shared library path into an executable.
11371 hardcode_action=$hardcode_action
11373 # Whether we should hardcode library paths into libraries.
11374 hardcode_into_libs=$hardcode_into_libs
11376 # Flag to hardcode \$libdir into a binary during linking.
11377 # This must work even if \$libdir does not exist.
11378 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11380 # If ld is used when linking, flag to hardcode \$libdir into
11381 # a binary during linking. This must work even if \$libdir does
11383 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11385 # Whether we need a single -rpath flag with a separated argument.
11386 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11388 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11389 # resulting binary.
11390 hardcode_direct=$hardcode_direct
11392 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11393 # resulting binary.
11394 hardcode_minus_L=$hardcode_minus_L
11396 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11397 # the resulting binary.
11398 hardcode_shlibpath_var=$hardcode_shlibpath_var
11400 # Set to yes if building a shared library automatically hardcodes DIR into the library
11401 # and all subsequent libraries and executables linked against it.
11402 hardcode_automatic=$hardcode_automatic
11404 # Variables whose values should be saved in libtool wrapper scripts and
11405 # restored at relink time.
11406 variables_saved_for_relink="$variables_saved_for_relink"
11408 # Whether libtool must link a program against all its dependency libraries.
11409 link_all_deplibs=$link_all_deplibs
11411 # Compile-time system search path for libraries
11412 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11414 # Run-time system search path for libraries
11415 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11417 # Fix the shell variable \$srcfile for the compiler.
11418 fix_srcfile_path="$fix_srcfile_path"
11420 # Set to yes if exported symbols are required.
11421 always_export_symbols=$always_export_symbols
11423 # The commands to list exported symbols.
11424 export_symbols_cmds=$lt_export_symbols_cmds
11426 # The commands to extract the exported symbol list from a shared archive.
11427 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11429 # Symbols that should not be listed in the preloaded symbols.
11430 exclude_expsyms=$lt_exclude_expsyms
11432 # Symbols that must always be exported.
11433 include_expsyms=$lt_include_expsyms
11435 # ### END LIBTOOL CONFIG
11442 cat <<\EOF >> "$cfgfile"
11444 # AIX sometimes has problems with the GCC collect2 program. For some
11445 # reason, if we set the COLLECT_NAMES environment variable, the problems
11446 # vanish in a puff of smoke.
11447 if test "X${COLLECT_NAMES+set}" != Xset; then
11449 export COLLECT_NAMES
11455 # We use sed instead of cat because bash on DJGPP gets confused if
11456 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11457 # text mode, it properly converts lines to CR/LF. This bash problem
11458 # is reportedly fixed, but why not run on old versions too?
11459 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11461 mv -f "$cfgfile" "$ofile" || \
11462 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11466 # If there is no Makefile yet, we rely on a make rule to execute
11467 # `config.status --recheck' to rerun these tests and create the
11468 # libtool script then.
11469 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11470 if test -f "$ltmain_in"; then
11471 test -f Makefile && make "$ltmain"
11477 ac_cpp='$CPP $CPPFLAGS'
11478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11485 # Check whether --with-tags or --without-tags was given.
11486 if test "${with_tags+set}" = set; then
11487 withval="$with_tags"
11488 tagnames="$withval"
11491 if test -f "$ltmain" && test -n "$tagnames"; then
11492 if test ! -f "${ofile}"; then
11493 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11494 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11497 if test -z "$LTCC"; then
11498 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11499 if test -z "$LTCC"; then
11500 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11501 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11503 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11504 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11508 # Extract list of available tagged configurations in $ofile.
11509 # Note that this assumes the entire list is on one line.
11510 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11512 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11513 for tagname in $tagnames; do
11515 # Check whether tagname contains only valid characters
11516 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11518 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11519 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11520 { (exit 1); exit 1; }; }
11524 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11526 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11527 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11528 { (exit 1); exit 1; }; }
11531 # Update the list of available tags.
11532 if test -n "$tagname"; then
11533 echo appending configuration tag \"$tagname\" to $ofile
11537 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11539 ac_cpp='$CXXCPP $CPPFLAGS'
11540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11547 archive_cmds_need_lc_CXX=no
11548 allow_undefined_flag_CXX=
11549 always_export_symbols_CXX=no
11550 archive_expsym_cmds_CXX=
11551 export_dynamic_flag_spec_CXX=
11552 hardcode_direct_CXX=no
11553 hardcode_libdir_flag_spec_CXX=
11554 hardcode_libdir_flag_spec_ld_CXX=
11555 hardcode_libdir_separator_CXX=
11556 hardcode_minus_L_CXX=no
11557 hardcode_automatic_CXX=no
11559 module_expsym_cmds_CXX=
11560 link_all_deplibs_CXX=unknown
11561 old_archive_cmds_CXX=$old_archive_cmds
11562 no_undefined_flag_CXX=
11563 whole_archive_flag_spec_CXX=
11564 enable_shared_with_static_runtimes_CXX=no
11566 # Dependencies to place before and after the object being linked:
11567 predep_objects_CXX=
11568 postdep_objects_CXX=
11571 compiler_lib_search_path_CXX=
11573 # Source file extension for C++ test sources.
11576 # Object file extension for compiled C++ test sources.
11580 # Code to be used in simple compile tests
11581 lt_simple_compile_test_code="int some_variable = 0;\n"
11583 # Code to be used in simple link tests
11584 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11586 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11588 # If no C compiler was specified, use CC.
11591 # Allow CC to be a program name with arguments.
11595 # Allow CC to be a program name with arguments.
11600 lt_save_with_gnu_ld=$with_gnu_ld
11601 lt_save_path_LD=$lt_cv_path_LD
11602 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11603 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11605 unset lt_cv_prog_gnu_ld
11607 if test -n "${lt_cv_path_LDCXX+set}"; then
11608 lt_cv_path_LD=$lt_cv_path_LDCXX
11610 unset lt_cv_path_LD
11612 test -z "${LDCXX+set}" || LD=$LDCXX
11616 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11618 # We don't want -fno-exception wen compiling C++ code, so set the
11619 # no_builtin_flag separately
11620 if test "$GXX" = yes; then
11621 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11623 lt_prog_compiler_no_builtin_flag_CXX=
11626 if test "$GXX" = yes; then
11627 # Set up default GNU C++ configuration
11630 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11631 if test "${with_gnu_ld+set}" = set; then
11632 withval="$with_gnu_ld"
11633 test "$withval" = no || with_gnu_ld=yes
11638 if test "$GCC" = yes; then
11639 # Check if gcc -print-prog-name=ld gives a path.
11640 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11641 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11644 # gcc leaves a trailing carriage return which upsets mingw
11645 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11647 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11650 # Accept absolute paths.
11652 re_direlt='/[^/][^/]*/\.\./'
11653 # Canonicalize the pathname of ld
11654 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11655 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11656 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11658 test -z "$LD" && LD="$ac_prog"
11661 # If it fails, then pretend we aren't using GCC.
11665 # If it is relative, then search for the first ld in PATH.
11666 with_gnu_ld=unknown
11669 elif test "$with_gnu_ld" = yes; then
11670 echo "$as_me:$LINENO: checking for GNU ld" >&5
11671 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11673 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11674 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11676 if test "${lt_cv_path_LD+set}" = set; then
11677 echo $ECHO_N "(cached) $ECHO_C" >&6
11679 if test -z "$LD"; then
11680 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11681 for ac_dir in $PATH; do
11683 test -z "$ac_dir" && ac_dir=.
11684 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11685 lt_cv_path_LD="$ac_dir/$ac_prog"
11686 # Check to see if the program is GNU ld. I'd rather use --version,
11687 # but apparently some GNU ld's only accept -v.
11688 # Break only if it was the GNU/non-GNU ld that we prefer.
11689 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11690 *GNU* | *'with BFD'*)
11691 test "$with_gnu_ld" != no && break
11694 test "$with_gnu_ld" != yes && break
11701 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11705 LD="$lt_cv_path_LD"
11706 if test -n "$LD"; then
11707 echo "$as_me:$LINENO: result: $LD" >&5
11708 echo "${ECHO_T}$LD" >&6
11710 echo "$as_me:$LINENO: result: no" >&5
11711 echo "${ECHO_T}no" >&6
11713 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11714 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11715 { (exit 1); exit 1; }; }
11716 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11717 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11718 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11719 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11722 case `$LD -v 2>&1 </dev/null` in
11723 *GNU* | *'with BFD'*)
11724 lt_cv_prog_gnu_ld=yes
11727 lt_cv_prog_gnu_ld=no
11731 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11732 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11733 with_gnu_ld=$lt_cv_prog_gnu_ld
11737 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11738 # archiving commands below assume that GNU ld is being used.
11739 if test "$with_gnu_ld" = yes; then
11740 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11741 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'
11743 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11744 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11746 # If archive_cmds runs LD, not CC, wlarc should be empty
11747 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11748 # investigate it a little bit more. (MM)
11751 # ancient GNU ld didn't support --whole-archive et. al.
11752 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11753 grep 'no-whole-archive' > /dev/null; then
11754 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11756 whole_archive_flag_spec_CXX=
11762 # A generic and very simple default shared library creation
11763 # command for GNU C++ for the case where it uses the native
11764 # linker, instead of GNU ld. If possible, this setting should
11765 # overridden to take advantage of the native linker features on
11766 # the platform it is being used on.
11767 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11770 # Commands to make compiler produce verbose output that lists
11771 # what "hidden" libraries, object files and flags are used when
11772 # linking a shared library.
11773 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11781 # PORTME: fill in a description of your system's C++ link characteristics
11782 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11783 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11787 # FIXME: insert proper C++ library support
11791 if test "$host_cpu" = ia64; then
11792 # On IA64, the linker does run time linking by default, so we don't
11793 # have to do anything special.
11794 aix_use_runtimelinking=no
11795 exp_sym_flag='-Bexport'
11798 aix_use_runtimelinking=no
11800 # Test if we are trying to use run time linking or normal
11801 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11802 # need to do runtime linking.
11803 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11804 for ld_flag in $LDFLAGS; do
11807 aix_use_runtimelinking=yes
11814 exp_sym_flag='-bexport'
11815 no_entry_flag='-bnoentry'
11818 # When large executables or shared objects are built, AIX ld can
11819 # have problems creating the table of contents. If linking a library
11820 # or program results in "error TOC overflow" add -mminimal-toc to
11821 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11822 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11824 archive_cmds_CXX=''
11825 hardcode_direct_CXX=yes
11826 hardcode_libdir_separator_CXX=':'
11827 link_all_deplibs_CXX=yes
11829 if test "$GXX" = yes; then
11830 case $host_os in aix4.012|aix4.012.*)
11831 # We only want to do this on AIX 4.2 and lower, the check
11832 # below for broken collect2 doesn't work under 4.3+
11833 collect2name=`${CC} -print-prog-name=collect2`
11834 if test -f "$collect2name" && \
11835 strings "$collect2name" | grep resolve_lib_name >/dev/null
11837 # We have reworked collect2
11838 hardcode_direct_CXX=yes
11840 # We have old collect2
11841 hardcode_direct_CXX=unsupported
11842 # It fails to find uninstalled libraries when the uninstalled
11843 # path is not listed in the libpath. Setting hardcode_minus_L
11844 # to unsupported forces relinking
11845 hardcode_minus_L_CXX=yes
11846 hardcode_libdir_flag_spec_CXX='-L$libdir'
11847 hardcode_libdir_separator_CXX=
11850 shared_flag='-shared'
11853 if test "$host_cpu" = ia64; then
11854 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11855 # chokes on -Wl,-G. The following line is correct:
11858 if test "$aix_use_runtimelinking" = yes; then
11859 shared_flag='${wl}-G'
11861 shared_flag='${wl}-bM:SRE'
11866 # It seems that -bexpall does not export symbols beginning with
11867 # underscore (_), so it is better to generate a list of symbols to export.
11868 always_export_symbols_CXX=yes
11869 if test "$aix_use_runtimelinking" = yes; then
11870 # Warning - without using the other runtime loading flags (-brtl),
11871 # -berok will link without error, but may produce a broken library.
11872 allow_undefined_flag_CXX='-berok'
11873 # Determine the default libpath from the value encoded in an empty executable.
11874 cat >conftest.$ac_ext <<_ACEOF
11877 cat confdefs.h >>conftest.$ac_ext
11878 cat >>conftest.$ac_ext <<_ACEOF
11879 /* end confdefs.h. */
11889 rm -f conftest.$ac_objext conftest$ac_exeext
11890 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11891 (eval $ac_link) 2>conftest.er1
11893 grep -v '^ *+' conftest.er1 >conftest.err
11895 cat conftest.err >&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); } &&
11898 { ac_try='test -z "$ac_cxx_werror_flag"
11899 || test ! -s conftest.err'
11900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11901 (eval $ac_try) 2>&5
11903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11904 (exit $ac_status); }; } &&
11905 { ac_try='test -s conftest$ac_exeext'
11906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11907 (eval $ac_try) 2>&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); }; }; then
11912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11914 # Check for a 64-bit object if we didn't find anything.
11915 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; }
11918 echo "$as_me: failed program was:" >&5
11919 sed 's/^/| /' conftest.$ac_ext >&5
11922 rm -f conftest.err conftest.$ac_objext \
11923 conftest$ac_exeext conftest.$ac_ext
11924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11928 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"
11930 if test "$host_cpu" = ia64; then
11931 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11932 allow_undefined_flag_CXX="-z nodefs"
11933 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"
11935 # Determine the default libpath from the value encoded in an empty executable.
11936 cat >conftest.$ac_ext <<_ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h. */
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_cxx_werror_flag"
11961 || test ! -s conftest.err'
11962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11963 (eval $ac_try) 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; } &&
11967 { ac_try='test -s conftest$ac_exeext'
11968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969 (eval $ac_try) 2>&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); }; }; then
11974 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11976 # Check for a 64-bit object if we didn't find anything.
11977 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; }
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.$ac_ext >&5
11984 rm -f conftest.err conftest.$ac_objext \
11985 conftest$ac_exeext conftest.$ac_ext
11986 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11988 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11989 # Warning - without using the other run time loading flags,
11990 # -berok will link without error, but may produce a broken library.
11991 no_undefined_flag_CXX=' ${wl}-bernotok'
11992 allow_undefined_flag_CXX=' ${wl}-berok'
11993 # -bexpall does not export symbols beginning with underscore (_)
11994 always_export_symbols_CXX=yes
11995 # Exported symbols can be pulled into shared objects from archives
11996 whole_archive_flag_spec_CXX=' '
11997 archive_cmds_need_lc_CXX=yes
11998 # This is similar to how AIX traditionally builds it's shared libraries.
11999 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'
12004 case $cc_basename in
12006 # FIXME: insert proper C++ library support
12012 cygwin* | mingw* | pw32*)
12013 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12014 # as there is no search path for DLLs.
12015 hardcode_libdir_flag_spec_CXX='-L$libdir'
12016 allow_undefined_flag_CXX=unsupported
12017 always_export_symbols_CXX=no
12018 enable_shared_with_static_runtimes_CXX=yes
12020 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12021 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'
12022 # If the export-symbols file already is a .def file (1st line
12023 # is EXPORTS), use it as is; otherwise, prepend...
12024 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12025 cp $export_symbols $output_objdir/$soname.def;
12027 echo EXPORTS > $output_objdir/$soname.def;
12028 cat $export_symbols >> $output_objdir/$soname.def;
12030 $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'
12036 darwin* | rhapsody*)
12037 if test "$GXX" = yes; then
12038 archive_cmds_need_lc_CXX=no
12040 rhapsody* | darwin1.[012])
12041 allow_undefined_flag_CXX='-undefined suppress'
12044 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12045 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12047 case ${MACOSX_DEPLOYMENT_TARGET} in
12049 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12052 allow_undefined_flag_CXX='-undefined dynamic_lookup'
12058 lt_int_apple_cc_single_mod=no
12059 output_verbose_link_cmd='echo'
12060 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12061 lt_int_apple_cc_single_mod=yes
12063 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12064 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12066 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12068 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12070 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12071 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12072 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}'
12074 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12076 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}'
12077 hardcode_direct_CXX=no
12078 hardcode_automatic_CXX=yes
12079 hardcode_shlibpath_var_CXX=unsupported
12080 whole_archive_flag_spec_CXX='-all_load $convenience'
12081 link_all_deplibs_CXX=yes
12088 case $cc_basename in
12090 # FIXME: insert proper C++ library support
12094 # Green Hills C++ Compiler
12095 # FIXME: insert proper C++ library support
12099 # FIXME: insert proper C++ library support
12105 # C++ shared libraries reported to be fairly broken before switch to ELF
12109 archive_cmds_need_lc_CXX=no
12111 freebsd* | kfreebsd*-gnu)
12112 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12119 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12120 hardcode_libdir_separator_CXX=:
12121 export_dynamic_flag_spec_CXX='${wl}-E'
12122 hardcode_direct_CXX=yes
12123 hardcode_minus_L_CXX=yes # Not in the search PATH,
12124 # but as the default
12125 # location of the library.
12127 case $cc_basename in
12129 # FIXME: insert proper C++ library support
12133 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'
12134 # Commands to make compiler produce verbose output that lists
12135 # what "hidden" libraries, object files and flags are used when
12136 # linking a shared library.
12138 # There doesn't appear to be a way to prevent this compiler from
12139 # explicitly linking system object files so we need to strip them
12140 # from the output so that they don't get included in the library
12142 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'
12145 if test "$GXX" = yes; then
12146 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'
12148 # FIXME: insert proper C++ library support
12155 if test $with_gnu_ld = no; then
12156 case "$host_cpu" in
12158 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12159 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12160 hardcode_libdir_separator_CXX=:
12163 hardcode_libdir_flag_spec_CXX='-L$libdir'
12166 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12167 hardcode_libdir_separator_CXX=:
12168 export_dynamic_flag_spec_CXX='${wl}-E'
12172 case "$host_cpu" in
12174 hardcode_direct_CXX=no
12175 hardcode_shlibpath_var_CXX=no
12178 hardcode_direct_CXX=no
12179 hardcode_shlibpath_var_CXX=no
12180 hardcode_minus_L_CXX=yes # Not in the search PATH,
12181 # but as the default
12182 # location of the library.
12185 hardcode_direct_CXX=yes
12186 hardcode_minus_L_CXX=yes # Not in the search PATH,
12187 # but as the default
12188 # location of the library.
12192 case $cc_basename in
12194 # FIXME: insert proper C++ library support
12198 case "$host_cpu" in
12200 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12203 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12206 # Commands to make compiler produce verbose output that lists
12207 # what "hidden" libraries, object files and flags are used when
12208 # linking a shared library.
12210 # There doesn't appear to be a way to prevent this compiler from
12211 # explicitly linking system object files so we need to strip them
12212 # from the output so that they don't get included in the library
12214 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'
12217 if test "$GXX" = yes; then
12218 if test $with_gnu_ld = no; then
12219 case "$host_cpu" in
12221 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12224 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'
12229 # FIXME: insert proper C++ library support
12236 case $cc_basename in
12239 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'
12241 # Archives containing C++ object files must be created using
12242 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12243 # necessary to make sure instantiated templates are included
12245 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12248 if test "$GXX" = yes; then
12249 if test "$with_gnu_ld" = no; then
12250 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'
12252 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'
12255 link_all_deplibs_CXX=yes
12258 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12259 hardcode_libdir_separator_CXX=:
12262 case $cc_basename in
12264 # Kuck and Associates, Inc. (KAI) C++ Compiler
12266 # KCC will only create a shared library if the output file
12267 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12268 # to its proper name (with version) after linking.
12269 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'
12270 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'
12271 # Commands to make compiler produce verbose output that lists
12272 # what "hidden" libraries, object files and flags are used when
12273 # linking a shared library.
12275 # There doesn't appear to be a way to prevent this compiler from
12276 # explicitly linking system object files so we need to strip them
12277 # from the output so that they don't get included in the library
12279 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'
12281 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12282 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12284 # Archives containing C++ object files must be created using
12285 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12286 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12291 archive_cmds_need_lc_CXX=no
12292 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293 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'
12294 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12295 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12296 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12300 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12301 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'
12303 runpath_var=LD_RUN_PATH
12304 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12305 hardcode_libdir_separator_CXX=:
12307 # Commands to make compiler produce verbose output that lists
12308 # what "hidden" libraries, object files and flags are used when
12309 # linking a shared library.
12311 # There doesn't appear to be a way to prevent this compiler from
12312 # explicitly linking system object files so we need to strip them
12313 # from the output so that they don't get included in the library
12315 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'
12320 # FIXME: insert proper C++ library support
12324 # FIXME: insert proper C++ library support
12328 case $cc_basename in
12330 # FIXME: insert proper C++ library support
12334 # FIXME: insert proper C++ library support
12340 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12341 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12343 hardcode_libdir_flag_spec_CXX='-R$libdir'
12344 hardcode_direct_CXX=yes
12345 hardcode_shlibpath_var_CXX=no
12347 # Workaround some broken pre-1.5 toolchains
12348 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12351 case $cc_basename in
12353 # Kuck and Associates, Inc. (KAI) C++ Compiler
12355 # KCC will only create a shared library if the output file
12356 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12357 # to its proper name (with version) after linking.
12358 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'
12360 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12361 hardcode_libdir_separator_CXX=:
12363 # Archives containing C++ object files must be created using
12364 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12365 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12369 # Rational C++ 2.4.1
12370 # FIXME: insert proper C++ library support
12374 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12375 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'
12377 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12378 hardcode_libdir_separator_CXX=:
12380 # Commands to make compiler produce verbose output that lists
12381 # what "hidden" libraries, object files and flags are used when
12382 # linking a shared library.
12384 # There doesn't appear to be a way to prevent this compiler from
12385 # explicitly linking system object files so we need to strip them
12386 # from the output so that they don't get included in the library
12388 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'
12391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12393 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'
12395 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12396 hardcode_libdir_separator_CXX=:
12398 # Commands to make compiler produce verbose output that lists
12399 # what "hidden" libraries, object files and flags are used when
12400 # linking a shared library.
12401 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12404 # FIXME: insert proper C++ library support
12411 case $cc_basename in
12413 # Kuck and Associates, Inc. (KAI) C++ Compiler
12415 # KCC will only create a shared library if the output file
12416 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12417 # to its proper name (with version) after linking.
12418 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'
12420 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12421 hardcode_libdir_separator_CXX=:
12423 # Archives containing C++ object files must be created using
12424 # the KAI C++ compiler.
12425 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12428 # Rational C++ 2.4.1
12429 # FIXME: insert proper C++ library support
12433 allow_undefined_flag_CXX=' -expect_unresolved \*'
12434 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'
12435 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12436 echo "-hidden">> $lib.exp~
12437 $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~
12440 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12441 hardcode_libdir_separator_CXX=:
12443 # Commands to make compiler produce verbose output that lists
12444 # what "hidden" libraries, object files and flags are used when
12445 # linking a shared library.
12447 # There doesn't appear to be a way to prevent this compiler from
12448 # explicitly linking system object files so we need to strip them
12449 # from the output so that they don't get included in the library
12451 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'
12454 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12455 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12456 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'
12458 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12459 hardcode_libdir_separator_CXX=:
12461 # Commands to make compiler produce verbose output that lists
12462 # what "hidden" libraries, object files and flags are used when
12463 # linking a shared library.
12464 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12467 # FIXME: insert proper C++ library support
12474 # FIXME: insert proper C++ library support
12478 archive_cmds_need_lc_CXX=no
12479 case $cc_basename in
12481 # FIXME: insert proper C++ library support
12485 # FIXME: insert proper C++ library support
12491 case $cc_basename in
12494 # FIXME: insert proper C++ library support
12499 # FIXME: insert proper C++ library support
12503 # FIXME: insert proper C++ library support
12509 case $cc_basename in
12511 # Sun C++ 4.2, 5.x and Centerline C++
12512 no_undefined_flag_CXX=' -zdefs'
12513 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12514 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12515 $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'
12517 hardcode_libdir_flag_spec_CXX='-R$libdir'
12518 hardcode_shlibpath_var_CXX=no
12520 solaris2.0-5 | solaris2.0-5.*) ;;
12522 # The C++ compiler is used as linker so we must use $wl
12523 # flag to pass the commands to the underlying system
12525 # Supported since Solaris 2.6 (maybe 2.5.1?)
12526 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12529 link_all_deplibs_CXX=yes
12531 # Commands to make compiler produce verbose output that lists
12532 # what "hidden" libraries, object files and flags are used when
12533 # linking a shared library.
12535 # There doesn't appear to be a way to prevent this compiler from
12536 # explicitly linking system object files so we need to strip them
12537 # from the output so that they don't get included in the library
12539 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'
12541 # Archives containing C++ object files must be created using
12542 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12543 # necessary to make sure instantiated templates are included
12545 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12548 # Green Hills C++ Compiler
12549 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12551 # The C++ compiler must be used to create the archive.
12552 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12555 # GNU C++ compiler with Solaris linker
12556 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12557 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12558 if $CC --version | grep -v '^2\.7' > /dev/null; then
12559 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12560 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12561 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12563 # Commands to make compiler produce verbose output that lists
12564 # what "hidden" libraries, object files and flags are used when
12565 # linking a shared library.
12566 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12568 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12570 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12571 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12572 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12574 # Commands to make compiler produce verbose output that lists
12575 # what "hidden" libraries, object files and flags are used when
12576 # linking a shared library.
12577 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12580 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12585 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12586 archive_cmds_need_lc_CXX=no
12589 case $cc_basename in
12591 # NonStop-UX NCC 3.20
12592 # FIXME: insert proper C++ library support
12596 # FIXME: insert proper C++ library support
12602 # FIXME: insert proper C++ library support
12606 # FIXME: insert proper C++ library support
12610 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12611 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12612 test "$ld_shlibs_CXX" = no && can_build_shared=no
12618 ## There is no encapsulation within the following macros, do not change
12619 ## the running order or otherwise move them around unless you know exactly
12620 ## what you are doing...
12622 cat > conftest.$ac_ext <<EOF
12626 Foo (void) { a = 0; }
12632 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12633 (eval $ac_compile) 2>&5
12635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12636 (exit $ac_status); }; then
12637 # Parse the compiler output and extract the necessary
12638 # objects, libraries and library flags.
12640 # Sentinel used to keep track of whether or not we are before
12641 # the conftest object file.
12642 pre_test_object_deps_done=no
12644 # The `*' in the case matches for architectures that use `case' in
12645 # $output_verbose_cmd can trigger glob expansion during the loop
12646 # eval without this substitution.
12647 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12649 for p in `eval $output_verbose_link_cmd`; do
12653 # Some compilers place space between "-{L,R}" and the path.
12654 # Remove the space.
12655 if test $p = "-L" \
12656 || test $p = "-R"; then
12663 if test "$pre_test_object_deps_done" = no; then
12666 # Internal compiler library paths should come after those
12667 # provided the user. The postdeps already come after the
12668 # user supplied libs so there is no need to process them.
12669 if test -z "$compiler_lib_search_path_CXX"; then
12670 compiler_lib_search_path_CXX="${prev}${p}"
12672 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12675 # The "-l" case would never come before the object being
12676 # linked, so don't bother handling this case.
12679 if test -z "$postdeps_CXX"; then
12680 postdeps_CXX="${prev}${p}"
12682 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12688 # This assumes that the test object file only shows up
12689 # once in the compiler output.
12690 if test "$p" = "conftest.$objext"; then
12691 pre_test_object_deps_done=yes
12695 if test "$pre_test_object_deps_done" = no; then
12696 if test -z "$predep_objects_CXX"; then
12697 predep_objects_CXX="$p"
12699 predep_objects_CXX="$predep_objects_CXX $p"
12702 if test -z "$postdep_objects_CXX"; then
12703 postdep_objects_CXX="$p"
12705 postdep_objects_CXX="$postdep_objects_CXX $p"
12710 *) ;; # Ignore the rest.
12718 echo "libtool.m4: error: problem compiling CXX test program"
12721 $rm -f confest.$objext
12723 case " $postdeps_CXX " in
12724 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12727 lt_prog_compiler_wl_CXX=
12728 lt_prog_compiler_pic_CXX=
12729 lt_prog_compiler_static_CXX=
12731 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12732 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12734 # C++ specific cases for pic, static, wl, etc.
12735 if test "$GXX" = yes; then
12736 lt_prog_compiler_wl_CXX='-Wl,'
12737 lt_prog_compiler_static_CXX='-static'
12741 # All AIX code is PIC.
12742 if test "$host_cpu" = ia64; then
12743 # AIX 5 now supports IA64 processor
12744 lt_prog_compiler_static_CXX='-Bstatic'
12748 # FIXME: we need at least 68020 code to build shared libraries, but
12749 # adding the `-m68020' flag to GCC prevents building anything better,
12751 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12753 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12754 # PIC is the default for these OSes.
12756 mingw* | os2* | pw32*)
12757 # This hack is so that the source file can tell whether it is being
12758 # built for inclusion in a dll (and should export symbols for example).
12759 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12761 darwin* | rhapsody*)
12762 # PIC is the default on this platform
12763 # Common symbols not allowed in MH_DYLIB files
12764 lt_prog_compiler_pic_CXX='-fno-common'
12767 # DJGPP does not support shared libraries at all
12768 lt_prog_compiler_pic_CXX=
12771 if test -d /usr/nec; then
12772 lt_prog_compiler_pic_CXX=-Kconform_pic
12776 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12777 # not for PA HP-UX.
12778 case "$host_cpu" in
12782 lt_prog_compiler_pic_CXX='-fPIC'
12787 lt_prog_compiler_pic_CXX='-fPIC'
12793 # All AIX code is PIC.
12794 if test "$host_cpu" = ia64; then
12795 # AIX 5 now supports IA64 processor
12796 lt_prog_compiler_static_CXX='-Bstatic'
12798 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12802 case $cc_basename in
12804 # Green Hills C++ Compiler
12805 # _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"
12810 case $cc_basename in
12812 lt_prog_compiler_pic_CXX='-KPIC'
12815 # Green Hills C++ Compiler
12816 lt_prog_compiler_pic_CXX='-pic'
12822 freebsd* | kfreebsd*-gnu)
12823 # FreeBSD uses GNU C++
12825 hpux9* | hpux10* | hpux11*)
12826 case $cc_basename in
12828 lt_prog_compiler_wl_CXX='-Wl,'
12829 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12830 if test "$host_cpu" != ia64; then
12831 lt_prog_compiler_pic_CXX='+Z'
12835 lt_prog_compiler_wl_CXX='-Wl,'
12836 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12837 case "$host_cpu" in
12842 lt_prog_compiler_pic_CXX='+Z'
12850 irix5* | irix6* | nonstopux*)
12851 case $cc_basename in
12853 lt_prog_compiler_wl_CXX='-Wl,'
12854 lt_prog_compiler_static_CXX='-non_shared'
12855 # CC pic flag -KPIC is the default.
12862 case $cc_basename in
12865 lt_prog_compiler_wl_CXX='--backend -Wl,'
12866 lt_prog_compiler_pic_CXX='-fPIC'
12870 lt_prog_compiler_wl_CXX='-Wl,'
12871 lt_prog_compiler_pic_CXX='-KPIC'
12872 lt_prog_compiler_static_CXX='-static'
12876 # Make sure the PIC flag is empty. It appears that all Alpha
12877 # Linux and Compaq Tru64 Unix objects are PIC.
12878 lt_prog_compiler_pic_CXX=
12879 lt_prog_compiler_static_CXX='-non_shared'
12890 case $cc_basename in
12892 lt_prog_compiler_pic_CXX='-W c,exportall'
12900 osf3* | osf4* | osf5*)
12901 case $cc_basename in
12903 lt_prog_compiler_wl_CXX='--backend -Wl,'
12906 # Rational C++ 2.4.1
12907 lt_prog_compiler_pic_CXX='-pic'
12910 # Digital/Compaq C++
12911 lt_prog_compiler_wl_CXX='-Wl,'
12912 # Make sure the PIC flag is empty. It appears that all Alpha
12913 # Linux and Compaq Tru64 Unix objects are PIC.
12914 lt_prog_compiler_pic_CXX=
12915 lt_prog_compiler_static_CXX='-non_shared'
12924 case $cc_basename in
12926 lt_prog_compiler_pic_CXX='-fPIC'
12933 case $cc_basename in
12935 # Sun C++ 4.2, 5.x and Centerline C++
12936 lt_prog_compiler_pic_CXX='-KPIC'
12937 lt_prog_compiler_static_CXX='-Bstatic'
12938 lt_prog_compiler_wl_CXX='-Qoption ld '
12941 # Green Hills C++ Compiler
12942 lt_prog_compiler_pic_CXX='-PIC'
12949 case $cc_basename in
12952 lt_prog_compiler_pic_CXX='-pic'
12953 lt_prog_compiler_static_CXX='-Bstatic'
12957 lt_prog_compiler_pic_CXX='-pic'
12964 case $cc_basename in
12966 # NonStop-UX NCC 3.20
12967 lt_prog_compiler_pic_CXX='-KPIC'
12978 lt_prog_compiler_can_build_shared_CXX=no
12983 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12984 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12987 # Check to make sure the PIC flag actually works.
12989 if test -n "$lt_prog_compiler_pic_CXX"; then
12991 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12992 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12993 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
12994 echo $ECHO_N "(cached) $ECHO_C" >&6
12996 lt_prog_compiler_pic_works_CXX=no
12997 ac_outfile=conftest.$ac_objext
12998 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12999 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13000 # Insert the option either (1) after the last *FLAGS variable, or
13001 # (2) before a word containing "conftest.", or (3) at the end.
13002 # Note that $ac_compile itself does not contain backslashes and begins
13003 # with a dollar sign (not a hyphen), so the echo should work correctly.
13004 # The option is referenced via a variable to avoid confusing sed.
13005 lt_compile=`echo "$ac_compile" | $SED \
13006 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13007 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13008 -e 's:$: $lt_compiler_flag:'`
13009 (eval echo "\"\$as_me:13009: $lt_compile\"" >&5)
13010 (eval "$lt_compile" 2>conftest.err)
13012 cat conftest.err >&5
13013 echo "$as_me:13013: \$? = $ac_status" >&5
13014 if (exit $ac_status) && test -s "$ac_outfile"; then
13015 # The compiler can only warn and ignore the option if not recognized
13016 # So say no if there are warnings
13017 if test ! -s conftest.err; then
13018 lt_prog_compiler_pic_works_CXX=yes
13024 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13025 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13027 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13028 case $lt_prog_compiler_pic_CXX in
13030 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13033 lt_prog_compiler_pic_CXX=
13034 lt_prog_compiler_can_build_shared_CXX=no
13039 # For platforms which do not support PIC, -DPIC is meaningless:
13041 lt_prog_compiler_pic_CXX=
13044 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13048 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13049 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13050 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13051 echo $ECHO_N "(cached) $ECHO_C" >&6
13053 lt_cv_prog_compiler_c_o_CXX=no
13054 $rm -r conftest 2>/dev/null
13058 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13060 lt_compiler_flag="-o out/conftest2.$ac_objext"
13061 # Insert the option either (1) after the last *FLAGS variable, or
13062 # (2) before a word containing "conftest.", or (3) at the end.
13063 # Note that $ac_compile itself does not contain backslashes and begins
13064 # with a dollar sign (not a hyphen), so the echo should work correctly.
13065 lt_compile=`echo "$ac_compile" | $SED \
13066 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13067 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13068 -e 's:$: $lt_compiler_flag:'`
13069 (eval echo "\"\$as_me:13069: $lt_compile\"" >&5)
13070 (eval "$lt_compile" 2>out/conftest.err)
13072 cat out/conftest.err >&5
13073 echo "$as_me:13073: \$? = $ac_status" >&5
13074 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13076 # The compiler can only warn and ignore the option if not recognized
13077 # So say no if there are warnings
13078 if test ! -s out/conftest.err; then
13079 lt_cv_prog_compiler_c_o_CXX=yes
13084 # SGI C++ compiler will create directory out/ii_files/ for
13085 # template instantiation
13086 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13087 $rm out/* && rmdir out
13093 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13094 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13097 hard_links="nottested"
13098 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13099 # do not overwrite the value of need_locks provided by the user
13100 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13101 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13104 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13106 ln conftest.a conftest.b 2>&5 || hard_links=no
13107 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13108 echo "$as_me:$LINENO: result: $hard_links" >&5
13109 echo "${ECHO_T}$hard_links" >&6
13110 if test "$hard_links" = no; then
13111 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13112 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13119 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13120 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13122 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13125 # If we're using GNU nm, then we don't want the "-C" option.
13126 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13127 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13128 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'
13130 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'
13134 export_symbols_cmds_CXX="$ltdll_cmds"
13137 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13140 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13144 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13145 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13146 test "$ld_shlibs_CXX" = no && can_build_shared=no
13148 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13149 if test "$GCC" = yes; then
13150 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13154 # Do we need to explicitly link libc?
13156 case "x$archive_cmds_need_lc_CXX" in
13158 # Assume -lc should be added
13159 archive_cmds_need_lc_CXX=yes
13161 if test "$enable_shared" = yes && test "$GCC" = yes; then
13162 case $archive_cmds_CXX in
13164 # FIXME: we may have to deal with multi-command sequences.
13167 # Test whether the compiler implicitly links with -lc since on some
13168 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13169 # to ld, don't add -lc before -lgcc.
13170 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13171 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13173 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13176 (eval $ac_compile) 2>&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } 2>conftest.err; then
13182 libobjs=conftest.$ac_objext
13184 wl=$lt_prog_compiler_wl_CXX
13190 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13191 allow_undefined_flag_CXX=
13192 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13193 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13196 (exit $ac_status); }
13198 archive_cmds_need_lc_CXX=no
13200 archive_cmds_need_lc_CXX=yes
13202 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13204 cat conftest.err 1>&5
13207 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13208 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13215 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13216 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13217 library_names_spec=
13218 libname_spec='lib$name'
13222 postuninstall_cmds=
13226 shlibpath_overrides_runpath=unknown
13228 dynamic_linker="$host_os ld.so"
13229 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13230 if test "$GCC" = yes; then
13231 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13232 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13233 # if the path contains ";" then we assume it to be the separator
13234 # otherwise default to the standard path separator (i.e. ":") - it is
13235 # assumed that no part of a normal pathname contains ";" but that should
13236 # okay in the real world where ";" in dirpaths is itself problematic.
13237 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13242 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13244 need_lib_prefix=unknown
13245 hardcode_into_libs=no
13247 # when you set need_version to no, make sure it does not cause -set_version
13248 # flags to be left without arguments
13249 need_version=unknown
13254 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13255 shlibpath_var=LIBPATH
13257 # AIX 3 has no versioning support, so we append a major version to the name.
13258 soname_spec='${libname}${release}${shared_ext}$major'
13265 hardcode_into_libs=yes
13266 if test "$host_cpu" = ia64; then
13267 # AIX 5 supports IA64
13268 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13269 shlibpath_var=LD_LIBRARY_PATH
13271 # With GCC up to 2.95.x, collect2 would create an import file
13272 # for dependence libraries. The import file would start with
13273 # the line `#! .'. This would cause the generated library to
13274 # depend on `.', always an invalid library. This was fixed in
13275 # development snapshots of GCC prior to 3.0.
13277 aix4 | aix4.[01] | aix4.[01].*)
13278 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13280 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13283 can_build_shared=no
13287 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13288 # soname into executable. Probably we can add versioning support to
13289 # collect2, so additional links can be useful in future.
13290 if test "$aix_use_runtimelinking" = yes; then
13291 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13292 # instead of lib<name>.a to let people know that these are not
13293 # typical AIX shared libraries.
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13296 # We preserve .a as extension for shared libraries through AIX4.2
13297 # and later when we are not doing run time linking.
13298 library_names_spec='${libname}${release}.a $libname.a'
13299 soname_spec='${libname}${release}${shared_ext}$major'
13301 shlibpath_var=LIBPATH
13306 library_names_spec='$libname.ixlibrary $libname.a'
13307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13308 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'
13312 library_names_spec='${libname}${shared_ext}'
13313 dynamic_linker="$host_os ld.so"
13314 shlibpath_var=LIBRARY_PATH
13320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13321 soname_spec='${libname}${release}${shared_ext}$major'
13322 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13323 shlibpath_var=LD_LIBRARY_PATH
13324 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13325 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13326 # the default ld.so.conf also contains /usr/contrib/lib and
13327 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13328 # libtool to hard-code these into programs
13331 cygwin* | mingw* | pw32*)
13332 version_type=windows
13337 case $GCC,$host_os in
13338 yes,cygwin* | yes,mingw* | yes,pw32*)
13339 library_names_spec='$libname.dll.a'
13340 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13341 postinstall_cmds='base_file=`basename \${file}`~
13342 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13343 dldir=$destdir/`dirname \$dlpath`~
13344 test -d \$dldir || mkdir -p \$dldir~
13345 $install_prog $dir/$dlname \$dldir/$dlname'
13346 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13347 dlpath=$dir/\$dldll~
13349 shlibpath_overrides_runpath=yes
13353 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13354 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13355 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13358 # MinGW DLLs use traditional 'lib' prefix
13359 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13360 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13361 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13362 # It is most probably a Windows format PATH printed by
13363 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13364 # path with ; separators, and with drive letters. We can handle the
13365 # drive letters (cygwin fileutils understands them), so leave them,
13366 # especially as we might pass files found there to a mingw objdump,
13367 # which wouldn't understand a cygwinified path. Ahh.
13368 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13374 # pw32 DLLs use 'pw' prefix rather than 'lib'
13375 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13381 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13384 dynamic_linker='Win32 ld.exe'
13385 # FIXME: first we should search . and the directory the executable is in
13389 darwin* | rhapsody*)
13390 dynamic_linker="$host_os dyld"
13391 version_type=darwin
13394 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13395 soname_spec='${libname}${release}${major}$shared_ext'
13396 shlibpath_overrides_runpath=yes
13397 shlibpath_var=DYLD_LIBRARY_PATH
13398 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13399 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13400 if test "$GCC" = yes; then
13401 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"`
13403 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13405 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13413 soname_spec='${libname}${release}${shared_ext}$major'
13414 shlibpath_var=LD_LIBRARY_PATH
13425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13426 soname_spec='${libname}${release}${shared_ext}$major'
13427 shlibpath_var=LD_LIBRARY_PATH
13428 shlibpath_overrides_runpath=no
13429 hardcode_into_libs=yes
13430 dynamic_linker='GNU ld.so'
13434 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13435 version_type=freebsd-$objformat
13436 case $version_type in
13438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13443 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13447 shlibpath_var=LD_LIBRARY_PATH
13450 shlibpath_overrides_runpath=yes
13452 freebsd3.01* | freebsdelf3.01*)
13453 shlibpath_overrides_runpath=yes
13454 hardcode_into_libs=yes
13457 shlibpath_overrides_runpath=no
13458 hardcode_into_libs=yes
13467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13468 soname_spec='${libname}${release}${shared_ext}$major'
13469 shlibpath_var=LD_LIBRARY_PATH
13470 hardcode_into_libs=yes
13473 hpux9* | hpux10* | hpux11*)
13474 # Give a soname corresponding to the major version so that dld.sl refuses to
13475 # link against other versions.
13479 case "$host_cpu" in
13482 hardcode_into_libs=yes
13483 dynamic_linker="$host_os dld.so"
13484 shlibpath_var=LD_LIBRARY_PATH
13485 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13487 soname_spec='${libname}${release}${shared_ext}$major'
13488 if test "X$HPUX_IA64_MODE" = X32; then
13489 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13491 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13493 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13497 hardcode_into_libs=yes
13498 dynamic_linker="$host_os dld.sl"
13499 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13500 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13502 soname_spec='${libname}${release}${shared_ext}$major'
13503 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13504 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13508 dynamic_linker="$host_os dld.sl"
13509 shlibpath_var=SHLIB_PATH
13510 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13512 soname_spec='${libname}${release}${shared_ext}$major'
13515 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13516 postinstall_cmds='chmod 555 $lib'
13519 irix5* | irix6* | nonstopux*)
13521 nonstopux*) version_type=nonstopux ;;
13523 if test "$lt_cv_prog_gnu_ld" = yes; then
13531 soname_spec='${libname}${release}${shared_ext}$major'
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13534 irix5* | nonstopux*)
13535 libsuff= shlibsuff=
13538 case $LD in # libtool.m4 will add one of these switches to LD
13539 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13540 libsuff= shlibsuff= libmagic=32-bit;;
13541 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13542 libsuff=32 shlibsuff=N32 libmagic=N32;;
13543 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13544 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13545 *) libsuff= shlibsuff= libmagic=never-match;;
13549 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13550 shlibpath_overrides_runpath=no
13551 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13552 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13553 hardcode_into_libs=yes
13556 # No shared lib support for Linux oldld, aout, or coff.
13557 linux*oldld* | linux*aout* | linux*coff*)
13561 # This must be Linux ELF.
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13567 soname_spec='${libname}${release}${shared_ext}$major'
13568 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13569 shlibpath_var=LD_LIBRARY_PATH
13570 shlibpath_overrides_runpath=no
13571 # This implies no fast_install, which is unacceptable.
13572 # Some rework will be needed to allow for fast_install
13573 # before this can be enabled.
13574 hardcode_into_libs=yes
13576 # find out which ABI we are using
13578 case "$host_cpu" in
13579 x86_64*|s390x*|powerpc64*)
13580 echo '#line 13580 "configure"' > conftest.$ac_ext
13581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13582 (eval $ac_compile) 2>&5
13584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13585 (exit $ac_status); }; then
13586 case `/usr/bin/file conftest.$ac_objext` in
13589 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13597 # Append ld.so.conf contents to the search path
13598 if test -f /etc/ld.so.conf; then
13599 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13600 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13603 # We used to test for /lib/ld.so.1 and disable shared libraries on
13604 # powerpc, because MkLinux only supported shared libraries with the
13605 # GNU dynamic linker. Since this was broken with cross compilers,
13606 # most powerpc-linux boxes support dynamic linking these days and
13607 # people can always --disable-shared, the test was removed, and we
13608 # assume the GNU/Linux dynamic linker is in use.
13609 dynamic_linker='GNU/Linux ld.so'
13616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13617 soname_spec='${libname}${release}${shared_ext}$major'
13618 shlibpath_var=LD_LIBRARY_PATH
13619 shlibpath_overrides_runpath=no
13620 hardcode_into_libs=yes
13621 dynamic_linker='GNU ld.so'
13628 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13630 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13631 dynamic_linker='NetBSD (a.out) ld.so'
13633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13634 soname_spec='${libname}${release}${shared_ext}$major'
13635 dynamic_linker='NetBSD ld.elf_so'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=yes
13639 hardcode_into_libs=yes
13644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13645 shlibpath_var=LD_LIBRARY_PATH
13646 shlibpath_overrides_runpath=yes
13653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13654 soname_spec='${libname}${release}${shared_ext}$major'
13655 shlibpath_var=LD_LIBRARY_PATH
13656 shlibpath_overrides_runpath=yes
13663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13664 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13665 shlibpath_var=LD_LIBRARY_PATH
13666 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13668 openbsd2.[89] | openbsd2.[89].*)
13669 shlibpath_overrides_runpath=no
13672 shlibpath_overrides_runpath=yes
13676 shlibpath_overrides_runpath=yes
13681 libname_spec='$name'
13684 library_names_spec='$libname${shared_ext} $libname.a'
13685 dynamic_linker='OS/2 ld.exe'
13686 shlibpath_var=LIBPATH
13689 osf3* | osf4* | osf5*)
13693 soname_spec='${libname}${release}${shared_ext}$major'
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13695 shlibpath_var=LD_LIBRARY_PATH
13696 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13697 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13702 soname_spec='${libname}${release}${shared_ext}$major'
13703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13704 shlibpath_var=LD_LIBRARY_PATH
13711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13712 soname_spec='${libname}${release}${shared_ext}$major'
13713 shlibpath_var=LD_LIBRARY_PATH
13714 shlibpath_overrides_runpath=yes
13715 hardcode_into_libs=yes
13716 # ldd complains unless libraries are executable
13717 postinstall_cmds='chmod +x $lib'
13722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13723 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13724 shlibpath_var=LD_LIBRARY_PATH
13725 shlibpath_overrides_runpath=yes
13726 if test "$with_gnu_ld" = yes; then
13732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735 soname_spec='${libname}${release}${shared_ext}$major'
13736 shlibpath_var=LD_LIBRARY_PATH
13737 case $host_vendor in
13739 shlibpath_overrides_runpath=no
13741 export_dynamic_flag_spec='${wl}-Blargedynsym'
13742 runpath_var=LD_RUN_PATH
13750 shlibpath_overrides_runpath=no
13751 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13757 if test -d /usr/nec ;then
13759 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13760 soname_spec='$libname${shared_ext}.$major'
13761 shlibpath_var=LD_LIBRARY_PATH
13767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13768 soname_spec='${libname}${release}${shared_ext}$major'
13769 shlibpath_var=LD_LIBRARY_PATH
13776 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13777 echo "${ECHO_T}$dynamic_linker" >&6
13778 test "$dynamic_linker" = no && can_build_shared=no
13780 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13781 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13782 hardcode_action_CXX=
13783 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13784 test -n "$runpath_var CXX" || \
13785 test "X$hardcode_automatic_CXX"="Xyes" ; then
13787 # We can hardcode non-existant directories.
13788 if test "$hardcode_direct_CXX" != no &&
13789 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13790 # have to relink, otherwise we might link with an installed library
13791 # when we should be linking with a yet-to-be-installed one
13792 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13793 test "$hardcode_minus_L_CXX" != no; then
13794 # Linking always hardcodes the temporary library directory.
13795 hardcode_action_CXX=relink
13797 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13798 hardcode_action_CXX=immediate
13801 # We cannot hardcode anything, or else we can only hardcode existing
13803 hardcode_action_CXX=unsupported
13805 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13806 echo "${ECHO_T}$hardcode_action_CXX" >&6
13808 if test "$hardcode_action_CXX" = relink; then
13809 # Fast installation is not supported
13810 enable_fast_install=no
13811 elif test "$shlibpath_overrides_runpath" = yes ||
13812 test "$enable_shared" = no; then
13813 # Fast installation is not necessary
13814 enable_fast_install=needless
13819 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13820 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13821 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13822 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13823 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13824 echo "$as_me:$LINENO: result: yes" >&5
13825 echo "${ECHO_T}yes" >&6
13827 # FIXME - insert some real tests, host_os isn't really good enough
13830 if test -n "$STRIP" ; then
13831 striplib="$STRIP -x"
13832 echo "$as_me:$LINENO: result: yes" >&5
13833 echo "${ECHO_T}yes" >&6
13835 echo "$as_me:$LINENO: result: no" >&5
13836 echo "${ECHO_T}no" >&6
13840 echo "$as_me:$LINENO: result: no" >&5
13841 echo "${ECHO_T}no" >&6
13846 if test "x$enable_dlopen" != xyes; then
13847 enable_dlopen=unknown
13848 enable_dlopen_self=unknown
13849 enable_dlopen_self_static=unknown
13856 lt_cv_dlopen="load_add_on"
13858 lt_cv_dlopen_self=yes
13862 lt_cv_dlopen="LoadLibrary"
13867 lt_cv_dlopen="dlopen"
13872 # if libdl is installed we need to link against it
13873 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13874 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13875 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 ac_check_lib_save_LIBS=$LIBS
13880 cat >conftest.$ac_ext <<_ACEOF
13883 cat confdefs.h >>conftest.$ac_ext
13884 cat >>conftest.$ac_ext <<_ACEOF
13885 /* end confdefs.h. */
13887 /* Override any gcc2 internal prototype to avoid an error. */
13891 /* We use char because int might match the return type of a gcc2
13892 builtin and then its argument prototype would still apply. */
13902 rm -f conftest.$ac_objext conftest$ac_exeext
13903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13904 (eval $ac_link) 2>conftest.er1
13906 grep -v '^ *+' conftest.er1 >conftest.err
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } &&
13911 { ac_try='test -z "$ac_cxx_werror_flag"
13912 || test ! -s conftest.err'
13913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13914 (eval $ac_try) 2>&5
13916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13917 (exit $ac_status); }; } &&
13918 { ac_try='test -s conftest$ac_exeext'
13919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13920 (eval $ac_try) 2>&5
13922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13923 (exit $ac_status); }; }; then
13924 ac_cv_lib_dl_dlopen=yes
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_cv_lib_dl_dlopen=no
13931 rm -f conftest.err conftest.$ac_objext \
13932 conftest$ac_exeext conftest.$ac_ext
13933 LIBS=$ac_check_lib_save_LIBS
13935 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13936 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13937 if test $ac_cv_lib_dl_dlopen = yes; then
13938 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13941 lt_cv_dlopen="dyld"
13943 lt_cv_dlopen_self=yes
13950 echo "$as_me:$LINENO: checking for shl_load" >&5
13951 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13952 if test "${ac_cv_func_shl_load+set}" = set; then
13953 echo $ECHO_N "(cached) $ECHO_C" >&6
13955 cat >conftest.$ac_ext <<_ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13963 #define shl_load innocuous_shl_load
13965 /* System header to define __stub macros and hopefully few prototypes,
13966 which can conflict with char shl_load (); below.
13967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13968 <limits.h> exists even on freestanding compilers. */
13971 # include <limits.h>
13973 # include <assert.h>
13978 /* Override any gcc2 internal prototype to avoid an error. */
13983 /* We use char because int might match the return type of a gcc2
13984 builtin and then its argument prototype would still apply. */
13986 /* The GNU C library defines this for functions which it implements
13987 to always fail with ENOSYS. Some functions are actually named
13988 something starting with __ and the normal name is an alias. */
13989 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13992 char (*f) () = shl_load;
14001 return f != shl_load;
14006 rm -f conftest.$ac_objext conftest$ac_exeext
14007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14008 (eval $ac_link) 2>conftest.er1
14010 grep -v '^ *+' conftest.er1 >conftest.err
14012 cat conftest.err >&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); } &&
14015 { ac_try='test -z "$ac_cxx_werror_flag"
14016 || test ! -s conftest.err'
14017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14018 (eval $ac_try) 2>&5
14020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14021 (exit $ac_status); }; } &&
14022 { ac_try='test -s conftest$ac_exeext'
14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14024 (eval $ac_try) 2>&5
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); }; }; then
14028 ac_cv_func_shl_load=yes
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14033 ac_cv_func_shl_load=no
14035 rm -f conftest.err conftest.$ac_objext \
14036 conftest$ac_exeext conftest.$ac_ext
14038 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14039 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14040 if test $ac_cv_func_shl_load = yes; then
14041 lt_cv_dlopen="shl_load"
14043 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14044 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14045 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14046 echo $ECHO_N "(cached) $ECHO_C" >&6
14048 ac_check_lib_save_LIBS=$LIBS
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14057 /* Override any gcc2 internal prototype to avoid an error. */
14061 /* We use char because int might match the return type of a gcc2
14062 builtin and then its argument prototype would still apply. */
14072 rm -f conftest.$ac_objext conftest$ac_exeext
14073 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14074 (eval $ac_link) 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } &&
14081 { ac_try='test -z "$ac_cxx_werror_flag"
14082 || test ! -s conftest.err'
14083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14084 (eval $ac_try) 2>&5
14086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14087 (exit $ac_status); }; } &&
14088 { ac_try='test -s conftest$ac_exeext'
14089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14090 (eval $ac_try) 2>&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); }; }; then
14094 ac_cv_lib_dld_shl_load=yes
14096 echo "$as_me: failed program was:" >&5
14097 sed 's/^/| /' conftest.$ac_ext >&5
14099 ac_cv_lib_dld_shl_load=no
14101 rm -f conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS
14105 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14106 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14107 if test $ac_cv_lib_dld_shl_load = yes; then
14108 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14110 echo "$as_me:$LINENO: checking for dlopen" >&5
14111 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14112 if test "${ac_cv_func_dlopen+set}" = set; then
14113 echo $ECHO_N "(cached) $ECHO_C" >&6
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14122 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14123 #define dlopen innocuous_dlopen
14125 /* System header to define __stub macros and hopefully few prototypes,
14126 which can conflict with char dlopen (); below.
14127 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14128 <limits.h> exists even on freestanding compilers. */
14131 # include <limits.h>
14133 # include <assert.h>
14138 /* Override any gcc2 internal prototype to avoid an error. */
14143 /* We use char because int might match the return type of a gcc2
14144 builtin and then its argument prototype would still apply. */
14146 /* The GNU C library defines this for functions which it implements
14147 to always fail with ENOSYS. Some functions are actually named
14148 something starting with __ and the normal name is an alias. */
14149 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14152 char (*f) () = dlopen;
14161 return f != dlopen;
14166 rm -f conftest.$ac_objext conftest$ac_exeext
14167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14168 (eval $ac_link) 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_cxx_werror_flag"
14176 || test ! -s conftest.err'
14177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14178 (eval $ac_try) 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; } &&
14182 { ac_try='test -s conftest$ac_exeext'
14183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14184 (eval $ac_try) 2>&5
14186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14187 (exit $ac_status); }; }; then
14188 ac_cv_func_dlopen=yes
14190 echo "$as_me: failed program was:" >&5
14191 sed 's/^/| /' conftest.$ac_ext >&5
14193 ac_cv_func_dlopen=no
14195 rm -f conftest.err conftest.$ac_objext \
14196 conftest$ac_exeext conftest.$ac_ext
14198 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14199 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14200 if test $ac_cv_func_dlopen = yes; then
14201 lt_cv_dlopen="dlopen"
14203 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14204 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14205 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14206 echo $ECHO_N "(cached) $ECHO_C" >&6
14208 ac_check_lib_save_LIBS=$LIBS
14210 cat >conftest.$ac_ext <<_ACEOF
14213 cat confdefs.h >>conftest.$ac_ext
14214 cat >>conftest.$ac_ext <<_ACEOF
14215 /* end confdefs.h. */
14217 /* Override any gcc2 internal prototype to avoid an error. */
14221 /* We use char because int might match the return type of a gcc2
14222 builtin and then its argument prototype would still apply. */
14232 rm -f conftest.$ac_objext conftest$ac_exeext
14233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14234 (eval $ac_link) 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } &&
14241 { ac_try='test -z "$ac_cxx_werror_flag"
14242 || test ! -s conftest.err'
14243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14244 (eval $ac_try) 2>&5
14246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14247 (exit $ac_status); }; } &&
14248 { ac_try='test -s conftest$ac_exeext'
14249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14250 (eval $ac_try) 2>&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); }; }; then
14254 ac_cv_lib_dl_dlopen=yes
14256 echo "$as_me: failed program was:" >&5
14257 sed 's/^/| /' conftest.$ac_ext >&5
14259 ac_cv_lib_dl_dlopen=no
14261 rm -f conftest.err conftest.$ac_objext \
14262 conftest$ac_exeext conftest.$ac_ext
14263 LIBS=$ac_check_lib_save_LIBS
14265 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14266 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14267 if test $ac_cv_lib_dl_dlopen = yes; then
14268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14270 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14271 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14272 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 ac_check_lib_save_LIBS=$LIBS
14276 LIBS="-lsvld $LIBS"
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14284 /* Override any gcc2 internal prototype to avoid an error. */
14288 /* We use char because int might match the return type of a gcc2
14289 builtin and then its argument prototype would still apply. */
14299 rm -f conftest.$ac_objext conftest$ac_exeext
14300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14301 (eval $ac_link) 2>conftest.er1
14303 grep -v '^ *+' conftest.er1 >conftest.err
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_cxx_werror_flag"
14309 || test ! -s conftest.err'
14310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14311 (eval $ac_try) 2>&5
14313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14314 (exit $ac_status); }; } &&
14315 { ac_try='test -s conftest$ac_exeext'
14316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14317 (eval $ac_try) 2>&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); }; }; then
14321 ac_cv_lib_svld_dlopen=yes
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.$ac_ext >&5
14326 ac_cv_lib_svld_dlopen=no
14328 rm -f conftest.err conftest.$ac_objext \
14329 conftest$ac_exeext conftest.$ac_ext
14330 LIBS=$ac_check_lib_save_LIBS
14332 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14333 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14334 if test $ac_cv_lib_svld_dlopen = yes; then
14335 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14337 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14338 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14339 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 ac_check_lib_save_LIBS=$LIBS
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any gcc2 internal prototype to avoid an error. */
14355 /* We use char because int might match the return type of a gcc2
14356 builtin and then its argument prototype would still apply. */
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14368 (eval $ac_link) 2>conftest.er1
14370 grep -v '^ *+' conftest.er1 >conftest.err
14372 cat conftest.err >&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } &&
14375 { ac_try='test -z "$ac_cxx_werror_flag"
14376 || test ! -s conftest.err'
14377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14378 (eval $ac_try) 2>&5
14380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381 (exit $ac_status); }; } &&
14382 { ac_try='test -s conftest$ac_exeext'
14383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14384 (eval $ac_try) 2>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); }; }; then
14388 ac_cv_lib_dld_dld_link=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.$ac_ext >&5
14393 ac_cv_lib_dld_dld_link=no
14395 rm -f conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LIBS=$ac_check_lib_save_LIBS
14399 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14400 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14401 if test $ac_cv_lib_dld_dld_link = yes; then
14402 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14423 if test "x$lt_cv_dlopen" != xno; then
14429 case $lt_cv_dlopen in
14431 save_CPPFLAGS="$CPPFLAGS"
14432 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14434 save_LDFLAGS="$LDFLAGS"
14435 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14438 LIBS="$lt_cv_dlopen_libs $LIBS"
14440 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14441 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14442 if test "${lt_cv_dlopen_self+set}" = set; then
14443 echo $ECHO_N "(cached) $ECHO_C" >&6
14445 if test "$cross_compiling" = yes; then :
14446 lt_cv_dlopen_self=cross
14448 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14449 lt_status=$lt_dlunknown
14450 cat > conftest.$ac_ext <<EOF
14451 #line 14451 "configure"
14452 #include "confdefs.h"
14461 # define LT_DLGLOBAL RTLD_GLOBAL
14464 # define LT_DLGLOBAL DL_GLOBAL
14466 # define LT_DLGLOBAL 0
14470 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14471 find out it does not work in some platform. */
14472 #ifndef LT_DLLAZY_OR_NOW
14474 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14477 # define LT_DLLAZY_OR_NOW DL_LAZY
14480 # define LT_DLLAZY_OR_NOW RTLD_NOW
14483 # define LT_DLLAZY_OR_NOW DL_NOW
14485 # define LT_DLLAZY_OR_NOW 0
14493 extern "C" void exit (int);
14496 void fnord() { int i=42;}
14499 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14500 int status = $lt_dlunknown;
14504 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14505 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14506 /* dlclose (self); */
14512 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14513 (eval $ac_link) 2>&5
14515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14517 (./conftest; exit; ) 2>/dev/null
14519 case x$lt_status in
14520 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14521 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14522 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14525 # compilation failed
14526 lt_cv_dlopen_self=no
14533 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14534 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14536 if test "x$lt_cv_dlopen_self" = xyes; then
14537 LDFLAGS="$LDFLAGS $link_static_flag"
14538 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14539 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14540 if test "${lt_cv_dlopen_self_static+set}" = set; then
14541 echo $ECHO_N "(cached) $ECHO_C" >&6
14543 if test "$cross_compiling" = yes; then :
14544 lt_cv_dlopen_self_static=cross
14546 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14547 lt_status=$lt_dlunknown
14548 cat > conftest.$ac_ext <<EOF
14549 #line 14549 "configure"
14550 #include "confdefs.h"
14559 # define LT_DLGLOBAL RTLD_GLOBAL
14562 # define LT_DLGLOBAL DL_GLOBAL
14564 # define LT_DLGLOBAL 0
14568 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14569 find out it does not work in some platform. */
14570 #ifndef LT_DLLAZY_OR_NOW
14572 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14575 # define LT_DLLAZY_OR_NOW DL_LAZY
14578 # define LT_DLLAZY_OR_NOW RTLD_NOW
14581 # define LT_DLLAZY_OR_NOW DL_NOW
14583 # define LT_DLLAZY_OR_NOW 0
14591 extern "C" void exit (int);
14594 void fnord() { int i=42;}
14597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598 int status = $lt_dlunknown;
14602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14603 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14604 /* dlclose (self); */
14610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14611 (eval $ac_link) 2>&5
14613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14614 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14615 (./conftest; exit; ) 2>/dev/null
14617 case x$lt_status in
14618 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14619 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14620 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14623 # compilation failed
14624 lt_cv_dlopen_self_static=no
14631 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14632 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14635 CPPFLAGS="$save_CPPFLAGS"
14636 LDFLAGS="$save_LDFLAGS"
14641 case $lt_cv_dlopen_self in
14642 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14643 *) enable_dlopen_self=unknown ;;
14646 case $lt_cv_dlopen_self_static in
14647 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14648 *) enable_dlopen_self_static=unknown ;;
14653 # The else clause should only fire when bootstrapping the
14654 # libtool distribution, otherwise you forgot to ship ltmain.sh
14655 # with your package, and you will get complaints that there are
14656 # no rules to generate ltmain.sh.
14657 if test -f "$ltmain"; then
14658 # See if we are running on zsh, and set the options which allow our commands through
14659 # without removal of \ escapes.
14660 if test -n "${ZSH_VERSION+set}" ; then
14661 setopt NO_GLOB_SUBST
14663 # Now quote all the things that may contain metacharacters while being
14664 # careful not to overquote the AC_SUBSTed values. We take copies of the
14665 # variables and quote the copies for generation of the libtool script.
14666 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14668 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14669 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14670 deplibs_check_method reload_flag reload_cmds need_locks \
14671 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14672 lt_cv_sys_global_symbol_to_c_name_address \
14673 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14674 old_postinstall_cmds old_postuninstall_cmds \
14678 lt_prog_compiler_wl_CXX \
14679 lt_prog_compiler_pic_CXX \
14680 lt_prog_compiler_static_CXX \
14681 lt_prog_compiler_no_builtin_flag_CXX \
14682 export_dynamic_flag_spec_CXX \
14683 thread_safe_flag_spec_CXX \
14684 whole_archive_flag_spec_CXX \
14685 enable_shared_with_static_runtimes_CXX \
14686 old_archive_cmds_CXX \
14687 old_archive_from_new_cmds_CXX \
14688 predep_objects_CXX \
14689 postdep_objects_CXX \
14692 compiler_lib_search_path_CXX \
14694 archive_expsym_cmds_CXX \
14695 postinstall_cmds_CXX \
14696 postuninstall_cmds_CXX \
14697 old_archive_from_expsyms_cmds_CXX \
14698 allow_undefined_flag_CXX \
14699 no_undefined_flag_CXX \
14700 export_symbols_cmds_CXX \
14701 hardcode_libdir_flag_spec_CXX \
14702 hardcode_libdir_flag_spec_ld_CXX \
14703 hardcode_libdir_separator_CXX \
14704 hardcode_automatic_CXX \
14706 module_expsym_cmds_CXX \
14707 lt_cv_prog_compiler_c_o_CXX \
14708 exclude_expsyms_CXX \
14709 include_expsyms_CXX; do
14712 old_archive_cmds_CXX | \
14713 old_archive_from_new_cmds_CXX | \
14714 archive_cmds_CXX | \
14715 archive_expsym_cmds_CXX | \
14716 module_cmds_CXX | \
14717 module_expsym_cmds_CXX | \
14718 old_archive_from_expsyms_cmds_CXX | \
14719 export_symbols_cmds_CXX | \
14720 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14721 postinstall_cmds | postuninstall_cmds | \
14722 old_postinstall_cmds | old_postuninstall_cmds | \
14723 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14724 # Double-quote double-evaled strings.
14725 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14728 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14734 *'\$0 --fallback-echo"')
14735 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14741 cat <<__EOF__ >> "$cfgfile"
14742 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14744 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14746 # Shell to use when invoking shell scripts.
14749 # Whether or not to build shared libraries.
14750 build_libtool_libs=$enable_shared
14752 # Whether or not to build static libraries.
14753 build_old_libs=$enable_static
14755 # Whether or not to add -lc for building shared libraries.
14756 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14758 # Whether or not to disallow shared libs when runtime libs are static
14759 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14761 # Whether or not to optimize for fast installation.
14762 fast_install=$enable_fast_install
14765 host_alias=$host_alias
14768 # An echo program that does not interpret backslashes.
14773 AR_FLAGS=$lt_AR_FLAGS
14778 # A language-specific compiler.
14779 CC=$lt_compiler_CXX
14781 # Is the compiler the GNU C compiler?
14787 # The linker used to build libraries.
14790 # Whether we need hard or soft links.
14793 # A BSD-compatible nm program.
14796 # A symbol stripping program
14799 # Used to examine libraries when file_magic_cmd begins "file"
14800 MAGIC_CMD=$MAGIC_CMD
14802 # Used on cygwin: DLL creation program.
14805 # Used on cygwin: object dumper.
14808 # Used on cygwin: assembler.
14811 # The name of the directory that contains temporary libtool files.
14814 # How to create reloadable object files.
14815 reload_flag=$lt_reload_flag
14816 reload_cmds=$lt_reload_cmds
14818 # How to pass a linker flag through the compiler.
14819 wl=$lt_lt_prog_compiler_wl_CXX
14821 # Object file suffix (normally "o").
14822 objext="$ac_objext"
14824 # Old archive suffix (normally "a").
14827 # Shared library suffix (normally ".so").
14828 shrext_cmds='$shrext_cmds'
14830 # Executable file suffix (normally "").
14833 # Additional compiler flags for building library objects.
14834 pic_flag=$lt_lt_prog_compiler_pic_CXX
14837 # What is the maximum length of a command?
14838 max_cmd_len=$lt_cv_sys_max_cmd_len
14840 # Does compiler simultaneously support -c and -o options?
14841 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14843 # Must we lock files when doing compilation ?
14844 need_locks=$lt_need_locks
14846 # Do we need the lib prefix for modules?
14847 need_lib_prefix=$need_lib_prefix
14849 # Do we need a version for libraries?
14850 need_version=$need_version
14852 # Whether dlopen is supported.
14853 dlopen_support=$enable_dlopen
14855 # Whether dlopen of programs is supported.
14856 dlopen_self=$enable_dlopen_self
14858 # Whether dlopen of statically linked programs is supported.
14859 dlopen_self_static=$enable_dlopen_self_static
14861 # Compiler flag to prevent dynamic linking.
14862 link_static_flag=$lt_lt_prog_compiler_static_CXX
14864 # Compiler flag to turn off builtin functions.
14865 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14867 # Compiler flag to allow reflexive dlopens.
14868 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14870 # Compiler flag to generate shared objects directly from archives.
14871 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14873 # Compiler flag to generate thread-safe objects.
14874 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14876 # Library versioning type.
14877 version_type=$version_type
14879 # Format of library name prefix.
14880 libname_spec=$lt_libname_spec
14882 # List of archive names. First name is the real one, the rest are links.
14883 # The last name is the one that the linker finds with -lNAME.
14884 library_names_spec=$lt_library_names_spec
14886 # The coded name of the library, if different from the real name.
14887 soname_spec=$lt_soname_spec
14889 # Commands used to build and install an old-style archive.
14891 old_archive_cmds=$lt_old_archive_cmds_CXX
14892 old_postinstall_cmds=$lt_old_postinstall_cmds
14893 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14895 # Create an old-style archive from a shared archive.
14896 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14898 # Create a temporary old-style archive to link instead of a shared archive.
14899 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14901 # Commands used to build and install a shared archive.
14902 archive_cmds=$lt_archive_cmds_CXX
14903 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14904 postinstall_cmds=$lt_postinstall_cmds
14905 postuninstall_cmds=$lt_postuninstall_cmds
14907 # Commands used to build a loadable module (assumed same as above if empty)
14908 module_cmds=$lt_module_cmds_CXX
14909 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14911 # Commands to strip libraries.
14912 old_striplib=$lt_old_striplib
14913 striplib=$lt_striplib
14915 # Dependencies to place before the objects being linked to create a
14917 predep_objects=$lt_predep_objects_CXX
14919 # Dependencies to place after the objects being linked to create a
14921 postdep_objects=$lt_postdep_objects_CXX
14923 # Dependencies to place before the objects being linked to create a
14925 predeps=$lt_predeps_CXX
14927 # Dependencies to place after the objects being linked to create a
14929 postdeps=$lt_postdeps_CXX
14931 # The library search path used internally by the compiler when linking
14932 # a shared library.
14933 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14935 # Method to check whether dependent libraries are shared objects.
14936 deplibs_check_method=$lt_deplibs_check_method
14938 # Command to use when deplibs_check_method == file_magic.
14939 file_magic_cmd=$lt_file_magic_cmd
14941 # Flag that allows shared libraries with undefined symbols to be built.
14942 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14944 # Flag that forces no undefined symbols.
14945 no_undefined_flag=$lt_no_undefined_flag_CXX
14947 # Commands used to finish a libtool library installation in a directory.
14948 finish_cmds=$lt_finish_cmds
14950 # Same as above, but a single script fragment to be evaled but not shown.
14951 finish_eval=$lt_finish_eval
14953 # Take the output of nm and produce a listing of raw symbols and C names.
14954 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14956 # Transform the output of nm in a proper C declaration
14957 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14959 # Transform the output of nm in a C name address pair
14960 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14962 # This is the shared library runtime path variable.
14963 runpath_var=$runpath_var
14965 # This is the shared library path variable.
14966 shlibpath_var=$shlibpath_var
14968 # Is shlibpath searched before the hard-coded library search path?
14969 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14971 # How to hardcode a shared library path into an executable.
14972 hardcode_action=$hardcode_action_CXX
14974 # Whether we should hardcode library paths into libraries.
14975 hardcode_into_libs=$hardcode_into_libs
14977 # Flag to hardcode \$libdir into a binary during linking.
14978 # This must work even if \$libdir does not exist.
14979 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14981 # If ld is used when linking, flag to hardcode \$libdir into
14982 # a binary during linking. This must work even if \$libdir does
14984 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14986 # Whether we need a single -rpath flag with a separated argument.
14987 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14989 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14990 # resulting binary.
14991 hardcode_direct=$hardcode_direct_CXX
14993 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14994 # resulting binary.
14995 hardcode_minus_L=$hardcode_minus_L_CXX
14997 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14998 # the resulting binary.
14999 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15001 # Set to yes if building a shared library automatically hardcodes DIR into the library
15002 # and all subsequent libraries and executables linked against it.
15003 hardcode_automatic=$hardcode_automatic_CXX
15005 # Variables whose values should be saved in libtool wrapper scripts and
15006 # restored at relink time.
15007 variables_saved_for_relink="$variables_saved_for_relink"
15009 # Whether libtool must link a program against all its dependency libraries.
15010 link_all_deplibs=$link_all_deplibs_CXX
15012 # Compile-time system search path for libraries
15013 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15015 # Run-time system search path for libraries
15016 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15018 # Fix the shell variable \$srcfile for the compiler.
15019 fix_srcfile_path="$fix_srcfile_path_CXX"
15021 # Set to yes if exported symbols are required.
15022 always_export_symbols=$always_export_symbols_CXX
15024 # The commands to list exported symbols.
15025 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15027 # The commands to extract the exported symbol list from a shared archive.
15028 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15030 # Symbols that should not be listed in the preloaded symbols.
15031 exclude_expsyms=$lt_exclude_expsyms_CXX
15033 # Symbols that must always be exported.
15034 include_expsyms=$lt_include_expsyms_CXX
15036 # ### END LIBTOOL TAG CONFIG: $tagname
15042 # If there is no Makefile yet, we rely on a make rule to execute
15043 # `config.status --recheck' to rerun these tests and create the
15044 # libtool script then.
15045 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15046 if test -f "$ltmain_in"; then
15047 test -f Makefile && make "$ltmain"
15053 ac_cpp='$CPP $CPPFLAGS'
15054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15062 with_gnu_ldcxx=$with_gnu_ld
15063 with_gnu_ld=$lt_save_with_gnu_ld
15064 lt_cv_path_LDCXX=$lt_cv_path_LD
15065 lt_cv_path_LD=$lt_save_path_LD
15066 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15067 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15075 if test -n "$F77" && test "X$F77" != "Xno"; then
15078 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15079 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15083 archive_cmds_need_lc_F77=no
15084 allow_undefined_flag_F77=
15085 always_export_symbols_F77=no
15086 archive_expsym_cmds_F77=
15087 export_dynamic_flag_spec_F77=
15088 hardcode_direct_F77=no
15089 hardcode_libdir_flag_spec_F77=
15090 hardcode_libdir_flag_spec_ld_F77=
15091 hardcode_libdir_separator_F77=
15092 hardcode_minus_L_F77=no
15093 hardcode_automatic_F77=no
15095 module_expsym_cmds_F77=
15096 link_all_deplibs_F77=unknown
15097 old_archive_cmds_F77=$old_archive_cmds
15098 no_undefined_flag_F77=
15099 whole_archive_flag_spec_F77=
15100 enable_shared_with_static_runtimes_F77=no
15102 # Source file extension for f77 test sources.
15105 # Object file extension for compiled f77 test sources.
15109 # Code to be used in simple compile tests
15110 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15112 # Code to be used in simple link tests
15113 lt_simple_link_test_code=" program t\n end\n"
15115 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15117 # If no C compiler was specified, use CC.
15120 # Allow CC to be a program name with arguments.
15124 # Allow CC to be a program name with arguments.
15129 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15131 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15132 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15133 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15134 echo "${ECHO_T}$can_build_shared" >&6
15136 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15137 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15138 test "$can_build_shared" = "no" && enable_shared=no
15140 # On AIX, shared libraries and static libraries use the same namespace, and
15141 # are all built from PIC.
15144 test "$enable_shared" = yes && enable_static=no
15145 if test -n "$RANLIB"; then
15146 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15147 postinstall_cmds='$RANLIB $lib'
15151 test "$enable_shared" = yes && enable_static=no
15154 echo "$as_me:$LINENO: result: $enable_shared" >&5
15155 echo "${ECHO_T}$enable_shared" >&6
15157 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15158 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15159 # Make sure either enable_shared or enable_static is yes.
15160 test "$enable_shared" = yes || enable_static=yes
15161 echo "$as_me:$LINENO: result: $enable_static" >&5
15162 echo "${ECHO_T}$enable_static" >&6
15164 test "$ld_shlibs_F77" = no && can_build_shared=no
15169 lt_prog_compiler_wl_F77=
15170 lt_prog_compiler_pic_F77=
15171 lt_prog_compiler_static_F77=
15173 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15174 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15176 if test "$GCC" = yes; then
15177 lt_prog_compiler_wl_F77='-Wl,'
15178 lt_prog_compiler_static_F77='-static'
15182 # All AIX code is PIC.
15183 if test "$host_cpu" = ia64; then
15184 # AIX 5 now supports IA64 processor
15185 lt_prog_compiler_static_F77='-Bstatic'
15190 # FIXME: we need at least 68020 code to build shared libraries, but
15191 # adding the `-m68020' flag to GCC prevents building anything better,
15193 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15196 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15197 # PIC is the default for these OSes.
15200 mingw* | pw32* | os2*)
15201 # This hack is so that the source file can tell whether it is being
15202 # built for inclusion in a dll (and should export symbols for example).
15203 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15206 darwin* | rhapsody*)
15207 # PIC is the default on this platform
15208 # Common symbols not allowed in MH_DYLIB files
15209 lt_prog_compiler_pic_F77='-fno-common'
15213 # Just because we use GCC doesn't mean we suddenly get shared libraries
15214 # on systems that don't support them.
15215 lt_prog_compiler_can_build_shared_F77=no
15220 if test -d /usr/nec; then
15221 lt_prog_compiler_pic_F77=-Kconform_pic
15226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15227 # not for PA HP-UX.
15228 case "$host_cpu" in
15233 lt_prog_compiler_pic_F77='-fPIC'
15239 lt_prog_compiler_pic_F77='-fPIC'
15243 # PORTME Check for flag to pass linker flags through the system compiler.
15246 lt_prog_compiler_wl_F77='-Wl,'
15247 if test "$host_cpu" = ia64; then
15248 # AIX 5 now supports IA64 processor
15249 lt_prog_compiler_static_F77='-Bstatic'
15251 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15255 mingw* | pw32* | os2*)
15256 # This hack is so that the source file can tell whether it is being
15257 # built for inclusion in a dll (and should export symbols for example).
15258 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15261 hpux9* | hpux10* | hpux11*)
15262 lt_prog_compiler_wl_F77='-Wl,'
15263 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15264 # not for PA HP-UX.
15265 case "$host_cpu" in
15270 lt_prog_compiler_pic_F77='+Z'
15273 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15274 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15277 irix5* | irix6* | nonstopux*)
15278 lt_prog_compiler_wl_F77='-Wl,'
15279 # PIC (with -KPIC) is the default.
15280 lt_prog_compiler_static_F77='-non_shared'
15284 lt_prog_compiler_pic_F77='-KPIC'
15285 lt_prog_compiler_static_F77='-Bstatic'
15291 lt_prog_compiler_wl_F77='-Wl,'
15292 lt_prog_compiler_pic_F77='-KPIC'
15293 lt_prog_compiler_static_F77='-static'
15296 lt_prog_compiler_wl_F77='-Wl,'
15297 # All Alpha code is PIC.
15298 lt_prog_compiler_static_F77='-non_shared'
15303 osf3* | osf4* | osf5*)
15304 lt_prog_compiler_wl_F77='-Wl,'
15305 # All OSF/1 code is PIC.
15306 lt_prog_compiler_static_F77='-non_shared'
15310 lt_prog_compiler_pic_F77='-Kpic'
15311 lt_prog_compiler_static_F77='-dn'
15315 lt_prog_compiler_wl_F77='-Wl,'
15316 lt_prog_compiler_pic_F77='-KPIC'
15317 lt_prog_compiler_static_F77='-Bstatic'
15321 lt_prog_compiler_wl_F77='-Qoption ld '
15322 lt_prog_compiler_pic_F77='-PIC'
15323 lt_prog_compiler_static_F77='-Bstatic'
15326 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15327 lt_prog_compiler_wl_F77='-Wl,'
15328 lt_prog_compiler_pic_F77='-KPIC'
15329 lt_prog_compiler_static_F77='-Bstatic'
15333 if test -d /usr/nec ;then
15334 lt_prog_compiler_pic_F77='-Kconform_pic'
15335 lt_prog_compiler_static_F77='-Bstatic'
15340 lt_prog_compiler_pic_F77='-pic'
15341 lt_prog_compiler_static_F77='-Bstatic'
15345 lt_prog_compiler_can_build_shared_F77=no
15350 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15351 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15354 # Check to make sure the PIC flag actually works.
15356 if test -n "$lt_prog_compiler_pic_F77"; then
15358 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15359 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15360 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15361 echo $ECHO_N "(cached) $ECHO_C" >&6
15363 lt_prog_compiler_pic_works_F77=no
15364 ac_outfile=conftest.$ac_objext
15365 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15366 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15367 # Insert the option either (1) after the last *FLAGS variable, or
15368 # (2) before a word containing "conftest.", or (3) at the end.
15369 # Note that $ac_compile itself does not contain backslashes and begins
15370 # with a dollar sign (not a hyphen), so the echo should work correctly.
15371 # The option is referenced via a variable to avoid confusing sed.
15372 lt_compile=`echo "$ac_compile" | $SED \
15373 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15374 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15375 -e 's:$: $lt_compiler_flag:'`
15376 (eval echo "\"\$as_me:15376: $lt_compile\"" >&5)
15377 (eval "$lt_compile" 2>conftest.err)
15379 cat conftest.err >&5
15380 echo "$as_me:15380: \$? = $ac_status" >&5
15381 if (exit $ac_status) && test -s "$ac_outfile"; then
15382 # The compiler can only warn and ignore the option if not recognized
15383 # So say no if there are warnings
15384 if test ! -s conftest.err; then
15385 lt_prog_compiler_pic_works_F77=yes
15391 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15392 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15394 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15395 case $lt_prog_compiler_pic_F77 in
15397 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15400 lt_prog_compiler_pic_F77=
15401 lt_prog_compiler_can_build_shared_F77=no
15406 # For platforms which do not support PIC, -DPIC is meaningless:
15408 lt_prog_compiler_pic_F77=
15411 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15415 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15416 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15417 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15418 echo $ECHO_N "(cached) $ECHO_C" >&6
15420 lt_cv_prog_compiler_c_o_F77=no
15421 $rm -r conftest 2>/dev/null
15425 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15427 lt_compiler_flag="-o out/conftest2.$ac_objext"
15428 # Insert the option either (1) after the last *FLAGS variable, or
15429 # (2) before a word containing "conftest.", or (3) at the end.
15430 # Note that $ac_compile itself does not contain backslashes and begins
15431 # with a dollar sign (not a hyphen), so the echo should work correctly.
15432 lt_compile=`echo "$ac_compile" | $SED \
15433 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15435 -e 's:$: $lt_compiler_flag:'`
15436 (eval echo "\"\$as_me:15436: $lt_compile\"" >&5)
15437 (eval "$lt_compile" 2>out/conftest.err)
15439 cat out/conftest.err >&5
15440 echo "$as_me:15440: \$? = $ac_status" >&5
15441 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15443 # The compiler can only warn and ignore the option if not recognized
15444 # So say no if there are warnings
15445 if test ! -s out/conftest.err; then
15446 lt_cv_prog_compiler_c_o_F77=yes
15451 # SGI C++ compiler will create directory out/ii_files/ for
15452 # template instantiation
15453 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15454 $rm out/* && rmdir out
15460 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15461 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15464 hard_links="nottested"
15465 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15466 # do not overwrite the value of need_locks provided by the user
15467 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15468 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15471 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15473 ln conftest.a conftest.b 2>&5 || hard_links=no
15474 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15475 echo "$as_me:$LINENO: result: $hard_links" >&5
15476 echo "${ECHO_T}$hard_links" >&6
15477 if test "$hard_links" = no; then
15478 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15479 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15486 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15487 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15490 allow_undefined_flag_F77=
15491 enable_shared_with_static_runtimes_F77=no
15493 archive_expsym_cmds_F77=
15494 old_archive_From_new_cmds_F77=
15495 old_archive_from_expsyms_cmds_F77=
15496 export_dynamic_flag_spec_F77=
15497 whole_archive_flag_spec_F77=
15498 thread_safe_flag_spec_F77=
15499 hardcode_libdir_flag_spec_F77=
15500 hardcode_libdir_flag_spec_ld_F77=
15501 hardcode_libdir_separator_F77=
15502 hardcode_direct_F77=no
15503 hardcode_minus_L_F77=no
15504 hardcode_shlibpath_var_F77=unsupported
15505 link_all_deplibs_F77=unknown
15506 hardcode_automatic_F77=no
15508 module_expsym_cmds_F77=
15509 always_export_symbols_F77=no
15510 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15511 # include_expsyms should be a list of space-separated symbols to be *always*
15512 # included in the symbol list
15513 include_expsyms_F77=
15514 # exclude_expsyms can be an extended regexp of symbols to exclude
15515 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15516 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15517 # as well as any symbol that contains `d'.
15518 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15519 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15520 # platforms (ab)use it in PIC code, but their linkers get confused if
15521 # the symbol is explicitly referenced. Since portable code cannot
15522 # rely on this symbol name, it's probably fine to never include it in
15523 # preloaded symbol tables.
15524 extract_expsyms_cmds=
15527 cygwin* | mingw* | pw32*)
15528 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15529 # When not using gcc, we currently assume that we are using
15530 # Microsoft Visual C++.
15531 if test "$GCC" != yes; then
15541 if test "$with_gnu_ld" = yes; then
15542 # If archive_cmds runs LD, not CC, wlarc should be empty
15545 # See if GNU ld supports shared libraries.
15547 aix3* | aix4* | aix5*)
15548 # On AIX/PPC, the GNU linker is very broken
15549 if test "$host_cpu" != ia64; then
15553 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15554 *** to be unable to reliably create shared libraries on AIX.
15555 *** Therefore, libtool is disabling shared libraries support. If you
15556 *** really care for shared libraries, you may want to modify your PATH
15557 *** so that a non-GNU linker is found, and then restart.
15564 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)'
15565 hardcode_libdir_flag_spec_F77='-L$libdir'
15566 hardcode_minus_L_F77=yes
15568 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15569 # that the semantics of dynamic libraries on AmigaOS, at least up
15570 # to version 4, is to share data among multiple programs linked
15571 # with the same dynamic library. Since this doesn't match the
15572 # behavior of shared libraries on other platforms, we can't use
15578 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15579 allow_undefined_flag_F77=unsupported
15580 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15581 # support --undefined. This deserves some investigation. FIXME
15582 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15588 cygwin* | mingw* | pw32*)
15589 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15590 # as there is no search path for DLLs.
15591 hardcode_libdir_flag_spec_F77='-L$libdir'
15592 allow_undefined_flag_F77=unsupported
15593 always_export_symbols_F77=no
15594 enable_shared_with_static_runtimes_F77=yes
15595 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15597 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15598 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15599 # If the export-symbols file already is a .def file (1st line
15600 # is EXPORTS), use it as is; otherwise, prepend...
15601 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15602 cp $export_symbols $output_objdir/$soname.def;
15604 echo EXPORTS > $output_objdir/$soname.def;
15605 cat $export_symbols >> $output_objdir/$soname.def;
15607 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15614 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15615 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15624 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15628 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15629 *** create shared libraries on Solaris systems. Therefore, libtool
15630 *** is disabling shared libraries support. We urge you to upgrade GNU
15631 *** binutils to release 2.9.1 or newer. Another option is to modify
15632 *** your PATH or compiler configuration so that the native linker is
15633 *** used, and then restart.
15636 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15637 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15638 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15645 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15647 hardcode_direct_F77=yes
15648 hardcode_shlibpath_var_F77=no
15652 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15653 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15654 archive_cmds_F77="$tmp_archive_cmds"
15655 supports_anon_versioning=no
15656 case `$LD -v 2>/dev/null` in
15657 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15658 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15659 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15660 *\ 2.11.*) ;; # other 2.11 versions
15661 *) supports_anon_versioning=yes ;;
15663 if test $supports_anon_versioning = yes; then
15664 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15665 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15666 $echo "local: *; };" >> $output_objdir/$libname.ver~
15667 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15669 archive_expsym_cmds_F77="$tmp_archive_cmds"
15677 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15678 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15679 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15686 if test "$ld_shlibs_F77" = yes; then
15687 runpath_var=LD_RUN_PATH
15688 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15689 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15690 # ancient GNU ld didn't support --whole-archive et. al.
15691 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15692 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15694 whole_archive_flag_spec_F77=
15698 # PORTME fill in a description of your system's linker (not GNU ld)
15701 allow_undefined_flag_F77=unsupported
15702 always_export_symbols_F77=yes
15703 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'
15704 # Note: this linker hardcodes the directories in LIBPATH if there
15705 # are no directories specified by -L.
15706 hardcode_minus_L_F77=yes
15707 if test "$GCC" = yes && test -z "$link_static_flag"; then
15708 # Neither direct hardcoding nor static linking is supported with a
15710 hardcode_direct_F77=unsupported
15715 if test "$host_cpu" = ia64; then
15716 # On IA64, the linker does run time linking by default, so we don't
15717 # have to do anything special.
15718 aix_use_runtimelinking=no
15719 exp_sym_flag='-Bexport'
15722 # If we're using GNU nm, then we don't want the "-C" option.
15723 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15724 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15725 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'
15727 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'
15729 aix_use_runtimelinking=no
15731 # Test if we are trying to use run time linking or normal
15732 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15733 # need to do runtime linking.
15734 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15735 for ld_flag in $LDFLAGS; do
15736 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15737 aix_use_runtimelinking=yes
15743 exp_sym_flag='-bexport'
15744 no_entry_flag='-bnoentry'
15747 # When large executables or shared objects are built, AIX ld can
15748 # have problems creating the table of contents. If linking a library
15749 # or program results in "error TOC overflow" add -mminimal-toc to
15750 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15751 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15753 archive_cmds_F77=''
15754 hardcode_direct_F77=yes
15755 hardcode_libdir_separator_F77=':'
15756 link_all_deplibs_F77=yes
15758 if test "$GCC" = yes; then
15759 case $host_os in aix4.012|aix4.012.*)
15760 # We only want to do this on AIX 4.2 and lower, the check
15761 # below for broken collect2 doesn't work under 4.3+
15762 collect2name=`${CC} -print-prog-name=collect2`
15763 if test -f "$collect2name" && \
15764 strings "$collect2name" | grep resolve_lib_name >/dev/null
15766 # We have reworked collect2
15767 hardcode_direct_F77=yes
15769 # We have old collect2
15770 hardcode_direct_F77=unsupported
15771 # It fails to find uninstalled libraries when the uninstalled
15772 # path is not listed in the libpath. Setting hardcode_minus_L
15773 # to unsupported forces relinking
15774 hardcode_minus_L_F77=yes
15775 hardcode_libdir_flag_spec_F77='-L$libdir'
15776 hardcode_libdir_separator_F77=
15779 shared_flag='-shared'
15782 if test "$host_cpu" = ia64; then
15783 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15784 # chokes on -Wl,-G. The following line is correct:
15787 if test "$aix_use_runtimelinking" = yes; then
15788 shared_flag='${wl}-G'
15790 shared_flag='${wl}-bM:SRE'
15795 # It seems that -bexpall does not export symbols beginning with
15796 # underscore (_), so it is better to generate a list of symbols to export.
15797 always_export_symbols_F77=yes
15798 if test "$aix_use_runtimelinking" = yes; then
15799 # Warning - without using the other runtime loading flags (-brtl),
15800 # -berok will link without error, but may produce a broken library.
15801 allow_undefined_flag_F77='-berok'
15802 # Determine the default libpath from the value encoded in an empty executable.
15803 cat >conftest.$ac_ext <<_ACEOF
15808 rm -f conftest.$ac_objext conftest$ac_exeext
15809 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15810 (eval $ac_link) 2>conftest.er1
15812 grep -v '^ *+' conftest.er1 >conftest.err
15814 cat conftest.err >&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } &&
15817 { ac_try='test -z "$ac_f77_werror_flag"
15818 || test ! -s conftest.err'
15819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15820 (eval $ac_try) 2>&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); }; } &&
15824 { ac_try='test -s conftest$ac_exeext'
15825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15826 (eval $ac_try) 2>&5
15828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15829 (exit $ac_status); }; }; then
15831 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15833 # Check for a 64-bit object if we didn't find anything.
15834 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; }
15837 echo "$as_me: failed program was:" >&5
15838 sed 's/^/| /' conftest.$ac_ext >&5
15841 rm -f conftest.err conftest.$ac_objext \
15842 conftest$ac_exeext conftest.$ac_ext
15843 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15845 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15846 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"
15848 if test "$host_cpu" = ia64; then
15849 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15850 allow_undefined_flag_F77="-z nodefs"
15851 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"
15853 # Determine the default libpath from the value encoded in an empty executable.
15854 cat >conftest.$ac_ext <<_ACEOF
15859 rm -f conftest.$ac_objext conftest$ac_exeext
15860 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15861 (eval $ac_link) 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_f77_werror_flag"
15869 || test ! -s conftest.err'
15870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15871 (eval $ac_try) 2>&5
15873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15874 (exit $ac_status); }; } &&
15875 { ac_try='test -s conftest$ac_exeext'
15876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15877 (eval $ac_try) 2>&5
15879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15880 (exit $ac_status); }; }; then
15882 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15884 # Check for a 64-bit object if we didn't find anything.
15885 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; }
15888 echo "$as_me: failed program was:" >&5
15889 sed 's/^/| /' conftest.$ac_ext >&5
15892 rm -f conftest.err conftest.$ac_objext \
15893 conftest$ac_exeext conftest.$ac_ext
15894 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15896 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15897 # Warning - without using the other run time loading flags,
15898 # -berok will link without error, but may produce a broken library.
15899 no_undefined_flag_F77=' ${wl}-bernotok'
15900 allow_undefined_flag_F77=' ${wl}-berok'
15901 # -bexpall does not export symbols beginning with underscore (_)
15902 always_export_symbols_F77=yes
15903 # Exported symbols can be pulled into shared objects from archives
15904 whole_archive_flag_spec_F77=' '
15905 archive_cmds_need_lc_F77=yes
15906 # This is similar to how AIX traditionally builds it's shared libraries.
15907 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'
15913 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)'
15914 hardcode_libdir_flag_spec_F77='-L$libdir'
15915 hardcode_minus_L_F77=yes
15916 # see comment about different semantics on the GNU ld section
15921 export_dynamic_flag_spec_F77=-rdynamic
15924 cygwin* | mingw* | pw32*)
15925 # When not using gcc, we currently assume that we are using
15926 # Microsoft Visual C++.
15927 # hardcode_libdir_flag_spec is actually meaningless, as there is
15928 # no search path for DLLs.
15929 hardcode_libdir_flag_spec_F77=' '
15930 allow_undefined_flag_F77=unsupported
15931 # Tell ltmain to make .lib files, not .a files.
15933 # Tell ltmain to make .dll files, not .so files.
15935 # FIXME: Setting linknames here is a bad hack.
15936 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15937 # The linker will automatically build a .lib file if we build a DLL.
15938 old_archive_From_new_cmds_F77='true'
15939 # FIXME: Should let the user specify the lib program.
15940 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15941 fix_srcfile_path='`cygpath -w "$srcfile"`'
15942 enable_shared_with_static_runtimes_F77=yes
15945 darwin* | rhapsody*)
15946 if test "$GXX" = yes ; then
15947 archive_cmds_need_lc_F77=no
15949 rhapsody* | darwin1.[012])
15950 allow_undefined_flag_F77='-undefined suppress'
15953 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15954 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15956 case ${MACOSX_DEPLOYMENT_TARGET} in
15958 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15961 allow_undefined_flag_F77='-undefined dynamic_lookup'
15967 lt_int_apple_cc_single_mod=no
15968 output_verbose_link_cmd='echo'
15969 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15970 lt_int_apple_cc_single_mod=yes
15972 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15973 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15975 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15977 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15978 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15979 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15980 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15982 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15984 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}'
15985 hardcode_direct_F77=no
15986 hardcode_automatic_F77=yes
15987 hardcode_shlibpath_var_F77=unsupported
15988 whole_archive_flag_spec_F77='-all_load $convenience'
15989 link_all_deplibs_F77=yes
15996 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15997 hardcode_libdir_flag_spec_F77='-L$libdir'
15998 hardcode_shlibpath_var_F77=no
16005 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16006 # support. Future versions do this automatically, but an explicit c++rt0.o
16007 # does not break anything, and helps significantly (at the cost of a little
16010 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16011 hardcode_libdir_flag_spec_F77='-R$libdir'
16012 hardcode_direct_F77=yes
16013 hardcode_shlibpath_var_F77=no
16016 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16018 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16019 hardcode_direct_F77=yes
16020 hardcode_minus_L_F77=yes
16021 hardcode_shlibpath_var_F77=no
16024 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16025 freebsd* | kfreebsd*-gnu)
16026 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16027 hardcode_libdir_flag_spec_F77='-R$libdir'
16028 hardcode_direct_F77=yes
16029 hardcode_shlibpath_var_F77=no
16033 if test "$GCC" = yes; then
16034 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'
16036 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'
16038 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16039 hardcode_libdir_separator_F77=:
16040 hardcode_direct_F77=yes
16042 # hardcode_minus_L: Not really in the search PATH,
16043 # but as the default location of the library.
16044 hardcode_minus_L_F77=yes
16045 export_dynamic_flag_spec_F77='${wl}-E'
16049 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16050 case "$host_cpu" in
16052 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16055 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16059 case "$host_cpu" in
16061 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16064 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16068 if test "$with_gnu_ld" = no; then
16069 case "$host_cpu" in
16071 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16072 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16073 hardcode_libdir_separator_F77=:
16074 hardcode_direct_F77=no
16075 hardcode_shlibpath_var_F77=no
16078 hardcode_libdir_flag_spec_F77='-L$libdir'
16079 hardcode_direct_F77=no
16080 hardcode_shlibpath_var_F77=no
16082 # hardcode_minus_L: Not really in the search PATH,
16083 # but as the default location of the library.
16084 hardcode_minus_L_F77=yes
16087 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16088 hardcode_libdir_separator_F77=:
16089 hardcode_direct_F77=yes
16090 export_dynamic_flag_spec_F77='${wl}-E'
16092 # hardcode_minus_L: Not really in the search PATH,
16093 # but as the default location of the library.
16094 hardcode_minus_L_F77=yes
16100 irix5* | irix6* | nonstopux*)
16101 if test "$GCC" = yes; then
16102 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'
16104 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'
16105 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16107 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16108 hardcode_libdir_separator_F77=:
16109 link_all_deplibs_F77=yes
16113 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16114 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16116 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16118 hardcode_libdir_flag_spec_F77='-R$libdir'
16119 hardcode_direct_F77=yes
16120 hardcode_shlibpath_var_F77=no
16124 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16125 hardcode_direct_F77=yes
16126 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16127 hardcode_libdir_separator_F77=:
16128 hardcode_shlibpath_var_F77=no
16132 hardcode_direct_F77=yes
16133 hardcode_shlibpath_var_F77=no
16134 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16135 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16136 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16137 export_dynamic_flag_spec_F77='${wl}-E'
16140 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16141 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16142 hardcode_libdir_flag_spec_F77='-R$libdir'
16145 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16146 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16153 hardcode_libdir_flag_spec_F77='-L$libdir'
16154 hardcode_minus_L_F77=yes
16155 allow_undefined_flag_F77=unsupported
16156 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'
16157 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16161 if test "$GCC" = yes; then
16162 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16163 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'
16165 allow_undefined_flag_F77=' -expect_unresolved \*'
16166 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'
16168 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16169 hardcode_libdir_separator_F77=:
16172 osf4* | osf5*) # as osf3* with the addition of -msym flag
16173 if test "$GCC" = yes; then
16174 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16175 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'
16176 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16178 allow_undefined_flag_F77=' -expect_unresolved \*'
16179 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'
16180 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~
16181 $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'
16183 # Both c and cxx compiler support -rpath directly
16184 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16186 hardcode_libdir_separator_F77=:
16190 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191 hardcode_shlibpath_var_F77=no
16192 export_dynamic_flag_spec_F77='${wl}-Bexport'
16193 runpath_var=LD_RUN_PATH
16194 hardcode_runpath_var=yes
16198 no_undefined_flag_F77=' -z text'
16199 if test "$GCC" = yes; then
16200 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16201 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16202 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16204 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16205 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16206 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16208 hardcode_libdir_flag_spec_F77='-R$libdir'
16209 hardcode_shlibpath_var_F77=no
16211 solaris2.[0-5] | solaris2.[0-5].*) ;;
16212 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16213 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16215 link_all_deplibs_F77=yes
16219 if test "x$host_vendor" = xsequent; then
16220 # Use $CC to link under sequent, because it throws in some extra .o
16221 # files that make .init and .fini sections work.
16222 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16226 hardcode_libdir_flag_spec_F77='-L$libdir'
16227 hardcode_direct_F77=yes
16228 hardcode_minus_L_F77=yes
16229 hardcode_shlibpath_var_F77=no
16233 case $host_vendor in
16235 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16236 hardcode_direct_F77=yes # is this really true???
16239 ## LD is ld it makes a PLAMLIB
16240 ## CC just makes a GrossModule.
16241 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16242 reload_cmds_F77='$CC -r -o $output$reload_objs'
16243 hardcode_direct_F77=no
16246 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16250 runpath_var='LD_RUN_PATH'
16251 hardcode_shlibpath_var_F77=no
16255 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16256 hardcode_shlibpath_var_F77=no
16257 export_dynamic_flag_spec_F77='-Bexport'
16261 if test -d /usr/nec; then
16262 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16263 hardcode_shlibpath_var_F77=no
16264 runpath_var=LD_RUN_PATH
16265 hardcode_runpath_var=yes
16271 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16272 hardcode_direct_F77=yes
16273 hardcode_minus_L_F77=no
16274 hardcode_shlibpath_var_F77=no
16275 hardcode_runpath_var=yes
16276 runpath_var=LD_RUN_PATH
16279 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16280 no_undefined_flag_F77='${wl}-z ${wl}text'
16281 if test "$GCC" = yes; then
16282 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16284 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16286 runpath_var='LD_RUN_PATH'
16287 hardcode_shlibpath_var_F77=no
16291 no_undefined_flag_F77=' -z text'
16292 # $CC -shared without GNU ld will not create a library from C++
16293 # object files and a static libstdc++, better avoid it by now
16294 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16295 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16296 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16297 hardcode_libdir_flag_spec_F77=
16298 hardcode_shlibpath_var_F77=no
16299 runpath_var='LD_RUN_PATH'
16303 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16304 hardcode_libdir_flag_spec_F77='-L$libdir'
16305 hardcode_shlibpath_var_F77=no
16314 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16315 echo "${ECHO_T}$ld_shlibs_F77" >&6
16316 test "$ld_shlibs_F77" = no && can_build_shared=no
16318 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16319 if test "$GCC" = yes; then
16320 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16324 # Do we need to explicitly link libc?
16326 case "x$archive_cmds_need_lc_F77" in
16328 # Assume -lc should be added
16329 archive_cmds_need_lc_F77=yes
16331 if test "$enable_shared" = yes && test "$GCC" = yes; then
16332 case $archive_cmds_F77 in
16334 # FIXME: we may have to deal with multi-command sequences.
16337 # Test whether the compiler implicitly links with -lc since on some
16338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16339 # to ld, don't add -lc before -lgcc.
16340 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16343 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16346 (eval $ac_compile) 2>&5
16348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16349 (exit $ac_status); } 2>conftest.err; then
16352 libobjs=conftest.$ac_objext
16354 wl=$lt_prog_compiler_wl_F77
16360 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16361 allow_undefined_flag_F77=
16362 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16363 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16366 (exit $ac_status); }
16368 archive_cmds_need_lc_F77=no
16370 archive_cmds_need_lc_F77=yes
16372 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16374 cat conftest.err 1>&5
16377 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16378 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16385 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16386 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16387 library_names_spec=
16388 libname_spec='lib$name'
16392 postuninstall_cmds=
16396 shlibpath_overrides_runpath=unknown
16398 dynamic_linker="$host_os ld.so"
16399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16400 if test "$GCC" = yes; then
16401 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16402 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16403 # if the path contains ";" then we assume it to be the separator
16404 # otherwise default to the standard path separator (i.e. ":") - it is
16405 # assumed that no part of a normal pathname contains ";" but that should
16406 # okay in the real world where ";" in dirpaths is itself problematic.
16407 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16409 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16412 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16414 need_lib_prefix=unknown
16415 hardcode_into_libs=no
16417 # when you set need_version to no, make sure it does not cause -set_version
16418 # flags to be left without arguments
16419 need_version=unknown
16424 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16425 shlibpath_var=LIBPATH
16427 # AIX 3 has no versioning support, so we append a major version to the name.
16428 soname_spec='${libname}${release}${shared_ext}$major'
16435 hardcode_into_libs=yes
16436 if test "$host_cpu" = ia64; then
16437 # AIX 5 supports IA64
16438 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16439 shlibpath_var=LD_LIBRARY_PATH
16441 # With GCC up to 2.95.x, collect2 would create an import file
16442 # for dependence libraries. The import file would start with
16443 # the line `#! .'. This would cause the generated library to
16444 # depend on `.', always an invalid library. This was fixed in
16445 # development snapshots of GCC prior to 3.0.
16447 aix4 | aix4.[01] | aix4.[01].*)
16448 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16450 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16453 can_build_shared=no
16457 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16458 # soname into executable. Probably we can add versioning support to
16459 # collect2, so additional links can be useful in future.
16460 if test "$aix_use_runtimelinking" = yes; then
16461 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16462 # instead of lib<name>.a to let people know that these are not
16463 # typical AIX shared libraries.
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16466 # We preserve .a as extension for shared libraries through AIX4.2
16467 # and later when we are not doing run time linking.
16468 library_names_spec='${libname}${release}.a $libname.a'
16469 soname_spec='${libname}${release}${shared_ext}$major'
16471 shlibpath_var=LIBPATH
16476 library_names_spec='$libname.ixlibrary $libname.a'
16477 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16478 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'
16482 library_names_spec='${libname}${shared_ext}'
16483 dynamic_linker="$host_os ld.so"
16484 shlibpath_var=LIBRARY_PATH
16490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16491 soname_spec='${libname}${release}${shared_ext}$major'
16492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16493 shlibpath_var=LD_LIBRARY_PATH
16494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16496 # the default ld.so.conf also contains /usr/contrib/lib and
16497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16498 # libtool to hard-code these into programs
16501 cygwin* | mingw* | pw32*)
16502 version_type=windows
16507 case $GCC,$host_os in
16508 yes,cygwin* | yes,mingw* | yes,pw32*)
16509 library_names_spec='$libname.dll.a'
16510 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16511 postinstall_cmds='base_file=`basename \${file}`~
16512 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16513 dldir=$destdir/`dirname \$dlpath`~
16514 test -d \$dldir || mkdir -p \$dldir~
16515 $install_prog $dir/$dlname \$dldir/$dlname'
16516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16517 dlpath=$dir/\$dldll~
16519 shlibpath_overrides_runpath=yes
16523 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16524 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16525 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16528 # MinGW DLLs use traditional 'lib' prefix
16529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16530 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16531 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16532 # It is most probably a Windows format PATH printed by
16533 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16534 # path with ; separators, and with drive letters. We can handle the
16535 # drive letters (cygwin fileutils understands them), so leave them,
16536 # especially as we might pass files found there to a mingw objdump,
16537 # which wouldn't understand a cygwinified path. Ahh.
16538 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16540 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16544 # pw32 DLLs use 'pw' prefix rather than 'lib'
16545 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16551 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16554 dynamic_linker='Win32 ld.exe'
16555 # FIXME: first we should search . and the directory the executable is in
16559 darwin* | rhapsody*)
16560 dynamic_linker="$host_os dyld"
16561 version_type=darwin
16564 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16565 soname_spec='${libname}${release}${major}$shared_ext'
16566 shlibpath_overrides_runpath=yes
16567 shlibpath_var=DYLD_LIBRARY_PATH
16568 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16569 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16570 if test "$GCC" = yes; then
16571 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"`
16573 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16575 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16583 soname_spec='${libname}${release}${shared_ext}$major'
16584 shlibpath_var=LD_LIBRARY_PATH
16595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16596 soname_spec='${libname}${release}${shared_ext}$major'
16597 shlibpath_var=LD_LIBRARY_PATH
16598 shlibpath_overrides_runpath=no
16599 hardcode_into_libs=yes
16600 dynamic_linker='GNU ld.so'
16604 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16605 version_type=freebsd-$objformat
16606 case $version_type in
16608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16613 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16617 shlibpath_var=LD_LIBRARY_PATH
16620 shlibpath_overrides_runpath=yes
16622 freebsd3.01* | freebsdelf3.01*)
16623 shlibpath_overrides_runpath=yes
16624 hardcode_into_libs=yes
16627 shlibpath_overrides_runpath=no
16628 hardcode_into_libs=yes
16637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16638 soname_spec='${libname}${release}${shared_ext}$major'
16639 shlibpath_var=LD_LIBRARY_PATH
16640 hardcode_into_libs=yes
16643 hpux9* | hpux10* | hpux11*)
16644 # Give a soname corresponding to the major version so that dld.sl refuses to
16645 # link against other versions.
16649 case "$host_cpu" in
16652 hardcode_into_libs=yes
16653 dynamic_linker="$host_os dld.so"
16654 shlibpath_var=LD_LIBRARY_PATH
16655 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16657 soname_spec='${libname}${release}${shared_ext}$major'
16658 if test "X$HPUX_IA64_MODE" = X32; then
16659 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16661 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16663 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16667 hardcode_into_libs=yes
16668 dynamic_linker="$host_os dld.sl"
16669 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16670 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16672 soname_spec='${libname}${release}${shared_ext}$major'
16673 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16674 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16678 dynamic_linker="$host_os dld.sl"
16679 shlibpath_var=SHLIB_PATH
16680 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16682 soname_spec='${libname}${release}${shared_ext}$major'
16685 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16686 postinstall_cmds='chmod 555 $lib'
16689 irix5* | irix6* | nonstopux*)
16691 nonstopux*) version_type=nonstopux ;;
16693 if test "$lt_cv_prog_gnu_ld" = yes; then
16701 soname_spec='${libname}${release}${shared_ext}$major'
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16704 irix5* | nonstopux*)
16705 libsuff= shlibsuff=
16708 case $LD in # libtool.m4 will add one of these switches to LD
16709 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16710 libsuff= shlibsuff= libmagic=32-bit;;
16711 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16712 libsuff=32 shlibsuff=N32 libmagic=N32;;
16713 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16714 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16715 *) libsuff= shlibsuff= libmagic=never-match;;
16719 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16720 shlibpath_overrides_runpath=no
16721 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16722 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16723 hardcode_into_libs=yes
16726 # No shared lib support for Linux oldld, aout, or coff.
16727 linux*oldld* | linux*aout* | linux*coff*)
16731 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16739 shlibpath_var=LD_LIBRARY_PATH
16740 shlibpath_overrides_runpath=no
16741 # This implies no fast_install, which is unacceptable.
16742 # Some rework will be needed to allow for fast_install
16743 # before this can be enabled.
16744 hardcode_into_libs=yes
16746 # find out which ABI we are using
16748 case "$host_cpu" in
16749 x86_64*|s390x*|powerpc64*)
16750 echo '#line 16750 "configure"' > conftest.$ac_ext
16751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16752 (eval $ac_compile) 2>&5
16754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16755 (exit $ac_status); }; then
16756 case `/usr/bin/file conftest.$ac_objext` in
16759 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16767 # Append ld.so.conf contents to the search path
16768 if test -f /etc/ld.so.conf; then
16769 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16770 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16773 # We used to test for /lib/ld.so.1 and disable shared libraries on
16774 # powerpc, because MkLinux only supported shared libraries with the
16775 # GNU dynamic linker. Since this was broken with cross compilers,
16776 # most powerpc-linux boxes support dynamic linking these days and
16777 # people can always --disable-shared, the test was removed, and we
16778 # assume the GNU/Linux dynamic linker is in use.
16779 dynamic_linker='GNU/Linux ld.so'
16786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16787 soname_spec='${libname}${release}${shared_ext}$major'
16788 shlibpath_var=LD_LIBRARY_PATH
16789 shlibpath_overrides_runpath=no
16790 hardcode_into_libs=yes
16791 dynamic_linker='GNU ld.so'
16798 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16801 dynamic_linker='NetBSD (a.out) ld.so'
16803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16804 soname_spec='${libname}${release}${shared_ext}$major'
16805 dynamic_linker='NetBSD ld.elf_so'
16807 shlibpath_var=LD_LIBRARY_PATH
16808 shlibpath_overrides_runpath=yes
16809 hardcode_into_libs=yes
16814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16815 shlibpath_var=LD_LIBRARY_PATH
16816 shlibpath_overrides_runpath=yes
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16824 soname_spec='${libname}${release}${shared_ext}$major'
16825 shlibpath_var=LD_LIBRARY_PATH
16826 shlibpath_overrides_runpath=yes
16833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16834 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16835 shlibpath_var=LD_LIBRARY_PATH
16836 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16838 openbsd2.[89] | openbsd2.[89].*)
16839 shlibpath_overrides_runpath=no
16842 shlibpath_overrides_runpath=yes
16846 shlibpath_overrides_runpath=yes
16851 libname_spec='$name'
16854 library_names_spec='$libname${shared_ext} $libname.a'
16855 dynamic_linker='OS/2 ld.exe'
16856 shlibpath_var=LIBPATH
16859 osf3* | osf4* | osf5*)
16863 soname_spec='${libname}${release}${shared_ext}$major'
16864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 shlibpath_var=LD_LIBRARY_PATH
16866 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16867 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16872 soname_spec='${libname}${release}${shared_ext}$major'
16873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16874 shlibpath_var=LD_LIBRARY_PATH
16881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16882 soname_spec='${libname}${release}${shared_ext}$major'
16883 shlibpath_var=LD_LIBRARY_PATH
16884 shlibpath_overrides_runpath=yes
16885 hardcode_into_libs=yes
16886 # ldd complains unless libraries are executable
16887 postinstall_cmds='chmod +x $lib'
16892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16893 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16894 shlibpath_var=LD_LIBRARY_PATH
16895 shlibpath_overrides_runpath=yes
16896 if test "$with_gnu_ld" = yes; then
16902 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16905 soname_spec='${libname}${release}${shared_ext}$major'
16906 shlibpath_var=LD_LIBRARY_PATH
16907 case $host_vendor in
16909 shlibpath_overrides_runpath=no
16911 export_dynamic_flag_spec='${wl}-Blargedynsym'
16912 runpath_var=LD_RUN_PATH
16920 shlibpath_overrides_runpath=no
16921 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16927 if test -d /usr/nec ;then
16929 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16930 soname_spec='$libname${shared_ext}.$major'
16931 shlibpath_var=LD_LIBRARY_PATH
16937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16938 soname_spec='${libname}${release}${shared_ext}$major'
16939 shlibpath_var=LD_LIBRARY_PATH
16946 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16947 echo "${ECHO_T}$dynamic_linker" >&6
16948 test "$dynamic_linker" = no && can_build_shared=no
16950 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16951 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16952 hardcode_action_F77=
16953 if test -n "$hardcode_libdir_flag_spec_F77" || \
16954 test -n "$runpath_var F77" || \
16955 test "X$hardcode_automatic_F77"="Xyes" ; then
16957 # We can hardcode non-existant directories.
16958 if test "$hardcode_direct_F77" != no &&
16959 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16960 # have to relink, otherwise we might link with an installed library
16961 # when we should be linking with a yet-to-be-installed one
16962 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16963 test "$hardcode_minus_L_F77" != no; then
16964 # Linking always hardcodes the temporary library directory.
16965 hardcode_action_F77=relink
16967 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16968 hardcode_action_F77=immediate
16971 # We cannot hardcode anything, or else we can only hardcode existing
16973 hardcode_action_F77=unsupported
16975 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16976 echo "${ECHO_T}$hardcode_action_F77" >&6
16978 if test "$hardcode_action_F77" = relink; then
16979 # Fast installation is not supported
16980 enable_fast_install=no
16981 elif test "$shlibpath_overrides_runpath" = yes ||
16982 test "$enable_shared" = no; then
16983 # Fast installation is not necessary
16984 enable_fast_install=needless
16989 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16990 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16991 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16992 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16993 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16994 echo "$as_me:$LINENO: result: yes" >&5
16995 echo "${ECHO_T}yes" >&6
16997 # FIXME - insert some real tests, host_os isn't really good enough
17000 if test -n "$STRIP" ; then
17001 striplib="$STRIP -x"
17002 echo "$as_me:$LINENO: result: yes" >&5
17003 echo "${ECHO_T}yes" >&6
17005 echo "$as_me:$LINENO: result: no" >&5
17006 echo "${ECHO_T}no" >&6
17010 echo "$as_me:$LINENO: result: no" >&5
17011 echo "${ECHO_T}no" >&6
17018 # The else clause should only fire when bootstrapping the
17019 # libtool distribution, otherwise you forgot to ship ltmain.sh
17020 # with your package, and you will get complaints that there are
17021 # no rules to generate ltmain.sh.
17022 if test -f "$ltmain"; then
17023 # See if we are running on zsh, and set the options which allow our commands through
17024 # without removal of \ escapes.
17025 if test -n "${ZSH_VERSION+set}" ; then
17026 setopt NO_GLOB_SUBST
17028 # Now quote all the things that may contain metacharacters while being
17029 # careful not to overquote the AC_SUBSTed values. We take copies of the
17030 # variables and quote the copies for generation of the libtool script.
17031 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17033 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17034 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17035 deplibs_check_method reload_flag reload_cmds need_locks \
17036 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17037 lt_cv_sys_global_symbol_to_c_name_address \
17038 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17039 old_postinstall_cmds old_postuninstall_cmds \
17043 lt_prog_compiler_wl_F77 \
17044 lt_prog_compiler_pic_F77 \
17045 lt_prog_compiler_static_F77 \
17046 lt_prog_compiler_no_builtin_flag_F77 \
17047 export_dynamic_flag_spec_F77 \
17048 thread_safe_flag_spec_F77 \
17049 whole_archive_flag_spec_F77 \
17050 enable_shared_with_static_runtimes_F77 \
17051 old_archive_cmds_F77 \
17052 old_archive_from_new_cmds_F77 \
17053 predep_objects_F77 \
17054 postdep_objects_F77 \
17057 compiler_lib_search_path_F77 \
17059 archive_expsym_cmds_F77 \
17060 postinstall_cmds_F77 \
17061 postuninstall_cmds_F77 \
17062 old_archive_from_expsyms_cmds_F77 \
17063 allow_undefined_flag_F77 \
17064 no_undefined_flag_F77 \
17065 export_symbols_cmds_F77 \
17066 hardcode_libdir_flag_spec_F77 \
17067 hardcode_libdir_flag_spec_ld_F77 \
17068 hardcode_libdir_separator_F77 \
17069 hardcode_automatic_F77 \
17071 module_expsym_cmds_F77 \
17072 lt_cv_prog_compiler_c_o_F77 \
17073 exclude_expsyms_F77 \
17074 include_expsyms_F77; do
17077 old_archive_cmds_F77 | \
17078 old_archive_from_new_cmds_F77 | \
17079 archive_cmds_F77 | \
17080 archive_expsym_cmds_F77 | \
17081 module_cmds_F77 | \
17082 module_expsym_cmds_F77 | \
17083 old_archive_from_expsyms_cmds_F77 | \
17084 export_symbols_cmds_F77 | \
17085 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17086 postinstall_cmds | postuninstall_cmds | \
17087 old_postinstall_cmds | old_postuninstall_cmds | \
17088 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17089 # Double-quote double-evaled strings.
17090 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17093 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17099 *'\$0 --fallback-echo"')
17100 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17106 cat <<__EOF__ >> "$cfgfile"
17107 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17109 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17111 # Shell to use when invoking shell scripts.
17114 # Whether or not to build shared libraries.
17115 build_libtool_libs=$enable_shared
17117 # Whether or not to build static libraries.
17118 build_old_libs=$enable_static
17120 # Whether or not to add -lc for building shared libraries.
17121 build_libtool_need_lc=$archive_cmds_need_lc_F77
17123 # Whether or not to disallow shared libs when runtime libs are static
17124 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17126 # Whether or not to optimize for fast installation.
17127 fast_install=$enable_fast_install
17130 host_alias=$host_alias
17133 # An echo program that does not interpret backslashes.
17138 AR_FLAGS=$lt_AR_FLAGS
17143 # A language-specific compiler.
17144 CC=$lt_compiler_F77
17146 # Is the compiler the GNU C compiler?
17152 # The linker used to build libraries.
17155 # Whether we need hard or soft links.
17158 # A BSD-compatible nm program.
17161 # A symbol stripping program
17164 # Used to examine libraries when file_magic_cmd begins "file"
17165 MAGIC_CMD=$MAGIC_CMD
17167 # Used on cygwin: DLL creation program.
17170 # Used on cygwin: object dumper.
17173 # Used on cygwin: assembler.
17176 # The name of the directory that contains temporary libtool files.
17179 # How to create reloadable object files.
17180 reload_flag=$lt_reload_flag
17181 reload_cmds=$lt_reload_cmds
17183 # How to pass a linker flag through the compiler.
17184 wl=$lt_lt_prog_compiler_wl_F77
17186 # Object file suffix (normally "o").
17187 objext="$ac_objext"
17189 # Old archive suffix (normally "a").
17192 # Shared library suffix (normally ".so").
17193 shrext_cmds='$shrext_cmds'
17195 # Executable file suffix (normally "").
17198 # Additional compiler flags for building library objects.
17199 pic_flag=$lt_lt_prog_compiler_pic_F77
17202 # What is the maximum length of a command?
17203 max_cmd_len=$lt_cv_sys_max_cmd_len
17205 # Does compiler simultaneously support -c and -o options?
17206 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17208 # Must we lock files when doing compilation ?
17209 need_locks=$lt_need_locks
17211 # Do we need the lib prefix for modules?
17212 need_lib_prefix=$need_lib_prefix
17214 # Do we need a version for libraries?
17215 need_version=$need_version
17217 # Whether dlopen is supported.
17218 dlopen_support=$enable_dlopen
17220 # Whether dlopen of programs is supported.
17221 dlopen_self=$enable_dlopen_self
17223 # Whether dlopen of statically linked programs is supported.
17224 dlopen_self_static=$enable_dlopen_self_static
17226 # Compiler flag to prevent dynamic linking.
17227 link_static_flag=$lt_lt_prog_compiler_static_F77
17229 # Compiler flag to turn off builtin functions.
17230 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17232 # Compiler flag to allow reflexive dlopens.
17233 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17235 # Compiler flag to generate shared objects directly from archives.
17236 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17238 # Compiler flag to generate thread-safe objects.
17239 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17241 # Library versioning type.
17242 version_type=$version_type
17244 # Format of library name prefix.
17245 libname_spec=$lt_libname_spec
17247 # List of archive names. First name is the real one, the rest are links.
17248 # The last name is the one that the linker finds with -lNAME.
17249 library_names_spec=$lt_library_names_spec
17251 # The coded name of the library, if different from the real name.
17252 soname_spec=$lt_soname_spec
17254 # Commands used to build and install an old-style archive.
17256 old_archive_cmds=$lt_old_archive_cmds_F77
17257 old_postinstall_cmds=$lt_old_postinstall_cmds
17258 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17260 # Create an old-style archive from a shared archive.
17261 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17263 # Create a temporary old-style archive to link instead of a shared archive.
17264 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17266 # Commands used to build and install a shared archive.
17267 archive_cmds=$lt_archive_cmds_F77
17268 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17269 postinstall_cmds=$lt_postinstall_cmds
17270 postuninstall_cmds=$lt_postuninstall_cmds
17272 # Commands used to build a loadable module (assumed same as above if empty)
17273 module_cmds=$lt_module_cmds_F77
17274 module_expsym_cmds=$lt_module_expsym_cmds_F77
17276 # Commands to strip libraries.
17277 old_striplib=$lt_old_striplib
17278 striplib=$lt_striplib
17280 # Dependencies to place before the objects being linked to create a
17282 predep_objects=$lt_predep_objects_F77
17284 # Dependencies to place after the objects being linked to create a
17286 postdep_objects=$lt_postdep_objects_F77
17288 # Dependencies to place before the objects being linked to create a
17290 predeps=$lt_predeps_F77
17292 # Dependencies to place after the objects being linked to create a
17294 postdeps=$lt_postdeps_F77
17296 # The library search path used internally by the compiler when linking
17297 # a shared library.
17298 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17300 # Method to check whether dependent libraries are shared objects.
17301 deplibs_check_method=$lt_deplibs_check_method
17303 # Command to use when deplibs_check_method == file_magic.
17304 file_magic_cmd=$lt_file_magic_cmd
17306 # Flag that allows shared libraries with undefined symbols to be built.
17307 allow_undefined_flag=$lt_allow_undefined_flag_F77
17309 # Flag that forces no undefined symbols.
17310 no_undefined_flag=$lt_no_undefined_flag_F77
17312 # Commands used to finish a libtool library installation in a directory.
17313 finish_cmds=$lt_finish_cmds
17315 # Same as above, but a single script fragment to be evaled but not shown.
17316 finish_eval=$lt_finish_eval
17318 # Take the output of nm and produce a listing of raw symbols and C names.
17319 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17321 # Transform the output of nm in a proper C declaration
17322 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17324 # Transform the output of nm in a C name address pair
17325 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17327 # This is the shared library runtime path variable.
17328 runpath_var=$runpath_var
17330 # This is the shared library path variable.
17331 shlibpath_var=$shlibpath_var
17333 # Is shlibpath searched before the hard-coded library search path?
17334 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17336 # How to hardcode a shared library path into an executable.
17337 hardcode_action=$hardcode_action_F77
17339 # Whether we should hardcode library paths into libraries.
17340 hardcode_into_libs=$hardcode_into_libs
17342 # Flag to hardcode \$libdir into a binary during linking.
17343 # This must work even if \$libdir does not exist.
17344 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17346 # If ld is used when linking, flag to hardcode \$libdir into
17347 # a binary during linking. This must work even if \$libdir does
17349 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17351 # Whether we need a single -rpath flag with a separated argument.
17352 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17354 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17355 # resulting binary.
17356 hardcode_direct=$hardcode_direct_F77
17358 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17359 # resulting binary.
17360 hardcode_minus_L=$hardcode_minus_L_F77
17362 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17363 # the resulting binary.
17364 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17366 # Set to yes if building a shared library automatically hardcodes DIR into the library
17367 # and all subsequent libraries and executables linked against it.
17368 hardcode_automatic=$hardcode_automatic_F77
17370 # Variables whose values should be saved in libtool wrapper scripts and
17371 # restored at relink time.
17372 variables_saved_for_relink="$variables_saved_for_relink"
17374 # Whether libtool must link a program against all its dependency libraries.
17375 link_all_deplibs=$link_all_deplibs_F77
17377 # Compile-time system search path for libraries
17378 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17380 # Run-time system search path for libraries
17381 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17383 # Fix the shell variable \$srcfile for the compiler.
17384 fix_srcfile_path="$fix_srcfile_path_F77"
17386 # Set to yes if exported symbols are required.
17387 always_export_symbols=$always_export_symbols_F77
17389 # The commands to list exported symbols.
17390 export_symbols_cmds=$lt_export_symbols_cmds_F77
17392 # The commands to extract the exported symbol list from a shared archive.
17393 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17395 # Symbols that should not be listed in the preloaded symbols.
17396 exclude_expsyms=$lt_exclude_expsyms_F77
17398 # Symbols that must always be exported.
17399 include_expsyms=$lt_include_expsyms_F77
17401 # ### END LIBTOOL TAG CONFIG: $tagname
17407 # If there is no Makefile yet, we rely on a make rule to execute
17408 # `config.status --recheck' to rerun these tests and create the
17409 # libtool script then.
17410 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17411 if test -f "$ltmain_in"; then
17412 test -f Makefile && make "$ltmain"
17418 ac_cpp='$CPP $CPPFLAGS'
17419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17431 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17435 # Source file extension for Java test sources.
17438 # Object file extension for compiled Java test sources.
17442 # Code to be used in simple compile tests
17443 lt_simple_compile_test_code="class foo {}\n"
17445 # Code to be used in simple link tests
17446 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17448 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17450 # If no C compiler was specified, use CC.
17453 # Allow CC to be a program name with arguments.
17457 # Allow CC to be a program name with arguments.
17463 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17464 archive_cmds_need_lc_GCJ=no
17467 ## There is no encapsulation within the following macros, do not change
17468 ## the running order or otherwise move them around unless you know exactly
17469 ## what you are doing...
17471 lt_prog_compiler_no_builtin_flag_GCJ=
17473 if test "$GCC" = yes; then
17474 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17477 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17478 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17479 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17480 echo $ECHO_N "(cached) $ECHO_C" >&6
17482 lt_cv_prog_compiler_rtti_exceptions=no
17483 ac_outfile=conftest.$ac_objext
17484 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17485 lt_compiler_flag="-fno-rtti -fno-exceptions"
17486 # Insert the option either (1) after the last *FLAGS variable, or
17487 # (2) before a word containing "conftest.", or (3) at the end.
17488 # Note that $ac_compile itself does not contain backslashes and begins
17489 # with a dollar sign (not a hyphen), so the echo should work correctly.
17490 # The option is referenced via a variable to avoid confusing sed.
17491 lt_compile=`echo "$ac_compile" | $SED \
17492 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17493 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17494 -e 's:$: $lt_compiler_flag:'`
17495 (eval echo "\"\$as_me:17495: $lt_compile\"" >&5)
17496 (eval "$lt_compile" 2>conftest.err)
17498 cat conftest.err >&5
17499 echo "$as_me:17499: \$? = $ac_status" >&5
17500 if (exit $ac_status) && test -s "$ac_outfile"; then
17501 # The compiler can only warn and ignore the option if not recognized
17502 # So say no if there are warnings
17503 if test ! -s conftest.err; then
17504 lt_cv_prog_compiler_rtti_exceptions=yes
17510 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17511 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17513 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17514 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17521 lt_prog_compiler_wl_GCJ=
17522 lt_prog_compiler_pic_GCJ=
17523 lt_prog_compiler_static_GCJ=
17525 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17526 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17528 if test "$GCC" = yes; then
17529 lt_prog_compiler_wl_GCJ='-Wl,'
17530 lt_prog_compiler_static_GCJ='-static'
17534 # All AIX code is PIC.
17535 if test "$host_cpu" = ia64; then
17536 # AIX 5 now supports IA64 processor
17537 lt_prog_compiler_static_GCJ='-Bstatic'
17542 # FIXME: we need at least 68020 code to build shared libraries, but
17543 # adding the `-m68020' flag to GCC prevents building anything better,
17545 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17548 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17549 # PIC is the default for these OSes.
17552 mingw* | pw32* | os2*)
17553 # This hack is so that the source file can tell whether it is being
17554 # built for inclusion in a dll (and should export symbols for example).
17555 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17558 darwin* | rhapsody*)
17559 # PIC is the default on this platform
17560 # Common symbols not allowed in MH_DYLIB files
17561 lt_prog_compiler_pic_GCJ='-fno-common'
17565 # Just because we use GCC doesn't mean we suddenly get shared libraries
17566 # on systems that don't support them.
17567 lt_prog_compiler_can_build_shared_GCJ=no
17572 if test -d /usr/nec; then
17573 lt_prog_compiler_pic_GCJ=-Kconform_pic
17578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17579 # not for PA HP-UX.
17580 case "$host_cpu" in
17585 lt_prog_compiler_pic_GCJ='-fPIC'
17591 lt_prog_compiler_pic_GCJ='-fPIC'
17595 # PORTME Check for flag to pass linker flags through the system compiler.
17598 lt_prog_compiler_wl_GCJ='-Wl,'
17599 if test "$host_cpu" = ia64; then
17600 # AIX 5 now supports IA64 processor
17601 lt_prog_compiler_static_GCJ='-Bstatic'
17603 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17607 mingw* | pw32* | os2*)
17608 # This hack is so that the source file can tell whether it is being
17609 # built for inclusion in a dll (and should export symbols for example).
17610 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17613 hpux9* | hpux10* | hpux11*)
17614 lt_prog_compiler_wl_GCJ='-Wl,'
17615 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17616 # not for PA HP-UX.
17617 case "$host_cpu" in
17622 lt_prog_compiler_pic_GCJ='+Z'
17625 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17626 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17629 irix5* | irix6* | nonstopux*)
17630 lt_prog_compiler_wl_GCJ='-Wl,'
17631 # PIC (with -KPIC) is the default.
17632 lt_prog_compiler_static_GCJ='-non_shared'
17636 lt_prog_compiler_pic_GCJ='-KPIC'
17637 lt_prog_compiler_static_GCJ='-Bstatic'
17643 lt_prog_compiler_wl_GCJ='-Wl,'
17644 lt_prog_compiler_pic_GCJ='-KPIC'
17645 lt_prog_compiler_static_GCJ='-static'
17648 lt_prog_compiler_wl_GCJ='-Wl,'
17649 # All Alpha code is PIC.
17650 lt_prog_compiler_static_GCJ='-non_shared'
17655 osf3* | osf4* | osf5*)
17656 lt_prog_compiler_wl_GCJ='-Wl,'
17657 # All OSF/1 code is PIC.
17658 lt_prog_compiler_static_GCJ='-non_shared'
17662 lt_prog_compiler_pic_GCJ='-Kpic'
17663 lt_prog_compiler_static_GCJ='-dn'
17667 lt_prog_compiler_wl_GCJ='-Wl,'
17668 lt_prog_compiler_pic_GCJ='-KPIC'
17669 lt_prog_compiler_static_GCJ='-Bstatic'
17673 lt_prog_compiler_wl_GCJ='-Qoption ld '
17674 lt_prog_compiler_pic_GCJ='-PIC'
17675 lt_prog_compiler_static_GCJ='-Bstatic'
17678 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17679 lt_prog_compiler_wl_GCJ='-Wl,'
17680 lt_prog_compiler_pic_GCJ='-KPIC'
17681 lt_prog_compiler_static_GCJ='-Bstatic'
17685 if test -d /usr/nec ;then
17686 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17687 lt_prog_compiler_static_GCJ='-Bstatic'
17692 lt_prog_compiler_pic_GCJ='-pic'
17693 lt_prog_compiler_static_GCJ='-Bstatic'
17697 lt_prog_compiler_can_build_shared_GCJ=no
17702 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17703 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17706 # Check to make sure the PIC flag actually works.
17708 if test -n "$lt_prog_compiler_pic_GCJ"; then
17710 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17711 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17712 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17713 echo $ECHO_N "(cached) $ECHO_C" >&6
17715 lt_prog_compiler_pic_works_GCJ=no
17716 ac_outfile=conftest.$ac_objext
17717 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17718 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17719 # Insert the option either (1) after the last *FLAGS variable, or
17720 # (2) before a word containing "conftest.", or (3) at the end.
17721 # Note that $ac_compile itself does not contain backslashes and begins
17722 # with a dollar sign (not a hyphen), so the echo should work correctly.
17723 # The option is referenced via a variable to avoid confusing sed.
17724 lt_compile=`echo "$ac_compile" | $SED \
17725 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17727 -e 's:$: $lt_compiler_flag:'`
17728 (eval echo "\"\$as_me:17728: $lt_compile\"" >&5)
17729 (eval "$lt_compile" 2>conftest.err)
17731 cat conftest.err >&5
17732 echo "$as_me:17732: \$? = $ac_status" >&5
17733 if (exit $ac_status) && test -s "$ac_outfile"; then
17734 # The compiler can only warn and ignore the option if not recognized
17735 # So say no if there are warnings
17736 if test ! -s conftest.err; then
17737 lt_prog_compiler_pic_works_GCJ=yes
17743 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17744 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17746 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17747 case $lt_prog_compiler_pic_GCJ in
17749 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17752 lt_prog_compiler_pic_GCJ=
17753 lt_prog_compiler_can_build_shared_GCJ=no
17758 # For platforms which do not support PIC, -DPIC is meaningless:
17760 lt_prog_compiler_pic_GCJ=
17763 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17767 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17768 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17769 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17772 lt_cv_prog_compiler_c_o_GCJ=no
17773 $rm -r conftest 2>/dev/null
17777 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17779 lt_compiler_flag="-o out/conftest2.$ac_objext"
17780 # Insert the option either (1) after the last *FLAGS variable, or
17781 # (2) before a word containing "conftest.", or (3) at the end.
17782 # Note that $ac_compile itself does not contain backslashes and begins
17783 # with a dollar sign (not a hyphen), so the echo should work correctly.
17784 lt_compile=`echo "$ac_compile" | $SED \
17785 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17787 -e 's:$: $lt_compiler_flag:'`
17788 (eval echo "\"\$as_me:17788: $lt_compile\"" >&5)
17789 (eval "$lt_compile" 2>out/conftest.err)
17791 cat out/conftest.err >&5
17792 echo "$as_me:17792: \$? = $ac_status" >&5
17793 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17795 # The compiler can only warn and ignore the option if not recognized
17796 # So say no if there are warnings
17797 if test ! -s out/conftest.err; then
17798 lt_cv_prog_compiler_c_o_GCJ=yes
17803 # SGI C++ compiler will create directory out/ii_files/ for
17804 # template instantiation
17805 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17806 $rm out/* && rmdir out
17812 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17813 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17816 hard_links="nottested"
17817 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17818 # do not overwrite the value of need_locks provided by the user
17819 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17820 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17823 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17825 ln conftest.a conftest.b 2>&5 || hard_links=no
17826 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17827 echo "$as_me:$LINENO: result: $hard_links" >&5
17828 echo "${ECHO_T}$hard_links" >&6
17829 if test "$hard_links" = no; then
17830 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17831 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17838 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17839 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17842 allow_undefined_flag_GCJ=
17843 enable_shared_with_static_runtimes_GCJ=no
17845 archive_expsym_cmds_GCJ=
17846 old_archive_From_new_cmds_GCJ=
17847 old_archive_from_expsyms_cmds_GCJ=
17848 export_dynamic_flag_spec_GCJ=
17849 whole_archive_flag_spec_GCJ=
17850 thread_safe_flag_spec_GCJ=
17851 hardcode_libdir_flag_spec_GCJ=
17852 hardcode_libdir_flag_spec_ld_GCJ=
17853 hardcode_libdir_separator_GCJ=
17854 hardcode_direct_GCJ=no
17855 hardcode_minus_L_GCJ=no
17856 hardcode_shlibpath_var_GCJ=unsupported
17857 link_all_deplibs_GCJ=unknown
17858 hardcode_automatic_GCJ=no
17860 module_expsym_cmds_GCJ=
17861 always_export_symbols_GCJ=no
17862 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17863 # include_expsyms should be a list of space-separated symbols to be *always*
17864 # included in the symbol list
17865 include_expsyms_GCJ=
17866 # exclude_expsyms can be an extended regexp of symbols to exclude
17867 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17868 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17869 # as well as any symbol that contains `d'.
17870 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17871 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17872 # platforms (ab)use it in PIC code, but their linkers get confused if
17873 # the symbol is explicitly referenced. Since portable code cannot
17874 # rely on this symbol name, it's probably fine to never include it in
17875 # preloaded symbol tables.
17876 extract_expsyms_cmds=
17879 cygwin* | mingw* | pw32*)
17880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17881 # When not using gcc, we currently assume that we are using
17882 # Microsoft Visual C++.
17883 if test "$GCC" != yes; then
17893 if test "$with_gnu_ld" = yes; then
17894 # If archive_cmds runs LD, not CC, wlarc should be empty
17897 # See if GNU ld supports shared libraries.
17899 aix3* | aix4* | aix5*)
17900 # On AIX/PPC, the GNU linker is very broken
17901 if test "$host_cpu" != ia64; then
17905 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17906 *** to be unable to reliably create shared libraries on AIX.
17907 *** Therefore, libtool is disabling shared libraries support. If you
17908 *** really care for shared libraries, you may want to modify your PATH
17909 *** so that a non-GNU linker is found, and then restart.
17916 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)'
17917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918 hardcode_minus_L_GCJ=yes
17920 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17921 # that the semantics of dynamic libraries on AmigaOS, at least up
17922 # to version 4, is to share data among multiple programs linked
17923 # with the same dynamic library. Since this doesn't match the
17924 # behavior of shared libraries on other platforms, we can't use
17930 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17931 allow_undefined_flag_GCJ=unsupported
17932 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17933 # support --undefined. This deserves some investigation. FIXME
17934 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17940 cygwin* | mingw* | pw32*)
17941 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17942 # as there is no search path for DLLs.
17943 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17944 allow_undefined_flag_GCJ=unsupported
17945 always_export_symbols_GCJ=no
17946 enable_shared_with_static_runtimes_GCJ=yes
17947 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17949 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17950 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17951 # If the export-symbols file already is a .def file (1st line
17952 # is EXPORTS), use it as is; otherwise, prepend...
17953 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17954 cp $export_symbols $output_objdir/$soname.def;
17956 echo EXPORTS > $output_objdir/$soname.def;
17957 cat $export_symbols >> $output_objdir/$soname.def;
17959 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17966 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17967 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17970 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17971 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17976 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17980 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17981 *** create shared libraries on Solaris systems. Therefore, libtool
17982 *** is disabling shared libraries support. We urge you to upgrade GNU
17983 *** binutils to release 2.9.1 or newer. Another option is to modify
17984 *** your PATH or compiler configuration so that the native linker is
17985 *** used, and then restart.
17988 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17989 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17990 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17997 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17999 hardcode_direct_GCJ=yes
18000 hardcode_shlibpath_var_GCJ=no
18004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18005 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18006 archive_cmds_GCJ="$tmp_archive_cmds"
18007 supports_anon_versioning=no
18008 case `$LD -v 2>/dev/null` in
18009 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18010 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18011 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18012 *\ 2.11.*) ;; # other 2.11 versions
18013 *) supports_anon_versioning=yes ;;
18015 if test $supports_anon_versioning = yes; then
18016 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18017 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18018 $echo "local: *; };" >> $output_objdir/$libname.ver~
18019 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18021 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18030 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18031 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18038 if test "$ld_shlibs_GCJ" = yes; then
18039 runpath_var=LD_RUN_PATH
18040 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18041 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18042 # ancient GNU ld didn't support --whole-archive et. al.
18043 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18044 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18046 whole_archive_flag_spec_GCJ=
18050 # PORTME fill in a description of your system's linker (not GNU ld)
18053 allow_undefined_flag_GCJ=unsupported
18054 always_export_symbols_GCJ=yes
18055 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'
18056 # Note: this linker hardcodes the directories in LIBPATH if there
18057 # are no directories specified by -L.
18058 hardcode_minus_L_GCJ=yes
18059 if test "$GCC" = yes && test -z "$link_static_flag"; then
18060 # Neither direct hardcoding nor static linking is supported with a
18062 hardcode_direct_GCJ=unsupported
18067 if test "$host_cpu" = ia64; then
18068 # On IA64, the linker does run time linking by default, so we don't
18069 # have to do anything special.
18070 aix_use_runtimelinking=no
18071 exp_sym_flag='-Bexport'
18074 # If we're using GNU nm, then we don't want the "-C" option.
18075 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18076 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18077 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'
18079 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'
18081 aix_use_runtimelinking=no
18083 # Test if we are trying to use run time linking or normal
18084 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18085 # need to do runtime linking.
18086 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18087 for ld_flag in $LDFLAGS; do
18088 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18089 aix_use_runtimelinking=yes
18095 exp_sym_flag='-bexport'
18096 no_entry_flag='-bnoentry'
18099 # When large executables or shared objects are built, AIX ld can
18100 # have problems creating the table of contents. If linking a library
18101 # or program results in "error TOC overflow" add -mminimal-toc to
18102 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18103 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18105 archive_cmds_GCJ=''
18106 hardcode_direct_GCJ=yes
18107 hardcode_libdir_separator_GCJ=':'
18108 link_all_deplibs_GCJ=yes
18110 if test "$GCC" = yes; then
18111 case $host_os in aix4.012|aix4.012.*)
18112 # We only want to do this on AIX 4.2 and lower, the check
18113 # below for broken collect2 doesn't work under 4.3+
18114 collect2name=`${CC} -print-prog-name=collect2`
18115 if test -f "$collect2name" && \
18116 strings "$collect2name" | grep resolve_lib_name >/dev/null
18118 # We have reworked collect2
18119 hardcode_direct_GCJ=yes
18121 # We have old collect2
18122 hardcode_direct_GCJ=unsupported
18123 # It fails to find uninstalled libraries when the uninstalled
18124 # path is not listed in the libpath. Setting hardcode_minus_L
18125 # to unsupported forces relinking
18126 hardcode_minus_L_GCJ=yes
18127 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18128 hardcode_libdir_separator_GCJ=
18131 shared_flag='-shared'
18134 if test "$host_cpu" = ia64; then
18135 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18136 # chokes on -Wl,-G. The following line is correct:
18139 if test "$aix_use_runtimelinking" = yes; then
18140 shared_flag='${wl}-G'
18142 shared_flag='${wl}-bM:SRE'
18147 # It seems that -bexpall does not export symbols beginning with
18148 # underscore (_), so it is better to generate a list of symbols to export.
18149 always_export_symbols_GCJ=yes
18150 if test "$aix_use_runtimelinking" = yes; then
18151 # Warning - without using the other runtime loading flags (-brtl),
18152 # -berok will link without error, but may produce a broken library.
18153 allow_undefined_flag_GCJ='-berok'
18154 # Determine the default libpath from the value encoded in an empty executable.
18155 cat >conftest.$ac_ext <<_ACEOF
18158 cat confdefs.h >>conftest.$ac_ext
18159 cat >>conftest.$ac_ext <<_ACEOF
18160 /* end confdefs.h. */
18170 rm -f conftest.$ac_objext conftest$ac_exeext
18171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18172 (eval $ac_link) 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag"
18180 || test ! -s conftest.err'
18181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18182 (eval $ac_try) 2>&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); }; } &&
18186 { ac_try='test -s conftest$ac_exeext'
18187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18188 (eval $ac_try) 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18193 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18195 # Check for a 64-bit object if we didn't find anything.
18196 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; }
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18203 rm -f conftest.err conftest.$ac_objext \
18204 conftest$ac_exeext conftest.$ac_ext
18205 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18207 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18208 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"
18210 if test "$host_cpu" = ia64; then
18211 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18212 allow_undefined_flag_GCJ="-z nodefs"
18213 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"
18215 # Determine the default libpath from the value encoded in an empty executable.
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18231 rm -f conftest.$ac_objext conftest$ac_exeext
18232 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18233 (eval $ac_link) 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } &&
18240 { ac_try='test -z "$ac_c_werror_flag"
18241 || test ! -s conftest.err'
18242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18243 (eval $ac_try) 2>&5
18245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18246 (exit $ac_status); }; } &&
18247 { ac_try='test -s conftest$ac_exeext'
18248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18249 (eval $ac_try) 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; }; then
18254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18256 # Check for a 64-bit object if we didn't find anything.
18257 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; }
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18264 rm -f conftest.err conftest.$ac_objext \
18265 conftest$ac_exeext conftest.$ac_ext
18266 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18268 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18269 # Warning - without using the other run time loading flags,
18270 # -berok will link without error, but may produce a broken library.
18271 no_undefined_flag_GCJ=' ${wl}-bernotok'
18272 allow_undefined_flag_GCJ=' ${wl}-berok'
18273 # -bexpall does not export symbols beginning with underscore (_)
18274 always_export_symbols_GCJ=yes
18275 # Exported symbols can be pulled into shared objects from archives
18276 whole_archive_flag_spec_GCJ=' '
18277 archive_cmds_need_lc_GCJ=yes
18278 # This is similar to how AIX traditionally builds it's shared libraries.
18279 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'
18285 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)'
18286 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18287 hardcode_minus_L_GCJ=yes
18288 # see comment about different semantics on the GNU ld section
18293 export_dynamic_flag_spec_GCJ=-rdynamic
18296 cygwin* | mingw* | pw32*)
18297 # When not using gcc, we currently assume that we are using
18298 # Microsoft Visual C++.
18299 # hardcode_libdir_flag_spec is actually meaningless, as there is
18300 # no search path for DLLs.
18301 hardcode_libdir_flag_spec_GCJ=' '
18302 allow_undefined_flag_GCJ=unsupported
18303 # Tell ltmain to make .lib files, not .a files.
18305 # Tell ltmain to make .dll files, not .so files.
18307 # FIXME: Setting linknames here is a bad hack.
18308 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18309 # The linker will automatically build a .lib file if we build a DLL.
18310 old_archive_From_new_cmds_GCJ='true'
18311 # FIXME: Should let the user specify the lib program.
18312 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18313 fix_srcfile_path='`cygpath -w "$srcfile"`'
18314 enable_shared_with_static_runtimes_GCJ=yes
18317 darwin* | rhapsody*)
18318 if test "$GXX" = yes ; then
18319 archive_cmds_need_lc_GCJ=no
18321 rhapsody* | darwin1.[012])
18322 allow_undefined_flag_GCJ='-undefined suppress'
18325 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18326 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18328 case ${MACOSX_DEPLOYMENT_TARGET} in
18330 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18333 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18339 lt_int_apple_cc_single_mod=no
18340 output_verbose_link_cmd='echo'
18341 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18342 lt_int_apple_cc_single_mod=yes
18344 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18345 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18347 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18349 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18350 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18351 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18352 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18354 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18356 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}'
18357 hardcode_direct_GCJ=no
18358 hardcode_automatic_GCJ=yes
18359 hardcode_shlibpath_var_GCJ=unsupported
18360 whole_archive_flag_spec_GCJ='-all_load $convenience'
18361 link_all_deplibs_GCJ=yes
18368 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18370 hardcode_shlibpath_var_GCJ=no
18377 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18378 # support. Future versions do this automatically, but an explicit c++rt0.o
18379 # does not break anything, and helps significantly (at the cost of a little
18382 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18383 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18384 hardcode_direct_GCJ=yes
18385 hardcode_shlibpath_var_GCJ=no
18388 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18390 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18391 hardcode_direct_GCJ=yes
18392 hardcode_minus_L_GCJ=yes
18393 hardcode_shlibpath_var_GCJ=no
18396 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18397 freebsd* | kfreebsd*-gnu)
18398 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18399 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18400 hardcode_direct_GCJ=yes
18401 hardcode_shlibpath_var_GCJ=no
18405 if test "$GCC" = yes; then
18406 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'
18408 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'
18410 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18411 hardcode_libdir_separator_GCJ=:
18412 hardcode_direct_GCJ=yes
18414 # hardcode_minus_L: Not really in the search PATH,
18415 # but as the default location of the library.
18416 hardcode_minus_L_GCJ=yes
18417 export_dynamic_flag_spec_GCJ='${wl}-E'
18421 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18422 case "$host_cpu" in
18424 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18427 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18431 case "$host_cpu" in
18433 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18436 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18440 if test "$with_gnu_ld" = no; then
18441 case "$host_cpu" in
18443 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18444 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18445 hardcode_libdir_separator_GCJ=:
18446 hardcode_direct_GCJ=no
18447 hardcode_shlibpath_var_GCJ=no
18450 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18451 hardcode_direct_GCJ=no
18452 hardcode_shlibpath_var_GCJ=no
18454 # hardcode_minus_L: Not really in the search PATH,
18455 # but as the default location of the library.
18456 hardcode_minus_L_GCJ=yes
18459 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18460 hardcode_libdir_separator_GCJ=:
18461 hardcode_direct_GCJ=yes
18462 export_dynamic_flag_spec_GCJ='${wl}-E'
18464 # hardcode_minus_L: Not really in the search PATH,
18465 # but as the default location of the library.
18466 hardcode_minus_L_GCJ=yes
18472 irix5* | irix6* | nonstopux*)
18473 if test "$GCC" = yes; then
18474 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'
18476 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'
18477 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18480 hardcode_libdir_separator_GCJ=:
18481 link_all_deplibs_GCJ=yes
18485 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18486 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18488 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18490 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18491 hardcode_direct_GCJ=yes
18492 hardcode_shlibpath_var_GCJ=no
18496 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18497 hardcode_direct_GCJ=yes
18498 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18499 hardcode_libdir_separator_GCJ=:
18500 hardcode_shlibpath_var_GCJ=no
18504 hardcode_direct_GCJ=yes
18505 hardcode_shlibpath_var_GCJ=no
18506 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18507 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18508 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18509 export_dynamic_flag_spec_GCJ='${wl}-E'
18512 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18514 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18517 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18518 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18525 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18526 hardcode_minus_L_GCJ=yes
18527 allow_undefined_flag_GCJ=unsupported
18528 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'
18529 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18533 if test "$GCC" = yes; then
18534 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18535 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'
18537 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18538 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'
18540 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18541 hardcode_libdir_separator_GCJ=:
18544 osf4* | osf5*) # as osf3* with the addition of -msym flag
18545 if test "$GCC" = yes; then
18546 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18547 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'
18548 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18550 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18551 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'
18552 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~
18553 $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'
18555 # Both c and cxx compiler support -rpath directly
18556 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18558 hardcode_libdir_separator_GCJ=:
18562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18563 hardcode_shlibpath_var_GCJ=no
18564 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18565 runpath_var=LD_RUN_PATH
18566 hardcode_runpath_var=yes
18570 no_undefined_flag_GCJ=' -z text'
18571 if test "$GCC" = yes; then
18572 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18573 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18574 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18576 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18577 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18578 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18580 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18581 hardcode_shlibpath_var_GCJ=no
18583 solaris2.[0-5] | solaris2.[0-5].*) ;;
18584 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18585 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18587 link_all_deplibs_GCJ=yes
18591 if test "x$host_vendor" = xsequent; then
18592 # Use $CC to link under sequent, because it throws in some extra .o
18593 # files that make .init and .fini sections work.
18594 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18596 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18598 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18599 hardcode_direct_GCJ=yes
18600 hardcode_minus_L_GCJ=yes
18601 hardcode_shlibpath_var_GCJ=no
18605 case $host_vendor in
18607 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18608 hardcode_direct_GCJ=yes # is this really true???
18611 ## LD is ld it makes a PLAMLIB
18612 ## CC just makes a GrossModule.
18613 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18614 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18615 hardcode_direct_GCJ=no
18618 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18619 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18622 runpath_var='LD_RUN_PATH'
18623 hardcode_shlibpath_var_GCJ=no
18627 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18628 hardcode_shlibpath_var_GCJ=no
18629 export_dynamic_flag_spec_GCJ='-Bexport'
18633 if test -d /usr/nec; then
18634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18635 hardcode_shlibpath_var_GCJ=no
18636 runpath_var=LD_RUN_PATH
18637 hardcode_runpath_var=yes
18643 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18644 hardcode_direct_GCJ=yes
18645 hardcode_minus_L_GCJ=no
18646 hardcode_shlibpath_var_GCJ=no
18647 hardcode_runpath_var=yes
18648 runpath_var=LD_RUN_PATH
18651 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18652 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18653 if test "$GCC" = yes; then
18654 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18656 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18658 runpath_var='LD_RUN_PATH'
18659 hardcode_shlibpath_var_GCJ=no
18663 no_undefined_flag_GCJ=' -z text'
18664 # $CC -shared without GNU ld will not create a library from C++
18665 # object files and a static libstdc++, better avoid it by now
18666 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18667 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18668 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18669 hardcode_libdir_flag_spec_GCJ=
18670 hardcode_shlibpath_var_GCJ=no
18671 runpath_var='LD_RUN_PATH'
18675 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18677 hardcode_shlibpath_var_GCJ=no
18686 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18687 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18688 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18690 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18691 if test "$GCC" = yes; then
18692 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18696 # Do we need to explicitly link libc?
18698 case "x$archive_cmds_need_lc_GCJ" in
18700 # Assume -lc should be added
18701 archive_cmds_need_lc_GCJ=yes
18703 if test "$enable_shared" = yes && test "$GCC" = yes; then
18704 case $archive_cmds_GCJ in
18706 # FIXME: we may have to deal with multi-command sequences.
18709 # Test whether the compiler implicitly links with -lc since on some
18710 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18711 # to ld, don't add -lc before -lgcc.
18712 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18713 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18715 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18718 (eval $ac_compile) 2>&5
18720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18721 (exit $ac_status); } 2>conftest.err; then
18724 libobjs=conftest.$ac_objext
18726 wl=$lt_prog_compiler_wl_GCJ
18732 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18733 allow_undefined_flag_GCJ=
18734 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18735 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); }
18740 archive_cmds_need_lc_GCJ=no
18742 archive_cmds_need_lc_GCJ=yes
18744 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18746 cat conftest.err 1>&5
18749 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18750 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18757 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18758 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18759 library_names_spec=
18760 libname_spec='lib$name'
18764 postuninstall_cmds=
18768 shlibpath_overrides_runpath=unknown
18770 dynamic_linker="$host_os ld.so"
18771 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18772 if test "$GCC" = yes; then
18773 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18774 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18775 # if the path contains ";" then we assume it to be the separator
18776 # otherwise default to the standard path separator (i.e. ":") - it is
18777 # assumed that no part of a normal pathname contains ";" but that should
18778 # okay in the real world where ";" in dirpaths is itself problematic.
18779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18781 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18784 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18786 need_lib_prefix=unknown
18787 hardcode_into_libs=no
18789 # when you set need_version to no, make sure it does not cause -set_version
18790 # flags to be left without arguments
18791 need_version=unknown
18796 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18797 shlibpath_var=LIBPATH
18799 # AIX 3 has no versioning support, so we append a major version to the name.
18800 soname_spec='${libname}${release}${shared_ext}$major'
18807 hardcode_into_libs=yes
18808 if test "$host_cpu" = ia64; then
18809 # AIX 5 supports IA64
18810 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18811 shlibpath_var=LD_LIBRARY_PATH
18813 # With GCC up to 2.95.x, collect2 would create an import file
18814 # for dependence libraries. The import file would start with
18815 # the line `#! .'. This would cause the generated library to
18816 # depend on `.', always an invalid library. This was fixed in
18817 # development snapshots of GCC prior to 3.0.
18819 aix4 | aix4.[01] | aix4.[01].*)
18820 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18822 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18825 can_build_shared=no
18829 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18830 # soname into executable. Probably we can add versioning support to
18831 # collect2, so additional links can be useful in future.
18832 if test "$aix_use_runtimelinking" = yes; then
18833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18834 # instead of lib<name>.a to let people know that these are not
18835 # typical AIX shared libraries.
18836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18838 # We preserve .a as extension for shared libraries through AIX4.2
18839 # and later when we are not doing run time linking.
18840 library_names_spec='${libname}${release}.a $libname.a'
18841 soname_spec='${libname}${release}${shared_ext}$major'
18843 shlibpath_var=LIBPATH
18848 library_names_spec='$libname.ixlibrary $libname.a'
18849 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18850 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'
18854 library_names_spec='${libname}${shared_ext}'
18855 dynamic_linker="$host_os ld.so"
18856 shlibpath_var=LIBRARY_PATH
18862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18863 soname_spec='${libname}${release}${shared_ext}$major'
18864 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18865 shlibpath_var=LD_LIBRARY_PATH
18866 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18867 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18868 # the default ld.so.conf also contains /usr/contrib/lib and
18869 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18870 # libtool to hard-code these into programs
18873 cygwin* | mingw* | pw32*)
18874 version_type=windows
18879 case $GCC,$host_os in
18880 yes,cygwin* | yes,mingw* | yes,pw32*)
18881 library_names_spec='$libname.dll.a'
18882 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18883 postinstall_cmds='base_file=`basename \${file}`~
18884 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18885 dldir=$destdir/`dirname \$dlpath`~
18886 test -d \$dldir || mkdir -p \$dldir~
18887 $install_prog $dir/$dlname \$dldir/$dlname'
18888 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18889 dlpath=$dir/\$dldll~
18891 shlibpath_overrides_runpath=yes
18895 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18896 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18897 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18900 # MinGW DLLs use traditional 'lib' prefix
18901 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18902 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18903 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18904 # It is most probably a Windows format PATH printed by
18905 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18906 # path with ; separators, and with drive letters. We can handle the
18907 # drive letters (cygwin fileutils understands them), so leave them,
18908 # especially as we might pass files found there to a mingw objdump,
18909 # which wouldn't understand a cygwinified path. Ahh.
18910 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18912 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18916 # pw32 DLLs use 'pw' prefix rather than 'lib'
18917 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18923 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18926 dynamic_linker='Win32 ld.exe'
18927 # FIXME: first we should search . and the directory the executable is in
18931 darwin* | rhapsody*)
18932 dynamic_linker="$host_os dyld"
18933 version_type=darwin
18936 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18937 soname_spec='${libname}${release}${major}$shared_ext'
18938 shlibpath_overrides_runpath=yes
18939 shlibpath_var=DYLD_LIBRARY_PATH
18940 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18941 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18942 if test "$GCC" = yes; then
18943 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"`
18945 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18947 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18955 soname_spec='${libname}${release}${shared_ext}$major'
18956 shlibpath_var=LD_LIBRARY_PATH
18967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18968 soname_spec='${libname}${release}${shared_ext}$major'
18969 shlibpath_var=LD_LIBRARY_PATH
18970 shlibpath_overrides_runpath=no
18971 hardcode_into_libs=yes
18972 dynamic_linker='GNU ld.so'
18976 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18977 version_type=freebsd-$objformat
18978 case $version_type in
18980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18985 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18989 shlibpath_var=LD_LIBRARY_PATH
18992 shlibpath_overrides_runpath=yes
18994 freebsd3.01* | freebsdelf3.01*)
18995 shlibpath_overrides_runpath=yes
18996 hardcode_into_libs=yes
18999 shlibpath_overrides_runpath=no
19000 hardcode_into_libs=yes
19009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19010 soname_spec='${libname}${release}${shared_ext}$major'
19011 shlibpath_var=LD_LIBRARY_PATH
19012 hardcode_into_libs=yes
19015 hpux9* | hpux10* | hpux11*)
19016 # Give a soname corresponding to the major version so that dld.sl refuses to
19017 # link against other versions.
19021 case "$host_cpu" in
19024 hardcode_into_libs=yes
19025 dynamic_linker="$host_os dld.so"
19026 shlibpath_var=LD_LIBRARY_PATH
19027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19029 soname_spec='${libname}${release}${shared_ext}$major'
19030 if test "X$HPUX_IA64_MODE" = X32; then
19031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19033 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19035 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19039 hardcode_into_libs=yes
19040 dynamic_linker="$host_os dld.sl"
19041 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19042 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19044 soname_spec='${libname}${release}${shared_ext}$major'
19045 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19046 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19050 dynamic_linker="$host_os dld.sl"
19051 shlibpath_var=SHLIB_PATH
19052 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19054 soname_spec='${libname}${release}${shared_ext}$major'
19057 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19058 postinstall_cmds='chmod 555 $lib'
19061 irix5* | irix6* | nonstopux*)
19063 nonstopux*) version_type=nonstopux ;;
19065 if test "$lt_cv_prog_gnu_ld" = yes; then
19073 soname_spec='${libname}${release}${shared_ext}$major'
19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19076 irix5* | nonstopux*)
19077 libsuff= shlibsuff=
19080 case $LD in # libtool.m4 will add one of these switches to LD
19081 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19082 libsuff= shlibsuff= libmagic=32-bit;;
19083 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19084 libsuff=32 shlibsuff=N32 libmagic=N32;;
19085 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19086 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19087 *) libsuff= shlibsuff= libmagic=never-match;;
19091 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19092 shlibpath_overrides_runpath=no
19093 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19094 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19095 hardcode_into_libs=yes
19098 # No shared lib support for Linux oldld, aout, or coff.
19099 linux*oldld* | linux*aout* | linux*coff*)
19103 # This must be Linux ELF.
19108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19109 soname_spec='${libname}${release}${shared_ext}$major'
19110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19111 shlibpath_var=LD_LIBRARY_PATH
19112 shlibpath_overrides_runpath=no
19113 # This implies no fast_install, which is unacceptable.
19114 # Some rework will be needed to allow for fast_install
19115 # before this can be enabled.
19116 hardcode_into_libs=yes
19118 # find out which ABI we are using
19120 case "$host_cpu" in
19121 x86_64*|s390x*|powerpc64*)
19122 echo '#line 19122 "configure"' > conftest.$ac_ext
19123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19124 (eval $ac_compile) 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; then
19128 case `/usr/bin/file conftest.$ac_objext` in
19131 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19139 # Append ld.so.conf contents to the search path
19140 if test -f /etc/ld.so.conf; then
19141 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19142 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19145 # We used to test for /lib/ld.so.1 and disable shared libraries on
19146 # powerpc, because MkLinux only supported shared libraries with the
19147 # GNU dynamic linker. Since this was broken with cross compilers,
19148 # most powerpc-linux boxes support dynamic linking these days and
19149 # people can always --disable-shared, the test was removed, and we
19150 # assume the GNU/Linux dynamic linker is in use.
19151 dynamic_linker='GNU/Linux ld.so'
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19159 soname_spec='${libname}${release}${shared_ext}$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath=no
19162 hardcode_into_libs=yes
19163 dynamic_linker='GNU ld.so'
19170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19173 dynamic_linker='NetBSD (a.out) ld.so'
19175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19176 soname_spec='${libname}${release}${shared_ext}$major'
19177 dynamic_linker='NetBSD ld.elf_so'
19179 shlibpath_var=LD_LIBRARY_PATH
19180 shlibpath_overrides_runpath=yes
19181 hardcode_into_libs=yes
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 shlibpath_var=LD_LIBRARY_PATH
19188 shlibpath_overrides_runpath=yes
19195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196 soname_spec='${libname}${release}${shared_ext}$major'
19197 shlibpath_var=LD_LIBRARY_PATH
19198 shlibpath_overrides_runpath=yes
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19207 shlibpath_var=LD_LIBRARY_PATH
19208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19210 openbsd2.[89] | openbsd2.[89].*)
19211 shlibpath_overrides_runpath=no
19214 shlibpath_overrides_runpath=yes
19218 shlibpath_overrides_runpath=yes
19223 libname_spec='$name'
19226 library_names_spec='$libname${shared_ext} $libname.a'
19227 dynamic_linker='OS/2 ld.exe'
19228 shlibpath_var=LIBPATH
19231 osf3* | osf4* | osf5*)
19235 soname_spec='${libname}${release}${shared_ext}$major'
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237 shlibpath_var=LD_LIBRARY_PATH
19238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246 shlibpath_var=LD_LIBRARY_PATH
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19257 hardcode_into_libs=yes
19258 # ldd complains unless libraries are executable
19259 postinstall_cmds='chmod +x $lib'
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath=yes
19268 if test "$with_gnu_ld" = yes; then
19274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 case $host_vendor in
19281 shlibpath_overrides_runpath=no
19283 export_dynamic_flag_spec='${wl}-Blargedynsym'
19284 runpath_var=LD_RUN_PATH
19292 shlibpath_overrides_runpath=no
19293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19299 if test -d /usr/nec ;then
19301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19302 soname_spec='$libname${shared_ext}.$major'
19303 shlibpath_var=LD_LIBRARY_PATH
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 shlibpath_var=LD_LIBRARY_PATH
19318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19319 echo "${ECHO_T}$dynamic_linker" >&6
19320 test "$dynamic_linker" = no && can_build_shared=no
19322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19324 hardcode_action_GCJ=
19325 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19326 test -n "$runpath_var GCJ" || \
19327 test "X$hardcode_automatic_GCJ"="Xyes" ; then
19329 # We can hardcode non-existant directories.
19330 if test "$hardcode_direct_GCJ" != no &&
19331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19332 # have to relink, otherwise we might link with an installed library
19333 # when we should be linking with a yet-to-be-installed one
19334 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19335 test "$hardcode_minus_L_GCJ" != no; then
19336 # Linking always hardcodes the temporary library directory.
19337 hardcode_action_GCJ=relink
19339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19340 hardcode_action_GCJ=immediate
19343 # We cannot hardcode anything, or else we can only hardcode existing
19345 hardcode_action_GCJ=unsupported
19347 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19348 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19350 if test "$hardcode_action_GCJ" = relink; then
19351 # Fast installation is not supported
19352 enable_fast_install=no
19353 elif test "$shlibpath_overrides_runpath" = yes ||
19354 test "$enable_shared" = no; then
19355 # Fast installation is not necessary
19356 enable_fast_install=needless
19361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19366 echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6
19369 # FIXME - insert some real tests, host_os isn't really good enough
19372 if test -n "$STRIP" ; then
19373 striplib="$STRIP -x"
19374 echo "$as_me:$LINENO: result: yes" >&5
19375 echo "${ECHO_T}yes" >&6
19377 echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6
19382 echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19388 if test "x$enable_dlopen" != xyes; then
19389 enable_dlopen=unknown
19390 enable_dlopen_self=unknown
19391 enable_dlopen_self_static=unknown
19398 lt_cv_dlopen="load_add_on"
19400 lt_cv_dlopen_self=yes
19404 lt_cv_dlopen="LoadLibrary"
19409 lt_cv_dlopen="dlopen"
19414 # if libdl is installed we need to link against it
19415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19420 ac_check_lib_save_LIBS=$LIBS
19422 cat >conftest.$ac_ext <<_ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19429 /* Override any gcc2 internal prototype to avoid an error. */
19433 /* We use char because int might match the return type of a gcc2
19434 builtin and then its argument prototype would still apply. */
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446 (eval $ac_link) 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag"
19454 || test ! -s conftest.err'
19455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19456 (eval $ac_try) 2>&5
19458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19459 (exit $ac_status); }; } &&
19460 { ac_try='test -s conftest$ac_exeext'
19461 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19462 (eval $ac_try) 2>&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); }; }; then
19466 ac_cv_lib_dl_dlopen=yes
19468 echo "$as_me: failed program was:" >&5
19469 sed 's/^/| /' conftest.$ac_ext >&5
19471 ac_cv_lib_dl_dlopen=no
19473 rm -f conftest.err conftest.$ac_objext \
19474 conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19477 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19478 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19479 if test $ac_cv_lib_dl_dlopen = yes; then
19480 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19483 lt_cv_dlopen="dyld"
19485 lt_cv_dlopen_self=yes
19492 echo "$as_me:$LINENO: checking for shl_load" >&5
19493 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19494 if test "${ac_cv_func_shl_load+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19497 cat >conftest.$ac_ext <<_ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19505 #define shl_load innocuous_shl_load
19507 /* System header to define __stub macros and hopefully few prototypes,
19508 which can conflict with char shl_load (); below.
19509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19510 <limits.h> exists even on freestanding compilers. */
19513 # include <limits.h>
19515 # include <assert.h>
19520 /* Override any gcc2 internal prototype to avoid an error. */
19525 /* We use char because int might match the return type of a gcc2
19526 builtin and then its argument prototype would still apply. */
19528 /* The GNU C library defines this for functions which it implements
19529 to always fail with ENOSYS. Some functions are actually named
19530 something starting with __ and the normal name is an alias. */
19531 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19534 char (*f) () = shl_load;
19543 return f != shl_load;
19548 rm -f conftest.$ac_objext conftest$ac_exeext
19549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19550 (eval $ac_link) 2>conftest.er1
19552 grep -v '^ *+' conftest.er1 >conftest.err
19554 cat conftest.err >&5
19555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19556 (exit $ac_status); } &&
19557 { ac_try='test -z "$ac_c_werror_flag"
19558 || test ! -s conftest.err'
19559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19560 (eval $ac_try) 2>&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); }; } &&
19564 { ac_try='test -s conftest$ac_exeext'
19565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19566 (eval $ac_try) 2>&5
19568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19569 (exit $ac_status); }; }; then
19570 ac_cv_func_shl_load=yes
19572 echo "$as_me: failed program was:" >&5
19573 sed 's/^/| /' conftest.$ac_ext >&5
19575 ac_cv_func_shl_load=no
19577 rm -f conftest.err conftest.$ac_objext \
19578 conftest$ac_exeext conftest.$ac_ext
19580 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19581 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19582 if test $ac_cv_func_shl_load = yes; then
19583 lt_cv_dlopen="shl_load"
19585 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19586 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19587 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_check_lib_save_LIBS=$LIBS
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19599 /* Override any gcc2 internal prototype to avoid an error. */
19603 /* We use char because int might match the return type of a gcc2
19604 builtin and then its argument prototype would still apply. */
19614 rm -f conftest.$ac_objext conftest$ac_exeext
19615 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19616 (eval $ac_link) 2>conftest.er1
19618 grep -v '^ *+' conftest.er1 >conftest.err
19620 cat conftest.err >&5
19621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } &&
19623 { ac_try='test -z "$ac_c_werror_flag"
19624 || test ! -s conftest.err'
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); }; } &&
19630 { ac_try='test -s conftest$ac_exeext'
19631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19632 (eval $ac_try) 2>&5
19634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19635 (exit $ac_status); }; }; then
19636 ac_cv_lib_dld_shl_load=yes
19638 echo "$as_me: failed program was:" >&5
19639 sed 's/^/| /' conftest.$ac_ext >&5
19641 ac_cv_lib_dld_shl_load=no
19643 rm -f conftest.err conftest.$ac_objext \
19644 conftest$ac_exeext conftest.$ac_ext
19645 LIBS=$ac_check_lib_save_LIBS
19647 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19648 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19649 if test $ac_cv_lib_dld_shl_load = yes; then
19650 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19652 echo "$as_me:$LINENO: checking for dlopen" >&5
19653 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19654 if test "${ac_cv_func_dlopen+set}" = set; then
19655 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19665 #define dlopen innocuous_dlopen
19667 /* System header to define __stub macros and hopefully few prototypes,
19668 which can conflict with char dlopen (); below.
19669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19670 <limits.h> exists even on freestanding compilers. */
19673 # include <limits.h>
19675 # include <assert.h>
19680 /* Override any gcc2 internal prototype to avoid an error. */
19685 /* We use char because int might match the return type of a gcc2
19686 builtin and then its argument prototype would still apply. */
19688 /* The GNU C library defines this for functions which it implements
19689 to always fail with ENOSYS. Some functions are actually named
19690 something starting with __ and the normal name is an alias. */
19691 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19694 char (*f) () = dlopen;
19703 return f != dlopen;
19708 rm -f conftest.$ac_objext conftest$ac_exeext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19710 (eval $ac_link) 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_c_werror_flag"
19718 || test ! -s conftest.err'
19719 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19720 (eval $ac_try) 2>&5
19722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19723 (exit $ac_status); }; } &&
19724 { ac_try='test -s conftest$ac_exeext'
19725 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19726 (eval $ac_try) 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; }; then
19730 ac_cv_func_dlopen=yes
19732 echo "$as_me: failed program was:" >&5
19733 sed 's/^/| /' conftest.$ac_ext >&5
19735 ac_cv_func_dlopen=no
19737 rm -f conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19740 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19741 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19742 if test $ac_cv_func_dlopen = yes; then
19743 lt_cv_dlopen="dlopen"
19745 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19746 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19747 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19748 echo $ECHO_N "(cached) $ECHO_C" >&6
19750 ac_check_lib_save_LIBS=$LIBS
19752 cat >conftest.$ac_ext <<_ACEOF
19755 cat confdefs.h >>conftest.$ac_ext
19756 cat >>conftest.$ac_ext <<_ACEOF
19757 /* end confdefs.h. */
19759 /* Override any gcc2 internal prototype to avoid an error. */
19763 /* We use char because int might match the return type of a gcc2
19764 builtin and then its argument prototype would still apply. */
19774 rm -f conftest.$ac_objext conftest$ac_exeext
19775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19776 (eval $ac_link) 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } &&
19783 { ac_try='test -z "$ac_c_werror_flag"
19784 || test ! -s conftest.err'
19785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19786 (eval $ac_try) 2>&5
19788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19789 (exit $ac_status); }; } &&
19790 { ac_try='test -s conftest$ac_exeext'
19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19792 (eval $ac_try) 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_lib_dl_dlopen=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_lib_dl_dlopen=no
19803 rm -f conftest.err conftest.$ac_objext \
19804 conftest$ac_exeext conftest.$ac_ext
19805 LIBS=$ac_check_lib_save_LIBS
19807 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19808 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19809 if test $ac_cv_lib_dl_dlopen = yes; then
19810 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19812 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19813 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19814 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lsvld $LIBS"
19819 cat >conftest.$ac_ext <<_ACEOF
19822 cat confdefs.h >>conftest.$ac_ext
19823 cat >>conftest.$ac_ext <<_ACEOF
19824 /* end confdefs.h. */
19826 /* Override any gcc2 internal prototype to avoid an error. */
19830 /* We use char because int might match the return type of a gcc2
19831 builtin and then its argument prototype would still apply. */
19841 rm -f conftest.$ac_objext conftest$ac_exeext
19842 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19843 (eval $ac_link) 2>conftest.er1
19845 grep -v '^ *+' conftest.er1 >conftest.err
19847 cat conftest.err >&5
19848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19849 (exit $ac_status); } &&
19850 { ac_try='test -z "$ac_c_werror_flag"
19851 || test ! -s conftest.err'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; } &&
19857 { ac_try='test -s conftest$ac_exeext'
19858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19859 (eval $ac_try) 2>&5
19861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19862 (exit $ac_status); }; }; then
19863 ac_cv_lib_svld_dlopen=yes
19865 echo "$as_me: failed program was:" >&5
19866 sed 's/^/| /' conftest.$ac_ext >&5
19868 ac_cv_lib_svld_dlopen=no
19870 rm -f conftest.err conftest.$ac_objext \
19871 conftest$ac_exeext conftest.$ac_ext
19872 LIBS=$ac_check_lib_save_LIBS
19874 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19875 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19876 if test $ac_cv_lib_svld_dlopen = yes; then
19877 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19879 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19880 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19881 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19882 echo $ECHO_N "(cached) $ECHO_C" >&6
19884 ac_check_lib_save_LIBS=$LIBS
19886 cat >conftest.$ac_ext <<_ACEOF
19889 cat confdefs.h >>conftest.$ac_ext
19890 cat >>conftest.$ac_ext <<_ACEOF
19891 /* end confdefs.h. */
19893 /* Override any gcc2 internal prototype to avoid an error. */
19897 /* We use char because int might match the return type of a gcc2
19898 builtin and then its argument prototype would still apply. */
19908 rm -f conftest.$ac_objext conftest$ac_exeext
19909 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19910 (eval $ac_link) 2>conftest.er1
19912 grep -v '^ *+' conftest.er1 >conftest.err
19914 cat conftest.err >&5
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); } &&
19917 { ac_try='test -z "$ac_c_werror_flag"
19918 || test ! -s conftest.err'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; } &&
19924 { ac_try='test -s conftest$ac_exeext'
19925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19926 (eval $ac_try) 2>&5
19928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19929 (exit $ac_status); }; }; then
19930 ac_cv_lib_dld_dld_link=yes
19932 echo "$as_me: failed program was:" >&5
19933 sed 's/^/| /' conftest.$ac_ext >&5
19935 ac_cv_lib_dld_dld_link=no
19937 rm -f conftest.err conftest.$ac_objext \
19938 conftest$ac_exeext conftest.$ac_ext
19939 LIBS=$ac_check_lib_save_LIBS
19941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19942 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19943 if test $ac_cv_lib_dld_dld_link = yes; then
19944 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19965 if test "x$lt_cv_dlopen" != xno; then
19971 case $lt_cv_dlopen in
19973 save_CPPFLAGS="$CPPFLAGS"
19974 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19976 save_LDFLAGS="$LDFLAGS"
19977 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19980 LIBS="$lt_cv_dlopen_libs $LIBS"
19982 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19983 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19984 if test "${lt_cv_dlopen_self+set}" = set; then
19985 echo $ECHO_N "(cached) $ECHO_C" >&6
19987 if test "$cross_compiling" = yes; then :
19988 lt_cv_dlopen_self=cross
19990 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19991 lt_status=$lt_dlunknown
19992 cat > conftest.$ac_ext <<EOF
19993 #line 19993 "configure"
19994 #include "confdefs.h"
20003 # define LT_DLGLOBAL RTLD_GLOBAL
20006 # define LT_DLGLOBAL DL_GLOBAL
20008 # define LT_DLGLOBAL 0
20012 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20013 find out it does not work in some platform. */
20014 #ifndef LT_DLLAZY_OR_NOW
20016 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20019 # define LT_DLLAZY_OR_NOW DL_LAZY
20022 # define LT_DLLAZY_OR_NOW RTLD_NOW
20025 # define LT_DLLAZY_OR_NOW DL_NOW
20027 # define LT_DLLAZY_OR_NOW 0
20035 extern "C" void exit (int);
20038 void fnord() { int i=42;}
20041 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20042 int status = $lt_dlunknown;
20046 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20047 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20048 /* dlclose (self); */
20054 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20055 (eval $ac_link) 2>&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20059 (./conftest; exit; ) 2>/dev/null
20061 case x$lt_status in
20062 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20063 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20064 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20067 # compilation failed
20068 lt_cv_dlopen_self=no
20075 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20076 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20078 if test "x$lt_cv_dlopen_self" = xyes; then
20079 LDFLAGS="$LDFLAGS $link_static_flag"
20080 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20081 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20082 if test "${lt_cv_dlopen_self_static+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20085 if test "$cross_compiling" = yes; then :
20086 lt_cv_dlopen_self_static=cross
20088 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20089 lt_status=$lt_dlunknown
20090 cat > conftest.$ac_ext <<EOF
20091 #line 20091 "configure"
20092 #include "confdefs.h"
20101 # define LT_DLGLOBAL RTLD_GLOBAL
20104 # define LT_DLGLOBAL DL_GLOBAL
20106 # define LT_DLGLOBAL 0
20110 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20111 find out it does not work in some platform. */
20112 #ifndef LT_DLLAZY_OR_NOW
20114 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20117 # define LT_DLLAZY_OR_NOW DL_LAZY
20120 # define LT_DLLAZY_OR_NOW RTLD_NOW
20123 # define LT_DLLAZY_OR_NOW DL_NOW
20125 # define LT_DLLAZY_OR_NOW 0
20133 extern "C" void exit (int);
20136 void fnord() { int i=42;}
20139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20140 int status = $lt_dlunknown;
20144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20146 /* dlclose (self); */
20152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20153 (eval $ac_link) 2>&5
20155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20157 (./conftest; exit; ) 2>/dev/null
20159 case x$lt_status in
20160 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20161 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20162 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20165 # compilation failed
20166 lt_cv_dlopen_self_static=no
20173 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20174 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20177 CPPFLAGS="$save_CPPFLAGS"
20178 LDFLAGS="$save_LDFLAGS"
20183 case $lt_cv_dlopen_self in
20184 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20185 *) enable_dlopen_self=unknown ;;
20188 case $lt_cv_dlopen_self_static in
20189 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20190 *) enable_dlopen_self_static=unknown ;;
20195 # The else clause should only fire when bootstrapping the
20196 # libtool distribution, otherwise you forgot to ship ltmain.sh
20197 # with your package, and you will get complaints that there are
20198 # no rules to generate ltmain.sh.
20199 if test -f "$ltmain"; then
20200 # See if we are running on zsh, and set the options which allow our commands through
20201 # without removal of \ escapes.
20202 if test -n "${ZSH_VERSION+set}" ; then
20203 setopt NO_GLOB_SUBST
20205 # Now quote all the things that may contain metacharacters while being
20206 # careful not to overquote the AC_SUBSTed values. We take copies of the
20207 # variables and quote the copies for generation of the libtool script.
20208 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20210 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20211 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20212 deplibs_check_method reload_flag reload_cmds need_locks \
20213 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20214 lt_cv_sys_global_symbol_to_c_name_address \
20215 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20216 old_postinstall_cmds old_postuninstall_cmds \
20220 lt_prog_compiler_wl_GCJ \
20221 lt_prog_compiler_pic_GCJ \
20222 lt_prog_compiler_static_GCJ \
20223 lt_prog_compiler_no_builtin_flag_GCJ \
20224 export_dynamic_flag_spec_GCJ \
20225 thread_safe_flag_spec_GCJ \
20226 whole_archive_flag_spec_GCJ \
20227 enable_shared_with_static_runtimes_GCJ \
20228 old_archive_cmds_GCJ \
20229 old_archive_from_new_cmds_GCJ \
20230 predep_objects_GCJ \
20231 postdep_objects_GCJ \
20234 compiler_lib_search_path_GCJ \
20236 archive_expsym_cmds_GCJ \
20237 postinstall_cmds_GCJ \
20238 postuninstall_cmds_GCJ \
20239 old_archive_from_expsyms_cmds_GCJ \
20240 allow_undefined_flag_GCJ \
20241 no_undefined_flag_GCJ \
20242 export_symbols_cmds_GCJ \
20243 hardcode_libdir_flag_spec_GCJ \
20244 hardcode_libdir_flag_spec_ld_GCJ \
20245 hardcode_libdir_separator_GCJ \
20246 hardcode_automatic_GCJ \
20248 module_expsym_cmds_GCJ \
20249 lt_cv_prog_compiler_c_o_GCJ \
20250 exclude_expsyms_GCJ \
20251 include_expsyms_GCJ; do
20254 old_archive_cmds_GCJ | \
20255 old_archive_from_new_cmds_GCJ | \
20256 archive_cmds_GCJ | \
20257 archive_expsym_cmds_GCJ | \
20258 module_cmds_GCJ | \
20259 module_expsym_cmds_GCJ | \
20260 old_archive_from_expsyms_cmds_GCJ | \
20261 export_symbols_cmds_GCJ | \
20262 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20263 postinstall_cmds | postuninstall_cmds | \
20264 old_postinstall_cmds | old_postuninstall_cmds | \
20265 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20266 # Double-quote double-evaled strings.
20267 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20270 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20276 *'\$0 --fallback-echo"')
20277 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20283 cat <<__EOF__ >> "$cfgfile"
20284 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20286 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20288 # Shell to use when invoking shell scripts.
20291 # Whether or not to build shared libraries.
20292 build_libtool_libs=$enable_shared
20294 # Whether or not to build static libraries.
20295 build_old_libs=$enable_static
20297 # Whether or not to add -lc for building shared libraries.
20298 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20300 # Whether or not to disallow shared libs when runtime libs are static
20301 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20303 # Whether or not to optimize for fast installation.
20304 fast_install=$enable_fast_install
20307 host_alias=$host_alias
20310 # An echo program that does not interpret backslashes.
20315 AR_FLAGS=$lt_AR_FLAGS
20320 # A language-specific compiler.
20321 CC=$lt_compiler_GCJ
20323 # Is the compiler the GNU C compiler?
20329 # The linker used to build libraries.
20332 # Whether we need hard or soft links.
20335 # A BSD-compatible nm program.
20338 # A symbol stripping program
20341 # Used to examine libraries when file_magic_cmd begins "file"
20342 MAGIC_CMD=$MAGIC_CMD
20344 # Used on cygwin: DLL creation program.
20347 # Used on cygwin: object dumper.
20350 # Used on cygwin: assembler.
20353 # The name of the directory that contains temporary libtool files.
20356 # How to create reloadable object files.
20357 reload_flag=$lt_reload_flag
20358 reload_cmds=$lt_reload_cmds
20360 # How to pass a linker flag through the compiler.
20361 wl=$lt_lt_prog_compiler_wl_GCJ
20363 # Object file suffix (normally "o").
20364 objext="$ac_objext"
20366 # Old archive suffix (normally "a").
20369 # Shared library suffix (normally ".so").
20370 shrext_cmds='$shrext_cmds'
20372 # Executable file suffix (normally "").
20375 # Additional compiler flags for building library objects.
20376 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20379 # What is the maximum length of a command?
20380 max_cmd_len=$lt_cv_sys_max_cmd_len
20382 # Does compiler simultaneously support -c and -o options?
20383 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20385 # Must we lock files when doing compilation ?
20386 need_locks=$lt_need_locks
20388 # Do we need the lib prefix for modules?
20389 need_lib_prefix=$need_lib_prefix
20391 # Do we need a version for libraries?
20392 need_version=$need_version
20394 # Whether dlopen is supported.
20395 dlopen_support=$enable_dlopen
20397 # Whether dlopen of programs is supported.
20398 dlopen_self=$enable_dlopen_self
20400 # Whether dlopen of statically linked programs is supported.
20401 dlopen_self_static=$enable_dlopen_self_static
20403 # Compiler flag to prevent dynamic linking.
20404 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20406 # Compiler flag to turn off builtin functions.
20407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20409 # Compiler flag to allow reflexive dlopens.
20410 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20412 # Compiler flag to generate shared objects directly from archives.
20413 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20415 # Compiler flag to generate thread-safe objects.
20416 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20418 # Library versioning type.
20419 version_type=$version_type
20421 # Format of library name prefix.
20422 libname_spec=$lt_libname_spec
20424 # List of archive names. First name is the real one, the rest are links.
20425 # The last name is the one that the linker finds with -lNAME.
20426 library_names_spec=$lt_library_names_spec
20428 # The coded name of the library, if different from the real name.
20429 soname_spec=$lt_soname_spec
20431 # Commands used to build and install an old-style archive.
20433 old_archive_cmds=$lt_old_archive_cmds_GCJ
20434 old_postinstall_cmds=$lt_old_postinstall_cmds
20435 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20437 # Create an old-style archive from a shared archive.
20438 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20440 # Create a temporary old-style archive to link instead of a shared archive.
20441 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20443 # Commands used to build and install a shared archive.
20444 archive_cmds=$lt_archive_cmds_GCJ
20445 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20446 postinstall_cmds=$lt_postinstall_cmds
20447 postuninstall_cmds=$lt_postuninstall_cmds
20449 # Commands used to build a loadable module (assumed same as above if empty)
20450 module_cmds=$lt_module_cmds_GCJ
20451 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20453 # Commands to strip libraries.
20454 old_striplib=$lt_old_striplib
20455 striplib=$lt_striplib
20457 # Dependencies to place before the objects being linked to create a
20459 predep_objects=$lt_predep_objects_GCJ
20461 # Dependencies to place after the objects being linked to create a
20463 postdep_objects=$lt_postdep_objects_GCJ
20465 # Dependencies to place before the objects being linked to create a
20467 predeps=$lt_predeps_GCJ
20469 # Dependencies to place after the objects being linked to create a
20471 postdeps=$lt_postdeps_GCJ
20473 # The library search path used internally by the compiler when linking
20474 # a shared library.
20475 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20477 # Method to check whether dependent libraries are shared objects.
20478 deplibs_check_method=$lt_deplibs_check_method
20480 # Command to use when deplibs_check_method == file_magic.
20481 file_magic_cmd=$lt_file_magic_cmd
20483 # Flag that allows shared libraries with undefined symbols to be built.
20484 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20486 # Flag that forces no undefined symbols.
20487 no_undefined_flag=$lt_no_undefined_flag_GCJ
20489 # Commands used to finish a libtool library installation in a directory.
20490 finish_cmds=$lt_finish_cmds
20492 # Same as above, but a single script fragment to be evaled but not shown.
20493 finish_eval=$lt_finish_eval
20495 # Take the output of nm and produce a listing of raw symbols and C names.
20496 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20498 # Transform the output of nm in a proper C declaration
20499 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20501 # Transform the output of nm in a C name address pair
20502 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20504 # This is the shared library runtime path variable.
20505 runpath_var=$runpath_var
20507 # This is the shared library path variable.
20508 shlibpath_var=$shlibpath_var
20510 # Is shlibpath searched before the hard-coded library search path?
20511 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20513 # How to hardcode a shared library path into an executable.
20514 hardcode_action=$hardcode_action_GCJ
20516 # Whether we should hardcode library paths into libraries.
20517 hardcode_into_libs=$hardcode_into_libs
20519 # Flag to hardcode \$libdir into a binary during linking.
20520 # This must work even if \$libdir does not exist.
20521 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20523 # If ld is used when linking, flag to hardcode \$libdir into
20524 # a binary during linking. This must work even if \$libdir does
20526 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20528 # Whether we need a single -rpath flag with a separated argument.
20529 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20531 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20532 # resulting binary.
20533 hardcode_direct=$hardcode_direct_GCJ
20535 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20536 # resulting binary.
20537 hardcode_minus_L=$hardcode_minus_L_GCJ
20539 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20540 # the resulting binary.
20541 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20543 # Set to yes if building a shared library automatically hardcodes DIR into the library
20544 # and all subsequent libraries and executables linked against it.
20545 hardcode_automatic=$hardcode_automatic_GCJ
20547 # Variables whose values should be saved in libtool wrapper scripts and
20548 # restored at relink time.
20549 variables_saved_for_relink="$variables_saved_for_relink"
20551 # Whether libtool must link a program against all its dependency libraries.
20552 link_all_deplibs=$link_all_deplibs_GCJ
20554 # Compile-time system search path for libraries
20555 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20557 # Run-time system search path for libraries
20558 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20560 # Fix the shell variable \$srcfile for the compiler.
20561 fix_srcfile_path="$fix_srcfile_path_GCJ"
20563 # Set to yes if exported symbols are required.
20564 always_export_symbols=$always_export_symbols_GCJ
20566 # The commands to list exported symbols.
20567 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20569 # The commands to extract the exported symbol list from a shared archive.
20570 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20572 # Symbols that should not be listed in the preloaded symbols.
20573 exclude_expsyms=$lt_exclude_expsyms_GCJ
20575 # Symbols that must always be exported.
20576 include_expsyms=$lt_include_expsyms_GCJ
20578 # ### END LIBTOOL TAG CONFIG: $tagname
20584 # If there is no Makefile yet, we rely on a make rule to execute
20585 # `config.status --recheck' to rerun these tests and create the
20586 # libtool script then.
20587 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20588 if test -f "$ltmain_in"; then
20589 test -f Makefile && make "$ltmain"
20595 ac_cpp='$CPP $CPPFLAGS'
20596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20611 # Source file extension for RC test sources.
20614 # Object file extension for compiled RC test sources.
20618 # Code to be used in simple compile tests
20619 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20621 # Code to be used in simple link tests
20622 lt_simple_link_test_code="$lt_simple_compile_test_code"
20624 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20626 # If no C compiler was specified, use CC.
20629 # Allow CC to be a program name with arguments.
20633 # Allow CC to be a program name with arguments.
20638 lt_cv_prog_compiler_c_o_RC=yes
20640 # The else clause should only fire when bootstrapping the
20641 # libtool distribution, otherwise you forgot to ship ltmain.sh
20642 # with your package, and you will get complaints that there are
20643 # no rules to generate ltmain.sh.
20644 if test -f "$ltmain"; then
20645 # See if we are running on zsh, and set the options which allow our commands through
20646 # without removal of \ escapes.
20647 if test -n "${ZSH_VERSION+set}" ; then
20648 setopt NO_GLOB_SUBST
20650 # Now quote all the things that may contain metacharacters while being
20651 # careful not to overquote the AC_SUBSTed values. We take copies of the
20652 # variables and quote the copies for generation of the libtool script.
20653 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20655 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20656 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20657 deplibs_check_method reload_flag reload_cmds need_locks \
20658 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20659 lt_cv_sys_global_symbol_to_c_name_address \
20660 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20661 old_postinstall_cmds old_postuninstall_cmds \
20665 lt_prog_compiler_wl_RC \
20666 lt_prog_compiler_pic_RC \
20667 lt_prog_compiler_static_RC \
20668 lt_prog_compiler_no_builtin_flag_RC \
20669 export_dynamic_flag_spec_RC \
20670 thread_safe_flag_spec_RC \
20671 whole_archive_flag_spec_RC \
20672 enable_shared_with_static_runtimes_RC \
20673 old_archive_cmds_RC \
20674 old_archive_from_new_cmds_RC \
20675 predep_objects_RC \
20676 postdep_objects_RC \
20679 compiler_lib_search_path_RC \
20681 archive_expsym_cmds_RC \
20682 postinstall_cmds_RC \
20683 postuninstall_cmds_RC \
20684 old_archive_from_expsyms_cmds_RC \
20685 allow_undefined_flag_RC \
20686 no_undefined_flag_RC \
20687 export_symbols_cmds_RC \
20688 hardcode_libdir_flag_spec_RC \
20689 hardcode_libdir_flag_spec_ld_RC \
20690 hardcode_libdir_separator_RC \
20691 hardcode_automatic_RC \
20693 module_expsym_cmds_RC \
20694 lt_cv_prog_compiler_c_o_RC \
20695 exclude_expsyms_RC \
20696 include_expsyms_RC; do
20699 old_archive_cmds_RC | \
20700 old_archive_from_new_cmds_RC | \
20701 archive_cmds_RC | \
20702 archive_expsym_cmds_RC | \
20704 module_expsym_cmds_RC | \
20705 old_archive_from_expsyms_cmds_RC | \
20706 export_symbols_cmds_RC | \
20707 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20708 postinstall_cmds | postuninstall_cmds | \
20709 old_postinstall_cmds | old_postuninstall_cmds | \
20710 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20711 # Double-quote double-evaled strings.
20712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20715 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20721 *'\$0 --fallback-echo"')
20722 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20728 cat <<__EOF__ >> "$cfgfile"
20729 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20731 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20733 # Shell to use when invoking shell scripts.
20736 # Whether or not to build shared libraries.
20737 build_libtool_libs=$enable_shared
20739 # Whether or not to build static libraries.
20740 build_old_libs=$enable_static
20742 # Whether or not to add -lc for building shared libraries.
20743 build_libtool_need_lc=$archive_cmds_need_lc_RC
20745 # Whether or not to disallow shared libs when runtime libs are static
20746 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20748 # Whether or not to optimize for fast installation.
20749 fast_install=$enable_fast_install
20752 host_alias=$host_alias
20755 # An echo program that does not interpret backslashes.
20760 AR_FLAGS=$lt_AR_FLAGS
20765 # A language-specific compiler.
20768 # Is the compiler the GNU C compiler?
20774 # The linker used to build libraries.
20777 # Whether we need hard or soft links.
20780 # A BSD-compatible nm program.
20783 # A symbol stripping program
20786 # Used to examine libraries when file_magic_cmd begins "file"
20787 MAGIC_CMD=$MAGIC_CMD
20789 # Used on cygwin: DLL creation program.
20792 # Used on cygwin: object dumper.
20795 # Used on cygwin: assembler.
20798 # The name of the directory that contains temporary libtool files.
20801 # How to create reloadable object files.
20802 reload_flag=$lt_reload_flag
20803 reload_cmds=$lt_reload_cmds
20805 # How to pass a linker flag through the compiler.
20806 wl=$lt_lt_prog_compiler_wl_RC
20808 # Object file suffix (normally "o").
20809 objext="$ac_objext"
20811 # Old archive suffix (normally "a").
20814 # Shared library suffix (normally ".so").
20815 shrext_cmds='$shrext_cmds'
20817 # Executable file suffix (normally "").
20820 # Additional compiler flags for building library objects.
20821 pic_flag=$lt_lt_prog_compiler_pic_RC
20824 # What is the maximum length of a command?
20825 max_cmd_len=$lt_cv_sys_max_cmd_len
20827 # Does compiler simultaneously support -c and -o options?
20828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20830 # Must we lock files when doing compilation ?
20831 need_locks=$lt_need_locks
20833 # Do we need the lib prefix for modules?
20834 need_lib_prefix=$need_lib_prefix
20836 # Do we need a version for libraries?
20837 need_version=$need_version
20839 # Whether dlopen is supported.
20840 dlopen_support=$enable_dlopen
20842 # Whether dlopen of programs is supported.
20843 dlopen_self=$enable_dlopen_self
20845 # Whether dlopen of statically linked programs is supported.
20846 dlopen_self_static=$enable_dlopen_self_static
20848 # Compiler flag to prevent dynamic linking.
20849 link_static_flag=$lt_lt_prog_compiler_static_RC
20851 # Compiler flag to turn off builtin functions.
20852 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20854 # Compiler flag to allow reflexive dlopens.
20855 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20857 # Compiler flag to generate shared objects directly from archives.
20858 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20860 # Compiler flag to generate thread-safe objects.
20861 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20863 # Library versioning type.
20864 version_type=$version_type
20866 # Format of library name prefix.
20867 libname_spec=$lt_libname_spec
20869 # List of archive names. First name is the real one, the rest are links.
20870 # The last name is the one that the linker finds with -lNAME.
20871 library_names_spec=$lt_library_names_spec
20873 # The coded name of the library, if different from the real name.
20874 soname_spec=$lt_soname_spec
20876 # Commands used to build and install an old-style archive.
20878 old_archive_cmds=$lt_old_archive_cmds_RC
20879 old_postinstall_cmds=$lt_old_postinstall_cmds
20880 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20882 # Create an old-style archive from a shared archive.
20883 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20885 # Create a temporary old-style archive to link instead of a shared archive.
20886 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20888 # Commands used to build and install a shared archive.
20889 archive_cmds=$lt_archive_cmds_RC
20890 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20891 postinstall_cmds=$lt_postinstall_cmds
20892 postuninstall_cmds=$lt_postuninstall_cmds
20894 # Commands used to build a loadable module (assumed same as above if empty)
20895 module_cmds=$lt_module_cmds_RC
20896 module_expsym_cmds=$lt_module_expsym_cmds_RC
20898 # Commands to strip libraries.
20899 old_striplib=$lt_old_striplib
20900 striplib=$lt_striplib
20902 # Dependencies to place before the objects being linked to create a
20904 predep_objects=$lt_predep_objects_RC
20906 # Dependencies to place after the objects being linked to create a
20908 postdep_objects=$lt_postdep_objects_RC
20910 # Dependencies to place before the objects being linked to create a
20912 predeps=$lt_predeps_RC
20914 # Dependencies to place after the objects being linked to create a
20916 postdeps=$lt_postdeps_RC
20918 # The library search path used internally by the compiler when linking
20919 # a shared library.
20920 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20922 # Method to check whether dependent libraries are shared objects.
20923 deplibs_check_method=$lt_deplibs_check_method
20925 # Command to use when deplibs_check_method == file_magic.
20926 file_magic_cmd=$lt_file_magic_cmd
20928 # Flag that allows shared libraries with undefined symbols to be built.
20929 allow_undefined_flag=$lt_allow_undefined_flag_RC
20931 # Flag that forces no undefined symbols.
20932 no_undefined_flag=$lt_no_undefined_flag_RC
20934 # Commands used to finish a libtool library installation in a directory.
20935 finish_cmds=$lt_finish_cmds
20937 # Same as above, but a single script fragment to be evaled but not shown.
20938 finish_eval=$lt_finish_eval
20940 # Take the output of nm and produce a listing of raw symbols and C names.
20941 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20943 # Transform the output of nm in a proper C declaration
20944 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20946 # Transform the output of nm in a C name address pair
20947 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20949 # This is the shared library runtime path variable.
20950 runpath_var=$runpath_var
20952 # This is the shared library path variable.
20953 shlibpath_var=$shlibpath_var
20955 # Is shlibpath searched before the hard-coded library search path?
20956 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20958 # How to hardcode a shared library path into an executable.
20959 hardcode_action=$hardcode_action_RC
20961 # Whether we should hardcode library paths into libraries.
20962 hardcode_into_libs=$hardcode_into_libs
20964 # Flag to hardcode \$libdir into a binary during linking.
20965 # This must work even if \$libdir does not exist.
20966 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20968 # If ld is used when linking, flag to hardcode \$libdir into
20969 # a binary during linking. This must work even if \$libdir does
20971 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20973 # Whether we need a single -rpath flag with a separated argument.
20974 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20976 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20977 # resulting binary.
20978 hardcode_direct=$hardcode_direct_RC
20980 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20981 # resulting binary.
20982 hardcode_minus_L=$hardcode_minus_L_RC
20984 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20985 # the resulting binary.
20986 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20988 # Set to yes if building a shared library automatically hardcodes DIR into the library
20989 # and all subsequent libraries and executables linked against it.
20990 hardcode_automatic=$hardcode_automatic_RC
20992 # Variables whose values should be saved in libtool wrapper scripts and
20993 # restored at relink time.
20994 variables_saved_for_relink="$variables_saved_for_relink"
20996 # Whether libtool must link a program against all its dependency libraries.
20997 link_all_deplibs=$link_all_deplibs_RC
20999 # Compile-time system search path for libraries
21000 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21002 # Run-time system search path for libraries
21003 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21005 # Fix the shell variable \$srcfile for the compiler.
21006 fix_srcfile_path="$fix_srcfile_path_RC"
21008 # Set to yes if exported symbols are required.
21009 always_export_symbols=$always_export_symbols_RC
21011 # The commands to list exported symbols.
21012 export_symbols_cmds=$lt_export_symbols_cmds_RC
21014 # The commands to extract the exported symbol list from a shared archive.
21015 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21017 # Symbols that should not be listed in the preloaded symbols.
21018 exclude_expsyms=$lt_exclude_expsyms_RC
21020 # Symbols that must always be exported.
21021 include_expsyms=$lt_include_expsyms_RC
21023 # ### END LIBTOOL TAG CONFIG: $tagname
21029 # If there is no Makefile yet, we rely on a make rule to execute
21030 # `config.status --recheck' to rerun these tests and create the
21031 # libtool script then.
21032 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21033 if test -f "$ltmain_in"; then
21034 test -f Makefile && make "$ltmain"
21040 ac_cpp='$CPP $CPPFLAGS'
21041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21050 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21051 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21052 { (exit 1); exit 1; }; }
21056 # Append the new tag name to the list of available tags.
21057 if test -n "$tagname" ; then
21058 available_tags="$available_tags $tagname"
21064 # Now substitute the updated list of available tags.
21065 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21066 mv "${ofile}T" "$ofile"
21070 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21071 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21072 { (exit 1); exit 1; }; }
21078 # This can be used to rebuild libtool when needed
21079 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21081 # Always use our own libtool.
21082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21084 # Prevent multiple expansion
21106 # Checks for typedefs, structures, and compiler characteristics.
21107 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21108 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21109 if test "${ac_cv_c_const+set}" = set; then
21110 echo $ECHO_N "(cached) $ECHO_C" >&6
21112 cat >conftest.$ac_ext <<_ACEOF
21115 cat confdefs.h >>conftest.$ac_ext
21116 cat >>conftest.$ac_ext <<_ACEOF
21117 /* end confdefs.h. */
21122 /* FIXME: Include the comments suggested by Paul. */
21123 #ifndef __cplusplus
21124 /* Ultrix mips cc rejects this. */
21125 typedef int charset[2];
21127 /* SunOS 4.1.1 cc rejects this. */
21128 char const *const *ccp;
21130 /* NEC SVR4.0.2 mips cc rejects this. */
21131 struct point {int x, y;};
21132 static struct point const zero = {0,0};
21133 /* AIX XL C 1.02.0.0 rejects this.
21134 It does not let you subtract one const X* pointer from another in
21135 an arm of an if-expression whose if-part is not a constant
21137 const char *g = "string";
21138 ccp = &g + (g ? g-g : 0);
21139 /* HPUX 7.0 cc rejects these. */
21142 ccp = (char const *const *) p;
21143 { /* SCO 3.2v4 cc rejects this. */
21145 char const *s = 0 ? (char *) 0 : (char const *) 0;
21149 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21150 int x[] = {25, 17};
21151 const int *foo = &x[0];
21154 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21155 typedef const int *iptr;
21159 { /* AIX XL C 1.02.0.0 rejects this saying
21160 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21161 struct s { int j; const int *ap[3]; };
21162 struct s *b; b->j = 5;
21164 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21165 const int foo = 10;
21173 rm -f conftest.$ac_objext
21174 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21175 (eval $ac_compile) 2>conftest.er1
21177 grep -v '^ *+' conftest.er1 >conftest.err
21179 cat conftest.err >&5
21180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21181 (exit $ac_status); } &&
21182 { ac_try='test -z "$ac_c_werror_flag"
21183 || test ! -s conftest.err'
21184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21185 (eval $ac_try) 2>&5
21187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21188 (exit $ac_status); }; } &&
21189 { ac_try='test -s conftest.$ac_objext'
21190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21191 (eval $ac_try) 2>&5
21193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21194 (exit $ac_status); }; }; then
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21202 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21204 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21205 echo "${ECHO_T}$ac_cv_c_const" >&6
21206 if test $ac_cv_c_const = no; then
21208 cat >>confdefs.h <<\_ACEOF
21214 echo "$as_me:$LINENO: checking for size_t" >&5
21215 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21216 if test "${ac_cv_type_size_t+set}" = set; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21219 cat >conftest.$ac_ext <<_ACEOF
21222 cat confdefs.h >>conftest.$ac_ext
21223 cat >>conftest.$ac_ext <<_ACEOF
21224 /* end confdefs.h. */
21225 $ac_includes_default
21231 if (sizeof (size_t))
21237 rm -f conftest.$ac_objext
21238 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21239 (eval $ac_compile) 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21245 (exit $ac_status); } &&
21246 { ac_try='test -z "$ac_c_werror_flag"
21247 || test ! -s conftest.err'
21248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21249 (eval $ac_try) 2>&5
21251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21252 (exit $ac_status); }; } &&
21253 { ac_try='test -s conftest.$ac_objext'
21254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21255 (eval $ac_try) 2>&5
21257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21258 (exit $ac_status); }; }; then
21259 ac_cv_type_size_t=yes
21261 echo "$as_me: failed program was:" >&5
21262 sed 's/^/| /' conftest.$ac_ext >&5
21264 ac_cv_type_size_t=no
21266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21268 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21269 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21270 if test $ac_cv_type_size_t = yes; then
21274 cat >>confdefs.h <<_ACEOF
21275 #define size_t unsigned
21281 # Checks for library functions.
21285 for ac_func in strchr strdup strstr
21287 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21288 echo "$as_me:$LINENO: checking for $ac_func" >&5
21289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21290 if eval "test \"\${$as_ac_var+set}\" = set"; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21293 cat >conftest.$ac_ext <<_ACEOF
21296 cat confdefs.h >>conftest.$ac_ext
21297 cat >>conftest.$ac_ext <<_ACEOF
21298 /* end confdefs.h. */
21299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21301 #define $ac_func innocuous_$ac_func
21303 /* System header to define __stub macros and hopefully few prototypes,
21304 which can conflict with char $ac_func (); below.
21305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21306 <limits.h> exists even on freestanding compilers. */
21309 # include <limits.h>
21311 # include <assert.h>
21316 /* Override any gcc2 internal prototype to avoid an error. */
21321 /* We use char because int might match the return type of a gcc2
21322 builtin and then its argument prototype would still apply. */
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21330 char (*f) () = $ac_func;
21339 return f != $ac_func;
21344 rm -f conftest.$ac_objext conftest$ac_exeext
21345 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21346 (eval $ac_link) 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21352 (exit $ac_status); } &&
21353 { ac_try='test -z "$ac_c_werror_flag"
21354 || test ! -s conftest.err'
21355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21356 (eval $ac_try) 2>&5
21358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21359 (exit $ac_status); }; } &&
21360 { ac_try='test -s conftest$ac_exeext'
21361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21362 (eval $ac_try) 2>&5
21364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21365 (exit $ac_status); }; }; then
21366 eval "$as_ac_var=yes"
21368 echo "$as_me: failed program was:" >&5
21369 sed 's/^/| /' conftest.$ac_ext >&5
21371 eval "$as_ac_var=no"
21373 rm -f conftest.err conftest.$ac_objext \
21374 conftest$ac_exeext conftest.$ac_ext
21376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21377 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21378 if test `eval echo '${'$as_ac_var'}'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21386 echo "$as_me:$LINENO: checking for time_t" >&5
21387 echo $ECHO_N "checking for time_t... $ECHO_C" >&6
21388 if test "${ac_cv_type_time_t+set}" = set; then
21389 echo $ECHO_N "(cached) $ECHO_C" >&6
21391 cat >conftest.$ac_ext <<_ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 $ac_includes_default
21403 if (sizeof (time_t))
21409 rm -f conftest.$ac_objext
21410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21411 (eval $ac_compile) 2>conftest.er1
21413 grep -v '^ *+' conftest.er1 >conftest.err
21415 cat conftest.err >&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); } &&
21418 { ac_try='test -z "$ac_c_werror_flag"
21419 || test ! -s conftest.err'
21420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21421 (eval $ac_try) 2>&5
21423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21424 (exit $ac_status); }; } &&
21425 { ac_try='test -s conftest.$ac_objext'
21426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21427 (eval $ac_try) 2>&5
21429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21430 (exit $ac_status); }; }; then
21431 ac_cv_type_time_t=yes
21433 echo "$as_me: failed program was:" >&5
21434 sed 's/^/| /' conftest.$ac_ext >&5
21436 ac_cv_type_time_t=no
21438 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21440 echo "$as_me:$LINENO: result: $ac_cv_type_time_t" >&5
21441 echo "${ECHO_T}$ac_cv_type_time_t" >&6
21443 echo "$as_me:$LINENO: checking size of time_t" >&5
21444 echo $ECHO_N "checking size of time_t... $ECHO_C" >&6
21445 if test "${ac_cv_sizeof_time_t+set}" = set; then
21446 echo $ECHO_N "(cached) $ECHO_C" >&6
21448 if test "$ac_cv_type_time_t" = yes; then
21449 # The cast to unsigned long works around a bug in the HP C Compiler
21450 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21451 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21452 # This bug is HP SR number 8606223364.
21453 if test "$cross_compiling" = yes; then
21454 # Depending upon the size, compute the lo and hi bounds.
21455 cat >conftest.$ac_ext <<_ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 $ac_includes_default
21465 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= 0)];
21472 rm -f conftest.$ac_objext
21473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21474 (eval $ac_compile) 2>conftest.er1
21476 grep -v '^ *+' conftest.er1 >conftest.err
21478 cat conftest.err >&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); } &&
21481 { ac_try='test -z "$ac_c_werror_flag"
21482 || test ! -s conftest.err'
21483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21484 (eval $ac_try) 2>&5
21486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21487 (exit $ac_status); }; } &&
21488 { ac_try='test -s conftest.$ac_objext'
21489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21490 (eval $ac_try) 2>&5
21492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493 (exit $ac_status); }; }; then
21496 cat >conftest.$ac_ext <<_ACEOF
21499 cat confdefs.h >>conftest.$ac_ext
21500 cat >>conftest.$ac_ext <<_ACEOF
21501 /* end confdefs.h. */
21502 $ac_includes_default
21506 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21513 rm -f conftest.$ac_objext
21514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21515 (eval $ac_compile) 2>conftest.er1
21517 grep -v '^ *+' conftest.er1 >conftest.err
21519 cat conftest.err >&5
21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21521 (exit $ac_status); } &&
21522 { ac_try='test -z "$ac_c_werror_flag"
21523 || test ! -s conftest.err'
21524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21525 (eval $ac_try) 2>&5
21527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21528 (exit $ac_status); }; } &&
21529 { ac_try='test -s conftest.$ac_objext'
21530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21531 (eval $ac_try) 2>&5
21533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21534 (exit $ac_status); }; }; then
21535 ac_hi=$ac_mid; break
21537 echo "$as_me: failed program was:" >&5
21538 sed 's/^/| /' conftest.$ac_ext >&5
21540 ac_lo=`expr $ac_mid + 1`
21541 if test $ac_lo -le $ac_mid; then
21545 ac_mid=`expr 2 '*' $ac_mid + 1`
21547 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21553 cat >conftest.$ac_ext <<_ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21563 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) < 0)];
21570 rm -f conftest.$ac_objext
21571 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21572 (eval $ac_compile) 2>conftest.er1
21574 grep -v '^ *+' conftest.er1 >conftest.err
21576 cat conftest.err >&5
21577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21578 (exit $ac_status); } &&
21579 { ac_try='test -z "$ac_c_werror_flag"
21580 || test ! -s conftest.err'
21581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21582 (eval $ac_try) 2>&5
21584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21585 (exit $ac_status); }; } &&
21586 { ac_try='test -s conftest.$ac_objext'
21587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21588 (eval $ac_try) 2>&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); }; }; then
21594 cat >conftest.$ac_ext <<_ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 $ac_includes_default
21604 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) >= $ac_mid)];
21611 rm -f conftest.$ac_objext
21612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21613 (eval $ac_compile) 2>conftest.er1
21615 grep -v '^ *+' conftest.er1 >conftest.err
21617 cat conftest.err >&5
21618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21619 (exit $ac_status); } &&
21620 { ac_try='test -z "$ac_c_werror_flag"
21621 || test ! -s conftest.err'
21622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21623 (eval $ac_try) 2>&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); }; } &&
21627 { ac_try='test -s conftest.$ac_objext'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; }; then
21633 ac_lo=$ac_mid; break
21635 echo "$as_me: failed program was:" >&5
21636 sed 's/^/| /' conftest.$ac_ext >&5
21638 ac_hi=`expr '(' $ac_mid ')' - 1`
21639 if test $ac_mid -le $ac_hi; then
21643 ac_mid=`expr 2 '*' $ac_mid`
21645 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21648 echo "$as_me: failed program was:" >&5
21649 sed 's/^/| /' conftest.$ac_ext >&5
21653 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21656 # Binary search between lo and hi bounds.
21657 while test "x$ac_lo" != "x$ac_hi"; do
21658 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 $ac_includes_default
21669 static int test_array [1 - 2 * !(((long) (sizeof (time_t))) <= $ac_mid)];
21676 rm -f conftest.$ac_objext
21677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21678 (eval $ac_compile) 2>conftest.er1
21680 grep -v '^ *+' conftest.er1 >conftest.err
21682 cat conftest.err >&5
21683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21684 (exit $ac_status); } &&
21685 { ac_try='test -z "$ac_c_werror_flag"
21686 || test ! -s conftest.err'
21687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21688 (eval $ac_try) 2>&5
21690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21691 (exit $ac_status); }; } &&
21692 { ac_try='test -s conftest.$ac_objext'
21693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21694 (eval $ac_try) 2>&5
21696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); }; }; then
21700 echo "$as_me: failed program was:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_lo=`expr '(' $ac_mid ')' + 1`
21705 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21708 ?*) ac_cv_sizeof_time_t=$ac_lo;;
21709 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21710 See \`config.log' for more details." >&5
21711 echo "$as_me: error: cannot compute sizeof (time_t), 77
21712 See \`config.log' for more details." >&2;}
21713 { (exit 1); exit 1; }; } ;;
21716 if test "$cross_compiling" = yes; then
21717 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21718 See \`config.log' for more details." >&5
21719 echo "$as_me: error: cannot run test program while cross compiling
21720 See \`config.log' for more details." >&2;}
21721 { (exit 1); exit 1; }; }
21723 cat >conftest.$ac_ext <<_ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729 $ac_includes_default
21730 long longval () { return (long) (sizeof (time_t)); }
21731 unsigned long ulongval () { return (long) (sizeof (time_t)); }
21733 #include <stdlib.h>
21738 FILE *f = fopen ("conftest.val", "w");
21741 if (((long) (sizeof (time_t))) < 0)
21743 long i = longval ();
21744 if (i != ((long) (sizeof (time_t))))
21746 fprintf (f, "%ld\n", i);
21750 unsigned long i = ulongval ();
21751 if (i != ((long) (sizeof (time_t))))
21753 fprintf (f, "%lu\n", i);
21755 exit (ferror (f) || fclose (f) != 0);
21761 rm -f conftest$ac_exeext
21762 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21763 (eval $ac_link) 2>&5
21765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21766 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21768 (eval $ac_try) 2>&5
21770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771 (exit $ac_status); }; }; then
21772 ac_cv_sizeof_time_t=`cat conftest.val`
21774 echo "$as_me: program exited with status $ac_status" >&5
21775 echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21778 ( exit $ac_status )
21779 { { echo "$as_me:$LINENO: error: cannot compute sizeof (time_t), 77
21780 See \`config.log' for more details." >&5
21781 echo "$as_me: error: cannot compute sizeof (time_t), 77
21782 See \`config.log' for more details." >&2;}
21783 { (exit 1); exit 1; }; }
21785 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21790 ac_cv_sizeof_time_t=0
21793 echo "$as_me:$LINENO: result: $ac_cv_sizeof_time_t" >&5
21794 echo "${ECHO_T}$ac_cv_sizeof_time_t" >&6
21795 cat >>confdefs.h <<_ACEOF
21796 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
21801 # checks for pthreads
21807 ac_cpp='$CPP $CPPFLAGS'
21808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21814 # We used to check for pthread.h first, but this fails if pthread.h
21815 # requires special compiler flags (e.g. on True64 or Sequent).
21816 # It gets checked for in the link test anyway.
21818 # First of all, check if the user has set any of the PTHREAD_LIBS,
21819 # etcetera environment variables, and if threads linking works using
21821 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21822 save_CFLAGS="$CFLAGS"
21823 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21825 LIBS="$PTHREAD_LIBS $LIBS"
21826 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21827 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21828 cat >conftest.$ac_ext <<_ACEOF
21831 cat confdefs.h >>conftest.$ac_ext
21832 cat >>conftest.$ac_ext <<_ACEOF
21833 /* end confdefs.h. */
21835 /* Override any gcc2 internal prototype to avoid an error. */
21839 /* We use char because int might match the return type of a gcc2
21840 builtin and then its argument prototype would still apply. */
21841 char pthread_join ();
21850 rm -f conftest.$ac_objext conftest$ac_exeext
21851 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21852 (eval $ac_link) 2>conftest.er1
21854 grep -v '^ *+' conftest.er1 >conftest.err
21856 cat conftest.err >&5
21857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21858 (exit $ac_status); } &&
21859 { ac_try='test -z "$ac_c_werror_flag"
21860 || test ! -s conftest.err'
21861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21862 (eval $ac_try) 2>&5
21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21865 (exit $ac_status); }; } &&
21866 { ac_try='test -s conftest$ac_exeext'
21867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21868 (eval $ac_try) 2>&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); }; }; then
21874 echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21878 rm -f conftest.err conftest.$ac_objext \
21879 conftest$ac_exeext conftest.$ac_ext
21880 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
21881 echo "${ECHO_T}$acx_pthread_ok" >&6
21882 if test x"$acx_pthread_ok" = xno; then
21887 CFLAGS="$save_CFLAGS"
21890 # We must check for the threads library under a number of different
21891 # names; the ordering is very important because some systems
21892 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
21893 # libraries is broken (non-POSIX).
21895 # Create a list of thread flags to try. Items starting with a "-" are
21896 # C compiler flags, and other items are library names, except for "none"
21897 # which indicates that we try without any flags at all, and "pthread-config"
21898 # which is a program returning the flags for the Pth emulation library.
21900 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
21902 # The ordering *is* (sometimes) important. Some notes on the
21903 # individual items follow:
21905 # pthreads: AIX (must check this before -lpthread)
21906 # none: in case threads are in libc; should be tried before -Kthread and
21907 # other compiler flags to prevent continual compiler warnings
21908 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
21909 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
21910 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
21911 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
21912 # -pthreads: Solaris/gcc
21913 # -mthreads: Mingw32/gcc, Lynx/gcc
21914 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
21915 # doesn't hurt to check since this sometimes defines pthreads too;
21916 # also defines -D_REENTRANT)
21917 # ... -mt is also the pthreads flag for HP/aCC
21918 # pthread: Linux, etcetera
21919 # --thread-safe: KAI C++
21920 # pthread-config: use pthread-config program (for GNU Pth library)
21922 case "${host_cpu}-${host_os}" in
21925 # On Solaris (at least, for some versions), libc contains stubbed
21926 # (non-functional) versions of the pthreads routines, so link-based
21927 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
21928 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
21929 # a function called by this macro, so we could check for that, but
21930 # who knows whether they'll stub that too in a future libc.) So,
21931 # we'll just look for -pthreads and -lpthread first:
21933 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
21937 if test x"$acx_pthread_ok" = xno; then
21938 for flag in $acx_pthread_flags; do
21942 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
21943 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
21947 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
21948 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
21949 PTHREAD_CFLAGS="$flag"
21953 # Extract the first word of "pthread-config", so it can be a program name with args.
21954 set dummy pthread-config; ac_word=$2
21955 echo "$as_me:$LINENO: checking for $ac_word" >&5
21956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21957 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
21958 echo $ECHO_N "(cached) $ECHO_C" >&6
21960 if test -n "$acx_pthread_config"; then
21961 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
21963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21964 for as_dir in $PATH
21967 test -z "$as_dir" && as_dir=.
21968 for ac_exec_ext in '' $ac_executable_extensions; do
21969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21970 ac_cv_prog_acx_pthread_config="yes"
21971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21977 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
21980 acx_pthread_config=$ac_cv_prog_acx_pthread_config
21981 if test -n "$acx_pthread_config"; then
21982 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
21983 echo "${ECHO_T}$acx_pthread_config" >&6
21985 echo "$as_me:$LINENO: result: no" >&5
21986 echo "${ECHO_T}no" >&6
21989 if test x"$acx_pthread_config" = xno; then continue; fi
21990 PTHREAD_CFLAGS="`pthread-config --cflags`"
21991 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
21995 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
21996 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
21997 PTHREAD_LIBS="-l$flag"
22002 save_CFLAGS="$CFLAGS"
22003 LIBS="$PTHREAD_LIBS $LIBS"
22004 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22006 # Check for various functions. We must include pthread.h,
22007 # since some functions may be macros. (On the Sequent, we
22008 # need a special flag -Kthread to make this header compile.)
22009 # We check for pthread_join because it is in -lpthread on IRIX
22010 # while pthread_create is in libc. We check for pthread_attr_init
22011 # due to DEC craziness with -lpthreads. We check for
22012 # pthread_cleanup_push because it is one of the few pthread
22013 # functions on Solaris that doesn't have a non-functional libc stub.
22014 # We try pthread_create on general principles.
22015 cat >conftest.$ac_ext <<_ACEOF
22018 cat confdefs.h >>conftest.$ac_ext
22019 cat >>conftest.$ac_ext <<_ACEOF
22020 /* end confdefs.h. */
22021 #include <pthread.h>
22025 pthread_t th; pthread_join(th, 0);
22026 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22027 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22032 rm -f conftest.$ac_objext conftest$ac_exeext
22033 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22034 (eval $ac_link) 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); } &&
22041 { ac_try='test -z "$ac_c_werror_flag"
22042 || test ! -s conftest.err'
22043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22044 (eval $ac_try) 2>&5
22046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22047 (exit $ac_status); }; } &&
22048 { ac_try='test -s conftest$ac_exeext'
22049 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22050 (eval $ac_try) 2>&5
22052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22053 (exit $ac_status); }; }; then
22056 echo "$as_me: failed program was:" >&5
22057 sed 's/^/| /' conftest.$ac_ext >&5
22060 rm -f conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
22064 CFLAGS="$save_CFLAGS"
22066 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22067 echo "${ECHO_T}$acx_pthread_ok" >&6
22068 if test "x$acx_pthread_ok" = xyes; then
22077 # Various other checks:
22078 if test "x$acx_pthread_ok" = xyes; then
22080 LIBS="$PTHREAD_LIBS $LIBS"
22081 save_CFLAGS="$CFLAGS"
22082 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22084 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22085 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22086 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22088 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22089 cat >conftest.$ac_ext <<_ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 #include <pthread.h>
22099 int attr=$attr; return attr;
22104 rm -f conftest.$ac_objext conftest$ac_exeext
22105 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22106 (eval $ac_link) 2>conftest.er1
22108 grep -v '^ *+' conftest.er1 >conftest.err
22110 cat conftest.err >&5
22111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22112 (exit $ac_status); } &&
22113 { ac_try='test -z "$ac_c_werror_flag"
22114 || test ! -s conftest.err'
22115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22116 (eval $ac_try) 2>&5
22118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22119 (exit $ac_status); }; } &&
22120 { ac_try='test -s conftest$ac_exeext'
22121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22122 (eval $ac_try) 2>&5
22124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22125 (exit $ac_status); }; }; then
22126 attr_name=$attr; break
22128 echo "$as_me: failed program was:" >&5
22129 sed 's/^/| /' conftest.$ac_ext >&5
22132 rm -f conftest.err conftest.$ac_objext \
22133 conftest$ac_exeext conftest.$ac_ext
22135 echo "$as_me:$LINENO: result: $attr_name" >&5
22136 echo "${ECHO_T}$attr_name" >&6
22137 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22139 cat >>confdefs.h <<_ACEOF
22140 #define PTHREAD_CREATE_JOINABLE $attr_name
22145 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22146 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22148 case "${host_cpu}-${host_os}" in
22149 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22150 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22152 if test "$GCC" = "yes"; then
22153 flag="-D_REENTRANT"
22155 flag="-mt -D_REENTRANT"
22159 echo "$as_me:$LINENO: result: ${flag}" >&5
22160 echo "${ECHO_T}${flag}" >&6
22161 if test "x$flag" != xno; then
22162 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22166 CFLAGS="$save_CFLAGS"
22168 # More AIX lossage: must compile with xlc_r or cc_r
22169 if test x"$GCC" != xyes; then
22170 for ac_prog in xlc_r cc_r
22172 # Extract the first word of "$ac_prog", so it can be a program name with args.
22173 set dummy $ac_prog; ac_word=$2
22174 echo "$as_me:$LINENO: checking for $ac_word" >&5
22175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22176 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22177 echo $ECHO_N "(cached) $ECHO_C" >&6
22179 if test -n "$PTHREAD_CC"; then
22180 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22183 for as_dir in $PATH
22186 test -z "$as_dir" && as_dir=.
22187 for ac_exec_ext in '' $ac_executable_extensions; do
22188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22189 ac_cv_prog_PTHREAD_CC="$ac_prog"
22190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22198 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22199 if test -n "$PTHREAD_CC"; then
22200 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22201 echo "${ECHO_T}$PTHREAD_CC" >&6
22203 echo "$as_me:$LINENO: result: no" >&5
22204 echo "${ECHO_T}no" >&6
22207 test -n "$PTHREAD_CC" && break
22209 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22222 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22223 if test x"$acx_pthread_ok" = xyes; then
22224 enable_threads="pthread"
22228 enable_threads="no"
22231 ac_cpp='$CPP $CPPFLAGS'
22232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22237 if test $enable_threads != "pthread"; then
22238 { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22239 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22240 { (exit 1); exit 1; }; }
22243 cat >>confdefs.h <<\_ACEOF
22244 #define HAVE_PTHREAD 1
22247 LIBS="$PTHREAD_LIBS $LIBS"
22248 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22249 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22254 # Check whether --with-zlib or --without-zlib was given.
22255 if test "${with_zlib+set}" = set; then
22256 withval="$with_zlib"
22258 if test -d "$withval"; then
22259 CPPFLAGS="${CPPFLAGS} -I$withval/include"
22260 LDFLAGS="${LDFLAGS} -L$withval/lib"
22265 if test "${ac_cv_header_zlib_h+set}" = set; then
22266 echo "$as_me:$LINENO: checking for zlib.h" >&5
22267 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22268 if test "${ac_cv_header_zlib_h+set}" = set; then
22269 echo $ECHO_N "(cached) $ECHO_C" >&6
22271 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22272 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22274 # Is the header compilable?
22275 echo "$as_me:$LINENO: checking zlib.h usability" >&5
22276 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
22277 cat >conftest.$ac_ext <<_ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h. */
22283 $ac_includes_default
22286 rm -f conftest.$ac_objext
22287 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22288 (eval $ac_compile) 2>conftest.er1
22290 grep -v '^ *+' conftest.er1 >conftest.err
22292 cat conftest.err >&5
22293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22294 (exit $ac_status); } &&
22295 { ac_try='test -z "$ac_c_werror_flag"
22296 || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_header_compiler=yes
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22313 ac_header_compiler=no
22315 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22316 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22317 echo "${ECHO_T}$ac_header_compiler" >&6
22319 # Is the header present?
22320 echo "$as_me:$LINENO: checking zlib.h presence" >&5
22321 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
22322 cat >conftest.$ac_ext <<_ACEOF
22325 cat confdefs.h >>conftest.$ac_ext
22326 cat >>conftest.$ac_ext <<_ACEOF
22327 /* end confdefs.h. */
22330 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22331 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22333 grep -v '^ *+' conftest.er1 >conftest.err
22335 cat conftest.err >&5
22336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22337 (exit $ac_status); } >/dev/null; then
22338 if test -s conftest.err; then
22339 ac_cpp_err=$ac_c_preproc_warn_flag
22340 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22347 if test -z "$ac_cpp_err"; then
22348 ac_header_preproc=yes
22350 echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22353 ac_header_preproc=no
22355 rm -f conftest.err conftest.$ac_ext
22356 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22357 echo "${ECHO_T}$ac_header_preproc" >&6
22359 # So? What about this header?
22360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22362 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
22363 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22364 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
22365 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
22366 ac_header_preproc=yes
22369 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
22370 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
22372 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
22374 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
22376 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
22377 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
22378 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
22379 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
22380 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
22383 ## ------------------------------------------------ ##
22384 ## Report this to mace-opensaml-users@internet2.edu ##
22385 ## ------------------------------------------------ ##
22388 sed "s/^/$as_me: WARNING: /" >&2
22391 echo "$as_me:$LINENO: checking for zlib.h" >&5
22392 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
22393 if test "${ac_cv_header_zlib_h+set}" = set; then
22394 echo $ECHO_N "(cached) $ECHO_C" >&6
22396 ac_cv_header_zlib_h=$ac_header_preproc
22398 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
22399 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
22402 if test $ac_cv_header_zlib_h = yes; then
22405 { { echo "$as_me:$LINENO: error: unable to find zlib header files" >&5
22406 echo "$as_me: error: unable to find zlib header files" >&2;}
22407 { (exit 1); exit 1; }; }
22412 echo "$as_me:$LINENO: checking for deflateInit2_ in -lz" >&5
22413 echo $ECHO_N "checking for deflateInit2_ in -lz... $ECHO_C" >&6
22414 if test "${ac_cv_lib_z_deflateInit2_+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22417 ac_check_lib_save_LIBS=$LIBS
22419 cat >conftest.$ac_ext <<_ACEOF
22422 cat confdefs.h >>conftest.$ac_ext
22423 cat >>conftest.$ac_ext <<_ACEOF
22424 /* end confdefs.h. */
22426 /* Override any gcc2 internal prototype to avoid an error. */
22430 /* We use char because int might match the return type of a gcc2
22431 builtin and then its argument prototype would still apply. */
22432 char deflateInit2_ ();
22441 rm -f conftest.$ac_objext conftest$ac_exeext
22442 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22443 (eval $ac_link) 2>conftest.er1
22445 grep -v '^ *+' conftest.er1 >conftest.err
22447 cat conftest.err >&5
22448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22449 (exit $ac_status); } &&
22450 { ac_try='test -z "$ac_c_werror_flag"
22451 || test ! -s conftest.err'
22452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22453 (eval $ac_try) 2>&5
22455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22456 (exit $ac_status); }; } &&
22457 { ac_try='test -s conftest$ac_exeext'
22458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22459 (eval $ac_try) 2>&5
22461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22462 (exit $ac_status); }; }; then
22463 ac_cv_lib_z_deflateInit2_=yes
22465 echo "$as_me: failed program was:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ac_cv_lib_z_deflateInit2_=no
22470 rm -f conftest.err conftest.$ac_objext \
22471 conftest$ac_exeext conftest.$ac_ext
22472 LIBS=$ac_check_lib_save_LIBS
22474 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflateInit2_" >&5
22475 echo "${ECHO_T}$ac_cv_lib_z_deflateInit2_" >&6
22476 if test $ac_cv_lib_z_deflateInit2_ = yes; then
22477 cat >>confdefs.h <<_ACEOF
22478 #define HAVE_LIBZ 1
22484 { { echo "$as_me:$LINENO: error: unable to link with zlib library" >&5
22485 echo "$as_me: error: unable to link with zlib library" >&2;}
22486 { (exit 1); exit 1; }; }
22492 # Check whether --with-openssl or --without-openssl was given.
22493 if test "${with_openssl+set}" = set; then
22494 withval="$with_openssl"
22495 if test x_$with_openssl != x_/usr; then
22496 SSLFLAGS="-I${with_openssl}/include"
22500 if test "x$SSLFLAGS" = "x" ; then
22501 # Extract the first word of "pkg-config", so it can be a program name with args.
22502 set dummy pkg-config; ac_word=$2
22503 echo "$as_me:$LINENO: checking for $ac_word" >&5
22504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22505 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22506 echo $ECHO_N "(cached) $ECHO_C" >&6
22508 case $PKG_CONFIG in
22510 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514 for as_dir in $PATH
22517 test -z "$as_dir" && as_dir=.
22518 for ac_exec_ext in '' $ac_executable_extensions; do
22519 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22520 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22530 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22532 if test -n "$PKG_CONFIG"; then
22533 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22534 echo "${ECHO_T}$PKG_CONFIG" >&6
22536 echo "$as_me:$LINENO: result: no" >&5
22537 echo "${ECHO_T}no" >&6
22540 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22541 if pkg-config openssl ; then
22542 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22544 { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22545 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22546 { (exit 1); exit 1; }; }
22551 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22552 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22553 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22554 echo "${ECHO_T}$SSLFLAGS" >&6
22555 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22557 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22558 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22559 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22560 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22561 echo $ECHO_N "(cached) $ECHO_C" >&6
22563 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22564 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22566 # Is the header compilable?
22567 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22568 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 $ac_includes_default
22576 #include <openssl/x509.h>
22578 rm -f conftest.$ac_objext
22579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22580 (eval $ac_compile) 2>conftest.er1
22582 grep -v '^ *+' conftest.er1 >conftest.err
22584 cat conftest.err >&5
22585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22586 (exit $ac_status); } &&
22587 { ac_try='test -z "$ac_c_werror_flag"
22588 || test ! -s conftest.err'
22589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22590 (eval $ac_try) 2>&5
22592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22593 (exit $ac_status); }; } &&
22594 { ac_try='test -s conftest.$ac_objext'
22595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22596 (eval $ac_try) 2>&5
22598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22599 (exit $ac_status); }; }; then
22600 ac_header_compiler=yes
22602 echo "$as_me: failed program was:" >&5
22603 sed 's/^/| /' conftest.$ac_ext >&5
22605 ac_header_compiler=no
22607 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22608 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22609 echo "${ECHO_T}$ac_header_compiler" >&6
22611 # Is the header present?
22612 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22613 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22614 cat >conftest.$ac_ext <<_ACEOF
22617 cat confdefs.h >>conftest.$ac_ext
22618 cat >>conftest.$ac_ext <<_ACEOF
22619 /* end confdefs.h. */
22620 #include <openssl/x509.h>
22622 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22623 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22625 grep -v '^ *+' conftest.er1 >conftest.err
22627 cat conftest.err >&5
22628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22629 (exit $ac_status); } >/dev/null; then
22630 if test -s conftest.err; then
22631 ac_cpp_err=$ac_c_preproc_warn_flag
22632 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22639 if test -z "$ac_cpp_err"; then
22640 ac_header_preproc=yes
22642 echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22645 ac_header_preproc=no
22647 rm -f conftest.err conftest.$ac_ext
22648 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22649 echo "${ECHO_T}$ac_header_preproc" >&6
22651 # So? What about this header?
22652 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22654 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22655 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22656 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22657 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22658 ac_header_preproc=yes
22661 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22662 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22663 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&5
22664 echo "$as_me: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&2;}
22665 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22666 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22667 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&5
22668 echo "$as_me: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&2;}
22669 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22670 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22671 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22672 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22675 ## ------------------------------------------------ ##
22676 ## Report this to mace-opensaml-users@internet2.edu ##
22677 ## ------------------------------------------------ ##
22680 sed "s/^/$as_me: WARNING: /" >&2
22683 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22684 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22685 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22686 echo $ECHO_N "(cached) $ECHO_C" >&6
22688 ac_cv_header_openssl_x509_h=$ac_header_preproc
22690 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22691 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22694 if test $ac_cv_header_openssl_x509_h = yes; then
22697 { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22698 echo "$as_me: error: unable to find openssl header files" >&2;}
22699 { (exit 1); exit 1; }; }
22705 ac_cpp='$CXXCPP $CPPFLAGS'
22706 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22707 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22708 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22712 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22713 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22714 if test "${ac_cv_cxx_namespaces+set}" = set; then
22715 echo $ECHO_N "(cached) $ECHO_C" >&6
22720 ac_cpp='$CXXCPP $CPPFLAGS'
22721 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22722 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22723 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 namespace Outer { namespace Inner { int i = 0; }}
22735 using namespace Outer::Inner; return i;
22740 rm -f conftest.$ac_objext
22741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22742 (eval $ac_compile) 2>conftest.er1
22744 grep -v '^ *+' conftest.er1 >conftest.err
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22748 (exit $ac_status); } &&
22749 { ac_try='test -z "$ac_cxx_werror_flag"
22750 || test ! -s conftest.err'
22751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22752 (eval $ac_try) 2>&5
22754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22755 (exit $ac_status); }; } &&
22756 { ac_try='test -s conftest.$ac_objext'
22757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22758 (eval $ac_try) 2>&5
22760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22761 (exit $ac_status); }; }; then
22762 ac_cv_cxx_namespaces=yes
22764 echo "$as_me: failed program was:" >&5
22765 sed 's/^/| /' conftest.$ac_ext >&5
22767 ac_cv_cxx_namespaces=no
22769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22771 ac_cpp='$CXXCPP $CPPFLAGS'
22772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22778 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22779 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22780 if test "$ac_cv_cxx_namespaces" = yes; then
22782 cat >>confdefs.h <<\_ACEOF
22783 #define HAVE_NAMESPACES 1
22788 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22789 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22790 if test "${ac_cv_cxx_have_stl+set}" = set; then
22791 echo $ECHO_N "(cached) $ECHO_C" >&6
22797 ac_cpp='$CXXCPP $CPPFLAGS'
22798 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22799 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22800 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22802 cat >conftest.$ac_ext <<_ACEOF
22805 cat confdefs.h >>conftest.$ac_ext
22806 cat >>conftest.$ac_ext <<_ACEOF
22807 /* end confdefs.h. */
22810 #ifdef HAVE_NAMESPACES
22811 using namespace std;
22816 list<int> x; x.push_back(5);
22817 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22822 rm -f conftest.$ac_objext
22823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22824 (eval $ac_compile) 2>conftest.er1
22826 grep -v '^ *+' conftest.er1 >conftest.err
22828 cat conftest.err >&5
22829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22830 (exit $ac_status); } &&
22831 { ac_try='test -z "$ac_cxx_werror_flag"
22832 || test ! -s conftest.err'
22833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22834 (eval $ac_try) 2>&5
22836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22837 (exit $ac_status); }; } &&
22838 { ac_try='test -s conftest.$ac_objext'
22839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22840 (eval $ac_try) 2>&5
22842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); }; }; then
22844 ac_cv_cxx_have_stl=yes
22846 echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22849 ac_cv_cxx_have_stl=no
22851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22853 ac_cpp='$CXXCPP $CPPFLAGS'
22854 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22855 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22856 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22860 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22861 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22862 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22863 { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22864 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22865 { (exit 1); exit 1; }; }
22868 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22869 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22870 if test "${ac_cv_cxx_namespaces+set}" = set; then
22871 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 ac_cpp='$CXXCPP $CPPFLAGS'
22877 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22878 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22879 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 namespace Outer { namespace Inner { int i = 0; }}
22891 using namespace Outer::Inner; return i;
22896 rm -f conftest.$ac_objext
22897 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22898 (eval $ac_compile) 2>conftest.er1
22900 grep -v '^ *+' conftest.er1 >conftest.err
22902 cat conftest.err >&5
22903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904 (exit $ac_status); } &&
22905 { ac_try='test -z "$ac_cxx_werror_flag"
22906 || test ! -s conftest.err'
22907 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22908 (eval $ac_try) 2>&5
22910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22911 (exit $ac_status); }; } &&
22912 { ac_try='test -s conftest.$ac_objext'
22913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22914 (eval $ac_try) 2>&5
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_cxx_namespaces=yes
22920 echo "$as_me: failed program was:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_cv_cxx_namespaces=no
22925 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22927 ac_cpp='$CXXCPP $CPPFLAGS'
22928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22934 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22935 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22936 if test "$ac_cv_cxx_namespaces" = yes; then
22938 cat >>confdefs.h <<\_ACEOF
22939 #define HAVE_NAMESPACES 1
22945 # log4shib settings (favor this version over the log4cpp code)
22946 # Extract the first word of "log4shib-config", so it can be a program name with args.
22947 set dummy log4shib-config; ac_word=$2
22948 echo "$as_me:$LINENO: checking for $ac_word" >&5
22949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22950 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22951 echo $ECHO_N "(cached) $ECHO_C" >&6
22953 case $LOG4SHIB_CONFIG in
22955 ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22959 for as_dir in $PATH
22962 test -z "$as_dir" && as_dir=.
22963 for ac_exec_ext in '' $ac_executable_extensions; do
22964 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22965 ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22966 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22975 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
22977 if test -n "$LOG4SHIB_CONFIG"; then
22978 echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
22979 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
22981 echo "$as_me:$LINENO: result: no" >&5
22982 echo "${ECHO_T}no" >&6
22986 # Check whether --with-log4shib or --without-log4shib was given.
22987 if test "${with_log4shib+set}" = set; then
22988 withval="$with_log4shib"
22990 LOG4SHIB_CONFIG="${with_log4shib}"
22991 if ! test -f "${LOG4SHIB_CONFIG}" ; then
22992 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
22996 if test -f "${LOG4SHIB_CONFIG}"; then
22997 LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
22998 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23000 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23001 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23002 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23003 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23004 echo $ECHO_N "(cached) $ECHO_C" >&6
23006 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23007 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23009 # Is the header compilable?
23010 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23011 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23012 cat >conftest.$ac_ext <<_ACEOF
23015 cat confdefs.h >>conftest.$ac_ext
23016 cat >>conftest.$ac_ext <<_ACEOF
23017 /* end confdefs.h. */
23018 $ac_includes_default
23019 #include <log4shib/CategoryStream.hh>
23021 rm -f conftest.$ac_objext
23022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23023 (eval $ac_compile) 2>conftest.er1
23025 grep -v '^ *+' conftest.er1 >conftest.err
23027 cat conftest.err >&5
23028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23029 (exit $ac_status); } &&
23030 { ac_try='test -z "$ac_cxx_werror_flag"
23031 || test ! -s conftest.err'
23032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23033 (eval $ac_try) 2>&5
23035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23036 (exit $ac_status); }; } &&
23037 { ac_try='test -s conftest.$ac_objext'
23038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23039 (eval $ac_try) 2>&5
23041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23042 (exit $ac_status); }; }; then
23043 ac_header_compiler=yes
23045 echo "$as_me: failed program was:" >&5
23046 sed 's/^/| /' conftest.$ac_ext >&5
23048 ac_header_compiler=no
23050 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23051 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23052 echo "${ECHO_T}$ac_header_compiler" >&6
23054 # Is the header present?
23055 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23056 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23057 cat >conftest.$ac_ext <<_ACEOF
23060 cat confdefs.h >>conftest.$ac_ext
23061 cat >>conftest.$ac_ext <<_ACEOF
23062 /* end confdefs.h. */
23063 #include <log4shib/CategoryStream.hh>
23065 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23066 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23068 grep -v '^ *+' conftest.er1 >conftest.err
23070 cat conftest.err >&5
23071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23072 (exit $ac_status); } >/dev/null; then
23073 if test -s conftest.err; then
23074 ac_cpp_err=$ac_cxx_preproc_warn_flag
23075 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23082 if test -z "$ac_cpp_err"; then
23083 ac_header_preproc=yes
23085 echo "$as_me: failed program was:" >&5
23086 sed 's/^/| /' conftest.$ac_ext >&5
23088 ac_header_preproc=no
23090 rm -f conftest.err conftest.$ac_ext
23091 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23092 echo "${ECHO_T}$ac_header_preproc" >&6
23094 # So? What about this header?
23095 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23097 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23098 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23099 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23100 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23101 ac_header_preproc=yes
23104 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23105 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23106 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&5
23107 echo "$as_me: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23108 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23109 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23110 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23111 echo "$as_me: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23113 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23114 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23115 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23118 ## ------------------------------------------------ ##
23119 ## Report this to mace-opensaml-users@internet2.edu ##
23120 ## ------------------------------------------------ ##
23123 sed "s/^/$as_me: WARNING: /" >&2
23126 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23127 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23128 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23131 ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23133 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23134 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23137 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23140 { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23141 echo "$as_me: error: unable to find log4shib header files" >&2;}
23142 { (exit 1); exit 1; }; }
23146 cat >conftest.$ac_ext <<_ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 #include <log4shib/Category.hh>
23153 #include <log4shib/CategoryStream.hh>
23157 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23162 rm -f conftest.$ac_objext conftest$ac_exeext
23163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23164 (eval $ac_link) 2>conftest.er1
23166 grep -v '^ *+' conftest.er1 >conftest.err
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } &&
23171 { ac_try='test -z "$ac_cxx_werror_flag"
23172 || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest$ac_exeext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23185 cat >>confdefs.h <<\_ACEOF
23186 #define OPENSAML_LOG4SHIB 1
23190 echo "$as_me: failed program was:" >&5
23191 sed 's/^/| /' conftest.$ac_ext >&5
23193 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23194 echo "$as_me: error: unable to link with log4shib" >&2;}
23195 { (exit 1); exit 1; }; }
23197 rm -f conftest.err conftest.$ac_objext \
23198 conftest$ac_exeext conftest.$ac_ext
23200 { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23201 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23202 { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23203 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23206 # Extract the first word of "log4cpp-config", so it can be a program name with args.
23207 set dummy log4cpp-config; ac_word=$2
23208 echo "$as_me:$LINENO: checking for $ac_word" >&5
23209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23210 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23211 echo $ECHO_N "(cached) $ECHO_C" >&6
23213 case $LOG4CPP_CONFIG in
23215 ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23219 for as_dir in $PATH
23222 test -z "$as_dir" && as_dir=.
23223 for ac_exec_ext in '' $ac_executable_extensions; do
23224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23225 ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23235 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23237 if test -n "$LOG4CPP_CONFIG"; then
23238 echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23239 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23241 echo "$as_me:$LINENO: result: no" >&5
23242 echo "${ECHO_T}no" >&6
23246 # Check whether --with-log4cpp or --without-log4cpp was given.
23247 if test "${with_log4cpp+set}" = set; then
23248 withval="$with_log4cpp"
23250 LOG4CPP_CONFIG="${with_log4cpp}"
23251 if ! test -f "${LOG4CPP_CONFIG}" ; then
23252 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23256 if test -f "${LOG4CPP_CONFIG}"; then
23257 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23258 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23259 LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23260 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23261 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23262 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23263 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23264 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23265 echo $ECHO_N "(cached) $ECHO_C" >&6
23267 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23268 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23270 # Is the header compilable?
23271 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23272 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23273 cat >conftest.$ac_ext <<_ACEOF
23276 cat confdefs.h >>conftest.$ac_ext
23277 cat >>conftest.$ac_ext <<_ACEOF
23278 /* end confdefs.h. */
23279 $ac_includes_default
23280 #include <log4cpp/CategoryStream.hh>
23282 rm -f conftest.$ac_objext
23283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23284 (eval $ac_compile) 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); } &&
23291 { ac_try='test -z "$ac_cxx_werror_flag"
23292 || test ! -s conftest.err'
23293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23294 (eval $ac_try) 2>&5
23296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23297 (exit $ac_status); }; } &&
23298 { ac_try='test -s conftest.$ac_objext'
23299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23300 (eval $ac_try) 2>&5
23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23303 (exit $ac_status); }; }; then
23304 ac_header_compiler=yes
23306 echo "$as_me: failed program was:" >&5
23307 sed 's/^/| /' conftest.$ac_ext >&5
23309 ac_header_compiler=no
23311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23312 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23313 echo "${ECHO_T}$ac_header_compiler" >&6
23315 # Is the header present?
23316 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23317 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23318 cat >conftest.$ac_ext <<_ACEOF
23321 cat confdefs.h >>conftest.$ac_ext
23322 cat >>conftest.$ac_ext <<_ACEOF
23323 /* end confdefs.h. */
23324 #include <log4cpp/CategoryStream.hh>
23326 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23327 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23329 grep -v '^ *+' conftest.er1 >conftest.err
23331 cat conftest.err >&5
23332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23333 (exit $ac_status); } >/dev/null; then
23334 if test -s conftest.err; then
23335 ac_cpp_err=$ac_cxx_preproc_warn_flag
23336 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23343 if test -z "$ac_cpp_err"; then
23344 ac_header_preproc=yes
23346 echo "$as_me: failed program was:" >&5
23347 sed 's/^/| /' conftest.$ac_ext >&5
23349 ac_header_preproc=no
23351 rm -f conftest.err conftest.$ac_ext
23352 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23353 echo "${ECHO_T}$ac_header_preproc" >&6
23355 # So? What about this header?
23356 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23358 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23359 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23360 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23361 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23362 ac_header_preproc=yes
23365 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23366 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23367 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&5
23368 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23369 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23370 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23371 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23372 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23373 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23374 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23375 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23376 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23379 ## ------------------------------------------------ ##
23380 ## Report this to mace-opensaml-users@internet2.edu ##
23381 ## ------------------------------------------------ ##
23384 sed "s/^/$as_me: WARNING: /" >&2
23387 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23388 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23389 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23394 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23395 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23398 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23401 { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23402 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23403 { (exit 1); exit 1; }; }
23407 cat >conftest.$ac_ext <<_ACEOF
23410 cat confdefs.h >>conftest.$ac_ext
23411 cat >>conftest.$ac_ext <<_ACEOF
23412 /* end confdefs.h. */
23413 #include <log4cpp/Category.hh>
23414 #include <log4cpp/CategoryStream.hh>
23418 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23423 rm -f conftest.$ac_objext conftest$ac_exeext
23424 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23425 (eval $ac_link) 2>conftest.er1
23427 grep -v '^ *+' conftest.er1 >conftest.err
23429 cat conftest.err >&5
23430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23431 (exit $ac_status); } &&
23432 { ac_try='test -z "$ac_cxx_werror_flag"
23433 || test ! -s conftest.err'
23434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23435 (eval $ac_try) 2>&5
23437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23438 (exit $ac_status); }; } &&
23439 { ac_try='test -s conftest$ac_exeext'
23440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23441 (eval $ac_try) 2>&5
23443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23444 (exit $ac_status); }; }; then
23446 cat >>confdefs.h <<\_ACEOF
23447 #define OPENSAML_LOG4CPP 1
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23454 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23455 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23456 { (exit 1); exit 1; }; }
23458 rm -f conftest.err conftest.$ac_objext \
23459 conftest$ac_exeext conftest.$ac_ext
23461 { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23462 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23463 { (exit 1); exit 1; }; }
23469 # Check whether --with-xerces or --without-xerces was given.
23470 if test "${with_xerces+set}" = set; then
23471 withval="$with_xerces"
23472 if test x_$with_xerces != x_/usr; then
23473 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23474 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23477 LIBS="-lxerces-c $LIBS"
23478 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23479 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23480 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23481 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23482 echo $ECHO_N "(cached) $ECHO_C" >&6
23484 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23485 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23487 # Is the header compilable?
23488 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23489 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23490 cat >conftest.$ac_ext <<_ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 $ac_includes_default
23497 #include <xercesc/dom/DOM.hpp>
23499 rm -f conftest.$ac_objext
23500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23501 (eval $ac_compile) 2>conftest.er1
23503 grep -v '^ *+' conftest.er1 >conftest.err
23505 cat conftest.err >&5
23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23507 (exit $ac_status); } &&
23508 { ac_try='test -z "$ac_cxx_werror_flag"
23509 || test ! -s conftest.err'
23510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23511 (eval $ac_try) 2>&5
23513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23514 (exit $ac_status); }; } &&
23515 { ac_try='test -s conftest.$ac_objext'
23516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23517 (eval $ac_try) 2>&5
23519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23520 (exit $ac_status); }; }; then
23521 ac_header_compiler=yes
23523 echo "$as_me: failed program was:" >&5
23524 sed 's/^/| /' conftest.$ac_ext >&5
23526 ac_header_compiler=no
23528 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23529 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23530 echo "${ECHO_T}$ac_header_compiler" >&6
23532 # Is the header present?
23533 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23534 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23535 cat >conftest.$ac_ext <<_ACEOF
23538 cat confdefs.h >>conftest.$ac_ext
23539 cat >>conftest.$ac_ext <<_ACEOF
23540 /* end confdefs.h. */
23541 #include <xercesc/dom/DOM.hpp>
23543 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23544 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23546 grep -v '^ *+' conftest.er1 >conftest.err
23548 cat conftest.err >&5
23549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550 (exit $ac_status); } >/dev/null; then
23551 if test -s conftest.err; then
23552 ac_cpp_err=$ac_cxx_preproc_warn_flag
23553 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23560 if test -z "$ac_cpp_err"; then
23561 ac_header_preproc=yes
23563 echo "$as_me: failed program was:" >&5
23564 sed 's/^/| /' conftest.$ac_ext >&5
23566 ac_header_preproc=no
23568 rm -f conftest.err conftest.$ac_ext
23569 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23570 echo "${ECHO_T}$ac_header_preproc" >&6
23572 # So? What about this header?
23573 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23575 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23576 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23577 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23578 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23579 ac_header_preproc=yes
23582 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23583 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23584 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&5
23585 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&2;}
23586 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23587 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23588 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&5
23589 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
23590 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23591 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23592 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23593 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23596 ## ------------------------------------------------ ##
23597 ## Report this to mace-opensaml-users@internet2.edu ##
23598 ## ------------------------------------------------ ##
23601 sed "s/^/$as_me: WARNING: /" >&2
23604 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23605 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23606 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23607 echo $ECHO_N "(cached) $ECHO_C" >&6
23609 ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23611 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23612 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23615 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23618 { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23619 echo "$as_me: error: unable to find xerces header files" >&2;}
23620 { (exit 1); exit 1; }; }
23624 echo "$as_me:$LINENO: checking Xerces version" >&5
23625 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23626 cat >conftest.$ac_ext <<_ACEOF
23629 cat confdefs.h >>conftest.$ac_ext
23630 cat >>conftest.$ac_ext <<_ACEOF
23631 /* end confdefs.h. */
23632 #include <xercesc/util/XercesVersion.hpp>
23636 #if _XERCES_VERSION != 20600
23639 #error cannot use version 2.6.0
23645 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23646 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23648 grep -v '^ *+' conftest.er1 >conftest.err
23650 cat conftest.err >&5
23651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23652 (exit $ac_status); } >/dev/null; then
23653 if test -s conftest.err; then
23654 ac_cpp_err=$ac_cxx_preproc_warn_flag
23655 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23662 if test -z "$ac_cpp_err"; then
23663 echo "$as_me:$LINENO: result: OK" >&5
23664 echo "${ECHO_T}OK" >&6
23666 echo "$as_me: failed program was:" >&5
23667 sed 's/^/| /' conftest.$ac_ext >&5
23669 { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project
23670 See \`config.log' for more details." >&5
23671 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use special 2.6.1 tarball provided by Shibboleth Project
23672 See \`config.log' for more details." >&2;}
23673 { (exit 1); exit 1; }; }
23675 rm -f conftest.err conftest.$ac_ext
23676 cat >conftest.$ac_ext <<_ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h. */
23682 #include <xercesc/util/PlatformUtils.hpp>
23686 xercesc::XMLPlatformUtils::Initialize()
23691 rm -f conftest.$ac_objext conftest$ac_exeext
23692 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23693 (eval $ac_link) 2>conftest.er1
23695 grep -v '^ *+' conftest.er1 >conftest.err
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } &&
23700 { ac_try='test -z "$ac_cxx_werror_flag"
23701 || test ! -s conftest.err'
23702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23703 (eval $ac_try) 2>&5
23705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23706 (exit $ac_status); }; } &&
23707 { ac_try='test -s conftest$ac_exeext'
23708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23709 (eval $ac_try) 2>&5
23711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23712 (exit $ac_status); }; }; then
23714 cat >>confdefs.h <<\_ACEOF
23715 #define HAVE_LIBXERCESC 1
23719 echo "$as_me: failed program was:" >&5
23720 sed 's/^/| /' conftest.$ac_ext >&5
23722 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23723 echo "$as_me: error: unable to link with Xerces" >&2;}
23724 { (exit 1); exit 1; }; }
23726 rm -f conftest.err conftest.$ac_objext \
23727 conftest$ac_exeext conftest.$ac_ext
23730 # XML-Security settings
23732 # Check whether --with-xmlsec or --without-xmlsec was given.
23733 if test "${with_xmlsec+set}" = set; then
23734 withval="$with_xmlsec"
23735 if test x_$with_xmlsec != x_/usr; then
23736 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
23737 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
23740 LIBS="-lxml-security-c $LIBS"
23741 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23742 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23743 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23744 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23745 echo $ECHO_N "(cached) $ECHO_C" >&6
23747 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23748 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23750 # Is the header compilable?
23751 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
23752 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
23753 cat >conftest.$ac_ext <<_ACEOF
23756 cat confdefs.h >>conftest.$ac_ext
23757 cat >>conftest.$ac_ext <<_ACEOF
23758 /* end confdefs.h. */
23759 $ac_includes_default
23760 #include <xsec/utils/XSECPlatformUtils.hpp>
23762 rm -f conftest.$ac_objext
23763 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23764 (eval $ac_compile) 2>conftest.er1
23766 grep -v '^ *+' conftest.er1 >conftest.err
23768 cat conftest.err >&5
23769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23770 (exit $ac_status); } &&
23771 { ac_try='test -z "$ac_cxx_werror_flag"
23772 || test ! -s conftest.err'
23773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23774 (eval $ac_try) 2>&5
23776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23777 (exit $ac_status); }; } &&
23778 { ac_try='test -s conftest.$ac_objext'
23779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23780 (eval $ac_try) 2>&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); }; }; then
23784 ac_header_compiler=yes
23786 echo "$as_me: failed program was:" >&5
23787 sed 's/^/| /' conftest.$ac_ext >&5
23789 ac_header_compiler=no
23791 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23792 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23793 echo "${ECHO_T}$ac_header_compiler" >&6
23795 # Is the header present?
23796 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
23797 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
23798 cat >conftest.$ac_ext <<_ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 #include <xsec/utils/XSECPlatformUtils.hpp>
23806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23809 grep -v '^ *+' conftest.er1 >conftest.err
23811 cat conftest.err >&5
23812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } >/dev/null; then
23814 if test -s conftest.err; then
23815 ac_cpp_err=$ac_cxx_preproc_warn_flag
23816 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23823 if test -z "$ac_cpp_err"; then
23824 ac_header_preproc=yes
23826 echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23829 ac_header_preproc=no
23831 rm -f conftest.err conftest.$ac_ext
23832 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23833 echo "${ECHO_T}$ac_header_preproc" >&6
23835 # So? What about this header?
23836 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23838 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23839 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23840 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
23841 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
23842 ac_header_preproc=yes
23845 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
23846 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
23847 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&5
23848 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&2;}
23849 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
23850 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
23851 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&5
23852 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
23853 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
23854 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
23855 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
23856 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
23859 ## ------------------------------------------------ ##
23860 ## Report this to mace-opensaml-users@internet2.edu ##
23861 ## ------------------------------------------------ ##
23864 sed "s/^/$as_me: WARNING: /" >&2
23867 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
23868 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
23869 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
23870 echo $ECHO_N "(cached) $ECHO_C" >&6
23872 ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
23874 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
23875 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
23878 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
23881 { { echo "$as_me:$LINENO: error: unable to find xmlsec header files" >&5
23882 echo "$as_me: error: unable to find xmlsec header files" >&2;}
23883 { (exit 1); exit 1; }; }
23887 echo "$as_me:$LINENO: checking XML-Security version" >&5
23888 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <xsec/utils/XSECPlatformUtils.hpp>
23899 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
23902 #error need version 1.4.0 or later
23908 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23909 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23911 grep -v '^ *+' conftest.er1 >conftest.err
23913 cat conftest.err >&5
23914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } >/dev/null; then
23916 if test -s conftest.err; then
23917 ac_cpp_err=$ac_cxx_preproc_warn_flag
23918 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23925 if test -z "$ac_cpp_err"; then
23926 echo "$as_me:$LINENO: result: OK" >&5
23927 echo "${ECHO_T}OK" >&6
23929 echo "$as_me: failed program was:" >&5
23930 sed 's/^/| /' conftest.$ac_ext >&5
23932 { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
23933 See \`config.log' for more details." >&5
23934 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
23935 See \`config.log' for more details." >&2;}
23936 { (exit 1); exit 1; }; }
23938 rm -f conftest.err conftest.$ac_ext
23939 cat >conftest.$ac_ext <<_ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h. */
23945 #include <xsec/utils/XSECPlatformUtils.hpp>
23949 XSECPlatformUtils::Initialise()
23954 rm -f conftest.$ac_objext conftest$ac_exeext
23955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23956 (eval $ac_link) 2>conftest.er1
23958 grep -v '^ *+' conftest.er1 >conftest.err
23960 cat conftest.err >&5
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); } &&
23963 { ac_try='test -z "$ac_cxx_werror_flag"
23964 || test ! -s conftest.err'
23965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23966 (eval $ac_try) 2>&5
23968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23969 (exit $ac_status); }; } &&
23970 { ac_try='test -s conftest$ac_exeext'
23971 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23972 (eval $ac_try) 2>&5
23974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23975 (exit $ac_status); }; }; then
23977 cat >>confdefs.h <<\_ACEOF
23978 #define HAVE_LIBXSEC 1
23982 echo "$as_me: failed program was:" >&5
23983 sed 's/^/| /' conftest.$ac_ext >&5
23985 { { echo "$as_me:$LINENO: error: unable to link with XML-Security library" >&5
23986 echo "$as_me: error: unable to link with XML-Security library" >&2;}
23987 { (exit 1); exit 1; }; }
23990 rm -f conftest.err conftest.$ac_objext \
23991 conftest$ac_exeext conftest.$ac_ext
23993 # XML-Tooling settings
23995 # Check whether --with-xmltooling or --without-xmltooling was given.
23996 if test "${with_xmltooling+set}" = set; then
23997 withval="$with_xmltooling"
23998 if test x_$with_xmltooling != x_/usr; then
23999 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
24000 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
24001 DX_INCLUDE="${with_xmltooling}/include"
24004 LIBS="-lxmltooling $LIBS"
24005 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24006 echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24007 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24008 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24009 echo $ECHO_N "(cached) $ECHO_C" >&6
24011 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24012 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24014 # Is the header compilable?
24015 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h usability" >&5
24016 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h usability... $ECHO_C" >&6
24017 cat >conftest.$ac_ext <<_ACEOF
24020 cat confdefs.h >>conftest.$ac_ext
24021 cat >>conftest.$ac_ext <<_ACEOF
24022 /* end confdefs.h. */
24023 $ac_includes_default
24024 #include <xmltooling/XMLToolingConfig.h>
24026 rm -f conftest.$ac_objext
24027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24028 (eval $ac_compile) 2>conftest.er1
24030 grep -v '^ *+' conftest.er1 >conftest.err
24032 cat conftest.err >&5
24033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24034 (exit $ac_status); } &&
24035 { ac_try='test -z "$ac_cxx_werror_flag"
24036 || test ! -s conftest.err'
24037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24038 (eval $ac_try) 2>&5
24040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24041 (exit $ac_status); }; } &&
24042 { ac_try='test -s conftest.$ac_objext'
24043 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24044 (eval $ac_try) 2>&5
24046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); }; }; then
24048 ac_header_compiler=yes
24050 echo "$as_me: failed program was:" >&5
24051 sed 's/^/| /' conftest.$ac_ext >&5
24053 ac_header_compiler=no
24055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24056 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24057 echo "${ECHO_T}$ac_header_compiler" >&6
24059 # Is the header present?
24060 echo "$as_me:$LINENO: checking xmltooling/XMLToolingConfig.h presence" >&5
24061 echo $ECHO_N "checking xmltooling/XMLToolingConfig.h presence... $ECHO_C" >&6
24062 cat >conftest.$ac_ext <<_ACEOF
24065 cat confdefs.h >>conftest.$ac_ext
24066 cat >>conftest.$ac_ext <<_ACEOF
24067 /* end confdefs.h. */
24068 #include <xmltooling/XMLToolingConfig.h>
24070 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24071 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24073 grep -v '^ *+' conftest.er1 >conftest.err
24075 cat conftest.err >&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); } >/dev/null; then
24078 if test -s conftest.err; then
24079 ac_cpp_err=$ac_cxx_preproc_warn_flag
24080 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24087 if test -z "$ac_cpp_err"; then
24088 ac_header_preproc=yes
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24093 ac_header_preproc=no
24095 rm -f conftest.err conftest.$ac_ext
24096 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24097 echo "${ECHO_T}$ac_header_preproc" >&6
24099 # So? What about this header?
24100 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24102 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
24103 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24104 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&5
24105 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the compiler's result" >&2;}
24106 ac_header_preproc=yes
24109 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&5
24110 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: present but cannot be compiled" >&2;}
24111 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: check for missing prerequisite headers?" >&5
24112 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: check for missing prerequisite headers?" >&2;}
24113 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&5
24114 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: see the Autoconf documentation" >&2;}
24115 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: section \"Present But Cannot Be Compiled\"" >&5
24116 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
24117 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&5
24118 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: proceeding with the preprocessor's result" >&2;}
24119 { echo "$as_me:$LINENO: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&5
24120 echo "$as_me: WARNING: xmltooling/XMLToolingConfig.h: in the future, the compiler will take precedence" >&2;}
24123 ## ------------------------------------------------ ##
24124 ## Report this to mace-opensaml-users@internet2.edu ##
24125 ## ------------------------------------------------ ##
24128 sed "s/^/$as_me: WARNING: /" >&2
24131 echo "$as_me:$LINENO: checking for xmltooling/XMLToolingConfig.h" >&5
24132 echo $ECHO_N "checking for xmltooling/XMLToolingConfig.h... $ECHO_C" >&6
24133 if test "${ac_cv_header_xmltooling_XMLToolingConfig_h+set}" = set; then
24134 echo $ECHO_N "(cached) $ECHO_C" >&6
24136 ac_cv_header_xmltooling_XMLToolingConfig_h=$ac_header_preproc
24138 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_XMLToolingConfig_h" >&5
24139 echo "${ECHO_T}$ac_cv_header_xmltooling_XMLToolingConfig_h" >&6
24142 if test $ac_cv_header_xmltooling_XMLToolingConfig_h = yes; then
24145 { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24146 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24147 { (exit 1); exit 1; }; }
24151 cat >conftest.$ac_ext <<_ACEOF
24154 cat confdefs.h >>conftest.$ac_ext
24155 cat >>conftest.$ac_ext <<_ACEOF
24156 /* end confdefs.h. */
24157 #include <xmltooling/XMLToolingConfig.h>
24161 xmltooling::XMLToolingConfig::getConfig().init()
24166 rm -f conftest.$ac_objext conftest$ac_exeext
24167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24168 (eval $ac_link) 2>conftest.er1
24170 grep -v '^ *+' conftest.er1 >conftest.err
24172 cat conftest.err >&5
24173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24174 (exit $ac_status); } &&
24175 { ac_try='test -z "$ac_cxx_werror_flag"
24176 || test ! -s conftest.err'
24177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24178 (eval $ac_try) 2>&5
24180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24181 (exit $ac_status); }; } &&
24182 { ac_try='test -s conftest$ac_exeext'
24183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24184 (eval $ac_try) 2>&5
24186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24187 (exit $ac_status); }; }; then
24189 cat >>confdefs.h <<\_ACEOF
24190 #define HAVE_LIBXMLTOOLING 1
24194 echo "$as_me: failed program was:" >&5
24195 sed 's/^/| /' conftest.$ac_ext >&5
24197 { { echo "$as_me:$LINENO: error: unable to link with xmltooling library" >&5
24198 echo "$as_me: error: unable to link with xmltooling library" >&2;}
24199 { (exit 1); exit 1; }; }
24202 rm -f conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
24205 # Check for unit test support
24206 CXXTEST="/usr/bin/cxxtestgen.pl"
24209 # Check whether --with-cxxtest or --without-cxxtest was given.
24210 if test "${with_cxxtest+set}" = set; then
24211 withval="$with_cxxtest"
24212 if test x_$with_cxxtest != x_/usr; then
24213 CXXTEST="${with_cxxtest}/cxxtestgen.pl"
24214 CXXTESTFLAGS="-I${with_cxxtest}"
24217 if ! test -f "${CXXTEST}"; then
24218 { echo "$as_me:$LINENO: WARNING: cxxtestgen not found, won't build unit tests" >&5
24219 echo "$as_me: WARNING: cxxtestgen not found, won't build unit tests" >&2;}
24226 if test -f ${CXXTEST}; then
24227 BUILD_UNITTEST_TRUE=
24228 BUILD_UNITTEST_FALSE='#'
24230 BUILD_UNITTEST_TRUE='#'
24231 BUILD_UNITTEST_FALSE=
24236 LIBTOOL="$LIBTOOL --silent"
24239 ac_config_files="$ac_config_files Makefile saml/Makefile samltest/Makefile samlsign/Makefile schemas/Makefile doc/Makefile"
24240 cat >confcache <<\_ACEOF
24241 # This file is a shell script that caches the results of configure
24242 # tests run on this system so they can be shared between configure
24243 # scripts and configure runs, see configure's option --config-cache.
24244 # It is not useful on other systems. If it contains results you don't
24245 # want to keep, you may remove or edit it.
24247 # config.status only pays attention to the cache file if you give it
24248 # the --recheck option to rerun configure.
24250 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24251 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24252 # following values.
24256 # The following way of writing the cache mishandles newlines in values,
24257 # but we know of no workaround that is simple, portable, and efficient.
24258 # So, don't put newlines in cache variables' values.
24259 # Ultrix sh set writes to stderr and can't be redirected directly,
24260 # and sets the high bit in the cache file unless we assign to the vars.
24263 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24265 # `set' does not quote correctly, so add quotes (double-quote
24266 # substitution turns \\\\ into \\, and sed turns \\ into \).
24269 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24272 # `set' quotes correctly as required by POSIX, so do not add quotes.
24274 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24281 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24283 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24285 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24286 if test -w $cache_file; then
24287 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24288 cat confcache >$cache_file
24290 echo "not updating unwritable cache $cache_file"
24295 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24296 # Let make expand exec_prefix.
24297 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24301 # trailing colons and then remove the whole line if VPATH becomes empty
24302 # (actually we leave an empty line to preserve line numbers).
24303 if test "x$srcdir" = x.; then
24304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24305 s/:*\$(srcdir):*/:/;
24306 s/:*\${srcdir}:*/:/;
24308 s/^\([^=]*=[ ]*\):*/\1/;
24314 DEFS=-DHAVE_CONFIG_H
24318 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24319 # 1. Remove the extension, and $U if already installed.
24320 ac_i=`echo "$ac_i" |
24321 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24323 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24324 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24326 LIBOBJS=$ac_libobjs
24328 LTLIBOBJS=$ac_ltlibobjs
24331 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24332 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24333 Usually this means the macro was only invoked conditionally." >&5
24334 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24335 Usually this means the macro was only invoked conditionally." >&2;}
24336 { (exit 1); exit 1; }; }
24338 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
24339 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
24340 Usually this means the macro was only invoked conditionally." >&5
24341 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
24342 Usually this means the macro was only invoked conditionally." >&2;}
24343 { (exit 1); exit 1; }; }
24345 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24346 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24347 Usually this means the macro was only invoked conditionally." >&5
24348 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24349 Usually this means the macro was only invoked conditionally." >&2;}
24350 { (exit 1); exit 1; }; }
24352 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
24353 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
24354 Usually this means the macro was only invoked conditionally." >&5
24355 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
24356 Usually this means the macro was only invoked conditionally." >&2;}
24357 { (exit 1); exit 1; }; }
24359 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24360 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24361 Usually this means the macro was only invoked conditionally." >&5
24362 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24363 Usually this means the macro was only invoked conditionally." >&2;}
24364 { (exit 1); exit 1; }; }
24366 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
24367 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
24368 Usually this means the macro was only invoked conditionally." >&5
24369 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
24370 Usually this means the macro was only invoked conditionally." >&2;}
24371 { (exit 1); exit 1; }; }
24373 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24374 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24375 Usually this means the macro was only invoked conditionally." >&5
24376 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24377 Usually this means the macro was only invoked conditionally." >&2;}
24378 { (exit 1); exit 1; }; }
24380 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
24381 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
24382 Usually this means the macro was only invoked conditionally." >&5
24383 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
24384 Usually this means the macro was only invoked conditionally." >&2;}
24385 { (exit 1); exit 1; }; }
24387 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24388 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24389 Usually this means the macro was only invoked conditionally." >&5
24390 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24391 Usually this means the macro was only invoked conditionally." >&2;}
24392 { (exit 1); exit 1; }; }
24394 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
24395 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
24396 Usually this means the macro was only invoked conditionally." >&5
24397 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
24398 Usually this means the macro was only invoked conditionally." >&2;}
24399 { (exit 1); exit 1; }; }
24401 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24402 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24403 Usually this means the macro was only invoked conditionally." >&5
24404 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24405 Usually this means the macro was only invoked conditionally." >&2;}
24406 { (exit 1); exit 1; }; }
24408 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
24409 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
24410 Usually this means the macro was only invoked conditionally." >&5
24411 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
24412 Usually this means the macro was only invoked conditionally." >&2;}
24413 { (exit 1); exit 1; }; }
24415 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24416 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24417 Usually this means the macro was only invoked conditionally." >&5
24418 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24419 Usually this means the macro was only invoked conditionally." >&2;}
24420 { (exit 1); exit 1; }; }
24422 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
24423 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
24424 Usually this means the macro was only invoked conditionally." >&5
24425 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
24426 Usually this means the macro was only invoked conditionally." >&2;}
24427 { (exit 1); exit 1; }; }
24429 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24430 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24431 Usually this means the macro was only invoked conditionally." >&5
24432 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24433 Usually this means the macro was only invoked conditionally." >&2;}
24434 { (exit 1); exit 1; }; }
24436 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
24437 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
24438 Usually this means the macro was only invoked conditionally." >&5
24439 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
24440 Usually this means the macro was only invoked conditionally." >&2;}
24441 { (exit 1); exit 1; }; }
24443 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24444 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24445 Usually this means the macro was only invoked conditionally." >&5
24446 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24447 Usually this means the macro was only invoked conditionally." >&2;}
24448 { (exit 1); exit 1; }; }
24450 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
24451 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
24452 Usually this means the macro was only invoked conditionally." >&5
24453 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
24454 Usually this means the macro was only invoked conditionally." >&2;}
24455 { (exit 1); exit 1; }; }
24457 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24458 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24459 Usually this means the macro was only invoked conditionally." >&5
24460 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24461 Usually this means the macro was only invoked conditionally." >&2;}
24462 { (exit 1); exit 1; }; }
24464 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
24465 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
24466 Usually this means the macro was only invoked conditionally." >&5
24467 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
24468 Usually this means the macro was only invoked conditionally." >&2;}
24469 { (exit 1); exit 1; }; }
24471 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24472 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24473 Usually this means the macro was only invoked conditionally." >&5
24474 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24475 Usually this means the macro was only invoked conditionally." >&2;}
24476 { (exit 1); exit 1; }; }
24478 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
24479 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
24480 Usually this means the macro was only invoked conditionally." >&5
24481 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
24482 Usually this means the macro was only invoked conditionally." >&2;}
24483 { (exit 1); exit 1; }; }
24485 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24486 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24487 Usually this means the macro was only invoked conditionally." >&5
24488 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24489 Usually this means the macro was only invoked conditionally." >&2;}
24490 { (exit 1); exit 1; }; }
24492 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24493 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24494 Usually this means the macro was only invoked conditionally." >&5
24495 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24496 Usually this means the macro was only invoked conditionally." >&2;}
24497 { (exit 1); exit 1; }; }
24499 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24500 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24501 Usually this means the macro was only invoked conditionally." >&5
24502 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24503 Usually this means the macro was only invoked conditionally." >&2;}
24504 { (exit 1); exit 1; }; }
24506 if test -z "${BUILD_UNITTEST_TRUE}" && test -z "${BUILD_UNITTEST_FALSE}"; then
24507 { { echo "$as_me:$LINENO: error: conditional \"BUILD_UNITTEST\" was never defined.
24508 Usually this means the macro was only invoked conditionally." >&5
24509 echo "$as_me: error: conditional \"BUILD_UNITTEST\" was never defined.
24510 Usually this means the macro was only invoked conditionally." >&2;}
24511 { (exit 1); exit 1; }; }
24514 : ${CONFIG_STATUS=./config.status}
24515 ac_clean_files_save=$ac_clean_files
24516 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24517 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24518 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24519 cat >$CONFIG_STATUS <<_ACEOF
24521 # Generated by $as_me.
24522 # Run this file to recreate the current configuration.
24523 # Compiler output produced by configure, useful for debugging
24524 # configure, is in config.log if it exists.
24527 ac_cs_recheck=false
24529 SHELL=\${CONFIG_SHELL-$SHELL}
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533 ## --------------------- ##
24534 ## M4sh Initialization. ##
24535 ## --------------------- ##
24537 # Be Bourne compatible
24538 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24541 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24542 # is contrary to our usage. Disable this feature.
24543 alias -g '${1+"$@"}'='"$@"'
24544 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24547 DUALCASE=1; export DUALCASE # for MKS sh
24549 # Support unset when possible.
24550 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24557 # Work around bugs in pre-3.0 UWIN ksh.
24558 $as_unset ENV MAIL MAILPATH
24565 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24566 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24567 LC_TELEPHONE LC_TIME
24569 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24570 eval $as_var=C; export $as_var
24576 # Required to use basename.
24577 if expr a : '\(a\)' >/dev/null 2>&1; then
24583 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24584 as_basename=basename
24590 # Name of the executable.
24591 as_me=`$as_basename "$0" ||
24592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24593 X"$0" : 'X\(//\)$' \| \
24594 X"$0" : 'X\(/\)$' \| \
24595 . : '\(.\)' 2>/dev/null ||
24597 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24598 /^X\/\(\/\/\)$/{ s//\1/; q; }
24599 /^X\/\(\/\).*/{ s//\1/; q; }
24603 # PATH needs CR, and LINENO needs CR and PATH.
24604 # Avoid depending upon Character Ranges.
24605 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24606 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24607 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24608 as_cr_digits='0123456789'
24609 as_cr_alnum=$as_cr_Letters$as_cr_digits
24611 # The user is always right.
24612 if test "${PATH_SEPARATOR+set}" != set; then
24613 echo "#! /bin/sh" >conf$$.sh
24614 echo "exit 0" >>conf$$.sh
24616 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24625 as_lineno_1=$LINENO
24626 as_lineno_2=$LINENO
24627 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24628 test "x$as_lineno_1" != "x$as_lineno_2" &&
24629 test "x$as_lineno_3" = "x$as_lineno_2" || {
24630 # Find who we are. Look in the path if we contain no path at all
24633 *[\\/]* ) as_myself=$0 ;;
24634 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24635 for as_dir in $PATH
24638 test -z "$as_dir" && as_dir=.
24639 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24644 # We did not find ourselves, most probably we were run as `sh COMMAND'
24645 # in which case we are not to be found in the path.
24646 if test "x$as_myself" = x; then
24649 if test ! -f "$as_myself"; then
24650 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24651 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24652 { (exit 1); exit 1; }; }
24654 case $CONFIG_SHELL in
24656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24657 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24660 test -z "$as_dir" && as_dir=.
24661 for as_base in sh bash ksh sh5; do
24664 if ("$as_dir/$as_base" -c '
24665 as_lineno_1=$LINENO
24666 as_lineno_2=$LINENO
24667 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24668 test "x$as_lineno_1" != "x$as_lineno_2" &&
24669 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24670 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24671 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24672 CONFIG_SHELL=$as_dir/$as_base
24673 export CONFIG_SHELL
24674 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24682 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24683 # uniformly replaced by the line number. The first 'sed' inserts a
24684 # line-number line before each line; the second 'sed' does the real
24685 # work. The second script uses 'N' to pair each line-number line
24686 # with the numbered line, and appends trailing '-' during
24687 # substitution so that $LINENO is not a special case at line end.
24688 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24689 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24690 sed '=' <$as_myself |
24695 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24698 s,^['$as_cr_digits']*\n,,
24699 ' >$as_me.lineno &&
24700 chmod +x $as_me.lineno ||
24701 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24702 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24703 { (exit 1); exit 1; }; }
24705 # Don't try to exec as it changes $[0], causing all sort of problems
24706 # (the dirname of $[0] is not the place where we might find the
24707 # original and so on. Autoconf is especially sensible to this).
24709 # Exit status is that of the last command.
24714 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24715 *c*,-n*) ECHO_N= ECHO_C='
24717 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24718 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24721 if expr a : '\(a\)' >/dev/null 2>&1; then
24727 rm -f conf$$ conf$$.exe conf$$.file
24729 if ln -s conf$$.file conf$$ 2>/dev/null; then
24730 # We could just check for DJGPP; but this test a) works b) is more generic
24731 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24732 if test -f conf$$.exe; then
24733 # Don't use ln at all; we don't have any links
24738 elif ln conf$$.file conf$$ 2>/dev/null; then
24743 rm -f conf$$ conf$$.exe conf$$.file
24745 if mkdir -p . 2>/dev/null; then
24748 test -d ./-p && rmdir ./-p
24752 as_executable_p="test -f"
24754 # Sed expression to map a string onto a valid CPP name.
24755 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24757 # Sed expression to map a string onto a valid variable name.
24758 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24762 # We need space, tab and new line, in precisely that order.
24772 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24773 # report actual input values of CONFIG_FILES etc. instead of their
24774 # values after options handling. Logging --version etc. is OK.
24778 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24779 ## Running $as_me. ##
24784 This file was extended by opensaml $as_me 2.1, which was
24785 generated by GNU Autoconf 2.59. Invocation command line was
24787 CONFIG_FILES = $CONFIG_FILES
24788 CONFIG_HEADERS = $CONFIG_HEADERS
24789 CONFIG_LINKS = $CONFIG_LINKS
24790 CONFIG_COMMANDS = $CONFIG_COMMANDS
24794 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24798 # Files that config.status was made for.
24799 if test -n "$ac_config_files"; then
24800 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24803 if test -n "$ac_config_headers"; then
24804 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24807 if test -n "$ac_config_links"; then
24808 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24811 if test -n "$ac_config_commands"; then
24812 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24815 cat >>$CONFIG_STATUS <<\_ACEOF
24818 \`$as_me' instantiates files from templates according to the
24819 current configuration.
24821 Usage: $0 [OPTIONS] [FILE]...
24823 -h, --help print this help, then exit
24824 -V, --version print version number, then exit
24825 -q, --quiet do not print progress messages
24826 -d, --debug don't remove temporary files
24827 --recheck update $as_me by reconfiguring in the same conditions
24828 --file=FILE[:TEMPLATE]
24829 instantiate the configuration file FILE
24830 --header=FILE[:TEMPLATE]
24831 instantiate the configuration header FILE
24833 Configuration files:
24836 Configuration headers:
24839 Configuration commands:
24842 Report bugs to <bug-autoconf@gnu.org>."
24845 cat >>$CONFIG_STATUS <<_ACEOF
24847 opensaml config.status 2.1
24848 configured by $0, generated by GNU Autoconf 2.59,
24849 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24851 Copyright (C) 2003 Free Software Foundation, Inc.
24852 This config.status script is free software; the Free Software Foundation
24853 gives unlimited permission to copy, distribute and modify it."
24858 cat >>$CONFIG_STATUS <<\_ACEOF
24859 # If no file are specified by the user, then we need to provide default
24860 # value. By we need to know if files were specified by the user.
24866 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24867 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24875 *) # This is not an option, so the user has probably given explicit
24878 ac_need_defaults=false;;
24882 # Handling of the options.
24884 cat >>$CONFIG_STATUS <<\_ACEOF
24885 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24887 --version | --vers* | -V )
24888 echo "$ac_cs_version"; exit 0 ;;
24890 # Conflict between --help and --header
24891 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24892 Try \`$0 --help' for more information." >&5
24893 echo "$as_me: error: ambiguous option: $1
24894 Try \`$0 --help' for more information." >&2;}
24895 { (exit 1); exit 1; }; };;
24896 --help | --hel | -h )
24897 echo "$ac_cs_usage"; exit 0 ;;
24898 --debug | --d* | -d )
24900 --file | --fil | --fi | --f )
24902 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24903 ac_need_defaults=false;;
24904 --header | --heade | --head | --hea )
24906 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24907 ac_need_defaults=false;;
24908 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24909 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24912 # This is an error.
24913 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24914 Try \`$0 --help' for more information." >&5
24915 echo "$as_me: error: unrecognized option: $1
24916 Try \`$0 --help' for more information." >&2;}
24917 { (exit 1); exit 1; }; } ;;
24919 *) ac_config_targets="$ac_config_targets $1" ;;
24925 ac_configure_extra_args=
24927 if $ac_cs_silent; then
24929 ac_configure_extra_args="$ac_configure_extra_args --silent"
24933 cat >>$CONFIG_STATUS <<_ACEOF
24934 if \$ac_cs_recheck; then
24935 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24936 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24941 cat >>$CONFIG_STATUS <<_ACEOF
24943 # INIT-COMMANDS section.
24946 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24952 cat >>$CONFIG_STATUS <<\_ACEOF
24953 for ac_config_target in $ac_config_targets
24955 case "$ac_config_target" in
24956 # Handling of arguments.
24957 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24958 "saml/Makefile" ) CONFIG_FILES="$CONFIG_FILES saml/Makefile" ;;
24959 "samltest/Makefile" ) CONFIG_FILES="$CONFIG_FILES samltest/Makefile" ;;
24960 "samlsign/Makefile" ) CONFIG_FILES="$CONFIG_FILES samlsign/Makefile" ;;
24961 "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
24962 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24963 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24964 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
24965 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24966 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24967 { (exit 1); exit 1; }; };;
24971 # If the user did not use the arguments to specify the items to instantiate,
24972 # then the envvar interface is used. Set only those that are not.
24973 # We use the long form for the default assignment because of an extremely
24974 # bizarre bug on SunOS 4.1.3.
24975 if $ac_need_defaults; then
24976 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24977 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24978 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24981 # Have a temporary directory for convenience. Make it in the build tree
24982 # simply because there is no reason to put it here, and in addition,
24983 # creating and moving files from /tmp can sometimes cause problems.
24984 # Create a temporary directory, and hook for its removal unless debugging.
24987 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24988 trap '{ (exit 1); exit 1; }' 1 2 13 15
24991 # Create a (secure) tmp directory for tmp files.
24994 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24995 test -n "$tmp" && test -d "$tmp"
24998 tmp=./confstat$$-$RANDOM
24999 (umask 077 && mkdir $tmp)
25002 echo "$me: cannot create a temporary directory in ." >&2
25003 { (exit 1); exit 1; }
25008 cat >>$CONFIG_STATUS <<_ACEOF
25011 # CONFIG_FILES section.
25014 # No need to generate the scripts if there are no CONFIG_FILES.
25015 # This happens for instance when ./config.status config.h
25016 if test -n "\$CONFIG_FILES"; then
25017 # Protect against being on the right side of a sed subst in config.status.
25018 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
25019 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
25020 s,@SHELL@,$SHELL,;t t
25021 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
25022 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
25023 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
25024 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
25025 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
25026 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
25027 s,@exec_prefix@,$exec_prefix,;t t
25028 s,@prefix@,$prefix,;t t
25029 s,@program_transform_name@,$program_transform_name,;t t
25030 s,@bindir@,$bindir,;t t
25031 s,@sbindir@,$sbindir,;t t
25032 s,@libexecdir@,$libexecdir,;t t
25033 s,@datadir@,$datadir,;t t
25034 s,@sysconfdir@,$sysconfdir,;t t
25035 s,@sharedstatedir@,$sharedstatedir,;t t
25036 s,@localstatedir@,$localstatedir,;t t
25037 s,@libdir@,$libdir,;t t
25038 s,@includedir@,$includedir,;t t
25039 s,@oldincludedir@,$oldincludedir,;t t
25040 s,@infodir@,$infodir,;t t
25041 s,@mandir@,$mandir,;t t
25042 s,@build_alias@,$build_alias,;t t
25043 s,@host_alias@,$host_alias,;t t
25044 s,@target_alias@,$target_alias,;t t
25045 s,@DEFS@,$DEFS,;t t
25046 s,@ECHO_C@,$ECHO_C,;t t
25047 s,@ECHO_N@,$ECHO_N,;t t
25048 s,@ECHO_T@,$ECHO_T,;t t
25049 s,@LIBS@,$LIBS,;t t
25050 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25051 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25052 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25053 s,@CYGPATH_W@,$CYGPATH_W,;t t
25054 s,@PACKAGE@,$PACKAGE,;t t
25055 s,@VERSION@,$VERSION,;t t
25056 s,@ACLOCAL@,$ACLOCAL,;t t
25057 s,@AUTOCONF@,$AUTOCONF,;t t
25058 s,@AUTOMAKE@,$AUTOMAKE,;t t
25059 s,@AUTOHEADER@,$AUTOHEADER,;t t
25060 s,@MAKEINFO@,$MAKEINFO,;t t
25061 s,@install_sh@,$install_sh,;t t
25062 s,@STRIP@,$STRIP,;t t
25063 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25064 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25065 s,@mkdir_p@,$mkdir_p,;t t
25067 s,@SET_MAKE@,$SET_MAKE,;t t
25068 s,@am__leading_dot@,$am__leading_dot,;t t
25069 s,@AMTAR@,$AMTAR,;t t
25070 s,@am__tar@,$am__tar,;t t
25071 s,@am__untar@,$am__untar,;t t
25072 s,@DX_PROJECT@,$DX_PROJECT,;t t
25073 s,@DX_CONFIG@,$DX_CONFIG,;t t
25074 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
25075 s,@DX_ENV@,$DX_ENV,;t t
25076 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
25077 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
25078 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
25079 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25080 s,@DX_PERL@,$DX_PERL,;t t
25081 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
25082 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25083 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
25084 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
25085 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
25086 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25087 s,@DX_DOT@,$DX_DOT,;t t
25088 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
25089 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25090 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
25091 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
25092 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
25093 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25094 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
25095 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
25096 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
25097 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25098 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
25099 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
25100 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
25101 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25102 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
25103 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
25104 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
25105 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25106 s,@DX_HHC@,$DX_HHC,;t t
25107 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
25108 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25109 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
25110 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
25111 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
25112 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25113 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
25114 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
25115 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
25116 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25117 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25118 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
25119 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
25120 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
25121 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25122 s,@DX_LATEX@,$DX_LATEX,;t t
25123 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
25124 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25125 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
25126 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
25127 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25128 s,@DX_DVIPS@,$DX_DVIPS,;t t
25129 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
25130 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25131 s,@DX_EGREP@,$DX_EGREP,;t t
25132 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
25133 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25134 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
25135 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
25136 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25137 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25138 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
25139 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
25140 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25141 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25142 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
25143 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
25144 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
25145 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
25146 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
25147 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
25149 s,@CFLAGS@,$CFLAGS,;t t
25150 s,@LDFLAGS@,$LDFLAGS,;t t
25151 s,@CPPFLAGS@,$CPPFLAGS,;t t
25152 s,@ac_ct_CC@,$ac_ct_CC,;t t
25153 s,@EXEEXT@,$EXEEXT,;t t
25154 s,@OBJEXT@,$OBJEXT,;t t
25155 s,@DEPDIR@,$DEPDIR,;t t
25156 s,@am__include@,$am__include,;t t
25157 s,@am__quote@,$am__quote,;t t
25158 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25159 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25160 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25161 s,@CCDEPMODE@,$CCDEPMODE,;t t
25162 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25163 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25165 s,@CXXFLAGS@,$CXXFLAGS,;t t
25166 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25167 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25168 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25169 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25170 s,@build@,$build,;t t
25171 s,@build_cpu@,$build_cpu,;t t
25172 s,@build_vendor@,$build_vendor,;t t
25173 s,@build_os@,$build_os,;t t
25174 s,@host@,$host,;t t
25175 s,@host_cpu@,$host_cpu,;t t
25176 s,@host_vendor@,$host_vendor,;t t
25177 s,@host_os@,$host_os,;t t
25178 s,@EGREP@,$EGREP,;t t
25179 s,@LN_S@,$LN_S,;t t
25180 s,@ECHO@,$ECHO,;t t
25182 s,@ac_ct_AR@,$ac_ct_AR,;t t
25183 s,@RANLIB@,$RANLIB,;t t
25184 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25186 s,@CXXCPP@,$CXXCPP,;t t
25188 s,@FFLAGS@,$FFLAGS,;t t
25189 s,@ac_ct_F77@,$ac_ct_F77,;t t
25190 s,@LIBTOOL@,$LIBTOOL,;t t
25191 s,@acx_pthread_config@,$acx_pthread_config,;t t
25192 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
25193 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
25194 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
25195 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25196 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
25197 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
25198 s,@CXXTEST@,$CXXTEST,;t t
25199 s,@CXXTESTFLAGS@,$CXXTESTFLAGS,;t t
25200 s,@BUILD_UNITTEST_TRUE@,$BUILD_UNITTEST_TRUE,;t t
25201 s,@BUILD_UNITTEST_FALSE@,$BUILD_UNITTEST_FALSE,;t t
25202 s,@DX_INCLUDE@,$DX_INCLUDE,;t t
25203 s,@LIBOBJS@,$LIBOBJS,;t t
25204 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25209 cat >>$CONFIG_STATUS <<\_ACEOF
25210 # Split the substitutions into bite-sized pieces for seds with
25211 # small command number limits, like on Digital OSF/1 and HP-UX.
25212 ac_max_sed_lines=48
25213 ac_sed_frag=1 # Number of current file.
25214 ac_beg=1 # First line for current file.
25215 ac_end=$ac_max_sed_lines # Line after last line for current file.
25218 while $ac_more_lines; do
25219 if test $ac_beg -gt 1; then
25220 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25222 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25224 if test ! -s $tmp/subs.frag; then
25225 ac_more_lines=false
25227 # The purpose of the label and of the branching condition is to
25228 # speed up the sed processing (if there are no `@' at all, there
25229 # is no need to browse any of the substitutions).
25230 # These are the two extra sed commands mentioned above.
25232 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25233 if test -z "$ac_sed_cmds"; then
25234 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25236 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25238 ac_sed_frag=`expr $ac_sed_frag + 1`
25240 ac_end=`expr $ac_end + $ac_max_sed_lines`
25243 if test -z "$ac_sed_cmds"; then
25246 fi # test -n "$CONFIG_FILES"
25249 cat >>$CONFIG_STATUS <<\_ACEOF
25250 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25251 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25253 - | *:- | *:-:* ) # input from stdin
25255 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25256 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25257 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25258 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25259 * ) ac_file_in=$ac_file.in ;;
25262 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25263 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25264 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25265 X"$ac_file" : 'X\(//\)[^/]' \| \
25266 X"$ac_file" : 'X\(//\)$' \| \
25267 X"$ac_file" : 'X\(/\)' \| \
25268 . : '\(.\)' 2>/dev/null ||
25270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25271 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25272 /^X\(\/\/\)$/{ s//\1/; q; }
25273 /^X\(\/\).*/{ s//\1/; q; }
25275 { if $as_mkdir_p; then
25280 while test ! -d "$as_dir"; do
25281 as_dirs="$as_dir $as_dirs"
25282 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25283 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25284 X"$as_dir" : 'X\(//\)[^/]' \| \
25285 X"$as_dir" : 'X\(//\)$' \| \
25286 X"$as_dir" : 'X\(/\)' \| \
25287 . : '\(.\)' 2>/dev/null ||
25289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25290 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25291 /^X\(\/\/\)$/{ s//\1/; q; }
25292 /^X\(\/\).*/{ s//\1/; q; }
25295 test ! -n "$as_dirs" || mkdir $as_dirs
25296 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25297 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25298 { (exit 1); exit 1; }; }; }
25302 if test "$ac_dir" != .; then
25303 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25304 # A "../" for each directory in $ac_dir_suffix.
25305 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25307 ac_dir_suffix= ac_top_builddir=
25311 .) # No --srcdir option. We are building in place.
25313 if test -z "$ac_top_builddir"; then
25316 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25318 [\\/]* | ?:[\\/]* ) # Absolute path.
25319 ac_srcdir=$srcdir$ac_dir_suffix;
25320 ac_top_srcdir=$srcdir ;;
25321 *) # Relative path.
25322 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25323 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25326 # Do not use `cd foo && pwd` to compute absolute paths, because
25327 # the directories may not exist.
25329 .) ac_abs_builddir="$ac_dir";;
25332 .) ac_abs_builddir=`pwd`;;
25333 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25334 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25337 case $ac_abs_builddir in
25338 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25340 case ${ac_top_builddir}. in
25341 .) ac_abs_top_builddir=$ac_abs_builddir;;
25342 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25343 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25346 case $ac_abs_builddir in
25347 .) ac_abs_srcdir=$ac_srcdir;;
25350 .) ac_abs_srcdir=$ac_abs_builddir;;
25351 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25352 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25355 case $ac_abs_builddir in
25356 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25358 case $ac_top_srcdir in
25359 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25360 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25361 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25367 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25368 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25371 if test x"$ac_file" != x-; then
25372 { echo "$as_me:$LINENO: creating $ac_file" >&5
25373 echo "$as_me: creating $ac_file" >&6;}
25376 # Let's still pretend it is `configure' which instantiates (i.e., don't
25377 # use $as_me), people would be surprised to read:
25378 # /* config.h. Generated by config.status. */
25379 if test x"$ac_file" = x-; then
25382 configure_input="$ac_file. "
25384 configure_input=$configure_input"Generated from `echo $ac_file_in |
25385 sed 's,.*/,,'` by configure."
25387 # First look for the input files in the build tree, otherwise in the
25389 ac_file_inputs=`IFS=:
25390 for f in $ac_file_in; do
25392 -) echo $tmp/stdin ;;
25394 # Absolute (can't be DOS-style, as IFS=:)
25395 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25396 echo "$as_me: error: cannot find input file: $f" >&2;}
25397 { (exit 1); exit 1; }; }
25400 if test -f "$f"; then
25403 elif test -f "$srcdir/$f"; then
25408 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25409 echo "$as_me: error: cannot find input file: $f" >&2;}
25410 { (exit 1); exit 1; }; }
25413 done` || { (exit 1); exit 1; }
25415 cat >>$CONFIG_STATUS <<_ACEOF
25419 cat >>$CONFIG_STATUS <<\_ACEOF
25421 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25422 s,@configure_input@,$configure_input,;t t
25423 s,@srcdir@,$ac_srcdir,;t t
25424 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25425 s,@top_srcdir@,$ac_top_srcdir,;t t
25426 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25427 s,@builddir@,$ac_builddir,;t t
25428 s,@abs_builddir@,$ac_abs_builddir,;t t
25429 s,@top_builddir@,$ac_top_builddir,;t t
25430 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25431 s,@INSTALL@,$ac_INSTALL,;t t
25432 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25434 if test x"$ac_file" != x-; then
25435 mv $tmp/out $ac_file
25443 cat >>$CONFIG_STATUS <<\_ACEOF
25446 # CONFIG_HEADER section.
25449 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25450 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25452 # ac_d sets the value in "#define NAME VALUE" lines.
25453 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25454 ac_dB='[ ].*$,\1#\2'
25457 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25458 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25459 ac_uB='$,\1#\2define\3'
25463 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25464 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25466 - | *:- | *:-:* ) # input from stdin
25468 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25469 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25470 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25471 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25472 * ) ac_file_in=$ac_file.in ;;
25475 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25476 echo "$as_me: creating $ac_file" >&6;}
25478 # First look for the input files in the build tree, otherwise in the
25480 ac_file_inputs=`IFS=:
25481 for f in $ac_file_in; do
25483 -) echo $tmp/stdin ;;
25485 # Absolute (can't be DOS-style, as IFS=:)
25486 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25487 echo "$as_me: error: cannot find input file: $f" >&2;}
25488 { (exit 1); exit 1; }; }
25489 # Do quote $f, to prevent DOS paths from being IFS'd.
25492 if test -f "$f"; then
25495 elif test -f "$srcdir/$f"; then
25500 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25501 echo "$as_me: error: cannot find input file: $f" >&2;}
25502 { (exit 1); exit 1; }; }
25505 done` || { (exit 1); exit 1; }
25506 # Remove the trailing spaces.
25507 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25511 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25512 # `conftest.undefs', that substitutes the proper values into
25513 # config.h.in to produce config.h. The first handles `#define'
25514 # templates, and the second `#undef' templates.
25515 # And first: Protect against being on the right side of a sed subst in
25516 # config.status. Protect against being in an unquoted here document
25517 # in config.status.
25518 rm -f conftest.defines conftest.undefs
25519 # Using a here document instead of a string reduces the quoting nightmare.
25520 # Putting comments in sed scripts is not portable.
25522 # `end' is used to avoid that the second main sed command (meant for
25523 # 0-ary CPP macros) applies to n-ary macro definitions.
25524 # See the Autoconf documentation for `clear'.
25525 cat >confdef2sed.sed <<\_ACEOF
25530 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25532 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25535 # If some macros were called several times there might be several times
25536 # the same #defines, which is useless. Nevertheless, we may not want to
25537 # sort them, since we want the *last* AC-DEFINE to be honored.
25538 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25539 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25540 rm -f confdef2sed.sed
25542 # This sed command replaces #undef with comments. This is necessary, for
25543 # example, in the case of _POSIX_SOURCE, which is predefined and required
25544 # on some systems where configure will not decide to define it.
25545 cat >>conftest.undefs <<\_ACEOF
25546 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25549 # Break up conftest.defines because some shells have a limit on the size
25550 # of here documents, and old seds have small limits too (100 cmds).
25551 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25552 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25553 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25554 echo ' :' >>$CONFIG_STATUS
25555 rm -f conftest.tail
25556 while grep . conftest.defines >/dev/null
25558 # Write a limited-size here document to $tmp/defines.sed.
25559 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25560 # Speed up: don't consider the non `#define' lines.
25561 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25562 # Work around the forget-to-reset-the-flag bug.
25563 echo 't clr' >>$CONFIG_STATUS
25564 echo ': clr' >>$CONFIG_STATUS
25565 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25567 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25569 mv $tmp/out $tmp/in
25571 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25572 rm -f conftest.defines
25573 mv conftest.tail conftest.defines
25575 rm -f conftest.defines
25576 echo ' fi # grep' >>$CONFIG_STATUS
25577 echo >>$CONFIG_STATUS
25579 # Break up conftest.undefs because some shells have a limit on the size
25580 # of here documents, and old seds have small limits too (100 cmds).
25581 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25582 rm -f conftest.tail
25583 while grep . conftest.undefs >/dev/null
25585 # Write a limited-size here document to $tmp/undefs.sed.
25586 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25587 # Speed up: don't consider the non `#undef'
25588 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25589 # Work around the forget-to-reset-the-flag bug.
25590 echo 't clr' >>$CONFIG_STATUS
25591 echo ': clr' >>$CONFIG_STATUS
25592 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25594 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25596 mv $tmp/out $tmp/in
25598 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25599 rm -f conftest.undefs
25600 mv conftest.tail conftest.undefs
25602 rm -f conftest.undefs
25604 cat >>$CONFIG_STATUS <<\_ACEOF
25605 # Let's still pretend it is `configure' which instantiates (i.e., don't
25606 # use $as_me), people would be surprised to read:
25607 # /* config.h. Generated by config.status. */
25608 if test x"$ac_file" = x-; then
25609 echo "/* Generated by configure. */" >$tmp/config.h
25611 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25613 cat $tmp/in >>$tmp/config.h
25615 if test x"$ac_file" != x-; then
25616 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25617 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25618 echo "$as_me: $ac_file is unchanged" >&6;}
25620 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25622 X"$ac_file" : 'X\(//\)[^/]' \| \
25623 X"$ac_file" : 'X\(//\)$' \| \
25624 X"$ac_file" : 'X\(/\)' \| \
25625 . : '\(.\)' 2>/dev/null ||
25627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25628 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25629 /^X\(\/\/\)$/{ s//\1/; q; }
25630 /^X\(\/\).*/{ s//\1/; q; }
25632 { if $as_mkdir_p; then
25637 while test ! -d "$as_dir"; do
25638 as_dirs="$as_dir $as_dirs"
25639 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25640 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25641 X"$as_dir" : 'X\(//\)[^/]' \| \
25642 X"$as_dir" : 'X\(//\)$' \| \
25643 X"$as_dir" : 'X\(/\)' \| \
25644 . : '\(.\)' 2>/dev/null ||
25646 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25647 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25648 /^X\(\/\/\)$/{ s//\1/; q; }
25649 /^X\(\/\).*/{ s//\1/; q; }
25652 test ! -n "$as_dirs" || mkdir $as_dirs
25653 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25654 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25655 { (exit 1); exit 1; }; }; }
25658 mv $tmp/config.h $ac_file
25662 rm -f $tmp/config.h
25664 # Compute $ac_file's index in $config_headers.
25666 for _am_header in $config_headers :; do
25667 case $_am_header in
25668 $ac_file | $ac_file:* )
25671 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25674 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25675 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25676 X$ac_file : 'X\(//\)[^/]' \| \
25677 X$ac_file : 'X\(//\)$' \| \
25678 X$ac_file : 'X\(/\)' \| \
25679 . : '\(.\)' 2>/dev/null ||
25681 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25682 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25683 /^X\(\/\/\)$/{ s//\1/; q; }
25684 /^X\(\/\).*/{ s//\1/; q; }
25685 s/.*/./; q'`/stamp-h$_am_stamp_count
25688 cat >>$CONFIG_STATUS <<\_ACEOF
25691 # CONFIG_COMMANDS section.
25693 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25694 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25695 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25696 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25697 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25698 X"$ac_dest" : 'X\(//\)[^/]' \| \
25699 X"$ac_dest" : 'X\(//\)$' \| \
25700 X"$ac_dest" : 'X\(/\)' \| \
25701 . : '\(.\)' 2>/dev/null ||
25703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25704 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25705 /^X\(\/\/\)$/{ s//\1/; q; }
25706 /^X\(\/\).*/{ s//\1/; q; }
25708 { if $as_mkdir_p; then
25713 while test ! -d "$as_dir"; do
25714 as_dirs="$as_dir $as_dirs"
25715 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25716 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25717 X"$as_dir" : 'X\(//\)[^/]' \| \
25718 X"$as_dir" : 'X\(//\)$' \| \
25719 X"$as_dir" : 'X\(/\)' \| \
25720 . : '\(.\)' 2>/dev/null ||
25722 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25723 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25724 /^X\(\/\/\)$/{ s//\1/; q; }
25725 /^X\(\/\).*/{ s//\1/; q; }
25728 test ! -n "$as_dirs" || mkdir $as_dirs
25729 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25730 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25731 { (exit 1); exit 1; }; }; }
25735 if test "$ac_dir" != .; then
25736 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25737 # A "../" for each directory in $ac_dir_suffix.
25738 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25740 ac_dir_suffix= ac_top_builddir=
25744 .) # No --srcdir option. We are building in place.
25746 if test -z "$ac_top_builddir"; then
25749 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25751 [\\/]* | ?:[\\/]* ) # Absolute path.
25752 ac_srcdir=$srcdir$ac_dir_suffix;
25753 ac_top_srcdir=$srcdir ;;
25754 *) # Relative path.
25755 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25756 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25759 # Do not use `cd foo && pwd` to compute absolute paths, because
25760 # the directories may not exist.
25762 .) ac_abs_builddir="$ac_dir";;
25765 .) ac_abs_builddir=`pwd`;;
25766 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25767 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25770 case $ac_abs_builddir in
25771 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25773 case ${ac_top_builddir}. in
25774 .) ac_abs_top_builddir=$ac_abs_builddir;;
25775 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25776 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25779 case $ac_abs_builddir in
25780 .) ac_abs_srcdir=$ac_srcdir;;
25783 .) ac_abs_srcdir=$ac_abs_builddir;;
25784 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25785 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25788 case $ac_abs_builddir in
25789 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25791 case $ac_top_srcdir in
25792 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25793 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25794 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25799 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25800 echo "$as_me: executing $ac_dest commands" >&6;}
25802 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25803 # Strip MF so we end up with the name of the file.
25804 mf=`echo "$mf" | sed -e 's/:.*$//'`
25805 # Check whether this is an Automake generated Makefile or not.
25806 # We used to match only the files named `Makefile.in', but
25807 # some people rename them; so instead we look at the file content.
25808 # Grep'ing the first line is not enough: some people post-process
25809 # each Makefile.in and add a new line on top of each file to say so.
25810 # So let's grep whole file.
25811 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25812 dirpart=`(dirname "$mf") 2>/dev/null ||
25813 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25814 X"$mf" : 'X\(//\)[^/]' \| \
25815 X"$mf" : 'X\(//\)$' \| \
25816 X"$mf" : 'X\(/\)' \| \
25817 . : '\(.\)' 2>/dev/null ||
25819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25820 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25821 /^X\(\/\/\)$/{ s//\1/; q; }
25822 /^X\(\/\).*/{ s//\1/; q; }
25827 # Extract the definition of DEPDIR, am__include, and am__quote
25828 # from the Makefile without running `make'.
25829 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25830 test -z "$DEPDIR" && continue
25831 am__include=`sed -n 's/^am__include = //p' < "$mf"`
25832 test -z "am__include" && continue
25833 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
25834 # When using ansi2knr, U may be empty or an underscore; expand it
25835 U=`sed -n 's/^U = //p' < "$mf"`
25836 # Find all dependency output files, they are included files with
25837 # $(DEPDIR) in their names. We invoke sed twice because it is the
25838 # simplest approach to changing $(DEPDIR) to its actual value in the
25840 for file in `sed -n "
25841 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
25842 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25843 # Make sure the directory exists.
25844 test -f "$dirpart/$file" && continue
25845 fdir=`(dirname "$file") 2>/dev/null ||
25846 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25847 X"$file" : 'X\(//\)[^/]' \| \
25848 X"$file" : 'X\(//\)$' \| \
25849 X"$file" : 'X\(/\)' \| \
25850 . : '\(.\)' 2>/dev/null ||
25852 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25853 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25854 /^X\(\/\/\)$/{ s//\1/; q; }
25855 /^X\(\/\).*/{ s//\1/; q; }
25857 { if $as_mkdir_p; then
25858 mkdir -p $dirpart/$fdir
25860 as_dir=$dirpart/$fdir
25862 while test ! -d "$as_dir"; do
25863 as_dirs="$as_dir $as_dirs"
25864 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25865 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25866 X"$as_dir" : 'X\(//\)[^/]' \| \
25867 X"$as_dir" : 'X\(//\)$' \| \
25868 X"$as_dir" : 'X\(/\)' \| \
25869 . : '\(.\)' 2>/dev/null ||
25871 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25872 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25873 /^X\(\/\/\)$/{ s//\1/; q; }
25874 /^X\(\/\).*/{ s//\1/; q; }
25877 test ! -n "$as_dirs" || mkdir $as_dirs
25878 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25879 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25880 { (exit 1); exit 1; }; }; }
25882 # echo "creating $dirpart/$file"
25883 echo '# dummy' > "$dirpart/$file"
25891 cat >>$CONFIG_STATUS <<\_ACEOF
25893 { (exit 0); exit 0; }
25895 chmod +x $CONFIG_STATUS
25896 ac_clean_files=$ac_clean_files_save
25899 # configure is writing to config.log, and then calls config.status.
25900 # config.status does its own redirection, appending to config.log.
25901 # Unfortunately, on DOS this fails, as config.log is still kept open
25902 # by configure, so config.status won't be able to write to it; its
25903 # output is simply discarded. So we exec the FD to /dev/null,
25904 # effectively closing config.log, so it can be properly (re)opened and
25905 # appended to by config.status. When coming back to configure, we
25906 # need to make the FD available again.
25907 if test "$no_create" != yes; then
25909 ac_config_status_args=
25910 test "$silent" = yes &&
25911 ac_config_status_args="$ac_config_status_args --quiet"
25913 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25915 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25916 # would make configure fail if this is the last instruction.
25917 $ac_cs_success || { (exit 1); exit 1; }