2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59 for shibboleth 2.3.
5 # Report bugs to <shibboleth-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='shibboleth'
425 PACKAGE_TARNAME='shibboleth'
426 PACKAGE_VERSION='2.3'
427 PACKAGE_STRING='shibboleth 2.3'
428 PACKAGE_BUGREPORT='shibboleth-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_PERL ac_pt_DX_PERL DX_COND_doc_TRUE DX_COND_doc_FALSE DX_FLAG_dot DX_DOT ac_pt_DX_DOT DX_COND_dot_TRUE DX_COND_dot_FALSE DX_FLAG_man DX_COND_man_TRUE DX_COND_man_FALSE DX_FLAG_rtf DX_COND_rtf_TRUE DX_COND_rtf_FALSE DX_FLAG_xml DX_COND_xml_TRUE DX_COND_xml_FALSE DX_FLAG_chm DX_HHC ac_pt_DX_HHC DX_COND_chm_TRUE DX_COND_chm_FALSE DX_FLAG_chi DX_COND_chi_TRUE DX_COND_chi_FALSE DX_FLAG_html DX_COND_html_TRUE DX_COND_html_FALSE DX_FLAG_ps DX_LATEX ac_pt_DX_LATEX DX_MAKEINDEX ac_pt_DX_MAKEINDEX DX_DVIPS ac_pt_DX_DVIPS DX_EGREP ac_pt_DX_EGREP DX_COND_ps_TRUE DX_COND_ps_FALSE DX_FLAG_pdf DX_PDFLATEX ac_pt_DX_PDFLATEX 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 XMLTOOLINGXMLDIR OPENSAMLXMLDIR LITE_LIBS XMLSEC_LIBS NSAPI_INCLUDE BUILD_NSAPI_TRUE BUILD_NSAPI_FALSE FASTCGI_INCLUDE FASTCGI_LDFLAGS FASTCGI_LIBS BUILD_FASTCGI_TRUE BUILD_FASTCGI_FALSE MEMCACHED_INCLUDE MEMCACHED_LDFLAGS MEMCACHED_LIBS BUILD_MEMCACHED_TRUE BUILD_MEMCACHED_FALSE xs APXS APXS_CFLAGS APXS_INCLUDE APXS2 APR_CONFIG APU_CONFIG APXS2_CFLAGS APXS2_INCLUDE APXS22 APR1_CONFIG APU1_CONFIG APXS22_CFLAGS APXS22_INCLUDE BUILD_AP13_TRUE BUILD_AP13_FALSE BUILD_AP20_TRUE BUILD_AP20_FALSE BUILD_AP22_TRUE BUILD_AP22_FALSE ODBC_CONFIG ODBC_CFLAGS ODBC_LIBS WANT_SUBDIRS 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 shibboleth 2.3 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 shibboleth 2.3:";;
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)
1054 --disable-adfs don't build the ADFS module
1055 --enable-apache-13 enable the Apache 1.3 module
1056 --enable-apache-20 enable the Apache 2.0 module
1057 --enable-apache-22 enable the Apache 2.2 module
1058 --disable-odbc disable the ODBC Storage Service
1061 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1062 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1063 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1064 --with-pic try to use only PIC/non-PIC objects [default=use
1067 include additional configurations [automatic]
1068 --with-openssl=PATH where openssl is installed
1069 --with-log4shib=PATH where log4shib-config is installed
1070 --with-log4cpp=PATH where log4cpp-config is installed
1071 --with-xerces=PATH where xerces-c is installed
1072 --with-xmltooling=PATH where xmltooling-c is installed
1073 --with-xmlsec=PATH where xmlsec is installed
1074 --with-saml=PATH where saml is installed
1075 --with-nsapi=DIR Build NSAPI module for Netscape/iPlanet/SunONE
1076 --with-fastcgi=DIR Build FastCGI support
1077 --with-memcached=DIR Build Memcached support
1078 --with-apxs=FILE Specifies where to find the Apache 1.3 apxs script.
1079 --with-apxs2=FILE Specifies where to find the Apache 2.0 apxs script.
1080 --with-apr=PATH where apr-config is installed
1081 --with-apu=PATH where apu-config is installed
1082 --with-apxs22=FILE Specifies where to find the Apache 2.2 apxs script.
1083 --with-apr1=PATH where apr-1-config is installed
1084 --with-apu1=PATH where apu-1-config is installed
1085 --with-odbc=PATH directory where odbc is installed
1087 Some influential environment variables:
1089 a4wide (default), a4, letter, legal or executive
1090 CC C compiler command
1091 CFLAGS C compiler flags
1092 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1093 nonstandard directory <lib dir>
1094 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095 headers in a nonstandard directory <include dir>
1096 CXX C++ compiler command
1097 CXXFLAGS C++ compiler flags
1099 CXXCPP C++ preprocessor
1100 F77 Fortran 77 compiler command
1101 FFLAGS Fortran 77 compiler flags
1103 Use these variables to override the choices made by `configure' or to help
1104 it to find libraries and programs with nonstandard names/locations.
1106 Report bugs to <shibboleth-users@internet2.edu>.
1110 if test "$ac_init_help" = "recursive"; then
1111 # If there are subdirs, report their specific --help.
1113 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114 test -d $ac_dir || continue
1117 if test "$ac_dir" != .; then
1118 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119 # A "../" for each directory in $ac_dir_suffix.
1120 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1122 ac_dir_suffix= ac_top_builddir=
1126 .) # No --srcdir option. We are building in place.
1128 if test -z "$ac_top_builddir"; then
1131 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1133 [\\/]* | ?:[\\/]* ) # Absolute path.
1134 ac_srcdir=$srcdir$ac_dir_suffix;
1135 ac_top_srcdir=$srcdir ;;
1137 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1141 # Do not use `cd foo && pwd` to compute absolute paths, because
1142 # the directories may not exist.
1144 .) ac_abs_builddir="$ac_dir";;
1147 .) ac_abs_builddir=`pwd`;;
1148 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1152 case $ac_abs_builddir in
1153 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1155 case ${ac_top_builddir}. in
1156 .) ac_abs_top_builddir=$ac_abs_builddir;;
1157 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1161 case $ac_abs_builddir in
1162 .) ac_abs_srcdir=$ac_srcdir;;
1165 .) ac_abs_srcdir=$ac_abs_builddir;;
1166 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1170 case $ac_abs_builddir in
1171 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1173 case $ac_top_srcdir in
1174 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181 # Check for guested configure; otherwise get Cygnus style configure.
1182 if test -f $ac_srcdir/configure.gnu; then
1184 $SHELL $ac_srcdir/configure.gnu --help=recursive
1185 elif test -f $ac_srcdir/configure; then
1187 $SHELL $ac_srcdir/configure --help=recursive
1188 elif test -f $ac_srcdir/configure.ac ||
1189 test -f $ac_srcdir/configure.in; then
1191 $ac_configure --help
1193 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1199 test -n "$ac_init_help" && exit 0
1200 if $ac_init_version; then
1202 shibboleth configure 2.3
1203 generated by GNU Autoconf 2.59
1205 Copyright (C) 2003 Free Software Foundation, Inc.
1206 This configure script is free software; the Free Software Foundation
1207 gives unlimited permission to copy, distribute and modify it.
1213 This file contains any messages produced by compilers while
1214 running configure, to aid debugging if configure makes a mistake.
1216 It was created by shibboleth $as_me 2.3, which was
1217 generated by GNU Autoconf 2.59. Invocation command line was
1228 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1229 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1230 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1231 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1232 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1234 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1235 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1237 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1238 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1239 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1240 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1241 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1242 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1243 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1251 test -z "$as_dir" && as_dir=.
1252 echo "PATH: $as_dir"
1267 # Keep a trace of the command line.
1268 # Strip out --no-create and --no-recursion so they do not pile up.
1269 # Strip out --silent because we don't want to record it for future runs.
1270 # Also quote any args containing shell meta-characters.
1271 # Make two passes to allow for proper duplicate-argument suppression.
1276 ac_must_keep_next=false
1282 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1283 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1284 | -silent | --silent | --silen | --sile | --sil)
1286 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1287 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1290 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1292 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1293 if test $ac_must_keep_next = true; then
1294 ac_must_keep_next=false # Got value, back to normal.
1297 *=* | --config-cache | -C | -disable-* | --disable-* \
1298 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1299 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1300 | -with-* | --with-* | -without-* | --without-* | --x)
1301 case "$ac_configure_args0 " in
1302 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1305 -* ) ac_must_keep_next=true ;;
1308 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1309 # Get rid of the leading space.
1315 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1316 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1318 # When interrupted or exit'd, cleanup temporary files, and complete
1319 # config.log. We remove comments because anyway the quotes in there
1320 # would cause problems or look ugly.
1321 # WARNING: Be sure not to use single quotes in there, as some shells,
1322 # such as our DU 5.0 friend, will then `close' the trap.
1323 trap 'exit_status=$?
1324 # Save into config.log some information that might help in debugging.
1329 ## ---------------- ##
1330 ## Cache variables. ##
1331 ## ---------------- ##
1334 # The following way of writing the cache mishandles newlines in values,
1337 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1340 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1341 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1345 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352 ## ----------------- ##
1353 ## Output variables. ##
1354 ## ----------------- ##
1357 for ac_var in $ac_subst_vars
1359 eval ac_val=$`echo $ac_var`
1360 echo "$ac_var='"'"'$ac_val'"'"'"
1364 if test -n "$ac_subst_files"; then
1371 for ac_var in $ac_subst_files
1373 eval ac_val=$`echo $ac_var`
1374 echo "$ac_var='"'"'$ac_val'"'"'"
1379 if test -s confdefs.h; then
1386 sed "/^$/d" confdefs.h | sort
1389 test "$ac_signal" != 0 &&
1390 echo "$as_me: caught signal $ac_signal"
1391 echo "$as_me: exit $exit_status"
1393 rm -f core *.core &&
1394 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1397 for ac_signal in 1 2 13 15; do
1398 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1402 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1403 rm -rf conftest* confdefs.h
1404 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1407 # Predefined preprocessor variables.
1409 cat >>confdefs.h <<_ACEOF
1410 #define PACKAGE_NAME "$PACKAGE_NAME"
1414 cat >>confdefs.h <<_ACEOF
1415 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1419 cat >>confdefs.h <<_ACEOF
1420 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1424 cat >>confdefs.h <<_ACEOF
1425 #define PACKAGE_STRING "$PACKAGE_STRING"
1429 cat >>confdefs.h <<_ACEOF
1430 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1434 # Let the site file select an alternate cache file if it wants to.
1435 # Prefer explicitly selected file to automatically selected ones.
1436 if test -z "$CONFIG_SITE"; then
1437 if test "x$prefix" != xNONE; then
1438 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1440 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1443 for ac_site_file in $CONFIG_SITE; do
1444 if test -r "$ac_site_file"; then
1445 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1446 echo "$as_me: loading site script $ac_site_file" >&6;}
1447 sed 's/^/| /' "$ac_site_file" >&5
1452 if test -r "$cache_file"; then
1453 # Some versions of bash will fail to source /dev/null (special
1454 # files actually), so we avoid doing that.
1455 if test -f "$cache_file"; then
1456 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1457 echo "$as_me: loading cache $cache_file" >&6;}
1459 [\\/]* | ?:[\\/]* ) . $cache_file;;
1460 *) . ./$cache_file;;
1464 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1465 echo "$as_me: creating cache $cache_file" >&6;}
1469 # Check that the precious variables saved in the cache have kept the same
1471 ac_cache_corrupted=false
1472 for ac_var in `(set) 2>&1 |
1473 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1474 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1475 eval ac_new_set=\$ac_env_${ac_var}_set
1476 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1477 eval ac_new_val="\$ac_env_${ac_var}_value"
1478 case $ac_old_set,$ac_new_set in
1480 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1481 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1482 ac_cache_corrupted=: ;;
1484 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1485 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1486 ac_cache_corrupted=: ;;
1489 if test "x$ac_old_val" != "x$ac_new_val"; then
1490 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1491 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1492 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1493 echo "$as_me: former value: $ac_old_val" >&2;}
1494 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1495 echo "$as_me: current value: $ac_new_val" >&2;}
1496 ac_cache_corrupted=:
1499 # Pass precious variables to config.status.
1500 if test "$ac_new_set" = set; then
1502 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1503 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1504 *) ac_arg=$ac_var=$ac_new_val ;;
1506 case " $ac_configure_args " in
1507 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1508 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1512 if $ac_cache_corrupted; then
1513 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1514 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1515 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1516 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1517 { (exit 1); exit 1; }; }
1521 ac_cpp='$CPP $CPPFLAGS'
1522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1552 ac_config_headers="$ac_config_headers config.h"
1554 am__api_version="1.9"
1556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1557 if test -f $ac_dir/install-sh; then
1559 ac_install_sh="$ac_aux_dir/install-sh -c"
1561 elif test -f $ac_dir/install.sh; then
1563 ac_install_sh="$ac_aux_dir/install.sh -c"
1565 elif test -f $ac_dir/shtool; then
1567 ac_install_sh="$ac_aux_dir/shtool install -c"
1571 if test -z "$ac_aux_dir"; then
1572 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1573 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1574 { (exit 1); exit 1; }; }
1576 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1577 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1578 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1580 # Find a good install program. We prefer a C program (faster),
1581 # so one script is as good as another. But avoid the broken or
1582 # incompatible versions:
1583 # SysV /etc/install, /usr/sbin/install
1584 # SunOS /usr/etc/install
1585 # IRIX /sbin/install
1587 # AmigaOS /C/install, which installs bootblocks on floppy discs
1588 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1589 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1590 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1591 # OS/2's system install, which has a completely different semantic
1592 # ./install, which can be erroneously created by make from ./install.sh.
1593 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1594 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1595 if test -z "$INSTALL"; then
1596 if test "${ac_cv_path_install+set}" = set; then
1597 echo $ECHO_N "(cached) $ECHO_C" >&6
1599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1603 test -z "$as_dir" && as_dir=.
1604 # Account for people who put trailing slashes in PATH elements.
1606 ./ | .// | /cC/* | \
1607 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1608 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1611 # OSF1 and SCO ODT 3.0 have their own names for install.
1612 # Don't use installbsd from OSF since it installs stuff as root
1614 for ac_prog in ginstall scoinst install; do
1615 for ac_exec_ext in '' $ac_executable_extensions; do
1616 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1617 if test $ac_prog = install &&
1618 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1619 # AIX install. It has an incompatible calling convention.
1621 elif test $ac_prog = install &&
1622 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1623 # program-specific install script used by HP pwplus--don't use.
1626 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1638 if test "${ac_cv_path_install+set}" = set; then
1639 INSTALL=$ac_cv_path_install
1641 # As a last resort, use the slow shell script. We don't cache a
1642 # path for INSTALL within a source directory, because that will
1643 # break other packages using the cache if that directory is
1644 # removed, or if the path is relative.
1645 INSTALL=$ac_install_sh
1648 echo "$as_me:$LINENO: result: $INSTALL" >&5
1649 echo "${ECHO_T}$INSTALL" >&6
1651 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1652 # It thinks the first close brace ends the variable substitution.
1653 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1655 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1657 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1659 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1660 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1663 echo timestamp > conftest.file
1664 # Do `set' in a subshell so we don't clobber the current shell's
1665 # arguments. Must try -L first in case configure is actually a
1666 # symlink; some systems play weird games with the mod time of symlinks
1667 # (eg FreeBSD returns the mod time of the symlink's containing
1670 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1671 if test "$*" = "X"; then
1673 set X `ls -t $srcdir/configure conftest.file`
1676 if test "$*" != "X $srcdir/configure conftest.file" \
1677 && test "$*" != "X conftest.file $srcdir/configure"; then
1679 # If neither matched, then we have a broken ls. This can happen
1680 # if, for instance, CONFIG_SHELL is bash and it inherits a
1681 # broken ls alias from the environment. This has actually
1682 # happened. Such a system could not be considered "sane".
1683 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1684 alias in your environment" >&5
1685 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1686 alias in your environment" >&2;}
1687 { (exit 1); exit 1; }; }
1690 test "$2" = conftest.file
1696 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1697 Check your system clock" >&5
1698 echo "$as_me: error: newly created file is older than distributed files!
1699 Check your system clock" >&2;}
1700 { (exit 1); exit 1; }; }
1702 echo "$as_me:$LINENO: result: yes" >&5
1703 echo "${ECHO_T}yes" >&6
1704 test "$program_prefix" != NONE &&
1705 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1706 # Use a double $ so make ignores it.
1707 test "$program_suffix" != NONE &&
1708 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1709 # Double any \ or $. echo might interpret backslashes.
1710 # By default was `s,x,x', remove it if useless.
1711 cat <<\_ACEOF >conftest.sed
1712 s/[\\$]/&&/g;s/;s,x,x,$//
1714 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1717 # expand $ac_aux_dir to an absolute path
1718 am_aux_dir=`cd $ac_aux_dir && pwd`
1720 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1721 # Use eval to expand $SHELL
1722 if eval "$MISSING --run true"; then
1723 am_missing_run="$MISSING --run "
1726 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1727 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1730 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1731 # We used to keeping the `.' as first argument, in order to
1732 # allow $(mkdir_p) to be used without argument. As in
1733 # $(mkdir_p) $(somedir)
1734 # where $(somedir) is conditionally defined. However this is wrong
1736 # 1. if the package is installed by a user who cannot write `.'
1737 # make install will fail,
1738 # 2. the above comment should most certainly read
1739 # $(mkdir_p) $(DESTDIR)$(somedir)
1740 # so it does not work when $(somedir) is undefined and
1741 # $(DESTDIR) is not.
1742 # To support the latter case, we have to write
1743 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1744 # so the `.' trick is pointless.
1745 mkdir_p='mkdir -p --'
1747 # On NextStep and OpenStep, the `mkdir' command does not
1748 # recognize any option. It will interpret all options as
1749 # directories to create, and then abort because `.' already
1751 for d in ./-p ./--version;
1753 test -d $d && rmdir $d
1755 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1756 if test -f "$ac_aux_dir/mkinstalldirs"; then
1757 mkdir_p='$(mkinstalldirs)'
1759 mkdir_p='$(install_sh) -d'
1763 for ac_prog in gawk mawk nawk awk
1765 # Extract the first word of "$ac_prog", so it can be a program name with args.
1766 set dummy $ac_prog; ac_word=$2
1767 echo "$as_me:$LINENO: checking for $ac_word" >&5
1768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1769 if test "${ac_cv_prog_AWK+set}" = set; then
1770 echo $ECHO_N "(cached) $ECHO_C" >&6
1772 if test -n "$AWK"; then
1773 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1779 test -z "$as_dir" && as_dir=.
1780 for ac_exec_ext in '' $ac_executable_extensions; do
1781 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1782 ac_cv_prog_AWK="$ac_prog"
1783 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1792 if test -n "$AWK"; then
1793 echo "$as_me:$LINENO: result: $AWK" >&5
1794 echo "${ECHO_T}$AWK" >&6
1796 echo "$as_me:$LINENO: result: no" >&5
1797 echo "${ECHO_T}no" >&6
1800 test -n "$AWK" && break
1803 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1804 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1805 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1806 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1807 echo $ECHO_N "(cached) $ECHO_C" >&6
1809 cat >conftest.make <<\_ACEOF
1811 @echo 'ac_maketemp="$(MAKE)"'
1813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1814 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1815 if test -n "$ac_maketemp"; then
1816 eval ac_cv_prog_make_${ac_make}_set=yes
1818 eval ac_cv_prog_make_${ac_make}_set=no
1822 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1823 echo "$as_me:$LINENO: result: yes" >&5
1824 echo "${ECHO_T}yes" >&6
1827 echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 SET_MAKE="MAKE=${MAKE-make}"
1832 rm -rf .tst 2>/dev/null
1833 mkdir .tst 2>/dev/null
1834 if test -d .tst; then
1839 rmdir .tst 2>/dev/null
1841 # test to see if srcdir already configured
1842 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1843 test -f $srcdir/config.status; then
1844 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1845 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1846 { (exit 1); exit 1; }; }
1849 # test whether we have cygpath
1850 if test -z "$CYGPATH_W"; then
1851 if (cygpath --version) >/dev/null 2>/dev/null; then
1852 CYGPATH_W='cygpath -w'
1859 # Define the identity of the package.
1864 cat >>confdefs.h <<_ACEOF
1865 #define PACKAGE "$PACKAGE"
1869 cat >>confdefs.h <<_ACEOF
1870 #define VERSION "$VERSION"
1873 # Some tools Automake needs.
1875 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1878 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1881 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1884 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1887 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1889 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1891 # Installed binaries are usually stripped using `strip' when the user
1892 # run `make install-strip'. However `strip' might not be the right
1893 # tool to use in cross-compilation environments, therefore Automake
1894 # will honor the `STRIP' environment variable to overrule this program.
1895 if test "$cross_compiling" != no; then
1896 if test -n "$ac_tool_prefix"; then
1897 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1898 set dummy ${ac_tool_prefix}strip; ac_word=$2
1899 echo "$as_me:$LINENO: checking for $ac_word" >&5
1900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1901 if test "${ac_cv_prog_STRIP+set}" = set; then
1902 echo $ECHO_N "(cached) $ECHO_C" >&6
1904 if test -n "$STRIP"; then
1905 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1911 test -z "$as_dir" && as_dir=.
1912 for ac_exec_ext in '' $ac_executable_extensions; do
1913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1914 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1923 STRIP=$ac_cv_prog_STRIP
1924 if test -n "$STRIP"; then
1925 echo "$as_me:$LINENO: result: $STRIP" >&5
1926 echo "${ECHO_T}$STRIP" >&6
1928 echo "$as_me:$LINENO: result: no" >&5
1929 echo "${ECHO_T}no" >&6
1933 if test -z "$ac_cv_prog_STRIP"; then
1935 # Extract the first word of "strip", so it can be a program name with args.
1936 set dummy strip; ac_word=$2
1937 echo "$as_me:$LINENO: checking for $ac_word" >&5
1938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1939 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1940 echo $ECHO_N "(cached) $ECHO_C" >&6
1942 if test -n "$ac_ct_STRIP"; then
1943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 for ac_exec_ext in '' $ac_executable_extensions; do
1951 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1952 ac_cv_prog_ac_ct_STRIP="strip"
1953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1959 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1963 if test -n "$ac_ct_STRIP"; then
1964 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1965 echo "${ECHO_T}$ac_ct_STRIP" >&6
1967 echo "$as_me:$LINENO: result: no" >&5
1968 echo "${ECHO_T}no" >&6
1973 STRIP="$ac_cv_prog_STRIP"
1977 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1979 # We need awk for the "check" target. The system "awk" is bad on
1981 # Always define AMTAR for backward compatibility.
1983 AMTAR=${AMTAR-"${am_missing_run}tar"}
1985 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1992 # This file is part of Autoconf. -*- Autoconf -*-
1994 # Copyright (C) 2004 Oren Ben-Kiki
1995 # This file is distributed under the same terms as the Autoconf macro files.
1997 # Generate automatic documentation using Doxygen. Works in concert with the
1998 # aminclude.m4 file and a compatible doxygen configuration file. Defines the
1999 # following public macros:
2001 # DX_???_FEATURE(ON|OFF) - control the default setting fo a Doxygen feature.
2002 # Supported features are 'DOXYGEN' itself, 'DOT' for generating graphics,
2003 # 'HTML' for plain HTML, 'CHM' for compressed HTML help (for MS users), 'CHI'
2004 # for generating a seperate .chi file by the .chm file, and 'MAN', 'RTF',
2005 # 'XML', 'PDF' and 'PS' for the appropriate output formats. The environment
2006 # variable DOXYGEN_PAPER_SIZE may be specified to override the default 'a4wide'
2009 # By default, HTML, PDF and PS documentation is generated as this seems to be
2010 # the most popular and portable combination. MAN pages created by Doxygen are
2011 # usually problematic, though by picking an appropriate subset and doing some
2012 # massaging they might be better than nothing. CHM and RTF are specific for MS
2013 # (note that you can't generate both HTML and CHM at the same time). The XML is
2014 # rather useless unless you apply specialized post-processing to it.
2016 # The macro mainly controls the default state of the feature. The use can
2017 # override the default by specifying --enable or --disable. The macros ensure
2018 # that contradictory flags are not given (e.g., --enable-doxygen-html and
2019 # --enable-doxygen-chm, --enable-doxygen-anything with --disable-doxygen, etc.)
2020 # Finally, each feature will be automatically disabled (with a warning) if the
2021 # required programs are missing.
2023 # Once all the feature defaults have been specified, call DX_INIT_DOXYGEN with
2024 # the following parameters: a one-word name for the project for use as a
2025 # filename base etc., an optional configuration file name (the default is
2026 # 'Doxyfile', the same as Doxygen's default), and an optional output directory
2027 # name (the default is 'doxygen-doc').
2045 # Compatibility with older autoconf versions.
2048 ## --------------- ##
2049 ## Private macros. ##
2050 ## --------------- ##
2052 # DX_ENV_APPEND(VARIABLE, VALUE)
2053 # ------------------------------
2054 # Append VARIABLE="VALUE" to DX_ENV for invoking doxygen.
2059 # Expand into a shell expression prints the directory part of a path.
2062 # DX_IF_FEATURE(FEATURE, IF-ON, IF-OFF)
2063 # -------------------------------------
2064 # Expands according to the M4 (static) status of the feature.
2067 # DX_REQUIRE_PROG(VARIABLE, PROGRAM)
2068 # ----------------------------------
2069 # Require the specified program to be found for the DX_CURRENT_FEATURE to work.
2072 # DX_TEST_FEATURE(FEATURE)
2073 # ------------------------
2074 # Expand to a shell expression testing whether the feature is active.
2077 # DX_CHECK_DEPEND(REQUIRED_FEATURE, REQUIRED_STATE)
2078 # -------------------------------------------------
2079 # Verify that a required features has the right state before trying to turn on
2080 # the DX_CURRENT_FEATURE.
2083 # DX_CLEAR_DEPEND(FEATURE, REQUIRED_FEATURE, REQUIRED_STATE)
2084 # ----------------------------------------------------------
2085 # Turn off the DX_CURRENT_FEATURE if the required feature is off.
2088 # DX_FEATURE_ARG(FEATURE, DESCRIPTION,
2089 # CHECK_DEPEND, CLEAR_DEPEND,
2090 # REQUIRE, DO-IF-ON, DO-IF-OFF)
2091 # --------------------------------------------
2092 # Parse the command-line option controlling a feature. CHECK_DEPEND is called
2093 # if the user explicitly turns the feature on (and invokes DX_CHECK_DEPEND),
2094 # otherwise CLEAR_DEPEND is called to turn off the default state if a required
2095 # feature is disabled (using DX_CLEAR_DEPEND). REQUIRE performs additional
2096 # requirement tests (DX_REQUIRE_PROG). Finally, an automake flag is set and
2097 # DO-IF-ON or DO-IF-OFF are called according to the final state of the feature.
2100 ## -------------- ##
2101 ## Public macros. ##
2102 ## -------------- ##
2104 # DX_XXX_FEATURE(DEFAULT_STATE)
2105 # -----------------------------
2117 # DX_INIT_DOXYGEN(PROJECT, [CONFIG-FILE], [OUTPUT-DOC-DIR])
2118 # ---------------------------------------------------------
2119 # PROJECT also serves as the base name for the documentation files.
2120 # The default CONFIG-FILE is "Doxyfile" and OUTPUT-DOC-DIR is "doxygen-doc".
2123 ##### http://autoconf-archive.cryp.to/acx_pthread.html
2127 # ACX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
2131 # This macro figures out how to build C programs using POSIX threads.
2132 # It sets the PTHREAD_LIBS output variable to the threads library and
2133 # linker flags, and the PTHREAD_CFLAGS output variable to any special
2134 # C compiler flags that are needed. (The user can also force certain
2135 # compiler flags/libs to be tested by setting these environment
2138 # Also sets PTHREAD_CC to any special C compiler that is needed for
2139 # multi-threaded programs (defaults to the value of CC otherwise).
2140 # (This is necessary on AIX to use the special cc_r compiler alias.)
2142 # NOTE: You are assumed to not only compile your program with these
2143 # flags, but also link it with them as well. e.g. you should link
2144 # with $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS
2147 # If you are only building threads programs, you may wish to use
2148 # these variables in your default LIBS, CFLAGS, and CC:
2150 # LIBS="$PTHREAD_LIBS $LIBS"
2151 # CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2154 # In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute
2155 # constant has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to
2156 # that name (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
2158 # ACTION-IF-FOUND is a list of shell commands to run if a threads
2159 # library is found, and ACTION-IF-NOT-FOUND is a list of commands to
2160 # run it if it is not found. If ACTION-IF-FOUND is not specified, the
2161 # default action will define HAVE_PTHREAD.
2163 # Please let the authors know if this macro fails on any platform, or
2164 # if you have any other suggestions or comments. This macro was based
2165 # on work by SGJ on autoconf scripts for FFTW (http://www.fftw.org/)
2166 # (with help from M. Frigo), as well as ac_pthread and hb_pthread
2167 # macros posted by Alejandro Forero Cuervo to the autoconf macro
2168 # repository. We are also grateful for the helpful feedback of
2177 # Copyright (c) 2006 Steven G. Johnson <stevenj@alum.mit.edu>
2179 # This program is free software; you can redistribute it and/or
2180 # modify it under the terms of the GNU General Public License as
2181 # published by the Free Software Foundation; either version 2 of the
2182 # License, or (at your option) any later version.
2184 # This program is distributed in the hope that it will be useful, but
2185 # WITHOUT ANY WARRANTY; without even the implied warranty of
2186 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
2187 # General Public License for more details.
2189 # You should have received a copy of the GNU General Public License
2190 # along with this program; if not, write to the Free Software
2191 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
2194 # As a special exception, the respective Autoconf Macro's copyright
2195 # owner gives unlimited permission to copy, distribute and modify the
2196 # configure scripts that are the output of Autoconf when processing
2197 # the Macro. You need not follow the terms of the GNU General Public
2198 # License when using or distributing such scripts, even though
2199 # portions of the text of the Macro appear in them. The GNU General
2200 # Public License (GPL) does govern all other use of the material that
2201 # constitutes the Autoconf Macro.
2203 # This special exception to the GPL applies to versions of the
2204 # Autoconf Macro released by the Autoconf Macro Archive. When you
2205 # make and distribute a modified version of the Autoconf Macro, you
2206 # may extend this special exception to the GPL to apply to your
2207 # modified version as well.
2223 DX_PROJECT=shibboleth
2225 DX_CONFIG=doxygen.cfg
2230 # Environment variables used inside doxygen.cfg:
2231 DX_ENV="$DX_ENV SRCDIR='$srcdir'"
2233 DX_ENV="$DX_ENV PROJECT='$DX_PROJECT'"
2235 DX_ENV="$DX_ENV DOCDIR='$DX_DOCDIR'"
2237 DX_ENV="$DX_ENV VERSION='$PACKAGE_VERSION'"
2244 # Check whether --enable-doxygen-doc or --disable-doxygen-doc was given.
2245 if test "${enable_doxygen_doc+set}" = set; then
2246 enableval="$enable_doxygen_doc"
2248 case "$enableval" in
2260 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-doc" >&5
2261 echo "$as_me: error: invalid value '$enableval' given to doxygen-doc" >&2;}
2262 { (exit 1); exit 1; }; }
2273 if test "$DX_FLAG_doc" = 1; then
2275 if test -n "$ac_tool_prefix"; then
2276 # Extract the first word of "${ac_tool_prefix}doxygen", so it can be a program name with args.
2277 set dummy ${ac_tool_prefix}doxygen; ac_word=$2
2278 echo "$as_me:$LINENO: checking for $ac_word" >&5
2279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2280 if test "${ac_cv_path_DX_DOXYGEN+set}" = set; then
2281 echo $ECHO_N "(cached) $ECHO_C" >&6
2285 ac_cv_path_DX_DOXYGEN="$DX_DOXYGEN" # Let the user override the test with a path.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295 ac_cv_path_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 DX_DOXYGEN=$ac_cv_path_DX_DOXYGEN
2307 if test -n "$DX_DOXYGEN"; then
2308 echo "$as_me:$LINENO: result: $DX_DOXYGEN" >&5
2309 echo "${ECHO_T}$DX_DOXYGEN" >&6
2311 echo "$as_me:$LINENO: result: no" >&5
2312 echo "${ECHO_T}no" >&6
2316 if test -z "$ac_cv_path_DX_DOXYGEN"; then
2317 ac_pt_DX_DOXYGEN=$DX_DOXYGEN
2318 # Extract the first word of "doxygen", so it can be a program name with args.
2319 set dummy doxygen; ac_word=$2
2320 echo "$as_me:$LINENO: checking for $ac_word" >&5
2321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2322 if test "${ac_cv_path_ac_pt_DX_DOXYGEN+set}" = set; then
2323 echo $ECHO_N "(cached) $ECHO_C" >&6
2325 case $ac_pt_DX_DOXYGEN in
2327 ac_cv_path_ac_pt_DX_DOXYGEN="$ac_pt_DX_DOXYGEN" # Let the user override the test with a path.
2330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2334 test -z "$as_dir" && as_dir=.
2335 for ac_exec_ext in '' $ac_executable_extensions; do
2336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2337 ac_cv_path_ac_pt_DX_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
2338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2347 ac_pt_DX_DOXYGEN=$ac_cv_path_ac_pt_DX_DOXYGEN
2349 if test -n "$ac_pt_DX_DOXYGEN"; then
2350 echo "$as_me:$LINENO: result: $ac_pt_DX_DOXYGEN" >&5
2351 echo "${ECHO_T}$ac_pt_DX_DOXYGEN" >&6
2353 echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6
2357 DX_DOXYGEN=$ac_pt_DX_DOXYGEN
2359 DX_DOXYGEN="$ac_cv_path_DX_DOXYGEN"
2362 if test "$DX_FLAG_doc$DX_DOXYGEN" = 1; then
2363 { echo "$as_me:$LINENO: WARNING: doxygen not found - will not generate any doxygen documentation" >&5
2364 echo "$as_me: WARNING: doxygen not found - will not generate any doxygen documentation" >&2;}
2370 if test -n "$ac_tool_prefix"; then
2371 # Extract the first word of "${ac_tool_prefix}perl", so it can be a program name with args.
2372 set dummy ${ac_tool_prefix}perl; ac_word=$2
2373 echo "$as_me:$LINENO: checking for $ac_word" >&5
2374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2375 if test "${ac_cv_path_DX_PERL+set}" = set; then
2376 echo $ECHO_N "(cached) $ECHO_C" >&6
2380 ac_cv_path_DX_PERL="$DX_PERL" # Let the user override the test with a path.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 ac_cv_path_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 DX_PERL=$ac_cv_path_DX_PERL
2402 if test -n "$DX_PERL"; then
2403 echo "$as_me:$LINENO: result: $DX_PERL" >&5
2404 echo "${ECHO_T}$DX_PERL" >&6
2406 echo "$as_me:$LINENO: result: no" >&5
2407 echo "${ECHO_T}no" >&6
2411 if test -z "$ac_cv_path_DX_PERL"; then
2412 ac_pt_DX_PERL=$DX_PERL
2413 # Extract the first word of "perl", so it can be a program name with args.
2414 set dummy perl; ac_word=$2
2415 echo "$as_me:$LINENO: checking for $ac_word" >&5
2416 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2417 if test "${ac_cv_path_ac_pt_DX_PERL+set}" = set; then
2418 echo $ECHO_N "(cached) $ECHO_C" >&6
2420 case $ac_pt_DX_PERL in
2422 ac_cv_path_ac_pt_DX_PERL="$ac_pt_DX_PERL" # Let the user override the test with a path.
2425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2429 test -z "$as_dir" && as_dir=.
2430 for ac_exec_ext in '' $ac_executable_extensions; do
2431 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2432 ac_cv_path_ac_pt_DX_PERL="$as_dir/$ac_word$ac_exec_ext"
2433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 ac_pt_DX_PERL=$ac_cv_path_ac_pt_DX_PERL
2444 if test -n "$ac_pt_DX_PERL"; then
2445 echo "$as_me:$LINENO: result: $ac_pt_DX_PERL" >&5
2446 echo "${ECHO_T}$ac_pt_DX_PERL" >&6
2448 echo "$as_me:$LINENO: result: no" >&5
2449 echo "${ECHO_T}no" >&6
2452 DX_PERL=$ac_pt_DX_PERL
2454 DX_PERL="$ac_cv_path_DX_PERL"
2457 if test "$DX_FLAG_doc$DX_PERL" = 1; then
2458 { echo "$as_me:$LINENO: WARNING: perl not found - will not generate any doxygen documentation" >&5
2459 echo "$as_me: WARNING: perl not found - will not generate any doxygen documentation" >&2;}
2466 if test "$DX_FLAG_doc" = 1; then
2471 DX_COND_doc_FALSE='#'
2473 DX_COND_doc_TRUE='#'
2477 DX_ENV="$DX_ENV PERL_PATH='$DX_PERL'"
2485 DX_COND_doc_FALSE='#'
2487 DX_COND_doc_TRUE='#'
2500 # Check whether --enable-doxygen-dot or --disable-doxygen-dot was given.
2501 if test "${enable_doxygen_dot+set}" = set; then
2502 enableval="$enable_doxygen_dot"
2504 case "$enableval" in
2510 test "$DX_FLAG_doc" = "1" \
2511 || { { echo "$as_me:$LINENO: error: doxygen-dot requires doxygen-dot" >&5
2512 echo "$as_me: error: doxygen-dot requires doxygen-dot" >&2;}
2513 { (exit 1); exit 1; }; }
2521 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-dot" >&5
2522 echo "$as_me: error: invalid value '$enableval' given to doxygen-dot" >&2;}
2523 { (exit 1); exit 1; }; }
2532 test "$DX_FLAG_doc" = "1" || DX_FLAG_dot=0
2537 if test "$DX_FLAG_dot" = 1; then
2539 if test -n "$ac_tool_prefix"; then
2540 # Extract the first word of "${ac_tool_prefix}dot", so it can be a program name with args.
2541 set dummy ${ac_tool_prefix}dot; ac_word=$2
2542 echo "$as_me:$LINENO: checking for $ac_word" >&5
2543 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2544 if test "${ac_cv_path_DX_DOT+set}" = set; then
2545 echo $ECHO_N "(cached) $ECHO_C" >&6
2549 ac_cv_path_DX_DOT="$DX_DOT" # Let the user override the test with a path.
2552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2556 test -z "$as_dir" && as_dir=.
2557 for ac_exec_ext in '' $ac_executable_extensions; do
2558 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2559 ac_cv_path_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2560 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 DX_DOT=$ac_cv_path_DX_DOT
2571 if test -n "$DX_DOT"; then
2572 echo "$as_me:$LINENO: result: $DX_DOT" >&5
2573 echo "${ECHO_T}$DX_DOT" >&6
2575 echo "$as_me:$LINENO: result: no" >&5
2576 echo "${ECHO_T}no" >&6
2580 if test -z "$ac_cv_path_DX_DOT"; then
2581 ac_pt_DX_DOT=$DX_DOT
2582 # Extract the first word of "dot", so it can be a program name with args.
2583 set dummy dot; ac_word=$2
2584 echo "$as_me:$LINENO: checking for $ac_word" >&5
2585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2586 if test "${ac_cv_path_ac_pt_DX_DOT+set}" = set; then
2587 echo $ECHO_N "(cached) $ECHO_C" >&6
2589 case $ac_pt_DX_DOT in
2591 ac_cv_path_ac_pt_DX_DOT="$ac_pt_DX_DOT" # Let the user override the test with a path.
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 test -z "$as_dir" && as_dir=.
2599 for ac_exec_ext in '' $ac_executable_extensions; do
2600 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2601 ac_cv_path_ac_pt_DX_DOT="$as_dir/$ac_word$ac_exec_ext"
2602 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2611 ac_pt_DX_DOT=$ac_cv_path_ac_pt_DX_DOT
2613 if test -n "$ac_pt_DX_DOT"; then
2614 echo "$as_me:$LINENO: result: $ac_pt_DX_DOT" >&5
2615 echo "${ECHO_T}$ac_pt_DX_DOT" >&6
2617 echo "$as_me:$LINENO: result: no" >&5
2618 echo "${ECHO_T}no" >&6
2621 DX_DOT=$ac_pt_DX_DOT
2623 DX_DOT="$ac_cv_path_DX_DOT"
2626 if test "$DX_FLAG_dot$DX_DOT" = 1; then
2627 { echo "$as_me:$LINENO: WARNING: dot not found - will not generate graphics for doxygen documentation" >&5
2628 echo "$as_me: WARNING: dot not found - will not generate graphics for doxygen documentation" >&2;}
2635 if test "$DX_FLAG_dot" = 1; then
2640 DX_COND_dot_FALSE='#'
2642 DX_COND_dot_TRUE='#'
2646 DX_ENV="$DX_ENV HAVE_DOT='YES'"
2648 DX_ENV="$DX_ENV DOT_PATH='`expr ".$DX_DOT" : '\(\.\)[^/]*$' \| "x$DX_DOT" : 'x\(.*\)/[^/]*$'`'"
2656 DX_COND_dot_FALSE='#'
2658 DX_COND_dot_TRUE='#'
2662 DX_ENV="$DX_ENV HAVE_DOT='NO'"
2668 # Man pages generation:
2672 # Check whether --enable-doxygen-man or --disable-doxygen-man was given.
2673 if test "${enable_doxygen_man+set}" = set; then
2674 enableval="$enable_doxygen_man"
2676 case "$enableval" in
2682 test "$DX_FLAG_doc" = "1" \
2683 || { { echo "$as_me:$LINENO: error: doxygen-man requires doxygen-man" >&5
2684 echo "$as_me: error: doxygen-man requires doxygen-man" >&2;}
2685 { (exit 1); exit 1; }; }
2693 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-man" >&5
2694 echo "$as_me: error: invalid value '$enableval' given to doxygen-man" >&2;}
2695 { (exit 1); exit 1; }; }
2704 test "$DX_FLAG_doc" = "1" || DX_FLAG_man=0
2709 if test "$DX_FLAG_man" = 1; then
2713 if test "$DX_FLAG_man" = 1; then
2718 DX_COND_man_FALSE='#'
2720 DX_COND_man_TRUE='#'
2724 DX_ENV="$DX_ENV GENERATE_MAN='YES'"
2732 DX_COND_man_FALSE='#'
2734 DX_COND_man_TRUE='#'
2738 DX_ENV="$DX_ENV GENERATE_MAN='NO'"
2744 # RTF file generation:
2748 # Check whether --enable-doxygen-rtf or --disable-doxygen-rtf was given.
2749 if test "${enable_doxygen_rtf+set}" = set; then
2750 enableval="$enable_doxygen_rtf"
2752 case "$enableval" in
2758 test "$DX_FLAG_doc" = "1" \
2759 || { { echo "$as_me:$LINENO: error: doxygen-rtf requires doxygen-rtf" >&5
2760 echo "$as_me: error: doxygen-rtf requires doxygen-rtf" >&2;}
2761 { (exit 1); exit 1; }; }
2769 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-rtf" >&5
2770 echo "$as_me: error: invalid value '$enableval' given to doxygen-rtf" >&2;}
2771 { (exit 1); exit 1; }; }
2780 test "$DX_FLAG_doc" = "1" || DX_FLAG_rtf=0
2785 if test "$DX_FLAG_rtf" = 1; then
2789 if test "$DX_FLAG_rtf" = 1; then
2794 DX_COND_rtf_FALSE='#'
2796 DX_COND_rtf_TRUE='#'
2800 DX_ENV="$DX_ENV GENERATE_RTF='YES'"
2808 DX_COND_rtf_FALSE='#'
2810 DX_COND_rtf_TRUE='#'
2814 DX_ENV="$DX_ENV GENERATE_RTF='NO'"
2820 # XML file generation:
2824 # Check whether --enable-doxygen-xml or --disable-doxygen-xml was given.
2825 if test "${enable_doxygen_xml+set}" = set; then
2826 enableval="$enable_doxygen_xml"
2828 case "$enableval" in
2834 test "$DX_FLAG_doc" = "1" \
2835 || { { echo "$as_me:$LINENO: error: doxygen-xml requires doxygen-xml" >&5
2836 echo "$as_me: error: doxygen-xml requires doxygen-xml" >&2;}
2837 { (exit 1); exit 1; }; }
2845 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-xml" >&5
2846 echo "$as_me: error: invalid value '$enableval' given to doxygen-xml" >&2;}
2847 { (exit 1); exit 1; }; }
2856 test "$DX_FLAG_doc" = "1" || DX_FLAG_xml=0
2861 if test "$DX_FLAG_xml" = 1; then
2865 if test "$DX_FLAG_xml" = 1; then
2870 DX_COND_xml_FALSE='#'
2872 DX_COND_xml_TRUE='#'
2876 DX_ENV="$DX_ENV GENERATE_XML='YES'"
2884 DX_COND_xml_FALSE='#'
2886 DX_COND_xml_TRUE='#'
2890 DX_ENV="$DX_ENV GENERATE_XML='NO'"
2896 # (Compressed) HTML help generation:
2900 # Check whether --enable-doxygen-chm or --disable-doxygen-chm was given.
2901 if test "${enable_doxygen_chm+set}" = set; then
2902 enableval="$enable_doxygen_chm"
2904 case "$enableval" in
2910 test "$DX_FLAG_doc" = "1" \
2911 || { { echo "$as_me:$LINENO: error: doxygen-chm requires doxygen-chm" >&5
2912 echo "$as_me: error: doxygen-chm requires doxygen-chm" >&2;}
2913 { (exit 1); exit 1; }; }
2921 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chm" >&5
2922 echo "$as_me: error: invalid value '$enableval' given to doxygen-chm" >&2;}
2923 { (exit 1); exit 1; }; }
2932 test "$DX_FLAG_doc" = "1" || DX_FLAG_chm=0
2937 if test "$DX_FLAG_chm" = 1; then
2939 if test -n "$ac_tool_prefix"; then
2940 # Extract the first word of "${ac_tool_prefix}hhc", so it can be a program name with args.
2941 set dummy ${ac_tool_prefix}hhc; ac_word=$2
2942 echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2944 if test "${ac_cv_path_DX_HHC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 ac_cv_path_DX_HHC="$DX_HHC" # Let the user override the test with a path.
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 test -z "$as_dir" && as_dir=.
2957 for ac_exec_ext in '' $ac_executable_extensions; do
2958 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2959 ac_cv_path_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
2960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 DX_HHC=$ac_cv_path_DX_HHC
2971 if test -n "$DX_HHC"; then
2972 echo "$as_me:$LINENO: result: $DX_HHC" >&5
2973 echo "${ECHO_T}$DX_HHC" >&6
2975 echo "$as_me:$LINENO: result: no" >&5
2976 echo "${ECHO_T}no" >&6
2980 if test -z "$ac_cv_path_DX_HHC"; then
2981 ac_pt_DX_HHC=$DX_HHC
2982 # Extract the first word of "hhc", so it can be a program name with args.
2983 set dummy hhc; ac_word=$2
2984 echo "$as_me:$LINENO: checking for $ac_word" >&5
2985 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2986 if test "${ac_cv_path_ac_pt_DX_HHC+set}" = set; then
2987 echo $ECHO_N "(cached) $ECHO_C" >&6
2989 case $ac_pt_DX_HHC in
2991 ac_cv_path_ac_pt_DX_HHC="$ac_pt_DX_HHC" # Let the user override the test with a path.
2994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 test -z "$as_dir" && as_dir=.
2999 for ac_exec_ext in '' $ac_executable_extensions; do
3000 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3001 ac_cv_path_ac_pt_DX_HHC="$as_dir/$ac_word$ac_exec_ext"
3002 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3011 ac_pt_DX_HHC=$ac_cv_path_ac_pt_DX_HHC
3013 if test -n "$ac_pt_DX_HHC"; then
3014 echo "$as_me:$LINENO: result: $ac_pt_DX_HHC" >&5
3015 echo "${ECHO_T}$ac_pt_DX_HHC" >&6
3017 echo "$as_me:$LINENO: result: no" >&5
3018 echo "${ECHO_T}no" >&6
3021 DX_HHC=$ac_pt_DX_HHC
3023 DX_HHC="$ac_cv_path_DX_HHC"
3026 if test "$DX_FLAG_chm$DX_HHC" = 1; then
3027 { echo "$as_me:$LINENO: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&5
3028 echo "$as_me: WARNING: hhc not found - will not generate doxygen compressed HTML help documentation" >&2;}
3035 if test "$DX_FLAG_chm" = 1; then
3040 DX_COND_chm_FALSE='#'
3042 DX_COND_chm_TRUE='#'
3046 DX_ENV="$DX_ENV HHC_PATH='$DX_HHC'"
3048 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3050 DX_ENV="$DX_ENV GENERATE_HTMLHELP='YES'"
3058 DX_COND_chm_FALSE='#'
3060 DX_COND_chm_TRUE='#'
3064 DX_ENV="$DX_ENV GENERATE_HTMLHELP='NO'"
3070 # Seperate CHI file generation.
3074 # Check whether --enable-doxygen-chi or --disable-doxygen-chi was given.
3075 if test "${enable_doxygen_chi+set}" = set; then
3076 enableval="$enable_doxygen_chi"
3078 case "$enableval" in
3084 test "$DX_FLAG_chm" = "1" \
3085 || { { echo "$as_me:$LINENO: error: doxygen-chi requires doxygen-chi" >&5
3086 echo "$as_me: error: doxygen-chi requires doxygen-chi" >&2;}
3087 { (exit 1); exit 1; }; }
3095 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-chi" >&5
3096 echo "$as_me: error: invalid value '$enableval' given to doxygen-chi" >&2;}
3097 { (exit 1); exit 1; }; }
3106 test "$DX_FLAG_chm" = "1" || DX_FLAG_chi=0
3111 if test "$DX_FLAG_chi" = 1; then
3115 if test "$DX_FLAG_chi" = 1; then
3120 DX_COND_chi_FALSE='#'
3122 DX_COND_chi_TRUE='#'
3126 DX_ENV="$DX_ENV GENERATE_CHI='YES'"
3134 DX_COND_chi_FALSE='#'
3136 DX_COND_chi_TRUE='#'
3140 DX_ENV="$DX_ENV GENERATE_CHI='NO'"
3146 # Plain HTML pages generation:
3150 # Check whether --enable-doxygen-html or --disable-doxygen-html was given.
3151 if test "${enable_doxygen_html+set}" = set; then
3152 enableval="$enable_doxygen_html"
3154 case "$enableval" in
3160 test "$DX_FLAG_doc" = "1" \
3161 || { { echo "$as_me:$LINENO: error: doxygen-html requires doxygen-html" >&5
3162 echo "$as_me: error: doxygen-html requires doxygen-html" >&2;}
3163 { (exit 1); exit 1; }; }
3165 test "$DX_FLAG_chm" = "0" \
3166 || { { echo "$as_me:$LINENO: error: doxygen-html contradicts doxygen-html" >&5
3167 echo "$as_me: error: doxygen-html contradicts doxygen-html" >&2;}
3168 { (exit 1); exit 1; }; }
3176 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-html" >&5
3177 echo "$as_me: error: invalid value '$enableval' given to doxygen-html" >&2;}
3178 { (exit 1); exit 1; }; }
3187 test "$DX_FLAG_doc" = "1" || DX_FLAG_html=0
3190 test "$DX_FLAG_chm" = "0" || DX_FLAG_html=0
3195 if test "$DX_FLAG_html" = 1; then
3199 if test "$DX_FLAG_html" = 1; then
3204 DX_COND_html_FALSE='#'
3206 DX_COND_html_TRUE='#'
3210 DX_ENV="$DX_ENV GENERATE_HTML='YES'"
3218 DX_COND_html_FALSE='#'
3220 DX_COND_html_TRUE='#'
3224 test "$DX_FLAG_chm" = 1 || DX_ENV="$DX_ENV GENERATE_HTML='NO'"
3230 # PostScript file generation:
3234 # Check whether --enable-doxygen-ps or --disable-doxygen-ps was given.
3235 if test "${enable_doxygen_ps+set}" = set; then
3236 enableval="$enable_doxygen_ps"
3238 case "$enableval" in
3244 test "$DX_FLAG_doc" = "1" \
3245 || { { echo "$as_me:$LINENO: error: doxygen-ps requires doxygen-ps" >&5
3246 echo "$as_me: error: doxygen-ps requires doxygen-ps" >&2;}
3247 { (exit 1); exit 1; }; }
3255 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-ps" >&5
3256 echo "$as_me: error: invalid value '$enableval' given to doxygen-ps" >&2;}
3257 { (exit 1); exit 1; }; }
3266 test "$DX_FLAG_doc" = "1" || DX_FLAG_ps=0
3271 if test "$DX_FLAG_ps" = 1; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}latex", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}latex; ac_word=$2
3276 echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3278 if test "${ac_cv_path_DX_LATEX+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3283 ac_cv_path_DX_LATEX="$DX_LATEX" # Let the user override the test with a path.
3286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 test -z "$as_dir" && as_dir=.
3291 for ac_exec_ext in '' $ac_executable_extensions; do
3292 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3293 ac_cv_path_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3303 DX_LATEX=$ac_cv_path_DX_LATEX
3305 if test -n "$DX_LATEX"; then
3306 echo "$as_me:$LINENO: result: $DX_LATEX" >&5
3307 echo "${ECHO_T}$DX_LATEX" >&6
3309 echo "$as_me:$LINENO: result: no" >&5
3310 echo "${ECHO_T}no" >&6
3314 if test -z "$ac_cv_path_DX_LATEX"; then
3315 ac_pt_DX_LATEX=$DX_LATEX
3316 # Extract the first word of "latex", so it can be a program name with args.
3317 set dummy latex; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_path_ac_pt_DX_LATEX+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3323 case $ac_pt_DX_LATEX in
3325 ac_cv_path_ac_pt_DX_LATEX="$ac_pt_DX_LATEX" # Let the user override the test with a path.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3332 test -z "$as_dir" && as_dir=.
3333 for ac_exec_ext in '' $ac_executable_extensions; do
3334 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3335 ac_cv_path_ac_pt_DX_LATEX="$as_dir/$ac_word$ac_exec_ext"
3336 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3345 ac_pt_DX_LATEX=$ac_cv_path_ac_pt_DX_LATEX
3347 if test -n "$ac_pt_DX_LATEX"; then
3348 echo "$as_me:$LINENO: result: $ac_pt_DX_LATEX" >&5
3349 echo "${ECHO_T}$ac_pt_DX_LATEX" >&6
3351 echo "$as_me:$LINENO: result: no" >&5
3352 echo "${ECHO_T}no" >&6
3355 DX_LATEX=$ac_pt_DX_LATEX
3357 DX_LATEX="$ac_cv_path_DX_LATEX"
3360 if test "$DX_FLAG_ps$DX_LATEX" = 1; then
3361 { echo "$as_me:$LINENO: WARNING: latex not found - will not generate doxygen PostScript documentation" >&5
3362 echo "$as_me: WARNING: latex not found - will not generate doxygen PostScript documentation" >&2;}
3368 if test -n "$ac_tool_prefix"; then
3369 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3370 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3371 echo "$as_me:$LINENO: checking for $ac_word" >&5
3372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3373 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 case $DX_MAKEINDEX in
3378 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3398 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3400 if test -n "$DX_MAKEINDEX"; then
3401 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3402 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3404 echo "$as_me:$LINENO: result: no" >&5
3405 echo "${ECHO_T}no" >&6
3409 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3410 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3411 # Extract the first word of "makeindex", so it can be a program name with args.
3412 set dummy makeindex; ac_word=$2
3413 echo "$as_me:$LINENO: checking for $ac_word" >&5
3414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3415 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3416 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 case $ac_pt_DX_MAKEINDEX in
3420 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3427 test -z "$as_dir" && as_dir=.
3428 for ac_exec_ext in '' $ac_executable_extensions; do
3429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3430 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3440 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3442 if test -n "$ac_pt_DX_MAKEINDEX"; then
3443 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3444 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3446 echo "$as_me:$LINENO: result: no" >&5
3447 echo "${ECHO_T}no" >&6
3450 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3452 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3455 if test "$DX_FLAG_ps$DX_MAKEINDEX" = 1; then
3456 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&5
3457 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PostScript documentation" >&2;}
3463 if test -n "$ac_tool_prefix"; then
3464 # Extract the first word of "${ac_tool_prefix}dvips", so it can be a program name with args.
3465 set dummy ${ac_tool_prefix}dvips; ac_word=$2
3466 echo "$as_me:$LINENO: checking for $ac_word" >&5
3467 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3468 if test "${ac_cv_path_DX_DVIPS+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 ac_cv_path_DX_DVIPS="$DX_DVIPS" # Let the user override the test with a path.
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3483 ac_cv_path_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3493 DX_DVIPS=$ac_cv_path_DX_DVIPS
3495 if test -n "$DX_DVIPS"; then
3496 echo "$as_me:$LINENO: result: $DX_DVIPS" >&5
3497 echo "${ECHO_T}$DX_DVIPS" >&6
3499 echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6
3504 if test -z "$ac_cv_path_DX_DVIPS"; then
3505 ac_pt_DX_DVIPS=$DX_DVIPS
3506 # Extract the first word of "dvips", so it can be a program name with args.
3507 set dummy dvips; ac_word=$2
3508 echo "$as_me:$LINENO: checking for $ac_word" >&5
3509 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3510 if test "${ac_cv_path_ac_pt_DX_DVIPS+set}" = set; then
3511 echo $ECHO_N "(cached) $ECHO_C" >&6
3513 case $ac_pt_DX_DVIPS in
3515 ac_cv_path_ac_pt_DX_DVIPS="$ac_pt_DX_DVIPS" # Let the user override the test with a path.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 test -z "$as_dir" && as_dir=.
3523 for ac_exec_ext in '' $ac_executable_extensions; do
3524 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3525 ac_cv_path_ac_pt_DX_DVIPS="$as_dir/$ac_word$ac_exec_ext"
3526 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3535 ac_pt_DX_DVIPS=$ac_cv_path_ac_pt_DX_DVIPS
3537 if test -n "$ac_pt_DX_DVIPS"; then
3538 echo "$as_me:$LINENO: result: $ac_pt_DX_DVIPS" >&5
3539 echo "${ECHO_T}$ac_pt_DX_DVIPS" >&6
3541 echo "$as_me:$LINENO: result: no" >&5
3542 echo "${ECHO_T}no" >&6
3545 DX_DVIPS=$ac_pt_DX_DVIPS
3547 DX_DVIPS="$ac_cv_path_DX_DVIPS"
3550 if test "$DX_FLAG_ps$DX_DVIPS" = 1; then
3551 { echo "$as_me:$LINENO: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&5
3552 echo "$as_me: WARNING: dvips not found - will not generate doxygen PostScript documentation" >&2;}
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3561 echo "$as_me:$LINENO: checking for $ac_word" >&5
3562 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3563 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3564 echo $ECHO_N "(cached) $ECHO_C" >&6
3568 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 test -z "$as_dir" && as_dir=.
3576 for ac_exec_ext in '' $ac_executable_extensions; do
3577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3578 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3588 DX_EGREP=$ac_cv_path_DX_EGREP
3590 if test -n "$DX_EGREP"; then
3591 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3592 echo "${ECHO_T}$DX_EGREP" >&6
3594 echo "$as_me:$LINENO: result: no" >&5
3595 echo "${ECHO_T}no" >&6
3599 if test -z "$ac_cv_path_DX_EGREP"; then
3600 ac_pt_DX_EGREP=$DX_EGREP
3601 # Extract the first word of "egrep", so it can be a program name with args.
3602 set dummy egrep; ac_word=$2
3603 echo "$as_me:$LINENO: checking for $ac_word" >&5
3604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3605 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3606 echo $ECHO_N "(cached) $ECHO_C" >&6
3608 case $ac_pt_DX_EGREP in
3610 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 test -z "$as_dir" && as_dir=.
3618 for ac_exec_ext in '' $ac_executable_extensions; do
3619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3620 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3630 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3632 if test -n "$ac_pt_DX_EGREP"; then
3633 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3634 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3636 echo "$as_me:$LINENO: result: no" >&5
3637 echo "${ECHO_T}no" >&6
3640 DX_EGREP=$ac_pt_DX_EGREP
3642 DX_EGREP="$ac_cv_path_DX_EGREP"
3645 if test "$DX_FLAG_ps$DX_EGREP" = 1; then
3646 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&5
3647 echo "$as_me: WARNING: egrep not found - will not generate doxygen PostScript documentation" >&2;}
3654 if test "$DX_FLAG_ps" = 1; then
3659 DX_COND_ps_FALSE='#'
3672 DX_COND_ps_FALSE='#'
3683 # PDF file generation:
3687 # Check whether --enable-doxygen-pdf or --disable-doxygen-pdf was given.
3688 if test "${enable_doxygen_pdf+set}" = set; then
3689 enableval="$enable_doxygen_pdf"
3691 case "$enableval" in
3697 test "$DX_FLAG_doc" = "1" \
3698 || { { echo "$as_me:$LINENO: error: doxygen-pdf requires doxygen-pdf" >&5
3699 echo "$as_me: error: doxygen-pdf requires doxygen-pdf" >&2;}
3700 { (exit 1); exit 1; }; }
3708 { { echo "$as_me:$LINENO: error: invalid value '$enableval' given to doxygen-pdf" >&5
3709 echo "$as_me: error: invalid value '$enableval' given to doxygen-pdf" >&2;}
3710 { (exit 1); exit 1; }; }
3719 test "$DX_FLAG_doc" = "1" || DX_FLAG_pdf=0
3724 if test "$DX_FLAG_pdf" = 1; then
3726 if test -n "$ac_tool_prefix"; then
3727 # Extract the first word of "${ac_tool_prefix}pdflatex", so it can be a program name with args.
3728 set dummy ${ac_tool_prefix}pdflatex; ac_word=$2
3729 echo "$as_me:$LINENO: checking for $ac_word" >&5
3730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3731 if test "${ac_cv_path_DX_PDFLATEX+set}" = set; then
3732 echo $ECHO_N "(cached) $ECHO_C" >&6
3734 case $DX_PDFLATEX in
3736 ac_cv_path_DX_PDFLATEX="$DX_PDFLATEX" # Let the user override the test with a path.
3739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 test -z "$as_dir" && as_dir=.
3744 for ac_exec_ext in '' $ac_executable_extensions; do
3745 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3746 ac_cv_path_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3747 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 DX_PDFLATEX=$ac_cv_path_DX_PDFLATEX
3758 if test -n "$DX_PDFLATEX"; then
3759 echo "$as_me:$LINENO: result: $DX_PDFLATEX" >&5
3760 echo "${ECHO_T}$DX_PDFLATEX" >&6
3762 echo "$as_me:$LINENO: result: no" >&5
3763 echo "${ECHO_T}no" >&6
3767 if test -z "$ac_cv_path_DX_PDFLATEX"; then
3768 ac_pt_DX_PDFLATEX=$DX_PDFLATEX
3769 # Extract the first word of "pdflatex", so it can be a program name with args.
3770 set dummy pdflatex; ac_word=$2
3771 echo "$as_me:$LINENO: checking for $ac_word" >&5
3772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3773 if test "${ac_cv_path_ac_pt_DX_PDFLATEX+set}" = set; then
3774 echo $ECHO_N "(cached) $ECHO_C" >&6
3776 case $ac_pt_DX_PDFLATEX in
3778 ac_cv_path_ac_pt_DX_PDFLATEX="$ac_pt_DX_PDFLATEX" # Let the user override the test with a path.
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 ac_cv_path_ac_pt_DX_PDFLATEX="$as_dir/$ac_word$ac_exec_ext"
3789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 ac_pt_DX_PDFLATEX=$ac_cv_path_ac_pt_DX_PDFLATEX
3800 if test -n "$ac_pt_DX_PDFLATEX"; then
3801 echo "$as_me:$LINENO: result: $ac_pt_DX_PDFLATEX" >&5
3802 echo "${ECHO_T}$ac_pt_DX_PDFLATEX" >&6
3804 echo "$as_me:$LINENO: result: no" >&5
3805 echo "${ECHO_T}no" >&6
3808 DX_PDFLATEX=$ac_pt_DX_PDFLATEX
3810 DX_PDFLATEX="$ac_cv_path_DX_PDFLATEX"
3813 if test "$DX_FLAG_pdf$DX_PDFLATEX" = 1; then
3814 { echo "$as_me:$LINENO: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&5
3815 echo "$as_me: WARNING: pdflatex not found - will not generate doxygen PDF documentation" >&2;}
3821 if test -n "$ac_tool_prefix"; then
3822 # Extract the first word of "${ac_tool_prefix}makeindex", so it can be a program name with args.
3823 set dummy ${ac_tool_prefix}makeindex; ac_word=$2
3824 echo "$as_me:$LINENO: checking for $ac_word" >&5
3825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3826 if test "${ac_cv_path_DX_MAKEINDEX+set}" = set; then
3827 echo $ECHO_N "(cached) $ECHO_C" >&6
3829 case $DX_MAKEINDEX in
3831 ac_cv_path_DX_MAKEINDEX="$DX_MAKEINDEX" # Let the user override the test with a path.
3834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir=.
3839 for ac_exec_ext in '' $ac_executable_extensions; do
3840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3841 ac_cv_path_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 DX_MAKEINDEX=$ac_cv_path_DX_MAKEINDEX
3853 if test -n "$DX_MAKEINDEX"; then
3854 echo "$as_me:$LINENO: result: $DX_MAKEINDEX" >&5
3855 echo "${ECHO_T}$DX_MAKEINDEX" >&6
3857 echo "$as_me:$LINENO: result: no" >&5
3858 echo "${ECHO_T}no" >&6
3862 if test -z "$ac_cv_path_DX_MAKEINDEX"; then
3863 ac_pt_DX_MAKEINDEX=$DX_MAKEINDEX
3864 # Extract the first word of "makeindex", so it can be a program name with args.
3865 set dummy makeindex; ac_word=$2
3866 echo "$as_me:$LINENO: checking for $ac_word" >&5
3867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3868 if test "${ac_cv_path_ac_pt_DX_MAKEINDEX+set}" = set; then
3869 echo $ECHO_N "(cached) $ECHO_C" >&6
3871 case $ac_pt_DX_MAKEINDEX in
3873 ac_cv_path_ac_pt_DX_MAKEINDEX="$ac_pt_DX_MAKEINDEX" # Let the user override the test with a path.
3876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3880 test -z "$as_dir" && as_dir=.
3881 for ac_exec_ext in '' $ac_executable_extensions; do
3882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3883 ac_cv_path_ac_pt_DX_MAKEINDEX="$as_dir/$ac_word$ac_exec_ext"
3884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 ac_pt_DX_MAKEINDEX=$ac_cv_path_ac_pt_DX_MAKEINDEX
3895 if test -n "$ac_pt_DX_MAKEINDEX"; then
3896 echo "$as_me:$LINENO: result: $ac_pt_DX_MAKEINDEX" >&5
3897 echo "${ECHO_T}$ac_pt_DX_MAKEINDEX" >&6
3899 echo "$as_me:$LINENO: result: no" >&5
3900 echo "${ECHO_T}no" >&6
3903 DX_MAKEINDEX=$ac_pt_DX_MAKEINDEX
3905 DX_MAKEINDEX="$ac_cv_path_DX_MAKEINDEX"
3908 if test "$DX_FLAG_pdf$DX_MAKEINDEX" = 1; then
3909 { echo "$as_me:$LINENO: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&5
3910 echo "$as_me: WARNING: makeindex not found - will not generate doxygen PDF documentation" >&2;}
3916 if test -n "$ac_tool_prefix"; then
3917 # Extract the first word of "${ac_tool_prefix}egrep", so it can be a program name with args.
3918 set dummy ${ac_tool_prefix}egrep; ac_word=$2
3919 echo "$as_me:$LINENO: checking for $ac_word" >&5
3920 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3921 if test "${ac_cv_path_DX_EGREP+set}" = set; then
3922 echo $ECHO_N "(cached) $ECHO_C" >&6
3926 ac_cv_path_DX_EGREP="$DX_EGREP" # Let the user override the test with a path.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_path_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 DX_EGREP=$ac_cv_path_DX_EGREP
3948 if test -n "$DX_EGREP"; then
3949 echo "$as_me:$LINENO: result: $DX_EGREP" >&5
3950 echo "${ECHO_T}$DX_EGREP" >&6
3952 echo "$as_me:$LINENO: result: no" >&5
3953 echo "${ECHO_T}no" >&6
3957 if test -z "$ac_cv_path_DX_EGREP"; then
3958 ac_pt_DX_EGREP=$DX_EGREP
3959 # Extract the first word of "egrep", so it can be a program name with args.
3960 set dummy egrep; ac_word=$2
3961 echo "$as_me:$LINENO: checking for $ac_word" >&5
3962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3963 if test "${ac_cv_path_ac_pt_DX_EGREP+set}" = set; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3966 case $ac_pt_DX_EGREP in
3968 ac_cv_path_ac_pt_DX_EGREP="$ac_pt_DX_EGREP" # Let the user override the test with a path.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3978 ac_cv_path_ac_pt_DX_EGREP="$as_dir/$ac_word$ac_exec_ext"
3979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3988 ac_pt_DX_EGREP=$ac_cv_path_ac_pt_DX_EGREP
3990 if test -n "$ac_pt_DX_EGREP"; then
3991 echo "$as_me:$LINENO: result: $ac_pt_DX_EGREP" >&5
3992 echo "${ECHO_T}$ac_pt_DX_EGREP" >&6
3994 echo "$as_me:$LINENO: result: no" >&5
3995 echo "${ECHO_T}no" >&6
3998 DX_EGREP=$ac_pt_DX_EGREP
4000 DX_EGREP="$ac_cv_path_DX_EGREP"
4003 if test "$DX_FLAG_pdf$DX_EGREP" = 1; then
4004 { echo "$as_me:$LINENO: WARNING: egrep not found - will not generate doxygen PDF documentation" >&5
4005 echo "$as_me: WARNING: egrep not found - will not generate doxygen PDF documentation" >&2;}
4012 if test "$DX_FLAG_pdf" = 1; then
4017 DX_COND_pdf_FALSE='#'
4019 DX_COND_pdf_TRUE='#'
4030 DX_COND_pdf_FALSE='#'
4032 DX_COND_pdf_TRUE='#'
4041 # LaTeX generation for PS and/or PDF:
4042 if test "$DX_FLAG_ps" = 1 || test "$DX_FLAG_pdf" = 1; then
4047 DX_COND_latex_FALSE='#'
4049 DX_COND_latex_TRUE='#'
4050 DX_COND_latex_FALSE=
4053 DX_ENV="$DX_ENV GENERATE_LATEX='YES'"
4060 DX_COND_latex_FALSE='#'
4062 DX_COND_latex_TRUE='#'
4063 DX_COND_latex_FALSE=
4066 DX_ENV="$DX_ENV GENERATE_LATEX='NO'"
4070 # Paper size for PS and/or PDF:
4072 case "$DOXYGEN_PAPER_SIZE" in
4075 DOXYGEN_PAPER_SIZE=""
4078 a4wide|a4|letter|legal|executive)
4079 DX_ENV="$DX_ENV PAPER_SIZE='$DOXYGEN_PAPER_SIZE'"
4083 { { echo "$as_me:$LINENO: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&5
4084 echo "$as_me: error: unknown DOXYGEN_PAPER_SIZE='$DOXYGEN_PAPER_SIZE'" >&2;}
4085 { (exit 1); exit 1; }; }
4090 #echo DX_FLAG_doc=$DX_FLAG_doc
4091 #echo DX_FLAG_dot=$DX_FLAG_dot
4092 #echo DX_FLAG_man=$DX_FLAG_man
4093 #echo DX_FLAG_html=$DX_FLAG_html
4094 #echo DX_FLAG_chm=$DX_FLAG_chm
4095 #echo DX_FLAG_chi=$DX_FLAG_chi
4096 #echo DX_FLAG_rtf=$DX_FLAG_rtf
4097 #echo DX_FLAG_xml=$DX_FLAG_xml
4098 #echo DX_FLAG_pdf=$DX_FLAG_pdf
4099 #echo DX_FLAG_ps=$DX_FLAG_ps
4100 #echo DX_ENV=$DX_ENV
4104 # Check whether --enable-debug or --disable-debug was given.
4105 if test "${enable_debug+set}" = set; then
4106 enableval="$enable_debug"
4107 enable_debug=$enableval
4112 if test "$enable_debug" = "yes" ; then
4113 GCC_CFLAGS="$CFLAGS -g -D_DEBUG"
4114 GCC_CXXFLAGS="$CXXFLAGS -g -D_DEBUG"
4116 GCC_CFLAGS="$CFLAGS -O2 -DNDEBUG"
4117 GCC_CXXFLAGS="$CXXFLAGS -O2 -DNDEBUG"
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 if test -n "$ac_tool_prefix"; then
4126 for ac_prog in gcc gcc3 cc
4128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4130 echo "$as_me:$LINENO: checking for $ac_word" >&5
4131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4132 if test "${ac_cv_prog_CC+set}" = set; then
4133 echo $ECHO_N "(cached) $ECHO_C" >&6
4135 if test -n "$CC"; then
4136 ac_cv_prog_CC="$CC" # Let the user override the test.
4138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 test -z "$as_dir" && as_dir=.
4143 for ac_exec_ext in '' $ac_executable_extensions; do
4144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$CC"; then
4156 echo "$as_me:$LINENO: result: $CC" >&5
4157 echo "${ECHO_T}$CC" >&6
4159 echo "$as_me:$LINENO: result: no" >&5
4160 echo "${ECHO_T}no" >&6
4163 test -n "$CC" && break
4166 if test -z "$CC"; then
4168 for ac_prog in gcc gcc3 cc
4170 # Extract the first word of "$ac_prog", so it can be a program name with args.
4171 set dummy $ac_prog; ac_word=$2
4172 echo "$as_me:$LINENO: checking for $ac_word" >&5
4173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4174 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4177 if test -n "$ac_ct_CC"; then
4178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184 test -z "$as_dir" && as_dir=.
4185 for ac_exec_ext in '' $ac_executable_extensions; do
4186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4187 ac_cv_prog_ac_ct_CC="$ac_prog"
4188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4196 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4197 if test -n "$ac_ct_CC"; then
4198 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4199 echo "${ECHO_T}$ac_ct_CC" >&6
4201 echo "$as_me:$LINENO: result: no" >&5
4202 echo "${ECHO_T}no" >&6
4205 test -n "$ac_ct_CC" && break
4212 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4213 See \`config.log' for more details." >&5
4214 echo "$as_me: error: no acceptable C compiler found in \$PATH
4215 See \`config.log' for more details." >&2;}
4216 { (exit 1); exit 1; }; }
4218 # Provide some information about the compiler.
4219 echo "$as_me:$LINENO:" \
4220 "checking for C compiler version" >&5
4221 ac_compiler=`set X $ac_compile; echo $2`
4222 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4223 (eval $ac_compiler --version </dev/null >&5) 2>&5
4225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4226 (exit $ac_status); }
4227 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4228 (eval $ac_compiler -v </dev/null >&5) 2>&5
4230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); }
4232 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4233 (eval $ac_compiler -V </dev/null >&5) 2>&5
4235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4236 (exit $ac_status); }
4238 cat >conftest.$ac_ext <<_ACEOF
4241 cat confdefs.h >>conftest.$ac_ext
4242 cat >>conftest.$ac_ext <<_ACEOF
4243 /* end confdefs.h. */
4253 ac_clean_files_save=$ac_clean_files
4254 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4255 # Try to create an executable without -o first, disregard a.out.
4256 # It will help us diagnose broken compilers, and finding out an intuition
4258 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4259 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4260 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4261 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4262 (eval $ac_link_default) 2>&5
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; then
4266 # Find the output, starting from the most likely. This scheme is
4267 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4270 # Be careful to initialize this variable, since it used to be cached.
4271 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4273 # b.out is created by i960 compilers.
4274 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4276 test -f "$ac_file" || continue
4278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4281 # This is the source file.
4284 # We found the default executable, but exeext='' is most
4288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4289 # FIXME: I believe we export ac_cv_exeext for Libtool,
4290 # but it would be cool to find out if it's true. Does anybody
4291 # maintain Libtool? --akim.
4299 echo "$as_me: failed program was:" >&5
4300 sed 's/^/| /' conftest.$ac_ext >&5
4302 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4303 See \`config.log' for more details." >&5
4304 echo "$as_me: error: C compiler cannot create executables
4305 See \`config.log' for more details." >&2;}
4306 { (exit 77); exit 77; }; }
4309 ac_exeext=$ac_cv_exeext
4310 echo "$as_me:$LINENO: result: $ac_file" >&5
4311 echo "${ECHO_T}$ac_file" >&6
4313 # Check the compiler produces executables we can run. If not, either
4314 # the compiler is broken, or we cross compile.
4315 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4316 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4317 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4318 # If not cross compiling, check that we can run a simple program.
4319 if test "$cross_compiling" != yes; then
4320 if { ac_try='./$ac_file'
4321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); }; }; then
4328 if test "$cross_compiling" = maybe; then
4331 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4332 If you meant to cross compile, use \`--host'.
4333 See \`config.log' for more details." >&5
4334 echo "$as_me: error: cannot run C compiled programs.
4335 If you meant to cross compile, use \`--host'.
4336 See \`config.log' for more details." >&2;}
4337 { (exit 1); exit 1; }; }
4341 echo "$as_me:$LINENO: result: yes" >&5
4342 echo "${ECHO_T}yes" >&6
4344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4345 ac_clean_files=$ac_clean_files_save
4346 # Check the compiler produces executables we can run. If not, either
4347 # the compiler is broken, or we cross compile.
4348 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4350 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4351 echo "${ECHO_T}$cross_compiling" >&6
4353 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4355 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4356 (eval $ac_link) 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; then
4360 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4361 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4362 # work properly (i.e., refer to `conftest.exe'), while it won't with
4364 for ac_file in conftest.exe conftest conftest.*; do
4365 test -f "$ac_file" || continue
4367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4368 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4375 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4376 See \`config.log' for more details." >&5
4377 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4378 See \`config.log' for more details." >&2;}
4379 { (exit 1); exit 1; }; }
4382 rm -f conftest$ac_cv_exeext
4383 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4384 echo "${ECHO_T}$ac_cv_exeext" >&6
4386 rm -f conftest.$ac_ext
4387 EXEEXT=$ac_cv_exeext
4389 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4390 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4391 if test "${ac_cv_objext+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 cat >conftest.$ac_ext <<_ACEOF
4397 cat confdefs.h >>conftest.$ac_ext
4398 cat >>conftest.$ac_ext <<_ACEOF
4399 /* end confdefs.h. */
4409 rm -f conftest.o conftest.obj
4410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4411 (eval $ac_compile) 2>&5
4413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4414 (exit $ac_status); }; then
4415 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4417 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4418 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4423 echo "$as_me: failed program was:" >&5
4424 sed 's/^/| /' conftest.$ac_ext >&5
4426 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4427 See \`config.log' for more details." >&5
4428 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4429 See \`config.log' for more details." >&2;}
4430 { (exit 1); exit 1; }; }
4433 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4435 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4436 echo "${ECHO_T}$ac_cv_objext" >&6
4437 OBJEXT=$ac_cv_objext
4439 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4440 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4441 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4444 cat >conftest.$ac_ext <<_ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4462 rm -f conftest.$ac_objext
4463 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4464 (eval $ac_compile) 2>conftest.er1
4466 grep -v '^ *+' conftest.er1 >conftest.err
4468 cat conftest.err >&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } &&
4471 { ac_try='test -z "$ac_c_werror_flag"
4472 || test ! -s conftest.err'
4473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); }; } &&
4478 { ac_try='test -s conftest.$ac_objext'
4479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4483 (exit $ac_status); }; }; then
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.$ac_ext >&5
4491 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4492 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4495 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4496 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4497 GCC=`test $ac_compiler_gnu = yes && echo yes`
4498 ac_test_CFLAGS=${CFLAGS+set}
4499 ac_save_CFLAGS=$CFLAGS
4501 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4502 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4503 if test "${ac_cv_prog_cc_g+set}" = set; then
4504 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 cat >conftest.$ac_ext <<_ACEOF
4509 cat confdefs.h >>conftest.$ac_ext
4510 cat >>conftest.$ac_ext <<_ACEOF
4511 /* end confdefs.h. */
4521 rm -f conftest.$ac_objext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4523 (eval $ac_compile) 2>conftest.er1
4525 grep -v '^ *+' conftest.er1 >conftest.err
4527 cat conftest.err >&5
4528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4529 (exit $ac_status); } &&
4530 { ac_try='test -z "$ac_c_werror_flag"
4531 || test ! -s conftest.err'
4532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); }; } &&
4537 { ac_try='test -s conftest.$ac_objext'
4538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; }; then
4545 echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.$ac_ext >&5
4550 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4553 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4554 if test "$ac_test_CFLAGS" = set; then
4555 CFLAGS=$ac_save_CFLAGS
4556 elif test $ac_cv_prog_cc_g = yes; then
4557 if test "$GCC" = yes; then
4563 if test "$GCC" = yes; then
4569 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4570 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4571 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4572 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 ac_cv_prog_cc_stdc=no
4576 cat >conftest.$ac_ext <<_ACEOF
4579 cat confdefs.h >>conftest.$ac_ext
4580 cat >>conftest.$ac_ext <<_ACEOF
4581 /* end confdefs.h. */
4584 #include <sys/types.h>
4585 #include <sys/stat.h>
4586 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4587 struct buf { int x; };
4588 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4589 static char *e (p, i)
4595 static char *f (char * (*g) (char **, int), char **p, ...)
4600 s = g (p, va_arg (v,int));
4605 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4606 function prototypes and stuff, but not '\xHH' hex character constants.
4607 These don't provoke an error unfortunately, instead are silently treated
4608 as 'x'. The following induces an error, until -std1 is added to get
4609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4610 array size at least. It's necessary to write '\x00'==0 to get something
4611 that's true only with -std1. */
4612 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4614 int test (int i, double x);
4615 struct s1 {int (*f) (int a);};
4616 struct s2 {int (*f) (double a);};
4617 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4623 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4628 # Don't try gcc -ansi; that turns off useful extensions and
4629 # breaks some systems' header files.
4630 # AIX -qlanglvl=ansi
4631 # Ultrix and OSF/1 -std1
4632 # HP-UX 10.20 and later -Ae
4633 # HP-UX older versions -Aa -D_HPUX_SOURCE
4634 # SVR4 -Xc -D__EXTENSIONS__
4635 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4637 CC="$ac_save_CC $ac_arg"
4638 rm -f conftest.$ac_objext
4639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4640 (eval $ac_compile) 2>conftest.er1
4642 grep -v '^ *+' conftest.er1 >conftest.err
4644 cat conftest.err >&5
4645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4646 (exit $ac_status); } &&
4647 { ac_try='test -z "$ac_c_werror_flag"
4648 || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_prog_cc_stdc=$ac_arg
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4667 rm -f conftest.err conftest.$ac_objext
4669 rm -f conftest.$ac_ext conftest.$ac_objext
4674 case "x$ac_cv_prog_cc_stdc" in
4676 echo "$as_me:$LINENO: result: none needed" >&5
4677 echo "${ECHO_T}none needed" >&6 ;;
4679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4680 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4681 CC="$CC $ac_cv_prog_cc_stdc" ;;
4684 # Some people use a C++ compiler to compile C. Since we use `exit',
4685 # in C++ we need to declare it. In case someone uses the same compiler
4686 # for both compiling C and C++ we need to have the C++ compiler decide
4687 # the declaration of exit, since it's the most demanding environment.
4688 cat >conftest.$ac_ext <<_ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4697 grep -v '^ *+' conftest.er1 >conftest.err
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag"
4703 || test ! -s conftest.err'
4704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); }; } &&
4709 { ac_try='test -s conftest.$ac_objext'
4710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714 (exit $ac_status); }; }; then
4715 for ac_declaration in \
4717 'extern "C" void std::exit (int) throw (); using std::exit;' \
4718 'extern "C" void std::exit (int); using std::exit;' \
4719 'extern "C" void exit (int) throw ();' \
4720 'extern "C" void exit (int);' \
4723 cat >conftest.$ac_ext <<_ACEOF
4726 cat confdefs.h >>conftest.$ac_ext
4727 cat >>conftest.$ac_ext <<_ACEOF
4728 /* end confdefs.h. */
4739 rm -f conftest.$ac_objext
4740 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4741 (eval $ac_compile) 2>conftest.er1
4743 grep -v '^ *+' conftest.er1 >conftest.err
4745 cat conftest.err >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); } &&
4748 { ac_try='test -z "$ac_c_werror_flag"
4749 || test ! -s conftest.err'
4750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); }; } &&
4755 { ac_try='test -s conftest.$ac_objext'
4756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760 (exit $ac_status); }; }; then
4763 echo "$as_me: failed program was:" >&5
4764 sed 's/^/| /' conftest.$ac_ext >&5
4768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4784 rm -f conftest.$ac_objext
4785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4786 (eval $ac_compile) 2>conftest.er1
4788 grep -v '^ *+' conftest.er1 >conftest.err
4790 cat conftest.err >&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } &&
4793 { ac_try='test -z "$ac_c_werror_flag"
4794 || test ! -s conftest.err'
4795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; } &&
4800 { ac_try='test -s conftest.$ac_objext'
4801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4805 (exit $ac_status); }; }; then
4808 echo "$as_me: failed program was:" >&5
4809 sed 's/^/| /' conftest.$ac_ext >&5
4812 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4815 if test -n "$ac_declaration"; then
4816 echo '#ifdef __cplusplus' >>confdefs.h
4817 echo $ac_declaration >>confdefs.h
4818 echo '#endif' >>confdefs.h
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4828 ac_cpp='$CPP $CPPFLAGS'
4829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4832 DEPDIR="${am__leading_dot}deps"
4834 ac_config_commands="$ac_config_commands depfiles"
4837 am_make=${MAKE-make}
4838 cat > confinc << 'END'
4843 # If we don't find an include directive, just comment out the code.
4844 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4845 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
4849 # First try GNU make style include.
4850 echo "include confinc" > confmf
4851 # We grep out `Entering directory' and `Leaving directory'
4852 # messages which can occur if `w' ends up in MAKEFLAGS.
4853 # In particular we don't look at `^make:' because GNU make might
4854 # be invoked under some other name (usually "gmake"), in which
4855 # case it prints its new name instead of `make'.
4856 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
4861 # Now try BSD make style include.
4862 if test "$am__include" = "#"; then
4863 echo '.include "confinc"' > confmf
4864 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
4865 am__include=.include
4872 echo "$as_me:$LINENO: result: $_am_result" >&5
4873 echo "${ECHO_T}$_am_result" >&6
4874 rm -f confinc confmf
4876 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
4877 if test "${enable_dependency_tracking+set}" = set; then
4878 enableval="$enable_dependency_tracking"
4881 if test "x$enable_dependency_tracking" != xno; then
4882 am_depcomp="$ac_aux_dir/depcomp"
4887 if test "x$enable_dependency_tracking" != xno; then
4898 depcc="$CC" am_compiler_list=
4900 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4901 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4902 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4905 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4906 # We make a subdir and do the tests there. Otherwise we can end up
4907 # making bogus files that we don't know about and never remove. For
4908 # instance it was reported that on HP-UX the gcc test will end up
4909 # making a dummy file named `D' -- because `-MD' means `put the output
4912 # Copy depcomp to subdir because otherwise we won't find it if we're
4913 # using a relative directory.
4914 cp "$am_depcomp" conftest.dir
4916 # We will build objects and dependencies in a subdirectory because
4917 # it helps to detect inapplicable dependency modes. For instance
4918 # both Tru64's cc and ICC support -MD to output dependencies as a
4919 # side effect of compilation, but ICC will put the dependencies in
4920 # the current directory while Tru64 will put them in the object
4924 am_cv_CC_dependencies_compiler_type=none
4925 if test "$am_compiler_list" = ""; then
4926 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4928 for depmode in $am_compiler_list; do
4929 # Setup a source with many dependencies, because some compilers
4930 # like to wrap large dependency lists on column 80 (with \), and
4931 # we should not choose a depcomp mode which is confused by this.
4933 # We need to recreate these files for each test, as the compiler may
4934 # overwrite some of them when testing with obscure command lines.
4935 # This happens at least with the AIX C compiler.
4937 for i in 1 2 3 4 5 6; do
4938 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4939 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4940 # Solaris 8's {/usr,}/bin/sh.
4941 touch sub/conftst$i.h
4943 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4947 # after this tag, mechanisms are not by side-effect, so they'll
4948 # only be used when explicitly requested
4949 if test "x$enable_dependency_tracking" = xyes; then
4957 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4958 # mode. It turns out that the SunPro C++ compiler does not properly
4959 # handle `-M -o', and we need to detect this.
4960 if depmode=$depmode \
4961 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4964 >/dev/null 2>conftest.err &&
4965 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4966 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4967 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4968 # icc doesn't choke on unknown options, it will just issue warnings
4969 # or remarks (even with -Werror). So we grep stderr for any message
4970 # that says an option was ignored or not supported.
4971 # When given -MP, icc 7.0 and 7.1 complain thusly:
4972 # icc: Command line warning: ignoring option '-M'; no argument required
4973 # The diagnosis changed in icc 8.0:
4974 # icc: Command line remark: option '-MP' not supported
4975 if (grep 'ignoring option' conftest.err ||
4976 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4977 am_cv_CC_dependencies_compiler_type=$depmode
4986 am_cv_CC_dependencies_compiler_type=none
4990 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4991 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
4992 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4997 test "x$enable_dependency_tracking" != xno \
4998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5000 am__fastdepCC_FALSE='#'
5002 am__fastdepCC_TRUE='#'
5003 am__fastdepCC_FALSE=
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012 if test -n "$ac_tool_prefix"; then
5013 for ac_prog in $CCC g++ g++3 c++ CC
5015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5017 echo "$as_me:$LINENO: checking for $ac_word" >&5
5018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5019 if test "${ac_cv_prog_CXX+set}" = set; then
5020 echo $ECHO_N "(cached) $ECHO_C" >&6
5022 if test -n "$CXX"; then
5023 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5029 test -z "$as_dir" && as_dir=.
5030 for ac_exec_ext in '' $ac_executable_extensions; do
5031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5032 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 if test -n "$CXX"; then
5043 echo "$as_me:$LINENO: result: $CXX" >&5
5044 echo "${ECHO_T}$CXX" >&6
5046 echo "$as_me:$LINENO: result: no" >&5
5047 echo "${ECHO_T}no" >&6
5050 test -n "$CXX" && break
5053 if test -z "$CXX"; then
5055 for ac_prog in $CCC g++ g++3 c++ CC
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 echo "$as_me:$LINENO: checking for $ac_word" >&5
5060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5061 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5062 echo $ECHO_N "(cached) $ECHO_C" >&6
5064 if test -n "$ac_ct_CXX"; then
5065 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_ac_ct_CXX="$ac_prog"
5075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5084 if test -n "$ac_ct_CXX"; then
5085 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5086 echo "${ECHO_T}$ac_ct_CXX" >&6
5088 echo "$as_me:$LINENO: result: no" >&5
5089 echo "${ECHO_T}no" >&6
5092 test -n "$ac_ct_CXX" && break
5094 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5100 # Provide some information about the compiler.
5101 echo "$as_me:$LINENO:" \
5102 "checking for C++ compiler version" >&5
5103 ac_compiler=`set X $ac_compile; echo $2`
5104 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5105 (eval $ac_compiler --version </dev/null >&5) 2>&5
5107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5108 (exit $ac_status); }
5109 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5110 (eval $ac_compiler -v </dev/null >&5) 2>&5
5112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113 (exit $ac_status); }
5114 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5115 (eval $ac_compiler -V </dev/null >&5) 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }
5120 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5121 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5122 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5123 echo $ECHO_N "(cached) $ECHO_C" >&6
5125 cat >conftest.$ac_ext <<_ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5143 rm -f conftest.$ac_objext
5144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5145 (eval $ac_compile) 2>conftest.er1
5147 grep -v '^ *+' conftest.er1 >conftest.err
5149 cat conftest.err >&5
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); } &&
5152 { ac_try='test -z "$ac_cxx_werror_flag"
5153 || test ! -s conftest.err'
5154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5158 (exit $ac_status); }; } &&
5159 { ac_try='test -s conftest.$ac_objext'
5160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5164 (exit $ac_status); }; }; then
5167 echo "$as_me: failed program was:" >&5
5168 sed 's/^/| /' conftest.$ac_ext >&5
5172 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5173 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5176 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5177 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5178 GXX=`test $ac_compiler_gnu = yes && echo yes`
5179 ac_test_CXXFLAGS=${CXXFLAGS+set}
5180 ac_save_CXXFLAGS=$CXXFLAGS
5182 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5183 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5184 if test "${ac_cv_prog_cxx_g+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5187 cat >conftest.$ac_ext <<_ACEOF
5190 cat confdefs.h >>conftest.$ac_ext
5191 cat >>conftest.$ac_ext <<_ACEOF
5192 /* end confdefs.h. */
5202 rm -f conftest.$ac_objext
5203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5204 (eval $ac_compile) 2>conftest.er1
5206 grep -v '^ *+' conftest.er1 >conftest.err
5208 cat conftest.err >&5
5209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5210 (exit $ac_status); } &&
5211 { ac_try='test -z "$ac_cxx_werror_flag"
5212 || test ! -s conftest.err'
5213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5217 (exit $ac_status); }; } &&
5218 { ac_try='test -s conftest.$ac_objext'
5219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5223 (exit $ac_status); }; }; then
5224 ac_cv_prog_cxx_g=yes
5226 echo "$as_me: failed program was:" >&5
5227 sed 's/^/| /' conftest.$ac_ext >&5
5231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5233 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5234 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5235 if test "$ac_test_CXXFLAGS" = set; then
5236 CXXFLAGS=$ac_save_CXXFLAGS
5237 elif test $ac_cv_prog_cxx_g = yes; then
5238 if test "$GXX" = yes; then
5244 if test "$GXX" = yes; then
5250 for ac_declaration in \
5252 'extern "C" void std::exit (int) throw (); using std::exit;' \
5253 'extern "C" void std::exit (int); using std::exit;' \
5254 'extern "C" void exit (int) throw ();' \
5255 'extern "C" void exit (int);' \
5258 cat >conftest.$ac_ext <<_ACEOF
5261 cat confdefs.h >>conftest.$ac_ext
5262 cat >>conftest.$ac_ext <<_ACEOF
5263 /* end confdefs.h. */
5274 rm -f conftest.$ac_objext
5275 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5276 (eval $ac_compile) 2>conftest.er1
5278 grep -v '^ *+' conftest.er1 >conftest.err
5280 cat conftest.err >&5
5281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5282 (exit $ac_status); } &&
5283 { ac_try='test -z "$ac_cxx_werror_flag"
5284 || test ! -s conftest.err'
5285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5289 (exit $ac_status); }; } &&
5290 { ac_try='test -s conftest.$ac_objext'
5291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5295 (exit $ac_status); }; }; then
5298 echo "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5303 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5304 cat >conftest.$ac_ext <<_ACEOF
5307 cat confdefs.h >>conftest.$ac_ext
5308 cat >>conftest.$ac_ext <<_ACEOF
5309 /* end confdefs.h. */
5319 rm -f conftest.$ac_objext
5320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5321 (eval $ac_compile) 2>conftest.er1
5323 grep -v '^ *+' conftest.er1 >conftest.err
5325 cat conftest.err >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); } &&
5328 { ac_try='test -z "$ac_cxx_werror_flag"
5329 || test ! -s conftest.err'
5330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5334 (exit $ac_status); }; } &&
5335 { ac_try='test -s conftest.$ac_objext'
5336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); }; }; then
5343 echo "$as_me: failed program was:" >&5
5344 sed 's/^/| /' conftest.$ac_ext >&5
5347 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5350 if test -n "$ac_declaration"; then
5351 echo '#ifdef __cplusplus' >>confdefs.h
5352 echo $ac_declaration >>confdefs.h
5353 echo '#endif' >>confdefs.h
5357 ac_cpp='$CPP $CPPFLAGS'
5358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5362 depcc="$CXX" am_compiler_list=
5364 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5365 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5366 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5369 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5370 # We make a subdir and do the tests there. Otherwise we can end up
5371 # making bogus files that we don't know about and never remove. For
5372 # instance it was reported that on HP-UX the gcc test will end up
5373 # making a dummy file named `D' -- because `-MD' means `put the output
5376 # Copy depcomp to subdir because otherwise we won't find it if we're
5377 # using a relative directory.
5378 cp "$am_depcomp" conftest.dir
5380 # We will build objects and dependencies in a subdirectory because
5381 # it helps to detect inapplicable dependency modes. For instance
5382 # both Tru64's cc and ICC support -MD to output dependencies as a
5383 # side effect of compilation, but ICC will put the dependencies in
5384 # the current directory while Tru64 will put them in the object
5388 am_cv_CXX_dependencies_compiler_type=none
5389 if test "$am_compiler_list" = ""; then
5390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5392 for depmode in $am_compiler_list; do
5393 # Setup a source with many dependencies, because some compilers
5394 # like to wrap large dependency lists on column 80 (with \), and
5395 # we should not choose a depcomp mode which is confused by this.
5397 # We need to recreate these files for each test, as the compiler may
5398 # overwrite some of them when testing with obscure command lines.
5399 # This happens at least with the AIX C compiler.
5401 for i in 1 2 3 4 5 6; do
5402 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5403 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5404 # Solaris 8's {/usr,}/bin/sh.
5405 touch sub/conftst$i.h
5407 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5411 # after this tag, mechanisms are not by side-effect, so they'll
5412 # only be used when explicitly requested
5413 if test "x$enable_dependency_tracking" = xyes; then
5421 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5422 # mode. It turns out that the SunPro C++ compiler does not properly
5423 # handle `-M -o', and we need to detect this.
5424 if depmode=$depmode \
5425 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5426 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5427 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5428 >/dev/null 2>conftest.err &&
5429 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5430 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5431 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5432 # icc doesn't choke on unknown options, it will just issue warnings
5433 # or remarks (even with -Werror). So we grep stderr for any message
5434 # that says an option was ignored or not supported.
5435 # When given -MP, icc 7.0 and 7.1 complain thusly:
5436 # icc: Command line warning: ignoring option '-M'; no argument required
5437 # The diagnosis changed in icc 8.0:
5438 # icc: Command line remark: option '-MP' not supported
5439 if (grep 'ignoring option' conftest.err ||
5440 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5441 am_cv_CXX_dependencies_compiler_type=$depmode
5450 am_cv_CXX_dependencies_compiler_type=none
5454 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5455 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5456 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5461 test "x$enable_dependency_tracking" != xno \
5462 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5463 am__fastdepCXX_TRUE=
5464 am__fastdepCXX_FALSE='#'
5466 am__fastdepCXX_TRUE='#'
5467 am__fastdepCXX_FALSE=
5471 # Make sure we can run config.sub.
5472 $ac_config_sub sun4 >/dev/null 2>&1 ||
5473 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5474 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5475 { (exit 1); exit 1; }; }
5477 echo "$as_me:$LINENO: checking build system type" >&5
5478 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5479 if test "${ac_cv_build+set}" = set; then
5480 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 ac_cv_build_alias=$build_alias
5483 test -z "$ac_cv_build_alias" &&
5484 ac_cv_build_alias=`$ac_config_guess`
5485 test -z "$ac_cv_build_alias" &&
5486 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5487 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5488 { (exit 1); exit 1; }; }
5489 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5490 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5491 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5492 { (exit 1); exit 1; }; }
5495 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5496 echo "${ECHO_T}$ac_cv_build" >&6
5498 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5499 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5500 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5503 echo "$as_me:$LINENO: checking host system type" >&5
5504 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5505 if test "${ac_cv_host+set}" = set; then
5506 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 ac_cv_host_alias=$host_alias
5509 test -z "$ac_cv_host_alias" &&
5510 ac_cv_host_alias=$ac_cv_build_alias
5511 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5512 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5513 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5514 { (exit 1); exit 1; }; }
5517 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5518 echo "${ECHO_T}$ac_cv_host" >&6
5520 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5521 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5522 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5526 if test "$GCC" = "yes" ; then
5527 # AC_HAVE_GCC_VERSION(4,0,0,0,
5529 # AC_DEFINE(GCC_HASCLASSVISIBILITY,1,
5530 # [Define to enable class visibility control in gcc.])
5531 # GCC_CFLAGS="$GCC_CFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5532 # GCC_CXXFLAGS="$GCC_CXXFLAGS -fvisibility=hidden -fvisibility-inlines-hidden"
5534 CFLAGS="-Wall $GCC_CFLAGS"
5535 CXXFLAGS="-Wall $GCC_CXXFLAGS"
5537 # Fix for Sun Workshop compiler in debug mode, may be Sun case #6360993
5538 case "${host_cpu}-${host_os}" in
5540 if test "$CXX" = "CC" ; then
5541 CXXFLAGS="$CXXFLAGS -Qoption ccfe -stabs=no%dfltlit+no%dflthlp"
5545 CXXFLAGS="$CXXFLAGS -D_POSIX_PII_SOCKET"
5550 # Check whether --enable-static or --disable-static was given.
5551 if test "${enable_static+set}" = set; then
5552 enableval="$enable_static"
5553 p=${PACKAGE-default}
5555 yes) enable_static=yes ;;
5556 no) enable_static=no ;;
5559 # Look at the argument we got. We use all the common list separators.
5560 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5561 for pkg in $enableval; do
5563 if test "X$pkg" = "X$p"; then
5575 # Check whether --enable-shared or --disable-shared was given.
5576 if test "${enable_shared+set}" = set; then
5577 enableval="$enable_shared"
5578 p=${PACKAGE-default}
5580 yes) enable_shared=yes ;;
5581 no) enable_shared=no ;;
5584 # Look at the argument we got. We use all the common list separators.
5585 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5586 for pkg in $enableval; do
5588 if test "X$pkg" = "X$p"; then
5599 # Check whether --enable-fast-install or --disable-fast-install was given.
5600 if test "${enable_fast_install+set}" = set; then
5601 enableval="$enable_fast_install"
5602 p=${PACKAGE-default}
5604 yes) enable_fast_install=yes ;;
5605 no) enable_fast_install=no ;;
5607 enable_fast_install=no
5608 # Look at the argument we got. We use all the common list separators.
5609 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5610 for pkg in $enableval; do
5612 if test "X$pkg" = "X$p"; then
5613 enable_fast_install=yes
5620 enable_fast_install=yes
5623 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5624 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5625 if test "${lt_cv_path_SED+set}" = set; then
5626 echo $ECHO_N "(cached) $ECHO_C" >&6
5628 # Loop through the user's path and test for sed and gsed.
5629 # Then use that list of sed's as ones to test for truncation.
5630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5634 test -z "$as_dir" && as_dir=.
5635 for lt_ac_prog in sed gsed; do
5636 for ac_exec_ext in '' $ac_executable_extensions; do
5637 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5638 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5645 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5646 # along with /bin/sed that truncates output.
5647 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5648 test ! -f $lt_ac_sed && break
5649 cat /dev/null > conftest.in
5651 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5652 # Check for GNU sed and select it if it is found.
5653 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5654 lt_cv_path_SED=$lt_ac_sed
5658 cat conftest.in conftest.in >conftest.tmp
5659 mv conftest.tmp conftest.in
5660 cp conftest.in conftest.nl
5662 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5663 cmp -s conftest.out conftest.nl || break
5664 # 10000 chars as input seems more than enough
5665 test $lt_ac_count -gt 10 && break
5666 lt_ac_count=`expr $lt_ac_count + 1`
5667 if test $lt_ac_count -gt $lt_ac_max; then
5668 lt_ac_max=$lt_ac_count
5669 lt_cv_path_SED=$lt_ac_sed
5677 echo "$as_me:$LINENO: result: $SED" >&5
5678 echo "${ECHO_T}$SED" >&6
5680 echo "$as_me:$LINENO: checking for egrep" >&5
5681 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
5682 if test "${ac_cv_prog_egrep+set}" = set; then
5683 echo $ECHO_N "(cached) $ECHO_C" >&6
5685 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
5686 then ac_cv_prog_egrep='grep -E'
5687 else ac_cv_prog_egrep='egrep'
5690 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
5691 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
5692 EGREP=$ac_cv_prog_egrep
5696 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5697 if test "${with_gnu_ld+set}" = set; then
5698 withval="$with_gnu_ld"
5699 test "$withval" = no || with_gnu_ld=yes
5704 if test "$GCC" = yes; then
5705 # Check if gcc -print-prog-name=ld gives a path.
5706 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5707 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5710 # gcc leaves a trailing carriage return which upsets mingw
5711 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5713 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5716 # Accept absolute paths.
5718 re_direlt='/[^/][^/]*/\.\./'
5719 # Canonicalize the pathname of ld
5720 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5721 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5722 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5724 test -z "$LD" && LD="$ac_prog"
5727 # If it fails, then pretend we aren't using GCC.
5731 # If it is relative, then search for the first ld in PATH.
5735 elif test "$with_gnu_ld" = yes; then
5736 echo "$as_me:$LINENO: checking for GNU ld" >&5
5737 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5739 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5740 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5742 if test "${lt_cv_path_LD+set}" = set; then
5743 echo $ECHO_N "(cached) $ECHO_C" >&6
5745 if test -z "$LD"; then
5746 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5747 for ac_dir in $PATH; do
5749 test -z "$ac_dir" && ac_dir=.
5750 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5751 lt_cv_path_LD="$ac_dir/$ac_prog"
5752 # Check to see if the program is GNU ld. I'd rather use --version,
5753 # but apparently some GNU ld's only accept -v.
5754 # Break only if it was the GNU/non-GNU ld that we prefer.
5755 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5756 *GNU* | *'with BFD'*)
5757 test "$with_gnu_ld" != no && break
5760 test "$with_gnu_ld" != yes && break
5767 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5772 if test -n "$LD"; then
5773 echo "$as_me:$LINENO: result: $LD" >&5
5774 echo "${ECHO_T}$LD" >&6
5776 echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5779 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5780 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5781 { (exit 1); exit 1; }; }
5782 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5783 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5784 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5785 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5788 case `$LD -v 2>&1 </dev/null` in
5789 *GNU* | *'with BFD'*)
5790 lt_cv_prog_gnu_ld=yes
5793 lt_cv_prog_gnu_ld=no
5797 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5798 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5799 with_gnu_ld=$lt_cv_prog_gnu_ld
5802 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5803 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5804 if test "${lt_cv_ld_reload_flag+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5807 lt_cv_ld_reload_flag='-r'
5809 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5810 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5811 reload_flag=$lt_cv_ld_reload_flag
5812 case $reload_flag in
5814 *) reload_flag=" $reload_flag" ;;
5816 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5818 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5819 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5820 if test "${lt_cv_path_NM+set}" = set; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 if test -n "$NM"; then
5824 # Let the user override the test.
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5830 test -z "$ac_dir" && ac_dir=.
5831 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5832 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5833 # Check to see if the nm accepts a BSD-compat flag.
5834 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5835 # nm: unknown option "B" ignored
5836 # Tru64's nm complains that /dev/null is an invalid object file
5837 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5838 */dev/null* | *'Invalid file or object type'*)
5839 lt_cv_path_NM="$tmp_nm -B"
5843 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5845 lt_cv_path_NM="$tmp_nm -p"
5849 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5850 continue # so that we can try to find one that supports BSD flags
5857 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5860 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5861 echo "${ECHO_T}$lt_cv_path_NM" >&6
5864 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5865 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5867 if test "$LN_S" = "ln -s"; then
5868 echo "$as_me:$LINENO: result: yes" >&5
5869 echo "${ECHO_T}yes" >&6
5871 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5872 echo "${ECHO_T}no, using $LN_S" >&6
5875 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5876 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5877 if test "${lt_cv_deplibs_check_method+set}" = set; then
5878 echo $ECHO_N "(cached) $ECHO_C" >&6
5880 lt_cv_file_magic_cmd='$MAGIC_CMD'
5881 lt_cv_file_magic_test_file=
5882 lt_cv_deplibs_check_method='unknown'
5883 # Need to set the preceding variable on all platforms that support
5884 # interlibrary dependencies.
5885 # 'none' -- dependencies not supported.
5886 # `unknown' -- same as none, but documents that we really don't know.
5887 # 'pass_all' -- all dependencies passed with no checks.
5888 # 'test_compile' -- check by making test program.
5889 # 'file_magic [[regex]]' -- check by looking for files in library path
5890 # which responds to the $file_magic_cmd with a given extended regex.
5891 # If you have `file' or equivalent on your system and you're not sure
5892 # whether `pass_all' will *always* work, you probably want this one.
5896 lt_cv_deplibs_check_method=pass_all
5900 lt_cv_deplibs_check_method=pass_all
5904 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5905 lt_cv_file_magic_cmd='/usr/bin/file -L'
5906 lt_cv_file_magic_test_file=/shlib/libc.so
5910 # func_win32_libid is a shell function defined in ltmain.sh
5911 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5912 lt_cv_file_magic_cmd='func_win32_libid'
5916 # Base MSYS/MinGW do not provide the 'file' command needed by
5917 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5918 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5919 lt_cv_file_magic_cmd='$OBJDUMP -f'
5922 darwin* | rhapsody*)
5923 lt_cv_deplibs_check_method=pass_all
5926 freebsd* | kfreebsd*-gnu)
5927 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5930 # Not sure whether the presence of OpenBSD here was a mistake.
5931 # Let's accept both of them until this is cleared up.
5932 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
5933 lt_cv_file_magic_cmd=/usr/bin/file
5934 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5938 lt_cv_deplibs_check_method=pass_all
5943 lt_cv_deplibs_check_method=pass_all
5946 hpux10.20* | hpux11*)
5947 lt_cv_file_magic_cmd=/usr/bin/file
5950 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5951 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5954 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]'
5955 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5958 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5959 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5964 irix5* | irix6* | nonstopux*)
5966 *-32|*"-32 ") libmagic=32-bit;;
5967 *-n32|*"-n32 ") libmagic=N32;;
5968 *-64|*"-64 ") libmagic=64-bit;;
5969 *) libmagic=never-match;;
5971 lt_cv_deplibs_check_method=pass_all
5974 # This must be Linux ELF.
5977 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
5978 lt_cv_deplibs_check_method=pass_all ;;
5980 # glibc up to 2.1.1 does not perform some relocations on ARM
5981 # this will be overridden with pass_all, but let us keep it just in case
5982 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
5984 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
5985 lt_cv_deplibs_check_method=pass_all
5989 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5990 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5992 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5997 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5998 lt_cv_file_magic_cmd=/usr/bin/file
5999 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6003 lt_cv_deplibs_check_method=unknown
6007 lt_cv_file_magic_cmd=/usr/bin/file
6008 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6012 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6016 osf3* | osf4* | osf5*)
6017 lt_cv_deplibs_check_method=pass_all
6021 lt_cv_deplibs_check_method=pass_all
6025 lt_cv_deplibs_check_method=pass_all
6028 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6029 case $host_vendor in
6031 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]'
6032 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6035 lt_cv_deplibs_check_method=pass_all
6038 lt_cv_file_magic_cmd='/bin/file'
6039 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6042 lt_cv_file_magic_cmd='/bin/file'
6043 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6044 lt_cv_file_magic_test_file=/lib/libc.so
6047 lt_cv_deplibs_check_method=pass_all
6052 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6053 lt_cv_deplibs_check_method=pass_all
6058 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6059 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6060 file_magic_cmd=$lt_cv_file_magic_cmd
6061 deplibs_check_method=$lt_cv_deplibs_check_method
6062 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6067 # If no C compiler was specified, use CC.
6070 # Allow CC to be a program name with arguments.
6074 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6075 if test "${enable_libtool_lock+set}" = set; then
6076 enableval="$enable_libtool_lock"
6079 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6081 # Some flags need to be propagated to the compiler or linker for good
6085 # Find out which ABI we are using.
6086 echo 'int i;' > conftest.$ac_ext
6087 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6088 (eval $ac_compile) 2>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); }; then
6092 case `/usr/bin/file conftest.$ac_objext` in
6104 # Find out which ABI we are using.
6105 echo '#line 6105 "configure"' > conftest.$ac_ext
6106 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6107 (eval $ac_compile) 2>&5
6109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6110 (exit $ac_status); }; then
6111 if test "$lt_cv_prog_gnu_ld" = yes; then
6112 case `/usr/bin/file conftest.$ac_objext` in
6114 LD="${LD-ld} -melf32bsmip"
6117 LD="${LD-ld} -melf32bmipn32"
6120 LD="${LD-ld} -melf64bmip"
6124 case `/usr/bin/file conftest.$ac_objext` in
6140 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6141 # Find out which ABI we are using.
6142 echo 'int i;' > conftest.$ac_ext
6143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6144 (eval $ac_compile) 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; then
6148 case "`/usr/bin/file conftest.o`" in
6152 LD="${LD-ld} -m elf_i386"
6154 ppc64-*linux*|powerpc64-*linux*)
6155 LD="${LD-ld} -m elf32ppclinux"
6158 LD="${LD-ld} -m elf_s390"
6161 LD="${LD-ld} -m elf32_sparc"
6168 LD="${LD-ld} -m elf_x86_64"
6170 ppc*-*linux*|powerpc*-*linux*)
6171 LD="${LD-ld} -m elf64ppc"
6174 LD="${LD-ld} -m elf64_s390"
6177 LD="${LD-ld} -m elf64_sparc"
6187 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6188 SAVE_CFLAGS="$CFLAGS"
6189 CFLAGS="$CFLAGS -belf"
6190 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6191 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6192 if test "${lt_cv_cc_needs_belf+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6201 cat >conftest.$ac_ext <<_ACEOF
6204 cat confdefs.h >>conftest.$ac_ext
6205 cat >>conftest.$ac_ext <<_ACEOF
6206 /* end confdefs.h. */
6216 rm -f conftest.$ac_objext conftest$ac_exeext
6217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6218 (eval $ac_link) 2>conftest.er1
6220 grep -v '^ *+' conftest.er1 >conftest.err
6222 cat conftest.err >&5
6223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6224 (exit $ac_status); } &&
6225 { ac_try='test -z "$ac_c_werror_flag"
6226 || test ! -s conftest.err'
6227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6231 (exit $ac_status); }; } &&
6232 { ac_try='test -s conftest$ac_exeext'
6233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6237 (exit $ac_status); }; }; then
6238 lt_cv_cc_needs_belf=yes
6240 echo "$as_me: failed program was:" >&5
6241 sed 's/^/| /' conftest.$ac_ext >&5
6243 lt_cv_cc_needs_belf=no
6245 rm -f conftest.err conftest.$ac_objext \
6246 conftest$ac_exeext conftest.$ac_ext
6248 ac_cpp='$CPP $CPPFLAGS'
6249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6254 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6255 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6256 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6257 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6258 CFLAGS="$SAVE_CFLAGS"
6264 need_locks="$enable_libtool_lock"
6268 ac_cpp='$CPP $CPPFLAGS'
6269 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6270 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6271 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6272 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6273 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6274 # On Suns, sometimes $CPP names a directory.
6275 if test -n "$CPP" && test -d "$CPP"; then
6278 if test -z "$CPP"; then
6279 if test "${ac_cv_prog_CPP+set}" = set; then
6280 echo $ECHO_N "(cached) $ECHO_C" >&6
6282 # Double quotes because CPP needs to be expanded
6283 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6286 for ac_c_preproc_warn_flag in '' yes
6288 # Use a header file that comes with gcc, so configuring glibc
6289 # with a fresh cross-compiler works.
6290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6291 # <limits.h> exists even on freestanding compilers.
6292 # On the NeXT, cc -E runs the code through the compiler's parser,
6293 # not just through cpp. "Syntax error" is here to catch this case.
6294 cat >conftest.$ac_ext <<_ACEOF
6297 cat confdefs.h >>conftest.$ac_ext
6298 cat >>conftest.$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6301 # include <limits.h>
6303 # include <assert.h>
6307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6308 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6310 grep -v '^ *+' conftest.er1 >conftest.err
6312 cat conftest.err >&5
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); } >/dev/null; then
6315 if test -s conftest.err; then
6316 ac_cpp_err=$ac_c_preproc_warn_flag
6317 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6324 if test -z "$ac_cpp_err"; then
6327 echo "$as_me: failed program was:" >&5
6328 sed 's/^/| /' conftest.$ac_ext >&5
6330 # Broken: fails on valid input.
6333 rm -f conftest.err conftest.$ac_ext
6335 # OK, works on sane cases. Now check whether non-existent headers
6336 # can be detected and how.
6337 cat >conftest.$ac_ext <<_ACEOF
6340 cat confdefs.h >>conftest.$ac_ext
6341 cat >>conftest.$ac_ext <<_ACEOF
6342 /* end confdefs.h. */
6343 #include <ac_nonexistent.h>
6345 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6346 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6348 grep -v '^ *+' conftest.er1 >conftest.err
6350 cat conftest.err >&5
6351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352 (exit $ac_status); } >/dev/null; then
6353 if test -s conftest.err; then
6354 ac_cpp_err=$ac_c_preproc_warn_flag
6355 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6362 if test -z "$ac_cpp_err"; then
6363 # Broken: success on invalid input.
6366 echo "$as_me: failed program was:" >&5
6367 sed 's/^/| /' conftest.$ac_ext >&5
6369 # Passes both tests.
6373 rm -f conftest.err conftest.$ac_ext
6376 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6377 rm -f conftest.err conftest.$ac_ext
6378 if $ac_preproc_ok; then
6390 echo "$as_me:$LINENO: result: $CPP" >&5
6391 echo "${ECHO_T}$CPP" >&6
6393 for ac_c_preproc_warn_flag in '' yes
6395 # Use a header file that comes with gcc, so configuring glibc
6396 # with a fresh cross-compiler works.
6397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6398 # <limits.h> exists even on freestanding compilers.
6399 # On the NeXT, cc -E runs the code through the compiler's parser,
6400 # not just through cpp. "Syntax error" is here to catch this case.
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6408 # include <limits.h>
6410 # include <assert.h>
6414 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6415 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6417 grep -v '^ *+' conftest.er1 >conftest.err
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } >/dev/null; then
6422 if test -s conftest.err; then
6423 ac_cpp_err=$ac_c_preproc_warn_flag
6424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6431 if test -z "$ac_cpp_err"; then
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6437 # Broken: fails on valid input.
6440 rm -f conftest.err conftest.$ac_ext
6442 # OK, works on sane cases. Now check whether non-existent headers
6443 # can be detected and how.
6444 cat >conftest.$ac_ext <<_ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <ac_nonexistent.h>
6452 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6453 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } >/dev/null; then
6460 if test -s conftest.err; then
6461 ac_cpp_err=$ac_c_preproc_warn_flag
6462 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6469 if test -z "$ac_cpp_err"; then
6470 # Broken: success on invalid input.
6473 echo "$as_me: failed program was:" >&5
6474 sed 's/^/| /' conftest.$ac_ext >&5
6476 # Passes both tests.
6480 rm -f conftest.err conftest.$ac_ext
6483 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6484 rm -f conftest.err conftest.$ac_ext
6485 if $ac_preproc_ok; then
6488 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6489 See \`config.log' for more details." >&5
6490 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6491 See \`config.log' for more details." >&2;}
6492 { (exit 1); exit 1; }; }
6496 ac_cpp='$CPP $CPPFLAGS'
6497 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6498 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6499 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6502 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6503 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6504 if test "${ac_cv_header_stdc+set}" = set; then
6505 echo $ECHO_N "(cached) $ECHO_C" >&6
6507 cat >conftest.$ac_ext <<_ACEOF
6510 cat confdefs.h >>conftest.$ac_ext
6511 cat >>conftest.$ac_ext <<_ACEOF
6512 /* end confdefs.h. */
6526 rm -f conftest.$ac_objext
6527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6528 (eval $ac_compile) 2>conftest.er1
6530 grep -v '^ *+' conftest.er1 >conftest.err
6532 cat conftest.err >&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); } &&
6535 { ac_try='test -z "$ac_c_werror_flag"
6536 || test ! -s conftest.err'
6537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; } &&
6542 { ac_try='test -s conftest.$ac_objext'
6543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); }; }; then
6548 ac_cv_header_stdc=yes
6550 echo "$as_me: failed program was:" >&5
6551 sed 's/^/| /' conftest.$ac_ext >&5
6553 ac_cv_header_stdc=no
6555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6557 if test $ac_cv_header_stdc = yes; then
6558 # SunOS 4.x string.h does not declare mem*, 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 "memchr" >/dev/null 2>&1; then
6572 ac_cv_header_stdc=no
6578 if test $ac_cv_header_stdc = yes; then
6579 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "free" >/dev/null 2>&1; then
6593 ac_cv_header_stdc=no
6599 if test $ac_cv_header_stdc = yes; then
6600 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6601 if test "$cross_compiling" = yes; then
6604 cat >conftest.$ac_ext <<_ACEOF
6607 cat confdefs.h >>conftest.$ac_ext
6608 cat >>conftest.$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6611 #if ((' ' & 0x0FF) == 0x020)
6612 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6613 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6615 # define ISLOWER(c) \
6616 (('a' <= (c) && (c) <= 'i') \
6617 || ('j' <= (c) && (c) <= 'r') \
6618 || ('s' <= (c) && (c) <= 'z'))
6619 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6622 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6627 for (i = 0; i < 256; i++)
6628 if (XOR (islower (i), ISLOWER (i))
6629 || toupper (i) != TOUPPER (i))
6634 rm -f conftest$ac_exeext
6635 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6636 (eval $ac_link) 2>&5
6638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6639 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6644 (exit $ac_status); }; }; then
6647 echo "$as_me: program exited with status $ac_status" >&5
6648 echo "$as_me: failed program was:" >&5
6649 sed 's/^/| /' conftest.$ac_ext >&5
6652 ac_cv_header_stdc=no
6654 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6658 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6659 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6660 if test $ac_cv_header_stdc = yes; then
6662 cat >>confdefs.h <<\_ACEOF
6663 #define STDC_HEADERS 1
6668 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6678 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6679 inttypes.h stdint.h unistd.h
6681 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6682 echo "$as_me:$LINENO: checking for $ac_header" >&5
6683 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6684 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 cat >conftest.$ac_ext <<_ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h. */
6693 $ac_includes_default
6695 #include <$ac_header>
6697 rm -f conftest.$ac_objext
6698 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6699 (eval $ac_compile) 2>conftest.er1
6701 grep -v '^ *+' conftest.er1 >conftest.err
6703 cat conftest.err >&5
6704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6705 (exit $ac_status); } &&
6706 { ac_try='test -z "$ac_c_werror_flag"
6707 || test ! -s conftest.err'
6708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6712 (exit $ac_status); }; } &&
6713 { ac_try='test -s conftest.$ac_objext'
6714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6718 (exit $ac_status); }; }; then
6719 eval "$as_ac_Header=yes"
6721 echo "$as_me: failed program was:" >&5
6722 sed 's/^/| /' conftest.$ac_ext >&5
6724 eval "$as_ac_Header=no"
6726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6728 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6729 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6730 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6731 cat >>confdefs.h <<_ACEOF
6732 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6741 for ac_header in dlfcn.h
6743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6744 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6745 echo "$as_me:$LINENO: checking for $ac_header" >&5
6746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6747 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6751 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6753 # Is the header compilable?
6754 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6756 cat >conftest.$ac_ext <<_ACEOF
6759 cat confdefs.h >>conftest.$ac_ext
6760 cat >>conftest.$ac_ext <<_ACEOF
6761 /* end confdefs.h. */
6762 $ac_includes_default
6763 #include <$ac_header>
6765 rm -f conftest.$ac_objext
6766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6767 (eval $ac_compile) 2>conftest.er1
6769 grep -v '^ *+' conftest.er1 >conftest.err
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } &&
6774 { ac_try='test -z "$ac_c_werror_flag"
6775 || test ! -s conftest.err'
6776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); }; } &&
6781 { ac_try='test -s conftest.$ac_objext'
6782 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); }; }; then
6787 ac_header_compiler=yes
6789 echo "$as_me: failed program was:" >&5
6790 sed 's/^/| /' conftest.$ac_ext >&5
6792 ac_header_compiler=no
6794 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6795 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6796 echo "${ECHO_T}$ac_header_compiler" >&6
6798 # Is the header present?
6799 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6807 #include <$ac_header>
6809 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6810 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6812 grep -v '^ *+' conftest.er1 >conftest.err
6814 cat conftest.err >&5
6815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null; then
6817 if test -s conftest.err; then
6818 ac_cpp_err=$ac_c_preproc_warn_flag
6819 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6826 if test -z "$ac_cpp_err"; then
6827 ac_header_preproc=yes
6829 echo "$as_me: failed program was:" >&5
6830 sed 's/^/| /' conftest.$ac_ext >&5
6832 ac_header_preproc=no
6834 rm -f conftest.err conftest.$ac_ext
6835 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6836 echo "${ECHO_T}$ac_header_preproc" >&6
6838 # So? What about this header?
6839 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6841 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6842 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6844 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6845 ac_header_preproc=yes
6848 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6849 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6850 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6851 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6852 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6853 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6854 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6855 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6856 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6857 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6858 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6859 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6862 ## --------------------------------------------- ##
6863 ## Report this to shibboleth-users@internet2.edu ##
6864 ## --------------------------------------------- ##
6867 sed "s/^/$as_me: WARNING: /" >&2
6870 echo "$as_me:$LINENO: checking for $ac_header" >&5
6871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6872 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6873 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 eval "$as_ac_Header=\$ac_header_preproc"
6877 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6878 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6881 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6882 cat >>confdefs.h <<_ACEOF
6883 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6891 ac_cpp='$CXXCPP $CPPFLAGS'
6892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6895 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6896 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6897 if test -z "$CXXCPP"; then
6898 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 # Double quotes because CXXCPP needs to be expanded
6902 for CXXCPP in "$CXX -E" "/lib/cpp"
6905 for ac_cxx_preproc_warn_flag in '' yes
6907 # Use a header file that comes with gcc, so configuring glibc
6908 # with a fresh cross-compiler works.
6909 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6910 # <limits.h> exists even on freestanding compilers.
6911 # On the NeXT, cc -E runs the code through the compiler's parser,
6912 # not just through cpp. "Syntax error" is here to catch this case.
6913 cat >conftest.$ac_ext <<_ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6920 # include <limits.h>
6922 # include <assert.h>
6926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6929 grep -v '^ *+' conftest.er1 >conftest.err
6931 cat conftest.err >&5
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); } >/dev/null; then
6934 if test -s conftest.err; then
6935 ac_cpp_err=$ac_cxx_preproc_warn_flag
6936 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6943 if test -z "$ac_cpp_err"; then
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.$ac_ext >&5
6949 # Broken: fails on valid input.
6952 rm -f conftest.err conftest.$ac_ext
6954 # OK, works on sane cases. Now check whether non-existent headers
6955 # can be detected and how.
6956 cat >conftest.$ac_ext <<_ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 #include <ac_nonexistent.h>
6964 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6965 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6967 grep -v '^ *+' conftest.er1 >conftest.err
6969 cat conftest.err >&5
6970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6971 (exit $ac_status); } >/dev/null; then
6972 if test -s conftest.err; then
6973 ac_cpp_err=$ac_cxx_preproc_warn_flag
6974 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6981 if test -z "$ac_cpp_err"; then
6982 # Broken: success on invalid input.
6985 echo "$as_me: failed program was:" >&5
6986 sed 's/^/| /' conftest.$ac_ext >&5
6988 # Passes both tests.
6992 rm -f conftest.err conftest.$ac_ext
6995 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6996 rm -f conftest.err conftest.$ac_ext
6997 if $ac_preproc_ok; then
7002 ac_cv_prog_CXXCPP=$CXXCPP
7005 CXXCPP=$ac_cv_prog_CXXCPP
7007 ac_cv_prog_CXXCPP=$CXXCPP
7009 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7010 echo "${ECHO_T}$CXXCPP" >&6
7012 for ac_cxx_preproc_warn_flag in '' yes
7014 # Use a header file that comes with gcc, so configuring glibc
7015 # with a fresh cross-compiler works.
7016 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7017 # <limits.h> exists even on freestanding compilers.
7018 # On the NeXT, cc -E runs the code through the compiler's parser,
7019 # not just through cpp. "Syntax error" is here to catch this case.
7020 cat >conftest.$ac_ext <<_ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7027 # include <limits.h>
7029 # include <assert.h>
7033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7036 grep -v '^ *+' conftest.er1 >conftest.err
7038 cat conftest.err >&5
7039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7040 (exit $ac_status); } >/dev/null; then
7041 if test -s conftest.err; then
7042 ac_cpp_err=$ac_cxx_preproc_warn_flag
7043 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7050 if test -z "$ac_cpp_err"; then
7053 echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7056 # Broken: fails on valid input.
7059 rm -f conftest.err conftest.$ac_ext
7061 # OK, works on sane cases. Now check whether non-existent headers
7062 # can be detected and how.
7063 cat >conftest.$ac_ext <<_ACEOF
7066 cat confdefs.h >>conftest.$ac_ext
7067 cat >>conftest.$ac_ext <<_ACEOF
7068 /* end confdefs.h. */
7069 #include <ac_nonexistent.h>
7071 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7072 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7074 grep -v '^ *+' conftest.er1 >conftest.err
7076 cat conftest.err >&5
7077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7078 (exit $ac_status); } >/dev/null; then
7079 if test -s conftest.err; then
7080 ac_cpp_err=$ac_cxx_preproc_warn_flag
7081 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7088 if test -z "$ac_cpp_err"; then
7089 # Broken: success on invalid input.
7092 echo "$as_me: failed program was:" >&5
7093 sed 's/^/| /' conftest.$ac_ext >&5
7095 # Passes both tests.
7099 rm -f conftest.err conftest.$ac_ext
7102 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7103 rm -f conftest.err conftest.$ac_ext
7104 if $ac_preproc_ok; then
7107 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7108 See \`config.log' for more details." >&5
7109 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7110 See \`config.log' for more details." >&2;}
7111 { (exit 1); exit 1; }; }
7115 ac_cpp='$CXXCPP $CPPFLAGS'
7116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7122 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7123 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7124 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7125 if test -n "$ac_tool_prefix"; then
7126 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7130 echo "$as_me:$LINENO: checking for $ac_word" >&5
7131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7132 if test "${ac_cv_prog_F77+set}" = set; then
7133 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 if test -n "$F77"; then
7136 ac_cv_prog_F77="$F77" # Let the user override the test.
7138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7142 test -z "$as_dir" && as_dir=.
7143 for ac_exec_ext in '' $ac_executable_extensions; do
7144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7145 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 if test -n "$F77"; then
7156 echo "$as_me:$LINENO: result: $F77" >&5
7157 echo "${ECHO_T}$F77" >&6
7159 echo "$as_me:$LINENO: result: no" >&5
7160 echo "${ECHO_T}no" >&6
7163 test -n "$F77" && break
7166 if test -z "$F77"; then
7168 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7170 # Extract the first word of "$ac_prog", so it can be a program name with args.
7171 set dummy $ac_prog; ac_word=$2
7172 echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7174 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_F77"; then
7178 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir=.
7185 for ac_exec_ext in '' $ac_executable_extensions; do
7186 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7187 ac_cv_prog_ac_ct_F77="$ac_prog"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7196 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7197 if test -n "$ac_ct_F77"; then
7198 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7199 echo "${ECHO_T}$ac_ct_F77" >&6
7201 echo "$as_me:$LINENO: result: no" >&5
7202 echo "${ECHO_T}no" >&6
7205 test -n "$ac_ct_F77" && break
7212 # Provide some information about the compiler.
7213 echo "$as_me:7213:" \
7214 "checking for Fortran 77 compiler version" >&5
7215 ac_compiler=`set X $ac_compile; echo $2`
7216 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7217 (eval $ac_compiler --version </dev/null >&5) 2>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); }
7221 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7222 (eval $ac_compiler -v </dev/null >&5) 2>&5
7224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7225 (exit $ac_status); }
7226 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7227 (eval $ac_compiler -V </dev/null >&5) 2>&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); }
7233 # If we don't use `.F' as extension, the preprocessor is not run on the
7234 # input file. (Note that this only needs to work for GNU compilers.)
7237 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7238 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7239 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 cat >conftest.$ac_ext <<_ACEOF
7250 rm -f conftest.$ac_objext
7251 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7252 (eval $ac_compile) 2>conftest.er1
7254 grep -v '^ *+' conftest.er1 >conftest.err
7256 cat conftest.err >&5
7257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7258 (exit $ac_status); } &&
7259 { ac_try='test -z "$ac_f77_werror_flag"
7260 || test ! -s conftest.err'
7261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }; } &&
7266 { ac_try='test -s conftest.$ac_objext'
7267 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); }; }; then
7274 echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7279 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7280 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7283 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7284 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7286 ac_test_FFLAGS=${FFLAGS+set}
7287 ac_save_FFLAGS=$FFLAGS
7289 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7290 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7291 if test "${ac_cv_prog_f77_g+set}" = set; then
7292 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 cat >conftest.$ac_ext <<_ACEOF
7300 rm -f conftest.$ac_objext
7301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7302 (eval $ac_compile) 2>conftest.er1
7304 grep -v '^ *+' conftest.er1 >conftest.err
7306 cat conftest.err >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); } &&
7309 { ac_try='test -z "$ac_f77_werror_flag"
7310 || test ! -s conftest.err'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; } &&
7316 { ac_try='test -s conftest.$ac_objext'
7317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); }; }; then
7322 ac_cv_prog_f77_g=yes
7324 echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7332 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7333 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7334 if test "$ac_test_FFLAGS" = set; then
7335 FFLAGS=$ac_save_FFLAGS
7336 elif test $ac_cv_prog_f77_g = yes; then
7337 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7343 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7350 G77=`test $ac_compiler_gnu = yes && echo yes`
7352 ac_cpp='$CPP $CPPFLAGS'
7353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7359 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7361 # find the maximum length of command line arguments
7362 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7363 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7364 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 # On DJGPP, this test can blow up pretty badly due to problems in libc
7373 # (any single argument exceeding 2000 bytes causes a buffer overrun
7374 # during glob expansion). Even if it were fixed, the result of this
7375 # check would be larger than it should be.
7376 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7380 # Under GNU Hurd, this test is not required because there is
7381 # no limit to the length of command line arguments.
7382 # Libtool will interpret -1 as no limit whatsoever
7383 lt_cv_sys_max_cmd_len=-1;
7387 # On Win9x/ME, this test blows up -- it succeeds, but takes
7388 # about 5 minutes as the teststring grows exponentially.
7389 # Worse, since 9x/ME are not pre-emptively multitasking,
7390 # you end up with a "frozen" computer, even though with patience
7391 # the test eventually succeeds (with a max line length of 256k).
7392 # Instead, let's just punt: use the minimum linelength reported by
7393 # all of the supported platforms: 8192 (on NT/2K/XP).
7394 lt_cv_sys_max_cmd_len=8192;
7398 # On AmigaOS with pdksh, this test takes hours, literally.
7399 # So we just punt and use a minimum line length of 8192.
7400 lt_cv_sys_max_cmd_len=8192;
7404 # If test is not a shell built-in, we'll probably end up computing a
7405 # maximum length that is only half of the actual maximum length, but
7407 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7408 = "XX$teststring") >/dev/null 2>&1 &&
7409 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7410 lt_cv_sys_max_cmd_len=$new_result &&
7411 test $i != 17 # 1/2 MB should be enough
7414 teststring=$teststring$teststring
7417 # Add a significant safety factor because C++ compilers can tack on massive
7418 # amounts of additional arguments before passing them to the linker.
7419 # It appears as though 1/2 is a usable value.
7420 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7426 if test -n $lt_cv_sys_max_cmd_len ; then
7427 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7428 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7430 echo "$as_me:$LINENO: result: none" >&5
7431 echo "${ECHO_T}none" >&6
7437 # Check for command to grab the raw symbol name followed by C symbol from nm.
7438 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7439 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7440 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7441 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 # These are sane defaults that work on at least a few old systems.
7445 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7447 # Character class describing NM global symbol codes.
7448 symcode='[BCDEGRST]'
7450 # Regexp to match symbols that can be accessed directly from C.
7451 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7453 # Transform the above into a raw symbol and a C symbol.
7454 symxfrm='\1 \2\3 \3'
7456 # Transform an extracted symbol line into a proper C declaration
7457 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7459 # Transform an extracted symbol line into symbol name and symbol address
7460 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'"
7462 # Define system-specific variables.
7467 cygwin* | mingw* | pw32*)
7468 symcode='[ABCDGISTW]'
7470 hpux*) # Its linker distinguishes data from code symbols
7471 if test "$host_cpu" = ia64; then
7472 symcode='[ABCDEGRST]'
7474 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7475 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'"
7478 symcode='[BCDEGRST]'
7481 symcode='[BCDEGQRST]'
7491 # Handle CRLF in mingw tool chain
7495 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7499 # If we're using GNU nm, then use its standard symbol codes.
7500 case `$NM -V 2>&1` in
7501 *GNU* | *'with BFD'*)
7502 symcode='[ABCDGIRSTW]' ;;
7505 # Try without a prefix undercore, then with it.
7506 for ac_symprfx in "" "_"; do
7508 # Write the raw and C identifiers.
7509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7511 # Check to see that the pipe works correctly.
7515 cat > conftest.$ac_ext <<EOF
7520 void nm_test_func(){}
7524 int main(){nm_test_var='a';nm_test_func();return(0);}
7527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7528 (eval $ac_compile) 2>&5
7530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7531 (exit $ac_status); }; then
7532 # Now try to grab the symbols.
7534 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7535 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7538 (exit $ac_status); } && test -s "$nlist"; then
7539 # Try sorting and uniquifying the output.
7540 if sort "$nlist" | uniq > "$nlist"T; then
7541 mv -f "$nlist"T "$nlist"
7546 # Make sure that we snagged all the symbols we need.
7547 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7548 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7549 cat <<EOF > conftest.$ac_ext
7555 # Now generate the symbol file.
7556 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7558 cat <<EOF >> conftest.$ac_ext
7559 #if defined (__STDC__) && __STDC__
7560 # define lt_ptr_t void *
7562 # define lt_ptr_t char *
7566 /* The mapping between symbol names and symbols. */
7571 lt_preloaded_symbols[] =
7574 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7575 cat <<\EOF >> conftest.$ac_ext
7583 # Now try linking the two files.
7584 mv conftest.$ac_objext conftstm.$ac_objext
7585 lt_save_LIBS="$LIBS"
7586 lt_save_CFLAGS="$CFLAGS"
7587 LIBS="conftstm.$ac_objext"
7588 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7589 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7590 (eval $ac_link) 2>&5
7592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7593 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7596 LIBS="$lt_save_LIBS"
7597 CFLAGS="$lt_save_CFLAGS"
7599 echo "cannot find nm_test_func in $nlist" >&5
7602 echo "cannot find nm_test_var in $nlist" >&5
7605 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7608 echo "$progname: failed program was:" >&5
7609 cat conftest.$ac_ext >&5
7611 rm -f conftest* conftst*
7613 # Do not use the global_symbol_pipe unless it works.
7614 if test "$pipe_works" = yes; then
7617 lt_cv_sys_global_symbol_pipe=
7623 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7624 lt_cv_sys_global_symbol_to_cdecl=
7626 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7627 echo "$as_me:$LINENO: result: failed" >&5
7628 echo "${ECHO_T}failed" >&6
7630 echo "$as_me:$LINENO: result: ok" >&5
7631 echo "${ECHO_T}ok" >&6
7634 echo "$as_me:$LINENO: checking for objdir" >&5
7635 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7636 if test "${lt_cv_objdir+set}" = set; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 rm -f .libs 2>/dev/null
7640 mkdir .libs 2>/dev/null
7641 if test -d .libs; then
7644 # MS-DOS does not allow filenames that begin with a dot.
7647 rmdir .libs 2>/dev/null
7649 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7650 echo "${ECHO_T}$lt_cv_objdir" >&6
7651 objdir=$lt_cv_objdir
7659 # AIX sometimes has problems with the GCC collect2 program. For some
7660 # reason, if we set the COLLECT_NAMES environment variable, the problems
7661 # vanish in a puff of smoke.
7662 if test "X${COLLECT_NAMES+set}" != Xset; then
7664 export COLLECT_NAMES
7669 # Sed substitution that helps us do robust quoting. It backslashifies
7670 # metacharacters that are still active within double-quoted strings.
7671 Xsed='sed -e s/^X//'
7672 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7674 # Same as above, but do not quote variable references.
7675 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7677 # Sed substitution to delay expansion of an escaped shell variable in a
7678 # double_quote_subst'ed string.
7679 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7681 # Sed substitution to avoid accidental globbing in evaled expressions
7682 no_glob_subst='s/\*/\\\*/g'
7688 default_ofile=libtool
7689 can_build_shared=yes
7691 # All known linkers require a `.a' archive for static linking (except M$VC,
7692 # which needs '.lib').
7694 ltmain="$ac_aux_dir/ltmain.sh"
7695 ofile="$default_ofile"
7696 with_gnu_ld="$lt_cv_prog_gnu_ld"
7698 if test -n "$ac_tool_prefix"; then
7699 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7700 set dummy ${ac_tool_prefix}ar; ac_word=$2
7701 echo "$as_me:$LINENO: checking for $ac_word" >&5
7702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7703 if test "${ac_cv_prog_AR+set}" = set; then
7704 echo $ECHO_N "(cached) $ECHO_C" >&6
7706 if test -n "$AR"; then
7707 ac_cv_prog_AR="$AR" # Let the user override the test.
7709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7713 test -z "$as_dir" && as_dir=.
7714 for ac_exec_ext in '' $ac_executable_extensions; do
7715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7716 ac_cv_prog_AR="${ac_tool_prefix}ar"
7717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7726 if test -n "$AR"; then
7727 echo "$as_me:$LINENO: result: $AR" >&5
7728 echo "${ECHO_T}$AR" >&6
7730 echo "$as_me:$LINENO: result: no" >&5
7731 echo "${ECHO_T}no" >&6
7735 if test -z "$ac_cv_prog_AR"; then
7737 # Extract the first word of "ar", so it can be a program name with args.
7738 set dummy ar; ac_word=$2
7739 echo "$as_me:$LINENO: checking for $ac_word" >&5
7740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7741 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7744 if test -n "$ac_ct_AR"; then
7745 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 test -z "$as_dir" && as_dir=.
7752 for ac_exec_ext in '' $ac_executable_extensions; do
7753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7754 ac_cv_prog_ac_ct_AR="ar"
7755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7764 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7765 if test -n "$ac_ct_AR"; then
7766 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7767 echo "${ECHO_T}$ac_ct_AR" >&6
7769 echo "$as_me:$LINENO: result: no" >&5
7770 echo "${ECHO_T}no" >&6
7778 if test -n "$ac_tool_prefix"; then
7779 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7780 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7781 echo "$as_me:$LINENO: checking for $ac_word" >&5
7782 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7783 if test "${ac_cv_prog_RANLIB+set}" = set; then
7784 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 if test -n "$RANLIB"; then
7787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7793 test -z "$as_dir" && as_dir=.
7794 for ac_exec_ext in '' $ac_executable_extensions; do
7795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7796 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7805 RANLIB=$ac_cv_prog_RANLIB
7806 if test -n "$RANLIB"; then
7807 echo "$as_me:$LINENO: result: $RANLIB" >&5
7808 echo "${ECHO_T}$RANLIB" >&6
7810 echo "$as_me:$LINENO: result: no" >&5
7811 echo "${ECHO_T}no" >&6
7815 if test -z "$ac_cv_prog_RANLIB"; then
7816 ac_ct_RANLIB=$RANLIB
7817 # Extract the first word of "ranlib", so it can be a program name with args.
7818 set dummy ranlib; ac_word=$2
7819 echo "$as_me:$LINENO: checking for $ac_word" >&5
7820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7821 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7822 echo $ECHO_N "(cached) $ECHO_C" >&6
7824 if test -n "$ac_ct_RANLIB"; then
7825 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831 test -z "$as_dir" && as_dir=.
7832 for ac_exec_ext in '' $ac_executable_extensions; do
7833 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7834 ac_cv_prog_ac_ct_RANLIB="ranlib"
7835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7844 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7845 if test -n "$ac_ct_RANLIB"; then
7846 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7847 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7849 echo "$as_me:$LINENO: result: no" >&5
7850 echo "${ECHO_T}no" >&6
7853 RANLIB=$ac_ct_RANLIB
7855 RANLIB="$ac_cv_prog_RANLIB"
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}strip; ac_word=$2
7861 echo "$as_me:$LINENO: checking for $ac_word" >&5
7862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7863 if test "${ac_cv_prog_STRIP+set}" = set; then
7864 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 if test -n "$STRIP"; then
7867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7885 STRIP=$ac_cv_prog_STRIP
7886 if test -n "$STRIP"; then
7887 echo "$as_me:$LINENO: result: $STRIP" >&5
7888 echo "${ECHO_T}$STRIP" >&6
7890 echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6
7895 if test -z "$ac_cv_prog_STRIP"; then
7897 # Extract the first word of "strip", so it can be a program name with args.
7898 set dummy strip; ac_word=$2
7899 echo "$as_me:$LINENO: checking for $ac_word" >&5
7900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7901 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 if test -n "$ac_ct_STRIP"; then
7905 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7911 test -z "$as_dir" && as_dir=.
7912 for ac_exec_ext in '' $ac_executable_extensions; do
7913 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7914 ac_cv_prog_ac_ct_STRIP="strip"
7915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7924 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7925 if test -n "$ac_ct_STRIP"; then
7926 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7927 echo "${ECHO_T}$ac_ct_STRIP" >&6
7929 echo "$as_me:$LINENO: result: no" >&5
7930 echo "${ECHO_T}no" >&6
7935 STRIP="$ac_cv_prog_STRIP"
7940 old_CFLAGS="$CFLAGS"
7942 # Set sane defaults for various variables
7943 test -z "$AR" && AR=ar
7944 test -z "$AR_FLAGS" && AR_FLAGS=cru
7945 test -z "$AS" && AS=as
7946 test -z "$CC" && CC=cc
7947 test -z "$LTCC" && LTCC=$CC
7948 test -z "$DLLTOOL" && DLLTOOL=dlltool
7949 test -z "$LD" && LD=ld
7950 test -z "$LN_S" && LN_S="ln -s"
7951 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7952 test -z "$NM" && NM=nm
7953 test -z "$SED" && SED=sed
7954 test -z "$OBJDUMP" && OBJDUMP=objdump
7955 test -z "$RANLIB" && RANLIB=:
7956 test -z "$STRIP" && STRIP=:
7957 test -z "$ac_objext" && ac_objext=o
7959 # Determine commands to create old-style static archives.
7960 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7961 old_postinstall_cmds='chmod 644 $oldlib'
7962 old_postuninstall_cmds=
7964 if test -n "$RANLIB"; then
7967 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
7970 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
7973 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7976 # Only perform the check for file, if the check method requires it
7977 case $deplibs_check_method in
7979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7980 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7981 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7982 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7983 echo $ECHO_N "(cached) $ECHO_C" >&6
7987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7990 lt_save_MAGIC_CMD="$MAGIC_CMD"
7991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7993 for ac_dir in $ac_dummy; do
7995 test -z "$ac_dir" && ac_dir=.
7996 if test -f $ac_dir/${ac_tool_prefix}file; then
7997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7998 if test -n "$file_magic_test_file"; then
7999 case $deplibs_check_method in
8001 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8004 $EGREP "$file_magic_regex" > /dev/null; then
8009 *** Warning: the command libtool uses to detect shared libraries,
8010 *** $file_magic_cmd, produces output that libtool cannot recognize.
8011 *** The result is that libtool may fail to recognize shared libraries
8012 *** as such. This will affect the creation of libtool libraries that
8013 *** depend on shared libraries, but programs linked with such libtool
8014 *** libraries will work regardless of this problem. Nevertheless, you
8015 *** may want to report the problem to your system manager and/or to
8016 *** bug-libtool@gnu.org
8026 MAGIC_CMD="$lt_save_MAGIC_CMD"
8031 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8032 if test -n "$MAGIC_CMD"; then
8033 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8034 echo "${ECHO_T}$MAGIC_CMD" >&6
8036 echo "$as_me:$LINENO: result: no" >&5
8037 echo "${ECHO_T}no" >&6
8040 if test -z "$lt_cv_path_MAGIC_CMD"; then
8041 if test -n "$ac_tool_prefix"; then
8042 echo "$as_me:$LINENO: checking for file" >&5
8043 echo $ECHO_N "checking for file... $ECHO_C" >&6
8044 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8045 echo $ECHO_N "(cached) $ECHO_C" >&6
8049 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8052 lt_save_MAGIC_CMD="$MAGIC_CMD"
8053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8054 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8055 for ac_dir in $ac_dummy; do
8057 test -z "$ac_dir" && ac_dir=.
8058 if test -f $ac_dir/file; then
8059 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8060 if test -n "$file_magic_test_file"; then
8061 case $deplibs_check_method in
8063 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8064 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8065 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8066 $EGREP "$file_magic_regex" > /dev/null; then
8071 *** Warning: the command libtool uses to detect shared libraries,
8072 *** $file_magic_cmd, produces output that libtool cannot recognize.
8073 *** The result is that libtool may fail to recognize shared libraries
8074 *** as such. This will affect the creation of libtool libraries that
8075 *** depend on shared libraries, but programs linked with such libtool
8076 *** libraries will work regardless of this problem. Nevertheless, you
8077 *** may want to report the problem to your system manager and/or to
8078 *** bug-libtool@gnu.org
8088 MAGIC_CMD="$lt_save_MAGIC_CMD"
8093 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8094 if test -n "$MAGIC_CMD"; then
8095 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8096 echo "${ECHO_T}$MAGIC_CMD" >&6
8098 echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6
8114 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8115 if test "${enable_libtool_lock+set}" = set; then
8116 enableval="$enable_libtool_lock"
8119 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8122 # Check whether --with-pic or --without-pic was given.
8123 if test "${with_pic+set}" = set; then
8129 test -z "$pic_mode" && pic_mode=default
8131 # Use C for the default configuration in the libtool script
8135 ac_cpp='$CPP $CPPFLAGS'
8136 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8137 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8138 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8141 # Source file extension for C test sources.
8144 # Object file extension for compiled C test sources.
8148 # Code to be used in simple compile tests
8149 lt_simple_compile_test_code="int some_variable = 0;\n"
8151 # Code to be used in simple link tests
8152 lt_simple_link_test_code='int main(){return(0);}\n'
8155 # If no C compiler was specified, use CC.
8158 # Allow CC to be a program name with arguments.
8163 # Check for any special shared library compilation flags.
8166 if test "$GCC" = no; then
8169 lt_prog_cc_shlib='-belf'
8173 if test -n "$lt_prog_cc_shlib"; then
8174 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8175 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8176 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8178 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8179 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8180 lt_cv_prog_cc_can_build_shared=no
8186 # Check to make sure the static flag actually works.
8188 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8189 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8190 if test "${lt_prog_compiler_static_works+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8193 lt_prog_compiler_static_works=no
8194 save_LDFLAGS="$LDFLAGS"
8195 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8196 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8197 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8198 # The compiler can only warn and ignore the option if not recognized
8199 # So say no if there are warnings
8200 if test -s conftest.err; then
8201 # Append any errors to the config.log.
8202 cat conftest.err 1>&5
8204 lt_prog_compiler_static_works=yes
8208 LDFLAGS="$save_LDFLAGS"
8211 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8212 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8214 if test x"$lt_prog_compiler_static_works" = xyes; then
8217 lt_prog_compiler_static=
8223 ## There is no encapsulation within the following macros, do not change
8224 ## the running order or otherwise move them around unless you know exactly
8225 ## what you are doing...
8227 lt_prog_compiler_no_builtin_flag=
8229 if test "$GCC" = yes; then
8230 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8233 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8234 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8235 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8236 echo $ECHO_N "(cached) $ECHO_C" >&6
8238 lt_cv_prog_compiler_rtti_exceptions=no
8239 ac_outfile=conftest.$ac_objext
8240 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8241 lt_compiler_flag="-fno-rtti -fno-exceptions"
8242 # Insert the option either (1) after the last *FLAGS variable, or
8243 # (2) before a word containing "conftest.", or (3) at the end.
8244 # Note that $ac_compile itself does not contain backslashes and begins
8245 # with a dollar sign (not a hyphen), so the echo should work correctly.
8246 # The option is referenced via a variable to avoid confusing sed.
8247 lt_compile=`echo "$ac_compile" | $SED \
8248 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8250 -e 's:$: $lt_compiler_flag:'`
8251 (eval echo "\"\$as_me:8251: $lt_compile\"" >&5)
8252 (eval "$lt_compile" 2>conftest.err)
8254 cat conftest.err >&5
8255 echo "$as_me:8255: \$? = $ac_status" >&5
8256 if (exit $ac_status) && test -s "$ac_outfile"; then
8257 # The compiler can only warn and ignore the option if not recognized
8258 # So say no if there are warnings
8259 if test ! -s conftest.err; then
8260 lt_cv_prog_compiler_rtti_exceptions=yes
8266 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8267 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8269 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8270 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8277 lt_prog_compiler_wl=
8278 lt_prog_compiler_pic=
8279 lt_prog_compiler_static=
8281 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8282 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8284 if test "$GCC" = yes; then
8285 lt_prog_compiler_wl='-Wl,'
8286 lt_prog_compiler_static='-static'
8290 # All AIX code is PIC.
8291 if test "$host_cpu" = ia64; then
8292 # AIX 5 now supports IA64 processor
8293 lt_prog_compiler_static='-Bstatic'
8298 # FIXME: we need at least 68020 code to build shared libraries, but
8299 # adding the `-m68020' flag to GCC prevents building anything better,
8301 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8304 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8305 # PIC is the default for these OSes.
8308 mingw* | pw32* | os2*)
8309 # This hack is so that the source file can tell whether it is being
8310 # built for inclusion in a dll (and should export symbols for example).
8311 lt_prog_compiler_pic='-DDLL_EXPORT'
8314 darwin* | rhapsody*)
8315 # PIC is the default on this platform
8316 # Common symbols not allowed in MH_DYLIB files
8317 lt_prog_compiler_pic='-fno-common'
8321 # Just because we use GCC doesn't mean we suddenly get shared libraries
8322 # on systems that don't support them.
8323 lt_prog_compiler_can_build_shared=no
8328 if test -d /usr/nec; then
8329 lt_prog_compiler_pic=-Kconform_pic
8334 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8341 lt_prog_compiler_pic='-fPIC'
8347 lt_prog_compiler_pic='-fPIC'
8351 # PORTME Check for flag to pass linker flags through the system compiler.
8354 lt_prog_compiler_wl='-Wl,'
8355 if test "$host_cpu" = ia64; then
8356 # AIX 5 now supports IA64 processor
8357 lt_prog_compiler_static='-Bstatic'
8359 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8363 mingw* | pw32* | os2*)
8364 # This hack is so that the source file can tell whether it is being
8365 # built for inclusion in a dll (and should export symbols for example).
8366 lt_prog_compiler_pic='-DDLL_EXPORT'
8369 hpux9* | hpux10* | hpux11*)
8370 lt_prog_compiler_wl='-Wl,'
8371 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8378 lt_prog_compiler_pic='+Z'
8381 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8382 lt_prog_compiler_static='${wl}-a ${wl}archive'
8385 irix5* | irix6* | nonstopux*)
8386 lt_prog_compiler_wl='-Wl,'
8387 # PIC (with -KPIC) is the default.
8388 lt_prog_compiler_static='-non_shared'
8392 lt_prog_compiler_pic='-KPIC'
8393 lt_prog_compiler_static='-Bstatic'
8399 lt_prog_compiler_wl='-Wl,'
8400 lt_prog_compiler_pic='-KPIC'
8401 lt_prog_compiler_static='-static'
8404 lt_prog_compiler_wl='-Wl,'
8405 # All Alpha code is PIC.
8406 lt_prog_compiler_static='-non_shared'
8411 osf3* | osf4* | osf5*)
8412 lt_prog_compiler_wl='-Wl,'
8413 # All OSF/1 code is PIC.
8414 lt_prog_compiler_static='-non_shared'
8418 lt_prog_compiler_pic='-Kpic'
8419 lt_prog_compiler_static='-dn'
8423 lt_prog_compiler_wl='-Wl,'
8424 lt_prog_compiler_pic='-KPIC'
8425 lt_prog_compiler_static='-Bstatic'
8429 lt_prog_compiler_wl='-Qoption ld '
8430 lt_prog_compiler_pic='-PIC'
8431 lt_prog_compiler_static='-Bstatic'
8434 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8435 lt_prog_compiler_wl='-Wl,'
8436 lt_prog_compiler_pic='-KPIC'
8437 lt_prog_compiler_static='-Bstatic'
8441 if test -d /usr/nec ;then
8442 lt_prog_compiler_pic='-Kconform_pic'
8443 lt_prog_compiler_static='-Bstatic'
8448 lt_prog_compiler_pic='-pic'
8449 lt_prog_compiler_static='-Bstatic'
8453 lt_prog_compiler_can_build_shared=no
8458 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8459 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8462 # Check to make sure the PIC flag actually works.
8464 if test -n "$lt_prog_compiler_pic"; then
8466 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8467 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8468 if test "${lt_prog_compiler_pic_works+set}" = set; then
8469 echo $ECHO_N "(cached) $ECHO_C" >&6
8471 lt_prog_compiler_pic_works=no
8472 ac_outfile=conftest.$ac_objext
8473 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8474 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8475 # Insert the option either (1) after the last *FLAGS variable, or
8476 # (2) before a word containing "conftest.", or (3) at the end.
8477 # Note that $ac_compile itself does not contain backslashes and begins
8478 # with a dollar sign (not a hyphen), so the echo should work correctly.
8479 # The option is referenced via a variable to avoid confusing sed.
8480 lt_compile=`echo "$ac_compile" | $SED \
8481 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8482 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8483 -e 's:$: $lt_compiler_flag:'`
8484 (eval echo "\"\$as_me:8484: $lt_compile\"" >&5)
8485 (eval "$lt_compile" 2>conftest.err)
8487 cat conftest.err >&5
8488 echo "$as_me:8488: \$? = $ac_status" >&5
8489 if (exit $ac_status) && test -s "$ac_outfile"; then
8490 # The compiler can only warn and ignore the option if not recognized
8491 # So say no if there are warnings
8492 if test ! -s conftest.err; then
8493 lt_prog_compiler_pic_works=yes
8499 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8500 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8502 if test x"$lt_prog_compiler_pic_works" = xyes; then
8503 case $lt_prog_compiler_pic in
8505 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8508 lt_prog_compiler_pic=
8509 lt_prog_compiler_can_build_shared=no
8514 # For platforms which do not support PIC, -DPIC is meaningless:
8516 lt_prog_compiler_pic=
8519 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8523 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8524 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8525 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8528 lt_cv_prog_compiler_c_o=no
8529 $rm -r conftest 2>/dev/null
8533 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8535 lt_compiler_flag="-o out/conftest2.$ac_objext"
8536 # Insert the option either (1) after the last *FLAGS variable, or
8537 # (2) before a word containing "conftest.", or (3) at the end.
8538 # Note that $ac_compile itself does not contain backslashes and begins
8539 # with a dollar sign (not a hyphen), so the echo should work correctly.
8540 lt_compile=`echo "$ac_compile" | $SED \
8541 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8542 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8543 -e 's:$: $lt_compiler_flag:'`
8544 (eval echo "\"\$as_me:8544: $lt_compile\"" >&5)
8545 (eval "$lt_compile" 2>out/conftest.err)
8547 cat out/conftest.err >&5
8548 echo "$as_me:8548: \$? = $ac_status" >&5
8549 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8551 # The compiler can only warn and ignore the option if not recognized
8552 # So say no if there are warnings
8553 if test ! -s out/conftest.err; then
8554 lt_cv_prog_compiler_c_o=yes
8559 # SGI C++ compiler will create directory out/ii_files/ for
8560 # template instantiation
8561 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8562 $rm out/* && rmdir out
8568 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8569 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8572 hard_links="nottested"
8573 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8574 # do not overwrite the value of need_locks provided by the user
8575 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8576 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8581 ln conftest.a conftest.b 2>&5 || hard_links=no
8582 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8583 echo "$as_me:$LINENO: result: $hard_links" >&5
8584 echo "${ECHO_T}$hard_links" >&6
8585 if test "$hard_links" = no; then
8586 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8587 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8594 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8595 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8598 allow_undefined_flag=
8599 enable_shared_with_static_runtimes=no
8601 archive_expsym_cmds=
8602 old_archive_From_new_cmds=
8603 old_archive_from_expsyms_cmds=
8604 export_dynamic_flag_spec=
8605 whole_archive_flag_spec=
8606 thread_safe_flag_spec=
8607 hardcode_libdir_flag_spec=
8608 hardcode_libdir_flag_spec_ld=
8609 hardcode_libdir_separator=
8612 hardcode_shlibpath_var=unsupported
8613 link_all_deplibs=unknown
8614 hardcode_automatic=no
8617 always_export_symbols=no
8618 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8619 # include_expsyms should be a list of space-separated symbols to be *always*
8620 # included in the symbol list
8622 # exclude_expsyms can be an extended regexp of symbols to exclude
8623 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8624 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8625 # as well as any symbol that contains `d'.
8626 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8627 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8628 # platforms (ab)use it in PIC code, but their linkers get confused if
8629 # the symbol is explicitly referenced. Since portable code cannot
8630 # rely on this symbol name, it's probably fine to never include it in
8631 # preloaded symbol tables.
8632 extract_expsyms_cmds=
8635 cygwin* | mingw* | pw32*)
8636 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8637 # When not using gcc, we currently assume that we are using
8638 # Microsoft Visual C++.
8639 if test "$GCC" != yes; then
8649 if test "$with_gnu_ld" = yes; then
8650 # If archive_cmds runs LD, not CC, wlarc should be empty
8653 # See if GNU ld supports shared libraries.
8655 aix3* | aix4* | aix5*)
8656 # On AIX/PPC, the GNU linker is very broken
8657 if test "$host_cpu" != ia64; then
8661 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8662 *** to be unable to reliably create shared libraries on AIX.
8663 *** Therefore, libtool is disabling shared libraries support. If you
8664 *** really care for shared libraries, you may want to modify your PATH
8665 *** so that a non-GNU linker is found, and then restart.
8672 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)'
8673 hardcode_libdir_flag_spec='-L$libdir'
8674 hardcode_minus_L=yes
8676 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8677 # that the semantics of dynamic libraries on AmigaOS, at least up
8678 # to version 4, is to share data among multiple programs linked
8679 # with the same dynamic library. Since this doesn't match the
8680 # behavior of shared libraries on other platforms, we can't use
8686 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8687 allow_undefined_flag=unsupported
8688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8689 # support --undefined. This deserves some investigation. FIXME
8690 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8696 cygwin* | mingw* | pw32*)
8697 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8698 # as there is no search path for DLLs.
8699 hardcode_libdir_flag_spec='-L$libdir'
8700 allow_undefined_flag=unsupported
8701 always_export_symbols=no
8702 enable_shared_with_static_runtimes=yes
8703 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8705 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8706 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8707 # If the export-symbols file already is a .def file (1st line
8708 # is EXPORTS), use it as is; otherwise, prepend...
8709 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8710 cp $export_symbols $output_objdir/$soname.def;
8712 echo EXPORTS > $output_objdir/$soname.def;
8713 cat $export_symbols >> $output_objdir/$soname.def;
8715 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8723 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8726 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8727 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8732 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8736 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8737 *** create shared libraries on Solaris systems. Therefore, libtool
8738 *** is disabling shared libraries support. We urge you to upgrade GNU
8739 *** binutils to release 2.9.1 or newer. Another option is to modify
8740 *** your PATH or compiler configuration so that the native linker is
8741 *** used, and then restart.
8744 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8756 hardcode_shlibpath_var=no
8760 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8761 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8762 archive_cmds="$tmp_archive_cmds"
8763 supports_anon_versioning=no
8764 case `$LD -v 2>/dev/null` in
8765 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8766 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8767 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8768 *\ 2.11.*) ;; # other 2.11 versions
8769 *) supports_anon_versioning=yes ;;
8771 if test $supports_anon_versioning = yes; then
8772 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8773 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8774 $echo "local: *; };" >> $output_objdir/$libname.ver~
8775 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8777 archive_expsym_cmds="$tmp_archive_cmds"
8785 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8786 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8787 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8794 if test "$ld_shlibs" = yes; then
8795 runpath_var=LD_RUN_PATH
8796 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8797 export_dynamic_flag_spec='${wl}--export-dynamic'
8798 # ancient GNU ld didn't support --whole-archive et. al.
8799 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8800 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8802 whole_archive_flag_spec=
8806 # PORTME fill in a description of your system's linker (not GNU ld)
8809 allow_undefined_flag=unsupported
8810 always_export_symbols=yes
8811 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'
8812 # Note: this linker hardcodes the directories in LIBPATH if there
8813 # are no directories specified by -L.
8814 hardcode_minus_L=yes
8815 if test "$GCC" = yes && test -z "$link_static_flag"; then
8816 # Neither direct hardcoding nor static linking is supported with a
8818 hardcode_direct=unsupported
8823 if test "$host_cpu" = ia64; then
8824 # On IA64, the linker does run time linking by default, so we don't
8825 # have to do anything special.
8826 aix_use_runtimelinking=no
8827 exp_sym_flag='-Bexport'
8830 # If we're using GNU nm, then we don't want the "-C" option.
8831 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8832 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8833 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'
8835 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'
8837 aix_use_runtimelinking=no
8839 # Test if we are trying to use run time linking or normal
8840 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8841 # need to do runtime linking.
8842 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8843 for ld_flag in $LDFLAGS; do
8844 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8845 aix_use_runtimelinking=yes
8851 exp_sym_flag='-bexport'
8852 no_entry_flag='-bnoentry'
8855 # When large executables or shared objects are built, AIX ld can
8856 # have problems creating the table of contents. If linking a library
8857 # or program results in "error TOC overflow" add -mminimal-toc to
8858 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8859 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8863 hardcode_libdir_separator=':'
8864 link_all_deplibs=yes
8866 if test "$GCC" = yes; then
8867 case $host_os in aix4.012|aix4.012.*)
8868 # We only want to do this on AIX 4.2 and lower, the check
8869 # below for broken collect2 doesn't work under 4.3+
8870 collect2name=`${CC} -print-prog-name=collect2`
8871 if test -f "$collect2name" && \
8872 strings "$collect2name" | grep resolve_lib_name >/dev/null
8874 # We have reworked collect2
8877 # We have old collect2
8878 hardcode_direct=unsupported
8879 # It fails to find uninstalled libraries when the uninstalled
8880 # path is not listed in the libpath. Setting hardcode_minus_L
8881 # to unsupported forces relinking
8882 hardcode_minus_L=yes
8883 hardcode_libdir_flag_spec='-L$libdir'
8884 hardcode_libdir_separator=
8887 shared_flag='-shared'
8890 if test "$host_cpu" = ia64; then
8891 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8892 # chokes on -Wl,-G. The following line is correct:
8895 if test "$aix_use_runtimelinking" = yes; then
8896 shared_flag='${wl}-G'
8898 shared_flag='${wl}-bM:SRE'
8903 # It seems that -bexpall does not export symbols beginning with
8904 # underscore (_), so it is better to generate a list of symbols to export.
8905 always_export_symbols=yes
8906 if test "$aix_use_runtimelinking" = yes; then
8907 # Warning - without using the other runtime loading flags (-brtl),
8908 # -berok will link without error, but may produce a broken library.
8909 allow_undefined_flag='-berok'
8910 # Determine the default libpath from the value encoded in an empty executable.
8911 cat >conftest.$ac_ext <<_ACEOF
8914 cat confdefs.h >>conftest.$ac_ext
8915 cat >>conftest.$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8926 rm -f conftest.$ac_objext conftest$ac_exeext
8927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8928 (eval $ac_link) 2>conftest.er1
8930 grep -v '^ *+' conftest.er1 >conftest.err
8932 cat conftest.err >&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); } &&
8935 { ac_try='test -z "$ac_c_werror_flag"
8936 || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest$ac_exeext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8949 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8951 # Check for a 64-bit object if we didn't find anything.
8952 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; }
8955 echo "$as_me: failed program was:" >&5
8956 sed 's/^/| /' conftest.$ac_ext >&5
8959 rm -f conftest.err conftest.$ac_objext \
8960 conftest$ac_exeext conftest.$ac_ext
8961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8963 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8964 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"
8966 if test "$host_cpu" = ia64; then
8967 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8968 allow_undefined_flag="-z nodefs"
8969 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"
8971 # Determine the default libpath from the value encoded in an empty executable.
8972 cat >conftest.$ac_ext <<_ACEOF
8975 cat confdefs.h >>conftest.$ac_ext
8976 cat >>conftest.$ac_ext <<_ACEOF
8977 /* end confdefs.h. */
8987 rm -f conftest.$ac_objext conftest$ac_exeext
8988 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8989 (eval $ac_link) 2>conftest.er1
8991 grep -v '^ *+' conftest.er1 >conftest.err
8993 cat conftest.err >&5
8994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8995 (exit $ac_status); } &&
8996 { ac_try='test -z "$ac_c_werror_flag"
8997 || test ! -s conftest.err'
8998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); }; } &&
9003 { ac_try='test -s conftest$ac_exeext'
9004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9008 (exit $ac_status); }; }; then
9010 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9012 # Check for a 64-bit object if we didn't find anything.
9013 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; }
9016 echo "$as_me: failed program was:" >&5
9017 sed 's/^/| /' conftest.$ac_ext >&5
9020 rm -f conftest.err conftest.$ac_objext \
9021 conftest$ac_exeext conftest.$ac_ext
9022 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9024 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9025 # Warning - without using the other run time loading flags,
9026 # -berok will link without error, but may produce a broken library.
9027 no_undefined_flag=' ${wl}-bernotok'
9028 allow_undefined_flag=' ${wl}-berok'
9029 # -bexpall does not export symbols beginning with underscore (_)
9030 always_export_symbols=yes
9031 # Exported symbols can be pulled into shared objects from archives
9032 whole_archive_flag_spec=' '
9033 archive_cmds_need_lc=yes
9034 # This is similar to how AIX traditionally builds it's shared libraries.
9035 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'
9041 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)'
9042 hardcode_libdir_flag_spec='-L$libdir'
9043 hardcode_minus_L=yes
9044 # see comment about different semantics on the GNU ld section
9049 export_dynamic_flag_spec=-rdynamic
9052 cygwin* | mingw* | pw32*)
9053 # When not using gcc, we currently assume that we are using
9054 # Microsoft Visual C++.
9055 # hardcode_libdir_flag_spec is actually meaningless, as there is
9056 # no search path for DLLs.
9057 hardcode_libdir_flag_spec=' '
9058 allow_undefined_flag=unsupported
9059 # Tell ltmain to make .lib files, not .a files.
9061 # Tell ltmain to make .dll files, not .so files.
9063 # FIXME: Setting linknames here is a bad hack.
9064 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9065 # The linker will automatically build a .lib file if we build a DLL.
9066 old_archive_From_new_cmds='true'
9067 # FIXME: Should let the user specify the lib program.
9068 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9069 fix_srcfile_path='`cygpath -w "$srcfile"`'
9070 enable_shared_with_static_runtimes=yes
9073 darwin* | rhapsody*)
9074 if test "$GXX" = yes ; then
9075 archive_cmds_need_lc=no
9077 rhapsody* | darwin1.[012])
9078 allow_undefined_flag='-undefined suppress'
9081 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9082 allow_undefined_flag='-flat_namespace -undefined suppress'
9084 case ${MACOSX_DEPLOYMENT_TARGET} in
9086 allow_undefined_flag='-flat_namespace -undefined suppress'
9089 allow_undefined_flag='-undefined dynamic_lookup'
9095 lt_int_apple_cc_single_mod=no
9096 output_verbose_link_cmd='echo'
9097 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9098 lt_int_apple_cc_single_mod=yes
9100 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9101 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9103 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'
9105 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9106 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9107 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9108 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}'
9110 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}'
9112 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}'
9114 hardcode_automatic=yes
9115 hardcode_shlibpath_var=unsupported
9116 whole_archive_flag_spec='-all_load $convenience'
9117 link_all_deplibs=yes
9124 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 hardcode_shlibpath_var=no
9133 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9134 # support. Future versions do this automatically, but an explicit c++rt0.o
9135 # does not break anything, and helps significantly (at the cost of a little
9138 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9139 hardcode_libdir_flag_spec='-R$libdir'
9141 hardcode_shlibpath_var=no
9144 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9148 hardcode_minus_L=yes
9149 hardcode_shlibpath_var=no
9152 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9153 freebsd* | kfreebsd*-gnu)
9154 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9155 hardcode_libdir_flag_spec='-R$libdir'
9157 hardcode_shlibpath_var=no
9161 if test "$GCC" = yes; then
9162 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'
9164 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'
9166 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9167 hardcode_libdir_separator=:
9170 # hardcode_minus_L: Not really in the search PATH,
9171 # but as the default location of the library.
9172 hardcode_minus_L=yes
9173 export_dynamic_flag_spec='${wl}-E'
9177 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9180 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9183 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9189 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9192 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9196 if test "$with_gnu_ld" = no; then
9199 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9200 hardcode_libdir_flag_spec_ld='+b $libdir'
9201 hardcode_libdir_separator=:
9203 hardcode_shlibpath_var=no
9206 hardcode_libdir_flag_spec='-L$libdir'
9208 hardcode_shlibpath_var=no
9210 # hardcode_minus_L: Not really in the search PATH,
9211 # but as the default location of the library.
9212 hardcode_minus_L=yes
9215 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9216 hardcode_libdir_separator=:
9218 export_dynamic_flag_spec='${wl}-E'
9220 # hardcode_minus_L: Not really in the search PATH,
9221 # but as the default location of the library.
9222 hardcode_minus_L=yes
9228 irix5* | irix6* | nonstopux*)
9229 if test "$GCC" = yes; then
9230 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'
9232 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'
9233 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9236 hardcode_libdir_separator=:
9237 link_all_deplibs=yes
9241 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9242 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9244 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9246 hardcode_libdir_flag_spec='-R$libdir'
9248 hardcode_shlibpath_var=no
9252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9254 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9255 hardcode_libdir_separator=:
9256 hardcode_shlibpath_var=no
9261 hardcode_shlibpath_var=no
9262 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9263 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9264 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9265 export_dynamic_flag_spec='${wl}-E'
9268 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9270 hardcode_libdir_flag_spec='-R$libdir'
9273 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9274 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9281 hardcode_libdir_flag_spec='-L$libdir'
9282 hardcode_minus_L=yes
9283 allow_undefined_flag=unsupported
9284 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'
9285 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9289 if test "$GCC" = yes; then
9290 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9291 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'
9293 allow_undefined_flag=' -expect_unresolved \*'
9294 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'
9296 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9297 hardcode_libdir_separator=:
9300 osf4* | osf5*) # as osf3* with the addition of -msym flag
9301 if test "$GCC" = yes; then
9302 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9303 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'
9304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9306 allow_undefined_flag=' -expect_unresolved \*'
9307 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'
9308 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9309 $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'
9311 # Both c and cxx compiler support -rpath directly
9312 hardcode_libdir_flag_spec='-rpath $libdir'
9314 hardcode_libdir_separator=:
9318 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9319 hardcode_shlibpath_var=no
9320 export_dynamic_flag_spec='${wl}-Bexport'
9321 runpath_var=LD_RUN_PATH
9322 hardcode_runpath_var=yes
9326 no_undefined_flag=' -z text'
9327 if test "$GCC" = yes; then
9328 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9329 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9330 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9332 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9333 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9334 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9336 hardcode_libdir_flag_spec='-R$libdir'
9337 hardcode_shlibpath_var=no
9339 solaris2.[0-5] | solaris2.[0-5].*) ;;
9340 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9341 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9343 link_all_deplibs=yes
9347 if test "x$host_vendor" = xsequent; then
9348 # Use $CC to link under sequent, because it throws in some extra .o
9349 # files that make .init and .fini sections work.
9350 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9352 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9354 hardcode_libdir_flag_spec='-L$libdir'
9356 hardcode_minus_L=yes
9357 hardcode_shlibpath_var=no
9361 case $host_vendor in
9363 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9364 hardcode_direct=yes # is this really true???
9367 ## LD is ld it makes a PLAMLIB
9368 ## CC just makes a GrossModule.
9369 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9370 reload_cmds='$CC -r -o $output$reload_objs'
9374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9375 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9378 runpath_var='LD_RUN_PATH'
9379 hardcode_shlibpath_var=no
9383 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9384 hardcode_shlibpath_var=no
9385 export_dynamic_flag_spec='-Bexport'
9389 if test -d /usr/nec; then
9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9391 hardcode_shlibpath_var=no
9392 runpath_var=LD_RUN_PATH
9393 hardcode_runpath_var=yes
9399 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_shlibpath_var=no
9403 hardcode_runpath_var=yes
9404 runpath_var=LD_RUN_PATH
9407 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9408 no_undefined_flag='${wl}-z ${wl}text'
9409 if test "$GCC" = yes; then
9410 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9412 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9414 runpath_var='LD_RUN_PATH'
9415 hardcode_shlibpath_var=no
9419 no_undefined_flag=' -z text'
9420 # $CC -shared without GNU ld will not create a library from C++
9421 # object files and a static libstdc++, better avoid it by now
9422 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9423 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9424 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9425 hardcode_libdir_flag_spec=
9426 hardcode_shlibpath_var=no
9427 runpath_var='LD_RUN_PATH'
9431 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9432 hardcode_libdir_flag_spec='-L$libdir'
9433 hardcode_shlibpath_var=no
9442 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9443 echo "${ECHO_T}$ld_shlibs" >&6
9444 test "$ld_shlibs" = no && can_build_shared=no
9446 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9447 if test "$GCC" = yes; then
9448 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9452 # Do we need to explicitly link libc?
9454 case "x$archive_cmds_need_lc" in
9456 # Assume -lc should be added
9457 archive_cmds_need_lc=yes
9459 if test "$enable_shared" = yes && test "$GCC" = yes; then
9460 case $archive_cmds in
9462 # FIXME: we may have to deal with multi-command sequences.
9465 # Test whether the compiler implicitly links with -lc since on some
9466 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9467 # to ld, don't add -lc before -lgcc.
9468 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9469 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9471 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9474 (eval $ac_compile) 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } 2>conftest.err; then
9480 libobjs=conftest.$ac_objext
9482 wl=$lt_prog_compiler_wl
9488 lt_save_allow_undefined_flag=$allow_undefined_flag
9489 allow_undefined_flag=
9490 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9491 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9494 (exit $ac_status); }
9496 archive_cmds_need_lc=no
9498 archive_cmds_need_lc=yes
9500 allow_undefined_flag=$lt_save_allow_undefined_flag
9502 cat conftest.err 1>&5
9505 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9506 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9513 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9514 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9516 libname_spec='lib$name'
9524 shlibpath_overrides_runpath=unknown
9526 dynamic_linker="$host_os ld.so"
9527 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9528 if test "$GCC" = yes; then
9529 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9530 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9531 # if the path contains ";" then we assume it to be the separator
9532 # otherwise default to the standard path separator (i.e. ":") - it is
9533 # assumed that no part of a normal pathname contains ";" but that should
9534 # okay in the real world where ";" in dirpaths is itself problematic.
9535 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9537 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9540 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9542 need_lib_prefix=unknown
9543 hardcode_into_libs=no
9545 # when you set need_version to no, make sure it does not cause -set_version
9546 # flags to be left without arguments
9547 need_version=unknown
9552 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9553 shlibpath_var=LIBPATH
9555 # AIX 3 has no versioning support, so we append a major version to the name.
9556 soname_spec='${libname}${release}${shared_ext}$major'
9563 hardcode_into_libs=yes
9564 if test "$host_cpu" = ia64; then
9565 # AIX 5 supports IA64
9566 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9567 shlibpath_var=LD_LIBRARY_PATH
9569 # With GCC up to 2.95.x, collect2 would create an import file
9570 # for dependence libraries. The import file would start with
9571 # the line `#! .'. This would cause the generated library to
9572 # depend on `.', always an invalid library. This was fixed in
9573 # development snapshots of GCC prior to 3.0.
9575 aix4 | aix4.[01] | aix4.[01].*)
9576 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9578 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9585 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9586 # soname into executable. Probably we can add versioning support to
9587 # collect2, so additional links can be useful in future.
9588 if test "$aix_use_runtimelinking" = yes; then
9589 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9590 # instead of lib<name>.a to let people know that these are not
9591 # typical AIX shared libraries.
9592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9594 # We preserve .a as extension for shared libraries through AIX4.2
9595 # and later when we are not doing run time linking.
9596 library_names_spec='${libname}${release}.a $libname.a'
9597 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LIBPATH
9604 library_names_spec='$libname.ixlibrary $libname.a'
9605 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9606 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'
9610 library_names_spec='${libname}${shared_ext}'
9611 dynamic_linker="$host_os ld.so"
9612 shlibpath_var=LIBRARY_PATH
9618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9619 soname_spec='${libname}${release}${shared_ext}$major'
9620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9624 # the default ld.so.conf also contains /usr/contrib/lib and
9625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9626 # libtool to hard-code these into programs
9629 cygwin* | mingw* | pw32*)
9630 version_type=windows
9635 case $GCC,$host_os in
9636 yes,cygwin* | yes,mingw* | yes,pw32*)
9637 library_names_spec='$libname.dll.a'
9638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9639 postinstall_cmds='base_file=`basename \${file}`~
9640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9641 dldir=$destdir/`dirname \$dlpath`~
9642 test -d \$dldir || mkdir -p \$dldir~
9643 $install_prog $dir/$dlname \$dldir/$dlname'
9644 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9645 dlpath=$dir/\$dldll~
9647 shlibpath_overrides_runpath=yes
9651 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9652 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9653 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9656 # MinGW DLLs use traditional 'lib' prefix
9657 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9658 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9659 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9660 # It is most probably a Windows format PATH printed by
9661 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9662 # path with ; separators, and with drive letters. We can handle the
9663 # drive letters (cygwin fileutils understands them), so leave them,
9664 # especially as we might pass files found there to a mingw objdump,
9665 # which wouldn't understand a cygwinified path. Ahh.
9666 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9668 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9672 # pw32 DLLs use 'pw' prefix rather than 'lib'
9673 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9679 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9682 dynamic_linker='Win32 ld.exe'
9683 # FIXME: first we should search . and the directory the executable is in
9687 darwin* | rhapsody*)
9688 dynamic_linker="$host_os dyld"
9692 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9693 soname_spec='${libname}${release}${major}$shared_ext'
9694 shlibpath_overrides_runpath=yes
9695 shlibpath_var=DYLD_LIBRARY_PATH
9696 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9697 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9698 if test "$GCC" = yes; then
9699 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"`
9701 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9703 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9711 soname_spec='${libname}${release}${shared_ext}$major'
9712 shlibpath_var=LD_LIBRARY_PATH
9723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9724 soname_spec='${libname}${release}${shared_ext}$major'
9725 shlibpath_var=LD_LIBRARY_PATH
9726 shlibpath_overrides_runpath=no
9727 hardcode_into_libs=yes
9728 dynamic_linker='GNU ld.so'
9732 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9733 version_type=freebsd-$objformat
9734 case $version_type in
9736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9741 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9745 shlibpath_var=LD_LIBRARY_PATH
9748 shlibpath_overrides_runpath=yes
9750 freebsd3.01* | freebsdelf3.01*)
9751 shlibpath_overrides_runpath=yes
9752 hardcode_into_libs=yes
9755 shlibpath_overrides_runpath=no
9756 hardcode_into_libs=yes
9765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9766 soname_spec='${libname}${release}${shared_ext}$major'
9767 shlibpath_var=LD_LIBRARY_PATH
9768 hardcode_into_libs=yes
9771 hpux9* | hpux10* | hpux11*)
9772 # Give a soname corresponding to the major version so that dld.sl refuses to
9773 # link against other versions.
9780 hardcode_into_libs=yes
9781 dynamic_linker="$host_os dld.so"
9782 shlibpath_var=LD_LIBRARY_PATH
9783 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9785 soname_spec='${libname}${release}${shared_ext}$major'
9786 if test "X$HPUX_IA64_MODE" = X32; then
9787 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9789 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9791 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9795 hardcode_into_libs=yes
9796 dynamic_linker="$host_os dld.sl"
9797 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9798 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9800 soname_spec='${libname}${release}${shared_ext}$major'
9801 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9802 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9806 dynamic_linker="$host_os dld.sl"
9807 shlibpath_var=SHLIB_PATH
9808 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9810 soname_spec='${libname}${release}${shared_ext}$major'
9813 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9814 postinstall_cmds='chmod 555 $lib'
9817 irix5* | irix6* | nonstopux*)
9819 nonstopux*) version_type=nonstopux ;;
9821 if test "$lt_cv_prog_gnu_ld" = yes; then
9829 soname_spec='${libname}${release}${shared_ext}$major'
9830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9832 irix5* | nonstopux*)
9836 case $LD in # libtool.m4 will add one of these switches to LD
9837 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9838 libsuff= shlibsuff= libmagic=32-bit;;
9839 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9840 libsuff=32 shlibsuff=N32 libmagic=N32;;
9841 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9842 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9843 *) libsuff= shlibsuff= libmagic=never-match;;
9847 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9848 shlibpath_overrides_runpath=no
9849 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9850 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9851 hardcode_into_libs=yes
9854 # No shared lib support for Linux oldld, aout, or coff.
9855 linux*oldld* | linux*aout* | linux*coff*)
9859 # This must be Linux ELF.
9864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9865 soname_spec='${libname}${release}${shared_ext}$major'
9866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9867 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=no
9869 # This implies no fast_install, which is unacceptable.
9870 # Some rework will be needed to allow for fast_install
9871 # before this can be enabled.
9872 hardcode_into_libs=yes
9874 # find out which ABI we are using
9877 x86_64*|s390x*|powerpc64*)
9878 echo '#line 9878 "configure"' > conftest.$ac_ext
9879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9880 (eval $ac_compile) 2>&5
9882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9883 (exit $ac_status); }; then
9884 case `/usr/bin/file conftest.$ac_objext` in
9887 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9895 # Append ld.so.conf contents to the search path
9896 if test -f /etc/ld.so.conf; then
9897 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9898 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9901 # We used to test for /lib/ld.so.1 and disable shared libraries on
9902 # powerpc, because MkLinux only supported shared libraries with the
9903 # GNU dynamic linker. Since this was broken with cross compilers,
9904 # most powerpc-linux boxes support dynamic linking these days and
9905 # people can always --disable-shared, the test was removed, and we
9906 # assume the GNU/Linux dynamic linker is in use.
9907 dynamic_linker='GNU/Linux ld.so'
9914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9915 soname_spec='${libname}${release}${shared_ext}$major'
9916 shlibpath_var=LD_LIBRARY_PATH
9917 shlibpath_overrides_runpath=no
9918 hardcode_into_libs=yes
9919 dynamic_linker='GNU ld.so'
9926 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9928 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9929 dynamic_linker='NetBSD (a.out) ld.so'
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 dynamic_linker='NetBSD ld.elf_so'
9935 shlibpath_var=LD_LIBRARY_PATH
9936 shlibpath_overrides_runpath=yes
9937 hardcode_into_libs=yes
9942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9943 shlibpath_var=LD_LIBRARY_PATH
9944 shlibpath_overrides_runpath=yes
9951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9952 soname_spec='${libname}${release}${shared_ext}$major'
9953 shlibpath_var=LD_LIBRARY_PATH
9954 shlibpath_overrides_runpath=yes
9961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9962 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9963 shlibpath_var=LD_LIBRARY_PATH
9964 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9966 openbsd2.[89] | openbsd2.[89].*)
9967 shlibpath_overrides_runpath=no
9970 shlibpath_overrides_runpath=yes
9974 shlibpath_overrides_runpath=yes
9979 libname_spec='$name'
9982 library_names_spec='$libname${shared_ext} $libname.a'
9983 dynamic_linker='OS/2 ld.exe'
9984 shlibpath_var=LIBPATH
9987 osf3* | osf4* | osf5*)
9991 soname_spec='${libname}${release}${shared_ext}$major'
9992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9993 shlibpath_var=LD_LIBRARY_PATH
9994 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9995 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10000 soname_spec='${libname}${release}${shared_ext}$major'
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 shlibpath_var=LD_LIBRARY_PATH
10009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10010 soname_spec='${libname}${release}${shared_ext}$major'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 shlibpath_overrides_runpath=yes
10013 hardcode_into_libs=yes
10014 # ldd complains unless libraries are executable
10015 postinstall_cmds='chmod +x $lib'
10020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10021 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 shlibpath_overrides_runpath=yes
10024 if test "$with_gnu_ld" = yes; then
10030 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10033 soname_spec='${libname}${release}${shared_ext}$major'
10034 shlibpath_var=LD_LIBRARY_PATH
10035 case $host_vendor in
10037 shlibpath_overrides_runpath=no
10039 export_dynamic_flag_spec='${wl}-Blargedynsym'
10040 runpath_var=LD_RUN_PATH
10048 shlibpath_overrides_runpath=no
10049 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10055 if test -d /usr/nec ;then
10057 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10058 soname_spec='$libname${shared_ext}.$major'
10059 shlibpath_var=LD_LIBRARY_PATH
10065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10066 soname_spec='${libname}${release}${shared_ext}$major'
10067 shlibpath_var=LD_LIBRARY_PATH
10074 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10075 echo "${ECHO_T}$dynamic_linker" >&6
10076 test "$dynamic_linker" = no && can_build_shared=no
10078 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10079 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10081 if test -n "$hardcode_libdir_flag_spec" || \
10082 test -n "$runpath_var " || \
10083 test "X$hardcode_automatic"="Xyes" ; then
10085 # We can hardcode non-existant directories.
10086 if test "$hardcode_direct" != no &&
10087 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10088 # have to relink, otherwise we might link with an installed library
10089 # when we should be linking with a yet-to-be-installed one
10090 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10091 test "$hardcode_minus_L" != no; then
10092 # Linking always hardcodes the temporary library directory.
10093 hardcode_action=relink
10095 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10096 hardcode_action=immediate
10099 # We cannot hardcode anything, or else we can only hardcode existing
10101 hardcode_action=unsupported
10103 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10104 echo "${ECHO_T}$hardcode_action" >&6
10106 if test "$hardcode_action" = relink; then
10107 # Fast installation is not supported
10108 enable_fast_install=no
10109 elif test "$shlibpath_overrides_runpath" = yes ||
10110 test "$enable_shared" = no; then
10111 # Fast installation is not necessary
10112 enable_fast_install=needless
10117 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10118 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10119 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10120 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10121 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10122 echo "$as_me:$LINENO: result: yes" >&5
10123 echo "${ECHO_T}yes" >&6
10125 # FIXME - insert some real tests, host_os isn't really good enough
10128 if test -n "$STRIP" ; then
10129 striplib="$STRIP -x"
10130 echo "$as_me:$LINENO: result: yes" >&5
10131 echo "${ECHO_T}yes" >&6
10133 echo "$as_me:$LINENO: result: no" >&5
10134 echo "${ECHO_T}no" >&6
10138 echo "$as_me:$LINENO: result: no" >&5
10139 echo "${ECHO_T}no" >&6
10144 if test "x$enable_dlopen" != xyes; then
10145 enable_dlopen=unknown
10146 enable_dlopen_self=unknown
10147 enable_dlopen_self_static=unknown
10154 lt_cv_dlopen="load_add_on"
10156 lt_cv_dlopen_self=yes
10160 lt_cv_dlopen="LoadLibrary"
10165 lt_cv_dlopen="dlopen"
10170 # if libdl is installed we need to link against it
10171 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10172 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10173 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10176 ac_check_lib_save_LIBS=$LIBS
10178 cat >conftest.$ac_ext <<_ACEOF
10181 cat confdefs.h >>conftest.$ac_ext
10182 cat >>conftest.$ac_ext <<_ACEOF
10183 /* end confdefs.h. */
10185 /* Override any gcc2 internal prototype to avoid an error. */
10189 /* We use char because int might match the return type of a gcc2
10190 builtin and then its argument prototype would still apply. */
10200 rm -f conftest.$ac_objext conftest$ac_exeext
10201 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10202 (eval $ac_link) 2>conftest.er1
10204 grep -v '^ *+' conftest.er1 >conftest.err
10206 cat conftest.err >&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } &&
10209 { ac_try='test -z "$ac_c_werror_flag"
10210 || test ! -s conftest.err'
10211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10212 (eval $ac_try) 2>&5
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; } &&
10216 { ac_try='test -s conftest$ac_exeext'
10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10218 (eval $ac_try) 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; }; then
10222 ac_cv_lib_dl_dlopen=yes
10224 echo "$as_me: failed program was:" >&5
10225 sed 's/^/| /' conftest.$ac_ext >&5
10227 ac_cv_lib_dl_dlopen=no
10229 rm -f conftest.err conftest.$ac_objext \
10230 conftest$ac_exeext conftest.$ac_ext
10231 LIBS=$ac_check_lib_save_LIBS
10233 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10234 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10235 if test $ac_cv_lib_dl_dlopen = yes; then
10236 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10239 lt_cv_dlopen="dyld"
10241 lt_cv_dlopen_self=yes
10248 echo "$as_me:$LINENO: checking for shl_load" >&5
10249 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10250 if test "${ac_cv_func_shl_load+set}" = set; then
10251 echo $ECHO_N "(cached) $ECHO_C" >&6
10253 cat >conftest.$ac_ext <<_ACEOF
10256 cat confdefs.h >>conftest.$ac_ext
10257 cat >>conftest.$ac_ext <<_ACEOF
10258 /* end confdefs.h. */
10259 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10261 #define shl_load innocuous_shl_load
10263 /* System header to define __stub macros and hopefully few prototypes,
10264 which can conflict with char shl_load (); below.
10265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10266 <limits.h> exists even on freestanding compilers. */
10269 # include <limits.h>
10271 # include <assert.h>
10276 /* Override any gcc2 internal prototype to avoid an error. */
10281 /* We use char because int might match the return type of a gcc2
10282 builtin and then its argument prototype would still apply. */
10284 /* The GNU C library defines this for functions which it implements
10285 to always fail with ENOSYS. Some functions are actually named
10286 something starting with __ and the normal name is an alias. */
10287 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10290 char (*f) () = shl_load;
10299 return f != shl_load;
10304 rm -f conftest.$ac_objext conftest$ac_exeext
10305 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10306 (eval $ac_link) 2>conftest.er1
10308 grep -v '^ *+' conftest.er1 >conftest.err
10310 cat conftest.err >&5
10311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312 (exit $ac_status); } &&
10313 { ac_try='test -z "$ac_c_werror_flag"
10314 || test ! -s conftest.err'
10315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10316 (eval $ac_try) 2>&5
10318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10319 (exit $ac_status); }; } &&
10320 { ac_try='test -s conftest$ac_exeext'
10321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10322 (eval $ac_try) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); }; }; then
10326 ac_cv_func_shl_load=yes
10328 echo "$as_me: failed program was:" >&5
10329 sed 's/^/| /' conftest.$ac_ext >&5
10331 ac_cv_func_shl_load=no
10333 rm -f conftest.err conftest.$ac_objext \
10334 conftest$ac_exeext conftest.$ac_ext
10336 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10337 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10338 if test $ac_cv_func_shl_load = yes; then
10339 lt_cv_dlopen="shl_load"
10341 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10342 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10343 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10346 ac_check_lib_save_LIBS=$LIBS
10348 cat >conftest.$ac_ext <<_ACEOF
10351 cat confdefs.h >>conftest.$ac_ext
10352 cat >>conftest.$ac_ext <<_ACEOF
10353 /* end confdefs.h. */
10355 /* Override any gcc2 internal prototype to avoid an error. */
10359 /* We use char because int might match the return type of a gcc2
10360 builtin and then its argument prototype would still apply. */
10370 rm -f conftest.$ac_objext conftest$ac_exeext
10371 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10372 (eval $ac_link) 2>conftest.er1
10374 grep -v '^ *+' conftest.er1 >conftest.err
10376 cat conftest.err >&5
10377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10378 (exit $ac_status); } &&
10379 { ac_try='test -z "$ac_c_werror_flag"
10380 || test ! -s conftest.err'
10381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10382 (eval $ac_try) 2>&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); }; } &&
10386 { ac_try='test -s conftest$ac_exeext'
10387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10388 (eval $ac_try) 2>&5
10390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10391 (exit $ac_status); }; }; then
10392 ac_cv_lib_dld_shl_load=yes
10394 echo "$as_me: failed program was:" >&5
10395 sed 's/^/| /' conftest.$ac_ext >&5
10397 ac_cv_lib_dld_shl_load=no
10399 rm -f conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401 LIBS=$ac_check_lib_save_LIBS
10403 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10404 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10405 if test $ac_cv_lib_dld_shl_load = yes; then
10406 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10408 echo "$as_me:$LINENO: checking for dlopen" >&5
10409 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10410 if test "${ac_cv_func_dlopen+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10419 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10421 #define dlopen innocuous_dlopen
10423 /* System header to define __stub macros and hopefully few prototypes,
10424 which can conflict with char dlopen (); below.
10425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10426 <limits.h> exists even on freestanding compilers. */
10429 # include <limits.h>
10431 # include <assert.h>
10436 /* Override any gcc2 internal prototype to avoid an error. */
10441 /* We use char because int might match the return type of a gcc2
10442 builtin and then its argument prototype would still apply. */
10444 /* The GNU C library defines this for functions which it implements
10445 to always fail with ENOSYS. Some functions are actually named
10446 something starting with __ and the normal name is an alias. */
10447 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10450 char (*f) () = dlopen;
10459 return f != dlopen;
10464 rm -f conftest.$ac_objext conftest$ac_exeext
10465 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10466 (eval $ac_link) 2>conftest.er1
10468 grep -v '^ *+' conftest.er1 >conftest.err
10470 cat conftest.err >&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } &&
10473 { ac_try='test -z "$ac_c_werror_flag"
10474 || test ! -s conftest.err'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; } &&
10480 { ac_try='test -s conftest$ac_exeext'
10481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10482 (eval $ac_try) 2>&5
10484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10485 (exit $ac_status); }; }; then
10486 ac_cv_func_dlopen=yes
10488 echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10491 ac_cv_func_dlopen=no
10493 rm -f conftest.err conftest.$ac_objext \
10494 conftest$ac_exeext conftest.$ac_ext
10496 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10498 if test $ac_cv_func_dlopen = yes; then
10499 lt_cv_dlopen="dlopen"
10501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10504 echo $ECHO_N "(cached) $ECHO_C" >&6
10506 ac_check_lib_save_LIBS=$LIBS
10508 cat >conftest.$ac_ext <<_ACEOF
10511 cat confdefs.h >>conftest.$ac_ext
10512 cat >>conftest.$ac_ext <<_ACEOF
10513 /* end confdefs.h. */
10515 /* Override any gcc2 internal prototype to avoid an error. */
10519 /* We use char because int might match the return type of a gcc2
10520 builtin and then its argument prototype would still apply. */
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10532 (eval $ac_link) 2>conftest.er1
10534 grep -v '^ *+' conftest.er1 >conftest.err
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } &&
10539 { ac_try='test -z "$ac_c_werror_flag"
10540 || test ! -s conftest.err'
10541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10542 (eval $ac_try) 2>&5
10544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); }; } &&
10546 { ac_try='test -s conftest$ac_exeext'
10547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10548 (eval $ac_try) 2>&5
10550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10551 (exit $ac_status); }; }; then
10552 ac_cv_lib_dl_dlopen=yes
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10557 ac_cv_lib_dl_dlopen=no
10559 rm -f conftest.err conftest.$ac_objext \
10560 conftest$ac_exeext conftest.$ac_ext
10561 LIBS=$ac_check_lib_save_LIBS
10563 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10564 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10565 if test $ac_cv_lib_dl_dlopen = yes; then
10566 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10568 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10569 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10570 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10571 echo $ECHO_N "(cached) $ECHO_C" >&6
10573 ac_check_lib_save_LIBS=$LIBS
10574 LIBS="-lsvld $LIBS"
10575 cat >conftest.$ac_ext <<_ACEOF
10578 cat confdefs.h >>conftest.$ac_ext
10579 cat >>conftest.$ac_ext <<_ACEOF
10580 /* end confdefs.h. */
10582 /* Override any gcc2 internal prototype to avoid an error. */
10586 /* We use char because int might match the return type of a gcc2
10587 builtin and then its argument prototype would still apply. */
10597 rm -f conftest.$ac_objext conftest$ac_exeext
10598 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10599 (eval $ac_link) 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } &&
10606 { ac_try='test -z "$ac_c_werror_flag"
10607 || test ! -s conftest.err'
10608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10609 (eval $ac_try) 2>&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); }; } &&
10613 { ac_try='test -s conftest$ac_exeext'
10614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10615 (eval $ac_try) 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); }; }; then
10619 ac_cv_lib_svld_dlopen=yes
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10624 ac_cv_lib_svld_dlopen=no
10626 rm -f conftest.err conftest.$ac_objext \
10627 conftest$ac_exeext conftest.$ac_ext
10628 LIBS=$ac_check_lib_save_LIBS
10630 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10631 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10632 if test $ac_cv_lib_svld_dlopen = yes; then
10633 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10635 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10636 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10637 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10638 echo $ECHO_N "(cached) $ECHO_C" >&6
10640 ac_check_lib_save_LIBS=$LIBS
10642 cat >conftest.$ac_ext <<_ACEOF
10645 cat confdefs.h >>conftest.$ac_ext
10646 cat >>conftest.$ac_ext <<_ACEOF
10647 /* end confdefs.h. */
10649 /* Override any gcc2 internal prototype to avoid an error. */
10653 /* We use char because int might match the return type of a gcc2
10654 builtin and then its argument prototype would still apply. */
10664 rm -f conftest.$ac_objext conftest$ac_exeext
10665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10666 (eval $ac_link) 2>conftest.er1
10668 grep -v '^ *+' conftest.er1 >conftest.err
10670 cat conftest.err >&5
10671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672 (exit $ac_status); } &&
10673 { ac_try='test -z "$ac_c_werror_flag"
10674 || test ! -s conftest.err'
10675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10676 (eval $ac_try) 2>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); }; } &&
10680 { ac_try='test -s conftest$ac_exeext'
10681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10682 (eval $ac_try) 2>&5
10684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10685 (exit $ac_status); }; }; then
10686 ac_cv_lib_dld_dld_link=yes
10688 echo "$as_me: failed program was:" >&5
10689 sed 's/^/| /' conftest.$ac_ext >&5
10691 ac_cv_lib_dld_dld_link=no
10693 rm -f conftest.err conftest.$ac_objext \
10694 conftest$ac_exeext conftest.$ac_ext
10695 LIBS=$ac_check_lib_save_LIBS
10697 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10698 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10699 if test $ac_cv_lib_dld_dld_link = yes; then
10700 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10721 if test "x$lt_cv_dlopen" != xno; then
10727 case $lt_cv_dlopen in
10729 save_CPPFLAGS="$CPPFLAGS"
10730 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10732 save_LDFLAGS="$LDFLAGS"
10733 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10736 LIBS="$lt_cv_dlopen_libs $LIBS"
10738 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10739 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10740 if test "${lt_cv_dlopen_self+set}" = set; then
10741 echo $ECHO_N "(cached) $ECHO_C" >&6
10743 if test "$cross_compiling" = yes; then :
10744 lt_cv_dlopen_self=cross
10746 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10747 lt_status=$lt_dlunknown
10748 cat > conftest.$ac_ext <<EOF
10749 #line 10749 "configure"
10750 #include "confdefs.h"
10759 # define LT_DLGLOBAL RTLD_GLOBAL
10762 # define LT_DLGLOBAL DL_GLOBAL
10764 # define LT_DLGLOBAL 0
10768 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10769 find out it does not work in some platform. */
10770 #ifndef LT_DLLAZY_OR_NOW
10772 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10775 # define LT_DLLAZY_OR_NOW DL_LAZY
10778 # define LT_DLLAZY_OR_NOW RTLD_NOW
10781 # define LT_DLLAZY_OR_NOW DL_NOW
10783 # define LT_DLLAZY_OR_NOW 0
10791 extern "C" void exit (int);
10794 void fnord() { int i=42;}
10797 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10798 int status = $lt_dlunknown;
10802 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10803 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10804 /* dlclose (self); */
10810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10811 (eval $ac_link) 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10815 (./conftest; exit; ) 2>/dev/null
10817 case x$lt_status in
10818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10820 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10823 # compilation failed
10824 lt_cv_dlopen_self=no
10831 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10832 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10834 if test "x$lt_cv_dlopen_self" = xyes; then
10835 LDFLAGS="$LDFLAGS $link_static_flag"
10836 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10837 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10838 if test "${lt_cv_dlopen_self_static+set}" = set; then
10839 echo $ECHO_N "(cached) $ECHO_C" >&6
10841 if test "$cross_compiling" = yes; then :
10842 lt_cv_dlopen_self_static=cross
10844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10845 lt_status=$lt_dlunknown
10846 cat > conftest.$ac_ext <<EOF
10847 #line 10847 "configure"
10848 #include "confdefs.h"
10857 # define LT_DLGLOBAL RTLD_GLOBAL
10860 # define LT_DLGLOBAL DL_GLOBAL
10862 # define LT_DLGLOBAL 0
10866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10867 find out it does not work in some platform. */
10868 #ifndef LT_DLLAZY_OR_NOW
10870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10873 # define LT_DLLAZY_OR_NOW DL_LAZY
10876 # define LT_DLLAZY_OR_NOW RTLD_NOW
10879 # define LT_DLLAZY_OR_NOW DL_NOW
10881 # define LT_DLLAZY_OR_NOW 0
10889 extern "C" void exit (int);
10892 void fnord() { int i=42;}
10895 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10896 int status = $lt_dlunknown;
10900 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10901 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10902 /* dlclose (self); */
10908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10909 (eval $ac_link) 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10913 (./conftest; exit; ) 2>/dev/null
10915 case x$lt_status in
10916 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10917 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10918 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10921 # compilation failed
10922 lt_cv_dlopen_self_static=no
10929 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10930 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10933 CPPFLAGS="$save_CPPFLAGS"
10934 LDFLAGS="$save_LDFLAGS"
10939 case $lt_cv_dlopen_self in
10940 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10941 *) enable_dlopen_self=unknown ;;
10944 case $lt_cv_dlopen_self_static in
10945 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10946 *) enable_dlopen_self_static=unknown ;;
10951 # Report which librarie types wil actually be built
10952 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10953 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10954 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10955 echo "${ECHO_T}$can_build_shared" >&6
10957 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10958 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10959 test "$can_build_shared" = "no" && enable_shared=no
10961 # On AIX, shared libraries and static libraries use the same namespace, and
10962 # are all built from PIC.
10965 test "$enable_shared" = yes && enable_static=no
10966 if test -n "$RANLIB"; then
10967 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10968 postinstall_cmds='$RANLIB $lib'
10973 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10974 test "$enable_shared" = yes && enable_static=no
10977 darwin* | rhapsody*)
10978 if test "$GCC" = yes; then
10979 archive_cmds_need_lc=no
10981 rhapsody* | darwin1.[012])
10982 allow_undefined_flag='-undefined suppress'
10985 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10986 allow_undefined_flag='-flat_namespace -undefined suppress'
10988 case ${MACOSX_DEPLOYMENT_TARGET} in
10990 allow_undefined_flag='-flat_namespace -undefined suppress'
10993 allow_undefined_flag='-undefined dynamic_lookup'
10999 output_verbose_link_cmd='echo'
11000 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11001 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11002 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11003 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}'
11004 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}'
11006 hardcode_automatic=yes
11007 hardcode_shlibpath_var=unsupported
11008 whole_archive_flag_spec='-all_load $convenience'
11009 link_all_deplibs=yes
11015 echo "$as_me:$LINENO: result: $enable_shared" >&5
11016 echo "${ECHO_T}$enable_shared" >&6
11018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11020 # Make sure either enable_shared or enable_static is yes.
11021 test "$enable_shared" = yes || enable_static=yes
11022 echo "$as_me:$LINENO: result: $enable_static" >&5
11023 echo "${ECHO_T}$enable_static" >&6
11025 # The else clause should only fire when bootstrapping the
11026 # libtool distribution, otherwise you forgot to ship ltmain.sh
11027 # with your package, and you will get complaints that there are
11028 # no rules to generate ltmain.sh.
11029 if test -f "$ltmain"; then
11030 # See if we are running on zsh, and set the options which allow our commands through
11031 # without removal of \ escapes.
11032 if test -n "${ZSH_VERSION+set}" ; then
11033 setopt NO_GLOB_SUBST
11035 # Now quote all the things that may contain metacharacters while being
11036 # careful not to overquote the AC_SUBSTed values. We take copies of the
11037 # variables and quote the copies for generation of the libtool script.
11038 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11040 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11041 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11042 deplibs_check_method reload_flag reload_cmds need_locks \
11043 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11044 lt_cv_sys_global_symbol_to_c_name_address \
11045 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11046 old_postinstall_cmds old_postuninstall_cmds \
11050 lt_prog_compiler_wl \
11051 lt_prog_compiler_pic \
11052 lt_prog_compiler_static \
11053 lt_prog_compiler_no_builtin_flag \
11054 export_dynamic_flag_spec \
11055 thread_safe_flag_spec \
11056 whole_archive_flag_spec \
11057 enable_shared_with_static_runtimes \
11059 old_archive_from_new_cmds \
11064 compiler_lib_search_path \
11066 archive_expsym_cmds \
11068 postuninstall_cmds \
11069 old_archive_from_expsyms_cmds \
11070 allow_undefined_flag \
11071 no_undefined_flag \
11072 export_symbols_cmds \
11073 hardcode_libdir_flag_spec \
11074 hardcode_libdir_flag_spec_ld \
11075 hardcode_libdir_separator \
11076 hardcode_automatic \
11078 module_expsym_cmds \
11079 lt_cv_prog_compiler_c_o \
11081 include_expsyms; do
11084 old_archive_cmds | \
11085 old_archive_from_new_cmds | \
11087 archive_expsym_cmds | \
11089 module_expsym_cmds | \
11090 old_archive_from_expsyms_cmds | \
11091 export_symbols_cmds | \
11092 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11093 postinstall_cmds | postuninstall_cmds | \
11094 old_postinstall_cmds | old_postuninstall_cmds | \
11095 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11096 # Double-quote double-evaled strings.
11097 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11100 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11106 *'\$0 --fallback-echo"')
11107 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11111 cfgfile="${ofile}T"
11112 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11114 { echo "$as_me:$LINENO: creating $ofile" >&5
11115 echo "$as_me: creating $ofile" >&6;}
11117 cat <<__EOF__ >> "$cfgfile"
11120 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11121 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11122 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11124 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11125 # Free Software Foundation, Inc.
11127 # This file is part of GNU Libtool:
11128 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11130 # This program is free software; you can redistribute it and/or modify
11131 # it under the terms of the GNU General Public License as published by
11132 # the Free Software Foundation; either version 2 of the License, or
11133 # (at your option) any later version.
11135 # This program is distributed in the hope that it will be useful, but
11136 # WITHOUT ANY WARRANTY; without even the implied warranty of
11137 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11138 # General Public License for more details.
11140 # You should have received a copy of the GNU General Public License
11141 # along with this program; if not, write to the Free Software
11142 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11144 # As a special exception to the GNU General Public License, if you
11145 # distribute this file as part of a program that contains a
11146 # configuration script generated by Autoconf, you may include it under
11147 # the same distribution terms that you use for the rest of that program.
11149 # A sed program that does not truncate output.
11152 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11153 Xsed="$SED -e s/^X//"
11155 # The HP-UX ksh and POSIX shell print the target directory to stdout
11156 # if CDPATH is set.
11157 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11159 # The names of the tagged configurations supported by this script.
11162 # ### BEGIN LIBTOOL CONFIG
11164 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11166 # Shell to use when invoking shell scripts.
11169 # Whether or not to build shared libraries.
11170 build_libtool_libs=$enable_shared
11172 # Whether or not to build static libraries.
11173 build_old_libs=$enable_static
11175 # Whether or not to add -lc for building shared libraries.
11176 build_libtool_need_lc=$archive_cmds_need_lc
11178 # Whether or not to disallow shared libs when runtime libs are static
11179 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11181 # Whether or not to optimize for fast installation.
11182 fast_install=$enable_fast_install
11185 host_alias=$host_alias
11188 # An echo program that does not interpret backslashes.
11193 AR_FLAGS=$lt_AR_FLAGS
11198 # A language-specific compiler.
11201 # Is the compiler the GNU C compiler?
11207 # The linker used to build libraries.
11210 # Whether we need hard or soft links.
11213 # A BSD-compatible nm program.
11216 # A symbol stripping program
11219 # Used to examine libraries when file_magic_cmd begins "file"
11220 MAGIC_CMD=$MAGIC_CMD
11222 # Used on cygwin: DLL creation program.
11225 # Used on cygwin: object dumper.
11228 # Used on cygwin: assembler.
11231 # The name of the directory that contains temporary libtool files.
11234 # How to create reloadable object files.
11235 reload_flag=$lt_reload_flag
11236 reload_cmds=$lt_reload_cmds
11238 # How to pass a linker flag through the compiler.
11239 wl=$lt_lt_prog_compiler_wl
11241 # Object file suffix (normally "o").
11242 objext="$ac_objext"
11244 # Old archive suffix (normally "a").
11247 # Shared library suffix (normally ".so").
11248 shrext_cmds='$shrext_cmds'
11250 # Executable file suffix (normally "").
11253 # Additional compiler flags for building library objects.
11254 pic_flag=$lt_lt_prog_compiler_pic
11257 # What is the maximum length of a command?
11258 max_cmd_len=$lt_cv_sys_max_cmd_len
11260 # Does compiler simultaneously support -c and -o options?
11261 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11263 # Must we lock files when doing compilation ?
11264 need_locks=$lt_need_locks
11266 # Do we need the lib prefix for modules?
11267 need_lib_prefix=$need_lib_prefix
11269 # Do we need a version for libraries?
11270 need_version=$need_version
11272 # Whether dlopen is supported.
11273 dlopen_support=$enable_dlopen
11275 # Whether dlopen of programs is supported.
11276 dlopen_self=$enable_dlopen_self
11278 # Whether dlopen of statically linked programs is supported.
11279 dlopen_self_static=$enable_dlopen_self_static
11281 # Compiler flag to prevent dynamic linking.
11282 link_static_flag=$lt_lt_prog_compiler_static
11284 # Compiler flag to turn off builtin functions.
11285 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11287 # Compiler flag to allow reflexive dlopens.
11288 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11290 # Compiler flag to generate shared objects directly from archives.
11291 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11293 # Compiler flag to generate thread-safe objects.
11294 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11296 # Library versioning type.
11297 version_type=$version_type
11299 # Format of library name prefix.
11300 libname_spec=$lt_libname_spec
11302 # List of archive names. First name is the real one, the rest are links.
11303 # The last name is the one that the linker finds with -lNAME.
11304 library_names_spec=$lt_library_names_spec
11306 # The coded name of the library, if different from the real name.
11307 soname_spec=$lt_soname_spec
11309 # Commands used to build and install an old-style archive.
11311 old_archive_cmds=$lt_old_archive_cmds
11312 old_postinstall_cmds=$lt_old_postinstall_cmds
11313 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11315 # Create an old-style archive from a shared archive.
11316 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11318 # Create a temporary old-style archive to link instead of a shared archive.
11319 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11321 # Commands used to build and install a shared archive.
11322 archive_cmds=$lt_archive_cmds
11323 archive_expsym_cmds=$lt_archive_expsym_cmds
11324 postinstall_cmds=$lt_postinstall_cmds
11325 postuninstall_cmds=$lt_postuninstall_cmds
11327 # Commands used to build a loadable module (assumed same as above if empty)
11328 module_cmds=$lt_module_cmds
11329 module_expsym_cmds=$lt_module_expsym_cmds
11331 # Commands to strip libraries.
11332 old_striplib=$lt_old_striplib
11333 striplib=$lt_striplib
11335 # Dependencies to place before the objects being linked to create a
11337 predep_objects=$lt_predep_objects
11339 # Dependencies to place after the objects being linked to create a
11341 postdep_objects=$lt_postdep_objects
11343 # Dependencies to place before the objects being linked to create a
11345 predeps=$lt_predeps
11347 # Dependencies to place after the objects being linked to create a
11349 postdeps=$lt_postdeps
11351 # The library search path used internally by the compiler when linking
11352 # a shared library.
11353 compiler_lib_search_path=$lt_compiler_lib_search_path
11355 # Method to check whether dependent libraries are shared objects.
11356 deplibs_check_method=$lt_deplibs_check_method
11358 # Command to use when deplibs_check_method == file_magic.
11359 file_magic_cmd=$lt_file_magic_cmd
11361 # Flag that allows shared libraries with undefined symbols to be built.
11362 allow_undefined_flag=$lt_allow_undefined_flag
11364 # Flag that forces no undefined symbols.
11365 no_undefined_flag=$lt_no_undefined_flag
11367 # Commands used to finish a libtool library installation in a directory.
11368 finish_cmds=$lt_finish_cmds
11370 # Same as above, but a single script fragment to be evaled but not shown.
11371 finish_eval=$lt_finish_eval
11373 # Take the output of nm and produce a listing of raw symbols and C names.
11374 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11376 # Transform the output of nm in a proper C declaration
11377 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11379 # Transform the output of nm in a C name address pair
11380 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11382 # This is the shared library runtime path variable.
11383 runpath_var=$runpath_var
11385 # This is the shared library path variable.
11386 shlibpath_var=$shlibpath_var
11388 # Is shlibpath searched before the hard-coded library search path?
11389 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11391 # How to hardcode a shared library path into an executable.
11392 hardcode_action=$hardcode_action
11394 # Whether we should hardcode library paths into libraries.
11395 hardcode_into_libs=$hardcode_into_libs
11397 # Flag to hardcode \$libdir into a binary during linking.
11398 # This must work even if \$libdir does not exist.
11399 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11401 # If ld is used when linking, flag to hardcode \$libdir into
11402 # a binary during linking. This must work even if \$libdir does
11404 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11406 # Whether we need a single -rpath flag with a separated argument.
11407 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11409 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11410 # resulting binary.
11411 hardcode_direct=$hardcode_direct
11413 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11414 # resulting binary.
11415 hardcode_minus_L=$hardcode_minus_L
11417 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11418 # the resulting binary.
11419 hardcode_shlibpath_var=$hardcode_shlibpath_var
11421 # Set to yes if building a shared library automatically hardcodes DIR into the library
11422 # and all subsequent libraries and executables linked against it.
11423 hardcode_automatic=$hardcode_automatic
11425 # Variables whose values should be saved in libtool wrapper scripts and
11426 # restored at relink time.
11427 variables_saved_for_relink="$variables_saved_for_relink"
11429 # Whether libtool must link a program against all its dependency libraries.
11430 link_all_deplibs=$link_all_deplibs
11432 # Compile-time system search path for libraries
11433 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11435 # Run-time system search path for libraries
11436 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11438 # Fix the shell variable \$srcfile for the compiler.
11439 fix_srcfile_path="$fix_srcfile_path"
11441 # Set to yes if exported symbols are required.
11442 always_export_symbols=$always_export_symbols
11444 # The commands to list exported symbols.
11445 export_symbols_cmds=$lt_export_symbols_cmds
11447 # The commands to extract the exported symbol list from a shared archive.
11448 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11450 # Symbols that should not be listed in the preloaded symbols.
11451 exclude_expsyms=$lt_exclude_expsyms
11453 # Symbols that must always be exported.
11454 include_expsyms=$lt_include_expsyms
11456 # ### END LIBTOOL CONFIG
11463 cat <<\EOF >> "$cfgfile"
11465 # AIX sometimes has problems with the GCC collect2 program. For some
11466 # reason, if we set the COLLECT_NAMES environment variable, the problems
11467 # vanish in a puff of smoke.
11468 if test "X${COLLECT_NAMES+set}" != Xset; then
11470 export COLLECT_NAMES
11476 # We use sed instead of cat because bash on DJGPP gets confused if
11477 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11478 # text mode, it properly converts lines to CR/LF. This bash problem
11479 # is reportedly fixed, but why not run on old versions too?
11480 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11482 mv -f "$cfgfile" "$ofile" || \
11483 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11487 # If there is no Makefile yet, we rely on a make rule to execute
11488 # `config.status --recheck' to rerun these tests and create the
11489 # libtool script then.
11490 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11491 if test -f "$ltmain_in"; then
11492 test -f Makefile && make "$ltmain"
11498 ac_cpp='$CPP $CPPFLAGS'
11499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11506 # Check whether --with-tags or --without-tags was given.
11507 if test "${with_tags+set}" = set; then
11508 withval="$with_tags"
11509 tagnames="$withval"
11512 if test -f "$ltmain" && test -n "$tagnames"; then
11513 if test ! -f "${ofile}"; then
11514 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11515 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11518 if test -z "$LTCC"; then
11519 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11520 if test -z "$LTCC"; then
11521 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11522 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11524 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11525 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11529 # Extract list of available tagged configurations in $ofile.
11530 # Note that this assumes the entire list is on one line.
11531 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11533 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11534 for tagname in $tagnames; do
11536 # Check whether tagname contains only valid characters
11537 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11539 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11540 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11541 { (exit 1); exit 1; }; }
11545 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11547 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11548 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11549 { (exit 1); exit 1; }; }
11552 # Update the list of available tags.
11553 if test -n "$tagname"; then
11554 echo appending configuration tag \"$tagname\" to $ofile
11558 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11560 ac_cpp='$CXXCPP $CPPFLAGS'
11561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11568 archive_cmds_need_lc_CXX=no
11569 allow_undefined_flag_CXX=
11570 always_export_symbols_CXX=no
11571 archive_expsym_cmds_CXX=
11572 export_dynamic_flag_spec_CXX=
11573 hardcode_direct_CXX=no
11574 hardcode_libdir_flag_spec_CXX=
11575 hardcode_libdir_flag_spec_ld_CXX=
11576 hardcode_libdir_separator_CXX=
11577 hardcode_minus_L_CXX=no
11578 hardcode_automatic_CXX=no
11580 module_expsym_cmds_CXX=
11581 link_all_deplibs_CXX=unknown
11582 old_archive_cmds_CXX=$old_archive_cmds
11583 no_undefined_flag_CXX=
11584 whole_archive_flag_spec_CXX=
11585 enable_shared_with_static_runtimes_CXX=no
11587 # Dependencies to place before and after the object being linked:
11588 predep_objects_CXX=
11589 postdep_objects_CXX=
11592 compiler_lib_search_path_CXX=
11594 # Source file extension for C++ test sources.
11597 # Object file extension for compiled C++ test sources.
11601 # Code to be used in simple compile tests
11602 lt_simple_compile_test_code="int some_variable = 0;\n"
11604 # Code to be used in simple link tests
11605 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11607 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11609 # If no C compiler was specified, use CC.
11612 # Allow CC to be a program name with arguments.
11616 # Allow CC to be a program name with arguments.
11621 lt_save_with_gnu_ld=$with_gnu_ld
11622 lt_save_path_LD=$lt_cv_path_LD
11623 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11624 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11626 unset lt_cv_prog_gnu_ld
11628 if test -n "${lt_cv_path_LDCXX+set}"; then
11629 lt_cv_path_LD=$lt_cv_path_LDCXX
11631 unset lt_cv_path_LD
11633 test -z "${LDCXX+set}" || LD=$LDCXX
11637 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11639 # We don't want -fno-exception wen compiling C++ code, so set the
11640 # no_builtin_flag separately
11641 if test "$GXX" = yes; then
11642 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11644 lt_prog_compiler_no_builtin_flag_CXX=
11647 if test "$GXX" = yes; then
11648 # Set up default GNU C++ configuration
11651 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11652 if test "${with_gnu_ld+set}" = set; then
11653 withval="$with_gnu_ld"
11654 test "$withval" = no || with_gnu_ld=yes
11659 if test "$GCC" = yes; then
11660 # Check if gcc -print-prog-name=ld gives a path.
11661 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11662 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11665 # gcc leaves a trailing carriage return which upsets mingw
11666 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11668 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11671 # Accept absolute paths.
11673 re_direlt='/[^/][^/]*/\.\./'
11674 # Canonicalize the pathname of ld
11675 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11676 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11677 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11679 test -z "$LD" && LD="$ac_prog"
11682 # If it fails, then pretend we aren't using GCC.
11686 # If it is relative, then search for the first ld in PATH.
11687 with_gnu_ld=unknown
11690 elif test "$with_gnu_ld" = yes; then
11691 echo "$as_me:$LINENO: checking for GNU ld" >&5
11692 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11694 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11695 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11697 if test "${lt_cv_path_LD+set}" = set; then
11698 echo $ECHO_N "(cached) $ECHO_C" >&6
11700 if test -z "$LD"; then
11701 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11702 for ac_dir in $PATH; do
11704 test -z "$ac_dir" && ac_dir=.
11705 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11706 lt_cv_path_LD="$ac_dir/$ac_prog"
11707 # Check to see if the program is GNU ld. I'd rather use --version,
11708 # but apparently some GNU ld's only accept -v.
11709 # Break only if it was the GNU/non-GNU ld that we prefer.
11710 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11711 *GNU* | *'with BFD'*)
11712 test "$with_gnu_ld" != no && break
11715 test "$with_gnu_ld" != yes && break
11722 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11726 LD="$lt_cv_path_LD"
11727 if test -n "$LD"; then
11728 echo "$as_me:$LINENO: result: $LD" >&5
11729 echo "${ECHO_T}$LD" >&6
11731 echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6
11734 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11735 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11736 { (exit 1); exit 1; }; }
11737 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11738 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11739 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11740 echo $ECHO_N "(cached) $ECHO_C" >&6
11742 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11743 case `$LD -v 2>&1 </dev/null` in
11744 *GNU* | *'with BFD'*)
11745 lt_cv_prog_gnu_ld=yes
11748 lt_cv_prog_gnu_ld=no
11752 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11753 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11754 with_gnu_ld=$lt_cv_prog_gnu_ld
11758 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11759 # archiving commands below assume that GNU ld is being used.
11760 if test "$with_gnu_ld" = yes; then
11761 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11762 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'
11764 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11765 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11767 # If archive_cmds runs LD, not CC, wlarc should be empty
11768 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11769 # investigate it a little bit more. (MM)
11772 # ancient GNU ld didn't support --whole-archive et. al.
11773 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11774 grep 'no-whole-archive' > /dev/null; then
11775 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11777 whole_archive_flag_spec_CXX=
11783 # A generic and very simple default shared library creation
11784 # command for GNU C++ for the case where it uses the native
11785 # linker, instead of GNU ld. If possible, this setting should
11786 # overridden to take advantage of the native linker features on
11787 # the platform it is being used on.
11788 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11791 # Commands to make compiler produce verbose output that lists
11792 # what "hidden" libraries, object files and flags are used when
11793 # linking a shared library.
11794 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11802 # PORTME: fill in a description of your system's C++ link characteristics
11803 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11804 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11808 # FIXME: insert proper C++ library support
11812 if test "$host_cpu" = ia64; then
11813 # On IA64, the linker does run time linking by default, so we don't
11814 # have to do anything special.
11815 aix_use_runtimelinking=no
11816 exp_sym_flag='-Bexport'
11819 aix_use_runtimelinking=no
11821 # Test if we are trying to use run time linking or normal
11822 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11823 # need to do runtime linking.
11824 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11825 for ld_flag in $LDFLAGS; do
11828 aix_use_runtimelinking=yes
11835 exp_sym_flag='-bexport'
11836 no_entry_flag='-bnoentry'
11839 # When large executables or shared objects are built, AIX ld can
11840 # have problems creating the table of contents. If linking a library
11841 # or program results in "error TOC overflow" add -mminimal-toc to
11842 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11843 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11845 archive_cmds_CXX=''
11846 hardcode_direct_CXX=yes
11847 hardcode_libdir_separator_CXX=':'
11848 link_all_deplibs_CXX=yes
11850 if test "$GXX" = yes; then
11851 case $host_os in aix4.012|aix4.012.*)
11852 # We only want to do this on AIX 4.2 and lower, the check
11853 # below for broken collect2 doesn't work under 4.3+
11854 collect2name=`${CC} -print-prog-name=collect2`
11855 if test -f "$collect2name" && \
11856 strings "$collect2name" | grep resolve_lib_name >/dev/null
11858 # We have reworked collect2
11859 hardcode_direct_CXX=yes
11861 # We have old collect2
11862 hardcode_direct_CXX=unsupported
11863 # It fails to find uninstalled libraries when the uninstalled
11864 # path is not listed in the libpath. Setting hardcode_minus_L
11865 # to unsupported forces relinking
11866 hardcode_minus_L_CXX=yes
11867 hardcode_libdir_flag_spec_CXX='-L$libdir'
11868 hardcode_libdir_separator_CXX=
11871 shared_flag='-shared'
11874 if test "$host_cpu" = ia64; then
11875 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11876 # chokes on -Wl,-G. The following line is correct:
11879 if test "$aix_use_runtimelinking" = yes; then
11880 shared_flag='${wl}-G'
11882 shared_flag='${wl}-bM:SRE'
11887 # It seems that -bexpall does not export symbols beginning with
11888 # underscore (_), so it is better to generate a list of symbols to export.
11889 always_export_symbols_CXX=yes
11890 if test "$aix_use_runtimelinking" = yes; then
11891 # Warning - without using the other runtime loading flags (-brtl),
11892 # -berok will link without error, but may produce a broken library.
11893 allow_undefined_flag_CXX='-berok'
11894 # Determine the default libpath from the value encoded in an empty executable.
11895 cat >conftest.$ac_ext <<_ACEOF
11898 cat confdefs.h >>conftest.$ac_ext
11899 cat >>conftest.$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11910 rm -f conftest.$ac_objext conftest$ac_exeext
11911 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11912 (eval $ac_link) 2>conftest.er1
11914 grep -v '^ *+' conftest.er1 >conftest.err
11916 cat conftest.err >&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } &&
11919 { ac_try='test -z "$ac_cxx_werror_flag"
11920 || test ! -s conftest.err'
11921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11922 (eval $ac_try) 2>&5
11924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11925 (exit $ac_status); }; } &&
11926 { ac_try='test -s conftest$ac_exeext'
11927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11928 (eval $ac_try) 2>&5
11930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11931 (exit $ac_status); }; }; then
11933 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11935 # Check for a 64-bit object if we didn't find anything.
11936 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; }
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.$ac_ext >&5
11943 rm -f conftest.err conftest.$ac_objext \
11944 conftest$ac_exeext conftest.$ac_ext
11945 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11947 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11949 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"
11951 if test "$host_cpu" = ia64; then
11952 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11953 allow_undefined_flag_CXX="-z nodefs"
11954 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"
11956 # Determine the default libpath from the value encoded in an empty executable.
11957 cat >conftest.$ac_ext <<_ACEOF
11960 cat confdefs.h >>conftest.$ac_ext
11961 cat >>conftest.$ac_ext <<_ACEOF
11962 /* end confdefs.h. */
11972 rm -f conftest.$ac_objext conftest$ac_exeext
11973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11974 (eval $ac_link) 2>conftest.er1
11976 grep -v '^ *+' conftest.er1 >conftest.err
11978 cat conftest.err >&5
11979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11980 (exit $ac_status); } &&
11981 { ac_try='test -z "$ac_cxx_werror_flag"
11982 || test ! -s conftest.err'
11983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11984 (eval $ac_try) 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; } &&
11988 { ac_try='test -s conftest$ac_exeext'
11989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11990 (eval $ac_try) 2>&5
11992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993 (exit $ac_status); }; }; then
11995 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11997 # Check for a 64-bit object if we didn't find anything.
11998 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; }
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12005 rm -f conftest.err conftest.$ac_objext \
12006 conftest$ac_exeext conftest.$ac_ext
12007 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12009 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12010 # Warning - without using the other run time loading flags,
12011 # -berok will link without error, but may produce a broken library.
12012 no_undefined_flag_CXX=' ${wl}-bernotok'
12013 allow_undefined_flag_CXX=' ${wl}-berok'
12014 # -bexpall does not export symbols beginning with underscore (_)
12015 always_export_symbols_CXX=yes
12016 # Exported symbols can be pulled into shared objects from archives
12017 whole_archive_flag_spec_CXX=' '
12018 archive_cmds_need_lc_CXX=yes
12019 # This is similar to how AIX traditionally builds it's shared libraries.
12020 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'
12025 case $cc_basename in
12027 # FIXME: insert proper C++ library support
12033 cygwin* | mingw* | pw32*)
12034 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12035 # as there is no search path for DLLs.
12036 hardcode_libdir_flag_spec_CXX='-L$libdir'
12037 allow_undefined_flag_CXX=unsupported
12038 always_export_symbols_CXX=no
12039 enable_shared_with_static_runtimes_CXX=yes
12041 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12042 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'
12043 # If the export-symbols file already is a .def file (1st line
12044 # is EXPORTS), use it as is; otherwise, prepend...
12045 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12046 cp $export_symbols $output_objdir/$soname.def;
12048 echo EXPORTS > $output_objdir/$soname.def;
12049 cat $export_symbols >> $output_objdir/$soname.def;
12051 $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'
12057 darwin* | rhapsody*)
12058 if test "$GXX" = yes; then
12059 archive_cmds_need_lc_CXX=no
12061 rhapsody* | darwin1.[012])
12062 allow_undefined_flag_CXX='-undefined suppress'
12065 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12066 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12068 case ${MACOSX_DEPLOYMENT_TARGET} in
12070 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12073 allow_undefined_flag_CXX='-undefined dynamic_lookup'
12079 lt_int_apple_cc_single_mod=no
12080 output_verbose_link_cmd='echo'
12081 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12082 lt_int_apple_cc_single_mod=yes
12084 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12085 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12087 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'
12089 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12091 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12092 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12093 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}'
12095 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}'
12097 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}'
12098 hardcode_direct_CXX=no
12099 hardcode_automatic_CXX=yes
12100 hardcode_shlibpath_var_CXX=unsupported
12101 whole_archive_flag_spec_CXX='-all_load $convenience'
12102 link_all_deplibs_CXX=yes
12109 case $cc_basename in
12111 # FIXME: insert proper C++ library support
12115 # Green Hills C++ Compiler
12116 # FIXME: insert proper C++ library support
12120 # FIXME: insert proper C++ library support
12126 # C++ shared libraries reported to be fairly broken before switch to ELF
12130 archive_cmds_need_lc_CXX=no
12132 freebsd* | kfreebsd*-gnu)
12133 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12140 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12141 hardcode_libdir_separator_CXX=:
12142 export_dynamic_flag_spec_CXX='${wl}-E'
12143 hardcode_direct_CXX=yes
12144 hardcode_minus_L_CXX=yes # Not in the search PATH,
12145 # but as the default
12146 # location of the library.
12148 case $cc_basename in
12150 # FIXME: insert proper C++ library support
12154 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'
12155 # Commands to make compiler produce verbose output that lists
12156 # what "hidden" libraries, object files and flags are used when
12157 # linking a shared library.
12159 # There doesn't appear to be a way to prevent this compiler from
12160 # explicitly linking system object files so we need to strip them
12161 # from the output so that they don't get included in the library
12163 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'
12166 if test "$GXX" = yes; then
12167 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'
12169 # FIXME: insert proper C++ library support
12176 if test $with_gnu_ld = no; then
12177 case "$host_cpu" in
12179 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12180 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12181 hardcode_libdir_separator_CXX=:
12184 hardcode_libdir_flag_spec_CXX='-L$libdir'
12187 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12188 hardcode_libdir_separator_CXX=:
12189 export_dynamic_flag_spec_CXX='${wl}-E'
12193 case "$host_cpu" in
12195 hardcode_direct_CXX=no
12196 hardcode_shlibpath_var_CXX=no
12199 hardcode_direct_CXX=no
12200 hardcode_shlibpath_var_CXX=no
12201 hardcode_minus_L_CXX=yes # Not in the search PATH,
12202 # but as the default
12203 # location of the library.
12206 hardcode_direct_CXX=yes
12207 hardcode_minus_L_CXX=yes # Not in the search PATH,
12208 # but as the default
12209 # location of the library.
12213 case $cc_basename in
12215 # FIXME: insert proper C++ library support
12219 case "$host_cpu" in
12221 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12224 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12227 # Commands to make compiler produce verbose output that lists
12228 # what "hidden" libraries, object files and flags are used when
12229 # linking a shared library.
12231 # There doesn't appear to be a way to prevent this compiler from
12232 # explicitly linking system object files so we need to strip them
12233 # from the output so that they don't get included in the library
12235 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'
12238 if test "$GXX" = yes; then
12239 if test $with_gnu_ld = no; then
12240 case "$host_cpu" in
12242 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12245 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'
12250 # FIXME: insert proper C++ library support
12257 case $cc_basename in
12260 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'
12262 # Archives containing C++ object files must be created using
12263 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12264 # necessary to make sure instantiated templates are included
12266 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12269 if test "$GXX" = yes; then
12270 if test "$with_gnu_ld" = no; then
12271 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'
12273 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'
12276 link_all_deplibs_CXX=yes
12279 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12280 hardcode_libdir_separator_CXX=:
12283 case $cc_basename in
12285 # Kuck and Associates, Inc. (KAI) C++ Compiler
12287 # KCC will only create a shared library if the output file
12288 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12289 # to its proper name (with version) after linking.
12290 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'
12291 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'
12292 # Commands to make compiler produce verbose output that lists
12293 # what "hidden" libraries, object files and flags are used when
12294 # linking a shared library.
12296 # There doesn't appear to be a way to prevent this compiler from
12297 # explicitly linking system object files so we need to strip them
12298 # from the output so that they don't get included in the library
12300 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'
12302 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12303 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12305 # Archives containing C++ object files must be created using
12306 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12307 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12312 archive_cmds_need_lc_CXX=no
12313 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12314 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'
12315 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12316 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12317 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12321 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322 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'
12324 runpath_var=LD_RUN_PATH
12325 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12326 hardcode_libdir_separator_CXX=:
12328 # Commands to make compiler produce verbose output that lists
12329 # what "hidden" libraries, object files and flags are used when
12330 # linking a shared library.
12332 # There doesn't appear to be a way to prevent this compiler from
12333 # explicitly linking system object files so we need to strip them
12334 # from the output so that they don't get included in the library
12336 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'
12341 # FIXME: insert proper C++ library support
12345 # FIXME: insert proper C++ library support
12349 case $cc_basename in
12351 # FIXME: insert proper C++ library support
12355 # FIXME: insert proper C++ library support
12361 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12362 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12364 hardcode_libdir_flag_spec_CXX='-R$libdir'
12365 hardcode_direct_CXX=yes
12366 hardcode_shlibpath_var_CXX=no
12368 # Workaround some broken pre-1.5 toolchains
12369 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12372 case $cc_basename in
12374 # Kuck and Associates, Inc. (KAI) C++ Compiler
12376 # KCC will only create a shared library if the output file
12377 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12378 # to its proper name (with version) after linking.
12379 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'
12381 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12382 hardcode_libdir_separator_CXX=:
12384 # Archives containing C++ object files must be created using
12385 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12386 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12390 # Rational C++ 2.4.1
12391 # FIXME: insert proper C++ library support
12395 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12396 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'
12398 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12399 hardcode_libdir_separator_CXX=:
12401 # Commands to make compiler produce verbose output that lists
12402 # what "hidden" libraries, object files and flags are used when
12403 # linking a shared library.
12405 # There doesn't appear to be a way to prevent this compiler from
12406 # explicitly linking system object files so we need to strip them
12407 # from the output so that they don't get included in the library
12409 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'
12412 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12413 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12414 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'
12416 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12417 hardcode_libdir_separator_CXX=:
12419 # Commands to make compiler produce verbose output that lists
12420 # what "hidden" libraries, object files and flags are used when
12421 # linking a shared library.
12422 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12425 # FIXME: insert proper C++ library support
12432 case $cc_basename in
12434 # Kuck and Associates, Inc. (KAI) C++ Compiler
12436 # KCC will only create a shared library if the output file
12437 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12438 # to its proper name (with version) after linking.
12439 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'
12441 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12442 hardcode_libdir_separator_CXX=:
12444 # Archives containing C++ object files must be created using
12445 # the KAI C++ compiler.
12446 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12449 # Rational C++ 2.4.1
12450 # FIXME: insert proper C++ library support
12454 allow_undefined_flag_CXX=' -expect_unresolved \*'
12455 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'
12456 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12457 echo "-hidden">> $lib.exp~
12458 $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~
12461 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12462 hardcode_libdir_separator_CXX=:
12464 # Commands to make compiler produce verbose output that lists
12465 # what "hidden" libraries, object files and flags are used when
12466 # linking a shared library.
12468 # There doesn't appear to be a way to prevent this compiler from
12469 # explicitly linking system object files so we need to strip them
12470 # from the output so that they don't get included in the library
12472 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'
12475 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12476 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12477 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'
12479 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12480 hardcode_libdir_separator_CXX=:
12482 # Commands to make compiler produce verbose output that lists
12483 # what "hidden" libraries, object files and flags are used when
12484 # linking a shared library.
12485 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12488 # FIXME: insert proper C++ library support
12495 # FIXME: insert proper C++ library support
12499 archive_cmds_need_lc_CXX=no
12500 case $cc_basename in
12502 # FIXME: insert proper C++ library support
12506 # FIXME: insert proper C++ library support
12512 case $cc_basename in
12515 # FIXME: insert proper C++ library support
12520 # FIXME: insert proper C++ library support
12524 # FIXME: insert proper C++ library support
12530 case $cc_basename in
12532 # Sun C++ 4.2, 5.x and Centerline C++
12533 no_undefined_flag_CXX=' -zdefs'
12534 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12535 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12536 $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'
12538 hardcode_libdir_flag_spec_CXX='-R$libdir'
12539 hardcode_shlibpath_var_CXX=no
12541 solaris2.0-5 | solaris2.0-5.*) ;;
12543 # The C++ compiler is used as linker so we must use $wl
12544 # flag to pass the commands to the underlying system
12546 # Supported since Solaris 2.6 (maybe 2.5.1?)
12547 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12550 link_all_deplibs_CXX=yes
12552 # Commands to make compiler produce verbose output that lists
12553 # what "hidden" libraries, object files and flags are used when
12554 # linking a shared library.
12556 # There doesn't appear to be a way to prevent this compiler from
12557 # explicitly linking system object files so we need to strip them
12558 # from the output so that they don't get included in the library
12560 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'
12562 # Archives containing C++ object files must be created using
12563 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12564 # necessary to make sure instantiated templates are included
12566 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12569 # Green Hills C++ Compiler
12570 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12572 # The C++ compiler must be used to create the archive.
12573 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12576 # GNU C++ compiler with Solaris linker
12577 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12578 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12579 if $CC --version | grep -v '^2\.7' > /dev/null; then
12580 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12581 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12582 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12584 # Commands to make compiler produce verbose output that lists
12585 # what "hidden" libraries, object files and flags are used when
12586 # linking a shared library.
12587 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12589 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12591 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12592 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12593 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12595 # Commands to make compiler produce verbose output that lists
12596 # what "hidden" libraries, object files and flags are used when
12597 # linking a shared library.
12598 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12601 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12606 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12607 archive_cmds_need_lc_CXX=no
12610 case $cc_basename in
12612 # NonStop-UX NCC 3.20
12613 # FIXME: insert proper C++ library support
12617 # FIXME: insert proper C++ library support
12623 # FIXME: insert proper C++ library support
12627 # FIXME: insert proper C++ library support
12631 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12632 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12633 test "$ld_shlibs_CXX" = no && can_build_shared=no
12639 ## There is no encapsulation within the following macros, do not change
12640 ## the running order or otherwise move them around unless you know exactly
12641 ## what you are doing...
12643 cat > conftest.$ac_ext <<EOF
12647 Foo (void) { a = 0; }
12653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12654 (eval $ac_compile) 2>&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); }; then
12658 # Parse the compiler output and extract the necessary
12659 # objects, libraries and library flags.
12661 # Sentinel used to keep track of whether or not we are before
12662 # the conftest object file.
12663 pre_test_object_deps_done=no
12665 # The `*' in the case matches for architectures that use `case' in
12666 # $output_verbose_cmd can trigger glob expansion during the loop
12667 # eval without this substitution.
12668 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12670 for p in `eval $output_verbose_link_cmd`; do
12674 # Some compilers place space between "-{L,R}" and the path.
12675 # Remove the space.
12676 if test $p = "-L" \
12677 || test $p = "-R"; then
12684 if test "$pre_test_object_deps_done" = no; then
12687 # Internal compiler library paths should come after those
12688 # provided the user. The postdeps already come after the
12689 # user supplied libs so there is no need to process them.
12690 if test -z "$compiler_lib_search_path_CXX"; then
12691 compiler_lib_search_path_CXX="${prev}${p}"
12693 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12696 # The "-l" case would never come before the object being
12697 # linked, so don't bother handling this case.
12700 if test -z "$postdeps_CXX"; then
12701 postdeps_CXX="${prev}${p}"
12703 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12709 # This assumes that the test object file only shows up
12710 # once in the compiler output.
12711 if test "$p" = "conftest.$objext"; then
12712 pre_test_object_deps_done=yes
12716 if test "$pre_test_object_deps_done" = no; then
12717 if test -z "$predep_objects_CXX"; then
12718 predep_objects_CXX="$p"
12720 predep_objects_CXX="$predep_objects_CXX $p"
12723 if test -z "$postdep_objects_CXX"; then
12724 postdep_objects_CXX="$p"
12726 postdep_objects_CXX="$postdep_objects_CXX $p"
12731 *) ;; # Ignore the rest.
12739 echo "libtool.m4: error: problem compiling CXX test program"
12742 $rm -f confest.$objext
12744 case " $postdeps_CXX " in
12745 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12748 lt_prog_compiler_wl_CXX=
12749 lt_prog_compiler_pic_CXX=
12750 lt_prog_compiler_static_CXX=
12752 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12753 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12755 # C++ specific cases for pic, static, wl, etc.
12756 if test "$GXX" = yes; then
12757 lt_prog_compiler_wl_CXX='-Wl,'
12758 lt_prog_compiler_static_CXX='-static'
12762 # All AIX code is PIC.
12763 if test "$host_cpu" = ia64; then
12764 # AIX 5 now supports IA64 processor
12765 lt_prog_compiler_static_CXX='-Bstatic'
12769 # FIXME: we need at least 68020 code to build shared libraries, but
12770 # adding the `-m68020' flag to GCC prevents building anything better,
12772 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12774 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12775 # PIC is the default for these OSes.
12777 mingw* | os2* | pw32*)
12778 # This hack is so that the source file can tell whether it is being
12779 # built for inclusion in a dll (and should export symbols for example).
12780 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12782 darwin* | rhapsody*)
12783 # PIC is the default on this platform
12784 # Common symbols not allowed in MH_DYLIB files
12785 lt_prog_compiler_pic_CXX='-fno-common'
12788 # DJGPP does not support shared libraries at all
12789 lt_prog_compiler_pic_CXX=
12792 if test -d /usr/nec; then
12793 lt_prog_compiler_pic_CXX=-Kconform_pic
12797 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12798 # not for PA HP-UX.
12799 case "$host_cpu" in
12803 lt_prog_compiler_pic_CXX='-fPIC'
12808 lt_prog_compiler_pic_CXX='-fPIC'
12814 # All AIX code is PIC.
12815 if test "$host_cpu" = ia64; then
12816 # AIX 5 now supports IA64 processor
12817 lt_prog_compiler_static_CXX='-Bstatic'
12819 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12823 case $cc_basename in
12825 # Green Hills C++ Compiler
12826 # _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"
12831 case $cc_basename in
12833 lt_prog_compiler_pic_CXX='-KPIC'
12836 # Green Hills C++ Compiler
12837 lt_prog_compiler_pic_CXX='-pic'
12843 freebsd* | kfreebsd*-gnu)
12844 # FreeBSD uses GNU C++
12846 hpux9* | hpux10* | hpux11*)
12847 case $cc_basename in
12849 lt_prog_compiler_wl_CXX='-Wl,'
12850 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12851 if test "$host_cpu" != ia64; then
12852 lt_prog_compiler_pic_CXX='+Z'
12856 lt_prog_compiler_wl_CXX='-Wl,'
12857 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12858 case "$host_cpu" in
12863 lt_prog_compiler_pic_CXX='+Z'
12871 irix5* | irix6* | nonstopux*)
12872 case $cc_basename in
12874 lt_prog_compiler_wl_CXX='-Wl,'
12875 lt_prog_compiler_static_CXX='-non_shared'
12876 # CC pic flag -KPIC is the default.
12883 case $cc_basename in
12886 lt_prog_compiler_wl_CXX='--backend -Wl,'
12887 lt_prog_compiler_pic_CXX='-fPIC'
12891 lt_prog_compiler_wl_CXX='-Wl,'
12892 lt_prog_compiler_pic_CXX='-KPIC'
12893 lt_prog_compiler_static_CXX='-static'
12897 # Make sure the PIC flag is empty. It appears that all Alpha
12898 # Linux and Compaq Tru64 Unix objects are PIC.
12899 lt_prog_compiler_pic_CXX=
12900 lt_prog_compiler_static_CXX='-non_shared'
12911 case $cc_basename in
12913 lt_prog_compiler_pic_CXX='-W c,exportall'
12921 osf3* | osf4* | osf5*)
12922 case $cc_basename in
12924 lt_prog_compiler_wl_CXX='--backend -Wl,'
12927 # Rational C++ 2.4.1
12928 lt_prog_compiler_pic_CXX='-pic'
12931 # Digital/Compaq C++
12932 lt_prog_compiler_wl_CXX='-Wl,'
12933 # Make sure the PIC flag is empty. It appears that all Alpha
12934 # Linux and Compaq Tru64 Unix objects are PIC.
12935 lt_prog_compiler_pic_CXX=
12936 lt_prog_compiler_static_CXX='-non_shared'
12945 case $cc_basename in
12947 lt_prog_compiler_pic_CXX='-fPIC'
12954 case $cc_basename in
12956 # Sun C++ 4.2, 5.x and Centerline C++
12957 lt_prog_compiler_pic_CXX='-KPIC'
12958 lt_prog_compiler_static_CXX='-Bstatic'
12959 lt_prog_compiler_wl_CXX='-Qoption ld '
12962 # Green Hills C++ Compiler
12963 lt_prog_compiler_pic_CXX='-PIC'
12970 case $cc_basename in
12973 lt_prog_compiler_pic_CXX='-pic'
12974 lt_prog_compiler_static_CXX='-Bstatic'
12978 lt_prog_compiler_pic_CXX='-pic'
12985 case $cc_basename in
12987 # NonStop-UX NCC 3.20
12988 lt_prog_compiler_pic_CXX='-KPIC'
12999 lt_prog_compiler_can_build_shared_CXX=no
13004 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13005 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13008 # Check to make sure the PIC flag actually works.
13010 if test -n "$lt_prog_compiler_pic_CXX"; then
13012 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13013 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13014 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 lt_prog_compiler_pic_works_CXX=no
13018 ac_outfile=conftest.$ac_objext
13019 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13020 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13021 # Insert the option either (1) after the last *FLAGS variable, or
13022 # (2) before a word containing "conftest.", or (3) at the end.
13023 # Note that $ac_compile itself does not contain backslashes and begins
13024 # with a dollar sign (not a hyphen), so the echo should work correctly.
13025 # The option is referenced via a variable to avoid confusing sed.
13026 lt_compile=`echo "$ac_compile" | $SED \
13027 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13028 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13029 -e 's:$: $lt_compiler_flag:'`
13030 (eval echo "\"\$as_me:13030: $lt_compile\"" >&5)
13031 (eval "$lt_compile" 2>conftest.err)
13033 cat conftest.err >&5
13034 echo "$as_me:13034: \$? = $ac_status" >&5
13035 if (exit $ac_status) && test -s "$ac_outfile"; then
13036 # The compiler can only warn and ignore the option if not recognized
13037 # So say no if there are warnings
13038 if test ! -s conftest.err; then
13039 lt_prog_compiler_pic_works_CXX=yes
13045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13046 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13048 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13049 case $lt_prog_compiler_pic_CXX in
13051 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13054 lt_prog_compiler_pic_CXX=
13055 lt_prog_compiler_can_build_shared_CXX=no
13060 # For platforms which do not support PIC, -DPIC is meaningless:
13062 lt_prog_compiler_pic_CXX=
13065 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13069 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13070 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13071 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13072 echo $ECHO_N "(cached) $ECHO_C" >&6
13074 lt_cv_prog_compiler_c_o_CXX=no
13075 $rm -r conftest 2>/dev/null
13079 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13081 lt_compiler_flag="-o out/conftest2.$ac_objext"
13082 # Insert the option either (1) after the last *FLAGS variable, or
13083 # (2) before a word containing "conftest.", or (3) at the end.
13084 # Note that $ac_compile itself does not contain backslashes and begins
13085 # with a dollar sign (not a hyphen), so the echo should work correctly.
13086 lt_compile=`echo "$ac_compile" | $SED \
13087 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13089 -e 's:$: $lt_compiler_flag:'`
13090 (eval echo "\"\$as_me:13090: $lt_compile\"" >&5)
13091 (eval "$lt_compile" 2>out/conftest.err)
13093 cat out/conftest.err >&5
13094 echo "$as_me:13094: \$? = $ac_status" >&5
13095 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13097 # The compiler can only warn and ignore the option if not recognized
13098 # So say no if there are warnings
13099 if test ! -s out/conftest.err; then
13100 lt_cv_prog_compiler_c_o_CXX=yes
13105 # SGI C++ compiler will create directory out/ii_files/ for
13106 # template instantiation
13107 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13108 $rm out/* && rmdir out
13114 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13115 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13118 hard_links="nottested"
13119 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13120 # do not overwrite the value of need_locks provided by the user
13121 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13122 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13125 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13127 ln conftest.a conftest.b 2>&5 || hard_links=no
13128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13129 echo "$as_me:$LINENO: result: $hard_links" >&5
13130 echo "${ECHO_T}$hard_links" >&6
13131 if test "$hard_links" = no; then
13132 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13133 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13140 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13141 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13143 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13146 # If we're using GNU nm, then we don't want the "-C" option.
13147 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13148 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13149 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'
13151 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'
13155 export_symbols_cmds_CXX="$ltdll_cmds"
13158 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13161 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13165 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13166 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13167 test "$ld_shlibs_CXX" = no && can_build_shared=no
13169 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13170 if test "$GCC" = yes; then
13171 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13175 # Do we need to explicitly link libc?
13177 case "x$archive_cmds_need_lc_CXX" in
13179 # Assume -lc should be added
13180 archive_cmds_need_lc_CXX=yes
13182 if test "$enable_shared" = yes && test "$GCC" = yes; then
13183 case $archive_cmds_CXX in
13185 # FIXME: we may have to deal with multi-command sequences.
13188 # Test whether the compiler implicitly links with -lc since on some
13189 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13190 # to ld, don't add -lc before -lgcc.
13191 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13192 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13194 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13197 (eval $ac_compile) 2>&5
13199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13200 (exit $ac_status); } 2>conftest.err; then
13203 libobjs=conftest.$ac_objext
13205 wl=$lt_prog_compiler_wl_CXX
13211 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13212 allow_undefined_flag_CXX=
13213 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13214 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }
13219 archive_cmds_need_lc_CXX=no
13221 archive_cmds_need_lc_CXX=yes
13223 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13225 cat conftest.err 1>&5
13228 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13229 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13236 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13237 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13238 library_names_spec=
13239 libname_spec='lib$name'
13243 postuninstall_cmds=
13247 shlibpath_overrides_runpath=unknown
13249 dynamic_linker="$host_os ld.so"
13250 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13251 if test "$GCC" = yes; then
13252 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13253 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13254 # if the path contains ";" then we assume it to be the separator
13255 # otherwise default to the standard path separator (i.e. ":") - it is
13256 # assumed that no part of a normal pathname contains ";" but that should
13257 # okay in the real world where ";" in dirpaths is itself problematic.
13258 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13260 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13263 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13265 need_lib_prefix=unknown
13266 hardcode_into_libs=no
13268 # when you set need_version to no, make sure it does not cause -set_version
13269 # flags to be left without arguments
13270 need_version=unknown
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13276 shlibpath_var=LIBPATH
13278 # AIX 3 has no versioning support, so we append a major version to the name.
13279 soname_spec='${libname}${release}${shared_ext}$major'
13286 hardcode_into_libs=yes
13287 if test "$host_cpu" = ia64; then
13288 # AIX 5 supports IA64
13289 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13290 shlibpath_var=LD_LIBRARY_PATH
13292 # With GCC up to 2.95.x, collect2 would create an import file
13293 # for dependence libraries. The import file would start with
13294 # the line `#! .'. This would cause the generated library to
13295 # depend on `.', always an invalid library. This was fixed in
13296 # development snapshots of GCC prior to 3.0.
13298 aix4 | aix4.[01] | aix4.[01].*)
13299 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13301 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13304 can_build_shared=no
13308 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13309 # soname into executable. Probably we can add versioning support to
13310 # collect2, so additional links can be useful in future.
13311 if test "$aix_use_runtimelinking" = yes; then
13312 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13313 # instead of lib<name>.a to let people know that these are not
13314 # typical AIX shared libraries.
13315 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13317 # We preserve .a as extension for shared libraries through AIX4.2
13318 # and later when we are not doing run time linking.
13319 library_names_spec='${libname}${release}.a $libname.a'
13320 soname_spec='${libname}${release}${shared_ext}$major'
13322 shlibpath_var=LIBPATH
13327 library_names_spec='$libname.ixlibrary $libname.a'
13328 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13329 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'
13333 library_names_spec='${libname}${shared_ext}'
13334 dynamic_linker="$host_os ld.so"
13335 shlibpath_var=LIBRARY_PATH
13341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13342 soname_spec='${libname}${release}${shared_ext}$major'
13343 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13344 shlibpath_var=LD_LIBRARY_PATH
13345 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13346 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13347 # the default ld.so.conf also contains /usr/contrib/lib and
13348 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13349 # libtool to hard-code these into programs
13352 cygwin* | mingw* | pw32*)
13353 version_type=windows
13358 case $GCC,$host_os in
13359 yes,cygwin* | yes,mingw* | yes,pw32*)
13360 library_names_spec='$libname.dll.a'
13361 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13362 postinstall_cmds='base_file=`basename \${file}`~
13363 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13364 dldir=$destdir/`dirname \$dlpath`~
13365 test -d \$dldir || mkdir -p \$dldir~
13366 $install_prog $dir/$dlname \$dldir/$dlname'
13367 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13368 dlpath=$dir/\$dldll~
13370 shlibpath_overrides_runpath=yes
13374 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13375 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13376 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13379 # MinGW DLLs use traditional 'lib' prefix
13380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13381 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13382 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13383 # It is most probably a Windows format PATH printed by
13384 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13385 # path with ; separators, and with drive letters. We can handle the
13386 # drive letters (cygwin fileutils understands them), so leave them,
13387 # especially as we might pass files found there to a mingw objdump,
13388 # which wouldn't understand a cygwinified path. Ahh.
13389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13395 # pw32 DLLs use 'pw' prefix rather than 'lib'
13396 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13402 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13405 dynamic_linker='Win32 ld.exe'
13406 # FIXME: first we should search . and the directory the executable is in
13410 darwin* | rhapsody*)
13411 dynamic_linker="$host_os dyld"
13412 version_type=darwin
13415 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13416 soname_spec='${libname}${release}${major}$shared_ext'
13417 shlibpath_overrides_runpath=yes
13418 shlibpath_var=DYLD_LIBRARY_PATH
13419 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13420 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13421 if test "$GCC" = yes; then
13422 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"`
13424 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13426 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13434 soname_spec='${libname}${release}${shared_ext}$major'
13435 shlibpath_var=LD_LIBRARY_PATH
13446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13447 soname_spec='${libname}${release}${shared_ext}$major'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 shlibpath_overrides_runpath=no
13450 hardcode_into_libs=yes
13451 dynamic_linker='GNU ld.so'
13455 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13456 version_type=freebsd-$objformat
13457 case $version_type in
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13468 shlibpath_var=LD_LIBRARY_PATH
13471 shlibpath_overrides_runpath=yes
13473 freebsd3.01* | freebsdelf3.01*)
13474 shlibpath_overrides_runpath=yes
13475 hardcode_into_libs=yes
13478 shlibpath_overrides_runpath=no
13479 hardcode_into_libs=yes
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13489 soname_spec='${libname}${release}${shared_ext}$major'
13490 shlibpath_var=LD_LIBRARY_PATH
13491 hardcode_into_libs=yes
13494 hpux9* | hpux10* | hpux11*)
13495 # Give a soname corresponding to the major version so that dld.sl refuses to
13496 # link against other versions.
13500 case "$host_cpu" in
13503 hardcode_into_libs=yes
13504 dynamic_linker="$host_os dld.so"
13505 shlibpath_var=LD_LIBRARY_PATH
13506 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 if test "X$HPUX_IA64_MODE" = X32; then
13510 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13512 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13514 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13518 hardcode_into_libs=yes
13519 dynamic_linker="$host_os dld.sl"
13520 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13521 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13523 soname_spec='${libname}${release}${shared_ext}$major'
13524 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13529 dynamic_linker="$host_os dld.sl"
13530 shlibpath_var=SHLIB_PATH
13531 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13536 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13537 postinstall_cmds='chmod 555 $lib'
13540 irix5* | irix6* | nonstopux*)
13542 nonstopux*) version_type=nonstopux ;;
13544 if test "$lt_cv_prog_gnu_ld" = yes; then
13552 soname_spec='${libname}${release}${shared_ext}$major'
13553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13555 irix5* | nonstopux*)
13556 libsuff= shlibsuff=
13559 case $LD in # libtool.m4 will add one of these switches to LD
13560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13561 libsuff= shlibsuff= libmagic=32-bit;;
13562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13563 libsuff=32 shlibsuff=N32 libmagic=N32;;
13564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13566 *) libsuff= shlibsuff= libmagic=never-match;;
13570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13571 shlibpath_overrides_runpath=no
13572 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13573 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13574 hardcode_into_libs=yes
13577 # No shared lib support for Linux oldld, aout, or coff.
13578 linux*oldld* | linux*aout* | linux*coff*)
13582 # This must be Linux ELF.
13587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13588 soname_spec='${libname}${release}${shared_ext}$major'
13589 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13590 shlibpath_var=LD_LIBRARY_PATH
13591 shlibpath_overrides_runpath=no
13592 # This implies no fast_install, which is unacceptable.
13593 # Some rework will be needed to allow for fast_install
13594 # before this can be enabled.
13595 hardcode_into_libs=yes
13597 # find out which ABI we are using
13599 case "$host_cpu" in
13600 x86_64*|s390x*|powerpc64*)
13601 echo '#line 13601 "configure"' > conftest.$ac_ext
13602 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13603 (eval $ac_compile) 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; then
13607 case `/usr/bin/file conftest.$ac_objext` in
13610 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13618 # Append ld.so.conf contents to the search path
13619 if test -f /etc/ld.so.conf; then
13620 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13621 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13624 # We used to test for /lib/ld.so.1 and disable shared libraries on
13625 # powerpc, because MkLinux only supported shared libraries with the
13626 # GNU dynamic linker. Since this was broken with cross compilers,
13627 # most powerpc-linux boxes support dynamic linking these days and
13628 # people can always --disable-shared, the test was removed, and we
13629 # assume the GNU/Linux dynamic linker is in use.
13630 dynamic_linker='GNU/Linux ld.so'
13637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13638 soname_spec='${libname}${release}${shared_ext}$major'
13639 shlibpath_var=LD_LIBRARY_PATH
13640 shlibpath_overrides_runpath=no
13641 hardcode_into_libs=yes
13642 dynamic_linker='GNU ld.so'
13649 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13652 dynamic_linker='NetBSD (a.out) ld.so'
13654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13655 soname_spec='${libname}${release}${shared_ext}$major'
13656 dynamic_linker='NetBSD ld.elf_so'
13658 shlibpath_var=LD_LIBRARY_PATH
13659 shlibpath_overrides_runpath=yes
13660 hardcode_into_libs=yes
13665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13666 shlibpath_var=LD_LIBRARY_PATH
13667 shlibpath_overrides_runpath=yes
13674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13675 soname_spec='${libname}${release}${shared_ext}$major'
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13689 openbsd2.[89] | openbsd2.[89].*)
13690 shlibpath_overrides_runpath=no
13693 shlibpath_overrides_runpath=yes
13697 shlibpath_overrides_runpath=yes
13702 libname_spec='$name'
13705 library_names_spec='$libname${shared_ext} $libname.a'
13706 dynamic_linker='OS/2 ld.exe'
13707 shlibpath_var=LIBPATH
13710 osf3* | osf4* | osf5*)
13714 soname_spec='${libname}${release}${shared_ext}$major'
13715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13716 shlibpath_var=LD_LIBRARY_PATH
13717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13723 soname_spec='${libname}${release}${shared_ext}$major'
13724 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13725 shlibpath_var=LD_LIBRARY_PATH
13732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13733 soname_spec='${libname}${release}${shared_ext}$major'
13734 shlibpath_var=LD_LIBRARY_PATH
13735 shlibpath_overrides_runpath=yes
13736 hardcode_into_libs=yes
13737 # ldd complains unless libraries are executable
13738 postinstall_cmds='chmod +x $lib'
13743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13744 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13745 shlibpath_var=LD_LIBRARY_PATH
13746 shlibpath_overrides_runpath=yes
13747 if test "$with_gnu_ld" = yes; then
13753 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13756 soname_spec='${libname}${release}${shared_ext}$major'
13757 shlibpath_var=LD_LIBRARY_PATH
13758 case $host_vendor in
13760 shlibpath_overrides_runpath=no
13762 export_dynamic_flag_spec='${wl}-Blargedynsym'
13763 runpath_var=LD_RUN_PATH
13771 shlibpath_overrides_runpath=no
13772 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13778 if test -d /usr/nec ;then
13780 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13781 soname_spec='$libname${shared_ext}.$major'
13782 shlibpath_var=LD_LIBRARY_PATH
13788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13789 soname_spec='${libname}${release}${shared_ext}$major'
13790 shlibpath_var=LD_LIBRARY_PATH
13797 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13798 echo "${ECHO_T}$dynamic_linker" >&6
13799 test "$dynamic_linker" = no && can_build_shared=no
13801 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13802 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13803 hardcode_action_CXX=
13804 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13805 test -n "$runpath_var CXX" || \
13806 test "X$hardcode_automatic_CXX"="Xyes" ; then
13808 # We can hardcode non-existant directories.
13809 if test "$hardcode_direct_CXX" != no &&
13810 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13811 # have to relink, otherwise we might link with an installed library
13812 # when we should be linking with a yet-to-be-installed one
13813 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13814 test "$hardcode_minus_L_CXX" != no; then
13815 # Linking always hardcodes the temporary library directory.
13816 hardcode_action_CXX=relink
13818 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13819 hardcode_action_CXX=immediate
13822 # We cannot hardcode anything, or else we can only hardcode existing
13824 hardcode_action_CXX=unsupported
13826 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13827 echo "${ECHO_T}$hardcode_action_CXX" >&6
13829 if test "$hardcode_action_CXX" = relink; then
13830 # Fast installation is not supported
13831 enable_fast_install=no
13832 elif test "$shlibpath_overrides_runpath" = yes ||
13833 test "$enable_shared" = no; then
13834 # Fast installation is not necessary
13835 enable_fast_install=needless
13840 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13841 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13842 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13843 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13844 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13845 echo "$as_me:$LINENO: result: yes" >&5
13846 echo "${ECHO_T}yes" >&6
13848 # FIXME - insert some real tests, host_os isn't really good enough
13851 if test -n "$STRIP" ; then
13852 striplib="$STRIP -x"
13853 echo "$as_me:$LINENO: result: yes" >&5
13854 echo "${ECHO_T}yes" >&6
13856 echo "$as_me:$LINENO: result: no" >&5
13857 echo "${ECHO_T}no" >&6
13861 echo "$as_me:$LINENO: result: no" >&5
13862 echo "${ECHO_T}no" >&6
13867 if test "x$enable_dlopen" != xyes; then
13868 enable_dlopen=unknown
13869 enable_dlopen_self=unknown
13870 enable_dlopen_self_static=unknown
13877 lt_cv_dlopen="load_add_on"
13879 lt_cv_dlopen_self=yes
13883 lt_cv_dlopen="LoadLibrary"
13888 lt_cv_dlopen="dlopen"
13893 # if libdl is installed we need to link against it
13894 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13895 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13896 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 ac_check_lib_save_LIBS=$LIBS
13901 cat >conftest.$ac_ext <<_ACEOF
13904 cat confdefs.h >>conftest.$ac_ext
13905 cat >>conftest.$ac_ext <<_ACEOF
13906 /* end confdefs.h. */
13908 /* Override any gcc2 internal prototype to avoid an error. */
13912 /* We use char because int might match the return type of a gcc2
13913 builtin and then its argument prototype would still apply. */
13923 rm -f conftest.$ac_objext conftest$ac_exeext
13924 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13925 (eval $ac_link) 2>conftest.er1
13927 grep -v '^ *+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } &&
13932 { ac_try='test -z "$ac_cxx_werror_flag"
13933 || test ! -s conftest.err'
13934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13935 (eval $ac_try) 2>&5
13937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13938 (exit $ac_status); }; } &&
13939 { ac_try='test -s conftest$ac_exeext'
13940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13941 (eval $ac_try) 2>&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); }; }; then
13945 ac_cv_lib_dl_dlopen=yes
13947 echo "$as_me: failed program was:" >&5
13948 sed 's/^/| /' conftest.$ac_ext >&5
13950 ac_cv_lib_dl_dlopen=no
13952 rm -f conftest.err conftest.$ac_objext \
13953 conftest$ac_exeext conftest.$ac_ext
13954 LIBS=$ac_check_lib_save_LIBS
13956 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13957 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13958 if test $ac_cv_lib_dl_dlopen = yes; then
13959 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13962 lt_cv_dlopen="dyld"
13964 lt_cv_dlopen_self=yes
13971 echo "$as_me:$LINENO: checking for shl_load" >&5
13972 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13973 if test "${ac_cv_func_shl_load+set}" = set; then
13974 echo $ECHO_N "(cached) $ECHO_C" >&6
13976 cat >conftest.$ac_ext <<_ACEOF
13979 cat confdefs.h >>conftest.$ac_ext
13980 cat >>conftest.$ac_ext <<_ACEOF
13981 /* end confdefs.h. */
13982 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13983 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13984 #define shl_load innocuous_shl_load
13986 /* System header to define __stub macros and hopefully few prototypes,
13987 which can conflict with char shl_load (); below.
13988 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13989 <limits.h> exists even on freestanding compilers. */
13992 # include <limits.h>
13994 # include <assert.h>
13999 /* Override any gcc2 internal prototype to avoid an error. */
14004 /* We use char because int might match the return type of a gcc2
14005 builtin and then its argument prototype would still apply. */
14007 /* The GNU C library defines this for functions which it implements
14008 to always fail with ENOSYS. Some functions are actually named
14009 something starting with __ and the normal name is an alias. */
14010 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14013 char (*f) () = shl_load;
14022 return f != shl_load;
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14029 (eval $ac_link) 2>conftest.er1
14031 grep -v '^ *+' conftest.er1 >conftest.err
14033 cat conftest.err >&5
14034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14035 (exit $ac_status); } &&
14036 { ac_try='test -z "$ac_cxx_werror_flag"
14037 || test ! -s conftest.err'
14038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14039 (eval $ac_try) 2>&5
14041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14042 (exit $ac_status); }; } &&
14043 { ac_try='test -s conftest$ac_exeext'
14044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14045 (eval $ac_try) 2>&5
14047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14048 (exit $ac_status); }; }; then
14049 ac_cv_func_shl_load=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.$ac_ext >&5
14054 ac_cv_func_shl_load=no
14056 rm -f conftest.err conftest.$ac_objext \
14057 conftest$ac_exeext conftest.$ac_ext
14059 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14060 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14061 if test $ac_cv_func_shl_load = yes; then
14062 lt_cv_dlopen="shl_load"
14064 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14065 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14066 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_check_lib_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any gcc2 internal prototype to avoid an error. */
14082 /* We use char because int might match the return type of a gcc2
14083 builtin and then its argument prototype would still apply. */
14093 rm -f conftest.$ac_objext conftest$ac_exeext
14094 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14095 (eval $ac_link) 2>conftest.er1
14097 grep -v '^ *+' conftest.er1 >conftest.err
14099 cat conftest.err >&5
14100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14101 (exit $ac_status); } &&
14102 { ac_try='test -z "$ac_cxx_werror_flag"
14103 || test ! -s conftest.err'
14104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14105 (eval $ac_try) 2>&5
14107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14108 (exit $ac_status); }; } &&
14109 { ac_try='test -s conftest$ac_exeext'
14110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14111 (eval $ac_try) 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_lib_dld_shl_load=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_lib_dld_shl_load=no
14122 rm -f conftest.err conftest.$ac_objext \
14123 conftest$ac_exeext conftest.$ac_ext
14124 LIBS=$ac_check_lib_save_LIBS
14126 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14127 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14128 if test $ac_cv_lib_dld_shl_load = yes; then
14129 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14131 echo "$as_me:$LINENO: checking for dlopen" >&5
14132 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14133 if test "${ac_cv_func_dlopen+set}" = set; then
14134 echo $ECHO_N "(cached) $ECHO_C" >&6
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14143 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14144 #define dlopen innocuous_dlopen
14146 /* System header to define __stub macros and hopefully few prototypes,
14147 which can conflict with char dlopen (); below.
14148 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14149 <limits.h> exists even on freestanding compilers. */
14152 # include <limits.h>
14154 # include <assert.h>
14159 /* Override any gcc2 internal prototype to avoid an error. */
14164 /* We use char because int might match the return type of a gcc2
14165 builtin and then its argument prototype would still apply. */
14167 /* The GNU C library defines this for functions which it implements
14168 to always fail with ENOSYS. Some functions are actually named
14169 something starting with __ and the normal name is an alias. */
14170 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14173 char (*f) () = dlopen;
14182 return f != dlopen;
14187 rm -f conftest.$ac_objext conftest$ac_exeext
14188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14189 (eval $ac_link) 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } &&
14196 { ac_try='test -z "$ac_cxx_werror_flag"
14197 || test ! -s conftest.err'
14198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14199 (eval $ac_try) 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest$ac_exeext'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; }; then
14209 ac_cv_func_dlopen=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.$ac_ext >&5
14214 ac_cv_func_dlopen=no
14216 rm -f conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
14219 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14220 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14221 if test $ac_cv_func_dlopen = yes; then
14222 lt_cv_dlopen="dlopen"
14224 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14225 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14226 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14227 echo $ECHO_N "(cached) $ECHO_C" >&6
14229 ac_check_lib_save_LIBS=$LIBS
14231 cat >conftest.$ac_ext <<_ACEOF
14234 cat confdefs.h >>conftest.$ac_ext
14235 cat >>conftest.$ac_ext <<_ACEOF
14236 /* end confdefs.h. */
14238 /* Override any gcc2 internal prototype to avoid an error. */
14242 /* We use char because int might match the return type of a gcc2
14243 builtin and then its argument prototype would still apply. */
14253 rm -f conftest.$ac_objext conftest$ac_exeext
14254 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14255 (eval $ac_link) 2>conftest.er1
14257 grep -v '^ *+' conftest.er1 >conftest.err
14259 cat conftest.err >&5
14260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14261 (exit $ac_status); } &&
14262 { ac_try='test -z "$ac_cxx_werror_flag"
14263 || test ! -s conftest.err'
14264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14265 (eval $ac_try) 2>&5
14267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14268 (exit $ac_status); }; } &&
14269 { ac_try='test -s conftest$ac_exeext'
14270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14271 (eval $ac_try) 2>&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); }; }; then
14275 ac_cv_lib_dl_dlopen=yes
14277 echo "$as_me: failed program was:" >&5
14278 sed 's/^/| /' conftest.$ac_ext >&5
14280 ac_cv_lib_dl_dlopen=no
14282 rm -f conftest.err conftest.$ac_objext \
14283 conftest$ac_exeext conftest.$ac_ext
14284 LIBS=$ac_check_lib_save_LIBS
14286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14288 if test $ac_cv_lib_dl_dlopen = yes; then
14289 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14291 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14292 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14293 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 ac_check_lib_save_LIBS=$LIBS
14297 LIBS="-lsvld $LIBS"
14298 cat >conftest.$ac_ext <<_ACEOF
14301 cat confdefs.h >>conftest.$ac_ext
14302 cat >>conftest.$ac_ext <<_ACEOF
14303 /* end confdefs.h. */
14305 /* Override any gcc2 internal prototype to avoid an error. */
14309 /* We use char because int might match the return type of a gcc2
14310 builtin and then its argument prototype would still apply. */
14320 rm -f conftest.$ac_objext conftest$ac_exeext
14321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14322 (eval $ac_link) 2>conftest.er1
14324 grep -v '^ *+' conftest.er1 >conftest.err
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } &&
14329 { ac_try='test -z "$ac_cxx_werror_flag"
14330 || test ! -s conftest.err'
14331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14332 (eval $ac_try) 2>&5
14334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14335 (exit $ac_status); }; } &&
14336 { ac_try='test -s conftest$ac_exeext'
14337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14338 (eval $ac_try) 2>&5
14340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14341 (exit $ac_status); }; }; then
14342 ac_cv_lib_svld_dlopen=yes
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14347 ac_cv_lib_svld_dlopen=no
14349 rm -f conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14353 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14354 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14355 if test $ac_cv_lib_svld_dlopen = yes; then
14356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14358 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14359 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14360 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14361 echo $ECHO_N "(cached) $ECHO_C" >&6
14363 ac_check_lib_save_LIBS=$LIBS
14365 cat >conftest.$ac_ext <<_ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14372 /* Override any gcc2 internal prototype to avoid an error. */
14376 /* We use char because int might match the return type of a gcc2
14377 builtin and then its argument prototype would still apply. */
14387 rm -f conftest.$ac_objext conftest$ac_exeext
14388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14389 (eval $ac_link) 2>conftest.er1
14391 grep -v '^ *+' conftest.er1 >conftest.err
14393 cat conftest.err >&5
14394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14395 (exit $ac_status); } &&
14396 { ac_try='test -z "$ac_cxx_werror_flag"
14397 || test ! -s conftest.err'
14398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14399 (eval $ac_try) 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; } &&
14403 { ac_try='test -s conftest$ac_exeext'
14404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14405 (eval $ac_try) 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; }; then
14409 ac_cv_lib_dld_dld_link=yes
14411 echo "$as_me: failed program was:" >&5
14412 sed 's/^/| /' conftest.$ac_ext >&5
14414 ac_cv_lib_dld_dld_link=no
14416 rm -f conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14418 LIBS=$ac_check_lib_save_LIBS
14420 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14421 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14422 if test $ac_cv_lib_dld_dld_link = yes; then
14423 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14444 if test "x$lt_cv_dlopen" != xno; then
14450 case $lt_cv_dlopen in
14452 save_CPPFLAGS="$CPPFLAGS"
14453 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14455 save_LDFLAGS="$LDFLAGS"
14456 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14459 LIBS="$lt_cv_dlopen_libs $LIBS"
14461 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14462 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14463 if test "${lt_cv_dlopen_self+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 if test "$cross_compiling" = yes; then :
14467 lt_cv_dlopen_self=cross
14469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14470 lt_status=$lt_dlunknown
14471 cat > conftest.$ac_ext <<EOF
14472 #line 14472 "configure"
14473 #include "confdefs.h"
14482 # define LT_DLGLOBAL RTLD_GLOBAL
14485 # define LT_DLGLOBAL DL_GLOBAL
14487 # define LT_DLGLOBAL 0
14491 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14492 find out it does not work in some platform. */
14493 #ifndef LT_DLLAZY_OR_NOW
14495 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14498 # define LT_DLLAZY_OR_NOW DL_LAZY
14501 # define LT_DLLAZY_OR_NOW RTLD_NOW
14504 # define LT_DLLAZY_OR_NOW DL_NOW
14506 # define LT_DLLAZY_OR_NOW 0
14514 extern "C" void exit (int);
14517 void fnord() { int i=42;}
14520 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14521 int status = $lt_dlunknown;
14525 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14526 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14527 /* dlclose (self); */
14533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14534 (eval $ac_link) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14538 (./conftest; exit; ) 2>/dev/null
14540 case x$lt_status in
14541 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14542 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14543 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14546 # compilation failed
14547 lt_cv_dlopen_self=no
14554 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14555 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14557 if test "x$lt_cv_dlopen_self" = xyes; then
14558 LDFLAGS="$LDFLAGS $link_static_flag"
14559 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14560 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14561 if test "${lt_cv_dlopen_self_static+set}" = set; then
14562 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 if test "$cross_compiling" = yes; then :
14565 lt_cv_dlopen_self_static=cross
14567 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14568 lt_status=$lt_dlunknown
14569 cat > conftest.$ac_ext <<EOF
14570 #line 14570 "configure"
14571 #include "confdefs.h"
14580 # define LT_DLGLOBAL RTLD_GLOBAL
14583 # define LT_DLGLOBAL DL_GLOBAL
14585 # define LT_DLGLOBAL 0
14589 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14590 find out it does not work in some platform. */
14591 #ifndef LT_DLLAZY_OR_NOW
14593 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14596 # define LT_DLLAZY_OR_NOW DL_LAZY
14599 # define LT_DLLAZY_OR_NOW RTLD_NOW
14602 # define LT_DLLAZY_OR_NOW DL_NOW
14604 # define LT_DLLAZY_OR_NOW 0
14612 extern "C" void exit (int);
14615 void fnord() { int i=42;}
14618 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14619 int status = $lt_dlunknown;
14623 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14624 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14625 /* dlclose (self); */
14631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14632 (eval $ac_link) 2>&5
14634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14635 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14636 (./conftest; exit; ) 2>/dev/null
14638 case x$lt_status in
14639 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14640 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14641 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14644 # compilation failed
14645 lt_cv_dlopen_self_static=no
14652 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14653 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14656 CPPFLAGS="$save_CPPFLAGS"
14657 LDFLAGS="$save_LDFLAGS"
14662 case $lt_cv_dlopen_self in
14663 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14664 *) enable_dlopen_self=unknown ;;
14667 case $lt_cv_dlopen_self_static in
14668 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14669 *) enable_dlopen_self_static=unknown ;;
14674 # The else clause should only fire when bootstrapping the
14675 # libtool distribution, otherwise you forgot to ship ltmain.sh
14676 # with your package, and you will get complaints that there are
14677 # no rules to generate ltmain.sh.
14678 if test -f "$ltmain"; then
14679 # See if we are running on zsh, and set the options which allow our commands through
14680 # without removal of \ escapes.
14681 if test -n "${ZSH_VERSION+set}" ; then
14682 setopt NO_GLOB_SUBST
14684 # Now quote all the things that may contain metacharacters while being
14685 # careful not to overquote the AC_SUBSTed values. We take copies of the
14686 # variables and quote the copies for generation of the libtool script.
14687 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14689 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14690 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14691 deplibs_check_method reload_flag reload_cmds need_locks \
14692 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14693 lt_cv_sys_global_symbol_to_c_name_address \
14694 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14695 old_postinstall_cmds old_postuninstall_cmds \
14699 lt_prog_compiler_wl_CXX \
14700 lt_prog_compiler_pic_CXX \
14701 lt_prog_compiler_static_CXX \
14702 lt_prog_compiler_no_builtin_flag_CXX \
14703 export_dynamic_flag_spec_CXX \
14704 thread_safe_flag_spec_CXX \
14705 whole_archive_flag_spec_CXX \
14706 enable_shared_with_static_runtimes_CXX \
14707 old_archive_cmds_CXX \
14708 old_archive_from_new_cmds_CXX \
14709 predep_objects_CXX \
14710 postdep_objects_CXX \
14713 compiler_lib_search_path_CXX \
14715 archive_expsym_cmds_CXX \
14716 postinstall_cmds_CXX \
14717 postuninstall_cmds_CXX \
14718 old_archive_from_expsyms_cmds_CXX \
14719 allow_undefined_flag_CXX \
14720 no_undefined_flag_CXX \
14721 export_symbols_cmds_CXX \
14722 hardcode_libdir_flag_spec_CXX \
14723 hardcode_libdir_flag_spec_ld_CXX \
14724 hardcode_libdir_separator_CXX \
14725 hardcode_automatic_CXX \
14727 module_expsym_cmds_CXX \
14728 lt_cv_prog_compiler_c_o_CXX \
14729 exclude_expsyms_CXX \
14730 include_expsyms_CXX; do
14733 old_archive_cmds_CXX | \
14734 old_archive_from_new_cmds_CXX | \
14735 archive_cmds_CXX | \
14736 archive_expsym_cmds_CXX | \
14737 module_cmds_CXX | \
14738 module_expsym_cmds_CXX | \
14739 old_archive_from_expsyms_cmds_CXX | \
14740 export_symbols_cmds_CXX | \
14741 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14742 postinstall_cmds | postuninstall_cmds | \
14743 old_postinstall_cmds | old_postuninstall_cmds | \
14744 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14745 # Double-quote double-evaled strings.
14746 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14755 *'\$0 --fallback-echo"')
14756 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14762 cat <<__EOF__ >> "$cfgfile"
14763 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14765 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14767 # Shell to use when invoking shell scripts.
14770 # Whether or not to build shared libraries.
14771 build_libtool_libs=$enable_shared
14773 # Whether or not to build static libraries.
14774 build_old_libs=$enable_static
14776 # Whether or not to add -lc for building shared libraries.
14777 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14779 # Whether or not to disallow shared libs when runtime libs are static
14780 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14782 # Whether or not to optimize for fast installation.
14783 fast_install=$enable_fast_install
14786 host_alias=$host_alias
14789 # An echo program that does not interpret backslashes.
14794 AR_FLAGS=$lt_AR_FLAGS
14799 # A language-specific compiler.
14800 CC=$lt_compiler_CXX
14802 # Is the compiler the GNU C compiler?
14808 # The linker used to build libraries.
14811 # Whether we need hard or soft links.
14814 # A BSD-compatible nm program.
14817 # A symbol stripping program
14820 # Used to examine libraries when file_magic_cmd begins "file"
14821 MAGIC_CMD=$MAGIC_CMD
14823 # Used on cygwin: DLL creation program.
14826 # Used on cygwin: object dumper.
14829 # Used on cygwin: assembler.
14832 # The name of the directory that contains temporary libtool files.
14835 # How to create reloadable object files.
14836 reload_flag=$lt_reload_flag
14837 reload_cmds=$lt_reload_cmds
14839 # How to pass a linker flag through the compiler.
14840 wl=$lt_lt_prog_compiler_wl_CXX
14842 # Object file suffix (normally "o").
14843 objext="$ac_objext"
14845 # Old archive suffix (normally "a").
14848 # Shared library suffix (normally ".so").
14849 shrext_cmds='$shrext_cmds'
14851 # Executable file suffix (normally "").
14854 # Additional compiler flags for building library objects.
14855 pic_flag=$lt_lt_prog_compiler_pic_CXX
14858 # What is the maximum length of a command?
14859 max_cmd_len=$lt_cv_sys_max_cmd_len
14861 # Does compiler simultaneously support -c and -o options?
14862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14864 # Must we lock files when doing compilation ?
14865 need_locks=$lt_need_locks
14867 # Do we need the lib prefix for modules?
14868 need_lib_prefix=$need_lib_prefix
14870 # Do we need a version for libraries?
14871 need_version=$need_version
14873 # Whether dlopen is supported.
14874 dlopen_support=$enable_dlopen
14876 # Whether dlopen of programs is supported.
14877 dlopen_self=$enable_dlopen_self
14879 # Whether dlopen of statically linked programs is supported.
14880 dlopen_self_static=$enable_dlopen_self_static
14882 # Compiler flag to prevent dynamic linking.
14883 link_static_flag=$lt_lt_prog_compiler_static_CXX
14885 # Compiler flag to turn off builtin functions.
14886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14888 # Compiler flag to allow reflexive dlopens.
14889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14891 # Compiler flag to generate shared objects directly from archives.
14892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14894 # Compiler flag to generate thread-safe objects.
14895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14897 # Library versioning type.
14898 version_type=$version_type
14900 # Format of library name prefix.
14901 libname_spec=$lt_libname_spec
14903 # List of archive names. First name is the real one, the rest are links.
14904 # The last name is the one that the linker finds with -lNAME.
14905 library_names_spec=$lt_library_names_spec
14907 # The coded name of the library, if different from the real name.
14908 soname_spec=$lt_soname_spec
14910 # Commands used to build and install an old-style archive.
14912 old_archive_cmds=$lt_old_archive_cmds_CXX
14913 old_postinstall_cmds=$lt_old_postinstall_cmds
14914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14916 # Create an old-style archive from a shared archive.
14917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14919 # Create a temporary old-style archive to link instead of a shared archive.
14920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14922 # Commands used to build and install a shared archive.
14923 archive_cmds=$lt_archive_cmds_CXX
14924 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14925 postinstall_cmds=$lt_postinstall_cmds
14926 postuninstall_cmds=$lt_postuninstall_cmds
14928 # Commands used to build a loadable module (assumed same as above if empty)
14929 module_cmds=$lt_module_cmds_CXX
14930 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14932 # Commands to strip libraries.
14933 old_striplib=$lt_old_striplib
14934 striplib=$lt_striplib
14936 # Dependencies to place before the objects being linked to create a
14938 predep_objects=$lt_predep_objects_CXX
14940 # Dependencies to place after the objects being linked to create a
14942 postdep_objects=$lt_postdep_objects_CXX
14944 # Dependencies to place before the objects being linked to create a
14946 predeps=$lt_predeps_CXX
14948 # Dependencies to place after the objects being linked to create a
14950 postdeps=$lt_postdeps_CXX
14952 # The library search path used internally by the compiler when linking
14953 # a shared library.
14954 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14956 # Method to check whether dependent libraries are shared objects.
14957 deplibs_check_method=$lt_deplibs_check_method
14959 # Command to use when deplibs_check_method == file_magic.
14960 file_magic_cmd=$lt_file_magic_cmd
14962 # Flag that allows shared libraries with undefined symbols to be built.
14963 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14965 # Flag that forces no undefined symbols.
14966 no_undefined_flag=$lt_no_undefined_flag_CXX
14968 # Commands used to finish a libtool library installation in a directory.
14969 finish_cmds=$lt_finish_cmds
14971 # Same as above, but a single script fragment to be evaled but not shown.
14972 finish_eval=$lt_finish_eval
14974 # Take the output of nm and produce a listing of raw symbols and C names.
14975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14977 # Transform the output of nm in a proper C declaration
14978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14980 # Transform the output of nm in a C name address pair
14981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14983 # This is the shared library runtime path variable.
14984 runpath_var=$runpath_var
14986 # This is the shared library path variable.
14987 shlibpath_var=$shlibpath_var
14989 # Is shlibpath searched before the hard-coded library search path?
14990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14992 # How to hardcode a shared library path into an executable.
14993 hardcode_action=$hardcode_action_CXX
14995 # Whether we should hardcode library paths into libraries.
14996 hardcode_into_libs=$hardcode_into_libs
14998 # Flag to hardcode \$libdir into a binary during linking.
14999 # This must work even if \$libdir does not exist.
15000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15002 # If ld is used when linking, flag to hardcode \$libdir into
15003 # a binary during linking. This must work even if \$libdir does
15005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15007 # Whether we need a single -rpath flag with a separated argument.
15008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15011 # resulting binary.
15012 hardcode_direct=$hardcode_direct_CXX
15014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15015 # resulting binary.
15016 hardcode_minus_L=$hardcode_minus_L_CXX
15018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15019 # the resulting binary.
15020 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15022 # Set to yes if building a shared library automatically hardcodes DIR into the library
15023 # and all subsequent libraries and executables linked against it.
15024 hardcode_automatic=$hardcode_automatic_CXX
15026 # Variables whose values should be saved in libtool wrapper scripts and
15027 # restored at relink time.
15028 variables_saved_for_relink="$variables_saved_for_relink"
15030 # Whether libtool must link a program against all its dependency libraries.
15031 link_all_deplibs=$link_all_deplibs_CXX
15033 # Compile-time system search path for libraries
15034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15036 # Run-time system search path for libraries
15037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15039 # Fix the shell variable \$srcfile for the compiler.
15040 fix_srcfile_path="$fix_srcfile_path_CXX"
15042 # Set to yes if exported symbols are required.
15043 always_export_symbols=$always_export_symbols_CXX
15045 # The commands to list exported symbols.
15046 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15048 # The commands to extract the exported symbol list from a shared archive.
15049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15051 # Symbols that should not be listed in the preloaded symbols.
15052 exclude_expsyms=$lt_exclude_expsyms_CXX
15054 # Symbols that must always be exported.
15055 include_expsyms=$lt_include_expsyms_CXX
15057 # ### END LIBTOOL TAG CONFIG: $tagname
15063 # If there is no Makefile yet, we rely on a make rule to execute
15064 # `config.status --recheck' to rerun these tests and create the
15065 # libtool script then.
15066 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15067 if test -f "$ltmain_in"; then
15068 test -f Makefile && make "$ltmain"
15074 ac_cpp='$CPP $CPPFLAGS'
15075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15083 with_gnu_ldcxx=$with_gnu_ld
15084 with_gnu_ld=$lt_save_with_gnu_ld
15085 lt_cv_path_LDCXX=$lt_cv_path_LD
15086 lt_cv_path_LD=$lt_save_path_LD
15087 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15088 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15096 if test -n "$F77" && test "X$F77" != "Xno"; then
15099 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15100 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15101 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15104 archive_cmds_need_lc_F77=no
15105 allow_undefined_flag_F77=
15106 always_export_symbols_F77=no
15107 archive_expsym_cmds_F77=
15108 export_dynamic_flag_spec_F77=
15109 hardcode_direct_F77=no
15110 hardcode_libdir_flag_spec_F77=
15111 hardcode_libdir_flag_spec_ld_F77=
15112 hardcode_libdir_separator_F77=
15113 hardcode_minus_L_F77=no
15114 hardcode_automatic_F77=no
15116 module_expsym_cmds_F77=
15117 link_all_deplibs_F77=unknown
15118 old_archive_cmds_F77=$old_archive_cmds
15119 no_undefined_flag_F77=
15120 whole_archive_flag_spec_F77=
15121 enable_shared_with_static_runtimes_F77=no
15123 # Source file extension for f77 test sources.
15126 # Object file extension for compiled f77 test sources.
15130 # Code to be used in simple compile tests
15131 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15133 # Code to be used in simple link tests
15134 lt_simple_link_test_code=" program t\n end\n"
15136 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15138 # If no C compiler was specified, use CC.
15141 # Allow CC to be a program name with arguments.
15145 # Allow CC to be a program name with arguments.
15150 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15152 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15153 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15154 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15155 echo "${ECHO_T}$can_build_shared" >&6
15157 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15158 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15159 test "$can_build_shared" = "no" && enable_shared=no
15161 # On AIX, shared libraries and static libraries use the same namespace, and
15162 # are all built from PIC.
15165 test "$enable_shared" = yes && enable_static=no
15166 if test -n "$RANLIB"; then
15167 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15168 postinstall_cmds='$RANLIB $lib'
15172 test "$enable_shared" = yes && enable_static=no
15175 echo "$as_me:$LINENO: result: $enable_shared" >&5
15176 echo "${ECHO_T}$enable_shared" >&6
15178 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15179 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15180 # Make sure either enable_shared or enable_static is yes.
15181 test "$enable_shared" = yes || enable_static=yes
15182 echo "$as_me:$LINENO: result: $enable_static" >&5
15183 echo "${ECHO_T}$enable_static" >&6
15185 test "$ld_shlibs_F77" = no && can_build_shared=no
15190 lt_prog_compiler_wl_F77=
15191 lt_prog_compiler_pic_F77=
15192 lt_prog_compiler_static_F77=
15194 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15195 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15197 if test "$GCC" = yes; then
15198 lt_prog_compiler_wl_F77='-Wl,'
15199 lt_prog_compiler_static_F77='-static'
15203 # All AIX code is PIC.
15204 if test "$host_cpu" = ia64; then
15205 # AIX 5 now supports IA64 processor
15206 lt_prog_compiler_static_F77='-Bstatic'
15211 # FIXME: we need at least 68020 code to build shared libraries, but
15212 # adding the `-m68020' flag to GCC prevents building anything better,
15214 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15217 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15218 # PIC is the default for these OSes.
15221 mingw* | pw32* | os2*)
15222 # This hack is so that the source file can tell whether it is being
15223 # built for inclusion in a dll (and should export symbols for example).
15224 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15227 darwin* | rhapsody*)
15228 # PIC is the default on this platform
15229 # Common symbols not allowed in MH_DYLIB files
15230 lt_prog_compiler_pic_F77='-fno-common'
15234 # Just because we use GCC doesn't mean we suddenly get shared libraries
15235 # on systems that don't support them.
15236 lt_prog_compiler_can_build_shared_F77=no
15241 if test -d /usr/nec; then
15242 lt_prog_compiler_pic_F77=-Kconform_pic
15247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15248 # not for PA HP-UX.
15249 case "$host_cpu" in
15254 lt_prog_compiler_pic_F77='-fPIC'
15260 lt_prog_compiler_pic_F77='-fPIC'
15264 # PORTME Check for flag to pass linker flags through the system compiler.
15267 lt_prog_compiler_wl_F77='-Wl,'
15268 if test "$host_cpu" = ia64; then
15269 # AIX 5 now supports IA64 processor
15270 lt_prog_compiler_static_F77='-Bstatic'
15272 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15276 mingw* | pw32* | os2*)
15277 # This hack is so that the source file can tell whether it is being
15278 # built for inclusion in a dll (and should export symbols for example).
15279 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15282 hpux9* | hpux10* | hpux11*)
15283 lt_prog_compiler_wl_F77='-Wl,'
15284 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15285 # not for PA HP-UX.
15286 case "$host_cpu" in
15291 lt_prog_compiler_pic_F77='+Z'
15294 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15295 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15298 irix5* | irix6* | nonstopux*)
15299 lt_prog_compiler_wl_F77='-Wl,'
15300 # PIC (with -KPIC) is the default.
15301 lt_prog_compiler_static_F77='-non_shared'
15305 lt_prog_compiler_pic_F77='-KPIC'
15306 lt_prog_compiler_static_F77='-Bstatic'
15312 lt_prog_compiler_wl_F77='-Wl,'
15313 lt_prog_compiler_pic_F77='-KPIC'
15314 lt_prog_compiler_static_F77='-static'
15317 lt_prog_compiler_wl_F77='-Wl,'
15318 # All Alpha code is PIC.
15319 lt_prog_compiler_static_F77='-non_shared'
15324 osf3* | osf4* | osf5*)
15325 lt_prog_compiler_wl_F77='-Wl,'
15326 # All OSF/1 code is PIC.
15327 lt_prog_compiler_static_F77='-non_shared'
15331 lt_prog_compiler_pic_F77='-Kpic'
15332 lt_prog_compiler_static_F77='-dn'
15336 lt_prog_compiler_wl_F77='-Wl,'
15337 lt_prog_compiler_pic_F77='-KPIC'
15338 lt_prog_compiler_static_F77='-Bstatic'
15342 lt_prog_compiler_wl_F77='-Qoption ld '
15343 lt_prog_compiler_pic_F77='-PIC'
15344 lt_prog_compiler_static_F77='-Bstatic'
15347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15348 lt_prog_compiler_wl_F77='-Wl,'
15349 lt_prog_compiler_pic_F77='-KPIC'
15350 lt_prog_compiler_static_F77='-Bstatic'
15354 if test -d /usr/nec ;then
15355 lt_prog_compiler_pic_F77='-Kconform_pic'
15356 lt_prog_compiler_static_F77='-Bstatic'
15361 lt_prog_compiler_pic_F77='-pic'
15362 lt_prog_compiler_static_F77='-Bstatic'
15366 lt_prog_compiler_can_build_shared_F77=no
15371 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15372 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15375 # Check to make sure the PIC flag actually works.
15377 if test -n "$lt_prog_compiler_pic_F77"; then
15379 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15380 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15381 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15382 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 lt_prog_compiler_pic_works_F77=no
15385 ac_outfile=conftest.$ac_objext
15386 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15387 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15388 # Insert the option either (1) after the last *FLAGS variable, or
15389 # (2) before a word containing "conftest.", or (3) at the end.
15390 # Note that $ac_compile itself does not contain backslashes and begins
15391 # with a dollar sign (not a hyphen), so the echo should work correctly.
15392 # The option is referenced via a variable to avoid confusing sed.
15393 lt_compile=`echo "$ac_compile" | $SED \
15394 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15396 -e 's:$: $lt_compiler_flag:'`
15397 (eval echo "\"\$as_me:15397: $lt_compile\"" >&5)
15398 (eval "$lt_compile" 2>conftest.err)
15400 cat conftest.err >&5
15401 echo "$as_me:15401: \$? = $ac_status" >&5
15402 if (exit $ac_status) && test -s "$ac_outfile"; then
15403 # The compiler can only warn and ignore the option if not recognized
15404 # So say no if there are warnings
15405 if test ! -s conftest.err; then
15406 lt_prog_compiler_pic_works_F77=yes
15412 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15413 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15415 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15416 case $lt_prog_compiler_pic_F77 in
15418 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15421 lt_prog_compiler_pic_F77=
15422 lt_prog_compiler_can_build_shared_F77=no
15427 # For platforms which do not support PIC, -DPIC is meaningless:
15429 lt_prog_compiler_pic_F77=
15432 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15436 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15437 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15438 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15439 echo $ECHO_N "(cached) $ECHO_C" >&6
15441 lt_cv_prog_compiler_c_o_F77=no
15442 $rm -r conftest 2>/dev/null
15446 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15448 lt_compiler_flag="-o out/conftest2.$ac_objext"
15449 # Insert the option either (1) after the last *FLAGS variable, or
15450 # (2) before a word containing "conftest.", or (3) at the end.
15451 # Note that $ac_compile itself does not contain backslashes and begins
15452 # with a dollar sign (not a hyphen), so the echo should work correctly.
15453 lt_compile=`echo "$ac_compile" | $SED \
15454 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15455 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15456 -e 's:$: $lt_compiler_flag:'`
15457 (eval echo "\"\$as_me:15457: $lt_compile\"" >&5)
15458 (eval "$lt_compile" 2>out/conftest.err)
15460 cat out/conftest.err >&5
15461 echo "$as_me:15461: \$? = $ac_status" >&5
15462 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15464 # The compiler can only warn and ignore the option if not recognized
15465 # So say no if there are warnings
15466 if test ! -s out/conftest.err; then
15467 lt_cv_prog_compiler_c_o_F77=yes
15472 # SGI C++ compiler will create directory out/ii_files/ for
15473 # template instantiation
15474 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15475 $rm out/* && rmdir out
15481 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15482 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15485 hard_links="nottested"
15486 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15487 # do not overwrite the value of need_locks provided by the user
15488 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15489 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15494 ln conftest.a conftest.b 2>&5 || hard_links=no
15495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15496 echo "$as_me:$LINENO: result: $hard_links" >&5
15497 echo "${ECHO_T}$hard_links" >&6
15498 if test "$hard_links" = no; then
15499 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15500 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15507 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15508 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15511 allow_undefined_flag_F77=
15512 enable_shared_with_static_runtimes_F77=no
15514 archive_expsym_cmds_F77=
15515 old_archive_From_new_cmds_F77=
15516 old_archive_from_expsyms_cmds_F77=
15517 export_dynamic_flag_spec_F77=
15518 whole_archive_flag_spec_F77=
15519 thread_safe_flag_spec_F77=
15520 hardcode_libdir_flag_spec_F77=
15521 hardcode_libdir_flag_spec_ld_F77=
15522 hardcode_libdir_separator_F77=
15523 hardcode_direct_F77=no
15524 hardcode_minus_L_F77=no
15525 hardcode_shlibpath_var_F77=unsupported
15526 link_all_deplibs_F77=unknown
15527 hardcode_automatic_F77=no
15529 module_expsym_cmds_F77=
15530 always_export_symbols_F77=no
15531 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15532 # include_expsyms should be a list of space-separated symbols to be *always*
15533 # included in the symbol list
15534 include_expsyms_F77=
15535 # exclude_expsyms can be an extended regexp of symbols to exclude
15536 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15537 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15538 # as well as any symbol that contains `d'.
15539 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15540 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15541 # platforms (ab)use it in PIC code, but their linkers get confused if
15542 # the symbol is explicitly referenced. Since portable code cannot
15543 # rely on this symbol name, it's probably fine to never include it in
15544 # preloaded symbol tables.
15545 extract_expsyms_cmds=
15548 cygwin* | mingw* | pw32*)
15549 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15550 # When not using gcc, we currently assume that we are using
15551 # Microsoft Visual C++.
15552 if test "$GCC" != yes; then
15562 if test "$with_gnu_ld" = yes; then
15563 # If archive_cmds runs LD, not CC, wlarc should be empty
15566 # See if GNU ld supports shared libraries.
15568 aix3* | aix4* | aix5*)
15569 # On AIX/PPC, the GNU linker is very broken
15570 if test "$host_cpu" != ia64; then
15574 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15575 *** to be unable to reliably create shared libraries on AIX.
15576 *** Therefore, libtool is disabling shared libraries support. If you
15577 *** really care for shared libraries, you may want to modify your PATH
15578 *** so that a non-GNU linker is found, and then restart.
15585 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)'
15586 hardcode_libdir_flag_spec_F77='-L$libdir'
15587 hardcode_minus_L_F77=yes
15589 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15590 # that the semantics of dynamic libraries on AmigaOS, at least up
15591 # to version 4, is to share data among multiple programs linked
15592 # with the same dynamic library. Since this doesn't match the
15593 # behavior of shared libraries on other platforms, we can't use
15599 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15600 allow_undefined_flag_F77=unsupported
15601 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15602 # support --undefined. This deserves some investigation. FIXME
15603 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15609 cygwin* | mingw* | pw32*)
15610 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15611 # as there is no search path for DLLs.
15612 hardcode_libdir_flag_spec_F77='-L$libdir'
15613 allow_undefined_flag_F77=unsupported
15614 always_export_symbols_F77=no
15615 enable_shared_with_static_runtimes_F77=yes
15616 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15618 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15619 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15620 # If the export-symbols file already is a .def file (1st line
15621 # is EXPORTS), use it as is; otherwise, prepend...
15622 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15623 cp $export_symbols $output_objdir/$soname.def;
15625 echo EXPORTS > $output_objdir/$soname.def;
15626 cat $export_symbols >> $output_objdir/$soname.def;
15628 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15635 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15636 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15639 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15640 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15645 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15649 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15650 *** create shared libraries on Solaris systems. Therefore, libtool
15651 *** is disabling shared libraries support. We urge you to upgrade GNU
15652 *** binutils to release 2.9.1 or newer. Another option is to modify
15653 *** your PATH or compiler configuration so that the native linker is
15654 *** used, and then restart.
15657 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15658 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15659 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15666 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15668 hardcode_direct_F77=yes
15669 hardcode_shlibpath_var_F77=no
15673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15674 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15675 archive_cmds_F77="$tmp_archive_cmds"
15676 supports_anon_versioning=no
15677 case `$LD -v 2>/dev/null` in
15678 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15679 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15680 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15681 *\ 2.11.*) ;; # other 2.11 versions
15682 *) supports_anon_versioning=yes ;;
15684 if test $supports_anon_versioning = yes; then
15685 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15686 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15687 $echo "local: *; };" >> $output_objdir/$libname.ver~
15688 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15690 archive_expsym_cmds_F77="$tmp_archive_cmds"
15698 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15699 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15700 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15707 if test "$ld_shlibs_F77" = yes; then
15708 runpath_var=LD_RUN_PATH
15709 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15710 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15711 # ancient GNU ld didn't support --whole-archive et. al.
15712 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15713 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15715 whole_archive_flag_spec_F77=
15719 # PORTME fill in a description of your system's linker (not GNU ld)
15722 allow_undefined_flag_F77=unsupported
15723 always_export_symbols_F77=yes
15724 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'
15725 # Note: this linker hardcodes the directories in LIBPATH if there
15726 # are no directories specified by -L.
15727 hardcode_minus_L_F77=yes
15728 if test "$GCC" = yes && test -z "$link_static_flag"; then
15729 # Neither direct hardcoding nor static linking is supported with a
15731 hardcode_direct_F77=unsupported
15736 if test "$host_cpu" = ia64; then
15737 # On IA64, the linker does run time linking by default, so we don't
15738 # have to do anything special.
15739 aix_use_runtimelinking=no
15740 exp_sym_flag='-Bexport'
15743 # If we're using GNU nm, then we don't want the "-C" option.
15744 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15745 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15746 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'
15748 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'
15750 aix_use_runtimelinking=no
15752 # Test if we are trying to use run time linking or normal
15753 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15754 # need to do runtime linking.
15755 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15756 for ld_flag in $LDFLAGS; do
15757 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15758 aix_use_runtimelinking=yes
15764 exp_sym_flag='-bexport'
15765 no_entry_flag='-bnoentry'
15768 # When large executables or shared objects are built, AIX ld can
15769 # have problems creating the table of contents. If linking a library
15770 # or program results in "error TOC overflow" add -mminimal-toc to
15771 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15772 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15774 archive_cmds_F77=''
15775 hardcode_direct_F77=yes
15776 hardcode_libdir_separator_F77=':'
15777 link_all_deplibs_F77=yes
15779 if test "$GCC" = yes; then
15780 case $host_os in aix4.012|aix4.012.*)
15781 # We only want to do this on AIX 4.2 and lower, the check
15782 # below for broken collect2 doesn't work under 4.3+
15783 collect2name=`${CC} -print-prog-name=collect2`
15784 if test -f "$collect2name" && \
15785 strings "$collect2name" | grep resolve_lib_name >/dev/null
15787 # We have reworked collect2
15788 hardcode_direct_F77=yes
15790 # We have old collect2
15791 hardcode_direct_F77=unsupported
15792 # It fails to find uninstalled libraries when the uninstalled
15793 # path is not listed in the libpath. Setting hardcode_minus_L
15794 # to unsupported forces relinking
15795 hardcode_minus_L_F77=yes
15796 hardcode_libdir_flag_spec_F77='-L$libdir'
15797 hardcode_libdir_separator_F77=
15800 shared_flag='-shared'
15803 if test "$host_cpu" = ia64; then
15804 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15805 # chokes on -Wl,-G. The following line is correct:
15808 if test "$aix_use_runtimelinking" = yes; then
15809 shared_flag='${wl}-G'
15811 shared_flag='${wl}-bM:SRE'
15816 # It seems that -bexpall does not export symbols beginning with
15817 # underscore (_), so it is better to generate a list of symbols to export.
15818 always_export_symbols_F77=yes
15819 if test "$aix_use_runtimelinking" = yes; then
15820 # Warning - without using the other runtime loading flags (-brtl),
15821 # -berok will link without error, but may produce a broken library.
15822 allow_undefined_flag_F77='-berok'
15823 # Determine the default libpath from the value encoded in an empty executable.
15824 cat >conftest.$ac_ext <<_ACEOF
15829 rm -f conftest.$ac_objext conftest$ac_exeext
15830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15831 (eval $ac_link) 2>conftest.er1
15833 grep -v '^ *+' conftest.er1 >conftest.err
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } &&
15838 { ac_try='test -z "$ac_f77_werror_flag"
15839 || test ! -s conftest.err'
15840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15841 (eval $ac_try) 2>&5
15843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15844 (exit $ac_status); }; } &&
15845 { ac_try='test -s conftest$ac_exeext'
15846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15847 (eval $ac_try) 2>&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); }; }; then
15852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15854 # Check for a 64-bit object if we didn't find anything.
15855 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; }
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15862 rm -f conftest.err conftest.$ac_objext \
15863 conftest$ac_exeext conftest.$ac_ext
15864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15866 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15867 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"
15869 if test "$host_cpu" = ia64; then
15870 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15871 allow_undefined_flag_F77="-z nodefs"
15872 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"
15874 # Determine the default libpath from the value encoded in an empty executable.
15875 cat >conftest.$ac_ext <<_ACEOF
15880 rm -f conftest.$ac_objext conftest$ac_exeext
15881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15882 (eval $ac_link) 2>conftest.er1
15884 grep -v '^ *+' conftest.er1 >conftest.err
15886 cat conftest.err >&5
15887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15888 (exit $ac_status); } &&
15889 { ac_try='test -z "$ac_f77_werror_flag"
15890 || test ! -s conftest.err'
15891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15892 (eval $ac_try) 2>&5
15894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15895 (exit $ac_status); }; } &&
15896 { ac_try='test -s conftest$ac_exeext'
15897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15898 (eval $ac_try) 2>&5
15900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15901 (exit $ac_status); }; }; then
15903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15905 # Check for a 64-bit object if we didn't find anything.
15906 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; }
15909 echo "$as_me: failed program was:" >&5
15910 sed 's/^/| /' conftest.$ac_ext >&5
15913 rm -f conftest.err conftest.$ac_objext \
15914 conftest$ac_exeext conftest.$ac_ext
15915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15917 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15918 # Warning - without using the other run time loading flags,
15919 # -berok will link without error, but may produce a broken library.
15920 no_undefined_flag_F77=' ${wl}-bernotok'
15921 allow_undefined_flag_F77=' ${wl}-berok'
15922 # -bexpall does not export symbols beginning with underscore (_)
15923 always_export_symbols_F77=yes
15924 # Exported symbols can be pulled into shared objects from archives
15925 whole_archive_flag_spec_F77=' '
15926 archive_cmds_need_lc_F77=yes
15927 # This is similar to how AIX traditionally builds it's shared libraries.
15928 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'
15934 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)'
15935 hardcode_libdir_flag_spec_F77='-L$libdir'
15936 hardcode_minus_L_F77=yes
15937 # see comment about different semantics on the GNU ld section
15942 export_dynamic_flag_spec_F77=-rdynamic
15945 cygwin* | mingw* | pw32*)
15946 # When not using gcc, we currently assume that we are using
15947 # Microsoft Visual C++.
15948 # hardcode_libdir_flag_spec is actually meaningless, as there is
15949 # no search path for DLLs.
15950 hardcode_libdir_flag_spec_F77=' '
15951 allow_undefined_flag_F77=unsupported
15952 # Tell ltmain to make .lib files, not .a files.
15954 # Tell ltmain to make .dll files, not .so files.
15956 # FIXME: Setting linknames here is a bad hack.
15957 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15958 # The linker will automatically build a .lib file if we build a DLL.
15959 old_archive_From_new_cmds_F77='true'
15960 # FIXME: Should let the user specify the lib program.
15961 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15962 fix_srcfile_path='`cygpath -w "$srcfile"`'
15963 enable_shared_with_static_runtimes_F77=yes
15966 darwin* | rhapsody*)
15967 if test "$GXX" = yes ; then
15968 archive_cmds_need_lc_F77=no
15970 rhapsody* | darwin1.[012])
15971 allow_undefined_flag_F77='-undefined suppress'
15974 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15975 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15977 case ${MACOSX_DEPLOYMENT_TARGET} in
15979 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15982 allow_undefined_flag_F77='-undefined dynamic_lookup'
15988 lt_int_apple_cc_single_mod=no
15989 output_verbose_link_cmd='echo'
15990 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15991 lt_int_apple_cc_single_mod=yes
15993 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15994 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15996 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'
15998 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16000 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16001 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}'
16003 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}'
16005 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}'
16006 hardcode_direct_F77=no
16007 hardcode_automatic_F77=yes
16008 hardcode_shlibpath_var_F77=unsupported
16009 whole_archive_flag_spec_F77='-all_load $convenience'
16010 link_all_deplibs_F77=yes
16017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16018 hardcode_libdir_flag_spec_F77='-L$libdir'
16019 hardcode_shlibpath_var_F77=no
16026 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16027 # support. Future versions do this automatically, but an explicit c++rt0.o
16028 # does not break anything, and helps significantly (at the cost of a little
16031 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16032 hardcode_libdir_flag_spec_F77='-R$libdir'
16033 hardcode_direct_F77=yes
16034 hardcode_shlibpath_var_F77=no
16037 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16039 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16040 hardcode_direct_F77=yes
16041 hardcode_minus_L_F77=yes
16042 hardcode_shlibpath_var_F77=no
16045 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16046 freebsd* | kfreebsd*-gnu)
16047 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16048 hardcode_libdir_flag_spec_F77='-R$libdir'
16049 hardcode_direct_F77=yes
16050 hardcode_shlibpath_var_F77=no
16054 if test "$GCC" = yes; then
16055 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'
16057 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'
16059 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16060 hardcode_libdir_separator_F77=:
16061 hardcode_direct_F77=yes
16063 # hardcode_minus_L: Not really in the search PATH,
16064 # but as the default location of the library.
16065 hardcode_minus_L_F77=yes
16066 export_dynamic_flag_spec_F77='${wl}-E'
16070 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16071 case "$host_cpu" in
16073 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16080 case "$host_cpu" in
16082 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16089 if test "$with_gnu_ld" = no; then
16090 case "$host_cpu" in
16092 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16093 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16094 hardcode_libdir_separator_F77=:
16095 hardcode_direct_F77=no
16096 hardcode_shlibpath_var_F77=no
16099 hardcode_libdir_flag_spec_F77='-L$libdir'
16100 hardcode_direct_F77=no
16101 hardcode_shlibpath_var_F77=no
16103 # hardcode_minus_L: Not really in the search PATH,
16104 # but as the default location of the library.
16105 hardcode_minus_L_F77=yes
16108 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16109 hardcode_libdir_separator_F77=:
16110 hardcode_direct_F77=yes
16111 export_dynamic_flag_spec_F77='${wl}-E'
16113 # hardcode_minus_L: Not really in the search PATH,
16114 # but as the default location of the library.
16115 hardcode_minus_L_F77=yes
16121 irix5* | irix6* | nonstopux*)
16122 if test "$GCC" = yes; then
16123 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'
16125 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'
16126 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16128 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16129 hardcode_libdir_separator_F77=:
16130 link_all_deplibs_F77=yes
16134 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16135 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16137 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16139 hardcode_libdir_flag_spec_F77='-R$libdir'
16140 hardcode_direct_F77=yes
16141 hardcode_shlibpath_var_F77=no
16145 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16146 hardcode_direct_F77=yes
16147 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16148 hardcode_libdir_separator_F77=:
16149 hardcode_shlibpath_var_F77=no
16153 hardcode_direct_F77=yes
16154 hardcode_shlibpath_var_F77=no
16155 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16156 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16157 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16158 export_dynamic_flag_spec_F77='${wl}-E'
16161 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16162 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16163 hardcode_libdir_flag_spec_F77='-R$libdir'
16166 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16167 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16174 hardcode_libdir_flag_spec_F77='-L$libdir'
16175 hardcode_minus_L_F77=yes
16176 allow_undefined_flag_F77=unsupported
16177 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'
16178 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16182 if test "$GCC" = yes; then
16183 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16184 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'
16186 allow_undefined_flag_F77=' -expect_unresolved \*'
16187 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'
16189 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16190 hardcode_libdir_separator_F77=:
16193 osf4* | osf5*) # as osf3* with the addition of -msym flag
16194 if test "$GCC" = yes; then
16195 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16196 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'
16197 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16199 allow_undefined_flag_F77=' -expect_unresolved \*'
16200 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'
16201 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~
16202 $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'
16204 # Both c and cxx compiler support -rpath directly
16205 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16207 hardcode_libdir_separator_F77=:
16211 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16212 hardcode_shlibpath_var_F77=no
16213 export_dynamic_flag_spec_F77='${wl}-Bexport'
16214 runpath_var=LD_RUN_PATH
16215 hardcode_runpath_var=yes
16219 no_undefined_flag_F77=' -z text'
16220 if test "$GCC" = yes; then
16221 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16222 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16223 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16225 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16226 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16229 hardcode_libdir_flag_spec_F77='-R$libdir'
16230 hardcode_shlibpath_var_F77=no
16232 solaris2.[0-5] | solaris2.[0-5].*) ;;
16233 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16234 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16236 link_all_deplibs_F77=yes
16240 if test "x$host_vendor" = xsequent; then
16241 # Use $CC to link under sequent, because it throws in some extra .o
16242 # files that make .init and .fini sections work.
16243 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16245 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16247 hardcode_libdir_flag_spec_F77='-L$libdir'
16248 hardcode_direct_F77=yes
16249 hardcode_minus_L_F77=yes
16250 hardcode_shlibpath_var_F77=no
16254 case $host_vendor in
16256 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257 hardcode_direct_F77=yes # is this really true???
16260 ## LD is ld it makes a PLAMLIB
16261 ## CC just makes a GrossModule.
16262 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16263 reload_cmds_F77='$CC -r -o $output$reload_objs'
16264 hardcode_direct_F77=no
16267 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16268 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16271 runpath_var='LD_RUN_PATH'
16272 hardcode_shlibpath_var_F77=no
16276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16277 hardcode_shlibpath_var_F77=no
16278 export_dynamic_flag_spec_F77='-Bexport'
16282 if test -d /usr/nec; then
16283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16284 hardcode_shlibpath_var_F77=no
16285 runpath_var=LD_RUN_PATH
16286 hardcode_runpath_var=yes
16292 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16293 hardcode_direct_F77=yes
16294 hardcode_minus_L_F77=no
16295 hardcode_shlibpath_var_F77=no
16296 hardcode_runpath_var=yes
16297 runpath_var=LD_RUN_PATH
16300 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16301 no_undefined_flag_F77='${wl}-z ${wl}text'
16302 if test "$GCC" = yes; then
16303 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16305 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16307 runpath_var='LD_RUN_PATH'
16308 hardcode_shlibpath_var_F77=no
16312 no_undefined_flag_F77=' -z text'
16313 # $CC -shared without GNU ld will not create a library from C++
16314 # object files and a static libstdc++, better avoid it by now
16315 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16316 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16317 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16318 hardcode_libdir_flag_spec_F77=
16319 hardcode_shlibpath_var_F77=no
16320 runpath_var='LD_RUN_PATH'
16324 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16325 hardcode_libdir_flag_spec_F77='-L$libdir'
16326 hardcode_shlibpath_var_F77=no
16335 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16336 echo "${ECHO_T}$ld_shlibs_F77" >&6
16337 test "$ld_shlibs_F77" = no && can_build_shared=no
16339 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16340 if test "$GCC" = yes; then
16341 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16345 # Do we need to explicitly link libc?
16347 case "x$archive_cmds_need_lc_F77" in
16349 # Assume -lc should be added
16350 archive_cmds_need_lc_F77=yes
16352 if test "$enable_shared" = yes && test "$GCC" = yes; then
16353 case $archive_cmds_F77 in
16355 # FIXME: we may have to deal with multi-command sequences.
16358 # Test whether the compiler implicitly links with -lc since on some
16359 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16360 # to ld, don't add -lc before -lgcc.
16361 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16362 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16364 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16367 (eval $ac_compile) 2>&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } 2>conftest.err; then
16373 libobjs=conftest.$ac_objext
16375 wl=$lt_prog_compiler_wl_F77
16381 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16382 allow_undefined_flag_F77=
16383 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16384 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16387 (exit $ac_status); }
16389 archive_cmds_need_lc_F77=no
16391 archive_cmds_need_lc_F77=yes
16393 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16395 cat conftest.err 1>&5
16398 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16399 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16406 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16407 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16408 library_names_spec=
16409 libname_spec='lib$name'
16413 postuninstall_cmds=
16417 shlibpath_overrides_runpath=unknown
16419 dynamic_linker="$host_os ld.so"
16420 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16421 if test "$GCC" = yes; then
16422 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16423 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16424 # if the path contains ";" then we assume it to be the separator
16425 # otherwise default to the standard path separator (i.e. ":") - it is
16426 # assumed that no part of a normal pathname contains ";" but that should
16427 # okay in the real world where ";" in dirpaths is itself problematic.
16428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16433 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16435 need_lib_prefix=unknown
16436 hardcode_into_libs=no
16438 # when you set need_version to no, make sure it does not cause -set_version
16439 # flags to be left without arguments
16440 need_version=unknown
16445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16446 shlibpath_var=LIBPATH
16448 # AIX 3 has no versioning support, so we append a major version to the name.
16449 soname_spec='${libname}${release}${shared_ext}$major'
16456 hardcode_into_libs=yes
16457 if test "$host_cpu" = ia64; then
16458 # AIX 5 supports IA64
16459 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16460 shlibpath_var=LD_LIBRARY_PATH
16462 # With GCC up to 2.95.x, collect2 would create an import file
16463 # for dependence libraries. The import file would start with
16464 # the line `#! .'. This would cause the generated library to
16465 # depend on `.', always an invalid library. This was fixed in
16466 # development snapshots of GCC prior to 3.0.
16468 aix4 | aix4.[01] | aix4.[01].*)
16469 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16471 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16474 can_build_shared=no
16478 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16479 # soname into executable. Probably we can add versioning support to
16480 # collect2, so additional links can be useful in future.
16481 if test "$aix_use_runtimelinking" = yes; then
16482 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16483 # instead of lib<name>.a to let people know that these are not
16484 # typical AIX shared libraries.
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16487 # We preserve .a as extension for shared libraries through AIX4.2
16488 # and later when we are not doing run time linking.
16489 library_names_spec='${libname}${release}.a $libname.a'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16492 shlibpath_var=LIBPATH
16497 library_names_spec='$libname.ixlibrary $libname.a'
16498 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16499 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'
16503 library_names_spec='${libname}${shared_ext}'
16504 dynamic_linker="$host_os ld.so"
16505 shlibpath_var=LIBRARY_PATH
16511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16512 soname_spec='${libname}${release}${shared_ext}$major'
16513 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16514 shlibpath_var=LD_LIBRARY_PATH
16515 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16516 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16517 # the default ld.so.conf also contains /usr/contrib/lib and
16518 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16519 # libtool to hard-code these into programs
16522 cygwin* | mingw* | pw32*)
16523 version_type=windows
16528 case $GCC,$host_os in
16529 yes,cygwin* | yes,mingw* | yes,pw32*)
16530 library_names_spec='$libname.dll.a'
16531 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16532 postinstall_cmds='base_file=`basename \${file}`~
16533 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16534 dldir=$destdir/`dirname \$dlpath`~
16535 test -d \$dldir || mkdir -p \$dldir~
16536 $install_prog $dir/$dlname \$dldir/$dlname'
16537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16538 dlpath=$dir/\$dldll~
16540 shlibpath_overrides_runpath=yes
16544 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16545 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16546 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16549 # MinGW DLLs use traditional 'lib' prefix
16550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16551 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16552 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16553 # It is most probably a Windows format PATH printed by
16554 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16555 # path with ; separators, and with drive letters. We can handle the
16556 # drive letters (cygwin fileutils understands them), so leave them,
16557 # especially as we might pass files found there to a mingw objdump,
16558 # which wouldn't understand a cygwinified path. Ahh.
16559 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16565 # pw32 DLLs use 'pw' prefix rather than 'lib'
16566 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16572 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16575 dynamic_linker='Win32 ld.exe'
16576 # FIXME: first we should search . and the directory the executable is in
16580 darwin* | rhapsody*)
16581 dynamic_linker="$host_os dyld"
16582 version_type=darwin
16585 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16586 soname_spec='${libname}${release}${major}$shared_ext'
16587 shlibpath_overrides_runpath=yes
16588 shlibpath_var=DYLD_LIBRARY_PATH
16589 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16590 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16591 if test "$GCC" = yes; then
16592 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"`
16594 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16596 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16603 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 shlibpath_var=LD_LIBRARY_PATH
16616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16617 soname_spec='${libname}${release}${shared_ext}$major'
16618 shlibpath_var=LD_LIBRARY_PATH
16619 shlibpath_overrides_runpath=no
16620 hardcode_into_libs=yes
16621 dynamic_linker='GNU ld.so'
16625 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16626 version_type=freebsd-$objformat
16627 case $version_type in
16629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16638 shlibpath_var=LD_LIBRARY_PATH
16641 shlibpath_overrides_runpath=yes
16643 freebsd3.01* | freebsdelf3.01*)
16644 shlibpath_overrides_runpath=yes
16645 hardcode_into_libs=yes
16648 shlibpath_overrides_runpath=no
16649 hardcode_into_libs=yes
16658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 hardcode_into_libs=yes
16664 hpux9* | hpux10* | hpux11*)
16665 # Give a soname corresponding to the major version so that dld.sl refuses to
16666 # link against other versions.
16670 case "$host_cpu" in
16673 hardcode_into_libs=yes
16674 dynamic_linker="$host_os dld.so"
16675 shlibpath_var=LD_LIBRARY_PATH
16676 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16678 soname_spec='${libname}${release}${shared_ext}$major'
16679 if test "X$HPUX_IA64_MODE" = X32; then
16680 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16682 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16684 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16688 hardcode_into_libs=yes
16689 dynamic_linker="$host_os dld.sl"
16690 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16691 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16693 soname_spec='${libname}${release}${shared_ext}$major'
16694 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16695 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16699 dynamic_linker="$host_os dld.sl"
16700 shlibpath_var=SHLIB_PATH
16701 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16703 soname_spec='${libname}${release}${shared_ext}$major'
16706 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16707 postinstall_cmds='chmod 555 $lib'
16710 irix5* | irix6* | nonstopux*)
16712 nonstopux*) version_type=nonstopux ;;
16714 if test "$lt_cv_prog_gnu_ld" = yes; then
16722 soname_spec='${libname}${release}${shared_ext}$major'
16723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16725 irix5* | nonstopux*)
16726 libsuff= shlibsuff=
16729 case $LD in # libtool.m4 will add one of these switches to LD
16730 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16731 libsuff= shlibsuff= libmagic=32-bit;;
16732 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16733 libsuff=32 shlibsuff=N32 libmagic=N32;;
16734 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16735 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16736 *) libsuff= shlibsuff= libmagic=never-match;;
16740 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16741 shlibpath_overrides_runpath=no
16742 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16743 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16744 hardcode_into_libs=yes
16747 # No shared lib support for Linux oldld, aout, or coff.
16748 linux*oldld* | linux*aout* | linux*coff*)
16752 # This must be Linux ELF.
16757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16758 soname_spec='${libname}${release}${shared_ext}$major'
16759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16760 shlibpath_var=LD_LIBRARY_PATH
16761 shlibpath_overrides_runpath=no
16762 # This implies no fast_install, which is unacceptable.
16763 # Some rework will be needed to allow for fast_install
16764 # before this can be enabled.
16765 hardcode_into_libs=yes
16767 # find out which ABI we are using
16769 case "$host_cpu" in
16770 x86_64*|s390x*|powerpc64*)
16771 echo '#line 16771 "configure"' > conftest.$ac_ext
16772 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16773 (eval $ac_compile) 2>&5
16775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16776 (exit $ac_status); }; then
16777 case `/usr/bin/file conftest.$ac_objext` in
16780 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16788 # Append ld.so.conf contents to the search path
16789 if test -f /etc/ld.so.conf; then
16790 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16791 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16794 # We used to test for /lib/ld.so.1 and disable shared libraries on
16795 # powerpc, because MkLinux only supported shared libraries with the
16796 # GNU dynamic linker. Since this was broken with cross compilers,
16797 # most powerpc-linux boxes support dynamic linking these days and
16798 # people can always --disable-shared, the test was removed, and we
16799 # assume the GNU/Linux dynamic linker is in use.
16800 dynamic_linker='GNU/Linux ld.so'
16807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16808 soname_spec='${libname}${release}${shared_ext}$major'
16809 shlibpath_var=LD_LIBRARY_PATH
16810 shlibpath_overrides_runpath=no
16811 hardcode_into_libs=yes
16812 dynamic_linker='GNU ld.so'
16819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16822 dynamic_linker='NetBSD (a.out) ld.so'
16824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16825 soname_spec='${libname}${release}${shared_ext}$major'
16826 dynamic_linker='NetBSD ld.elf_so'
16828 shlibpath_var=LD_LIBRARY_PATH
16829 shlibpath_overrides_runpath=yes
16830 hardcode_into_libs=yes
16835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16836 shlibpath_var=LD_LIBRARY_PATH
16837 shlibpath_overrides_runpath=yes
16844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16845 soname_spec='${libname}${release}${shared_ext}$major'
16846 shlibpath_var=LD_LIBRARY_PATH
16847 shlibpath_overrides_runpath=yes
16854 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16855 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16856 shlibpath_var=LD_LIBRARY_PATH
16857 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16859 openbsd2.[89] | openbsd2.[89].*)
16860 shlibpath_overrides_runpath=no
16863 shlibpath_overrides_runpath=yes
16867 shlibpath_overrides_runpath=yes
16872 libname_spec='$name'
16875 library_names_spec='$libname${shared_ext} $libname.a'
16876 dynamic_linker='OS/2 ld.exe'
16877 shlibpath_var=LIBPATH
16880 osf3* | osf4* | osf5*)
16884 soname_spec='${libname}${release}${shared_ext}$major'
16885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16886 shlibpath_var=LD_LIBRARY_PATH
16887 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16888 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16893 soname_spec='${libname}${release}${shared_ext}$major'
16894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16895 shlibpath_var=LD_LIBRARY_PATH
16902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16903 soname_spec='${libname}${release}${shared_ext}$major'
16904 shlibpath_var=LD_LIBRARY_PATH
16905 shlibpath_overrides_runpath=yes
16906 hardcode_into_libs=yes
16907 # ldd complains unless libraries are executable
16908 postinstall_cmds='chmod +x $lib'
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16915 shlibpath_var=LD_LIBRARY_PATH
16916 shlibpath_overrides_runpath=yes
16917 if test "$with_gnu_ld" = yes; then
16923 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16926 soname_spec='${libname}${release}${shared_ext}$major'
16927 shlibpath_var=LD_LIBRARY_PATH
16928 case $host_vendor in
16930 shlibpath_overrides_runpath=no
16932 export_dynamic_flag_spec='${wl}-Blargedynsym'
16933 runpath_var=LD_RUN_PATH
16941 shlibpath_overrides_runpath=no
16942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16948 if test -d /usr/nec ;then
16950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16951 soname_spec='$libname${shared_ext}.$major'
16952 shlibpath_var=LD_LIBRARY_PATH
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 shlibpath_var=LD_LIBRARY_PATH
16967 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16968 echo "${ECHO_T}$dynamic_linker" >&6
16969 test "$dynamic_linker" = no && can_build_shared=no
16971 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16972 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16973 hardcode_action_F77=
16974 if test -n "$hardcode_libdir_flag_spec_F77" || \
16975 test -n "$runpath_var F77" || \
16976 test "X$hardcode_automatic_F77"="Xyes" ; then
16978 # We can hardcode non-existant directories.
16979 if test "$hardcode_direct_F77" != no &&
16980 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16981 # have to relink, otherwise we might link with an installed library
16982 # when we should be linking with a yet-to-be-installed one
16983 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16984 test "$hardcode_minus_L_F77" != no; then
16985 # Linking always hardcodes the temporary library directory.
16986 hardcode_action_F77=relink
16988 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16989 hardcode_action_F77=immediate
16992 # We cannot hardcode anything, or else we can only hardcode existing
16994 hardcode_action_F77=unsupported
16996 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16997 echo "${ECHO_T}$hardcode_action_F77" >&6
16999 if test "$hardcode_action_F77" = relink; then
17000 # Fast installation is not supported
17001 enable_fast_install=no
17002 elif test "$shlibpath_overrides_runpath" = yes ||
17003 test "$enable_shared" = no; then
17004 # Fast installation is not necessary
17005 enable_fast_install=needless
17010 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17011 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17012 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17013 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17014 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17015 echo "$as_me:$LINENO: result: yes" >&5
17016 echo "${ECHO_T}yes" >&6
17018 # FIXME - insert some real tests, host_os isn't really good enough
17021 if test -n "$STRIP" ; then
17022 striplib="$STRIP -x"
17023 echo "$as_me:$LINENO: result: yes" >&5
17024 echo "${ECHO_T}yes" >&6
17026 echo "$as_me:$LINENO: result: no" >&5
17027 echo "${ECHO_T}no" >&6
17031 echo "$as_me:$LINENO: result: no" >&5
17032 echo "${ECHO_T}no" >&6
17039 # The else clause should only fire when bootstrapping the
17040 # libtool distribution, otherwise you forgot to ship ltmain.sh
17041 # with your package, and you will get complaints that there are
17042 # no rules to generate ltmain.sh.
17043 if test -f "$ltmain"; then
17044 # See if we are running on zsh, and set the options which allow our commands through
17045 # without removal of \ escapes.
17046 if test -n "${ZSH_VERSION+set}" ; then
17047 setopt NO_GLOB_SUBST
17049 # Now quote all the things that may contain metacharacters while being
17050 # careful not to overquote the AC_SUBSTed values. We take copies of the
17051 # variables and quote the copies for generation of the libtool script.
17052 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17054 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17055 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17056 deplibs_check_method reload_flag reload_cmds need_locks \
17057 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17058 lt_cv_sys_global_symbol_to_c_name_address \
17059 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17060 old_postinstall_cmds old_postuninstall_cmds \
17064 lt_prog_compiler_wl_F77 \
17065 lt_prog_compiler_pic_F77 \
17066 lt_prog_compiler_static_F77 \
17067 lt_prog_compiler_no_builtin_flag_F77 \
17068 export_dynamic_flag_spec_F77 \
17069 thread_safe_flag_spec_F77 \
17070 whole_archive_flag_spec_F77 \
17071 enable_shared_with_static_runtimes_F77 \
17072 old_archive_cmds_F77 \
17073 old_archive_from_new_cmds_F77 \
17074 predep_objects_F77 \
17075 postdep_objects_F77 \
17078 compiler_lib_search_path_F77 \
17080 archive_expsym_cmds_F77 \
17081 postinstall_cmds_F77 \
17082 postuninstall_cmds_F77 \
17083 old_archive_from_expsyms_cmds_F77 \
17084 allow_undefined_flag_F77 \
17085 no_undefined_flag_F77 \
17086 export_symbols_cmds_F77 \
17087 hardcode_libdir_flag_spec_F77 \
17088 hardcode_libdir_flag_spec_ld_F77 \
17089 hardcode_libdir_separator_F77 \
17090 hardcode_automatic_F77 \
17092 module_expsym_cmds_F77 \
17093 lt_cv_prog_compiler_c_o_F77 \
17094 exclude_expsyms_F77 \
17095 include_expsyms_F77; do
17098 old_archive_cmds_F77 | \
17099 old_archive_from_new_cmds_F77 | \
17100 archive_cmds_F77 | \
17101 archive_expsym_cmds_F77 | \
17102 module_cmds_F77 | \
17103 module_expsym_cmds_F77 | \
17104 old_archive_from_expsyms_cmds_F77 | \
17105 export_symbols_cmds_F77 | \
17106 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17107 postinstall_cmds | postuninstall_cmds | \
17108 old_postinstall_cmds | old_postuninstall_cmds | \
17109 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17110 # Double-quote double-evaled strings.
17111 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17114 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17120 *'\$0 --fallback-echo"')
17121 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17127 cat <<__EOF__ >> "$cfgfile"
17128 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17130 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17132 # Shell to use when invoking shell scripts.
17135 # Whether or not to build shared libraries.
17136 build_libtool_libs=$enable_shared
17138 # Whether or not to build static libraries.
17139 build_old_libs=$enable_static
17141 # Whether or not to add -lc for building shared libraries.
17142 build_libtool_need_lc=$archive_cmds_need_lc_F77
17144 # Whether or not to disallow shared libs when runtime libs are static
17145 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17147 # Whether or not to optimize for fast installation.
17148 fast_install=$enable_fast_install
17151 host_alias=$host_alias
17154 # An echo program that does not interpret backslashes.
17159 AR_FLAGS=$lt_AR_FLAGS
17164 # A language-specific compiler.
17165 CC=$lt_compiler_F77
17167 # Is the compiler the GNU C compiler?
17173 # The linker used to build libraries.
17176 # Whether we need hard or soft links.
17179 # A BSD-compatible nm program.
17182 # A symbol stripping program
17185 # Used to examine libraries when file_magic_cmd begins "file"
17186 MAGIC_CMD=$MAGIC_CMD
17188 # Used on cygwin: DLL creation program.
17191 # Used on cygwin: object dumper.
17194 # Used on cygwin: assembler.
17197 # The name of the directory that contains temporary libtool files.
17200 # How to create reloadable object files.
17201 reload_flag=$lt_reload_flag
17202 reload_cmds=$lt_reload_cmds
17204 # How to pass a linker flag through the compiler.
17205 wl=$lt_lt_prog_compiler_wl_F77
17207 # Object file suffix (normally "o").
17208 objext="$ac_objext"
17210 # Old archive suffix (normally "a").
17213 # Shared library suffix (normally ".so").
17214 shrext_cmds='$shrext_cmds'
17216 # Executable file suffix (normally "").
17219 # Additional compiler flags for building library objects.
17220 pic_flag=$lt_lt_prog_compiler_pic_F77
17223 # What is the maximum length of a command?
17224 max_cmd_len=$lt_cv_sys_max_cmd_len
17226 # Does compiler simultaneously support -c and -o options?
17227 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17229 # Must we lock files when doing compilation ?
17230 need_locks=$lt_need_locks
17232 # Do we need the lib prefix for modules?
17233 need_lib_prefix=$need_lib_prefix
17235 # Do we need a version for libraries?
17236 need_version=$need_version
17238 # Whether dlopen is supported.
17239 dlopen_support=$enable_dlopen
17241 # Whether dlopen of programs is supported.
17242 dlopen_self=$enable_dlopen_self
17244 # Whether dlopen of statically linked programs is supported.
17245 dlopen_self_static=$enable_dlopen_self_static
17247 # Compiler flag to prevent dynamic linking.
17248 link_static_flag=$lt_lt_prog_compiler_static_F77
17250 # Compiler flag to turn off builtin functions.
17251 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17253 # Compiler flag to allow reflexive dlopens.
17254 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17256 # Compiler flag to generate shared objects directly from archives.
17257 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17259 # Compiler flag to generate thread-safe objects.
17260 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17262 # Library versioning type.
17263 version_type=$version_type
17265 # Format of library name prefix.
17266 libname_spec=$lt_libname_spec
17268 # List of archive names. First name is the real one, the rest are links.
17269 # The last name is the one that the linker finds with -lNAME.
17270 library_names_spec=$lt_library_names_spec
17272 # The coded name of the library, if different from the real name.
17273 soname_spec=$lt_soname_spec
17275 # Commands used to build and install an old-style archive.
17277 old_archive_cmds=$lt_old_archive_cmds_F77
17278 old_postinstall_cmds=$lt_old_postinstall_cmds
17279 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17281 # Create an old-style archive from a shared archive.
17282 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17284 # Create a temporary old-style archive to link instead of a shared archive.
17285 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17287 # Commands used to build and install a shared archive.
17288 archive_cmds=$lt_archive_cmds_F77
17289 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17290 postinstall_cmds=$lt_postinstall_cmds
17291 postuninstall_cmds=$lt_postuninstall_cmds
17293 # Commands used to build a loadable module (assumed same as above if empty)
17294 module_cmds=$lt_module_cmds_F77
17295 module_expsym_cmds=$lt_module_expsym_cmds_F77
17297 # Commands to strip libraries.
17298 old_striplib=$lt_old_striplib
17299 striplib=$lt_striplib
17301 # Dependencies to place before the objects being linked to create a
17303 predep_objects=$lt_predep_objects_F77
17305 # Dependencies to place after the objects being linked to create a
17307 postdep_objects=$lt_postdep_objects_F77
17309 # Dependencies to place before the objects being linked to create a
17311 predeps=$lt_predeps_F77
17313 # Dependencies to place after the objects being linked to create a
17315 postdeps=$lt_postdeps_F77
17317 # The library search path used internally by the compiler when linking
17318 # a shared library.
17319 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17321 # Method to check whether dependent libraries are shared objects.
17322 deplibs_check_method=$lt_deplibs_check_method
17324 # Command to use when deplibs_check_method == file_magic.
17325 file_magic_cmd=$lt_file_magic_cmd
17327 # Flag that allows shared libraries with undefined symbols to be built.
17328 allow_undefined_flag=$lt_allow_undefined_flag_F77
17330 # Flag that forces no undefined symbols.
17331 no_undefined_flag=$lt_no_undefined_flag_F77
17333 # Commands used to finish a libtool library installation in a directory.
17334 finish_cmds=$lt_finish_cmds
17336 # Same as above, but a single script fragment to be evaled but not shown.
17337 finish_eval=$lt_finish_eval
17339 # Take the output of nm and produce a listing of raw symbols and C names.
17340 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17342 # Transform the output of nm in a proper C declaration
17343 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17345 # Transform the output of nm in a C name address pair
17346 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17348 # This is the shared library runtime path variable.
17349 runpath_var=$runpath_var
17351 # This is the shared library path variable.
17352 shlibpath_var=$shlibpath_var
17354 # Is shlibpath searched before the hard-coded library search path?
17355 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17357 # How to hardcode a shared library path into an executable.
17358 hardcode_action=$hardcode_action_F77
17360 # Whether we should hardcode library paths into libraries.
17361 hardcode_into_libs=$hardcode_into_libs
17363 # Flag to hardcode \$libdir into a binary during linking.
17364 # This must work even if \$libdir does not exist.
17365 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17367 # If ld is used when linking, flag to hardcode \$libdir into
17368 # a binary during linking. This must work even if \$libdir does
17370 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17372 # Whether we need a single -rpath flag with a separated argument.
17373 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17375 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17376 # resulting binary.
17377 hardcode_direct=$hardcode_direct_F77
17379 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17380 # resulting binary.
17381 hardcode_minus_L=$hardcode_minus_L_F77
17383 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17384 # the resulting binary.
17385 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17387 # Set to yes if building a shared library automatically hardcodes DIR into the library
17388 # and all subsequent libraries and executables linked against it.
17389 hardcode_automatic=$hardcode_automatic_F77
17391 # Variables whose values should be saved in libtool wrapper scripts and
17392 # restored at relink time.
17393 variables_saved_for_relink="$variables_saved_for_relink"
17395 # Whether libtool must link a program against all its dependency libraries.
17396 link_all_deplibs=$link_all_deplibs_F77
17398 # Compile-time system search path for libraries
17399 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17401 # Run-time system search path for libraries
17402 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17404 # Fix the shell variable \$srcfile for the compiler.
17405 fix_srcfile_path="$fix_srcfile_path_F77"
17407 # Set to yes if exported symbols are required.
17408 always_export_symbols=$always_export_symbols_F77
17410 # The commands to list exported symbols.
17411 export_symbols_cmds=$lt_export_symbols_cmds_F77
17413 # The commands to extract the exported symbol list from a shared archive.
17414 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17416 # Symbols that should not be listed in the preloaded symbols.
17417 exclude_expsyms=$lt_exclude_expsyms_F77
17419 # Symbols that must always be exported.
17420 include_expsyms=$lt_include_expsyms_F77
17422 # ### END LIBTOOL TAG CONFIG: $tagname
17428 # If there is no Makefile yet, we rely on a make rule to execute
17429 # `config.status --recheck' to rerun these tests and create the
17430 # libtool script then.
17431 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17432 if test -f "$ltmain_in"; then
17433 test -f Makefile && make "$ltmain"
17439 ac_cpp='$CPP $CPPFLAGS'
17440 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17441 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17442 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17452 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17456 # Source file extension for Java test sources.
17459 # Object file extension for compiled Java test sources.
17463 # Code to be used in simple compile tests
17464 lt_simple_compile_test_code="class foo {}\n"
17466 # Code to be used in simple link tests
17467 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17469 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17471 # If no C compiler was specified, use CC.
17474 # Allow CC to be a program name with arguments.
17478 # Allow CC to be a program name with arguments.
17484 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17485 archive_cmds_need_lc_GCJ=no
17488 ## There is no encapsulation within the following macros, do not change
17489 ## the running order or otherwise move them around unless you know exactly
17490 ## what you are doing...
17492 lt_prog_compiler_no_builtin_flag_GCJ=
17494 if test "$GCC" = yes; then
17495 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17498 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17499 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17500 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17501 echo $ECHO_N "(cached) $ECHO_C" >&6
17503 lt_cv_prog_compiler_rtti_exceptions=no
17504 ac_outfile=conftest.$ac_objext
17505 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17506 lt_compiler_flag="-fno-rtti -fno-exceptions"
17507 # Insert the option either (1) after the last *FLAGS variable, or
17508 # (2) before a word containing "conftest.", or (3) at the end.
17509 # Note that $ac_compile itself does not contain backslashes and begins
17510 # with a dollar sign (not a hyphen), so the echo should work correctly.
17511 # The option is referenced via a variable to avoid confusing sed.
17512 lt_compile=`echo "$ac_compile" | $SED \
17513 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17514 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17515 -e 's:$: $lt_compiler_flag:'`
17516 (eval echo "\"\$as_me:17516: $lt_compile\"" >&5)
17517 (eval "$lt_compile" 2>conftest.err)
17519 cat conftest.err >&5
17520 echo "$as_me:17520: \$? = $ac_status" >&5
17521 if (exit $ac_status) && test -s "$ac_outfile"; then
17522 # The compiler can only warn and ignore the option if not recognized
17523 # So say no if there are warnings
17524 if test ! -s conftest.err; then
17525 lt_cv_prog_compiler_rtti_exceptions=yes
17531 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17532 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17534 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17535 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17542 lt_prog_compiler_wl_GCJ=
17543 lt_prog_compiler_pic_GCJ=
17544 lt_prog_compiler_static_GCJ=
17546 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17547 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17549 if test "$GCC" = yes; then
17550 lt_prog_compiler_wl_GCJ='-Wl,'
17551 lt_prog_compiler_static_GCJ='-static'
17555 # All AIX code is PIC.
17556 if test "$host_cpu" = ia64; then
17557 # AIX 5 now supports IA64 processor
17558 lt_prog_compiler_static_GCJ='-Bstatic'
17563 # FIXME: we need at least 68020 code to build shared libraries, but
17564 # adding the `-m68020' flag to GCC prevents building anything better,
17566 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17569 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17570 # PIC is the default for these OSes.
17573 mingw* | pw32* | os2*)
17574 # This hack is so that the source file can tell whether it is being
17575 # built for inclusion in a dll (and should export symbols for example).
17576 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17579 darwin* | rhapsody*)
17580 # PIC is the default on this platform
17581 # Common symbols not allowed in MH_DYLIB files
17582 lt_prog_compiler_pic_GCJ='-fno-common'
17586 # Just because we use GCC doesn't mean we suddenly get shared libraries
17587 # on systems that don't support them.
17588 lt_prog_compiler_can_build_shared_GCJ=no
17593 if test -d /usr/nec; then
17594 lt_prog_compiler_pic_GCJ=-Kconform_pic
17599 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17600 # not for PA HP-UX.
17601 case "$host_cpu" in
17606 lt_prog_compiler_pic_GCJ='-fPIC'
17612 lt_prog_compiler_pic_GCJ='-fPIC'
17616 # PORTME Check for flag to pass linker flags through the system compiler.
17619 lt_prog_compiler_wl_GCJ='-Wl,'
17620 if test "$host_cpu" = ia64; then
17621 # AIX 5 now supports IA64 processor
17622 lt_prog_compiler_static_GCJ='-Bstatic'
17624 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17628 mingw* | pw32* | os2*)
17629 # This hack is so that the source file can tell whether it is being
17630 # built for inclusion in a dll (and should export symbols for example).
17631 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17634 hpux9* | hpux10* | hpux11*)
17635 lt_prog_compiler_wl_GCJ='-Wl,'
17636 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17637 # not for PA HP-UX.
17638 case "$host_cpu" in
17643 lt_prog_compiler_pic_GCJ='+Z'
17646 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17647 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17650 irix5* | irix6* | nonstopux*)
17651 lt_prog_compiler_wl_GCJ='-Wl,'
17652 # PIC (with -KPIC) is the default.
17653 lt_prog_compiler_static_GCJ='-non_shared'
17657 lt_prog_compiler_pic_GCJ='-KPIC'
17658 lt_prog_compiler_static_GCJ='-Bstatic'
17664 lt_prog_compiler_wl_GCJ='-Wl,'
17665 lt_prog_compiler_pic_GCJ='-KPIC'
17666 lt_prog_compiler_static_GCJ='-static'
17669 lt_prog_compiler_wl_GCJ='-Wl,'
17670 # All Alpha code is PIC.
17671 lt_prog_compiler_static_GCJ='-non_shared'
17676 osf3* | osf4* | osf5*)
17677 lt_prog_compiler_wl_GCJ='-Wl,'
17678 # All OSF/1 code is PIC.
17679 lt_prog_compiler_static_GCJ='-non_shared'
17683 lt_prog_compiler_pic_GCJ='-Kpic'
17684 lt_prog_compiler_static_GCJ='-dn'
17688 lt_prog_compiler_wl_GCJ='-Wl,'
17689 lt_prog_compiler_pic_GCJ='-KPIC'
17690 lt_prog_compiler_static_GCJ='-Bstatic'
17694 lt_prog_compiler_wl_GCJ='-Qoption ld '
17695 lt_prog_compiler_pic_GCJ='-PIC'
17696 lt_prog_compiler_static_GCJ='-Bstatic'
17699 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17700 lt_prog_compiler_wl_GCJ='-Wl,'
17701 lt_prog_compiler_pic_GCJ='-KPIC'
17702 lt_prog_compiler_static_GCJ='-Bstatic'
17706 if test -d /usr/nec ;then
17707 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17708 lt_prog_compiler_static_GCJ='-Bstatic'
17713 lt_prog_compiler_pic_GCJ='-pic'
17714 lt_prog_compiler_static_GCJ='-Bstatic'
17718 lt_prog_compiler_can_build_shared_GCJ=no
17723 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17724 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17727 # Check to make sure the PIC flag actually works.
17729 if test -n "$lt_prog_compiler_pic_GCJ"; then
17731 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17732 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17733 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17734 echo $ECHO_N "(cached) $ECHO_C" >&6
17736 lt_prog_compiler_pic_works_GCJ=no
17737 ac_outfile=conftest.$ac_objext
17738 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17739 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17740 # Insert the option either (1) after the last *FLAGS variable, or
17741 # (2) before a word containing "conftest.", or (3) at the end.
17742 # Note that $ac_compile itself does not contain backslashes and begins
17743 # with a dollar sign (not a hyphen), so the echo should work correctly.
17744 # The option is referenced via a variable to avoid confusing sed.
17745 lt_compile=`echo "$ac_compile" | $SED \
17746 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17748 -e 's:$: $lt_compiler_flag:'`
17749 (eval echo "\"\$as_me:17749: $lt_compile\"" >&5)
17750 (eval "$lt_compile" 2>conftest.err)
17752 cat conftest.err >&5
17753 echo "$as_me:17753: \$? = $ac_status" >&5
17754 if (exit $ac_status) && test -s "$ac_outfile"; then
17755 # The compiler can only warn and ignore the option if not recognized
17756 # So say no if there are warnings
17757 if test ! -s conftest.err; then
17758 lt_prog_compiler_pic_works_GCJ=yes
17764 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17765 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17767 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17768 case $lt_prog_compiler_pic_GCJ in
17770 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17773 lt_prog_compiler_pic_GCJ=
17774 lt_prog_compiler_can_build_shared_GCJ=no
17779 # For platforms which do not support PIC, -DPIC is meaningless:
17781 lt_prog_compiler_pic_GCJ=
17784 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17788 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17789 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17790 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 lt_cv_prog_compiler_c_o_GCJ=no
17794 $rm -r conftest 2>/dev/null
17798 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17800 lt_compiler_flag="-o out/conftest2.$ac_objext"
17801 # Insert the option either (1) after the last *FLAGS variable, or
17802 # (2) before a word containing "conftest.", or (3) at the end.
17803 # Note that $ac_compile itself does not contain backslashes and begins
17804 # with a dollar sign (not a hyphen), so the echo should work correctly.
17805 lt_compile=`echo "$ac_compile" | $SED \
17806 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17807 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17808 -e 's:$: $lt_compiler_flag:'`
17809 (eval echo "\"\$as_me:17809: $lt_compile\"" >&5)
17810 (eval "$lt_compile" 2>out/conftest.err)
17812 cat out/conftest.err >&5
17813 echo "$as_me:17813: \$? = $ac_status" >&5
17814 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17816 # The compiler can only warn and ignore the option if not recognized
17817 # So say no if there are warnings
17818 if test ! -s out/conftest.err; then
17819 lt_cv_prog_compiler_c_o_GCJ=yes
17824 # SGI C++ compiler will create directory out/ii_files/ for
17825 # template instantiation
17826 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17827 $rm out/* && rmdir out
17833 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17834 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17837 hard_links="nottested"
17838 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17839 # do not overwrite the value of need_locks provided by the user
17840 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17841 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17844 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17846 ln conftest.a conftest.b 2>&5 || hard_links=no
17847 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17848 echo "$as_me:$LINENO: result: $hard_links" >&5
17849 echo "${ECHO_T}$hard_links" >&6
17850 if test "$hard_links" = no; then
17851 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17852 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17859 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17860 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17863 allow_undefined_flag_GCJ=
17864 enable_shared_with_static_runtimes_GCJ=no
17866 archive_expsym_cmds_GCJ=
17867 old_archive_From_new_cmds_GCJ=
17868 old_archive_from_expsyms_cmds_GCJ=
17869 export_dynamic_flag_spec_GCJ=
17870 whole_archive_flag_spec_GCJ=
17871 thread_safe_flag_spec_GCJ=
17872 hardcode_libdir_flag_spec_GCJ=
17873 hardcode_libdir_flag_spec_ld_GCJ=
17874 hardcode_libdir_separator_GCJ=
17875 hardcode_direct_GCJ=no
17876 hardcode_minus_L_GCJ=no
17877 hardcode_shlibpath_var_GCJ=unsupported
17878 link_all_deplibs_GCJ=unknown
17879 hardcode_automatic_GCJ=no
17881 module_expsym_cmds_GCJ=
17882 always_export_symbols_GCJ=no
17883 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17884 # include_expsyms should be a list of space-separated symbols to be *always*
17885 # included in the symbol list
17886 include_expsyms_GCJ=
17887 # exclude_expsyms can be an extended regexp of symbols to exclude
17888 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17889 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17890 # as well as any symbol that contains `d'.
17891 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17892 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17893 # platforms (ab)use it in PIC code, but their linkers get confused if
17894 # the symbol is explicitly referenced. Since portable code cannot
17895 # rely on this symbol name, it's probably fine to never include it in
17896 # preloaded symbol tables.
17897 extract_expsyms_cmds=
17900 cygwin* | mingw* | pw32*)
17901 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17902 # When not using gcc, we currently assume that we are using
17903 # Microsoft Visual C++.
17904 if test "$GCC" != yes; then
17914 if test "$with_gnu_ld" = yes; then
17915 # If archive_cmds runs LD, not CC, wlarc should be empty
17918 # See if GNU ld supports shared libraries.
17920 aix3* | aix4* | aix5*)
17921 # On AIX/PPC, the GNU linker is very broken
17922 if test "$host_cpu" != ia64; then
17926 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17927 *** to be unable to reliably create shared libraries on AIX.
17928 *** Therefore, libtool is disabling shared libraries support. If you
17929 *** really care for shared libraries, you may want to modify your PATH
17930 *** so that a non-GNU linker is found, and then restart.
17937 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)'
17938 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17939 hardcode_minus_L_GCJ=yes
17941 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17942 # that the semantics of dynamic libraries on AmigaOS, at least up
17943 # to version 4, is to share data among multiple programs linked
17944 # with the same dynamic library. Since this doesn't match the
17945 # behavior of shared libraries on other platforms, we can't use
17951 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952 allow_undefined_flag_GCJ=unsupported
17953 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17954 # support --undefined. This deserves some investigation. FIXME
17955 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17961 cygwin* | mingw* | pw32*)
17962 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17963 # as there is no search path for DLLs.
17964 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17965 allow_undefined_flag_GCJ=unsupported
17966 always_export_symbols_GCJ=no
17967 enable_shared_with_static_runtimes_GCJ=yes
17968 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17970 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17971 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17972 # If the export-symbols file already is a .def file (1st line
17973 # is EXPORTS), use it as is; otherwise, prepend...
17974 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17975 cp $export_symbols $output_objdir/$soname.def;
17977 echo EXPORTS > $output_objdir/$soname.def;
17978 cat $export_symbols >> $output_objdir/$soname.def;
17980 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17987 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17988 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17997 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
18001 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18002 *** create shared libraries on Solaris systems. Therefore, libtool
18003 *** is disabling shared libraries support. We urge you to upgrade GNU
18004 *** binutils to release 2.9.1 or newer. Another option is to modify
18005 *** your PATH or compiler configuration so that the native linker is
18006 *** used, and then restart.
18009 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18010 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18011 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18018 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18020 hardcode_direct_GCJ=yes
18021 hardcode_shlibpath_var_GCJ=no
18025 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18026 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18027 archive_cmds_GCJ="$tmp_archive_cmds"
18028 supports_anon_versioning=no
18029 case `$LD -v 2>/dev/null` in
18030 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18031 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18032 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18033 *\ 2.11.*) ;; # other 2.11 versions
18034 *) supports_anon_versioning=yes ;;
18036 if test $supports_anon_versioning = yes; then
18037 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18038 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18039 $echo "local: *; };" >> $output_objdir/$libname.ver~
18040 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18042 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18050 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18051 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18052 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18059 if test "$ld_shlibs_GCJ" = yes; then
18060 runpath_var=LD_RUN_PATH
18061 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18062 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18063 # ancient GNU ld didn't support --whole-archive et. al.
18064 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18065 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18067 whole_archive_flag_spec_GCJ=
18071 # PORTME fill in a description of your system's linker (not GNU ld)
18074 allow_undefined_flag_GCJ=unsupported
18075 always_export_symbols_GCJ=yes
18076 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'
18077 # Note: this linker hardcodes the directories in LIBPATH if there
18078 # are no directories specified by -L.
18079 hardcode_minus_L_GCJ=yes
18080 if test "$GCC" = yes && test -z "$link_static_flag"; then
18081 # Neither direct hardcoding nor static linking is supported with a
18083 hardcode_direct_GCJ=unsupported
18088 if test "$host_cpu" = ia64; then
18089 # On IA64, the linker does run time linking by default, so we don't
18090 # have to do anything special.
18091 aix_use_runtimelinking=no
18092 exp_sym_flag='-Bexport'
18095 # If we're using GNU nm, then we don't want the "-C" option.
18096 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18097 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18098 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'
18100 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'
18102 aix_use_runtimelinking=no
18104 # Test if we are trying to use run time linking or normal
18105 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18106 # need to do runtime linking.
18107 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18108 for ld_flag in $LDFLAGS; do
18109 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18110 aix_use_runtimelinking=yes
18116 exp_sym_flag='-bexport'
18117 no_entry_flag='-bnoentry'
18120 # When large executables or shared objects are built, AIX ld can
18121 # have problems creating the table of contents. If linking a library
18122 # or program results in "error TOC overflow" add -mminimal-toc to
18123 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18124 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18126 archive_cmds_GCJ=''
18127 hardcode_direct_GCJ=yes
18128 hardcode_libdir_separator_GCJ=':'
18129 link_all_deplibs_GCJ=yes
18131 if test "$GCC" = yes; then
18132 case $host_os in aix4.012|aix4.012.*)
18133 # We only want to do this on AIX 4.2 and lower, the check
18134 # below for broken collect2 doesn't work under 4.3+
18135 collect2name=`${CC} -print-prog-name=collect2`
18136 if test -f "$collect2name" && \
18137 strings "$collect2name" | grep resolve_lib_name >/dev/null
18139 # We have reworked collect2
18140 hardcode_direct_GCJ=yes
18142 # We have old collect2
18143 hardcode_direct_GCJ=unsupported
18144 # It fails to find uninstalled libraries when the uninstalled
18145 # path is not listed in the libpath. Setting hardcode_minus_L
18146 # to unsupported forces relinking
18147 hardcode_minus_L_GCJ=yes
18148 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18149 hardcode_libdir_separator_GCJ=
18152 shared_flag='-shared'
18155 if test "$host_cpu" = ia64; then
18156 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18157 # chokes on -Wl,-G. The following line is correct:
18160 if test "$aix_use_runtimelinking" = yes; then
18161 shared_flag='${wl}-G'
18163 shared_flag='${wl}-bM:SRE'
18168 # It seems that -bexpall does not export symbols beginning with
18169 # underscore (_), so it is better to generate a list of symbols to export.
18170 always_export_symbols_GCJ=yes
18171 if test "$aix_use_runtimelinking" = yes; then
18172 # Warning - without using the other runtime loading flags (-brtl),
18173 # -berok will link without error, but may produce a broken library.
18174 allow_undefined_flag_GCJ='-berok'
18175 # Determine the default libpath from the value encoded in an empty executable.
18176 cat >conftest.$ac_ext <<_ACEOF
18179 cat confdefs.h >>conftest.$ac_ext
18180 cat >>conftest.$ac_ext <<_ACEOF
18181 /* end confdefs.h. */
18191 rm -f conftest.$ac_objext conftest$ac_exeext
18192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18193 (eval $ac_link) 2>conftest.er1
18195 grep -v '^ *+' conftest.er1 >conftest.err
18197 cat conftest.err >&5
18198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18199 (exit $ac_status); } &&
18200 { ac_try='test -z "$ac_c_werror_flag"
18201 || test ! -s conftest.err'
18202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18203 (eval $ac_try) 2>&5
18205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206 (exit $ac_status); }; } &&
18207 { ac_try='test -s conftest$ac_exeext'
18208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18209 (eval $ac_try) 2>&5
18211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18212 (exit $ac_status); }; }; then
18214 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18216 # Check for a 64-bit object if we didn't find anything.
18217 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; }
18220 echo "$as_me: failed program was:" >&5
18221 sed 's/^/| /' conftest.$ac_ext >&5
18224 rm -f conftest.err conftest.$ac_objext \
18225 conftest$ac_exeext conftest.$ac_ext
18226 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18228 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18229 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"
18231 if test "$host_cpu" = ia64; then
18232 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18233 allow_undefined_flag_GCJ="-z nodefs"
18234 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"
18236 # Determine the default libpath from the value encoded in an empty executable.
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18252 rm -f conftest.$ac_objext conftest$ac_exeext
18253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18254 (eval $ac_link) 2>conftest.er1
18256 grep -v '^ *+' conftest.er1 >conftest.err
18258 cat conftest.err >&5
18259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18260 (exit $ac_status); } &&
18261 { ac_try='test -z "$ac_c_werror_flag"
18262 || test ! -s conftest.err'
18263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18264 (eval $ac_try) 2>&5
18266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18267 (exit $ac_status); }; } &&
18268 { ac_try='test -s conftest$ac_exeext'
18269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18270 (eval $ac_try) 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; }; then
18275 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18277 # Check for a 64-bit object if we didn't find anything.
18278 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; }
18281 echo "$as_me: failed program was:" >&5
18282 sed 's/^/| /' conftest.$ac_ext >&5
18285 rm -f conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18289 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18290 # Warning - without using the other run time loading flags,
18291 # -berok will link without error, but may produce a broken library.
18292 no_undefined_flag_GCJ=' ${wl}-bernotok'
18293 allow_undefined_flag_GCJ=' ${wl}-berok'
18294 # -bexpall does not export symbols beginning with underscore (_)
18295 always_export_symbols_GCJ=yes
18296 # Exported symbols can be pulled into shared objects from archives
18297 whole_archive_flag_spec_GCJ=' '
18298 archive_cmds_need_lc_GCJ=yes
18299 # This is similar to how AIX traditionally builds it's shared libraries.
18300 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'
18306 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)'
18307 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18308 hardcode_minus_L_GCJ=yes
18309 # see comment about different semantics on the GNU ld section
18314 export_dynamic_flag_spec_GCJ=-rdynamic
18317 cygwin* | mingw* | pw32*)
18318 # When not using gcc, we currently assume that we are using
18319 # Microsoft Visual C++.
18320 # hardcode_libdir_flag_spec is actually meaningless, as there is
18321 # no search path for DLLs.
18322 hardcode_libdir_flag_spec_GCJ=' '
18323 allow_undefined_flag_GCJ=unsupported
18324 # Tell ltmain to make .lib files, not .a files.
18326 # Tell ltmain to make .dll files, not .so files.
18328 # FIXME: Setting linknames here is a bad hack.
18329 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18330 # The linker will automatically build a .lib file if we build a DLL.
18331 old_archive_From_new_cmds_GCJ='true'
18332 # FIXME: Should let the user specify the lib program.
18333 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18334 fix_srcfile_path='`cygpath -w "$srcfile"`'
18335 enable_shared_with_static_runtimes_GCJ=yes
18338 darwin* | rhapsody*)
18339 if test "$GXX" = yes ; then
18340 archive_cmds_need_lc_GCJ=no
18342 rhapsody* | darwin1.[012])
18343 allow_undefined_flag_GCJ='-undefined suppress'
18346 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18347 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18349 case ${MACOSX_DEPLOYMENT_TARGET} in
18351 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18354 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18360 lt_int_apple_cc_single_mod=no
18361 output_verbose_link_cmd='echo'
18362 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18363 lt_int_apple_cc_single_mod=yes
18365 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18366 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18368 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'
18370 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18371 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18372 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18373 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}'
18375 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}'
18377 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}'
18378 hardcode_direct_GCJ=no
18379 hardcode_automatic_GCJ=yes
18380 hardcode_shlibpath_var_GCJ=unsupported
18381 whole_archive_flag_spec_GCJ='-all_load $convenience'
18382 link_all_deplibs_GCJ=yes
18389 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18390 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18391 hardcode_shlibpath_var_GCJ=no
18398 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18399 # support. Future versions do this automatically, but an explicit c++rt0.o
18400 # does not break anything, and helps significantly (at the cost of a little
18403 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18404 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18405 hardcode_direct_GCJ=yes
18406 hardcode_shlibpath_var_GCJ=no
18409 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18412 hardcode_direct_GCJ=yes
18413 hardcode_minus_L_GCJ=yes
18414 hardcode_shlibpath_var_GCJ=no
18417 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18418 freebsd* | kfreebsd*-gnu)
18419 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18421 hardcode_direct_GCJ=yes
18422 hardcode_shlibpath_var_GCJ=no
18426 if test "$GCC" = yes; then
18427 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'
18429 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'
18431 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18432 hardcode_libdir_separator_GCJ=:
18433 hardcode_direct_GCJ=yes
18435 # hardcode_minus_L: Not really in the search PATH,
18436 # but as the default location of the library.
18437 hardcode_minus_L_GCJ=yes
18438 export_dynamic_flag_spec_GCJ='${wl}-E'
18442 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18443 case "$host_cpu" in
18445 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18448 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18452 case "$host_cpu" in
18454 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18457 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18461 if test "$with_gnu_ld" = no; then
18462 case "$host_cpu" in
18464 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18465 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18466 hardcode_libdir_separator_GCJ=:
18467 hardcode_direct_GCJ=no
18468 hardcode_shlibpath_var_GCJ=no
18471 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18472 hardcode_direct_GCJ=no
18473 hardcode_shlibpath_var_GCJ=no
18475 # hardcode_minus_L: Not really in the search PATH,
18476 # but as the default location of the library.
18477 hardcode_minus_L_GCJ=yes
18480 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18481 hardcode_libdir_separator_GCJ=:
18482 hardcode_direct_GCJ=yes
18483 export_dynamic_flag_spec_GCJ='${wl}-E'
18485 # hardcode_minus_L: Not really in the search PATH,
18486 # but as the default location of the library.
18487 hardcode_minus_L_GCJ=yes
18493 irix5* | irix6* | nonstopux*)
18494 if test "$GCC" = yes; then
18495 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'
18497 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'
18498 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18500 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18501 hardcode_libdir_separator_GCJ=:
18502 link_all_deplibs_GCJ=yes
18506 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18507 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18509 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18511 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18512 hardcode_direct_GCJ=yes
18513 hardcode_shlibpath_var_GCJ=no
18517 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18518 hardcode_direct_GCJ=yes
18519 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18520 hardcode_libdir_separator_GCJ=:
18521 hardcode_shlibpath_var_GCJ=no
18525 hardcode_direct_GCJ=yes
18526 hardcode_shlibpath_var_GCJ=no
18527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18528 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18529 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18530 export_dynamic_flag_spec_GCJ='${wl}-E'
18533 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18534 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18538 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18539 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18546 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18547 hardcode_minus_L_GCJ=yes
18548 allow_undefined_flag_GCJ=unsupported
18549 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'
18550 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18554 if test "$GCC" = yes; then
18555 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18556 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'
18558 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18559 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'
18561 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18562 hardcode_libdir_separator_GCJ=:
18565 osf4* | osf5*) # as osf3* with the addition of -msym flag
18566 if test "$GCC" = yes; then
18567 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18568 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'
18569 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18571 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18572 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'
18573 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~
18574 $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'
18576 # Both c and cxx compiler support -rpath directly
18577 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18579 hardcode_libdir_separator_GCJ=:
18583 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18584 hardcode_shlibpath_var_GCJ=no
18585 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18586 runpath_var=LD_RUN_PATH
18587 hardcode_runpath_var=yes
18591 no_undefined_flag_GCJ=' -z text'
18592 if test "$GCC" = yes; then
18593 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18594 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18595 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18597 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18598 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18599 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18601 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18602 hardcode_shlibpath_var_GCJ=no
18604 solaris2.[0-5] | solaris2.[0-5].*) ;;
18605 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18606 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18608 link_all_deplibs_GCJ=yes
18612 if test "x$host_vendor" = xsequent; then
18613 # Use $CC to link under sequent, because it throws in some extra .o
18614 # files that make .init and .fini sections work.
18615 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18617 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18619 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18620 hardcode_direct_GCJ=yes
18621 hardcode_minus_L_GCJ=yes
18622 hardcode_shlibpath_var_GCJ=no
18626 case $host_vendor in
18628 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18629 hardcode_direct_GCJ=yes # is this really true???
18632 ## LD is ld it makes a PLAMLIB
18633 ## CC just makes a GrossModule.
18634 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18635 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18636 hardcode_direct_GCJ=no
18639 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18640 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18643 runpath_var='LD_RUN_PATH'
18644 hardcode_shlibpath_var_GCJ=no
18648 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18649 hardcode_shlibpath_var_GCJ=no
18650 export_dynamic_flag_spec_GCJ='-Bexport'
18654 if test -d /usr/nec; then
18655 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18656 hardcode_shlibpath_var_GCJ=no
18657 runpath_var=LD_RUN_PATH
18658 hardcode_runpath_var=yes
18664 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18665 hardcode_direct_GCJ=yes
18666 hardcode_minus_L_GCJ=no
18667 hardcode_shlibpath_var_GCJ=no
18668 hardcode_runpath_var=yes
18669 runpath_var=LD_RUN_PATH
18672 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18673 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18674 if test "$GCC" = yes; then
18675 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18677 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18679 runpath_var='LD_RUN_PATH'
18680 hardcode_shlibpath_var_GCJ=no
18684 no_undefined_flag_GCJ=' -z text'
18685 # $CC -shared without GNU ld will not create a library from C++
18686 # object files and a static libstdc++, better avoid it by now
18687 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18688 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18689 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18690 hardcode_libdir_flag_spec_GCJ=
18691 hardcode_shlibpath_var_GCJ=no
18692 runpath_var='LD_RUN_PATH'
18696 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18697 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18698 hardcode_shlibpath_var_GCJ=no
18707 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18708 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18709 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18711 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18712 if test "$GCC" = yes; then
18713 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18717 # Do we need to explicitly link libc?
18719 case "x$archive_cmds_need_lc_GCJ" in
18721 # Assume -lc should be added
18722 archive_cmds_need_lc_GCJ=yes
18724 if test "$enable_shared" = yes && test "$GCC" = yes; then
18725 case $archive_cmds_GCJ in
18727 # FIXME: we may have to deal with multi-command sequences.
18730 # Test whether the compiler implicitly links with -lc since on some
18731 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18732 # to ld, don't add -lc before -lgcc.
18733 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18734 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18736 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18739 (eval $ac_compile) 2>&5
18741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18742 (exit $ac_status); } 2>conftest.err; then
18745 libobjs=conftest.$ac_objext
18747 wl=$lt_prog_compiler_wl_GCJ
18753 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18754 allow_undefined_flag_GCJ=
18755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18756 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); }
18761 archive_cmds_need_lc_GCJ=no
18763 archive_cmds_need_lc_GCJ=yes
18765 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18767 cat conftest.err 1>&5
18770 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18771 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18778 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18779 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18780 library_names_spec=
18781 libname_spec='lib$name'
18785 postuninstall_cmds=
18789 shlibpath_overrides_runpath=unknown
18791 dynamic_linker="$host_os ld.so"
18792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18793 if test "$GCC" = yes; then
18794 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18795 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18796 # if the path contains ";" then we assume it to be the separator
18797 # otherwise default to the standard path separator (i.e. ":") - it is
18798 # assumed that no part of a normal pathname contains ";" but that should
18799 # okay in the real world where ";" in dirpaths is itself problematic.
18800 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18802 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18805 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18807 need_lib_prefix=unknown
18808 hardcode_into_libs=no
18810 # when you set need_version to no, make sure it does not cause -set_version
18811 # flags to be left without arguments
18812 need_version=unknown
18817 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18818 shlibpath_var=LIBPATH
18820 # AIX 3 has no versioning support, so we append a major version to the name.
18821 soname_spec='${libname}${release}${shared_ext}$major'
18828 hardcode_into_libs=yes
18829 if test "$host_cpu" = ia64; then
18830 # AIX 5 supports IA64
18831 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18832 shlibpath_var=LD_LIBRARY_PATH
18834 # With GCC up to 2.95.x, collect2 would create an import file
18835 # for dependence libraries. The import file would start with
18836 # the line `#! .'. This would cause the generated library to
18837 # depend on `.', always an invalid library. This was fixed in
18838 # development snapshots of GCC prior to 3.0.
18840 aix4 | aix4.[01] | aix4.[01].*)
18841 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18843 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18846 can_build_shared=no
18850 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18851 # soname into executable. Probably we can add versioning support to
18852 # collect2, so additional links can be useful in future.
18853 if test "$aix_use_runtimelinking" = yes; then
18854 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18855 # instead of lib<name>.a to let people know that these are not
18856 # typical AIX shared libraries.
18857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18859 # We preserve .a as extension for shared libraries through AIX4.2
18860 # and later when we are not doing run time linking.
18861 library_names_spec='${libname}${release}.a $libname.a'
18862 soname_spec='${libname}${release}${shared_ext}$major'
18864 shlibpath_var=LIBPATH
18869 library_names_spec='$libname.ixlibrary $libname.a'
18870 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18871 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'
18875 library_names_spec='${libname}${shared_ext}'
18876 dynamic_linker="$host_os ld.so"
18877 shlibpath_var=LIBRARY_PATH
18883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18884 soname_spec='${libname}${release}${shared_ext}$major'
18885 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18886 shlibpath_var=LD_LIBRARY_PATH
18887 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18888 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18889 # the default ld.so.conf also contains /usr/contrib/lib and
18890 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18891 # libtool to hard-code these into programs
18894 cygwin* | mingw* | pw32*)
18895 version_type=windows
18900 case $GCC,$host_os in
18901 yes,cygwin* | yes,mingw* | yes,pw32*)
18902 library_names_spec='$libname.dll.a'
18903 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18904 postinstall_cmds='base_file=`basename \${file}`~
18905 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18906 dldir=$destdir/`dirname \$dlpath`~
18907 test -d \$dldir || mkdir -p \$dldir~
18908 $install_prog $dir/$dlname \$dldir/$dlname'
18909 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18910 dlpath=$dir/\$dldll~
18912 shlibpath_overrides_runpath=yes
18916 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18917 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18918 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18921 # MinGW DLLs use traditional 'lib' prefix
18922 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18923 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18924 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18925 # It is most probably a Windows format PATH printed by
18926 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18927 # path with ; separators, and with drive letters. We can handle the
18928 # drive letters (cygwin fileutils understands them), so leave them,
18929 # especially as we might pass files found there to a mingw objdump,
18930 # which wouldn't understand a cygwinified path. Ahh.
18931 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18933 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18937 # pw32 DLLs use 'pw' prefix rather than 'lib'
18938 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18944 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18947 dynamic_linker='Win32 ld.exe'
18948 # FIXME: first we should search . and the directory the executable is in
18952 darwin* | rhapsody*)
18953 dynamic_linker="$host_os dyld"
18954 version_type=darwin
18957 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18958 soname_spec='${libname}${release}${major}$shared_ext'
18959 shlibpath_overrides_runpath=yes
18960 shlibpath_var=DYLD_LIBRARY_PATH
18961 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18962 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18963 if test "$GCC" = yes; then
18964 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"`
18966 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18968 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18976 soname_spec='${libname}${release}${shared_ext}$major'
18977 shlibpath_var=LD_LIBRARY_PATH
18988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18989 soname_spec='${libname}${release}${shared_ext}$major'
18990 shlibpath_var=LD_LIBRARY_PATH
18991 shlibpath_overrides_runpath=no
18992 hardcode_into_libs=yes
18993 dynamic_linker='GNU ld.so'
18997 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18998 version_type=freebsd-$objformat
18999 case $version_type in
19001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19006 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19010 shlibpath_var=LD_LIBRARY_PATH
19013 shlibpath_overrides_runpath=yes
19015 freebsd3.01* | freebsdelf3.01*)
19016 shlibpath_overrides_runpath=yes
19017 hardcode_into_libs=yes
19020 shlibpath_overrides_runpath=no
19021 hardcode_into_libs=yes
19030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19031 soname_spec='${libname}${release}${shared_ext}$major'
19032 shlibpath_var=LD_LIBRARY_PATH
19033 hardcode_into_libs=yes
19036 hpux9* | hpux10* | hpux11*)
19037 # Give a soname corresponding to the major version so that dld.sl refuses to
19038 # link against other versions.
19042 case "$host_cpu" in
19045 hardcode_into_libs=yes
19046 dynamic_linker="$host_os dld.so"
19047 shlibpath_var=LD_LIBRARY_PATH
19048 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19050 soname_spec='${libname}${release}${shared_ext}$major'
19051 if test "X$HPUX_IA64_MODE" = X32; then
19052 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19054 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19056 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19060 hardcode_into_libs=yes
19061 dynamic_linker="$host_os dld.sl"
19062 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19063 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19065 soname_spec='${libname}${release}${shared_ext}$major'
19066 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19067 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19071 dynamic_linker="$host_os dld.sl"
19072 shlibpath_var=SHLIB_PATH
19073 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19074 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19075 soname_spec='${libname}${release}${shared_ext}$major'
19078 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19079 postinstall_cmds='chmod 555 $lib'
19082 irix5* | irix6* | nonstopux*)
19084 nonstopux*) version_type=nonstopux ;;
19086 if test "$lt_cv_prog_gnu_ld" = yes; then
19094 soname_spec='${libname}${release}${shared_ext}$major'
19095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19097 irix5* | nonstopux*)
19098 libsuff= shlibsuff=
19101 case $LD in # libtool.m4 will add one of these switches to LD
19102 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19103 libsuff= shlibsuff= libmagic=32-bit;;
19104 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19105 libsuff=32 shlibsuff=N32 libmagic=N32;;
19106 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19107 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19108 *) libsuff= shlibsuff= libmagic=never-match;;
19112 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19113 shlibpath_overrides_runpath=no
19114 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19115 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19116 hardcode_into_libs=yes
19119 # No shared lib support for Linux oldld, aout, or coff.
19120 linux*oldld* | linux*aout* | linux*coff*)
19124 # This must be Linux ELF.
19129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19130 soname_spec='${libname}${release}${shared_ext}$major'
19131 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19132 shlibpath_var=LD_LIBRARY_PATH
19133 shlibpath_overrides_runpath=no
19134 # This implies no fast_install, which is unacceptable.
19135 # Some rework will be needed to allow for fast_install
19136 # before this can be enabled.
19137 hardcode_into_libs=yes
19139 # find out which ABI we are using
19141 case "$host_cpu" in
19142 x86_64*|s390x*|powerpc64*)
19143 echo '#line 19143 "configure"' > conftest.$ac_ext
19144 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19145 (eval $ac_compile) 2>&5
19147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19148 (exit $ac_status); }; then
19149 case `/usr/bin/file conftest.$ac_objext` in
19152 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19160 # Append ld.so.conf contents to the search path
19161 if test -f /etc/ld.so.conf; then
19162 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19163 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19166 # We used to test for /lib/ld.so.1 and disable shared libraries on
19167 # powerpc, because MkLinux only supported shared libraries with the
19168 # GNU dynamic linker. Since this was broken with cross compilers,
19169 # most powerpc-linux boxes support dynamic linking these days and
19170 # people can always --disable-shared, the test was removed, and we
19171 # assume the GNU/Linux dynamic linker is in use.
19172 dynamic_linker='GNU/Linux ld.so'
19179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19180 soname_spec='${libname}${release}${shared_ext}$major'
19181 shlibpath_var=LD_LIBRARY_PATH
19182 shlibpath_overrides_runpath=no
19183 hardcode_into_libs=yes
19184 dynamic_linker='GNU ld.so'
19191 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19193 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19194 dynamic_linker='NetBSD (a.out) ld.so'
19196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19197 soname_spec='${libname}${release}${shared_ext}$major'
19198 dynamic_linker='NetBSD ld.elf_so'
19200 shlibpath_var=LD_LIBRARY_PATH
19201 shlibpath_overrides_runpath=yes
19202 hardcode_into_libs=yes
19207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19208 shlibpath_var=LD_LIBRARY_PATH
19209 shlibpath_overrides_runpath=yes
19216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19217 soname_spec='${libname}${release}${shared_ext}$major'
19218 shlibpath_var=LD_LIBRARY_PATH
19219 shlibpath_overrides_runpath=yes
19226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19227 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19228 shlibpath_var=LD_LIBRARY_PATH
19229 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19231 openbsd2.[89] | openbsd2.[89].*)
19232 shlibpath_overrides_runpath=no
19235 shlibpath_overrides_runpath=yes
19239 shlibpath_overrides_runpath=yes
19244 libname_spec='$name'
19247 library_names_spec='$libname${shared_ext} $libname.a'
19248 dynamic_linker='OS/2 ld.exe'
19249 shlibpath_var=LIBPATH
19252 osf3* | osf4* | osf5*)
19256 soname_spec='${libname}${release}${shared_ext}$major'
19257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19258 shlibpath_var=LD_LIBRARY_PATH
19259 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19260 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19265 soname_spec='${libname}${release}${shared_ext}$major'
19266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19267 shlibpath_var=LD_LIBRARY_PATH
19274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19275 soname_spec='${libname}${release}${shared_ext}$major'
19276 shlibpath_var=LD_LIBRARY_PATH
19277 shlibpath_overrides_runpath=yes
19278 hardcode_into_libs=yes
19279 # ldd complains unless libraries are executable
19280 postinstall_cmds='chmod +x $lib'
19285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19286 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19287 shlibpath_var=LD_LIBRARY_PATH
19288 shlibpath_overrides_runpath=yes
19289 if test "$with_gnu_ld" = yes; then
19295 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19298 soname_spec='${libname}${release}${shared_ext}$major'
19299 shlibpath_var=LD_LIBRARY_PATH
19300 case $host_vendor in
19302 shlibpath_overrides_runpath=no
19304 export_dynamic_flag_spec='${wl}-Blargedynsym'
19305 runpath_var=LD_RUN_PATH
19313 shlibpath_overrides_runpath=no
19314 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19320 if test -d /usr/nec ;then
19322 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19323 soname_spec='$libname${shared_ext}.$major'
19324 shlibpath_var=LD_LIBRARY_PATH
19330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19331 soname_spec='${libname}${release}${shared_ext}$major'
19332 shlibpath_var=LD_LIBRARY_PATH
19339 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19340 echo "${ECHO_T}$dynamic_linker" >&6
19341 test "$dynamic_linker" = no && can_build_shared=no
19343 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19344 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19345 hardcode_action_GCJ=
19346 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19347 test -n "$runpath_var GCJ" || \
19348 test "X$hardcode_automatic_GCJ"="Xyes" ; then
19350 # We can hardcode non-existant directories.
19351 if test "$hardcode_direct_GCJ" != no &&
19352 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19353 # have to relink, otherwise we might link with an installed library
19354 # when we should be linking with a yet-to-be-installed one
19355 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19356 test "$hardcode_minus_L_GCJ" != no; then
19357 # Linking always hardcodes the temporary library directory.
19358 hardcode_action_GCJ=relink
19360 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19361 hardcode_action_GCJ=immediate
19364 # We cannot hardcode anything, or else we can only hardcode existing
19366 hardcode_action_GCJ=unsupported
19368 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19369 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19371 if test "$hardcode_action_GCJ" = relink; then
19372 # Fast installation is not supported
19373 enable_fast_install=no
19374 elif test "$shlibpath_overrides_runpath" = yes ||
19375 test "$enable_shared" = no; then
19376 # Fast installation is not necessary
19377 enable_fast_install=needless
19382 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19383 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19384 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19385 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19386 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19387 echo "$as_me:$LINENO: result: yes" >&5
19388 echo "${ECHO_T}yes" >&6
19390 # FIXME - insert some real tests, host_os isn't really good enough
19393 if test -n "$STRIP" ; then
19394 striplib="$STRIP -x"
19395 echo "$as_me:$LINENO: result: yes" >&5
19396 echo "${ECHO_T}yes" >&6
19398 echo "$as_me:$LINENO: result: no" >&5
19399 echo "${ECHO_T}no" >&6
19403 echo "$as_me:$LINENO: result: no" >&5
19404 echo "${ECHO_T}no" >&6
19409 if test "x$enable_dlopen" != xyes; then
19410 enable_dlopen=unknown
19411 enable_dlopen_self=unknown
19412 enable_dlopen_self_static=unknown
19419 lt_cv_dlopen="load_add_on"
19421 lt_cv_dlopen_self=yes
19425 lt_cv_dlopen="LoadLibrary"
19430 lt_cv_dlopen="dlopen"
19435 # if libdl is installed we need to link against it
19436 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19437 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19438 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19439 echo $ECHO_N "(cached) $ECHO_C" >&6
19441 ac_check_lib_save_LIBS=$LIBS
19443 cat >conftest.$ac_ext <<_ACEOF
19446 cat confdefs.h >>conftest.$ac_ext
19447 cat >>conftest.$ac_ext <<_ACEOF
19448 /* end confdefs.h. */
19450 /* Override any gcc2 internal prototype to avoid an error. */
19454 /* We use char because int might match the return type of a gcc2
19455 builtin and then its argument prototype would still apply. */
19465 rm -f conftest.$ac_objext conftest$ac_exeext
19466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19467 (eval $ac_link) 2>conftest.er1
19469 grep -v '^ *+' conftest.er1 >conftest.err
19471 cat conftest.err >&5
19472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19473 (exit $ac_status); } &&
19474 { ac_try='test -z "$ac_c_werror_flag"
19475 || test ! -s conftest.err'
19476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19477 (eval $ac_try) 2>&5
19479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19480 (exit $ac_status); }; } &&
19481 { ac_try='test -s conftest$ac_exeext'
19482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19483 (eval $ac_try) 2>&5
19485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19486 (exit $ac_status); }; }; then
19487 ac_cv_lib_dl_dlopen=yes
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19492 ac_cv_lib_dl_dlopen=no
19494 rm -f conftest.err conftest.$ac_objext \
19495 conftest$ac_exeext conftest.$ac_ext
19496 LIBS=$ac_check_lib_save_LIBS
19498 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19499 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19500 if test $ac_cv_lib_dl_dlopen = yes; then
19501 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19504 lt_cv_dlopen="dyld"
19506 lt_cv_dlopen_self=yes
19513 echo "$as_me:$LINENO: checking for shl_load" >&5
19514 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19515 if test "${ac_cv_func_shl_load+set}" = set; then
19516 echo $ECHO_N "(cached) $ECHO_C" >&6
19518 cat >conftest.$ac_ext <<_ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19525 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19526 #define shl_load innocuous_shl_load
19528 /* System header to define __stub macros and hopefully few prototypes,
19529 which can conflict with char shl_load (); below.
19530 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19531 <limits.h> exists even on freestanding compilers. */
19534 # include <limits.h>
19536 # include <assert.h>
19541 /* Override any gcc2 internal prototype to avoid an error. */
19546 /* We use char because int might match the return type of a gcc2
19547 builtin and then its argument prototype would still apply. */
19549 /* The GNU C library defines this for functions which it implements
19550 to always fail with ENOSYS. Some functions are actually named
19551 something starting with __ and the normal name is an alias. */
19552 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19555 char (*f) () = shl_load;
19564 return f != shl_load;
19569 rm -f conftest.$ac_objext conftest$ac_exeext
19570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19571 (eval $ac_link) 2>conftest.er1
19573 grep -v '^ *+' conftest.er1 >conftest.err
19575 cat conftest.err >&5
19576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19577 (exit $ac_status); } &&
19578 { ac_try='test -z "$ac_c_werror_flag"
19579 || test ! -s conftest.err'
19580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19581 (eval $ac_try) 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest$ac_exeext'
19586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19587 (eval $ac_try) 2>&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); }; }; then
19591 ac_cv_func_shl_load=yes
19593 echo "$as_me: failed program was:" >&5
19594 sed 's/^/| /' conftest.$ac_ext >&5
19596 ac_cv_func_shl_load=no
19598 rm -f conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19601 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19602 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19603 if test $ac_cv_func_shl_load = yes; then
19604 lt_cv_dlopen="shl_load"
19606 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19607 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19608 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19609 echo $ECHO_N "(cached) $ECHO_C" >&6
19611 ac_check_lib_save_LIBS=$LIBS
19613 cat >conftest.$ac_ext <<_ACEOF
19616 cat confdefs.h >>conftest.$ac_ext
19617 cat >>conftest.$ac_ext <<_ACEOF
19618 /* end confdefs.h. */
19620 /* Override any gcc2 internal prototype to avoid an error. */
19624 /* We use char because int might match the return type of a gcc2
19625 builtin and then its argument prototype would still apply. */
19635 rm -f conftest.$ac_objext conftest$ac_exeext
19636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19637 (eval $ac_link) 2>conftest.er1
19639 grep -v '^ *+' conftest.er1 >conftest.err
19641 cat conftest.err >&5
19642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19643 (exit $ac_status); } &&
19644 { ac_try='test -z "$ac_c_werror_flag"
19645 || test ! -s conftest.err'
19646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19647 (eval $ac_try) 2>&5
19649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); }; } &&
19651 { ac_try='test -s conftest$ac_exeext'
19652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19653 (eval $ac_try) 2>&5
19655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19656 (exit $ac_status); }; }; then
19657 ac_cv_lib_dld_shl_load=yes
19659 echo "$as_me: failed program was:" >&5
19660 sed 's/^/| /' conftest.$ac_ext >&5
19662 ac_cv_lib_dld_shl_load=no
19664 rm -f conftest.err conftest.$ac_objext \
19665 conftest$ac_exeext conftest.$ac_ext
19666 LIBS=$ac_check_lib_save_LIBS
19668 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19669 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19670 if test $ac_cv_lib_dld_shl_load = yes; then
19671 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19673 echo "$as_me:$LINENO: checking for dlopen" >&5
19674 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19675 if test "${ac_cv_func_dlopen+set}" = set; then
19676 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 cat >conftest.$ac_ext <<_ACEOF
19681 cat confdefs.h >>conftest.$ac_ext
19682 cat >>conftest.$ac_ext <<_ACEOF
19683 /* end confdefs.h. */
19684 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19686 #define dlopen innocuous_dlopen
19688 /* System header to define __stub macros and hopefully few prototypes,
19689 which can conflict with char dlopen (); below.
19690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19691 <limits.h> exists even on freestanding compilers. */
19694 # include <limits.h>
19696 # include <assert.h>
19701 /* Override any gcc2 internal prototype to avoid an error. */
19706 /* We use char because int might match the return type of a gcc2
19707 builtin and then its argument prototype would still apply. */
19709 /* The GNU C library defines this for functions which it implements
19710 to always fail with ENOSYS. Some functions are actually named
19711 something starting with __ and the normal name is an alias. */
19712 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19715 char (*f) () = dlopen;
19724 return f != dlopen;
19729 rm -f conftest.$ac_objext conftest$ac_exeext
19730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19731 (eval $ac_link) 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } &&
19738 { ac_try='test -z "$ac_c_werror_flag"
19739 || test ! -s conftest.err'
19740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19741 (eval $ac_try) 2>&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); }; } &&
19745 { ac_try='test -s conftest$ac_exeext'
19746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19747 (eval $ac_try) 2>&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); }; }; then
19751 ac_cv_func_dlopen=yes
19753 echo "$as_me: failed program was:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19756 ac_cv_func_dlopen=no
19758 rm -f conftest.err conftest.$ac_objext \
19759 conftest$ac_exeext conftest.$ac_ext
19761 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19762 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19763 if test $ac_cv_func_dlopen = yes; then
19764 lt_cv_dlopen="dlopen"
19766 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19767 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19768 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19771 ac_check_lib_save_LIBS=$LIBS
19773 cat >conftest.$ac_ext <<_ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19780 /* Override any gcc2 internal prototype to avoid an error. */
19784 /* We use char because int might match the return type of a gcc2
19785 builtin and then its argument prototype would still apply. */
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19797 (eval $ac_link) 2>conftest.er1
19799 grep -v '^ *+' conftest.er1 >conftest.err
19801 cat conftest.err >&5
19802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19803 (exit $ac_status); } &&
19804 { ac_try='test -z "$ac_c_werror_flag"
19805 || test ! -s conftest.err'
19806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19807 (eval $ac_try) 2>&5
19809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19810 (exit $ac_status); }; } &&
19811 { ac_try='test -s conftest$ac_exeext'
19812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19813 (eval $ac_try) 2>&5
19815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19816 (exit $ac_status); }; }; then
19817 ac_cv_lib_dl_dlopen=yes
19819 echo "$as_me: failed program was:" >&5
19820 sed 's/^/| /' conftest.$ac_ext >&5
19822 ac_cv_lib_dl_dlopen=no
19824 rm -f conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19829 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19830 if test $ac_cv_lib_dl_dlopen = yes; then
19831 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19833 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19834 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19835 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19838 ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lsvld $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 /* Override any gcc2 internal prototype to avoid an error. */
19851 /* We use char because int might match the return type of a gcc2
19852 builtin and then its argument prototype would still apply. */
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19864 (eval $ac_link) 2>conftest.er1
19866 grep -v '^ *+' conftest.er1 >conftest.err
19868 cat conftest.err >&5
19869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19870 (exit $ac_status); } &&
19871 { ac_try='test -z "$ac_c_werror_flag"
19872 || test ! -s conftest.err'
19873 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19874 (eval $ac_try) 2>&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); }; } &&
19878 { ac_try='test -s conftest$ac_exeext'
19879 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19880 (eval $ac_try) 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_cv_lib_svld_dlopen=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_lib_svld_dlopen=no
19891 rm -f conftest.err conftest.$ac_objext \
19892 conftest$ac_exeext conftest.$ac_ext
19893 LIBS=$ac_check_lib_save_LIBS
19895 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19896 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19897 if test $ac_cv_lib_svld_dlopen = yes; then
19898 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19900 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19901 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19902 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19903 echo $ECHO_N "(cached) $ECHO_C" >&6
19905 ac_check_lib_save_LIBS=$LIBS
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19914 /* Override any gcc2 internal prototype to avoid an error. */
19918 /* We use char because int might match the return type of a gcc2
19919 builtin and then its argument prototype would still apply. */
19929 rm -f conftest.$ac_objext conftest$ac_exeext
19930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19931 (eval $ac_link) 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19937 (exit $ac_status); } &&
19938 { ac_try='test -z "$ac_c_werror_flag"
19939 || test ! -s conftest.err'
19940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19941 (eval $ac_try) 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; } &&
19945 { ac_try='test -s conftest$ac_exeext'
19946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19947 (eval $ac_try) 2>&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); }; }; then
19951 ac_cv_lib_dld_dld_link=yes
19953 echo "$as_me: failed program was:" >&5
19954 sed 's/^/| /' conftest.$ac_ext >&5
19956 ac_cv_lib_dld_dld_link=no
19958 rm -f conftest.err conftest.$ac_objext \
19959 conftest$ac_exeext conftest.$ac_ext
19960 LIBS=$ac_check_lib_save_LIBS
19962 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19963 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19964 if test $ac_cv_lib_dld_dld_link = yes; then
19965 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19986 if test "x$lt_cv_dlopen" != xno; then
19992 case $lt_cv_dlopen in
19994 save_CPPFLAGS="$CPPFLAGS"
19995 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19997 save_LDFLAGS="$LDFLAGS"
19998 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
20001 LIBS="$lt_cv_dlopen_libs $LIBS"
20003 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
20004 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
20005 if test "${lt_cv_dlopen_self+set}" = set; then
20006 echo $ECHO_N "(cached) $ECHO_C" >&6
20008 if test "$cross_compiling" = yes; then :
20009 lt_cv_dlopen_self=cross
20011 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20012 lt_status=$lt_dlunknown
20013 cat > conftest.$ac_ext <<EOF
20014 #line 20014 "configure"
20015 #include "confdefs.h"
20024 # define LT_DLGLOBAL RTLD_GLOBAL
20027 # define LT_DLGLOBAL DL_GLOBAL
20029 # define LT_DLGLOBAL 0
20033 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20034 find out it does not work in some platform. */
20035 #ifndef LT_DLLAZY_OR_NOW
20037 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20040 # define LT_DLLAZY_OR_NOW DL_LAZY
20043 # define LT_DLLAZY_OR_NOW RTLD_NOW
20046 # define LT_DLLAZY_OR_NOW DL_NOW
20048 # define LT_DLLAZY_OR_NOW 0
20056 extern "C" void exit (int);
20059 void fnord() { int i=42;}
20062 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20063 int status = $lt_dlunknown;
20067 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20068 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20069 /* dlclose (self); */
20075 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20076 (eval $ac_link) 2>&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20080 (./conftest; exit; ) 2>/dev/null
20082 case x$lt_status in
20083 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20084 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20085 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20088 # compilation failed
20089 lt_cv_dlopen_self=no
20096 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20097 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20099 if test "x$lt_cv_dlopen_self" = xyes; then
20100 LDFLAGS="$LDFLAGS $link_static_flag"
20101 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20102 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20103 if test "${lt_cv_dlopen_self_static+set}" = set; then
20104 echo $ECHO_N "(cached) $ECHO_C" >&6
20106 if test "$cross_compiling" = yes; then :
20107 lt_cv_dlopen_self_static=cross
20109 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20110 lt_status=$lt_dlunknown
20111 cat > conftest.$ac_ext <<EOF
20112 #line 20112 "configure"
20113 #include "confdefs.h"
20122 # define LT_DLGLOBAL RTLD_GLOBAL
20125 # define LT_DLGLOBAL DL_GLOBAL
20127 # define LT_DLGLOBAL 0
20131 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20132 find out it does not work in some platform. */
20133 #ifndef LT_DLLAZY_OR_NOW
20135 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20138 # define LT_DLLAZY_OR_NOW DL_LAZY
20141 # define LT_DLLAZY_OR_NOW RTLD_NOW
20144 # define LT_DLLAZY_OR_NOW DL_NOW
20146 # define LT_DLLAZY_OR_NOW 0
20154 extern "C" void exit (int);
20157 void fnord() { int i=42;}
20160 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20161 int status = $lt_dlunknown;
20165 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20166 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20167 /* dlclose (self); */
20173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20174 (eval $ac_link) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20178 (./conftest; exit; ) 2>/dev/null
20180 case x$lt_status in
20181 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20182 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20183 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20186 # compilation failed
20187 lt_cv_dlopen_self_static=no
20194 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20195 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20198 CPPFLAGS="$save_CPPFLAGS"
20199 LDFLAGS="$save_LDFLAGS"
20204 case $lt_cv_dlopen_self in
20205 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20206 *) enable_dlopen_self=unknown ;;
20209 case $lt_cv_dlopen_self_static in
20210 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20211 *) enable_dlopen_self_static=unknown ;;
20216 # The else clause should only fire when bootstrapping the
20217 # libtool distribution, otherwise you forgot to ship ltmain.sh
20218 # with your package, and you will get complaints that there are
20219 # no rules to generate ltmain.sh.
20220 if test -f "$ltmain"; then
20221 # See if we are running on zsh, and set the options which allow our commands through
20222 # without removal of \ escapes.
20223 if test -n "${ZSH_VERSION+set}" ; then
20224 setopt NO_GLOB_SUBST
20226 # Now quote all the things that may contain metacharacters while being
20227 # careful not to overquote the AC_SUBSTed values. We take copies of the
20228 # variables and quote the copies for generation of the libtool script.
20229 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20231 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20232 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20233 deplibs_check_method reload_flag reload_cmds need_locks \
20234 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20235 lt_cv_sys_global_symbol_to_c_name_address \
20236 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20237 old_postinstall_cmds old_postuninstall_cmds \
20241 lt_prog_compiler_wl_GCJ \
20242 lt_prog_compiler_pic_GCJ \
20243 lt_prog_compiler_static_GCJ \
20244 lt_prog_compiler_no_builtin_flag_GCJ \
20245 export_dynamic_flag_spec_GCJ \
20246 thread_safe_flag_spec_GCJ \
20247 whole_archive_flag_spec_GCJ \
20248 enable_shared_with_static_runtimes_GCJ \
20249 old_archive_cmds_GCJ \
20250 old_archive_from_new_cmds_GCJ \
20251 predep_objects_GCJ \
20252 postdep_objects_GCJ \
20255 compiler_lib_search_path_GCJ \
20257 archive_expsym_cmds_GCJ \
20258 postinstall_cmds_GCJ \
20259 postuninstall_cmds_GCJ \
20260 old_archive_from_expsyms_cmds_GCJ \
20261 allow_undefined_flag_GCJ \
20262 no_undefined_flag_GCJ \
20263 export_symbols_cmds_GCJ \
20264 hardcode_libdir_flag_spec_GCJ \
20265 hardcode_libdir_flag_spec_ld_GCJ \
20266 hardcode_libdir_separator_GCJ \
20267 hardcode_automatic_GCJ \
20269 module_expsym_cmds_GCJ \
20270 lt_cv_prog_compiler_c_o_GCJ \
20271 exclude_expsyms_GCJ \
20272 include_expsyms_GCJ; do
20275 old_archive_cmds_GCJ | \
20276 old_archive_from_new_cmds_GCJ | \
20277 archive_cmds_GCJ | \
20278 archive_expsym_cmds_GCJ | \
20279 module_cmds_GCJ | \
20280 module_expsym_cmds_GCJ | \
20281 old_archive_from_expsyms_cmds_GCJ | \
20282 export_symbols_cmds_GCJ | \
20283 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20284 postinstall_cmds | postuninstall_cmds | \
20285 old_postinstall_cmds | old_postuninstall_cmds | \
20286 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20287 # Double-quote double-evaled strings.
20288 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20291 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20297 *'\$0 --fallback-echo"')
20298 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20304 cat <<__EOF__ >> "$cfgfile"
20305 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20307 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20309 # Shell to use when invoking shell scripts.
20312 # Whether or not to build shared libraries.
20313 build_libtool_libs=$enable_shared
20315 # Whether or not to build static libraries.
20316 build_old_libs=$enable_static
20318 # Whether or not to add -lc for building shared libraries.
20319 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20321 # Whether or not to disallow shared libs when runtime libs are static
20322 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20324 # Whether or not to optimize for fast installation.
20325 fast_install=$enable_fast_install
20328 host_alias=$host_alias
20331 # An echo program that does not interpret backslashes.
20336 AR_FLAGS=$lt_AR_FLAGS
20341 # A language-specific compiler.
20342 CC=$lt_compiler_GCJ
20344 # Is the compiler the GNU C compiler?
20350 # The linker used to build libraries.
20353 # Whether we need hard or soft links.
20356 # A BSD-compatible nm program.
20359 # A symbol stripping program
20362 # Used to examine libraries when file_magic_cmd begins "file"
20363 MAGIC_CMD=$MAGIC_CMD
20365 # Used on cygwin: DLL creation program.
20368 # Used on cygwin: object dumper.
20371 # Used on cygwin: assembler.
20374 # The name of the directory that contains temporary libtool files.
20377 # How to create reloadable object files.
20378 reload_flag=$lt_reload_flag
20379 reload_cmds=$lt_reload_cmds
20381 # How to pass a linker flag through the compiler.
20382 wl=$lt_lt_prog_compiler_wl_GCJ
20384 # Object file suffix (normally "o").
20385 objext="$ac_objext"
20387 # Old archive suffix (normally "a").
20390 # Shared library suffix (normally ".so").
20391 shrext_cmds='$shrext_cmds'
20393 # Executable file suffix (normally "").
20396 # Additional compiler flags for building library objects.
20397 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20400 # What is the maximum length of a command?
20401 max_cmd_len=$lt_cv_sys_max_cmd_len
20403 # Does compiler simultaneously support -c and -o options?
20404 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20406 # Must we lock files when doing compilation ?
20407 need_locks=$lt_need_locks
20409 # Do we need the lib prefix for modules?
20410 need_lib_prefix=$need_lib_prefix
20412 # Do we need a version for libraries?
20413 need_version=$need_version
20415 # Whether dlopen is supported.
20416 dlopen_support=$enable_dlopen
20418 # Whether dlopen of programs is supported.
20419 dlopen_self=$enable_dlopen_self
20421 # Whether dlopen of statically linked programs is supported.
20422 dlopen_self_static=$enable_dlopen_self_static
20424 # Compiler flag to prevent dynamic linking.
20425 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20427 # Compiler flag to turn off builtin functions.
20428 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20430 # Compiler flag to allow reflexive dlopens.
20431 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20433 # Compiler flag to generate shared objects directly from archives.
20434 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20436 # Compiler flag to generate thread-safe objects.
20437 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20439 # Library versioning type.
20440 version_type=$version_type
20442 # Format of library name prefix.
20443 libname_spec=$lt_libname_spec
20445 # List of archive names. First name is the real one, the rest are links.
20446 # The last name is the one that the linker finds with -lNAME.
20447 library_names_spec=$lt_library_names_spec
20449 # The coded name of the library, if different from the real name.
20450 soname_spec=$lt_soname_spec
20452 # Commands used to build and install an old-style archive.
20454 old_archive_cmds=$lt_old_archive_cmds_GCJ
20455 old_postinstall_cmds=$lt_old_postinstall_cmds
20456 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20458 # Create an old-style archive from a shared archive.
20459 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20461 # Create a temporary old-style archive to link instead of a shared archive.
20462 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20464 # Commands used to build and install a shared archive.
20465 archive_cmds=$lt_archive_cmds_GCJ
20466 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20467 postinstall_cmds=$lt_postinstall_cmds
20468 postuninstall_cmds=$lt_postuninstall_cmds
20470 # Commands used to build a loadable module (assumed same as above if empty)
20471 module_cmds=$lt_module_cmds_GCJ
20472 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20474 # Commands to strip libraries.
20475 old_striplib=$lt_old_striplib
20476 striplib=$lt_striplib
20478 # Dependencies to place before the objects being linked to create a
20480 predep_objects=$lt_predep_objects_GCJ
20482 # Dependencies to place after the objects being linked to create a
20484 postdep_objects=$lt_postdep_objects_GCJ
20486 # Dependencies to place before the objects being linked to create a
20488 predeps=$lt_predeps_GCJ
20490 # Dependencies to place after the objects being linked to create a
20492 postdeps=$lt_postdeps_GCJ
20494 # The library search path used internally by the compiler when linking
20495 # a shared library.
20496 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20498 # Method to check whether dependent libraries are shared objects.
20499 deplibs_check_method=$lt_deplibs_check_method
20501 # Command to use when deplibs_check_method == file_magic.
20502 file_magic_cmd=$lt_file_magic_cmd
20504 # Flag that allows shared libraries with undefined symbols to be built.
20505 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20507 # Flag that forces no undefined symbols.
20508 no_undefined_flag=$lt_no_undefined_flag_GCJ
20510 # Commands used to finish a libtool library installation in a directory.
20511 finish_cmds=$lt_finish_cmds
20513 # Same as above, but a single script fragment to be evaled but not shown.
20514 finish_eval=$lt_finish_eval
20516 # Take the output of nm and produce a listing of raw symbols and C names.
20517 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20519 # Transform the output of nm in a proper C declaration
20520 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20522 # Transform the output of nm in a C name address pair
20523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20525 # This is the shared library runtime path variable.
20526 runpath_var=$runpath_var
20528 # This is the shared library path variable.
20529 shlibpath_var=$shlibpath_var
20531 # Is shlibpath searched before the hard-coded library search path?
20532 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20534 # How to hardcode a shared library path into an executable.
20535 hardcode_action=$hardcode_action_GCJ
20537 # Whether we should hardcode library paths into libraries.
20538 hardcode_into_libs=$hardcode_into_libs
20540 # Flag to hardcode \$libdir into a binary during linking.
20541 # This must work even if \$libdir does not exist.
20542 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20544 # If ld is used when linking, flag to hardcode \$libdir into
20545 # a binary during linking. This must work even if \$libdir does
20547 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20549 # Whether we need a single -rpath flag with a separated argument.
20550 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20552 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20553 # resulting binary.
20554 hardcode_direct=$hardcode_direct_GCJ
20556 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20557 # resulting binary.
20558 hardcode_minus_L=$hardcode_minus_L_GCJ
20560 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20561 # the resulting binary.
20562 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20564 # Set to yes if building a shared library automatically hardcodes DIR into the library
20565 # and all subsequent libraries and executables linked against it.
20566 hardcode_automatic=$hardcode_automatic_GCJ
20568 # Variables whose values should be saved in libtool wrapper scripts and
20569 # restored at relink time.
20570 variables_saved_for_relink="$variables_saved_for_relink"
20572 # Whether libtool must link a program against all its dependency libraries.
20573 link_all_deplibs=$link_all_deplibs_GCJ
20575 # Compile-time system search path for libraries
20576 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20578 # Run-time system search path for libraries
20579 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20581 # Fix the shell variable \$srcfile for the compiler.
20582 fix_srcfile_path="$fix_srcfile_path_GCJ"
20584 # Set to yes if exported symbols are required.
20585 always_export_symbols=$always_export_symbols_GCJ
20587 # The commands to list exported symbols.
20588 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20590 # The commands to extract the exported symbol list from a shared archive.
20591 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20593 # Symbols that should not be listed in the preloaded symbols.
20594 exclude_expsyms=$lt_exclude_expsyms_GCJ
20596 # Symbols that must always be exported.
20597 include_expsyms=$lt_include_expsyms_GCJ
20599 # ### END LIBTOOL TAG CONFIG: $tagname
20605 # If there is no Makefile yet, we rely on a make rule to execute
20606 # `config.status --recheck' to rerun these tests and create the
20607 # libtool script then.
20608 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20609 if test -f "$ltmain_in"; then
20610 test -f Makefile && make "$ltmain"
20616 ac_cpp='$CPP $CPPFLAGS'
20617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20632 # Source file extension for RC test sources.
20635 # Object file extension for compiled RC test sources.
20639 # Code to be used in simple compile tests
20640 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20642 # Code to be used in simple link tests
20643 lt_simple_link_test_code="$lt_simple_compile_test_code"
20645 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20647 # If no C compiler was specified, use CC.
20650 # Allow CC to be a program name with arguments.
20654 # Allow CC to be a program name with arguments.
20659 lt_cv_prog_compiler_c_o_RC=yes
20661 # The else clause should only fire when bootstrapping the
20662 # libtool distribution, otherwise you forgot to ship ltmain.sh
20663 # with your package, and you will get complaints that there are
20664 # no rules to generate ltmain.sh.
20665 if test -f "$ltmain"; then
20666 # See if we are running on zsh, and set the options which allow our commands through
20667 # without removal of \ escapes.
20668 if test -n "${ZSH_VERSION+set}" ; then
20669 setopt NO_GLOB_SUBST
20671 # Now quote all the things that may contain metacharacters while being
20672 # careful not to overquote the AC_SUBSTed values. We take copies of the
20673 # variables and quote the copies for generation of the libtool script.
20674 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20676 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20677 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20678 deplibs_check_method reload_flag reload_cmds need_locks \
20679 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20680 lt_cv_sys_global_symbol_to_c_name_address \
20681 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20682 old_postinstall_cmds old_postuninstall_cmds \
20686 lt_prog_compiler_wl_RC \
20687 lt_prog_compiler_pic_RC \
20688 lt_prog_compiler_static_RC \
20689 lt_prog_compiler_no_builtin_flag_RC \
20690 export_dynamic_flag_spec_RC \
20691 thread_safe_flag_spec_RC \
20692 whole_archive_flag_spec_RC \
20693 enable_shared_with_static_runtimes_RC \
20694 old_archive_cmds_RC \
20695 old_archive_from_new_cmds_RC \
20696 predep_objects_RC \
20697 postdep_objects_RC \
20700 compiler_lib_search_path_RC \
20702 archive_expsym_cmds_RC \
20703 postinstall_cmds_RC \
20704 postuninstall_cmds_RC \
20705 old_archive_from_expsyms_cmds_RC \
20706 allow_undefined_flag_RC \
20707 no_undefined_flag_RC \
20708 export_symbols_cmds_RC \
20709 hardcode_libdir_flag_spec_RC \
20710 hardcode_libdir_flag_spec_ld_RC \
20711 hardcode_libdir_separator_RC \
20712 hardcode_automatic_RC \
20714 module_expsym_cmds_RC \
20715 lt_cv_prog_compiler_c_o_RC \
20716 exclude_expsyms_RC \
20717 include_expsyms_RC; do
20720 old_archive_cmds_RC | \
20721 old_archive_from_new_cmds_RC | \
20722 archive_cmds_RC | \
20723 archive_expsym_cmds_RC | \
20725 module_expsym_cmds_RC | \
20726 old_archive_from_expsyms_cmds_RC | \
20727 export_symbols_cmds_RC | \
20728 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20729 postinstall_cmds | postuninstall_cmds | \
20730 old_postinstall_cmds | old_postuninstall_cmds | \
20731 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20732 # Double-quote double-evaled strings.
20733 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20742 *'\$0 --fallback-echo"')
20743 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20749 cat <<__EOF__ >> "$cfgfile"
20750 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20752 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20754 # Shell to use when invoking shell scripts.
20757 # Whether or not to build shared libraries.
20758 build_libtool_libs=$enable_shared
20760 # Whether or not to build static libraries.
20761 build_old_libs=$enable_static
20763 # Whether or not to add -lc for building shared libraries.
20764 build_libtool_need_lc=$archive_cmds_need_lc_RC
20766 # Whether or not to disallow shared libs when runtime libs are static
20767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20769 # Whether or not to optimize for fast installation.
20770 fast_install=$enable_fast_install
20773 host_alias=$host_alias
20776 # An echo program that does not interpret backslashes.
20781 AR_FLAGS=$lt_AR_FLAGS
20786 # A language-specific compiler.
20789 # Is the compiler the GNU C compiler?
20795 # The linker used to build libraries.
20798 # Whether we need hard or soft links.
20801 # A BSD-compatible nm program.
20804 # A symbol stripping program
20807 # Used to examine libraries when file_magic_cmd begins "file"
20808 MAGIC_CMD=$MAGIC_CMD
20810 # Used on cygwin: DLL creation program.
20813 # Used on cygwin: object dumper.
20816 # Used on cygwin: assembler.
20819 # The name of the directory that contains temporary libtool files.
20822 # How to create reloadable object files.
20823 reload_flag=$lt_reload_flag
20824 reload_cmds=$lt_reload_cmds
20826 # How to pass a linker flag through the compiler.
20827 wl=$lt_lt_prog_compiler_wl_RC
20829 # Object file suffix (normally "o").
20830 objext="$ac_objext"
20832 # Old archive suffix (normally "a").
20835 # Shared library suffix (normally ".so").
20836 shrext_cmds='$shrext_cmds'
20838 # Executable file suffix (normally "").
20841 # Additional compiler flags for building library objects.
20842 pic_flag=$lt_lt_prog_compiler_pic_RC
20845 # What is the maximum length of a command?
20846 max_cmd_len=$lt_cv_sys_max_cmd_len
20848 # Does compiler simultaneously support -c and -o options?
20849 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20851 # Must we lock files when doing compilation ?
20852 need_locks=$lt_need_locks
20854 # Do we need the lib prefix for modules?
20855 need_lib_prefix=$need_lib_prefix
20857 # Do we need a version for libraries?
20858 need_version=$need_version
20860 # Whether dlopen is supported.
20861 dlopen_support=$enable_dlopen
20863 # Whether dlopen of programs is supported.
20864 dlopen_self=$enable_dlopen_self
20866 # Whether dlopen of statically linked programs is supported.
20867 dlopen_self_static=$enable_dlopen_self_static
20869 # Compiler flag to prevent dynamic linking.
20870 link_static_flag=$lt_lt_prog_compiler_static_RC
20872 # Compiler flag to turn off builtin functions.
20873 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20875 # Compiler flag to allow reflexive dlopens.
20876 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20878 # Compiler flag to generate shared objects directly from archives.
20879 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20881 # Compiler flag to generate thread-safe objects.
20882 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20884 # Library versioning type.
20885 version_type=$version_type
20887 # Format of library name prefix.
20888 libname_spec=$lt_libname_spec
20890 # List of archive names. First name is the real one, the rest are links.
20891 # The last name is the one that the linker finds with -lNAME.
20892 library_names_spec=$lt_library_names_spec
20894 # The coded name of the library, if different from the real name.
20895 soname_spec=$lt_soname_spec
20897 # Commands used to build and install an old-style archive.
20899 old_archive_cmds=$lt_old_archive_cmds_RC
20900 old_postinstall_cmds=$lt_old_postinstall_cmds
20901 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20903 # Create an old-style archive from a shared archive.
20904 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20906 # Create a temporary old-style archive to link instead of a shared archive.
20907 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20909 # Commands used to build and install a shared archive.
20910 archive_cmds=$lt_archive_cmds_RC
20911 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20912 postinstall_cmds=$lt_postinstall_cmds
20913 postuninstall_cmds=$lt_postuninstall_cmds
20915 # Commands used to build a loadable module (assumed same as above if empty)
20916 module_cmds=$lt_module_cmds_RC
20917 module_expsym_cmds=$lt_module_expsym_cmds_RC
20919 # Commands to strip libraries.
20920 old_striplib=$lt_old_striplib
20921 striplib=$lt_striplib
20923 # Dependencies to place before the objects being linked to create a
20925 predep_objects=$lt_predep_objects_RC
20927 # Dependencies to place after the objects being linked to create a
20929 postdep_objects=$lt_postdep_objects_RC
20931 # Dependencies to place before the objects being linked to create a
20933 predeps=$lt_predeps_RC
20935 # Dependencies to place after the objects being linked to create a
20937 postdeps=$lt_postdeps_RC
20939 # The library search path used internally by the compiler when linking
20940 # a shared library.
20941 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20943 # Method to check whether dependent libraries are shared objects.
20944 deplibs_check_method=$lt_deplibs_check_method
20946 # Command to use when deplibs_check_method == file_magic.
20947 file_magic_cmd=$lt_file_magic_cmd
20949 # Flag that allows shared libraries with undefined symbols to be built.
20950 allow_undefined_flag=$lt_allow_undefined_flag_RC
20952 # Flag that forces no undefined symbols.
20953 no_undefined_flag=$lt_no_undefined_flag_RC
20955 # Commands used to finish a libtool library installation in a directory.
20956 finish_cmds=$lt_finish_cmds
20958 # Same as above, but a single script fragment to be evaled but not shown.
20959 finish_eval=$lt_finish_eval
20961 # Take the output of nm and produce a listing of raw symbols and C names.
20962 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20964 # Transform the output of nm in a proper C declaration
20965 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20967 # Transform the output of nm in a C name address pair
20968 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20970 # This is the shared library runtime path variable.
20971 runpath_var=$runpath_var
20973 # This is the shared library path variable.
20974 shlibpath_var=$shlibpath_var
20976 # Is shlibpath searched before the hard-coded library search path?
20977 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20979 # How to hardcode a shared library path into an executable.
20980 hardcode_action=$hardcode_action_RC
20982 # Whether we should hardcode library paths into libraries.
20983 hardcode_into_libs=$hardcode_into_libs
20985 # Flag to hardcode \$libdir into a binary during linking.
20986 # This must work even if \$libdir does not exist.
20987 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20989 # If ld is used when linking, flag to hardcode \$libdir into
20990 # a binary during linking. This must work even if \$libdir does
20992 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20994 # Whether we need a single -rpath flag with a separated argument.
20995 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20997 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20998 # resulting binary.
20999 hardcode_direct=$hardcode_direct_RC
21001 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21002 # resulting binary.
21003 hardcode_minus_L=$hardcode_minus_L_RC
21005 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21006 # the resulting binary.
21007 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
21009 # Set to yes if building a shared library automatically hardcodes DIR into the library
21010 # and all subsequent libraries and executables linked against it.
21011 hardcode_automatic=$hardcode_automatic_RC
21013 # Variables whose values should be saved in libtool wrapper scripts and
21014 # restored at relink time.
21015 variables_saved_for_relink="$variables_saved_for_relink"
21017 # Whether libtool must link a program against all its dependency libraries.
21018 link_all_deplibs=$link_all_deplibs_RC
21020 # Compile-time system search path for libraries
21021 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21023 # Run-time system search path for libraries
21024 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21026 # Fix the shell variable \$srcfile for the compiler.
21027 fix_srcfile_path="$fix_srcfile_path_RC"
21029 # Set to yes if exported symbols are required.
21030 always_export_symbols=$always_export_symbols_RC
21032 # The commands to list exported symbols.
21033 export_symbols_cmds=$lt_export_symbols_cmds_RC
21035 # The commands to extract the exported symbol list from a shared archive.
21036 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21038 # Symbols that should not be listed in the preloaded symbols.
21039 exclude_expsyms=$lt_exclude_expsyms_RC
21041 # Symbols that must always be exported.
21042 include_expsyms=$lt_include_expsyms_RC
21044 # ### END LIBTOOL TAG CONFIG: $tagname
21050 # If there is no Makefile yet, we rely on a make rule to execute
21051 # `config.status --recheck' to rerun these tests and create the
21052 # libtool script then.
21053 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21054 if test -f "$ltmain_in"; then
21055 test -f Makefile && make "$ltmain"
21061 ac_cpp='$CPP $CPPFLAGS'
21062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21064 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21071 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21072 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21073 { (exit 1); exit 1; }; }
21077 # Append the new tag name to the list of available tags.
21078 if test -n "$tagname" ; then
21079 available_tags="$available_tags $tagname"
21085 # Now substitute the updated list of available tags.
21086 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21087 mv "${ofile}T" "$ofile"
21091 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21092 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21093 { (exit 1); exit 1; }; }
21099 # This can be used to rebuild libtool when needed
21100 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21102 # Always use our own libtool.
21103 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21105 # Prevent multiple expansion
21128 ac_cpp='$CPP $CPPFLAGS'
21129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21134 # Checks for typedefs, structures, and compiler characteristics.
21135 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21136 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21137 if test "${ac_cv_c_const+set}" = set; then
21138 echo $ECHO_N "(cached) $ECHO_C" >&6
21140 cat >conftest.$ac_ext <<_ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h. */
21150 /* FIXME: Include the comments suggested by Paul. */
21151 #ifndef __cplusplus
21152 /* Ultrix mips cc rejects this. */
21153 typedef int charset[2];
21155 /* SunOS 4.1.1 cc rejects this. */
21156 char const *const *ccp;
21158 /* NEC SVR4.0.2 mips cc rejects this. */
21159 struct point {int x, y;};
21160 static struct point const zero = {0,0};
21161 /* AIX XL C 1.02.0.0 rejects this.
21162 It does not let you subtract one const X* pointer from another in
21163 an arm of an if-expression whose if-part is not a constant
21165 const char *g = "string";
21166 ccp = &g + (g ? g-g : 0);
21167 /* HPUX 7.0 cc rejects these. */
21170 ccp = (char const *const *) p;
21171 { /* SCO 3.2v4 cc rejects this. */
21173 char const *s = 0 ? (char *) 0 : (char const *) 0;
21177 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21178 int x[] = {25, 17};
21179 const int *foo = &x[0];
21182 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21183 typedef const int *iptr;
21187 { /* AIX XL C 1.02.0.0 rejects this saying
21188 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21189 struct s { int j; const int *ap[3]; };
21190 struct s *b; b->j = 5;
21192 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21193 const int foo = 10;
21201 rm -f conftest.$ac_objext
21202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21203 (eval $ac_compile) 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21209 (exit $ac_status); } &&
21210 { ac_try='test -z "$ac_c_werror_flag"
21211 || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21230 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21232 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21233 echo "${ECHO_T}$ac_cv_c_const" >&6
21234 if test $ac_cv_c_const = no; then
21236 cat >>confdefs.h <<\_ACEOF
21242 echo "$as_me:$LINENO: checking for size_t" >&5
21243 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21244 if test "${ac_cv_type_size_t+set}" = set; then
21245 echo $ECHO_N "(cached) $ECHO_C" >&6
21247 cat >conftest.$ac_ext <<_ACEOF
21250 cat confdefs.h >>conftest.$ac_ext
21251 cat >>conftest.$ac_ext <<_ACEOF
21252 /* end confdefs.h. */
21253 $ac_includes_default
21259 if (sizeof (size_t))
21265 rm -f conftest.$ac_objext
21266 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21267 (eval $ac_compile) 2>conftest.er1
21269 grep -v '^ *+' conftest.er1 >conftest.err
21271 cat conftest.err >&5
21272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21273 (exit $ac_status); } &&
21274 { ac_try='test -z "$ac_c_werror_flag"
21275 || test ! -s conftest.err'
21276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21277 (eval $ac_try) 2>&5
21279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21280 (exit $ac_status); }; } &&
21281 { ac_try='test -s conftest.$ac_objext'
21282 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21283 (eval $ac_try) 2>&5
21285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21286 (exit $ac_status); }; }; then
21287 ac_cv_type_size_t=yes
21289 echo "$as_me: failed program was:" >&5
21290 sed 's/^/| /' conftest.$ac_ext >&5
21292 ac_cv_type_size_t=no
21294 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21296 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21297 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21298 if test $ac_cv_type_size_t = yes; then
21302 cat >>confdefs.h <<_ACEOF
21303 #define size_t unsigned
21308 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21309 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
21310 if test "${ac_cv_struct_tm+set}" = set; then
21311 echo $ECHO_N "(cached) $ECHO_C" >&6
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 #include <sys/types.h>
21325 struct tm *tp; tp->tm_sec;
21330 rm -f conftest.$ac_objext
21331 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21332 (eval $ac_compile) 2>conftest.er1
21334 grep -v '^ *+' conftest.er1 >conftest.err
21336 cat conftest.err >&5
21337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21338 (exit $ac_status); } &&
21339 { ac_try='test -z "$ac_c_werror_flag"
21340 || test ! -s conftest.err'
21341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21342 (eval $ac_try) 2>&5
21344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21345 (exit $ac_status); }; } &&
21346 { ac_try='test -s conftest.$ac_objext'
21347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21348 (eval $ac_try) 2>&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); }; }; then
21352 ac_cv_struct_tm=time.h
21354 echo "$as_me: failed program was:" >&5
21355 sed 's/^/| /' conftest.$ac_ext >&5
21357 ac_cv_struct_tm=sys/time.h
21359 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21361 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21362 echo "${ECHO_T}$ac_cv_struct_tm" >&6
21363 if test $ac_cv_struct_tm = sys/time.h; then
21365 cat >>confdefs.h <<\_ACEOF
21366 #define TM_IN_SYS_TIME 1
21372 # Checks for library functions.
21374 for ac_func in strftime
21376 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21377 echo "$as_me:$LINENO: checking for $ac_func" >&5
21378 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21379 if eval "test \"\${$as_ac_var+set}\" = set"; then
21380 echo $ECHO_N "(cached) $ECHO_C" >&6
21382 cat >conftest.$ac_ext <<_ACEOF
21385 cat confdefs.h >>conftest.$ac_ext
21386 cat >>conftest.$ac_ext <<_ACEOF
21387 /* end confdefs.h. */
21388 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21389 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21390 #define $ac_func innocuous_$ac_func
21392 /* System header to define __stub macros and hopefully few prototypes,
21393 which can conflict with char $ac_func (); below.
21394 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21395 <limits.h> exists even on freestanding compilers. */
21398 # include <limits.h>
21400 # include <assert.h>
21405 /* Override any gcc2 internal prototype to avoid an error. */
21410 /* We use char because int might match the return type of a gcc2
21411 builtin and then its argument prototype would still apply. */
21413 /* The GNU C library defines this for functions which it implements
21414 to always fail with ENOSYS. Some functions are actually named
21415 something starting with __ and the normal name is an alias. */
21416 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21419 char (*f) () = $ac_func;
21428 return f != $ac_func;
21433 rm -f conftest.$ac_objext conftest$ac_exeext
21434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21435 (eval $ac_link) 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21441 (exit $ac_status); } &&
21442 { ac_try='test -z "$ac_c_werror_flag"
21443 || test ! -s conftest.err'
21444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21445 (eval $ac_try) 2>&5
21447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21448 (exit $ac_status); }; } &&
21449 { ac_try='test -s conftest$ac_exeext'
21450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21451 (eval $ac_try) 2>&5
21453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21454 (exit $ac_status); }; }; then
21455 eval "$as_ac_var=yes"
21457 echo "$as_me: failed program was:" >&5
21458 sed 's/^/| /' conftest.$ac_ext >&5
21460 eval "$as_ac_var=no"
21462 rm -f conftest.err conftest.$ac_objext \
21463 conftest$ac_exeext conftest.$ac_ext
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21467 if test `eval echo '${'$as_ac_var'}'` = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21473 # strftime is in -lintl on SCO UNIX.
21474 echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
21475 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6
21476 if test "${ac_cv_lib_intl_strftime+set}" = set; then
21477 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 ac_check_lib_save_LIBS=$LIBS
21480 LIBS="-lintl $LIBS"
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21488 /* Override any gcc2 internal prototype to avoid an error. */
21492 /* We use char because int might match the return type of a gcc2
21493 builtin and then its argument prototype would still apply. */
21503 rm -f conftest.$ac_objext conftest$ac_exeext
21504 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21505 (eval $ac_link) 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21511 (exit $ac_status); } &&
21512 { ac_try='test -z "$ac_c_werror_flag"
21513 || test ! -s conftest.err'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; } &&
21519 { ac_try='test -s conftest$ac_exeext'
21520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21521 (eval $ac_try) 2>&5
21523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524 (exit $ac_status); }; }; then
21525 ac_cv_lib_intl_strftime=yes
21527 echo "$as_me: failed program was:" >&5
21528 sed 's/^/| /' conftest.$ac_ext >&5
21530 ac_cv_lib_intl_strftime=no
21532 rm -f conftest.err conftest.$ac_objext \
21533 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21536 echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
21537 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6
21538 if test $ac_cv_lib_intl_strftime = yes; then
21539 cat >>confdefs.h <<\_ACEOF
21540 #define HAVE_STRFTIME 1
21543 LIBS="-lintl $LIBS"
21549 echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
21550 echo $ECHO_N "checking whether strerror_r is declared... $ECHO_C" >&6
21551 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
21552 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 cat >conftest.$ac_ext <<_ACEOF
21557 cat confdefs.h >>conftest.$ac_ext
21558 cat >>conftest.$ac_ext <<_ACEOF
21559 /* end confdefs.h. */
21560 $ac_includes_default
21565 char *p = (char *) strerror_r;
21572 rm -f conftest.$ac_objext
21573 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21574 (eval $ac_compile) 2>conftest.er1
21576 grep -v '^ *+' conftest.er1 >conftest.err
21578 cat conftest.err >&5
21579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21580 (exit $ac_status); } &&
21581 { ac_try='test -z "$ac_c_werror_flag"
21582 || test ! -s conftest.err'
21583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21584 (eval $ac_try) 2>&5
21586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21587 (exit $ac_status); }; } &&
21588 { ac_try='test -s conftest.$ac_objext'
21589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21590 (eval $ac_try) 2>&5
21592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21593 (exit $ac_status); }; }; then
21594 ac_cv_have_decl_strerror_r=yes
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21599 ac_cv_have_decl_strerror_r=no
21601 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21603 echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
21604 echo "${ECHO_T}$ac_cv_have_decl_strerror_r" >&6
21605 if test $ac_cv_have_decl_strerror_r = yes; then
21607 cat >>confdefs.h <<_ACEOF
21608 #define HAVE_DECL_STRERROR_R 1
21613 cat >>confdefs.h <<_ACEOF
21614 #define HAVE_DECL_STRERROR_R 0
21622 for ac_func in strerror_r
21624 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21625 echo "$as_me:$LINENO: checking for $ac_func" >&5
21626 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21627 if eval "test \"\${$as_ac_var+set}\" = set"; then
21628 echo $ECHO_N "(cached) $ECHO_C" >&6
21630 cat >conftest.$ac_ext <<_ACEOF
21633 cat confdefs.h >>conftest.$ac_ext
21634 cat >>conftest.$ac_ext <<_ACEOF
21635 /* end confdefs.h. */
21636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21638 #define $ac_func innocuous_$ac_func
21640 /* System header to define __stub macros and hopefully few prototypes,
21641 which can conflict with char $ac_func (); below.
21642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21643 <limits.h> exists even on freestanding compilers. */
21646 # include <limits.h>
21648 # include <assert.h>
21653 /* Override any gcc2 internal prototype to avoid an error. */
21658 /* We use char because int might match the return type of a gcc2
21659 builtin and then its argument prototype would still apply. */
21661 /* The GNU C library defines this for functions which it implements
21662 to always fail with ENOSYS. Some functions are actually named
21663 something starting with __ and the normal name is an alias. */
21664 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21667 char (*f) () = $ac_func;
21676 return f != $ac_func;
21681 rm -f conftest.$ac_objext conftest$ac_exeext
21682 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21683 (eval $ac_link) 2>conftest.er1
21685 grep -v '^ *+' conftest.er1 >conftest.err
21687 cat conftest.err >&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); } &&
21690 { ac_try='test -z "$ac_c_werror_flag"
21691 || test ! -s conftest.err'
21692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21693 (eval $ac_try) 2>&5
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21699 (eval $ac_try) 2>&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); }; }; then
21703 eval "$as_ac_var=yes"
21705 echo "$as_me: failed program was:" >&5
21706 sed 's/^/| /' conftest.$ac_ext >&5
21708 eval "$as_ac_var=no"
21710 rm -f conftest.err conftest.$ac_objext \
21711 conftest$ac_exeext conftest.$ac_ext
21713 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21714 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21715 if test `eval echo '${'$as_ac_var'}'` = yes; then
21716 cat >>confdefs.h <<_ACEOF
21717 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21723 echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
21724 echo $ECHO_N "checking whether strerror_r returns char *... $ECHO_C" >&6
21725 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
21726 echo $ECHO_N "(cached) $ECHO_C" >&6
21729 ac_cv_func_strerror_r_char_p=no
21730 if test $ac_cv_have_decl_strerror_r = yes; then
21731 cat >conftest.$ac_ext <<_ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21743 char x = *strerror_r (0, buf, sizeof buf);
21744 char *p = strerror_r (0, buf, sizeof buf);
21750 rm -f conftest.$ac_objext
21751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21752 (eval $ac_compile) 2>conftest.er1
21754 grep -v '^ *+' conftest.er1 >conftest.err
21756 cat conftest.err >&5
21757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21758 (exit $ac_status); } &&
21759 { ac_try='test -z "$ac_c_werror_flag"
21760 || test ! -s conftest.err'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; } &&
21766 { ac_try='test -s conftest.$ac_objext'
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_func_strerror_r_char_p=yes
21774 echo "$as_me: failed program was:" >&5
21775 sed 's/^/| /' conftest.$ac_ext >&5
21778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21780 # strerror_r is not declared. Choose between
21781 # systems that have relatively inaccessible declarations for the
21782 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
21783 # former has a strerror_r that returns char*, while the latter
21784 # has a strerror_r that returns `int'.
21785 # This test should segfault on the DEC system.
21786 if test "$cross_compiling" = yes; then
21789 cat >conftest.$ac_ext <<_ACEOF
21792 cat confdefs.h >>conftest.$ac_ext
21793 cat >>conftest.$ac_ext <<_ACEOF
21794 /* end confdefs.h. */
21795 $ac_includes_default
21796 extern char *strerror_r ();
21801 char x = *strerror_r (0, buf, sizeof buf);
21802 exit (!isalpha (x));
21807 rm -f conftest$ac_exeext
21808 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21809 (eval $ac_link) 2>&5
21811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21812 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ac_cv_func_strerror_r_char_p=yes
21820 echo "$as_me: program exited with status $ac_status" >&5
21821 echo "$as_me: failed program was:" >&5
21822 sed 's/^/| /' conftest.$ac_ext >&5
21825 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21830 echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
21831 echo "${ECHO_T}$ac_cv_func_strerror_r_char_p" >&6
21832 if test $ac_cv_func_strerror_r_char_p = yes; then
21834 cat >>confdefs.h <<\_ACEOF
21835 #define STRERROR_R_CHAR_P 1
21847 for ac_func in strchr strdup strstr timegm gmtime_r strtok_r strcasecmp
21849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21850 echo "$as_me:$LINENO: checking for $ac_func" >&5
21851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21852 if eval "test \"\${$as_ac_var+set}\" = set"; then
21853 echo $ECHO_N "(cached) $ECHO_C" >&6
21855 cat >conftest.$ac_ext <<_ACEOF
21858 cat confdefs.h >>conftest.$ac_ext
21859 cat >>conftest.$ac_ext <<_ACEOF
21860 /* end confdefs.h. */
21861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21863 #define $ac_func innocuous_$ac_func
21865 /* System header to define __stub macros and hopefully few prototypes,
21866 which can conflict with char $ac_func (); below.
21867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21868 <limits.h> exists even on freestanding compilers. */
21871 # include <limits.h>
21873 # include <assert.h>
21878 /* Override any gcc2 internal prototype to avoid an error. */
21883 /* We use char because int might match the return type of a gcc2
21884 builtin and then its argument prototype would still apply. */
21886 /* The GNU C library defines this for functions which it implements
21887 to always fail with ENOSYS. Some functions are actually named
21888 something starting with __ and the normal name is an alias. */
21889 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21892 char (*f) () = $ac_func;
21901 return f != $ac_func;
21906 rm -f conftest.$ac_objext conftest$ac_exeext
21907 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21908 (eval $ac_link) 2>conftest.er1
21910 grep -v '^ *+' conftest.er1 >conftest.err
21912 cat conftest.err >&5
21913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21914 (exit $ac_status); } &&
21915 { ac_try='test -z "$ac_c_werror_flag"
21916 || test ! -s conftest.err'
21917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21918 (eval $ac_try) 2>&5
21920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21921 (exit $ac_status); }; } &&
21922 { ac_try='test -s conftest$ac_exeext'
21923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21924 (eval $ac_try) 2>&5
21926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21927 (exit $ac_status); }; }; then
21928 eval "$as_ac_var=yes"
21930 echo "$as_me: failed program was:" >&5
21931 sed 's/^/| /' conftest.$ac_ext >&5
21933 eval "$as_ac_var=no"
21935 rm -f conftest.err conftest.$ac_objext \
21936 conftest$ac_exeext conftest.$ac_ext
21938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21939 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21940 if test `eval echo '${'$as_ac_var'}'` = yes; then
21941 cat >>confdefs.h <<_ACEOF
21942 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21949 # checks for pthreads
21955 ac_cpp='$CPP $CPPFLAGS'
21956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21962 # We used to check for pthread.h first, but this fails if pthread.h
21963 # requires special compiler flags (e.g. on True64 or Sequent).
21964 # It gets checked for in the link test anyway.
21966 # First of all, check if the user has set any of the PTHREAD_LIBS,
21967 # etcetera environment variables, and if threads linking works using
21969 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
21970 save_CFLAGS="$CFLAGS"
21971 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
21973 LIBS="$PTHREAD_LIBS $LIBS"
21974 echo "$as_me:$LINENO: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
21975 echo $ECHO_N "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... $ECHO_C" >&6
21976 cat >conftest.$ac_ext <<_ACEOF
21979 cat confdefs.h >>conftest.$ac_ext
21980 cat >>conftest.$ac_ext <<_ACEOF
21981 /* end confdefs.h. */
21983 /* Override any gcc2 internal prototype to avoid an error. */
21987 /* We use char because int might match the return type of a gcc2
21988 builtin and then its argument prototype would still apply. */
21989 char pthread_join ();
21998 rm -f conftest.$ac_objext conftest$ac_exeext
21999 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22000 (eval $ac_link) 2>conftest.er1
22002 grep -v '^ *+' conftest.er1 >conftest.err
22004 cat conftest.err >&5
22005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22006 (exit $ac_status); } &&
22007 { ac_try='test -z "$ac_c_werror_flag"
22008 || test ! -s conftest.err'
22009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22010 (eval $ac_try) 2>&5
22012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22013 (exit $ac_status); }; } &&
22014 { ac_try='test -s conftest$ac_exeext'
22015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22016 (eval $ac_try) 2>&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); }; }; then
22022 echo "$as_me: failed program was:" >&5
22023 sed 's/^/| /' conftest.$ac_ext >&5
22026 rm -f conftest.err conftest.$ac_objext \
22027 conftest$ac_exeext conftest.$ac_ext
22028 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22029 echo "${ECHO_T}$acx_pthread_ok" >&6
22030 if test x"$acx_pthread_ok" = xno; then
22035 CFLAGS="$save_CFLAGS"
22038 # We must check for the threads library under a number of different
22039 # names; the ordering is very important because some systems
22040 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
22041 # libraries is broken (non-POSIX).
22043 # Create a list of thread flags to try. Items starting with a "-" are
22044 # C compiler flags, and other items are library names, except for "none"
22045 # which indicates that we try without any flags at all, and "pthread-config"
22046 # which is a program returning the flags for the Pth emulation library.
22048 acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
22050 # The ordering *is* (sometimes) important. Some notes on the
22051 # individual items follow:
22053 # pthreads: AIX (must check this before -lpthread)
22054 # none: in case threads are in libc; should be tried before -Kthread and
22055 # other compiler flags to prevent continual compiler warnings
22056 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
22057 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
22058 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
22059 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
22060 # -pthreads: Solaris/gcc
22061 # -mthreads: Mingw32/gcc, Lynx/gcc
22062 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
22063 # doesn't hurt to check since this sometimes defines pthreads too;
22064 # also defines -D_REENTRANT)
22065 # ... -mt is also the pthreads flag for HP/aCC
22066 # pthread: Linux, etcetera
22067 # --thread-safe: KAI C++
22068 # pthread-config: use pthread-config program (for GNU Pth library)
22070 case "${host_cpu}-${host_os}" in
22073 # On Solaris (at least, for some versions), libc contains stubbed
22074 # (non-functional) versions of the pthreads routines, so link-based
22075 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
22076 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
22077 # a function called by this macro, so we could check for that, but
22078 # who knows whether they'll stub that too in a future libc.) So,
22079 # we'll just look for -pthreads and -lpthread first:
22081 acx_pthread_flags="-pthreads pthread -mt -pthread $acx_pthread_flags"
22085 if test x"$acx_pthread_ok" = xno; then
22086 for flag in $acx_pthread_flags; do
22090 echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
22091 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6
22095 echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
22096 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6
22097 PTHREAD_CFLAGS="$flag"
22101 # Extract the first word of "pthread-config", so it can be a program name with args.
22102 set dummy pthread-config; ac_word=$2
22103 echo "$as_me:$LINENO: checking for $ac_word" >&5
22104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22105 if test "${ac_cv_prog_acx_pthread_config+set}" = set; then
22106 echo $ECHO_N "(cached) $ECHO_C" >&6
22108 if test -n "$acx_pthread_config"; then
22109 ac_cv_prog_acx_pthread_config="$acx_pthread_config" # Let the user override the test.
22111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22112 for as_dir in $PATH
22115 test -z "$as_dir" && as_dir=.
22116 for ac_exec_ext in '' $ac_executable_extensions; do
22117 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22118 ac_cv_prog_acx_pthread_config="yes"
22119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22125 test -z "$ac_cv_prog_acx_pthread_config" && ac_cv_prog_acx_pthread_config="no"
22128 acx_pthread_config=$ac_cv_prog_acx_pthread_config
22129 if test -n "$acx_pthread_config"; then
22130 echo "$as_me:$LINENO: result: $acx_pthread_config" >&5
22131 echo "${ECHO_T}$acx_pthread_config" >&6
22133 echo "$as_me:$LINENO: result: no" >&5
22134 echo "${ECHO_T}no" >&6
22137 if test x"$acx_pthread_config" = xno; then continue; fi
22138 PTHREAD_CFLAGS="`pthread-config --cflags`"
22139 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
22143 echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
22144 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6
22145 PTHREAD_LIBS="-l$flag"
22150 save_CFLAGS="$CFLAGS"
22151 LIBS="$PTHREAD_LIBS $LIBS"
22152 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22154 # Check for various functions. We must include pthread.h,
22155 # since some functions may be macros. (On the Sequent, we
22156 # need a special flag -Kthread to make this header compile.)
22157 # We check for pthread_join because it is in -lpthread on IRIX
22158 # while pthread_create is in libc. We check for pthread_attr_init
22159 # due to DEC craziness with -lpthreads. We check for
22160 # pthread_cleanup_push because it is one of the few pthread
22161 # functions on Solaris that doesn't have a non-functional libc stub.
22162 # We try pthread_create on general principles.
22163 cat >conftest.$ac_ext <<_ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <pthread.h>
22173 pthread_t th; pthread_join(th, 0);
22174 pthread_attr_init(0); pthread_cleanup_push(0, 0);
22175 pthread_create(0,0,0,0); pthread_cleanup_pop(0);
22180 rm -f conftest.$ac_objext conftest$ac_exeext
22181 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22182 (eval $ac_link) 2>conftest.er1
22184 grep -v '^ *+' conftest.er1 >conftest.err
22186 cat conftest.err >&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } &&
22189 { ac_try='test -z "$ac_c_werror_flag"
22190 || test ! -s conftest.err'
22191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22192 (eval $ac_try) 2>&5
22194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22195 (exit $ac_status); }; } &&
22196 { ac_try='test -s conftest$ac_exeext'
22197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22198 (eval $ac_try) 2>&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); }; }; then
22204 echo "$as_me: failed program was:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22208 rm -f conftest.err conftest.$ac_objext \
22209 conftest$ac_exeext conftest.$ac_ext
22212 CFLAGS="$save_CFLAGS"
22214 echo "$as_me:$LINENO: result: $acx_pthread_ok" >&5
22215 echo "${ECHO_T}$acx_pthread_ok" >&6
22216 if test "x$acx_pthread_ok" = xyes; then
22225 # Various other checks:
22226 if test "x$acx_pthread_ok" = xyes; then
22228 LIBS="$PTHREAD_LIBS $LIBS"
22229 save_CFLAGS="$CFLAGS"
22230 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
22232 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
22233 echo "$as_me:$LINENO: checking for joinable pthread attribute" >&5
22234 echo $ECHO_N "checking for joinable pthread attribute... $ECHO_C" >&6
22236 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <pthread.h>
22247 int attr=$attr; return attr;
22252 rm -f conftest.$ac_objext conftest$ac_exeext
22253 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22254 (eval $ac_link) 2>conftest.er1
22256 grep -v '^ *+' conftest.er1 >conftest.err
22258 cat conftest.err >&5
22259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22260 (exit $ac_status); } &&
22261 { ac_try='test -z "$ac_c_werror_flag"
22262 || test ! -s conftest.err'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; } &&
22268 { ac_try='test -s conftest$ac_exeext'
22269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22270 (eval $ac_try) 2>&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); }; }; then
22274 attr_name=$attr; break
22276 echo "$as_me: failed program was:" >&5
22277 sed 's/^/| /' conftest.$ac_ext >&5
22280 rm -f conftest.err conftest.$ac_objext \
22281 conftest$ac_exeext conftest.$ac_ext
22283 echo "$as_me:$LINENO: result: $attr_name" >&5
22284 echo "${ECHO_T}$attr_name" >&6
22285 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
22287 cat >>confdefs.h <<_ACEOF
22288 #define PTHREAD_CREATE_JOINABLE $attr_name
22293 echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
22294 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6
22296 case "${host_cpu}-${host_os}" in
22297 *-aix* | *-freebsd*) flag="-D_THREAD_SAFE";;
22298 *-osf* | *-hpux*) flag="-D_REENTRANT";;
22300 if test "$GCC" = "yes"; then
22301 flag="-D_REENTRANT"
22303 flag="-mt -D_REENTRANT"
22307 echo "$as_me:$LINENO: result: ${flag}" >&5
22308 echo "${ECHO_T}${flag}" >&6
22309 if test "x$flag" != xno; then
22310 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
22314 CFLAGS="$save_CFLAGS"
22316 # More AIX lossage: must compile with xlc_r or cc_r
22317 if test x"$GCC" != xyes; then
22318 for ac_prog in xlc_r cc_r
22320 # Extract the first word of "$ac_prog", so it can be a program name with args.
22321 set dummy $ac_prog; ac_word=$2
22322 echo "$as_me:$LINENO: checking for $ac_word" >&5
22323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22324 if test "${ac_cv_prog_PTHREAD_CC+set}" = set; then
22325 echo $ECHO_N "(cached) $ECHO_C" >&6
22327 if test -n "$PTHREAD_CC"; then
22328 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
22330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22331 for as_dir in $PATH
22334 test -z "$as_dir" && as_dir=.
22335 for ac_exec_ext in '' $ac_executable_extensions; do
22336 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22337 ac_cv_prog_PTHREAD_CC="$ac_prog"
22338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22346 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
22347 if test -n "$PTHREAD_CC"; then
22348 echo "$as_me:$LINENO: result: $PTHREAD_CC" >&5
22349 echo "${ECHO_T}$PTHREAD_CC" >&6
22351 echo "$as_me:$LINENO: result: no" >&5
22352 echo "${ECHO_T}no" >&6
22355 test -n "$PTHREAD_CC" && break
22357 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
22370 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
22371 if test x"$acx_pthread_ok" = xyes; then
22372 enable_threads="pthread"
22376 enable_threads="no"
22379 ac_cpp='$CPP $CPPFLAGS'
22380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
22385 if test $enable_threads != "pthread"; then
22386 { { echo "$as_me:$LINENO: error: unable to find pthreads, currently this is required" >&5
22387 echo "$as_me: error: unable to find pthreads, currently this is required" >&2;}
22388 { (exit 1); exit 1; }; }
22391 cat >>confdefs.h <<\_ACEOF
22392 #define HAVE_PTHREAD 1
22395 LIBS="$PTHREAD_LIBS $LIBS"
22396 CFLAGS="$PTHREAD_CFLAGS $CFLAGS"
22397 CXXFLAGS="$PTHREAD_CFLAGS $CXXFLAGS"
22402 # Check whether --with-openssl or --without-openssl was given.
22403 if test "${with_openssl+set}" = set; then
22404 withval="$with_openssl"
22405 if test x_$with_openssl != x_/usr; then
22406 SSLFLAGS="-I${with_openssl}/include"
22410 if test "x$SSLFLAGS" = "x" ; then
22411 # Extract the first word of "pkg-config", so it can be a program name with args.
22412 set dummy pkg-config; ac_word=$2
22413 echo "$as_me:$LINENO: checking for $ac_word" >&5
22414 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22415 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22416 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 case $PKG_CONFIG in
22420 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22424 for as_dir in $PATH
22427 test -z "$as_dir" && as_dir=.
22428 for ac_exec_ext in '' $ac_executable_extensions; do
22429 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22430 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22440 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22442 if test -n "$PKG_CONFIG"; then
22443 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22444 echo "${ECHO_T}$PKG_CONFIG" >&6
22446 echo "$as_me:$LINENO: result: no" >&5
22447 echo "${ECHO_T}no" >&6
22450 if test "x$PKG_CONFIG" != x && test "x$PKG_CONFIG" != "xno" ; then
22451 if pkg-config openssl ; then
22452 SSLFLAGS="`$PKG_CONFIG --cflags openssl`"
22454 { { echo "$as_me:$LINENO: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&5
22455 echo "$as_me: error: OpenSSL not supported by pkg-config, try --with-openssl instead" >&2;}
22456 { (exit 1); exit 1; }; }
22461 echo "$as_me:$LINENO: checking for OpenSSL cflags" >&5
22462 echo $ECHO_N "checking for OpenSSL cflags... $ECHO_C" >&6
22463 echo "$as_me:$LINENO: result: $SSLFLAGS" >&5
22464 echo "${ECHO_T}$SSLFLAGS" >&6
22465 CPPFLAGS="$SSLFLAGS $CPPFLAGS"
22467 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22468 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22469 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22470 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22471 echo $ECHO_N "(cached) $ECHO_C" >&6
22473 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22474 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22476 # Is the header compilable?
22477 echo "$as_me:$LINENO: checking openssl/x509.h usability" >&5
22478 echo $ECHO_N "checking openssl/x509.h usability... $ECHO_C" >&6
22479 cat >conftest.$ac_ext <<_ACEOF
22482 cat confdefs.h >>conftest.$ac_ext
22483 cat >>conftest.$ac_ext <<_ACEOF
22484 /* end confdefs.h. */
22485 $ac_includes_default
22486 #include <openssl/x509.h>
22488 rm -f conftest.$ac_objext
22489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22490 (eval $ac_compile) 2>conftest.er1
22492 grep -v '^ *+' conftest.er1 >conftest.err
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } &&
22497 { ac_try='test -z "$ac_c_werror_flag"
22498 || test ! -s conftest.err'
22499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22500 (eval $ac_try) 2>&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); }; } &&
22504 { ac_try='test -s conftest.$ac_objext'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; }; then
22510 ac_header_compiler=yes
22512 echo "$as_me: failed program was:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_header_compiler=no
22517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22518 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22519 echo "${ECHO_T}$ac_header_compiler" >&6
22521 # Is the header present?
22522 echo "$as_me:$LINENO: checking openssl/x509.h presence" >&5
22523 echo $ECHO_N "checking openssl/x509.h presence... $ECHO_C" >&6
22524 cat >conftest.$ac_ext <<_ACEOF
22527 cat confdefs.h >>conftest.$ac_ext
22528 cat >>conftest.$ac_ext <<_ACEOF
22529 /* end confdefs.h. */
22530 #include <openssl/x509.h>
22532 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22533 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22535 grep -v '^ *+' conftest.er1 >conftest.err
22537 cat conftest.err >&5
22538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22539 (exit $ac_status); } >/dev/null; then
22540 if test -s conftest.err; then
22541 ac_cpp_err=$ac_c_preproc_warn_flag
22542 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22549 if test -z "$ac_cpp_err"; then
22550 ac_header_preproc=yes
22552 echo "$as_me: failed program was:" >&5
22553 sed 's/^/| /' conftest.$ac_ext >&5
22555 ac_header_preproc=no
22557 rm -f conftest.err conftest.$ac_ext
22558 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22559 echo "${ECHO_T}$ac_header_preproc" >&6
22561 # So? What about this header?
22562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22564 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&5
22565 echo "$as_me: WARNING: openssl/x509.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22566 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the compiler's result" >&5
22567 echo "$as_me: WARNING: openssl/x509.h: proceeding with the compiler's result" >&2;}
22568 ac_header_preproc=yes
22571 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: present but cannot be compiled" >&5
22572 echo "$as_me: WARNING: openssl/x509.h: present but cannot be compiled" >&2;}
22573 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&5
22574 echo "$as_me: WARNING: openssl/x509.h: check for missing prerequisite headers?" >&2;}
22575 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: see the Autoconf documentation" >&5
22576 echo "$as_me: WARNING: openssl/x509.h: see the Autoconf documentation" >&2;}
22577 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&5
22578 echo "$as_me: WARNING: openssl/x509.h: section \"Present But Cannot Be Compiled\"" >&2;}
22579 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&5
22580 echo "$as_me: WARNING: openssl/x509.h: proceeding with the preprocessor's result" >&2;}
22581 { echo "$as_me:$LINENO: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&5
22582 echo "$as_me: WARNING: openssl/x509.h: in the future, the compiler will take precedence" >&2;}
22585 ## --------------------------------------------- ##
22586 ## Report this to shibboleth-users@internet2.edu ##
22587 ## --------------------------------------------- ##
22590 sed "s/^/$as_me: WARNING: /" >&2
22593 echo "$as_me:$LINENO: checking for openssl/x509.h" >&5
22594 echo $ECHO_N "checking for openssl/x509.h... $ECHO_C" >&6
22595 if test "${ac_cv_header_openssl_x509_h+set}" = set; then
22596 echo $ECHO_N "(cached) $ECHO_C" >&6
22598 ac_cv_header_openssl_x509_h=$ac_header_preproc
22600 echo "$as_me:$LINENO: result: $ac_cv_header_openssl_x509_h" >&5
22601 echo "${ECHO_T}$ac_cv_header_openssl_x509_h" >&6
22604 if test $ac_cv_header_openssl_x509_h = yes; then
22607 { { echo "$as_me:$LINENO: error: unable to find openssl header files" >&5
22608 echo "$as_me: error: unable to find openssl header files" >&2;}
22609 { (exit 1); exit 1; }; }
22615 ac_cpp='$CXXCPP $CPPFLAGS'
22616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22622 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22623 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22624 if test "${ac_cv_cxx_namespaces+set}" = set; then
22625 echo $ECHO_N "(cached) $ECHO_C" >&6
22630 ac_cpp='$CXXCPP $CPPFLAGS'
22631 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22632 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22633 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22635 cat >conftest.$ac_ext <<_ACEOF
22638 cat confdefs.h >>conftest.$ac_ext
22639 cat >>conftest.$ac_ext <<_ACEOF
22640 /* end confdefs.h. */
22641 namespace Outer { namespace Inner { int i = 0; }}
22645 using namespace Outer::Inner; return i;
22650 rm -f conftest.$ac_objext
22651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22652 (eval $ac_compile) 2>conftest.er1
22654 grep -v '^ *+' conftest.er1 >conftest.err
22656 cat conftest.err >&5
22657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22658 (exit $ac_status); } &&
22659 { ac_try='test -z "$ac_cxx_werror_flag"
22660 || test ! -s conftest.err'
22661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22662 (eval $ac_try) 2>&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); }; } &&
22666 { ac_try='test -s conftest.$ac_objext'
22667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22668 (eval $ac_try) 2>&5
22670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22671 (exit $ac_status); }; }; then
22672 ac_cv_cxx_namespaces=yes
22674 echo "$as_me: failed program was:" >&5
22675 sed 's/^/| /' conftest.$ac_ext >&5
22677 ac_cv_cxx_namespaces=no
22679 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22681 ac_cpp='$CXXCPP $CPPFLAGS'
22682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22688 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22689 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22690 if test "$ac_cv_cxx_namespaces" = yes; then
22692 cat >>confdefs.h <<\_ACEOF
22693 #define HAVE_NAMESPACES 1
22698 echo "$as_me:$LINENO: checking whether the compiler supports Standard Template Library" >&5
22699 echo $ECHO_N "checking whether the compiler supports Standard Template Library... $ECHO_C" >&6
22700 if test "${ac_cv_cxx_have_stl+set}" = set; then
22701 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 ac_cpp='$CXXCPP $CPPFLAGS'
22708 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22709 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22710 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22712 cat >conftest.$ac_ext <<_ACEOF
22715 cat confdefs.h >>conftest.$ac_ext
22716 cat >>conftest.$ac_ext <<_ACEOF
22717 /* end confdefs.h. */
22720 #ifdef HAVE_NAMESPACES
22721 using namespace std;
22726 list<int> x; x.push_back(5);
22727 list<int>::iterator iter = x.begin(); if (iter != x.end()) ++iter; return 0;
22732 rm -f conftest.$ac_objext
22733 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22734 (eval $ac_compile) 2>conftest.er1
22736 grep -v '^ *+' conftest.er1 >conftest.err
22738 cat conftest.err >&5
22739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740 (exit $ac_status); } &&
22741 { ac_try='test -z "$ac_cxx_werror_flag"
22742 || test ! -s conftest.err'
22743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22744 (eval $ac_try) 2>&5
22746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22747 (exit $ac_status); }; } &&
22748 { ac_try='test -s conftest.$ac_objext'
22749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22750 (eval $ac_try) 2>&5
22752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22753 (exit $ac_status); }; }; then
22754 ac_cv_cxx_have_stl=yes
22756 echo "$as_me: failed program was:" >&5
22757 sed 's/^/| /' conftest.$ac_ext >&5
22759 ac_cv_cxx_have_stl=no
22761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22763 ac_cpp='$CXXCPP $CPPFLAGS'
22764 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22765 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22766 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22770 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_stl" >&5
22771 echo "${ECHO_T}$ac_cv_cxx_have_stl" >&6
22772 if test "x_$ac_cv_cxx_have_stl" != x_yes; then
22773 { { echo "$as_me:$LINENO: error: C++ Standard Template Libary unsupported" >&5
22774 echo "$as_me: error: C++ Standard Template Libary unsupported" >&2;}
22775 { (exit 1); exit 1; }; }
22778 echo "$as_me:$LINENO: checking whether the compiler implements namespaces" >&5
22779 echo $ECHO_N "checking whether the compiler implements namespaces... $ECHO_C" >&6
22780 if test "${ac_cv_cxx_namespaces+set}" = set; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 ac_cpp='$CXXCPP $CPPFLAGS'
22787 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22788 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22789 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22791 cat >conftest.$ac_ext <<_ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 namespace Outer { namespace Inner { int i = 0; }}
22801 using namespace Outer::Inner; return i;
22806 rm -f conftest.$ac_objext
22807 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22808 (eval $ac_compile) 2>conftest.er1
22810 grep -v '^ *+' conftest.er1 >conftest.err
22812 cat conftest.err >&5
22813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22814 (exit $ac_status); } &&
22815 { ac_try='test -z "$ac_cxx_werror_flag"
22816 || test ! -s conftest.err'
22817 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22818 (eval $ac_try) 2>&5
22820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22821 (exit $ac_status); }; } &&
22822 { ac_try='test -s conftest.$ac_objext'
22823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22824 (eval $ac_try) 2>&5
22826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22827 (exit $ac_status); }; }; then
22828 ac_cv_cxx_namespaces=yes
22830 echo "$as_me: failed program was:" >&5
22831 sed 's/^/| /' conftest.$ac_ext >&5
22833 ac_cv_cxx_namespaces=no
22835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22837 ac_cpp='$CXXCPP $CPPFLAGS'
22838 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22839 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22840 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22844 echo "$as_me:$LINENO: result: $ac_cv_cxx_namespaces" >&5
22845 echo "${ECHO_T}$ac_cv_cxx_namespaces" >&6
22846 if test "$ac_cv_cxx_namespaces" = yes; then
22848 cat >>confdefs.h <<\_ACEOF
22849 #define HAVE_NAMESPACES 1
22855 # Thank you Solaris, really.
22856 echo "$as_me:$LINENO: checking for ctime_r" >&5
22857 echo $ECHO_N "checking for ctime_r... $ECHO_C" >&6
22858 if test -z "$ac_cv_ctime_args"; then
22859 cat >conftest.$ac_ext <<_ACEOF
22862 cat confdefs.h >>conftest.$ac_ext
22863 cat >>conftest.$ac_ext <<_ACEOF
22864 /* end confdefs.h. */
22872 ctime_r(&clock, buf);
22878 rm -f conftest.$ac_objext
22879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22880 (eval $ac_compile) 2>conftest.er1
22882 grep -v '^ *+' conftest.er1 >conftest.err
22884 cat conftest.err >&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); } &&
22887 { ac_try='test -z "$ac_cxx_werror_flag"
22888 || test ! -s conftest.err'
22889 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22890 (eval $ac_try) 2>&5
22892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893 (exit $ac_status); }; } &&
22894 { ac_try='test -s conftest.$ac_objext'
22895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22896 (eval $ac_try) 2>&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); }; }; then
22902 echo "$as_me: failed program was:" >&5
22903 sed 's/^/| /' conftest.$ac_ext >&5
22906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22908 cat >conftest.$ac_ext <<_ACEOF
22911 cat confdefs.h >>conftest.$ac_ext
22912 cat >>conftest.$ac_ext <<_ACEOF
22913 /* end confdefs.h. */
22921 ctime_r(&clock, buf, 26);
22927 rm -f conftest.$ac_objext
22928 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22929 (eval $ac_compile) 2>conftest.er1
22931 grep -v '^ *+' conftest.er1 >conftest.err
22933 cat conftest.err >&5
22934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22935 (exit $ac_status); } &&
22936 { ac_try='test -z "$ac_cxx_werror_flag"
22937 || test ! -s conftest.err'
22938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22939 (eval $ac_try) 2>&5
22941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22942 (exit $ac_status); }; } &&
22943 { ac_try='test -s conftest.$ac_objext'
22944 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22945 (eval $ac_try) 2>&5
22947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22948 (exit $ac_status); }; }; then
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22955 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22957 if test -z "$ac_cv_ctime_args"; then
22958 echo "$as_me:$LINENO: result: no" >&5
22959 echo "${ECHO_T}no" >&6
22961 if test "$ac_cv_ctime_args" = 2; then
22963 cat >>confdefs.h <<\_ACEOF
22964 #define HAVE_CTIME_R_2 1
22967 elif test "$ac_cv_ctime_args" = 3; then
22969 cat >>confdefs.h <<\_ACEOF
22970 #define HAVE_CTIME_R_3 1
22974 echo "$as_me:$LINENO: result: yes, and it takes $ac_cv_ctime_args arguments" >&5
22975 echo "${ECHO_T}yes, and it takes $ac_cv_ctime_args arguments" >&6
22978 # log4shib settings (favor this version over the log4cpp code)
22979 # Extract the first word of "log4shib-config", so it can be a program name with args.
22980 set dummy log4shib-config; ac_word=$2
22981 echo "$as_me:$LINENO: checking for $ac_word" >&5
22982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22983 if test "${ac_cv_path_LOG4SHIB_CONFIG+set}" = set; then
22984 echo $ECHO_N "(cached) $ECHO_C" >&6
22986 case $LOG4SHIB_CONFIG in
22988 ac_cv_path_LOG4SHIB_CONFIG="$LOG4SHIB_CONFIG" # Let the user override the test with a path.
22991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22992 for as_dir in $PATH
22995 test -z "$as_dir" && as_dir=.
22996 for ac_exec_ext in '' $ac_executable_extensions; do
22997 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22998 ac_cv_path_LOG4SHIB_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22999 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23008 LOG4SHIB_CONFIG=$ac_cv_path_LOG4SHIB_CONFIG
23010 if test -n "$LOG4SHIB_CONFIG"; then
23011 echo "$as_me:$LINENO: result: $LOG4SHIB_CONFIG" >&5
23012 echo "${ECHO_T}$LOG4SHIB_CONFIG" >&6
23014 echo "$as_me:$LINENO: result: no" >&5
23015 echo "${ECHO_T}no" >&6
23019 # Check whether --with-log4shib or --without-log4shib was given.
23020 if test "${with_log4shib+set}" = set; then
23021 withval="$with_log4shib"
23023 LOG4SHIB_CONFIG="${with_log4shib}"
23024 if ! test -f "${LOG4SHIB_CONFIG}" ; then
23025 LOG4SHIB_CONFIG="${with_log4shib}/bin/log4shib-config"
23029 if test -f "${LOG4SHIB_CONFIG}"; then
23030 LDFLAGS="`${LOG4SHIB_CONFIG} --libs` $LDFLAGS"
23031 CPPFLAGS="`${LOG4SHIB_CONFIG} --cflags` $CPPFLAGS"
23033 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23034 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23035 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23036 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23040 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23042 # Is the header compilable?
23043 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh usability" >&5
23044 echo $ECHO_N "checking log4shib/CategoryStream.hh usability... $ECHO_C" >&6
23045 cat >conftest.$ac_ext <<_ACEOF
23048 cat confdefs.h >>conftest.$ac_ext
23049 cat >>conftest.$ac_ext <<_ACEOF
23050 /* end confdefs.h. */
23051 $ac_includes_default
23052 #include <log4shib/CategoryStream.hh>
23054 rm -f conftest.$ac_objext
23055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23056 (eval $ac_compile) 2>conftest.er1
23058 grep -v '^ *+' conftest.er1 >conftest.err
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } &&
23063 { ac_try='test -z "$ac_cxx_werror_flag"
23064 || test ! -s conftest.err'
23065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23066 (eval $ac_try) 2>&5
23068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23069 (exit $ac_status); }; } &&
23070 { ac_try='test -s conftest.$ac_objext'
23071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23072 (eval $ac_try) 2>&5
23074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23075 (exit $ac_status); }; }; then
23076 ac_header_compiler=yes
23078 echo "$as_me: failed program was:" >&5
23079 sed 's/^/| /' conftest.$ac_ext >&5
23081 ac_header_compiler=no
23083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23084 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23085 echo "${ECHO_T}$ac_header_compiler" >&6
23087 # Is the header present?
23088 echo "$as_me:$LINENO: checking log4shib/CategoryStream.hh presence" >&5
23089 echo $ECHO_N "checking log4shib/CategoryStream.hh presence... $ECHO_C" >&6
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23096 #include <log4shib/CategoryStream.hh>
23098 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23099 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23101 grep -v '^ *+' conftest.er1 >conftest.err
23103 cat conftest.err >&5
23104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23105 (exit $ac_status); } >/dev/null; then
23106 if test -s conftest.err; then
23107 ac_cpp_err=$ac_cxx_preproc_warn_flag
23108 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23115 if test -z "$ac_cpp_err"; then
23116 ac_header_preproc=yes
23118 echo "$as_me: failed program was:" >&5
23119 sed 's/^/| /' conftest.$ac_ext >&5
23121 ac_header_preproc=no
23123 rm -f conftest.err conftest.$ac_ext
23124 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23125 echo "${ECHO_T}$ac_header_preproc" >&6
23127 # So? What about this header?
23128 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23130 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23131 echo "$as_me: WARNING: log4shib/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23132 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&5
23133 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23134 ac_header_preproc=yes
23137 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&5
23138 echo "$as_me: WARNING: log4shib/CategoryStream.hh: present but cannot be compiled" >&2;}
23139 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&5
23140 echo "$as_me: WARNING: log4shib/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23141 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&5
23142 echo "$as_me: WARNING: log4shib/CategoryStream.hh: see the Autoconf documentation" >&2;}
23143 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23144 echo "$as_me: WARNING: log4shib/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23145 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23146 echo "$as_me: WARNING: log4shib/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23147 { echo "$as_me:$LINENO: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23148 echo "$as_me: WARNING: log4shib/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23151 ## --------------------------------------------- ##
23152 ## Report this to shibboleth-users@internet2.edu ##
23153 ## --------------------------------------------- ##
23156 sed "s/^/$as_me: WARNING: /" >&2
23159 echo "$as_me:$LINENO: checking for log4shib/CategoryStream.hh" >&5
23160 echo $ECHO_N "checking for log4shib/CategoryStream.hh... $ECHO_C" >&6
23161 if test "${ac_cv_header_log4shib_CategoryStream_hh+set}" = set; then
23162 echo $ECHO_N "(cached) $ECHO_C" >&6
23164 ac_cv_header_log4shib_CategoryStream_hh=$ac_header_preproc
23166 echo "$as_me:$LINENO: result: $ac_cv_header_log4shib_CategoryStream_hh" >&5
23167 echo "${ECHO_T}$ac_cv_header_log4shib_CategoryStream_hh" >&6
23170 if test $ac_cv_header_log4shib_CategoryStream_hh = yes; then
23173 { { echo "$as_me:$LINENO: error: unable to find log4shib header files" >&5
23174 echo "$as_me: error: unable to find log4shib header files" >&2;}
23175 { (exit 1); exit 1; }; }
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include <log4shib/Category.hh>
23186 #include <log4shib/CategoryStream.hh>
23190 log4shib::Category::getInstance("foo").errorStream() << log4shib::eol
23195 rm -f conftest.$ac_objext conftest$ac_exeext
23196 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23197 (eval $ac_link) 2>conftest.er1
23199 grep -v '^ *+' conftest.er1 >conftest.err
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } &&
23204 { ac_try='test -z "$ac_cxx_werror_flag"
23205 || test ! -s conftest.err'
23206 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23207 (eval $ac_try) 2>&5
23209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23210 (exit $ac_status); }; } &&
23211 { ac_try='test -s conftest$ac_exeext'
23212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23213 (eval $ac_try) 2>&5
23215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23216 (exit $ac_status); }; }; then
23218 cat >>confdefs.h <<\_ACEOF
23219 #define SHIBSP_LOG4SHIB 1
23223 echo "$as_me: failed program was:" >&5
23224 sed 's/^/| /' conftest.$ac_ext >&5
23226 { { echo "$as_me:$LINENO: error: unable to link with log4shib" >&5
23227 echo "$as_me: error: unable to link with log4shib" >&2;}
23228 { (exit 1); exit 1; }; }
23230 rm -f conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
23233 { echo "$as_me:$LINENO: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&5
23234 echo "$as_me: WARNING: log4shib-config not found, may need to use --with-log4shib option" >&2;}
23235 { echo "$as_me:$LINENO: WARNING: will look for original log4cpp library" >&5
23236 echo "$as_me: WARNING: will look for original log4cpp library" >&2;}
23239 # Extract the first word of "log4cpp-config", so it can be a program name with args.
23240 set dummy log4cpp-config; ac_word=$2
23241 echo "$as_me:$LINENO: checking for $ac_word" >&5
23242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23243 if test "${ac_cv_path_LOG4CPP_CONFIG+set}" = set; then
23244 echo $ECHO_N "(cached) $ECHO_C" >&6
23246 case $LOG4CPP_CONFIG in
23248 ac_cv_path_LOG4CPP_CONFIG="$LOG4CPP_CONFIG" # Let the user override the test with a path.
23251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23252 for as_dir in $PATH
23255 test -z "$as_dir" && as_dir=.
23256 for ac_exec_ext in '' $ac_executable_extensions; do
23257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23258 ac_cv_path_LOG4CPP_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23268 LOG4CPP_CONFIG=$ac_cv_path_LOG4CPP_CONFIG
23270 if test -n "$LOG4CPP_CONFIG"; then
23271 echo "$as_me:$LINENO: result: $LOG4CPP_CONFIG" >&5
23272 echo "${ECHO_T}$LOG4CPP_CONFIG" >&6
23274 echo "$as_me:$LINENO: result: no" >&5
23275 echo "${ECHO_T}no" >&6
23279 # Check whether --with-log4cpp or --without-log4cpp was given.
23280 if test "${with_log4cpp+set}" = set; then
23281 withval="$with_log4cpp"
23283 LOG4CPP_CONFIG="${with_log4cpp}"
23284 if ! test -f "${LOG4CPP_CONFIG}" ; then
23285 LOG4CPP_CONFIG="${with_log4cpp}/bin/log4cpp-config"
23289 if test -f "${LOG4CPP_CONFIG}"; then
23290 { echo "$as_me:$LINENO: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&5
23291 echo "$as_me: WARNING: will try to use log4cpp, note that most non-Internet2 supplied versions are not thread-safe" >&2;}
23292 LDFLAGS="`${LOG4CPP_CONFIG} --libs` $LDFLAGS"
23293 CPPFLAGS="`${LOG4CPP_CONFIG} --cflags` $CPPFLAGS"
23294 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23295 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23296 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23297 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23298 echo $ECHO_N "(cached) $ECHO_C" >&6
23300 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23301 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23303 # Is the header compilable?
23304 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh usability" >&5
23305 echo $ECHO_N "checking log4cpp/CategoryStream.hh usability... $ECHO_C" >&6
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 $ac_includes_default
23313 #include <log4cpp/CategoryStream.hh>
23315 rm -f conftest.$ac_objext
23316 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23317 (eval $ac_compile) 2>conftest.er1
23319 grep -v '^ *+' conftest.er1 >conftest.err
23321 cat conftest.err >&5
23322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23323 (exit $ac_status); } &&
23324 { ac_try='test -z "$ac_cxx_werror_flag"
23325 || test ! -s conftest.err'
23326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23327 (eval $ac_try) 2>&5
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; } &&
23331 { ac_try='test -s conftest.$ac_objext'
23332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23333 (eval $ac_try) 2>&5
23335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); }; }; then
23337 ac_header_compiler=yes
23339 echo "$as_me: failed program was:" >&5
23340 sed 's/^/| /' conftest.$ac_ext >&5
23342 ac_header_compiler=no
23344 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23345 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23346 echo "${ECHO_T}$ac_header_compiler" >&6
23348 # Is the header present?
23349 echo "$as_me:$LINENO: checking log4cpp/CategoryStream.hh presence" >&5
23350 echo $ECHO_N "checking log4cpp/CategoryStream.hh presence... $ECHO_C" >&6
23351 cat >conftest.$ac_ext <<_ACEOF
23354 cat confdefs.h >>conftest.$ac_ext
23355 cat >>conftest.$ac_ext <<_ACEOF
23356 /* end confdefs.h. */
23357 #include <log4cpp/CategoryStream.hh>
23359 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23360 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23362 grep -v '^ *+' conftest.er1 >conftest.err
23364 cat conftest.err >&5
23365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } >/dev/null; then
23367 if test -s conftest.err; then
23368 ac_cpp_err=$ac_cxx_preproc_warn_flag
23369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23376 if test -z "$ac_cpp_err"; then
23377 ac_header_preproc=yes
23379 echo "$as_me: failed program was:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ac_header_preproc=no
23384 rm -f conftest.err conftest.$ac_ext
23385 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23386 echo "${ECHO_T}$ac_header_preproc" >&6
23388 # So? What about this header?
23389 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23391 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&5
23392 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: accepted by the compiler, rejected by the preprocessor!" >&2;}
23393 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&5
23394 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the compiler's result" >&2;}
23395 ac_header_preproc=yes
23398 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&5
23399 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: present but cannot be compiled" >&2;}
23400 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&5
23401 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: check for missing prerequisite headers?" >&2;}
23402 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&5
23403 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: see the Autoconf documentation" >&2;}
23404 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&5
23405 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: section \"Present But Cannot Be Compiled\"" >&2;}
23406 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&5
23407 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: proceeding with the preprocessor's result" >&2;}
23408 { echo "$as_me:$LINENO: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&5
23409 echo "$as_me: WARNING: log4cpp/CategoryStream.hh: in the future, the compiler will take precedence" >&2;}
23412 ## --------------------------------------------- ##
23413 ## Report this to shibboleth-users@internet2.edu ##
23414 ## --------------------------------------------- ##
23417 sed "s/^/$as_me: WARNING: /" >&2
23420 echo "$as_me:$LINENO: checking for log4cpp/CategoryStream.hh" >&5
23421 echo $ECHO_N "checking for log4cpp/CategoryStream.hh... $ECHO_C" >&6
23422 if test "${ac_cv_header_log4cpp_CategoryStream_hh+set}" = set; then
23423 echo $ECHO_N "(cached) $ECHO_C" >&6
23425 ac_cv_header_log4cpp_CategoryStream_hh=$ac_header_preproc
23427 echo "$as_me:$LINENO: result: $ac_cv_header_log4cpp_CategoryStream_hh" >&5
23428 echo "${ECHO_T}$ac_cv_header_log4cpp_CategoryStream_hh" >&6
23431 if test $ac_cv_header_log4cpp_CategoryStream_hh = yes; then
23434 { { echo "$as_me:$LINENO: error: unable to find log4cpp header files" >&5
23435 echo "$as_me: error: unable to find log4cpp header files" >&2;}
23436 { (exit 1); exit 1; }; }
23440 cat >conftest.$ac_ext <<_ACEOF
23443 cat confdefs.h >>conftest.$ac_ext
23444 cat >>conftest.$ac_ext <<_ACEOF
23445 /* end confdefs.h. */
23446 #include <log4cpp/Category.hh>
23447 #include <log4cpp/CategoryStream.hh>
23451 log4cpp::Category::getInstance("foo").errorStream() << log4cpp::eol
23456 rm -f conftest.$ac_objext conftest$ac_exeext
23457 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23458 (eval $ac_link) 2>conftest.er1
23460 grep -v '^ *+' conftest.er1 >conftest.err
23462 cat conftest.err >&5
23463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23464 (exit $ac_status); } &&
23465 { ac_try='test -z "$ac_cxx_werror_flag"
23466 || test ! -s conftest.err'
23467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23468 (eval $ac_try) 2>&5
23470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23471 (exit $ac_status); }; } &&
23472 { ac_try='test -s conftest$ac_exeext'
23473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23474 (eval $ac_try) 2>&5
23476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23477 (exit $ac_status); }; }; then
23479 cat >>confdefs.h <<\_ACEOF
23480 #define SHIBSP_LOG4CPP 1
23484 echo "$as_me: failed program was:" >&5
23485 sed 's/^/| /' conftest.$ac_ext >&5
23487 { { echo "$as_me:$LINENO: error: unable to link with log4cpp, need version 1.0 or later" >&5
23488 echo "$as_me: error: unable to link with log4cpp, need version 1.0 or later" >&2;}
23489 { (exit 1); exit 1; }; }
23491 rm -f conftest.err conftest.$ac_objext \
23492 conftest$ac_exeext conftest.$ac_ext
23494 { { echo "$as_me:$LINENO: error: log4cpp-config not found, may need to use --with-log4cpp option" >&5
23495 echo "$as_me: error: log4cpp-config not found, may need to use --with-log4cpp option" >&2;}
23496 { (exit 1); exit 1; }; }
23502 # Check whether --with-xerces or --without-xerces was given.
23503 if test "${with_xerces+set}" = set; then
23504 withval="$with_xerces"
23505 if test x_$with_xerces != x_/usr; then
23506 LDFLAGS="-L${with_xerces}/lib $LDFLAGS"
23507 CPPFLAGS="-I${with_xerces}/include $CPPFLAGS"
23510 LIBS="-lxerces-c $LIBS"
23511 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23512 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23513 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23514 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23515 echo $ECHO_N "(cached) $ECHO_C" >&6
23517 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23518 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23520 # Is the header compilable?
23521 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp usability" >&5
23522 echo $ECHO_N "checking xercesc/dom/DOM.hpp usability... $ECHO_C" >&6
23523 cat >conftest.$ac_ext <<_ACEOF
23526 cat confdefs.h >>conftest.$ac_ext
23527 cat >>conftest.$ac_ext <<_ACEOF
23528 /* end confdefs.h. */
23529 $ac_includes_default
23530 #include <xercesc/dom/DOM.hpp>
23532 rm -f conftest.$ac_objext
23533 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23534 (eval $ac_compile) 2>conftest.er1
23536 grep -v '^ *+' conftest.er1 >conftest.err
23538 cat conftest.err >&5
23539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23540 (exit $ac_status); } &&
23541 { ac_try='test -z "$ac_cxx_werror_flag"
23542 || test ! -s conftest.err'
23543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23544 (eval $ac_try) 2>&5
23546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23547 (exit $ac_status); }; } &&
23548 { ac_try='test -s conftest.$ac_objext'
23549 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23550 (eval $ac_try) 2>&5
23552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23553 (exit $ac_status); }; }; then
23554 ac_header_compiler=yes
23556 echo "$as_me: failed program was:" >&5
23557 sed 's/^/| /' conftest.$ac_ext >&5
23559 ac_header_compiler=no
23561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23562 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23563 echo "${ECHO_T}$ac_header_compiler" >&6
23565 # Is the header present?
23566 echo "$as_me:$LINENO: checking xercesc/dom/DOM.hpp presence" >&5
23567 echo $ECHO_N "checking xercesc/dom/DOM.hpp presence... $ECHO_C" >&6
23568 cat >conftest.$ac_ext <<_ACEOF
23571 cat confdefs.h >>conftest.$ac_ext
23572 cat >>conftest.$ac_ext <<_ACEOF
23573 /* end confdefs.h. */
23574 #include <xercesc/dom/DOM.hpp>
23576 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23577 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); } >/dev/null; then
23584 if test -s conftest.err; then
23585 ac_cpp_err=$ac_cxx_preproc_warn_flag
23586 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23593 if test -z "$ac_cpp_err"; then
23594 ac_header_preproc=yes
23596 echo "$as_me: failed program was:" >&5
23597 sed 's/^/| /' conftest.$ac_ext >&5
23599 ac_header_preproc=no
23601 rm -f conftest.err conftest.$ac_ext
23602 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23603 echo "${ECHO_T}$ac_header_preproc" >&6
23605 # So? What about this header?
23606 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23608 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
23609 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
23610 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&5
23611 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the compiler's result" >&2;}
23612 ac_header_preproc=yes
23615 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&5
23616 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: present but cannot be compiled" >&2;}
23617 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&5
23618 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: check for missing prerequisite headers?" >&2;}
23619 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&5
23620 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: see the Autoconf documentation" >&2;}
23621 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&5
23622 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
23623 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&5
23624 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: proceeding with the preprocessor's result" >&2;}
23625 { echo "$as_me:$LINENO: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&5
23626 echo "$as_me: WARNING: xercesc/dom/DOM.hpp: in the future, the compiler will take precedence" >&2;}
23629 ## --------------------------------------------- ##
23630 ## Report this to shibboleth-users@internet2.edu ##
23631 ## --------------------------------------------- ##
23634 sed "s/^/$as_me: WARNING: /" >&2
23637 echo "$as_me:$LINENO: checking for xercesc/dom/DOM.hpp" >&5
23638 echo $ECHO_N "checking for xercesc/dom/DOM.hpp... $ECHO_C" >&6
23639 if test "${ac_cv_header_xercesc_dom_DOM_hpp+set}" = set; then
23640 echo $ECHO_N "(cached) $ECHO_C" >&6
23642 ac_cv_header_xercesc_dom_DOM_hpp=$ac_header_preproc
23644 echo "$as_me:$LINENO: result: $ac_cv_header_xercesc_dom_DOM_hpp" >&5
23645 echo "${ECHO_T}$ac_cv_header_xercesc_dom_DOM_hpp" >&6
23648 if test $ac_cv_header_xercesc_dom_DOM_hpp = yes; then
23651 { { echo "$as_me:$LINENO: error: unable to find xerces header files" >&5
23652 echo "$as_me: error: unable to find xerces header files" >&2;}
23653 { (exit 1); exit 1; }; }
23657 echo "$as_me:$LINENO: checking Xerces version" >&5
23658 echo $ECHO_N "checking Xerces version... $ECHO_C" >&6
23659 cat >conftest.$ac_ext <<_ACEOF
23662 cat confdefs.h >>conftest.$ac_ext
23663 cat >>conftest.$ac_ext <<_ACEOF
23664 /* end confdefs.h. */
23665 #include <xercesc/util/XercesVersion.hpp>
23669 #if _XERCES_VERSION != 20600
23672 #error cannot use version 2.6.0
23678 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23679 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23681 grep -v '^ *+' conftest.er1 >conftest.err
23683 cat conftest.err >&5
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); } >/dev/null; then
23686 if test -s conftest.err; then
23687 ac_cpp_err=$ac_cxx_preproc_warn_flag
23688 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23695 if test -z "$ac_cpp_err"; then
23696 echo "$as_me:$LINENO: result: OK" >&5
23697 echo "${ECHO_T}OK" >&6
23699 echo "$as_me: failed program was:" >&5
23700 sed 's/^/| /' conftest.$ac_ext >&5
23702 { { echo "$as_me:$LINENO: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23703 See \`config.log' for more details." >&5
23704 echo "$as_me: error: Xerces-C v2.6.0 has bugs that inhibit use with signed XML, please use a newer version
23705 See \`config.log' for more details." >&2;}
23706 { (exit 1); exit 1; }; }
23708 rm -f conftest.err conftest.$ac_ext
23709 cat >conftest.$ac_ext <<_ACEOF
23712 cat confdefs.h >>conftest.$ac_ext
23713 cat >>conftest.$ac_ext <<_ACEOF
23714 /* end confdefs.h. */
23715 #include <xercesc/util/PlatformUtils.hpp>
23719 xercesc::XMLPlatformUtils::Initialize()
23724 rm -f conftest.$ac_objext conftest$ac_exeext
23725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23726 (eval $ac_link) 2>conftest.er1
23728 grep -v '^ *+' conftest.er1 >conftest.err
23730 cat conftest.err >&5
23731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23732 (exit $ac_status); } &&
23733 { ac_try='test -z "$ac_cxx_werror_flag"
23734 || test ! -s conftest.err'
23735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23736 (eval $ac_try) 2>&5
23738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); }; } &&
23740 { ac_try='test -s conftest$ac_exeext'
23741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23742 (eval $ac_try) 2>&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); }; }; then
23747 cat >>confdefs.h <<\_ACEOF
23748 #define HAVE_LIBXERCESC 1
23752 echo "$as_me: failed program was:" >&5
23753 sed 's/^/| /' conftest.$ac_ext >&5
23755 { { echo "$as_me:$LINENO: error: unable to link with Xerces" >&5
23756 echo "$as_me: error: unable to link with Xerces" >&2;}
23757 { (exit 1); exit 1; }; }
23759 rm -f conftest.err conftest.$ac_objext \
23760 conftest$ac_exeext conftest.$ac_ext
23762 echo "$as_me:$LINENO: checking whether Xerces XMLString::release(XMLByte**) exists" >&5
23763 echo $ECHO_N "checking whether Xerces XMLString::release(XMLByte**) exists... $ECHO_C" >&6
23764 cat >conftest.$ac_ext <<_ACEOF
23767 cat confdefs.h >>conftest.$ac_ext
23768 cat >>conftest.$ac_ext <<_ACEOF
23769 /* end confdefs.h. */
23770 #include <xercesc/util/XMLString.hpp>
23774 using namespace XERCES_CPP_NAMESPACE;
23776 XMLString::release(&buf);
23782 rm -f conftest.$ac_objext
23783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23784 (eval $ac_compile) 2>conftest.er1
23786 grep -v '^ *+' conftest.er1 >conftest.err
23788 cat conftest.err >&5
23789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790 (exit $ac_status); } &&
23791 { ac_try='test -z "$ac_cxx_werror_flag"
23792 || test ! -s conftest.err'
23793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23794 (eval $ac_try) 2>&5
23796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23797 (exit $ac_status); }; } &&
23798 { ac_try='test -s conftest.$ac_objext'
23799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23800 (eval $ac_try) 2>&5
23802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); }; }; then
23804 echo "$as_me:$LINENO: result: yes" >&5
23805 echo "${ECHO_T}yes" >&6
23807 cat >>confdefs.h <<\_ACEOF
23808 #define SHIBSP_XERCESC_HAS_XMLBYTE_RELEASE 1
23812 echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23815 echo "$as_me:$LINENO: result: no" >&5
23816 echo "${ECHO_T}no" >&6
23818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23820 echo "$as_me:$LINENO: checking whether Xerces DOMNodeFilter API returns a short" >&5
23821 echo $ECHO_N "checking whether Xerces DOMNodeFilter API returns a short... $ECHO_C" >&6
23822 cat >conftest.$ac_ext <<_ACEOF
23825 cat confdefs.h >>conftest.$ac_ext
23826 cat >>conftest.$ac_ext <<_ACEOF
23827 /* end confdefs.h. */
23828 #include <xercesc/dom/DOM.hpp>
23832 using namespace XERCES_CPP_NAMESPACE;
23833 class Blocker : public DOMNodeFilter {
23835 short acceptNode(const DOMNode* node) const {
23836 return FILTER_REJECT;
23839 static Blocker g_Blocker;
23845 rm -f conftest.$ac_objext
23846 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23847 (eval $ac_compile) 2>conftest.er1
23849 grep -v '^ *+' conftest.er1 >conftest.err
23851 cat conftest.err >&5
23852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23853 (exit $ac_status); } &&
23854 { ac_try='test -z "$ac_cxx_werror_flag"
23855 || test ! -s conftest.err'
23856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23857 (eval $ac_try) 2>&5
23859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23860 (exit $ac_status); }; } &&
23861 { ac_try='test -s conftest.$ac_objext'
23862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23863 (eval $ac_try) 2>&5
23865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23866 (exit $ac_status); }; }; then
23867 echo "$as_me:$LINENO: result: yes" >&5
23868 echo "${ECHO_T}yes" >&6
23870 cat >>confdefs.h <<\_ACEOF
23871 #define SHIBSP_XERCESC_SHORT_ACCEPTNODE 1
23875 echo "$as_me: failed program was:" >&5
23876 sed 's/^/| /' conftest.$ac_ext >&5
23878 echo "$as_me:$LINENO: result: no" >&5
23879 echo "${ECHO_T}no" >&6
23881 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883 #XML-Tooling settings
23885 # Check whether --with-xmltooling or --without-xmltooling was given.
23886 if test "${with_xmltooling+set}" = set; then
23887 withval="$with_xmltooling"
23888 if test x_$with_xmltooling != x_/usr; then
23889 LDFLAGS="-L${with_xmltooling}/lib $LDFLAGS"
23890 CPPFLAGS="-I${with_xmltooling}/include $CPPFLAGS"
23893 LITE_LIBS="-lxmltooling-lite"
23894 XMLSEC_LIBS="-lxmltooling"
23895 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23896 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
23897 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
23898 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23901 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
23902 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
23904 # Is the header compilable?
23905 echo "$as_me:$LINENO: checking xmltooling/base.h usability" >&5
23906 echo $ECHO_N "checking xmltooling/base.h usability... $ECHO_C" >&6
23907 cat >conftest.$ac_ext <<_ACEOF
23910 cat confdefs.h >>conftest.$ac_ext
23911 cat >>conftest.$ac_ext <<_ACEOF
23912 /* end confdefs.h. */
23913 $ac_includes_default
23914 #include <xmltooling/base.h>
23916 rm -f conftest.$ac_objext
23917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23918 (eval $ac_compile) 2>conftest.er1
23920 grep -v '^ *+' conftest.er1 >conftest.err
23922 cat conftest.err >&5
23923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23924 (exit $ac_status); } &&
23925 { ac_try='test -z "$ac_cxx_werror_flag"
23926 || test ! -s conftest.err'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; } &&
23932 { ac_try='test -s conftest.$ac_objext'
23933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23934 (eval $ac_try) 2>&5
23936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23937 (exit $ac_status); }; }; then
23938 ac_header_compiler=yes
23940 echo "$as_me: failed program was:" >&5
23941 sed 's/^/| /' conftest.$ac_ext >&5
23943 ac_header_compiler=no
23945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23946 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23947 echo "${ECHO_T}$ac_header_compiler" >&6
23949 # Is the header present?
23950 echo "$as_me:$LINENO: checking xmltooling/base.h presence" >&5
23951 echo $ECHO_N "checking xmltooling/base.h presence... $ECHO_C" >&6
23952 cat >conftest.$ac_ext <<_ACEOF
23955 cat confdefs.h >>conftest.$ac_ext
23956 cat >>conftest.$ac_ext <<_ACEOF
23957 /* end confdefs.h. */
23958 #include <xmltooling/base.h>
23960 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23961 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23963 grep -v '^ *+' conftest.er1 >conftest.err
23965 cat conftest.err >&5
23966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967 (exit $ac_status); } >/dev/null; then
23968 if test -s conftest.err; then
23969 ac_cpp_err=$ac_cxx_preproc_warn_flag
23970 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23977 if test -z "$ac_cpp_err"; then
23978 ac_header_preproc=yes
23980 echo "$as_me: failed program was:" >&5
23981 sed 's/^/| /' conftest.$ac_ext >&5
23983 ac_header_preproc=no
23985 rm -f conftest.err conftest.$ac_ext
23986 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23987 echo "${ECHO_T}$ac_header_preproc" >&6
23989 # So? What about this header?
23990 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23992 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&5
23993 echo "$as_me: WARNING: xmltooling/base.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23994 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&5
23995 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the compiler's result" >&2;}
23996 ac_header_preproc=yes
23999 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: present but cannot be compiled" >&5
24000 echo "$as_me: WARNING: xmltooling/base.h: present but cannot be compiled" >&2;}
24001 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&5
24002 echo "$as_me: WARNING: xmltooling/base.h: check for missing prerequisite headers?" >&2;}
24003 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: see the Autoconf documentation" >&5
24004 echo "$as_me: WARNING: xmltooling/base.h: see the Autoconf documentation" >&2;}
24005 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&5
24006 echo "$as_me: WARNING: xmltooling/base.h: section \"Present But Cannot Be Compiled\"" >&2;}
24007 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&5
24008 echo "$as_me: WARNING: xmltooling/base.h: proceeding with the preprocessor's result" >&2;}
24009 { echo "$as_me:$LINENO: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&5
24010 echo "$as_me: WARNING: xmltooling/base.h: in the future, the compiler will take precedence" >&2;}
24013 ## --------------------------------------------- ##
24014 ## Report this to shibboleth-users@internet2.edu ##
24015 ## --------------------------------------------- ##
24018 sed "s/^/$as_me: WARNING: /" >&2
24021 echo "$as_me:$LINENO: checking for xmltooling/base.h" >&5
24022 echo $ECHO_N "checking for xmltooling/base.h... $ECHO_C" >&6
24023 if test "${ac_cv_header_xmltooling_base_h+set}" = set; then
24024 echo $ECHO_N "(cached) $ECHO_C" >&6
24026 ac_cv_header_xmltooling_base_h=$ac_header_preproc
24028 echo "$as_me:$LINENO: result: $ac_cv_header_xmltooling_base_h" >&5
24029 echo "${ECHO_T}$ac_cv_header_xmltooling_base_h" >&6
24032 if test $ac_cv_header_xmltooling_base_h = yes; then
24035 { { echo "$as_me:$LINENO: error: unable to find xmltooling header files" >&5
24036 echo "$as_me: error: unable to find xmltooling header files" >&2;}
24037 { (exit 1); exit 1; }; }
24043 # save and append master libs
24045 LIBS="$XMLSEC_LIBS $LIBS"
24047 cat >conftest.$ac_ext <<_ACEOF
24050 cat confdefs.h >>conftest.$ac_ext
24051 cat >>conftest.$ac_ext <<_ACEOF
24052 /* end confdefs.h. */
24053 #include <xmltooling/io/HTTPResponse.h>
24057 xmltooling::HTTPResponse::sanitizeURL("http://test")
24062 rm -f conftest.$ac_objext conftest$ac_exeext
24063 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24064 (eval $ac_link) 2>conftest.er1
24066 grep -v '^ *+' conftest.er1 >conftest.err
24068 cat conftest.err >&5
24069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24070 (exit $ac_status); } &&
24071 { ac_try='test -z "$ac_cxx_werror_flag"
24072 || test ! -s conftest.err'
24073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24074 (eval $ac_try) 2>&5
24076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24077 (exit $ac_status); }; } &&
24078 { ac_try='test -s conftest$ac_exeext'
24079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24080 (eval $ac_try) 2>&5
24082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24083 (exit $ac_status); }; }; then
24085 cat >>confdefs.h <<\_ACEOF
24086 #define HAVE_XMLTOOLING 1
24090 echo "$as_me: failed program was:" >&5
24091 sed 's/^/| /' conftest.$ac_ext >&5
24093 { { echo "$as_me:$LINENO: error: unable to link with XMLTooling, or version was too old" >&5
24094 echo "$as_me: error: unable to link with XMLTooling, or version was too old" >&2;}
24095 { (exit 1); exit 1; }; }
24097 rm -f conftest.err conftest.$ac_objext \
24098 conftest$ac_exeext conftest.$ac_ext
24100 # restore master libs
24103 # Establish location of xmltooling catalog.
24104 XMLTOOLINGXMLDIR=""
24105 if test "x$with_xmltooling" = "x" ; then
24106 with_xmltooling="/usr"
24108 if test -f $with_xmltooling/share/xml/xmltooling/catalog.xml ; then
24109 XMLTOOLINGXMLDIR="$with_xmltooling"
24110 elif test -f $with_xerces/share/xml/xmltooling/catalog.xml ; then
24111 XMLTOOLINGXMLDIR="$with_xerces"
24112 elif test -f $with_log4shib/share/xml/xmltooling/catalog.xml ; then
24113 XMLTOOLINGXMLDIR="$with_log4shib"
24115 if test "x$XMLTOOLINGXMLDIR" = "x" ; then
24116 { { echo "$as_me:$LINENO: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&5
24117 echo "$as_me: error: xmltooling XML catalog not found, may need to use --with-xmltooling option" >&2;}
24118 { (exit 1); exit 1; }; }
24120 XMLTOOLINGXMLDIR="$XMLTOOLINGXMLDIR/share/xml/xmltooling"
24123 # XML-Security settings
24125 # Check whether --with-xmlsec or --without-xmlsec was given.
24126 if test "${with_xmlsec+set}" = set; then
24127 withval="$with_xmlsec"
24133 if test x_$with_xmlsec != x_/usr; then
24134 LDFLAGS="-L${with_xmlsec}/lib $LDFLAGS"
24135 CPPFLAGS="-I${with_xmlsec}/include $CPPFLAGS"
24137 XMLSEC_LIBS="-lxml-security-c $XMLSEC_LIBS"
24139 # save and append master libs
24141 LIBS="$XMLSEC_LIBS $LIBS"
24143 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24144 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24145 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24146 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24147 echo $ECHO_N "(cached) $ECHO_C" >&6
24149 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24150 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24152 # Is the header compilable?
24153 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp usability" >&5
24154 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp usability... $ECHO_C" >&6
24155 cat >conftest.$ac_ext <<_ACEOF
24158 cat confdefs.h >>conftest.$ac_ext
24159 cat >>conftest.$ac_ext <<_ACEOF
24160 /* end confdefs.h. */
24161 $ac_includes_default
24162 #include <xsec/utils/XSECPlatformUtils.hpp>
24164 rm -f conftest.$ac_objext
24165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24166 (eval $ac_compile) 2>conftest.er1
24168 grep -v '^ *+' conftest.er1 >conftest.err
24170 cat conftest.err >&5
24171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24172 (exit $ac_status); } &&
24173 { ac_try='test -z "$ac_cxx_werror_flag"
24174 || test ! -s conftest.err'
24175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24176 (eval $ac_try) 2>&5
24178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24179 (exit $ac_status); }; } &&
24180 { ac_try='test -s conftest.$ac_objext'
24181 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24182 (eval $ac_try) 2>&5
24184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24185 (exit $ac_status); }; }; then
24186 ac_header_compiler=yes
24188 echo "$as_me: failed program was:" >&5
24189 sed 's/^/| /' conftest.$ac_ext >&5
24191 ac_header_compiler=no
24193 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24194 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24195 echo "${ECHO_T}$ac_header_compiler" >&6
24197 # Is the header present?
24198 echo "$as_me:$LINENO: checking xsec/utils/XSECPlatformUtils.hpp presence" >&5
24199 echo $ECHO_N "checking xsec/utils/XSECPlatformUtils.hpp presence... $ECHO_C" >&6
24200 cat >conftest.$ac_ext <<_ACEOF
24203 cat confdefs.h >>conftest.$ac_ext
24204 cat >>conftest.$ac_ext <<_ACEOF
24205 /* end confdefs.h. */
24206 #include <xsec/utils/XSECPlatformUtils.hpp>
24208 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24209 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24211 grep -v '^ *+' conftest.er1 >conftest.err
24213 cat conftest.err >&5
24214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24215 (exit $ac_status); } >/dev/null; then
24216 if test -s conftest.err; then
24217 ac_cpp_err=$ac_cxx_preproc_warn_flag
24218 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24225 if test -z "$ac_cpp_err"; then
24226 ac_header_preproc=yes
24228 echo "$as_me: failed program was:" >&5
24229 sed 's/^/| /' conftest.$ac_ext >&5
24231 ac_header_preproc=no
24233 rm -f conftest.err conftest.$ac_ext
24234 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24235 echo "${ECHO_T}$ac_header_preproc" >&6
24237 # So? What about this header?
24238 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24240 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
24241 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
24242 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&5
24243 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the compiler's result" >&2;}
24244 ac_header_preproc=yes
24247 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&5
24248 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: present but cannot be compiled" >&2;}
24249 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&5
24250 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: check for missing prerequisite headers?" >&2;}
24251 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&5
24252 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: see the Autoconf documentation" >&2;}
24253 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&5
24254 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
24255 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&5
24256 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: proceeding with the preprocessor's result" >&2;}
24257 { echo "$as_me:$LINENO: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&5
24258 echo "$as_me: WARNING: xsec/utils/XSECPlatformUtils.hpp: in the future, the compiler will take precedence" >&2;}
24261 ## --------------------------------------------- ##
24262 ## Report this to shibboleth-users@internet2.edu ##
24263 ## --------------------------------------------- ##
24266 sed "s/^/$as_me: WARNING: /" >&2
24269 echo "$as_me:$LINENO: checking for xsec/utils/XSECPlatformUtils.hpp" >&5
24270 echo $ECHO_N "checking for xsec/utils/XSECPlatformUtils.hpp... $ECHO_C" >&6
24271 if test "${ac_cv_header_xsec_utils_XSECPlatformUtils_hpp+set}" = set; then
24272 echo $ECHO_N "(cached) $ECHO_C" >&6
24274 ac_cv_header_xsec_utils_XSECPlatformUtils_hpp=$ac_header_preproc
24276 echo "$as_me:$LINENO: result: $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&5
24277 echo "${ECHO_T}$ac_cv_header_xsec_utils_XSECPlatformUtils_hpp" >&6
24280 if test $ac_cv_header_xsec_utils_XSECPlatformUtils_hpp = yes; then
24283 { { echo "$as_me:$LINENO: error: unable to find XML-Security header files" >&5
24284 echo "$as_me: error: unable to find XML-Security header files" >&2;}
24285 { (exit 1); exit 1; }; }
24289 echo "$as_me:$LINENO: checking XML-Security version" >&5
24290 echo $ECHO_N "checking XML-Security version... $ECHO_C" >&6
24291 cat >conftest.$ac_ext <<_ACEOF
24294 cat confdefs.h >>conftest.$ac_ext
24295 cat >>conftest.$ac_ext <<_ACEOF
24296 /* end confdefs.h. */
24297 #include <xsec/utils/XSECPlatformUtils.hpp>
24301 #if XSEC_VERSION_MAJOR > 1 || (XSEC_VERSION_MAJOR == 1 && XSEC_VERSION_MEDIUM > 3)
24304 #error need version 1.4.0 or later
24310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24313 grep -v '^ *+' conftest.er1 >conftest.err
24315 cat conftest.err >&5
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } >/dev/null; then
24318 if test -s conftest.err; then
24319 ac_cpp_err=$ac_cxx_preproc_warn_flag
24320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24327 if test -z "$ac_cpp_err"; then
24328 echo "$as_me:$LINENO: result: OK" >&5
24329 echo "${ECHO_T}OK" >&6
24331 echo "$as_me: failed program was:" >&5
24332 sed 's/^/| /' conftest.$ac_ext >&5
24334 { { echo "$as_me:$LINENO: error: XML-Security version 1.4.0 or greater is required.
24335 See \`config.log' for more details." >&5
24336 echo "$as_me: error: XML-Security version 1.4.0 or greater is required.
24337 See \`config.log' for more details." >&2;}
24338 { (exit 1); exit 1; }; }
24340 rm -f conftest.err conftest.$ac_ext
24341 cat >conftest.$ac_ext <<_ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #include <xsec/utils/XSECPlatformUtils.hpp>
24351 XSECPlatformUtils::Initialise()
24356 rm -f conftest.$ac_objext conftest$ac_exeext
24357 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24358 (eval $ac_link) 2>conftest.er1
24360 grep -v '^ *+' conftest.er1 >conftest.err
24362 cat conftest.err >&5
24363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24364 (exit $ac_status); } &&
24365 { ac_try='test -z "$ac_cxx_werror_flag"
24366 || test ! -s conftest.err'
24367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24368 (eval $ac_try) 2>&5
24370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24371 (exit $ac_status); }; } &&
24372 { ac_try='test -s conftest$ac_exeext'
24373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24374 (eval $ac_try) 2>&5
24376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377 (exit $ac_status); }; }; then
24380 echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24383 { { echo "$as_me:$LINENO: error: unable to link with XML-Security" >&5
24384 echo "$as_me: error: unable to link with XML-Security" >&2;}
24385 { (exit 1); exit 1; }; }
24387 rm -f conftest.err conftest.$ac_objext \
24388 conftest$ac_exeext conftest.$ac_ext
24390 # restore master libs
24393 # OpenSAML settings
24395 # Check whether --with-saml or --without-saml was given.
24396 if test "${with_saml+set}" = set; then
24397 withval="$with_saml"
24398 if test x_$with_saml != x_/usr; then
24399 LDFLAGS="-L${with_saml}/lib $LDFLAGS"
24400 CPPFLAGS="-I${with_saml}/include $CPPFLAGS"
24403 XMLSEC_LIBS="-lsaml $XMLSEC_LIBS"
24405 # save and append master libs
24407 LIBS="$XMLSEC_LIBS $LIBS"
24409 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24410 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24411 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24412 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24415 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24416 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24418 # Is the header compilable?
24419 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h usability" >&5
24420 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h usability... $ECHO_C" >&6
24421 cat >conftest.$ac_ext <<_ACEOF
24424 cat confdefs.h >>conftest.$ac_ext
24425 cat >>conftest.$ac_ext <<_ACEOF
24426 /* end confdefs.h. */
24427 $ac_includes_default
24428 #include <saml/saml2/metadata/Metadata.h>
24430 rm -f conftest.$ac_objext
24431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24432 (eval $ac_compile) 2>conftest.er1
24434 grep -v '^ *+' conftest.er1 >conftest.err
24436 cat conftest.err >&5
24437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24438 (exit $ac_status); } &&
24439 { ac_try='test -z "$ac_cxx_werror_flag"
24440 || test ! -s conftest.err'
24441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24442 (eval $ac_try) 2>&5
24444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24445 (exit $ac_status); }; } &&
24446 { ac_try='test -s conftest.$ac_objext'
24447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24448 (eval $ac_try) 2>&5
24450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24451 (exit $ac_status); }; }; then
24452 ac_header_compiler=yes
24454 echo "$as_me: failed program was:" >&5
24455 sed 's/^/| /' conftest.$ac_ext >&5
24457 ac_header_compiler=no
24459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24460 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24461 echo "${ECHO_T}$ac_header_compiler" >&6
24463 # Is the header present?
24464 echo "$as_me:$LINENO: checking saml/saml2/metadata/Metadata.h presence" >&5
24465 echo $ECHO_N "checking saml/saml2/metadata/Metadata.h presence... $ECHO_C" >&6
24466 cat >conftest.$ac_ext <<_ACEOF
24469 cat confdefs.h >>conftest.$ac_ext
24470 cat >>conftest.$ac_ext <<_ACEOF
24471 /* end confdefs.h. */
24472 #include <saml/saml2/metadata/Metadata.h>
24474 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24475 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24477 grep -v '^ *+' conftest.er1 >conftest.err
24479 cat conftest.err >&5
24480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24481 (exit $ac_status); } >/dev/null; then
24482 if test -s conftest.err; then
24483 ac_cpp_err=$ac_cxx_preproc_warn_flag
24484 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24491 if test -z "$ac_cpp_err"; then
24492 ac_header_preproc=yes
24494 echo "$as_me: failed program was:" >&5
24495 sed 's/^/| /' conftest.$ac_ext >&5
24497 ac_header_preproc=no
24499 rm -f conftest.err conftest.$ac_ext
24500 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24501 echo "${ECHO_T}$ac_header_preproc" >&6
24503 # So? What about this header?
24504 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24506 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&5
24507 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24508 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&5
24509 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the compiler's result" >&2;}
24510 ac_header_preproc=yes
24513 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&5
24514 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: present but cannot be compiled" >&2;}
24515 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&5
24516 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: check for missing prerequisite headers?" >&2;}
24517 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&5
24518 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: see the Autoconf documentation" >&2;}
24519 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&5
24520 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: section \"Present But Cannot Be Compiled\"" >&2;}
24521 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&5
24522 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: proceeding with the preprocessor's result" >&2;}
24523 { echo "$as_me:$LINENO: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&5
24524 echo "$as_me: WARNING: saml/saml2/metadata/Metadata.h: in the future, the compiler will take precedence" >&2;}
24527 ## --------------------------------------------- ##
24528 ## Report this to shibboleth-users@internet2.edu ##
24529 ## --------------------------------------------- ##
24532 sed "s/^/$as_me: WARNING: /" >&2
24535 echo "$as_me:$LINENO: checking for saml/saml2/metadata/Metadata.h" >&5
24536 echo $ECHO_N "checking for saml/saml2/metadata/Metadata.h... $ECHO_C" >&6
24537 if test "${ac_cv_header_saml_saml2_metadata_Metadata_h+set}" = set; then
24538 echo $ECHO_N "(cached) $ECHO_C" >&6
24540 ac_cv_header_saml_saml2_metadata_Metadata_h=$ac_header_preproc
24542 echo "$as_me:$LINENO: result: $ac_cv_header_saml_saml2_metadata_Metadata_h" >&5
24543 echo "${ECHO_T}$ac_cv_header_saml_saml2_metadata_Metadata_h" >&6
24546 if test $ac_cv_header_saml_saml2_metadata_Metadata_h = yes; then
24549 { { echo "$as_me:$LINENO: error: unable to find OpenSAML header files" >&5
24550 echo "$as_me: error: unable to find OpenSAML header files" >&2;}
24551 { (exit 1); exit 1; }; }
24555 cat >conftest.$ac_ext <<_ACEOF
24558 cat confdefs.h >>conftest.$ac_ext
24559 cat >>conftest.$ac_ext <<_ACEOF
24560 /* end confdefs.h. */
24561 #include <saml/SAMLConfig.h>
24562 #include <saml/version.h>
24566 #if _OPENSAML_VERSION >= 20200
24567 opensaml::SAMLConfig::getConfig();
24569 #error Need OpenSAML version 2.2 or higher
24575 rm -f conftest.$ac_objext conftest$ac_exeext
24576 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24577 (eval $ac_link) 2>conftest.er1
24579 grep -v '^ *+' conftest.er1 >conftest.err
24581 cat conftest.err >&5
24582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24583 (exit $ac_status); } &&
24584 { ac_try='test -z "$ac_cxx_werror_flag"
24585 || test ! -s conftest.err'
24586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24587 (eval $ac_try) 2>&5
24589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24590 (exit $ac_status); }; } &&
24591 { ac_try='test -s conftest$ac_exeext'
24592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24593 (eval $ac_try) 2>&5
24595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24596 (exit $ac_status); }; }; then
24598 cat >>confdefs.h <<\_ACEOF
24599 #define HAVE_SAML 1
24603 echo "$as_me: failed program was:" >&5
24604 sed 's/^/| /' conftest.$ac_ext >&5
24606 { { echo "$as_me:$LINENO: error: unable to link with OpenSAML, or version was too old" >&5
24607 echo "$as_me: error: unable to link with OpenSAML, or version was too old" >&2;}
24608 { (exit 1); exit 1; }; }
24610 rm -f conftest.err conftest.$ac_objext \
24611 conftest$ac_exeext conftest.$ac_ext
24613 # restore master libs
24616 # Establish location of opensaml catalogs.
24618 if test "x$with_saml" = "x" ; then
24621 if test -f $with_saml/share/xml/opensaml/saml20-catalog.xml ; then
24622 OPENSAMLXMLDIR="$with_saml"
24623 elif test -f $with_xmltooling/share/xml/opensaml/saml20-catalog.xml ; then
24624 OPENSAMLXMLDIR="$with_xmltooling"
24625 elif test -f $with_xerces/share/xml/opensaml/saml20-catalog.xml ; then
24626 OPENSAMLXMLDIR="$with_xerces"
24627 elif test -f $with_log4shib/share/xml/opensaml/saml20-catalog.xml ; then
24628 OPENSAMLXMLDIR="$with_log4shib"
24630 if test "x$OPENSAMLXMLDIR" = "x" ; then
24631 { { echo "$as_me:$LINENO: error: opensaml XML catalogs not found, may need to use --with-saml option" >&5
24632 echo "$as_me: error: opensaml XML catalogs not found, may need to use --with-saml option" >&2;}
24633 { (exit 1); exit 1; }; }
24635 OPENSAMLXMLDIR="$OPENSAMLXMLDIR/share/xml/opensaml"
24641 ac_config_files="$ac_config_files shibboleth.spec pkginfo Portfile"
24644 # output the underlying makefiles
24645 WANT_SUBDIRS="doc schemas configs shibsp shibd util"
24646 ac_config_files="$ac_config_files Makefile doc/Makefile schemas/Makefile configs/Makefile shibsp/Makefile shibd/Makefile util/Makefile selinux/Makefile"
24650 ac_config_files="$ac_config_files adfs/Makefile"
24652 # Check whether --enable-adfs or --disable-adfs was given.
24653 if test "${enable_adfs+set}" = set; then
24654 enableval="$enable_adfs"
24655 adfs_enabled=$enableval
24659 if test "x$adfs_enabled" = "x" ; then
24662 echo "$as_me:$LINENO: checking whether to build the ADFS module" >&5
24663 echo $ECHO_N "checking whether to build the ADFS module... $ECHO_C" >&6
24664 if test "$adfs_enabled" = "no" ; then
24665 echo "$as_me:$LINENO: result: no" >&5
24666 echo "${ECHO_T}no" >&6
24668 echo "$as_me:$LINENO: result: yes" >&5
24669 echo "${ECHO_T}yes" >&6
24670 WANT_SUBDIRS="$WANT_SUBDIRS adfs"
24675 # Build NSAPI module?
24677 echo "$as_me:$LINENO: checking for NSAPI module option" >&5
24678 echo $ECHO_N "checking for NSAPI module option... $ECHO_C" >&6
24680 # Check whether --with-nsapi or --without-nsapi was given.
24681 if test "${with_nsapi+set}" = set; then
24682 withval="$with_nsapi"
24683 WANT_NSAPI=$withval
24687 echo "$as_me:$LINENO: result: $WANT_NSAPI" >&5
24688 echo "${ECHO_T}$WANT_NSAPI" >&6
24690 if test "$WANT_NSAPI" != "no"; then
24691 if test ! -d $WANT_NSAPI/bin ; then
24692 { { echo "$as_me:$LINENO: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&5
24693 echo "$as_me: error: Please specify the path to the root of your Netscape/iPlanet/SunONE server using --with-nsapi=DIR" >&2;}
24694 { (exit 1); exit 1; }; }
24696 echo "$as_me:$LINENO: checking for NSAPI include files" >&5
24697 echo $ECHO_N "checking for NSAPI include files... $ECHO_C" >&6
24698 if test -d $WANT_NSAPI/include ; then
24699 NSAPI_INCLUDE=$WANT_NSAPI/include
24700 echo "$as_me:$LINENO: result: Netscape-Enterprise 3.x style" >&5
24701 echo "${ECHO_T}Netscape-Enterprise 3.x style" >&6
24703 for ac_header in $NSAPI_INCLUDE/nsapi.h
24705 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24706 echo "$as_me:$LINENO: checking for $ac_header" >&5
24707 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24708 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 cat >conftest.$ac_ext <<_ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24719 #include <$ac_header>
24721 rm -f conftest.$ac_objext
24722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24723 (eval $ac_compile) 2>conftest.er1
24725 grep -v '^ *+' conftest.er1 >conftest.err
24727 cat conftest.err >&5
24728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24729 (exit $ac_status); } &&
24730 { ac_try='test -z "$ac_cxx_werror_flag"
24731 || test ! -s conftest.err'
24732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24733 (eval $ac_try) 2>&5
24735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24736 (exit $ac_status); }; } &&
24737 { ac_try='test -s conftest.$ac_objext'
24738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24739 (eval $ac_try) 2>&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); }; }; then
24743 eval "$as_ac_Header=yes"
24745 echo "$as_me: failed program was:" >&5
24746 sed 's/^/| /' conftest.$ac_ext >&5
24748 eval "$as_ac_Header=no"
24750 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24752 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24753 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24754 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24755 cat >>confdefs.h <<_ACEOF
24756 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24763 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24765 if test -d $WANT_NSAPI/plugins/include ; then
24766 test -n "$NSAPI_INCLUDE" && NSAPI_INC_DIR="-I$NSAPI_INCLUDE"
24767 NSAPI_INCLUDE="$WANT_NSAPI/plugins/include"
24768 echo "$as_me:$LINENO: result: iPlanet 4.x / SunONE 6.x style" >&5
24769 echo "${ECHO_T}iPlanet 4.x / SunONE 6.x style" >&6
24771 for ac_header in $NSAPI_INCLUDE/nsapi.h
24773 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24774 echo "$as_me:$LINENO: checking for $ac_header" >&5
24775 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24776 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24777 echo $ECHO_N "(cached) $ECHO_C" >&6
24779 cat >conftest.$ac_ext <<_ACEOF
24782 cat confdefs.h >>conftest.$ac_ext
24783 cat >>conftest.$ac_ext <<_ACEOF
24784 /* end confdefs.h. */
24787 #include <$ac_header>
24789 rm -f conftest.$ac_objext
24790 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24791 (eval $ac_compile) 2>conftest.er1
24793 grep -v '^ *+' conftest.er1 >conftest.err
24795 cat conftest.err >&5
24796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24797 (exit $ac_status); } &&
24798 { ac_try='test -z "$ac_cxx_werror_flag"
24799 || test ! -s conftest.err'
24800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24801 (eval $ac_try) 2>&5
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; } &&
24805 { ac_try='test -s conftest.$ac_objext'
24806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24807 (eval $ac_try) 2>&5
24809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24810 (exit $ac_status); }; }; then
24811 eval "$as_ac_Header=yes"
24813 echo "$as_me: failed program was:" >&5
24814 sed 's/^/| /' conftest.$ac_ext >&5
24816 eval "$as_ac_Header=no"
24818 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24820 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24821 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24823 cat >>confdefs.h <<_ACEOF
24824 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24831 NSAPI_INCLUDE="$NSAPI_INC_DIR -I$NSAPI_INCLUDE"
24833 if test "$NSAPI_INCLUDE" = ""; then
24834 { { echo "$as_me:$LINENO: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&5
24835 echo "$as_me: error: Please check you have nsapi.h in either $WANT_NSAPI/include or $WANT_NSAPI/plugins/include" >&2;}
24836 { (exit 1); exit 1; }; }
24842 # always output the Makefile, even if you don't use it
24843 ac_config_files="$ac_config_files nsapi_shib/Makefile"
24847 if test ! "$WANT_NSAPI" = "no"; then
24849 BUILD_NSAPI_FALSE='#'
24851 BUILD_NSAPI_TRUE='#'
24856 # add the NSAPI module to the list of wanted subdirs..
24857 if test ! "$WANT_NSAPI" = "no" ; then
24858 WANT_SUBDIRS="$WANT_SUBDIRS nsapi_shib"
24863 # Build FastCGI support?
24865 echo "$as_me:$LINENO: checking for FastCGI support" >&5
24866 echo $ECHO_N "checking for FastCGI support... $ECHO_C" >&6
24868 # Check whether --with-fastcgi or --without-fastcgi was given.
24869 if test "${with_fastcgi+set}" = set; then
24870 withval="$with_fastcgi"
24871 WANT_FASTCGI=$withval
24875 echo "$as_me:$LINENO: result: $WANT_FASTCGI" >&5
24876 echo "${ECHO_T}$WANT_FASTCGI" >&6
24878 if test "$WANT_FASTCGI" != "no"; then
24879 if test "$WANT_FASTCGI" != "yes"; then
24880 if test x_$WANT_FASTCGI != x_/usr; then
24881 FASTCGI_INCLUDE="-I$WANT_FASTCGI/include"
24882 FASTCGI_LDFLAGS="-L$WANT_FASTCGI/lib"
24885 if test "${ac_cv_header_fcgio_h+set}" = set; then
24886 echo "$as_me:$LINENO: checking for fcgio.h" >&5
24887 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
24888 if test "${ac_cv_header_fcgio_h+set}" = set; then
24889 echo $ECHO_N "(cached) $ECHO_C" >&6
24891 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
24892 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
24894 # Is the header compilable?
24895 echo "$as_me:$LINENO: checking fcgio.h usability" >&5
24896 echo $ECHO_N "checking fcgio.h usability... $ECHO_C" >&6
24897 cat >conftest.$ac_ext <<_ACEOF
24900 cat confdefs.h >>conftest.$ac_ext
24901 cat >>conftest.$ac_ext <<_ACEOF
24902 /* end confdefs.h. */
24903 $ac_includes_default
24906 rm -f conftest.$ac_objext
24907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24908 (eval $ac_compile) 2>conftest.er1
24910 grep -v '^ *+' conftest.er1 >conftest.err
24912 cat conftest.err >&5
24913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24914 (exit $ac_status); } &&
24915 { ac_try='test -z "$ac_cxx_werror_flag"
24916 || test ! -s conftest.err'
24917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24918 (eval $ac_try) 2>&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); }; } &&
24922 { ac_try='test -s conftest.$ac_objext'
24923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24924 (eval $ac_try) 2>&5
24926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24927 (exit $ac_status); }; }; then
24928 ac_header_compiler=yes
24930 echo "$as_me: failed program was:" >&5
24931 sed 's/^/| /' conftest.$ac_ext >&5
24933 ac_header_compiler=no
24935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24937 echo "${ECHO_T}$ac_header_compiler" >&6
24939 # Is the header present?
24940 echo "$as_me:$LINENO: checking fcgio.h presence" >&5
24941 echo $ECHO_N "checking fcgio.h presence... $ECHO_C" >&6
24942 cat >conftest.$ac_ext <<_ACEOF
24945 cat confdefs.h >>conftest.$ac_ext
24946 cat >>conftest.$ac_ext <<_ACEOF
24947 /* end confdefs.h. */
24950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24953 grep -v '^ *+' conftest.er1 >conftest.err
24955 cat conftest.err >&5
24956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24957 (exit $ac_status); } >/dev/null; then
24958 if test -s conftest.err; then
24959 ac_cpp_err=$ac_cxx_preproc_warn_flag
24960 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24967 if test -z "$ac_cpp_err"; then
24968 ac_header_preproc=yes
24970 echo "$as_me: failed program was:" >&5
24971 sed 's/^/| /' conftest.$ac_ext >&5
24973 ac_header_preproc=no
24975 rm -f conftest.err conftest.$ac_ext
24976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24977 echo "${ECHO_T}$ac_header_preproc" >&6
24979 # So? What about this header?
24980 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24982 { echo "$as_me:$LINENO: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&5
24983 echo "$as_me: WARNING: fcgio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24984 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the compiler's result" >&5
24985 echo "$as_me: WARNING: fcgio.h: proceeding with the compiler's result" >&2;}
24986 ac_header_preproc=yes
24989 { echo "$as_me:$LINENO: WARNING: fcgio.h: present but cannot be compiled" >&5
24990 echo "$as_me: WARNING: fcgio.h: present but cannot be compiled" >&2;}
24991 { echo "$as_me:$LINENO: WARNING: fcgio.h: check for missing prerequisite headers?" >&5
24992 echo "$as_me: WARNING: fcgio.h: check for missing prerequisite headers?" >&2;}
24993 { echo "$as_me:$LINENO: WARNING: fcgio.h: see the Autoconf documentation" >&5
24994 echo "$as_me: WARNING: fcgio.h: see the Autoconf documentation" >&2;}
24995 { echo "$as_me:$LINENO: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&5
24996 echo "$as_me: WARNING: fcgio.h: section \"Present But Cannot Be Compiled\"" >&2;}
24997 { echo "$as_me:$LINENO: WARNING: fcgio.h: proceeding with the preprocessor's result" >&5
24998 echo "$as_me: WARNING: fcgio.h: proceeding with the preprocessor's result" >&2;}
24999 { echo "$as_me:$LINENO: WARNING: fcgio.h: in the future, the compiler will take precedence" >&5
25000 echo "$as_me: WARNING: fcgio.h: in the future, the compiler will take precedence" >&2;}
25003 ## --------------------------------------------- ##
25004 ## Report this to shibboleth-users@internet2.edu ##
25005 ## --------------------------------------------- ##
25008 sed "s/^/$as_me: WARNING: /" >&2
25011 echo "$as_me:$LINENO: checking for fcgio.h" >&5
25012 echo $ECHO_N "checking for fcgio.h... $ECHO_C" >&6
25013 if test "${ac_cv_header_fcgio_h+set}" = set; then
25014 echo $ECHO_N "(cached) $ECHO_C" >&6
25016 ac_cv_header_fcgio_h=$ac_header_preproc
25018 echo "$as_me:$LINENO: result: $ac_cv_header_fcgio_h" >&5
25019 echo "${ECHO_T}$ac_cv_header_fcgio_h" >&6
25022 if test $ac_cv_header_fcgio_h = yes; then
25025 { { echo "$as_me:$LINENO: error: unable to find FastCGI header files" >&5
25026 echo "$as_me: error: unable to find FastCGI header files" >&2;}
25027 { (exit 1); exit 1; }; }
25031 FASTCGI_LIBS="-lfcgi -lfcgi++"
25038 # always output the Makefile, even if you don't use it
25039 ac_config_files="$ac_config_files fastcgi/Makefile"
25043 if test ! "$WANT_FASTCGI" = "no"; then
25044 BUILD_FASTCGI_TRUE=
25045 BUILD_FASTCGI_FALSE='#'
25047 BUILD_FASTCGI_TRUE='#'
25048 BUILD_FASTCGI_FALSE=
25052 if test ! "$WANT_FASTCGI" = "no" ; then
25053 WANT_SUBDIRS="$WANT_SUBDIRS fastcgi"
25057 # Build Memcached support?
25059 echo "$as_me:$LINENO: checking for Memcached support" >&5
25060 echo $ECHO_N "checking for Memcached support... $ECHO_C" >&6
25062 # Check whether --with-memcached or --without-memcached was given.
25063 if test "${with_memcached+set}" = set; then
25064 withval="$with_memcached"
25065 WANT_MEMCACHED=$withval
25069 echo "$as_me:$LINENO: result: $WANT_MEMCACHED" >&5
25070 echo "${ECHO_T}$WANT_MEMCACHED" >&6
25072 if test "$WANT_MEMCACHED" != "no"; then
25073 if test "$WANT_MEMCACHED" != "yes"; then
25074 if test x_$WANT_MEMCACHED != x_/usr; then
25075 MEMCACHED_INCLUDE="-I$WANT_MEMCACHED/include"
25076 MEMCACHED_LDFLAGS="-L$WANT_MEMCACHED/lib"
25079 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25080 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25081 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25082 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25083 echo $ECHO_N "(cached) $ECHO_C" >&6
25085 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25086 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25088 # Is the header compilable?
25089 echo "$as_me:$LINENO: checking libmemcached/memcached.h usability" >&5
25090 echo $ECHO_N "checking libmemcached/memcached.h usability... $ECHO_C" >&6
25091 cat >conftest.$ac_ext <<_ACEOF
25094 cat confdefs.h >>conftest.$ac_ext
25095 cat >>conftest.$ac_ext <<_ACEOF
25096 /* end confdefs.h. */
25097 $ac_includes_default
25098 #include <libmemcached/memcached.h>
25100 rm -f conftest.$ac_objext
25101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25102 (eval $ac_compile) 2>conftest.er1
25104 grep -v '^ *+' conftest.er1 >conftest.err
25106 cat conftest.err >&5
25107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25108 (exit $ac_status); } &&
25109 { ac_try='test -z "$ac_cxx_werror_flag"
25110 || test ! -s conftest.err'
25111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25112 (eval $ac_try) 2>&5
25114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); }; } &&
25116 { ac_try='test -s conftest.$ac_objext'
25117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25118 (eval $ac_try) 2>&5
25120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25121 (exit $ac_status); }; }; then
25122 ac_header_compiler=yes
25124 echo "$as_me: failed program was:" >&5
25125 sed 's/^/| /' conftest.$ac_ext >&5
25127 ac_header_compiler=no
25129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25131 echo "${ECHO_T}$ac_header_compiler" >&6
25133 # Is the header present?
25134 echo "$as_me:$LINENO: checking libmemcached/memcached.h presence" >&5
25135 echo $ECHO_N "checking libmemcached/memcached.h presence... $ECHO_C" >&6
25136 cat >conftest.$ac_ext <<_ACEOF
25139 cat confdefs.h >>conftest.$ac_ext
25140 cat >>conftest.$ac_ext <<_ACEOF
25141 /* end confdefs.h. */
25142 #include <libmemcached/memcached.h>
25144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25147 grep -v '^ *+' conftest.er1 >conftest.err
25149 cat conftest.err >&5
25150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25151 (exit $ac_status); } >/dev/null; then
25152 if test -s conftest.err; then
25153 ac_cpp_err=$ac_cxx_preproc_warn_flag
25154 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
25161 if test -z "$ac_cpp_err"; then
25162 ac_header_preproc=yes
25164 echo "$as_me: failed program was:" >&5
25165 sed 's/^/| /' conftest.$ac_ext >&5
25167 ac_header_preproc=no
25169 rm -f conftest.err conftest.$ac_ext
25170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25171 echo "${ECHO_T}$ac_header_preproc" >&6
25173 # So? What about this header?
25174 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
25176 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&5
25177 echo "$as_me: WARNING: libmemcached/memcached.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25178 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&5
25179 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the compiler's result" >&2;}
25180 ac_header_preproc=yes
25183 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&5
25184 echo "$as_me: WARNING: libmemcached/memcached.h: present but cannot be compiled" >&2;}
25185 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: check for missing prerequisite headers?" >&5
25186 echo "$as_me: WARNING: libmemcached/memcached.h: check for missing prerequisite headers?" >&2;}
25187 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&5
25188 echo "$as_me: WARNING: libmemcached/memcached.h: see the Autoconf documentation" >&2;}
25189 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: section \"Present But Cannot Be Compiled\"" >&5
25190 echo "$as_me: WARNING: libmemcached/memcached.h: section \"Present But Cannot Be Compiled\"" >&2;}
25191 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&5
25192 echo "$as_me: WARNING: libmemcached/memcached.h: proceeding with the preprocessor's result" >&2;}
25193 { echo "$as_me:$LINENO: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&5
25194 echo "$as_me: WARNING: libmemcached/memcached.h: in the future, the compiler will take precedence" >&2;}
25197 ## --------------------------------------------- ##
25198 ## Report this to shibboleth-users@internet2.edu ##
25199 ## --------------------------------------------- ##
25202 sed "s/^/$as_me: WARNING: /" >&2
25205 echo "$as_me:$LINENO: checking for libmemcached/memcached.h" >&5
25206 echo $ECHO_N "checking for libmemcached/memcached.h... $ECHO_C" >&6
25207 if test "${ac_cv_header_libmemcached_memcached_h+set}" = set; then
25208 echo $ECHO_N "(cached) $ECHO_C" >&6
25210 ac_cv_header_libmemcached_memcached_h=$ac_header_preproc
25212 echo "$as_me:$LINENO: result: $ac_cv_header_libmemcached_memcached_h" >&5
25213 echo "${ECHO_T}$ac_cv_header_libmemcached_memcached_h" >&6
25216 if test $ac_cv_header_libmemcached_memcached_h = yes; then
25219 { { echo "$as_me:$LINENO: error: unable to find Memcached header files" >&5
25220 echo "$as_me: error: unable to find Memcached header files" >&2;}
25221 { (exit 1); exit 1; }; }
25225 MEMCACHED_LIBS="-lmemcached"
25232 # always output the Makefile, even if you don't use it
25233 ac_config_files="$ac_config_files memcache-store/Makefile"
25237 if test ! "$WANT_MEMCACHED" = "no"; then
25238 BUILD_MEMCACHED_TRUE=
25239 BUILD_MEMCACHED_FALSE='#'
25241 BUILD_MEMCACHED_TRUE='#'
25242 BUILD_MEMCACHED_FALSE=
25246 if test ! "$WANT_MEMCACHED" = "no" ; then
25247 WANT_SUBDIRS="$WANT_SUBDIRS memcache-store"
25252 # If no --enable-apache-xx specified
25253 # find a default and fake the specific parameters
25256 # simple macro to peek at an enable or a with
25259 echo "$as_me:$LINENO: checking if default apache needed" >&5
25260 echo $ECHO_N "checking if default apache needed... $ECHO_C" >&6
25262 if test "${enable_apache_13+set}" = set; then
25263 peekval="${enable_apache_13}"
25266 if test "${enable_apache_20+set}" = set; then
25267 peekval="${enable_apache_20}"
25270 if test "${enable_apache_22+set}" = set; then
25271 peekval="${enable_apache_22}"
25274 echo "$as_me:$LINENO: result: $need_default" >&5
25275 echo "${ECHO_T}$need_default" >&6
25277 if test "$need_default" = "yes"; then
25278 # find an apxs, then the httpd
25280 if test "${with_apxs+set}" = set; then
25281 peekval="${with_apxs}"
25284 if test "${with_apxs2+set}" = set; then
25285 peekval="${with_apxs2}"
25288 if test "${with_apxs22+set}" = set; then
25289 peekval="${with_apxs22}"
25292 if test "x$xs" = "x"; then
25293 for ac_prog in apxs2 apxs
25295 # Extract the first word of "$ac_prog", so it can be a program name with args.
25296 set dummy $ac_prog; ac_word=$2
25297 echo "$as_me:$LINENO: checking for $ac_word" >&5
25298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25299 if test "${ac_cv_path_xs+set}" = set; then
25300 echo $ECHO_N "(cached) $ECHO_C" >&6
25304 ac_cv_path_xs="$xs" # Let the user override the test with a path.
25307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25308 as_dummy="/usr/local/apache2/bin:/usr/local/apache/bin:/usr/sbin:$PATH"
25309 for as_dir in $as_dummy
25312 test -z "$as_dir" && as_dir=.
25313 for ac_exec_ext in '' $ac_executable_extensions; do
25314 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25315 ac_cv_path_xs="$as_dir/$ac_word$ac_exec_ext"
25316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25327 if test -n "$xs"; then
25328 echo "$as_me:$LINENO: result: $xs" >&5
25329 echo "${ECHO_T}$xs" >&6
25331 echo "$as_me:$LINENO: result: no" >&5
25332 echo "${ECHO_T}no" >&6
25335 test -n "$xs" && break
25337 test -n "$xs" || xs="{ { echo "$as_me:$LINENO: error: No apxs" >&5
25338 echo "$as_me: error: No apxs" >&2;}
25339 { (exit no apache found. Try --with-apxs); exit no apache found. Try --with-apxs; }; }"
25342 # ask the daemon for the version and set parameters
25343 echo "$as_me:$LINENO: checking default apache version" >&5
25344 echo $ECHO_N "checking default apache version... $ECHO_C" >&6
25345 httpd="`$xs -q SBINDIR`/`$xs -q TARGET`"
25346 if test "x$httpd" != "x" && test -f $httpd ; then
25347 v=`$httpd -v|$SED -n -e 's/.*Apache\/\.*//p'`
25349 1.3*) enable_apache_13=yes
25351 echo "$as_me:$LINENO: result: 1.3" >&5
25352 echo "${ECHO_T}1.3" >&6
25354 2.0*) enable_apache_20=yes
25356 echo "$as_me:$LINENO: result: 2.0" >&5
25357 echo "${ECHO_T}2.0" >&6
25359 2.2*) enable_apache_22=yes
25361 echo "$as_me:$LINENO: result: 2.2" >&5
25362 echo "${ECHO_T}2.2" >&6
25364 *) { { echo "$as_me:$LINENO: error: unusable apache versions: $v. Try setting --with-apxs" >&5
25365 echo "$as_me: error: unusable apache versions: $v. Try setting --with-apxs" >&2;}
25366 { (exit 1); exit 1; }; }
25369 echo "$as_me:$LINENO: result: cannot determine version. Try setting --with-apxs" >&5
25370 echo "${ECHO_T}cannot determine version. Try setting --with-apxs" >&6
25374 # Apache 1.3 (mod_shib_13)
25375 # --enable-apache-13
25376 # --with-apxs (DSO build, the normal way, uses apxs to derive build flags)
25378 # Check whether --enable-apache-13 or --disable-apache-13 was given.
25379 if test "${enable_apache_13+set}" = set; then
25380 enableval="$enable_apache_13"
25381 if test "x$enableval" = "x" ; then
25384 WANT_APACHE_13="$enableval"
25390 echo "$as_me:$LINENO: checking whether to build Apache 1.3 module" >&5
25391 echo $ECHO_N "checking whether to build Apache 1.3 module... $ECHO_C" >&6
25392 if test "$WANT_APACHE_13" != yes && test "$WANT_APACHE_13" != no ; then
25395 echo "$as_me:$LINENO: result: $WANT_APACHE_13" >&5
25396 echo "${ECHO_T}$WANT_APACHE_13" >&6
25398 if test "$WANT_APACHE_13" = "yes" ; then
25400 # Check whether --with-apxs or --without-apxs was given.
25401 if test "${with_apxs+set}" = set; then
25402 withval="$with_apxs"
25404 echo "$as_me:$LINENO: checking for user-specified apxs name/location" >&5
25405 echo $ECHO_N "checking for user-specified apxs name/location... $ECHO_C" >&6
25406 if test "$withval" != "no" ; then
25407 if test "$withval" != "yes"; then
25409 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25410 echo "${ECHO_T}\"$withval\"" >&6
25416 # Extract the first word of "apxs", so it can be a program name with args.
25417 set dummy apxs; ac_word=$2
25418 echo "$as_me:$LINENO: checking for $ac_word" >&5
25419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25420 if test "${ac_cv_path_APXS+set}" = set; then
25421 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 ac_cv_path_APXS="$APXS" # Let the user override the test with a path.
25428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25429 for as_dir in $PATH
25432 test -z "$as_dir" && as_dir=.
25433 for ac_exec_ext in '' $ac_executable_extensions; do
25434 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25435 ac_cv_path_APXS="$as_dir/$ac_word$ac_exec_ext"
25436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25442 test -z "$ac_cv_path_APXS" && ac_cv_path_APXS="no"
25446 APXS=$ac_cv_path_APXS
25448 if test -n "$APXS"; then
25449 echo "$as_me:$LINENO: result: $APXS" >&5
25450 echo "${ECHO_T}$APXS" >&6
25452 echo "$as_me:$LINENO: result: no" >&5
25453 echo "${ECHO_T}no" >&6
25456 if test "$APXS" = "no" ; then
25457 for i in /usr/sbin /usr/local/apache/bin ; do
25458 if test "$APXS" = "no" && test -f "$i/apxs"; then
25466 echo "$as_me:$LINENO: checking to see if apxs was located" >&5
25467 echo $ECHO_N "checking to see if apxs was located... $ECHO_C" >&6
25468 if test ! -f "$APXS" ; then
25469 echo "$as_me:$LINENO: result: no" >&5
25470 echo "${ECHO_T}no" >&6
25471 { { echo "$as_me:$LINENO: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&5
25472 echo "$as_me: error: Unable to locate apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs option." >&2;}
25473 { (exit 1); exit 1; }; }
25475 echo "$as_me:$LINENO: result: $APXS" >&5
25476 echo "${ECHO_T}$APXS" >&6
25479 # extract settings we need from APXS -q
25480 APXS_CC="`$APXS -q CC`"
25481 APXS_CFLAGS="`$APXS -q CFLAGS` `$APXS -q CFLAGS_SHLIB`"
25482 APXS_INCLUDE="`$APXS -q INCLUDEDIR`"
25489 # Apache 2.0 (mod_shib_20)
25490 # --enable-apache-20
25491 # --with-apxs2 (DSO build, the normal way, uses apxs to derive build flags)
25492 # --with-apr (DSO build, APR development package installed separately)
25493 # --with-apu (DSO build, APR-UTIL development package installed separately)
25495 # Check whether --enable-apache-20 or --disable-apache-20 was given.
25496 if test "${enable_apache_20+set}" = set; then
25497 enableval="$enable_apache_20"
25498 if test "x$enableval" = "x" ; then
25501 WANT_APACHE_20="$enableval"
25507 echo "$as_me:$LINENO: checking whether to build Apache 2.0 module" >&5
25508 echo $ECHO_N "checking whether to build Apache 2.0 module... $ECHO_C" >&6
25509 if test "$WANT_APACHE_20" != yes && test "$WANT_APACHE_20" != no ; then
25512 echo "$as_me:$LINENO: result: $WANT_APACHE_20" >&5
25513 echo "${ECHO_T}$WANT_APACHE_20" >&6
25515 if test "$WANT_APACHE_20" = "yes" ; then
25517 # Check whether --with-apxs2 or --without-apxs2 was given.
25518 if test "${with_apxs2+set}" = set; then
25519 withval="$with_apxs2"
25521 echo "$as_me:$LINENO: checking for user-specified Apache2 apxs name/location" >&5
25522 echo $ECHO_N "checking for user-specified Apache2 apxs name/location... $ECHO_C" >&6
25523 if test "$withval" != "no" ; then
25524 if test "$withval" != "yes"; then
25526 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25527 echo "${ECHO_T}\"$withval\"" >&6
25533 # Extract the first word of "apxs2", so it can be a program name with args.
25534 set dummy apxs2; ac_word=$2
25535 echo "$as_me:$LINENO: checking for $ac_word" >&5
25536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25537 if test "${ac_cv_path_APXS2+set}" = set; then
25538 echo $ECHO_N "(cached) $ECHO_C" >&6
25542 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25546 for as_dir in $PATH
25549 test -z "$as_dir" && as_dir=.
25550 for ac_exec_ext in '' $ac_executable_extensions; do
25551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25552 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25559 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25563 APXS2=$ac_cv_path_APXS2
25565 if test -n "$APXS2"; then
25566 echo "$as_me:$LINENO: result: $APXS2" >&5
25567 echo "${ECHO_T}$APXS2" >&6
25569 echo "$as_me:$LINENO: result: no" >&5
25570 echo "${ECHO_T}no" >&6
25573 if test "$APXS2" = "no" ; then
25574 # Extract the first word of "apxs", so it can be a program name with args.
25575 set dummy apxs; ac_word=$2
25576 echo "$as_me:$LINENO: checking for $ac_word" >&5
25577 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25578 if test "${ac_cv_path_APXS2+set}" = set; then
25579 echo $ECHO_N "(cached) $ECHO_C" >&6
25583 ac_cv_path_APXS2="$APXS2" # Let the user override the test with a path.
25586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25587 for as_dir in $PATH
25590 test -z "$as_dir" && as_dir=.
25591 for ac_exec_ext in '' $ac_executable_extensions; do
25592 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25593 ac_cv_path_APXS2="$as_dir/$ac_word$ac_exec_ext"
25594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25600 test -z "$ac_cv_path_APXS2" && ac_cv_path_APXS2="no"
25604 APXS2=$ac_cv_path_APXS2
25606 if test -n "$APXS2"; then
25607 echo "$as_me:$LINENO: result: $APXS2" >&5
25608 echo "${ECHO_T}$APXS2" >&6
25610 echo "$as_me:$LINENO: result: no" >&5
25611 echo "${ECHO_T}no" >&6
25615 if test "$APXS2" = "no" ; then
25616 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25617 if test "$APXS2" = "no" && test -f "$i/apxs2" ; then
25621 if test "$APXS2" = "no" ; then
25622 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25623 if test "$APXS2" = "no" && test -f "$i/apxs" ; then
25632 echo "$as_me:$LINENO: checking to see if Apache2 apxs was located" >&5
25633 echo $ECHO_N "checking to see if Apache2 apxs was located... $ECHO_C" >&6
25634 if test ! -f "$APXS2" ; then
25635 echo "$as_me:$LINENO: result: no" >&5
25636 echo "${ECHO_T}no" >&6
25637 { { echo "$as_me:$LINENO: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&5
25638 echo "$as_me: error: Unable to locate Apache2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs2 option." >&2;}
25639 { (exit 1); exit 1; }; }
25641 echo "$as_me:$LINENO: result: $APXS2" >&5
25642 echo "${ECHO_T}$APXS2" >&6
25647 # Check whether --with-apr or --without-apr was given.
25648 if test "${with_apr+set}" = set; then
25649 withval="$with_apr"
25651 echo "$as_me:$LINENO: checking for user-specified apr-config name/location" >&5
25652 echo $ECHO_N "checking for user-specified apr-config name/location... $ECHO_C" >&6
25653 if test "$withval" != "no" ; then
25654 if test "$withval" != "yes"; then
25655 APR_CONFIG=$withval
25656 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25657 echo "${ECHO_T}\"$withval\"" >&6
25663 # Extract the first word of "apr-config", so it can be a program name with args.
25664 set dummy apr-config; ac_word=$2
25665 echo "$as_me:$LINENO: checking for $ac_word" >&5
25666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25667 if test "${ac_cv_path_APR_CONFIG+set}" = set; then
25668 echo $ECHO_N "(cached) $ECHO_C" >&6
25670 case $APR_CONFIG in
25672 ac_cv_path_APR_CONFIG="$APR_CONFIG" # Let the user override the test with a path.
25675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25676 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25677 for as_dir in $as_dummy
25680 test -z "$as_dir" && as_dir=.
25681 for ac_exec_ext in '' $ac_executable_extensions; do
25682 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25683 ac_cv_path_APR_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25693 APR_CONFIG=$ac_cv_path_APR_CONFIG
25695 if test -n "$APR_CONFIG"; then
25696 echo "$as_me:$LINENO: result: $APR_CONFIG" >&5
25697 echo "${ECHO_T}$APR_CONFIG" >&6
25699 echo "$as_me:$LINENO: result: no" >&5
25700 echo "${ECHO_T}no" >&6
25705 if test -f "${APR_CONFIG}"; then
25706 APR_CFLAGS="`${APR_CONFIG} --cflags` `${APR_CONFIG} --cppflags` `${APR_CONFIG} --includes`"
25708 { { echo "$as_me:$LINENO: error: Unable to locate apr-config, may need --with-apr option." >&5
25709 echo "$as_me: error: Unable to locate apr-config, may need --with-apr option." >&2;}
25710 { (exit 1); exit 1; }; }
25715 # Check whether --with-apu or --without-apu was given.
25716 if test "${with_apu+set}" = set; then
25717 withval="$with_apu"
25719 echo "$as_me:$LINENO: checking for user-specified apu-config name/location" >&5
25720 echo $ECHO_N "checking for user-specified apu-config name/location... $ECHO_C" >&6
25721 if test "$withval" != "no" ; then
25722 if test "$withval" != "yes"; then
25723 APR_CONFIG=$withval
25724 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25725 echo "${ECHO_T}\"$withval\"" >&6
25731 # Extract the first word of "apu-config", so it can be a program name with args.
25732 set dummy apu-config; ac_word=$2
25733 echo "$as_me:$LINENO: checking for $ac_word" >&5
25734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25735 if test "${ac_cv_path_APU_CONFIG+set}" = set; then
25736 echo $ECHO_N "(cached) $ECHO_C" >&6
25738 case $APU_CONFIG in
25740 ac_cv_path_APU_CONFIG="$APU_CONFIG" # Let the user override the test with a path.
25743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25744 as_dummy="`$APXS2 -q SBINDIR`:$PATH"
25745 for as_dir in $as_dummy
25748 test -z "$as_dir" && as_dir=.
25749 for ac_exec_ext in '' $ac_executable_extensions; do
25750 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25751 ac_cv_path_APU_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25752 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25761 APU_CONFIG=$ac_cv_path_APU_CONFIG
25763 if test -n "$APU_CONFIG"; then
25764 echo "$as_me:$LINENO: result: $APU_CONFIG" >&5
25765 echo "${ECHO_T}$APU_CONFIG" >&6
25767 echo "$as_me:$LINENO: result: no" >&5
25768 echo "${ECHO_T}no" >&6
25773 if test -f "${APU_CONFIG}"; then
25774 APU_CFLAGS="`${APU_CONFIG} --includes`"
25776 { { echo "$as_me:$LINENO: error: Unable to locate apu-config, may need --with-apu option." >&5
25777 echo "$as_me: error: Unable to locate apu-config, may need --with-apu option." >&2;}
25778 { (exit 1); exit 1; }; }
25781 # extract settings we need from APXS2 -q
25782 APXS2_CC="`$APXS2 -q CC`"
25783 APXS2_CFLAGS="`$APXS2 -q CPPFLAGS` `$APXS2 -q CFLAGS` $APU_CFLAGS"
25784 APXS2_INCLUDE="`$APXS2 -q INCLUDEDIR`"
25791 # Apache 2.2 (mod_shib_22)
25792 # --enable-apache-22
25793 # --with-apxs22 (DSO build, the normal way, uses apxs to derive build flags)
25794 # --with-apr1 (DSO build, APR development package installed separately)
25795 # --with-apu1 (DSO build, APR-UTIL development package installed separately)
25797 # Check whether --enable-apache-22 or --disable-apache-22 was given.
25798 if test "${enable_apache_22+set}" = set; then
25799 enableval="$enable_apache_22"
25800 if test "x$enableval" = "x" ; then
25803 WANT_APACHE_22="$enableval"
25809 echo "$as_me:$LINENO: checking whether to build Apache 2.2 module" >&5
25810 echo $ECHO_N "checking whether to build Apache 2.2 module... $ECHO_C" >&6
25811 if test "$WANT_APACHE_22" != yes && test "$WANT_APACHE_22" != no ; then
25814 echo "$as_me:$LINENO: result: $WANT_APACHE_22" >&5
25815 echo "${ECHO_T}$WANT_APACHE_22" >&6
25817 if test "$WANT_APACHE_22" = "yes" ; then
25819 # Check whether --with-apxs22 or --without-apxs22 was given.
25820 if test "${with_apxs22+set}" = set; then
25821 withval="$with_apxs22"
25823 echo "$as_me:$LINENO: checking for user-specified Apache2.2 apxs name/location" >&5
25824 echo $ECHO_N "checking for user-specified Apache2.2 apxs name/location... $ECHO_C" >&6
25825 if test "$withval" != "no" ; then
25826 if test "$withval" != "yes"; then
25828 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25829 echo "${ECHO_T}\"$withval\"" >&6
25835 # Extract the first word of "apxs2", so it can be a program name with args.
25836 set dummy apxs2; ac_word=$2
25837 echo "$as_me:$LINENO: checking for $ac_word" >&5
25838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25839 if test "${ac_cv_path_APXS22+set}" = set; then
25840 echo $ECHO_N "(cached) $ECHO_C" >&6
25844 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25848 for as_dir in $PATH
25851 test -z "$as_dir" && as_dir=.
25852 for ac_exec_ext in '' $ac_executable_extensions; do
25853 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25854 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25861 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25865 APXS22=$ac_cv_path_APXS22
25867 if test -n "$APXS22"; then
25868 echo "$as_me:$LINENO: result: $APXS22" >&5
25869 echo "${ECHO_T}$APXS22" >&6
25871 echo "$as_me:$LINENO: result: no" >&5
25872 echo "${ECHO_T}no" >&6
25875 if test "$APXS22" = "no" ; then
25876 # Extract the first word of "apxs", so it can be a program name with args.
25877 set dummy apxs; ac_word=$2
25878 echo "$as_me:$LINENO: checking for $ac_word" >&5
25879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25880 if test "${ac_cv_path_APXS22+set}" = set; then
25881 echo $ECHO_N "(cached) $ECHO_C" >&6
25885 ac_cv_path_APXS22="$APXS22" # Let the user override the test with a path.
25888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25889 for as_dir in $PATH
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895 ac_cv_path_APXS22="$as_dir/$ac_word$ac_exec_ext"
25896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25902 test -z "$ac_cv_path_APXS22" && ac_cv_path_APXS22="no"
25906 APXS22=$ac_cv_path_APXS22
25908 if test -n "$APXS22"; then
25909 echo "$as_me:$LINENO: result: $APXS22" >&5
25910 echo "${ECHO_T}$APXS22" >&6
25912 echo "$as_me:$LINENO: result: no" >&5
25913 echo "${ECHO_T}no" >&6
25917 if test "$APXS22" = "no" ; then
25918 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25919 if test "$APXS22" = "no" && test -f "$i/apxs2" ; then
25923 if test "$APXS22" = "no" ; then
25924 for i in /usr/sbin /usr/local/apache2/bin /usr/local/apache/bin ; do
25925 if test "$APXS22" = "no" && test -f "$i/apxs" ; then
25934 echo "$as_me:$LINENO: checking to see if Apache2.2 apxs was located" >&5
25935 echo $ECHO_N "checking to see if Apache2.2 apxs was located... $ECHO_C" >&6
25936 if test ! -f "$APXS22" ; then
25937 echo "$as_me:$LINENO: result: no" >&5
25938 echo "${ECHO_T}no" >&6
25939 { { echo "$as_me:$LINENO: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&5
25940 echo "$as_me: error: Unable to locate Apache2.2 apxs script. An Apache development package may be missing from your server, or you may need to use the --with-apxs22 option." >&2;}
25941 { (exit 1); exit 1; }; }
25943 echo "$as_me:$LINENO: result: $APXS22" >&5
25944 echo "${ECHO_T}$APXS22" >&6
25949 # Check whether --with-apr1 or --without-apr1 was given.
25950 if test "${with_apr1+set}" = set; then
25951 withval="$with_apr1"
25953 echo "$as_me:$LINENO: checking for user-specified apr-1-config name/location" >&5
25954 echo $ECHO_N "checking for user-specified apr-1-config name/location... $ECHO_C" >&6
25955 if test "$withval" != "no" ; then
25956 if test "$withval" != "yes"; then
25957 APR1_CONFIG=$withval
25958 echo "$as_me:$LINENO: result: \"$withval\"" >&5
25959 echo "${ECHO_T}\"$withval\"" >&6
25965 # Extract the first word of "apr-1-config", so it can be a program name with args.
25966 set dummy apr-1-config; ac_word=$2
25967 echo "$as_me:$LINENO: checking for $ac_word" >&5
25968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25969 if test "${ac_cv_path_APR1_CONFIG+set}" = set; then
25970 echo $ECHO_N "(cached) $ECHO_C" >&6
25972 case $APR1_CONFIG in
25974 ac_cv_path_APR1_CONFIG="$APR1_CONFIG" # Let the user override the test with a path.
25977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25978 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
25979 for as_dir in $as_dummy
25982 test -z "$as_dir" && as_dir=.
25983 for ac_exec_ext in '' $ac_executable_extensions; do
25984 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25985 ac_cv_path_APR1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25995 APR1_CONFIG=$ac_cv_path_APR1_CONFIG
25997 if test -n "$APR1_CONFIG"; then
25998 echo "$as_me:$LINENO: result: $APR1_CONFIG" >&5
25999 echo "${ECHO_T}$APR1_CONFIG" >&6
26001 echo "$as_me:$LINENO: result: no" >&5
26002 echo "${ECHO_T}no" >&6
26007 if test -f "${APR1_CONFIG}"; then
26008 APR1_CFLAGS="`${APR1_CONFIG} --cflags` `${APR1_CONFIG} --cppflags` `${APR1_CONFIG} --includes`"
26010 { { echo "$as_me:$LINENO: error: Unable to locate apr-1-config, may need --with-apr1 option." >&5
26011 echo "$as_me: error: Unable to locate apr-1-config, may need --with-apr1 option." >&2;}
26012 { (exit 1); exit 1; }; }
26017 # Check whether --with-apu1 or --without-apu1 was given.
26018 if test "${with_apu1+set}" = set; then
26019 withval="$with_apu1"
26021 echo "$as_me:$LINENO: checking for user-specified apu-1-config name/location" >&5
26022 echo $ECHO_N "checking for user-specified apu-1-config name/location... $ECHO_C" >&6
26023 if test "$withval" != "no" ; then
26024 if test "$withval" != "yes"; then
26025 APR1_CONFIG=$withval
26026 echo "$as_me:$LINENO: result: \"$withval\"" >&5
26027 echo "${ECHO_T}\"$withval\"" >&6
26033 # Extract the first word of "apu-1-config", so it can be a program name with args.
26034 set dummy apu-1-config; ac_word=$2
26035 echo "$as_me:$LINENO: checking for $ac_word" >&5
26036 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26037 if test "${ac_cv_path_APU1_CONFIG+set}" = set; then
26038 echo $ECHO_N "(cached) $ECHO_C" >&6
26040 case $APU1_CONFIG in
26042 ac_cv_path_APU1_CONFIG="$APU1_CONFIG" # Let the user override the test with a path.
26045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26046 as_dummy="`$APXS22 -q SBINDIR`:$PATH"
26047 for as_dir in $as_dummy
26050 test -z "$as_dir" && as_dir=.
26051 for ac_exec_ext in '' $ac_executable_extensions; do
26052 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26053 ac_cv_path_APU1_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26063 APU1_CONFIG=$ac_cv_path_APU1_CONFIG
26065 if test -n "$APU1_CONFIG"; then
26066 echo "$as_me:$LINENO: result: $APU1_CONFIG" >&5
26067 echo "${ECHO_T}$APU1_CONFIG" >&6
26069 echo "$as_me:$LINENO: result: no" >&5
26070 echo "${ECHO_T}no" >&6
26075 if test -f "${APU1_CONFIG}"; then
26076 APU1_CFLAGS="`${APU1_CONFIG} --includes`"
26078 { { echo "$as_me:$LINENO: error: Unable to locate apu-1-config, may need --with-apu1 option." >&5
26079 echo "$as_me: error: Unable to locate apu-1-config, may need --with-apu1 option." >&2;}
26080 { (exit 1); exit 1; }; }
26083 # extract settings we need from APXS22 -q
26084 APXS22_CC="`$APXS22 -q CC`"
26085 APXS22_CFLAGS="`$APXS22 -q CPPFLAGS` `$APXS22 -q CFLAGS` $APR1_CFLAGS $APU1_CFLAGS"
26086 APXS22_INCLUDE="`$APXS22 -q INCLUDEDIR`"
26092 # always output the Makefile, even if you don't use it
26093 ac_config_files="$ac_config_files apache/Makefile"
26097 if test "$WANT_APACHE_13" = "yes"; then
26099 BUILD_AP13_FALSE='#'
26101 BUILD_AP13_TRUE='#'
26107 if test "$WANT_APACHE_20" = "yes"; then
26109 BUILD_AP20_FALSE='#'
26111 BUILD_AP20_TRUE='#'
26117 if test "$WANT_APACHE_22" = "yes"; then
26119 BUILD_AP22_FALSE='#'
26121 BUILD_AP22_TRUE='#'
26126 # add the apache module to the list of wanted subdirs..
26127 if test "$WANT_APACHE_13" = "yes" || test "$WANT_APACHE_20" = "yes" || test "$WANT_APACHE_22" = "yes" ; then
26128 WANT_SUBDIRS="$WANT_SUBDIRS apache"
26133 # Implement the checks of the ODBC Storage Service
26135 # 1) Assume the user wants ODBC; if it's not found then just continue without
26136 # 2) If the user specifically requested odbc, look for it and ERROR if not found
26137 # 3) If the user specifically requested no odbc, don't build it.
26140 ac_config_files="$ac_config_files odbc-store/Makefile"
26143 # determine whether we should enable the odbc ccache
26144 # Check whether --enable-odbc or --disable-odbc was given.
26145 if test "${enable_odbc+set}" = set; then
26146 enableval="$enable_odbc"
26147 odbc_enabled=$enableval
26149 odbc_enabled=default
26152 if test "x$odbc_enabled" = "x" ; then
26156 # Are we trying to build ODBC?
26157 echo "$as_me:$LINENO: checking whether to build the ODBC storage service" >&5
26158 echo $ECHO_N "checking whether to build the ODBC storage service... $ECHO_C" >&6
26159 if test "$odbc_enabled" = "yes" ; then
26161 echo "$as_me:$LINENO: result: yes" >&5
26162 echo "${ECHO_T}yes" >&6
26163 elif test "$odbc_enabled" = "default" ; then
26165 echo "$as_me:$LINENO: result: yes, if it can be found" >&5
26166 echo "${ECHO_T}yes, if it can be found" >&6
26169 echo "$as_me:$LINENO: result: no" >&5
26170 echo "${ECHO_T}no" >&6
26173 # If we're trying to build ODBC, try to find the odbc_config program.
26174 if test "$build_odbc" = "yes" ; then
26177 # Check whether --with-odbc or --without-odbc was given.
26178 if test "${with_odbc+set}" = set; then
26179 withval="$with_odbc"
26180 if test "$with_odbc" = no ; then
26181 { { echo "$as_me:$LINENO: error: Try running --disable-odbc instead." >&5
26182 echo "$as_me: error: Try running --disable-odbc instead." >&2;}
26183 { (exit 1); exit 1; }; }
26184 elif test "$with_odbc" != yes ; then
26185 odbc_dir="$with_odbc/bin"
26186 if test "$with_odbc" != /usr ; then
26187 ODBC_CFLAGS="-I$with_odbc/include"
26188 ODBC_LIBS="-L$with_odbc/lib"
26193 # Extract the first word of "odbc_config", so it can be a program name with args.
26194 set dummy odbc_config; ac_word=$2
26195 echo "$as_me:$LINENO: checking for $ac_word" >&5
26196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26197 if test "${ac_cv_path_ODBC_CONFIG+set}" = set; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26200 case $ODBC_CONFIG in
26202 ac_cv_path_ODBC_CONFIG="$ODBC_CONFIG" # Let the user override the test with a path.
26205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26206 for as_dir in $odbc_dir $PATH
26209 test -z "$as_dir" && as_dir=.
26210 for ac_exec_ext in '' $ac_executable_extensions; do
26211 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26212 ac_cv_path_ODBC_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26219 test -z "$ac_cv_path_ODBC_CONFIG" && ac_cv_path_ODBC_CONFIG="no"
26223 ODBC_CONFIG=$ac_cv_path_ODBC_CONFIG
26225 if test -n "$ODBC_CONFIG"; then
26226 echo "$as_me:$LINENO: result: $ODBC_CONFIG" >&5
26227 echo "${ECHO_T}$ODBC_CONFIG" >&6
26229 echo "$as_me:$LINENO: result: no" >&5
26230 echo "${ECHO_T}no" >&6
26233 if test "$ODBC_CONFIG" = no ; then
26234 { echo "$as_me:$LINENO: WARNING: Cannot find odbc_config, will try to guess settings." >&5
26235 echo "$as_me: WARNING: Cannot find odbc_config, will try to guess settings." >&2;}
26236 ODBC_LIBS="$ODBC_LIBS -lodbc"
26238 ODBC_CFLAGS=`$ODBC_CONFIG --cflags`
26239 ODBC_LIBS=`$ODBC_CONFIG --libs`
26242 save_CPPFLAGS="$CPPFLAGS"
26243 CPPFLAGS="$CPPFLAGS $ODBC_CFLAGS"
26245 if test "${ac_cv_header_sql_h+set}" = set; then
26246 echo "$as_me:$LINENO: checking for sql.h" >&5
26247 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26248 if test "${ac_cv_header_sql_h+set}" = set; then
26249 echo $ECHO_N "(cached) $ECHO_C" >&6
26251 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26252 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26254 # Is the header compilable?
26255 echo "$as_me:$LINENO: checking sql.h usability" >&5
26256 echo $ECHO_N "checking sql.h usability... $ECHO_C" >&6
26257 cat >conftest.$ac_ext <<_ACEOF
26260 cat confdefs.h >>conftest.$ac_ext
26261 cat >>conftest.$ac_ext <<_ACEOF
26262 /* end confdefs.h. */
26263 $ac_includes_default
26266 rm -f conftest.$ac_objext
26267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26268 (eval $ac_compile) 2>conftest.er1
26270 grep -v '^ *+' conftest.er1 >conftest.err
26272 cat conftest.err >&5
26273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26274 (exit $ac_status); } &&
26275 { ac_try='test -z "$ac_cxx_werror_flag"
26276 || test ! -s conftest.err'
26277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26278 (eval $ac_try) 2>&5
26280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26281 (exit $ac_status); }; } &&
26282 { ac_try='test -s conftest.$ac_objext'
26283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26284 (eval $ac_try) 2>&5
26286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26287 (exit $ac_status); }; }; then
26288 ac_header_compiler=yes
26290 echo "$as_me: failed program was:" >&5
26291 sed 's/^/| /' conftest.$ac_ext >&5
26293 ac_header_compiler=no
26295 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26296 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26297 echo "${ECHO_T}$ac_header_compiler" >&6
26299 # Is the header present?
26300 echo "$as_me:$LINENO: checking sql.h presence" >&5
26301 echo $ECHO_N "checking sql.h presence... $ECHO_C" >&6
26302 cat >conftest.$ac_ext <<_ACEOF
26305 cat confdefs.h >>conftest.$ac_ext
26306 cat >>conftest.$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26310 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26313 grep -v '^ *+' conftest.er1 >conftest.err
26315 cat conftest.err >&5
26316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26317 (exit $ac_status); } >/dev/null; then
26318 if test -s conftest.err; then
26319 ac_cpp_err=$ac_cxx_preproc_warn_flag
26320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
26327 if test -z "$ac_cpp_err"; then
26328 ac_header_preproc=yes
26330 echo "$as_me: failed program was:" >&5
26331 sed 's/^/| /' conftest.$ac_ext >&5
26333 ac_header_preproc=no
26335 rm -f conftest.err conftest.$ac_ext
26336 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26337 echo "${ECHO_T}$ac_header_preproc" >&6
26339 # So? What about this header?
26340 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
26342 { echo "$as_me:$LINENO: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&5
26343 echo "$as_me: WARNING: sql.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26344 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the compiler's result" >&5
26345 echo "$as_me: WARNING: sql.h: proceeding with the compiler's result" >&2;}
26346 ac_header_preproc=yes
26349 { echo "$as_me:$LINENO: WARNING: sql.h: present but cannot be compiled" >&5
26350 echo "$as_me: WARNING: sql.h: present but cannot be compiled" >&2;}
26351 { echo "$as_me:$LINENO: WARNING: sql.h: check for missing prerequisite headers?" >&5
26352 echo "$as_me: WARNING: sql.h: check for missing prerequisite headers?" >&2;}
26353 { echo "$as_me:$LINENO: WARNING: sql.h: see the Autoconf documentation" >&5
26354 echo "$as_me: WARNING: sql.h: see the Autoconf documentation" >&2;}
26355 { echo "$as_me:$LINENO: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&5
26356 echo "$as_me: WARNING: sql.h: section \"Present But Cannot Be Compiled\"" >&2;}
26357 { echo "$as_me:$LINENO: WARNING: sql.h: proceeding with the preprocessor's result" >&5
26358 echo "$as_me: WARNING: sql.h: proceeding with the preprocessor's result" >&2;}
26359 { echo "$as_me:$LINENO: WARNING: sql.h: in the future, the compiler will take precedence" >&5
26360 echo "$as_me: WARNING: sql.h: in the future, the compiler will take precedence" >&2;}
26363 ## --------------------------------------------- ##
26364 ## Report this to shibboleth-users@internet2.edu ##
26365 ## --------------------------------------------- ##
26368 sed "s/^/$as_me: WARNING: /" >&2
26371 echo "$as_me:$LINENO: checking for sql.h" >&5
26372 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6
26373 if test "${ac_cv_header_sql_h+set}" = set; then
26374 echo $ECHO_N "(cached) $ECHO_C" >&6
26376 ac_cv_header_sql_h=$ac_header_preproc
26378 echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
26379 echo "${ECHO_T}$ac_cv_header_sql_h" >&6
26382 if test $ac_cv_header_sql_h = yes; then
26389 if test "$have_sql_h" = no -a "$odbc_enabled" = "yes" ; then
26390 { { echo "$as_me:$LINENO: error: unable to find ODBC header files" >&5
26391 echo "$as_me: error: unable to find ODBC header files" >&2;}
26392 { (exit 1); exit 1; }; }
26395 if test "$have_sql_h" = yes ; then
26397 LIBS="$LIBS $ODBC_LIBS"
26398 echo "$as_me:$LINENO: checking if we can link againt ODBC" >&5
26399 echo $ECHO_N "checking if we can link againt ODBC... $ECHO_C" >&6
26400 cat >conftest.$ac_ext <<_ACEOF
26403 cat confdefs.h >>conftest.$ac_ext
26404 cat >>conftest.$ac_ext <<_ACEOF
26405 /* end confdefs.h. */
26407 #include <sqlext.h>
26412 SQLSetEnvAttr(SQL_NULL_HANDLE, SQL_ATTR_CONNECTION_POOLING, (void*)SQL_CP_ONE_PER_HENV, 0)
26417 rm -f conftest.$ac_objext conftest$ac_exeext
26418 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26419 (eval $ac_link) 2>conftest.er1
26421 grep -v '^ *+' conftest.er1 >conftest.err
26423 cat conftest.err >&5
26424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26425 (exit $ac_status); } &&
26426 { ac_try='test -z "$ac_cxx_werror_flag"
26427 || test ! -s conftest.err'
26428 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26429 (eval $ac_try) 2>&5
26431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26432 (exit $ac_status); }; } &&
26433 { ac_try='test -s conftest$ac_exeext'
26434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26435 (eval $ac_try) 2>&5
26437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26438 (exit $ac_status); }; }; then
26441 echo "$as_me: failed program was:" >&5
26442 sed 's/^/| /' conftest.$ac_ext >&5
26446 rm -f conftest.err conftest.$ac_objext \
26447 conftest$ac_exeext conftest.$ac_ext
26450 if test "$have_odbc_libs" = no ; then
26451 if test "$odbc_enabled" = "yes" ; then
26452 { { echo "$as_me:$LINENO: error: unable to link with ODBC Library" >&5
26453 echo "$as_me: error: unable to link with ODBC Library" >&2;}
26454 { (exit 1); exit 1; }; }
26456 echo "$as_me:$LINENO: result: no" >&5
26457 echo "${ECHO_T}no" >&6
26462 CPPFLAGS="$save_CPPFLAGS"
26465 # if have_odbc_libs=yes then go ahead with building ODBC
26466 if test "$have_odbc_libs" = yes ; then
26467 # this AC_MSG_RESULT is from above!
26468 echo "$as_me:$LINENO: result: yes" >&5
26469 echo "${ECHO_T}yes" >&6
26470 WANT_SUBDIRS="$WANT_SUBDIRS odbc-store"
26478 if test -n "$APXS_CC" && test "$APXS_CC" != "$CC" ; then
26479 echo "=================================================================="
26480 echo "WARNING: You have chosen to compile Apache-1.3 modules with a different"
26481 echo " compiler than the one used to compile Apache."
26483 echo " Current compiler: $CC"
26484 echo " Apache's compiler: $APXS_CC"
26486 echo "This could cause problems."
26487 echo "=================================================================="
26490 if test -n "$APXS2_CC" && test "$APXS2_CC" != "$CC" ; then
26491 echo "=================================================================="
26492 echo "WARNING: You have chosen to compile Apache-2.0 modules with a different"
26493 echo " compiler than the one used to compile Apache."
26495 echo " Current compiler: $CC"
26496 echo " Apache's compiler: $APXS2_CC"
26498 echo "This could cause problems."
26499 echo "=================================================================="
26502 if test -n "$APXS22_CC" && test "$APXS22_CC" != "$CC" ; then
26503 echo "=================================================================="
26504 echo "WARNING: You have chosen to compile Apache-2.2 modules with a different"
26505 echo " compiler than the one used to compile Apache."
26507 echo " Current compiler: $CC"
26508 echo " Apache's compiler: $APXS22_CC"
26510 echo "This could cause problems."
26511 echo "=================================================================="
26514 LIBTOOL="$LIBTOOL --silent"
26516 cat >confcache <<\_ACEOF
26517 # This file is a shell script that caches the results of configure
26518 # tests run on this system so they can be shared between configure
26519 # scripts and configure runs, see configure's option --config-cache.
26520 # It is not useful on other systems. If it contains results you don't
26521 # want to keep, you may remove or edit it.
26523 # config.status only pays attention to the cache file if you give it
26524 # the --recheck option to rerun configure.
26526 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26527 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26528 # following values.
26532 # The following way of writing the cache mishandles newlines in values,
26533 # but we know of no workaround that is simple, portable, and efficient.
26534 # So, don't put newlines in cache variables' values.
26535 # Ultrix sh set writes to stderr and can't be redirected directly,
26536 # and sets the high bit in the cache file unless we assign to the vars.
26539 case `(ac_space=' '; set | grep ac_space) 2>&1` in
26541 # `set' does not quote correctly, so add quotes (double-quote
26542 # substitution turns \\\\ into \\, and sed turns \\ into \).
26545 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26548 # `set' quotes correctly as required by POSIX, so do not add quotes.
26550 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
26557 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26559 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26561 if diff $cache_file confcache >/dev/null 2>&1; then :; else
26562 if test -w $cache_file; then
26563 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
26564 cat confcache >$cache_file
26566 echo "not updating unwritable cache $cache_file"
26571 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26572 # Let make expand exec_prefix.
26573 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26575 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26576 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26577 # trailing colons and then remove the whole line if VPATH becomes empty
26578 # (actually we leave an empty line to preserve line numbers).
26579 if test "x$srcdir" = x.; then
26580 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26581 s/:*\$(srcdir):*/:/;
26582 s/:*\${srcdir}:*/:/;
26584 s/^\([^=]*=[ ]*\):*/\1/;
26590 DEFS=-DHAVE_CONFIG_H
26594 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26595 # 1. Remove the extension, and $U if already installed.
26596 ac_i=`echo "$ac_i" |
26597 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
26599 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
26600 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
26602 LIBOBJS=$ac_libobjs
26604 LTLIBOBJS=$ac_ltlibobjs
26607 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26608 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26609 Usually this means the macro was only invoked conditionally." >&5
26610 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26611 Usually this means the macro was only invoked conditionally." >&2;}
26612 { (exit 1); exit 1; }; }
26614 if test -z "${DX_COND_doc_TRUE}" && test -z "${DX_COND_doc_FALSE}"; then
26615 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_doc\" was never defined.
26616 Usually this means the macro was only invoked conditionally." >&5
26617 echo "$as_me: error: conditional \"DX_COND_doc\" was never defined.
26618 Usually this means the macro was only invoked conditionally." >&2;}
26619 { (exit 1); exit 1; }; }
26621 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26622 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26623 Usually this means the macro was only invoked conditionally." >&5
26624 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26625 Usually this means the macro was only invoked conditionally." >&2;}
26626 { (exit 1); exit 1; }; }
26628 if test -z "${DX_COND_dot_TRUE}" && test -z "${DX_COND_dot_FALSE}"; then
26629 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_dot\" was never defined.
26630 Usually this means the macro was only invoked conditionally." >&5
26631 echo "$as_me: error: conditional \"DX_COND_dot\" was never defined.
26632 Usually this means the macro was only invoked conditionally." >&2;}
26633 { (exit 1); exit 1; }; }
26635 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26636 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26637 Usually this means the macro was only invoked conditionally." >&5
26638 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26639 Usually this means the macro was only invoked conditionally." >&2;}
26640 { (exit 1); exit 1; }; }
26642 if test -z "${DX_COND_man_TRUE}" && test -z "${DX_COND_man_FALSE}"; then
26643 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_man\" was never defined.
26644 Usually this means the macro was only invoked conditionally." >&5
26645 echo "$as_me: error: conditional \"DX_COND_man\" was never defined.
26646 Usually this means the macro was only invoked conditionally." >&2;}
26647 { (exit 1); exit 1; }; }
26649 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26650 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26651 Usually this means the macro was only invoked conditionally." >&5
26652 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26653 Usually this means the macro was only invoked conditionally." >&2;}
26654 { (exit 1); exit 1; }; }
26656 if test -z "${DX_COND_rtf_TRUE}" && test -z "${DX_COND_rtf_FALSE}"; then
26657 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_rtf\" was never defined.
26658 Usually this means the macro was only invoked conditionally." >&5
26659 echo "$as_me: error: conditional \"DX_COND_rtf\" was never defined.
26660 Usually this means the macro was only invoked conditionally." >&2;}
26661 { (exit 1); exit 1; }; }
26663 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26664 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26665 Usually this means the macro was only invoked conditionally." >&5
26666 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26667 Usually this means the macro was only invoked conditionally." >&2;}
26668 { (exit 1); exit 1; }; }
26670 if test -z "${DX_COND_xml_TRUE}" && test -z "${DX_COND_xml_FALSE}"; then
26671 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_xml\" was never defined.
26672 Usually this means the macro was only invoked conditionally." >&5
26673 echo "$as_me: error: conditional \"DX_COND_xml\" was never defined.
26674 Usually this means the macro was only invoked conditionally." >&2;}
26675 { (exit 1); exit 1; }; }
26677 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26678 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26679 Usually this means the macro was only invoked conditionally." >&5
26680 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26681 Usually this means the macro was only invoked conditionally." >&2;}
26682 { (exit 1); exit 1; }; }
26684 if test -z "${DX_COND_chm_TRUE}" && test -z "${DX_COND_chm_FALSE}"; then
26685 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chm\" was never defined.
26686 Usually this means the macro was only invoked conditionally." >&5
26687 echo "$as_me: error: conditional \"DX_COND_chm\" was never defined.
26688 Usually this means the macro was only invoked conditionally." >&2;}
26689 { (exit 1); exit 1; }; }
26691 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26692 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26693 Usually this means the macro was only invoked conditionally." >&5
26694 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26695 Usually this means the macro was only invoked conditionally." >&2;}
26696 { (exit 1); exit 1; }; }
26698 if test -z "${DX_COND_chi_TRUE}" && test -z "${DX_COND_chi_FALSE}"; then
26699 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_chi\" was never defined.
26700 Usually this means the macro was only invoked conditionally." >&5
26701 echo "$as_me: error: conditional \"DX_COND_chi\" was never defined.
26702 Usually this means the macro was only invoked conditionally." >&2;}
26703 { (exit 1); exit 1; }; }
26705 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26706 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26707 Usually this means the macro was only invoked conditionally." >&5
26708 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26709 Usually this means the macro was only invoked conditionally." >&2;}
26710 { (exit 1); exit 1; }; }
26712 if test -z "${DX_COND_html_TRUE}" && test -z "${DX_COND_html_FALSE}"; then
26713 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_html\" was never defined.
26714 Usually this means the macro was only invoked conditionally." >&5
26715 echo "$as_me: error: conditional \"DX_COND_html\" was never defined.
26716 Usually this means the macro was only invoked conditionally." >&2;}
26717 { (exit 1); exit 1; }; }
26719 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26720 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26721 Usually this means the macro was only invoked conditionally." >&5
26722 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26723 Usually this means the macro was only invoked conditionally." >&2;}
26724 { (exit 1); exit 1; }; }
26726 if test -z "${DX_COND_ps_TRUE}" && test -z "${DX_COND_ps_FALSE}"; then
26727 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_ps\" was never defined.
26728 Usually this means the macro was only invoked conditionally." >&5
26729 echo "$as_me: error: conditional \"DX_COND_ps\" was never defined.
26730 Usually this means the macro was only invoked conditionally." >&2;}
26731 { (exit 1); exit 1; }; }
26733 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26734 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26735 Usually this means the macro was only invoked conditionally." >&5
26736 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26737 Usually this means the macro was only invoked conditionally." >&2;}
26738 { (exit 1); exit 1; }; }
26740 if test -z "${DX_COND_pdf_TRUE}" && test -z "${DX_COND_pdf_FALSE}"; then
26741 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_pdf\" was never defined.
26742 Usually this means the macro was only invoked conditionally." >&5
26743 echo "$as_me: error: conditional \"DX_COND_pdf\" was never defined.
26744 Usually this means the macro was only invoked conditionally." >&2;}
26745 { (exit 1); exit 1; }; }
26747 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26748 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26749 Usually this means the macro was only invoked conditionally." >&5
26750 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26751 Usually this means the macro was only invoked conditionally." >&2;}
26752 { (exit 1); exit 1; }; }
26754 if test -z "${DX_COND_latex_TRUE}" && test -z "${DX_COND_latex_FALSE}"; then
26755 { { echo "$as_me:$LINENO: error: conditional \"DX_COND_latex\" was never defined.
26756 Usually this means the macro was only invoked conditionally." >&5
26757 echo "$as_me: error: conditional \"DX_COND_latex\" was never defined.
26758 Usually this means the macro was only invoked conditionally." >&2;}
26759 { (exit 1); exit 1; }; }
26761 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26762 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
26763 Usually this means the macro was only invoked conditionally." >&5
26764 echo "$as_me: error: conditional \"AMDEP\" was never defined.
26765 Usually this means the macro was only invoked conditionally." >&2;}
26766 { (exit 1); exit 1; }; }
26768 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26769 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
26770 Usually this means the macro was only invoked conditionally." >&5
26771 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
26772 Usually this means the macro was only invoked conditionally." >&2;}
26773 { (exit 1); exit 1; }; }
26775 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
26776 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
26777 Usually this means the macro was only invoked conditionally." >&5
26778 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
26779 Usually this means the macro was only invoked conditionally." >&2;}
26780 { (exit 1); exit 1; }; }
26782 if test -z "${BUILD_NSAPI_TRUE}" && test -z "${BUILD_NSAPI_FALSE}"; then
26783 { { echo "$as_me:$LINENO: error: conditional \"BUILD_NSAPI\" was never defined.
26784 Usually this means the macro was only invoked conditionally." >&5
26785 echo "$as_me: error: conditional \"BUILD_NSAPI\" was never defined.
26786 Usually this means the macro was only invoked conditionally." >&2;}
26787 { (exit 1); exit 1; }; }
26789 if test -z "${BUILD_FASTCGI_TRUE}" && test -z "${BUILD_FASTCGI_FALSE}"; then
26790 { { echo "$as_me:$LINENO: error: conditional \"BUILD_FASTCGI\" was never defined.
26791 Usually this means the macro was only invoked conditionally." >&5
26792 echo "$as_me: error: conditional \"BUILD_FASTCGI\" was never defined.
26793 Usually this means the macro was only invoked conditionally." >&2;}
26794 { (exit 1); exit 1; }; }
26796 if test -z "${BUILD_MEMCACHED_TRUE}" && test -z "${BUILD_MEMCACHED_FALSE}"; then
26797 { { echo "$as_me:$LINENO: error: conditional \"BUILD_MEMCACHED\" was never defined.
26798 Usually this means the macro was only invoked conditionally." >&5
26799 echo "$as_me: error: conditional \"BUILD_MEMCACHED\" was never defined.
26800 Usually this means the macro was only invoked conditionally." >&2;}
26801 { (exit 1); exit 1; }; }
26803 if test -z "${BUILD_AP13_TRUE}" && test -z "${BUILD_AP13_FALSE}"; then
26804 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP13\" was never defined.
26805 Usually this means the macro was only invoked conditionally." >&5
26806 echo "$as_me: error: conditional \"BUILD_AP13\" was never defined.
26807 Usually this means the macro was only invoked conditionally." >&2;}
26808 { (exit 1); exit 1; }; }
26810 if test -z "${BUILD_AP20_TRUE}" && test -z "${BUILD_AP20_FALSE}"; then
26811 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP20\" was never defined.
26812 Usually this means the macro was only invoked conditionally." >&5
26813 echo "$as_me: error: conditional \"BUILD_AP20\" was never defined.
26814 Usually this means the macro was only invoked conditionally." >&2;}
26815 { (exit 1); exit 1; }; }
26817 if test -z "${BUILD_AP22_TRUE}" && test -z "${BUILD_AP22_FALSE}"; then
26818 { { echo "$as_me:$LINENO: error: conditional \"BUILD_AP22\" was never defined.
26819 Usually this means the macro was only invoked conditionally." >&5
26820 echo "$as_me: error: conditional \"BUILD_AP22\" was never defined.
26821 Usually this means the macro was only invoked conditionally." >&2;}
26822 { (exit 1); exit 1; }; }
26825 : ${CONFIG_STATUS=./config.status}
26826 ac_clean_files_save=$ac_clean_files
26827 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26828 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26829 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26830 cat >$CONFIG_STATUS <<_ACEOF
26832 # Generated by $as_me.
26833 # Run this file to recreate the current configuration.
26834 # Compiler output produced by configure, useful for debugging
26835 # configure, is in config.log if it exists.
26838 ac_cs_recheck=false
26840 SHELL=\${CONFIG_SHELL-$SHELL}
26843 cat >>$CONFIG_STATUS <<\_ACEOF
26844 ## --------------------- ##
26845 ## M4sh Initialization. ##
26846 ## --------------------- ##
26848 # Be Bourne compatible
26849 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26852 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26853 # is contrary to our usage. Disable this feature.
26854 alias -g '${1+"$@"}'='"$@"'
26855 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
26858 DUALCASE=1; export DUALCASE # for MKS sh
26860 # Support unset when possible.
26861 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26868 # Work around bugs in pre-3.0 UWIN ksh.
26869 $as_unset ENV MAIL MAILPATH
26876 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26877 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26878 LC_TELEPHONE LC_TIME
26880 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26881 eval $as_var=C; export $as_var
26887 # Required to use basename.
26888 if expr a : '\(a\)' >/dev/null 2>&1; then
26894 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
26895 as_basename=basename
26901 # Name of the executable.
26902 as_me=`$as_basename "$0" ||
26903 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26904 X"$0" : 'X\(//\)$' \| \
26905 X"$0" : 'X\(/\)$' \| \
26906 . : '\(.\)' 2>/dev/null ||
26908 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
26909 /^X\/\(\/\/\)$/{ s//\1/; q; }
26910 /^X\/\(\/\).*/{ s//\1/; q; }
26914 # PATH needs CR, and LINENO needs CR and PATH.
26915 # Avoid depending upon Character Ranges.
26916 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26917 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26918 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26919 as_cr_digits='0123456789'
26920 as_cr_alnum=$as_cr_Letters$as_cr_digits
26922 # The user is always right.
26923 if test "${PATH_SEPARATOR+set}" != set; then
26924 echo "#! /bin/sh" >conf$$.sh
26925 echo "exit 0" >>conf$$.sh
26927 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26936 as_lineno_1=$LINENO
26937 as_lineno_2=$LINENO
26938 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26939 test "x$as_lineno_1" != "x$as_lineno_2" &&
26940 test "x$as_lineno_3" = "x$as_lineno_2" || {
26941 # Find who we are. Look in the path if we contain no path at all
26944 *[\\/]* ) as_myself=$0 ;;
26945 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26946 for as_dir in $PATH
26949 test -z "$as_dir" && as_dir=.
26950 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26955 # We did not find ourselves, most probably we were run as `sh COMMAND'
26956 # in which case we are not to be found in the path.
26957 if test "x$as_myself" = x; then
26960 if test ! -f "$as_myself"; then
26961 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
26962 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
26963 { (exit 1); exit 1; }; }
26965 case $CONFIG_SHELL in
26967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26968 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
26971 test -z "$as_dir" && as_dir=.
26972 for as_base in sh bash ksh sh5; do
26975 if ("$as_dir/$as_base" -c '
26976 as_lineno_1=$LINENO
26977 as_lineno_2=$LINENO
26978 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
26979 test "x$as_lineno_1" != "x$as_lineno_2" &&
26980 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
26981 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
26982 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
26983 CONFIG_SHELL=$as_dir/$as_base
26984 export CONFIG_SHELL
26985 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
26993 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26994 # uniformly replaced by the line number. The first 'sed' inserts a
26995 # line-number line before each line; the second 'sed' does the real
26996 # work. The second script uses 'N' to pair each line-number line
26997 # with the numbered line, and appends trailing '-' during
26998 # substitution so that $LINENO is not a special case at line end.
26999 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27000 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27001 sed '=' <$as_myself |
27006 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27009 s,^['$as_cr_digits']*\n,,
27010 ' >$as_me.lineno &&
27011 chmod +x $as_me.lineno ||
27012 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27013 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27014 { (exit 1); exit 1; }; }
27016 # Don't try to exec as it changes $[0], causing all sort of problems
27017 # (the dirname of $[0] is not the place where we might find the
27018 # original and so on. Autoconf is especially sensible to this).
27020 # Exit status is that of the last command.
27025 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27026 *c*,-n*) ECHO_N= ECHO_C='
27028 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27029 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27032 if expr a : '\(a\)' >/dev/null 2>&1; then
27038 rm -f conf$$ conf$$.exe conf$$.file
27040 if ln -s conf$$.file conf$$ 2>/dev/null; then
27041 # We could just check for DJGPP; but this test a) works b) is more generic
27042 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27043 if test -f conf$$.exe; then
27044 # Don't use ln at all; we don't have any links
27049 elif ln conf$$.file conf$$ 2>/dev/null; then
27054 rm -f conf$$ conf$$.exe conf$$.file
27056 if mkdir -p . 2>/dev/null; then
27059 test -d ./-p && rmdir ./-p
27063 as_executable_p="test -f"
27065 # Sed expression to map a string onto a valid CPP name.
27066 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27068 # Sed expression to map a string onto a valid variable name.
27069 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27073 # We need space, tab and new line, in precisely that order.
27083 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27084 # report actual input values of CONFIG_FILES etc. instead of their
27085 # values after options handling. Logging --version etc. is OK.
27089 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27090 ## Running $as_me. ##
27095 This file was extended by shibboleth $as_me 2.3, which was
27096 generated by GNU Autoconf 2.59. Invocation command line was
27098 CONFIG_FILES = $CONFIG_FILES
27099 CONFIG_HEADERS = $CONFIG_HEADERS
27100 CONFIG_LINKS = $CONFIG_LINKS
27101 CONFIG_COMMANDS = $CONFIG_COMMANDS
27105 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27109 # Files that config.status was made for.
27110 if test -n "$ac_config_files"; then
27111 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27114 if test -n "$ac_config_headers"; then
27115 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27118 if test -n "$ac_config_links"; then
27119 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27122 if test -n "$ac_config_commands"; then
27123 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27126 cat >>$CONFIG_STATUS <<\_ACEOF
27129 \`$as_me' instantiates files from templates according to the
27130 current configuration.
27132 Usage: $0 [OPTIONS] [FILE]...
27134 -h, --help print this help, then exit
27135 -V, --version print version number, then exit
27136 -q, --quiet do not print progress messages
27137 -d, --debug don't remove temporary files
27138 --recheck update $as_me by reconfiguring in the same conditions
27139 --file=FILE[:TEMPLATE]
27140 instantiate the configuration file FILE
27141 --header=FILE[:TEMPLATE]
27142 instantiate the configuration header FILE
27144 Configuration files:
27147 Configuration headers:
27150 Configuration commands:
27153 Report bugs to <bug-autoconf@gnu.org>."
27156 cat >>$CONFIG_STATUS <<_ACEOF
27158 shibboleth config.status 2.3
27159 configured by $0, generated by GNU Autoconf 2.59,
27160 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27162 Copyright (C) 2003 Free Software Foundation, Inc.
27163 This config.status script is free software; the Free Software Foundation
27164 gives unlimited permission to copy, distribute and modify it."
27169 cat >>$CONFIG_STATUS <<\_ACEOF
27170 # If no file are specified by the user, then we need to provide default
27171 # value. By we need to know if files were specified by the user.
27177 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27178 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27186 *) # This is not an option, so the user has probably given explicit
27189 ac_need_defaults=false;;
27193 # Handling of the options.
27195 cat >>$CONFIG_STATUS <<\_ACEOF
27196 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27198 --version | --vers* | -V )
27199 echo "$ac_cs_version"; exit 0 ;;
27201 # Conflict between --help and --header
27202 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27203 Try \`$0 --help' for more information." >&5
27204 echo "$as_me: error: ambiguous option: $1
27205 Try \`$0 --help' for more information." >&2;}
27206 { (exit 1); exit 1; }; };;
27207 --help | --hel | -h )
27208 echo "$ac_cs_usage"; exit 0 ;;
27209 --debug | --d* | -d )
27211 --file | --fil | --fi | --f )
27213 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27214 ac_need_defaults=false;;
27215 --header | --heade | --head | --hea )
27217 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27218 ac_need_defaults=false;;
27219 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27220 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27223 # This is an error.
27224 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27225 Try \`$0 --help' for more information." >&5
27226 echo "$as_me: error: unrecognized option: $1
27227 Try \`$0 --help' for more information." >&2;}
27228 { (exit 1); exit 1; }; } ;;
27230 *) ac_config_targets="$ac_config_targets $1" ;;
27236 ac_configure_extra_args=
27238 if $ac_cs_silent; then
27240 ac_configure_extra_args="$ac_configure_extra_args --silent"
27244 cat >>$CONFIG_STATUS <<_ACEOF
27245 if \$ac_cs_recheck; then
27246 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27247 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27252 cat >>$CONFIG_STATUS <<_ACEOF
27254 # INIT-COMMANDS section.
27257 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27263 cat >>$CONFIG_STATUS <<\_ACEOF
27264 for ac_config_target in $ac_config_targets
27266 case "$ac_config_target" in
27267 # Handling of arguments.
27268 "shibboleth.spec" ) CONFIG_FILES="$CONFIG_FILES shibboleth.spec" ;;
27269 "pkginfo" ) CONFIG_FILES="$CONFIG_FILES pkginfo" ;;
27270 "Portfile" ) CONFIG_FILES="$CONFIG_FILES Portfile" ;;
27271 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27272 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
27273 "schemas/Makefile" ) CONFIG_FILES="$CONFIG_FILES schemas/Makefile" ;;
27274 "configs/Makefile" ) CONFIG_FILES="$CONFIG_FILES configs/Makefile" ;;
27275 "shibsp/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibsp/Makefile" ;;
27276 "shibd/Makefile" ) CONFIG_FILES="$CONFIG_FILES shibd/Makefile" ;;
27277 "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
27278 "selinux/Makefile" ) CONFIG_FILES="$CONFIG_FILES selinux/Makefile" ;;
27279 "adfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES adfs/Makefile" ;;
27280 "nsapi_shib/Makefile" ) CONFIG_FILES="$CONFIG_FILES nsapi_shib/Makefile" ;;
27281 "fastcgi/Makefile" ) CONFIG_FILES="$CONFIG_FILES fastcgi/Makefile" ;;
27282 "memcache-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES memcache-store/Makefile" ;;
27283 "apache/Makefile" ) CONFIG_FILES="$CONFIG_FILES apache/Makefile" ;;
27284 "odbc-store/Makefile" ) CONFIG_FILES="$CONFIG_FILES odbc-store/Makefile" ;;
27285 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27286 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27287 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27288 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27289 { (exit 1); exit 1; }; };;
27293 # If the user did not use the arguments to specify the items to instantiate,
27294 # then the envvar interface is used. Set only those that are not.
27295 # We use the long form for the default assignment because of an extremely
27296 # bizarre bug on SunOS 4.1.3.
27297 if $ac_need_defaults; then
27298 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27299 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27300 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27303 # Have a temporary directory for convenience. Make it in the build tree
27304 # simply because there is no reason to put it here, and in addition,
27305 # creating and moving files from /tmp can sometimes cause problems.
27306 # Create a temporary directory, and hook for its removal unless debugging.
27309 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27310 trap '{ (exit 1); exit 1; }' 1 2 13 15
27313 # Create a (secure) tmp directory for tmp files.
27316 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27317 test -n "$tmp" && test -d "$tmp"
27320 tmp=./confstat$$-$RANDOM
27321 (umask 077 && mkdir $tmp)
27324 echo "$me: cannot create a temporary directory in ." >&2
27325 { (exit 1); exit 1; }
27330 cat >>$CONFIG_STATUS <<_ACEOF
27333 # CONFIG_FILES section.
27336 # No need to generate the scripts if there are no CONFIG_FILES.
27337 # This happens for instance when ./config.status config.h
27338 if test -n "\$CONFIG_FILES"; then
27339 # Protect against being on the right side of a sed subst in config.status.
27340 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27341 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27342 s,@SHELL@,$SHELL,;t t
27343 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27344 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27345 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27346 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27347 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27348 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27349 s,@exec_prefix@,$exec_prefix,;t t
27350 s,@prefix@,$prefix,;t t
27351 s,@program_transform_name@,$program_transform_name,;t t
27352 s,@bindir@,$bindir,;t t
27353 s,@sbindir@,$sbindir,;t t
27354 s,@libexecdir@,$libexecdir,;t t
27355 s,@datadir@,$datadir,;t t
27356 s,@sysconfdir@,$sysconfdir,;t t
27357 s,@sharedstatedir@,$sharedstatedir,;t t
27358 s,@localstatedir@,$localstatedir,;t t
27359 s,@libdir@,$libdir,;t t
27360 s,@includedir@,$includedir,;t t
27361 s,@oldincludedir@,$oldincludedir,;t t
27362 s,@infodir@,$infodir,;t t
27363 s,@mandir@,$mandir,;t t
27364 s,@build_alias@,$build_alias,;t t
27365 s,@host_alias@,$host_alias,;t t
27366 s,@target_alias@,$target_alias,;t t
27367 s,@DEFS@,$DEFS,;t t
27368 s,@ECHO_C@,$ECHO_C,;t t
27369 s,@ECHO_N@,$ECHO_N,;t t
27370 s,@ECHO_T@,$ECHO_T,;t t
27371 s,@LIBS@,$LIBS,;t t
27372 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27373 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27374 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27375 s,@CYGPATH_W@,$CYGPATH_W,;t t
27376 s,@PACKAGE@,$PACKAGE,;t t
27377 s,@VERSION@,$VERSION,;t t
27378 s,@ACLOCAL@,$ACLOCAL,;t t
27379 s,@AUTOCONF@,$AUTOCONF,;t t
27380 s,@AUTOMAKE@,$AUTOMAKE,;t t
27381 s,@AUTOHEADER@,$AUTOHEADER,;t t
27382 s,@MAKEINFO@,$MAKEINFO,;t t
27383 s,@install_sh@,$install_sh,;t t
27384 s,@STRIP@,$STRIP,;t t
27385 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27386 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27387 s,@mkdir_p@,$mkdir_p,;t t
27389 s,@SET_MAKE@,$SET_MAKE,;t t
27390 s,@am__leading_dot@,$am__leading_dot,;t t
27391 s,@AMTAR@,$AMTAR,;t t
27392 s,@am__tar@,$am__tar,;t t
27393 s,@am__untar@,$am__untar,;t t
27394 s,@DX_PROJECT@,$DX_PROJECT,;t t
27395 s,@DX_CONFIG@,$DX_CONFIG,;t t
27396 s,@DX_DOCDIR@,$DX_DOCDIR,;t t
27397 s,@DX_ENV@,$DX_ENV,;t t
27398 s,@DX_FLAG_doc@,$DX_FLAG_doc,;t t
27399 s,@DX_DOXYGEN@,$DX_DOXYGEN,;t t
27400 s,@ac_pt_DX_DOXYGEN@,$ac_pt_DX_DOXYGEN,;t t
27401 s,@DX_PERL@,$DX_PERL,;t t
27402 s,@ac_pt_DX_PERL@,$ac_pt_DX_PERL,;t t
27403 s,@DX_COND_doc_TRUE@,$DX_COND_doc_TRUE,;t t
27404 s,@DX_COND_doc_FALSE@,$DX_COND_doc_FALSE,;t t
27405 s,@DX_FLAG_dot@,$DX_FLAG_dot,;t t
27406 s,@DX_DOT@,$DX_DOT,;t t
27407 s,@ac_pt_DX_DOT@,$ac_pt_DX_DOT,;t t
27408 s,@DX_COND_dot_TRUE@,$DX_COND_dot_TRUE,;t t
27409 s,@DX_COND_dot_FALSE@,$DX_COND_dot_FALSE,;t t
27410 s,@DX_FLAG_man@,$DX_FLAG_man,;t t
27411 s,@DX_COND_man_TRUE@,$DX_COND_man_TRUE,;t t
27412 s,@DX_COND_man_FALSE@,$DX_COND_man_FALSE,;t t
27413 s,@DX_FLAG_rtf@,$DX_FLAG_rtf,;t t
27414 s,@DX_COND_rtf_TRUE@,$DX_COND_rtf_TRUE,;t t
27415 s,@DX_COND_rtf_FALSE@,$DX_COND_rtf_FALSE,;t t
27416 s,@DX_FLAG_xml@,$DX_FLAG_xml,;t t
27417 s,@DX_COND_xml_TRUE@,$DX_COND_xml_TRUE,;t t
27418 s,@DX_COND_xml_FALSE@,$DX_COND_xml_FALSE,;t t
27419 s,@DX_FLAG_chm@,$DX_FLAG_chm,;t t
27420 s,@DX_HHC@,$DX_HHC,;t t
27421 s,@ac_pt_DX_HHC@,$ac_pt_DX_HHC,;t t
27422 s,@DX_COND_chm_TRUE@,$DX_COND_chm_TRUE,;t t
27423 s,@DX_COND_chm_FALSE@,$DX_COND_chm_FALSE,;t t
27424 s,@DX_FLAG_chi@,$DX_FLAG_chi,;t t
27425 s,@DX_COND_chi_TRUE@,$DX_COND_chi_TRUE,;t t
27426 s,@DX_COND_chi_FALSE@,$DX_COND_chi_FALSE,;t t
27427 s,@DX_FLAG_html@,$DX_FLAG_html,;t t
27428 s,@DX_COND_html_TRUE@,$DX_COND_html_TRUE,;t t
27429 s,@DX_COND_html_FALSE@,$DX_COND_html_FALSE,;t t
27430 s,@DX_FLAG_ps@,$DX_FLAG_ps,;t t
27431 s,@DX_LATEX@,$DX_LATEX,;t t
27432 s,@ac_pt_DX_LATEX@,$ac_pt_DX_LATEX,;t t
27433 s,@DX_MAKEINDEX@,$DX_MAKEINDEX,;t t
27434 s,@ac_pt_DX_MAKEINDEX@,$ac_pt_DX_MAKEINDEX,;t t
27435 s,@DX_DVIPS@,$DX_DVIPS,;t t
27436 s,@ac_pt_DX_DVIPS@,$ac_pt_DX_DVIPS,;t t
27437 s,@DX_EGREP@,$DX_EGREP,;t t
27438 s,@ac_pt_DX_EGREP@,$ac_pt_DX_EGREP,;t t
27439 s,@DX_COND_ps_TRUE@,$DX_COND_ps_TRUE,;t t
27440 s,@DX_COND_ps_FALSE@,$DX_COND_ps_FALSE,;t t
27441 s,@DX_FLAG_pdf@,$DX_FLAG_pdf,;t t
27442 s,@DX_PDFLATEX@,$DX_PDFLATEX,;t t
27443 s,@ac_pt_DX_PDFLATEX@,$ac_pt_DX_PDFLATEX,;t t
27444 s,@DX_COND_pdf_TRUE@,$DX_COND_pdf_TRUE,;t t
27445 s,@DX_COND_pdf_FALSE@,$DX_COND_pdf_FALSE,;t t
27446 s,@DX_COND_latex_TRUE@,$DX_COND_latex_TRUE,;t t
27447 s,@DX_COND_latex_FALSE@,$DX_COND_latex_FALSE,;t t
27448 s,@DOXYGEN_PAPER_SIZE@,$DOXYGEN_PAPER_SIZE,;t t
27450 s,@CFLAGS@,$CFLAGS,;t t
27451 s,@LDFLAGS@,$LDFLAGS,;t t
27452 s,@CPPFLAGS@,$CPPFLAGS,;t t
27453 s,@ac_ct_CC@,$ac_ct_CC,;t t
27454 s,@EXEEXT@,$EXEEXT,;t t
27455 s,@OBJEXT@,$OBJEXT,;t t
27456 s,@DEPDIR@,$DEPDIR,;t t
27457 s,@am__include@,$am__include,;t t
27458 s,@am__quote@,$am__quote,;t t
27459 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27460 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27461 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27462 s,@CCDEPMODE@,$CCDEPMODE,;t t
27463 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27464 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27466 s,@CXXFLAGS@,$CXXFLAGS,;t t
27467 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27468 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27469 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27470 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27471 s,@build@,$build,;t t
27472 s,@build_cpu@,$build_cpu,;t t
27473 s,@build_vendor@,$build_vendor,;t t
27474 s,@build_os@,$build_os,;t t
27475 s,@host@,$host,;t t
27476 s,@host_cpu@,$host_cpu,;t t
27477 s,@host_vendor@,$host_vendor,;t t
27478 s,@host_os@,$host_os,;t t
27479 s,@EGREP@,$EGREP,;t t
27480 s,@LN_S@,$LN_S,;t t
27481 s,@ECHO@,$ECHO,;t t
27483 s,@ac_ct_AR@,$ac_ct_AR,;t t
27484 s,@RANLIB@,$RANLIB,;t t
27485 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27487 s,@CXXCPP@,$CXXCPP,;t t
27489 s,@FFLAGS@,$FFLAGS,;t t
27490 s,@ac_ct_F77@,$ac_ct_F77,;t t
27491 s,@LIBTOOL@,$LIBTOOL,;t t
27492 s,@acx_pthread_config@,$acx_pthread_config,;t t
27493 s,@PTHREAD_CC@,$PTHREAD_CC,;t t
27494 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
27495 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
27496 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
27497 s,@LOG4SHIB_CONFIG@,$LOG4SHIB_CONFIG,;t t
27498 s,@LOG4CPP_CONFIG@,$LOG4CPP_CONFIG,;t t
27499 s,@XMLTOOLINGXMLDIR@,$XMLTOOLINGXMLDIR,;t t
27500 s,@OPENSAMLXMLDIR@,$OPENSAMLXMLDIR,;t t
27501 s,@LITE_LIBS@,$LITE_LIBS,;t t
27502 s,@XMLSEC_LIBS@,$XMLSEC_LIBS,;t t
27503 s,@NSAPI_INCLUDE@,$NSAPI_INCLUDE,;t t
27504 s,@BUILD_NSAPI_TRUE@,$BUILD_NSAPI_TRUE,;t t
27505 s,@BUILD_NSAPI_FALSE@,$BUILD_NSAPI_FALSE,;t t
27506 s,@FASTCGI_INCLUDE@,$FASTCGI_INCLUDE,;t t
27507 s,@FASTCGI_LDFLAGS@,$FASTCGI_LDFLAGS,;t t
27508 s,@FASTCGI_LIBS@,$FASTCGI_LIBS,;t t
27509 s,@BUILD_FASTCGI_TRUE@,$BUILD_FASTCGI_TRUE,;t t
27510 s,@BUILD_FASTCGI_FALSE@,$BUILD_FASTCGI_FALSE,;t t
27511 s,@MEMCACHED_INCLUDE@,$MEMCACHED_INCLUDE,;t t
27512 s,@MEMCACHED_LDFLAGS@,$MEMCACHED_LDFLAGS,;t t
27513 s,@MEMCACHED_LIBS@,$MEMCACHED_LIBS,;t t
27514 s,@BUILD_MEMCACHED_TRUE@,$BUILD_MEMCACHED_TRUE,;t t
27515 s,@BUILD_MEMCACHED_FALSE@,$BUILD_MEMCACHED_FALSE,;t t
27517 s,@APXS@,$APXS,;t t
27518 s,@APXS_CFLAGS@,$APXS_CFLAGS,;t t
27519 s,@APXS_INCLUDE@,$APXS_INCLUDE,;t t
27520 s,@APXS2@,$APXS2,;t t
27521 s,@APR_CONFIG@,$APR_CONFIG,;t t
27522 s,@APU_CONFIG@,$APU_CONFIG,;t t
27523 s,@APXS2_CFLAGS@,$APXS2_CFLAGS,;t t
27524 s,@APXS2_INCLUDE@,$APXS2_INCLUDE,;t t
27525 s,@APXS22@,$APXS22,;t t
27526 s,@APR1_CONFIG@,$APR1_CONFIG,;t t
27527 s,@APU1_CONFIG@,$APU1_CONFIG,;t t
27528 s,@APXS22_CFLAGS@,$APXS22_CFLAGS,;t t
27529 s,@APXS22_INCLUDE@,$APXS22_INCLUDE,;t t
27530 s,@BUILD_AP13_TRUE@,$BUILD_AP13_TRUE,;t t
27531 s,@BUILD_AP13_FALSE@,$BUILD_AP13_FALSE,;t t
27532 s,@BUILD_AP20_TRUE@,$BUILD_AP20_TRUE,;t t
27533 s,@BUILD_AP20_FALSE@,$BUILD_AP20_FALSE,;t t
27534 s,@BUILD_AP22_TRUE@,$BUILD_AP22_TRUE,;t t
27535 s,@BUILD_AP22_FALSE@,$BUILD_AP22_FALSE,;t t
27536 s,@ODBC_CONFIG@,$ODBC_CONFIG,;t t
27537 s,@ODBC_CFLAGS@,$ODBC_CFLAGS,;t t
27538 s,@ODBC_LIBS@,$ODBC_LIBS,;t t
27539 s,@WANT_SUBDIRS@,$WANT_SUBDIRS,;t t
27540 s,@LIBOBJS@,$LIBOBJS,;t t
27541 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27546 cat >>$CONFIG_STATUS <<\_ACEOF
27547 # Split the substitutions into bite-sized pieces for seds with
27548 # small command number limits, like on Digital OSF/1 and HP-UX.
27549 ac_max_sed_lines=48
27550 ac_sed_frag=1 # Number of current file.
27551 ac_beg=1 # First line for current file.
27552 ac_end=$ac_max_sed_lines # Line after last line for current file.
27555 while $ac_more_lines; do
27556 if test $ac_beg -gt 1; then
27557 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27559 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27561 if test ! -s $tmp/subs.frag; then
27562 ac_more_lines=false
27564 # The purpose of the label and of the branching condition is to
27565 # speed up the sed processing (if there are no `@' at all, there
27566 # is no need to browse any of the substitutions).
27567 # These are the two extra sed commands mentioned above.
27569 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27570 if test -z "$ac_sed_cmds"; then
27571 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27573 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27575 ac_sed_frag=`expr $ac_sed_frag + 1`
27577 ac_end=`expr $ac_end + $ac_max_sed_lines`
27580 if test -z "$ac_sed_cmds"; then
27583 fi # test -n "$CONFIG_FILES"
27586 cat >>$CONFIG_STATUS <<\_ACEOF
27587 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27588 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27590 - | *:- | *:-:* ) # input from stdin
27592 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27593 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27594 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27595 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27596 * ) ac_file_in=$ac_file.in ;;
27599 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27600 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27601 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27602 X"$ac_file" : 'X\(//\)[^/]' \| \
27603 X"$ac_file" : 'X\(//\)$' \| \
27604 X"$ac_file" : 'X\(/\)' \| \
27605 . : '\(.\)' 2>/dev/null ||
27607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27608 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27609 /^X\(\/\/\)$/{ s//\1/; q; }
27610 /^X\(\/\).*/{ s//\1/; q; }
27612 { if $as_mkdir_p; then
27617 while test ! -d "$as_dir"; do
27618 as_dirs="$as_dir $as_dirs"
27619 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27621 X"$as_dir" : 'X\(//\)[^/]' \| \
27622 X"$as_dir" : 'X\(//\)$' \| \
27623 X"$as_dir" : 'X\(/\)' \| \
27624 . : '\(.\)' 2>/dev/null ||
27626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27627 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27628 /^X\(\/\/\)$/{ s//\1/; q; }
27629 /^X\(\/\).*/{ s//\1/; q; }
27632 test ! -n "$as_dirs" || mkdir $as_dirs
27633 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27634 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27635 { (exit 1); exit 1; }; }; }
27639 if test "$ac_dir" != .; then
27640 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27641 # A "../" for each directory in $ac_dir_suffix.
27642 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27644 ac_dir_suffix= ac_top_builddir=
27648 .) # No --srcdir option. We are building in place.
27650 if test -z "$ac_top_builddir"; then
27653 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27655 [\\/]* | ?:[\\/]* ) # Absolute path.
27656 ac_srcdir=$srcdir$ac_dir_suffix;
27657 ac_top_srcdir=$srcdir ;;
27658 *) # Relative path.
27659 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27660 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27663 # Do not use `cd foo && pwd` to compute absolute paths, because
27664 # the directories may not exist.
27666 .) ac_abs_builddir="$ac_dir";;
27669 .) ac_abs_builddir=`pwd`;;
27670 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27671 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27674 case $ac_abs_builddir in
27675 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27677 case ${ac_top_builddir}. in
27678 .) ac_abs_top_builddir=$ac_abs_builddir;;
27679 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27680 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27683 case $ac_abs_builddir in
27684 .) ac_abs_srcdir=$ac_srcdir;;
27687 .) ac_abs_srcdir=$ac_abs_builddir;;
27688 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27689 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27692 case $ac_abs_builddir in
27693 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27695 case $ac_top_srcdir in
27696 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27697 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27698 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27704 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27705 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27708 if test x"$ac_file" != x-; then
27709 { echo "$as_me:$LINENO: creating $ac_file" >&5
27710 echo "$as_me: creating $ac_file" >&6;}
27713 # Let's still pretend it is `configure' which instantiates (i.e., don't
27714 # use $as_me), people would be surprised to read:
27715 # /* config.h. Generated by config.status. */
27716 if test x"$ac_file" = x-; then
27719 configure_input="$ac_file. "
27721 configure_input=$configure_input"Generated from `echo $ac_file_in |
27722 sed 's,.*/,,'` by configure."
27724 # First look for the input files in the build tree, otherwise in the
27726 ac_file_inputs=`IFS=:
27727 for f in $ac_file_in; do
27729 -) echo $tmp/stdin ;;
27731 # Absolute (can't be DOS-style, as IFS=:)
27732 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27733 echo "$as_me: error: cannot find input file: $f" >&2;}
27734 { (exit 1); exit 1; }; }
27737 if test -f "$f"; then
27740 elif test -f "$srcdir/$f"; then
27745 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27746 echo "$as_me: error: cannot find input file: $f" >&2;}
27747 { (exit 1); exit 1; }; }
27750 done` || { (exit 1); exit 1; }
27752 cat >>$CONFIG_STATUS <<_ACEOF
27756 cat >>$CONFIG_STATUS <<\_ACEOF
27758 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27759 s,@configure_input@,$configure_input,;t t
27760 s,@srcdir@,$ac_srcdir,;t t
27761 s,@abs_srcdir@,$ac_abs_srcdir,;t t
27762 s,@top_srcdir@,$ac_top_srcdir,;t t
27763 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
27764 s,@builddir@,$ac_builddir,;t t
27765 s,@abs_builddir@,$ac_abs_builddir,;t t
27766 s,@top_builddir@,$ac_top_builddir,;t t
27767 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
27768 s,@INSTALL@,$ac_INSTALL,;t t
27769 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
27771 if test x"$ac_file" != x-; then
27772 mv $tmp/out $ac_file
27780 cat >>$CONFIG_STATUS <<\_ACEOF
27783 # CONFIG_HEADER section.
27786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
27787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
27789 # ac_d sets the value in "#define NAME VALUE" lines.
27790 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
27791 ac_dB='[ ].*$,\1#\2'
27794 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
27795 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
27796 ac_uB='$,\1#\2define\3'
27800 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
27801 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27803 - | *:- | *:-:* ) # input from stdin
27805 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27806 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27807 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27808 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27809 * ) ac_file_in=$ac_file.in ;;
27812 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
27813 echo "$as_me: creating $ac_file" >&6;}
27815 # First look for the input files in the build tree, otherwise in the
27817 ac_file_inputs=`IFS=:
27818 for f in $ac_file_in; do
27820 -) echo $tmp/stdin ;;
27822 # Absolute (can't be DOS-style, as IFS=:)
27823 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27824 echo "$as_me: error: cannot find input file: $f" >&2;}
27825 { (exit 1); exit 1; }; }
27826 # Do quote $f, to prevent DOS paths from being IFS'd.
27829 if test -f "$f"; then
27832 elif test -f "$srcdir/$f"; then
27837 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
27838 echo "$as_me: error: cannot find input file: $f" >&2;}
27839 { (exit 1); exit 1; }; }
27842 done` || { (exit 1); exit 1; }
27843 # Remove the trailing spaces.
27844 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
27848 # Transform confdefs.h into two sed scripts, `conftest.defines' and
27849 # `conftest.undefs', that substitutes the proper values into
27850 # config.h.in to produce config.h. The first handles `#define'
27851 # templates, and the second `#undef' templates.
27852 # And first: Protect against being on the right side of a sed subst in
27853 # config.status. Protect against being in an unquoted here document
27854 # in config.status.
27855 rm -f conftest.defines conftest.undefs
27856 # Using a here document instead of a string reduces the quoting nightmare.
27857 # Putting comments in sed scripts is not portable.
27859 # `end' is used to avoid that the second main sed command (meant for
27860 # 0-ary CPP macros) applies to n-ary macro definitions.
27861 # See the Autoconf documentation for `clear'.
27862 cat >confdef2sed.sed <<\_ACEOF
27867 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
27869 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
27872 # If some macros were called several times there might be several times
27873 # the same #defines, which is useless. Nevertheless, we may not want to
27874 # sort them, since we want the *last* AC-DEFINE to be honored.
27875 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
27876 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
27877 rm -f confdef2sed.sed
27879 # This sed command replaces #undef with comments. This is necessary, for
27880 # example, in the case of _POSIX_SOURCE, which is predefined and required
27881 # on some systems where configure will not decide to define it.
27882 cat >>conftest.undefs <<\_ACEOF
27883 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
27886 # Break up conftest.defines because some shells have a limit on the size
27887 # of here documents, and old seds have small limits too (100 cmds).
27888 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
27889 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
27890 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
27891 echo ' :' >>$CONFIG_STATUS
27892 rm -f conftest.tail
27893 while grep . conftest.defines >/dev/null
27895 # Write a limited-size here document to $tmp/defines.sed.
27896 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
27897 # Speed up: don't consider the non `#define' lines.
27898 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
27899 # Work around the forget-to-reset-the-flag bug.
27900 echo 't clr' >>$CONFIG_STATUS
27901 echo ': clr' >>$CONFIG_STATUS
27902 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
27904 sed -f $tmp/defines.sed $tmp/in >$tmp/out
27906 mv $tmp/out $tmp/in
27908 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
27909 rm -f conftest.defines
27910 mv conftest.tail conftest.defines
27912 rm -f conftest.defines
27913 echo ' fi # grep' >>$CONFIG_STATUS
27914 echo >>$CONFIG_STATUS
27916 # Break up conftest.undefs because some shells have a limit on the size
27917 # of here documents, and old seds have small limits too (100 cmds).
27918 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
27919 rm -f conftest.tail
27920 while grep . conftest.undefs >/dev/null
27922 # Write a limited-size here document to $tmp/undefs.sed.
27923 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
27924 # Speed up: don't consider the non `#undef'
27925 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
27926 # Work around the forget-to-reset-the-flag bug.
27927 echo 't clr' >>$CONFIG_STATUS
27928 echo ': clr' >>$CONFIG_STATUS
27929 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
27931 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
27933 mv $tmp/out $tmp/in
27935 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
27936 rm -f conftest.undefs
27937 mv conftest.tail conftest.undefs
27939 rm -f conftest.undefs
27941 cat >>$CONFIG_STATUS <<\_ACEOF
27942 # Let's still pretend it is `configure' which instantiates (i.e., don't
27943 # use $as_me), people would be surprised to read:
27944 # /* config.h. Generated by config.status. */
27945 if test x"$ac_file" = x-; then
27946 echo "/* Generated by configure. */" >$tmp/config.h
27948 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
27950 cat $tmp/in >>$tmp/config.h
27952 if test x"$ac_file" != x-; then
27953 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
27954 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27955 echo "$as_me: $ac_file is unchanged" >&6;}
27957 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27958 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27959 X"$ac_file" : 'X\(//\)[^/]' \| \
27960 X"$ac_file" : 'X\(//\)$' \| \
27961 X"$ac_file" : 'X\(/\)' \| \
27962 . : '\(.\)' 2>/dev/null ||
27964 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27965 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27966 /^X\(\/\/\)$/{ s//\1/; q; }
27967 /^X\(\/\).*/{ s//\1/; q; }
27969 { if $as_mkdir_p; then
27974 while test ! -d "$as_dir"; do
27975 as_dirs="$as_dir $as_dirs"
27976 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27977 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27978 X"$as_dir" : 'X\(//\)[^/]' \| \
27979 X"$as_dir" : 'X\(//\)$' \| \
27980 X"$as_dir" : 'X\(/\)' \| \
27981 . : '\(.\)' 2>/dev/null ||
27983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27984 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27985 /^X\(\/\/\)$/{ s//\1/; q; }
27986 /^X\(\/\).*/{ s//\1/; q; }
27989 test ! -n "$as_dirs" || mkdir $as_dirs
27990 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27991 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27992 { (exit 1); exit 1; }; }; }
27995 mv $tmp/config.h $ac_file
27999 rm -f $tmp/config.h
28001 # Compute $ac_file's index in $config_headers.
28003 for _am_header in $config_headers :; do
28004 case $_am_header in
28005 $ac_file | $ac_file:* )
28008 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28011 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28012 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28013 X$ac_file : 'X\(//\)[^/]' \| \
28014 X$ac_file : 'X\(//\)$' \| \
28015 X$ac_file : 'X\(/\)' \| \
28016 . : '\(.\)' 2>/dev/null ||
28018 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28019 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28020 /^X\(\/\/\)$/{ s//\1/; q; }
28021 /^X\(\/\).*/{ s//\1/; q; }
28022 s/.*/./; q'`/stamp-h$_am_stamp_count
28025 cat >>$CONFIG_STATUS <<\_ACEOF
28028 # CONFIG_COMMANDS section.
28030 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28031 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28032 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28033 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28034 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28035 X"$ac_dest" : 'X\(//\)[^/]' \| \
28036 X"$ac_dest" : 'X\(//\)$' \| \
28037 X"$ac_dest" : 'X\(/\)' \| \
28038 . : '\(.\)' 2>/dev/null ||
28040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28041 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28042 /^X\(\/\/\)$/{ s//\1/; q; }
28043 /^X\(\/\).*/{ s//\1/; q; }
28045 { if $as_mkdir_p; then
28050 while test ! -d "$as_dir"; do
28051 as_dirs="$as_dir $as_dirs"
28052 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28053 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28054 X"$as_dir" : 'X\(//\)[^/]' \| \
28055 X"$as_dir" : 'X\(//\)$' \| \
28056 X"$as_dir" : 'X\(/\)' \| \
28057 . : '\(.\)' 2>/dev/null ||
28059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28060 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28061 /^X\(\/\/\)$/{ s//\1/; q; }
28062 /^X\(\/\).*/{ s//\1/; q; }
28065 test ! -n "$as_dirs" || mkdir $as_dirs
28066 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28067 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28068 { (exit 1); exit 1; }; }; }
28072 if test "$ac_dir" != .; then
28073 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28074 # A "../" for each directory in $ac_dir_suffix.
28075 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28077 ac_dir_suffix= ac_top_builddir=
28081 .) # No --srcdir option. We are building in place.
28083 if test -z "$ac_top_builddir"; then
28086 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28088 [\\/]* | ?:[\\/]* ) # Absolute path.
28089 ac_srcdir=$srcdir$ac_dir_suffix;
28090 ac_top_srcdir=$srcdir ;;
28091 *) # Relative path.
28092 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28093 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28096 # Do not use `cd foo && pwd` to compute absolute paths, because
28097 # the directories may not exist.
28099 .) ac_abs_builddir="$ac_dir";;
28102 .) ac_abs_builddir=`pwd`;;
28103 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28104 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28107 case $ac_abs_builddir in
28108 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28110 case ${ac_top_builddir}. in
28111 .) ac_abs_top_builddir=$ac_abs_builddir;;
28112 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28113 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28116 case $ac_abs_builddir in
28117 .) ac_abs_srcdir=$ac_srcdir;;
28120 .) ac_abs_srcdir=$ac_abs_builddir;;
28121 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28122 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28125 case $ac_abs_builddir in
28126 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28128 case $ac_top_srcdir in
28129 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28130 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28131 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28136 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28137 echo "$as_me: executing $ac_dest commands" >&6;}
28139 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28140 # Strip MF so we end up with the name of the file.
28141 mf=`echo "$mf" | sed -e 's/:.*$//'`
28142 # Check whether this is an Automake generated Makefile or not.
28143 # We used to match only the files named `Makefile.in', but
28144 # some people rename them; so instead we look at the file content.
28145 # Grep'ing the first line is not enough: some people post-process
28146 # each Makefile.in and add a new line on top of each file to say so.
28147 # So let's grep whole file.
28148 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28149 dirpart=`(dirname "$mf") 2>/dev/null ||
28150 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28151 X"$mf" : 'X\(//\)[^/]' \| \
28152 X"$mf" : 'X\(//\)$' \| \
28153 X"$mf" : 'X\(/\)' \| \
28154 . : '\(.\)' 2>/dev/null ||
28156 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28157 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28158 /^X\(\/\/\)$/{ s//\1/; q; }
28159 /^X\(\/\).*/{ s//\1/; q; }
28164 # Extract the definition of DEPDIR, am__include, and am__quote
28165 # from the Makefile without running `make'.
28166 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28167 test -z "$DEPDIR" && continue
28168 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28169 test -z "am__include" && continue
28170 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28171 # When using ansi2knr, U may be empty or an underscore; expand it
28172 U=`sed -n 's/^U = //p' < "$mf"`
28173 # Find all dependency output files, they are included files with
28174 # $(DEPDIR) in their names. We invoke sed twice because it is the
28175 # simplest approach to changing $(DEPDIR) to its actual value in the
28177 for file in `sed -n "
28178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28180 # Make sure the directory exists.
28181 test -f "$dirpart/$file" && continue
28182 fdir=`(dirname "$file") 2>/dev/null ||
28183 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28184 X"$file" : 'X\(//\)[^/]' \| \
28185 X"$file" : 'X\(//\)$' \| \
28186 X"$file" : 'X\(/\)' \| \
28187 . : '\(.\)' 2>/dev/null ||
28189 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28190 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28191 /^X\(\/\/\)$/{ s//\1/; q; }
28192 /^X\(\/\).*/{ s//\1/; q; }
28194 { if $as_mkdir_p; then
28195 mkdir -p $dirpart/$fdir
28197 as_dir=$dirpart/$fdir
28199 while test ! -d "$as_dir"; do
28200 as_dirs="$as_dir $as_dirs"
28201 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28202 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28203 X"$as_dir" : 'X\(//\)[^/]' \| \
28204 X"$as_dir" : 'X\(//\)$' \| \
28205 X"$as_dir" : 'X\(/\)' \| \
28206 . : '\(.\)' 2>/dev/null ||
28208 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28209 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28210 /^X\(\/\/\)$/{ s//\1/; q; }
28211 /^X\(\/\).*/{ s//\1/; q; }
28214 test ! -n "$as_dirs" || mkdir $as_dirs
28215 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28216 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28217 { (exit 1); exit 1; }; }; }
28219 # echo "creating $dirpart/$file"
28220 echo '# dummy' > "$dirpart/$file"
28228 cat >>$CONFIG_STATUS <<\_ACEOF
28230 { (exit 0); exit 0; }
28232 chmod +x $CONFIG_STATUS
28233 ac_clean_files=$ac_clean_files_save
28236 # configure is writing to config.log, and then calls config.status.
28237 # config.status does its own redirection, appending to config.log.
28238 # Unfortunately, on DOS this fails, as config.log is still kept open
28239 # by configure, so config.status won't be able to write to it; its
28240 # output is simply discarded. So we exec the FD to /dev/null,
28241 # effectively closing config.log, so it can be properly (re)opened and
28242 # appended to by config.status. When coming back to configure, we
28243 # need to make the FD available again.
28244 if test "$no_create" != yes; then
28246 ac_config_status_args=
28247 test "$silent" = yes &&
28248 ac_config_status_args="$ac_config_status_args --quiet"
28250 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28252 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28253 # would make configure fail if this is the last instruction.
28254 $ac_cs_success || { (exit 1); exit 1; }