2 # From configure.ac Revision: 1.3 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.58 for GRAS 0.1.
6 # Report bugs to <martin.quinson@ens-lyon.fr>.
8 # Copyright (C) 2003 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25 DUALCASE=1; export DUALCASE # for MKS sh
27 # Support unset when possible.
28 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35 # Work around bugs in pre-3.0 UWIN ksh.
36 $as_unset ENV MAIL MAILPATH
43 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
44 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
48 eval $as_var=C; export $as_var
54 # Required to use basename.
55 if expr a : '\(a\)' >/dev/null 2>&1; then
61 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68 # Name of the executable.
69 as_me=`$as_basename "$0" ||
70 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
71 X"$0" : 'X\(//\)$' \| \
72 X"$0" : 'X\(/\)$' \| \
73 . : '\(.\)' 2>/dev/null ||
75 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
76 /^X\/\(\/\/\)$/{ s//\1/; q; }
77 /^X\/\(\/\).*/{ s//\1/; q; }
81 # PATH needs CR, and LINENO needs CR and PATH.
82 # Avoid depending upon Character Ranges.
83 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
84 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
85 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
86 as_cr_digits='0123456789'
87 as_cr_alnum=$as_cr_Letters$as_cr_digits
89 # The user is always right.
90 if test "${PATH_SEPARATOR+set}" != set; then
91 echo "#! /bin/sh" >conf$$.sh
92 echo "exit 0" >>conf$$.sh
94 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
105 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
106 test "x$as_lineno_1" != "x$as_lineno_2" &&
107 test "x$as_lineno_3" = "x$as_lineno_2" || {
108 # Find who we are. Look in the path if we contain no path at all
111 *[\\/]* ) as_myself=$0 ;;
112 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
116 test -z "$as_dir" && as_dir=.
117 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
122 # We did not find ourselves, most probably we were run as `sh COMMAND'
123 # in which case we are not to be found in the path.
124 if test "x$as_myself" = x; then
127 if test ! -f "$as_myself"; then
128 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
129 { (exit 1); exit 1; }; }
131 case $CONFIG_SHELL in
133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
134 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137 test -z "$as_dir" && as_dir=.
138 for as_base in sh bash ksh sh5; do
141 if ("$as_dir/$as_base" -c '
144 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
145 test "x$as_lineno_1" != "x$as_lineno_2" &&
146 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
147 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
148 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
149 CONFIG_SHELL=$as_dir/$as_base
151 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
159 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
160 # uniformly replaced by the line number. The first 'sed' inserts a
161 # line-number line before each line; the second 'sed' does the real
162 # work. The second script uses 'N' to pair each line-number line
163 # with the numbered line, and appends trailing '-' during
164 # substitution so that $LINENO is not a special case at line end.
165 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
166 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
167 sed '=' <$as_myself |
172 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175 s,^['$as_cr_digits']*\n,,
177 chmod +x $as_me.lineno ||
178 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
179 { (exit 1); exit 1; }; }
181 # Don't try to exec as it changes $[0], causing all sort of problems
182 # (the dirname of $[0] is not the place where we might find the
183 # original and so on. Autoconf is especially sensible to this).
185 # Exit status is that of the last command.
190 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
191 *c*,-n*) ECHO_N= ECHO_C='
193 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
194 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
197 if expr a : '\(a\)' >/dev/null 2>&1; then
203 rm -f conf$$ conf$$.exe conf$$.file
205 if ln -s conf$$.file conf$$ 2>/dev/null; then
206 # We could just check for DJGPP; but this test a) works b) is more generic
207 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
208 if test -f conf$$.exe; then
209 # Don't use ln at all; we don't have any links
214 elif ln conf$$.file conf$$ 2>/dev/null; then
219 rm -f conf$$ conf$$.exe conf$$.file
221 if mkdir -p . 2>/dev/null; then
224 test -d ./-p && rmdir ./-p
228 as_executable_p="test -f"
230 # Sed expression to map a string onto a valid CPP name.
231 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
233 # Sed expression to map a string onto a valid variable name.
234 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
238 # We need space, tab and new line, in precisely that order.
248 # Check that we are running under the correct shell.
249 SHELL=${CONFIG_SHELL-/bin/sh}
253 # Remove one level of quotation (which was required for Make).
254 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
259 if test "X$1" = X--no-reexec; then
260 # Discard the --no-reexec flag, and continue.
262 elif test "X$1" = X--fallback-echo; then
263 # Avoid inline document here, it may be left over
265 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
266 # Yippee, $echo works!
269 # Restart under the correct shell.
270 exec $SHELL "$0" --no-reexec ${1+"$@"}
273 if test "X$1" = X--fallback-echo; then
274 # used as fallback echo
282 # The HP-UX ksh and POSIX shell print the target directory to stdout
284 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
286 if test -z "$ECHO"; then
287 if test "X${echo_test_string+set}" != Xset; then
288 # find a string as large as possible, as long as the shell can cope with it
289 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
290 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
291 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
292 echo_test_string="`eval $cmd`" &&
293 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
301 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
302 test "X$echo_testing_string" = "X$echo_test_string"; then
305 # The Solaris, AIX, and Digital Unix default echo programs unquote
306 # backslashes. This makes it impossible to quote backslashes using
307 # echo "$something" | sed 's/\\/\\\\/g'
309 # So, first we look for a working echo in the user's PATH.
311 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
312 for dir in $PATH /usr/ucb; do
314 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
315 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
316 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
317 test "X$echo_testing_string" = "X$echo_test_string"; then
324 if test "X$echo" = Xecho; then
325 # We didn't find a better echo, so look for alternatives.
326 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
327 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
328 test "X$echo_testing_string" = "X$echo_test_string"; then
329 # This shell has a builtin print -r that does the trick.
331 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
332 test "X$CONFIG_SHELL" != X/bin/ksh; then
333 # If we have ksh, try running configure again with it.
334 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
335 export ORIGINAL_CONFIG_SHELL
336 CONFIG_SHELL=/bin/ksh
338 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
342 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
343 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
344 test "X$echo_testing_string" = "X$echo_test_string"; then
347 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
348 test "X$echo_testing_string" = 'X\t' &&
349 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
350 test "X$echo_testing_string" = "X$echo_test_string"; then
351 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
353 SHELL="$CONFIG_SHELL"
355 echo="$CONFIG_SHELL $0 --fallback-echo"
356 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
357 test "X$echo_testing_string" = 'X\t' &&
358 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
359 test "X$echo_testing_string" = "X$echo_test_string"; then
360 echo="$CONFIG_SHELL $0 --fallback-echo"
362 # maybe with a smaller string...
365 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
366 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373 if test "$prev" != 'sed 50q "$0"'; then
374 echo_test_string=`eval $prev`
375 export echo_test_string
376 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
378 # Oops. We lost completely, so just stick with echo.
387 # Copy echo and quote the copy suitably for passing to libtool from
388 # the Makefile, instead of quoting the original, which is used later.
390 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
391 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397 tagnames=${tagnames+${tagnames},}CXX
399 tagnames=${tagnames+${tagnames},}F77
402 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
403 # so uname gets run too.
404 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411 ac_default_prefix=/usr/local
412 ac_config_libobj_dir=.
417 SHELL=${CONFIG_SHELL-/bin/sh}
419 # Maximum number of lines to put in a shell here document.
420 # This variable seems obsolete. It should probably be removed, and
421 # only ac_max_sed_lines should be used.
422 : ${ac_max_here_lines=38}
424 # Identity of this package.
426 PACKAGE_TARNAME='gras'
427 PACKAGE_VERSION='0.1'
428 PACKAGE_STRING='GRAS 0.1'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/include/gras.h"
432 ac_subdirs_all="$ac_subdirs_all src/nws_portability"
433 # Factoring default headers for most tests.
434 ac_includes_default="\
437 # include <sys/types.h>
440 # include <sys/stat.h>
451 # if !STDC_HEADERS && HAVE_MEMORY_H
457 # include <strings.h>
460 # include <inttypes.h>
470 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 subdirs build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot 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 EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL GTKDOC HAVE_GTK_DOC_TRUE HAVE_GTK_DOC_FALSE HAVE_GTK_DOC ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE FLIBS LIBOBJS ACI_CACHE_PROG aci_module_desc_XML aci_pkg_config_XML HAVE_XML CFLAGS_XML LIBS_XML aci_module_desc_SimGrid aci_pkg_prefix_SimGrid aci_pkg_inc_SimGrid aci_pkg_lib_SimGrid aci_pkg_extra_SimGrid HAVE_SimGrid CFLAGS_SimGrid LIBS_SimGrid MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT cflags_set BASH WARNING LTLIBOBJS'
473 # Initialize some variables set by options.
475 ac_init_version=false
476 # The variables have the same names as the options, with
477 # dashes changed to underlines.
485 program_transform_name=s,x,x,
493 # Installation directory options.
494 # These are left unexpanded so users can "make install exec_prefix=/foo"
495 # and all the variables that are supposed to be based on exec_prefix
496 # by default will actually change.
497 # Use braces instead of parens because sh, perl, etc. also accept them.
498 bindir='${exec_prefix}/bin'
499 sbindir='${exec_prefix}/sbin'
500 libexecdir='${exec_prefix}/libexec'
501 datadir='${prefix}/share'
502 sysconfdir='${prefix}/etc'
503 sharedstatedir='${prefix}/com'
504 localstatedir='${prefix}/var'
505 libdir='${exec_prefix}/lib'
506 includedir='${prefix}/include'
507 oldincludedir='/usr/include'
508 infodir='${prefix}/info'
509 mandir='${prefix}/man'
514 # If the previous option needs an argument, assign it.
515 if test -n "$ac_prev"; then
516 eval "$ac_prev=\$ac_option"
521 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
523 # Accept the important Cygnus configure options, so we can diagnose typos.
527 -bindir | --bindir | --bindi | --bind | --bin | --bi)
529 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
532 -build | --build | --buil | --bui | --bu)
533 ac_prev=build_alias ;;
534 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
535 build_alias=$ac_optarg ;;
537 -cache-file | --cache-file | --cache-fil | --cache-fi \
538 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
539 ac_prev=cache_file ;;
540 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
541 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
542 cache_file=$ac_optarg ;;
545 cache_file=config.cache ;;
547 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
549 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
551 datadir=$ac_optarg ;;
553 -disable-* | --disable-*)
554 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
555 # Reject names that are not valid shell variable names.
556 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
557 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
558 { (exit 1); exit 1; }; }
559 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
560 eval "enable_$ac_feature=no" ;;
562 -enable-* | --enable-*)
563 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
564 # Reject names that are not valid shell variable names.
565 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
566 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
567 { (exit 1); exit 1; }; }
568 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
570 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
573 eval "enable_$ac_feature='$ac_optarg'" ;;
575 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
576 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
577 | --exec | --exe | --ex)
578 ac_prev=exec_prefix ;;
579 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
580 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
581 | --exec=* | --exe=* | --ex=*)
582 exec_prefix=$ac_optarg ;;
584 -gas | --gas | --ga | --g)
585 # Obsolete; use --with-gas.
588 -help | --help | --hel | --he | -h)
590 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
591 ac_init_help=recursive ;;
592 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
593 ac_init_help=short ;;
595 -host | --host | --hos | --ho)
596 ac_prev=host_alias ;;
597 -host=* | --host=* | --hos=* | --ho=*)
598 host_alias=$ac_optarg ;;
600 -includedir | --includedir | --includedi | --included | --include \
601 | --includ | --inclu | --incl | --inc)
602 ac_prev=includedir ;;
603 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
604 | --includ=* | --inclu=* | --incl=* | --inc=*)
605 includedir=$ac_optarg ;;
607 -infodir | --infodir | --infodi | --infod | --info | --inf)
609 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
610 infodir=$ac_optarg ;;
612 -libdir | --libdir | --libdi | --libd)
614 -libdir=* | --libdir=* | --libdi=* | --libd=*)
617 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
618 | --libexe | --libex | --libe)
619 ac_prev=libexecdir ;;
620 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
621 | --libexe=* | --libex=* | --libe=*)
622 libexecdir=$ac_optarg ;;
624 -localstatedir | --localstatedir | --localstatedi | --localstated \
625 | --localstate | --localstat | --localsta | --localst \
626 | --locals | --local | --loca | --loc | --lo)
627 ac_prev=localstatedir ;;
628 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
629 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
630 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
631 localstatedir=$ac_optarg ;;
633 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
635 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
639 # Obsolete; use --without-fp.
642 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
643 | --no-cr | --no-c | -n)
646 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
647 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
650 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
651 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
652 | --oldin | --oldi | --old | --ol | --o)
653 ac_prev=oldincludedir ;;
654 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
655 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
656 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
657 oldincludedir=$ac_optarg ;;
659 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
661 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
664 -program-prefix | --program-prefix | --program-prefi | --program-pref \
665 | --program-pre | --program-pr | --program-p)
666 ac_prev=program_prefix ;;
667 -program-prefix=* | --program-prefix=* | --program-prefi=* \
668 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
669 program_prefix=$ac_optarg ;;
671 -program-suffix | --program-suffix | --program-suffi | --program-suff \
672 | --program-suf | --program-su | --program-s)
673 ac_prev=program_suffix ;;
674 -program-suffix=* | --program-suffix=* | --program-suffi=* \
675 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
676 program_suffix=$ac_optarg ;;
678 -program-transform-name | --program-transform-name \
679 | --program-transform-nam | --program-transform-na \
680 | --program-transform-n | --program-transform- \
681 | --program-transform | --program-transfor \
682 | --program-transfo | --program-transf \
683 | --program-trans | --program-tran \
684 | --progr-tra | --program-tr | --program-t)
685 ac_prev=program_transform_name ;;
686 -program-transform-name=* | --program-transform-name=* \
687 | --program-transform-nam=* | --program-transform-na=* \
688 | --program-transform-n=* | --program-transform-=* \
689 | --program-transform=* | --program-transfor=* \
690 | --program-transfo=* | --program-transf=* \
691 | --program-trans=* | --program-tran=* \
692 | --progr-tra=* | --program-tr=* | --program-t=*)
693 program_transform_name=$ac_optarg ;;
695 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
696 | -silent | --silent | --silen | --sile | --sil)
699 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
701 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
703 sbindir=$ac_optarg ;;
705 -sharedstatedir | --sharedstatedir | --sharedstatedi \
706 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
707 | --sharedst | --shareds | --shared | --share | --shar \
709 ac_prev=sharedstatedir ;;
710 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
711 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
712 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
714 sharedstatedir=$ac_optarg ;;
716 -site | --site | --sit)
718 -site=* | --site=* | --sit=*)
721 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
723 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
726 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
727 | --syscon | --sysco | --sysc | --sys | --sy)
728 ac_prev=sysconfdir ;;
729 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
730 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
731 sysconfdir=$ac_optarg ;;
733 -target | --target | --targe | --targ | --tar | --ta | --t)
734 ac_prev=target_alias ;;
735 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
736 target_alias=$ac_optarg ;;
738 -v | -verbose | --verbose | --verbos | --verbo | --verb)
741 -version | --version | --versio | --versi | --vers | -V)
745 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
746 # Reject names that are not valid shell variable names.
747 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
748 { echo "$as_me: error: invalid package name: $ac_package" >&2
749 { (exit 1); exit 1; }; }
750 ac_package=`echo $ac_package| sed 's/-/_/g'`
752 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
755 eval "with_$ac_package='$ac_optarg'" ;;
757 -without-* | --without-*)
758 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
759 # Reject names that are not valid shell variable names.
760 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
761 { echo "$as_me: error: invalid package name: $ac_package" >&2
762 { (exit 1); exit 1; }; }
763 ac_package=`echo $ac_package | sed 's/-/_/g'`
764 eval "with_$ac_package=no" ;;
767 # Obsolete; use --with-x.
770 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
771 | --x-incl | --x-inc | --x-in | --x-i)
772 ac_prev=x_includes ;;
773 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
774 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
775 x_includes=$ac_optarg ;;
777 -x-libraries | --x-libraries | --x-librarie | --x-librari \
778 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
779 ac_prev=x_libraries ;;
780 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
781 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
782 x_libraries=$ac_optarg ;;
784 -*) { echo "$as_me: error: unrecognized option: $ac_option
785 Try \`$0 --help' for more information." >&2
786 { (exit 1); exit 1; }; }
790 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
791 # Reject names that are not valid shell variable names.
792 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
793 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
794 { (exit 1); exit 1; }; }
795 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
796 eval "$ac_envvar='$ac_optarg'"
800 # FIXME: should be removed in autoconf 3.0.
801 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
802 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
803 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
804 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810 if test -n "$ac_prev"; then
811 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
812 { echo "$as_me: error: missing argument to $ac_option" >&2
813 { (exit 1); exit 1; }; }
816 # Be sure to have absolute paths.
817 for ac_var in exec_prefix prefix
819 eval ac_val=$`echo $ac_var`
821 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
822 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
823 { (exit 1); exit 1; }; };;
827 # Be sure to have absolute paths.
828 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
829 localstatedir libdir includedir oldincludedir infodir mandir
831 eval ac_val=$`echo $ac_var`
833 [\\/$]* | ?:[\\/]* ) ;;
834 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
835 { (exit 1); exit 1; }; };;
839 # There might be people who depend on the old broken behavior: `$host'
840 # used to hold the argument of --host etc.
841 # FIXME: To remove some day.
846 # FIXME: To remove some day.
847 if test "x$host_alias" != x; then
848 if test "x$build_alias" = x; then
849 cross_compiling=maybe
850 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
851 If a cross compiler is detected then cross compile mode will be used." >&2
852 elif test "x$build_alias" != "x$host_alias"; then
858 test -n "$host_alias" && ac_tool_prefix=$host_alias-
860 test "$silent" = yes && exec 6>/dev/null
863 # Find the source files, if location was not specified.
864 if test -z "$srcdir"; then
865 ac_srcdir_defaulted=yes
866 # Try the directory containing this script, then its parent.
867 ac_confdir=`(dirname "$0") 2>/dev/null ||
868 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
869 X"$0" : 'X\(//\)[^/]' \| \
870 X"$0" : 'X\(//\)$' \| \
871 X"$0" : 'X\(/\)' \| \
872 . : '\(.\)' 2>/dev/null ||
874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
875 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
876 /^X\(\/\/\)$/{ s//\1/; q; }
877 /^X\(\/\).*/{ s//\1/; q; }
880 if test ! -r $srcdir/$ac_unique_file; then
884 ac_srcdir_defaulted=no
886 if test ! -r $srcdir/$ac_unique_file; then
887 if test "$ac_srcdir_defaulted" = yes; then
888 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
889 { (exit 1); exit 1; }; }
891 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
892 { (exit 1); exit 1; }; }
895 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
896 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
897 { (exit 1); exit 1; }; }
898 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
899 ac_env_build_alias_set=${build_alias+set}
900 ac_env_build_alias_value=$build_alias
901 ac_cv_env_build_alias_set=${build_alias+set}
902 ac_cv_env_build_alias_value=$build_alias
903 ac_env_host_alias_set=${host_alias+set}
904 ac_env_host_alias_value=$host_alias
905 ac_cv_env_host_alias_set=${host_alias+set}
906 ac_cv_env_host_alias_value=$host_alias
907 ac_env_target_alias_set=${target_alias+set}
908 ac_env_target_alias_value=$target_alias
909 ac_cv_env_target_alias_set=${target_alias+set}
910 ac_cv_env_target_alias_value=$target_alias
911 ac_env_CC_set=${CC+set}
913 ac_cv_env_CC_set=${CC+set}
914 ac_cv_env_CC_value=$CC
915 ac_env_CFLAGS_set=${CFLAGS+set}
916 ac_env_CFLAGS_value=$CFLAGS
917 ac_cv_env_CFLAGS_set=${CFLAGS+set}
918 ac_cv_env_CFLAGS_value=$CFLAGS
919 ac_env_LDFLAGS_set=${LDFLAGS+set}
920 ac_env_LDFLAGS_value=$LDFLAGS
921 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
922 ac_cv_env_LDFLAGS_value=$LDFLAGS
923 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
924 ac_env_CPPFLAGS_value=$CPPFLAGS
925 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
926 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
927 ac_env_CPP_set=${CPP+set}
928 ac_env_CPP_value=$CPP
929 ac_cv_env_CPP_set=${CPP+set}
930 ac_cv_env_CPP_value=$CPP
931 ac_env_CXX_set=${CXX+set}
932 ac_env_CXX_value=$CXX
933 ac_cv_env_CXX_set=${CXX+set}
934 ac_cv_env_CXX_value=$CXX
935 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
936 ac_env_CXXFLAGS_value=$CXXFLAGS
937 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
938 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
939 ac_env_CXXCPP_set=${CXXCPP+set}
940 ac_env_CXXCPP_value=$CXXCPP
941 ac_cv_env_CXXCPP_set=${CXXCPP+set}
942 ac_cv_env_CXXCPP_value=$CXXCPP
943 ac_env_F77_set=${F77+set}
944 ac_env_F77_value=$F77
945 ac_cv_env_F77_set=${F77+set}
946 ac_cv_env_F77_value=$F77
947 ac_env_FFLAGS_set=${FFLAGS+set}
948 ac_env_FFLAGS_value=$FFLAGS
949 ac_cv_env_FFLAGS_set=${FFLAGS+set}
950 ac_cv_env_FFLAGS_value=$FFLAGS
953 # Report the --help message.
955 if test "$ac_init_help" = "long"; then
956 # Omit some internal or obsolete options to make the list less imposing.
957 # This message is too long to be a string in the A/UX 3.1 sh.
959 \`configure' configures GRAS 0.1 to adapt to many kinds of systems.
961 Usage: $0 [OPTION]... [VAR=VALUE]...
963 To assign environment variables (e.g., CC, CFLAGS...), specify them as
964 VAR=VALUE. See below for descriptions of some of the useful variables.
966 Defaults for the options are specified in brackets.
969 -h, --help display this help and exit
970 --help=short display options specific to this package
971 --help=recursive display the short help of all the included packages
972 -V, --version display version information and exit
973 -q, --quiet, --silent do not print \`checking...' messages
974 --cache-file=FILE cache test results in FILE [disabled]
975 -C, --config-cache alias for \`--cache-file=config.cache'
976 -n, --no-create do not create output files
977 --srcdir=DIR find the sources in DIR [configure dir or \`..']
982 Installation directories:
983 --prefix=PREFIX install architecture-independent files in PREFIX
985 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
988 By default, \`make install' will install all the files in
989 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
990 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
991 for instance \`--prefix=\$HOME'.
993 For better control, use the options below.
995 Fine tuning of the installation directories:
996 --bindir=DIR user executables [EPREFIX/bin]
997 --sbindir=DIR system admin executables [EPREFIX/sbin]
998 --libexecdir=DIR program executables [EPREFIX/libexec]
999 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1000 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1001 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1002 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1003 --libdir=DIR object code libraries [EPREFIX/lib]
1004 --includedir=DIR C header files [PREFIX/include]
1005 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1006 --infodir=DIR info documentation [PREFIX/info]
1007 --mandir=DIR man documentation [PREFIX/man]
1013 --program-prefix=PREFIX prepend PREFIX to installed program names
1014 --program-suffix=SUFFIX append SUFFIX to installed program names
1015 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1018 --build=BUILD configure for building on BUILD [guessed]
1019 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1020 --target=TARGET configure for building compilers for TARGET [HOST]
1024 if test -n "$ac_init_help"; then
1025 case $ac_init_help in
1026 short | recursive ) echo "Configuration of GRAS 0.1:";;
1031 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1032 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1033 --enable-shared[=PKGS]
1034 build shared libraries [default=yes]
1035 --enable-static[=PKGS]
1036 build static libraries [default=yes]
1037 --enable-fast-install[=PKGS]
1038 optimize for fast installation [default=yes]
1039 --disable-dependency-tracking Speeds up one-time builds
1040 --enable-dependency-tracking Do not reject slow dependency extractors
1041 --disable-libtool-lock avoid locking (might break parallel builds)
1042 --enable-gtk-doc Use gtk-doc to build documentation default=auto
1043 --enable-maintainer-mode enable make rules and dependencies not useful
1044 (and sometimes confusing) to the casual installer
1045 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1046 --enable-iso-c Try to warn if code is not ISO C
1049 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1050 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1051 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1052 --with-pic try to use only PIC/non-PIC objects [default=use
1055 include additional configurations [automatic]
1056 --with-SimGrid=DIR root directory of the SimGrid simulator installation
1057 --with-SimGrid-includes=DIR
1058 specify exact include dir for the SimGrid simulator headers
1059 --with-SimGrid-libraries=DIR
1060 specify exact library dir for the SimGrid simulator library
1061 --with-SimGrid-extra=ARG
1062 specify extra args to pass to the linker to get the
1063 the SimGrid simulator library (with no space. A sed to change "!"
1066 Some influential environment variables:
1067 CC C compiler command
1068 CFLAGS C compiler flags
1069 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1070 nonstandard directory <lib dir>
1071 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1072 headers in a nonstandard directory <include dir>
1074 CXX C++ compiler command
1075 CXXFLAGS C++ compiler flags
1076 CXXCPP C++ preprocessor
1077 F77 Fortran 77 compiler command
1078 FFLAGS Fortran 77 compiler flags
1080 Use these variables to override the choices made by `configure' or to help
1081 it to find libraries and programs with nonstandard names/locations.
1083 Report bugs to <martin.quinson@ens-lyon.fr>.
1087 if test "$ac_init_help" = "recursive"; then
1088 # If there are subdirs, report their specific --help.
1090 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1091 test -d $ac_dir || continue
1094 if test "$ac_dir" != .; then
1095 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1096 # A "../" for each directory in $ac_dir_suffix.
1097 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1099 ac_dir_suffix= ac_top_builddir=
1103 .) # No --srcdir option. We are building in place.
1105 if test -z "$ac_top_builddir"; then
1108 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1110 [\\/]* | ?:[\\/]* ) # Absolute path.
1111 ac_srcdir=$srcdir$ac_dir_suffix;
1112 ac_top_srcdir=$srcdir ;;
1114 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1115 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1118 # Do not use `cd foo && pwd` to compute absolute paths, because
1119 # the directories may not exist.
1121 .) ac_abs_builddir="$ac_dir";;
1124 .) ac_abs_builddir=`pwd`;;
1125 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1126 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1129 case $ac_abs_builddir in
1130 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1132 case ${ac_top_builddir}. in
1133 .) ac_abs_top_builddir=$ac_abs_builddir;;
1134 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1135 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1138 case $ac_abs_builddir in
1139 .) ac_abs_srcdir=$ac_srcdir;;
1142 .) ac_abs_srcdir=$ac_abs_builddir;;
1143 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1144 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1147 case $ac_abs_builddir in
1148 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1150 case $ac_top_srcdir in
1151 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1152 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1153 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1158 # Check for guested configure; otherwise get Cygnus style configure.
1159 if test -f $ac_srcdir/configure.gnu; then
1161 $SHELL $ac_srcdir/configure.gnu --help=recursive
1162 elif test -f $ac_srcdir/configure; then
1164 $SHELL $ac_srcdir/configure --help=recursive
1165 elif test -f $ac_srcdir/configure.ac ||
1166 test -f $ac_srcdir/configure.in; then
1168 $ac_configure --help
1170 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1176 test -n "$ac_init_help" && exit 0
1177 if $ac_init_version; then
1180 generated by GNU Autoconf 2.58
1182 Copyright (C) 2003 Free Software Foundation, Inc.
1183 This configure script is free software; the Free Software Foundation
1184 gives unlimited permission to copy, distribute and modify it.
1190 This file contains any messages produced by compilers while
1191 running configure, to aid debugging if configure makes a mistake.
1193 It was created by GRAS $as_me 0.1, which was
1194 generated by GNU Autoconf 2.58. Invocation command line was
1205 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1206 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1207 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1208 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1209 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1211 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1212 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1214 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1215 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1216 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1217 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1218 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1219 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1220 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1228 test -z "$as_dir" && as_dir=.
1229 echo "PATH: $as_dir"
1244 # Keep a trace of the command line.
1245 # Strip out --no-create and --no-recursion so they do not pile up.
1246 # Strip out --silent because we don't want to record it for future runs.
1247 # Also quote any args containing shell meta-characters.
1248 # Make two passes to allow for proper duplicate-argument suppression.
1253 ac_must_keep_next=false
1259 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1263 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1264 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1267 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1269 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1270 if test $ac_must_keep_next = true; then
1271 ac_must_keep_next=false # Got value, back to normal.
1274 *=* | --config-cache | -C | -disable-* | --disable-* \
1275 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1276 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1277 | -with-* | --with-* | -without-* | --without-* | --x)
1278 case "$ac_configure_args0 " in
1279 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1282 -* ) ac_must_keep_next=true ;;
1285 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1286 # Get rid of the leading space.
1292 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1293 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1295 # When interrupted or exit'd, cleanup temporary files, and complete
1296 # config.log. We remove comments because anyway the quotes in there
1297 # would cause problems or look ugly.
1298 # WARNING: Be sure not to use single quotes in there, as some shells,
1299 # such as our DU 5.0 friend, will then `close' the trap.
1300 trap 'exit_status=$?
1301 # Save into config.log some information that might help in debugging.
1306 ## ---------------- ##
1307 ## Cache variables. ##
1308 ## ---------------- ##
1311 # The following way of writing the cache mishandles newlines in values,
1314 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1317 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1318 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1322 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1329 ## ----------------- ##
1330 ## Output variables. ##
1331 ## ----------------- ##
1334 for ac_var in $ac_subst_vars
1336 eval ac_val=$`echo $ac_var`
1337 echo "$ac_var='"'"'$ac_val'"'"'"
1341 if test -n "$ac_subst_files"; then
1348 for ac_var in $ac_subst_files
1350 eval ac_val=$`echo $ac_var`
1351 echo "$ac_var='"'"'$ac_val'"'"'"
1356 if test -s confdefs.h; then
1363 sed "/^$/d" confdefs.h | sort
1366 test "$ac_signal" != 0 &&
1367 echo "$as_me: caught signal $ac_signal"
1368 echo "$as_me: exit $exit_status"
1370 rm -f core *.core &&
1371 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1374 for ac_signal in 1 2 13 15; do
1375 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1379 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1380 rm -rf conftest* confdefs.h
1381 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1384 # Predefined preprocessor variables.
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_NAME "$PACKAGE_NAME"
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1401 cat >>confdefs.h <<_ACEOF
1402 #define PACKAGE_STRING "$PACKAGE_STRING"
1406 cat >>confdefs.h <<_ACEOF
1407 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1411 # Let the site file select an alternate cache file if it wants to.
1412 # Prefer explicitly selected file to automatically selected ones.
1413 if test -z "$CONFIG_SITE"; then
1414 if test "x$prefix" != xNONE; then
1415 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1417 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1420 for ac_site_file in $CONFIG_SITE; do
1421 if test -r "$ac_site_file"; then
1422 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1423 echo "$as_me: loading site script $ac_site_file" >&6;}
1424 sed 's/^/| /' "$ac_site_file" >&5
1429 if test -r "$cache_file"; then
1430 # Some versions of bash will fail to source /dev/null (special
1431 # files actually), so we avoid doing that.
1432 if test -f "$cache_file"; then
1433 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1434 echo "$as_me: loading cache $cache_file" >&6;}
1436 [\\/]* | ?:[\\/]* ) . $cache_file;;
1437 *) . ./$cache_file;;
1441 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1442 echo "$as_me: creating cache $cache_file" >&6;}
1446 # Check that the precious variables saved in the cache have kept the same
1448 ac_cache_corrupted=false
1449 for ac_var in `(set) 2>&1 |
1450 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1451 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1452 eval ac_new_set=\$ac_env_${ac_var}_set
1453 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1454 eval ac_new_val="\$ac_env_${ac_var}_value"
1455 case $ac_old_set,$ac_new_set in
1457 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1458 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1459 ac_cache_corrupted=: ;;
1461 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1462 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1463 ac_cache_corrupted=: ;;
1466 if test "x$ac_old_val" != "x$ac_new_val"; then
1467 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1468 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1469 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1470 echo "$as_me: former value: $ac_old_val" >&2;}
1471 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1472 echo "$as_me: current value: $ac_new_val" >&2;}
1473 ac_cache_corrupted=:
1476 # Pass precious variables to config.status.
1477 if test "$ac_new_set" = set; then
1479 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1480 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1481 *) ac_arg=$ac_var=$ac_new_val ;;
1483 case " $ac_configure_args " in
1484 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1485 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1489 if $ac_cache_corrupted; then
1490 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1491 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1492 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1493 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1494 { (exit 1); exit 1; }; }
1498 ac_cpp='$CPP $CPPFLAGS'
1499 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1500 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1501 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1533 if test -f $ac_dir/install-sh; then
1535 ac_install_sh="$ac_aux_dir/install-sh -c"
1537 elif test -f $ac_dir/install.sh; then
1539 ac_install_sh="$ac_aux_dir/install.sh -c"
1541 elif test -f $ac_dir/shtool; then
1543 ac_install_sh="$ac_aux_dir/shtool install -c"
1547 if test -z "$ac_aux_dir"; then
1548 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1549 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1550 { (exit 1); exit 1; }; }
1552 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1553 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1554 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1558 subdirs="$subdirs src/nws_portability"
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574 ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578 { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$as_me:$LINENO: checking host system type" >&5
1594 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595 if test "${ac_cv_host+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 ac_cv_host_alias=$host_alias
1599 test -z "$ac_cv_host_alias" &&
1600 ac_cv_host_alias=$ac_cv_build_alias
1601 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604 { (exit 1); exit 1; }; }
1607 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608 echo "${ECHO_T}$ac_cv_host" >&6
1610 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 echo "$as_me:$LINENO: checking target system type" >&5
1616 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1617 if test "${ac_cv_target+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_target_alias=$target_alias
1621 test "x$ac_cv_target_alias" = "x" &&
1622 ac_cv_target_alias=$ac_cv_host_alias
1623 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1630 echo "${ECHO_T}$ac_cv_target" >&6
1631 target=$ac_cv_target
1632 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 # The aliases save the names the user supplied, while $host etc.
1638 # will get canonicalized.
1639 test -n "$target_alias" &&
1640 test "$program_prefix$program_suffix$program_transform_name" = \
1642 program_prefix=${target_alias}-
1644 ac_cpp='$CPP $CPPFLAGS'
1645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650 ac_config_headers="$ac_config_headers src/gras_config.h"
1652 am__api_version="1.7"
1653 # Find a good install program. We prefer a C program (faster),
1654 # so one script is as good as another. But avoid the broken or
1655 # incompatible versions:
1656 # SysV /etc/install, /usr/sbin/install
1657 # SunOS /usr/etc/install
1658 # IRIX /sbin/install
1660 # AmigaOS /C/install, which installs bootblocks on floppy discs
1661 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1662 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1663 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1664 # OS/2's system install, which has a completely different semantic
1665 # ./install, which can be erroneously created by make from ./install.sh.
1666 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1667 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1668 if test -z "$INSTALL"; then
1669 if test "${ac_cv_path_install+set}" = set; then
1670 echo $ECHO_N "(cached) $ECHO_C" >&6
1672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1676 test -z "$as_dir" && as_dir=.
1677 # Account for people who put trailing slashes in PATH elements.
1679 ./ | .// | /cC/* | \
1680 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1681 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1684 # OSF1 and SCO ODT 3.0 have their own names for install.
1685 # Don't use installbsd from OSF since it installs stuff as root
1687 for ac_prog in ginstall scoinst install; do
1688 for ac_exec_ext in '' $ac_executable_extensions; do
1689 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1690 if test $ac_prog = install &&
1691 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # AIX install. It has an incompatible calling convention.
1694 elif test $ac_prog = install &&
1695 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1696 # program-specific install script used by HP pwplus--don't use.
1699 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1711 if test "${ac_cv_path_install+set}" = set; then
1712 INSTALL=$ac_cv_path_install
1714 # As a last resort, use the slow shell script. We don't cache a
1715 # path for INSTALL within a source directory, because that will
1716 # break other packages using the cache if that directory is
1717 # removed, or if the path is relative.
1718 INSTALL=$ac_install_sh
1721 echo "$as_me:$LINENO: result: $INSTALL" >&5
1722 echo "${ECHO_T}$INSTALL" >&6
1724 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1725 # It thinks the first close brace ends the variable substitution.
1726 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1728 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1730 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1732 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1733 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1736 echo timestamp > conftest.file
1737 # Do `set' in a subshell so we don't clobber the current shell's
1738 # arguments. Must try -L first in case configure is actually a
1739 # symlink; some systems play weird games with the mod time of symlinks
1740 # (eg FreeBSD returns the mod time of the symlink's containing
1743 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1744 if test "$*" = "X"; then
1746 set X `ls -t $srcdir/configure conftest.file`
1749 if test "$*" != "X $srcdir/configure conftest.file" \
1750 && test "$*" != "X conftest.file $srcdir/configure"; then
1752 # If neither matched, then we have a broken ls. This can happen
1753 # if, for instance, CONFIG_SHELL is bash and it inherits a
1754 # broken ls alias from the environment. This has actually
1755 # happened. Such a system could not be considered "sane".
1756 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1757 alias in your environment" >&5
1758 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1759 alias in your environment" >&2;}
1760 { (exit 1); exit 1; }; }
1763 test "$2" = conftest.file
1769 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1770 Check your system clock" >&5
1771 echo "$as_me: error: newly created file is older than distributed files!
1772 Check your system clock" >&2;}
1773 { (exit 1); exit 1; }; }
1775 echo "$as_me:$LINENO: result: yes" >&5
1776 echo "${ECHO_T}yes" >&6
1777 test "$program_prefix" != NONE &&
1778 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1779 # Use a double $ so make ignores it.
1780 test "$program_suffix" != NONE &&
1781 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1782 # Double any \ or $. echo might interpret backslashes.
1783 # By default was `s,x,x', remove it if useless.
1784 cat <<\_ACEOF >conftest.sed
1785 s/[\\$]/&&/g;s/;s,x,x,$//
1787 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1791 # expand $ac_aux_dir to an absolute path
1792 am_aux_dir=`cd $ac_aux_dir && pwd`
1794 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1795 # Use eval to expand $SHELL
1796 if eval "$MISSING --run true"; then
1797 am_missing_run="$MISSING --run "
1800 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1801 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1804 for ac_prog in gawk mawk nawk awk
1806 # Extract the first word of "$ac_prog", so it can be a program name with args.
1807 set dummy $ac_prog; ac_word=$2
1808 echo "$as_me:$LINENO: checking for $ac_word" >&5
1809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1810 if test "${ac_cv_prog_AWK+set}" = set; then
1811 echo $ECHO_N "(cached) $ECHO_C" >&6
1813 if test -n "$AWK"; then
1814 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1820 test -z "$as_dir" && as_dir=.
1821 for ac_exec_ext in '' $ac_executable_extensions; do
1822 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1823 ac_cv_prog_AWK="$ac_prog"
1824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1833 if test -n "$AWK"; then
1834 echo "$as_me:$LINENO: result: $AWK" >&5
1835 echo "${ECHO_T}$AWK" >&6
1837 echo "$as_me:$LINENO: result: no" >&5
1838 echo "${ECHO_T}no" >&6
1841 test -n "$AWK" && break
1844 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1845 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1846 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1847 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1848 echo $ECHO_N "(cached) $ECHO_C" >&6
1850 cat >conftest.make <<\_ACEOF
1852 @echo 'ac_maketemp="$(MAKE)"'
1854 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1855 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1856 if test -n "$ac_maketemp"; then
1857 eval ac_cv_prog_make_${ac_make}_set=yes
1859 eval ac_cv_prog_make_${ac_make}_set=no
1863 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1864 echo "$as_me:$LINENO: result: yes" >&5
1865 echo "${ECHO_T}yes" >&6
1868 echo "$as_me:$LINENO: result: no" >&5
1869 echo "${ECHO_T}no" >&6
1870 SET_MAKE="MAKE=${MAKE-make}"
1873 rm -rf .tst 2>/dev/null
1874 mkdir .tst 2>/dev/null
1875 if test -d .tst; then
1880 rmdir .tst 2>/dev/null
1882 # test to see if srcdir already configured
1883 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1884 test -f $srcdir/config.status; then
1885 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1886 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1887 { (exit 1); exit 1; }; }
1890 # test whether we have cygpath
1891 if test -z "$CYGPATH_W"; then
1892 if (cygpath --version) >/dev/null 2>/dev/null; then
1893 CYGPATH_W='cygpath -w'
1900 # Define the identity of the package.
1905 cat >>confdefs.h <<_ACEOF
1906 #define PACKAGE "$PACKAGE"
1910 cat >>confdefs.h <<_ACEOF
1911 #define VERSION "$VERSION"
1914 # Some tools Automake needs.
1916 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1919 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1922 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1925 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1928 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1931 AMTAR=${AMTAR-"${am_missing_run}tar"}
1933 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1935 # Installed binaries are usually stripped using `strip' when the user
1936 # run `make install-strip'. However `strip' might not be the right
1937 # tool to use in cross-compilation environments, therefore Automake
1938 # will honor the `STRIP' environment variable to overrule this program.
1939 if test "$cross_compiling" != no; then
1940 if test -n "$ac_tool_prefix"; then
1941 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1942 set dummy ${ac_tool_prefix}strip; ac_word=$2
1943 echo "$as_me:$LINENO: checking for $ac_word" >&5
1944 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1945 if test "${ac_cv_prog_STRIP+set}" = set; then
1946 echo $ECHO_N "(cached) $ECHO_C" >&6
1948 if test -n "$STRIP"; then
1949 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1955 test -z "$as_dir" && as_dir=.
1956 for ac_exec_ext in '' $ac_executable_extensions; do
1957 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1958 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1967 STRIP=$ac_cv_prog_STRIP
1968 if test -n "$STRIP"; then
1969 echo "$as_me:$LINENO: result: $STRIP" >&5
1970 echo "${ECHO_T}$STRIP" >&6
1972 echo "$as_me:$LINENO: result: no" >&5
1973 echo "${ECHO_T}no" >&6
1977 if test -z "$ac_cv_prog_STRIP"; then
1979 # Extract the first word of "strip", so it can be a program name with args.
1980 set dummy strip; ac_word=$2
1981 echo "$as_me:$LINENO: checking for $ac_word" >&5
1982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1983 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1984 echo $ECHO_N "(cached) $ECHO_C" >&6
1986 if test -n "$ac_ct_STRIP"; then
1987 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1993 test -z "$as_dir" && as_dir=.
1994 for ac_exec_ext in '' $ac_executable_extensions; do
1995 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1996 ac_cv_prog_ac_ct_STRIP="strip"
1997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2003 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2006 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2007 if test -n "$ac_ct_STRIP"; then
2008 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2009 echo "${ECHO_T}$ac_ct_STRIP" >&6
2011 echo "$as_me:$LINENO: result: no" >&5
2012 echo "${ECHO_T}no" >&6
2017 STRIP="$ac_cv_prog_STRIP"
2021 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2023 # We need awk for the "check" target. The system "awk" is bad on
2029 # Check whether --enable-shared or --disable-shared was given.
2030 if test "${enable_shared+set}" = set; then
2031 enableval="$enable_shared"
2032 p=${PACKAGE-default}
2034 yes) enable_shared=yes ;;
2035 no) enable_shared=no ;;
2038 # Look at the argument we got. We use all the common list separators.
2039 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2040 for pkg in $enableval; do
2042 if test "X$pkg" = "X$p"; then
2053 # Check whether --enable-static or --disable-static was given.
2054 if test "${enable_static+set}" = set; then
2055 enableval="$enable_static"
2056 p=${PACKAGE-default}
2058 yes) enable_static=yes ;;
2059 no) enable_static=no ;;
2062 # Look at the argument we got. We use all the common list separators.
2063 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2064 for pkg in $enableval; do
2066 if test "X$pkg" = "X$p"; then
2077 # Check whether --enable-fast-install or --disable-fast-install was given.
2078 if test "${enable_fast_install+set}" = set; then
2079 enableval="$enable_fast_install"
2080 p=${PACKAGE-default}
2082 yes) enable_fast_install=yes ;;
2083 no) enable_fast_install=no ;;
2085 enable_fast_install=no
2086 # Look at the argument we got. We use all the common list separators.
2087 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2088 for pkg in $enableval; do
2090 if test "X$pkg" = "X$p"; then
2091 enable_fast_install=yes
2098 enable_fast_install=yes
2101 DEPDIR="${am__leading_dot}deps"
2103 ac_config_commands="$ac_config_commands depfiles"
2106 am_make=${MAKE-make}
2107 cat > confinc << 'END'
2112 # If we don't find an include directive, just comment out the code.
2113 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2114 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2118 # First try GNU make style include.
2119 echo "include confinc" > confmf
2120 # We grep out `Entering directory' and `Leaving directory'
2121 # messages which can occur if `w' ends up in MAKEFLAGS.
2122 # In particular we don't look at `^make:' because GNU make might
2123 # be invoked under some other name (usually "gmake"), in which
2124 # case it prints its new name instead of `make'.
2125 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2130 # Now try BSD make style include.
2131 if test "$am__include" = "#"; then
2132 echo '.include "confinc"' > confmf
2133 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2134 am__include=.include
2141 echo "$as_me:$LINENO: result: $_am_result" >&5
2142 echo "${ECHO_T}$_am_result" >&6
2143 rm -f confinc confmf
2145 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2146 if test "${enable_dependency_tracking+set}" = set; then
2147 enableval="$enable_dependency_tracking"
2150 if test "x$enable_dependency_tracking" != xno; then
2151 am_depcomp="$ac_aux_dir/depcomp"
2156 if test "x$enable_dependency_tracking" != xno; then
2167 ac_cpp='$CPP $CPPFLAGS'
2168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2171 if test -n "$ac_tool_prefix"; then
2172 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2173 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2174 echo "$as_me:$LINENO: checking for $ac_word" >&5
2175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2176 if test "${ac_cv_prog_CC+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2179 if test -n "$CC"; then
2180 ac_cv_prog_CC="$CC" # Let the user override the test.
2182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2186 test -z "$as_dir" && as_dir=.
2187 for ac_exec_ext in '' $ac_executable_extensions; do
2188 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2189 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2199 if test -n "$CC"; then
2200 echo "$as_me:$LINENO: result: $CC" >&5
2201 echo "${ECHO_T}$CC" >&6
2203 echo "$as_me:$LINENO: result: no" >&5
2204 echo "${ECHO_T}no" >&6
2208 if test -z "$ac_cv_prog_CC"; then
2210 # Extract the first word of "gcc", so it can be a program name with args.
2211 set dummy gcc; ac_word=$2
2212 echo "$as_me:$LINENO: checking for $ac_word" >&5
2213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2214 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2215 echo $ECHO_N "(cached) $ECHO_C" >&6
2217 if test -n "$ac_ct_CC"; then
2218 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2224 test -z "$as_dir" && as_dir=.
2225 for ac_exec_ext in '' $ac_executable_extensions; do
2226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2227 ac_cv_prog_ac_ct_CC="gcc"
2228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2236 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2237 if test -n "$ac_ct_CC"; then
2238 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2239 echo "${ECHO_T}$ac_ct_CC" >&6
2241 echo "$as_me:$LINENO: result: no" >&5
2242 echo "${ECHO_T}no" >&6
2250 if test -z "$CC"; then
2251 if test -n "$ac_tool_prefix"; then
2252 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2253 set dummy ${ac_tool_prefix}cc; ac_word=$2
2254 echo "$as_me:$LINENO: checking for $ac_word" >&5
2255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2256 if test "${ac_cv_prog_CC+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 if test -n "$CC"; then
2260 ac_cv_prog_CC="$CC" # Let the user override the test.
2262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2266 test -z "$as_dir" && as_dir=.
2267 for ac_exec_ext in '' $ac_executable_extensions; do
2268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2269 ac_cv_prog_CC="${ac_tool_prefix}cc"
2270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2279 if test -n "$CC"; then
2280 echo "$as_me:$LINENO: result: $CC" >&5
2281 echo "${ECHO_T}$CC" >&6
2283 echo "$as_me:$LINENO: result: no" >&5
2284 echo "${ECHO_T}no" >&6
2288 if test -z "$ac_cv_prog_CC"; then
2290 # Extract the first word of "cc", so it can be a program name with args.
2291 set dummy cc; ac_word=$2
2292 echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2295 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 if test -n "$ac_ct_CC"; then
2298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2307 ac_cv_prog_ac_ct_CC="cc"
2308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2316 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2317 if test -n "$ac_ct_CC"; then
2318 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2319 echo "${ECHO_T}$ac_ct_CC" >&6
2321 echo "$as_me:$LINENO: result: no" >&5
2322 echo "${ECHO_T}no" >&6
2331 if test -z "$CC"; then
2332 # Extract the first word of "cc", so it can be a program name with args.
2333 set dummy cc; ac_word=$2
2334 echo "$as_me:$LINENO: checking for $ac_word" >&5
2335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2336 if test "${ac_cv_prog_CC+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2339 if test -n "$CC"; then
2340 ac_cv_prog_CC="$CC" # Let the user override the test.
2343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2347 test -z "$as_dir" && as_dir=.
2348 for ac_exec_ext in '' $ac_executable_extensions; do
2349 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2350 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2351 ac_prog_rejected=yes
2355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2361 if test $ac_prog_rejected = yes; then
2362 # We found a bogon in the path, so make sure we never use it.
2363 set dummy $ac_cv_prog_CC
2365 if test $# != 0; then
2366 # We chose a different compiler from the bogus one.
2367 # However, it has the same basename, so the bogon will be chosen
2368 # first if we set CC to just the basename; use the full file name.
2370 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2376 if test -n "$CC"; then
2377 echo "$as_me:$LINENO: result: $CC" >&5
2378 echo "${ECHO_T}$CC" >&6
2380 echo "$as_me:$LINENO: result: no" >&5
2381 echo "${ECHO_T}no" >&6
2385 if test -z "$CC"; then
2386 if test -n "$ac_tool_prefix"; then
2389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2390 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2391 echo "$as_me:$LINENO: checking for $ac_word" >&5
2392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2393 if test "${ac_cv_prog_CC+set}" = set; then
2394 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 if test -n "$CC"; then
2397 ac_cv_prog_CC="$CC" # Let the user override the test.
2399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 test -z "$as_dir" && as_dir=.
2404 for ac_exec_ext in '' $ac_executable_extensions; do
2405 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2406 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2424 test -n "$CC" && break
2427 if test -z "$CC"; then
2431 # Extract the first word of "$ac_prog", so it can be a program name with args.
2432 set dummy $ac_prog; ac_word=$2
2433 echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2448 ac_cv_prog_ac_ct_CC="$ac_prog"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2458 if test -n "$ac_ct_CC"; then
2459 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2460 echo "${ECHO_T}$ac_ct_CC" >&6
2462 echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6
2466 test -n "$ac_ct_CC" && break
2475 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2476 See \`config.log' for more details." >&5
2477 echo "$as_me: error: no acceptable C compiler found in \$PATH
2478 See \`config.log' for more details." >&2;}
2479 { (exit 1); exit 1; }; }
2481 # Provide some information about the compiler.
2482 echo "$as_me:$LINENO:" \
2483 "checking for C compiler version" >&5
2484 ac_compiler=`set X $ac_compile; echo $2`
2485 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2486 (eval $ac_compiler --version </dev/null >&5) 2>&5
2488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2489 (exit $ac_status); }
2490 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2491 (eval $ac_compiler -v </dev/null >&5) 2>&5
2493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2494 (exit $ac_status); }
2495 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2496 (eval $ac_compiler -V </dev/null >&5) 2>&5
2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2499 (exit $ac_status); }
2501 cat >conftest.$ac_ext <<_ACEOF
2504 cat confdefs.h >>conftest.$ac_ext
2505 cat >>conftest.$ac_ext <<_ACEOF
2506 /* end confdefs.h. */
2516 ac_clean_files_save=$ac_clean_files
2517 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2518 # Try to create an executable without -o first, disregard a.out.
2519 # It will help us diagnose broken compilers, and finding out an intuition
2521 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2522 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2523 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2524 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2525 (eval $ac_link_default) 2>&5
2527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2528 (exit $ac_status); }; then
2529 # Find the output, starting from the most likely. This scheme is
2530 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2533 # Be careful to initialize this variable, since it used to be cached.
2534 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2536 # b.out is created by i960 compilers.
2537 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2539 test -f "$ac_file" || continue
2541 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2544 # This is the source file.
2547 # We found the default executable, but exeext='' is most
2551 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2552 # FIXME: I believe we export ac_cv_exeext for Libtool,
2553 # but it would be cool to find out if it's true. Does anybody
2554 # maintain Libtool? --akim.
2562 echo "$as_me: failed program was:" >&5
2563 sed 's/^/| /' conftest.$ac_ext >&5
2565 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2566 See \`config.log' for more details." >&5
2567 echo "$as_me: error: C compiler cannot create executables
2568 See \`config.log' for more details." >&2;}
2569 { (exit 77); exit 77; }; }
2572 ac_exeext=$ac_cv_exeext
2573 echo "$as_me:$LINENO: result: $ac_file" >&5
2574 echo "${ECHO_T}$ac_file" >&6
2576 # Check the compiler produces executables we can run. If not, either
2577 # the compiler is broken, or we cross compile.
2578 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2579 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2580 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2581 # If not cross compiling, check that we can run a simple program.
2582 if test "$cross_compiling" != yes; then
2583 if { ac_try='./$ac_file'
2584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2588 (exit $ac_status); }; }; then
2591 if test "$cross_compiling" = maybe; then
2594 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2595 If you meant to cross compile, use \`--host'.
2596 See \`config.log' for more details." >&5
2597 echo "$as_me: error: cannot run C compiled programs.
2598 If you meant to cross compile, use \`--host'.
2599 See \`config.log' for more details." >&2;}
2600 { (exit 1); exit 1; }; }
2604 echo "$as_me:$LINENO: result: yes" >&5
2605 echo "${ECHO_T}yes" >&6
2607 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2608 ac_clean_files=$ac_clean_files_save
2609 # Check the compiler produces executables we can run. If not, either
2610 # the compiler is broken, or we cross compile.
2611 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2612 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2613 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2614 echo "${ECHO_T}$cross_compiling" >&6
2616 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2617 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2619 (eval $ac_link) 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; then
2623 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2624 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2625 # work properly (i.e., refer to `conftest.exe'), while it won't with
2627 for ac_file in conftest.exe conftest conftest.*; do
2628 test -f "$ac_file" || continue
2630 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2631 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2638 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2639 See \`config.log' for more details." >&5
2640 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2641 See \`config.log' for more details." >&2;}
2642 { (exit 1); exit 1; }; }
2645 rm -f conftest$ac_cv_exeext
2646 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2647 echo "${ECHO_T}$ac_cv_exeext" >&6
2649 rm -f conftest.$ac_ext
2650 EXEEXT=$ac_cv_exeext
2652 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2653 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2654 if test "${ac_cv_objext+set}" = set; then
2655 echo $ECHO_N "(cached) $ECHO_C" >&6
2657 cat >conftest.$ac_ext <<_ACEOF
2660 cat confdefs.h >>conftest.$ac_ext
2661 cat >>conftest.$ac_ext <<_ACEOF
2662 /* end confdefs.h. */
2672 rm -f conftest.o conftest.obj
2673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2674 (eval $ac_compile) 2>&5
2676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2677 (exit $ac_status); }; then
2678 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2681 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2686 echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2689 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2690 See \`config.log' for more details." >&5
2691 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2692 See \`config.log' for more details." >&2;}
2693 { (exit 1); exit 1; }; }
2696 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2698 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2699 echo "${ECHO_T}$ac_cv_objext" >&6
2700 OBJEXT=$ac_cv_objext
2702 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2703 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2704 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2705 echo $ECHO_N "(cached) $ECHO_C" >&6
2707 cat >conftest.$ac_ext <<_ACEOF
2710 cat confdefs.h >>conftest.$ac_ext
2711 cat >>conftest.$ac_ext <<_ACEOF
2712 /* end confdefs.h. */
2725 rm -f conftest.$ac_objext
2726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2727 (eval $ac_compile) 2>conftest.er1
2729 grep -v '^ *+' conftest.er1 >conftest.err
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2739 (exit $ac_status); }; } &&
2740 { ac_try='test -s conftest.$ac_objext'
2741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2745 (exit $ac_status); }; }; then
2748 echo "$as_me: failed program was:" >&5
2749 sed 's/^/| /' conftest.$ac_ext >&5
2753 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2757 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2758 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2759 GCC=`test $ac_compiler_gnu = yes && echo yes`
2760 ac_test_CFLAGS=${CFLAGS+set}
2761 ac_save_CFLAGS=$CFLAGS
2763 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2764 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2765 if test "${ac_cv_prog_cc_g+set}" = set; then
2766 echo $ECHO_N "(cached) $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2783 rm -f conftest.$ac_objext
2784 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2785 (eval $ac_compile) 2>conftest.er1
2787 grep -v '^ *+' conftest.er1 >conftest.err
2789 cat conftest.err >&5
2790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2791 (exit $ac_status); } &&
2792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2797 (exit $ac_status); }; } &&
2798 { ac_try='test -s conftest.$ac_objext'
2799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2803 (exit $ac_status); }; }; then
2806 echo "$as_me: failed program was:" >&5
2807 sed 's/^/| /' conftest.$ac_ext >&5
2811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2813 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2814 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2815 if test "$ac_test_CFLAGS" = set; then
2816 CFLAGS=$ac_save_CFLAGS
2817 elif test $ac_cv_prog_cc_g = yes; then
2818 if test "$GCC" = yes; then
2824 if test "$GCC" = yes; then
2830 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2831 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2832 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2833 echo $ECHO_N "(cached) $ECHO_C" >&6
2835 ac_cv_prog_cc_stdc=no
2837 cat >conftest.$ac_ext <<_ACEOF
2840 cat confdefs.h >>conftest.$ac_ext
2841 cat >>conftest.$ac_ext <<_ACEOF
2842 /* end confdefs.h. */
2845 #include <sys/types.h>
2846 #include <sys/stat.h>
2847 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2848 struct buf { int x; };
2849 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2850 static char *e (p, i)
2856 static char *f (char * (*g) (char **, int), char **p, ...)
2861 s = g (p, va_arg (v,int));
2866 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2867 function prototypes and stuff, but not '\xHH' hex character constants.
2868 These don't provoke an error unfortunately, instead are silently treated
2869 as 'x'. The following induces an error, until -std1 is added to get
2870 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2871 array size at least. It's necessary to write '\x00'==0 to get something
2872 that's true only with -std1. */
2873 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2875 int test (int i, double x);
2876 struct s1 {int (*f) (int a);};
2877 struct s2 {int (*f) (double a);};
2878 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2884 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2889 # Don't try gcc -ansi; that turns off useful extensions and
2890 # breaks some systems' header files.
2891 # AIX -qlanglvl=ansi
2892 # Ultrix and OSF/1 -std1
2893 # HP-UX 10.20 and later -Ae
2894 # HP-UX older versions -Aa -D_HPUX_SOURCE
2895 # SVR4 -Xc -D__EXTENSIONS__
2896 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2898 CC="$ac_save_CC $ac_arg"
2899 rm -f conftest.$ac_objext
2900 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2901 (eval $ac_compile) 2>conftest.er1
2903 grep -v '^ *+' conftest.er1 >conftest.err
2905 cat conftest.err >&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); } &&
2908 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913 (exit $ac_status); }; } &&
2914 { ac_try='test -s conftest.$ac_objext'
2915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; }; then
2920 ac_cv_prog_cc_stdc=$ac_arg
2923 echo "$as_me: failed program was:" >&5
2924 sed 's/^/| /' conftest.$ac_ext >&5
2927 rm -f conftest.err conftest.$ac_objext
2929 rm -f conftest.$ac_ext conftest.$ac_objext
2934 case "x$ac_cv_prog_cc_stdc" in
2936 echo "$as_me:$LINENO: result: none needed" >&5
2937 echo "${ECHO_T}none needed" >&6 ;;
2939 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2940 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2941 CC="$CC $ac_cv_prog_cc_stdc" ;;
2944 # Some people use a C++ compiler to compile C. Since we use `exit',
2945 # in C++ we need to declare it. In case someone uses the same compiler
2946 # for both compiling C and C++ we need to have the C++ compiler decide
2947 # the declaration of exit, since it's the most demanding environment.
2948 cat >conftest.$ac_ext <<_ACEOF
2953 rm -f conftest.$ac_objext
2954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2955 (eval $ac_compile) 2>conftest.er1
2957 grep -v '^ *+' conftest.er1 >conftest.err
2959 cat conftest.err >&5
2960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961 (exit $ac_status); } &&
2962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2967 (exit $ac_status); }; } &&
2968 { ac_try='test -s conftest.$ac_objext'
2969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2974 for ac_declaration in \
2976 'extern "C" void std::exit (int) throw (); using std::exit;' \
2977 'extern "C" void std::exit (int); using std::exit;' \
2978 'extern "C" void exit (int) throw ();' \
2979 'extern "C" void exit (int);' \
2982 cat >conftest.$ac_ext <<_ACEOF
2985 cat confdefs.h >>conftest.$ac_ext
2986 cat >>conftest.$ac_ext <<_ACEOF
2987 /* end confdefs.h. */
2998 rm -f conftest.$ac_objext
2999 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3000 (eval $ac_compile) 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3012 (exit $ac_status); }; } &&
3013 { ac_try='test -s conftest.$ac_objext'
3014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3018 (exit $ac_status); }; }; then
3021 echo "$as_me: failed program was:" >&5
3022 sed 's/^/| /' conftest.$ac_ext >&5
3026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3044 (eval $ac_compile) 2>conftest.er1
3046 grep -v '^ *+' conftest.er1 >conftest.err
3048 cat conftest.err >&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); } &&
3051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3056 (exit $ac_status); }; } &&
3057 { ac_try='test -s conftest.$ac_objext'
3058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3062 (exit $ac_status); }; }; then
3065 echo "$as_me: failed program was:" >&5
3066 sed 's/^/| /' conftest.$ac_ext >&5
3069 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3072 if test -n "$ac_declaration"; then
3073 echo '#ifdef __cplusplus' >>confdefs.h
3074 echo $ac_declaration >>confdefs.h
3075 echo '#endif' >>confdefs.h
3079 echo "$as_me: failed program was:" >&5
3080 sed 's/^/| /' conftest.$ac_ext >&5
3083 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3085 ac_cpp='$CPP $CPPFLAGS'
3086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3090 depcc="$CC" am_compiler_list=
3092 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3093 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3094 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3095 echo $ECHO_N "(cached) $ECHO_C" >&6
3097 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3098 # We make a subdir and do the tests there. Otherwise we can end up
3099 # making bogus files that we don't know about and never remove. For
3100 # instance it was reported that on HP-UX the gcc test will end up
3101 # making a dummy file named `D' -- because `-MD' means `put the output
3104 # Copy depcomp to subdir because otherwise we won't find it if we're
3105 # using a relative directory.
3106 cp "$am_depcomp" conftest.dir
3108 # We will build objects and dependencies in a subdirectory because
3109 # it helps to detect inapplicable dependency modes. For instance
3110 # both Tru64's cc and ICC support -MD to output dependencies as a
3111 # side effect of compilation, but ICC will put the dependencies in
3112 # the current directory while Tru64 will put them in the object
3116 am_cv_CC_dependencies_compiler_type=none
3117 if test "$am_compiler_list" = ""; then
3118 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3120 for depmode in $am_compiler_list; do
3121 # Setup a source with many dependencies, because some compilers
3122 # like to wrap large dependency lists on column 80 (with \), and
3123 # we should not choose a depcomp mode which is confused by this.
3125 # We need to recreate these files for each test, as the compiler may
3126 # overwrite some of them when testing with obscure command lines.
3127 # This happens at least with the AIX C compiler.
3129 for i in 1 2 3 4 5 6; do
3130 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3133 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3137 # after this tag, mechanisms are not by side-effect, so they'll
3138 # only be used when explicitly requested
3139 if test "x$enable_dependency_tracking" = xyes; then
3147 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3148 # mode. It turns out that the SunPro C++ compiler does not properly
3149 # handle `-M -o', and we need to detect this.
3150 if depmode=$depmode \
3151 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3152 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3153 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3154 >/dev/null 2>conftest.err &&
3155 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3156 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3157 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3158 # icc doesn't choke on unknown options, it will just issue warnings
3159 # (even with -Werror). So we grep stderr for any message
3160 # that says an option was ignored.
3161 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3162 am_cv_CC_dependencies_compiler_type=$depmode
3171 am_cv_CC_dependencies_compiler_type=none
3175 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3176 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3177 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3182 test "x$enable_dependency_tracking" != xno \
3183 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3185 am__fastdepCC_FALSE='#'
3187 am__fastdepCC_TRUE='#'
3188 am__fastdepCC_FALSE=
3192 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3193 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3194 if test "${lt_cv_path_SED+set}" = set; then
3195 echo $ECHO_N "(cached) $ECHO_C" >&6
3197 # Loop through the user's path and test for sed and gsed.
3198 # Then use that list of sed's as ones to test for truncation.
3199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3203 test -z "$as_dir" && as_dir=.
3204 for lt_ac_prog in sed gsed; do
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3207 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3214 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3215 # along with /bin/sed that truncates output.
3216 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3217 test ! -f $lt_ac_sed && break
3218 cat /dev/null > conftest.in
3220 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3221 # Check for GNU sed and select it if it is found.
3222 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3223 lt_cv_path_SED=$lt_ac_sed
3227 cat conftest.in conftest.in >conftest.tmp
3228 mv conftest.tmp conftest.in
3229 cp conftest.in conftest.nl
3231 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3232 cmp -s conftest.out conftest.nl || break
3233 # 10000 chars as input seems more than enough
3234 test $lt_ac_count -gt 10 && break
3235 lt_ac_count=`expr $lt_ac_count + 1`
3236 if test $lt_ac_count -gt $lt_ac_max; then
3237 lt_ac_max=$lt_ac_count
3238 lt_cv_path_SED=$lt_ac_sed
3246 echo "$as_me:$LINENO: result: $SED" >&5
3247 echo "${ECHO_T}$SED" >&6
3249 echo "$as_me:$LINENO: checking for egrep" >&5
3250 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3251 if test "${ac_cv_prog_egrep+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3255 then ac_cv_prog_egrep='grep -E'
3256 else ac_cv_prog_egrep='egrep'
3259 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3260 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3261 EGREP=$ac_cv_prog_egrep
3265 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3266 if test "${with_gnu_ld+set}" = set; then
3267 withval="$with_gnu_ld"
3268 test "$withval" = no || with_gnu_ld=yes
3273 if test "$GCC" = yes; then
3274 # Check if gcc -print-prog-name=ld gives a path.
3275 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3276 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3279 # gcc leaves a trailing carriage return which upsets mingw
3280 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3282 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3285 # Accept absolute paths.
3287 re_direlt='/[^/][^/]*/\.\./'
3288 # Canonicalize the pathname of ld
3289 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3290 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3291 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3293 test -z "$LD" && LD="$ac_prog"
3296 # If it fails, then pretend we aren't using GCC.
3300 # If it is relative, then search for the first ld in PATH.
3304 elif test "$with_gnu_ld" = yes; then
3305 echo "$as_me:$LINENO: checking for GNU ld" >&5
3306 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3308 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3309 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3311 if test "${lt_cv_path_LD+set}" = set; then
3312 echo $ECHO_N "(cached) $ECHO_C" >&6
3314 if test -z "$LD"; then
3315 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3316 for ac_dir in $PATH; do
3318 test -z "$ac_dir" && ac_dir=.
3319 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3320 lt_cv_path_LD="$ac_dir/$ac_prog"
3321 # Check to see if the program is GNU ld. I'd rather use --version,
3322 # but apparently some GNU ld's only accept -v.
3323 # Break only if it was the GNU/non-GNU ld that we prefer.
3324 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3325 *GNU* | *'with BFD'*)
3326 test "$with_gnu_ld" != no && break
3329 test "$with_gnu_ld" != yes && break
3336 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3341 if test -n "$LD"; then
3342 echo "$as_me:$LINENO: result: $LD" >&5
3343 echo "${ECHO_T}$LD" >&6
3345 echo "$as_me:$LINENO: result: no" >&5
3346 echo "${ECHO_T}no" >&6
3348 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3349 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3350 { (exit 1); exit 1; }; }
3351 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3352 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3353 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3354 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3357 case `$LD -v 2>&1 </dev/null` in
3358 *GNU* | *'with BFD'*)
3359 lt_cv_prog_gnu_ld=yes
3362 lt_cv_prog_gnu_ld=no
3366 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3367 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3368 with_gnu_ld=$lt_cv_prog_gnu_ld
3371 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3372 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3373 if test "${lt_cv_ld_reload_flag+set}" = set; then
3374 echo $ECHO_N "(cached) $ECHO_C" >&6
3376 lt_cv_ld_reload_flag='-r'
3378 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3379 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3380 reload_flag=$lt_cv_ld_reload_flag
3381 case $reload_flag in
3383 *) reload_flag=" $reload_flag" ;;
3385 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3387 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3388 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3389 if test "${lt_cv_path_NM+set}" = set; then
3390 echo $ECHO_N "(cached) $ECHO_C" >&6
3392 if test -n "$NM"; then
3393 # Let the user override the test.
3396 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3397 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3399 test -z "$ac_dir" && ac_dir=.
3400 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3401 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3402 # Check to see if the nm accepts a BSD-compat flag.
3403 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3404 # nm: unknown option "B" ignored
3405 # Tru64's nm complains that /dev/null is an invalid object file
3406 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3407 */dev/null* | *'Invalid file or object type'*)
3408 lt_cv_path_NM="$tmp_nm -B"
3412 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3414 lt_cv_path_NM="$tmp_nm -p"
3418 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3419 continue # so that we can try to find one that supports BSD flags
3426 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3429 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3430 echo "${ECHO_T}$lt_cv_path_NM" >&6
3433 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3434 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3436 if test "$LN_S" = "ln -s"; then
3437 echo "$as_me:$LINENO: result: yes" >&5
3438 echo "${ECHO_T}yes" >&6
3440 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3441 echo "${ECHO_T}no, using $LN_S" >&6
3444 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3445 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3446 if test "${lt_cv_deplibs_check_method+set}" = set; then
3447 echo $ECHO_N "(cached) $ECHO_C" >&6
3449 lt_cv_file_magic_cmd='$MAGIC_CMD'
3450 lt_cv_file_magic_test_file=
3451 lt_cv_deplibs_check_method='unknown'
3452 # Need to set the preceding variable on all platforms that support
3453 # interlibrary dependencies.
3454 # 'none' -- dependencies not supported.
3455 # `unknown' -- same as none, but documents that we really don't know.
3456 # 'pass_all' -- all dependencies passed with no checks.
3457 # 'test_compile' -- check by making test program.
3458 # 'file_magic [[regex]]' -- check by looking for files in library path
3459 # which responds to the $file_magic_cmd with a given extended regex.
3460 # If you have `file' or equivalent on your system and you're not sure
3461 # whether `pass_all' will *always* work, you probably want this one.
3465 lt_cv_deplibs_check_method=pass_all
3469 lt_cv_deplibs_check_method=pass_all
3473 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3474 lt_cv_file_magic_cmd='/usr/bin/file -L'
3475 lt_cv_file_magic_test_file=/shlib/libc.so
3479 # win32_libid is a shell function defined in ltmain.sh
3480 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3481 lt_cv_file_magic_cmd='win32_libid'
3485 # Base MSYS/MinGW do not provide the 'file' command needed by
3486 # win32_libid shell function, so use a weaker test based on 'objdump'.
3487 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3488 lt_cv_file_magic_cmd='$OBJDUMP -f'
3491 darwin* | rhapsody*)
3492 lt_cv_deplibs_check_method=pass_all
3495 freebsd* | kfreebsd*-gnu)
3496 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3499 # Not sure whether the presence of OpenBSD here was a mistake.
3500 # Let's accept both of them until this is cleared up.
3501 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3502 lt_cv_file_magic_cmd=/usr/bin/file
3503 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3507 lt_cv_deplibs_check_method=pass_all
3512 lt_cv_deplibs_check_method=pass_all
3515 hpux10.20* | hpux11*)
3516 lt_cv_file_magic_cmd=/usr/bin/file
3519 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3520 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3523 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]'
3524 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3527 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3528 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3533 irix5* | irix6* | nonstopux*)
3535 *-32|*"-32 ") libmagic=32-bit;;
3536 *-n32|*"-n32 ") libmagic=N32;;
3537 *-64|*"-64 ") libmagic=64-bit;;
3538 *) libmagic=never-match;;
3540 lt_cv_deplibs_check_method=pass_all
3543 # This must be Linux ELF.
3545 lt_cv_deplibs_check_method=pass_all
3549 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3550 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3552 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3558 lt_cv_file_magic_cmd=/usr/bin/file
3559 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3563 lt_cv_deplibs_check_method=unknown
3567 lt_cv_file_magic_cmd=/usr/bin/file
3568 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3570 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3572 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3576 osf3* | osf4* | osf5*)
3577 lt_cv_deplibs_check_method=pass_all
3581 lt_cv_deplibs_check_method=pass_all
3585 lt_cv_deplibs_check_method=pass_all
3588 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3589 case $host_vendor in
3591 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]'
3592 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3595 lt_cv_deplibs_check_method=pass_all
3598 lt_cv_file_magic_cmd='/bin/file'
3599 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3602 lt_cv_file_magic_cmd='/bin/file'
3603 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3604 lt_cv_file_magic_test_file=/lib/libc.so
3607 lt_cv_deplibs_check_method=pass_all
3612 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3613 lt_cv_deplibs_check_method=pass_all
3618 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3619 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3620 file_magic_cmd=$lt_cv_file_magic_cmd
3621 deplibs_check_method=$lt_cv_deplibs_check_method
3622 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3627 # If no C compiler was specified, use CC.
3630 # Allow CC to be a program name with arguments.
3634 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3635 if test "${enable_libtool_lock+set}" = set; then
3636 enableval="$enable_libtool_lock"
3639 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3641 # Some flags need to be propagated to the compiler or linker for good
3645 # Find out which ABI we are using.
3646 echo 'int i;' > conftest.$ac_ext
3647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3648 (eval $ac_compile) 2>&5
3650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3651 (exit $ac_status); }; then
3652 case `/usr/bin/file conftest.$ac_objext` in
3664 # Find out which ABI we are using.
3665 echo '#line 3665 "configure"' > conftest.$ac_ext
3666 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3667 (eval $ac_compile) 2>&5
3669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 (exit $ac_status); }; then
3671 if test "$lt_cv_prog_gnu_ld" = yes; then
3672 case `/usr/bin/file conftest.$ac_objext` in
3674 LD="${LD-ld} -melf32bsmip"
3677 LD="${LD-ld} -melf32bmipn32"
3680 LD="${LD-ld} -melf64bmip"
3684 case `/usr/bin/file conftest.$ac_objext` in
3700 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3701 # Find out which ABI we are using.
3702 echo 'int i;' > conftest.$ac_ext
3703 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3704 (eval $ac_compile) 2>&5
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 case "`/usr/bin/file conftest.o`" in
3712 LD="${LD-ld} -m elf_i386"
3714 ppc64-*linux*|powerpc64-*linux*)
3715 LD="${LD-ld} -m elf32ppclinux"
3718 LD="${LD-ld} -m elf_s390"
3721 LD="${LD-ld} -m elf32_sparc"
3728 LD="${LD-ld} -m elf_x86_64"
3730 ppc*-*linux*|powerpc*-*linux*)
3731 LD="${LD-ld} -m elf64ppc"
3734 LD="${LD-ld} -m elf64_s390"
3737 LD="${LD-ld} -m elf64_sparc"
3747 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3748 SAVE_CFLAGS="$CFLAGS"
3749 CFLAGS="$CFLAGS -belf"
3750 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3751 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3752 if test "${lt_cv_cc_needs_belf+set}" = set; then
3753 echo $ECHO_N "(cached) $ECHO_C" >&6
3756 ac_cpp='$CPP $CPPFLAGS'
3757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3761 cat >conftest.$ac_ext <<_ACEOF
3764 cat confdefs.h >>conftest.$ac_ext
3765 cat >>conftest.$ac_ext <<_ACEOF
3766 /* end confdefs.h. */
3776 rm -f conftest.$ac_objext conftest$ac_exeext
3777 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3778 (eval $ac_link) 2>conftest.er1
3780 grep -v '^ *+' conftest.er1 >conftest.err
3782 cat conftest.err >&5
3783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3784 (exit $ac_status); } &&
3785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; } &&
3791 { ac_try='test -s conftest$ac_exeext'
3792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); }; }; then
3797 lt_cv_cc_needs_belf=yes
3799 echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 lt_cv_cc_needs_belf=no
3804 rm -f conftest.err conftest.$ac_objext \
3805 conftest$ac_exeext conftest.$ac_ext
3807 ac_cpp='$CPP $CPPFLAGS'
3808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3813 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3814 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3815 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3816 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3817 CFLAGS="$SAVE_CFLAGS"
3823 need_locks="$enable_libtool_lock"
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3831 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3832 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3837 if test -z "$CPP"; then
3838 if test "${ac_cv_prog_CPP+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3841 # Double quotes because CPP needs to be expanded
3842 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3845 for ac_c_preproc_warn_flag in '' yes
3847 # Use a header file that comes with gcc, so configuring glibc
3848 # with a fresh cross-compiler works.
3849 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3850 # <limits.h> exists even on freestanding compilers.
3851 # On the NeXT, cc -E runs the code through the compiler's parser,
3852 # not just through cpp. "Syntax error" is here to catch this case.
3853 cat >conftest.$ac_ext <<_ACEOF
3856 cat confdefs.h >>conftest.$ac_ext
3857 cat >>conftest.$ac_ext <<_ACEOF
3858 /* end confdefs.h. */
3860 # include <limits.h>
3862 # include <assert.h>
3866 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3867 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3869 grep -v '^ *+' conftest.er1 >conftest.err
3871 cat conftest.err >&5
3872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3873 (exit $ac_status); } >/dev/null; then
3874 if test -s conftest.err; then
3875 ac_cpp_err=$ac_c_preproc_warn_flag
3876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3883 if test -z "$ac_cpp_err"; then
3886 echo "$as_me: failed program was:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 # Broken: fails on valid input.
3892 rm -f conftest.err conftest.$ac_ext
3894 # OK, works on sane cases. Now check whether non-existent headers
3895 # can be detected and how.
3896 cat >conftest.$ac_ext <<_ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902 #include <ac_nonexistent.h>
3904 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3905 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3907 grep -v '^ *+' conftest.er1 >conftest.err
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } >/dev/null; then
3912 if test -s conftest.err; then
3913 ac_cpp_err=$ac_c_preproc_warn_flag
3914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3921 if test -z "$ac_cpp_err"; then
3922 # Broken: success on invalid input.
3925 echo "$as_me: failed program was:" >&5
3926 sed 's/^/| /' conftest.$ac_ext >&5
3928 # Passes both tests.
3932 rm -f conftest.err conftest.$ac_ext
3935 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3936 rm -f conftest.err conftest.$ac_ext
3937 if $ac_preproc_ok; then
3949 echo "$as_me:$LINENO: result: $CPP" >&5
3950 echo "${ECHO_T}$CPP" >&6
3952 for ac_c_preproc_warn_flag in '' yes
3954 # Use a header file that comes with gcc, so configuring glibc
3955 # with a fresh cross-compiler works.
3956 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3957 # <limits.h> exists even on freestanding compilers.
3958 # On the NeXT, cc -E runs the code through the compiler's parser,
3959 # not just through cpp. "Syntax error" is here to catch this case.
3960 cat >conftest.$ac_ext <<_ACEOF
3963 cat confdefs.h >>conftest.$ac_ext
3964 cat >>conftest.$ac_ext <<_ACEOF
3965 /* end confdefs.h. */
3967 # include <limits.h>
3969 # include <assert.h>
3973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976 grep -v '^ *+' conftest.er1 >conftest.err
3978 cat conftest.err >&5
3979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3980 (exit $ac_status); } >/dev/null; then
3981 if test -s conftest.err; then
3982 ac_cpp_err=$ac_c_preproc_warn_flag
3983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3990 if test -z "$ac_cpp_err"; then
3993 echo "$as_me: failed program was:" >&5
3994 sed 's/^/| /' conftest.$ac_ext >&5
3996 # Broken: fails on valid input.
3999 rm -f conftest.err conftest.$ac_ext
4001 # OK, works on sane cases. Now check whether non-existent headers
4002 # can be detected and how.
4003 cat >conftest.$ac_ext <<_ACEOF
4006 cat confdefs.h >>conftest.$ac_ext
4007 cat >>conftest.$ac_ext <<_ACEOF
4008 /* end confdefs.h. */
4009 #include <ac_nonexistent.h>
4011 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4012 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4014 grep -v '^ *+' conftest.er1 >conftest.err
4016 cat conftest.err >&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); } >/dev/null; then
4019 if test -s conftest.err; then
4020 ac_cpp_err=$ac_c_preproc_warn_flag
4021 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4028 if test -z "$ac_cpp_err"; then
4029 # Broken: success on invalid input.
4032 echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4035 # Passes both tests.
4039 rm -f conftest.err conftest.$ac_ext
4042 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4043 rm -f conftest.err conftest.$ac_ext
4044 if $ac_preproc_ok; then
4047 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4048 See \`config.log' for more details." >&5
4049 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4050 See \`config.log' for more details." >&2;}
4051 { (exit 1); exit 1; }; }
4055 ac_cpp='$CPP $CPPFLAGS'
4056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4061 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4062 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4063 if test "${ac_cv_header_stdc+set}" = set; then
4064 echo $ECHO_N "(cached) $ECHO_C" >&6
4066 cat >conftest.$ac_ext <<_ACEOF
4069 cat confdefs.h >>conftest.$ac_ext
4070 cat >>conftest.$ac_ext <<_ACEOF
4071 /* end confdefs.h. */
4085 rm -f conftest.$ac_objext
4086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4087 (eval $ac_compile) 2>conftest.er1
4089 grep -v '^ *+' conftest.er1 >conftest.err
4091 cat conftest.err >&5
4092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4093 (exit $ac_status); } &&
4094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 ac_cv_header_stdc=yes
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.$ac_ext >&5
4111 ac_cv_header_stdc=no
4113 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4115 if test $ac_cv_header_stdc = yes; then
4116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4117 cat >conftest.$ac_ext <<_ACEOF
4120 cat confdefs.h >>conftest.$ac_ext
4121 cat >>conftest.$ac_ext <<_ACEOF
4122 /* end confdefs.h. */
4126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4127 $EGREP "memchr" >/dev/null 2>&1; then
4130 ac_cv_header_stdc=no
4136 if test $ac_cv_header_stdc = yes; then
4137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4138 cat >conftest.$ac_ext <<_ACEOF
4141 cat confdefs.h >>conftest.$ac_ext
4142 cat >>conftest.$ac_ext <<_ACEOF
4143 /* end confdefs.h. */
4147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4148 $EGREP "free" >/dev/null 2>&1; then
4151 ac_cv_header_stdc=no
4157 if test $ac_cv_header_stdc = yes; then
4158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4159 if test "$cross_compiling" = yes; then
4162 cat >conftest.$ac_ext <<_ACEOF
4165 cat confdefs.h >>conftest.$ac_ext
4166 cat >>conftest.$ac_ext <<_ACEOF
4167 /* end confdefs.h. */
4169 #if ((' ' & 0x0FF) == 0x020)
4170 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4171 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4173 # define ISLOWER(c) \
4174 (('a' <= (c) && (c) <= 'i') \
4175 || ('j' <= (c) && (c) <= 'r') \
4176 || ('s' <= (c) && (c) <= 'z'))
4177 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4180 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4185 for (i = 0; i < 256; i++)
4186 if (XOR (islower (i), ISLOWER (i))
4187 || toupper (i) != TOUPPER (i))
4192 rm -f conftest$ac_exeext
4193 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4194 (eval $ac_link) 2>&5
4196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4205 echo "$as_me: program exited with status $ac_status" >&5
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4210 ac_cv_header_stdc=no
4212 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4216 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4217 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4218 if test $ac_cv_header_stdc = yes; then
4220 cat >>confdefs.h <<\_ACEOF
4221 #define STDC_HEADERS 1
4226 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4236 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4237 inttypes.h stdint.h unistd.h
4239 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4240 echo "$as_me:$LINENO: checking for $ac_header" >&5
4241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4243 echo $ECHO_N "(cached) $ECHO_C" >&6
4245 cat >conftest.$ac_ext <<_ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 $ac_includes_default
4253 #include <$ac_header>
4255 rm -f conftest.$ac_objext
4256 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4257 (eval $ac_compile) 2>conftest.er1
4259 grep -v '^ *+' conftest.er1 >conftest.err
4261 cat conftest.err >&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); } &&
4264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; } &&
4270 { ac_try='test -s conftest.$ac_objext'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 eval "$as_ac_Header=yes"
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4281 eval "$as_ac_Header=no"
4283 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4285 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4286 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4288 cat >>confdefs.h <<_ACEOF
4289 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4298 for ac_header in dlfcn.h
4300 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4301 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4302 echo "$as_me:$LINENO: checking for $ac_header" >&5
4303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4304 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4305 echo $ECHO_N "(cached) $ECHO_C" >&6
4307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4310 # Is the header compilable?
4311 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4312 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4313 cat >conftest.$ac_ext <<_ACEOF
4316 cat confdefs.h >>conftest.$ac_ext
4317 cat >>conftest.$ac_ext <<_ACEOF
4318 /* end confdefs.h. */
4319 $ac_includes_default
4320 #include <$ac_header>
4322 rm -f conftest.$ac_objext
4323 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4324 (eval $ac_compile) 2>conftest.er1
4326 grep -v '^ *+' conftest.er1 >conftest.err
4328 cat conftest.err >&5
4329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4330 (exit $ac_status); } &&
4331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4332 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4336 (exit $ac_status); }; } &&
4337 { ac_try='test -s conftest.$ac_objext'
4338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 ac_header_compiler=yes
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 ac_header_compiler=no
4350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4351 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4352 echo "${ECHO_T}$ac_header_compiler" >&6
4354 # Is the header present?
4355 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4357 cat >conftest.$ac_ext <<_ACEOF
4360 cat confdefs.h >>conftest.$ac_ext
4361 cat >>conftest.$ac_ext <<_ACEOF
4362 /* end confdefs.h. */
4363 #include <$ac_header>
4365 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4366 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4368 grep -v '^ *+' conftest.er1 >conftest.err
4370 cat conftest.err >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); } >/dev/null; then
4373 if test -s conftest.err; then
4374 ac_cpp_err=$ac_c_preproc_warn_flag
4375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4382 if test -z "$ac_cpp_err"; then
4383 ac_header_preproc=yes
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.$ac_ext >&5
4388 ac_header_preproc=no
4390 rm -f conftest.err conftest.$ac_ext
4391 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4392 echo "${ECHO_T}$ac_header_preproc" >&6
4394 # So? What about this header?
4395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4401 ac_header_preproc=yes
4404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4418 ## ----------------------------------------- ##
4419 ## Report this to martin.quinson@ens-lyon.fr ##
4420 ## ----------------------------------------- ##
4423 sed "s/^/$as_me: WARNING: /" >&2
4426 echo "$as_me:$LINENO: checking for $ac_header" >&5
4427 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4428 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4429 echo $ECHO_N "(cached) $ECHO_C" >&6
4431 eval "$as_ac_Header=\$ac_header_preproc"
4433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4434 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4438 cat >>confdefs.h <<_ACEOF
4439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4447 ac_cpp='$CXXCPP $CPPFLAGS'
4448 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4449 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4450 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4451 if test -n "$ac_tool_prefix"; then
4452 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4454 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4455 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4456 echo "$as_me:$LINENO: checking for $ac_word" >&5
4457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4458 if test "${ac_cv_prog_CXX+set}" = set; then
4459 echo $ECHO_N "(cached) $ECHO_C" >&6
4461 if test -n "$CXX"; then
4462 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4468 test -z "$as_dir" && as_dir=.
4469 for ac_exec_ext in '' $ac_executable_extensions; do
4470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4471 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4481 if test -n "$CXX"; then
4482 echo "$as_me:$LINENO: result: $CXX" >&5
4483 echo "${ECHO_T}$CXX" >&6
4485 echo "$as_me:$LINENO: result: no" >&5
4486 echo "${ECHO_T}no" >&6
4489 test -n "$CXX" && break
4492 if test -z "$CXX"; then
4494 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4496 # Extract the first word of "$ac_prog", so it can be a program name with args.
4497 set dummy $ac_prog; ac_word=$2
4498 echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4500 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4501 echo $ECHO_N "(cached) $ECHO_C" >&6
4503 if test -n "$ac_ct_CXX"; then
4504 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 test -z "$as_dir" && as_dir=.
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4513 ac_cv_prog_ac_ct_CXX="$ac_prog"
4514 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4522 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4523 if test -n "$ac_ct_CXX"; then
4524 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4525 echo "${ECHO_T}$ac_ct_CXX" >&6
4527 echo "$as_me:$LINENO: result: no" >&5
4528 echo "${ECHO_T}no" >&6
4531 test -n "$ac_ct_CXX" && break
4533 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4539 # Provide some information about the compiler.
4540 echo "$as_me:$LINENO:" \
4541 "checking for C++ compiler version" >&5
4542 ac_compiler=`set X $ac_compile; echo $2`
4543 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4544 (eval $ac_compiler --version </dev/null >&5) 2>&5
4546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4547 (exit $ac_status); }
4548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4549 (eval $ac_compiler -v </dev/null >&5) 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }
4553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4554 (eval $ac_compiler -V </dev/null >&5) 2>&5
4556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); }
4559 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4560 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4561 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4562 echo $ECHO_N "(cached) $ECHO_C" >&6
4564 cat >conftest.$ac_ext <<_ACEOF
4567 cat confdefs.h >>conftest.$ac_ext
4568 cat >>conftest.$ac_ext <<_ACEOF
4569 /* end confdefs.h. */
4582 rm -f conftest.$ac_objext
4583 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4584 (eval $ac_compile) 2>conftest.er1
4586 grep -v '^ *+' conftest.er1 >conftest.err
4588 cat conftest.err >&5
4589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4590 (exit $ac_status); } &&
4591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; } &&
4597 { ac_try='test -s conftest.$ac_objext'
4598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); }; }; then
4605 echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.$ac_ext >&5
4610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4611 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4614 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4615 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4616 GXX=`test $ac_compiler_gnu = yes && echo yes`
4617 ac_test_CXXFLAGS=${CXXFLAGS+set}
4618 ac_save_CXXFLAGS=$CXXFLAGS
4620 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4621 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4622 if test "${ac_cv_prog_cxx_g+set}" = set; then
4623 echo $ECHO_N "(cached) $ECHO_C" >&6
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4640 rm -f conftest.$ac_objext
4641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4642 (eval $ac_compile) 2>conftest.er1
4644 grep -v '^ *+' conftest.er1 >conftest.err
4646 cat conftest.err >&5
4647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } &&
4649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4654 (exit $ac_status); }; } &&
4655 { ac_try='test -s conftest.$ac_objext'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; }; then
4661 ac_cv_prog_cxx_g=yes
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4668 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4670 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4671 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4672 if test "$ac_test_CXXFLAGS" = set; then
4673 CXXFLAGS=$ac_save_CXXFLAGS
4674 elif test $ac_cv_prog_cxx_g = yes; then
4675 if test "$GXX" = yes; then
4681 if test "$GXX" = yes; then
4687 for ac_declaration in \
4689 'extern "C" void std::exit (int) throw (); using std::exit;' \
4690 'extern "C" void std::exit (int); using std::exit;' \
4691 'extern "C" void exit (int) throw ();' \
4692 'extern "C" void exit (int);' \
4695 cat >conftest.$ac_ext <<_ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4711 rm -f conftest.$ac_objext
4712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4713 (eval $ac_compile) 2>conftest.er1
4715 grep -v '^ *+' conftest.er1 >conftest.err
4717 cat conftest.err >&5
4718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4719 (exit $ac_status); } &&
4720 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4725 (exit $ac_status); }; } &&
4726 { ac_try='test -s conftest.$ac_objext'
4727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); }; }; then
4734 echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4739 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4740 cat >conftest.$ac_ext <<_ACEOF
4743 cat confdefs.h >>conftest.$ac_ext
4744 cat >>conftest.$ac_ext <<_ACEOF
4745 /* end confdefs.h. */
4755 rm -f conftest.$ac_objext
4756 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4757 (eval $ac_compile) 2>conftest.er1
4759 grep -v '^ *+' conftest.er1 >conftest.err
4761 cat conftest.err >&5
4762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4763 (exit $ac_status); } &&
4764 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4769 (exit $ac_status); }; } &&
4770 { ac_try='test -s conftest.$ac_objext'
4771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); }; }; then
4778 echo "$as_me: failed program was:" >&5
4779 sed 's/^/| /' conftest.$ac_ext >&5
4782 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4785 if test -n "$ac_declaration"; then
4786 echo '#ifdef __cplusplus' >>confdefs.h
4787 echo $ac_declaration >>confdefs.h
4788 echo '#endif' >>confdefs.h
4792 ac_cpp='$CXXCPP $CPPFLAGS'
4793 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4794 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4795 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4797 depcc="$CXX" am_compiler_list=
4799 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4800 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4801 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4802 echo $ECHO_N "(cached) $ECHO_C" >&6
4804 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4805 # We make a subdir and do the tests there. Otherwise we can end up
4806 # making bogus files that we don't know about and never remove. For
4807 # instance it was reported that on HP-UX the gcc test will end up
4808 # making a dummy file named `D' -- because `-MD' means `put the output
4811 # Copy depcomp to subdir because otherwise we won't find it if we're
4812 # using a relative directory.
4813 cp "$am_depcomp" conftest.dir
4815 # We will build objects and dependencies in a subdirectory because
4816 # it helps to detect inapplicable dependency modes. For instance
4817 # both Tru64's cc and ICC support -MD to output dependencies as a
4818 # side effect of compilation, but ICC will put the dependencies in
4819 # the current directory while Tru64 will put them in the object
4823 am_cv_CXX_dependencies_compiler_type=none
4824 if test "$am_compiler_list" = ""; then
4825 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4827 for depmode in $am_compiler_list; do
4828 # Setup a source with many dependencies, because some compilers
4829 # like to wrap large dependency lists on column 80 (with \), and
4830 # we should not choose a depcomp mode which is confused by this.
4832 # We need to recreate these files for each test, as the compiler may
4833 # overwrite some of them when testing with obscure command lines.
4834 # This happens at least with the AIX C compiler.
4836 for i in 1 2 3 4 5 6; do
4837 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4840 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4844 # after this tag, mechanisms are not by side-effect, so they'll
4845 # only be used when explicitly requested
4846 if test "x$enable_dependency_tracking" = xyes; then
4854 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4855 # mode. It turns out that the SunPro C++ compiler does not properly
4856 # handle `-M -o', and we need to detect this.
4857 if depmode=$depmode \
4858 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4859 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4860 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4861 >/dev/null 2>conftest.err &&
4862 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4863 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4864 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4865 # icc doesn't choke on unknown options, it will just issue warnings
4866 # (even with -Werror). So we grep stderr for any message
4867 # that says an option was ignored.
4868 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4869 am_cv_CXX_dependencies_compiler_type=$depmode
4878 am_cv_CXX_dependencies_compiler_type=none
4882 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4883 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4884 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4889 test "x$enable_dependency_tracking" != xno \
4890 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4891 am__fastdepCXX_TRUE=
4892 am__fastdepCXX_FALSE='#'
4894 am__fastdepCXX_TRUE='#'
4895 am__fastdepCXX_FALSE=
4900 ac_cpp='$CXXCPP $CPPFLAGS'
4901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4904 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4905 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4906 if test -z "$CXXCPP"; then
4907 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4908 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 # Double quotes because CXXCPP needs to be expanded
4911 for CXXCPP in "$CXX -E" "/lib/cpp"
4914 for ac_cxx_preproc_warn_flag in '' yes
4916 # Use a header file that comes with gcc, so configuring glibc
4917 # with a fresh cross-compiler works.
4918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4919 # <limits.h> exists even on freestanding compilers.
4920 # On the NeXT, cc -E runs the code through the compiler's parser,
4921 # not just through cpp. "Syntax error" is here to catch this case.
4922 cat >conftest.$ac_ext <<_ACEOF
4925 cat confdefs.h >>conftest.$ac_ext
4926 cat >>conftest.$ac_ext <<_ACEOF
4927 /* end confdefs.h. */
4929 # include <limits.h>
4931 # include <assert.h>
4935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4938 grep -v '^ *+' conftest.er1 >conftest.err
4940 cat conftest.err >&5
4941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942 (exit $ac_status); } >/dev/null; then
4943 if test -s conftest.err; then
4944 ac_cpp_err=$ac_cxx_preproc_warn_flag
4945 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4952 if test -z "$ac_cpp_err"; then
4955 echo "$as_me: failed program was:" >&5
4956 sed 's/^/| /' conftest.$ac_ext >&5
4958 # Broken: fails on valid input.
4961 rm -f conftest.err conftest.$ac_ext
4963 # OK, works on sane cases. Now check whether non-existent headers
4964 # can be detected and how.
4965 cat >conftest.$ac_ext <<_ACEOF
4968 cat confdefs.h >>conftest.$ac_ext
4969 cat >>conftest.$ac_ext <<_ACEOF
4970 /* end confdefs.h. */
4971 #include <ac_nonexistent.h>
4973 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4974 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4976 grep -v '^ *+' conftest.er1 >conftest.err
4978 cat conftest.err >&5
4979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4980 (exit $ac_status); } >/dev/null; then
4981 if test -s conftest.err; then
4982 ac_cpp_err=$ac_cxx_preproc_warn_flag
4983 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4990 if test -z "$ac_cpp_err"; then
4991 # Broken: success on invalid input.
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4997 # Passes both tests.
5001 rm -f conftest.err conftest.$ac_ext
5004 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5005 rm -f conftest.err conftest.$ac_ext
5006 if $ac_preproc_ok; then
5011 ac_cv_prog_CXXCPP=$CXXCPP
5014 CXXCPP=$ac_cv_prog_CXXCPP
5016 ac_cv_prog_CXXCPP=$CXXCPP
5018 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5019 echo "${ECHO_T}$CXXCPP" >&6
5021 for ac_cxx_preproc_warn_flag in '' yes
5023 # Use a header file that comes with gcc, so configuring glibc
5024 # with a fresh cross-compiler works.
5025 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5026 # <limits.h> exists even on freestanding compilers.
5027 # On the NeXT, cc -E runs the code through the compiler's parser,
5028 # not just through cpp. "Syntax error" is here to catch this case.
5029 cat >conftest.$ac_ext <<_ACEOF
5032 cat confdefs.h >>conftest.$ac_ext
5033 cat >>conftest.$ac_ext <<_ACEOF
5034 /* end confdefs.h. */
5036 # include <limits.h>
5038 # include <assert.h>
5042 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5043 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045 grep -v '^ *+' conftest.er1 >conftest.err
5047 cat conftest.err >&5
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } >/dev/null; then
5050 if test -s conftest.err; then
5051 ac_cpp_err=$ac_cxx_preproc_warn_flag
5052 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5059 if test -z "$ac_cpp_err"; then
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 # Broken: fails on valid input.
5068 rm -f conftest.err conftest.$ac_ext
5070 # OK, works on sane cases. Now check whether non-existent headers
5071 # can be detected and how.
5072 cat >conftest.$ac_ext <<_ACEOF
5075 cat confdefs.h >>conftest.$ac_ext
5076 cat >>conftest.$ac_ext <<_ACEOF
5077 /* end confdefs.h. */
5078 #include <ac_nonexistent.h>
5080 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5081 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083 grep -v '^ *+' conftest.er1 >conftest.err
5085 cat conftest.err >&5
5086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5087 (exit $ac_status); } >/dev/null; then
5088 if test -s conftest.err; then
5089 ac_cpp_err=$ac_cxx_preproc_warn_flag
5090 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5097 if test -z "$ac_cpp_err"; then
5098 # Broken: success on invalid input.
5101 echo "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 # Passes both tests.
5108 rm -f conftest.err conftest.$ac_ext
5111 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5112 rm -f conftest.err conftest.$ac_ext
5113 if $ac_preproc_ok; then
5116 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5117 See \`config.log' for more details." >&5
5118 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5119 See \`config.log' for more details." >&2;}
5120 { (exit 1); exit 1; }; }
5124 ac_cpp='$CXXCPP $CPPFLAGS'
5125 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5126 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5127 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5131 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5132 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5133 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5134 if test -n "$ac_tool_prefix"; then
5135 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5137 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5138 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5139 echo "$as_me:$LINENO: checking for $ac_word" >&5
5140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5141 if test "${ac_cv_prog_F77+set}" = set; then
5142 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 if test -n "$F77"; then
5145 ac_cv_prog_F77="$F77" # Let the user override the test.
5147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5154 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5155 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 if test -n "$F77"; then
5165 echo "$as_me:$LINENO: result: $F77" >&5
5166 echo "${ECHO_T}$F77" >&6
5168 echo "$as_me:$LINENO: result: no" >&5
5169 echo "${ECHO_T}no" >&6
5172 test -n "$F77" && break
5175 if test -z "$F77"; then
5177 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5179 # Extract the first word of "$ac_prog", so it can be a program name with args.
5180 set dummy $ac_prog; ac_word=$2
5181 echo "$as_me:$LINENO: checking for $ac_word" >&5
5182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5183 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5184 echo $ECHO_N "(cached) $ECHO_C" >&6
5186 if test -n "$ac_ct_F77"; then
5187 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5196 ac_cv_prog_ac_ct_F77="$ac_prog"
5197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5206 if test -n "$ac_ct_F77"; then
5207 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5208 echo "${ECHO_T}$ac_ct_F77" >&6
5210 echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6
5214 test -n "$ac_ct_F77" && break
5221 # Provide some information about the compiler.
5222 echo "$as_me:5222:" \
5223 "checking for Fortran 77 compiler version" >&5
5224 ac_compiler=`set X $ac_compile; echo $2`
5225 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5226 (eval $ac_compiler --version </dev/null >&5) 2>&5
5228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5229 (exit $ac_status); }
5230 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5231 (eval $ac_compiler -v </dev/null >&5) 2>&5
5233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234 (exit $ac_status); }
5235 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5236 (eval $ac_compiler -V </dev/null >&5) 2>&5
5238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5239 (exit $ac_status); }
5242 # If we don't use `.F' as extension, the preprocessor is not run on the
5243 # input file. (Note that this only needs to work for GNU compilers.)
5246 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5247 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5248 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5251 cat >conftest.$ac_ext <<_ACEOF
5259 rm -f conftest.$ac_objext
5260 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5261 (eval $ac_compile) 2>conftest.er1
5263 grep -v '^ *+' conftest.er1 >conftest.err
5265 cat conftest.err >&5
5266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5267 (exit $ac_status); } &&
5268 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); }; } &&
5274 { ac_try='test -s conftest.$ac_objext'
5275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5279 (exit $ac_status); }; }; then
5282 echo "$as_me: failed program was:" >&5
5283 sed 's/^/| /' conftest.$ac_ext >&5
5287 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5288 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5291 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5292 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5294 ac_test_FFLAGS=${FFLAGS+set}
5295 ac_save_FFLAGS=$FFLAGS
5297 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5298 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5299 if test "${ac_cv_prog_f77_g+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5303 cat >conftest.$ac_ext <<_ACEOF
5308 rm -f conftest.$ac_objext
5309 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5310 (eval $ac_compile) 2>conftest.er1
5312 grep -v '^ *+' conftest.er1 >conftest.err
5314 cat conftest.err >&5
5315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5316 (exit $ac_status); } &&
5317 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); }; } &&
5323 { ac_try='test -s conftest.$ac_objext'
5324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328 (exit $ac_status); }; }; then
5329 ac_cv_prog_f77_g=yes
5331 echo "$as_me: failed program was:" >&5
5332 sed 's/^/| /' conftest.$ac_ext >&5
5336 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5339 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5340 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5341 if test "$ac_test_FFLAGS" = set; then
5342 FFLAGS=$ac_save_FFLAGS
5343 elif test $ac_cv_prog_f77_g = yes; then
5344 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5350 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5357 G77=`test $ac_compiler_gnu = yes && echo yes`
5359 ac_cpp='$CPP $CPPFLAGS'
5360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5366 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5368 # find the maximum length of command line arguments
5369 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5370 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5371 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5372 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 # On DJGPP, this test can blow up pretty badly due to problems in libc
5380 # (any single argument exceeding 2000 bytes causes a buffer overrun
5381 # during glob expansion). Even if it were fixed, the result of this
5382 # check would be larger than it should be.
5383 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5387 # Under GNU Hurd, this test is not required because there is
5388 # no limit to the length of command line arguments.
5389 # Libtool will interpret -1 as no limit whatsoever
5390 lt_cv_sys_max_cmd_len=-1;
5394 # On Win9x/ME, this test blows up -- it succeeds, but takes
5395 # about 5 minutes as the teststring grows exponentially.
5396 # Worse, since 9x/ME are not pre-emptively multitasking,
5397 # you end up with a "frozen" computer, even though with patience
5398 # the test eventually succeeds (with a max line length of 256k).
5399 # Instead, let's just punt: use the minimum linelength reported by
5400 # all of the supported platforms: 8192 (on NT/2K/XP).
5401 lt_cv_sys_max_cmd_len=8192;
5405 # On AmigaOS with pdksh, this test takes hours, literally.
5406 # So we just punt and use a minimum line length of 8192.
5407 lt_cv_sys_max_cmd_len=8192;
5411 # If test is not a shell built-in, we'll probably end up computing a
5412 # maximum length that is only half of the actual maximum length, but
5414 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5415 = "XX$testring") >/dev/null 2>&1 &&
5416 new_result=`expr "X$testring" : ".*" 2>&1` &&
5417 lt_cv_sys_max_cmd_len=$new_result &&
5418 test $i != 17 # 1/2 MB should be enough
5421 testring=$testring$testring
5424 # Add a significant safety factor because C++ compilers can tack on massive
5425 # amounts of additional arguments before passing them to the linker.
5426 # It appears as though 1/2 is a usable value.
5427 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5433 if test -n $lt_cv_sys_max_cmd_len ; then
5434 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5435 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5437 echo "$as_me:$LINENO: result: none" >&5
5438 echo "${ECHO_T}none" >&6
5444 # Check for command to grab the raw symbol name followed by C symbol from nm.
5445 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5446 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5447 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5451 # These are sane defaults that work on at least a few old systems.
5452 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5454 # Character class describing NM global symbol codes.
5455 symcode='[BCDEGRST]'
5457 # Regexp to match symbols that can be accessed directly from C.
5458 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5460 # Transform the above into a raw symbol and a C symbol.
5461 symxfrm='\1 \2\3 \3'
5463 # Transform an extracted symbol line into a proper C declaration
5464 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5466 # Transform an extracted symbol line into symbol name and symbol address
5467 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'"
5469 # Define system-specific variables.
5474 cygwin* | mingw* | pw32*)
5475 symcode='[ABCDGISTW]'
5477 hpux*) # Its linker distinguishes data from code symbols
5478 if test "$host_cpu" = ia64; then
5479 symcode='[ABCDEGRST]'
5481 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5482 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'"
5485 symcode='[BCDEGRST]'
5488 symcode='[BCDEGQRST]'
5498 # Handle CRLF in mingw tool chain
5502 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5506 # If we're using GNU nm, then use its standard symbol codes.
5507 case `$NM -V 2>&1` in
5508 *GNU* | *'with BFD'*)
5509 symcode='[ABCDGIRSTW]' ;;
5512 # Try without a prefix undercore, then with it.
5513 for ac_symprfx in "" "_"; do
5515 # Write the raw and C identifiers.
5516 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5518 # Check to see that the pipe works correctly.
5522 cat > conftest.$ac_ext <<EOF
5527 void nm_test_func(){}
5531 int main(){nm_test_var='a';nm_test_func();return(0);}
5534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5535 (eval $ac_compile) 2>&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); }; then
5539 # Now try to grab the symbols.
5541 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5542 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5545 (exit $ac_status); } && test -s "$nlist"; then
5546 # Try sorting and uniquifying the output.
5547 if sort "$nlist" | uniq > "$nlist"T; then
5548 mv -f "$nlist"T "$nlist"
5553 # Make sure that we snagged all the symbols we need.
5554 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5555 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5556 cat <<EOF > conftest.$ac_ext
5562 # Now generate the symbol file.
5563 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5565 cat <<EOF >> conftest.$ac_ext
5566 #if defined (__STDC__) && __STDC__
5567 # define lt_ptr_t void *
5569 # define lt_ptr_t char *
5573 /* The mapping between symbol names and symbols. */
5578 lt_preloaded_symbols[] =
5581 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5582 cat <<\EOF >> conftest.$ac_ext
5590 # Now try linking the two files.
5591 mv conftest.$ac_objext conftstm.$ac_objext
5592 lt_save_LIBS="$LIBS"
5593 lt_save_CFLAGS="$CFLAGS"
5594 LIBS="conftstm.$ac_objext"
5595 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5597 (eval $ac_link) 2>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5603 LIBS="$lt_save_LIBS"
5604 CFLAGS="$lt_save_CFLAGS"
5606 echo "cannot find nm_test_func in $nlist" >&5
5609 echo "cannot find nm_test_var in $nlist" >&5
5612 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5615 echo "$progname: failed program was:" >&5
5616 cat conftest.$ac_ext >&5
5618 rm -f conftest* conftst*
5620 # Do not use the global_symbol_pipe unless it works.
5621 if test "$pipe_works" = yes; then
5624 lt_cv_sys_global_symbol_pipe=
5630 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5631 lt_cv_sys_global_symbol_to_cdecl=
5633 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5634 echo "$as_me:$LINENO: result: failed" >&5
5635 echo "${ECHO_T}failed" >&6
5637 echo "$as_me:$LINENO: result: ok" >&5
5638 echo "${ECHO_T}ok" >&6
5641 echo "$as_me:$LINENO: checking for objdir" >&5
5642 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5643 if test "${lt_cv_objdir+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 rm -f .libs 2>/dev/null
5647 mkdir .libs 2>/dev/null
5648 if test -d .libs; then
5651 # MS-DOS does not allow filenames that begin with a dot.
5654 rmdir .libs 2>/dev/null
5656 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5657 echo "${ECHO_T}$lt_cv_objdir" >&6
5658 objdir=$lt_cv_objdir
5666 # AIX sometimes has problems with the GCC collect2 program. For some
5667 # reason, if we set the COLLECT_NAMES environment variable, the problems
5668 # vanish in a puff of smoke.
5669 if test "X${COLLECT_NAMES+set}" != Xset; then
5671 export COLLECT_NAMES
5676 # Sed substitution that helps us do robust quoting. It backslashifies
5677 # metacharacters that are still active within double-quoted strings.
5678 Xsed='sed -e s/^X//'
5679 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5681 # Same as above, but do not quote variable references.
5682 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5684 # Sed substitution to delay expansion of an escaped shell variable in a
5685 # double_quote_subst'ed string.
5686 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5688 # Sed substitution to avoid accidental globbing in evaled expressions
5689 no_glob_subst='s/\*/\\\*/g'
5695 default_ofile=libtool
5696 can_build_shared=yes
5698 # All known linkers require a `.a' archive for static linking (except M$VC,
5699 # which needs '.lib').
5701 ltmain="$ac_aux_dir/ltmain.sh"
5702 ofile="$default_ofile"
5703 with_gnu_ld="$lt_cv_prog_gnu_ld"
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5707 set dummy ${ac_tool_prefix}ar; ac_word=$2
5708 echo "$as_me:$LINENO: checking for $ac_word" >&5
5709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5710 if test "${ac_cv_prog_AR+set}" = set; then
5711 echo $ECHO_N "(cached) $ECHO_C" >&6
5713 if test -n "$AR"; then
5714 ac_cv_prog_AR="$AR" # Let the user override the test.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_AR="${ac_tool_prefix}ar"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5733 if test -n "$AR"; then
5734 echo "$as_me:$LINENO: result: $AR" >&5
5735 echo "${ECHO_T}$AR" >&6
5737 echo "$as_me:$LINENO: result: no" >&5
5738 echo "${ECHO_T}no" >&6
5742 if test -z "$ac_cv_prog_AR"; then
5744 # Extract the first word of "ar", so it can be a program name with args.
5745 set dummy ar; ac_word=$2
5746 echo "$as_me:$LINENO: checking for $ac_word" >&5
5747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5748 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5749 echo $ECHO_N "(cached) $ECHO_C" >&6
5751 if test -n "$ac_ct_AR"; then
5752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 test -z "$as_dir" && as_dir=.
5759 for ac_exec_ext in '' $ac_executable_extensions; do
5760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5761 ac_cv_prog_ac_ct_AR="ar"
5762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5768 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5772 if test -n "$ac_ct_AR"; then
5773 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5774 echo "${ECHO_T}$ac_ct_AR" >&6
5776 echo "$as_me:$LINENO: result: no" >&5
5777 echo "${ECHO_T}no" >&6
5785 if test -n "$ac_tool_prefix"; then
5786 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5787 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5788 echo "$as_me:$LINENO: checking for $ac_word" >&5
5789 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5790 if test "${ac_cv_prog_RANLIB+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 if test -n "$RANLIB"; then
5794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5800 test -z "$as_dir" && as_dir=.
5801 for ac_exec_ext in '' $ac_executable_extensions; do
5802 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5803 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5804 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5812 RANLIB=$ac_cv_prog_RANLIB
5813 if test -n "$RANLIB"; then
5814 echo "$as_me:$LINENO: result: $RANLIB" >&5
5815 echo "${ECHO_T}$RANLIB" >&6
5817 echo "$as_me:$LINENO: result: no" >&5
5818 echo "${ECHO_T}no" >&6
5822 if test -z "$ac_cv_prog_RANLIB"; then
5823 ac_ct_RANLIB=$RANLIB
5824 # Extract the first word of "ranlib", so it can be a program name with args.
5825 set dummy ranlib; ac_word=$2
5826 echo "$as_me:$LINENO: checking for $ac_word" >&5
5827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5828 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5829 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 if test -n "$ac_ct_RANLIB"; then
5832 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5841 ac_cv_prog_ac_ct_RANLIB="ranlib"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5848 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5851 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5852 if test -n "$ac_ct_RANLIB"; then
5853 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5854 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5856 echo "$as_me:$LINENO: result: no" >&5
5857 echo "${ECHO_T}no" >&6
5860 RANLIB=$ac_ct_RANLIB
5862 RANLIB="$ac_cv_prog_RANLIB"
5865 if test -n "$ac_tool_prefix"; then
5866 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5867 set dummy ${ac_tool_prefix}strip; ac_word=$2
5868 echo "$as_me:$LINENO: checking for $ac_word" >&5
5869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5870 if test "${ac_cv_prog_STRIP+set}" = set; then
5871 echo $ECHO_N "(cached) $ECHO_C" >&6
5873 if test -n "$STRIP"; then
5874 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5880 test -z "$as_dir" && as_dir=.
5881 for ac_exec_ext in '' $ac_executable_extensions; do
5882 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5883 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5892 STRIP=$ac_cv_prog_STRIP
5893 if test -n "$STRIP"; then
5894 echo "$as_me:$LINENO: result: $STRIP" >&5
5895 echo "${ECHO_T}$STRIP" >&6
5897 echo "$as_me:$LINENO: result: no" >&5
5898 echo "${ECHO_T}no" >&6
5902 if test -z "$ac_cv_prog_STRIP"; then
5904 # Extract the first word of "strip", so it can be a program name with args.
5905 set dummy strip; ac_word=$2
5906 echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5908 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5911 if test -n "$ac_ct_STRIP"; then
5912 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 test -z "$as_dir" && as_dir=.
5919 for ac_exec_ext in '' $ac_executable_extensions; do
5920 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5921 ac_cv_prog_ac_ct_STRIP="strip"
5922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5928 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5931 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5932 if test -n "$ac_ct_STRIP"; then
5933 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5934 echo "${ECHO_T}$ac_ct_STRIP" >&6
5936 echo "$as_me:$LINENO: result: no" >&5
5937 echo "${ECHO_T}no" >&6
5942 STRIP="$ac_cv_prog_STRIP"
5947 old_CFLAGS="$CFLAGS"
5949 # Set sane defaults for various variables
5950 test -z "$AR" && AR=ar
5951 test -z "$AR_FLAGS" && AR_FLAGS=cru
5952 test -z "$AS" && AS=as
5953 test -z "$CC" && CC=cc
5954 test -z "$LTCC" && LTCC=$CC
5955 test -z "$DLLTOOL" && DLLTOOL=dlltool
5956 test -z "$LD" && LD=ld
5957 test -z "$LN_S" && LN_S="ln -s"
5958 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5959 test -z "$NM" && NM=nm
5960 test -z "$SED" && SED=sed
5961 test -z "$OBJDUMP" && OBJDUMP=objdump
5962 test -z "$RANLIB" && RANLIB=:
5963 test -z "$STRIP" && STRIP=:
5964 test -z "$ac_objext" && ac_objext=o
5966 # Determine commands to create old-style static archives.
5967 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5968 old_postinstall_cmds='chmod 644 $oldlib'
5969 old_postuninstall_cmds=
5971 if test -n "$RANLIB"; then
5974 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
5977 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
5980 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5983 # Only perform the check for file, if the check method requires it
5984 case $deplibs_check_method in
5986 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
5987 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
5988 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
5989 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
5990 echo $ECHO_N "(cached) $ECHO_C" >&6
5994 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
5997 lt_save_MAGIC_CMD="$MAGIC_CMD"
5998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5999 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6000 for ac_dir in $ac_dummy; do
6002 test -z "$ac_dir" && ac_dir=.
6003 if test -f $ac_dir/${ac_tool_prefix}file; then
6004 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6005 if test -n "$file_magic_test_file"; then
6006 case $deplibs_check_method in
6008 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6009 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6010 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6011 $EGREP "$file_magic_regex" > /dev/null; then
6016 *** Warning: the command libtool uses to detect shared libraries,
6017 *** $file_magic_cmd, produces output that libtool cannot recognize.
6018 *** The result is that libtool may fail to recognize shared libraries
6019 *** as such. This will affect the creation of libtool libraries that
6020 *** depend on shared libraries, but programs linked with such libtool
6021 *** libraries will work regardless of this problem. Nevertheless, you
6022 *** may want to report the problem to your system manager and/or to
6023 *** bug-libtool@gnu.org
6033 MAGIC_CMD="$lt_save_MAGIC_CMD"
6038 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6039 if test -n "$MAGIC_CMD"; then
6040 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6041 echo "${ECHO_T}$MAGIC_CMD" >&6
6043 echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6
6047 if test -z "$lt_cv_path_MAGIC_CMD"; then
6048 if test -n "$ac_tool_prefix"; then
6049 echo "$as_me:$LINENO: checking for file" >&5
6050 echo $ECHO_N "checking for file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6059 lt_save_MAGIC_CMD="$MAGIC_CMD"
6060 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062 for ac_dir in $ac_dummy; do
6064 test -z "$ac_dir" && ac_dir=.
6065 if test -f $ac_dir/file; then
6066 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6067 if test -n "$file_magic_test_file"; then
6068 case $deplibs_check_method in
6070 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073 $EGREP "$file_magic_regex" > /dev/null; then
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such. This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem. Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6095 MAGIC_CMD="$lt_save_MAGIC_CMD"
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6105 echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6121 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6122 if test "${enable_libtool_lock+set}" = set; then
6123 enableval="$enable_libtool_lock"
6126 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6129 # Check whether --with-pic or --without-pic was given.
6130 if test "${with_pic+set}" = set; then
6136 test -z "$pic_mode" && pic_mode=default
6138 # Use C for the default configuration in the libtool script
6142 ac_cpp='$CPP $CPPFLAGS'
6143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6148 # Source file extension for C test sources.
6151 # Object file extension for compiled C test sources.
6155 # Code to be used in simple compile tests
6156 lt_simple_compile_test_code="int some_variable = 0;\n"
6158 # Code to be used in simple link tests
6159 lt_simple_link_test_code='int main(){return(0);}\n'
6162 # If no C compiler was specified, use CC.
6165 # Allow CC to be a program name with arguments.
6170 # Check for any special shared library compilation flags.
6173 if test "$GCC" = no; then
6176 lt_prog_cc_shlib='-belf'
6180 if test -n "$lt_prog_cc_shlib"; then
6181 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6182 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6183 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6185 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6186 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6187 lt_cv_prog_cc_can_build_shared=no
6193 # Check to make sure the static flag actually works.
6195 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6196 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6197 if test "${lt_prog_compiler_static_works+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6200 lt_prog_compiler_static_works=no
6201 save_LDFLAGS="$LDFLAGS"
6202 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6203 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6204 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6205 # The compiler can only warn and ignore the option if not recognized
6206 # So say no if there are warnings
6207 if test -s conftest.err; then
6208 # Append any errors to the config.log.
6209 cat conftest.err 1>&5
6211 lt_prog_compiler_static_works=yes
6215 LDFLAGS="$save_LDFLAGS"
6218 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6219 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6221 if test x"$lt_prog_compiler_static_works" = xyes; then
6224 lt_prog_compiler_static=
6230 lt_prog_compiler_no_builtin_flag=
6232 if test "$GCC" = yes; then
6233 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6236 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6237 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6238 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6239 echo $ECHO_N "(cached) $ECHO_C" >&6
6241 lt_cv_prog_compiler_rtti_exceptions=no
6242 ac_outfile=conftest.$ac_objext
6243 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6244 lt_compiler_flag="-fno-rtti -fno-exceptions"
6245 # Insert the option either (1) after the last *FLAGS variable, or
6246 # (2) before a word containing "conftest.", or (3) at the end.
6247 # Note that $ac_compile itself does not contain backslashes and begins
6248 # with a dollar sign (not a hyphen), so the echo should work correctly.
6249 # The option is referenced via a variable to avoid confusing sed.
6250 lt_compile=`echo "$ac_compile" | $SED \
6251 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6252 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6253 -e 's:$: $lt_compiler_flag:'`
6254 (eval echo "\"\$as_me:6254: $lt_compile\"" >&5)
6255 (eval "$lt_compile" 2>conftest.err)
6257 cat conftest.err >&5
6258 echo "$as_me:6258: \$? = $ac_status" >&5
6259 if (exit $ac_status) && test -s "$ac_outfile"; then
6260 # The compiler can only warn and ignore the option if not recognized
6261 # So say no if there are warnings
6262 if test ! -s conftest.err; then
6263 lt_cv_prog_compiler_rtti_exceptions=yes
6269 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6270 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6272 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6273 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6280 lt_prog_compiler_wl=
6281 lt_prog_compiler_pic=
6282 lt_prog_compiler_static=
6284 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6285 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6287 if test "$GCC" = yes; then
6288 lt_prog_compiler_wl='-Wl,'
6289 lt_prog_compiler_static='-static'
6293 # All AIX code is PIC.
6294 if test "$host_cpu" = ia64; then
6295 # AIX 5 now supports IA64 processor
6296 lt_prog_compiler_static='-Bstatic'
6301 # FIXME: we need at least 68020 code to build shared libraries, but
6302 # adding the `-m68020' flag to GCC prevents building anything better,
6304 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6307 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6308 # PIC is the default for these OSes.
6311 mingw* | pw32* | os2*)
6312 # This hack is so that the source file can tell whether it is being
6313 # built for inclusion in a dll (and should export symbols for example).
6314 lt_prog_compiler_pic='-DDLL_EXPORT'
6317 darwin* | rhapsody*)
6318 # PIC is the default on this platform
6319 # Common symbols not allowed in MH_DYLIB files
6320 lt_prog_compiler_pic='-fno-common'
6324 # Just because we use GCC doesn't mean we suddenly get shared libraries
6325 # on systems that don't support them.
6326 lt_prog_compiler_can_build_shared=no
6331 if test -d /usr/nec; then
6332 lt_prog_compiler_pic=-Kconform_pic
6337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6344 lt_prog_compiler_pic='-fPIC'
6350 lt_prog_compiler_pic='-fPIC'
6354 # PORTME Check for flag to pass linker flags through the system compiler.
6357 lt_prog_compiler_wl='-Wl,'
6358 if test "$host_cpu" = ia64; then
6359 # AIX 5 now supports IA64 processor
6360 lt_prog_compiler_static='-Bstatic'
6362 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6366 mingw* | pw32* | os2*)
6367 # This hack is so that the source file can tell whether it is being
6368 # built for inclusion in a dll (and should export symbols for example).
6369 lt_prog_compiler_pic='-DDLL_EXPORT'
6372 hpux9* | hpux10* | hpux11*)
6373 lt_prog_compiler_wl='-Wl,'
6374 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6381 lt_prog_compiler_pic='+Z'
6384 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6385 lt_prog_compiler_static='${wl}-a ${wl}archive'
6388 irix5* | irix6* | nonstopux*)
6389 lt_prog_compiler_wl='-Wl,'
6390 # PIC (with -KPIC) is the default.
6391 lt_prog_compiler_static='-non_shared'
6395 lt_prog_compiler_pic='-KPIC'
6396 lt_prog_compiler_static='-Bstatic'
6402 lt_prog_compiler_wl='-Wl,'
6403 lt_prog_compiler_pic='-KPIC'
6404 lt_prog_compiler_static='-static'
6407 lt_prog_compiler_wl='-Wl,'
6408 # All Alpha code is PIC.
6409 lt_prog_compiler_static='-non_shared'
6414 osf3* | osf4* | osf5*)
6415 lt_prog_compiler_wl='-Wl,'
6416 # All OSF/1 code is PIC.
6417 lt_prog_compiler_static='-non_shared'
6421 lt_prog_compiler_pic='-Kpic'
6422 lt_prog_compiler_static='-dn'
6426 lt_prog_compiler_wl='-Wl,'
6427 lt_prog_compiler_pic='-KPIC'
6428 lt_prog_compiler_static='-Bstatic'
6432 lt_prog_compiler_wl='-Qoption ld '
6433 lt_prog_compiler_pic='-PIC'
6434 lt_prog_compiler_static='-Bstatic'
6437 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6438 lt_prog_compiler_wl='-Wl,'
6439 lt_prog_compiler_pic='-KPIC'
6440 lt_prog_compiler_static='-Bstatic'
6444 if test -d /usr/nec ;then
6445 lt_prog_compiler_pic='-Kconform_pic'
6446 lt_prog_compiler_static='-Bstatic'
6451 lt_prog_compiler_pic='-pic'
6452 lt_prog_compiler_static='-Bstatic'
6456 lt_prog_compiler_can_build_shared=no
6461 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6462 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6465 # Check to make sure the PIC flag actually works.
6467 if test -n "$lt_prog_compiler_pic"; then
6469 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6470 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6471 if test "${lt_prog_compiler_pic_works+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6474 lt_prog_compiler_pic_works=no
6475 ac_outfile=conftest.$ac_objext
6476 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6477 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6478 # Insert the option either (1) after the last *FLAGS variable, or
6479 # (2) before a word containing "conftest.", or (3) at the end.
6480 # Note that $ac_compile itself does not contain backslashes and begins
6481 # with a dollar sign (not a hyphen), so the echo should work correctly.
6482 # The option is referenced via a variable to avoid confusing sed.
6483 lt_compile=`echo "$ac_compile" | $SED \
6484 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6485 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6486 -e 's:$: $lt_compiler_flag:'`
6487 (eval echo "\"\$as_me:6487: $lt_compile\"" >&5)
6488 (eval "$lt_compile" 2>conftest.err)
6490 cat conftest.err >&5
6491 echo "$as_me:6491: \$? = $ac_status" >&5
6492 if (exit $ac_status) && test -s "$ac_outfile"; then
6493 # The compiler can only warn and ignore the option if not recognized
6494 # So say no if there are warnings
6495 if test ! -s conftest.err; then
6496 lt_prog_compiler_pic_works=yes
6502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6503 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6505 if test x"$lt_prog_compiler_pic_works" = xyes; then
6506 case $lt_prog_compiler_pic in
6508 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6511 lt_prog_compiler_pic=
6512 lt_prog_compiler_can_build_shared=no
6517 # For platforms which do not support PIC, -DPIC is meaningless:
6519 lt_prog_compiler_pic=
6522 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6526 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6527 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6528 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6529 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 lt_cv_prog_compiler_c_o=no
6532 $rm -r conftest 2>/dev/null
6536 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6538 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6539 # that will create temporary files in the current directory regardless of
6540 # the output directory. Thus, making CWD read-only will cause this test
6541 # to fail, enabling locking or at least warning the user not to do parallel
6545 lt_compiler_flag="-o out/conftest2.$ac_objext"
6546 # Insert the option either (1) after the last *FLAGS variable, or
6547 # (2) before a word containing "conftest.", or (3) at the end.
6548 # Note that $ac_compile itself does not contain backslashes and begins
6549 # with a dollar sign (not a hyphen), so the echo should work correctly.
6550 lt_compile=`echo "$ac_compile" | $SED \
6551 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6552 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6553 -e 's:$: $lt_compiler_flag:'`
6554 (eval echo "\"\$as_me:6554: $lt_compile\"" >&5)
6555 (eval "$lt_compile" 2>out/conftest.err)
6557 cat out/conftest.err >&5
6558 echo "$as_me:6558: \$? = $ac_status" >&5
6559 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6561 # The compiler can only warn and ignore the option if not recognized
6562 # So say no if there are warnings
6563 if test ! -s out/conftest.err; then
6564 lt_cv_prog_compiler_c_o=yes
6569 # SGI C++ compiler will create directory out/ii_files/ for
6570 # template instantiation
6571 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6572 $rm out/* && rmdir out
6578 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6579 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6582 hard_links="nottested"
6583 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6584 # do not overwrite the value of need_locks provided by the user
6585 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6586 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6589 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6591 ln conftest.a conftest.b 2>&5 || hard_links=no
6592 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6593 echo "$as_me:$LINENO: result: $hard_links" >&5
6594 echo "${ECHO_T}$hard_links" >&6
6595 if test "$hard_links" = no; then
6596 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6597 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6604 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6605 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6608 allow_undefined_flag=
6609 enable_shared_with_static_runtimes=no
6611 archive_expsym_cmds=
6612 old_archive_From_new_cmds=
6613 old_archive_from_expsyms_cmds=
6614 export_dynamic_flag_spec=
6615 whole_archive_flag_spec=
6616 thread_safe_flag_spec=
6617 hardcode_libdir_flag_spec=
6618 hardcode_libdir_flag_spec_ld=
6619 hardcode_libdir_separator=
6622 hardcode_shlibpath_var=unsupported
6623 link_all_deplibs=unknown
6624 hardcode_automatic=no
6627 always_export_symbols=no
6628 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6629 # include_expsyms should be a list of space-separated symbols to be *always*
6630 # included in the symbol list
6632 # exclude_expsyms can be an extended regexp of symbols to exclude
6633 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6634 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6635 # as well as any symbol that contains `d'.
6636 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6637 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6638 # platforms (ab)use it in PIC code, but their linkers get confused if
6639 # the symbol is explicitly referenced. Since portable code cannot
6640 # rely on this symbol name, it's probably fine to never include it in
6641 # preloaded symbol tables.
6642 extract_expsyms_cmds=
6645 cygwin* | mingw* | pw32*)
6646 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6647 # When not using gcc, we currently assume that we are using
6648 # Microsoft Visual C++.
6649 if test "$GCC" != yes; then
6659 if test "$with_gnu_ld" = yes; then
6660 # If archive_cmds runs LD, not CC, wlarc should be empty
6663 # See if GNU ld supports shared libraries.
6665 aix3* | aix4* | aix5*)
6666 # On AIX/PPC, the GNU linker is very broken
6667 if test "$host_cpu" != ia64; then
6671 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6672 *** to be unable to reliably create shared libraries on AIX.
6673 *** Therefore, libtool is disabling shared libraries support. If you
6674 *** really care for shared libraries, you may want to modify your PATH
6675 *** so that a non-GNU linker is found, and then restart.
6682 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)'
6683 hardcode_libdir_flag_spec='-L$libdir'
6684 hardcode_minus_L=yes
6686 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6687 # that the semantics of dynamic libraries on AmigaOS, at least up
6688 # to version 4, is to share data among multiple programs linked
6689 # with the same dynamic library. Since this doesn't match the
6690 # behavior of shared libraries on other platforms, we can't use
6696 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6697 allow_undefined_flag=unsupported
6698 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6699 # support --undefined. This deserves some investigation. FIXME
6700 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6706 cygwin* | mingw* | pw32*)
6707 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6708 # as there is no search path for DLLs.
6709 hardcode_libdir_flag_spec='-L$libdir'
6710 allow_undefined_flag=unsupported
6711 always_export_symbols=no
6712 enable_shared_with_static_runtimes=yes
6713 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6715 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6717 # If the export-symbols file already is a .def file (1st line
6718 # is EXPORTS), use it as is; otherwise, prepend...
6719 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6720 cp $export_symbols $output_objdir/$soname.def;
6722 echo EXPORTS > $output_objdir/$soname.def;
6723 cat $export_symbols >> $output_objdir/$soname.def;
6725 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6732 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6733 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6736 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6737 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6742 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6746 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6747 *** create shared libraries on Solaris systems. Therefore, libtool
6748 *** is disabling shared libraries support. We urge you to upgrade GNU
6749 *** binutils to release 2.9.1 or newer. Another option is to modify
6750 *** your PATH or compiler configuration so that the native linker is
6751 *** used, and then restart.
6754 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6755 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6756 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6763 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6766 hardcode_shlibpath_var=no
6770 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6771 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6772 archive_cmds="$tmp_archive_cmds"
6773 supports_anon_versioning=no
6774 case `$LD -v 2>/dev/null` in
6775 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6776 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6777 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6778 *\ 2.11.*) ;; # other 2.11 versions
6779 *) supports_anon_versioning=yes ;;
6781 if test $supports_anon_versioning = yes; then
6782 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6783 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6784 $echo "local: *; };" >> $output_objdir/$libname.ver~
6785 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6787 archive_expsym_cmds="$tmp_archive_cmds"
6795 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6796 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6797 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6804 if test "$ld_shlibs" = yes; then
6805 runpath_var=LD_RUN_PATH
6806 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6807 export_dynamic_flag_spec='${wl}--export-dynamic'
6808 # ancient GNU ld didn't support --whole-archive et. al.
6809 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6810 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6812 whole_archive_flag_spec=
6816 # PORTME fill in a description of your system's linker (not GNU ld)
6819 allow_undefined_flag=unsupported
6820 always_export_symbols=yes
6821 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'
6822 # Note: this linker hardcodes the directories in LIBPATH if there
6823 # are no directories specified by -L.
6824 hardcode_minus_L=yes
6825 if test "$GCC" = yes && test -z "$link_static_flag"; then
6826 # Neither direct hardcoding nor static linking is supported with a
6828 hardcode_direct=unsupported
6833 if test "$host_cpu" = ia64; then
6834 # On IA64, the linker does run time linking by default, so we don't
6835 # have to do anything special.
6836 aix_use_runtimelinking=no
6837 exp_sym_flag='-Bexport'
6840 # If we're using GNU nm, then we don't want the "-C" option.
6841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6842 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6843 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'
6845 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'
6847 aix_use_runtimelinking=no
6849 # Test if we are trying to use run time linking or normal
6850 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6851 # need to do runtime linking.
6852 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6853 for ld_flag in $LDFLAGS; do
6854 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6855 aix_use_runtimelinking=yes
6861 exp_sym_flag='-bexport'
6862 no_entry_flag='-bnoentry'
6865 # When large executables or shared objects are built, AIX ld can
6866 # have problems creating the table of contents. If linking a library
6867 # or program results in "error TOC overflow" add -mminimal-toc to
6868 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6869 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6873 hardcode_libdir_separator=':'
6874 link_all_deplibs=yes
6876 if test "$GCC" = yes; then
6877 case $host_os in aix4.012|aix4.012.*)
6878 # We only want to do this on AIX 4.2 and lower, the check
6879 # below for broken collect2 doesn't work under 4.3+
6880 collect2name=`${CC} -print-prog-name=collect2`
6881 if test -f "$collect2name" && \
6882 strings "$collect2name" | grep resolve_lib_name >/dev/null
6884 # We have reworked collect2
6887 # We have old collect2
6888 hardcode_direct=unsupported
6889 # It fails to find uninstalled libraries when the uninstalled
6890 # path is not listed in the libpath. Setting hardcode_minus_L
6891 # to unsupported forces relinking
6892 hardcode_minus_L=yes
6893 hardcode_libdir_flag_spec='-L$libdir'
6894 hardcode_libdir_separator=
6897 shared_flag='-shared'
6900 if test "$host_cpu" = ia64; then
6901 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6902 # chokes on -Wl,-G. The following line is correct:
6905 if test "$aix_use_runtimelinking" = yes; then
6906 shared_flag='${wl}-G'
6908 shared_flag='${wl}-bM:SRE'
6913 # It seems that -bexpall does not export symbols beginning with
6914 # underscore (_), so it is better to generate a list of symbols to export.
6915 always_export_symbols=yes
6916 if test "$aix_use_runtimelinking" = yes; then
6917 # Warning - without using the other runtime loading flags (-brtl),
6918 # -berok will link without error, but may produce a broken library.
6919 allow_undefined_flag='-berok'
6920 # Determine the default libpath from the value encoded in an empty executable.
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6936 rm -f conftest.$ac_objext conftest$ac_exeext
6937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6938 (eval $ac_link) 2>conftest.er1
6940 grep -v '^ *+' conftest.er1 >conftest.err
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6944 (exit $ac_status); } &&
6945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6946 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6950 (exit $ac_status); }; } &&
6951 { ac_try='test -s conftest$ac_exeext'
6952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6956 (exit $ac_status); }; }; then
6958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6960 # Check for a 64-bit object if we didn't find anything.
6961 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; }
6964 echo "$as_me: failed program was:" >&5
6965 sed 's/^/| /' conftest.$ac_ext >&5
6968 rm -f conftest.err conftest.$ac_objext \
6969 conftest$ac_exeext conftest.$ac_ext
6970 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6972 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6973 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"
6975 if test "$host_cpu" = ia64; then
6976 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6977 allow_undefined_flag="-z nodefs"
6978 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"
6980 # Determine the default libpath from the value encoded in an empty executable.
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6996 rm -f conftest.$ac_objext conftest$ac_exeext
6997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6998 (eval $ac_link) 2>conftest.er1
7000 grep -v '^ *+' conftest.er1 >conftest.err
7002 cat conftest.err >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); } &&
7005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7010 (exit $ac_status); }; } &&
7011 { ac_try='test -s conftest$ac_exeext'
7012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7018 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7020 # Check for a 64-bit object if we didn't find anything.
7021 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; }
7024 echo "$as_me: failed program was:" >&5
7025 sed 's/^/| /' conftest.$ac_ext >&5
7028 rm -f conftest.err conftest.$ac_objext \
7029 conftest$ac_exeext conftest.$ac_ext
7030 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7032 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7033 # Warning - without using the other run time loading flags,
7034 # -berok will link without error, but may produce a broken library.
7035 no_undefined_flag=' ${wl}-bernotok'
7036 allow_undefined_flag=' ${wl}-berok'
7037 # -bexpall does not export symbols beginning with underscore (_)
7038 always_export_symbols=yes
7039 # Exported symbols can be pulled into shared objects from archives
7040 whole_archive_flag_spec=' '
7041 archive_cmds_need_lc=yes
7042 # This is similar to how AIX traditionally builds it's shared libraries.
7043 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'
7049 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)'
7050 hardcode_libdir_flag_spec='-L$libdir'
7051 hardcode_minus_L=yes
7052 # see comment about different semantics on the GNU ld section
7057 export_dynamic_flag_spec=-rdynamic
7060 cygwin* | mingw* | pw32*)
7061 # When not using gcc, we currently assume that we are using
7062 # Microsoft Visual C++.
7063 # hardcode_libdir_flag_spec is actually meaningless, as there is
7064 # no search path for DLLs.
7065 hardcode_libdir_flag_spec=' '
7066 allow_undefined_flag=unsupported
7067 # Tell ltmain to make .lib files, not .a files.
7069 # Tell ltmain to make .dll files, not .so files.
7071 # FIXME: Setting linknames here is a bad hack.
7072 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7073 # The linker will automatically build a .lib file if we build a DLL.
7074 old_archive_From_new_cmds='true'
7075 # FIXME: Should let the user specify the lib program.
7076 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7077 fix_srcfile_path='`cygpath -w "$srcfile"`'
7078 enable_shared_with_static_runtimes=yes
7081 darwin* | rhapsody*)
7082 if test "$GXX" = yes ; then
7083 archive_cmds_need_lc=no
7085 rhapsody* | darwin1.[012])
7086 allow_undefined_flag='-undefined suppress'
7089 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7090 allow_undefined_flag='-flat_namespace -undefined suppress'
7092 case ${MACOSX_DEPLOYMENT_TARGET} in
7094 allow_undefined_flag='-flat_namespace -undefined suppress'
7097 allow_undefined_flag='-undefined dynamic_lookup'
7103 lt_int_apple_cc_single_mod=no
7104 output_verbose_link_cmd='echo'
7105 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7106 lt_int_apple_cc_single_mod=yes
7108 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7109 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7111 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'
7113 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7114 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7115 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7116 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}'
7118 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}'
7120 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}'
7122 hardcode_automatic=yes
7123 hardcode_shlibpath_var=unsupported
7124 whole_archive_flag_spec='-all_load $convenience'
7125 link_all_deplibs=yes
7132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7133 hardcode_libdir_flag_spec='-L$libdir'
7134 hardcode_shlibpath_var=no
7141 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7142 # support. Future versions do this automatically, but an explicit c++rt0.o
7143 # does not break anything, and helps significantly (at the cost of a little
7146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7147 hardcode_libdir_flag_spec='-R$libdir'
7149 hardcode_shlibpath_var=no
7152 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7154 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7156 hardcode_minus_L=yes
7157 hardcode_shlibpath_var=no
7160 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7161 freebsd* | kfreebsd*-gnu)
7162 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7163 hardcode_libdir_flag_spec='-R$libdir'
7165 hardcode_shlibpath_var=no
7169 if test "$GCC" = yes; then
7170 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'
7172 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'
7174 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7175 hardcode_libdir_separator=:
7178 # hardcode_minus_L: Not really in the search PATH,
7179 # but as the default location of the library.
7180 hardcode_minus_L=yes
7181 export_dynamic_flag_spec='${wl}-E'
7185 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7188 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7191 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7197 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7204 if test "$with_gnu_ld" = no; then
7207 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7208 hardcode_libdir_flag_spec_ld='+b $libdir'
7209 hardcode_libdir_separator=:
7211 hardcode_shlibpath_var=no
7214 hardcode_libdir_flag_spec='-L$libdir'
7216 hardcode_shlibpath_var=no
7218 # hardcode_minus_L: Not really in the search PATH,
7219 # but as the default location of the library.
7220 hardcode_minus_L=yes
7223 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7224 hardcode_libdir_separator=:
7226 export_dynamic_flag_spec='${wl}-E'
7228 # hardcode_minus_L: Not really in the search PATH,
7229 # but as the default location of the library.
7230 hardcode_minus_L=yes
7236 irix5* | irix6* | nonstopux*)
7237 if test "$GCC" = yes; then
7238 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'
7240 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'
7241 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7243 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7244 hardcode_libdir_separator=:
7245 link_all_deplibs=yes
7249 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7250 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7252 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7254 hardcode_libdir_flag_spec='-R$libdir'
7256 hardcode_shlibpath_var=no
7260 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7262 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7263 hardcode_libdir_separator=:
7264 hardcode_shlibpath_var=no
7269 hardcode_shlibpath_var=no
7270 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7273 export_dynamic_flag_spec='${wl}-E'
7276 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7277 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7278 hardcode_libdir_flag_spec='-R$libdir'
7281 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7282 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7289 hardcode_libdir_flag_spec='-L$libdir'
7290 hardcode_minus_L=yes
7291 allow_undefined_flag=unsupported
7292 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'
7293 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7297 if test "$GCC" = yes; then
7298 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7299 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'
7301 allow_undefined_flag=' -expect_unresolved \*'
7302 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'
7304 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7305 hardcode_libdir_separator=:
7308 osf4* | osf5*) # as osf3* with the addition of -msym flag
7309 if test "$GCC" = yes; then
7310 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7311 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'
7312 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7314 allow_undefined_flag=' -expect_unresolved \*'
7315 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'
7316 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7317 $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'
7319 # Both c and cxx compiler support -rpath directly
7320 hardcode_libdir_flag_spec='-rpath $libdir'
7322 hardcode_libdir_separator=:
7326 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7327 hardcode_shlibpath_var=no
7328 export_dynamic_flag_spec='${wl}-Bexport'
7329 runpath_var=LD_RUN_PATH
7330 hardcode_runpath_var=yes
7334 no_undefined_flag=' -z text'
7335 if test "$GCC" = yes; then
7336 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7337 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7338 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7340 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7341 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7342 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7344 hardcode_libdir_flag_spec='-R$libdir'
7345 hardcode_shlibpath_var=no
7347 solaris2.[0-5] | solaris2.[0-5].*) ;;
7348 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7349 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7351 link_all_deplibs=yes
7355 if test "x$host_vendor" = xsequent; then
7356 # Use $CC to link under sequent, because it throws in some extra .o
7357 # files that make .init and .fini sections work.
7358 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7360 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7362 hardcode_libdir_flag_spec='-L$libdir'
7364 hardcode_minus_L=yes
7365 hardcode_shlibpath_var=no
7369 case $host_vendor in
7371 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7372 hardcode_direct=yes # is this really true???
7375 ## LD is ld it makes a PLAMLIB
7376 ## CC just makes a GrossModule.
7377 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7378 reload_cmds='$CC -r -o $output$reload_objs'
7382 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7383 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7386 runpath_var='LD_RUN_PATH'
7387 hardcode_shlibpath_var=no
7391 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7392 hardcode_shlibpath_var=no
7393 export_dynamic_flag_spec='-Bexport'
7397 if test -d /usr/nec; then
7398 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7399 hardcode_shlibpath_var=no
7400 runpath_var=LD_RUN_PATH
7401 hardcode_runpath_var=yes
7407 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_shlibpath_var=no
7411 hardcode_runpath_var=yes
7412 runpath_var=LD_RUN_PATH
7415 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7416 no_undefined_flag='${wl}-z ${wl}text'
7417 if test "$GCC" = yes; then
7418 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7420 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7422 runpath_var='LD_RUN_PATH'
7423 hardcode_shlibpath_var=no
7427 no_undefined_flag=' -z text'
7428 # $CC -shared without GNU ld will not create a library from C++
7429 # object files and a static libstdc++, better avoid it by now
7430 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7433 hardcode_libdir_flag_spec=
7434 hardcode_shlibpath_var=no
7435 runpath_var='LD_RUN_PATH'
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_libdir_flag_spec='-L$libdir'
7441 hardcode_shlibpath_var=no
7450 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7451 echo "${ECHO_T}$ld_shlibs" >&6
7452 test "$ld_shlibs" = no && can_build_shared=no
7454 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7455 if test "$GCC" = yes; then
7456 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7460 # Do we need to explicitly link libc?
7462 case "x$archive_cmds_need_lc" in
7464 # Assume -lc should be added
7465 archive_cmds_need_lc=yes
7467 if test "$enable_shared" = yes && test "$GCC" = yes; then
7468 case $archive_cmds in
7470 # FIXME: we may have to deal with multi-command sequences.
7473 # Test whether the compiler implicitly links with -lc since on some
7474 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7475 # to ld, don't add -lc before -lgcc.
7476 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7477 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7479 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7482 (eval $ac_compile) 2>&5
7484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7485 (exit $ac_status); } 2>conftest.err; then
7488 libobjs=conftest.$ac_objext
7490 wl=$lt_prog_compiler_wl
7496 lt_save_allow_undefined_flag=$allow_undefined_flag
7497 allow_undefined_flag=
7498 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7499 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); }
7504 archive_cmds_need_lc=no
7506 archive_cmds_need_lc=yes
7508 allow_undefined_flag=$lt_save_allow_undefined_flag
7510 cat conftest.err 1>&5
7513 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7514 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7521 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7522 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7524 libname_spec='lib$name'
7532 shlibpath_overrides_runpath=unknown
7534 dynamic_linker="$host_os ld.so"
7535 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7536 if test "$GCC" = yes; then
7537 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7538 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7539 # if the path contains ";" then we assume it to be the separator
7540 # otherwise default to the standard path separator (i.e. ":") - it is
7541 # assumed that no part of a normal pathname contains ";" but that should
7542 # okay in the real world where ";" in dirpaths is itself problematic.
7543 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7545 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7548 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7550 need_lib_prefix=unknown
7551 hardcode_into_libs=no
7553 # when you set need_version to no, make sure it does not cause -set_version
7554 # flags to be left without arguments
7555 need_version=unknown
7560 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7561 shlibpath_var=LIBPATH
7563 # AIX 3 has no versioning support, so we append a major version to the name.
7564 soname_spec='${libname}${release}${shared_ext}$major'
7571 hardcode_into_libs=yes
7572 if test "$host_cpu" = ia64; then
7573 # AIX 5 supports IA64
7574 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7575 shlibpath_var=LD_LIBRARY_PATH
7577 # With GCC up to 2.95.x, collect2 would create an import file
7578 # for dependence libraries. The import file would start with
7579 # the line `#! .'. This would cause the generated library to
7580 # depend on `.', always an invalid library. This was fixed in
7581 # development snapshots of GCC prior to 3.0.
7583 aix4 | aix4.[01] | aix4.[01].*)
7584 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7586 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7593 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7594 # soname into executable. Probably we can add versioning support to
7595 # collect2, so additional links can be useful in future.
7596 if test "$aix_use_runtimelinking" = yes; then
7597 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7598 # instead of lib<name>.a to let people know that these are not
7599 # typical AIX shared libraries.
7600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7602 # We preserve .a as extension for shared libraries through AIX4.2
7603 # and later when we are not doing run time linking.
7604 library_names_spec='${libname}${release}.a $libname.a'
7605 soname_spec='${libname}${release}${shared_ext}$major'
7607 shlibpath_var=LIBPATH
7612 library_names_spec='$libname.ixlibrary $libname.a'
7613 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7614 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'
7618 library_names_spec='${libname}${shared_ext}'
7619 dynamic_linker="$host_os ld.so"
7620 shlibpath_var=LIBRARY_PATH
7626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7627 soname_spec='${libname}${release}${shared_ext}$major'
7628 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7629 shlibpath_var=LD_LIBRARY_PATH
7630 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7631 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7632 # the default ld.so.conf also contains /usr/contrib/lib and
7633 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7634 # libtool to hard-code these into programs
7637 cygwin* | mingw* | pw32*)
7638 version_type=windows
7643 case $GCC,$host_os in
7644 yes,cygwin* | yes,mingw* | yes,pw32*)
7645 library_names_spec='$libname.dll.a'
7646 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7647 postinstall_cmds='base_file=`basename \${file}`~
7648 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7649 dldir=$destdir/`dirname \$dlpath`~
7650 test -d \$dldir || mkdir -p \$dldir~
7651 $install_prog $dir/$dlname \$dldir/$dlname'
7652 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7653 dlpath=$dir/\$dldll~
7655 shlibpath_overrides_runpath=yes
7659 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7660 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7661 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7664 # MinGW DLLs use traditional 'lib' prefix
7665 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7666 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7667 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7668 # It is most probably a Windows format PATH printed by
7669 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7670 # path with ; separators, and with drive letters. We can handle the
7671 # drive letters (cygwin fileutils understands them), so leave them,
7672 # especially as we might pass files found there to a mingw objdump,
7673 # which wouldn't understand a cygwinified path. Ahh.
7674 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7676 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7680 # pw32 DLLs use 'pw' prefix rather than 'lib'
7681 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7687 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7690 dynamic_linker='Win32 ld.exe'
7691 # FIXME: first we should search . and the directory the executable is in
7695 darwin* | rhapsody*)
7696 dynamic_linker="$host_os dyld"
7700 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7701 soname_spec='${libname}${release}${major}$shared_ext'
7702 shlibpath_overrides_runpath=yes
7703 shlibpath_var=DYLD_LIBRARY_PATH
7704 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7705 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7706 if test "$GCC" = yes; then
7707 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"`
7709 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7711 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7719 soname_spec='${libname}${release}${shared_ext}$major'
7720 shlibpath_var=LD_LIBRARY_PATH
7731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7732 soname_spec='${libname}${release}${shared_ext}$major'
7733 shlibpath_var=LD_LIBRARY_PATH
7734 shlibpath_overrides_runpath=no
7735 hardcode_into_libs=yes
7736 dynamic_linker='GNU ld.so'
7740 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7741 version_type=freebsd-$objformat
7742 case $version_type in
7744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7749 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7753 shlibpath_var=LD_LIBRARY_PATH
7756 shlibpath_overrides_runpath=yes
7758 freebsd3.01* | freebsdelf3.01*)
7759 shlibpath_overrides_runpath=yes
7760 hardcode_into_libs=yes
7763 shlibpath_overrides_runpath=no
7764 hardcode_into_libs=yes
7773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7774 soname_spec='${libname}${release}${shared_ext}$major'
7775 shlibpath_var=LD_LIBRARY_PATH
7776 hardcode_into_libs=yes
7779 hpux9* | hpux10* | hpux11*)
7780 # Give a soname corresponding to the major version so that dld.sl refuses to
7781 # link against other versions.
7788 hardcode_into_libs=yes
7789 dynamic_linker="$host_os dld.so"
7790 shlibpath_var=LD_LIBRARY_PATH
7791 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7793 soname_spec='${libname}${release}${shared_ext}$major'
7794 if test "X$HPUX_IA64_MODE" = X32; then
7795 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7797 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7799 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7803 hardcode_into_libs=yes
7804 dynamic_linker="$host_os dld.sl"
7805 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7806 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7808 soname_spec='${libname}${release}${shared_ext}$major'
7809 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7810 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7814 dynamic_linker="$host_os dld.sl"
7815 shlibpath_var=SHLIB_PATH
7816 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7818 soname_spec='${libname}${release}${shared_ext}$major'
7821 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7822 postinstall_cmds='chmod 555 $lib'
7825 irix5* | irix6* | nonstopux*)
7827 nonstopux*) version_type=nonstopux ;;
7829 if test "$lt_cv_prog_gnu_ld" = yes; then
7837 soname_spec='${libname}${release}${shared_ext}$major'
7838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7840 irix5* | nonstopux*)
7844 case $LD in # libtool.m4 will add one of these switches to LD
7845 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7846 libsuff= shlibsuff= libmagic=32-bit;;
7847 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7848 libsuff=32 shlibsuff=N32 libmagic=N32;;
7849 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7850 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7851 *) libsuff= shlibsuff= libmagic=never-match;;
7855 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7856 shlibpath_overrides_runpath=no
7857 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7858 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7859 hardcode_into_libs=yes
7862 # No shared lib support for Linux oldld, aout, or coff.
7863 linux*oldld* | linux*aout* | linux*coff*)
7867 # This must be Linux ELF.
7872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7873 soname_spec='${libname}${release}${shared_ext}$major'
7874 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7875 shlibpath_var=LD_LIBRARY_PATH
7876 shlibpath_overrides_runpath=no
7877 # This implies no fast_install, which is unacceptable.
7878 # Some rework will be needed to allow for fast_install
7879 # before this can be enabled.
7880 hardcode_into_libs=yes
7882 # Append ld.so.conf contents to the search path
7883 if test -f /etc/ld.so.conf; then
7884 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7885 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7888 # We used to test for /lib/ld.so.1 and disable shared libraries on
7889 # powerpc, because MkLinux only supported shared libraries with the
7890 # GNU dynamic linker. Since this was broken with cross compilers,
7891 # most powerpc-linux boxes support dynamic linking these days and
7892 # people can always --disable-shared, the test was removed, and we
7893 # assume the GNU/Linux dynamic linker is in use.
7894 dynamic_linker='GNU/Linux ld.so'
7901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7902 soname_spec='${libname}${release}${shared_ext}$major'
7903 shlibpath_var=LD_LIBRARY_PATH
7904 shlibpath_overrides_runpath=no
7905 hardcode_into_libs=yes
7906 dynamic_linker='GNU ld.so'
7913 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7915 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7916 dynamic_linker='NetBSD (a.out) ld.so'
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
7920 dynamic_linker='NetBSD ld.elf_so'
7922 shlibpath_var=LD_LIBRARY_PATH
7923 shlibpath_overrides_runpath=yes
7924 hardcode_into_libs=yes
7929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7930 shlibpath_var=LD_LIBRARY_PATH
7931 shlibpath_overrides_runpath=yes
7938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7939 soname_spec='${libname}${release}${shared_ext}$major'
7940 shlibpath_var=LD_LIBRARY_PATH
7941 shlibpath_overrides_runpath=yes
7948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7950 shlibpath_var=LD_LIBRARY_PATH
7951 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7953 openbsd2.[89] | openbsd2.[89].*)
7954 shlibpath_overrides_runpath=no
7957 shlibpath_overrides_runpath=yes
7961 shlibpath_overrides_runpath=yes
7966 libname_spec='$name'
7969 library_names_spec='$libname${shared_ext} $libname.a'
7970 dynamic_linker='OS/2 ld.exe'
7971 shlibpath_var=LIBPATH
7974 osf3* | osf4* | osf5*)
7978 soname_spec='${libname}${release}${shared_ext}$major'
7979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7980 shlibpath_var=LD_LIBRARY_PATH
7981 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7982 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
7987 soname_spec='${libname}${release}${shared_ext}$major'
7988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7989 shlibpath_var=LD_LIBRARY_PATH
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997 soname_spec='${libname}${release}${shared_ext}$major'
7998 shlibpath_var=LD_LIBRARY_PATH
7999 shlibpath_overrides_runpath=yes
8000 hardcode_into_libs=yes
8001 # ldd complains unless libraries are executable
8002 postinstall_cmds='chmod +x $lib'
8007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8008 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8009 shlibpath_var=LD_LIBRARY_PATH
8010 shlibpath_overrides_runpath=yes
8011 if test "$with_gnu_ld" = yes; then
8017 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8020 soname_spec='${libname}${release}${shared_ext}$major'
8021 shlibpath_var=LD_LIBRARY_PATH
8022 case $host_vendor in
8024 shlibpath_overrides_runpath=no
8026 export_dynamic_flag_spec='${wl}-Blargedynsym'
8027 runpath_var=LD_RUN_PATH
8035 shlibpath_overrides_runpath=no
8036 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8042 if test -d /usr/nec ;then
8044 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8045 soname_spec='$libname${shared_ext}.$major'
8046 shlibpath_var=LD_LIBRARY_PATH
8052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8053 soname_spec='${libname}${release}${shared_ext}$major'
8054 shlibpath_var=LD_LIBRARY_PATH
8061 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8062 echo "${ECHO_T}$dynamic_linker" >&6
8063 test "$dynamic_linker" = no && can_build_shared=no
8065 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8066 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8068 if test -n "$hardcode_libdir_flag_spec" || \
8069 test -n "$runpath_var " || \
8070 test "X$hardcode_automatic"="Xyes" ; then
8072 # We can hardcode non-existant directories.
8073 if test "$hardcode_direct" != no &&
8074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8075 # have to relink, otherwise we might link with an installed library
8076 # when we should be linking with a yet-to-be-installed one
8077 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8078 test "$hardcode_minus_L" != no; then
8079 # Linking always hardcodes the temporary library directory.
8080 hardcode_action=relink
8082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8083 hardcode_action=immediate
8086 # We cannot hardcode anything, or else we can only hardcode existing
8088 hardcode_action=unsupported
8090 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8091 echo "${ECHO_T}$hardcode_action" >&6
8093 if test "$hardcode_action" = relink; then
8094 # Fast installation is not supported
8095 enable_fast_install=no
8096 elif test "$shlibpath_overrides_runpath" = yes ||
8097 test "$enable_shared" = no; then
8098 # Fast installation is not necessary
8099 enable_fast_install=needless
8104 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8105 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8106 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8107 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8108 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8109 echo "$as_me:$LINENO: result: yes" >&5
8110 echo "${ECHO_T}yes" >&6
8112 # FIXME - insert some real tests, host_os isn't really good enough
8115 if test -n "$STRIP" ; then
8116 striplib="$STRIP -x"
8117 echo "$as_me:$LINENO: result: yes" >&5
8118 echo "${ECHO_T}yes" >&6
8120 echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6
8125 echo "$as_me:$LINENO: result: no" >&5
8126 echo "${ECHO_T}no" >&6
8131 if test "x$enable_dlopen" != xyes; then
8132 enable_dlopen=unknown
8133 enable_dlopen_self=unknown
8134 enable_dlopen_self_static=unknown
8141 lt_cv_dlopen="load_add_on"
8143 lt_cv_dlopen_self=yes
8147 lt_cv_dlopen="LoadLibrary"
8152 lt_cv_dlopen="dlopen"
8157 # if libdl is installed we need to link against it
8158 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8159 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8160 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8161 echo $ECHO_N "(cached) $ECHO_C" >&6
8163 ac_check_lib_save_LIBS=$LIBS
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8172 /* Override any gcc2 internal prototype to avoid an error. */
8176 /* We use char because int might match the return type of a gcc2
8177 builtin and then its argument prototype would still apply. */
8187 rm -f conftest.$ac_objext conftest$ac_exeext
8188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8189 (eval $ac_link) 2>conftest.er1
8191 grep -v '^ *+' conftest.er1 >conftest.err
8193 cat conftest.err >&5
8194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8195 (exit $ac_status); } &&
8196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8201 (exit $ac_status); }; } &&
8202 { ac_try='test -s conftest$ac_exeext'
8203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8207 (exit $ac_status); }; }; then
8208 ac_cv_lib_dl_dlopen=yes
8210 echo "$as_me: failed program was:" >&5
8211 sed 's/^/| /' conftest.$ac_ext >&5
8213 ac_cv_lib_dl_dlopen=no
8215 rm -f conftest.err conftest.$ac_objext \
8216 conftest$ac_exeext conftest.$ac_ext
8217 LIBS=$ac_check_lib_save_LIBS
8219 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8220 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8221 if test $ac_cv_lib_dl_dlopen = yes; then
8222 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8227 lt_cv_dlopen_self=yes
8234 echo "$as_me:$LINENO: checking for shl_load" >&5
8235 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8236 if test "${ac_cv_func_shl_load+set}" = set; then
8237 echo $ECHO_N "(cached) $ECHO_C" >&6
8239 cat >conftest.$ac_ext <<_ACEOF
8242 cat confdefs.h >>conftest.$ac_ext
8243 cat >>conftest.$ac_ext <<_ACEOF
8244 /* end confdefs.h. */
8245 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8247 #define shl_load innocuous_shl_load
8249 /* System header to define __stub macros and hopefully few prototypes,
8250 which can conflict with char shl_load (); below.
8251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8252 <limits.h> exists even on freestanding compilers. */
8255 # include <limits.h>
8257 # include <assert.h>
8262 /* Override any gcc2 internal prototype to avoid an error. */
8267 /* We use char because int might match the return type of a gcc2
8268 builtin and then its argument prototype would still apply. */
8270 /* The GNU C library defines this for functions which it implements
8271 to always fail with ENOSYS. Some functions are actually named
8272 something starting with __ and the normal name is an alias. */
8273 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8276 char (*f) () = shl_load;
8285 return f != shl_load;
8290 rm -f conftest.$ac_objext conftest$ac_exeext
8291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8292 (eval $ac_link) 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304 (exit $ac_status); }; } &&
8305 { ac_try='test -s conftest$ac_exeext'
8306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310 (exit $ac_status); }; }; then
8311 ac_cv_func_shl_load=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_func_shl_load=no
8318 rm -f conftest.err conftest.$ac_objext \
8319 conftest$ac_exeext conftest.$ac_ext
8321 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8322 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8323 if test $ac_cv_func_shl_load = yes; then
8324 lt_cv_dlopen="shl_load"
8326 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8327 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8328 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8329 echo $ECHO_N "(cached) $ECHO_C" >&6
8331 ac_check_lib_save_LIBS=$LIBS
8333 cat >conftest.$ac_ext <<_ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8340 /* Override any gcc2 internal prototype to avoid an error. */
8344 /* We use char because int might match the return type of a gcc2
8345 builtin and then its argument prototype would still apply. */
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357 (eval $ac_link) 2>conftest.er1
8359 grep -v '^ *+' conftest.er1 >conftest.err
8361 cat conftest.err >&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); } &&
8364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8365 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8369 (exit $ac_status); }; } &&
8370 { ac_try='test -s conftest$ac_exeext'
8371 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8375 (exit $ac_status); }; }; then
8376 ac_cv_lib_dld_shl_load=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 ac_cv_lib_dld_shl_load=no
8383 rm -f conftest.err conftest.$ac_objext \
8384 conftest$ac_exeext conftest.$ac_ext
8385 LIBS=$ac_check_lib_save_LIBS
8387 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8388 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8389 if test $ac_cv_lib_dld_shl_load = yes; then
8390 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8392 echo "$as_me:$LINENO: checking for dlopen" >&5
8393 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8394 if test "${ac_cv_func_dlopen+set}" = set; then
8395 echo $ECHO_N "(cached) $ECHO_C" >&6
8397 cat >conftest.$ac_ext <<_ACEOF
8400 cat confdefs.h >>conftest.$ac_ext
8401 cat >>conftest.$ac_ext <<_ACEOF
8402 /* end confdefs.h. */
8403 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8405 #define dlopen innocuous_dlopen
8407 /* System header to define __stub macros and hopefully few prototypes,
8408 which can conflict with char dlopen (); below.
8409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8410 <limits.h> exists even on freestanding compilers. */
8413 # include <limits.h>
8415 # include <assert.h>
8420 /* Override any gcc2 internal prototype to avoid an error. */
8425 /* We use char because int might match the return type of a gcc2
8426 builtin and then its argument prototype would still apply. */
8428 /* The GNU C library defines this for functions which it implements
8429 to always fail with ENOSYS. Some functions are actually named
8430 something starting with __ and the normal name is an alias. */
8431 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8434 char (*f) () = dlopen;
8448 rm -f conftest.$ac_objext conftest$ac_exeext
8449 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8450 (eval $ac_link) 2>conftest.er1
8452 grep -v '^ *+' conftest.er1 >conftest.err
8454 cat conftest.err >&5
8455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } &&
8457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8462 (exit $ac_status); }; } &&
8463 { ac_try='test -s conftest$ac_exeext'
8464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); }; }; then
8469 ac_cv_func_dlopen=yes
8471 echo "$as_me: failed program was:" >&5
8472 sed 's/^/| /' conftest.$ac_ext >&5
8474 ac_cv_func_dlopen=no
8476 rm -f conftest.err conftest.$ac_objext \
8477 conftest$ac_exeext conftest.$ac_ext
8479 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8480 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8481 if test $ac_cv_func_dlopen = yes; then
8482 lt_cv_dlopen="dlopen"
8484 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8485 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8486 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8487 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 ac_check_lib_save_LIBS=$LIBS
8491 cat >conftest.$ac_ext <<_ACEOF
8494 cat confdefs.h >>conftest.$ac_ext
8495 cat >>conftest.$ac_ext <<_ACEOF
8496 /* end confdefs.h. */
8498 /* Override any gcc2 internal prototype to avoid an error. */
8502 /* We use char because int might match the return type of a gcc2
8503 builtin and then its argument prototype would still apply. */
8513 rm -f conftest.$ac_objext conftest$ac_exeext
8514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8515 (eval $ac_link) 2>conftest.er1
8517 grep -v '^ *+' conftest.er1 >conftest.err
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } &&
8522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_dl_dlopen=yes
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_dl_dlopen=no
8541 rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8546 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8547 if test $ac_cv_lib_dl_dlopen = yes; then
8548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8550 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8551 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8552 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8553 echo $ECHO_N "(cached) $ECHO_C" >&6
8555 ac_check_lib_save_LIBS=$LIBS
8557 cat >conftest.$ac_ext <<_ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h. */
8564 /* Override any gcc2 internal prototype to avoid an error. */
8568 /* We use char because int might match the return type of a gcc2
8569 builtin and then its argument prototype would still apply. */
8579 rm -f conftest.$ac_objext conftest$ac_exeext
8580 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8581 (eval $ac_link) 2>conftest.er1
8583 grep -v '^ *+' conftest.er1 >conftest.err
8585 cat conftest.err >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); } &&
8588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; } &&
8594 { ac_try='test -s conftest$ac_exeext'
8595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599 (exit $ac_status); }; }; then
8600 ac_cv_lib_svld_dlopen=yes
8602 echo "$as_me: failed program was:" >&5
8603 sed 's/^/| /' conftest.$ac_ext >&5
8605 ac_cv_lib_svld_dlopen=no
8607 rm -f conftest.err conftest.$ac_objext \
8608 conftest$ac_exeext conftest.$ac_ext
8609 LIBS=$ac_check_lib_save_LIBS
8611 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8612 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8613 if test $ac_cv_lib_svld_dlopen = yes; then
8614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8616 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8617 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8618 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 ac_check_lib_save_LIBS=$LIBS
8623 cat >conftest.$ac_ext <<_ACEOF
8626 cat confdefs.h >>conftest.$ac_ext
8627 cat >>conftest.$ac_ext <<_ACEOF
8628 /* end confdefs.h. */
8630 /* Override any gcc2 internal prototype to avoid an error. */
8634 /* We use char because int might match the return type of a gcc2
8635 builtin and then its argument prototype would still apply. */
8645 rm -f conftest.$ac_objext conftest$ac_exeext
8646 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8647 (eval $ac_link) 2>conftest.er1
8649 grep -v '^ *+' conftest.er1 >conftest.err
8651 cat conftest.err >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); } &&
8654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; } &&
8660 { ac_try='test -s conftest$ac_exeext'
8661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); }; }; then
8666 ac_cv_lib_dld_dld_link=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.$ac_ext >&5
8671 ac_cv_lib_dld_dld_link=no
8673 rm -f conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 LIBS=$ac_check_lib_save_LIBS
8677 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8678 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8679 if test $ac_cv_lib_dld_dld_link = yes; then
8680 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8701 if test "x$lt_cv_dlopen" != xno; then
8707 case $lt_cv_dlopen in
8709 save_CPPFLAGS="$CPPFLAGS"
8710 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8712 save_LDFLAGS="$LDFLAGS"
8713 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8716 LIBS="$lt_cv_dlopen_libs $LIBS"
8718 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8719 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8720 if test "${lt_cv_dlopen_self+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 if test "$cross_compiling" = yes; then :
8724 lt_cv_dlopen_self=cross
8726 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8727 lt_status=$lt_dlunknown
8728 cat > conftest.$ac_ext <<EOF
8729 #line 8729 "configure"
8730 #include "confdefs.h"
8739 # define LT_DLGLOBAL RTLD_GLOBAL
8742 # define LT_DLGLOBAL DL_GLOBAL
8744 # define LT_DLGLOBAL 0
8748 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8749 find out it does not work in some platform. */
8750 #ifndef LT_DLLAZY_OR_NOW
8752 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8755 # define LT_DLLAZY_OR_NOW DL_LAZY
8758 # define LT_DLLAZY_OR_NOW RTLD_NOW
8761 # define LT_DLLAZY_OR_NOW DL_NOW
8763 # define LT_DLLAZY_OR_NOW 0
8771 extern "C" void exit (int);
8774 void fnord() { int i=42;}
8777 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8778 int status = $lt_dlunknown;
8782 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8783 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8784 /* dlclose (self); */
8790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8791 (eval $ac_link) 2>&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8795 (./conftest; exit; ) 2>/dev/null
8798 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8799 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8800 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8803 # compilation failed
8804 lt_cv_dlopen_self=no
8811 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8812 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8814 if test "x$lt_cv_dlopen_self" = xyes; then
8815 LDFLAGS="$LDFLAGS $link_static_flag"
8816 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8817 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8818 if test "${lt_cv_dlopen_self_static+set}" = set; then
8819 echo $ECHO_N "(cached) $ECHO_C" >&6
8821 if test "$cross_compiling" = yes; then :
8822 lt_cv_dlopen_self_static=cross
8824 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8825 lt_status=$lt_dlunknown
8826 cat > conftest.$ac_ext <<EOF
8827 #line 8827 "configure"
8828 #include "confdefs.h"
8837 # define LT_DLGLOBAL RTLD_GLOBAL
8840 # define LT_DLGLOBAL DL_GLOBAL
8842 # define LT_DLGLOBAL 0
8846 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8847 find out it does not work in some platform. */
8848 #ifndef LT_DLLAZY_OR_NOW
8850 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8853 # define LT_DLLAZY_OR_NOW DL_LAZY
8856 # define LT_DLLAZY_OR_NOW RTLD_NOW
8859 # define LT_DLLAZY_OR_NOW DL_NOW
8861 # define LT_DLLAZY_OR_NOW 0
8869 extern "C" void exit (int);
8872 void fnord() { int i=42;}
8875 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8876 int status = $lt_dlunknown;
8880 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8881 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8882 /* dlclose (self); */
8888 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8889 (eval $ac_link) 2>&5
8891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8892 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8893 (./conftest; exit; ) 2>/dev/null
8896 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8897 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8898 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8901 # compilation failed
8902 lt_cv_dlopen_self_static=no
8909 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8910 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8913 CPPFLAGS="$save_CPPFLAGS"
8914 LDFLAGS="$save_LDFLAGS"
8919 case $lt_cv_dlopen_self in
8920 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8921 *) enable_dlopen_self=unknown ;;
8924 case $lt_cv_dlopen_self_static in
8925 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8926 *) enable_dlopen_self_static=unknown ;;
8931 # Report which librarie types wil actually be built
8932 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8933 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8934 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8935 echo "${ECHO_T}$can_build_shared" >&6
8937 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8938 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8939 test "$can_build_shared" = "no" && enable_shared=no
8941 # On AIX, shared libraries and static libraries use the same namespace, and
8942 # are all built from PIC.
8945 test "$enable_shared" = yes && enable_static=no
8946 if test -n "$RANLIB"; then
8947 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8948 postinstall_cmds='$RANLIB $lib'
8953 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8954 test "$enable_shared" = yes && enable_static=no
8957 darwin* | rhapsody*)
8958 if test "$GCC" = yes; then
8959 archive_cmds_need_lc=no
8961 rhapsody* | darwin1.[012])
8962 allow_undefined_flag='-undefined suppress'
8965 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8966 allow_undefined_flag='-flat_namespace -undefined suppress'
8968 case ${MACOSX_DEPLOYMENT_TARGET} in
8970 allow_undefined_flag='-flat_namespace -undefined suppress'
8973 allow_undefined_flag='-undefined dynamic_lookup'
8979 output_verbose_link_cmd='echo'
8980 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8981 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8982 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8983 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}'
8984 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}'
8986 hardcode_automatic=yes
8987 hardcode_shlibpath_var=unsupported
8988 whole_archive_flag_spec='-all_load $convenience'
8989 link_all_deplibs=yes
8995 echo "$as_me:$LINENO: result: $enable_shared" >&5
8996 echo "${ECHO_T}$enable_shared" >&6
8998 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8999 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9000 # Make sure either enable_shared or enable_static is yes.
9001 test "$enable_shared" = yes || enable_static=yes
9002 echo "$as_me:$LINENO: result: $enable_static" >&5
9003 echo "${ECHO_T}$enable_static" >&6
9005 # The else clause should only fire when bootstrapping the
9006 # libtool distribution, otherwise you forgot to ship ltmain.sh
9007 # with your package, and you will get complaints that there are
9008 # no rules to generate ltmain.sh.
9009 if test -f "$ltmain"; then
9010 # See if we are running on zsh, and set the options which allow our commands through
9011 # without removal of \ escapes.
9012 if test -n "${ZSH_VERSION+set}" ; then
9013 setopt NO_GLOB_SUBST
9015 # Now quote all the things that may contain metacharacters while being
9016 # careful not to overquote the AC_SUBSTed values. We take copies of the
9017 # variables and quote the copies for generation of the libtool script.
9018 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9020 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9021 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9022 deplibs_check_method reload_flag reload_cmds need_locks \
9023 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9024 lt_cv_sys_global_symbol_to_c_name_address \
9025 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9026 old_postinstall_cmds old_postuninstall_cmds \
9030 lt_prog_compiler_wl \
9031 lt_prog_compiler_pic \
9032 lt_prog_compiler_static \
9033 lt_prog_compiler_no_builtin_flag \
9034 export_dynamic_flag_spec \
9035 thread_safe_flag_spec \
9036 whole_archive_flag_spec \
9037 enable_shared_with_static_runtimes \
9039 old_archive_from_new_cmds \
9044 compiler_lib_search_path \
9046 archive_expsym_cmds \
9048 postuninstall_cmds \
9049 old_archive_from_expsyms_cmds \
9050 allow_undefined_flag \
9052 export_symbols_cmds \
9053 hardcode_libdir_flag_spec \
9054 hardcode_libdir_flag_spec_ld \
9055 hardcode_libdir_separator \
9056 hardcode_automatic \
9058 module_expsym_cmds \
9059 lt_cv_prog_compiler_c_o \
9064 old_archive_cmds | \
9065 old_archive_from_new_cmds | \
9067 archive_expsym_cmds | \
9069 module_expsym_cmds | \
9070 old_archive_from_expsyms_cmds | \
9071 export_symbols_cmds | \
9072 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9073 postinstall_cmds | postuninstall_cmds | \
9074 old_postinstall_cmds | old_postuninstall_cmds | \
9075 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9076 # Double-quote double-evaled strings.
9077 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9080 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9086 *'\$0 --fallback-echo"')
9087 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9092 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9094 { echo "$as_me:$LINENO: creating $ofile" >&5
9095 echo "$as_me: creating $ofile" >&6;}
9097 cat <<__EOF__ >> "$cfgfile"
9100 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9101 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9102 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9104 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9105 # Free Software Foundation, Inc.
9107 # This file is part of GNU Libtool:
9108 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9110 # This program is free software; you can redistribute it and/or modify
9111 # it under the terms of the GNU General Public License as published by
9112 # the Free Software Foundation; either version 2 of the License, or
9113 # (at your option) any later version.
9115 # This program is distributed in the hope that it will be useful, but
9116 # WITHOUT ANY WARRANTY; without even the implied warranty of
9117 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9118 # General Public License for more details.
9120 # You should have received a copy of the GNU General Public License
9121 # along with this program; if not, write to the Free Software
9122 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9124 # As a special exception to the GNU General Public License, if you
9125 # distribute this file as part of a program that contains a
9126 # configuration script generated by Autoconf, you may include it under
9127 # the same distribution terms that you use for the rest of that program.
9129 # A sed program that does not truncate output.
9132 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9133 Xsed="$SED -e s/^X//"
9135 # The HP-UX ksh and POSIX shell print the target directory to stdout
9137 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9139 # The names of the tagged configurations supported by this script.
9142 # ### BEGIN LIBTOOL CONFIG
9144 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9146 # Shell to use when invoking shell scripts.
9149 # Whether or not to build shared libraries.
9150 build_libtool_libs=$enable_shared
9152 # Whether or not to build static libraries.
9153 build_old_libs=$enable_static
9155 # Whether or not to add -lc for building shared libraries.
9156 build_libtool_need_lc=$archive_cmds_need_lc
9158 # Whether or not to disallow shared libs when runtime libs are static
9159 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9161 # Whether or not to optimize for fast installation.
9162 fast_install=$enable_fast_install
9165 host_alias=$host_alias
9168 # An echo program that does not interpret backslashes.
9173 AR_FLAGS=$lt_AR_FLAGS
9178 # A language-specific compiler.
9181 # Is the compiler the GNU C compiler?
9187 # The linker used to build libraries.
9190 # Whether we need hard or soft links.
9193 # A BSD-compatible nm program.
9196 # A symbol stripping program
9199 # Used to examine libraries when file_magic_cmd begins "file"
9200 MAGIC_CMD=$MAGIC_CMD
9202 # Used on cygwin: DLL creation program.
9205 # Used on cygwin: object dumper.
9208 # Used on cygwin: assembler.
9211 # The name of the directory that contains temporary libtool files.
9214 # How to create reloadable object files.
9215 reload_flag=$lt_reload_flag
9216 reload_cmds=$lt_reload_cmds
9218 # How to pass a linker flag through the compiler.
9219 wl=$lt_lt_prog_compiler_wl
9221 # Object file suffix (normally "o").
9224 # Old archive suffix (normally "a").
9227 # Shared library suffix (normally ".so").
9230 # Executable file suffix (normally "").
9233 # Additional compiler flags for building library objects.
9234 pic_flag=$lt_lt_prog_compiler_pic
9237 # What is the maximum length of a command?
9238 max_cmd_len=$lt_cv_sys_max_cmd_len
9240 # Does compiler simultaneously support -c and -o options?
9241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9243 # Must we lock files when doing compilation ?
9244 need_locks=$lt_need_locks
9246 # Do we need the lib prefix for modules?
9247 need_lib_prefix=$need_lib_prefix
9249 # Do we need a version for libraries?
9250 need_version=$need_version
9252 # Whether dlopen is supported.
9253 dlopen_support=$enable_dlopen
9255 # Whether dlopen of programs is supported.
9256 dlopen_self=$enable_dlopen_self
9258 # Whether dlopen of statically linked programs is supported.
9259 dlopen_self_static=$enable_dlopen_self_static
9261 # Compiler flag to prevent dynamic linking.
9262 link_static_flag=$lt_lt_prog_compiler_static
9264 # Compiler flag to turn off builtin functions.
9265 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9267 # Compiler flag to allow reflexive dlopens.
9268 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9270 # Compiler flag to generate shared objects directly from archives.
9271 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9273 # Compiler flag to generate thread-safe objects.
9274 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9276 # Library versioning type.
9277 version_type=$version_type
9279 # Format of library name prefix.
9280 libname_spec=$lt_libname_spec
9282 # List of archive names. First name is the real one, the rest are links.
9283 # The last name is the one that the linker finds with -lNAME.
9284 library_names_spec=$lt_library_names_spec
9286 # The coded name of the library, if different from the real name.
9287 soname_spec=$lt_soname_spec
9289 # Commands used to build and install an old-style archive.
9291 old_archive_cmds=$lt_old_archive_cmds
9292 old_postinstall_cmds=$lt_old_postinstall_cmds
9293 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9295 # Create an old-style archive from a shared archive.
9296 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9298 # Create a temporary old-style archive to link instead of a shared archive.
9299 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9301 # Commands used to build and install a shared archive.
9302 archive_cmds=$lt_archive_cmds
9303 archive_expsym_cmds=$lt_archive_expsym_cmds
9304 postinstall_cmds=$lt_postinstall_cmds
9305 postuninstall_cmds=$lt_postuninstall_cmds
9307 # Commands used to build a loadable module (assumed same as above if empty)
9308 module_cmds=$lt_module_cmds
9309 module_expsym_cmds=$lt_module_expsym_cmds
9311 # Commands to strip libraries.
9312 old_striplib=$lt_old_striplib
9313 striplib=$lt_striplib
9315 # Dependencies to place before the objects being linked to create a
9317 predep_objects=$lt_predep_objects
9319 # Dependencies to place after the objects being linked to create a
9321 postdep_objects=$lt_postdep_objects
9323 # Dependencies to place before the objects being linked to create a
9327 # Dependencies to place after the objects being linked to create a
9329 postdeps=$lt_postdeps
9331 # The library search path used internally by the compiler when linking
9333 compiler_lib_search_path=$lt_compiler_lib_search_path
9335 # Method to check whether dependent libraries are shared objects.
9336 deplibs_check_method=$lt_deplibs_check_method
9338 # Command to use when deplibs_check_method == file_magic.
9339 file_magic_cmd=$lt_file_magic_cmd
9341 # Flag that allows shared libraries with undefined symbols to be built.
9342 allow_undefined_flag=$lt_allow_undefined_flag
9344 # Flag that forces no undefined symbols.
9345 no_undefined_flag=$lt_no_undefined_flag
9347 # Commands used to finish a libtool library installation in a directory.
9348 finish_cmds=$lt_finish_cmds
9350 # Same as above, but a single script fragment to be evaled but not shown.
9351 finish_eval=$lt_finish_eval
9353 # Take the output of nm and produce a listing of raw symbols and C names.
9354 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9356 # Transform the output of nm in a proper C declaration
9357 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9359 # Transform the output of nm in a C name address pair
9360 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9362 # This is the shared library runtime path variable.
9363 runpath_var=$runpath_var
9365 # This is the shared library path variable.
9366 shlibpath_var=$shlibpath_var
9368 # Is shlibpath searched before the hard-coded library search path?
9369 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9371 # How to hardcode a shared library path into an executable.
9372 hardcode_action=$hardcode_action
9374 # Whether we should hardcode library paths into libraries.
9375 hardcode_into_libs=$hardcode_into_libs
9377 # Flag to hardcode \$libdir into a binary during linking.
9378 # This must work even if \$libdir does not exist.
9379 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9381 # If ld is used when linking, flag to hardcode \$libdir into
9382 # a binary during linking. This must work even if \$libdir does
9384 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9386 # Whether we need a single -rpath flag with a separated argument.
9387 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9389 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9391 hardcode_direct=$hardcode_direct
9393 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9395 hardcode_minus_L=$hardcode_minus_L
9397 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9398 # the resulting binary.
9399 hardcode_shlibpath_var=$hardcode_shlibpath_var
9401 # Set to yes if building a shared library automatically hardcodes DIR into the library
9402 # and all subsequent libraries and executables linked against it.
9403 hardcode_automatic=$hardcode_automatic
9405 # Variables whose values should be saved in libtool wrapper scripts and
9406 # restored at relink time.
9407 variables_saved_for_relink="$variables_saved_for_relink"
9409 # Whether libtool must link a program against all its dependency libraries.
9410 link_all_deplibs=$link_all_deplibs
9412 # Compile-time system search path for libraries
9413 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9415 # Run-time system search path for libraries
9416 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9418 # Fix the shell variable \$srcfile for the compiler.
9419 fix_srcfile_path="$fix_srcfile_path"
9421 # Set to yes if exported symbols are required.
9422 always_export_symbols=$always_export_symbols
9424 # The commands to list exported symbols.
9425 export_symbols_cmds=$lt_export_symbols_cmds
9427 # The commands to extract the exported symbol list from a shared archive.
9428 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9430 # Symbols that should not be listed in the preloaded symbols.
9431 exclude_expsyms=$lt_exclude_expsyms
9433 # Symbols that must always be exported.
9434 include_expsyms=$lt_include_expsyms
9436 # ### END LIBTOOL CONFIG
9443 cat <<\EOF >> "$cfgfile"
9445 # AIX sometimes has problems with the GCC collect2 program. For some
9446 # reason, if we set the COLLECT_NAMES environment variable, the problems
9447 # vanish in a puff of smoke.
9448 if test "X${COLLECT_NAMES+set}" != Xset; then
9450 export COLLECT_NAMES
9456 # We use sed instead of cat because bash on DJGPP gets confused if
9457 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9458 # text mode, it properly converts lines to CR/LF. This bash problem
9459 # is reportedly fixed, but why not run on old versions too?
9460 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9462 mv -f "$cfgfile" "$ofile" || \
9463 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9467 # If there is no Makefile yet, we rely on a make rule to execute
9468 # `config.status --recheck' to rerun these tests and create the
9469 # libtool script then.
9470 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9471 if test -f "$ltmain_in"; then
9472 test -f Makefile && make "$ltmain"
9478 ac_cpp='$CPP $CPPFLAGS'
9479 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9480 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9481 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9486 # Check whether --with-tags or --without-tags was given.
9487 if test "${with_tags+set}" = set; then
9488 withval="$with_tags"
9492 if test -f "$ltmain" && test -n "$tagnames"; then
9493 if test ! -f "${ofile}"; then
9494 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9495 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9498 if test -z "$LTCC"; then
9499 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9500 if test -z "$LTCC"; then
9501 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9502 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9504 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9505 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9509 # Extract list of available tagged configurations in $ofile.
9510 # Note that this assumes the entire list is on one line.
9511 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9513 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9514 for tagname in $tagnames; do
9516 # Check whether tagname contains only valid characters
9517 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9519 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9520 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9521 { (exit 1); exit 1; }; }
9525 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9527 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9528 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9529 { (exit 1); exit 1; }; }
9532 # Update the list of available tags.
9533 if test -n "$tagname"; then
9534 echo appending configuration tag \"$tagname\" to $ofile
9538 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9540 ac_cpp='$CXXCPP $CPPFLAGS'
9541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9548 archive_cmds_need_lc_CXX=no
9549 allow_undefined_flag_CXX=
9550 always_export_symbols_CXX=no
9551 archive_expsym_cmds_CXX=
9552 export_dynamic_flag_spec_CXX=
9553 hardcode_direct_CXX=no
9554 hardcode_libdir_flag_spec_CXX=
9555 hardcode_libdir_flag_spec_ld_CXX=
9556 hardcode_libdir_separator_CXX=
9557 hardcode_minus_L_CXX=no
9558 hardcode_automatic_CXX=no
9560 module_expsym_cmds_CXX=
9561 link_all_deplibs_CXX=unknown
9562 old_archive_cmds_CXX=$old_archive_cmds
9563 no_undefined_flag_CXX=
9564 whole_archive_flag_spec_CXX=
9565 enable_shared_with_static_runtimes_CXX=no
9567 # Dependencies to place before and after the object being linked:
9569 postdep_objects_CXX=
9572 compiler_lib_search_path_CXX=
9574 # Source file extension for C++ test sources.
9577 # Object file extension for compiled C++ test sources.
9581 # Code to be used in simple compile tests
9582 lt_simple_compile_test_code="int some_variable = 0;\n"
9584 # Code to be used in simple link tests
9585 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9587 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9589 # If no C compiler was specified, use CC.
9592 # Allow CC to be a program name with arguments.
9596 # Allow CC to be a program name with arguments.
9601 lt_save_with_gnu_ld=$with_gnu_ld
9602 lt_save_path_LD=$lt_cv_path_LD
9603 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9604 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9606 unset lt_cv_prog_gnu_ld
9608 if test -n "${lt_cv_path_LDCXX+set}"; then
9609 lt_cv_path_LD=$lt_cv_path_LDCXX
9613 test -z "${LDCXX+set}" || LD=$LDCXX
9617 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9619 # We don't want -fno-exception wen compiling C++ code, so set the
9620 # no_builtin_flag separately
9621 if test "$GXX" = yes; then
9622 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9624 lt_prog_compiler_no_builtin_flag_CXX=
9627 if test "$GXX" = yes; then
9628 # Set up default GNU C++ configuration
9631 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9632 if test "${with_gnu_ld+set}" = set; then
9633 withval="$with_gnu_ld"
9634 test "$withval" = no || with_gnu_ld=yes
9639 if test "$GCC" = yes; then
9640 # Check if gcc -print-prog-name=ld gives a path.
9641 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9642 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9645 # gcc leaves a trailing carriage return which upsets mingw
9646 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9648 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9651 # Accept absolute paths.
9653 re_direlt='/[^/][^/]*/\.\./'
9654 # Canonicalize the pathname of ld
9655 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9656 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9657 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9659 test -z "$LD" && LD="$ac_prog"
9662 # If it fails, then pretend we aren't using GCC.
9666 # If it is relative, then search for the first ld in PATH.
9670 elif test "$with_gnu_ld" = yes; then
9671 echo "$as_me:$LINENO: checking for GNU ld" >&5
9672 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9674 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9675 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9677 if test "${lt_cv_path_LD+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9680 if test -z "$LD"; then
9681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9682 for ac_dir in $PATH; do
9684 test -z "$ac_dir" && ac_dir=.
9685 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9686 lt_cv_path_LD="$ac_dir/$ac_prog"
9687 # Check to see if the program is GNU ld. I'd rather use --version,
9688 # but apparently some GNU ld's only accept -v.
9689 # Break only if it was the GNU/non-GNU ld that we prefer.
9690 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9691 *GNU* | *'with BFD'*)
9692 test "$with_gnu_ld" != no && break
9695 test "$with_gnu_ld" != yes && break
9702 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9707 if test -n "$LD"; then
9708 echo "$as_me:$LINENO: result: $LD" >&5
9709 echo "${ECHO_T}$LD" >&6
9711 echo "$as_me:$LINENO: result: no" >&5
9712 echo "${ECHO_T}no" >&6
9714 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9715 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9716 { (exit 1); exit 1; }; }
9717 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9718 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9719 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9720 echo $ECHO_N "(cached) $ECHO_C" >&6
9722 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9723 case `$LD -v 2>&1 </dev/null` in
9724 *GNU* | *'with BFD'*)
9725 lt_cv_prog_gnu_ld=yes
9728 lt_cv_prog_gnu_ld=no
9732 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9733 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9734 with_gnu_ld=$lt_cv_prog_gnu_ld
9738 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9739 # archiving commands below assume that GNU ld is being used.
9740 if test "$with_gnu_ld" = yes; then
9741 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9742 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'
9744 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9745 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9747 # If archive_cmds runs LD, not CC, wlarc should be empty
9748 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9749 # investigate it a little bit more. (MM)
9752 # ancient GNU ld didn't support --whole-archive et. al.
9753 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9754 grep 'no-whole-archive' > /dev/null; then
9755 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9757 whole_archive_flag_spec_CXX=
9763 # A generic and very simple default shared library creation
9764 # command for GNU C++ for the case where it uses the native
9765 # linker, instead of GNU ld. If possible, this setting should
9766 # overridden to take advantage of the native linker features on
9767 # the platform it is being used on.
9768 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9771 # Commands to make compiler produce verbose output that lists
9772 # what "hidden" libraries, object files and flags are used when
9773 # linking a shared library.
9774 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9782 # PORTME: fill in a description of your system's C++ link characteristics
9783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9788 # FIXME: insert proper C++ library support
9792 if test "$host_cpu" = ia64; then
9793 # On IA64, the linker does run time linking by default, so we don't
9794 # have to do anything special.
9795 aix_use_runtimelinking=no
9796 exp_sym_flag='-Bexport'
9799 aix_use_runtimelinking=no
9801 # Test if we are trying to use run time linking or normal
9802 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9803 # need to do runtime linking.
9804 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9805 for ld_flag in $LDFLAGS; do
9808 aix_use_runtimelinking=yes
9815 exp_sym_flag='-bexport'
9816 no_entry_flag='-bnoentry'
9819 # When large executables or shared objects are built, AIX ld can
9820 # have problems creating the table of contents. If linking a library
9821 # or program results in "error TOC overflow" add -mminimal-toc to
9822 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9823 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9826 hardcode_direct_CXX=yes
9827 hardcode_libdir_separator_CXX=':'
9828 link_all_deplibs_CXX=yes
9830 if test "$GXX" = yes; then
9831 case $host_os in aix4.012|aix4.012.*)
9832 # We only want to do this on AIX 4.2 and lower, the check
9833 # below for broken collect2 doesn't work under 4.3+
9834 collect2name=`${CC} -print-prog-name=collect2`
9835 if test -f "$collect2name" && \
9836 strings "$collect2name" | grep resolve_lib_name >/dev/null
9838 # We have reworked collect2
9839 hardcode_direct_CXX=yes
9841 # We have old collect2
9842 hardcode_direct_CXX=unsupported
9843 # It fails to find uninstalled libraries when the uninstalled
9844 # path is not listed in the libpath. Setting hardcode_minus_L
9845 # to unsupported forces relinking
9846 hardcode_minus_L_CXX=yes
9847 hardcode_libdir_flag_spec_CXX='-L$libdir'
9848 hardcode_libdir_separator_CXX=
9851 shared_flag='-shared'
9854 if test "$host_cpu" = ia64; then
9855 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9856 # chokes on -Wl,-G. The following line is correct:
9859 if test "$aix_use_runtimelinking" = yes; then
9860 shared_flag='${wl}-G'
9862 shared_flag='${wl}-bM:SRE'
9867 # It seems that -bexpall does not export symbols beginning with
9868 # underscore (_), so it is better to generate a list of symbols to export.
9869 always_export_symbols_CXX=yes
9870 if test "$aix_use_runtimelinking" = yes; then
9871 # Warning - without using the other runtime loading flags (-brtl),
9872 # -berok will link without error, but may produce a broken library.
9873 allow_undefined_flag_CXX='-berok'
9874 # Determine the default libpath from the value encoded in an empty executable.
9875 cat >conftest.$ac_ext <<_ACEOF
9878 cat confdefs.h >>conftest.$ac_ext
9879 cat >>conftest.$ac_ext <<_ACEOF
9880 /* end confdefs.h. */
9890 rm -f conftest.$ac_objext conftest$ac_exeext
9891 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9892 (eval $ac_link) 2>conftest.er1
9894 grep -v '^ *+' conftest.er1 >conftest.err
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } &&
9899 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9900 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); }; } &&
9905 { ac_try='test -s conftest$ac_exeext'
9906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); }; }; then
9912 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9914 # Check for a 64-bit object if we didn't find anything.
9915 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; }
9918 echo "$as_me: failed program was:" >&5
9919 sed 's/^/| /' conftest.$ac_ext >&5
9922 rm -f conftest.err conftest.$ac_objext \
9923 conftest$ac_exeext conftest.$ac_ext
9924 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9926 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9928 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"
9930 if test "$host_cpu" = ia64; then
9931 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9932 allow_undefined_flag_CXX="-z nodefs"
9933 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"
9935 # Determine the default libpath from the value encoded in an empty executable.
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9953 (eval $ac_link) 2>conftest.er1
9955 grep -v '^ *+' conftest.er1 >conftest.err
9957 cat conftest.err >&5
9958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9959 (exit $ac_status); } &&
9960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); }; } &&
9966 { ac_try='test -s conftest$ac_exeext'
9967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); }; }; then
9973 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9975 # Check for a 64-bit object if we didn't find anything.
9976 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; }
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9983 rm -f conftest.err conftest.$ac_objext \
9984 conftest$ac_exeext conftest.$ac_ext
9985 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9987 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988 # Warning - without using the other run time loading flags,
9989 # -berok will link without error, but may produce a broken library.
9990 no_undefined_flag_CXX=' ${wl}-bernotok'
9991 allow_undefined_flag_CXX=' ${wl}-berok'
9992 # -bexpall does not export symbols beginning with underscore (_)
9993 always_export_symbols_CXX=yes
9994 # Exported symbols can be pulled into shared objects from archives
9995 whole_archive_flag_spec_CXX=' '
9996 archive_cmds_need_lc_CXX=yes
9997 # This is similar to how AIX traditionally builds it's shared libraries.
9998 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'
10003 case $cc_basename in
10005 # FIXME: insert proper C++ library support
10011 cygwin* | mingw* | pw32*)
10012 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10013 # as there is no search path for DLLs.
10014 hardcode_libdir_flag_spec_CXX='-L$libdir'
10015 allow_undefined_flag_CXX=unsupported
10016 always_export_symbols_CXX=no
10017 enable_shared_with_static_runtimes_CXX=yes
10019 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10020 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'
10021 # If the export-symbols file already is a .def file (1st line
10022 # is EXPORTS), use it as is; otherwise, prepend...
10023 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10024 cp $export_symbols $output_objdir/$soname.def;
10026 echo EXPORTS > $output_objdir/$soname.def;
10027 cat $export_symbols >> $output_objdir/$soname.def;
10029 $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'
10035 darwin* | rhapsody*)
10036 if test "$GXX" = yes; then
10037 archive_cmds_need_lc_CXX=no
10039 rhapsody* | darwin1.[012])
10040 allow_undefined_flag_CXX='-undefined suppress'
10043 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10044 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10046 case ${MACOSX_DEPLOYMENT_TARGET} in
10048 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10051 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10057 lt_int_apple_cc_single_mod=no
10058 output_verbose_link_cmd='echo'
10059 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10060 lt_int_apple_cc_single_mod=yes
10062 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10063 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10065 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'
10067 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10069 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10070 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10071 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}'
10073 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}'
10075 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}'
10076 hardcode_direct_CXX=no
10077 hardcode_automatic_CXX=yes
10078 hardcode_shlibpath_var_CXX=unsupported
10079 whole_archive_flag_spec_CXX='-all_load $convenience'
10080 link_all_deplibs_CXX=yes
10087 case $cc_basename in
10089 # FIXME: insert proper C++ library support
10093 # Green Hills C++ Compiler
10094 # FIXME: insert proper C++ library support
10098 # FIXME: insert proper C++ library support
10104 # C++ shared libraries reported to be fairly broken before switch to ELF
10108 archive_cmds_need_lc_CXX=no
10110 freebsd* | kfreebsd*-gnu)
10111 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10118 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10119 hardcode_libdir_separator_CXX=:
10120 export_dynamic_flag_spec_CXX='${wl}-E'
10121 hardcode_direct_CXX=yes
10122 hardcode_minus_L_CXX=yes # Not in the search PATH,
10123 # but as the default
10124 # location of the library.
10126 case $cc_basename in
10128 # FIXME: insert proper C++ library support
10132 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'
10133 # Commands to make compiler produce verbose output that lists
10134 # what "hidden" libraries, object files and flags are used when
10135 # linking a shared library.
10137 # There doesn't appear to be a way to prevent this compiler from
10138 # explicitly linking system object files so we need to strip them
10139 # from the output so that they don't get included in the library
10141 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10144 if test "$GXX" = yes; then
10145 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'
10147 # FIXME: insert proper C++ library support
10154 if test $with_gnu_ld = no; then
10155 case "$host_cpu" in
10157 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10158 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10159 hardcode_libdir_separator_CXX=:
10162 hardcode_libdir_flag_spec_CXX='-L$libdir'
10165 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10166 hardcode_libdir_separator_CXX=:
10167 export_dynamic_flag_spec_CXX='${wl}-E'
10171 case "$host_cpu" in
10173 hardcode_direct_CXX=no
10174 hardcode_shlibpath_var_CXX=no
10177 hardcode_direct_CXX=no
10178 hardcode_shlibpath_var_CXX=no
10179 hardcode_minus_L_CXX=yes # Not in the search PATH,
10180 # but as the default
10181 # location of the library.
10184 hardcode_direct_CXX=yes
10185 hardcode_minus_L_CXX=yes # Not in the search PATH,
10186 # but as the default
10187 # location of the library.
10191 case $cc_basename in
10193 # FIXME: insert proper C++ library support
10197 case "$host_cpu" in
10199 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10202 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10205 # Commands to make compiler produce verbose output that lists
10206 # what "hidden" libraries, object files and flags are used when
10207 # linking a shared library.
10209 # There doesn't appear to be a way to prevent this compiler from
10210 # explicitly linking system object files so we need to strip them
10211 # from the output so that they don't get included in the library
10213 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'
10216 if test "$GXX" = yes; then
10217 if test $with_gnu_ld = no; then
10218 case "$host_cpu" in
10220 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10223 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'
10228 # FIXME: insert proper C++ library support
10235 case $cc_basename in
10238 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'
10240 # Archives containing C++ object files must be created using
10241 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10242 # necessary to make sure instantiated templates are included
10244 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10247 if test "$GXX" = yes; then
10248 if test "$with_gnu_ld" = no; then
10249 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'
10251 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'
10254 link_all_deplibs_CXX=yes
10257 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10258 hardcode_libdir_separator_CXX=:
10261 case $cc_basename in
10263 # Kuck and Associates, Inc. (KAI) C++ Compiler
10265 # KCC will only create a shared library if the output file
10266 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10267 # to its proper name (with version) after linking.
10268 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'
10269 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'
10270 # Commands to make compiler produce verbose output that lists
10271 # what "hidden" libraries, object files and flags are used when
10272 # linking a shared library.
10274 # There doesn't appear to be a way to prevent this compiler from
10275 # explicitly linking system object files so we need to strip them
10276 # from the output so that they don't get included in the library
10278 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'
10280 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10281 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10283 # Archives containing C++ object files must be created using
10284 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10285 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10290 archive_cmds_need_lc_CXX=no
10291 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10292 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'
10293 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10294 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10295 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10299 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10300 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'
10302 runpath_var=LD_RUN_PATH
10303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10304 hardcode_libdir_separator_CXX=:
10306 # Commands to make compiler produce verbose output that lists
10307 # what "hidden" libraries, object files and flags are used when
10308 # linking a shared library.
10310 # There doesn't appear to be a way to prevent this compiler from
10311 # explicitly linking system object files so we need to strip them
10312 # from the output so that they don't get included in the library
10314 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'
10319 # FIXME: insert proper C++ library support
10323 # FIXME: insert proper C++ library support
10327 case $cc_basename in
10329 # FIXME: insert proper C++ library support
10333 # FIXME: insert proper C++ library support
10339 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10340 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10342 hardcode_libdir_flag_spec_CXX='-R$libdir'
10343 hardcode_direct_CXX=yes
10344 hardcode_shlibpath_var_CXX=no
10346 # Workaround some broken pre-1.5 toolchains
10347 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10350 case $cc_basename in
10352 # Kuck and Associates, Inc. (KAI) C++ Compiler
10354 # KCC will only create a shared library if the output file
10355 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10356 # to its proper name (with version) after linking.
10357 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'
10359 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10360 hardcode_libdir_separator_CXX=:
10362 # Archives containing C++ object files must be created using
10363 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10364 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10368 # Rational C++ 2.4.1
10369 # FIXME: insert proper C++ library support
10373 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10374 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'
10376 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10377 hardcode_libdir_separator_CXX=:
10379 # Commands to make compiler produce verbose output that lists
10380 # what "hidden" libraries, object files and flags are used when
10381 # linking a shared library.
10383 # There doesn't appear to be a way to prevent this compiler from
10384 # explicitly linking system object files so we need to strip them
10385 # from the output so that they don't get included in the library
10387 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'
10390 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10391 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10392 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'
10394 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10395 hardcode_libdir_separator_CXX=:
10397 # Commands to make compiler produce verbose output that lists
10398 # what "hidden" libraries, object files and flags are used when
10399 # linking a shared library.
10400 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10403 # FIXME: insert proper C++ library support
10410 case $cc_basename in
10412 # Kuck and Associates, Inc. (KAI) C++ Compiler
10414 # KCC will only create a shared library if the output file
10415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10416 # to its proper name (with version) after linking.
10417 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'
10419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10420 hardcode_libdir_separator_CXX=:
10422 # Archives containing C++ object files must be created using
10423 # the KAI C++ compiler.
10424 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10427 # Rational C++ 2.4.1
10428 # FIXME: insert proper C++ library support
10432 allow_undefined_flag_CXX=' -expect_unresolved \*'
10433 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'
10434 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10435 echo "-hidden">> $lib.exp~
10436 $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~
10439 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10440 hardcode_libdir_separator_CXX=:
10442 # Commands to make compiler produce verbose output that lists
10443 # what "hidden" libraries, object files and flags are used when
10444 # linking a shared library.
10446 # There doesn't appear to be a way to prevent this compiler from
10447 # explicitly linking system object files so we need to strip them
10448 # from the output so that they don't get included in the library
10450 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'
10453 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10454 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10455 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'
10457 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10458 hardcode_libdir_separator_CXX=:
10460 # Commands to make compiler produce verbose output that lists
10461 # what "hidden" libraries, object files and flags are used when
10462 # linking a shared library.
10463 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10466 # FIXME: insert proper C++ library support
10473 # FIXME: insert proper C++ library support
10477 archive_cmds_need_lc_CXX=no
10478 case $cc_basename in
10480 # FIXME: insert proper C++ library support
10484 # FIXME: insert proper C++ library support
10490 case $cc_basename in
10493 # FIXME: insert proper C++ library support
10498 # FIXME: insert proper C++ library support
10502 # FIXME: insert proper C++ library support
10508 case $cc_basename in
10510 # Sun C++ 4.2, 5.x and Centerline C++
10511 no_undefined_flag_CXX=' -zdefs'
10512 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10513 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10514 $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'
10516 hardcode_libdir_flag_spec_CXX='-R$libdir'
10517 hardcode_shlibpath_var_CXX=no
10519 solaris2.0-5 | solaris2.0-5.*) ;;
10521 # The C++ compiler is used as linker so we must use $wl
10522 # flag to pass the commands to the underlying system
10524 # Supported since Solaris 2.6 (maybe 2.5.1?)
10525 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10528 link_all_deplibs_CXX=yes
10530 # Commands to make compiler produce verbose output that lists
10531 # what "hidden" libraries, object files and flags are used when
10532 # linking a shared library.
10534 # There doesn't appear to be a way to prevent this compiler from
10535 # explicitly linking system object files so we need to strip them
10536 # from the output so that they don't get included in the library
10538 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'
10540 # Archives containing C++ object files must be created using
10541 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10542 # necessary to make sure instantiated templates are included
10544 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10547 # Green Hills C++ Compiler
10548 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10550 # The C++ compiler must be used to create the archive.
10551 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10554 # GNU C++ compiler with Solaris linker
10555 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10556 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10557 if $CC --version | grep -v '^2\.7' > /dev/null; then
10558 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10559 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10560 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10562 # Commands to make compiler produce verbose output that lists
10563 # what "hidden" libraries, object files and flags are used when
10564 # linking a shared library.
10565 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10567 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10569 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10570 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10571 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10573 # Commands to make compiler produce verbose output that lists
10574 # what "hidden" libraries, object files and flags are used when
10575 # linking a shared library.
10576 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10579 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10584 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10585 archive_cmds_need_lc_CXX=no
10588 case $cc_basename in
10590 # NonStop-UX NCC 3.20
10591 # FIXME: insert proper C++ library support
10595 # FIXME: insert proper C++ library support
10601 # FIXME: insert proper C++ library support
10605 # FIXME: insert proper C++ library support
10609 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10610 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10611 test "$ld_shlibs_CXX" = no && can_build_shared=no
10617 cat > conftest.$ac_ext <<EOF
10621 Foo (void) { a = 0; }
10627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10628 (eval $ac_compile) 2>&5
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; then
10632 # Parse the compiler output and extract the necessary
10633 # objects, libraries and library flags.
10635 # Sentinel used to keep track of whether or not we are before
10636 # the conftest object file.
10637 pre_test_object_deps_done=no
10639 # The `*' in the case matches for architectures that use `case' in
10640 # $output_verbose_cmd can trigger glob expansion during the loop
10641 # eval without this substitution.
10642 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10644 for p in `eval $output_verbose_link_cmd`; do
10648 # Some compilers place space between "-{L,R}" and the path.
10649 # Remove the space.
10650 if test $p = "-L" \
10651 || test $p = "-R"; then
10658 if test "$pre_test_object_deps_done" = no; then
10661 # Internal compiler library paths should come after those
10662 # provided the user. The postdeps already come after the
10663 # user supplied libs so there is no need to process them.
10664 if test -z "$compiler_lib_search_path_CXX"; then
10665 compiler_lib_search_path_CXX="${prev}${p}"
10667 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10670 # The "-l" case would never come before the object being
10671 # linked, so don't bother handling this case.
10674 if test -z "$postdeps_CXX"; then
10675 postdeps_CXX="${prev}${p}"
10677 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10683 # This assumes that the test object file only shows up
10684 # once in the compiler output.
10685 if test "$p" = "conftest.$objext"; then
10686 pre_test_object_deps_done=yes
10690 if test "$pre_test_object_deps_done" = no; then
10691 if test -z "$predep_objects_CXX"; then
10692 predep_objects_CXX="$p"
10694 predep_objects_CXX="$predep_objects_CXX $p"
10697 if test -z "$postdep_objects_CXX"; then
10698 postdep_objects_CXX="$p"
10700 postdep_objects_CXX="$postdep_objects_CXX $p"
10705 *) ;; # Ignore the rest.
10713 echo "libtool.m4: error: problem compiling CXX test program"
10716 $rm -f confest.$objext
10718 case " $postdeps_CXX " in
10719 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10722 lt_prog_compiler_wl_CXX=
10723 lt_prog_compiler_pic_CXX=
10724 lt_prog_compiler_static_CXX=
10726 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10727 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10729 # C++ specific cases for pic, static, wl, etc.
10730 if test "$GXX" = yes; then
10731 lt_prog_compiler_wl_CXX='-Wl,'
10732 lt_prog_compiler_static_CXX='-static'
10736 # All AIX code is PIC.
10737 if test "$host_cpu" = ia64; then
10738 # AIX 5 now supports IA64 processor
10739 lt_prog_compiler_static_CXX='-Bstatic'
10743 # FIXME: we need at least 68020 code to build shared libraries, but
10744 # adding the `-m68020' flag to GCC prevents building anything better,
10746 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10748 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10749 # PIC is the default for these OSes.
10751 mingw* | os2* | pw32*)
10752 # This hack is so that the source file can tell whether it is being
10753 # built for inclusion in a dll (and should export symbols for example).
10754 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10756 darwin* | rhapsody*)
10757 # PIC is the default on this platform
10758 # Common symbols not allowed in MH_DYLIB files
10759 lt_prog_compiler_pic_CXX='-fno-common'
10762 # DJGPP does not support shared libraries at all
10763 lt_prog_compiler_pic_CXX=
10766 if test -d /usr/nec; then
10767 lt_prog_compiler_pic_CXX=-Kconform_pic
10771 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10772 # not for PA HP-UX.
10773 case "$host_cpu" in
10777 lt_prog_compiler_pic_CXX='-fPIC'
10782 lt_prog_compiler_pic_CXX='-fPIC'
10788 # All AIX code is PIC.
10789 if test "$host_cpu" = ia64; then
10790 # AIX 5 now supports IA64 processor
10791 lt_prog_compiler_static_CXX='-Bstatic'
10793 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10797 case $cc_basename in
10799 # Green Hills C++ Compiler
10800 # _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"
10805 case $cc_basename in
10807 lt_prog_compiler_pic_CXX='-KPIC'
10810 # Green Hills C++ Compiler
10811 lt_prog_compiler_pic_CXX='-pic'
10817 freebsd* | kfreebsd*-gnu)
10818 # FreeBSD uses GNU C++
10820 hpux9* | hpux10* | hpux11*)
10821 case $cc_basename in
10823 lt_prog_compiler_wl_CXX='-Wl,'
10824 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10825 if test "$host_cpu" != ia64; then
10826 lt_prog_compiler_pic_CXX='+Z'
10830 lt_prog_compiler_wl_CXX='-Wl,'
10831 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10832 case "$host_cpu" in
10837 lt_prog_compiler_pic_CXX='+Z'
10845 irix5* | irix6* | nonstopux*)
10846 case $cc_basename in
10848 lt_prog_compiler_wl_CXX='-Wl,'
10849 lt_prog_compiler_static_CXX='-non_shared'
10850 # CC pic flag -KPIC is the default.
10857 case $cc_basename in
10860 lt_prog_compiler_wl_CXX='--backend -Wl,'
10861 lt_prog_compiler_pic_CXX='-fPIC'
10865 lt_prog_compiler_wl_CXX='-Wl,'
10866 lt_prog_compiler_pic_CXX='-KPIC'
10867 lt_prog_compiler_static_CXX='-static'
10871 # Make sure the PIC flag is empty. It appears that all Alpha
10872 # Linux and Compaq Tru64 Unix objects are PIC.
10873 lt_prog_compiler_pic_CXX=
10874 lt_prog_compiler_static_CXX='-non_shared'
10885 case $cc_basename in
10887 lt_prog_compiler_pic_CXX='-W c,exportall'
10895 osf3* | osf4* | osf5*)
10896 case $cc_basename in
10898 lt_prog_compiler_wl_CXX='--backend -Wl,'
10901 # Rational C++ 2.4.1
10902 lt_prog_compiler_pic_CXX='-pic'
10905 # Digital/Compaq C++
10906 lt_prog_compiler_wl_CXX='-Wl,'
10907 # Make sure the PIC flag is empty. It appears that all Alpha
10908 # Linux and Compaq Tru64 Unix objects are PIC.
10909 lt_prog_compiler_pic_CXX=
10910 lt_prog_compiler_static_CXX='-non_shared'
10919 case $cc_basename in
10921 lt_prog_compiler_pic_CXX='-fPIC'
10928 case $cc_basename in
10930 # Sun C++ 4.2, 5.x and Centerline C++
10931 lt_prog_compiler_pic_CXX='-KPIC'
10932 lt_prog_compiler_static_CXX='-Bstatic'
10933 lt_prog_compiler_wl_CXX='-Qoption ld '
10936 # Green Hills C++ Compiler
10937 lt_prog_compiler_pic_CXX='-PIC'
10944 case $cc_basename in
10947 lt_prog_compiler_pic_CXX='-pic'
10948 lt_prog_compiler_static_CXX='-Bstatic'
10952 lt_prog_compiler_pic_CXX='-pic'
10959 case $cc_basename in
10961 # NonStop-UX NCC 3.20
10962 lt_prog_compiler_pic_CXX='-KPIC'
10973 lt_prog_compiler_can_build_shared_CXX=no
10978 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10979 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10982 # Check to make sure the PIC flag actually works.
10984 if test -n "$lt_prog_compiler_pic_CXX"; then
10986 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10987 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10988 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10989 echo $ECHO_N "(cached) $ECHO_C" >&6
10991 lt_prog_compiler_pic_works_CXX=no
10992 ac_outfile=conftest.$ac_objext
10993 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10994 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10995 # Insert the option either (1) after the last *FLAGS variable, or
10996 # (2) before a word containing "conftest.", or (3) at the end.
10997 # Note that $ac_compile itself does not contain backslashes and begins
10998 # with a dollar sign (not a hyphen), so the echo should work correctly.
10999 # The option is referenced via a variable to avoid confusing sed.
11000 lt_compile=`echo "$ac_compile" | $SED \
11001 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11002 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11003 -e 's:$: $lt_compiler_flag:'`
11004 (eval echo "\"\$as_me:11004: $lt_compile\"" >&5)
11005 (eval "$lt_compile" 2>conftest.err)
11007 cat conftest.err >&5
11008 echo "$as_me:11008: \$? = $ac_status" >&5
11009 if (exit $ac_status) && test -s "$ac_outfile"; then
11010 # The compiler can only warn and ignore the option if not recognized
11011 # So say no if there are warnings
11012 if test ! -s conftest.err; then
11013 lt_prog_compiler_pic_works_CXX=yes
11019 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11020 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11022 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11023 case $lt_prog_compiler_pic_CXX in
11025 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11028 lt_prog_compiler_pic_CXX=
11029 lt_prog_compiler_can_build_shared_CXX=no
11034 # For platforms which do not support PIC, -DPIC is meaningless:
11036 lt_prog_compiler_pic_CXX=
11039 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11043 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11044 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11045 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11046 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 lt_cv_prog_compiler_c_o_CXX=no
11049 $rm -r conftest 2>/dev/null
11053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11055 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
11056 # that will create temporary files in the current directory regardless of
11057 # the output directory. Thus, making CWD read-only will cause this test
11058 # to fail, enabling locking or at least warning the user not to do parallel
11062 lt_compiler_flag="-o out/conftest2.$ac_objext"
11063 # Insert the option either (1) after the last *FLAGS variable, or
11064 # (2) before a word containing "conftest.", or (3) at the end.
11065 # Note that $ac_compile itself does not contain backslashes and begins
11066 # with a dollar sign (not a hyphen), so the echo should work correctly.
11067 lt_compile=`echo "$ac_compile" | $SED \
11068 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070 -e 's:$: $lt_compiler_flag:'`
11071 (eval echo "\"\$as_me:11071: $lt_compile\"" >&5)
11072 (eval "$lt_compile" 2>out/conftest.err)
11074 cat out/conftest.err >&5
11075 echo "$as_me:11075: \$? = $ac_status" >&5
11076 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11078 # The compiler can only warn and ignore the option if not recognized
11079 # So say no if there are warnings
11080 if test ! -s out/conftest.err; then
11081 lt_cv_prog_compiler_c_o_CXX=yes
11086 # SGI C++ compiler will create directory out/ii_files/ for
11087 # template instantiation
11088 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11089 $rm out/* && rmdir out
11095 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11096 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11099 hard_links="nottested"
11100 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11101 # do not overwrite the value of need_locks provided by the user
11102 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11103 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11106 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11108 ln conftest.a conftest.b 2>&5 || hard_links=no
11109 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11110 echo "$as_me:$LINENO: result: $hard_links" >&5
11111 echo "${ECHO_T}$hard_links" >&6
11112 if test "$hard_links" = no; then
11113 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11114 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11121 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11122 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11124 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11127 # If we're using GNU nm, then we don't want the "-C" option.
11128 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11129 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11130 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'
11132 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'
11136 export_symbols_cmds_CXX="$ltdll_cmds"
11139 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11142 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11146 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11147 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11148 test "$ld_shlibs_CXX" = no && can_build_shared=no
11150 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11151 if test "$GCC" = yes; then
11152 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11156 # Do we need to explicitly link libc?
11158 case "x$archive_cmds_need_lc_CXX" in
11160 # Assume -lc should be added
11161 archive_cmds_need_lc_CXX=yes
11163 if test "$enable_shared" = yes && test "$GCC" = yes; then
11164 case $archive_cmds_CXX in
11166 # FIXME: we may have to deal with multi-command sequences.
11169 # Test whether the compiler implicitly links with -lc since on some
11170 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11171 # to ld, don't add -lc before -lgcc.
11172 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11173 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11175 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11177 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11178 (eval $ac_compile) 2>&5
11180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11181 (exit $ac_status); } 2>conftest.err; then
11184 libobjs=conftest.$ac_objext
11186 wl=$lt_prog_compiler_wl_CXX
11192 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11193 allow_undefined_flag_CXX=
11194 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11195 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11198 (exit $ac_status); }
11200 archive_cmds_need_lc_CXX=no
11202 archive_cmds_need_lc_CXX=yes
11204 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11206 cat conftest.err 1>&5
11209 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11210 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11217 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11218 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11219 library_names_spec=
11220 libname_spec='lib$name'
11224 postuninstall_cmds=
11228 shlibpath_overrides_runpath=unknown
11230 dynamic_linker="$host_os ld.so"
11231 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11232 if test "$GCC" = yes; then
11233 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11234 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11235 # if the path contains ";" then we assume it to be the separator
11236 # otherwise default to the standard path separator (i.e. ":") - it is
11237 # assumed that no part of a normal pathname contains ";" but that should
11238 # okay in the real world where ";" in dirpaths is itself problematic.
11239 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11241 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11244 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11246 need_lib_prefix=unknown
11247 hardcode_into_libs=no
11249 # when you set need_version to no, make sure it does not cause -set_version
11250 # flags to be left without arguments
11251 need_version=unknown
11256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11257 shlibpath_var=LIBPATH
11259 # AIX 3 has no versioning support, so we append a major version to the name.
11260 soname_spec='${libname}${release}${shared_ext}$major'
11267 hardcode_into_libs=yes
11268 if test "$host_cpu" = ia64; then
11269 # AIX 5 supports IA64
11270 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11271 shlibpath_var=LD_LIBRARY_PATH
11273 # With GCC up to 2.95.x, collect2 would create an import file
11274 # for dependence libraries. The import file would start with
11275 # the line `#! .'. This would cause the generated library to
11276 # depend on `.', always an invalid library. This was fixed in
11277 # development snapshots of GCC prior to 3.0.
11279 aix4 | aix4.[01] | aix4.[01].*)
11280 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11282 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11285 can_build_shared=no
11289 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11290 # soname into executable. Probably we can add versioning support to
11291 # collect2, so additional links can be useful in future.
11292 if test "$aix_use_runtimelinking" = yes; then
11293 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11294 # instead of lib<name>.a to let people know that these are not
11295 # typical AIX shared libraries.
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298 # We preserve .a as extension for shared libraries through AIX4.2
11299 # and later when we are not doing run time linking.
11300 library_names_spec='${libname}${release}.a $libname.a'
11301 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LIBPATH
11308 library_names_spec='$libname.ixlibrary $libname.a'
11309 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11310 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'
11314 library_names_spec='${libname}${shared_ext}'
11315 dynamic_linker="$host_os ld.so"
11316 shlibpath_var=LIBRARY_PATH
11322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11323 soname_spec='${libname}${release}${shared_ext}$major'
11324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11325 shlibpath_var=LD_LIBRARY_PATH
11326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11328 # the default ld.so.conf also contains /usr/contrib/lib and
11329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11330 # libtool to hard-code these into programs
11333 cygwin* | mingw* | pw32*)
11334 version_type=windows
11339 case $GCC,$host_os in
11340 yes,cygwin* | yes,mingw* | yes,pw32*)
11341 library_names_spec='$libname.dll.a'
11342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11343 postinstall_cmds='base_file=`basename \${file}`~
11344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11345 dldir=$destdir/`dirname \$dlpath`~
11346 test -d \$dldir || mkdir -p \$dldir~
11347 $install_prog $dir/$dlname \$dldir/$dlname'
11348 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11349 dlpath=$dir/\$dldll~
11351 shlibpath_overrides_runpath=yes
11355 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11356 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11357 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11360 # MinGW DLLs use traditional 'lib' prefix
11361 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11362 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11363 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11364 # It is most probably a Windows format PATH printed by
11365 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11366 # path with ; separators, and with drive letters. We can handle the
11367 # drive letters (cygwin fileutils understands them), so leave them,
11368 # especially as we might pass files found there to a mingw objdump,
11369 # which wouldn't understand a cygwinified path. Ahh.
11370 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11376 # pw32 DLLs use 'pw' prefix rather than 'lib'
11377 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11383 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11386 dynamic_linker='Win32 ld.exe'
11387 # FIXME: first we should search . and the directory the executable is in
11391 darwin* | rhapsody*)
11392 dynamic_linker="$host_os dyld"
11393 version_type=darwin
11396 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11397 soname_spec='${libname}${release}${major}$shared_ext'
11398 shlibpath_overrides_runpath=yes
11399 shlibpath_var=DYLD_LIBRARY_PATH
11400 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11401 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11402 if test "$GCC" = yes; then
11403 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"`
11405 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11407 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11415 soname_spec='${libname}${release}${shared_ext}$major'
11416 shlibpath_var=LD_LIBRARY_PATH
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 shlibpath_var=LD_LIBRARY_PATH
11430 shlibpath_overrides_runpath=no
11431 hardcode_into_libs=yes
11432 dynamic_linker='GNU ld.so'
11436 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11437 version_type=freebsd-$objformat
11438 case $version_type in
11440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11449 shlibpath_var=LD_LIBRARY_PATH
11452 shlibpath_overrides_runpath=yes
11454 freebsd3.01* | freebsdelf3.01*)
11455 shlibpath_overrides_runpath=yes
11456 hardcode_into_libs=yes
11459 shlibpath_overrides_runpath=no
11460 hardcode_into_libs=yes
11469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11470 soname_spec='${libname}${release}${shared_ext}$major'
11471 shlibpath_var=LD_LIBRARY_PATH
11472 hardcode_into_libs=yes
11475 hpux9* | hpux10* | hpux11*)
11476 # Give a soname corresponding to the major version so that dld.sl refuses to
11477 # link against other versions.
11481 case "$host_cpu" in
11484 hardcode_into_libs=yes
11485 dynamic_linker="$host_os dld.so"
11486 shlibpath_var=LD_LIBRARY_PATH
11487 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11489 soname_spec='${libname}${release}${shared_ext}$major'
11490 if test "X$HPUX_IA64_MODE" = X32; then
11491 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11493 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11495 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11499 hardcode_into_libs=yes
11500 dynamic_linker="$host_os dld.sl"
11501 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11502 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11510 dynamic_linker="$host_os dld.sl"
11511 shlibpath_var=SHLIB_PATH
11512 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec='${libname}${release}${shared_ext}$major'
11517 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11518 postinstall_cmds='chmod 555 $lib'
11521 irix5* | irix6* | nonstopux*)
11523 nonstopux*) version_type=nonstopux ;;
11525 if test "$lt_cv_prog_gnu_ld" = yes; then
11533 soname_spec='${libname}${release}${shared_ext}$major'
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11536 irix5* | nonstopux*)
11537 libsuff= shlibsuff=
11540 case $LD in # libtool.m4 will add one of these switches to LD
11541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11542 libsuff= shlibsuff= libmagic=32-bit;;
11543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11544 libsuff=32 shlibsuff=N32 libmagic=N32;;
11545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11546 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11547 *) libsuff= shlibsuff= libmagic=never-match;;
11551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11552 shlibpath_overrides_runpath=no
11553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11555 hardcode_into_libs=yes
11558 # No shared lib support for Linux oldld, aout, or coff.
11559 linux*oldld* | linux*aout* | linux*coff*)
11563 # This must be Linux ELF.
11568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11569 soname_spec='${libname}${release}${shared_ext}$major'
11570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11571 shlibpath_var=LD_LIBRARY_PATH
11572 shlibpath_overrides_runpath=no
11573 # This implies no fast_install, which is unacceptable.
11574 # Some rework will be needed to allow for fast_install
11575 # before this can be enabled.
11576 hardcode_into_libs=yes
11578 # Append ld.so.conf contents to the search path
11579 if test -f /etc/ld.so.conf; then
11580 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11581 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11584 # We used to test for /lib/ld.so.1 and disable shared libraries on
11585 # powerpc, because MkLinux only supported shared libraries with the
11586 # GNU dynamic linker. Since this was broken with cross compilers,
11587 # most powerpc-linux boxes support dynamic linking these days and
11588 # people can always --disable-shared, the test was removed, and we
11589 # assume the GNU/Linux dynamic linker is in use.
11590 dynamic_linker='GNU/Linux ld.so'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11598 soname_spec='${libname}${release}${shared_ext}$major'
11599 shlibpath_var=LD_LIBRARY_PATH
11600 shlibpath_overrides_runpath=no
11601 hardcode_into_libs=yes
11602 dynamic_linker='GNU ld.so'
11609 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11612 dynamic_linker='NetBSD (a.out) ld.so'
11614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11615 soname_spec='${libname}${release}${shared_ext}$major'
11616 dynamic_linker='NetBSD ld.elf_so'
11618 shlibpath_var=LD_LIBRARY_PATH
11619 shlibpath_overrides_runpath=yes
11620 hardcode_into_libs=yes
11625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11626 shlibpath_var=LD_LIBRARY_PATH
11627 shlibpath_overrides_runpath=yes
11634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635 soname_spec='${libname}${release}${shared_ext}$major'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11645 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11649 openbsd2.[89] | openbsd2.[89].*)
11650 shlibpath_overrides_runpath=no
11653 shlibpath_overrides_runpath=yes
11657 shlibpath_overrides_runpath=yes
11662 libname_spec='$name'
11665 library_names_spec='$libname${shared_ext} $libname.a'
11666 dynamic_linker='OS/2 ld.exe'
11667 shlibpath_var=LIBPATH
11670 osf3* | osf4* | osf5*)
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11676 shlibpath_var=LD_LIBRARY_PATH
11677 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11678 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11685 shlibpath_var=LD_LIBRARY_PATH
11692 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11693 soname_spec='${libname}${release}${shared_ext}$major'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes
11696 hardcode_into_libs=yes
11697 # ldd complains unless libraries are executable
11698 postinstall_cmds='chmod +x $lib'
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11704 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11705 shlibpath_var=LD_LIBRARY_PATH
11706 shlibpath_overrides_runpath=yes
11707 if test "$with_gnu_ld" = yes; then
11713 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11716 soname_spec='${libname}${release}${shared_ext}$major'
11717 shlibpath_var=LD_LIBRARY_PATH
11718 case $host_vendor in
11720 shlibpath_overrides_runpath=no
11722 export_dynamic_flag_spec='${wl}-Blargedynsym'
11723 runpath_var=LD_RUN_PATH
11731 shlibpath_overrides_runpath=no
11732 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11738 if test -d /usr/nec ;then
11740 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11741 soname_spec='$libname${shared_ext}.$major'
11742 shlibpath_var=LD_LIBRARY_PATH
11748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11749 soname_spec='${libname}${release}${shared_ext}$major'
11750 shlibpath_var=LD_LIBRARY_PATH
11757 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11758 echo "${ECHO_T}$dynamic_linker" >&6
11759 test "$dynamic_linker" = no && can_build_shared=no
11761 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11762 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11763 hardcode_action_CXX=
11764 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11765 test -n "$runpath_var CXX" || \
11766 test "X$hardcode_automatic_CXX"="Xyes" ; then
11768 # We can hardcode non-existant directories.
11769 if test "$hardcode_direct_CXX" != no &&
11770 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11771 # have to relink, otherwise we might link with an installed library
11772 # when we should be linking with a yet-to-be-installed one
11773 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11774 test "$hardcode_minus_L_CXX" != no; then
11775 # Linking always hardcodes the temporary library directory.
11776 hardcode_action_CXX=relink
11778 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11779 hardcode_action_CXX=immediate
11782 # We cannot hardcode anything, or else we can only hardcode existing
11784 hardcode_action_CXX=unsupported
11786 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11787 echo "${ECHO_T}$hardcode_action_CXX" >&6
11789 if test "$hardcode_action_CXX" = relink; then
11790 # Fast installation is not supported
11791 enable_fast_install=no
11792 elif test "$shlibpath_overrides_runpath" = yes ||
11793 test "$enable_shared" = no; then
11794 # Fast installation is not necessary
11795 enable_fast_install=needless
11800 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11801 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11802 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11803 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11804 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11805 echo "$as_me:$LINENO: result: yes" >&5
11806 echo "${ECHO_T}yes" >&6
11808 # FIXME - insert some real tests, host_os isn't really good enough
11811 if test -n "$STRIP" ; then
11812 striplib="$STRIP -x"
11813 echo "$as_me:$LINENO: result: yes" >&5
11814 echo "${ECHO_T}yes" >&6
11816 echo "$as_me:$LINENO: result: no" >&5
11817 echo "${ECHO_T}no" >&6
11821 echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6
11827 if test "x$enable_dlopen" != xyes; then
11828 enable_dlopen=unknown
11829 enable_dlopen_self=unknown
11830 enable_dlopen_self_static=unknown
11837 lt_cv_dlopen="load_add_on"
11839 lt_cv_dlopen_self=yes
11843 lt_cv_dlopen="LoadLibrary"
11848 lt_cv_dlopen="dlopen"
11853 # if libdl is installed we need to link against it
11854 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11855 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11856 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 ac_check_lib_save_LIBS=$LIBS
11861 cat >conftest.$ac_ext <<_ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 /* Override any gcc2 internal prototype to avoid an error. */
11872 /* We use char because int might match the return type of a gcc2
11873 builtin and then its argument prototype would still apply. */
11883 rm -f conftest.$ac_objext conftest$ac_exeext
11884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11885 (eval $ac_link) 2>conftest.er1
11887 grep -v '^ *+' conftest.er1 >conftest.err
11889 cat conftest.err >&5
11890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11891 (exit $ac_status); } &&
11892 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11894 (eval $ac_try) 2>&5
11896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11897 (exit $ac_status); }; } &&
11898 { ac_try='test -s conftest$ac_exeext'
11899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11900 (eval $ac_try) 2>&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); }; }; then
11904 ac_cv_lib_dl_dlopen=yes
11906 echo "$as_me: failed program was:" >&5
11907 sed 's/^/| /' conftest.$ac_ext >&5
11909 ac_cv_lib_dl_dlopen=no
11911 rm -f conftest.err conftest.$ac_objext \
11912 conftest$ac_exeext conftest.$ac_ext
11913 LIBS=$ac_check_lib_save_LIBS
11915 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11916 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11917 if test $ac_cv_lib_dl_dlopen = yes; then
11918 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11921 lt_cv_dlopen="dyld"
11923 lt_cv_dlopen_self=yes
11930 echo "$as_me:$LINENO: checking for shl_load" >&5
11931 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11932 if test "${ac_cv_func_shl_load+set}" = set; then
11933 echo $ECHO_N "(cached) $ECHO_C" >&6
11935 cat >conftest.$ac_ext <<_ACEOF
11938 cat confdefs.h >>conftest.$ac_ext
11939 cat >>conftest.$ac_ext <<_ACEOF
11940 /* end confdefs.h. */
11941 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11942 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11943 #define shl_load innocuous_shl_load
11945 /* System header to define __stub macros and hopefully few prototypes,
11946 which can conflict with char shl_load (); below.
11947 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11948 <limits.h> exists even on freestanding compilers. */
11951 # include <limits.h>
11953 # include <assert.h>
11958 /* Override any gcc2 internal prototype to avoid an error. */
11963 /* We use char because int might match the return type of a gcc2
11964 builtin and then its argument prototype would still apply. */
11966 /* The GNU C library defines this for functions which it implements
11967 to always fail with ENOSYS. Some functions are actually named
11968 something starting with __ and the normal name is an alias. */
11969 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11972 char (*f) () = shl_load;
11981 return f != shl_load;
11986 rm -f conftest.$ac_objext conftest$ac_exeext
11987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11988 (eval $ac_link) 2>conftest.er1
11990 grep -v '^ *+' conftest.er1 >conftest.err
11992 cat conftest.err >&5
11993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11994 (exit $ac_status); } &&
11995 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11997 (eval $ac_try) 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003 (eval $ac_try) 2>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); }; }; then
12007 ac_cv_func_shl_load=yes
12009 echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12012 ac_cv_func_shl_load=no
12014 rm -f conftest.err conftest.$ac_objext \
12015 conftest$ac_exeext conftest.$ac_ext
12017 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12018 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12019 if test $ac_cv_func_shl_load = yes; then
12020 lt_cv_dlopen="shl_load"
12022 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12023 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12024 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12027 ac_check_lib_save_LIBS=$LIBS
12029 cat >conftest.$ac_ext <<_ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h. */
12036 /* Override any gcc2 internal prototype to avoid an error. */
12040 /* We use char because int might match the return type of a gcc2
12041 builtin and then its argument prototype would still apply. */
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053 (eval $ac_link) 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } &&
12060 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12062 (eval $ac_try) 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; } &&
12066 { ac_try='test -s conftest$ac_exeext'
12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12068 (eval $ac_try) 2>&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); }; }; then
12072 ac_cv_lib_dld_shl_load=yes
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.$ac_ext >&5
12077 ac_cv_lib_dld_shl_load=no
12079 rm -f conftest.err conftest.$ac_objext \
12080 conftest$ac_exeext conftest.$ac_ext
12081 LIBS=$ac_check_lib_save_LIBS
12083 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12084 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12085 if test $ac_cv_lib_dld_shl_load = yes; then
12086 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12088 echo "$as_me:$LINENO: checking for dlopen" >&5
12089 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12090 if test "${ac_cv_func_dlopen+set}" = set; then
12091 echo $ECHO_N "(cached) $ECHO_C" >&6
12093 cat >conftest.$ac_ext <<_ACEOF
12096 cat confdefs.h >>conftest.$ac_ext
12097 cat >>conftest.$ac_ext <<_ACEOF
12098 /* end confdefs.h. */
12099 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12101 #define dlopen innocuous_dlopen
12103 /* System header to define __stub macros and hopefully few prototypes,
12104 which can conflict with char dlopen (); below.
12105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12106 <limits.h> exists even on freestanding compilers. */
12109 # include <limits.h>
12111 # include <assert.h>
12116 /* Override any gcc2 internal prototype to avoid an error. */
12121 /* We use char because int might match the return type of a gcc2
12122 builtin and then its argument prototype would still apply. */
12124 /* The GNU C library defines this for functions which it implements
12125 to always fail with ENOSYS. Some functions are actually named
12126 something starting with __ and the normal name is an alias. */
12127 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12130 char (*f) () = dlopen;
12139 return f != dlopen;
12144 rm -f conftest.$ac_objext conftest$ac_exeext
12145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12146 (eval $ac_link) 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } &&
12153 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12155 (eval $ac_try) 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12161 (eval $ac_try) 2>&5
12163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12164 (exit $ac_status); }; }; then
12165 ac_cv_func_dlopen=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.$ac_ext >&5
12170 ac_cv_func_dlopen=no
12172 rm -f conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12175 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12176 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12177 if test $ac_cv_func_dlopen = yes; then
12178 lt_cv_dlopen="dlopen"
12180 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12181 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12182 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 ac_check_lib_save_LIBS=$LIBS
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any gcc2 internal prototype to avoid an error. */
12198 /* We use char because int might match the return type of a gcc2
12199 builtin and then its argument prototype would still apply. */
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12211 (eval $ac_link) 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12220 (eval $ac_try) 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12226 (eval $ac_try) 2>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); }; }; then
12230 ac_cv_lib_dl_dlopen=yes
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12235 ac_cv_lib_dl_dlopen=no
12237 rm -f conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12242 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12243 if test $ac_cv_lib_dl_dlopen = yes; then
12244 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12246 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12247 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12248 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 ac_check_lib_save_LIBS=$LIBS
12252 LIBS="-lsvld $LIBS"
12253 cat >conftest.$ac_ext <<_ACEOF
12256 cat confdefs.h >>conftest.$ac_ext
12257 cat >>conftest.$ac_ext <<_ACEOF
12258 /* end confdefs.h. */
12260 /* Override any gcc2 internal prototype to avoid an error. */
12264 /* We use char because int might match the return type of a gcc2
12265 builtin and then its argument prototype would still apply. */
12275 rm -f conftest.$ac_objext conftest$ac_exeext
12276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12277 (eval $ac_link) 2>conftest.er1
12279 grep -v '^ *+' conftest.er1 >conftest.err
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12283 (exit $ac_status); } &&
12284 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12286 (eval $ac_try) 2>&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); }; } &&
12290 { ac_try='test -s conftest$ac_exeext'
12291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12292 (eval $ac_try) 2>&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); }; }; then
12296 ac_cv_lib_svld_dlopen=yes
12298 echo "$as_me: failed program was:" >&5
12299 sed 's/^/| /' conftest.$ac_ext >&5
12301 ac_cv_lib_svld_dlopen=no
12303 rm -f conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$ac_check_lib_save_LIBS
12307 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12308 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12309 if test $ac_cv_lib_svld_dlopen = yes; then
12310 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12312 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12313 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12314 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12315 echo $ECHO_N "(cached) $ECHO_C" >&6
12317 ac_check_lib_save_LIBS=$LIBS
12319 cat >conftest.$ac_ext <<_ACEOF
12322 cat confdefs.h >>conftest.$ac_ext
12323 cat >>conftest.$ac_ext <<_ACEOF
12324 /* end confdefs.h. */
12326 /* Override any gcc2 internal prototype to avoid an error. */
12330 /* We use char because int might match the return type of a gcc2
12331 builtin and then its argument prototype would still apply. */
12341 rm -f conftest.$ac_objext conftest$ac_exeext
12342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12343 (eval $ac_link) 2>conftest.er1
12345 grep -v '^ *+' conftest.er1 >conftest.err
12347 cat conftest.err >&5
12348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12349 (exit $ac_status); } &&
12350 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12352 (eval $ac_try) 2>&5
12354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12355 (exit $ac_status); }; } &&
12356 { ac_try='test -s conftest$ac_exeext'
12357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12358 (eval $ac_try) 2>&5
12360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361 (exit $ac_status); }; }; then
12362 ac_cv_lib_dld_dld_link=yes
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12367 ac_cv_lib_dld_dld_link=no
12369 rm -f conftest.err conftest.$ac_objext \
12370 conftest$ac_exeext conftest.$ac_ext
12371 LIBS=$ac_check_lib_save_LIBS
12373 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12374 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12375 if test $ac_cv_lib_dld_dld_link = yes; then
12376 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12397 if test "x$lt_cv_dlopen" != xno; then
12403 case $lt_cv_dlopen in
12405 save_CPPFLAGS="$CPPFLAGS"
12406 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12408 save_LDFLAGS="$LDFLAGS"
12409 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12412 LIBS="$lt_cv_dlopen_libs $LIBS"
12414 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12415 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12416 if test "${lt_cv_dlopen_self+set}" = set; then
12417 echo $ECHO_N "(cached) $ECHO_C" >&6
12419 if test "$cross_compiling" = yes; then :
12420 lt_cv_dlopen_self=cross
12422 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12423 lt_status=$lt_dlunknown
12424 cat > conftest.$ac_ext <<EOF
12425 #line 12425 "configure"
12426 #include "confdefs.h"
12435 # define LT_DLGLOBAL RTLD_GLOBAL
12438 # define LT_DLGLOBAL DL_GLOBAL
12440 # define LT_DLGLOBAL 0
12444 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12445 find out it does not work in some platform. */
12446 #ifndef LT_DLLAZY_OR_NOW
12448 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12451 # define LT_DLLAZY_OR_NOW DL_LAZY
12454 # define LT_DLLAZY_OR_NOW RTLD_NOW
12457 # define LT_DLLAZY_OR_NOW DL_NOW
12459 # define LT_DLLAZY_OR_NOW 0
12467 extern "C" void exit (int);
12470 void fnord() { int i=42;}
12473 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12474 int status = $lt_dlunknown;
12478 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12479 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12480 /* dlclose (self); */
12486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12487 (eval $ac_link) 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12491 (./conftest; exit; ) 2>/dev/null
12493 case x$lt_status in
12494 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12495 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12496 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12499 # compilation failed
12500 lt_cv_dlopen_self=no
12507 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12508 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12510 if test "x$lt_cv_dlopen_self" = xyes; then
12511 LDFLAGS="$LDFLAGS $link_static_flag"
12512 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12513 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12514 if test "${lt_cv_dlopen_self_static+set}" = set; then
12515 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 if test "$cross_compiling" = yes; then :
12518 lt_cv_dlopen_self_static=cross
12520 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12521 lt_status=$lt_dlunknown
12522 cat > conftest.$ac_ext <<EOF
12523 #line 12523 "configure"
12524 #include "confdefs.h"
12533 # define LT_DLGLOBAL RTLD_GLOBAL
12536 # define LT_DLGLOBAL DL_GLOBAL
12538 # define LT_DLGLOBAL 0
12542 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12543 find out it does not work in some platform. */
12544 #ifndef LT_DLLAZY_OR_NOW
12546 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12549 # define LT_DLLAZY_OR_NOW DL_LAZY
12552 # define LT_DLLAZY_OR_NOW RTLD_NOW
12555 # define LT_DLLAZY_OR_NOW DL_NOW
12557 # define LT_DLLAZY_OR_NOW 0
12565 extern "C" void exit (int);
12568 void fnord() { int i=42;}
12571 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12572 int status = $lt_dlunknown;
12576 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12577 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12578 /* dlclose (self); */
12584 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12585 (eval $ac_link) 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12589 (./conftest; exit; ) 2>/dev/null
12591 case x$lt_status in
12592 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12593 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12594 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12597 # compilation failed
12598 lt_cv_dlopen_self_static=no
12605 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12606 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12609 CPPFLAGS="$save_CPPFLAGS"
12610 LDFLAGS="$save_LDFLAGS"
12615 case $lt_cv_dlopen_self in
12616 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12617 *) enable_dlopen_self=unknown ;;
12620 case $lt_cv_dlopen_self_static in
12621 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12622 *) enable_dlopen_self_static=unknown ;;
12627 # The else clause should only fire when bootstrapping the
12628 # libtool distribution, otherwise you forgot to ship ltmain.sh
12629 # with your package, and you will get complaints that there are
12630 # no rules to generate ltmain.sh.
12631 if test -f "$ltmain"; then
12632 # See if we are running on zsh, and set the options which allow our commands through
12633 # without removal of \ escapes.
12634 if test -n "${ZSH_VERSION+set}" ; then
12635 setopt NO_GLOB_SUBST
12637 # Now quote all the things that may contain metacharacters while being
12638 # careful not to overquote the AC_SUBSTed values. We take copies of the
12639 # variables and quote the copies for generation of the libtool script.
12640 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12642 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12643 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12644 deplibs_check_method reload_flag reload_cmds need_locks \
12645 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12646 lt_cv_sys_global_symbol_to_c_name_address \
12647 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12648 old_postinstall_cmds old_postuninstall_cmds \
12652 lt_prog_compiler_wl_CXX \
12653 lt_prog_compiler_pic_CXX \
12654 lt_prog_compiler_static_CXX \
12655 lt_prog_compiler_no_builtin_flag_CXX \
12656 export_dynamic_flag_spec_CXX \
12657 thread_safe_flag_spec_CXX \
12658 whole_archive_flag_spec_CXX \
12659 enable_shared_with_static_runtimes_CXX \
12660 old_archive_cmds_CXX \
12661 old_archive_from_new_cmds_CXX \
12662 predep_objects_CXX \
12663 postdep_objects_CXX \
12666 compiler_lib_search_path_CXX \
12668 archive_expsym_cmds_CXX \
12669 postinstall_cmds_CXX \
12670 postuninstall_cmds_CXX \
12671 old_archive_from_expsyms_cmds_CXX \
12672 allow_undefined_flag_CXX \
12673 no_undefined_flag_CXX \
12674 export_symbols_cmds_CXX \
12675 hardcode_libdir_flag_spec_CXX \
12676 hardcode_libdir_flag_spec_ld_CXX \
12677 hardcode_libdir_separator_CXX \
12678 hardcode_automatic_CXX \
12680 module_expsym_cmds_CXX \
12681 lt_cv_prog_compiler_c_o_CXX \
12682 exclude_expsyms_CXX \
12683 include_expsyms_CXX; do
12686 old_archive_cmds_CXX | \
12687 old_archive_from_new_cmds_CXX | \
12688 archive_cmds_CXX | \
12689 archive_expsym_cmds_CXX | \
12690 module_cmds_CXX | \
12691 module_expsym_cmds_CXX | \
12692 old_archive_from_expsyms_cmds_CXX | \
12693 export_symbols_cmds_CXX | \
12694 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12695 postinstall_cmds | postuninstall_cmds | \
12696 old_postinstall_cmds | old_postuninstall_cmds | \
12697 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12698 # Double-quote double-evaled strings.
12699 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12702 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12708 *'\$0 --fallback-echo"')
12709 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12715 cat <<__EOF__ >> "$cfgfile"
12716 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12718 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12720 # Shell to use when invoking shell scripts.
12723 # Whether or not to build shared libraries.
12724 build_libtool_libs=$enable_shared
12726 # Whether or not to build static libraries.
12727 build_old_libs=$enable_static
12729 # Whether or not to add -lc for building shared libraries.
12730 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12732 # Whether or not to disallow shared libs when runtime libs are static
12733 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12735 # Whether or not to optimize for fast installation.
12736 fast_install=$enable_fast_install
12739 host_alias=$host_alias
12742 # An echo program that does not interpret backslashes.
12747 AR_FLAGS=$lt_AR_FLAGS
12752 # A language-specific compiler.
12753 CC=$lt_compiler_CXX
12755 # Is the compiler the GNU C compiler?
12761 # The linker used to build libraries.
12764 # Whether we need hard or soft links.
12767 # A BSD-compatible nm program.
12770 # A symbol stripping program
12773 # Used to examine libraries when file_magic_cmd begins "file"
12774 MAGIC_CMD=$MAGIC_CMD
12776 # Used on cygwin: DLL creation program.
12779 # Used on cygwin: object dumper.
12782 # Used on cygwin: assembler.
12785 # The name of the directory that contains temporary libtool files.
12788 # How to create reloadable object files.
12789 reload_flag=$lt_reload_flag
12790 reload_cmds=$lt_reload_cmds
12792 # How to pass a linker flag through the compiler.
12793 wl=$lt_lt_prog_compiler_wl_CXX
12795 # Object file suffix (normally "o").
12796 objext="$ac_objext"
12798 # Old archive suffix (normally "a").
12801 # Shared library suffix (normally ".so").
12804 # Executable file suffix (normally "").
12807 # Additional compiler flags for building library objects.
12808 pic_flag=$lt_lt_prog_compiler_pic_CXX
12811 # What is the maximum length of a command?
12812 max_cmd_len=$lt_cv_sys_max_cmd_len
12814 # Does compiler simultaneously support -c and -o options?
12815 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12817 # Must we lock files when doing compilation ?
12818 need_locks=$lt_need_locks
12820 # Do we need the lib prefix for modules?
12821 need_lib_prefix=$need_lib_prefix
12823 # Do we need a version for libraries?
12824 need_version=$need_version
12826 # Whether dlopen is supported.
12827 dlopen_support=$enable_dlopen
12829 # Whether dlopen of programs is supported.
12830 dlopen_self=$enable_dlopen_self
12832 # Whether dlopen of statically linked programs is supported.
12833 dlopen_self_static=$enable_dlopen_self_static
12835 # Compiler flag to prevent dynamic linking.
12836 link_static_flag=$lt_lt_prog_compiler_static_CXX
12838 # Compiler flag to turn off builtin functions.
12839 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12841 # Compiler flag to allow reflexive dlopens.
12842 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12844 # Compiler flag to generate shared objects directly from archives.
12845 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12847 # Compiler flag to generate thread-safe objects.
12848 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12850 # Library versioning type.
12851 version_type=$version_type
12853 # Format of library name prefix.
12854 libname_spec=$lt_libname_spec
12856 # List of archive names. First name is the real one, the rest are links.
12857 # The last name is the one that the linker finds with -lNAME.
12858 library_names_spec=$lt_library_names_spec
12860 # The coded name of the library, if different from the real name.
12861 soname_spec=$lt_soname_spec
12863 # Commands used to build and install an old-style archive.
12865 old_archive_cmds=$lt_old_archive_cmds_CXX
12866 old_postinstall_cmds=$lt_old_postinstall_cmds
12867 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12869 # Create an old-style archive from a shared archive.
12870 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12872 # Create a temporary old-style archive to link instead of a shared archive.
12873 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12875 # Commands used to build and install a shared archive.
12876 archive_cmds=$lt_archive_cmds_CXX
12877 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12878 postinstall_cmds=$lt_postinstall_cmds
12879 postuninstall_cmds=$lt_postuninstall_cmds
12881 # Commands used to build a loadable module (assumed same as above if empty)
12882 module_cmds=$lt_module_cmds_CXX
12883 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12885 # Commands to strip libraries.
12886 old_striplib=$lt_old_striplib
12887 striplib=$lt_striplib
12889 # Dependencies to place before the objects being linked to create a
12891 predep_objects=$lt_predep_objects_CXX
12893 # Dependencies to place after the objects being linked to create a
12895 postdep_objects=$lt_postdep_objects_CXX
12897 # Dependencies to place before the objects being linked to create a
12899 predeps=$lt_predeps_CXX
12901 # Dependencies to place after the objects being linked to create a
12903 postdeps=$lt_postdeps_CXX
12905 # The library search path used internally by the compiler when linking
12906 # a shared library.
12907 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12909 # Method to check whether dependent libraries are shared objects.
12910 deplibs_check_method=$lt_deplibs_check_method
12912 # Command to use when deplibs_check_method == file_magic.
12913 file_magic_cmd=$lt_file_magic_cmd
12915 # Flag that allows shared libraries with undefined symbols to be built.
12916 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12918 # Flag that forces no undefined symbols.
12919 no_undefined_flag=$lt_no_undefined_flag_CXX
12921 # Commands used to finish a libtool library installation in a directory.
12922 finish_cmds=$lt_finish_cmds
12924 # Same as above, but a single script fragment to be evaled but not shown.
12925 finish_eval=$lt_finish_eval
12927 # Take the output of nm and produce a listing of raw symbols and C names.
12928 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12930 # Transform the output of nm in a proper C declaration
12931 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12933 # Transform the output of nm in a C name address pair
12934 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12936 # This is the shared library runtime path variable.
12937 runpath_var=$runpath_var
12939 # This is the shared library path variable.
12940 shlibpath_var=$shlibpath_var
12942 # Is shlibpath searched before the hard-coded library search path?
12943 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12945 # How to hardcode a shared library path into an executable.
12946 hardcode_action=$hardcode_action_CXX
12948 # Whether we should hardcode library paths into libraries.
12949 hardcode_into_libs=$hardcode_into_libs
12951 # Flag to hardcode \$libdir into a binary during linking.
12952 # This must work even if \$libdir does not exist.
12953 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12955 # If ld is used when linking, flag to hardcode \$libdir into
12956 # a binary during linking. This must work even if \$libdir does
12958 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12960 # Whether we need a single -rpath flag with a separated argument.
12961 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12963 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12964 # resulting binary.
12965 hardcode_direct=$hardcode_direct_CXX
12967 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12968 # resulting binary.
12969 hardcode_minus_L=$hardcode_minus_L_CXX
12971 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12972 # the resulting binary.
12973 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12975 # Set to yes if building a shared library automatically hardcodes DIR into the library
12976 # and all subsequent libraries and executables linked against it.
12977 hardcode_automatic=$hardcode_automatic_CXX
12979 # Variables whose values should be saved in libtool wrapper scripts and
12980 # restored at relink time.
12981 variables_saved_for_relink="$variables_saved_for_relink"
12983 # Whether libtool must link a program against all its dependency libraries.
12984 link_all_deplibs=$link_all_deplibs_CXX
12986 # Compile-time system search path for libraries
12987 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12989 # Run-time system search path for libraries
12990 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12992 # Fix the shell variable \$srcfile for the compiler.
12993 fix_srcfile_path="$fix_srcfile_path_CXX"
12995 # Set to yes if exported symbols are required.
12996 always_export_symbols=$always_export_symbols_CXX
12998 # The commands to list exported symbols.
12999 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13001 # The commands to extract the exported symbol list from a shared archive.
13002 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13004 # Symbols that should not be listed in the preloaded symbols.
13005 exclude_expsyms=$lt_exclude_expsyms_CXX
13007 # Symbols that must always be exported.
13008 include_expsyms=$lt_include_expsyms_CXX
13010 # ### END LIBTOOL TAG CONFIG: $tagname
13016 # If there is no Makefile yet, we rely on a make rule to execute
13017 # `config.status --recheck' to rerun these tests and create the
13018 # libtool script then.
13019 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13020 if test -f "$ltmain_in"; then
13021 test -f Makefile && make "$ltmain"
13027 ac_cpp='$CPP $CPPFLAGS'
13028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036 with_gnu_ldcxx=$with_gnu_ld
13037 with_gnu_ld=$lt_save_with_gnu_ld
13038 lt_cv_path_LDCXX=$lt_cv_path_LD
13039 lt_cv_path_LD=$lt_save_path_LD
13040 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13041 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13049 if test -n "$F77" && test "X$F77" != "Xno"; then
13052 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13053 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13054 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13057 archive_cmds_need_lc_F77=no
13058 allow_undefined_flag_F77=
13059 always_export_symbols_F77=no
13060 archive_expsym_cmds_F77=
13061 export_dynamic_flag_spec_F77=
13062 hardcode_direct_F77=no
13063 hardcode_libdir_flag_spec_F77=
13064 hardcode_libdir_flag_spec_ld_F77=
13065 hardcode_libdir_separator_F77=
13066 hardcode_minus_L_F77=no
13067 hardcode_automatic_F77=no
13069 module_expsym_cmds_F77=
13070 link_all_deplibs_F77=unknown
13071 old_archive_cmds_F77=$old_archive_cmds
13072 no_undefined_flag_F77=
13073 whole_archive_flag_spec_F77=
13074 enable_shared_with_static_runtimes_F77=no
13076 # Source file extension for f77 test sources.
13079 # Object file extension for compiled f77 test sources.
13083 # Code to be used in simple compile tests
13084 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13086 # Code to be used in simple link tests
13087 lt_simple_link_test_code=" program t\n end\n"
13089 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13091 # If no C compiler was specified, use CC.
13094 # Allow CC to be a program name with arguments.
13098 # Allow CC to be a program name with arguments.
13103 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13105 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13106 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13107 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13108 echo "${ECHO_T}$can_build_shared" >&6
13110 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13111 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13112 test "$can_build_shared" = "no" && enable_shared=no
13114 # On AIX, shared libraries and static libraries use the same namespace, and
13115 # are all built from PIC.
13118 test "$enable_shared" = yes && enable_static=no
13119 if test -n "$RANLIB"; then
13120 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13121 postinstall_cmds='$RANLIB $lib'
13125 test "$enable_shared" = yes && enable_static=no
13128 echo "$as_me:$LINENO: result: $enable_shared" >&5
13129 echo "${ECHO_T}$enable_shared" >&6
13131 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13132 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13133 # Make sure either enable_shared or enable_static is yes.
13134 test "$enable_shared" = yes || enable_static=yes
13135 echo "$as_me:$LINENO: result: $enable_static" >&5
13136 echo "${ECHO_T}$enable_static" >&6
13138 test "$ld_shlibs_F77" = no && can_build_shared=no
13143 lt_prog_compiler_wl_F77=
13144 lt_prog_compiler_pic_F77=
13145 lt_prog_compiler_static_F77=
13147 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13148 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13150 if test "$GCC" = yes; then
13151 lt_prog_compiler_wl_F77='-Wl,'
13152 lt_prog_compiler_static_F77='-static'
13156 # All AIX code is PIC.
13157 if test "$host_cpu" = ia64; then
13158 # AIX 5 now supports IA64 processor
13159 lt_prog_compiler_static_F77='-Bstatic'
13164 # FIXME: we need at least 68020 code to build shared libraries, but
13165 # adding the `-m68020' flag to GCC prevents building anything better,
13167 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13170 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13171 # PIC is the default for these OSes.
13174 mingw* | pw32* | os2*)
13175 # This hack is so that the source file can tell whether it is being
13176 # built for inclusion in a dll (and should export symbols for example).
13177 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13180 darwin* | rhapsody*)
13181 # PIC is the default on this platform
13182 # Common symbols not allowed in MH_DYLIB files
13183 lt_prog_compiler_pic_F77='-fno-common'
13187 # Just because we use GCC doesn't mean we suddenly get shared libraries
13188 # on systems that don't support them.
13189 lt_prog_compiler_can_build_shared_F77=no
13194 if test -d /usr/nec; then
13195 lt_prog_compiler_pic_F77=-Kconform_pic
13200 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13201 # not for PA HP-UX.
13202 case "$host_cpu" in
13207 lt_prog_compiler_pic_F77='-fPIC'
13213 lt_prog_compiler_pic_F77='-fPIC'
13217 # PORTME Check for flag to pass linker flags through the system compiler.
13220 lt_prog_compiler_wl_F77='-Wl,'
13221 if test "$host_cpu" = ia64; then
13222 # AIX 5 now supports IA64 processor
13223 lt_prog_compiler_static_F77='-Bstatic'
13225 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13229 mingw* | pw32* | os2*)
13230 # This hack is so that the source file can tell whether it is being
13231 # built for inclusion in a dll (and should export symbols for example).
13232 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13235 hpux9* | hpux10* | hpux11*)
13236 lt_prog_compiler_wl_F77='-Wl,'
13237 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13238 # not for PA HP-UX.
13239 case "$host_cpu" in
13244 lt_prog_compiler_pic_F77='+Z'
13247 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13248 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13251 irix5* | irix6* | nonstopux*)
13252 lt_prog_compiler_wl_F77='-Wl,'
13253 # PIC (with -KPIC) is the default.
13254 lt_prog_compiler_static_F77='-non_shared'
13258 lt_prog_compiler_pic_F77='-KPIC'
13259 lt_prog_compiler_static_F77='-Bstatic'
13265 lt_prog_compiler_wl_F77='-Wl,'
13266 lt_prog_compiler_pic_F77='-KPIC'
13267 lt_prog_compiler_static_F77='-static'
13270 lt_prog_compiler_wl_F77='-Wl,'
13271 # All Alpha code is PIC.
13272 lt_prog_compiler_static_F77='-non_shared'
13277 osf3* | osf4* | osf5*)
13278 lt_prog_compiler_wl_F77='-Wl,'
13279 # All OSF/1 code is PIC.
13280 lt_prog_compiler_static_F77='-non_shared'
13284 lt_prog_compiler_pic_F77='-Kpic'
13285 lt_prog_compiler_static_F77='-dn'
13289 lt_prog_compiler_wl_F77='-Wl,'
13290 lt_prog_compiler_pic_F77='-KPIC'
13291 lt_prog_compiler_static_F77='-Bstatic'
13295 lt_prog_compiler_wl_F77='-Qoption ld '
13296 lt_prog_compiler_pic_F77='-PIC'
13297 lt_prog_compiler_static_F77='-Bstatic'
13300 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13301 lt_prog_compiler_wl_F77='-Wl,'
13302 lt_prog_compiler_pic_F77='-KPIC'
13303 lt_prog_compiler_static_F77='-Bstatic'
13307 if test -d /usr/nec ;then
13308 lt_prog_compiler_pic_F77='-Kconform_pic'
13309 lt_prog_compiler_static_F77='-Bstatic'
13314 lt_prog_compiler_pic_F77='-pic'
13315 lt_prog_compiler_static_F77='-Bstatic'
13319 lt_prog_compiler_can_build_shared_F77=no
13324 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13325 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13328 # Check to make sure the PIC flag actually works.
13330 if test -n "$lt_prog_compiler_pic_F77"; then
13332 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13333 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13334 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13335 echo $ECHO_N "(cached) $ECHO_C" >&6
13337 lt_prog_compiler_pic_works_F77=no
13338 ac_outfile=conftest.$ac_objext
13339 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13340 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13341 # Insert the option either (1) after the last *FLAGS variable, or
13342 # (2) before a word containing "conftest.", or (3) at the end.
13343 # Note that $ac_compile itself does not contain backslashes and begins
13344 # with a dollar sign (not a hyphen), so the echo should work correctly.
13345 # The option is referenced via a variable to avoid confusing sed.
13346 lt_compile=`echo "$ac_compile" | $SED \
13347 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13348 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13349 -e 's:$: $lt_compiler_flag:'`
13350 (eval echo "\"\$as_me:13350: $lt_compile\"" >&5)
13351 (eval "$lt_compile" 2>conftest.err)
13353 cat conftest.err >&5
13354 echo "$as_me:13354: \$? = $ac_status" >&5
13355 if (exit $ac_status) && test -s "$ac_outfile"; then
13356 # The compiler can only warn and ignore the option if not recognized
13357 # So say no if there are warnings
13358 if test ! -s conftest.err; then
13359 lt_prog_compiler_pic_works_F77=yes
13365 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13366 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13368 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13369 case $lt_prog_compiler_pic_F77 in
13371 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13374 lt_prog_compiler_pic_F77=
13375 lt_prog_compiler_can_build_shared_F77=no
13380 # For platforms which do not support PIC, -DPIC is meaningless:
13382 lt_prog_compiler_pic_F77=
13385 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13389 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13390 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13391 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13392 echo $ECHO_N "(cached) $ECHO_C" >&6
13394 lt_cv_prog_compiler_c_o_F77=no
13395 $rm -r conftest 2>/dev/null
13399 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13401 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13402 # that will create temporary files in the current directory regardless of
13403 # the output directory. Thus, making CWD read-only will cause this test
13404 # to fail, enabling locking or at least warning the user not to do parallel
13408 lt_compiler_flag="-o out/conftest2.$ac_objext"
13409 # Insert the option either (1) after the last *FLAGS variable, or
13410 # (2) before a word containing "conftest.", or (3) at the end.
13411 # Note that $ac_compile itself does not contain backslashes and begins
13412 # with a dollar sign (not a hyphen), so the echo should work correctly.
13413 lt_compile=`echo "$ac_compile" | $SED \
13414 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13416 -e 's:$: $lt_compiler_flag:'`
13417 (eval echo "\"\$as_me:13417: $lt_compile\"" >&5)
13418 (eval "$lt_compile" 2>out/conftest.err)
13420 cat out/conftest.err >&5
13421 echo "$as_me:13421: \$? = $ac_status" >&5
13422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13424 # The compiler can only warn and ignore the option if not recognized
13425 # So say no if there are warnings
13426 if test ! -s out/conftest.err; then
13427 lt_cv_prog_compiler_c_o_F77=yes
13432 # SGI C++ compiler will create directory out/ii_files/ for
13433 # template instantiation
13434 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13435 $rm out/* && rmdir out
13441 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13442 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13445 hard_links="nottested"
13446 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13447 # do not overwrite the value of need_locks provided by the user
13448 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13449 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13452 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13454 ln conftest.a conftest.b 2>&5 || hard_links=no
13455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13456 echo "$as_me:$LINENO: result: $hard_links" >&5
13457 echo "${ECHO_T}$hard_links" >&6
13458 if test "$hard_links" = no; then
13459 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13460 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13467 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13468 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13471 allow_undefined_flag_F77=
13472 enable_shared_with_static_runtimes_F77=no
13474 archive_expsym_cmds_F77=
13475 old_archive_From_new_cmds_F77=
13476 old_archive_from_expsyms_cmds_F77=
13477 export_dynamic_flag_spec_F77=
13478 whole_archive_flag_spec_F77=
13479 thread_safe_flag_spec_F77=
13480 hardcode_libdir_flag_spec_F77=
13481 hardcode_libdir_flag_spec_ld_F77=
13482 hardcode_libdir_separator_F77=
13483 hardcode_direct_F77=no
13484 hardcode_minus_L_F77=no
13485 hardcode_shlibpath_var_F77=unsupported
13486 link_all_deplibs_F77=unknown
13487 hardcode_automatic_F77=no
13489 module_expsym_cmds_F77=
13490 always_export_symbols_F77=no
13491 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13492 # include_expsyms should be a list of space-separated symbols to be *always*
13493 # included in the symbol list
13494 include_expsyms_F77=
13495 # exclude_expsyms can be an extended regexp of symbols to exclude
13496 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13497 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13498 # as well as any symbol that contains `d'.
13499 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13500 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13501 # platforms (ab)use it in PIC code, but their linkers get confused if
13502 # the symbol is explicitly referenced. Since portable code cannot
13503 # rely on this symbol name, it's probably fine to never include it in
13504 # preloaded symbol tables.
13505 extract_expsyms_cmds=
13508 cygwin* | mingw* | pw32*)
13509 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13510 # When not using gcc, we currently assume that we are using
13511 # Microsoft Visual C++.
13512 if test "$GCC" != yes; then
13522 if test "$with_gnu_ld" = yes; then
13523 # If archive_cmds runs LD, not CC, wlarc should be empty
13526 # See if GNU ld supports shared libraries.
13528 aix3* | aix4* | aix5*)
13529 # On AIX/PPC, the GNU linker is very broken
13530 if test "$host_cpu" != ia64; then
13534 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13535 *** to be unable to reliably create shared libraries on AIX.
13536 *** Therefore, libtool is disabling shared libraries support. If you
13537 *** really care for shared libraries, you may want to modify your PATH
13538 *** so that a non-GNU linker is found, and then restart.
13545 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)'
13546 hardcode_libdir_flag_spec_F77='-L$libdir'
13547 hardcode_minus_L_F77=yes
13549 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13550 # that the semantics of dynamic libraries on AmigaOS, at least up
13551 # to version 4, is to share data among multiple programs linked
13552 # with the same dynamic library. Since this doesn't match the
13553 # behavior of shared libraries on other platforms, we can't use
13559 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13560 allow_undefined_flag_F77=unsupported
13561 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13562 # support --undefined. This deserves some investigation. FIXME
13563 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13569 cygwin* | mingw* | pw32*)
13570 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13571 # as there is no search path for DLLs.
13572 hardcode_libdir_flag_spec_F77='-L$libdir'
13573 allow_undefined_flag_F77=unsupported
13574 always_export_symbols_F77=no
13575 enable_shared_with_static_runtimes_F77=yes
13576 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13578 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13579 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13580 # If the export-symbols file already is a .def file (1st line
13581 # is EXPORTS), use it as is; otherwise, prepend...
13582 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13583 cp $export_symbols $output_objdir/$soname.def;
13585 echo EXPORTS > $output_objdir/$soname.def;
13586 cat $export_symbols >> $output_objdir/$soname.def;
13588 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13595 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13596 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13599 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13600 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13605 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13609 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13610 *** create shared libraries on Solaris systems. Therefore, libtool
13611 *** is disabling shared libraries support. We urge you to upgrade GNU
13612 *** binutils to release 2.9.1 or newer. Another option is to modify
13613 *** your PATH or compiler configuration so that the native linker is
13614 *** used, and then restart.
13617 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13618 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13619 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13626 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13628 hardcode_direct_F77=yes
13629 hardcode_shlibpath_var_F77=no
13633 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13634 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13635 archive_cmds_F77="$tmp_archive_cmds"
13636 supports_anon_versioning=no
13637 case `$LD -v 2>/dev/null` in
13638 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13639 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13640 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13641 *\ 2.11.*) ;; # other 2.11 versions
13642 *) supports_anon_versioning=yes ;;
13644 if test $supports_anon_versioning = yes; then
13645 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13646 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13647 $echo "local: *; };" >> $output_objdir/$libname.ver~
13648 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13650 archive_expsym_cmds_F77="$tmp_archive_cmds"
13658 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13659 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13660 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13667 if test "$ld_shlibs_F77" = yes; then
13668 runpath_var=LD_RUN_PATH
13669 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13670 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13671 # ancient GNU ld didn't support --whole-archive et. al.
13672 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13673 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13675 whole_archive_flag_spec_F77=
13679 # PORTME fill in a description of your system's linker (not GNU ld)
13682 allow_undefined_flag_F77=unsupported
13683 always_export_symbols_F77=yes
13684 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'
13685 # Note: this linker hardcodes the directories in LIBPATH if there
13686 # are no directories specified by -L.
13687 hardcode_minus_L_F77=yes
13688 if test "$GCC" = yes && test -z "$link_static_flag"; then
13689 # Neither direct hardcoding nor static linking is supported with a
13691 hardcode_direct_F77=unsupported
13696 if test "$host_cpu" = ia64; then
13697 # On IA64, the linker does run time linking by default, so we don't
13698 # have to do anything special.
13699 aix_use_runtimelinking=no
13700 exp_sym_flag='-Bexport'
13703 # If we're using GNU nm, then we don't want the "-C" option.
13704 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13705 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13706 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'
13708 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'
13710 aix_use_runtimelinking=no
13712 # Test if we are trying to use run time linking or normal
13713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714 # need to do runtime linking.
13715 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13716 for ld_flag in $LDFLAGS; do
13717 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13718 aix_use_runtimelinking=yes
13724 exp_sym_flag='-bexport'
13725 no_entry_flag='-bnoentry'
13728 # When large executables or shared objects are built, AIX ld can
13729 # have problems creating the table of contents. If linking a library
13730 # or program results in "error TOC overflow" add -mminimal-toc to
13731 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13732 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13734 archive_cmds_F77=''
13735 hardcode_direct_F77=yes
13736 hardcode_libdir_separator_F77=':'
13737 link_all_deplibs_F77=yes
13739 if test "$GCC" = yes; then
13740 case $host_os in aix4.012|aix4.012.*)
13741 # We only want to do this on AIX 4.2 and lower, the check
13742 # below for broken collect2 doesn't work under 4.3+
13743 collect2name=`${CC} -print-prog-name=collect2`
13744 if test -f "$collect2name" && \
13745 strings "$collect2name" | grep resolve_lib_name >/dev/null
13747 # We have reworked collect2
13748 hardcode_direct_F77=yes
13750 # We have old collect2
13751 hardcode_direct_F77=unsupported
13752 # It fails to find uninstalled libraries when the uninstalled
13753 # path is not listed in the libpath. Setting hardcode_minus_L
13754 # to unsupported forces relinking
13755 hardcode_minus_L_F77=yes
13756 hardcode_libdir_flag_spec_F77='-L$libdir'
13757 hardcode_libdir_separator_F77=
13760 shared_flag='-shared'
13763 if test "$host_cpu" = ia64; then
13764 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13765 # chokes on -Wl,-G. The following line is correct:
13768 if test "$aix_use_runtimelinking" = yes; then
13769 shared_flag='${wl}-G'
13771 shared_flag='${wl}-bM:SRE'
13776 # It seems that -bexpall does not export symbols beginning with
13777 # underscore (_), so it is better to generate a list of symbols to export.
13778 always_export_symbols_F77=yes
13779 if test "$aix_use_runtimelinking" = yes; then
13780 # Warning - without using the other runtime loading flags (-brtl),
13781 # -berok will link without error, but may produce a broken library.
13782 allow_undefined_flag_F77='-berok'
13783 # Determine the default libpath from the value encoded in an empty executable.
13784 cat >conftest.$ac_ext <<_ACEOF
13789 rm -f conftest.$ac_objext conftest$ac_exeext
13790 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13791 (eval $ac_link) 2>conftest.er1
13793 grep -v '^ *+' conftest.er1 >conftest.err
13795 cat conftest.err >&5
13796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13797 (exit $ac_status); } &&
13798 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13800 (eval $ac_try) 2>&5
13802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13803 (exit $ac_status); }; } &&
13804 { ac_try='test -s conftest$ac_exeext'
13805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13806 (eval $ac_try) 2>&5
13808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13809 (exit $ac_status); }; }; then
13811 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13813 # Check for a 64-bit object if we didn't find anything.
13814 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; }
13817 echo "$as_me: failed program was:" >&5
13818 sed 's/^/| /' conftest.$ac_ext >&5
13821 rm -f conftest.err conftest.$ac_objext \
13822 conftest$ac_exeext conftest.$ac_ext
13823 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13825 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13826 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"
13828 if test "$host_cpu" = ia64; then
13829 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13830 allow_undefined_flag_F77="-z nodefs"
13831 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"
13833 # Determine the default libpath from the value encoded in an empty executable.
13834 cat >conftest.$ac_ext <<_ACEOF
13839 rm -f conftest.$ac_objext conftest$ac_exeext
13840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13841 (eval $ac_link) 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } &&
13848 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13850 (eval $ac_try) 2>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); }; } &&
13854 { ac_try='test -s conftest$ac_exeext'
13855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856 (eval $ac_try) 2>&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); }; }; then
13861 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13863 # Check for a 64-bit object if we didn't find anything.
13864 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; }
13867 echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13871 rm -f conftest.err conftest.$ac_objext \
13872 conftest$ac_exeext conftest.$ac_ext
13873 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13875 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13876 # Warning - without using the other run time loading flags,
13877 # -berok will link without error, but may produce a broken library.
13878 no_undefined_flag_F77=' ${wl}-bernotok'
13879 allow_undefined_flag_F77=' ${wl}-berok'
13880 # -bexpall does not export symbols beginning with underscore (_)
13881 always_export_symbols_F77=yes
13882 # Exported symbols can be pulled into shared objects from archives
13883 whole_archive_flag_spec_F77=' '
13884 archive_cmds_need_lc_F77=yes
13885 # This is similar to how AIX traditionally builds it's shared libraries.
13886 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'
13892 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)'
13893 hardcode_libdir_flag_spec_F77='-L$libdir'
13894 hardcode_minus_L_F77=yes
13895 # see comment about different semantics on the GNU ld section
13900 export_dynamic_flag_spec_F77=-rdynamic
13903 cygwin* | mingw* | pw32*)
13904 # When not using gcc, we currently assume that we are using
13905 # Microsoft Visual C++.
13906 # hardcode_libdir_flag_spec is actually meaningless, as there is
13907 # no search path for DLLs.
13908 hardcode_libdir_flag_spec_F77=' '
13909 allow_undefined_flag_F77=unsupported
13910 # Tell ltmain to make .lib files, not .a files.
13912 # Tell ltmain to make .dll files, not .so files.
13914 # FIXME: Setting linknames here is a bad hack.
13915 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13916 # The linker will automatically build a .lib file if we build a DLL.
13917 old_archive_From_new_cmds_F77='true'
13918 # FIXME: Should let the user specify the lib program.
13919 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13920 fix_srcfile_path='`cygpath -w "$srcfile"`'
13921 enable_shared_with_static_runtimes_F77=yes
13924 darwin* | rhapsody*)
13925 if test "$GXX" = yes ; then
13926 archive_cmds_need_lc_F77=no
13928 rhapsody* | darwin1.[012])
13929 allow_undefined_flag_F77='-undefined suppress'
13932 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13933 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13935 case ${MACOSX_DEPLOYMENT_TARGET} in
13937 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13940 allow_undefined_flag_F77='-undefined dynamic_lookup'
13946 lt_int_apple_cc_single_mod=no
13947 output_verbose_link_cmd='echo'
13948 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13949 lt_int_apple_cc_single_mod=yes
13951 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13952 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13954 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'
13956 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13958 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13959 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}'
13961 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}'
13963 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}'
13964 hardcode_direct_F77=no
13965 hardcode_automatic_F77=yes
13966 hardcode_shlibpath_var_F77=unsupported
13967 whole_archive_flag_spec_F77='-all_load $convenience'
13968 link_all_deplibs_F77=yes
13975 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13976 hardcode_libdir_flag_spec_F77='-L$libdir'
13977 hardcode_shlibpath_var_F77=no
13984 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13985 # support. Future versions do this automatically, but an explicit c++rt0.o
13986 # does not break anything, and helps significantly (at the cost of a little
13989 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13990 hardcode_libdir_flag_spec_F77='-R$libdir'
13991 hardcode_direct_F77=yes
13992 hardcode_shlibpath_var_F77=no
13995 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13997 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13998 hardcode_direct_F77=yes
13999 hardcode_minus_L_F77=yes
14000 hardcode_shlibpath_var_F77=no
14003 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14004 freebsd* | kfreebsd*-gnu)
14005 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14006 hardcode_libdir_flag_spec_F77='-R$libdir'
14007 hardcode_direct_F77=yes
14008 hardcode_shlibpath_var_F77=no
14012 if test "$GCC" = yes; then
14013 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'
14015 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'
14017 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14018 hardcode_libdir_separator_F77=:
14019 hardcode_direct_F77=yes
14021 # hardcode_minus_L: Not really in the search PATH,
14022 # but as the default location of the library.
14023 hardcode_minus_L_F77=yes
14024 export_dynamic_flag_spec_F77='${wl}-E'
14028 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14029 case "$host_cpu" in
14031 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14034 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14038 case "$host_cpu" in
14040 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14043 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14047 if test "$with_gnu_ld" = no; then
14048 case "$host_cpu" in
14050 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14051 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14052 hardcode_libdir_separator_F77=:
14053 hardcode_direct_F77=no
14054 hardcode_shlibpath_var_F77=no
14057 hardcode_libdir_flag_spec_F77='-L$libdir'
14058 hardcode_direct_F77=no
14059 hardcode_shlibpath_var_F77=no
14061 # hardcode_minus_L: Not really in the search PATH,
14062 # but as the default location of the library.
14063 hardcode_minus_L_F77=yes
14066 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14067 hardcode_libdir_separator_F77=:
14068 hardcode_direct_F77=yes
14069 export_dynamic_flag_spec_F77='${wl}-E'
14071 # hardcode_minus_L: Not really in the search PATH,
14072 # but as the default location of the library.
14073 hardcode_minus_L_F77=yes
14079 irix5* | irix6* | nonstopux*)
14080 if test "$GCC" = yes; then
14081 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'
14083 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'
14084 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14086 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14087 hardcode_libdir_separator_F77=:
14088 link_all_deplibs_F77=yes
14092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14093 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14095 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14097 hardcode_libdir_flag_spec_F77='-R$libdir'
14098 hardcode_direct_F77=yes
14099 hardcode_shlibpath_var_F77=no
14103 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14104 hardcode_direct_F77=yes
14105 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14106 hardcode_libdir_separator_F77=:
14107 hardcode_shlibpath_var_F77=no
14111 hardcode_direct_F77=yes
14112 hardcode_shlibpath_var_F77=no
14113 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14114 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14115 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14116 export_dynamic_flag_spec_F77='${wl}-E'
14119 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14120 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14121 hardcode_libdir_flag_spec_F77='-R$libdir'
14124 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14125 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14132 hardcode_libdir_flag_spec_F77='-L$libdir'
14133 hardcode_minus_L_F77=yes
14134 allow_undefined_flag_F77=unsupported
14135 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'
14136 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14140 if test "$GCC" = yes; then
14141 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14142 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'
14144 allow_undefined_flag_F77=' -expect_unresolved \*'
14145 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'
14147 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14148 hardcode_libdir_separator_F77=:
14151 osf4* | osf5*) # as osf3* with the addition of -msym flag
14152 if test "$GCC" = yes; then
14153 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14154 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'
14155 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14157 allow_undefined_flag_F77=' -expect_unresolved \*'
14158 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'
14159 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~
14160 $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'
14162 # Both c and cxx compiler support -rpath directly
14163 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14165 hardcode_libdir_separator_F77=:
14169 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14170 hardcode_shlibpath_var_F77=no
14171 export_dynamic_flag_spec_F77='${wl}-Bexport'
14172 runpath_var=LD_RUN_PATH
14173 hardcode_runpath_var=yes
14177 no_undefined_flag_F77=' -z text'
14178 if test "$GCC" = yes; then
14179 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14180 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14181 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14183 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14184 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14185 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14187 hardcode_libdir_flag_spec_F77='-R$libdir'
14188 hardcode_shlibpath_var_F77=no
14190 solaris2.[0-5] | solaris2.[0-5].*) ;;
14191 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14192 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14194 link_all_deplibs_F77=yes
14198 if test "x$host_vendor" = xsequent; then
14199 # Use $CC to link under sequent, because it throws in some extra .o
14200 # files that make .init and .fini sections work.
14201 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14203 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14205 hardcode_libdir_flag_spec_F77='-L$libdir'
14206 hardcode_direct_F77=yes
14207 hardcode_minus_L_F77=yes
14208 hardcode_shlibpath_var_F77=no
14212 case $host_vendor in
14214 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14215 hardcode_direct_F77=yes # is this really true???
14218 ## LD is ld it makes a PLAMLIB
14219 ## CC just makes a GrossModule.
14220 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14221 reload_cmds_F77='$CC -r -o $output$reload_objs'
14222 hardcode_direct_F77=no
14225 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14226 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14229 runpath_var='LD_RUN_PATH'
14230 hardcode_shlibpath_var_F77=no
14234 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14235 hardcode_shlibpath_var_F77=no
14236 export_dynamic_flag_spec_F77='-Bexport'
14240 if test -d /usr/nec; then
14241 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_shlibpath_var_F77=no
14243 runpath_var=LD_RUN_PATH
14244 hardcode_runpath_var=yes
14250 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14251 hardcode_direct_F77=yes
14252 hardcode_minus_L_F77=no
14253 hardcode_shlibpath_var_F77=no
14254 hardcode_runpath_var=yes
14255 runpath_var=LD_RUN_PATH
14258 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14259 no_undefined_flag_F77='${wl}-z ${wl}text'
14260 if test "$GCC" = yes; then
14261 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14263 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14265 runpath_var='LD_RUN_PATH'
14266 hardcode_shlibpath_var_F77=no
14270 no_undefined_flag_F77=' -z text'
14271 # $CC -shared without GNU ld will not create a library from C++
14272 # object files and a static libstdc++, better avoid it by now
14273 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14274 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14275 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14276 hardcode_libdir_flag_spec_F77=
14277 hardcode_shlibpath_var_F77=no
14278 runpath_var='LD_RUN_PATH'
14282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14283 hardcode_libdir_flag_spec_F77='-L$libdir'
14284 hardcode_shlibpath_var_F77=no
14293 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14294 echo "${ECHO_T}$ld_shlibs_F77" >&6
14295 test "$ld_shlibs_F77" = no && can_build_shared=no
14297 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14298 if test "$GCC" = yes; then
14299 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14303 # Do we need to explicitly link libc?
14305 case "x$archive_cmds_need_lc_F77" in
14307 # Assume -lc should be added
14308 archive_cmds_need_lc_F77=yes
14310 if test "$enable_shared" = yes && test "$GCC" = yes; then
14311 case $archive_cmds_F77 in
14313 # FIXME: we may have to deal with multi-command sequences.
14316 # Test whether the compiler implicitly links with -lc since on some
14317 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14318 # to ld, don't add -lc before -lgcc.
14319 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14320 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14322 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14325 (eval $ac_compile) 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); } 2>conftest.err; then
14331 libobjs=conftest.$ac_objext
14333 wl=$lt_prog_compiler_wl_F77
14339 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14340 allow_undefined_flag_F77=
14341 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14342 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }
14347 archive_cmds_need_lc_F77=no
14349 archive_cmds_need_lc_F77=yes
14351 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14353 cat conftest.err 1>&5
14356 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14357 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14364 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14365 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14366 library_names_spec=
14367 libname_spec='lib$name'
14371 postuninstall_cmds=
14375 shlibpath_overrides_runpath=unknown
14377 dynamic_linker="$host_os ld.so"
14378 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14379 if test "$GCC" = yes; then
14380 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14381 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14382 # if the path contains ";" then we assume it to be the separator
14383 # otherwise default to the standard path separator (i.e. ":") - it is
14384 # assumed that no part of a normal pathname contains ";" but that should
14385 # okay in the real world where ";" in dirpaths is itself problematic.
14386 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14388 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14391 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14393 need_lib_prefix=unknown
14394 hardcode_into_libs=no
14396 # when you set need_version to no, make sure it does not cause -set_version
14397 # flags to be left without arguments
14398 need_version=unknown
14403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14404 shlibpath_var=LIBPATH
14406 # AIX 3 has no versioning support, so we append a major version to the name.
14407 soname_spec='${libname}${release}${shared_ext}$major'
14414 hardcode_into_libs=yes
14415 if test "$host_cpu" = ia64; then
14416 # AIX 5 supports IA64
14417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14418 shlibpath_var=LD_LIBRARY_PATH
14420 # With GCC up to 2.95.x, collect2 would create an import file
14421 # for dependence libraries. The import file would start with
14422 # the line `#! .'. This would cause the generated library to
14423 # depend on `.', always an invalid library. This was fixed in
14424 # development snapshots of GCC prior to 3.0.
14426 aix4 | aix4.[01] | aix4.[01].*)
14427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14429 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14432 can_build_shared=no
14436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14437 # soname into executable. Probably we can add versioning support to
14438 # collect2, so additional links can be useful in future.
14439 if test "$aix_use_runtimelinking" = yes; then
14440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14441 # instead of lib<name>.a to let people know that these are not
14442 # typical AIX shared libraries.
14443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14445 # We preserve .a as extension for shared libraries through AIX4.2
14446 # and later when we are not doing run time linking.
14447 library_names_spec='${libname}${release}.a $libname.a'
14448 soname_spec='${libname}${release}${shared_ext}$major'
14450 shlibpath_var=LIBPATH
14455 library_names_spec='$libname.ixlibrary $libname.a'
14456 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14457 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'
14461 library_names_spec='${libname}${shared_ext}'
14462 dynamic_linker="$host_os ld.so"
14463 shlibpath_var=LIBRARY_PATH
14469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14470 soname_spec='${libname}${release}${shared_ext}$major'
14471 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14474 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14475 # the default ld.so.conf also contains /usr/contrib/lib and
14476 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14477 # libtool to hard-code these into programs
14480 cygwin* | mingw* | pw32*)
14481 version_type=windows
14486 case $GCC,$host_os in
14487 yes,cygwin* | yes,mingw* | yes,pw32*)
14488 library_names_spec='$libname.dll.a'
14489 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14490 postinstall_cmds='base_file=`basename \${file}`~
14491 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14492 dldir=$destdir/`dirname \$dlpath`~
14493 test -d \$dldir || mkdir -p \$dldir~
14494 $install_prog $dir/$dlname \$dldir/$dlname'
14495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14496 dlpath=$dir/\$dldll~
14498 shlibpath_overrides_runpath=yes
14502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14504 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14507 # MinGW DLLs use traditional 'lib' prefix
14508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14509 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14510 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14511 # It is most probably a Windows format PATH printed by
14512 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14513 # path with ; separators, and with drive letters. We can handle the
14514 # drive letters (cygwin fileutils understands them), so leave them,
14515 # especially as we might pass files found there to a mingw objdump,
14516 # which wouldn't understand a cygwinified path. Ahh.
14517 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14519 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14523 # pw32 DLLs use 'pw' prefix rather than 'lib'
14524 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14530 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14533 dynamic_linker='Win32 ld.exe'
14534 # FIXME: first we should search . and the directory the executable is in
14538 darwin* | rhapsody*)
14539 dynamic_linker="$host_os dyld"
14540 version_type=darwin
14543 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14544 soname_spec='${libname}${release}${major}$shared_ext'
14545 shlibpath_overrides_runpath=yes
14546 shlibpath_var=DYLD_LIBRARY_PATH
14547 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14548 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14549 if test "$GCC" = yes; then
14550 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"`
14552 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14554 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14562 soname_spec='${libname}${release}${shared_ext}$major'
14563 shlibpath_var=LD_LIBRARY_PATH
14574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14575 soname_spec='${libname}${release}${shared_ext}$major'
14576 shlibpath_var=LD_LIBRARY_PATH
14577 shlibpath_overrides_runpath=no
14578 hardcode_into_libs=yes
14579 dynamic_linker='GNU ld.so'
14583 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14584 version_type=freebsd-$objformat
14585 case $version_type in
14587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14592 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14596 shlibpath_var=LD_LIBRARY_PATH
14599 shlibpath_overrides_runpath=yes
14601 freebsd3.01* | freebsdelf3.01*)
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14606 shlibpath_overrides_runpath=no
14607 hardcode_into_libs=yes
14616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14617 soname_spec='${libname}${release}${shared_ext}$major'
14618 shlibpath_var=LD_LIBRARY_PATH
14619 hardcode_into_libs=yes
14622 hpux9* | hpux10* | hpux11*)
14623 # Give a soname corresponding to the major version so that dld.sl refuses to
14624 # link against other versions.
14628 case "$host_cpu" in
14631 hardcode_into_libs=yes
14632 dynamic_linker="$host_os dld.so"
14633 shlibpath_var=LD_LIBRARY_PATH
14634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14636 soname_spec='${libname}${release}${shared_ext}$major'
14637 if test "X$HPUX_IA64_MODE" = X32; then
14638 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14640 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14642 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14646 hardcode_into_libs=yes
14647 dynamic_linker="$host_os dld.sl"
14648 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14649 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14651 soname_spec='${libname}${release}${shared_ext}$major'
14652 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14653 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14657 dynamic_linker="$host_os dld.sl"
14658 shlibpath_var=SHLIB_PATH
14659 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661 soname_spec='${libname}${release}${shared_ext}$major'
14664 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14665 postinstall_cmds='chmod 555 $lib'
14668 irix5* | irix6* | nonstopux*)
14670 nonstopux*) version_type=nonstopux ;;
14672 if test "$lt_cv_prog_gnu_ld" = yes; then
14680 soname_spec='${libname}${release}${shared_ext}$major'
14681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14683 irix5* | nonstopux*)
14684 libsuff= shlibsuff=
14687 case $LD in # libtool.m4 will add one of these switches to LD
14688 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14689 libsuff= shlibsuff= libmagic=32-bit;;
14690 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14691 libsuff=32 shlibsuff=N32 libmagic=N32;;
14692 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14693 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14694 *) libsuff= shlibsuff= libmagic=never-match;;
14698 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14699 shlibpath_overrides_runpath=no
14700 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14701 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14702 hardcode_into_libs=yes
14705 # No shared lib support for Linux oldld, aout, or coff.
14706 linux*oldld* | linux*aout* | linux*coff*)
14710 # This must be Linux ELF.
14715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716 soname_spec='${libname}${release}${shared_ext}$major'
14717 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14718 shlibpath_var=LD_LIBRARY_PATH
14719 shlibpath_overrides_runpath=no
14720 # This implies no fast_install, which is unacceptable.
14721 # Some rework will be needed to allow for fast_install
14722 # before this can be enabled.
14723 hardcode_into_libs=yes
14725 # Append ld.so.conf contents to the search path
14726 if test -f /etc/ld.so.conf; then
14727 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14728 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14731 # We used to test for /lib/ld.so.1 and disable shared libraries on
14732 # powerpc, because MkLinux only supported shared libraries with the
14733 # GNU dynamic linker. Since this was broken with cross compilers,
14734 # most powerpc-linux boxes support dynamic linking these days and
14735 # people can always --disable-shared, the test was removed, and we
14736 # assume the GNU/Linux dynamic linker is in use.
14737 dynamic_linker='GNU/Linux ld.so'
14744 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14745 soname_spec='${libname}${release}${shared_ext}$major'
14746 shlibpath_var=LD_LIBRARY_PATH
14747 shlibpath_overrides_runpath=no
14748 hardcode_into_libs=yes
14749 dynamic_linker='GNU ld.so'
14756 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14758 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14759 dynamic_linker='NetBSD (a.out) ld.so'
14761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14762 soname_spec='${libname}${release}${shared_ext}$major'
14763 dynamic_linker='NetBSD ld.elf_so'
14765 shlibpath_var=LD_LIBRARY_PATH
14766 shlibpath_overrides_runpath=yes
14767 hardcode_into_libs=yes
14772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14773 shlibpath_var=LD_LIBRARY_PATH
14774 shlibpath_overrides_runpath=yes
14781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14782 soname_spec='${libname}${release}${shared_ext}$major'
14783 shlibpath_var=LD_LIBRARY_PATH
14784 shlibpath_overrides_runpath=yes
14791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14793 shlibpath_var=LD_LIBRARY_PATH
14794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14796 openbsd2.[89] | openbsd2.[89].*)
14797 shlibpath_overrides_runpath=no
14800 shlibpath_overrides_runpath=yes
14804 shlibpath_overrides_runpath=yes
14809 libname_spec='$name'
14812 library_names_spec='$libname${shared_ext} $libname.a'
14813 dynamic_linker='OS/2 ld.exe'
14814 shlibpath_var=LIBPATH
14817 osf3* | osf4* | osf5*)
14821 soname_spec='${libname}${release}${shared_ext}$major'
14822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14823 shlibpath_var=LD_LIBRARY_PATH
14824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14830 soname_spec='${libname}${release}${shared_ext}$major'
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14832 shlibpath_var=LD_LIBRARY_PATH
14839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14840 soname_spec='${libname}${release}${shared_ext}$major'
14841 shlibpath_var=LD_LIBRARY_PATH
14842 shlibpath_overrides_runpath=yes
14843 hardcode_into_libs=yes
14844 # ldd complains unless libraries are executable
14845 postinstall_cmds='chmod +x $lib'
14850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14851 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14852 shlibpath_var=LD_LIBRARY_PATH
14853 shlibpath_overrides_runpath=yes
14854 if test "$with_gnu_ld" = yes; then
14860 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14863 soname_spec='${libname}${release}${shared_ext}$major'
14864 shlibpath_var=LD_LIBRARY_PATH
14865 case $host_vendor in
14867 shlibpath_overrides_runpath=no
14869 export_dynamic_flag_spec='${wl}-Blargedynsym'
14870 runpath_var=LD_RUN_PATH
14878 shlibpath_overrides_runpath=no
14879 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14885 if test -d /usr/nec ;then
14887 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14888 soname_spec='$libname${shared_ext}.$major'
14889 shlibpath_var=LD_LIBRARY_PATH
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14896 soname_spec='${libname}${release}${shared_ext}$major'
14897 shlibpath_var=LD_LIBRARY_PATH
14904 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14905 echo "${ECHO_T}$dynamic_linker" >&6
14906 test "$dynamic_linker" = no && can_build_shared=no
14908 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14909 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14910 hardcode_action_F77=
14911 if test -n "$hardcode_libdir_flag_spec_F77" || \
14912 test -n "$runpath_var F77" || \
14913 test "X$hardcode_automatic_F77"="Xyes" ; then
14915 # We can hardcode non-existant directories.
14916 if test "$hardcode_direct_F77" != no &&
14917 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14918 # have to relink, otherwise we might link with an installed library
14919 # when we should be linking with a yet-to-be-installed one
14920 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14921 test "$hardcode_minus_L_F77" != no; then
14922 # Linking always hardcodes the temporary library directory.
14923 hardcode_action_F77=relink
14925 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14926 hardcode_action_F77=immediate
14929 # We cannot hardcode anything, or else we can only hardcode existing
14931 hardcode_action_F77=unsupported
14933 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14934 echo "${ECHO_T}$hardcode_action_F77" >&6
14936 if test "$hardcode_action_F77" = relink; then
14937 # Fast installation is not supported
14938 enable_fast_install=no
14939 elif test "$shlibpath_overrides_runpath" = yes ||
14940 test "$enable_shared" = no; then
14941 # Fast installation is not necessary
14942 enable_fast_install=needless
14947 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14948 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14949 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14950 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14951 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14952 echo "$as_me:$LINENO: result: yes" >&5
14953 echo "${ECHO_T}yes" >&6
14955 # FIXME - insert some real tests, host_os isn't really good enough
14958 if test -n "$STRIP" ; then
14959 striplib="$STRIP -x"
14960 echo "$as_me:$LINENO: result: yes" >&5
14961 echo "${ECHO_T}yes" >&6
14963 echo "$as_me:$LINENO: result: no" >&5
14964 echo "${ECHO_T}no" >&6
14968 echo "$as_me:$LINENO: result: no" >&5
14969 echo "${ECHO_T}no" >&6
14976 # The else clause should only fire when bootstrapping the
14977 # libtool distribution, otherwise you forgot to ship ltmain.sh
14978 # with your package, and you will get complaints that there are
14979 # no rules to generate ltmain.sh.
14980 if test -f "$ltmain"; then
14981 # See if we are running on zsh, and set the options which allow our commands through
14982 # without removal of \ escapes.
14983 if test -n "${ZSH_VERSION+set}" ; then
14984 setopt NO_GLOB_SUBST
14986 # Now quote all the things that may contain metacharacters while being
14987 # careful not to overquote the AC_SUBSTed values. We take copies of the
14988 # variables and quote the copies for generation of the libtool script.
14989 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14991 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14992 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14993 deplibs_check_method reload_flag reload_cmds need_locks \
14994 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14995 lt_cv_sys_global_symbol_to_c_name_address \
14996 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14997 old_postinstall_cmds old_postuninstall_cmds \
15001 lt_prog_compiler_wl_F77 \
15002 lt_prog_compiler_pic_F77 \
15003 lt_prog_compiler_static_F77 \
15004 lt_prog_compiler_no_builtin_flag_F77 \
15005 export_dynamic_flag_spec_F77 \
15006 thread_safe_flag_spec_F77 \
15007 whole_archive_flag_spec_F77 \
15008 enable_shared_with_static_runtimes_F77 \
15009 old_archive_cmds_F77 \
15010 old_archive_from_new_cmds_F77 \
15011 predep_objects_F77 \
15012 postdep_objects_F77 \
15015 compiler_lib_search_path_F77 \
15017 archive_expsym_cmds_F77 \
15018 postinstall_cmds_F77 \
15019 postuninstall_cmds_F77 \
15020 old_archive_from_expsyms_cmds_F77 \
15021 allow_undefined_flag_F77 \
15022 no_undefined_flag_F77 \
15023 export_symbols_cmds_F77 \
15024 hardcode_libdir_flag_spec_F77 \
15025 hardcode_libdir_flag_spec_ld_F77 \
15026 hardcode_libdir_separator_F77 \
15027 hardcode_automatic_F77 \
15029 module_expsym_cmds_F77 \
15030 lt_cv_prog_compiler_c_o_F77 \
15031 exclude_expsyms_F77 \
15032 include_expsyms_F77; do
15035 old_archive_cmds_F77 | \
15036 old_archive_from_new_cmds_F77 | \
15037 archive_cmds_F77 | \
15038 archive_expsym_cmds_F77 | \
15039 module_cmds_F77 | \
15040 module_expsym_cmds_F77 | \
15041 old_archive_from_expsyms_cmds_F77 | \
15042 export_symbols_cmds_F77 | \
15043 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15044 postinstall_cmds | postuninstall_cmds | \
15045 old_postinstall_cmds | old_postuninstall_cmds | \
15046 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15047 # Double-quote double-evaled strings.
15048 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15057 *'\$0 --fallback-echo"')
15058 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15064 cat <<__EOF__ >> "$cfgfile"
15065 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15067 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15069 # Shell to use when invoking shell scripts.
15072 # Whether or not to build shared libraries.
15073 build_libtool_libs=$enable_shared
15075 # Whether or not to build static libraries.
15076 build_old_libs=$enable_static
15078 # Whether or not to add -lc for building shared libraries.
15079 build_libtool_need_lc=$archive_cmds_need_lc_F77
15081 # Whether or not to disallow shared libs when runtime libs are static
15082 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15084 # Whether or not to optimize for fast installation.
15085 fast_install=$enable_fast_install
15088 host_alias=$host_alias
15091 # An echo program that does not interpret backslashes.
15096 AR_FLAGS=$lt_AR_FLAGS
15101 # A language-specific compiler.
15102 CC=$lt_compiler_F77
15104 # Is the compiler the GNU C compiler?
15110 # The linker used to build libraries.
15113 # Whether we need hard or soft links.
15116 # A BSD-compatible nm program.
15119 # A symbol stripping program
15122 # Used to examine libraries when file_magic_cmd begins "file"
15123 MAGIC_CMD=$MAGIC_CMD
15125 # Used on cygwin: DLL creation program.
15128 # Used on cygwin: object dumper.
15131 # Used on cygwin: assembler.
15134 # The name of the directory that contains temporary libtool files.
15137 # How to create reloadable object files.
15138 reload_flag=$lt_reload_flag
15139 reload_cmds=$lt_reload_cmds
15141 # How to pass a linker flag through the compiler.
15142 wl=$lt_lt_prog_compiler_wl_F77
15144 # Object file suffix (normally "o").
15145 objext="$ac_objext"
15147 # Old archive suffix (normally "a").
15150 # Shared library suffix (normally ".so").
15153 # Executable file suffix (normally "").
15156 # Additional compiler flags for building library objects.
15157 pic_flag=$lt_lt_prog_compiler_pic_F77
15160 # What is the maximum length of a command?
15161 max_cmd_len=$lt_cv_sys_max_cmd_len
15163 # Does compiler simultaneously support -c and -o options?
15164 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15166 # Must we lock files when doing compilation ?
15167 need_locks=$lt_need_locks
15169 # Do we need the lib prefix for modules?
15170 need_lib_prefix=$need_lib_prefix
15172 # Do we need a version for libraries?
15173 need_version=$need_version
15175 # Whether dlopen is supported.
15176 dlopen_support=$enable_dlopen
15178 # Whether dlopen of programs is supported.
15179 dlopen_self=$enable_dlopen_self
15181 # Whether dlopen of statically linked programs is supported.
15182 dlopen_self_static=$enable_dlopen_self_static
15184 # Compiler flag to prevent dynamic linking.
15185 link_static_flag=$lt_lt_prog_compiler_static_F77
15187 # Compiler flag to turn off builtin functions.
15188 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15190 # Compiler flag to allow reflexive dlopens.
15191 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15193 # Compiler flag to generate shared objects directly from archives.
15194 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15196 # Compiler flag to generate thread-safe objects.
15197 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15199 # Library versioning type.
15200 version_type=$version_type
15202 # Format of library name prefix.
15203 libname_spec=$lt_libname_spec
15205 # List of archive names. First name is the real one, the rest are links.
15206 # The last name is the one that the linker finds with -lNAME.
15207 library_names_spec=$lt_library_names_spec
15209 # The coded name of the library, if different from the real name.
15210 soname_spec=$lt_soname_spec
15212 # Commands used to build and install an old-style archive.
15214 old_archive_cmds=$lt_old_archive_cmds_F77
15215 old_postinstall_cmds=$lt_old_postinstall_cmds
15216 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15218 # Create an old-style archive from a shared archive.
15219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15221 # Create a temporary old-style archive to link instead of a shared archive.
15222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15224 # Commands used to build and install a shared archive.
15225 archive_cmds=$lt_archive_cmds_F77
15226 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15227 postinstall_cmds=$lt_postinstall_cmds
15228 postuninstall_cmds=$lt_postuninstall_cmds
15230 # Commands used to build a loadable module (assumed same as above if empty)
15231 module_cmds=$lt_module_cmds_F77
15232 module_expsym_cmds=$lt_module_expsym_cmds_F77
15234 # Commands to strip libraries.
15235 old_striplib=$lt_old_striplib
15236 striplib=$lt_striplib
15238 # Dependencies to place before the objects being linked to create a
15240 predep_objects=$lt_predep_objects_F77
15242 # Dependencies to place after the objects being linked to create a
15244 postdep_objects=$lt_postdep_objects_F77
15246 # Dependencies to place before the objects being linked to create a
15248 predeps=$lt_predeps_F77
15250 # Dependencies to place after the objects being linked to create a
15252 postdeps=$lt_postdeps_F77
15254 # The library search path used internally by the compiler when linking
15255 # a shared library.
15256 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15258 # Method to check whether dependent libraries are shared objects.
15259 deplibs_check_method=$lt_deplibs_check_method
15261 # Command to use when deplibs_check_method == file_magic.
15262 file_magic_cmd=$lt_file_magic_cmd
15264 # Flag that allows shared libraries with undefined symbols to be built.
15265 allow_undefined_flag=$lt_allow_undefined_flag_F77
15267 # Flag that forces no undefined symbols.
15268 no_undefined_flag=$lt_no_undefined_flag_F77
15270 # Commands used to finish a libtool library installation in a directory.
15271 finish_cmds=$lt_finish_cmds
15273 # Same as above, but a single script fragment to be evaled but not shown.
15274 finish_eval=$lt_finish_eval
15276 # Take the output of nm and produce a listing of raw symbols and C names.
15277 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15279 # Transform the output of nm in a proper C declaration
15280 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15282 # Transform the output of nm in a C name address pair
15283 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15285 # This is the shared library runtime path variable.
15286 runpath_var=$runpath_var
15288 # This is the shared library path variable.
15289 shlibpath_var=$shlibpath_var
15291 # Is shlibpath searched before the hard-coded library search path?
15292 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15294 # How to hardcode a shared library path into an executable.
15295 hardcode_action=$hardcode_action_F77
15297 # Whether we should hardcode library paths into libraries.
15298 hardcode_into_libs=$hardcode_into_libs
15300 # Flag to hardcode \$libdir into a binary during linking.
15301 # This must work even if \$libdir does not exist.
15302 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15304 # If ld is used when linking, flag to hardcode \$libdir into
15305 # a binary during linking. This must work even if \$libdir does
15307 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15309 # Whether we need a single -rpath flag with a separated argument.
15310 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15312 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15313 # resulting binary.
15314 hardcode_direct=$hardcode_direct_F77
15316 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15317 # resulting binary.
15318 hardcode_minus_L=$hardcode_minus_L_F77
15320 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15321 # the resulting binary.
15322 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15324 # Set to yes if building a shared library automatically hardcodes DIR into the library
15325 # and all subsequent libraries and executables linked against it.
15326 hardcode_automatic=$hardcode_automatic_F77
15328 # Variables whose values should be saved in libtool wrapper scripts and
15329 # restored at relink time.
15330 variables_saved_for_relink="$variables_saved_for_relink"
15332 # Whether libtool must link a program against all its dependency libraries.
15333 link_all_deplibs=$link_all_deplibs_F77
15335 # Compile-time system search path for libraries
15336 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15338 # Run-time system search path for libraries
15339 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15341 # Fix the shell variable \$srcfile for the compiler.
15342 fix_srcfile_path="$fix_srcfile_path_F77"
15344 # Set to yes if exported symbols are required.
15345 always_export_symbols=$always_export_symbols_F77
15347 # The commands to list exported symbols.
15348 export_symbols_cmds=$lt_export_symbols_cmds_F77
15350 # The commands to extract the exported symbol list from a shared archive.
15351 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15353 # Symbols that should not be listed in the preloaded symbols.
15354 exclude_expsyms=$lt_exclude_expsyms_F77
15356 # Symbols that must always be exported.
15357 include_expsyms=$lt_include_expsyms_F77
15359 # ### END LIBTOOL TAG CONFIG: $tagname
15365 # If there is no Makefile yet, we rely on a make rule to execute
15366 # `config.status --recheck' to rerun these tests and create the
15367 # libtool script then.
15368 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15369 if test -f "$ltmain_in"; then
15370 test -f Makefile && make "$ltmain"
15376 ac_cpp='$CPP $CPPFLAGS'
15377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15389 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15393 # Source file extension for Java test sources.
15396 # Object file extension for compiled Java test sources.
15400 # Code to be used in simple compile tests
15401 lt_simple_compile_test_code="class foo {}\n"
15403 # Code to be used in simple link tests
15404 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15406 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15408 # If no C compiler was specified, use CC.
15411 # Allow CC to be a program name with arguments.
15415 # Allow CC to be a program name with arguments.
15421 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15422 archive_cmds_need_lc_GCJ=no
15425 lt_prog_compiler_no_builtin_flag_GCJ=
15427 if test "$GCC" = yes; then
15428 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15431 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15432 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15433 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15434 echo $ECHO_N "(cached) $ECHO_C" >&6
15436 lt_cv_prog_compiler_rtti_exceptions=no
15437 ac_outfile=conftest.$ac_objext
15438 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15439 lt_compiler_flag="-fno-rtti -fno-exceptions"
15440 # Insert the option either (1) after the last *FLAGS variable, or
15441 # (2) before a word containing "conftest.", or (3) at the end.
15442 # Note that $ac_compile itself does not contain backslashes and begins
15443 # with a dollar sign (not a hyphen), so the echo should work correctly.
15444 # The option is referenced via a variable to avoid confusing sed.
15445 lt_compile=`echo "$ac_compile" | $SED \
15446 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15448 -e 's:$: $lt_compiler_flag:'`
15449 (eval echo "\"\$as_me:15449: $lt_compile\"" >&5)
15450 (eval "$lt_compile" 2>conftest.err)
15452 cat conftest.err >&5
15453 echo "$as_me:15453: \$? = $ac_status" >&5
15454 if (exit $ac_status) && test -s "$ac_outfile"; then
15455 # The compiler can only warn and ignore the option if not recognized
15456 # So say no if there are warnings
15457 if test ! -s conftest.err; then
15458 lt_cv_prog_compiler_rtti_exceptions=yes
15464 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15465 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15467 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15468 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15475 lt_prog_compiler_wl_GCJ=
15476 lt_prog_compiler_pic_GCJ=
15477 lt_prog_compiler_static_GCJ=
15479 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15482 if test "$GCC" = yes; then
15483 lt_prog_compiler_wl_GCJ='-Wl,'
15484 lt_prog_compiler_static_GCJ='-static'
15488 # All AIX code is PIC.
15489 if test "$host_cpu" = ia64; then
15490 # AIX 5 now supports IA64 processor
15491 lt_prog_compiler_static_GCJ='-Bstatic'
15496 # FIXME: we need at least 68020 code to build shared libraries, but
15497 # adding the `-m68020' flag to GCC prevents building anything better,
15499 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15502 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15503 # PIC is the default for these OSes.
15506 mingw* | pw32* | os2*)
15507 # This hack is so that the source file can tell whether it is being
15508 # built for inclusion in a dll (and should export symbols for example).
15509 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15512 darwin* | rhapsody*)
15513 # PIC is the default on this platform
15514 # Common symbols not allowed in MH_DYLIB files
15515 lt_prog_compiler_pic_GCJ='-fno-common'
15519 # Just because we use GCC doesn't mean we suddenly get shared libraries
15520 # on systems that don't support them.
15521 lt_prog_compiler_can_build_shared_GCJ=no
15526 if test -d /usr/nec; then
15527 lt_prog_compiler_pic_GCJ=-Kconform_pic
15532 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15533 # not for PA HP-UX.
15534 case "$host_cpu" in
15539 lt_prog_compiler_pic_GCJ='-fPIC'
15545 lt_prog_compiler_pic_GCJ='-fPIC'
15549 # PORTME Check for flag to pass linker flags through the system compiler.
15552 lt_prog_compiler_wl_GCJ='-Wl,'
15553 if test "$host_cpu" = ia64; then
15554 # AIX 5 now supports IA64 processor
15555 lt_prog_compiler_static_GCJ='-Bstatic'
15557 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15561 mingw* | pw32* | os2*)
15562 # This hack is so that the source file can tell whether it is being
15563 # built for inclusion in a dll (and should export symbols for example).
15564 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15567 hpux9* | hpux10* | hpux11*)
15568 lt_prog_compiler_wl_GCJ='-Wl,'
15569 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15570 # not for PA HP-UX.
15571 case "$host_cpu" in
15576 lt_prog_compiler_pic_GCJ='+Z'
15579 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15580 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15583 irix5* | irix6* | nonstopux*)
15584 lt_prog_compiler_wl_GCJ='-Wl,'
15585 # PIC (with -KPIC) is the default.
15586 lt_prog_compiler_static_GCJ='-non_shared'
15590 lt_prog_compiler_pic_GCJ='-KPIC'
15591 lt_prog_compiler_static_GCJ='-Bstatic'
15597 lt_prog_compiler_wl_GCJ='-Wl,'
15598 lt_prog_compiler_pic_GCJ='-KPIC'
15599 lt_prog_compiler_static_GCJ='-static'
15602 lt_prog_compiler_wl_GCJ='-Wl,'
15603 # All Alpha code is PIC.
15604 lt_prog_compiler_static_GCJ='-non_shared'
15609 osf3* | osf4* | osf5*)
15610 lt_prog_compiler_wl_GCJ='-Wl,'
15611 # All OSF/1 code is PIC.
15612 lt_prog_compiler_static_GCJ='-non_shared'
15616 lt_prog_compiler_pic_GCJ='-Kpic'
15617 lt_prog_compiler_static_GCJ='-dn'
15621 lt_prog_compiler_wl_GCJ='-Wl,'
15622 lt_prog_compiler_pic_GCJ='-KPIC'
15623 lt_prog_compiler_static_GCJ='-Bstatic'
15627 lt_prog_compiler_wl_GCJ='-Qoption ld '
15628 lt_prog_compiler_pic_GCJ='-PIC'
15629 lt_prog_compiler_static_GCJ='-Bstatic'
15632 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15633 lt_prog_compiler_wl_GCJ='-Wl,'
15634 lt_prog_compiler_pic_GCJ='-KPIC'
15635 lt_prog_compiler_static_GCJ='-Bstatic'
15639 if test -d /usr/nec ;then
15640 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15641 lt_prog_compiler_static_GCJ='-Bstatic'
15646 lt_prog_compiler_pic_GCJ='-pic'
15647 lt_prog_compiler_static_GCJ='-Bstatic'
15651 lt_prog_compiler_can_build_shared_GCJ=no
15656 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15657 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15660 # Check to make sure the PIC flag actually works.
15662 if test -n "$lt_prog_compiler_pic_GCJ"; then
15664 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15665 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15666 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 lt_prog_compiler_pic_works_GCJ=no
15670 ac_outfile=conftest.$ac_objext
15671 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15672 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15673 # Insert the option either (1) after the last *FLAGS variable, or
15674 # (2) before a word containing "conftest.", or (3) at the end.
15675 # Note that $ac_compile itself does not contain backslashes and begins
15676 # with a dollar sign (not a hyphen), so the echo should work correctly.
15677 # The option is referenced via a variable to avoid confusing sed.
15678 lt_compile=`echo "$ac_compile" | $SED \
15679 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15680 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15681 -e 's:$: $lt_compiler_flag:'`
15682 (eval echo "\"\$as_me:15682: $lt_compile\"" >&5)
15683 (eval "$lt_compile" 2>conftest.err)
15685 cat conftest.err >&5
15686 echo "$as_me:15686: \$? = $ac_status" >&5
15687 if (exit $ac_status) && test -s "$ac_outfile"; then
15688 # The compiler can only warn and ignore the option if not recognized
15689 # So say no if there are warnings
15690 if test ! -s conftest.err; then
15691 lt_prog_compiler_pic_works_GCJ=yes
15697 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15698 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15700 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15701 case $lt_prog_compiler_pic_GCJ in
15703 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15706 lt_prog_compiler_pic_GCJ=
15707 lt_prog_compiler_can_build_shared_GCJ=no
15712 # For platforms which do not support PIC, -DPIC is meaningless:
15714 lt_prog_compiler_pic_GCJ=
15717 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15721 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15722 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15723 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15724 echo $ECHO_N "(cached) $ECHO_C" >&6
15726 lt_cv_prog_compiler_c_o_GCJ=no
15727 $rm -r conftest 2>/dev/null
15731 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15733 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15734 # that will create temporary files in the current directory regardless of
15735 # the output directory. Thus, making CWD read-only will cause this test
15736 # to fail, enabling locking or at least warning the user not to do parallel
15740 lt_compiler_flag="-o out/conftest2.$ac_objext"
15741 # Insert the option either (1) after the last *FLAGS variable, or
15742 # (2) before a word containing "conftest.", or (3) at the end.
15743 # Note that $ac_compile itself does not contain backslashes and begins
15744 # with a dollar sign (not a hyphen), so the echo should work correctly.
15745 lt_compile=`echo "$ac_compile" | $SED \
15746 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15747 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15748 -e 's:$: $lt_compiler_flag:'`
15749 (eval echo "\"\$as_me:15749: $lt_compile\"" >&5)
15750 (eval "$lt_compile" 2>out/conftest.err)
15752 cat out/conftest.err >&5
15753 echo "$as_me:15753: \$? = $ac_status" >&5
15754 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15756 # The compiler can only warn and ignore the option if not recognized
15757 # So say no if there are warnings
15758 if test ! -s out/conftest.err; then
15759 lt_cv_prog_compiler_c_o_GCJ=yes
15764 # SGI C++ compiler will create directory out/ii_files/ for
15765 # template instantiation
15766 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15767 $rm out/* && rmdir out
15773 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15774 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15777 hard_links="nottested"
15778 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15779 # do not overwrite the value of need_locks provided by the user
15780 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15781 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15784 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15786 ln conftest.a conftest.b 2>&5 || hard_links=no
15787 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15788 echo "$as_me:$LINENO: result: $hard_links" >&5
15789 echo "${ECHO_T}$hard_links" >&6
15790 if test "$hard_links" = no; then
15791 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15792 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15799 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15800 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15803 allow_undefined_flag_GCJ=
15804 enable_shared_with_static_runtimes_GCJ=no
15806 archive_expsym_cmds_GCJ=
15807 old_archive_From_new_cmds_GCJ=
15808 old_archive_from_expsyms_cmds_GCJ=
15809 export_dynamic_flag_spec_GCJ=
15810 whole_archive_flag_spec_GCJ=
15811 thread_safe_flag_spec_GCJ=
15812 hardcode_libdir_flag_spec_GCJ=
15813 hardcode_libdir_flag_spec_ld_GCJ=
15814 hardcode_libdir_separator_GCJ=
15815 hardcode_direct_GCJ=no
15816 hardcode_minus_L_GCJ=no
15817 hardcode_shlibpath_var_GCJ=unsupported
15818 link_all_deplibs_GCJ=unknown
15819 hardcode_automatic_GCJ=no
15821 module_expsym_cmds_GCJ=
15822 always_export_symbols_GCJ=no
15823 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15824 # include_expsyms should be a list of space-separated symbols to be *always*
15825 # included in the symbol list
15826 include_expsyms_GCJ=
15827 # exclude_expsyms can be an extended regexp of symbols to exclude
15828 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15829 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15830 # as well as any symbol that contains `d'.
15831 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15832 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15833 # platforms (ab)use it in PIC code, but their linkers get confused if
15834 # the symbol is explicitly referenced. Since portable code cannot
15835 # rely on this symbol name, it's probably fine to never include it in
15836 # preloaded symbol tables.
15837 extract_expsyms_cmds=
15840 cygwin* | mingw* | pw32*)
15841 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15842 # When not using gcc, we currently assume that we are using
15843 # Microsoft Visual C++.
15844 if test "$GCC" != yes; then
15854 if test "$with_gnu_ld" = yes; then
15855 # If archive_cmds runs LD, not CC, wlarc should be empty
15858 # See if GNU ld supports shared libraries.
15860 aix3* | aix4* | aix5*)
15861 # On AIX/PPC, the GNU linker is very broken
15862 if test "$host_cpu" != ia64; then
15866 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15867 *** to be unable to reliably create shared libraries on AIX.
15868 *** Therefore, libtool is disabling shared libraries support. If you
15869 *** really care for shared libraries, you may want to modify your PATH
15870 *** so that a non-GNU linker is found, and then restart.
15877 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)'
15878 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15879 hardcode_minus_L_GCJ=yes
15881 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15882 # that the semantics of dynamic libraries on AmigaOS, at least up
15883 # to version 4, is to share data among multiple programs linked
15884 # with the same dynamic library. Since this doesn't match the
15885 # behavior of shared libraries on other platforms, we can't use
15891 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15892 allow_undefined_flag_GCJ=unsupported
15893 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15894 # support --undefined. This deserves some investigation. FIXME
15895 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15901 cygwin* | mingw* | pw32*)
15902 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15903 # as there is no search path for DLLs.
15904 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15905 allow_undefined_flag_GCJ=unsupported
15906 always_export_symbols_GCJ=no
15907 enable_shared_with_static_runtimes_GCJ=yes
15908 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15910 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15911 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15912 # If the export-symbols file already is a .def file (1st line
15913 # is EXPORTS), use it as is; otherwise, prepend...
15914 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15915 cp $export_symbols $output_objdir/$soname.def;
15917 echo EXPORTS > $output_objdir/$soname.def;
15918 cat $export_symbols >> $output_objdir/$soname.def;
15920 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15927 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15928 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15931 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15932 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15937 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15941 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15942 *** create shared libraries on Solaris systems. Therefore, libtool
15943 *** is disabling shared libraries support. We urge you to upgrade GNU
15944 *** binutils to release 2.9.1 or newer. Another option is to modify
15945 *** your PATH or compiler configuration so that the native linker is
15946 *** used, and then restart.
15949 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15950 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15951 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15958 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15960 hardcode_direct_GCJ=yes
15961 hardcode_shlibpath_var_GCJ=no
15965 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15966 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15967 archive_cmds_GCJ="$tmp_archive_cmds"
15968 supports_anon_versioning=no
15969 case `$LD -v 2>/dev/null` in
15970 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15971 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15972 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15973 *\ 2.11.*) ;; # other 2.11 versions
15974 *) supports_anon_versioning=yes ;;
15976 if test $supports_anon_versioning = yes; then
15977 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15978 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15979 $echo "local: *; };" >> $output_objdir/$libname.ver~
15980 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15982 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15990 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15991 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15992 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15999 if test "$ld_shlibs_GCJ" = yes; then
16000 runpath_var=LD_RUN_PATH
16001 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16002 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16003 # ancient GNU ld didn't support --whole-archive et. al.
16004 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16005 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16007 whole_archive_flag_spec_GCJ=
16011 # PORTME fill in a description of your system's linker (not GNU ld)
16014 allow_undefined_flag_GCJ=unsupported
16015 always_export_symbols_GCJ=yes
16016 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'
16017 # Note: this linker hardcodes the directories in LIBPATH if there
16018 # are no directories specified by -L.
16019 hardcode_minus_L_GCJ=yes
16020 if test "$GCC" = yes && test -z "$link_static_flag"; then
16021 # Neither direct hardcoding nor static linking is supported with a
16023 hardcode_direct_GCJ=unsupported
16028 if test "$host_cpu" = ia64; then
16029 # On IA64, the linker does run time linking by default, so we don't
16030 # have to do anything special.
16031 aix_use_runtimelinking=no
16032 exp_sym_flag='-Bexport'
16035 # If we're using GNU nm, then we don't want the "-C" option.
16036 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16037 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16038 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'
16040 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'
16042 aix_use_runtimelinking=no
16044 # Test if we are trying to use run time linking or normal
16045 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16046 # need to do runtime linking.
16047 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16048 for ld_flag in $LDFLAGS; do
16049 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16050 aix_use_runtimelinking=yes
16056 exp_sym_flag='-bexport'
16057 no_entry_flag='-bnoentry'
16060 # When large executables or shared objects are built, AIX ld can
16061 # have problems creating the table of contents. If linking a library
16062 # or program results in "error TOC overflow" add -mminimal-toc to
16063 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16064 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16066 archive_cmds_GCJ=''
16067 hardcode_direct_GCJ=yes
16068 hardcode_libdir_separator_GCJ=':'
16069 link_all_deplibs_GCJ=yes
16071 if test "$GCC" = yes; then
16072 case $host_os in aix4.012|aix4.012.*)
16073 # We only want to do this on AIX 4.2 and lower, the check
16074 # below for broken collect2 doesn't work under 4.3+
16075 collect2name=`${CC} -print-prog-name=collect2`
16076 if test -f "$collect2name" && \
16077 strings "$collect2name" | grep resolve_lib_name >/dev/null
16079 # We have reworked collect2
16080 hardcode_direct_GCJ=yes
16082 # We have old collect2
16083 hardcode_direct_GCJ=unsupported
16084 # It fails to find uninstalled libraries when the uninstalled
16085 # path is not listed in the libpath. Setting hardcode_minus_L
16086 # to unsupported forces relinking
16087 hardcode_minus_L_GCJ=yes
16088 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16089 hardcode_libdir_separator_GCJ=
16092 shared_flag='-shared'
16095 if test "$host_cpu" = ia64; then
16096 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16097 # chokes on -Wl,-G. The following line is correct:
16100 if test "$aix_use_runtimelinking" = yes; then
16101 shared_flag='${wl}-G'
16103 shared_flag='${wl}-bM:SRE'
16108 # It seems that -bexpall does not export symbols beginning with
16109 # underscore (_), so it is better to generate a list of symbols to export.
16110 always_export_symbols_GCJ=yes
16111 if test "$aix_use_runtimelinking" = yes; then
16112 # Warning - without using the other runtime loading flags (-brtl),
16113 # -berok will link without error, but may produce a broken library.
16114 allow_undefined_flag_GCJ='-berok'
16115 # Determine the default libpath from the value encoded in an empty executable.
16116 cat >conftest.$ac_ext <<_ACEOF
16119 cat confdefs.h >>conftest.$ac_ext
16120 cat >>conftest.$ac_ext <<_ACEOF
16121 /* end confdefs.h. */
16131 rm -f conftest.$ac_objext conftest$ac_exeext
16132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16133 (eval $ac_link) 2>conftest.er1
16135 grep -v '^ *+' conftest.er1 >conftest.err
16137 cat conftest.err >&5
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); } &&
16140 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16142 (eval $ac_try) 2>&5
16144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16145 (exit $ac_status); }; } &&
16146 { ac_try='test -s conftest$ac_exeext'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16153 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16155 # Check for a 64-bit object if we didn't find anything.
16156 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; }
16159 echo "$as_me: failed program was:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16163 rm -f conftest.err conftest.$ac_objext \
16164 conftest$ac_exeext conftest.$ac_ext
16165 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16167 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16168 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"
16170 if test "$host_cpu" = ia64; then
16171 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16172 allow_undefined_flag_GCJ="-z nodefs"
16173 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"
16175 # Determine the default libpath from the value encoded in an empty executable.
16176 cat >conftest.$ac_ext <<_ACEOF
16179 cat confdefs.h >>conftest.$ac_ext
16180 cat >>conftest.$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16193 (eval $ac_link) 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } &&
16200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16202 (eval $ac_try) 2>&5
16204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); }; } &&
16206 { ac_try='test -s conftest$ac_exeext'
16207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16208 (eval $ac_try) 2>&5
16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16211 (exit $ac_status); }; }; then
16213 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16215 # Check for a 64-bit object if we didn't find anything.
16216 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; }
16219 echo "$as_me: failed program was:" >&5
16220 sed 's/^/| /' conftest.$ac_ext >&5
16223 rm -f conftest.err conftest.$ac_objext \
16224 conftest$ac_exeext conftest.$ac_ext
16225 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16227 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16228 # Warning - without using the other run time loading flags,
16229 # -berok will link without error, but may produce a broken library.
16230 no_undefined_flag_GCJ=' ${wl}-bernotok'
16231 allow_undefined_flag_GCJ=' ${wl}-berok'
16232 # -bexpall does not export symbols beginning with underscore (_)
16233 always_export_symbols_GCJ=yes
16234 # Exported symbols can be pulled into shared objects from archives
16235 whole_archive_flag_spec_GCJ=' '
16236 archive_cmds_need_lc_GCJ=yes
16237 # This is similar to how AIX traditionally builds it's shared libraries.
16238 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'
16244 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)'
16245 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16246 hardcode_minus_L_GCJ=yes
16247 # see comment about different semantics on the GNU ld section
16252 export_dynamic_flag_spec_GCJ=-rdynamic
16255 cygwin* | mingw* | pw32*)
16256 # When not using gcc, we currently assume that we are using
16257 # Microsoft Visual C++.
16258 # hardcode_libdir_flag_spec is actually meaningless, as there is
16259 # no search path for DLLs.
16260 hardcode_libdir_flag_spec_GCJ=' '
16261 allow_undefined_flag_GCJ=unsupported
16262 # Tell ltmain to make .lib files, not .a files.
16264 # Tell ltmain to make .dll files, not .so files.
16266 # FIXME: Setting linknames here is a bad hack.
16267 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16268 # The linker will automatically build a .lib file if we build a DLL.
16269 old_archive_From_new_cmds_GCJ='true'
16270 # FIXME: Should let the user specify the lib program.
16271 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16272 fix_srcfile_path='`cygpath -w "$srcfile"`'
16273 enable_shared_with_static_runtimes_GCJ=yes
16276 darwin* | rhapsody*)
16277 if test "$GXX" = yes ; then
16278 archive_cmds_need_lc_GCJ=no
16280 rhapsody* | darwin1.[012])
16281 allow_undefined_flag_GCJ='-undefined suppress'
16284 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16285 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16287 case ${MACOSX_DEPLOYMENT_TARGET} in
16289 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16292 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16298 lt_int_apple_cc_single_mod=no
16299 output_verbose_link_cmd='echo'
16300 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16301 lt_int_apple_cc_single_mod=yes
16303 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16304 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16306 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'
16308 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16309 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16310 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16311 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}'
16313 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}'
16315 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}'
16316 hardcode_direct_GCJ=no
16317 hardcode_automatic_GCJ=yes
16318 hardcode_shlibpath_var_GCJ=unsupported
16319 whole_archive_flag_spec_GCJ='-all_load $convenience'
16320 link_all_deplibs_GCJ=yes
16327 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16328 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16329 hardcode_shlibpath_var_GCJ=no
16336 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16337 # support. Future versions do this automatically, but an explicit c++rt0.o
16338 # does not break anything, and helps significantly (at the cost of a little
16341 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16342 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16343 hardcode_direct_GCJ=yes
16344 hardcode_shlibpath_var_GCJ=no
16347 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16349 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16350 hardcode_direct_GCJ=yes
16351 hardcode_minus_L_GCJ=yes
16352 hardcode_shlibpath_var_GCJ=no
16355 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16356 freebsd* | kfreebsd*-gnu)
16357 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16358 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16359 hardcode_direct_GCJ=yes
16360 hardcode_shlibpath_var_GCJ=no
16364 if test "$GCC" = yes; then
16365 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'
16367 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'
16369 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16370 hardcode_libdir_separator_GCJ=:
16371 hardcode_direct_GCJ=yes
16373 # hardcode_minus_L: Not really in the search PATH,
16374 # but as the default location of the library.
16375 hardcode_minus_L_GCJ=yes
16376 export_dynamic_flag_spec_GCJ='${wl}-E'
16380 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16381 case "$host_cpu" in
16383 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16386 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16390 case "$host_cpu" in
16392 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16395 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16399 if test "$with_gnu_ld" = no; then
16400 case "$host_cpu" in
16402 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16403 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16404 hardcode_libdir_separator_GCJ=:
16405 hardcode_direct_GCJ=no
16406 hardcode_shlibpath_var_GCJ=no
16409 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16410 hardcode_direct_GCJ=no
16411 hardcode_shlibpath_var_GCJ=no
16413 # hardcode_minus_L: Not really in the search PATH,
16414 # but as the default location of the library.
16415 hardcode_minus_L_GCJ=yes
16418 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16419 hardcode_libdir_separator_GCJ=:
16420 hardcode_direct_GCJ=yes
16421 export_dynamic_flag_spec_GCJ='${wl}-E'
16423 # hardcode_minus_L: Not really in the search PATH,
16424 # but as the default location of the library.
16425 hardcode_minus_L_GCJ=yes
16431 irix5* | irix6* | nonstopux*)
16432 if test "$GCC" = yes; then
16433 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'
16435 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'
16436 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16438 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16439 hardcode_libdir_separator_GCJ=:
16440 link_all_deplibs_GCJ=yes
16444 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16445 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16447 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16449 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16450 hardcode_direct_GCJ=yes
16451 hardcode_shlibpath_var_GCJ=no
16455 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16456 hardcode_direct_GCJ=yes
16457 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16458 hardcode_libdir_separator_GCJ=:
16459 hardcode_shlibpath_var_GCJ=no
16463 hardcode_direct_GCJ=yes
16464 hardcode_shlibpath_var_GCJ=no
16465 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16466 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16467 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16468 export_dynamic_flag_spec_GCJ='${wl}-E'
16471 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16472 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16473 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16476 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16477 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16484 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16485 hardcode_minus_L_GCJ=yes
16486 allow_undefined_flag_GCJ=unsupported
16487 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'
16488 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16492 if test "$GCC" = yes; then
16493 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16494 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'
16496 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16497 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'
16499 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16500 hardcode_libdir_separator_GCJ=:
16503 osf4* | osf5*) # as osf3* with the addition of -msym flag
16504 if test "$GCC" = yes; then
16505 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16506 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'
16507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16509 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16510 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'
16511 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~
16512 $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'
16514 # Both c and cxx compiler support -rpath directly
16515 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16517 hardcode_libdir_separator_GCJ=:
16521 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16522 hardcode_shlibpath_var_GCJ=no
16523 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16524 runpath_var=LD_RUN_PATH
16525 hardcode_runpath_var=yes
16529 no_undefined_flag_GCJ=' -z text'
16530 if test "$GCC" = yes; then
16531 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16532 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16533 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16535 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16536 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16537 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16539 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16540 hardcode_shlibpath_var_GCJ=no
16542 solaris2.[0-5] | solaris2.[0-5].*) ;;
16543 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16544 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16546 link_all_deplibs_GCJ=yes
16550 if test "x$host_vendor" = xsequent; then
16551 # Use $CC to link under sequent, because it throws in some extra .o
16552 # files that make .init and .fini sections work.
16553 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16555 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16557 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16558 hardcode_direct_GCJ=yes
16559 hardcode_minus_L_GCJ=yes
16560 hardcode_shlibpath_var_GCJ=no
16564 case $host_vendor in
16566 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16567 hardcode_direct_GCJ=yes # is this really true???
16570 ## LD is ld it makes a PLAMLIB
16571 ## CC just makes a GrossModule.
16572 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16573 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16574 hardcode_direct_GCJ=no
16577 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16578 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16581 runpath_var='LD_RUN_PATH'
16582 hardcode_shlibpath_var_GCJ=no
16586 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16587 hardcode_shlibpath_var_GCJ=no
16588 export_dynamic_flag_spec_GCJ='-Bexport'
16592 if test -d /usr/nec; then
16593 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16594 hardcode_shlibpath_var_GCJ=no
16595 runpath_var=LD_RUN_PATH
16596 hardcode_runpath_var=yes
16602 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16603 hardcode_direct_GCJ=yes
16604 hardcode_minus_L_GCJ=no
16605 hardcode_shlibpath_var_GCJ=no
16606 hardcode_runpath_var=yes
16607 runpath_var=LD_RUN_PATH
16610 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16611 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16612 if test "$GCC" = yes; then
16613 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16615 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16617 runpath_var='LD_RUN_PATH'
16618 hardcode_shlibpath_var_GCJ=no
16622 no_undefined_flag_GCJ=' -z text'
16623 # $CC -shared without GNU ld will not create a library from C++
16624 # object files and a static libstdc++, better avoid it by now
16625 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16626 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16627 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16628 hardcode_libdir_flag_spec_GCJ=
16629 hardcode_shlibpath_var_GCJ=no
16630 runpath_var='LD_RUN_PATH'
16634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16636 hardcode_shlibpath_var_GCJ=no
16645 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16646 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16647 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16649 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16650 if test "$GCC" = yes; then
16651 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16655 # Do we need to explicitly link libc?
16657 case "x$archive_cmds_need_lc_GCJ" in
16659 # Assume -lc should be added
16660 archive_cmds_need_lc_GCJ=yes
16662 if test "$enable_shared" = yes && test "$GCC" = yes; then
16663 case $archive_cmds_GCJ in
16665 # FIXME: we may have to deal with multi-command sequences.
16668 # Test whether the compiler implicitly links with -lc since on some
16669 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16670 # to ld, don't add -lc before -lgcc.
16671 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16672 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16677 (eval $ac_compile) 2>&5
16679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16680 (exit $ac_status); } 2>conftest.err; then
16683 libobjs=conftest.$ac_objext
16685 wl=$lt_prog_compiler_wl_GCJ
16691 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16692 allow_undefined_flag_GCJ=
16693 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16694 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); }
16699 archive_cmds_need_lc_GCJ=no
16701 archive_cmds_need_lc_GCJ=yes
16703 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16705 cat conftest.err 1>&5
16708 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16709 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16716 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16717 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16718 library_names_spec=
16719 libname_spec='lib$name'
16723 postuninstall_cmds=
16727 shlibpath_overrides_runpath=unknown
16729 dynamic_linker="$host_os ld.so"
16730 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16731 if test "$GCC" = yes; then
16732 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16733 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16734 # if the path contains ";" then we assume it to be the separator
16735 # otherwise default to the standard path separator (i.e. ":") - it is
16736 # assumed that no part of a normal pathname contains ";" but that should
16737 # okay in the real world where ";" in dirpaths is itself problematic.
16738 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16740 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16743 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16745 need_lib_prefix=unknown
16746 hardcode_into_libs=no
16748 # when you set need_version to no, make sure it does not cause -set_version
16749 # flags to be left without arguments
16750 need_version=unknown
16755 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16756 shlibpath_var=LIBPATH
16758 # AIX 3 has no versioning support, so we append a major version to the name.
16759 soname_spec='${libname}${release}${shared_ext}$major'
16766 hardcode_into_libs=yes
16767 if test "$host_cpu" = ia64; then
16768 # AIX 5 supports IA64
16769 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16770 shlibpath_var=LD_LIBRARY_PATH
16772 # With GCC up to 2.95.x, collect2 would create an import file
16773 # for dependence libraries. The import file would start with
16774 # the line `#! .'. This would cause the generated library to
16775 # depend on `.', always an invalid library. This was fixed in
16776 # development snapshots of GCC prior to 3.0.
16778 aix4 | aix4.[01] | aix4.[01].*)
16779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16781 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16784 can_build_shared=no
16788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16789 # soname into executable. Probably we can add versioning support to
16790 # collect2, so additional links can be useful in future.
16791 if test "$aix_use_runtimelinking" = yes; then
16792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16793 # instead of lib<name>.a to let people know that these are not
16794 # typical AIX shared libraries.
16795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16797 # We preserve .a as extension for shared libraries through AIX4.2
16798 # and later when we are not doing run time linking.
16799 library_names_spec='${libname}${release}.a $libname.a'
16800 soname_spec='${libname}${release}${shared_ext}$major'
16802 shlibpath_var=LIBPATH
16807 library_names_spec='$libname.ixlibrary $libname.a'
16808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16809 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'
16813 library_names_spec='${libname}${shared_ext}'
16814 dynamic_linker="$host_os ld.so"
16815 shlibpath_var=LIBRARY_PATH
16821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16822 soname_spec='${libname}${release}${shared_ext}$major'
16823 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16824 shlibpath_var=LD_LIBRARY_PATH
16825 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16826 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16827 # the default ld.so.conf also contains /usr/contrib/lib and
16828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16829 # libtool to hard-code these into programs
16832 cygwin* | mingw* | pw32*)
16833 version_type=windows
16838 case $GCC,$host_os in
16839 yes,cygwin* | yes,mingw* | yes,pw32*)
16840 library_names_spec='$libname.dll.a'
16841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16842 postinstall_cmds='base_file=`basename \${file}`~
16843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16844 dldir=$destdir/`dirname \$dlpath`~
16845 test -d \$dldir || mkdir -p \$dldir~
16846 $install_prog $dir/$dlname \$dldir/$dlname'
16847 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16848 dlpath=$dir/\$dldll~
16850 shlibpath_overrides_runpath=yes
16854 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16855 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16856 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16859 # MinGW DLLs use traditional 'lib' prefix
16860 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16861 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16862 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16863 # It is most probably a Windows format PATH printed by
16864 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16865 # path with ; separators, and with drive letters. We can handle the
16866 # drive letters (cygwin fileutils understands them), so leave them,
16867 # especially as we might pass files found there to a mingw objdump,
16868 # which wouldn't understand a cygwinified path. Ahh.
16869 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16871 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16875 # pw32 DLLs use 'pw' prefix rather than 'lib'
16876 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16882 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16885 dynamic_linker='Win32 ld.exe'
16886 # FIXME: first we should search . and the directory the executable is in
16890 darwin* | rhapsody*)
16891 dynamic_linker="$host_os dyld"
16892 version_type=darwin
16895 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16896 soname_spec='${libname}${release}${major}$shared_ext'
16897 shlibpath_overrides_runpath=yes
16898 shlibpath_var=DYLD_LIBRARY_PATH
16899 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16900 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16901 if test "$GCC" = yes; then
16902 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"`
16904 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16906 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16914 soname_spec='${libname}${release}${shared_ext}$major'
16915 shlibpath_var=LD_LIBRARY_PATH
16926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16927 soname_spec='${libname}${release}${shared_ext}$major'
16928 shlibpath_var=LD_LIBRARY_PATH
16929 shlibpath_overrides_runpath=no
16930 hardcode_into_libs=yes
16931 dynamic_linker='GNU ld.so'
16935 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16936 version_type=freebsd-$objformat
16937 case $version_type in
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16944 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16948 shlibpath_var=LD_LIBRARY_PATH
16951 shlibpath_overrides_runpath=yes
16953 freebsd3.01* | freebsdelf3.01*)
16954 shlibpath_overrides_runpath=yes
16955 hardcode_into_libs=yes
16958 shlibpath_overrides_runpath=no
16959 hardcode_into_libs=yes
16968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16969 soname_spec='${libname}${release}${shared_ext}$major'
16970 shlibpath_var=LD_LIBRARY_PATH
16971 hardcode_into_libs=yes
16974 hpux9* | hpux10* | hpux11*)
16975 # Give a soname corresponding to the major version so that dld.sl refuses to
16976 # link against other versions.
16980 case "$host_cpu" in
16983 hardcode_into_libs=yes
16984 dynamic_linker="$host_os dld.so"
16985 shlibpath_var=LD_LIBRARY_PATH
16986 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988 soname_spec='${libname}${release}${shared_ext}$major'
16989 if test "X$HPUX_IA64_MODE" = X32; then
16990 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16992 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16994 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16998 hardcode_into_libs=yes
16999 dynamic_linker="$host_os dld.sl"
17000 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17001 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17005 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17009 dynamic_linker="$host_os dld.sl"
17010 shlibpath_var=SHLIB_PATH
17011 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17013 soname_spec='${libname}${release}${shared_ext}$major'
17016 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17017 postinstall_cmds='chmod 555 $lib'
17020 irix5* | irix6* | nonstopux*)
17022 nonstopux*) version_type=nonstopux ;;
17024 if test "$lt_cv_prog_gnu_ld" = yes; then
17032 soname_spec='${libname}${release}${shared_ext}$major'
17033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17035 irix5* | nonstopux*)
17036 libsuff= shlibsuff=
17039 case $LD in # libtool.m4 will add one of these switches to LD
17040 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17041 libsuff= shlibsuff= libmagic=32-bit;;
17042 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17043 libsuff=32 shlibsuff=N32 libmagic=N32;;
17044 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17045 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17046 *) libsuff= shlibsuff= libmagic=never-match;;
17050 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17051 shlibpath_overrides_runpath=no
17052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17054 hardcode_into_libs=yes
17057 # No shared lib support for Linux oldld, aout, or coff.
17058 linux*oldld* | linux*aout* | linux*coff*)
17062 # This must be Linux ELF.
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17070 shlibpath_var=LD_LIBRARY_PATH
17071 shlibpath_overrides_runpath=no
17072 # This implies no fast_install, which is unacceptable.
17073 # Some rework will be needed to allow for fast_install
17074 # before this can be enabled.
17075 hardcode_into_libs=yes
17077 # Append ld.so.conf contents to the search path
17078 if test -f /etc/ld.so.conf; then
17079 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17080 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17083 # We used to test for /lib/ld.so.1 and disable shared libraries on
17084 # powerpc, because MkLinux only supported shared libraries with the
17085 # GNU dynamic linker. Since this was broken with cross compilers,
17086 # most powerpc-linux boxes support dynamic linking these days and
17087 # people can always --disable-shared, the test was removed, and we
17088 # assume the GNU/Linux dynamic linker is in use.
17089 dynamic_linker='GNU/Linux ld.so'
17096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17097 soname_spec='${libname}${release}${shared_ext}$major'
17098 shlibpath_var=LD_LIBRARY_PATH
17099 shlibpath_overrides_runpath=no
17100 hardcode_into_libs=yes
17101 dynamic_linker='GNU ld.so'
17108 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17110 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17111 dynamic_linker='NetBSD (a.out) ld.so'
17113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
17114 soname_spec='${libname}${release}${shared_ext}$major'
17115 dynamic_linker='NetBSD ld.elf_so'
17117 shlibpath_var=LD_LIBRARY_PATH
17118 shlibpath_overrides_runpath=yes
17119 hardcode_into_libs=yes
17124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125 shlibpath_var=LD_LIBRARY_PATH
17126 shlibpath_overrides_runpath=yes
17133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17135 shlibpath_var=LD_LIBRARY_PATH
17136 shlibpath_overrides_runpath=yes
17143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17144 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17145 shlibpath_var=LD_LIBRARY_PATH
17146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17148 openbsd2.[89] | openbsd2.[89].*)
17149 shlibpath_overrides_runpath=no
17152 shlibpath_overrides_runpath=yes
17156 shlibpath_overrides_runpath=yes
17161 libname_spec='$name'
17164 library_names_spec='$libname${shared_ext} $libname.a'
17165 dynamic_linker='OS/2 ld.exe'
17166 shlibpath_var=LIBPATH
17169 osf3* | osf4* | osf5*)
17173 soname_spec='${libname}${release}${shared_ext}$major'
17174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17177 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17182 soname_spec='${libname}${release}${shared_ext}$major'
17183 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17184 shlibpath_var=LD_LIBRARY_PATH
17191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17192 soname_spec='${libname}${release}${shared_ext}$major'
17193 shlibpath_var=LD_LIBRARY_PATH
17194 shlibpath_overrides_runpath=yes
17195 hardcode_into_libs=yes
17196 # ldd complains unless libraries are executable
17197 postinstall_cmds='chmod +x $lib'
17202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17203 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17204 shlibpath_var=LD_LIBRARY_PATH
17205 shlibpath_overrides_runpath=yes
17206 if test "$with_gnu_ld" = yes; then
17212 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 case $host_vendor in
17219 shlibpath_overrides_runpath=no
17221 export_dynamic_flag_spec='${wl}-Blargedynsym'
17222 runpath_var=LD_RUN_PATH
17230 shlibpath_overrides_runpath=no
17231 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17237 if test -d /usr/nec ;then
17239 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17240 soname_spec='$libname${shared_ext}.$major'
17241 shlibpath_var=LD_LIBRARY_PATH
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17248 soname_spec='${libname}${release}${shared_ext}$major'
17249 shlibpath_var=LD_LIBRARY_PATH
17256 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17257 echo "${ECHO_T}$dynamic_linker" >&6
17258 test "$dynamic_linker" = no && can_build_shared=no
17260 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17261 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17262 hardcode_action_GCJ=
17263 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17264 test -n "$runpath_var GCJ" || \
17265 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17267 # We can hardcode non-existant directories.
17268 if test "$hardcode_direct_GCJ" != no &&
17269 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17270 # have to relink, otherwise we might link with an installed library
17271 # when we should be linking with a yet-to-be-installed one
17272 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17273 test "$hardcode_minus_L_GCJ" != no; then
17274 # Linking always hardcodes the temporary library directory.
17275 hardcode_action_GCJ=relink
17277 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17278 hardcode_action_GCJ=immediate
17281 # We cannot hardcode anything, or else we can only hardcode existing
17283 hardcode_action_GCJ=unsupported
17285 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17286 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17288 if test "$hardcode_action_GCJ" = relink; then
17289 # Fast installation is not supported
17290 enable_fast_install=no
17291 elif test "$shlibpath_overrides_runpath" = yes ||
17292 test "$enable_shared" = no; then
17293 # Fast installation is not necessary
17294 enable_fast_install=needless
17299 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17300 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17301 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17302 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17303 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17304 echo "$as_me:$LINENO: result: yes" >&5
17305 echo "${ECHO_T}yes" >&6
17307 # FIXME - insert some real tests, host_os isn't really good enough
17310 if test -n "$STRIP" ; then
17311 striplib="$STRIP -x"
17312 echo "$as_me:$LINENO: result: yes" >&5
17313 echo "${ECHO_T}yes" >&6
17315 echo "$as_me:$LINENO: result: no" >&5
17316 echo "${ECHO_T}no" >&6
17320 echo "$as_me:$LINENO: result: no" >&5
17321 echo "${ECHO_T}no" >&6
17326 if test "x$enable_dlopen" != xyes; then
17327 enable_dlopen=unknown
17328 enable_dlopen_self=unknown
17329 enable_dlopen_self_static=unknown
17336 lt_cv_dlopen="load_add_on"
17338 lt_cv_dlopen_self=yes
17342 lt_cv_dlopen="LoadLibrary"
17347 lt_cv_dlopen="dlopen"
17352 # if libdl is installed we need to link against it
17353 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17354 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17355 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17356 echo $ECHO_N "(cached) $ECHO_C" >&6
17358 ac_check_lib_save_LIBS=$LIBS
17360 cat >conftest.$ac_ext <<_ACEOF
17363 cat confdefs.h >>conftest.$ac_ext
17364 cat >>conftest.$ac_ext <<_ACEOF
17365 /* end confdefs.h. */
17367 /* Override any gcc2 internal prototype to avoid an error. */
17371 /* We use char because int might match the return type of a gcc2
17372 builtin and then its argument prototype would still apply. */
17382 rm -f conftest.$ac_objext conftest$ac_exeext
17383 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17384 (eval $ac_link) 2>conftest.er1
17386 grep -v '^ *+' conftest.er1 >conftest.err
17388 cat conftest.err >&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } &&
17391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17393 (eval $ac_try) 2>&5
17395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17396 (exit $ac_status); }; } &&
17397 { ac_try='test -s conftest$ac_exeext'
17398 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17399 (eval $ac_try) 2>&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); }; }; then
17403 ac_cv_lib_dl_dlopen=yes
17405 echo "$as_me: failed program was:" >&5
17406 sed 's/^/| /' conftest.$ac_ext >&5
17408 ac_cv_lib_dl_dlopen=no
17410 rm -f conftest.err conftest.$ac_objext \
17411 conftest$ac_exeext conftest.$ac_ext
17412 LIBS=$ac_check_lib_save_LIBS
17414 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17415 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17416 if test $ac_cv_lib_dl_dlopen = yes; then
17417 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17420 lt_cv_dlopen="dyld"
17422 lt_cv_dlopen_self=yes
17429 echo "$as_me:$LINENO: checking for shl_load" >&5
17430 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17431 if test "${ac_cv_func_shl_load+set}" = set; then
17432 echo $ECHO_N "(cached) $ECHO_C" >&6
17434 cat >conftest.$ac_ext <<_ACEOF
17437 cat confdefs.h >>conftest.$ac_ext
17438 cat >>conftest.$ac_ext <<_ACEOF
17439 /* end confdefs.h. */
17440 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17442 #define shl_load innocuous_shl_load
17444 /* System header to define __stub macros and hopefully few prototypes,
17445 which can conflict with char shl_load (); below.
17446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17447 <limits.h> exists even on freestanding compilers. */
17450 # include <limits.h>
17452 # include <assert.h>
17457 /* Override any gcc2 internal prototype to avoid an error. */
17462 /* We use char because int might match the return type of a gcc2
17463 builtin and then its argument prototype would still apply. */
17465 /* The GNU C library defines this for functions which it implements
17466 to always fail with ENOSYS. Some functions are actually named
17467 something starting with __ and the normal name is an alias. */
17468 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17471 char (*f) () = shl_load;
17480 return f != shl_load;
17485 rm -f conftest.$ac_objext conftest$ac_exeext
17486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17487 (eval $ac_link) 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17496 (eval $ac_try) 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; } &&
17500 { ac_try='test -s conftest$ac_exeext'
17501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17502 (eval $ac_try) 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 ac_cv_func_shl_load=yes
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 ac_cv_func_shl_load=no
17513 rm -f conftest.err conftest.$ac_objext \
17514 conftest$ac_exeext conftest.$ac_ext
17516 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17517 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17518 if test $ac_cv_func_shl_load = yes; then
17519 lt_cv_dlopen="shl_load"
17521 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17522 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17523 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17524 echo $ECHO_N "(cached) $ECHO_C" >&6
17526 ac_check_lib_save_LIBS=$LIBS
17528 cat >conftest.$ac_ext <<_ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17535 /* Override any gcc2 internal prototype to avoid an error. */
17539 /* We use char because int might match the return type of a gcc2
17540 builtin and then its argument prototype would still apply. */
17550 rm -f conftest.$ac_objext conftest$ac_exeext
17551 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17552 (eval $ac_link) 2>conftest.er1
17554 grep -v '^ *+' conftest.er1 >conftest.err
17556 cat conftest.err >&5
17557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17558 (exit $ac_status); } &&
17559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17561 (eval $ac_try) 2>&5
17563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17564 (exit $ac_status); }; } &&
17565 { ac_try='test -s conftest$ac_exeext'
17566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17567 (eval $ac_try) 2>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); }; }; then
17571 ac_cv_lib_dld_shl_load=yes
17573 echo "$as_me: failed program was:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_lib_dld_shl_load=no
17578 rm -f conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17580 LIBS=$ac_check_lib_save_LIBS
17582 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17583 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17584 if test $ac_cv_lib_dld_shl_load = yes; then
17585 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17587 echo "$as_me:$LINENO: checking for dlopen" >&5
17588 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17589 if test "${ac_cv_func_dlopen+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17600 #define dlopen innocuous_dlopen
17602 /* System header to define __stub macros and hopefully few prototypes,
17603 which can conflict with char dlopen (); below.
17604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17605 <limits.h> exists even on freestanding compilers. */
17608 # include <limits.h>
17610 # include <assert.h>
17615 /* Override any gcc2 internal prototype to avoid an error. */
17620 /* We use char because int might match the return type of a gcc2
17621 builtin and then its argument prototype would still apply. */
17623 /* The GNU C library defines this for functions which it implements
17624 to always fail with ENOSYS. Some functions are actually named
17625 something starting with __ and the normal name is an alias. */
17626 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17629 char (*f) () = dlopen;
17638 return f != dlopen;
17643 rm -f conftest.$ac_objext conftest$ac_exeext
17644 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17645 (eval $ac_link) 2>conftest.er1
17647 grep -v '^ *+' conftest.er1 >conftest.err
17649 cat conftest.err >&5
17650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17651 (exit $ac_status); } &&
17652 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17654 (eval $ac_try) 2>&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); }; } &&
17658 { ac_try='test -s conftest$ac_exeext'
17659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17660 (eval $ac_try) 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; }; then
17664 ac_cv_func_dlopen=yes
17666 echo "$as_me: failed program was:" >&5
17667 sed 's/^/| /' conftest.$ac_ext >&5
17669 ac_cv_func_dlopen=no
17671 rm -f conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17674 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17675 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17676 if test $ac_cv_func_dlopen = yes; then
17677 lt_cv_dlopen="dlopen"
17679 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17680 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17681 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17682 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 ac_check_lib_save_LIBS=$LIBS
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 /* Override any gcc2 internal prototype to avoid an error. */
17697 /* We use char because int might match the return type of a gcc2
17698 builtin and then its argument prototype would still apply. */
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17710 (eval $ac_link) 2>conftest.er1
17712 grep -v '^ *+' conftest.er1 >conftest.err
17714 cat conftest.err >&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); } &&
17717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17719 (eval $ac_try) 2>&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); }; } &&
17723 { ac_try='test -s conftest$ac_exeext'
17724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17725 (eval $ac_try) 2>&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; }; then
17729 ac_cv_lib_dl_dlopen=yes
17731 echo "$as_me: failed program was:" >&5
17732 sed 's/^/| /' conftest.$ac_ext >&5
17734 ac_cv_lib_dl_dlopen=no
17736 rm -f conftest.err conftest.$ac_objext \
17737 conftest$ac_exeext conftest.$ac_ext
17738 LIBS=$ac_check_lib_save_LIBS
17740 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17741 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17742 if test $ac_cv_lib_dl_dlopen = yes; then
17743 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17745 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17746 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17747 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17748 echo $ECHO_N "(cached) $ECHO_C" >&6
17750 ac_check_lib_save_LIBS=$LIBS
17751 LIBS="-lsvld $LIBS"
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17759 /* Override any gcc2 internal prototype to avoid an error. */
17763 /* We use char because int might match the return type of a gcc2
17764 builtin and then its argument prototype would still apply. */
17774 rm -f conftest.$ac_objext conftest$ac_exeext
17775 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17776 (eval $ac_link) 2>conftest.er1
17778 grep -v '^ *+' conftest.er1 >conftest.err
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } &&
17783 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17785 (eval $ac_try) 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; } &&
17789 { ac_try='test -s conftest$ac_exeext'
17790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17791 (eval $ac_try) 2>&5
17793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17794 (exit $ac_status); }; }; then
17795 ac_cv_lib_svld_dlopen=yes
17797 echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17800 ac_cv_lib_svld_dlopen=no
17802 rm -f conftest.err conftest.$ac_objext \
17803 conftest$ac_exeext conftest.$ac_ext
17804 LIBS=$ac_check_lib_save_LIBS
17806 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17807 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17808 if test $ac_cv_lib_svld_dlopen = yes; then
17809 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17811 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17812 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17813 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17814 echo $ECHO_N "(cached) $ECHO_C" >&6
17816 ac_check_lib_save_LIBS=$LIBS
17818 cat >conftest.$ac_ext <<_ACEOF
17821 cat confdefs.h >>conftest.$ac_ext
17822 cat >>conftest.$ac_ext <<_ACEOF
17823 /* end confdefs.h. */
17825 /* Override any gcc2 internal prototype to avoid an error. */
17829 /* We use char because int might match the return type of a gcc2
17830 builtin and then its argument prototype would still apply. */
17840 rm -f conftest.$ac_objext conftest$ac_exeext
17841 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17842 (eval $ac_link) 2>conftest.er1
17844 grep -v '^ *+' conftest.er1 >conftest.err
17846 cat conftest.err >&5
17847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17848 (exit $ac_status); } &&
17849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17850 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17851 (eval $ac_try) 2>&5
17853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17854 (exit $ac_status); }; } &&
17855 { ac_try='test -s conftest$ac_exeext'
17856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17857 (eval $ac_try) 2>&5
17859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17860 (exit $ac_status); }; }; then
17861 ac_cv_lib_dld_dld_link=yes
17863 echo "$as_me: failed program was:" >&5
17864 sed 's/^/| /' conftest.$ac_ext >&5
17866 ac_cv_lib_dld_dld_link=no
17868 rm -f conftest.err conftest.$ac_objext \
17869 conftest$ac_exeext conftest.$ac_ext
17870 LIBS=$ac_check_lib_save_LIBS
17872 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17873 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17874 if test $ac_cv_lib_dld_dld_link = yes; then
17875 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17896 if test "x$lt_cv_dlopen" != xno; then
17902 case $lt_cv_dlopen in
17904 save_CPPFLAGS="$CPPFLAGS"
17905 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17907 save_LDFLAGS="$LDFLAGS"
17908 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17911 LIBS="$lt_cv_dlopen_libs $LIBS"
17913 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17914 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17915 if test "${lt_cv_dlopen_self+set}" = set; then
17916 echo $ECHO_N "(cached) $ECHO_C" >&6
17918 if test "$cross_compiling" = yes; then :
17919 lt_cv_dlopen_self=cross
17921 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17922 lt_status=$lt_dlunknown
17923 cat > conftest.$ac_ext <<EOF
17924 #line 17924 "configure"
17925 #include "confdefs.h"
17934 # define LT_DLGLOBAL RTLD_GLOBAL
17937 # define LT_DLGLOBAL DL_GLOBAL
17939 # define LT_DLGLOBAL 0
17943 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17944 find out it does not work in some platform. */
17945 #ifndef LT_DLLAZY_OR_NOW
17947 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17950 # define LT_DLLAZY_OR_NOW DL_LAZY
17953 # define LT_DLLAZY_OR_NOW RTLD_NOW
17956 # define LT_DLLAZY_OR_NOW DL_NOW
17958 # define LT_DLLAZY_OR_NOW 0
17966 extern "C" void exit (int);
17969 void fnord() { int i=42;}
17972 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17973 int status = $lt_dlunknown;
17977 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17978 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17979 /* dlclose (self); */
17985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17986 (eval $ac_link) 2>&5
17988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17989 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17990 (./conftest; exit; ) 2>/dev/null
17992 case x$lt_status in
17993 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17994 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17995 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17998 # compilation failed
17999 lt_cv_dlopen_self=no
18006 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18007 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18009 if test "x$lt_cv_dlopen_self" = xyes; then
18010 LDFLAGS="$LDFLAGS $link_static_flag"
18011 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18012 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18013 if test "${lt_cv_dlopen_self_static+set}" = set; then
18014 echo $ECHO_N "(cached) $ECHO_C" >&6
18016 if test "$cross_compiling" = yes; then :
18017 lt_cv_dlopen_self_static=cross
18019 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18020 lt_status=$lt_dlunknown
18021 cat > conftest.$ac_ext <<EOF
18022 #line 18022 "configure"
18023 #include "confdefs.h"
18032 # define LT_DLGLOBAL RTLD_GLOBAL
18035 # define LT_DLGLOBAL DL_GLOBAL
18037 # define LT_DLGLOBAL 0
18041 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18042 find out it does not work in some platform. */
18043 #ifndef LT_DLLAZY_OR_NOW
18045 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18048 # define LT_DLLAZY_OR_NOW DL_LAZY
18051 # define LT_DLLAZY_OR_NOW RTLD_NOW
18054 # define LT_DLLAZY_OR_NOW DL_NOW
18056 # define LT_DLLAZY_OR_NOW 0
18064 extern "C" void exit (int);
18067 void fnord() { int i=42;}
18070 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18071 int status = $lt_dlunknown;
18075 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18076 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18077 /* dlclose (self); */
18083 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18084 (eval $ac_link) 2>&5
18086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18087 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18088 (./conftest; exit; ) 2>/dev/null
18090 case x$lt_status in
18091 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18092 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18093 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18096 # compilation failed
18097 lt_cv_dlopen_self_static=no
18104 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18105 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18108 CPPFLAGS="$save_CPPFLAGS"
18109 LDFLAGS="$save_LDFLAGS"
18114 case $lt_cv_dlopen_self in
18115 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18116 *) enable_dlopen_self=unknown ;;
18119 case $lt_cv_dlopen_self_static in
18120 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18121 *) enable_dlopen_self_static=unknown ;;
18126 # The else clause should only fire when bootstrapping the
18127 # libtool distribution, otherwise you forgot to ship ltmain.sh
18128 # with your package, and you will get complaints that there are
18129 # no rules to generate ltmain.sh.
18130 if test -f "$ltmain"; then
18131 # See if we are running on zsh, and set the options which allow our commands through
18132 # without removal of \ escapes.
18133 if test -n "${ZSH_VERSION+set}" ; then
18134 setopt NO_GLOB_SUBST
18136 # Now quote all the things that may contain metacharacters while being
18137 # careful not to overquote the AC_SUBSTed values. We take copies of the
18138 # variables and quote the copies for generation of the libtool script.
18139 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18141 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18142 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18143 deplibs_check_method reload_flag reload_cmds need_locks \
18144 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18145 lt_cv_sys_global_symbol_to_c_name_address \
18146 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18147 old_postinstall_cmds old_postuninstall_cmds \
18151 lt_prog_compiler_wl_GCJ \
18152 lt_prog_compiler_pic_GCJ \
18153 lt_prog_compiler_static_GCJ \
18154 lt_prog_compiler_no_builtin_flag_GCJ \
18155 export_dynamic_flag_spec_GCJ \
18156 thread_safe_flag_spec_GCJ \
18157 whole_archive_flag_spec_GCJ \
18158 enable_shared_with_static_runtimes_GCJ \
18159 old_archive_cmds_GCJ \
18160 old_archive_from_new_cmds_GCJ \
18161 predep_objects_GCJ \
18162 postdep_objects_GCJ \
18165 compiler_lib_search_path_GCJ \
18167 archive_expsym_cmds_GCJ \
18168 postinstall_cmds_GCJ \
18169 postuninstall_cmds_GCJ \
18170 old_archive_from_expsyms_cmds_GCJ \
18171 allow_undefined_flag_GCJ \
18172 no_undefined_flag_GCJ \
18173 export_symbols_cmds_GCJ \
18174 hardcode_libdir_flag_spec_GCJ \
18175 hardcode_libdir_flag_spec_ld_GCJ \
18176 hardcode_libdir_separator_GCJ \
18177 hardcode_automatic_GCJ \
18179 module_expsym_cmds_GCJ \
18180 lt_cv_prog_compiler_c_o_GCJ \
18181 exclude_expsyms_GCJ \
18182 include_expsyms_GCJ; do
18185 old_archive_cmds_GCJ | \
18186 old_archive_from_new_cmds_GCJ | \
18187 archive_cmds_GCJ | \
18188 archive_expsym_cmds_GCJ | \
18189 module_cmds_GCJ | \
18190 module_expsym_cmds_GCJ | \
18191 old_archive_from_expsyms_cmds_GCJ | \
18192 export_symbols_cmds_GCJ | \
18193 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18194 postinstall_cmds | postuninstall_cmds | \
18195 old_postinstall_cmds | old_postuninstall_cmds | \
18196 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18197 # Double-quote double-evaled strings.
18198 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18201 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18207 *'\$0 --fallback-echo"')
18208 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18214 cat <<__EOF__ >> "$cfgfile"
18215 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18217 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18219 # Shell to use when invoking shell scripts.
18222 # Whether or not to build shared libraries.
18223 build_libtool_libs=$enable_shared
18225 # Whether or not to build static libraries.
18226 build_old_libs=$enable_static
18228 # Whether or not to add -lc for building shared libraries.
18229 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18231 # Whether or not to disallow shared libs when runtime libs are static
18232 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18234 # Whether or not to optimize for fast installation.
18235 fast_install=$enable_fast_install
18238 host_alias=$host_alias
18241 # An echo program that does not interpret backslashes.
18246 AR_FLAGS=$lt_AR_FLAGS
18251 # A language-specific compiler.
18252 CC=$lt_compiler_GCJ
18254 # Is the compiler the GNU C compiler?
18260 # The linker used to build libraries.
18263 # Whether we need hard or soft links.
18266 # A BSD-compatible nm program.
18269 # A symbol stripping program
18272 # Used to examine libraries when file_magic_cmd begins "file"
18273 MAGIC_CMD=$MAGIC_CMD
18275 # Used on cygwin: DLL creation program.
18278 # Used on cygwin: object dumper.
18281 # Used on cygwin: assembler.
18284 # The name of the directory that contains temporary libtool files.
18287 # How to create reloadable object files.
18288 reload_flag=$lt_reload_flag
18289 reload_cmds=$lt_reload_cmds
18291 # How to pass a linker flag through the compiler.
18292 wl=$lt_lt_prog_compiler_wl_GCJ
18294 # Object file suffix (normally "o").
18295 objext="$ac_objext"
18297 # Old archive suffix (normally "a").
18300 # Shared library suffix (normally ".so").
18303 # Executable file suffix (normally "").
18306 # Additional compiler flags for building library objects.
18307 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18310 # What is the maximum length of a command?
18311 max_cmd_len=$lt_cv_sys_max_cmd_len
18313 # Does compiler simultaneously support -c and -o options?
18314 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18316 # Must we lock files when doing compilation ?
18317 need_locks=$lt_need_locks
18319 # Do we need the lib prefix for modules?
18320 need_lib_prefix=$need_lib_prefix
18322 # Do we need a version for libraries?
18323 need_version=$need_version
18325 # Whether dlopen is supported.
18326 dlopen_support=$enable_dlopen
18328 # Whether dlopen of programs is supported.
18329 dlopen_self=$enable_dlopen_self
18331 # Whether dlopen of statically linked programs is supported.
18332 dlopen_self_static=$enable_dlopen_self_static
18334 # Compiler flag to prevent dynamic linking.
18335 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18337 # Compiler flag to turn off builtin functions.
18338 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18340 # Compiler flag to allow reflexive dlopens.
18341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18343 # Compiler flag to generate shared objects directly from archives.
18344 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18346 # Compiler flag to generate thread-safe objects.
18347 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18349 # Library versioning type.
18350 version_type=$version_type
18352 # Format of library name prefix.
18353 libname_spec=$lt_libname_spec
18355 # List of archive names. First name is the real one, the rest are links.
18356 # The last name is the one that the linker finds with -lNAME.
18357 library_names_spec=$lt_library_names_spec
18359 # The coded name of the library, if different from the real name.
18360 soname_spec=$lt_soname_spec
18362 # Commands used to build and install an old-style archive.
18364 old_archive_cmds=$lt_old_archive_cmds_GCJ
18365 old_postinstall_cmds=$lt_old_postinstall_cmds
18366 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18368 # Create an old-style archive from a shared archive.
18369 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18371 # Create a temporary old-style archive to link instead of a shared archive.
18372 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18374 # Commands used to build and install a shared archive.
18375 archive_cmds=$lt_archive_cmds_GCJ
18376 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18377 postinstall_cmds=$lt_postinstall_cmds
18378 postuninstall_cmds=$lt_postuninstall_cmds
18380 # Commands used to build a loadable module (assumed same as above if empty)
18381 module_cmds=$lt_module_cmds_GCJ
18382 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18384 # Commands to strip libraries.
18385 old_striplib=$lt_old_striplib
18386 striplib=$lt_striplib
18388 # Dependencies to place before the objects being linked to create a
18390 predep_objects=$lt_predep_objects_GCJ
18392 # Dependencies to place after the objects being linked to create a
18394 postdep_objects=$lt_postdep_objects_GCJ
18396 # Dependencies to place before the objects being linked to create a
18398 predeps=$lt_predeps_GCJ
18400 # Dependencies to place after the objects being linked to create a
18402 postdeps=$lt_postdeps_GCJ
18404 # The library search path used internally by the compiler when linking
18405 # a shared library.
18406 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18408 # Method to check whether dependent libraries are shared objects.
18409 deplibs_check_method=$lt_deplibs_check_method
18411 # Command to use when deplibs_check_method == file_magic.
18412 file_magic_cmd=$lt_file_magic_cmd
18414 # Flag that allows shared libraries with undefined symbols to be built.
18415 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18417 # Flag that forces no undefined symbols.
18418 no_undefined_flag=$lt_no_undefined_flag_GCJ
18420 # Commands used to finish a libtool library installation in a directory.
18421 finish_cmds=$lt_finish_cmds
18423 # Same as above, but a single script fragment to be evaled but not shown.
18424 finish_eval=$lt_finish_eval
18426 # Take the output of nm and produce a listing of raw symbols and C names.
18427 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18429 # Transform the output of nm in a proper C declaration
18430 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18432 # Transform the output of nm in a C name address pair
18433 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18435 # This is the shared library runtime path variable.
18436 runpath_var=$runpath_var
18438 # This is the shared library path variable.
18439 shlibpath_var=$shlibpath_var
18441 # Is shlibpath searched before the hard-coded library search path?
18442 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18444 # How to hardcode a shared library path into an executable.
18445 hardcode_action=$hardcode_action_GCJ
18447 # Whether we should hardcode library paths into libraries.
18448 hardcode_into_libs=$hardcode_into_libs
18450 # Flag to hardcode \$libdir into a binary during linking.
18451 # This must work even if \$libdir does not exist.
18452 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18454 # If ld is used when linking, flag to hardcode \$libdir into
18455 # a binary during linking. This must work even if \$libdir does
18457 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18459 # Whether we need a single -rpath flag with a separated argument.
18460 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18462 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18463 # resulting binary.
18464 hardcode_direct=$hardcode_direct_GCJ
18466 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18467 # resulting binary.
18468 hardcode_minus_L=$hardcode_minus_L_GCJ
18470 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18471 # the resulting binary.
18472 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18474 # Set to yes if building a shared library automatically hardcodes DIR into the library
18475 # and all subsequent libraries and executables linked against it.
18476 hardcode_automatic=$hardcode_automatic_GCJ
18478 # Variables whose values should be saved in libtool wrapper scripts and
18479 # restored at relink time.
18480 variables_saved_for_relink="$variables_saved_for_relink"
18482 # Whether libtool must link a program against all its dependency libraries.
18483 link_all_deplibs=$link_all_deplibs_GCJ
18485 # Compile-time system search path for libraries
18486 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18488 # Run-time system search path for libraries
18489 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18491 # Fix the shell variable \$srcfile for the compiler.
18492 fix_srcfile_path="$fix_srcfile_path_GCJ"
18494 # Set to yes if exported symbols are required.
18495 always_export_symbols=$always_export_symbols_GCJ
18497 # The commands to list exported symbols.
18498 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18500 # The commands to extract the exported symbol list from a shared archive.
18501 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18503 # Symbols that should not be listed in the preloaded symbols.
18504 exclude_expsyms=$lt_exclude_expsyms_GCJ
18506 # Symbols that must always be exported.
18507 include_expsyms=$lt_include_expsyms_GCJ
18509 # ### END LIBTOOL TAG CONFIG: $tagname
18515 # If there is no Makefile yet, we rely on a make rule to execute
18516 # `config.status --recheck' to rerun these tests and create the
18517 # libtool script then.
18518 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18519 if test -f "$ltmain_in"; then
18520 test -f Makefile && make "$ltmain"
18526 ac_cpp='$CPP $CPPFLAGS'
18527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18542 # Source file extension for RC test sources.
18545 # Object file extension for compiled RC test sources.
18549 # Code to be used in simple compile tests
18550 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18552 # Code to be used in simple link tests
18553 lt_simple_link_test_code="$lt_simple_compile_test_code"
18555 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18557 # If no C compiler was specified, use CC.
18560 # Allow CC to be a program name with arguments.
18564 # Allow CC to be a program name with arguments.
18569 lt_cv_prog_compiler_c_o_RC=yes
18571 # The else clause should only fire when bootstrapping the
18572 # libtool distribution, otherwise you forgot to ship ltmain.sh
18573 # with your package, and you will get complaints that there are
18574 # no rules to generate ltmain.sh.
18575 if test -f "$ltmain"; then
18576 # See if we are running on zsh, and set the options which allow our commands through
18577 # without removal of \ escapes.
18578 if test -n "${ZSH_VERSION+set}" ; then
18579 setopt NO_GLOB_SUBST
18581 # Now quote all the things that may contain metacharacters while being
18582 # careful not to overquote the AC_SUBSTed values. We take copies of the
18583 # variables and quote the copies for generation of the libtool script.
18584 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18586 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18587 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18588 deplibs_check_method reload_flag reload_cmds need_locks \
18589 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18590 lt_cv_sys_global_symbol_to_c_name_address \
18591 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18592 old_postinstall_cmds old_postuninstall_cmds \
18596 lt_prog_compiler_wl_RC \
18597 lt_prog_compiler_pic_RC \
18598 lt_prog_compiler_static_RC \
18599 lt_prog_compiler_no_builtin_flag_RC \
18600 export_dynamic_flag_spec_RC \
18601 thread_safe_flag_spec_RC \
18602 whole_archive_flag_spec_RC \
18603 enable_shared_with_static_runtimes_RC \
18604 old_archive_cmds_RC \
18605 old_archive_from_new_cmds_RC \
18606 predep_objects_RC \
18607 postdep_objects_RC \
18610 compiler_lib_search_path_RC \
18612 archive_expsym_cmds_RC \
18613 postinstall_cmds_RC \
18614 postuninstall_cmds_RC \
18615 old_archive_from_expsyms_cmds_RC \
18616 allow_undefined_flag_RC \
18617 no_undefined_flag_RC \
18618 export_symbols_cmds_RC \
18619 hardcode_libdir_flag_spec_RC \
18620 hardcode_libdir_flag_spec_ld_RC \
18621 hardcode_libdir_separator_RC \
18622 hardcode_automatic_RC \
18624 module_expsym_cmds_RC \
18625 lt_cv_prog_compiler_c_o_RC \
18626 exclude_expsyms_RC \
18627 include_expsyms_RC; do
18630 old_archive_cmds_RC | \
18631 old_archive_from_new_cmds_RC | \
18632 archive_cmds_RC | \
18633 archive_expsym_cmds_RC | \
18635 module_expsym_cmds_RC | \
18636 old_archive_from_expsyms_cmds_RC | \
18637 export_symbols_cmds_RC | \
18638 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18639 postinstall_cmds | postuninstall_cmds | \
18640 old_postinstall_cmds | old_postuninstall_cmds | \
18641 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18642 # Double-quote double-evaled strings.
18643 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18646 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18652 *'\$0 --fallback-echo"')
18653 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18659 cat <<__EOF__ >> "$cfgfile"
18660 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18662 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18664 # Shell to use when invoking shell scripts.
18667 # Whether or not to build shared libraries.
18668 build_libtool_libs=$enable_shared
18670 # Whether or not to build static libraries.
18671 build_old_libs=$enable_static
18673 # Whether or not to add -lc for building shared libraries.
18674 build_libtool_need_lc=$archive_cmds_need_lc_RC
18676 # Whether or not to disallow shared libs when runtime libs are static
18677 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18679 # Whether or not to optimize for fast installation.
18680 fast_install=$enable_fast_install
18683 host_alias=$host_alias
18686 # An echo program that does not interpret backslashes.
18691 AR_FLAGS=$lt_AR_FLAGS
18696 # A language-specific compiler.
18699 # Is the compiler the GNU C compiler?
18705 # The linker used to build libraries.
18708 # Whether we need hard or soft links.
18711 # A BSD-compatible nm program.
18714 # A symbol stripping program
18717 # Used to examine libraries when file_magic_cmd begins "file"
18718 MAGIC_CMD=$MAGIC_CMD
18720 # Used on cygwin: DLL creation program.
18723 # Used on cygwin: object dumper.
18726 # Used on cygwin: assembler.
18729 # The name of the directory that contains temporary libtool files.
18732 # How to create reloadable object files.
18733 reload_flag=$lt_reload_flag
18734 reload_cmds=$lt_reload_cmds
18736 # How to pass a linker flag through the compiler.
18737 wl=$lt_lt_prog_compiler_wl_RC
18739 # Object file suffix (normally "o").
18740 objext="$ac_objext"
18742 # Old archive suffix (normally "a").
18745 # Shared library suffix (normally ".so").
18748 # Executable file suffix (normally "").
18751 # Additional compiler flags for building library objects.
18752 pic_flag=$lt_lt_prog_compiler_pic_RC
18755 # What is the maximum length of a command?
18756 max_cmd_len=$lt_cv_sys_max_cmd_len
18758 # Does compiler simultaneously support -c and -o options?
18759 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18761 # Must we lock files when doing compilation ?
18762 need_locks=$lt_need_locks
18764 # Do we need the lib prefix for modules?
18765 need_lib_prefix=$need_lib_prefix
18767 # Do we need a version for libraries?
18768 need_version=$need_version
18770 # Whether dlopen is supported.
18771 dlopen_support=$enable_dlopen
18773 # Whether dlopen of programs is supported.
18774 dlopen_self=$enable_dlopen_self
18776 # Whether dlopen of statically linked programs is supported.
18777 dlopen_self_static=$enable_dlopen_self_static
18779 # Compiler flag to prevent dynamic linking.
18780 link_static_flag=$lt_lt_prog_compiler_static_RC
18782 # Compiler flag to turn off builtin functions.
18783 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18785 # Compiler flag to allow reflexive dlopens.
18786 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18788 # Compiler flag to generate shared objects directly from archives.
18789 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18791 # Compiler flag to generate thread-safe objects.
18792 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18794 # Library versioning type.
18795 version_type=$version_type
18797 # Format of library name prefix.
18798 libname_spec=$lt_libname_spec
18800 # List of archive names. First name is the real one, the rest are links.
18801 # The last name is the one that the linker finds with -lNAME.
18802 library_names_spec=$lt_library_names_spec
18804 # The coded name of the library, if different from the real name.
18805 soname_spec=$lt_soname_spec
18807 # Commands used to build and install an old-style archive.
18809 old_archive_cmds=$lt_old_archive_cmds_RC
18810 old_postinstall_cmds=$lt_old_postinstall_cmds
18811 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18813 # Create an old-style archive from a shared archive.
18814 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18816 # Create a temporary old-style archive to link instead of a shared archive.
18817 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18819 # Commands used to build and install a shared archive.
18820 archive_cmds=$lt_archive_cmds_RC
18821 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18822 postinstall_cmds=$lt_postinstall_cmds
18823 postuninstall_cmds=$lt_postuninstall_cmds
18825 # Commands used to build a loadable module (assumed same as above if empty)
18826 module_cmds=$lt_module_cmds_RC
18827 module_expsym_cmds=$lt_module_expsym_cmds_RC
18829 # Commands to strip libraries.
18830 old_striplib=$lt_old_striplib
18831 striplib=$lt_striplib
18833 # Dependencies to place before the objects being linked to create a
18835 predep_objects=$lt_predep_objects_RC
18837 # Dependencies to place after the objects being linked to create a
18839 postdep_objects=$lt_postdep_objects_RC
18841 # Dependencies to place before the objects being linked to create a
18843 predeps=$lt_predeps_RC
18845 # Dependencies to place after the objects being linked to create a
18847 postdeps=$lt_postdeps_RC
18849 # The library search path used internally by the compiler when linking
18850 # a shared library.
18851 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18853 # Method to check whether dependent libraries are shared objects.
18854 deplibs_check_method=$lt_deplibs_check_method
18856 # Command to use when deplibs_check_method == file_magic.
18857 file_magic_cmd=$lt_file_magic_cmd
18859 # Flag that allows shared libraries with undefined symbols to be built.
18860 allow_undefined_flag=$lt_allow_undefined_flag_RC
18862 # Flag that forces no undefined symbols.
18863 no_undefined_flag=$lt_no_undefined_flag_RC
18865 # Commands used to finish a libtool library installation in a directory.
18866 finish_cmds=$lt_finish_cmds
18868 # Same as above, but a single script fragment to be evaled but not shown.
18869 finish_eval=$lt_finish_eval
18871 # Take the output of nm and produce a listing of raw symbols and C names.
18872 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18874 # Transform the output of nm in a proper C declaration
18875 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18877 # Transform the output of nm in a C name address pair
18878 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18880 # This is the shared library runtime path variable.
18881 runpath_var=$runpath_var
18883 # This is the shared library path variable.
18884 shlibpath_var=$shlibpath_var
18886 # Is shlibpath searched before the hard-coded library search path?
18887 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18889 # How to hardcode a shared library path into an executable.
18890 hardcode_action=$hardcode_action_RC
18892 # Whether we should hardcode library paths into libraries.
18893 hardcode_into_libs=$hardcode_into_libs
18895 # Flag to hardcode \$libdir into a binary during linking.
18896 # This must work even if \$libdir does not exist.
18897 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18899 # If ld is used when linking, flag to hardcode \$libdir into
18900 # a binary during linking. This must work even if \$libdir does
18902 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18904 # Whether we need a single -rpath flag with a separated argument.
18905 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18907 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_direct=$hardcode_direct_RC
18911 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18912 # resulting binary.
18913 hardcode_minus_L=$hardcode_minus_L_RC
18915 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18916 # the resulting binary.
18917 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18919 # Set to yes if building a shared library automatically hardcodes DIR into the library
18920 # and all subsequent libraries and executables linked against it.
18921 hardcode_automatic=$hardcode_automatic_RC
18923 # Variables whose values should be saved in libtool wrapper scripts and
18924 # restored at relink time.
18925 variables_saved_for_relink="$variables_saved_for_relink"
18927 # Whether libtool must link a program against all its dependency libraries.
18928 link_all_deplibs=$link_all_deplibs_RC
18930 # Compile-time system search path for libraries
18931 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18933 # Run-time system search path for libraries
18934 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18936 # Fix the shell variable \$srcfile for the compiler.
18937 fix_srcfile_path="$fix_srcfile_path_RC"
18939 # Set to yes if exported symbols are required.
18940 always_export_symbols=$always_export_symbols_RC
18942 # The commands to list exported symbols.
18943 export_symbols_cmds=$lt_export_symbols_cmds_RC
18945 # The commands to extract the exported symbol list from a shared archive.
18946 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18948 # Symbols that should not be listed in the preloaded symbols.
18949 exclude_expsyms=$lt_exclude_expsyms_RC
18951 # Symbols that must always be exported.
18952 include_expsyms=$lt_include_expsyms_RC
18954 # ### END LIBTOOL TAG CONFIG: $tagname
18960 # If there is no Makefile yet, we rely on a make rule to execute
18961 # `config.status --recheck' to rerun these tests and create the
18962 # libtool script then.
18963 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18964 if test -f "$ltmain_in"; then
18965 test -f Makefile && make "$ltmain"
18971 ac_cpp='$CPP $CPPFLAGS'
18972 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18973 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18974 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18981 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18982 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18983 { (exit 1); exit 1; }; }
18987 # Append the new tag name to the list of available tags.
18988 if test -n "$tagname" ; then
18989 available_tags="$available_tags $tagname"
18995 # Now substitute the updated list of available tags.
18996 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18997 mv "${ofile}T" "$ofile"
19001 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19002 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19003 { (exit 1); exit 1; }; }
19009 # This can be used to rebuild libtool when needed
19010 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19012 # Always use our own libtool.
19013 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19015 # Prevent multiple expansion
19037 # Extract the first word of "gtkdoc-mkdb", so it can be a program name with args.
19038 set dummy gtkdoc-mkdb; ac_word=$2
19039 echo "$as_me:$LINENO: checking for $ac_word" >&5
19040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19041 if test "${ac_cv_prog_GTKDOC+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 if test -n "$GTKDOC"; then
19045 ac_cv_prog_GTKDOC="$GTKDOC" # Let the user override the test.
19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19048 for as_dir in $PATH
19051 test -z "$as_dir" && as_dir=.
19052 for ac_exec_ext in '' $ac_executable_extensions; do
19053 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19054 ac_cv_prog_GTKDOC="true"
19055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19061 test -z "$ac_cv_prog_GTKDOC" && ac_cv_prog_GTKDOC="false"
19064 GTKDOC=$ac_cv_prog_GTKDOC
19065 if test -n "$GTKDOC"; then
19066 echo "$as_me:$LINENO: result: $GTKDOC" >&5
19067 echo "${ECHO_T}$GTKDOC" >&6
19069 echo "$as_me:$LINENO: result: no" >&5
19070 echo "${ECHO_T}no" >&6
19077 HAVE_GTK_DOC_FALSE='#'
19079 HAVE_GTK_DOC_TRUE='#'
19080 HAVE_GTK_DOC_FALSE=
19085 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
19086 if test "${enable_gtk_doc+set}" = set; then
19087 enableval="$enable_gtk_doc"
19088 enable_gtk_doc="$enableval"
19090 enable_gtk_doc=auto
19093 if test x$enable_gtk_doc = xauto ; then
19094 if test x$GTKDOC = xtrue ; then
19103 if test x$enable_gtk_doc = xyes; then
19104 ENABLE_GTK_DOC_TRUE=
19105 ENABLE_GTK_DOC_FALSE='#'
19107 ENABLE_GTK_DOC_TRUE='#'
19108 ENABLE_GTK_DOC_FALSE=
19113 # declare the modules (no optional module)
19115 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19116 ACLOCAL="$ACLOCAL -I acmacro"
19120 ac_cpp='$CPP $CPPFLAGS'
19121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19124 if test -n "$ac_tool_prefix"; then
19125 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19126 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19127 echo "$as_me:$LINENO: checking for $ac_word" >&5
19128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19129 if test "${ac_cv_prog_CC+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19132 if test -n "$CC"; then
19133 ac_cv_prog_CC="$CC" # Let the user override the test.
19135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19136 for as_dir in $PATH
19139 test -z "$as_dir" && as_dir=.
19140 for ac_exec_ext in '' $ac_executable_extensions; do
19141 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19142 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19152 if test -n "$CC"; then
19153 echo "$as_me:$LINENO: result: $CC" >&5
19154 echo "${ECHO_T}$CC" >&6
19156 echo "$as_me:$LINENO: result: no" >&5
19157 echo "${ECHO_T}no" >&6
19161 if test -z "$ac_cv_prog_CC"; then
19163 # Extract the first word of "gcc", so it can be a program name with args.
19164 set dummy gcc; ac_word=$2
19165 echo "$as_me:$LINENO: checking for $ac_word" >&5
19166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19167 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19168 echo $ECHO_N "(cached) $ECHO_C" >&6
19170 if test -n "$ac_ct_CC"; then
19171 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19174 for as_dir in $PATH
19177 test -z "$as_dir" && as_dir=.
19178 for ac_exec_ext in '' $ac_executable_extensions; do
19179 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19180 ac_cv_prog_ac_ct_CC="gcc"
19181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19189 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19190 if test -n "$ac_ct_CC"; then
19191 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19192 echo "${ECHO_T}$ac_ct_CC" >&6
19194 echo "$as_me:$LINENO: result: no" >&5
19195 echo "${ECHO_T}no" >&6
19200 CC="$ac_cv_prog_CC"
19203 if test -z "$CC"; then
19204 if test -n "$ac_tool_prefix"; then
19205 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19206 set dummy ${ac_tool_prefix}cc; ac_word=$2
19207 echo "$as_me:$LINENO: checking for $ac_word" >&5
19208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19209 if test "${ac_cv_prog_CC+set}" = set; then
19210 echo $ECHO_N "(cached) $ECHO_C" >&6
19212 if test -n "$CC"; then
19213 ac_cv_prog_CC="$CC" # Let the user override the test.
19215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19216 for as_dir in $PATH
19219 test -z "$as_dir" && as_dir=.
19220 for ac_exec_ext in '' $ac_executable_extensions; do
19221 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19222 ac_cv_prog_CC="${ac_tool_prefix}cc"
19223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19232 if test -n "$CC"; then
19233 echo "$as_me:$LINENO: result: $CC" >&5
19234 echo "${ECHO_T}$CC" >&6
19236 echo "$as_me:$LINENO: result: no" >&5
19237 echo "${ECHO_T}no" >&6
19241 if test -z "$ac_cv_prog_CC"; then
19243 # Extract the first word of "cc", so it can be a program name with args.
19244 set dummy cc; ac_word=$2
19245 echo "$as_me:$LINENO: checking for $ac_word" >&5
19246 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19247 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19248 echo $ECHO_N "(cached) $ECHO_C" >&6
19250 if test -n "$ac_ct_CC"; then
19251 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19254 for as_dir in $PATH
19257 test -z "$as_dir" && as_dir=.
19258 for ac_exec_ext in '' $ac_executable_extensions; do
19259 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19260 ac_cv_prog_ac_ct_CC="cc"
19261 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19269 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19270 if test -n "$ac_ct_CC"; then
19271 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19272 echo "${ECHO_T}$ac_ct_CC" >&6
19274 echo "$as_me:$LINENO: result: no" >&5
19275 echo "${ECHO_T}no" >&6
19280 CC="$ac_cv_prog_CC"
19284 if test -z "$CC"; then
19285 # Extract the first word of "cc", so it can be a program name with args.
19286 set dummy cc; ac_word=$2
19287 echo "$as_me:$LINENO: checking for $ac_word" >&5
19288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19289 if test "${ac_cv_prog_CC+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19292 if test -n "$CC"; then
19293 ac_cv_prog_CC="$CC" # Let the user override the test.
19295 ac_prog_rejected=no
19296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19297 for as_dir in $PATH
19300 test -z "$as_dir" && as_dir=.
19301 for ac_exec_ext in '' $ac_executable_extensions; do
19302 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19303 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19304 ac_prog_rejected=yes
19308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19314 if test $ac_prog_rejected = yes; then
19315 # We found a bogon in the path, so make sure we never use it.
19316 set dummy $ac_cv_prog_CC
19318 if test $# != 0; then
19319 # We chose a different compiler from the bogus one.
19320 # However, it has the same basename, so the bogon will be chosen
19321 # first if we set CC to just the basename; use the full file name.
19323 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19329 if test -n "$CC"; then
19330 echo "$as_me:$LINENO: result: $CC" >&5
19331 echo "${ECHO_T}$CC" >&6
19333 echo "$as_me:$LINENO: result: no" >&5
19334 echo "${ECHO_T}no" >&6
19338 if test -z "$CC"; then
19339 if test -n "$ac_tool_prefix"; then
19342 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19343 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19344 echo "$as_me:$LINENO: checking for $ac_word" >&5
19345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19346 if test "${ac_cv_prog_CC+set}" = set; then
19347 echo $ECHO_N "(cached) $ECHO_C" >&6
19349 if test -n "$CC"; then
19350 ac_cv_prog_CC="$CC" # Let the user override the test.
19352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19353 for as_dir in $PATH
19356 test -z "$as_dir" && as_dir=.
19357 for ac_exec_ext in '' $ac_executable_extensions; do
19358 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19359 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19360 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19369 if test -n "$CC"; then
19370 echo "$as_me:$LINENO: result: $CC" >&5
19371 echo "${ECHO_T}$CC" >&6
19373 echo "$as_me:$LINENO: result: no" >&5
19374 echo "${ECHO_T}no" >&6
19377 test -n "$CC" && break
19380 if test -z "$CC"; then
19384 # Extract the first word of "$ac_prog", so it can be a program name with args.
19385 set dummy $ac_prog; ac_word=$2
19386 echo "$as_me:$LINENO: checking for $ac_word" >&5
19387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19388 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19389 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 if test -n "$ac_ct_CC"; then
19392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19395 for as_dir in $PATH
19398 test -z "$as_dir" && as_dir=.
19399 for ac_exec_ext in '' $ac_executable_extensions; do
19400 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19401 ac_cv_prog_ac_ct_CC="$ac_prog"
19402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19410 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19411 if test -n "$ac_ct_CC"; then
19412 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19413 echo "${ECHO_T}$ac_ct_CC" >&6
19415 echo "$as_me:$LINENO: result: no" >&5
19416 echo "${ECHO_T}no" >&6
19419 test -n "$ac_ct_CC" && break
19428 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19429 See \`config.log' for more details." >&5
19430 echo "$as_me: error: no acceptable C compiler found in \$PATH
19431 See \`config.log' for more details." >&2;}
19432 { (exit 1); exit 1; }; }
19434 # Provide some information about the compiler.
19435 echo "$as_me:$LINENO:" \
19436 "checking for C compiler version" >&5
19437 ac_compiler=`set X $ac_compile; echo $2`
19438 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19439 (eval $ac_compiler --version </dev/null >&5) 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }
19443 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19444 (eval $ac_compiler -v </dev/null >&5) 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }
19448 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19449 (eval $ac_compiler -V </dev/null >&5) 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }
19454 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19455 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19456 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19457 echo $ECHO_N "(cached) $ECHO_C" >&6
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19477 rm -f conftest.$ac_objext
19478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19479 (eval $ac_compile) 2>conftest.er1
19481 grep -v '^ *+' conftest.er1 >conftest.err
19483 cat conftest.err >&5
19484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19485 (exit $ac_status); } &&
19486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19488 (eval $ac_try) 2>&5
19490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19491 (exit $ac_status); }; } &&
19492 { ac_try='test -s conftest.$ac_objext'
19493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19494 (eval $ac_try) 2>&5
19496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19497 (exit $ac_status); }; }; then
19498 ac_compiler_gnu=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19506 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19509 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19510 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19511 GCC=`test $ac_compiler_gnu = yes && echo yes`
19512 ac_test_CFLAGS=${CFLAGS+set}
19513 ac_save_CFLAGS=$CFLAGS
19515 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19516 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19517 if test "${ac_cv_prog_cc_g+set}" = set; then
19518 echo $ECHO_N "(cached) $ECHO_C" >&6
19520 cat >conftest.$ac_ext <<_ACEOF
19523 cat confdefs.h >>conftest.$ac_ext
19524 cat >>conftest.$ac_ext <<_ACEOF
19525 /* end confdefs.h. */
19535 rm -f conftest.$ac_objext
19536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19537 (eval $ac_compile) 2>conftest.er1
19539 grep -v '^ *+' conftest.er1 >conftest.err
19541 cat conftest.err >&5
19542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19543 (exit $ac_status); } &&
19544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19546 (eval $ac_try) 2>&5
19548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19549 (exit $ac_status); }; } &&
19550 { ac_try='test -s conftest.$ac_objext'
19551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19552 (eval $ac_try) 2>&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); }; }; then
19556 ac_cv_prog_cc_g=yes
19558 echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19565 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19566 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19567 if test "$ac_test_CFLAGS" = set; then
19568 CFLAGS=$ac_save_CFLAGS
19569 elif test $ac_cv_prog_cc_g = yes; then
19570 if test "$GCC" = yes; then
19576 if test "$GCC" = yes; then
19582 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19583 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19584 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19585 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 ac_cv_prog_cc_stdc=no
19589 cat >conftest.$ac_ext <<_ACEOF
19592 cat confdefs.h >>conftest.$ac_ext
19593 cat >>conftest.$ac_ext <<_ACEOF
19594 /* end confdefs.h. */
19595 #include <stdarg.h>
19597 #include <sys/types.h>
19598 #include <sys/stat.h>
19599 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19600 struct buf { int x; };
19601 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19602 static char *e (p, i)
19608 static char *f (char * (*g) (char **, int), char **p, ...)
19613 s = g (p, va_arg (v,int));
19618 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19619 function prototypes and stuff, but not '\xHH' hex character constants.
19620 These don't provoke an error unfortunately, instead are silently treated
19621 as 'x'. The following induces an error, until -std1 is added to get
19622 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19623 array size at least. It's necessary to write '\x00'==0 to get something
19624 that's true only with -std1. */
19625 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19627 int test (int i, double x);
19628 struct s1 {int (*f) (int a);};
19629 struct s2 {int (*f) (double a);};
19630 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19636 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19641 # Don't try gcc -ansi; that turns off useful extensions and
19642 # breaks some systems' header files.
19643 # AIX -qlanglvl=ansi
19644 # Ultrix and OSF/1 -std1
19645 # HP-UX 10.20 and later -Ae
19646 # HP-UX older versions -Aa -D_HPUX_SOURCE
19647 # SVR4 -Xc -D__EXTENSIONS__
19648 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19650 CC="$ac_save_CC $ac_arg"
19651 rm -f conftest.$ac_objext
19652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19653 (eval $ac_compile) 2>conftest.er1
19655 grep -v '^ *+' conftest.er1 >conftest.err
19657 cat conftest.err >&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); } &&
19660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19662 (eval $ac_try) 2>&5
19664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19665 (exit $ac_status); }; } &&
19666 { ac_try='test -s conftest.$ac_objext'
19667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19668 (eval $ac_try) 2>&5
19670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19671 (exit $ac_status); }; }; then
19672 ac_cv_prog_cc_stdc=$ac_arg
19675 echo "$as_me: failed program was:" >&5
19676 sed 's/^/| /' conftest.$ac_ext >&5
19679 rm -f conftest.err conftest.$ac_objext
19681 rm -f conftest.$ac_ext conftest.$ac_objext
19686 case "x$ac_cv_prog_cc_stdc" in
19688 echo "$as_me:$LINENO: result: none needed" >&5
19689 echo "${ECHO_T}none needed" >&6 ;;
19691 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19692 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19693 CC="$CC $ac_cv_prog_cc_stdc" ;;
19696 # Some people use a C++ compiler to compile C. Since we use `exit',
19697 # in C++ we need to declare it. In case someone uses the same compiler
19698 # for both compiling C and C++ we need to have the C++ compiler decide
19699 # the declaration of exit, since it's the most demanding environment.
19700 cat >conftest.$ac_ext <<_ACEOF
19701 #ifndef __cplusplus
19705 rm -f conftest.$ac_objext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19707 (eval $ac_compile) 2>conftest.er1
19709 grep -v '^ *+' conftest.er1 >conftest.err
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest.$ac_objext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 for ac_declaration in \
19728 'extern "C" void std::exit (int) throw (); using std::exit;' \
19729 'extern "C" void std::exit (int); using std::exit;' \
19730 'extern "C" void exit (int) throw ();' \
19731 'extern "C" void exit (int);' \
19734 cat >conftest.$ac_ext <<_ACEOF
19737 cat confdefs.h >>conftest.$ac_ext
19738 cat >>conftest.$ac_ext <<_ACEOF
19739 /* end confdefs.h. */
19741 #include <stdlib.h>
19750 rm -f conftest.$ac_objext
19751 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19752 (eval $ac_compile) 2>conftest.er1
19754 grep -v '^ *+' conftest.er1 >conftest.err
19756 cat conftest.err >&5
19757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758 (exit $ac_status); } &&
19759 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19761 (eval $ac_try) 2>&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); }; } &&
19765 { ac_try='test -s conftest.$ac_objext'
19766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19767 (eval $ac_try) 2>&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); }; }; then
19773 echo "$as_me: failed program was:" >&5
19774 sed 's/^/| /' conftest.$ac_ext >&5
19778 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19779 cat >conftest.$ac_ext <<_ACEOF
19782 cat confdefs.h >>conftest.$ac_ext
19783 cat >>conftest.$ac_ext <<_ACEOF
19784 /* end confdefs.h. */
19794 rm -f conftest.$ac_objext
19795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19796 (eval $ac_compile) 2>conftest.er1
19798 grep -v '^ *+' conftest.er1 >conftest.err
19800 cat conftest.err >&5
19801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19802 (exit $ac_status); } &&
19803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19805 (eval $ac_try) 2>&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); }; } &&
19809 { ac_try='test -s conftest.$ac_objext'
19810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19811 (eval $ac_try) 2>&5
19813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); }; }; then
19817 echo "$as_me: failed program was:" >&5
19818 sed 's/^/| /' conftest.$ac_ext >&5
19821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19824 if test -n "$ac_declaration"; then
19825 echo '#ifdef __cplusplus' >>confdefs.h
19826 echo $ac_declaration >>confdefs.h
19827 echo '#endif' >>confdefs.h
19831 echo "$as_me: failed program was:" >&5
19832 sed 's/^/| /' conftest.$ac_ext >&5
19835 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19837 ac_cpp='$CPP $CPPFLAGS'
19838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19842 depcc="$CC" am_compiler_list=
19844 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19845 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19846 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19849 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19850 # We make a subdir and do the tests there. Otherwise we can end up
19851 # making bogus files that we don't know about and never remove. For
19852 # instance it was reported that on HP-UX the gcc test will end up
19853 # making a dummy file named `D' -- because `-MD' means `put the output
19856 # Copy depcomp to subdir because otherwise we won't find it if we're
19857 # using a relative directory.
19858 cp "$am_depcomp" conftest.dir
19860 # We will build objects and dependencies in a subdirectory because
19861 # it helps to detect inapplicable dependency modes. For instance
19862 # both Tru64's cc and ICC support -MD to output dependencies as a
19863 # side effect of compilation, but ICC will put the dependencies in
19864 # the current directory while Tru64 will put them in the object
19868 am_cv_CC_dependencies_compiler_type=none
19869 if test "$am_compiler_list" = ""; then
19870 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19872 for depmode in $am_compiler_list; do
19873 # Setup a source with many dependencies, because some compilers
19874 # like to wrap large dependency lists on column 80 (with \), and
19875 # we should not choose a depcomp mode which is confused by this.
19877 # We need to recreate these files for each test, as the compiler may
19878 # overwrite some of them when testing with obscure command lines.
19879 # This happens at least with the AIX C compiler.
19881 for i in 1 2 3 4 5 6; do
19882 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19883 : > sub/conftst$i.h
19885 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19889 # after this tag, mechanisms are not by side-effect, so they'll
19890 # only be used when explicitly requested
19891 if test "x$enable_dependency_tracking" = xyes; then
19899 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19900 # mode. It turns out that the SunPro C++ compiler does not properly
19901 # handle `-M -o', and we need to detect this.
19902 if depmode=$depmode \
19903 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19904 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19905 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19906 >/dev/null 2>conftest.err &&
19907 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19908 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19909 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19910 # icc doesn't choke on unknown options, it will just issue warnings
19911 # (even with -Werror). So we grep stderr for any message
19912 # that says an option was ignored.
19913 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19914 am_cv_CC_dependencies_compiler_type=$depmode
19921 rm -rf conftest.dir
19923 am_cv_CC_dependencies_compiler_type=none
19927 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19928 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19929 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19934 test "x$enable_dependency_tracking" != xno \
19935 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19936 am__fastdepCC_TRUE=
19937 am__fastdepCC_FALSE='#'
19939 am__fastdepCC_TRUE='#'
19940 am__fastdepCC_FALSE=
19945 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19946 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19948 if test -n "$ac_tool_prefix"; then
19949 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19953 echo "$as_me:$LINENO: checking for $ac_word" >&5
19954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19955 if test "${ac_cv_prog_F77+set}" = set; then
19956 echo $ECHO_N "(cached) $ECHO_C" >&6
19958 if test -n "$F77"; then
19959 ac_cv_prog_F77="$F77" # Let the user override the test.
19961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19965 test -z "$as_dir" && as_dir=.
19966 for ac_exec_ext in '' $ac_executable_extensions; do
19967 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19968 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
19969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19977 F77=$ac_cv_prog_F77
19978 if test -n "$F77"; then
19979 echo "$as_me:$LINENO: result: $F77" >&5
19980 echo "${ECHO_T}$F77" >&6
19982 echo "$as_me:$LINENO: result: no" >&5
19983 echo "${ECHO_T}no" >&6
19986 test -n "$F77" && break
19989 if test -z "$F77"; then
19991 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
19993 # Extract the first word of "$ac_prog", so it can be a program name with args.
19994 set dummy $ac_prog; ac_word=$2
19995 echo "$as_me:$LINENO: checking for $ac_word" >&5
19996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19997 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
19998 echo $ECHO_N "(cached) $ECHO_C" >&6
20000 if test -n "$ac_ct_F77"; then
20001 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
20003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20004 for as_dir in $PATH
20007 test -z "$as_dir" && as_dir=.
20008 for ac_exec_ext in '' $ac_executable_extensions; do
20009 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20010 ac_cv_prog_ac_ct_F77="$ac_prog"
20011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20019 ac_ct_F77=$ac_cv_prog_ac_ct_F77
20020 if test -n "$ac_ct_F77"; then
20021 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
20022 echo "${ECHO_T}$ac_ct_F77" >&6
20024 echo "$as_me:$LINENO: result: no" >&5
20025 echo "${ECHO_T}no" >&6
20028 test -n "$ac_ct_F77" && break
20035 # Provide some information about the compiler.
20036 echo "$as_me:20036:" \
20037 "checking for Fortran 77 compiler version" >&5
20038 ac_compiler=`set X $ac_compile; echo $2`
20039 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
20040 (eval $ac_compiler --version </dev/null >&5) 2>&5
20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20043 (exit $ac_status); }
20044 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
20045 (eval $ac_compiler -v </dev/null >&5) 2>&5
20047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20048 (exit $ac_status); }
20049 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
20050 (eval $ac_compiler -V </dev/null >&5) 2>&5
20052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20053 (exit $ac_status); }
20056 # If we don't use `.F' as extension, the preprocessor is not run on the
20057 # input file. (Note that this only needs to work for GNU compilers.)
20058 ac_save_ext=$ac_ext
20060 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
20061 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
20062 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
20063 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 cat >conftest.$ac_ext <<_ACEOF
20073 rm -f conftest.$ac_objext
20074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20075 (eval $ac_compile) 2>conftest.er1
20077 grep -v '^ *+' conftest.er1 >conftest.err
20079 cat conftest.err >&5
20080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20081 (exit $ac_status); } &&
20082 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20084 (eval $ac_try) 2>&5
20086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20087 (exit $ac_status); }; } &&
20088 { ac_try='test -s conftest.$ac_objext'
20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20090 (eval $ac_try) 2>&5
20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20093 (exit $ac_status); }; }; then
20094 ac_compiler_gnu=yes
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20101 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20102 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
20105 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
20106 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
20107 ac_ext=$ac_save_ext
20108 ac_test_FFLAGS=${FFLAGS+set}
20109 ac_save_FFLAGS=$FFLAGS
20111 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
20112 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
20113 if test "${ac_cv_prog_f77_g+set}" = set; then
20114 echo $ECHO_N "(cached) $ECHO_C" >&6
20117 cat >conftest.$ac_ext <<_ACEOF
20122 rm -f conftest.$ac_objext
20123 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20124 (eval $ac_compile) 2>conftest.er1
20126 grep -v '^ *+' conftest.er1 >conftest.err
20128 cat conftest.err >&5
20129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20130 (exit $ac_status); } &&
20131 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20133 (eval $ac_try) 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; } &&
20137 { ac_try='test -s conftest.$ac_objext'
20138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20139 (eval $ac_try) 2>&5
20141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); }; }; then
20143 ac_cv_prog_f77_g=yes
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_prog_f77_g=no
20150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20153 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
20154 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
20155 if test "$ac_test_FFLAGS" = set; then
20156 FFLAGS=$ac_save_FFLAGS
20157 elif test $ac_cv_prog_f77_g = yes; then
20158 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20164 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
20171 G77=`test $ac_compiler_gnu = yes && echo yes`
20173 ac_cpp='$CPP $CPPFLAGS'
20174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20179 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
20180 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20181 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
20182 echo "$as_me:$LINENO: checking how to get verbose linking output from $F77" >&5
20183 echo $ECHO_N "checking how to get verbose linking output from $F77... $ECHO_C" >&6
20184 if test "${ac_cv_prog_f77_v+set}" = set; then
20185 echo $ECHO_N "(cached) $ECHO_C" >&6
20187 cat >conftest.$ac_ext <<_ACEOF
20192 rm -f conftest.$ac_objext
20193 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20194 (eval $ac_compile) 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20200 (exit $ac_status); } &&
20201 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
20202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20203 (eval $ac_try) 2>&5
20205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20206 (exit $ac_status); }; } &&
20207 { ac_try='test -s conftest.$ac_objext'
20208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20209 (eval $ac_try) 2>&5
20211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20212 (exit $ac_status); }; }; then
20214 # Try some options frequently used verbose output
20215 for ac_verb in -v -verbose --verbose -V -\#\#\#; do
20216 cat >conftest.$ac_ext <<_ACEOF
20222 # Compile and link our simple test program by passing a flag (argument
20223 # 1 to this macro) to the Fortran compiler in order to get
20224 # "verbose" output that we can then parse for the Fortran linker
20226 ac_save_FFLAGS=$FFLAGS
20227 FFLAGS="$FFLAGS $ac_verb"
20228 (eval echo $as_me:20228: \"$ac_link\") >&5
20229 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20230 echo "$ac_f77_v_output" >&5
20231 FFLAGS=$ac_save_FFLAGS
20235 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20236 # /foo, /bar, and /baz are search directories for the Fortran linker.
20237 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20238 ac_f77_v_output="`echo $ac_f77_v_output |
20240 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20242 case $ac_f77_v_output in
20243 # If we are using xlf then replace all the commas with spaces.
20245 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20247 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20248 # $LIBS confuse us, and the libraries appear later in the output anyway).
20249 *mGLOB_options_string*)
20250 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20252 # If we are using Cray Fortran then delete quotes.
20253 # Use "\"" instead of '"' for font-lock-mode.
20254 # FIXME: a more general fix for quoted arguments with spaces?
20256 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20260 # look for -l* and *.a constructs in the output
20261 for ac_arg in $ac_f77_v_output; do
20263 [\\/]*.a | ?:[\\/]*.a | -[lLRu]*)
20264 ac_cv_prog_f77_v=$ac_verb
20269 if test -z "$ac_cv_prog_f77_v"; then
20270 { echo "$as_me:$LINENO: WARNING: cannot determine how to obtain linking information from $F77" >&5
20271 echo "$as_me: WARNING: cannot determine how to obtain linking information from $F77" >&2;}
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 { echo "$as_me:$LINENO: WARNING: compilation failed" >&5
20278 echo "$as_me: WARNING: compilation failed" >&2;}
20280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20283 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_v" >&5
20284 echo "${ECHO_T}$ac_cv_prog_f77_v" >&6
20285 echo "$as_me:$LINENO: checking for Fortran libraries of $F77" >&5
20286 echo $ECHO_N "checking for Fortran libraries of $F77... $ECHO_C" >&6
20287 if test "${ac_cv_f77_libs+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 if test "x$FLIBS" != "x"; then
20291 ac_cv_f77_libs="$FLIBS" # Let the user override the test.
20294 cat >conftest.$ac_ext <<_ACEOF
20300 # Compile and link our simple test program by passing a flag (argument
20301 # 1 to this macro) to the Fortran compiler in order to get
20302 # "verbose" output that we can then parse for the Fortran linker
20304 ac_save_FFLAGS=$FFLAGS
20305 FFLAGS="$FFLAGS $ac_cv_prog_f77_v"
20306 (eval echo $as_me:20306: \"$ac_link\") >&5
20307 ac_f77_v_output=`eval $ac_link 5>&1 2>&1 | grep -v 'Driving:'`
20308 echo "$ac_f77_v_output" >&5
20309 FFLAGS=$ac_save_FFLAGS
20313 # On HP/UX there is a line like: "LPATH is: /foo:/bar:/baz" where
20314 # /foo, /bar, and /baz are search directories for the Fortran linker.
20315 # Here, we change these into -L/foo -L/bar -L/baz (and put it first):
20316 ac_f77_v_output="`echo $ac_f77_v_output |
20318 sed 's,.*LPATH is\(: *[^ ]*\).*,\1,;s,: */, -L/,g'` $ac_f77_v_output"
20320 case $ac_f77_v_output in
20321 # If we are using xlf then replace all the commas with spaces.
20323 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/,/ /g'` ;;
20325 # With Intel ifc, ignore the quoted -mGLOB_options_string stuff (quoted
20326 # $LIBS confuse us, and the libraries appear later in the output anyway).
20327 *mGLOB_options_string*)
20328 ac_f77_v_output=`echo $ac_f77_v_output | sed 's/\"-mGLOB[^\"]*\"/ /g'` ;;
20330 # If we are using Cray Fortran then delete quotes.
20331 # Use "\"" instead of '"' for font-lock-mode.
20332 # FIXME: a more general fix for quoted arguments with spaces?
20334 ac_f77_v_output=`echo $ac_f77_v_output | sed "s/\"//g"` ;;
20341 # Save positional arguments (if any)
20342 ac_save_positional="$@"
20344 set X $ac_f77_v_output
20345 while test $# != 1; do
20349 [\\/]*.a | ?:[\\/]*.a)
20351 for ac_i in $ac_cv_f77_libs; do
20352 if test x"$ac_arg" = x"$ac_i"; then
20358 if test x"$ac_exists" = xtrue; then
20361 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20367 for ac_i in $ac_cv_f77_libs; do
20368 if test x"$ac_arg" = x"$ac_i"; then
20374 if test x"$ac_exists" = xtrue; then
20377 if test "$ac_compiler_gnu" = yes; then
20378 for ac_link_opt in $ac_arg; do
20379 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20382 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20387 # Ignore these flags.
20388 -lang* | -lcrt[01].o | -lcrtbegin.o | -lc | -lgcc | -libmil | -LANG:=*)
20391 test x"$CYGWIN" != xyes && ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20394 # These flags, when seen by themselves, take an argument.
20395 # We remove the space between option and argument and re-iterate
20396 # unless we find an empty arg or a new option (starting with -)
20407 for ac_j in `echo $ac_arg | sed -e 's/-YP,/-L/;s/:/ -L/g'`; do
20409 for ac_i in $ac_cv_f77_libs; do
20410 if test x"$ac_j" = x"$ac_i"; then
20416 if test x"$ac_exists" = xtrue; then
20419 ac_arg="$ac_arg $ac_j"
20420 ac_cv_f77_libs="$ac_cv_f77_libs $ac_j"
20427 for ac_i in $ac_cv_f77_libs; do
20428 if test x"$ac_arg" = x"$ac_i"; then
20434 if test x"$ac_exists" = xtrue; then
20437 ac_cv_f77_libs="$ac_cv_f77_libs $ac_arg"
20441 # Ignore everything else.
20444 # restore positional arguments
20445 set X $ac_save_positional; shift
20447 # We only consider "LD_RUN_PATH" on Solaris systems. If this is seen,
20448 # then we insist that the "run path" must be an absolute path (i.e. it
20449 # must begin with a "/").
20450 case `(uname -sr) 2>/dev/null` in
20452 ac_ld_run_path=`echo $ac_f77_v_output |
20453 sed -n 's,^.*LD_RUN_PATH *= *\(/[^ ]*\).*$,-R\1,p'`
20454 test "x$ac_ld_run_path" != x &&
20455 if test "$ac_compiler_gnu" = yes; then
20456 for ac_link_opt in $ac_ld_run_path; do
20457 ac_cv_f77_libs="$ac_cv_f77_libs -Xlinker $ac_link_opt"
20460 ac_cv_f77_libs="$ac_cv_f77_libs $ac_ld_run_path"
20464 fi # test "x$[]_AC_LANG_PREFIX[]LIBS" = "x"
20467 echo "$as_me:$LINENO: result: $ac_cv_f77_libs" >&5
20468 echo "${ECHO_T}$ac_cv_f77_libs" >&6
20469 FLIBS="$ac_cv_f77_libs"
20473 ac_cpp='$CPP $CPPFLAGS'
20474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20478 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
20479 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
20482 echo timestamp > conftest.file
20483 # Do `set' in a subshell so we don't clobber the current shell's
20484 # arguments. Must try -L first in case configure is actually a
20485 # symlink; some systems play weird games with the mod time of symlinks
20486 # (eg FreeBSD returns the mod time of the symlink's containing
20489 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
20490 if test "$*" = "X"; then
20492 set X `ls -t $srcdir/configure conftest.file`
20494 rm -f conftest.file
20495 if test "$*" != "X $srcdir/configure conftest.file" \
20496 && test "$*" != "X conftest.file $srcdir/configure"; then
20498 # If neither matched, then we have a broken ls. This can happen
20499 # if, for instance, CONFIG_SHELL is bash and it inherits a
20500 # broken ls alias from the environment. This has actually
20501 # happened. Such a system could not be considered "sane".
20502 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
20503 alias in your environment" >&5
20504 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
20505 alias in your environment" >&2;}
20506 { (exit 1); exit 1; }; }
20509 test "$2" = conftest.file
20515 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
20516 Check your system clock" >&5
20517 echo "$as_me: error: newly created file is older than distributed files!
20518 Check your system clock" >&2;}
20519 { (exit 1); exit 1; }; }
20521 echo "$as_me:$LINENO: result: yes" >&5
20522 echo "${ECHO_T}yes" >&6
20523 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20524 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20525 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20526 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20527 echo $ECHO_N "(cached) $ECHO_C" >&6
20529 cat >conftest.make <<\_ACEOF
20531 @echo 'ac_maketemp="$(MAKE)"'
20533 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20534 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20535 if test -n "$ac_maketemp"; then
20536 eval ac_cv_prog_make_${ac_make}_set=yes
20538 eval ac_cv_prog_make_${ac_make}_set=no
20540 rm -f conftest.make
20542 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20543 echo "$as_me:$LINENO: result: yes" >&5
20544 echo "${ECHO_T}yes" >&6
20547 echo "$as_me:$LINENO: result: no" >&5
20548 echo "${ECHO_T}no" >&6
20549 SET_MAKE="MAKE=${MAKE-make}"
20553 # Checks for header files.
20554 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
20555 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
20556 if test "${ac_cv_header_stdc+set}" = set; then
20557 echo $ECHO_N "(cached) $ECHO_C" >&6
20559 cat >conftest.$ac_ext <<_ACEOF
20562 cat confdefs.h >>conftest.$ac_ext
20563 cat >>conftest.$ac_ext <<_ACEOF
20564 /* end confdefs.h. */
20565 #include <stdlib.h>
20566 #include <stdarg.h>
20567 #include <string.h>
20578 rm -f conftest.$ac_objext
20579 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20580 (eval $ac_compile) 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); } &&
20587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20589 (eval $ac_try) 2>&5
20591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20592 (exit $ac_status); }; } &&
20593 { ac_try='test -s conftest.$ac_objext'
20594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20595 (eval $ac_try) 2>&5
20597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20598 (exit $ac_status); }; }; then
20599 ac_cv_header_stdc=yes
20601 echo "$as_me: failed program was:" >&5
20602 sed 's/^/| /' conftest.$ac_ext >&5
20604 ac_cv_header_stdc=no
20606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20608 if test $ac_cv_header_stdc = yes; then
20609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
20610 cat >conftest.$ac_ext <<_ACEOF
20613 cat confdefs.h >>conftest.$ac_ext
20614 cat >>conftest.$ac_ext <<_ACEOF
20615 /* end confdefs.h. */
20616 #include <string.h>
20619 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20620 $EGREP "memchr" >/dev/null 2>&1; then
20623 ac_cv_header_stdc=no
20629 if test $ac_cv_header_stdc = yes; then
20630 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
20631 cat >conftest.$ac_ext <<_ACEOF
20634 cat confdefs.h >>conftest.$ac_ext
20635 cat >>conftest.$ac_ext <<_ACEOF
20636 /* end confdefs.h. */
20637 #include <stdlib.h>
20640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20641 $EGREP "free" >/dev/null 2>&1; then
20644 ac_cv_header_stdc=no
20650 if test $ac_cv_header_stdc = yes; then
20651 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
20652 if test "$cross_compiling" = yes; then
20655 cat >conftest.$ac_ext <<_ACEOF
20658 cat confdefs.h >>conftest.$ac_ext
20659 cat >>conftest.$ac_ext <<_ACEOF
20660 /* end confdefs.h. */
20662 #if ((' ' & 0x0FF) == 0x020)
20663 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
20664 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
20666 # define ISLOWER(c) \
20667 (('a' <= (c) && (c) <= 'i') \
20668 || ('j' <= (c) && (c) <= 'r') \
20669 || ('s' <= (c) && (c) <= 'z'))
20670 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
20673 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
20678 for (i = 0; i < 256; i++)
20679 if (XOR (islower (i), ISLOWER (i))
20680 || toupper (i) != TOUPPER (i))
20685 rm -f conftest$ac_exeext
20686 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20687 (eval $ac_link) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20692 (eval $ac_try) 2>&5
20694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20695 (exit $ac_status); }; }; then
20698 echo "$as_me: program exited with status $ac_status" >&5
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20702 ( exit $ac_status )
20703 ac_cv_header_stdc=no
20705 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20709 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
20710 echo "${ECHO_T}$ac_cv_header_stdc" >&6
20711 if test $ac_cv_header_stdc = yes; then
20713 cat >>confdefs.h <<\_ACEOF
20714 #define STDC_HEADERS 1
20723 for ac_header in stddef.h stdlib.h string.h unistd.h
20725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20726 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20727 echo "$as_me:$LINENO: checking for $ac_header" >&5
20728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20729 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20730 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20733 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20735 # Is the header compilable?
20736 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20737 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20738 cat >conftest.$ac_ext <<_ACEOF
20741 cat confdefs.h >>conftest.$ac_ext
20742 cat >>conftest.$ac_ext <<_ACEOF
20743 /* end confdefs.h. */
20744 $ac_includes_default
20745 #include <$ac_header>
20747 rm -f conftest.$ac_objext
20748 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20749 (eval $ac_compile) 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20755 (exit $ac_status); } &&
20756 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20758 (eval $ac_try) 2>&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); }; } &&
20762 { ac_try='test -s conftest.$ac_objext'
20763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20764 (eval $ac_try) 2>&5
20766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20767 (exit $ac_status); }; }; then
20768 ac_header_compiler=yes
20770 echo "$as_me: failed program was:" >&5
20771 sed 's/^/| /' conftest.$ac_ext >&5
20773 ac_header_compiler=no
20775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20776 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20777 echo "${ECHO_T}$ac_header_compiler" >&6
20779 # Is the header present?
20780 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20781 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20782 cat >conftest.$ac_ext <<_ACEOF
20785 cat confdefs.h >>conftest.$ac_ext
20786 cat >>conftest.$ac_ext <<_ACEOF
20787 /* end confdefs.h. */
20788 #include <$ac_header>
20790 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20791 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20793 grep -v '^ *+' conftest.er1 >conftest.err
20795 cat conftest.err >&5
20796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20797 (exit $ac_status); } >/dev/null; then
20798 if test -s conftest.err; then
20799 ac_cpp_err=$ac_c_preproc_warn_flag
20800 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20807 if test -z "$ac_cpp_err"; then
20808 ac_header_preproc=yes
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20813 ac_header_preproc=no
20815 rm -f conftest.err conftest.$ac_ext
20816 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20817 echo "${ECHO_T}$ac_header_preproc" >&6
20819 # So? What about this header?
20820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20823 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20824 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20825 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20826 ac_header_preproc=yes
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20830 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20832 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20834 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20836 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20838 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20840 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20843 ## ----------------------------------------- ##
20844 ## Report this to martin.quinson@ens-lyon.fr ##
20845 ## ----------------------------------------- ##
20848 sed "s/^/$as_me: WARNING: /" >&2
20851 echo "$as_me:$LINENO: checking for $ac_header" >&5
20852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 eval "$as_ac_Header=\$ac_header_preproc"
20858 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20859 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20863 cat >>confdefs.h <<_ACEOF
20864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20872 # Checks for typedefs, structures, and compiler characteristics.
20873 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20874 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20875 if test "${ac_cv_c_const+set}" = set; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20888 /* FIXME: Include the comments suggested by Paul. */
20889 #ifndef __cplusplus
20890 /* Ultrix mips cc rejects this. */
20891 typedef int charset[2];
20893 /* SunOS 4.1.1 cc rejects this. */
20894 char const *const *ccp;
20896 /* NEC SVR4.0.2 mips cc rejects this. */
20897 struct point {int x, y;};
20898 static struct point const zero = {0,0};
20899 /* AIX XL C 1.02.0.0 rejects this.
20900 It does not let you subtract one const X* pointer from another in
20901 an arm of an if-expression whose if-part is not a constant
20903 const char *g = "string";
20904 ccp = &g + (g ? g-g : 0);
20905 /* HPUX 7.0 cc rejects these. */
20908 ccp = (char const *const *) p;
20909 { /* SCO 3.2v4 cc rejects this. */
20911 char const *s = 0 ? (char *) 0 : (char const *) 0;
20915 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20916 int x[] = {25, 17};
20917 const int *foo = &x[0];
20920 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20921 typedef const int *iptr;
20925 { /* AIX XL C 1.02.0.0 rejects this saying
20926 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20927 struct s { int j; const int *ap[3]; };
20928 struct s *b; b->j = 5;
20930 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20931 const int foo = 10;
20939 rm -f conftest.$ac_objext
20940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20941 (eval $ac_compile) 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } &&
20948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20950 (eval $ac_try) 2>&5
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; } &&
20954 { ac_try='test -s conftest.$ac_objext'
20955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20956 (eval $ac_try) 2>&5
20958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20959 (exit $ac_status); }; }; then
20962 echo "$as_me: failed program was:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20969 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20970 echo "${ECHO_T}$ac_cv_c_const" >&6
20971 if test $ac_cv_c_const = no; then
20973 cat >>confdefs.h <<\_ACEOF
20979 echo "$as_me:$LINENO: checking for inline" >&5
20980 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20981 if test "${ac_cv_c_inline+set}" = set; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20985 for ac_kw in inline __inline__ __inline; do
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #ifndef __cplusplus
20994 static $ac_kw foo_t static_foo () {return 0; }
20995 $ac_kw foo_t foo () {return 0; }
20999 rm -f conftest.$ac_objext
21000 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21001 (eval $ac_compile) 2>conftest.er1
21003 grep -v '^ *+' conftest.er1 >conftest.err
21005 cat conftest.err >&5
21006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21007 (exit $ac_status); } &&
21008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21010 (eval $ac_try) 2>&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); }; } &&
21014 { ac_try='test -s conftest.$ac_objext'
21015 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21016 (eval $ac_try) 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; }; then
21020 ac_cv_c_inline=$ac_kw; break
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21026 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21030 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21031 echo "${ECHO_T}$ac_cv_c_inline" >&6
21034 case $ac_cv_c_inline in
21037 case $ac_cv_c_inline in
21039 *) ac_val=$ac_cv_c_inline;;
21041 cat >>confdefs.h <<_ACEOF
21042 #ifndef __cplusplus
21043 #define inline $ac_val
21049 echo "$as_me:$LINENO: checking for size_t" >&5
21050 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21051 if test "${ac_cv_type_size_t+set}" = set; then
21052 echo $ECHO_N "(cached) $ECHO_C" >&6
21054 cat >conftest.$ac_ext <<_ACEOF
21057 cat confdefs.h >>conftest.$ac_ext
21058 cat >>conftest.$ac_ext <<_ACEOF
21059 /* end confdefs.h. */
21060 $ac_includes_default
21066 if (sizeof (size_t))
21072 rm -f conftest.$ac_objext
21073 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21074 (eval $ac_compile) 2>conftest.er1
21076 grep -v '^ *+' conftest.er1 >conftest.err
21078 cat conftest.err >&5
21079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21080 (exit $ac_status); } &&
21081 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21083 (eval $ac_try) 2>&5
21085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); }; } &&
21087 { ac_try='test -s conftest.$ac_objext'
21088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21089 (eval $ac_try) 2>&5
21091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21092 (exit $ac_status); }; }; then
21093 ac_cv_type_size_t=yes
21095 echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21098 ac_cv_type_size_t=no
21100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21102 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21103 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21104 if test $ac_cv_type_size_t = yes; then
21108 cat >>confdefs.h <<_ACEOF
21109 #define size_t unsigned
21115 # Checks for library functions.
21117 for ac_header in stdlib.h
21119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21121 echo "$as_me:$LINENO: checking for $ac_header" >&5
21122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21124 echo $ECHO_N "(cached) $ECHO_C" >&6
21126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21129 # Is the header compilable?
21130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21132 cat >conftest.$ac_ext <<_ACEOF
21135 cat confdefs.h >>conftest.$ac_ext
21136 cat >>conftest.$ac_ext <<_ACEOF
21137 /* end confdefs.h. */
21138 $ac_includes_default
21139 #include <$ac_header>
21141 rm -f conftest.$ac_objext
21142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21143 (eval $ac_compile) 2>conftest.er1
21145 grep -v '^ *+' conftest.er1 >conftest.err
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); } &&
21150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21152 (eval $ac_try) 2>&5
21154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21155 (exit $ac_status); }; } &&
21156 { ac_try='test -s conftest.$ac_objext'
21157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21158 (eval $ac_try) 2>&5
21160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161 (exit $ac_status); }; }; then
21162 ac_header_compiler=yes
21164 echo "$as_me: failed program was:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_header_compiler=no
21169 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21170 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21171 echo "${ECHO_T}$ac_header_compiler" >&6
21173 # Is the header present?
21174 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21175 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 #include <$ac_header>
21184 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21185 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } >/dev/null; then
21192 if test -s conftest.err; then
21193 ac_cpp_err=$ac_c_preproc_warn_flag
21194 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21201 if test -z "$ac_cpp_err"; then
21202 ac_header_preproc=yes
21204 echo "$as_me: failed program was:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_preproc=no
21209 rm -f conftest.err conftest.$ac_ext
21210 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21211 echo "${ECHO_T}$ac_header_preproc" >&6
21213 # So? What about this header?
21214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21216 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21217 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21220 ac_header_preproc=yes
21223 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21224 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21225 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21226 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21227 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21228 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21229 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21230 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21233 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21234 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21237 ## ----------------------------------------- ##
21238 ## Report this to martin.quinson@ens-lyon.fr ##
21239 ## ----------------------------------------- ##
21242 sed "s/^/$as_me: WARNING: /" >&2
21245 echo "$as_me:$LINENO: checking for $ac_header" >&5
21246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21247 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21250 eval "$as_ac_Header=\$ac_header_preproc"
21252 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21253 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21256 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21257 cat >>confdefs.h <<_ACEOF
21258 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21265 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21266 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21267 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21268 echo $ECHO_N "(cached) $ECHO_C" >&6
21270 if test "$cross_compiling" = yes; then
21271 ac_cv_func_malloc_0_nonnull=no
21273 cat >conftest.$ac_ext <<_ACEOF
21276 cat confdefs.h >>conftest.$ac_ext
21277 cat >>conftest.$ac_ext <<_ACEOF
21278 /* end confdefs.h. */
21279 #if STDC_HEADERS || HAVE_STDLIB_H
21280 # include <stdlib.h>
21288 exit (malloc (0) ? 0 : 1);
21293 rm -f conftest$ac_exeext
21294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21295 (eval $ac_link) 2>&5
21297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21300 (eval $ac_try) 2>&5
21302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21303 (exit $ac_status); }; }; then
21304 ac_cv_func_malloc_0_nonnull=yes
21306 echo "$as_me: program exited with status $ac_status" >&5
21307 echo "$as_me: failed program was:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ( exit $ac_status )
21311 ac_cv_func_malloc_0_nonnull=no
21313 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21316 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21317 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21318 if test $ac_cv_func_malloc_0_nonnull = yes; then
21320 cat >>confdefs.h <<\_ACEOF
21321 #define HAVE_MALLOC 1
21325 cat >>confdefs.h <<\_ACEOF
21326 #define HAVE_MALLOC 0
21330 "malloc.$ac_objext" | \
21331 *" malloc.$ac_objext" | \
21332 "malloc.$ac_objext "* | \
21333 *" malloc.$ac_objext "* ) ;;
21334 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21338 cat >>confdefs.h <<\_ACEOF
21339 #define malloc rpl_malloc
21346 echo "$as_me:$LINENO: checking for working memcmp" >&5
21347 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21348 if test "${ac_cv_func_memcmp_working+set}" = set; then
21349 echo $ECHO_N "(cached) $ECHO_C" >&6
21351 if test "$cross_compiling" = yes; then
21352 ac_cv_func_memcmp_working=no
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 $ac_includes_default
21365 /* Some versions of memcmp are not 8-bit clean. */
21366 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21367 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21370 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21371 or more and with at least one buffer not starting on a 4-byte boundary.
21372 William Lewis provided this test program. */
21377 for (i = 0; i < 4; i++)
21381 strcpy (a, "--------01111111");
21382 strcpy (b, "--------10000000");
21383 if (memcmp (a, b, 16) >= 0)
21393 rm -f conftest$ac_exeext
21394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21395 (eval $ac_link) 2>&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21400 (eval $ac_try) 2>&5
21402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21403 (exit $ac_status); }; }; then
21404 ac_cv_func_memcmp_working=yes
21406 echo "$as_me: program exited with status $ac_status" >&5
21407 echo "$as_me: failed program was:" >&5
21408 sed 's/^/| /' conftest.$ac_ext >&5
21410 ( exit $ac_status )
21411 ac_cv_func_memcmp_working=no
21413 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21416 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21417 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21418 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21419 "memcmp.$ac_objext" | \
21420 *" memcmp.$ac_objext" | \
21421 "memcmp.$ac_objext "* | \
21422 *" memcmp.$ac_objext "* ) ;;
21423 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21430 for ac_func in memset strchr strerror
21432 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21433 echo "$as_me:$LINENO: checking for $ac_func" >&5
21434 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
21435 if eval "test \"\${$as_ac_var+set}\" = set"; then
21436 echo $ECHO_N "(cached) $ECHO_C" >&6
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21445 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21446 #define $ac_func innocuous_$ac_func
21448 /* System header to define __stub macros and hopefully few prototypes,
21449 which can conflict with char $ac_func (); below.
21450 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21451 <limits.h> exists even on freestanding compilers. */
21454 # include <limits.h>
21456 # include <assert.h>
21461 /* Override any gcc2 internal prototype to avoid an error. */
21466 /* We use char because int might match the return type of a gcc2
21467 builtin and then its argument prototype would still apply. */
21469 /* The GNU C library defines this for functions which it implements
21470 to always fail with ENOSYS. Some functions are actually named
21471 something starting with __ and the normal name is an alias. */
21472 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
21475 char (*f) () = $ac_func;
21484 return f != $ac_func;
21489 rm -f conftest.$ac_objext conftest$ac_exeext
21490 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21491 (eval $ac_link) 2>conftest.er1
21493 grep -v '^ *+' conftest.er1 >conftest.err
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } &&
21498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21499 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21500 (eval $ac_try) 2>&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); }; } &&
21504 { ac_try='test -s conftest$ac_exeext'
21505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21506 (eval $ac_try) 2>&5
21508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21509 (exit $ac_status); }; }; then
21510 eval "$as_ac_var=yes"
21512 echo "$as_me: failed program was:" >&5
21513 sed 's/^/| /' conftest.$ac_ext >&5
21515 eval "$as_ac_var=no"
21517 rm -f conftest.err conftest.$ac_objext \
21518 conftest$ac_exeext conftest.$ac_ext
21520 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
21521 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
21522 if test `eval echo '${'$as_ac_var'}'` = yes; then
21523 cat >>confdefs.h <<_ACEOF
21524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21532 echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
21533 # Extract the first word of "xml2-config", so it can be a program name with args.
21534 set dummy xml2-config; ac_word=$2
21535 echo "$as_me:$LINENO: checking for $ac_word" >&5
21536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
21537 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21540 case $ACI_CACHE_PROG in
21542 ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
21545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21546 for as_dir in $PATH
21549 test -z "$as_dir" && as_dir=.
21550 for ac_exec_ext in '' $ac_executable_extensions; do
21551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21552 ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
21553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
21559 test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
21563 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
21565 if test -n "$ACI_CACHE_PROG"; then
21566 echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
21567 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
21569 echo "$as_me:$LINENO: result: no" >&5
21570 echo "${ECHO_T}no" >&6
21573 aci_module_desc_XML="XML library (version XML2)"
21574 aci_pkg_config_XML=xml2-config
21575 aci_packages="$aci_packages XML"
21576 if test x$ACI_CACHE_PROG = xno; then
21583 CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
21584 LIBS_XML=`$ACI_CACHE_PROG --libs `
21587 echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
21598 aci_nameok=`echo SimGrid|sed 'y/-/./'`
21599 if test "xSimGrid" != "x$aci_nameok" ; then
21600 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
21601 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
21602 { (exit 1); exit 1; }; }
21604 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
21605 aci_module_desc_SimGrid="the SimGrid simulator"
21606 aci_packages="$aci_packages SimGrid"
21609 # Check whether --with-SimGrid or --without-SimGrid was given.
21610 if test "${with_SimGrid+set}" = set; then
21611 withval="$with_SimGrid"
21612 with_SimGrid=$withval
21614 if test "$withval" = yes ; then good=no; fi
21615 if test "$withval" = no ; then good=no; fi
21616 if test $good = no ; then
21617 { { echo "$as_me:$LINENO: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&5
21618 echo "$as_me: error: You gave me --with-SimGrid=$withval. I wait for a location, not yes or no (use --enable-the SimGrid simulator or --disable-the SimGrid simulator for that)" >&2;}
21619 { (exit 1); exit 1; }; }
21621 aci_pkg_prefix_SimGrid="$withval"
21622 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
21623 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
21628 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
21629 if test "${with_SimGrid_includes+set}" = set; then
21630 withval="$with_SimGrid_includes"
21631 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
21632 aci_pkg_inc_SimGrid="$withval"
21637 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
21638 if test "${with_SimGrid_libraries+set}" = set; then
21639 withval="$with_SimGrid_libraries"
21640 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
21641 aci_pkg_lib_SimGrid="$withval"
21645 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
21646 if test "${with_SimGrid_extra+set}" = set; then
21647 withval="$with_SimGrid_extra"
21648 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
21649 aci_pkg_extra_SimGrid="$withval"
21653 OLD_LDFLAGS=$LDFLAGS
21655 OLD_CPPFLAGS=$CPPFLAGS
21657 i=`echo -lsimgrid|wc -l`
21658 if test $i != 1 && test $i != 0 ; then
21659 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
21660 please no newline and no tab." >&5
21661 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
21662 please no newline and no tab." >&2;}
21663 { (exit 1); exit 1; }; }
21666 ac_func_search_save_LIBS="$LIBS"
21667 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
21669 echo "----------------------------------------" >&5
21670 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
21671 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21679 /* Override any gcc2 internal prototype to avoid an error. */
21683 /* We use char because int might match the return type of a gcc2
21684 builtin and then its argument prototype would still apply. */
21694 rm -f conftest.$ac_objext conftest$ac_exeext
21695 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21696 (eval $ac_link) 2>conftest.er1
21698 grep -v '^ *+' conftest.er1 >conftest.err
21700 cat conftest.err >&5
21701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21702 (exit $ac_status); } &&
21703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21705 (eval $ac_try) 2>&5
21707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21708 (exit $ac_status); }; } &&
21709 { ac_try='test -s conftest$ac_exeext'
21710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21711 (eval $ac_try) 2>&5
21713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714 (exit $ac_status); }; }; then
21715 echo "$as_me:$LINENO: result: yes" >&5
21716 echo "${ECHO_T}yes" >&6 aci_found="yes"
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21721 echo "$as_me:$LINENO: result: no" >&5
21722 echo "${ECHO_T}no" >&6
21724 rm -f conftest.err conftest.$ac_objext \
21725 conftest$ac_exeext conftest.$ac_ext
21726 if test "$aci_found" = "no"; then
21727 if test -n "$LIBS_SimGrid" ; then
21728 LIBS="$LIBS_SimGrid"
21729 echo "----------------------------------------" >&5
21730 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
21731 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
21732 cat >conftest.$ac_ext <<_ACEOF
21735 cat confdefs.h >>conftest.$ac_ext
21736 cat >>conftest.$ac_ext <<_ACEOF
21737 /* end confdefs.h. */
21739 /* Override any gcc2 internal prototype to avoid an error. */
21743 /* We use char because int might match the return type of a gcc2
21744 builtin and then its argument prototype would still apply. */
21754 rm -f conftest.$ac_objext conftest$ac_exeext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21756 (eval $ac_link) 2>conftest.er1
21758 grep -v '^ *+' conftest.er1 >conftest.err
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; } &&
21769 { ac_try='test -s conftest$ac_exeext'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }; then
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21782 rm -f conftest.err conftest.$ac_objext \
21783 conftest$ac_exeext conftest.$ac_ext
21784 echo "$as_me:$LINENO: result: $aci_found" >&5
21785 echo "${ECHO_T}$aci_found" >&6
21790 if test "x$aci_found" = "xno"; then
21791 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
21792 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
21793 echo "----------------------------------------" >&5
21794 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
21795 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
21796 cat >conftest.$ac_ext <<_ACEOF
21799 cat confdefs.h >>conftest.$ac_ext
21800 cat >>conftest.$ac_ext <<_ACEOF
21801 /* end confdefs.h. */
21803 /* Override any gcc2 internal prototype to avoid an error. */
21807 /* We use char because int might match the return type of a gcc2
21808 builtin and then its argument prototype would still apply. */
21818 rm -f conftest.$ac_objext conftest$ac_exeext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21820 (eval $ac_link) 2>conftest.er1
21822 grep -v '^ *+' conftest.er1 >conftest.err
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest$ac_exeext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21846 rm -f conftest.err conftest.$ac_objext \
21847 conftest$ac_exeext conftest.$ac_ext
21848 echo "$as_me:$LINENO: result: $aci_found" >&5
21849 echo "${ECHO_T}$aci_found" >&6
21852 LIBS="$ac_func_search_save_LIBS"
21854 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
21855 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
21856 echo "CPPFLAGS=$CPPFLAGS">&5;
21857 if test "${ac_cv_header_simgrid_h+set}" = set; then
21858 echo "$as_me:$LINENO: checking for simgrid.h" >&5
21859 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21860 if test "${ac_cv_header_simgrid_h+set}" = set; then
21861 echo $ECHO_N "(cached) $ECHO_C" >&6
21863 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21864 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21866 # Is the header compilable?
21867 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
21868 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
21869 cat >conftest.$ac_ext <<_ACEOF
21872 cat confdefs.h >>conftest.$ac_ext
21873 cat >>conftest.$ac_ext <<_ACEOF
21874 /* end confdefs.h. */
21875 $ac_includes_default
21876 #include <simgrid.h>
21878 rm -f conftest.$ac_objext
21879 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21880 (eval $ac_compile) 2>conftest.er1
21882 grep -v '^ *+' conftest.er1 >conftest.err
21884 cat conftest.err >&5
21885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21886 (exit $ac_status); } &&
21887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21889 (eval $ac_try) 2>&5
21891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21892 (exit $ac_status); }; } &&
21893 { ac_try='test -s conftest.$ac_objext'
21894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21895 (eval $ac_try) 2>&5
21897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21898 (exit $ac_status); }; }; then
21899 ac_header_compiler=yes
21901 echo "$as_me: failed program was:" >&5
21902 sed 's/^/| /' conftest.$ac_ext >&5
21904 ac_header_compiler=no
21906 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21907 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21908 echo "${ECHO_T}$ac_header_compiler" >&6
21910 # Is the header present?
21911 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
21912 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
21913 cat >conftest.$ac_ext <<_ACEOF
21916 cat confdefs.h >>conftest.$ac_ext
21917 cat >>conftest.$ac_ext <<_ACEOF
21918 /* end confdefs.h. */
21919 #include <simgrid.h>
21921 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21922 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21924 grep -v '^ *+' conftest.er1 >conftest.err
21926 cat conftest.err >&5
21927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21928 (exit $ac_status); } >/dev/null; then
21929 if test -s conftest.err; then
21930 ac_cpp_err=$ac_c_preproc_warn_flag
21931 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21938 if test -z "$ac_cpp_err"; then
21939 ac_header_preproc=yes
21941 echo "$as_me: failed program was:" >&5
21942 sed 's/^/| /' conftest.$ac_ext >&5
21944 ac_header_preproc=no
21946 rm -f conftest.err conftest.$ac_ext
21947 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21948 echo "${ECHO_T}$ac_header_preproc" >&6
21950 # So? What about this header?
21951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21953 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
21954 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21955 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
21956 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
21957 ac_header_preproc=yes
21960 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
21961 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
21962 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
21963 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
21964 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
21965 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
21966 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
21967 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
21968 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
21969 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
21970 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
21971 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
21974 ## ----------------------------------------- ##
21975 ## Report this to martin.quinson@ens-lyon.fr ##
21976 ## ----------------------------------------- ##
21979 sed "s/^/$as_me: WARNING: /" >&2
21982 echo "$as_me:$LINENO: checking for simgrid.h" >&5
21983 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
21984 if test "${ac_cv_header_simgrid_h+set}" = set; then
21985 echo $ECHO_N "(cached) $ECHO_C" >&6
21987 ac_cv_header_simgrid_h=$ac_header_preproc
21989 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
21990 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
21993 if test $ac_cv_header_simgrid_h = yes; then
22001 if test "x$aci_found" = "xno" ; then
22002 { { echo "$as_me:$LINENO: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&5
22003 echo "$as_me: error: Can't find the package SimGrid. Please install it, or if it is installed, tell me where with the --with-SimGrid argument (see ./configure --help=short)." >&2;}
22004 { (exit 1); exit 1; }; }
22009 if test "x$HAVE_SimGrid" != "xyes" ; then
22017 echo "END OF ACI-PACKAGE(SimGrid)">&5;
22018 LDFLAGS=$OLDLDFLAGS
22019 CPPFLAGS=$OLDCPPFLAGS
22024 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
22025 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
22026 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
22027 if test "${enable_maintainer_mode+set}" = set; then
22028 enableval="$enable_maintainer_mode"
22029 USE_MAINTAINER_MODE=$enableval
22031 USE_MAINTAINER_MODE=no
22033 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
22034 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
22037 if test $USE_MAINTAINER_MODE = yes; then
22038 MAINTAINER_MODE_TRUE=
22039 MAINTAINER_MODE_FALSE='#'
22041 MAINTAINER_MODE_TRUE='#'
22042 MAINTAINER_MODE_FALSE=
22045 MAINT=$MAINTAINER_MODE_TRUE
22048 if test x$USE_MAINTAINER_MODE = xyes
22051 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
22052 if test "${enable_compile_warnings+set}" = set; then
22053 enableval="$enable_compile_warnings"
22056 enable_compile_warnings=yes
22059 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
22060 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
22062 if test "x$GCC" != xyes; then
22063 enable_compile_warnings=no
22066 if test "x$enable_compile_warnings" != "xno"; then
22067 if test "x$GCC" = "xyes"; then
22068 case " $CFLAGS " in
22070 *) warnCFLAGS="-g -Wall -Wunused" ;;
22073 ## -W is not all that useful. And it cannot be controlled
22074 ## with individual -Wno-xxx flags, unlike -Wall
22075 if test "x$enable_compile_warnings" = "xyes"; then
22076 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
22077 -finline-functions -Wshadow -Wpointer-arith \
22078 -Wwrite-strings -Wno-unused-function -Werror"
22082 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
22083 echo "${ECHO_T}$warnCFLAGS" >&6
22085 # Check whether --enable-iso-c or --disable-iso-c was given.
22086 if test "${enable_iso_c+set}" = set; then
22087 enableval="$enable_iso_c"
22093 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
22094 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
22096 if test "x$enable_iso_c" != "xno"; then
22097 if test "x$GCC" = "xyes"; then
22098 case " $CFLAGS " in
22100 *) complCFLAGS="$complCFLAGS -ansi" ;;
22103 case " $CFLAGS " in
22105 *) complCFLAGS="$complCFLAGS -pedantic" ;;
22109 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
22110 echo "${ECHO_T}$complCFLAGS" >&6
22111 if test "x$cflags_set" != "xyes"; then
22112 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
22123 # Extract the first word of "bash", so it can be a program name with args.
22124 set dummy bash; ac_word=$2
22125 echo "$as_me:$LINENO: checking for $ac_word" >&5
22126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22127 if test "${ac_cv_prog_BASH+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22130 if test -n "$BASH"; then
22131 ac_cv_prog_BASH="$BASH" # Let the user override the test.
22133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22134 for as_dir in $PATH
22137 test -z "$as_dir" && as_dir=.
22138 for ac_exec_ext in '' $ac_executable_extensions; do
22139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22140 ac_cv_prog_BASH="`which bash`"
22141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22147 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
22150 BASH=$ac_cv_prog_BASH
22151 if test -n "$BASH"; then
22152 echo "$as_me:$LINENO: result: $BASH" >&5
22153 echo "${ECHO_T}$BASH" >&6
22155 echo "$as_me:$LINENO: result: no" >&5
22156 echo "${ECHO_T}no" >&6
22159 WARNING="This file is generated, do not edit"
22162 ac_config_files="$ac_config_files Makefile src/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/gs_example src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
22165 cat >confcache <<\_ACEOF
22166 # This file is a shell script that caches the results of configure
22167 # tests run on this system so they can be shared between configure
22168 # scripts and configure runs, see configure's option --config-cache.
22169 # It is not useful on other systems. If it contains results you don't
22170 # want to keep, you may remove or edit it.
22172 # config.status only pays attention to the cache file if you give it
22173 # the --recheck option to rerun configure.
22175 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22176 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22177 # following values.
22181 # The following way of writing the cache mishandles newlines in values,
22182 # but we know of no workaround that is simple, portable, and efficient.
22183 # So, don't put newlines in cache variables' values.
22184 # Ultrix sh set writes to stderr and can't be redirected directly,
22185 # and sets the high bit in the cache file unless we assign to the vars.
22188 case `(ac_space=' '; set | grep ac_space) 2>&1` in
22190 # `set' does not quote correctly, so add quotes (double-quote
22191 # substitution turns \\\\ into \\, and sed turns \\ into \).
22194 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22197 # `set' quotes correctly as required by POSIX, so do not add quotes.
22199 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
22206 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22208 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22210 if diff $cache_file confcache >/dev/null 2>&1; then :; else
22211 if test -w $cache_file; then
22212 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
22213 cat confcache >$cache_file
22215 echo "not updating unwritable cache $cache_file"
22220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22221 # Let make expand exec_prefix.
22222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22224 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22225 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22226 # trailing colons and then remove the whole line if VPATH becomes empty
22227 # (actually we leave an empty line to preserve line numbers).
22228 if test "x$srcdir" = x.; then
22229 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22230 s/:*\$(srcdir):*/:/;
22231 s/:*\${srcdir}:*/:/;
22233 s/^\([^=]*=[ ]*\):*/\1/;
22239 DEFS=-DHAVE_CONFIG_H
22243 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22244 # 1. Remove the extension, and $U if already installed.
22245 ac_i=`echo "$ac_i" |
22246 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
22248 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
22249 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
22251 LIBOBJS=$ac_libobjs
22253 LTLIBOBJS=$ac_ltlibobjs
22256 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22257 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
22258 Usually this means the macro was only invoked conditionally." >&5
22259 echo "$as_me: error: conditional \"AMDEP\" was never defined.
22260 Usually this means the macro was only invoked conditionally." >&2;}
22261 { (exit 1); exit 1; }; }
22263 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22264 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22265 Usually this means the macro was only invoked conditionally." >&5
22266 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22267 Usually this means the macro was only invoked conditionally." >&2;}
22268 { (exit 1); exit 1; }; }
22270 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22271 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
22272 Usually this means the macro was only invoked conditionally." >&5
22273 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
22274 Usually this means the macro was only invoked conditionally." >&2;}
22275 { (exit 1); exit 1; }; }
22277 if test -z "${HAVE_GTK_DOC_TRUE}" && test -z "${HAVE_GTK_DOC_FALSE}"; then
22278 { { echo "$as_me:$LINENO: error: conditional \"HAVE_GTK_DOC\" was never defined.
22279 Usually this means the macro was only invoked conditionally." >&5
22280 echo "$as_me: error: conditional \"HAVE_GTK_DOC\" was never defined.
22281 Usually this means the macro was only invoked conditionally." >&2;}
22282 { (exit 1); exit 1; }; }
22284 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
22285 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22286 Usually this means the macro was only invoked conditionally." >&5
22287 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
22288 Usually this means the macro was only invoked conditionally." >&2;}
22289 { (exit 1); exit 1; }; }
22291 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22292 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
22293 Usually this means the macro was only invoked conditionally." >&5
22294 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
22295 Usually this means the macro was only invoked conditionally." >&2;}
22296 { (exit 1); exit 1; }; }
22298 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22299 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
22300 Usually this means the macro was only invoked conditionally." >&5
22301 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
22302 Usually this means the macro was only invoked conditionally." >&2;}
22303 { (exit 1); exit 1; }; }
22306 : ${CONFIG_STATUS=./config.status}
22307 ac_clean_files_save=$ac_clean_files
22308 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22309 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22310 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22311 cat >$CONFIG_STATUS <<_ACEOF
22313 # Generated by $as_me.
22314 # Run this file to recreate the current configuration.
22315 # Compiler output produced by configure, useful for debugging
22316 # configure, is in config.log if it exists.
22319 ac_cs_recheck=false
22321 SHELL=\${CONFIG_SHELL-$SHELL}
22324 cat >>$CONFIG_STATUS <<\_ACEOF
22325 ## --------------------- ##
22326 ## M4sh Initialization. ##
22327 ## --------------------- ##
22329 # Be Bourne compatible
22330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22333 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22334 # is contrary to our usage. Disable this feature.
22335 alias -g '${1+"$@"}'='"$@"'
22336 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
22339 DUALCASE=1; export DUALCASE # for MKS sh
22341 # Support unset when possible.
22342 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
22349 # Work around bugs in pre-3.0 UWIN ksh.
22350 $as_unset ENV MAIL MAILPATH
22357 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
22358 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
22359 LC_TELEPHONE LC_TIME
22361 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
22362 eval $as_var=C; export $as_var
22368 # Required to use basename.
22369 if expr a : '\(a\)' >/dev/null 2>&1; then
22375 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
22376 as_basename=basename
22382 # Name of the executable.
22383 as_me=`$as_basename "$0" ||
22384 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22385 X"$0" : 'X\(//\)$' \| \
22386 X"$0" : 'X\(/\)$' \| \
22387 . : '\(.\)' 2>/dev/null ||
22389 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
22390 /^X\/\(\/\/\)$/{ s//\1/; q; }
22391 /^X\/\(\/\).*/{ s//\1/; q; }
22395 # PATH needs CR, and LINENO needs CR and PATH.
22396 # Avoid depending upon Character Ranges.
22397 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22398 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22399 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22400 as_cr_digits='0123456789'
22401 as_cr_alnum=$as_cr_Letters$as_cr_digits
22403 # The user is always right.
22404 if test "${PATH_SEPARATOR+set}" != set; then
22405 echo "#! /bin/sh" >conf$$.sh
22406 echo "exit 0" >>conf$$.sh
22408 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
22417 as_lineno_1=$LINENO
22418 as_lineno_2=$LINENO
22419 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22420 test "x$as_lineno_1" != "x$as_lineno_2" &&
22421 test "x$as_lineno_3" = "x$as_lineno_2" || {
22422 # Find who we are. Look in the path if we contain no path at all
22425 *[\\/]* ) as_myself=$0 ;;
22426 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22427 for as_dir in $PATH
22430 test -z "$as_dir" && as_dir=.
22431 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22436 # We did not find ourselves, most probably we were run as `sh COMMAND'
22437 # in which case we are not to be found in the path.
22438 if test "x$as_myself" = x; then
22441 if test ! -f "$as_myself"; then
22442 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
22443 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
22444 { (exit 1); exit 1; }; }
22446 case $CONFIG_SHELL in
22448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22449 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
22452 test -z "$as_dir" && as_dir=.
22453 for as_base in sh bash ksh sh5; do
22456 if ("$as_dir/$as_base" -c '
22457 as_lineno_1=$LINENO
22458 as_lineno_2=$LINENO
22459 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
22460 test "x$as_lineno_1" != "x$as_lineno_2" &&
22461 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
22462 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
22463 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
22464 CONFIG_SHELL=$as_dir/$as_base
22465 export CONFIG_SHELL
22466 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
22474 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
22475 # uniformly replaced by the line number. The first 'sed' inserts a
22476 # line-number line before each line; the second 'sed' does the real
22477 # work. The second script uses 'N' to pair each line-number line
22478 # with the numbered line, and appends trailing '-' during
22479 # substitution so that $LINENO is not a special case at line end.
22480 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
22481 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
22482 sed '=' <$as_myself |
22487 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
22490 s,^['$as_cr_digits']*\n,,
22491 ' >$as_me.lineno &&
22492 chmod +x $as_me.lineno ||
22493 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
22494 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
22495 { (exit 1); exit 1; }; }
22497 # Don't try to exec as it changes $[0], causing all sort of problems
22498 # (the dirname of $[0] is not the place where we might find the
22499 # original and so on. Autoconf is especially sensible to this).
22501 # Exit status is that of the last command.
22506 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
22507 *c*,-n*) ECHO_N= ECHO_C='
22509 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
22510 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
22513 if expr a : '\(a\)' >/dev/null 2>&1; then
22519 rm -f conf$$ conf$$.exe conf$$.file
22521 if ln -s conf$$.file conf$$ 2>/dev/null; then
22522 # We could just check for DJGPP; but this test a) works b) is more generic
22523 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
22524 if test -f conf$$.exe; then
22525 # Don't use ln at all; we don't have any links
22530 elif ln conf$$.file conf$$ 2>/dev/null; then
22535 rm -f conf$$ conf$$.exe conf$$.file
22537 if mkdir -p . 2>/dev/null; then
22540 test -d ./-p && rmdir ./-p
22544 as_executable_p="test -f"
22546 # Sed expression to map a string onto a valid CPP name.
22547 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22549 # Sed expression to map a string onto a valid variable name.
22550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22554 # We need space, tab and new line, in precisely that order.
22564 # Open the log real soon, to keep \$[0] and so on meaningful, and to
22565 # report actual input values of CONFIG_FILES etc. instead of their
22566 # values after options handling. Logging --version etc. is OK.
22570 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22571 ## Running $as_me. ##
22576 This file was extended by GRAS $as_me 0.1, which was
22577 generated by GNU Autoconf 2.58. Invocation command line was
22579 CONFIG_FILES = $CONFIG_FILES
22580 CONFIG_HEADERS = $CONFIG_HEADERS
22581 CONFIG_LINKS = $CONFIG_LINKS
22582 CONFIG_COMMANDS = $CONFIG_COMMANDS
22586 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
22590 # Files that config.status was made for.
22591 if test -n "$ac_config_files"; then
22592 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
22595 if test -n "$ac_config_headers"; then
22596 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
22599 if test -n "$ac_config_links"; then
22600 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
22603 if test -n "$ac_config_commands"; then
22604 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
22607 cat >>$CONFIG_STATUS <<\_ACEOF
22610 \`$as_me' instantiates files from templates according to the
22611 current configuration.
22613 Usage: $0 [OPTIONS] [FILE]...
22615 -h, --help print this help, then exit
22616 -V, --version print version number, then exit
22617 -q, --quiet do not print progress messages
22618 -d, --debug don't remove temporary files
22619 --recheck update $as_me by reconfiguring in the same conditions
22620 --file=FILE[:TEMPLATE]
22621 instantiate the configuration file FILE
22622 --header=FILE[:TEMPLATE]
22623 instantiate the configuration header FILE
22625 Configuration files:
22628 Configuration headers:
22631 Configuration commands:
22634 Report bugs to <bug-autoconf@gnu.org>."
22637 cat >>$CONFIG_STATUS <<_ACEOF
22639 GRAS config.status 0.1
22640 configured by $0, generated by GNU Autoconf 2.58,
22641 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
22643 Copyright (C) 2003 Free Software Foundation, Inc.
22644 This config.status script is free software; the Free Software Foundation
22645 gives unlimited permission to copy, distribute and modify it."
22650 cat >>$CONFIG_STATUS <<\_ACEOF
22651 # If no file are specified by the user, then we need to provide default
22652 # value. By we need to know if files were specified by the user.
22658 ac_option=`expr "x$1" : 'x\([^=]*\)='`
22659 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
22667 *) # This is not an option, so the user has probably given explicit
22670 ac_need_defaults=false;;
22674 # Handling of the options.
22676 cat >>$CONFIG_STATUS <<\_ACEOF
22677 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22679 --version | --vers* | -V )
22680 echo "$ac_cs_version"; exit 0 ;;
22682 # Conflict between --help and --header
22683 { { echo "$as_me:$LINENO: error: ambiguous option: $1
22684 Try \`$0 --help' for more information." >&5
22685 echo "$as_me: error: ambiguous option: $1
22686 Try \`$0 --help' for more information." >&2;}
22687 { (exit 1); exit 1; }; };;
22688 --help | --hel | -h )
22689 echo "$ac_cs_usage"; exit 0 ;;
22690 --debug | --d* | -d )
22692 --file | --fil | --fi | --f )
22694 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
22695 ac_need_defaults=false;;
22696 --header | --heade | --head | --hea )
22698 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
22699 ac_need_defaults=false;;
22700 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22701 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22704 # This is an error.
22705 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
22706 Try \`$0 --help' for more information." >&5
22707 echo "$as_me: error: unrecognized option: $1
22708 Try \`$0 --help' for more information." >&2;}
22709 { (exit 1); exit 1; }; } ;;
22711 *) ac_config_targets="$ac_config_targets $1" ;;
22717 ac_configure_extra_args=
22719 if $ac_cs_silent; then
22721 ac_configure_extra_args="$ac_configure_extra_args --silent"
22725 cat >>$CONFIG_STATUS <<_ACEOF
22726 if \$ac_cs_recheck; then
22727 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
22728 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22733 cat >>$CONFIG_STATUS <<_ACEOF
22735 # INIT-COMMANDS section.
22738 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22744 cat >>$CONFIG_STATUS <<\_ACEOF
22745 for ac_config_target in $ac_config_targets
22747 case "$ac_config_target" in
22748 # Handling of arguments.
22749 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22750 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22751 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
22752 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
22753 "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
22754 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
22755 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
22756 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
22757 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
22758 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
22759 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
22760 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22761 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22762 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
22763 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
22764 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
22765 { (exit 1); exit 1; }; };;
22769 # If the user did not use the arguments to specify the items to instantiate,
22770 # then the envvar interface is used. Set only those that are not.
22771 # We use the long form for the default assignment because of an extremely
22772 # bizarre bug on SunOS 4.1.3.
22773 if $ac_need_defaults; then
22774 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22775 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
22776 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22779 # Have a temporary directory for convenience. Make it in the build tree
22780 # simply because there is no reason to put it here, and in addition,
22781 # creating and moving files from /tmp can sometimes cause problems.
22782 # Create a temporary directory, and hook for its removal unless debugging.
22785 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
22786 trap '{ (exit 1); exit 1; }' 1 2 13 15
22789 # Create a (secure) tmp directory for tmp files.
22792 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
22793 test -n "$tmp" && test -d "$tmp"
22796 tmp=./confstat$$-$RANDOM
22797 (umask 077 && mkdir $tmp)
22800 echo "$me: cannot create a temporary directory in ." >&2
22801 { (exit 1); exit 1; }
22806 cat >>$CONFIG_STATUS <<_ACEOF
22809 # CONFIG_FILES section.
22812 # No need to generate the scripts if there are no CONFIG_FILES.
22813 # This happens for instance when ./config.status config.h
22814 if test -n "\$CONFIG_FILES"; then
22815 # Protect against being on the right side of a sed subst in config.status.
22816 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
22817 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
22818 s,@SHELL@,$SHELL,;t t
22819 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
22820 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
22821 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
22822 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
22823 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
22824 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
22825 s,@exec_prefix@,$exec_prefix,;t t
22826 s,@prefix@,$prefix,;t t
22827 s,@program_transform_name@,$program_transform_name,;t t
22828 s,@bindir@,$bindir,;t t
22829 s,@sbindir@,$sbindir,;t t
22830 s,@libexecdir@,$libexecdir,;t t
22831 s,@datadir@,$datadir,;t t
22832 s,@sysconfdir@,$sysconfdir,;t t
22833 s,@sharedstatedir@,$sharedstatedir,;t t
22834 s,@localstatedir@,$localstatedir,;t t
22835 s,@libdir@,$libdir,;t t
22836 s,@includedir@,$includedir,;t t
22837 s,@oldincludedir@,$oldincludedir,;t t
22838 s,@infodir@,$infodir,;t t
22839 s,@mandir@,$mandir,;t t
22840 s,@build_alias@,$build_alias,;t t
22841 s,@host_alias@,$host_alias,;t t
22842 s,@target_alias@,$target_alias,;t t
22843 s,@DEFS@,$DEFS,;t t
22844 s,@ECHO_C@,$ECHO_C,;t t
22845 s,@ECHO_N@,$ECHO_N,;t t
22846 s,@ECHO_T@,$ECHO_T,;t t
22847 s,@LIBS@,$LIBS,;t t
22848 s,@subdirs@,$subdirs,;t t
22849 s,@build@,$build,;t t
22850 s,@build_cpu@,$build_cpu,;t t
22851 s,@build_vendor@,$build_vendor,;t t
22852 s,@build_os@,$build_os,;t t
22853 s,@host@,$host,;t t
22854 s,@host_cpu@,$host_cpu,;t t
22855 s,@host_vendor@,$host_vendor,;t t
22856 s,@host_os@,$host_os,;t t
22857 s,@target@,$target,;t t
22858 s,@target_cpu@,$target_cpu,;t t
22859 s,@target_vendor@,$target_vendor,;t t
22860 s,@target_os@,$target_os,;t t
22861 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
22862 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
22863 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
22864 s,@CYGPATH_W@,$CYGPATH_W,;t t
22865 s,@PACKAGE@,$PACKAGE,;t t
22866 s,@VERSION@,$VERSION,;t t
22867 s,@ACLOCAL@,$ACLOCAL,;t t
22868 s,@AUTOCONF@,$AUTOCONF,;t t
22869 s,@AUTOMAKE@,$AUTOMAKE,;t t
22870 s,@AUTOHEADER@,$AUTOHEADER,;t t
22871 s,@MAKEINFO@,$MAKEINFO,;t t
22872 s,@AMTAR@,$AMTAR,;t t
22873 s,@install_sh@,$install_sh,;t t
22874 s,@STRIP@,$STRIP,;t t
22875 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
22876 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
22878 s,@SET_MAKE@,$SET_MAKE,;t t
22879 s,@am__leading_dot@,$am__leading_dot,;t t
22881 s,@CFLAGS@,$CFLAGS,;t t
22882 s,@LDFLAGS@,$LDFLAGS,;t t
22883 s,@CPPFLAGS@,$CPPFLAGS,;t t
22884 s,@ac_ct_CC@,$ac_ct_CC,;t t
22885 s,@EXEEXT@,$EXEEXT,;t t
22886 s,@OBJEXT@,$OBJEXT,;t t
22887 s,@DEPDIR@,$DEPDIR,;t t
22888 s,@am__include@,$am__include,;t t
22889 s,@am__quote@,$am__quote,;t t
22890 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
22891 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
22892 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
22893 s,@CCDEPMODE@,$CCDEPMODE,;t t
22894 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
22895 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
22896 s,@EGREP@,$EGREP,;t t
22897 s,@LN_S@,$LN_S,;t t
22898 s,@ECHO@,$ECHO,;t t
22900 s,@ac_ct_AR@,$ac_ct_AR,;t t
22901 s,@RANLIB@,$RANLIB,;t t
22902 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
22905 s,@CXXFLAGS@,$CXXFLAGS,;t t
22906 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
22907 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
22908 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
22909 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
22910 s,@CXXCPP@,$CXXCPP,;t t
22912 s,@FFLAGS@,$FFLAGS,;t t
22913 s,@ac_ct_F77@,$ac_ct_F77,;t t
22914 s,@LIBTOOL@,$LIBTOOL,;t t
22915 s,@GTKDOC@,$GTKDOC,;t t
22916 s,@HAVE_GTK_DOC_TRUE@,$HAVE_GTK_DOC_TRUE,;t t
22917 s,@HAVE_GTK_DOC_FALSE@,$HAVE_GTK_DOC_FALSE,;t t
22918 s,@HAVE_GTK_DOC@,$HAVE_GTK_DOC,;t t
22919 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
22920 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
22921 s,@FLIBS@,$FLIBS,;t t
22922 s,@LIBOBJS@,$LIBOBJS,;t t
22923 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
22924 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
22925 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
22926 s,@HAVE_XML@,$HAVE_XML,;t t
22927 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
22928 s,@LIBS_XML@,$LIBS_XML,;t t
22929 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
22930 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
22931 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
22932 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
22933 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
22934 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
22935 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
22936 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
22937 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
22938 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
22939 s,@MAINT@,$MAINT,;t t
22940 s,@cflags_set@,$cflags_set,;t t
22941 s,@BASH@,$BASH,;t t
22942 s,@WARNING@,$WARNING,;t t
22943 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
22948 cat >>$CONFIG_STATUS <<\_ACEOF
22949 # Split the substitutions into bite-sized pieces for seds with
22950 # small command number limits, like on Digital OSF/1 and HP-UX.
22951 ac_max_sed_lines=48
22952 ac_sed_frag=1 # Number of current file.
22953 ac_beg=1 # First line for current file.
22954 ac_end=$ac_max_sed_lines # Line after last line for current file.
22957 while $ac_more_lines; do
22958 if test $ac_beg -gt 1; then
22959 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22961 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
22963 if test ! -s $tmp/subs.frag; then
22964 ac_more_lines=false
22966 # The purpose of the label and of the branching condition is to
22967 # speed up the sed processing (if there are no `@' at all, there
22968 # is no need to browse any of the substitutions).
22969 # These are the two extra sed commands mentioned above.
22971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
22972 if test -z "$ac_sed_cmds"; then
22973 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
22975 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
22977 ac_sed_frag=`expr $ac_sed_frag + 1`
22979 ac_end=`expr $ac_end + $ac_max_sed_lines`
22982 if test -z "$ac_sed_cmds"; then
22985 fi # test -n "$CONFIG_FILES"
22988 cat >>$CONFIG_STATUS <<\_ACEOF
22989 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
22990 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
22992 - | *:- | *:-:* ) # input from stdin
22994 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22995 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22996 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
22997 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
22998 * ) ac_file_in=$ac_file.in ;;
23001 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
23002 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23003 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23004 X"$ac_file" : 'X\(//\)[^/]' \| \
23005 X"$ac_file" : 'X\(//\)$' \| \
23006 X"$ac_file" : 'X\(/\)' \| \
23007 . : '\(.\)' 2>/dev/null ||
23009 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23010 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23011 /^X\(\/\/\)$/{ s//\1/; q; }
23012 /^X\(\/\).*/{ s//\1/; q; }
23014 { if $as_mkdir_p; then
23019 while test ! -d "$as_dir"; do
23020 as_dirs="$as_dir $as_dirs"
23021 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23023 X"$as_dir" : 'X\(//\)[^/]' \| \
23024 X"$as_dir" : 'X\(//\)$' \| \
23025 X"$as_dir" : 'X\(/\)' \| \
23026 . : '\(.\)' 2>/dev/null ||
23028 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23029 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23030 /^X\(\/\/\)$/{ s//\1/; q; }
23031 /^X\(\/\).*/{ s//\1/; q; }
23034 test ! -n "$as_dirs" || mkdir $as_dirs
23035 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23036 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23037 { (exit 1); exit 1; }; }; }
23041 if test "$ac_dir" != .; then
23042 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23043 # A "../" for each directory in $ac_dir_suffix.
23044 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23046 ac_dir_suffix= ac_top_builddir=
23050 .) # No --srcdir option. We are building in place.
23052 if test -z "$ac_top_builddir"; then
23055 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23057 [\\/]* | ?:[\\/]* ) # Absolute path.
23058 ac_srcdir=$srcdir$ac_dir_suffix;
23059 ac_top_srcdir=$srcdir ;;
23060 *) # Relative path.
23061 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23062 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23065 # Do not use `cd foo && pwd` to compute absolute paths, because
23066 # the directories may not exist.
23068 .) ac_abs_builddir="$ac_dir";;
23071 .) ac_abs_builddir=`pwd`;;
23072 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23073 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23076 case $ac_abs_builddir in
23077 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23079 case ${ac_top_builddir}. in
23080 .) ac_abs_top_builddir=$ac_abs_builddir;;
23081 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23082 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23085 case $ac_abs_builddir in
23086 .) ac_abs_srcdir=$ac_srcdir;;
23089 .) ac_abs_srcdir=$ac_abs_builddir;;
23090 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23091 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23094 case $ac_abs_builddir in
23095 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23097 case $ac_top_srcdir in
23098 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23099 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23100 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23106 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23107 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
23110 if test x"$ac_file" != x-; then
23111 { echo "$as_me:$LINENO: creating $ac_file" >&5
23112 echo "$as_me: creating $ac_file" >&6;}
23115 # Let's still pretend it is `configure' which instantiates (i.e., don't
23116 # use $as_me), people would be surprised to read:
23117 # /* config.h. Generated by config.status. */
23118 if test x"$ac_file" = x-; then
23121 configure_input="$ac_file. "
23123 configure_input=$configure_input"Generated from `echo $ac_file_in |
23124 sed 's,.*/,,'` by configure."
23126 # First look for the input files in the build tree, otherwise in the
23128 ac_file_inputs=`IFS=:
23129 for f in $ac_file_in; do
23131 -) echo $tmp/stdin ;;
23133 # Absolute (can't be DOS-style, as IFS=:)
23134 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23135 echo "$as_me: error: cannot find input file: $f" >&2;}
23136 { (exit 1); exit 1; }; }
23139 if test -f "$f"; then
23142 elif test -f "$srcdir/$f"; then
23147 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23148 echo "$as_me: error: cannot find input file: $f" >&2;}
23149 { (exit 1); exit 1; }; }
23152 done` || { (exit 1); exit 1; }
23154 cat >>$CONFIG_STATUS <<_ACEOF
23158 cat >>$CONFIG_STATUS <<\_ACEOF
23160 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23161 s,@configure_input@,$configure_input,;t t
23162 s,@srcdir@,$ac_srcdir,;t t
23163 s,@abs_srcdir@,$ac_abs_srcdir,;t t
23164 s,@top_srcdir@,$ac_top_srcdir,;t t
23165 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
23166 s,@builddir@,$ac_builddir,;t t
23167 s,@abs_builddir@,$ac_abs_builddir,;t t
23168 s,@top_builddir@,$ac_top_builddir,;t t
23169 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
23170 s,@INSTALL@,$ac_INSTALL,;t t
23171 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
23173 if test x"$ac_file" != x-; then
23174 mv $tmp/out $ac_file
23180 # Run the commands associated with the file.
23182 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23183 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23184 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23185 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23186 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23187 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23188 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23189 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23190 src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
23191 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23192 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23193 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23194 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23195 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23196 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23197 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23198 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23199 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23200 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23201 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23202 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23203 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23204 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
23205 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example ;;
23209 cat >>$CONFIG_STATUS <<\_ACEOF
23212 # CONFIG_HEADER section.
23215 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
23216 # NAME is the cpp macro being defined and VALUE is the value it is being given.
23218 # ac_d sets the value in "#define NAME VALUE" lines.
23219 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
23220 ac_dB='[ ].*$,\1#\2'
23223 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
23224 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
23225 ac_uB='$,\1#\2define\3'
23229 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
23230 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
23232 - | *:- | *:-:* ) # input from stdin
23234 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23235 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23236 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
23237 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
23238 * ) ac_file_in=$ac_file.in ;;
23241 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
23242 echo "$as_me: creating $ac_file" >&6;}
23244 # First look for the input files in the build tree, otherwise in the
23246 ac_file_inputs=`IFS=:
23247 for f in $ac_file_in; do
23249 -) echo $tmp/stdin ;;
23251 # Absolute (can't be DOS-style, as IFS=:)
23252 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23253 echo "$as_me: error: cannot find input file: $f" >&2;}
23254 { (exit 1); exit 1; }; }
23255 # Do quote $f, to prevent DOS paths from being IFS'd.
23258 if test -f "$f"; then
23261 elif test -f "$srcdir/$f"; then
23266 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
23267 echo "$as_me: error: cannot find input file: $f" >&2;}
23268 { (exit 1); exit 1; }; }
23271 done` || { (exit 1); exit 1; }
23272 # Remove the trailing spaces.
23273 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
23277 # Transform confdefs.h into two sed scripts, `conftest.defines' and
23278 # `conftest.undefs', that substitutes the proper values into
23279 # config.h.in to produce config.h. The first handles `#define'
23280 # templates, and the second `#undef' templates.
23281 # And first: Protect against being on the right side of a sed subst in
23282 # config.status. Protect against being in an unquoted here document
23283 # in config.status.
23284 rm -f conftest.defines conftest.undefs
23285 # Using a here document instead of a string reduces the quoting nightmare.
23286 # Putting comments in sed scripts is not portable.
23288 # `end' is used to avoid that the second main sed command (meant for
23289 # 0-ary CPP macros) applies to n-ary macro definitions.
23290 # See the Autoconf documentation for `clear'.
23291 cat >confdef2sed.sed <<\_ACEOF
23296 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
23298 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
23301 # If some macros were called several times there might be several times
23302 # the same #defines, which is useless. Nevertheless, we may not want to
23303 # sort them, since we want the *last* AC-DEFINE to be honored.
23304 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
23305 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
23306 rm -f confdef2sed.sed
23308 # This sed command replaces #undef with comments. This is necessary, for
23309 # example, in the case of _POSIX_SOURCE, which is predefined and required
23310 # on some systems where configure will not decide to define it.
23311 cat >>conftest.undefs <<\_ACEOF
23312 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
23315 # Break up conftest.defines because some shells have a limit on the size
23316 # of here documents, and old seds have small limits too (100 cmds).
23317 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
23318 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
23319 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
23320 echo ' :' >>$CONFIG_STATUS
23321 rm -f conftest.tail
23322 while grep . conftest.defines >/dev/null
23324 # Write a limited-size here document to $tmp/defines.sed.
23325 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
23326 # Speed up: don't consider the non `#define' lines.
23327 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
23328 # Work around the forget-to-reset-the-flag bug.
23329 echo 't clr' >>$CONFIG_STATUS
23330 echo ': clr' >>$CONFIG_STATUS
23331 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
23333 sed -f $tmp/defines.sed $tmp/in >$tmp/out
23335 mv $tmp/out $tmp/in
23337 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
23338 rm -f conftest.defines
23339 mv conftest.tail conftest.defines
23341 rm -f conftest.defines
23342 echo ' fi # grep' >>$CONFIG_STATUS
23343 echo >>$CONFIG_STATUS
23345 # Break up conftest.undefs because some shells have a limit on the size
23346 # of here documents, and old seds have small limits too (100 cmds).
23347 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
23348 rm -f conftest.tail
23349 while grep . conftest.undefs >/dev/null
23351 # Write a limited-size here document to $tmp/undefs.sed.
23352 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
23353 # Speed up: don't consider the non `#undef'
23354 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
23355 # Work around the forget-to-reset-the-flag bug.
23356 echo 't clr' >>$CONFIG_STATUS
23357 echo ': clr' >>$CONFIG_STATUS
23358 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
23360 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
23362 mv $tmp/out $tmp/in
23364 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
23365 rm -f conftest.undefs
23366 mv conftest.tail conftest.undefs
23368 rm -f conftest.undefs
23370 cat >>$CONFIG_STATUS <<\_ACEOF
23371 # Let's still pretend it is `configure' which instantiates (i.e., don't
23372 # use $as_me), people would be surprised to read:
23373 # /* config.h. Generated by config.status. */
23374 if test x"$ac_file" = x-; then
23375 echo "/* Generated by configure. */" >$tmp/config.h
23377 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
23379 cat $tmp/in >>$tmp/config.h
23381 if test x"$ac_file" != x-; then
23382 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
23383 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23384 echo "$as_me: $ac_file is unchanged" >&6;}
23386 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
23387 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23388 X"$ac_file" : 'X\(//\)[^/]' \| \
23389 X"$ac_file" : 'X\(//\)$' \| \
23390 X"$ac_file" : 'X\(/\)' \| \
23391 . : '\(.\)' 2>/dev/null ||
23393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23394 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23395 /^X\(\/\/\)$/{ s//\1/; q; }
23396 /^X\(\/\).*/{ s//\1/; q; }
23398 { if $as_mkdir_p; then
23403 while test ! -d "$as_dir"; do
23404 as_dirs="$as_dir $as_dirs"
23405 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23406 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23407 X"$as_dir" : 'X\(//\)[^/]' \| \
23408 X"$as_dir" : 'X\(//\)$' \| \
23409 X"$as_dir" : 'X\(/\)' \| \
23410 . : '\(.\)' 2>/dev/null ||
23412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23413 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23414 /^X\(\/\/\)$/{ s//\1/; q; }
23415 /^X\(\/\).*/{ s//\1/; q; }
23418 test ! -n "$as_dirs" || mkdir $as_dirs
23419 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23420 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23421 { (exit 1); exit 1; }; }; }
23424 mv $tmp/config.h $ac_file
23428 rm -f $tmp/config.h
23430 # Compute $ac_file's index in $config_headers.
23432 for _am_header in $config_headers :; do
23433 case $_am_header in
23434 $ac_file | $ac_file:* )
23437 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23440 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
23441 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23442 X$ac_file : 'X\(//\)[^/]' \| \
23443 X$ac_file : 'X\(//\)$' \| \
23444 X$ac_file : 'X\(/\)' \| \
23445 . : '\(.\)' 2>/dev/null ||
23447 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23448 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23449 /^X\(\/\/\)$/{ s//\1/; q; }
23450 /^X\(\/\).*/{ s//\1/; q; }
23451 s/.*/./; q'`/stamp-h$_am_stamp_count
23454 cat >>$CONFIG_STATUS <<\_ACEOF
23457 # CONFIG_COMMANDS section.
23459 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
23460 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
23461 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
23462 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
23463 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23464 X"$ac_dest" : 'X\(//\)[^/]' \| \
23465 X"$ac_dest" : 'X\(//\)$' \| \
23466 X"$ac_dest" : 'X\(/\)' \| \
23467 . : '\(.\)' 2>/dev/null ||
23469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23470 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23471 /^X\(\/\/\)$/{ s//\1/; q; }
23472 /^X\(\/\).*/{ s//\1/; q; }
23474 { if $as_mkdir_p; then
23479 while test ! -d "$as_dir"; do
23480 as_dirs="$as_dir $as_dirs"
23481 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23482 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23483 X"$as_dir" : 'X\(//\)[^/]' \| \
23484 X"$as_dir" : 'X\(//\)$' \| \
23485 X"$as_dir" : 'X\(/\)' \| \
23486 . : '\(.\)' 2>/dev/null ||
23488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23489 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23490 /^X\(\/\/\)$/{ s//\1/; q; }
23491 /^X\(\/\).*/{ s//\1/; q; }
23494 test ! -n "$as_dirs" || mkdir $as_dirs
23495 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23496 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23497 { (exit 1); exit 1; }; }; }
23501 if test "$ac_dir" != .; then
23502 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23503 # A "../" for each directory in $ac_dir_suffix.
23504 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23506 ac_dir_suffix= ac_top_builddir=
23510 .) # No --srcdir option. We are building in place.
23512 if test -z "$ac_top_builddir"; then
23515 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23517 [\\/]* | ?:[\\/]* ) # Absolute path.
23518 ac_srcdir=$srcdir$ac_dir_suffix;
23519 ac_top_srcdir=$srcdir ;;
23520 *) # Relative path.
23521 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23522 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23525 # Do not use `cd foo && pwd` to compute absolute paths, because
23526 # the directories may not exist.
23528 .) ac_abs_builddir="$ac_dir";;
23531 .) ac_abs_builddir=`pwd`;;
23532 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23533 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23536 case $ac_abs_builddir in
23537 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23539 case ${ac_top_builddir}. in
23540 .) ac_abs_top_builddir=$ac_abs_builddir;;
23541 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23542 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23545 case $ac_abs_builddir in
23546 .) ac_abs_srcdir=$ac_srcdir;;
23549 .) ac_abs_srcdir=$ac_abs_builddir;;
23550 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23551 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23554 case $ac_abs_builddir in
23555 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23557 case $ac_top_srcdir in
23558 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23559 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23560 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23565 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
23566 echo "$as_me: executing $ac_dest commands" >&6;}
23568 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
23569 # Strip MF so we end up with the name of the file.
23570 mf=`echo "$mf" | sed -e 's/:.*$//'`
23571 # Check whether this is an Automake generated Makefile or not.
23572 # We used to match only the files named `Makefile.in', but
23573 # some people rename them; so instead we look at the file content.
23574 # Grep'ing the first line is not enough: some people post-process
23575 # each Makefile.in and add a new line on top of each file to say so.
23576 # So let's grep whole file.
23577 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
23578 dirpart=`(dirname "$mf") 2>/dev/null ||
23579 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23580 X"$mf" : 'X\(//\)[^/]' \| \
23581 X"$mf" : 'X\(//\)$' \| \
23582 X"$mf" : 'X\(/\)' \| \
23583 . : '\(.\)' 2>/dev/null ||
23585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23586 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23587 /^X\(\/\/\)$/{ s//\1/; q; }
23588 /^X\(\/\).*/{ s//\1/; q; }
23593 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
23594 # Extract the definition of DEP_FILES from the Makefile without
23596 DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
23597 test -z "$DEPDIR" && continue
23598 # When using ansi2knr, U may be empty or an underscore; expand it
23599 U=`sed -n -e '/^U = / s///p' < "$mf"`
23600 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
23601 # We invoke sed twice because it is the simplest approach to
23602 # changing $(DEPDIR) to its actual value in the expansion.
23603 for file in `sed -n -e '
23604 /^DEP_FILES = .*\\\\$/ {
23613 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
23614 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
23615 # Make sure the directory exists.
23616 test -f "$dirpart/$file" && continue
23617 fdir=`(dirname "$file") 2>/dev/null ||
23618 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23619 X"$file" : 'X\(//\)[^/]' \| \
23620 X"$file" : 'X\(//\)$' \| \
23621 X"$file" : 'X\(/\)' \| \
23622 . : '\(.\)' 2>/dev/null ||
23624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23626 /^X\(\/\/\)$/{ s//\1/; q; }
23627 /^X\(\/\).*/{ s//\1/; q; }
23629 { if $as_mkdir_p; then
23630 mkdir -p $dirpart/$fdir
23632 as_dir=$dirpart/$fdir
23634 while test ! -d "$as_dir"; do
23635 as_dirs="$as_dir $as_dirs"
23636 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23637 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23638 X"$as_dir" : 'X\(//\)[^/]' \| \
23639 X"$as_dir" : 'X\(//\)$' \| \
23640 X"$as_dir" : 'X\(/\)' \| \
23641 . : '\(.\)' 2>/dev/null ||
23643 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23644 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23645 /^X\(\/\/\)$/{ s//\1/; q; }
23646 /^X\(\/\).*/{ s//\1/; q; }
23649 test ! -n "$as_dirs" || mkdir $as_dirs
23650 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
23651 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
23652 { (exit 1); exit 1; }; }; }
23654 # echo "creating $dirpart/$file"
23655 echo '# dummy' > "$dirpart/$file"
23663 cat >>$CONFIG_STATUS <<\_ACEOF
23665 { (exit 0); exit 0; }
23667 chmod +x $CONFIG_STATUS
23668 ac_clean_files=$ac_clean_files_save
23671 # configure is writing to config.log, and then calls config.status.
23672 # config.status does its own redirection, appending to config.log.
23673 # Unfortunately, on DOS this fails, as config.log is still kept open
23674 # by configure, so config.status won't be able to write to it; its
23675 # output is simply discarded. So we exec the FD to /dev/null,
23676 # effectively closing config.log, so it can be properly (re)opened and
23677 # appended to by config.status. When coming back to configure, we
23678 # need to make the FD available again.
23679 if test "$no_create" != yes; then
23681 ac_config_status_args=
23682 test "$silent" = yes &&
23683 ac_config_status_args="$ac_config_status_args --quiet"
23685 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23687 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23688 # would make configure fail if this is the last instruction.
23689 $ac_cs_success || { (exit 1); exit 1; }
23693 # CONFIG_SUBDIRS section.
23695 if test "$no_recursion" != yes; then
23697 # Remove --cache-file and --srcdir arguments so they do not pile up.
23698 ac_sub_configure_args=
23700 for ac_arg in $ac_configure_args; do
23701 if test -n "$ac_prev"; then
23706 -cache-file | --cache-file | --cache-fil | --cache-fi \
23707 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23708 ac_prev=cache_file ;;
23709 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23710 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23713 --config-cache | -C)
23715 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23717 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23719 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23721 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23723 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
23727 # Always prepend --prefix to ensure using the same prefix
23728 # in subdir configurations.
23729 ac_sub_configure_args="--prefix=$prefix $ac_sub_configure_args"
23732 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23734 # Do not complain, so a configure script can configure whichever
23735 # parts of a large source tree are present.
23736 test -d $srcdir/$ac_dir || continue
23738 { echo "$as_me:$LINENO: configuring in $ac_dir" >&5
23739 echo "$as_me: configuring in $ac_dir" >&6;}
23740 { if $as_mkdir_p; then
23745 while test ! -d "$as_dir"; do
23746 as_dirs="$as_dir $as_dirs"
23747 as_dir=`(dirname "$as_dir") 2>/dev/null ||
23748 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23749 X"$as_dir" : 'X\(//\)[^/]' \| \
23750 X"$as_dir" : 'X\(//\)$' \| \
23751 X"$as_dir" : 'X\(/\)' \| \
23752 . : '\(.\)' 2>/dev/null ||
23754 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
23755 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
23756 /^X\(\/\/\)$/{ s//\1/; q; }
23757 /^X\(\/\).*/{ s//\1/; q; }
23760 test ! -n "$as_dirs" || mkdir $as_dirs
23761 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
23762 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
23763 { (exit 1); exit 1; }; }; }
23767 if test "$ac_dir" != .; then
23768 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23769 # A "../" for each directory in $ac_dir_suffix.
23770 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
23772 ac_dir_suffix= ac_top_builddir=
23776 .) # No --srcdir option. We are building in place.
23778 if test -z "$ac_top_builddir"; then
23781 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
23783 [\\/]* | ?:[\\/]* ) # Absolute path.
23784 ac_srcdir=$srcdir$ac_dir_suffix;
23785 ac_top_srcdir=$srcdir ;;
23786 *) # Relative path.
23787 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
23788 ac_top_srcdir=$ac_top_builddir$srcdir ;;
23791 # Do not use `cd foo && pwd` to compute absolute paths, because
23792 # the directories may not exist.
23794 .) ac_abs_builddir="$ac_dir";;
23797 .) ac_abs_builddir=`pwd`;;
23798 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
23799 *) ac_abs_builddir=`pwd`/"$ac_dir";;
23802 case $ac_abs_builddir in
23803 .) ac_abs_top_builddir=${ac_top_builddir}.;;
23805 case ${ac_top_builddir}. in
23806 .) ac_abs_top_builddir=$ac_abs_builddir;;
23807 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
23808 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
23811 case $ac_abs_builddir in
23812 .) ac_abs_srcdir=$ac_srcdir;;
23815 .) ac_abs_srcdir=$ac_abs_builddir;;
23816 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
23817 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
23820 case $ac_abs_builddir in
23821 .) ac_abs_top_srcdir=$ac_top_srcdir;;
23823 case $ac_top_srcdir in
23824 .) ac_abs_top_srcdir=$ac_abs_builddir;;
23825 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
23826 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
23833 # Check for guested configure; otherwise get Cygnus style configure.
23834 if test -f $ac_srcdir/configure.gnu; then
23835 ac_sub_configure="$SHELL '$ac_srcdir/configure.gnu'"
23836 elif test -f $ac_srcdir/configure; then
23837 ac_sub_configure="$SHELL '$ac_srcdir/configure'"
23838 elif test -f $ac_srcdir/configure.in; then
23839 ac_sub_configure=$ac_configure
23841 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
23842 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23846 # The recursion is here.
23847 if test -n "$ac_sub_configure"; then
23848 # Make the cache file name correct relative to the subdirectory.
23849 case $cache_file in
23850 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23851 *) # Relative path.
23852 ac_sub_cache_file=$ac_top_builddir$cache_file ;;
23855 { echo "$as_me:$LINENO: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23856 echo "$as_me: running $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23857 # The eval makes quoting arguments work.
23858 eval $ac_sub_configure $ac_sub_configure_args \
23859 --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir ||
23860 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
23861 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
23862 { (exit 1); exit 1; }; }
23872 Configuration of package \`${PACKAGE}':
23877 LDFlags: ${LDFLAGS}