2 # From configure.ac Revision: 1.6 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.0.040304.
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.0.040304'
428 PACKAGE_STRING='GRAS 0.0.040304'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="src/include/gras.h"
432 # Factoring default headers for most tests.
433 ac_includes_default="\
436 # include <sys/types.h>
439 # include <sys/stat.h>
450 # if !STDC_HEADERS && HAVE_MEMORY_H
456 # include <strings.h>
459 # include <inttypes.h>
469 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS 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 mkdir_p 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 LIBOBJS HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE 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'
472 # Initialize some variables set by options.
474 ac_init_version=false
475 # The variables have the same names as the options, with
476 # dashes changed to underlines.
484 program_transform_name=s,x,x,
492 # Installation directory options.
493 # These are left unexpanded so users can "make install exec_prefix=/foo"
494 # and all the variables that are supposed to be based on exec_prefix
495 # by default will actually change.
496 # Use braces instead of parens because sh, perl, etc. also accept them.
497 bindir='${exec_prefix}/bin'
498 sbindir='${exec_prefix}/sbin'
499 libexecdir='${exec_prefix}/libexec'
500 datadir='${prefix}/share'
501 sysconfdir='${prefix}/etc'
502 sharedstatedir='${prefix}/com'
503 localstatedir='${prefix}/var'
504 libdir='${exec_prefix}/lib'
505 includedir='${prefix}/include'
506 oldincludedir='/usr/include'
507 infodir='${prefix}/info'
508 mandir='${prefix}/man'
513 # If the previous option needs an argument, assign it.
514 if test -n "$ac_prev"; then
515 eval "$ac_prev=\$ac_option"
520 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
522 # Accept the important Cygnus configure options, so we can diagnose typos.
526 -bindir | --bindir | --bindi | --bind | --bin | --bi)
528 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
531 -build | --build | --buil | --bui | --bu)
532 ac_prev=build_alias ;;
533 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
534 build_alias=$ac_optarg ;;
536 -cache-file | --cache-file | --cache-fil | --cache-fi \
537 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
538 ac_prev=cache_file ;;
539 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
540 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
541 cache_file=$ac_optarg ;;
544 cache_file=config.cache ;;
546 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
548 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
550 datadir=$ac_optarg ;;
552 -disable-* | --disable-*)
553 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
554 # Reject names that are not valid shell variable names.
555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
557 { (exit 1); exit 1; }; }
558 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
559 eval "enable_$ac_feature=no" ;;
561 -enable-* | --enable-*)
562 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
563 # Reject names that are not valid shell variable names.
564 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
565 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
566 { (exit 1); exit 1; }; }
567 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
569 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
572 eval "enable_$ac_feature='$ac_optarg'" ;;
574 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
575 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
576 | --exec | --exe | --ex)
577 ac_prev=exec_prefix ;;
578 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
579 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
580 | --exec=* | --exe=* | --ex=*)
581 exec_prefix=$ac_optarg ;;
583 -gas | --gas | --ga | --g)
584 # Obsolete; use --with-gas.
587 -help | --help | --hel | --he | -h)
589 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
590 ac_init_help=recursive ;;
591 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
592 ac_init_help=short ;;
594 -host | --host | --hos | --ho)
595 ac_prev=host_alias ;;
596 -host=* | --host=* | --hos=* | --ho=*)
597 host_alias=$ac_optarg ;;
599 -includedir | --includedir | --includedi | --included | --include \
600 | --includ | --inclu | --incl | --inc)
601 ac_prev=includedir ;;
602 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
603 | --includ=* | --inclu=* | --incl=* | --inc=*)
604 includedir=$ac_optarg ;;
606 -infodir | --infodir | --infodi | --infod | --info | --inf)
608 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
609 infodir=$ac_optarg ;;
611 -libdir | --libdir | --libdi | --libd)
613 -libdir=* | --libdir=* | --libdi=* | --libd=*)
616 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
617 | --libexe | --libex | --libe)
618 ac_prev=libexecdir ;;
619 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
620 | --libexe=* | --libex=* | --libe=*)
621 libexecdir=$ac_optarg ;;
623 -localstatedir | --localstatedir | --localstatedi | --localstated \
624 | --localstate | --localstat | --localsta | --localst \
625 | --locals | --local | --loca | --loc | --lo)
626 ac_prev=localstatedir ;;
627 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
628 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
629 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
630 localstatedir=$ac_optarg ;;
632 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
634 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
638 # Obsolete; use --without-fp.
641 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
642 | --no-cr | --no-c | -n)
645 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
646 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
649 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
650 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
651 | --oldin | --oldi | --old | --ol | --o)
652 ac_prev=oldincludedir ;;
653 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
654 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
655 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
656 oldincludedir=$ac_optarg ;;
658 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
660 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
663 -program-prefix | --program-prefix | --program-prefi | --program-pref \
664 | --program-pre | --program-pr | --program-p)
665 ac_prev=program_prefix ;;
666 -program-prefix=* | --program-prefix=* | --program-prefi=* \
667 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
668 program_prefix=$ac_optarg ;;
670 -program-suffix | --program-suffix | --program-suffi | --program-suff \
671 | --program-suf | --program-su | --program-s)
672 ac_prev=program_suffix ;;
673 -program-suffix=* | --program-suffix=* | --program-suffi=* \
674 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
675 program_suffix=$ac_optarg ;;
677 -program-transform-name | --program-transform-name \
678 | --program-transform-nam | --program-transform-na \
679 | --program-transform-n | --program-transform- \
680 | --program-transform | --program-transfor \
681 | --program-transfo | --program-transf \
682 | --program-trans | --program-tran \
683 | --progr-tra | --program-tr | --program-t)
684 ac_prev=program_transform_name ;;
685 -program-transform-name=* | --program-transform-name=* \
686 | --program-transform-nam=* | --program-transform-na=* \
687 | --program-transform-n=* | --program-transform-=* \
688 | --program-transform=* | --program-transfor=* \
689 | --program-transfo=* | --program-transf=* \
690 | --program-trans=* | --program-tran=* \
691 | --progr-tra=* | --program-tr=* | --program-t=*)
692 program_transform_name=$ac_optarg ;;
694 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
695 | -silent | --silent | --silen | --sile | --sil)
698 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
700 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
702 sbindir=$ac_optarg ;;
704 -sharedstatedir | --sharedstatedir | --sharedstatedi \
705 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
706 | --sharedst | --shareds | --shared | --share | --shar \
708 ac_prev=sharedstatedir ;;
709 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
710 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
711 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
713 sharedstatedir=$ac_optarg ;;
715 -site | --site | --sit)
717 -site=* | --site=* | --sit=*)
720 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
722 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
725 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
726 | --syscon | --sysco | --sysc | --sys | --sy)
727 ac_prev=sysconfdir ;;
728 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
729 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
730 sysconfdir=$ac_optarg ;;
732 -target | --target | --targe | --targ | --tar | --ta | --t)
733 ac_prev=target_alias ;;
734 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
735 target_alias=$ac_optarg ;;
737 -v | -verbose | --verbose | --verbos | --verbo | --verb)
740 -version | --version | --versio | --versi | --vers | -V)
744 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
745 # Reject names that are not valid shell variable names.
746 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
747 { echo "$as_me: error: invalid package name: $ac_package" >&2
748 { (exit 1); exit 1; }; }
749 ac_package=`echo $ac_package| sed 's/-/_/g'`
751 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
754 eval "with_$ac_package='$ac_optarg'" ;;
756 -without-* | --without-*)
757 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
758 # Reject names that are not valid shell variable names.
759 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
760 { echo "$as_me: error: invalid package name: $ac_package" >&2
761 { (exit 1); exit 1; }; }
762 ac_package=`echo $ac_package | sed 's/-/_/g'`
763 eval "with_$ac_package=no" ;;
766 # Obsolete; use --with-x.
769 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
770 | --x-incl | --x-inc | --x-in | --x-i)
771 ac_prev=x_includes ;;
772 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
773 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
774 x_includes=$ac_optarg ;;
776 -x-libraries | --x-libraries | --x-librarie | --x-librari \
777 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
778 ac_prev=x_libraries ;;
779 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
780 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
781 x_libraries=$ac_optarg ;;
783 -*) { echo "$as_me: error: unrecognized option: $ac_option
784 Try \`$0 --help' for more information." >&2
785 { (exit 1); exit 1; }; }
789 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
790 # Reject names that are not valid shell variable names.
791 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
792 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
793 { (exit 1); exit 1; }; }
794 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
795 eval "$ac_envvar='$ac_optarg'"
799 # FIXME: should be removed in autoconf 3.0.
800 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
801 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
802 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
803 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
809 if test -n "$ac_prev"; then
810 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
811 { echo "$as_me: error: missing argument to $ac_option" >&2
812 { (exit 1); exit 1; }; }
815 # Be sure to have absolute paths.
816 for ac_var in exec_prefix prefix
818 eval ac_val=$`echo $ac_var`
820 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
821 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
822 { (exit 1); exit 1; }; };;
826 # Be sure to have absolute paths.
827 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
828 localstatedir libdir includedir oldincludedir infodir mandir
830 eval ac_val=$`echo $ac_var`
832 [\\/$]* | ?:[\\/]* ) ;;
833 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
834 { (exit 1); exit 1; }; };;
838 # There might be people who depend on the old broken behavior: `$host'
839 # used to hold the argument of --host etc.
840 # FIXME: To remove some day.
845 # FIXME: To remove some day.
846 if test "x$host_alias" != x; then
847 if test "x$build_alias" = x; then
848 cross_compiling=maybe
849 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
850 If a cross compiler is detected then cross compile mode will be used." >&2
851 elif test "x$build_alias" != "x$host_alias"; then
857 test -n "$host_alias" && ac_tool_prefix=$host_alias-
859 test "$silent" = yes && exec 6>/dev/null
862 # Find the source files, if location was not specified.
863 if test -z "$srcdir"; then
864 ac_srcdir_defaulted=yes
865 # Try the directory containing this script, then its parent.
866 ac_confdir=`(dirname "$0") 2>/dev/null ||
867 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
868 X"$0" : 'X\(//\)[^/]' \| \
869 X"$0" : 'X\(//\)$' \| \
870 X"$0" : 'X\(/\)' \| \
871 . : '\(.\)' 2>/dev/null ||
873 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
874 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
875 /^X\(\/\/\)$/{ s//\1/; q; }
876 /^X\(\/\).*/{ s//\1/; q; }
879 if test ! -r $srcdir/$ac_unique_file; then
883 ac_srcdir_defaulted=no
885 if test ! -r $srcdir/$ac_unique_file; then
886 if test "$ac_srcdir_defaulted" = yes; then
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
888 { (exit 1); exit 1; }; }
890 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
891 { (exit 1); exit 1; }; }
894 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
895 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
896 { (exit 1); exit 1; }; }
897 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
898 ac_env_build_alias_set=${build_alias+set}
899 ac_env_build_alias_value=$build_alias
900 ac_cv_env_build_alias_set=${build_alias+set}
901 ac_cv_env_build_alias_value=$build_alias
902 ac_env_host_alias_set=${host_alias+set}
903 ac_env_host_alias_value=$host_alias
904 ac_cv_env_host_alias_set=${host_alias+set}
905 ac_cv_env_host_alias_value=$host_alias
906 ac_env_target_alias_set=${target_alias+set}
907 ac_env_target_alias_value=$target_alias
908 ac_cv_env_target_alias_set=${target_alias+set}
909 ac_cv_env_target_alias_value=$target_alias
910 ac_env_CC_set=${CC+set}
912 ac_cv_env_CC_set=${CC+set}
913 ac_cv_env_CC_value=$CC
914 ac_env_CFLAGS_set=${CFLAGS+set}
915 ac_env_CFLAGS_value=$CFLAGS
916 ac_cv_env_CFLAGS_set=${CFLAGS+set}
917 ac_cv_env_CFLAGS_value=$CFLAGS
918 ac_env_LDFLAGS_set=${LDFLAGS+set}
919 ac_env_LDFLAGS_value=$LDFLAGS
920 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
921 ac_cv_env_LDFLAGS_value=$LDFLAGS
922 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
923 ac_env_CPPFLAGS_value=$CPPFLAGS
924 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
925 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
926 ac_env_CPP_set=${CPP+set}
927 ac_env_CPP_value=$CPP
928 ac_cv_env_CPP_set=${CPP+set}
929 ac_cv_env_CPP_value=$CPP
930 ac_env_CXX_set=${CXX+set}
931 ac_env_CXX_value=$CXX
932 ac_cv_env_CXX_set=${CXX+set}
933 ac_cv_env_CXX_value=$CXX
934 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
935 ac_env_CXXFLAGS_value=$CXXFLAGS
936 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
937 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
938 ac_env_CXXCPP_set=${CXXCPP+set}
939 ac_env_CXXCPP_value=$CXXCPP
940 ac_cv_env_CXXCPP_set=${CXXCPP+set}
941 ac_cv_env_CXXCPP_value=$CXXCPP
942 ac_env_F77_set=${F77+set}
943 ac_env_F77_value=$F77
944 ac_cv_env_F77_set=${F77+set}
945 ac_cv_env_F77_value=$F77
946 ac_env_FFLAGS_set=${FFLAGS+set}
947 ac_env_FFLAGS_value=$FFLAGS
948 ac_cv_env_FFLAGS_set=${FFLAGS+set}
949 ac_cv_env_FFLAGS_value=$FFLAGS
952 # Report the --help message.
954 if test "$ac_init_help" = "long"; then
955 # Omit some internal or obsolete options to make the list less imposing.
956 # This message is too long to be a string in the A/UX 3.1 sh.
958 \`configure' configures GRAS 0.0.040304 to adapt to many kinds of systems.
960 Usage: $0 [OPTION]... [VAR=VALUE]...
962 To assign environment variables (e.g., CC, CFLAGS...), specify them as
963 VAR=VALUE. See below for descriptions of some of the useful variables.
965 Defaults for the options are specified in brackets.
968 -h, --help display this help and exit
969 --help=short display options specific to this package
970 --help=recursive display the short help of all the included packages
971 -V, --version display version information and exit
972 -q, --quiet, --silent do not print \`checking...' messages
973 --cache-file=FILE cache test results in FILE [disabled]
974 -C, --config-cache alias for \`--cache-file=config.cache'
975 -n, --no-create do not create output files
976 --srcdir=DIR find the sources in DIR [configure dir or \`..']
981 Installation directories:
982 --prefix=PREFIX install architecture-independent files in PREFIX
984 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
987 By default, \`make install' will install all the files in
988 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
989 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
990 for instance \`--prefix=\$HOME'.
992 For better control, use the options below.
994 Fine tuning of the installation directories:
995 --bindir=DIR user executables [EPREFIX/bin]
996 --sbindir=DIR system admin executables [EPREFIX/sbin]
997 --libexecdir=DIR program executables [EPREFIX/libexec]
998 --datadir=DIR read-only architecture-independent data [PREFIX/share]
999 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1000 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1001 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1002 --libdir=DIR object code libraries [EPREFIX/lib]
1003 --includedir=DIR C header files [PREFIX/include]
1004 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1005 --infodir=DIR info documentation [PREFIX/info]
1006 --mandir=DIR man documentation [PREFIX/man]
1012 --program-prefix=PREFIX prepend PREFIX to installed program names
1013 --program-suffix=SUFFIX append SUFFIX to installed program names
1014 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1017 --build=BUILD configure for building on BUILD [guessed]
1018 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1019 --target=TARGET configure for building compilers for TARGET [HOST]
1023 if test -n "$ac_init_help"; then
1024 case $ac_init_help in
1025 short | recursive ) echo "Configuration of GRAS 0.0.040304:";;
1030 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1031 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1032 --enable-shared[=PKGS]
1033 build shared libraries [default=yes]
1034 --enable-static[=PKGS]
1035 build static libraries [default=yes]
1036 --enable-fast-install[=PKGS]
1037 optimize for fast installation [default=yes]
1038 --disable-dependency-tracking speeds up one-time build
1039 --enable-dependency-tracking do not reject slow dependency extractors
1040 --disable-libtool-lock avoid locking (might break parallel builds)
1041 --enable-gtk-doc use gtk-doc to build documentation default=no
1042 --enable-maintainer-mode enable make rules and dependencies not useful
1043 (and sometimes confusing) to the casual installer
1044 --enable-compile-warnings=no/minimum/yes Turn on compiler warnings.
1045 --enable-iso-c Try to warn if code is not ISO C
1048 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1049 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1050 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1051 --with-pic try to use only PIC/non-PIC objects [default=use
1054 include additional configurations [automatic]
1055 --with-html-dir=PATH path to installed docs
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
1179 GRAS configure 0.0.040304
1180 generated by GNU Autoconf 2.59
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.0.040304, which was
1194 generated by GNU Autoconf 2.59. 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
1533 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1534 if test -f $ac_dir/install-sh; then
1536 ac_install_sh="$ac_aux_dir/install-sh -c"
1538 elif test -f $ac_dir/install.sh; then
1540 ac_install_sh="$ac_aux_dir/install.sh -c"
1542 elif test -f $ac_dir/shtool; then
1544 ac_install_sh="$ac_aux_dir/shtool install -c"
1548 if test -z "$ac_aux_dir"; then
1549 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1550 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1551 { (exit 1); exit 1; }; }
1553 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1554 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1555 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1557 # Make sure we can run config.sub.
1558 $ac_config_sub sun4 >/dev/null 2>&1 ||
1559 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1560 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1561 { (exit 1); exit 1; }; }
1563 echo "$as_me:$LINENO: checking build system type" >&5
1564 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1565 if test "${ac_cv_build+set}" = set; then
1566 echo $ECHO_N "(cached) $ECHO_C" >&6
1568 ac_cv_build_alias=$build_alias
1569 test -z "$ac_cv_build_alias" &&
1570 ac_cv_build_alias=`$ac_config_guess`
1571 test -z "$ac_cv_build_alias" &&
1572 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1573 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1574 { (exit 1); exit 1; }; }
1575 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1576 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1577 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1578 { (exit 1); exit 1; }; }
1581 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1582 echo "${ECHO_T}$ac_cv_build" >&6
1584 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1585 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1586 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1589 echo "$as_me:$LINENO: checking host system type" >&5
1590 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1591 if test "${ac_cv_host+set}" = set; then
1592 echo $ECHO_N "(cached) $ECHO_C" >&6
1594 ac_cv_host_alias=$host_alias
1595 test -z "$ac_cv_host_alias" &&
1596 ac_cv_host_alias=$ac_cv_build_alias
1597 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1598 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1599 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1600 { (exit 1); exit 1; }; }
1603 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1604 echo "${ECHO_T}$ac_cv_host" >&6
1606 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1607 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1608 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1611 echo "$as_me:$LINENO: checking target system type" >&5
1612 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1613 if test "${ac_cv_target+set}" = set; then
1614 echo $ECHO_N "(cached) $ECHO_C" >&6
1616 ac_cv_target_alias=$target_alias
1617 test "x$ac_cv_target_alias" = "x" &&
1618 ac_cv_target_alias=$ac_cv_host_alias
1619 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1620 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1621 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1622 { (exit 1); exit 1; }; }
1625 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1626 echo "${ECHO_T}$ac_cv_target" >&6
1627 target=$ac_cv_target
1628 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1629 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1630 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1633 # The aliases save the names the user supplied, while $host etc.
1634 # will get canonicalized.
1635 test -n "$target_alias" &&
1636 test "$program_prefix$program_suffix$program_transform_name" = \
1638 program_prefix=${target_alias}-
1640 ac_cpp='$CPP $CPPFLAGS'
1641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1646 ac_config_headers="$ac_config_headers src/gras_config.h"
1648 am__api_version="1.8"
1649 # Find a good install program. We prefer a C program (faster),
1650 # so one script is as good as another. But avoid the broken or
1651 # incompatible versions:
1652 # SysV /etc/install, /usr/sbin/install
1653 # SunOS /usr/etc/install
1654 # IRIX /sbin/install
1656 # AmigaOS /C/install, which installs bootblocks on floppy discs
1657 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1658 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1659 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1660 # OS/2's system install, which has a completely different semantic
1661 # ./install, which can be erroneously created by make from ./install.sh.
1662 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1663 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1664 if test -z "$INSTALL"; then
1665 if test "${ac_cv_path_install+set}" = set; then
1666 echo $ECHO_N "(cached) $ECHO_C" >&6
1668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1672 test -z "$as_dir" && as_dir=.
1673 # Account for people who put trailing slashes in PATH elements.
1675 ./ | .// | /cC/* | \
1676 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1677 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1680 # OSF1 and SCO ODT 3.0 have their own names for install.
1681 # Don't use installbsd from OSF since it installs stuff as root
1683 for ac_prog in ginstall scoinst install; do
1684 for ac_exec_ext in '' $ac_executable_extensions; do
1685 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1686 if test $ac_prog = install &&
1687 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1688 # AIX install. It has an incompatible calling convention.
1690 elif test $ac_prog = install &&
1691 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1692 # program-specific install script used by HP pwplus--don't use.
1695 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1707 if test "${ac_cv_path_install+set}" = set; then
1708 INSTALL=$ac_cv_path_install
1710 # As a last resort, use the slow shell script. We don't cache a
1711 # path for INSTALL within a source directory, because that will
1712 # break other packages using the cache if that directory is
1713 # removed, or if the path is relative.
1714 INSTALL=$ac_install_sh
1717 echo "$as_me:$LINENO: result: $INSTALL" >&5
1718 echo "${ECHO_T}$INSTALL" >&6
1720 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1721 # It thinks the first close brace ends the variable substitution.
1722 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1726 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1728 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1729 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1732 echo timestamp > conftest.file
1733 # Do `set' in a subshell so we don't clobber the current shell's
1734 # arguments. Must try -L first in case configure is actually a
1735 # symlink; some systems play weird games with the mod time of symlinks
1736 # (eg FreeBSD returns the mod time of the symlink's containing
1739 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1740 if test "$*" = "X"; then
1742 set X `ls -t $srcdir/configure conftest.file`
1745 if test "$*" != "X $srcdir/configure conftest.file" \
1746 && test "$*" != "X conftest.file $srcdir/configure"; then
1748 # If neither matched, then we have a broken ls. This can happen
1749 # if, for instance, CONFIG_SHELL is bash and it inherits a
1750 # broken ls alias from the environment. This has actually
1751 # happened. Such a system could not be considered "sane".
1752 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1753 alias in your environment" >&5
1754 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&2;}
1756 { (exit 1); exit 1; }; }
1759 test "$2" = conftest.file
1765 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1766 Check your system clock" >&5
1767 echo "$as_me: error: newly created file is older than distributed files!
1768 Check your system clock" >&2;}
1769 { (exit 1); exit 1; }; }
1771 echo "$as_me:$LINENO: result: yes" >&5
1772 echo "${ECHO_T}yes" >&6
1773 test "$program_prefix" != NONE &&
1774 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1775 # Use a double $ so make ignores it.
1776 test "$program_suffix" != NONE &&
1777 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1778 # Double any \ or $. echo might interpret backslashes.
1779 # By default was `s,x,x', remove it if useless.
1780 cat <<\_ACEOF >conftest.sed
1781 s/[\\$]/&&/g;s/;s,x,x,$//
1783 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1786 # expand $ac_aux_dir to an absolute path
1787 am_aux_dir=`cd $ac_aux_dir && pwd`
1789 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1790 # Use eval to expand $SHELL
1791 if eval "$MISSING --run true"; then
1792 am_missing_run="$MISSING --run "
1795 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1796 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1799 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1800 # Keeping the `.' argument allows $(mkdir_p) to be used without
1801 # argument. Indeed, we sometimes output rules like
1802 # $(mkdir_p) $(somedir)
1803 # where $(somedir) is conditionally defined.
1804 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1805 # expensive solution, as it forces Make to start a sub-shell.)
1806 mkdir_p='mkdir -p -- .'
1808 # On NextStep and OpenStep, the `mkdir' command does not
1809 # recognize any option. It will interpret all options as
1810 # directories to create, and then abort because `.' already
1812 for d in ./-p ./--version;
1814 test -d $d && rmdir $d
1816 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1817 if test -f "$ac_aux_dir/mkinstalldirs"; then
1818 mkdir_p='$(mkinstalldirs)'
1820 mkdir_p='$(install_sh) -d'
1824 for ac_prog in gawk mawk nawk awk
1826 # Extract the first word of "$ac_prog", so it can be a program name with args.
1827 set dummy $ac_prog; ac_word=$2
1828 echo "$as_me:$LINENO: checking for $ac_word" >&5
1829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1830 if test "${ac_cv_prog_AWK+set}" = set; then
1831 echo $ECHO_N "(cached) $ECHO_C" >&6
1833 if test -n "$AWK"; then
1834 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1840 test -z "$as_dir" && as_dir=.
1841 for ac_exec_ext in '' $ac_executable_extensions; do
1842 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1843 ac_cv_prog_AWK="$ac_prog"
1844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1853 if test -n "$AWK"; then
1854 echo "$as_me:$LINENO: result: $AWK" >&5
1855 echo "${ECHO_T}$AWK" >&6
1857 echo "$as_me:$LINENO: result: no" >&5
1858 echo "${ECHO_T}no" >&6
1861 test -n "$AWK" && break
1864 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1865 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1866 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1867 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1868 echo $ECHO_N "(cached) $ECHO_C" >&6
1870 cat >conftest.make <<\_ACEOF
1872 @echo 'ac_maketemp="$(MAKE)"'
1874 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1875 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1876 if test -n "$ac_maketemp"; then
1877 eval ac_cv_prog_make_${ac_make}_set=yes
1879 eval ac_cv_prog_make_${ac_make}_set=no
1883 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1884 echo "$as_me:$LINENO: result: yes" >&5
1885 echo "${ECHO_T}yes" >&6
1888 echo "$as_me:$LINENO: result: no" >&5
1889 echo "${ECHO_T}no" >&6
1890 SET_MAKE="MAKE=${MAKE-make}"
1893 rm -rf .tst 2>/dev/null
1894 mkdir .tst 2>/dev/null
1895 if test -d .tst; then
1900 rmdir .tst 2>/dev/null
1902 # test to see if srcdir already configured
1903 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1904 test -f $srcdir/config.status; then
1905 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1906 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1907 { (exit 1); exit 1; }; }
1910 # test whether we have cygpath
1911 if test -z "$CYGPATH_W"; then
1912 if (cygpath --version) >/dev/null 2>/dev/null; then
1913 CYGPATH_W='cygpath -w'
1920 # Define the identity of the package.
1922 VERSION='0.0.040304'
1925 cat >>confdefs.h <<_ACEOF
1926 #define PACKAGE "$PACKAGE"
1930 cat >>confdefs.h <<_ACEOF
1931 #define VERSION "$VERSION"
1934 # Some tools Automake needs.
1936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1951 AMTAR=${AMTAR-"${am_missing_run}tar"}
1953 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1955 # Installed binaries are usually stripped using `strip' when the user
1956 # run `make install-strip'. However `strip' might not be the right
1957 # tool to use in cross-compilation environments, therefore Automake
1958 # will honor the `STRIP' environment variable to overrule this program.
1959 if test "$cross_compiling" != no; then
1960 if test -n "$ac_tool_prefix"; then
1961 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1962 set dummy ${ac_tool_prefix}strip; ac_word=$2
1963 echo "$as_me:$LINENO: checking for $ac_word" >&5
1964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1965 if test "${ac_cv_prog_STRIP+set}" = set; then
1966 echo $ECHO_N "(cached) $ECHO_C" >&6
1968 if test -n "$STRIP"; then
1969 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1975 test -z "$as_dir" && as_dir=.
1976 for ac_exec_ext in '' $ac_executable_extensions; do
1977 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1978 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987 STRIP=$ac_cv_prog_STRIP
1988 if test -n "$STRIP"; then
1989 echo "$as_me:$LINENO: result: $STRIP" >&5
1990 echo "${ECHO_T}$STRIP" >&6
1992 echo "$as_me:$LINENO: result: no" >&5
1993 echo "${ECHO_T}no" >&6
1997 if test -z "$ac_cv_prog_STRIP"; then
1999 # Extract the first word of "strip", so it can be a program name with args.
2000 set dummy strip; ac_word=$2
2001 echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2003 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$ac_ct_STRIP"; then
2007 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2016 ac_cv_prog_ac_ct_STRIP="strip"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2023 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2027 if test -n "$ac_ct_STRIP"; then
2028 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2029 echo "${ECHO_T}$ac_ct_STRIP" >&6
2031 echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6
2037 STRIP="$ac_cv_prog_STRIP"
2041 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2043 # We need awk for the "check" target. The system "awk" is bad on
2049 # Check whether --enable-shared or --disable-shared was given.
2050 if test "${enable_shared+set}" = set; then
2051 enableval="$enable_shared"
2052 p=${PACKAGE-default}
2054 yes) enable_shared=yes ;;
2055 no) enable_shared=no ;;
2058 # Look at the argument we got. We use all the common list separators.
2059 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2060 for pkg in $enableval; do
2062 if test "X$pkg" = "X$p"; then
2073 # Check whether --enable-static or --disable-static was given.
2074 if test "${enable_static+set}" = set; then
2075 enableval="$enable_static"
2076 p=${PACKAGE-default}
2078 yes) enable_static=yes ;;
2079 no) enable_static=no ;;
2082 # Look at the argument we got. We use all the common list separators.
2083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2084 for pkg in $enableval; do
2086 if test "X$pkg" = "X$p"; then
2097 # Check whether --enable-fast-install or --disable-fast-install was given.
2098 if test "${enable_fast_install+set}" = set; then
2099 enableval="$enable_fast_install"
2100 p=${PACKAGE-default}
2102 yes) enable_fast_install=yes ;;
2103 no) enable_fast_install=no ;;
2105 enable_fast_install=no
2106 # Look at the argument we got. We use all the common list separators.
2107 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2108 for pkg in $enableval; do
2110 if test "X$pkg" = "X$p"; then
2111 enable_fast_install=yes
2118 enable_fast_install=yes
2121 DEPDIR="${am__leading_dot}deps"
2123 ac_config_commands="$ac_config_commands depfiles"
2126 am_make=${MAKE-make}
2127 cat > confinc << 'END'
2132 # If we don't find an include directive, just comment out the code.
2133 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2134 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2138 # First try GNU make style include.
2139 echo "include confinc" > confmf
2140 # We grep out `Entering directory' and `Leaving directory'
2141 # messages which can occur if `w' ends up in MAKEFLAGS.
2142 # In particular we don't look at `^make:' because GNU make might
2143 # be invoked under some other name (usually "gmake"), in which
2144 # case it prints its new name instead of `make'.
2145 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2150 # Now try BSD make style include.
2151 if test "$am__include" = "#"; then
2152 echo '.include "confinc"' > confmf
2153 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2154 am__include=.include
2161 echo "$as_me:$LINENO: result: $_am_result" >&5
2162 echo "${ECHO_T}$_am_result" >&6
2163 rm -f confinc confmf
2165 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2166 if test "${enable_dependency_tracking+set}" = set; then
2167 enableval="$enable_dependency_tracking"
2170 if test "x$enable_dependency_tracking" != xno; then
2171 am_depcomp="$ac_aux_dir/depcomp"
2176 if test "x$enable_dependency_tracking" != xno; then
2187 ac_cpp='$CPP $CPPFLAGS'
2188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2191 if test -n "$ac_tool_prefix"; then
2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2193 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2194 echo "$as_me:$LINENO: checking for $ac_word" >&5
2195 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2196 if test "${ac_cv_prog_CC+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2199 if test -n "$CC"; then
2200 ac_cv_prog_CC="$CC" # Let the user override the test.
2202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2206 test -z "$as_dir" && as_dir=.
2207 for ac_exec_ext in '' $ac_executable_extensions; do
2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2209 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2219 if test -n "$CC"; then
2220 echo "$as_me:$LINENO: result: $CC" >&5
2221 echo "${ECHO_T}$CC" >&6
2223 echo "$as_me:$LINENO: result: no" >&5
2224 echo "${ECHO_T}no" >&6
2228 if test -z "$ac_cv_prog_CC"; then
2230 # Extract the first word of "gcc", so it can be a program name with args.
2231 set dummy gcc; ac_word=$2
2232 echo "$as_me:$LINENO: checking for $ac_word" >&5
2233 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2234 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2237 if test -n "$ac_ct_CC"; then
2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2244 test -z "$as_dir" && as_dir=.
2245 for ac_exec_ext in '' $ac_executable_extensions; do
2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2247 ac_cv_prog_ac_ct_CC="gcc"
2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2259 echo "${ECHO_T}$ac_ct_CC" >&6
2261 echo "$as_me:$LINENO: result: no" >&5
2262 echo "${ECHO_T}no" >&6
2270 if test -z "$CC"; then
2271 if test -n "$ac_tool_prefix"; then
2272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2273 set dummy ${ac_tool_prefix}cc; ac_word=$2
2274 echo "$as_me:$LINENO: checking for $ac_word" >&5
2275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2276 if test "${ac_cv_prog_CC+set}" = set; then
2277 echo $ECHO_N "(cached) $ECHO_C" >&6
2279 if test -n "$CC"; then
2280 ac_cv_prog_CC="$CC" # Let the user override the test.
2282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 test -z "$as_dir" && as_dir=.
2287 for ac_exec_ext in '' $ac_executable_extensions; do
2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2289 ac_cv_prog_CC="${ac_tool_prefix}cc"
2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2299 if test -n "$CC"; then
2300 echo "$as_me:$LINENO: result: $CC" >&5
2301 echo "${ECHO_T}$CC" >&6
2303 echo "$as_me:$LINENO: result: no" >&5
2304 echo "${ECHO_T}no" >&6
2308 if test -z "$ac_cv_prog_CC"; then
2310 # Extract the first word of "cc", so it can be a program name with args.
2311 set dummy cc; ac_word=$2
2312 echo "$as_me:$LINENO: checking for $ac_word" >&5
2313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2314 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2317 if test -n "$ac_ct_CC"; then
2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2324 test -z "$as_dir" && as_dir=.
2325 for ac_exec_ext in '' $ac_executable_extensions; do
2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2327 ac_cv_prog_ac_ct_CC="cc"
2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2336 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2337 if test -n "$ac_ct_CC"; then
2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2339 echo "${ECHO_T}$ac_ct_CC" >&6
2341 echo "$as_me:$LINENO: result: no" >&5
2342 echo "${ECHO_T}no" >&6
2351 if test -z "$CC"; then
2352 # Extract the first word of "cc", so it can be a program name with args.
2353 set dummy cc; ac_word=$2
2354 echo "$as_me:$LINENO: checking for $ac_word" >&5
2355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2356 if test "${ac_cv_prog_CC+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 if test -n "$CC"; then
2360 ac_cv_prog_CC="$CC" # Let the user override the test.
2363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2367 test -z "$as_dir" && as_dir=.
2368 for ac_exec_ext in '' $ac_executable_extensions; do
2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2371 ac_prog_rejected=yes
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2381 if test $ac_prog_rejected = yes; then
2382 # We found a bogon in the path, so make sure we never use it.
2383 set dummy $ac_cv_prog_CC
2385 if test $# != 0; then
2386 # We chose a different compiler from the bogus one.
2387 # However, it has the same basename, so the bogon will be chosen
2388 # first if we set CC to just the basename; use the full file name.
2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2396 if test -n "$CC"; then
2397 echo "$as_me:$LINENO: result: $CC" >&5
2398 echo "${ECHO_T}$CC" >&6
2400 echo "$as_me:$LINENO: result: no" >&5
2401 echo "${ECHO_T}no" >&6
2405 if test -z "$CC"; then
2406 if test -n "$ac_tool_prefix"; then
2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2410 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2411 echo "$as_me:$LINENO: checking for $ac_word" >&5
2412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2413 if test "${ac_cv_prog_CC+set}" = set; then
2414 echo $ECHO_N "(cached) $ECHO_C" >&6
2416 if test -n "$CC"; then
2417 ac_cv_prog_CC="$CC" # Let the user override the test.
2419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 test -z "$as_dir" && as_dir=.
2424 for ac_exec_ext in '' $ac_executable_extensions; do
2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2436 if test -n "$CC"; then
2437 echo "$as_me:$LINENO: result: $CC" >&5
2438 echo "${ECHO_T}$CC" >&6
2440 echo "$as_me:$LINENO: result: no" >&5
2441 echo "${ECHO_T}no" >&6
2444 test -n "$CC" && break
2447 if test -z "$CC"; then
2451 # Extract the first word of "$ac_prog", so it can be a program name with args.
2452 set dummy $ac_prog; ac_word=$2
2453 echo "$as_me:$LINENO: checking for $ac_word" >&5
2454 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2455 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2456 echo $ECHO_N "(cached) $ECHO_C" >&6
2458 if test -n "$ac_ct_CC"; then
2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2465 test -z "$as_dir" && as_dir=.
2466 for ac_exec_ext in '' $ac_executable_extensions; do
2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2468 ac_cv_prog_ac_ct_CC="$ac_prog"
2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2478 if test -n "$ac_ct_CC"; then
2479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2480 echo "${ECHO_T}$ac_ct_CC" >&6
2482 echo "$as_me:$LINENO: result: no" >&5
2483 echo "${ECHO_T}no" >&6
2486 test -n "$ac_ct_CC" && break
2495 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2496 See \`config.log' for more details." >&5
2497 echo "$as_me: error: no acceptable C compiler found in \$PATH
2498 See \`config.log' for more details." >&2;}
2499 { (exit 1); exit 1; }; }
2501 # Provide some information about the compiler.
2502 echo "$as_me:$LINENO:" \
2503 "checking for C compiler version" >&5
2504 ac_compiler=`set X $ac_compile; echo $2`
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2506 (eval $ac_compiler --version </dev/null >&5) 2>&5
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2511 (eval $ac_compiler -v </dev/null >&5) 2>&5
2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514 (exit $ac_status); }
2515 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2516 (eval $ac_compiler -V </dev/null >&5) 2>&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); }
2521 cat >conftest.$ac_ext <<_ACEOF
2524 cat confdefs.h >>conftest.$ac_ext
2525 cat >>conftest.$ac_ext <<_ACEOF
2526 /* end confdefs.h. */
2536 ac_clean_files_save=$ac_clean_files
2537 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2538 # Try to create an executable without -o first, disregard a.out.
2539 # It will help us diagnose broken compilers, and finding out an intuition
2541 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2542 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2543 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2544 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2545 (eval $ac_link_default) 2>&5
2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548 (exit $ac_status); }; then
2549 # Find the output, starting from the most likely. This scheme is
2550 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2553 # Be careful to initialize this variable, since it used to be cached.
2554 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2556 # b.out is created by i960 compilers.
2557 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2559 test -f "$ac_file" || continue
2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2564 # This is the source file.
2567 # We found the default executable, but exeext='' is most
2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2572 # FIXME: I believe we export ac_cv_exeext for Libtool,
2573 # but it would be cool to find out if it's true. Does anybody
2574 # maintain Libtool? --akim.
2582 echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2585 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: C compiler cannot create executables
2588 See \`config.log' for more details." >&2;}
2589 { (exit 77); exit 77; }; }
2592 ac_exeext=$ac_cv_exeext
2593 echo "$as_me:$LINENO: result: $ac_file" >&5
2594 echo "${ECHO_T}$ac_file" >&6
2596 # Check the compiler produces executables we can run. If not, either
2597 # the compiler is broken, or we cross compile.
2598 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2599 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2600 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2601 # If not cross compiling, check that we can run a simple program.
2602 if test "$cross_compiling" != yes; then
2603 if { ac_try='./$ac_file'
2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2608 (exit $ac_status); }; }; then
2611 if test "$cross_compiling" = maybe; then
2614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2615 If you meant to cross compile, use \`--host'.
2616 See \`config.log' for more details." >&5
2617 echo "$as_me: error: cannot run C compiled programs.
2618 If you meant to cross compile, use \`--host'.
2619 See \`config.log' for more details." >&2;}
2620 { (exit 1); exit 1; }; }
2624 echo "$as_me:$LINENO: result: yes" >&5
2625 echo "${ECHO_T}yes" >&6
2627 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2628 ac_clean_files=$ac_clean_files_save
2629 # Check the compiler produces executables we can run. If not, either
2630 # the compiler is broken, or we cross compile.
2631 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2632 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2633 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2634 echo "${ECHO_T}$cross_compiling" >&6
2636 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2637 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2638 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2639 (eval $ac_link) 2>&5
2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642 (exit $ac_status); }; then
2643 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2644 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2645 # work properly (i.e., refer to `conftest.exe'), while it won't with
2647 for ac_file in conftest.exe conftest conftest.*; do
2648 test -f "$ac_file" || continue
2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2659 See \`config.log' for more details." >&5
2660 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2661 See \`config.log' for more details." >&2;}
2662 { (exit 1); exit 1; }; }
2665 rm -f conftest$ac_cv_exeext
2666 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2667 echo "${ECHO_T}$ac_cv_exeext" >&6
2669 rm -f conftest.$ac_ext
2670 EXEEXT=$ac_cv_exeext
2672 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2673 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2674 if test "${ac_cv_objext+set}" = set; then
2675 echo $ECHO_N "(cached) $ECHO_C" >&6
2677 cat >conftest.$ac_ext <<_ACEOF
2680 cat confdefs.h >>conftest.$ac_ext
2681 cat >>conftest.$ac_ext <<_ACEOF
2682 /* end confdefs.h. */
2692 rm -f conftest.o conftest.obj
2693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2694 (eval $ac_compile) 2>&5
2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2697 (exit $ac_status); }; then
2698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2706 echo "$as_me: failed program was:" >&5
2707 sed 's/^/| /' conftest.$ac_ext >&5
2709 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2710 See \`config.log' for more details." >&5
2711 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2712 See \`config.log' for more details." >&2;}
2713 { (exit 1); exit 1; }; }
2716 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2718 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2719 echo "${ECHO_T}$ac_cv_objext" >&6
2720 OBJEXT=$ac_cv_objext
2722 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2723 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2724 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2725 echo $ECHO_N "(cached) $ECHO_C" >&6
2727 cat >conftest.$ac_ext <<_ACEOF
2730 cat confdefs.h >>conftest.$ac_ext
2731 cat >>conftest.$ac_ext <<_ACEOF
2732 /* end confdefs.h. */
2745 rm -f conftest.$ac_objext
2746 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2747 (eval $ac_compile) 2>conftest.er1
2749 grep -v '^ *+' conftest.er1 >conftest.err
2751 cat conftest.err >&5
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); } &&
2754 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2759 (exit $ac_status); }; } &&
2760 { ac_try='test -s conftest.$ac_objext'
2761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765 (exit $ac_status); }; }; then
2768 echo "$as_me: failed program was:" >&5
2769 sed 's/^/| /' conftest.$ac_ext >&5
2773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2774 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2777 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2778 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2779 GCC=`test $ac_compiler_gnu = yes && echo yes`
2780 ac_test_CFLAGS=${CFLAGS+set}
2781 ac_save_CFLAGS=$CFLAGS
2783 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2784 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2785 if test "${ac_cv_prog_cc_g+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 cat >conftest.$ac_ext <<_ACEOF
2791 cat confdefs.h >>conftest.$ac_ext
2792 cat >>conftest.$ac_ext <<_ACEOF
2793 /* end confdefs.h. */
2803 rm -f conftest.$ac_objext
2804 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2805 (eval $ac_compile) 2>conftest.er1
2807 grep -v '^ *+' conftest.er1 >conftest.err
2809 cat conftest.err >&5
2810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2811 (exit $ac_status); } &&
2812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2817 (exit $ac_status); }; } &&
2818 { ac_try='test -s conftest.$ac_objext'
2819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); }; }; then
2826 echo "$as_me: failed program was:" >&5
2827 sed 's/^/| /' conftest.$ac_ext >&5
2831 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2833 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2834 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2835 if test "$ac_test_CFLAGS" = set; then
2836 CFLAGS=$ac_save_CFLAGS
2837 elif test $ac_cv_prog_cc_g = yes; then
2838 if test "$GCC" = yes; then
2844 if test "$GCC" = yes; then
2850 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2851 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2852 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 ac_cv_prog_cc_stdc=no
2857 cat >conftest.$ac_ext <<_ACEOF
2860 cat confdefs.h >>conftest.$ac_ext
2861 cat >>conftest.$ac_ext <<_ACEOF
2862 /* end confdefs.h. */
2865 #include <sys/types.h>
2866 #include <sys/stat.h>
2867 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2868 struct buf { int x; };
2869 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2870 static char *e (p, i)
2876 static char *f (char * (*g) (char **, int), char **p, ...)
2881 s = g (p, va_arg (v,int));
2886 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2887 function prototypes and stuff, but not '\xHH' hex character constants.
2888 These don't provoke an error unfortunately, instead are silently treated
2889 as 'x'. The following induces an error, until -std1 is added to get
2890 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2891 array size at least. It's necessary to write '\x00'==0 to get something
2892 that's true only with -std1. */
2893 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2895 int test (int i, double x);
2896 struct s1 {int (*f) (int a);};
2897 struct s2 {int (*f) (double a);};
2898 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2904 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2909 # Don't try gcc -ansi; that turns off useful extensions and
2910 # breaks some systems' header files.
2911 # AIX -qlanglvl=ansi
2912 # Ultrix and OSF/1 -std1
2913 # HP-UX 10.20 and later -Ae
2914 # HP-UX older versions -Aa -D_HPUX_SOURCE
2915 # SVR4 -Xc -D__EXTENSIONS__
2916 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2918 CC="$ac_save_CC $ac_arg"
2919 rm -f conftest.$ac_objext
2920 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2921 (eval $ac_compile) 2>conftest.er1
2923 grep -v '^ *+' conftest.er1 >conftest.err
2925 cat conftest.err >&5
2926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2927 (exit $ac_status); } &&
2928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2929 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; } &&
2934 { ac_try='test -s conftest.$ac_objext'
2935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cc_stdc=$ac_arg
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2947 rm -f conftest.err conftest.$ac_objext
2949 rm -f conftest.$ac_ext conftest.$ac_objext
2954 case "x$ac_cv_prog_cc_stdc" in
2956 echo "$as_me:$LINENO: result: none needed" >&5
2957 echo "${ECHO_T}none needed" >&6 ;;
2959 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2960 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2961 CC="$CC $ac_cv_prog_cc_stdc" ;;
2964 # Some people use a C++ compiler to compile C. Since we use `exit',
2965 # in C++ we need to declare it. In case someone uses the same compiler
2966 # for both compiling C and C++ we need to have the C++ compiler decide
2967 # the declaration of exit, since it's the most demanding environment.
2968 cat >conftest.$ac_ext <<_ACEOF
2973 rm -f conftest.$ac_objext
2974 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2975 (eval $ac_compile) 2>conftest.er1
2977 grep -v '^ *+' conftest.er1 >conftest.err
2979 cat conftest.err >&5
2980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); } &&
2982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987 (exit $ac_status); }; } &&
2988 { ac_try='test -s conftest.$ac_objext'
2989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2993 (exit $ac_status); }; }; then
2994 for ac_declaration in \
2996 'extern "C" void std::exit (int) throw (); using std::exit;' \
2997 'extern "C" void std::exit (int); using std::exit;' \
2998 'extern "C" void exit (int) throw ();' \
2999 'extern "C" void exit (int);' \
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3018 rm -f conftest.$ac_objext
3019 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3020 (eval $ac_compile) 2>conftest.er1
3022 grep -v '^ *+' conftest.er1 >conftest.err
3024 cat conftest.err >&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); } &&
3027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032 (exit $ac_status); }; } &&
3033 { ac_try='test -s conftest.$ac_objext'
3034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; }; then
3041 echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047 cat >conftest.$ac_ext <<_ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h. */
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064 (eval $ac_compile) 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3076 (exit $ac_status); }; } &&
3077 { ac_try='test -s conftest.$ac_objext'
3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); }; }; then
3085 echo "$as_me: failed program was:" >&5
3086 sed 's/^/| /' conftest.$ac_ext >&5
3089 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3092 if test -n "$ac_declaration"; then
3093 echo '#ifdef __cplusplus' >>confdefs.h
3094 echo $ac_declaration >>confdefs.h
3095 echo '#endif' >>confdefs.h
3099 echo "$as_me: failed program was:" >&5
3100 sed 's/^/| /' conftest.$ac_ext >&5
3103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_cpp='$CPP $CPPFLAGS'
3106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110 depcc="$CC" am_compiler_list=
3112 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3113 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3114 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3115 echo $ECHO_N "(cached) $ECHO_C" >&6
3117 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3118 # We make a subdir and do the tests there. Otherwise we can end up
3119 # making bogus files that we don't know about and never remove. For
3120 # instance it was reported that on HP-UX the gcc test will end up
3121 # making a dummy file named `D' -- because `-MD' means `put the output
3124 # Copy depcomp to subdir because otherwise we won't find it if we're
3125 # using a relative directory.
3126 cp "$am_depcomp" conftest.dir
3128 # We will build objects and dependencies in a subdirectory because
3129 # it helps to detect inapplicable dependency modes. For instance
3130 # both Tru64's cc and ICC support -MD to output dependencies as a
3131 # side effect of compilation, but ICC will put the dependencies in
3132 # the current directory while Tru64 will put them in the object
3136 am_cv_CC_dependencies_compiler_type=none
3137 if test "$am_compiler_list" = ""; then
3138 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3140 for depmode in $am_compiler_list; do
3141 # Setup a source with many dependencies, because some compilers
3142 # like to wrap large dependency lists on column 80 (with \), and
3143 # we should not choose a depcomp mode which is confused by this.
3145 # We need to recreate these files for each test, as the compiler may
3146 # overwrite some of them when testing with obscure command lines.
3147 # This happens at least with the AIX C compiler.
3149 for i in 1 2 3 4 5 6; do
3150 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3151 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3152 # Solaris 8's {/usr,}/bin/sh.
3153 touch sub/conftst$i.h
3155 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3159 # after this tag, mechanisms are not by side-effect, so they'll
3160 # only be used when explicitly requested
3161 if test "x$enable_dependency_tracking" = xyes; then
3169 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3170 # mode. It turns out that the SunPro C++ compiler does not properly
3171 # handle `-M -o', and we need to detect this.
3172 if depmode=$depmode \
3173 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3174 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3175 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3176 >/dev/null 2>conftest.err &&
3177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3178 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3180 # icc doesn't choke on unknown options, it will just issue warnings
3181 # (even with -Werror). So we grep stderr for any message
3182 # that says an option was ignored.
3183 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3184 am_cv_CC_dependencies_compiler_type=$depmode
3193 am_cv_CC_dependencies_compiler_type=none
3197 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3198 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3199 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3204 test "x$enable_dependency_tracking" != xno \
3205 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3207 am__fastdepCC_FALSE='#'
3209 am__fastdepCC_TRUE='#'
3210 am__fastdepCC_FALSE=
3214 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3215 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3216 if test "${lt_cv_path_SED+set}" = set; then
3217 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 # Loop through the user's path and test for sed and gsed.
3220 # Then use that list of sed's as ones to test for truncation.
3221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3225 test -z "$as_dir" && as_dir=.
3226 for lt_ac_prog in sed gsed; do
3227 for ac_exec_ext in '' $ac_executable_extensions; do
3228 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3229 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3236 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3237 # along with /bin/sed that truncates output.
3238 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3239 test ! -f $lt_ac_sed && break
3240 cat /dev/null > conftest.in
3242 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3243 # Check for GNU sed and select it if it is found.
3244 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3245 lt_cv_path_SED=$lt_ac_sed
3249 cat conftest.in conftest.in >conftest.tmp
3250 mv conftest.tmp conftest.in
3251 cp conftest.in conftest.nl
3253 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3254 cmp -s conftest.out conftest.nl || break
3255 # 10000 chars as input seems more than enough
3256 test $lt_ac_count -gt 10 && break
3257 lt_ac_count=`expr $lt_ac_count + 1`
3258 if test $lt_ac_count -gt $lt_ac_max; then
3259 lt_ac_max=$lt_ac_count
3260 lt_cv_path_SED=$lt_ac_sed
3268 echo "$as_me:$LINENO: result: $SED" >&5
3269 echo "${ECHO_T}$SED" >&6
3271 echo "$as_me:$LINENO: checking for egrep" >&5
3272 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3273 if test "${ac_cv_prog_egrep+set}" = set; then
3274 echo $ECHO_N "(cached) $ECHO_C" >&6
3276 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3277 then ac_cv_prog_egrep='grep -E'
3278 else ac_cv_prog_egrep='egrep'
3281 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3282 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3283 EGREP=$ac_cv_prog_egrep
3287 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3288 if test "${with_gnu_ld+set}" = set; then
3289 withval="$with_gnu_ld"
3290 test "$withval" = no || with_gnu_ld=yes
3295 if test "$GCC" = yes; then
3296 # Check if gcc -print-prog-name=ld gives a path.
3297 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3298 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3301 # gcc leaves a trailing carriage return which upsets mingw
3302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3307 # Accept absolute paths.
3309 re_direlt='/[^/][^/]*/\.\./'
3310 # Canonicalize the pathname of ld
3311 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3312 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3313 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3315 test -z "$LD" && LD="$ac_prog"
3318 # If it fails, then pretend we aren't using GCC.
3322 # If it is relative, then search for the first ld in PATH.
3326 elif test "$with_gnu_ld" = yes; then
3327 echo "$as_me:$LINENO: checking for GNU ld" >&5
3328 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3330 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3331 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3333 if test "${lt_cv_path_LD+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3336 if test -z "$LD"; then
3337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3338 for ac_dir in $PATH; do
3340 test -z "$ac_dir" && ac_dir=.
3341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3342 lt_cv_path_LD="$ac_dir/$ac_prog"
3343 # Check to see if the program is GNU ld. I'd rather use --version,
3344 # but apparently some GNU ld's only accept -v.
3345 # Break only if it was the GNU/non-GNU ld that we prefer.
3346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3347 *GNU* | *'with BFD'*)
3348 test "$with_gnu_ld" != no && break
3351 test "$with_gnu_ld" != yes && break
3358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3363 if test -n "$LD"; then
3364 echo "$as_me:$LINENO: result: $LD" >&5
3365 echo "${ECHO_T}$LD" >&6
3367 echo "$as_me:$LINENO: result: no" >&5
3368 echo "${ECHO_T}no" >&6
3370 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3371 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3372 { (exit 1); exit 1; }; }
3373 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3374 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3375 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3376 echo $ECHO_N "(cached) $ECHO_C" >&6
3378 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3379 case `$LD -v 2>&1 </dev/null` in
3380 *GNU* | *'with BFD'*)
3381 lt_cv_prog_gnu_ld=yes
3384 lt_cv_prog_gnu_ld=no
3388 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3389 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3390 with_gnu_ld=$lt_cv_prog_gnu_ld
3393 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3394 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3395 if test "${lt_cv_ld_reload_flag+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3398 lt_cv_ld_reload_flag='-r'
3400 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3401 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3402 reload_flag=$lt_cv_ld_reload_flag
3403 case $reload_flag in
3405 *) reload_flag=" $reload_flag" ;;
3407 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3409 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3410 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3411 if test "${lt_cv_path_NM+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 if test -n "$NM"; then
3415 # Let the user override the test.
3418 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3419 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3421 test -z "$ac_dir" && ac_dir=.
3422 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3423 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3424 # Check to see if the nm accepts a BSD-compat flag.
3425 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3426 # nm: unknown option "B" ignored
3427 # Tru64's nm complains that /dev/null is an invalid object file
3428 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3429 */dev/null* | *'Invalid file or object type'*)
3430 lt_cv_path_NM="$tmp_nm -B"
3434 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3436 lt_cv_path_NM="$tmp_nm -p"
3440 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3441 continue # so that we can try to find one that supports BSD flags
3448 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3451 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3452 echo "${ECHO_T}$lt_cv_path_NM" >&6
3455 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3456 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3458 if test "$LN_S" = "ln -s"; then
3459 echo "$as_me:$LINENO: result: yes" >&5
3460 echo "${ECHO_T}yes" >&6
3462 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3463 echo "${ECHO_T}no, using $LN_S" >&6
3466 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3467 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3468 if test "${lt_cv_deplibs_check_method+set}" = set; then
3469 echo $ECHO_N "(cached) $ECHO_C" >&6
3471 lt_cv_file_magic_cmd='$MAGIC_CMD'
3472 lt_cv_file_magic_test_file=
3473 lt_cv_deplibs_check_method='unknown'
3474 # Need to set the preceding variable on all platforms that support
3475 # interlibrary dependencies.
3476 # 'none' -- dependencies not supported.
3477 # `unknown' -- same as none, but documents that we really don't know.
3478 # 'pass_all' -- all dependencies passed with no checks.
3479 # 'test_compile' -- check by making test program.
3480 # 'file_magic [[regex]]' -- check by looking for files in library path
3481 # which responds to the $file_magic_cmd with a given extended regex.
3482 # If you have `file' or equivalent on your system and you're not sure
3483 # whether `pass_all' will *always* work, you probably want this one.
3487 lt_cv_deplibs_check_method=pass_all
3491 lt_cv_deplibs_check_method=pass_all
3495 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3496 lt_cv_file_magic_cmd='/usr/bin/file -L'
3497 lt_cv_file_magic_test_file=/shlib/libc.so
3501 # win32_libid is a shell function defined in ltmain.sh
3502 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3503 lt_cv_file_magic_cmd='win32_libid'
3507 # Base MSYS/MinGW do not provide the 'file' command needed by
3508 # win32_libid shell function, so use a weaker test based on 'objdump'.
3509 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3510 lt_cv_file_magic_cmd='$OBJDUMP -f'
3513 darwin* | rhapsody*)
3514 lt_cv_deplibs_check_method=pass_all
3517 freebsd* | kfreebsd*-gnu)
3518 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3521 # Not sure whether the presence of OpenBSD here was a mistake.
3522 # Let's accept both of them until this is cleared up.
3523 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3524 lt_cv_file_magic_cmd=/usr/bin/file
3525 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3529 lt_cv_deplibs_check_method=pass_all
3534 lt_cv_deplibs_check_method=pass_all
3537 hpux10.20* | hpux11*)
3538 lt_cv_file_magic_cmd=/usr/bin/file
3541 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3542 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3545 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]'
3546 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3549 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3550 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3555 irix5* | irix6* | nonstopux*)
3557 *-32|*"-32 ") libmagic=32-bit;;
3558 *-n32|*"-n32 ") libmagic=N32;;
3559 *-64|*"-64 ") libmagic=64-bit;;
3560 *) libmagic=never-match;;
3562 lt_cv_deplibs_check_method=pass_all
3565 # This must be Linux ELF.
3567 lt_cv_deplibs_check_method=pass_all
3570 netbsd* | knetbsd*-gnu)
3571 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3572 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3574 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3579 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3580 lt_cv_file_magic_cmd=/usr/bin/file
3581 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3585 lt_cv_deplibs_check_method=unknown
3589 lt_cv_file_magic_cmd=/usr/bin/file
3590 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3591 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3592 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3594 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3598 osf3* | osf4* | osf5*)
3599 lt_cv_deplibs_check_method=pass_all
3603 lt_cv_deplibs_check_method=pass_all
3607 lt_cv_deplibs_check_method=pass_all
3610 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3611 case $host_vendor in
3613 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]'
3614 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3617 lt_cv_deplibs_check_method=pass_all
3620 lt_cv_file_magic_cmd='/bin/file'
3621 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3624 lt_cv_file_magic_cmd='/bin/file'
3625 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3626 lt_cv_file_magic_test_file=/lib/libc.so
3629 lt_cv_deplibs_check_method=pass_all
3634 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3635 lt_cv_deplibs_check_method=pass_all
3640 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3641 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3642 file_magic_cmd=$lt_cv_file_magic_cmd
3643 deplibs_check_method=$lt_cv_deplibs_check_method
3644 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3649 # If no C compiler was specified, use CC.
3652 # Allow CC to be a program name with arguments.
3656 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3657 if test "${enable_libtool_lock+set}" = set; then
3658 enableval="$enable_libtool_lock"
3661 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3663 # Some flags need to be propagated to the compiler or linker for good
3667 # Find out which ABI we are using.
3668 echo 'int i;' > conftest.$ac_ext
3669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3670 (eval $ac_compile) 2>&5
3672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3673 (exit $ac_status); }; then
3674 case `/usr/bin/file conftest.$ac_objext` in
3686 # Find out which ABI we are using.
3687 echo '#line 3687 "configure"' > conftest.$ac_ext
3688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3689 (eval $ac_compile) 2>&5
3691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692 (exit $ac_status); }; then
3693 if test "$lt_cv_prog_gnu_ld" = yes; then
3694 case `/usr/bin/file conftest.$ac_objext` in
3696 LD="${LD-ld} -melf32bsmip"
3699 LD="${LD-ld} -melf32bmipn32"
3702 LD="${LD-ld} -melf64bmip"
3706 case `/usr/bin/file conftest.$ac_objext` in
3722 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3723 # Find out which ABI we are using.
3724 echo 'int i;' > conftest.$ac_ext
3725 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3726 (eval $ac_compile) 2>&5
3728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3729 (exit $ac_status); }; then
3730 case "`/usr/bin/file conftest.o`" in
3734 LD="${LD-ld} -m elf_i386"
3736 ppc64-*linux*|powerpc64-*linux*)
3737 LD="${LD-ld} -m elf32ppclinux"
3740 LD="${LD-ld} -m elf_s390"
3743 LD="${LD-ld} -m elf32_sparc"
3750 LD="${LD-ld} -m elf_x86_64"
3752 ppc*-*linux*|powerpc*-*linux*)
3753 LD="${LD-ld} -m elf64ppc"
3756 LD="${LD-ld} -m elf64_s390"
3759 LD="${LD-ld} -m elf64_sparc"
3769 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3770 SAVE_CFLAGS="$CFLAGS"
3771 CFLAGS="$CFLAGS -belf"
3772 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3773 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3774 if test "${lt_cv_cc_needs_belf+set}" = set; then
3775 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 ac_cpp='$CPP $CPPFLAGS'
3779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3783 cat >conftest.$ac_ext <<_ACEOF
3786 cat confdefs.h >>conftest.$ac_ext
3787 cat >>conftest.$ac_ext <<_ACEOF
3788 /* end confdefs.h. */
3798 rm -f conftest.$ac_objext conftest$ac_exeext
3799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3800 (eval $ac_link) 2>conftest.er1
3802 grep -v '^ *+' conftest.er1 >conftest.err
3804 cat conftest.err >&5
3805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3806 (exit $ac_status); } &&
3807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3812 (exit $ac_status); }; } &&
3813 { ac_try='test -s conftest$ac_exeext'
3814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3818 (exit $ac_status); }; }; then
3819 lt_cv_cc_needs_belf=yes
3821 echo "$as_me: failed program was:" >&5
3822 sed 's/^/| /' conftest.$ac_ext >&5
3824 lt_cv_cc_needs_belf=no
3826 rm -f conftest.err conftest.$ac_objext \
3827 conftest$ac_exeext conftest.$ac_ext
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3835 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3836 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3837 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3838 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3839 CFLAGS="$SAVE_CFLAGS"
3845 need_locks="$enable_libtool_lock"
3849 ac_cpp='$CPP $CPPFLAGS'
3850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3853 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3854 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3855 # On Suns, sometimes $CPP names a directory.
3856 if test -n "$CPP" && test -d "$CPP"; then
3859 if test -z "$CPP"; then
3860 if test "${ac_cv_prog_CPP+set}" = set; then
3861 echo $ECHO_N "(cached) $ECHO_C" >&6
3863 # Double quotes because CPP needs to be expanded
3864 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3867 for ac_c_preproc_warn_flag in '' yes
3869 # Use a header file that comes with gcc, so configuring glibc
3870 # with a fresh cross-compiler works.
3871 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3872 # <limits.h> exists even on freestanding compilers.
3873 # On the NeXT, cc -E runs the code through the compiler's parser,
3874 # not just through cpp. "Syntax error" is here to catch this case.
3875 cat >conftest.$ac_ext <<_ACEOF
3878 cat confdefs.h >>conftest.$ac_ext
3879 cat >>conftest.$ac_ext <<_ACEOF
3880 /* end confdefs.h. */
3882 # include <limits.h>
3884 # include <assert.h>
3888 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3889 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3891 grep -v '^ *+' conftest.er1 >conftest.err
3893 cat conftest.err >&5
3894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895 (exit $ac_status); } >/dev/null; then
3896 if test -s conftest.err; then
3897 ac_cpp_err=$ac_c_preproc_warn_flag
3898 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3905 if test -z "$ac_cpp_err"; then
3908 echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3911 # Broken: fails on valid input.
3914 rm -f conftest.err conftest.$ac_ext
3916 # OK, works on sane cases. Now check whether non-existent headers
3917 # can be detected and how.
3918 cat >conftest.$ac_ext <<_ACEOF
3921 cat confdefs.h >>conftest.$ac_ext
3922 cat >>conftest.$ac_ext <<_ACEOF
3923 /* end confdefs.h. */
3924 #include <ac_nonexistent.h>
3926 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3927 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3929 grep -v '^ *+' conftest.er1 >conftest.err
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } >/dev/null; then
3934 if test -s conftest.err; then
3935 ac_cpp_err=$ac_c_preproc_warn_flag
3936 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3943 if test -z "$ac_cpp_err"; then
3944 # Broken: success on invalid input.
3947 echo "$as_me: failed program was:" >&5
3948 sed 's/^/| /' conftest.$ac_ext >&5
3950 # Passes both tests.
3954 rm -f conftest.err conftest.$ac_ext
3957 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3958 rm -f conftest.err conftest.$ac_ext
3959 if $ac_preproc_ok; then
3971 echo "$as_me:$LINENO: result: $CPP" >&5
3972 echo "${ECHO_T}$CPP" >&6
3974 for ac_c_preproc_warn_flag in '' yes
3976 # Use a header file that comes with gcc, so configuring glibc
3977 # with a fresh cross-compiler works.
3978 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 # <limits.h> exists even on freestanding compilers.
3980 # On the NeXT, cc -E runs the code through the compiler's parser,
3981 # not just through cpp. "Syntax error" is here to catch this case.
3982 cat >conftest.$ac_ext <<_ACEOF
3985 cat confdefs.h >>conftest.$ac_ext
3986 cat >>conftest.$ac_ext <<_ACEOF
3987 /* end confdefs.h. */
3989 # include <limits.h>
3991 # include <assert.h>
3995 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3996 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3998 grep -v '^ *+' conftest.er1 >conftest.err
4000 cat conftest.err >&5
4001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4002 (exit $ac_status); } >/dev/null; then
4003 if test -s conftest.err; then
4004 ac_cpp_err=$ac_c_preproc_warn_flag
4005 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4012 if test -z "$ac_cpp_err"; then
4015 echo "$as_me: failed program was:" >&5
4016 sed 's/^/| /' conftest.$ac_ext >&5
4018 # Broken: fails on valid input.
4021 rm -f conftest.err conftest.$ac_ext
4023 # OK, works on sane cases. Now check whether non-existent headers
4024 # can be detected and how.
4025 cat >conftest.$ac_ext <<_ACEOF
4028 cat confdefs.h >>conftest.$ac_ext
4029 cat >>conftest.$ac_ext <<_ACEOF
4030 /* end confdefs.h. */
4031 #include <ac_nonexistent.h>
4033 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4034 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } >/dev/null; then
4041 if test -s conftest.err; then
4042 ac_cpp_err=$ac_c_preproc_warn_flag
4043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4050 if test -z "$ac_cpp_err"; then
4051 # Broken: success on invalid input.
4054 echo "$as_me: failed program was:" >&5
4055 sed 's/^/| /' conftest.$ac_ext >&5
4057 # Passes both tests.
4061 rm -f conftest.err conftest.$ac_ext
4064 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4065 rm -f conftest.err conftest.$ac_ext
4066 if $ac_preproc_ok; then
4069 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4070 See \`config.log' for more details." >&5
4071 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4072 See \`config.log' for more details." >&2;}
4073 { (exit 1); exit 1; }; }
4077 ac_cpp='$CPP $CPPFLAGS'
4078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4083 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4084 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4085 if test "${ac_cv_header_stdc+set}" = set; then
4086 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 cat >conftest.$ac_ext <<_ACEOF
4091 cat confdefs.h >>conftest.$ac_ext
4092 cat >>conftest.$ac_ext <<_ACEOF
4093 /* end confdefs.h. */
4107 rm -f conftest.$ac_objext
4108 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4109 (eval $ac_compile) 2>conftest.er1
4111 grep -v '^ *+' conftest.er1 >conftest.err
4113 cat conftest.err >&5
4114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4115 (exit $ac_status); } &&
4116 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4121 (exit $ac_status); }; } &&
4122 { ac_try='test -s conftest.$ac_objext'
4123 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); }; }; then
4128 ac_cv_header_stdc=yes
4130 echo "$as_me: failed program was:" >&5
4131 sed 's/^/| /' conftest.$ac_ext >&5
4133 ac_cv_header_stdc=no
4135 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4137 if test $ac_cv_header_stdc = yes; then
4138 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4139 cat >conftest.$ac_ext <<_ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "memchr" >/dev/null 2>&1; then
4152 ac_cv_header_stdc=no
4158 if test $ac_cv_header_stdc = yes; then
4159 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "free" >/dev/null 2>&1; then
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4181 if test "$cross_compiling" = yes; then
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4191 #if ((' ' & 0x0FF) == 0x020)
4192 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4193 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4195 # define ISLOWER(c) \
4196 (('a' <= (c) && (c) <= 'i') \
4197 || ('j' <= (c) && (c) <= 'r') \
4198 || ('s' <= (c) && (c) <= 'z'))
4199 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4202 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4207 for (i = 0; i < 256; i++)
4208 if (XOR (islower (i), ISLOWER (i))
4209 || toupper (i) != TOUPPER (i))
4214 rm -f conftest$ac_exeext
4215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4216 (eval $ac_link) 2>&5
4218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4219 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4224 (exit $ac_status); }; }; then
4227 echo "$as_me: program exited with status $ac_status" >&5
4228 echo "$as_me: failed program was:" >&5
4229 sed 's/^/| /' conftest.$ac_ext >&5
4232 ac_cv_header_stdc=no
4234 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4238 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4239 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4240 if test $ac_cv_header_stdc = yes; then
4242 cat >>confdefs.h <<\_ACEOF
4243 #define STDC_HEADERS 1
4248 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4258 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4259 inttypes.h stdint.h unistd.h
4261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4262 echo "$as_me:$LINENO: checking for $ac_header" >&5
4263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4264 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4265 echo $ECHO_N "(cached) $ECHO_C" >&6
4267 cat >conftest.$ac_ext <<_ACEOF
4270 cat confdefs.h >>conftest.$ac_ext
4271 cat >>conftest.$ac_ext <<_ACEOF
4272 /* end confdefs.h. */
4273 $ac_includes_default
4275 #include <$ac_header>
4277 rm -f conftest.$ac_objext
4278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4279 (eval $ac_compile) 2>conftest.er1
4281 grep -v '^ *+' conftest.er1 >conftest.err
4283 cat conftest.err >&5
4284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4285 (exit $ac_status); } &&
4286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4291 (exit $ac_status); }; } &&
4292 { ac_try='test -s conftest.$ac_objext'
4293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 eval "$as_ac_Header=yes"
4300 echo "$as_me: failed program was:" >&5
4301 sed 's/^/| /' conftest.$ac_ext >&5
4303 eval "$as_ac_Header=no"
4305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4307 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4308 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4309 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4310 cat >>confdefs.h <<_ACEOF
4311 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4320 for ac_header in dlfcn.h
4322 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4323 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4324 echo "$as_me:$LINENO: checking for $ac_header" >&5
4325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4326 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4327 echo $ECHO_N "(cached) $ECHO_C" >&6
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4332 # Is the header compilable?
4333 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4342 #include <$ac_header>
4344 rm -f conftest.$ac_objext
4345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4346 (eval $ac_compile) 2>conftest.er1
4348 grep -v '^ *+' conftest.er1 >conftest.err
4350 cat conftest.err >&5
4351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4352 (exit $ac_status); } &&
4353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4358 (exit $ac_status); }; } &&
4359 { ac_try='test -s conftest.$ac_objext'
4360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; }; then
4365 ac_header_compiler=yes
4367 echo "$as_me: failed program was:" >&5
4368 sed 's/^/| /' conftest.$ac_ext >&5
4370 ac_header_compiler=no
4372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4373 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4374 echo "${ECHO_T}$ac_header_compiler" >&6
4376 # Is the header present?
4377 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4379 cat >conftest.$ac_ext <<_ACEOF
4382 cat confdefs.h >>conftest.$ac_ext
4383 cat >>conftest.$ac_ext <<_ACEOF
4384 /* end confdefs.h. */
4385 #include <$ac_header>
4387 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4388 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4390 grep -v '^ *+' conftest.er1 >conftest.err
4392 cat conftest.err >&5
4393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4394 (exit $ac_status); } >/dev/null; then
4395 if test -s conftest.err; then
4396 ac_cpp_err=$ac_c_preproc_warn_flag
4397 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4404 if test -z "$ac_cpp_err"; then
4405 ac_header_preproc=yes
4407 echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 ac_header_preproc=no
4412 rm -f conftest.err conftest.$ac_ext
4413 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4414 echo "${ECHO_T}$ac_header_preproc" >&6
4416 # So? What about this header?
4417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4423 ac_header_preproc=yes
4426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4440 ## ----------------------------------------- ##
4441 ## Report this to martin.quinson@ens-lyon.fr ##
4442 ## ----------------------------------------- ##
4445 sed "s/^/$as_me: WARNING: /" >&2
4448 echo "$as_me:$LINENO: checking for $ac_header" >&5
4449 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4450 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 eval "$as_ac_Header=\$ac_header_preproc"
4455 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4456 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4460 cat >>confdefs.h <<_ACEOF
4461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4469 ac_cpp='$CXXCPP $CPPFLAGS'
4470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4473 if test -n "$ac_tool_prefix"; then
4474 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4477 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4478 echo "$as_me:$LINENO: checking for $ac_word" >&5
4479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4480 if test "${ac_cv_prog_CXX+set}" = set; then
4481 echo $ECHO_N "(cached) $ECHO_C" >&6
4483 if test -n "$CXX"; then
4484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4490 test -z "$as_dir" && as_dir=.
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4493 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4503 if test -n "$CXX"; then
4504 echo "$as_me:$LINENO: result: $CXX" >&5
4505 echo "${ECHO_T}$CXX" >&6
4507 echo "$as_me:$LINENO: result: no" >&5
4508 echo "${ECHO_T}no" >&6
4511 test -n "$CXX" && break
4514 if test -z "$CXX"; then
4516 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4518 # Extract the first word of "$ac_prog", so it can be a program name with args.
4519 set dummy $ac_prog; ac_word=$2
4520 echo "$as_me:$LINENO: checking for $ac_word" >&5
4521 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4522 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 if test -n "$ac_ct_CXX"; then
4526 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_ac_ct_CXX="$ac_prog"
4536 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4544 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4545 if test -n "$ac_ct_CXX"; then
4546 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4547 echo "${ECHO_T}$ac_ct_CXX" >&6
4549 echo "$as_me:$LINENO: result: no" >&5
4550 echo "${ECHO_T}no" >&6
4553 test -n "$ac_ct_CXX" && break
4555 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4561 # Provide some information about the compiler.
4562 echo "$as_me:$LINENO:" \
4563 "checking for C++ compiler version" >&5
4564 ac_compiler=`set X $ac_compile; echo $2`
4565 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4566 (eval $ac_compiler --version </dev/null >&5) 2>&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); }
4570 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4571 (eval $ac_compiler -v </dev/null >&5) 2>&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }
4575 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4576 (eval $ac_compiler -V </dev/null >&5) 2>&5
4578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4579 (exit $ac_status); }
4581 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4582 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4583 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4586 cat >conftest.$ac_ext <<_ACEOF
4589 cat confdefs.h >>conftest.$ac_ext
4590 cat >>conftest.$ac_ext <<_ACEOF
4591 /* end confdefs.h. */
4604 rm -f conftest.$ac_objext
4605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4606 (eval $ac_compile) 2>conftest.er1
4608 grep -v '^ *+' conftest.er1 >conftest.err
4610 cat conftest.err >&5
4611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612 (exit $ac_status); } &&
4613 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4614 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); }; } &&
4619 { ac_try='test -s conftest.$ac_objext'
4620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4624 (exit $ac_status); }; }; then
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4632 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4633 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4636 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4637 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4638 GXX=`test $ac_compiler_gnu = yes && echo yes`
4639 ac_test_CXXFLAGS=${CXXFLAGS+set}
4640 ac_save_CXXFLAGS=$CXXFLAGS
4642 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4643 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4644 if test "${ac_cv_prog_cxx_g+set}" = set; then
4645 echo $ECHO_N "(cached) $ECHO_C" >&6
4647 cat >conftest.$ac_ext <<_ACEOF
4650 cat confdefs.h >>conftest.$ac_ext
4651 cat >>conftest.$ac_ext <<_ACEOF
4652 /* end confdefs.h. */
4662 rm -f conftest.$ac_objext
4663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4664 (eval $ac_compile) 2>conftest.er1
4666 grep -v '^ *+' conftest.er1 >conftest.err
4668 cat conftest.err >&5
4669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670 (exit $ac_status); } &&
4671 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676 (exit $ac_status); }; } &&
4677 { ac_try='test -s conftest.$ac_objext'
4678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682 (exit $ac_status); }; }; then
4683 ac_cv_prog_cxx_g=yes
4685 echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4690 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4692 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4693 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4694 if test "$ac_test_CXXFLAGS" = set; then
4695 CXXFLAGS=$ac_save_CXXFLAGS
4696 elif test $ac_cv_prog_cxx_g = yes; then
4697 if test "$GXX" = yes; then
4703 if test "$GXX" = yes; then
4709 for ac_declaration in \
4711 'extern "C" void std::exit (int) throw (); using std::exit;' \
4712 'extern "C" void std::exit (int); using std::exit;' \
4713 'extern "C" void exit (int) throw ();' \
4714 'extern "C" void exit (int);' \
4717 cat >conftest.$ac_ext <<_ACEOF
4720 cat confdefs.h >>conftest.$ac_ext
4721 cat >>conftest.$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735 (eval $ac_compile) 2>conftest.er1
4737 grep -v '^ *+' conftest.er1 >conftest.err
4739 cat conftest.err >&5
4740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741 (exit $ac_status); } &&
4742 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4747 (exit $ac_status); }; } &&
4748 { ac_try='test -s conftest.$ac_objext'
4749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); }; }; then
4756 echo "$as_me: failed program was:" >&5
4757 sed 's/^/| /' conftest.$ac_ext >&5
4761 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4762 cat >conftest.$ac_ext <<_ACEOF
4765 cat confdefs.h >>conftest.$ac_ext
4766 cat >>conftest.$ac_ext <<_ACEOF
4767 /* end confdefs.h. */
4777 rm -f conftest.$ac_objext
4778 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4779 (eval $ac_compile) 2>conftest.er1
4781 grep -v '^ *+' conftest.er1 >conftest.err
4783 cat conftest.err >&5
4784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4785 (exit $ac_status); } &&
4786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4787 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4791 (exit $ac_status); }; } &&
4792 { ac_try='test -s conftest.$ac_objext'
4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4797 (exit $ac_status); }; }; then
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4804 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4807 if test -n "$ac_declaration"; then
4808 echo '#ifdef __cplusplus' >>confdefs.h
4809 echo $ac_declaration >>confdefs.h
4810 echo '#endif' >>confdefs.h
4814 ac_cpp='$CXXCPP $CPPFLAGS'
4815 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4819 depcc="$CXX" am_compiler_list=
4821 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4822 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4823 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4824 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4827 # We make a subdir and do the tests there. Otherwise we can end up
4828 # making bogus files that we don't know about and never remove. For
4829 # instance it was reported that on HP-UX the gcc test will end up
4830 # making a dummy file named `D' -- because `-MD' means `put the output
4833 # Copy depcomp to subdir because otherwise we won't find it if we're
4834 # using a relative directory.
4835 cp "$am_depcomp" conftest.dir
4837 # We will build objects and dependencies in a subdirectory because
4838 # it helps to detect inapplicable dependency modes. For instance
4839 # both Tru64's cc and ICC support -MD to output dependencies as a
4840 # side effect of compilation, but ICC will put the dependencies in
4841 # the current directory while Tru64 will put them in the object
4845 am_cv_CXX_dependencies_compiler_type=none
4846 if test "$am_compiler_list" = ""; then
4847 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4849 for depmode in $am_compiler_list; do
4850 # Setup a source with many dependencies, because some compilers
4851 # like to wrap large dependency lists on column 80 (with \), and
4852 # we should not choose a depcomp mode which is confused by this.
4854 # We need to recreate these files for each test, as the compiler may
4855 # overwrite some of them when testing with obscure command lines.
4856 # This happens at least with the AIX C compiler.
4858 for i in 1 2 3 4 5 6; do
4859 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4860 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4861 # Solaris 8's {/usr,}/bin/sh.
4862 touch sub/conftst$i.h
4864 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4868 # after this tag, mechanisms are not by side-effect, so they'll
4869 # only be used when explicitly requested
4870 if test "x$enable_dependency_tracking" = xyes; then
4878 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4879 # mode. It turns out that the SunPro C++ compiler does not properly
4880 # handle `-M -o', and we need to detect this.
4881 if depmode=$depmode \
4882 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4883 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4884 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4885 >/dev/null 2>conftest.err &&
4886 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4887 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4888 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4889 # icc doesn't choke on unknown options, it will just issue warnings
4890 # (even with -Werror). So we grep stderr for any message
4891 # that says an option was ignored.
4892 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
4893 am_cv_CXX_dependencies_compiler_type=$depmode
4902 am_cv_CXX_dependencies_compiler_type=none
4906 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4907 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4908 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4913 test "x$enable_dependency_tracking" != xno \
4914 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4915 am__fastdepCXX_TRUE=
4916 am__fastdepCXX_FALSE='#'
4918 am__fastdepCXX_TRUE='#'
4919 am__fastdepCXX_FALSE=
4924 ac_cpp='$CXXCPP $CPPFLAGS'
4925 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4926 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4927 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4928 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4929 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4930 if test -z "$CXXCPP"; then
4931 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4932 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 # Double quotes because CXXCPP needs to be expanded
4935 for CXXCPP in "$CXX -E" "/lib/cpp"
4938 for ac_cxx_preproc_warn_flag in '' yes
4940 # Use a header file that comes with gcc, so configuring glibc
4941 # with a fresh cross-compiler works.
4942 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4943 # <limits.h> exists even on freestanding compilers.
4944 # On the NeXT, cc -E runs the code through the compiler's parser,
4945 # not just through cpp. "Syntax error" is here to catch this case.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4953 # include <limits.h>
4955 # include <assert.h>
4959 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4960 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4962 grep -v '^ *+' conftest.er1 >conftest.err
4964 cat conftest.err >&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev/null; then
4967 if test -s conftest.err; then
4968 ac_cpp_err=$ac_cxx_preproc_warn_flag
4969 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4976 if test -z "$ac_cpp_err"; then
4979 echo "$as_me: failed program was:" >&5
4980 sed 's/^/| /' conftest.$ac_ext >&5
4982 # Broken: fails on valid input.
4985 rm -f conftest.err conftest.$ac_ext
4987 # OK, works on sane cases. Now check whether non-existent headers
4988 # can be detected and how.
4989 cat >conftest.$ac_ext <<_ACEOF
4992 cat confdefs.h >>conftest.$ac_ext
4993 cat >>conftest.$ac_ext <<_ACEOF
4994 /* end confdefs.h. */
4995 #include <ac_nonexistent.h>
4997 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4998 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5000 grep -v '^ *+' conftest.er1 >conftest.err
5002 cat conftest.err >&5
5003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004 (exit $ac_status); } >/dev/null; then
5005 if test -s conftest.err; then
5006 ac_cpp_err=$ac_cxx_preproc_warn_flag
5007 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5014 if test -z "$ac_cpp_err"; then
5015 # Broken: success on invalid input.
5018 echo "$as_me: failed program was:" >&5
5019 sed 's/^/| /' conftest.$ac_ext >&5
5021 # Passes both tests.
5025 rm -f conftest.err conftest.$ac_ext
5028 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5029 rm -f conftest.err conftest.$ac_ext
5030 if $ac_preproc_ok; then
5035 ac_cv_prog_CXXCPP=$CXXCPP
5038 CXXCPP=$ac_cv_prog_CXXCPP
5040 ac_cv_prog_CXXCPP=$CXXCPP
5042 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5043 echo "${ECHO_T}$CXXCPP" >&6
5045 for ac_cxx_preproc_warn_flag in '' yes
5047 # Use a header file that comes with gcc, so configuring glibc
5048 # with a fresh cross-compiler works.
5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5050 # <limits.h> exists even on freestanding compilers.
5051 # On the NeXT, cc -E runs the code through the compiler's parser,
5052 # not just through cpp. "Syntax error" is here to catch this case.
5053 cat >conftest.$ac_ext <<_ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5060 # include <limits.h>
5062 # include <assert.h>
5066 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5067 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5069 grep -v '^ *+' conftest.er1 >conftest.err
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5073 (exit $ac_status); } >/dev/null; then
5074 if test -s conftest.err; then
5075 ac_cpp_err=$ac_cxx_preproc_warn_flag
5076 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5083 if test -z "$ac_cpp_err"; then
5086 echo "$as_me: failed program was:" >&5
5087 sed 's/^/| /' conftest.$ac_ext >&5
5089 # Broken: fails on valid input.
5092 rm -f conftest.err conftest.$ac_ext
5094 # OK, works on sane cases. Now check whether non-existent headers
5095 # can be detected and how.
5096 cat >conftest.$ac_ext <<_ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
5101 /* end confdefs.h. */
5102 #include <ac_nonexistent.h>
5104 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5105 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5107 grep -v '^ *+' conftest.er1 >conftest.err
5109 cat conftest.err >&5
5110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5111 (exit $ac_status); } >/dev/null; then
5112 if test -s conftest.err; then
5113 ac_cpp_err=$ac_cxx_preproc_warn_flag
5114 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5121 if test -z "$ac_cpp_err"; then
5122 # Broken: success on invalid input.
5125 echo "$as_me: failed program was:" >&5
5126 sed 's/^/| /' conftest.$ac_ext >&5
5128 # Passes both tests.
5132 rm -f conftest.err conftest.$ac_ext
5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5136 rm -f conftest.err conftest.$ac_ext
5137 if $ac_preproc_ok; then
5140 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5141 See \`config.log' for more details." >&5
5142 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5143 See \`config.log' for more details." >&2;}
5144 { (exit 1); exit 1; }; }
5148 ac_cpp='$CXXCPP $CPPFLAGS'
5149 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5150 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5151 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5155 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5156 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5158 if test -n "$ac_tool_prefix"; then
5159 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5161 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5162 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5163 echo "$as_me:$LINENO: checking for $ac_word" >&5
5164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5165 if test "${ac_cv_prog_F77+set}" = set; then
5166 echo $ECHO_N "(cached) $ECHO_C" >&6
5168 if test -n "$F77"; then
5169 ac_cv_prog_F77="$F77" # Let the user override the test.
5171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175 test -z "$as_dir" && as_dir=.
5176 for ac_exec_ext in '' $ac_executable_extensions; do
5177 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5178 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 if test -n "$F77"; then
5189 echo "$as_me:$LINENO: result: $F77" >&5
5190 echo "${ECHO_T}$F77" >&6
5192 echo "$as_me:$LINENO: result: no" >&5
5193 echo "${ECHO_T}no" >&6
5196 test -n "$F77" && break
5199 if test -z "$F77"; then
5201 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5203 # Extract the first word of "$ac_prog", so it can be a program name with args.
5204 set dummy $ac_prog; ac_word=$2
5205 echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5207 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5210 if test -n "$ac_ct_F77"; then
5211 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5217 test -z "$as_dir" && as_dir=.
5218 for ac_exec_ext in '' $ac_executable_extensions; do
5219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5220 ac_cv_prog_ac_ct_F77="$ac_prog"
5221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5230 if test -n "$ac_ct_F77"; then
5231 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5232 echo "${ECHO_T}$ac_ct_F77" >&6
5234 echo "$as_me:$LINENO: result: no" >&5
5235 echo "${ECHO_T}no" >&6
5238 test -n "$ac_ct_F77" && break
5245 # Provide some information about the compiler.
5246 echo "$as_me:5246:" \
5247 "checking for Fortran 77 compiler version" >&5
5248 ac_compiler=`set X $ac_compile; echo $2`
5249 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5250 (eval $ac_compiler --version </dev/null >&5) 2>&5
5252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5253 (exit $ac_status); }
5254 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5255 (eval $ac_compiler -v </dev/null >&5) 2>&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); }
5259 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5260 (eval $ac_compiler -V </dev/null >&5) 2>&5
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }
5266 # If we don't use `.F' as extension, the preprocessor is not run on the
5267 # input file. (Note that this only needs to work for GNU compilers.)
5270 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5271 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5272 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5273 echo $ECHO_N "(cached) $ECHO_C" >&6
5275 cat >conftest.$ac_ext <<_ACEOF
5283 rm -f conftest.$ac_objext
5284 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5285 (eval $ac_compile) 2>conftest.er1
5287 grep -v '^ *+' conftest.er1 >conftest.err
5289 cat conftest.err >&5
5290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291 (exit $ac_status); } &&
5292 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5297 (exit $ac_status); }; } &&
5298 { ac_try='test -s conftest.$ac_objext'
5299 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303 (exit $ac_status); }; }; then
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5311 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5312 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5315 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5316 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5318 ac_test_FFLAGS=${FFLAGS+set}
5319 ac_save_FFLAGS=$FFLAGS
5321 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5322 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5323 if test "${ac_cv_prog_f77_g+set}" = set; then
5324 echo $ECHO_N "(cached) $ECHO_C" >&6
5327 cat >conftest.$ac_ext <<_ACEOF
5332 rm -f conftest.$ac_objext
5333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5334 (eval $ac_compile) 2>conftest.er1
5336 grep -v '^ *+' conftest.er1 >conftest.err
5338 cat conftest.err >&5
5339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340 (exit $ac_status); } &&
5341 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346 (exit $ac_status); }; } &&
5347 { ac_try='test -s conftest.$ac_objext'
5348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5352 (exit $ac_status); }; }; then
5353 ac_cv_prog_f77_g=yes
5355 echo "$as_me: failed program was:" >&5
5356 sed 's/^/| /' conftest.$ac_ext >&5
5360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5364 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5365 if test "$ac_test_FFLAGS" = set; then
5366 FFLAGS=$ac_save_FFLAGS
5367 elif test $ac_cv_prog_f77_g = yes; then
5368 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5374 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5381 G77=`test $ac_compiler_gnu = yes && echo yes`
5383 ac_cpp='$CPP $CPPFLAGS'
5384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5390 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5392 # find the maximum length of command line arguments
5393 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5394 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5395 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5403 # On DJGPP, this test can blow up pretty badly due to problems in libc
5404 # (any single argument exceeding 2000 bytes causes a buffer overrun
5405 # during glob expansion). Even if it were fixed, the result of this
5406 # check would be larger than it should be.
5407 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5411 # Under GNU Hurd, this test is not required because there is
5412 # no limit to the length of command line arguments.
5413 # Libtool will interpret -1 as no limit whatsoever
5414 lt_cv_sys_max_cmd_len=-1;
5418 # On Win9x/ME, this test blows up -- it succeeds, but takes
5419 # about 5 minutes as the teststring grows exponentially.
5420 # Worse, since 9x/ME are not pre-emptively multitasking,
5421 # you end up with a "frozen" computer, even though with patience
5422 # the test eventually succeeds (with a max line length of 256k).
5423 # Instead, let's just punt: use the minimum linelength reported by
5424 # all of the supported platforms: 8192 (on NT/2K/XP).
5425 lt_cv_sys_max_cmd_len=8192;
5429 # On AmigaOS with pdksh, this test takes hours, literally.
5430 # So we just punt and use a minimum line length of 8192.
5431 lt_cv_sys_max_cmd_len=8192;
5435 # If test is not a shell built-in, we'll probably end up computing a
5436 # maximum length that is only half of the actual maximum length, but
5438 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5439 = "XX$testring") >/dev/null 2>&1 &&
5440 new_result=`expr "X$testring" : ".*" 2>&1` &&
5441 lt_cv_sys_max_cmd_len=$new_result &&
5442 test $i != 17 # 1/2 MB should be enough
5445 testring=$testring$testring
5448 # Add a significant safety factor because C++ compilers can tack on massive
5449 # amounts of additional arguments before passing them to the linker.
5450 # It appears as though 1/2 is a usable value.
5451 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5457 if test -n $lt_cv_sys_max_cmd_len ; then
5458 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5459 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5461 echo "$as_me:$LINENO: result: none" >&5
5462 echo "${ECHO_T}none" >&6
5468 # Check for command to grab the raw symbol name followed by C symbol from nm.
5469 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5470 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5471 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5472 echo $ECHO_N "(cached) $ECHO_C" >&6
5475 # These are sane defaults that work on at least a few old systems.
5476 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5478 # Character class describing NM global symbol codes.
5479 symcode='[BCDEGRST]'
5481 # Regexp to match symbols that can be accessed directly from C.
5482 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5484 # Transform the above into a raw symbol and a C symbol.
5485 symxfrm='\1 \2\3 \3'
5487 # Transform an extracted symbol line into a proper C declaration
5488 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5490 # Transform an extracted symbol line into symbol name and symbol address
5491 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'"
5493 # Define system-specific variables.
5498 cygwin* | mingw* | pw32*)
5499 symcode='[ABCDGISTW]'
5501 hpux*) # Its linker distinguishes data from code symbols
5502 if test "$host_cpu" = ia64; then
5503 symcode='[ABCDEGRST]'
5505 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5506 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'"
5509 symcode='[BCDEGRST]'
5512 symcode='[BCDEGQRST]'
5522 # Handle CRLF in mingw tool chain
5526 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5530 # If we're using GNU nm, then use its standard symbol codes.
5531 case `$NM -V 2>&1` in
5532 *GNU* | *'with BFD'*)
5533 symcode='[ABCDGIRSTW]' ;;
5536 # Try without a prefix undercore, then with it.
5537 for ac_symprfx in "" "_"; do
5539 # Write the raw and C identifiers.
5540 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5542 # Check to see that the pipe works correctly.
5546 cat > conftest.$ac_ext <<EOF
5551 void nm_test_func(){}
5555 int main(){nm_test_var='a';nm_test_func();return(0);}
5558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5559 (eval $ac_compile) 2>&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); }; then
5563 # Now try to grab the symbols.
5565 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5566 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } && test -s "$nlist"; then
5570 # Try sorting and uniquifying the output.
5571 if sort "$nlist" | uniq > "$nlist"T; then
5572 mv -f "$nlist"T "$nlist"
5577 # Make sure that we snagged all the symbols we need.
5578 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5579 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5580 cat <<EOF > conftest.$ac_ext
5586 # Now generate the symbol file.
5587 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5589 cat <<EOF >> conftest.$ac_ext
5590 #if defined (__STDC__) && __STDC__
5591 # define lt_ptr_t void *
5593 # define lt_ptr_t char *
5597 /* The mapping between symbol names and symbols. */
5602 lt_preloaded_symbols[] =
5605 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5606 cat <<\EOF >> conftest.$ac_ext
5614 # Now try linking the two files.
5615 mv conftest.$ac_objext conftstm.$ac_objext
5616 lt_save_LIBS="$LIBS"
5617 lt_save_CFLAGS="$CFLAGS"
5618 LIBS="conftstm.$ac_objext"
5619 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5621 (eval $ac_link) 2>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5627 LIBS="$lt_save_LIBS"
5628 CFLAGS="$lt_save_CFLAGS"
5630 echo "cannot find nm_test_func in $nlist" >&5
5633 echo "cannot find nm_test_var in $nlist" >&5
5636 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5639 echo "$progname: failed program was:" >&5
5640 cat conftest.$ac_ext >&5
5642 rm -f conftest* conftst*
5644 # Do not use the global_symbol_pipe unless it works.
5645 if test "$pipe_works" = yes; then
5648 lt_cv_sys_global_symbol_pipe=
5654 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5655 lt_cv_sys_global_symbol_to_cdecl=
5657 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5658 echo "$as_me:$LINENO: result: failed" >&5
5659 echo "${ECHO_T}failed" >&6
5661 echo "$as_me:$LINENO: result: ok" >&5
5662 echo "${ECHO_T}ok" >&6
5665 echo "$as_me:$LINENO: checking for objdir" >&5
5666 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5667 if test "${lt_cv_objdir+set}" = set; then
5668 echo $ECHO_N "(cached) $ECHO_C" >&6
5670 rm -f .libs 2>/dev/null
5671 mkdir .libs 2>/dev/null
5672 if test -d .libs; then
5675 # MS-DOS does not allow filenames that begin with a dot.
5678 rmdir .libs 2>/dev/null
5680 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5681 echo "${ECHO_T}$lt_cv_objdir" >&6
5682 objdir=$lt_cv_objdir
5690 # AIX sometimes has problems with the GCC collect2 program. For some
5691 # reason, if we set the COLLECT_NAMES environment variable, the problems
5692 # vanish in a puff of smoke.
5693 if test "X${COLLECT_NAMES+set}" != Xset; then
5695 export COLLECT_NAMES
5700 # Sed substitution that helps us do robust quoting. It backslashifies
5701 # metacharacters that are still active within double-quoted strings.
5702 Xsed='sed -e s/^X//'
5703 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5705 # Same as above, but do not quote variable references.
5706 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5708 # Sed substitution to delay expansion of an escaped shell variable in a
5709 # double_quote_subst'ed string.
5710 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5712 # Sed substitution to avoid accidental globbing in evaled expressions
5713 no_glob_subst='s/\*/\\\*/g'
5719 default_ofile=libtool
5720 can_build_shared=yes
5722 # All known linkers require a `.a' archive for static linking (except M$VC,
5723 # which needs '.lib').
5725 ltmain="$ac_aux_dir/ltmain.sh"
5726 ofile="$default_ofile"
5727 with_gnu_ld="$lt_cv_prog_gnu_ld"
5729 if test -n "$ac_tool_prefix"; then
5730 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5731 set dummy ${ac_tool_prefix}ar; ac_word=$2
5732 echo "$as_me:$LINENO: checking for $ac_word" >&5
5733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5734 if test "${ac_cv_prog_AR+set}" = set; then
5735 echo $ECHO_N "(cached) $ECHO_C" >&6
5737 if test -n "$AR"; then
5738 ac_cv_prog_AR="$AR" # Let the user override the test.
5740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744 test -z "$as_dir" && as_dir=.
5745 for ac_exec_ext in '' $ac_executable_extensions; do
5746 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5747 ac_cv_prog_AR="${ac_tool_prefix}ar"
5748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5757 if test -n "$AR"; then
5758 echo "$as_me:$LINENO: result: $AR" >&5
5759 echo "${ECHO_T}$AR" >&6
5761 echo "$as_me:$LINENO: result: no" >&5
5762 echo "${ECHO_T}no" >&6
5766 if test -z "$ac_cv_prog_AR"; then
5768 # Extract the first word of "ar", so it can be a program name with args.
5769 set dummy ar; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5773 echo $ECHO_N "(cached) $ECHO_C" >&6
5775 if test -n "$ac_ct_AR"; then
5776 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_AR="ar"
5786 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5792 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5795 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5796 if test -n "$ac_ct_AR"; then
5797 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5798 echo "${ECHO_T}$ac_ct_AR" >&6
5800 echo "$as_me:$LINENO: result: no" >&5
5801 echo "${ECHO_T}no" >&6
5809 if test -n "$ac_tool_prefix"; then
5810 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5811 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5812 echo "$as_me:$LINENO: checking for $ac_word" >&5
5813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5814 if test "${ac_cv_prog_RANLIB+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 if test -n "$RANLIB"; then
5818 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5824 test -z "$as_dir" && as_dir=.
5825 for ac_exec_ext in '' $ac_executable_extensions; do
5826 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5827 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5836 RANLIB=$ac_cv_prog_RANLIB
5837 if test -n "$RANLIB"; then
5838 echo "$as_me:$LINENO: result: $RANLIB" >&5
5839 echo "${ECHO_T}$RANLIB" >&6
5841 echo "$as_me:$LINENO: result: no" >&5
5842 echo "${ECHO_T}no" >&6
5846 if test -z "$ac_cv_prog_RANLIB"; then
5847 ac_ct_RANLIB=$RANLIB
5848 # Extract the first word of "ranlib", so it can be a program name with args.
5849 set dummy ranlib; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5853 echo $ECHO_N "(cached) $ECHO_C" >&6
5855 if test -n "$ac_ct_RANLIB"; then
5856 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5862 test -z "$as_dir" && as_dir=.
5863 for ac_exec_ext in '' $ac_executable_extensions; do
5864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865 ac_cv_prog_ac_ct_RANLIB="ranlib"
5866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5872 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5875 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5876 if test -n "$ac_ct_RANLIB"; then
5877 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5878 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5880 echo "$as_me:$LINENO: result: no" >&5
5881 echo "${ECHO_T}no" >&6
5884 RANLIB=$ac_ct_RANLIB
5886 RANLIB="$ac_cv_prog_RANLIB"
5889 if test -n "$ac_tool_prefix"; then
5890 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5891 set dummy ${ac_tool_prefix}strip; ac_word=$2
5892 echo "$as_me:$LINENO: checking for $ac_word" >&5
5893 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5894 if test "${ac_cv_prog_STRIP+set}" = set; then
5895 echo $ECHO_N "(cached) $ECHO_C" >&6
5897 if test -n "$STRIP"; then
5898 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5904 test -z "$as_dir" && as_dir=.
5905 for ac_exec_ext in '' $ac_executable_extensions; do
5906 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5907 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5916 STRIP=$ac_cv_prog_STRIP
5917 if test -n "$STRIP"; then
5918 echo "$as_me:$LINENO: result: $STRIP" >&5
5919 echo "${ECHO_T}$STRIP" >&6
5921 echo "$as_me:$LINENO: result: no" >&5
5922 echo "${ECHO_T}no" >&6
5926 if test -z "$ac_cv_prog_STRIP"; then
5928 # Extract the first word of "strip", so it can be a program name with args.
5929 set dummy strip; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5933 echo $ECHO_N "(cached) $ECHO_C" >&6
5935 if test -n "$ac_ct_STRIP"; then
5936 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5942 test -z "$as_dir" && as_dir=.
5943 for ac_exec_ext in '' $ac_executable_extensions; do
5944 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945 ac_cv_prog_ac_ct_STRIP="strip"
5946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5956 if test -n "$ac_ct_STRIP"; then
5957 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5958 echo "${ECHO_T}$ac_ct_STRIP" >&6
5960 echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6
5966 STRIP="$ac_cv_prog_STRIP"
5971 old_CFLAGS="$CFLAGS"
5973 # Set sane defaults for various variables
5974 test -z "$AR" && AR=ar
5975 test -z "$AR_FLAGS" && AR_FLAGS=cru
5976 test -z "$AS" && AS=as
5977 test -z "$CC" && CC=cc
5978 test -z "$LTCC" && LTCC=$CC
5979 test -z "$DLLTOOL" && DLLTOOL=dlltool
5980 test -z "$LD" && LD=ld
5981 test -z "$LN_S" && LN_S="ln -s"
5982 test -z "$MAGIC_CMD" && MAGIC_CMD=file
5983 test -z "$NM" && NM=nm
5984 test -z "$SED" && SED=sed
5985 test -z "$OBJDUMP" && OBJDUMP=objdump
5986 test -z "$RANLIB" && RANLIB=:
5987 test -z "$STRIP" && STRIP=:
5988 test -z "$ac_objext" && ac_objext=o
5990 # Determine commands to create old-style static archives.
5991 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
5992 old_postinstall_cmds='chmod 644 $oldlib'
5993 old_postuninstall_cmds=
5995 if test -n "$RANLIB"; then
5998 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6001 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6004 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6007 # Only perform the check for file, if the check method requires it
6008 case $deplibs_check_method in
6010 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6011 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6012 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6013 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6014 echo $ECHO_N "(cached) $ECHO_C" >&6
6018 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6021 lt_save_MAGIC_CMD="$MAGIC_CMD"
6022 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6023 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6024 for ac_dir in $ac_dummy; do
6026 test -z "$ac_dir" && ac_dir=.
6027 if test -f $ac_dir/${ac_tool_prefix}file; then
6028 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6029 if test -n "$file_magic_test_file"; then
6030 case $deplibs_check_method in
6032 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6033 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6034 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6035 $EGREP "$file_magic_regex" > /dev/null; then
6040 *** Warning: the command libtool uses to detect shared libraries,
6041 *** $file_magic_cmd, produces output that libtool cannot recognize.
6042 *** The result is that libtool may fail to recognize shared libraries
6043 *** as such. This will affect the creation of libtool libraries that
6044 *** depend on shared libraries, but programs linked with such libtool
6045 *** libraries will work regardless of this problem. Nevertheless, you
6046 *** may want to report the problem to your system manager and/or to
6047 *** bug-libtool@gnu.org
6057 MAGIC_CMD="$lt_save_MAGIC_CMD"
6062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6063 if test -n "$MAGIC_CMD"; then
6064 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6065 echo "${ECHO_T}$MAGIC_CMD" >&6
6067 echo "$as_me:$LINENO: result: no" >&5
6068 echo "${ECHO_T}no" >&6
6071 if test -z "$lt_cv_path_MAGIC_CMD"; then
6072 if test -n "$ac_tool_prefix"; then
6073 echo "$as_me:$LINENO: checking for file" >&5
6074 echo $ECHO_N "checking for file... $ECHO_C" >&6
6075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6076 echo $ECHO_N "(cached) $ECHO_C" >&6
6080 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6083 lt_save_MAGIC_CMD="$MAGIC_CMD"
6084 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6086 for ac_dir in $ac_dummy; do
6088 test -z "$ac_dir" && ac_dir=.
6089 if test -f $ac_dir/file; then
6090 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6091 if test -n "$file_magic_test_file"; then
6092 case $deplibs_check_method in
6094 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6095 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6097 $EGREP "$file_magic_regex" > /dev/null; then
6102 *** Warning: the command libtool uses to detect shared libraries,
6103 *** $file_magic_cmd, produces output that libtool cannot recognize.
6104 *** The result is that libtool may fail to recognize shared libraries
6105 *** as such. This will affect the creation of libtool libraries that
6106 *** depend on shared libraries, but programs linked with such libtool
6107 *** libraries will work regardless of this problem. Nevertheless, you
6108 *** may want to report the problem to your system manager and/or to
6109 *** bug-libtool@gnu.org
6119 MAGIC_CMD="$lt_save_MAGIC_CMD"
6124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6125 if test -n "$MAGIC_CMD"; then
6126 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6127 echo "${ECHO_T}$MAGIC_CMD" >&6
6129 echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6145 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6146 if test "${enable_libtool_lock+set}" = set; then
6147 enableval="$enable_libtool_lock"
6150 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6153 # Check whether --with-pic or --without-pic was given.
6154 if test "${with_pic+set}" = set; then
6160 test -z "$pic_mode" && pic_mode=default
6162 # Use C for the default configuration in the libtool script
6166 ac_cpp='$CPP $CPPFLAGS'
6167 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6168 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6172 # Source file extension for C test sources.
6175 # Object file extension for compiled C test sources.
6179 # Code to be used in simple compile tests
6180 lt_simple_compile_test_code="int some_variable = 0;\n"
6182 # Code to be used in simple link tests
6183 lt_simple_link_test_code='int main(){return(0);}\n'
6186 # If no C compiler was specified, use CC.
6189 # Allow CC to be a program name with arguments.
6194 # Check for any special shared library compilation flags.
6197 if test "$GCC" = no; then
6200 lt_prog_cc_shlib='-belf'
6204 if test -n "$lt_prog_cc_shlib"; then
6205 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6206 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6207 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6209 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6210 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6211 lt_cv_prog_cc_can_build_shared=no
6217 # Check to make sure the static flag actually works.
6219 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6220 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6221 if test "${lt_prog_compiler_static_works+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6224 lt_prog_compiler_static_works=no
6225 save_LDFLAGS="$LDFLAGS"
6226 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6227 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6228 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6229 # The compiler can only warn and ignore the option if not recognized
6230 # So say no if there are warnings
6231 if test -s conftest.err; then
6232 # Append any errors to the config.log.
6233 cat conftest.err 1>&5
6235 lt_prog_compiler_static_works=yes
6239 LDFLAGS="$save_LDFLAGS"
6242 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6243 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6245 if test x"$lt_prog_compiler_static_works" = xyes; then
6248 lt_prog_compiler_static=
6254 lt_prog_compiler_no_builtin_flag=
6256 if test "$GCC" = yes; then
6257 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6260 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6261 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6262 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6263 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 lt_cv_prog_compiler_rtti_exceptions=no
6266 ac_outfile=conftest.$ac_objext
6267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6268 lt_compiler_flag="-fno-rtti -fno-exceptions"
6269 # Insert the option either (1) after the last *FLAGS variable, or
6270 # (2) before a word containing "conftest.", or (3) at the end.
6271 # Note that $ac_compile itself does not contain backslashes and begins
6272 # with a dollar sign (not a hyphen), so the echo should work correctly.
6273 # The option is referenced via a variable to avoid confusing sed.
6274 lt_compile=`echo "$ac_compile" | $SED \
6275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6277 -e 's:$: $lt_compiler_flag:'`
6278 (eval echo "\"\$as_me:6278: $lt_compile\"" >&5)
6279 (eval "$lt_compile" 2>conftest.err)
6281 cat conftest.err >&5
6282 echo "$as_me:6282: \$? = $ac_status" >&5
6283 if (exit $ac_status) && test -s "$ac_outfile"; then
6284 # The compiler can only warn and ignore the option if not recognized
6285 # So say no if there are warnings
6286 if test ! -s conftest.err; then
6287 lt_cv_prog_compiler_rtti_exceptions=yes
6293 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6294 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6296 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6297 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6304 lt_prog_compiler_wl=
6305 lt_prog_compiler_pic=
6306 lt_prog_compiler_static=
6308 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6309 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6311 if test "$GCC" = yes; then
6312 lt_prog_compiler_wl='-Wl,'
6313 lt_prog_compiler_static='-static'
6317 # All AIX code is PIC.
6318 if test "$host_cpu" = ia64; then
6319 # AIX 5 now supports IA64 processor
6320 lt_prog_compiler_static='-Bstatic'
6325 # FIXME: we need at least 68020 code to build shared libraries, but
6326 # adding the `-m68020' flag to GCC prevents building anything better,
6328 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6331 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6332 # PIC is the default for these OSes.
6335 mingw* | pw32* | os2*)
6336 # This hack is so that the source file can tell whether it is being
6337 # built for inclusion in a dll (and should export symbols for example).
6338 lt_prog_compiler_pic='-DDLL_EXPORT'
6341 darwin* | rhapsody*)
6342 # PIC is the default on this platform
6343 # Common symbols not allowed in MH_DYLIB files
6344 lt_prog_compiler_pic='-fno-common'
6348 # Just because we use GCC doesn't mean we suddenly get shared libraries
6349 # on systems that don't support them.
6350 lt_prog_compiler_can_build_shared=no
6355 if test -d /usr/nec; then
6356 lt_prog_compiler_pic=-Kconform_pic
6361 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6368 lt_prog_compiler_pic='-fPIC'
6374 lt_prog_compiler_pic='-fPIC'
6378 # PORTME Check for flag to pass linker flags through the system compiler.
6381 lt_prog_compiler_wl='-Wl,'
6382 if test "$host_cpu" = ia64; then
6383 # AIX 5 now supports IA64 processor
6384 lt_prog_compiler_static='-Bstatic'
6386 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6390 mingw* | pw32* | os2*)
6391 # This hack is so that the source file can tell whether it is being
6392 # built for inclusion in a dll (and should export symbols for example).
6393 lt_prog_compiler_pic='-DDLL_EXPORT'
6396 hpux9* | hpux10* | hpux11*)
6397 lt_prog_compiler_wl='-Wl,'
6398 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6405 lt_prog_compiler_pic='+Z'
6408 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6409 lt_prog_compiler_static='${wl}-a ${wl}archive'
6412 irix5* | irix6* | nonstopux*)
6413 lt_prog_compiler_wl='-Wl,'
6414 # PIC (with -KPIC) is the default.
6415 lt_prog_compiler_static='-non_shared'
6419 lt_prog_compiler_pic='-KPIC'
6420 lt_prog_compiler_static='-Bstatic'
6426 lt_prog_compiler_wl='-Wl,'
6427 lt_prog_compiler_pic='-KPIC'
6428 lt_prog_compiler_static='-static'
6431 lt_prog_compiler_wl='-Wl,'
6432 # All Alpha code is PIC.
6433 lt_prog_compiler_static='-non_shared'
6438 osf3* | osf4* | osf5*)
6439 lt_prog_compiler_wl='-Wl,'
6440 # All OSF/1 code is PIC.
6441 lt_prog_compiler_static='-non_shared'
6445 lt_prog_compiler_pic='-Kpic'
6446 lt_prog_compiler_static='-dn'
6450 lt_prog_compiler_wl='-Wl,'
6451 lt_prog_compiler_pic='-KPIC'
6452 lt_prog_compiler_static='-Bstatic'
6456 lt_prog_compiler_wl='-Qoption ld '
6457 lt_prog_compiler_pic='-PIC'
6458 lt_prog_compiler_static='-Bstatic'
6461 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6462 lt_prog_compiler_wl='-Wl,'
6463 lt_prog_compiler_pic='-KPIC'
6464 lt_prog_compiler_static='-Bstatic'
6468 if test -d /usr/nec ;then
6469 lt_prog_compiler_pic='-Kconform_pic'
6470 lt_prog_compiler_static='-Bstatic'
6475 lt_prog_compiler_pic='-pic'
6476 lt_prog_compiler_static='-Bstatic'
6480 lt_prog_compiler_can_build_shared=no
6485 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6486 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6489 # Check to make sure the PIC flag actually works.
6491 if test -n "$lt_prog_compiler_pic"; then
6493 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6494 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6495 if test "${lt_prog_compiler_pic_works+set}" = set; then
6496 echo $ECHO_N "(cached) $ECHO_C" >&6
6498 lt_prog_compiler_pic_works=no
6499 ac_outfile=conftest.$ac_objext
6500 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6501 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6502 # Insert the option either (1) after the last *FLAGS variable, or
6503 # (2) before a word containing "conftest.", or (3) at the end.
6504 # Note that $ac_compile itself does not contain backslashes and begins
6505 # with a dollar sign (not a hyphen), so the echo should work correctly.
6506 # The option is referenced via a variable to avoid confusing sed.
6507 lt_compile=`echo "$ac_compile" | $SED \
6508 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6509 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6510 -e 's:$: $lt_compiler_flag:'`
6511 (eval echo "\"\$as_me:6511: $lt_compile\"" >&5)
6512 (eval "$lt_compile" 2>conftest.err)
6514 cat conftest.err >&5
6515 echo "$as_me:6515: \$? = $ac_status" >&5
6516 if (exit $ac_status) && test -s "$ac_outfile"; then
6517 # The compiler can only warn and ignore the option if not recognized
6518 # So say no if there are warnings
6519 if test ! -s conftest.err; then
6520 lt_prog_compiler_pic_works=yes
6526 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6527 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6529 if test x"$lt_prog_compiler_pic_works" = xyes; then
6530 case $lt_prog_compiler_pic in
6532 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6535 lt_prog_compiler_pic=
6536 lt_prog_compiler_can_build_shared=no
6541 # For platforms which do not support PIC, -DPIC is meaningless:
6543 lt_prog_compiler_pic=
6546 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6550 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6551 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6552 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 lt_cv_prog_compiler_c_o=no
6556 $rm -r conftest 2>/dev/null
6560 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6562 lt_compiler_flag="-o out/conftest2.$ac_objext"
6563 # Insert the option either (1) after the last *FLAGS variable, or
6564 # (2) before a word containing "conftest.", or (3) at the end.
6565 # Note that $ac_compile itself does not contain backslashes and begins
6566 # with a dollar sign (not a hyphen), so the echo should work correctly.
6567 lt_compile=`echo "$ac_compile" | $SED \
6568 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6570 -e 's:$: $lt_compiler_flag:'`
6571 (eval echo "\"\$as_me:6571: $lt_compile\"" >&5)
6572 (eval "$lt_compile" 2>out/conftest.err)
6574 cat out/conftest.err >&5
6575 echo "$as_me:6575: \$? = $ac_status" >&5
6576 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6578 # The compiler can only warn and ignore the option if not recognized
6579 # So say no if there are warnings
6580 if test ! -s out/conftest.err; then
6581 lt_cv_prog_compiler_c_o=yes
6586 # SGI C++ compiler will create directory out/ii_files/ for
6587 # template instantiation
6588 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6589 $rm out/* && rmdir out
6595 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6596 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6599 hard_links="nottested"
6600 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6601 # do not overwrite the value of need_locks provided by the user
6602 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6603 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6606 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6608 ln conftest.a conftest.b 2>&5 || hard_links=no
6609 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6610 echo "$as_me:$LINENO: result: $hard_links" >&5
6611 echo "${ECHO_T}$hard_links" >&6
6612 if test "$hard_links" = no; then
6613 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6614 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6621 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6622 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6625 allow_undefined_flag=
6626 enable_shared_with_static_runtimes=no
6628 archive_expsym_cmds=
6629 old_archive_From_new_cmds=
6630 old_archive_from_expsyms_cmds=
6631 export_dynamic_flag_spec=
6632 whole_archive_flag_spec=
6633 thread_safe_flag_spec=
6634 hardcode_libdir_flag_spec=
6635 hardcode_libdir_flag_spec_ld=
6636 hardcode_libdir_separator=
6639 hardcode_shlibpath_var=unsupported
6640 link_all_deplibs=unknown
6641 hardcode_automatic=no
6644 always_export_symbols=no
6645 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6646 # include_expsyms should be a list of space-separated symbols to be *always*
6647 # included in the symbol list
6649 # exclude_expsyms can be an extended regexp of symbols to exclude
6650 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6651 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6652 # as well as any symbol that contains `d'.
6653 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6654 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6655 # platforms (ab)use it in PIC code, but their linkers get confused if
6656 # the symbol is explicitly referenced. Since portable code cannot
6657 # rely on this symbol name, it's probably fine to never include it in
6658 # preloaded symbol tables.
6659 extract_expsyms_cmds=
6662 cygwin* | mingw* | pw32*)
6663 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6664 # When not using gcc, we currently assume that we are using
6665 # Microsoft Visual C++.
6666 if test "$GCC" != yes; then
6676 if test "$with_gnu_ld" = yes; then
6677 # If archive_cmds runs LD, not CC, wlarc should be empty
6680 # See if GNU ld supports shared libraries.
6682 aix3* | aix4* | aix5*)
6683 # On AIX/PPC, the GNU linker is very broken
6684 if test "$host_cpu" != ia64; then
6688 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6689 *** to be unable to reliably create shared libraries on AIX.
6690 *** Therefore, libtool is disabling shared libraries support. If you
6691 *** really care for shared libraries, you may want to modify your PATH
6692 *** so that a non-GNU linker is found, and then restart.
6699 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)'
6700 hardcode_libdir_flag_spec='-L$libdir'
6701 hardcode_minus_L=yes
6703 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6704 # that the semantics of dynamic libraries on AmigaOS, at least up
6705 # to version 4, is to share data among multiple programs linked
6706 # with the same dynamic library. Since this doesn't match the
6707 # behavior of shared libraries on other platforms, we can't use
6713 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6714 allow_undefined_flag=unsupported
6715 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6716 # support --undefined. This deserves some investigation. FIXME
6717 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6723 cygwin* | mingw* | pw32*)
6724 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6725 # as there is no search path for DLLs.
6726 hardcode_libdir_flag_spec='-L$libdir'
6727 allow_undefined_flag=unsupported
6728 always_export_symbols=no
6729 enable_shared_with_static_runtimes=yes
6730 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6732 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6733 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6734 # If the export-symbols file already is a .def file (1st line
6735 # is EXPORTS), use it as is; otherwise, prepend...
6736 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6737 cp $export_symbols $output_objdir/$soname.def;
6739 echo EXPORTS > $output_objdir/$soname.def;
6740 cat $export_symbols >> $output_objdir/$soname.def;
6742 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6748 netbsd* | knetbsd*-gnu)
6749 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6750 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6753 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6754 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6759 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6763 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6764 *** create shared libraries on Solaris systems. Therefore, libtool
6765 *** is disabling shared libraries support. We urge you to upgrade GNU
6766 *** binutils to release 2.9.1 or newer. Another option is to modify
6767 *** your PATH or compiler configuration so that the native linker is
6768 *** used, and then restart.
6771 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6772 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6773 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6780 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6783 hardcode_shlibpath_var=no
6787 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6788 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6789 archive_cmds="$tmp_archive_cmds"
6790 supports_anon_versioning=no
6791 case `$LD -v 2>/dev/null` in
6792 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6793 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6794 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6795 *\ 2.11.*) ;; # other 2.11 versions
6796 *) supports_anon_versioning=yes ;;
6798 if test $supports_anon_versioning = yes; then
6799 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6800 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6801 $echo "local: *; };" >> $output_objdir/$libname.ver~
6802 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6804 archive_expsym_cmds="$tmp_archive_cmds"
6812 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6813 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6814 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6821 if test "$ld_shlibs" = yes; then
6822 runpath_var=LD_RUN_PATH
6823 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6824 export_dynamic_flag_spec='${wl}--export-dynamic'
6825 # ancient GNU ld didn't support --whole-archive et. al.
6826 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6827 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6829 whole_archive_flag_spec=
6833 # PORTME fill in a description of your system's linker (not GNU ld)
6836 allow_undefined_flag=unsupported
6837 always_export_symbols=yes
6838 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'
6839 # Note: this linker hardcodes the directories in LIBPATH if there
6840 # are no directories specified by -L.
6841 hardcode_minus_L=yes
6842 if test "$GCC" = yes && test -z "$link_static_flag"; then
6843 # Neither direct hardcoding nor static linking is supported with a
6845 hardcode_direct=unsupported
6850 if test "$host_cpu" = ia64; then
6851 # On IA64, the linker does run time linking by default, so we don't
6852 # have to do anything special.
6853 aix_use_runtimelinking=no
6854 exp_sym_flag='-Bexport'
6857 # If we're using GNU nm, then we don't want the "-C" option.
6858 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6859 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6860 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'
6862 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'
6864 aix_use_runtimelinking=no
6866 # Test if we are trying to use run time linking or normal
6867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6868 # need to do runtime linking.
6869 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6870 for ld_flag in $LDFLAGS; do
6871 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6872 aix_use_runtimelinking=yes
6878 exp_sym_flag='-bexport'
6879 no_entry_flag='-bnoentry'
6882 # When large executables or shared objects are built, AIX ld can
6883 # have problems creating the table of contents. If linking a library
6884 # or program results in "error TOC overflow" add -mminimal-toc to
6885 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6886 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6890 hardcode_libdir_separator=':'
6891 link_all_deplibs=yes
6893 if test "$GCC" = yes; then
6894 case $host_os in aix4.012|aix4.012.*)
6895 # We only want to do this on AIX 4.2 and lower, the check
6896 # below for broken collect2 doesn't work under 4.3+
6897 collect2name=`${CC} -print-prog-name=collect2`
6898 if test -f "$collect2name" && \
6899 strings "$collect2name" | grep resolve_lib_name >/dev/null
6901 # We have reworked collect2
6904 # We have old collect2
6905 hardcode_direct=unsupported
6906 # It fails to find uninstalled libraries when the uninstalled
6907 # path is not listed in the libpath. Setting hardcode_minus_L
6908 # to unsupported forces relinking
6909 hardcode_minus_L=yes
6910 hardcode_libdir_flag_spec='-L$libdir'
6911 hardcode_libdir_separator=
6914 shared_flag='-shared'
6917 if test "$host_cpu" = ia64; then
6918 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6919 # chokes on -Wl,-G. The following line is correct:
6922 if test "$aix_use_runtimelinking" = yes; then
6923 shared_flag='${wl}-G'
6925 shared_flag='${wl}-bM:SRE'
6930 # It seems that -bexpall does not export symbols beginning with
6931 # underscore (_), so it is better to generate a list of symbols to export.
6932 always_export_symbols=yes
6933 if test "$aix_use_runtimelinking" = yes; then
6934 # Warning - without using the other runtime loading flags (-brtl),
6935 # -berok will link without error, but may produce a broken library.
6936 allow_undefined_flag='-berok'
6937 # Determine the default libpath from the value encoded in an empty executable.
6938 cat >conftest.$ac_ext <<_ACEOF
6941 cat confdefs.h >>conftest.$ac_ext
6942 cat >>conftest.$ac_ext <<_ACEOF
6943 /* end confdefs.h. */
6953 rm -f conftest.$ac_objext conftest$ac_exeext
6954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6955 (eval $ac_link) 2>conftest.er1
6957 grep -v '^ *+' conftest.er1 >conftest.err
6959 cat conftest.err >&5
6960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6961 (exit $ac_status); } &&
6962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6967 (exit $ac_status); }; } &&
6968 { ac_try='test -s conftest$ac_exeext'
6969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6973 (exit $ac_status); }; }; then
6975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
6977 # Check for a 64-bit object if we didn't find anything.
6978 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; }
6981 echo "$as_me: failed program was:" >&5
6982 sed 's/^/| /' conftest.$ac_ext >&5
6985 rm -f conftest.err conftest.$ac_objext \
6986 conftest$ac_exeext conftest.$ac_ext
6987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
6989 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
6990 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"
6992 if test "$host_cpu" = ia64; then
6993 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
6994 allow_undefined_flag="-z nodefs"
6995 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"
6997 # Determine the default libpath from the value encoded in an empty executable.
6998 cat >conftest.$ac_ext <<_ACEOF
7001 cat confdefs.h >>conftest.$ac_ext
7002 cat >>conftest.$ac_ext <<_ACEOF
7003 /* end confdefs.h. */
7013 rm -f conftest.$ac_objext conftest$ac_exeext
7014 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7015 (eval $ac_link) 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } &&
7022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); }; } &&
7028 { ac_try='test -s conftest$ac_exeext'
7029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7033 (exit $ac_status); }; }; then
7035 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7037 # Check for a 64-bit object if we didn't find anything.
7038 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; }
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7045 rm -f conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7049 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7050 # Warning - without using the other run time loading flags,
7051 # -berok will link without error, but may produce a broken library.
7052 no_undefined_flag=' ${wl}-bernotok'
7053 allow_undefined_flag=' ${wl}-berok'
7054 # -bexpall does not export symbols beginning with underscore (_)
7055 always_export_symbols=yes
7056 # Exported symbols can be pulled into shared objects from archives
7057 whole_archive_flag_spec=' '
7058 archive_cmds_need_lc=yes
7059 # This is similar to how AIX traditionally builds it's shared libraries.
7060 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'
7066 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)'
7067 hardcode_libdir_flag_spec='-L$libdir'
7068 hardcode_minus_L=yes
7069 # see comment about different semantics on the GNU ld section
7074 export_dynamic_flag_spec=-rdynamic
7077 cygwin* | mingw* | pw32*)
7078 # When not using gcc, we currently assume that we are using
7079 # Microsoft Visual C++.
7080 # hardcode_libdir_flag_spec is actually meaningless, as there is
7081 # no search path for DLLs.
7082 hardcode_libdir_flag_spec=' '
7083 allow_undefined_flag=unsupported
7084 # Tell ltmain to make .lib files, not .a files.
7086 # Tell ltmain to make .dll files, not .so files.
7088 # FIXME: Setting linknames here is a bad hack.
7089 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7090 # The linker will automatically build a .lib file if we build a DLL.
7091 old_archive_From_new_cmds='true'
7092 # FIXME: Should let the user specify the lib program.
7093 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7094 fix_srcfile_path='`cygpath -w "$srcfile"`'
7095 enable_shared_with_static_runtimes=yes
7098 darwin* | rhapsody*)
7099 if test "$GXX" = yes ; then
7100 archive_cmds_need_lc=no
7102 rhapsody* | darwin1.[012])
7103 allow_undefined_flag='-undefined suppress'
7106 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7107 allow_undefined_flag='-flat_namespace -undefined suppress'
7109 case ${MACOSX_DEPLOYMENT_TARGET} in
7111 allow_undefined_flag='-flat_namespace -undefined suppress'
7114 allow_undefined_flag='-undefined dynamic_lookup'
7120 lt_int_apple_cc_single_mod=no
7121 output_verbose_link_cmd='echo'
7122 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7123 lt_int_apple_cc_single_mod=yes
7125 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7126 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7128 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'
7130 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7131 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7132 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7133 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}'
7135 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}'
7137 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}'
7139 hardcode_automatic=yes
7140 hardcode_shlibpath_var=unsupported
7141 whole_archive_flag_spec='-all_load $convenience'
7142 link_all_deplibs=yes
7149 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7150 hardcode_libdir_flag_spec='-L$libdir'
7151 hardcode_shlibpath_var=no
7158 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7159 # support. Future versions do this automatically, but an explicit c++rt0.o
7160 # does not break anything, and helps significantly (at the cost of a little
7163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7164 hardcode_libdir_flag_spec='-R$libdir'
7166 hardcode_shlibpath_var=no
7169 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7171 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7173 hardcode_minus_L=yes
7174 hardcode_shlibpath_var=no
7177 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7178 freebsd* | kfreebsd*-gnu)
7179 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7180 hardcode_libdir_flag_spec='-R$libdir'
7182 hardcode_shlibpath_var=no
7186 if test "$GCC" = yes; then
7187 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'
7189 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'
7191 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7192 hardcode_libdir_separator=:
7195 # hardcode_minus_L: Not really in the search PATH,
7196 # but as the default location of the library.
7197 hardcode_minus_L=yes
7198 export_dynamic_flag_spec='${wl}-E'
7202 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7205 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7208 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7214 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7217 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7221 if test "$with_gnu_ld" = no; then
7224 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7225 hardcode_libdir_flag_spec_ld='+b $libdir'
7226 hardcode_libdir_separator=:
7228 hardcode_shlibpath_var=no
7231 hardcode_libdir_flag_spec='-L$libdir'
7233 hardcode_shlibpath_var=no
7235 # hardcode_minus_L: Not really in the search PATH,
7236 # but as the default location of the library.
7237 hardcode_minus_L=yes
7240 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7241 hardcode_libdir_separator=:
7243 export_dynamic_flag_spec='${wl}-E'
7245 # hardcode_minus_L: Not really in the search PATH,
7246 # but as the default location of the library.
7247 hardcode_minus_L=yes
7253 irix5* | irix6* | nonstopux*)
7254 if test "$GCC" = yes; then
7255 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'
7257 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'
7258 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7260 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7261 hardcode_libdir_separator=:
7262 link_all_deplibs=yes
7265 netbsd* | knetbsd*-gnu)
7266 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7269 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7271 hardcode_libdir_flag_spec='-R$libdir'
7273 hardcode_shlibpath_var=no
7277 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7279 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7280 hardcode_libdir_separator=:
7281 hardcode_shlibpath_var=no
7286 hardcode_shlibpath_var=no
7287 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7288 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7289 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7290 export_dynamic_flag_spec='${wl}-E'
7293 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7294 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7295 hardcode_libdir_flag_spec='-R$libdir'
7298 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7299 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7306 hardcode_libdir_flag_spec='-L$libdir'
7307 hardcode_minus_L=yes
7308 allow_undefined_flag=unsupported
7309 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'
7310 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7314 if test "$GCC" = yes; then
7315 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7316 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'
7318 allow_undefined_flag=' -expect_unresolved \*'
7319 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'
7321 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7322 hardcode_libdir_separator=:
7325 osf4* | osf5*) # as osf3* with the addition of -msym flag
7326 if test "$GCC" = yes; then
7327 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7328 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'
7329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7331 allow_undefined_flag=' -expect_unresolved \*'
7332 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'
7333 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7334 $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'
7336 # Both c and cxx compiler support -rpath directly
7337 hardcode_libdir_flag_spec='-rpath $libdir'
7339 hardcode_libdir_separator=:
7343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7344 hardcode_shlibpath_var=no
7345 export_dynamic_flag_spec='${wl}-Bexport'
7346 runpath_var=LD_RUN_PATH
7347 hardcode_runpath_var=yes
7351 no_undefined_flag=' -z text'
7352 if test "$GCC" = yes; then
7353 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7354 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7355 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7357 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7358 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7359 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7361 hardcode_libdir_flag_spec='-R$libdir'
7362 hardcode_shlibpath_var=no
7364 solaris2.[0-5] | solaris2.[0-5].*) ;;
7365 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7366 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7368 link_all_deplibs=yes
7372 if test "x$host_vendor" = xsequent; then
7373 # Use $CC to link under sequent, because it throws in some extra .o
7374 # files that make .init and .fini sections work.
7375 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7377 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7379 hardcode_libdir_flag_spec='-L$libdir'
7381 hardcode_minus_L=yes
7382 hardcode_shlibpath_var=no
7386 case $host_vendor in
7388 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389 hardcode_direct=yes # is this really true???
7392 ## LD is ld it makes a PLAMLIB
7393 ## CC just makes a GrossModule.
7394 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7395 reload_cmds='$CC -r -o $output$reload_objs'
7399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7400 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7403 runpath_var='LD_RUN_PATH'
7404 hardcode_shlibpath_var=no
7408 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7409 hardcode_shlibpath_var=no
7410 export_dynamic_flag_spec='-Bexport'
7414 if test -d /usr/nec; then
7415 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7416 hardcode_shlibpath_var=no
7417 runpath_var=LD_RUN_PATH
7418 hardcode_runpath_var=yes
7424 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7427 hardcode_shlibpath_var=no
7428 hardcode_runpath_var=yes
7429 runpath_var=LD_RUN_PATH
7432 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7433 no_undefined_flag='${wl}-z ${wl}text'
7434 if test "$GCC" = yes; then
7435 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7437 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7439 runpath_var='LD_RUN_PATH'
7440 hardcode_shlibpath_var=no
7444 no_undefined_flag=' -z text'
7445 # $CC -shared without GNU ld will not create a library from C++
7446 # object files and a static libstdc++, better avoid it by now
7447 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7448 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7449 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7450 hardcode_libdir_flag_spec=
7451 hardcode_shlibpath_var=no
7452 runpath_var='LD_RUN_PATH'
7456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7457 hardcode_libdir_flag_spec='-L$libdir'
7458 hardcode_shlibpath_var=no
7467 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7468 echo "${ECHO_T}$ld_shlibs" >&6
7469 test "$ld_shlibs" = no && can_build_shared=no
7471 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7472 if test "$GCC" = yes; then
7473 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7477 # Do we need to explicitly link libc?
7479 case "x$archive_cmds_need_lc" in
7481 # Assume -lc should be added
7482 archive_cmds_need_lc=yes
7484 if test "$enable_shared" = yes && test "$GCC" = yes; then
7485 case $archive_cmds in
7487 # FIXME: we may have to deal with multi-command sequences.
7490 # Test whether the compiler implicitly links with -lc since on some
7491 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7492 # to ld, don't add -lc before -lgcc.
7493 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7494 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7496 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7499 (eval $ac_compile) 2>&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7502 (exit $ac_status); } 2>conftest.err; then
7505 libobjs=conftest.$ac_objext
7507 wl=$lt_prog_compiler_wl
7513 lt_save_allow_undefined_flag=$allow_undefined_flag
7514 allow_undefined_flag=
7515 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7516 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }
7521 archive_cmds_need_lc=no
7523 archive_cmds_need_lc=yes
7525 allow_undefined_flag=$lt_save_allow_undefined_flag
7527 cat conftest.err 1>&5
7530 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7531 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7538 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7539 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7541 libname_spec='lib$name'
7549 shlibpath_overrides_runpath=unknown
7551 dynamic_linker="$host_os ld.so"
7552 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7553 if test "$GCC" = yes; then
7554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7555 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7556 # if the path contains ";" then we assume it to be the separator
7557 # otherwise default to the standard path separator (i.e. ":") - it is
7558 # assumed that no part of a normal pathname contains ";" but that should
7559 # okay in the real world where ";" in dirpaths is itself problematic.
7560 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7565 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7567 need_lib_prefix=unknown
7568 hardcode_into_libs=no
7570 # when you set need_version to no, make sure it does not cause -set_version
7571 # flags to be left without arguments
7572 need_version=unknown
7577 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7578 shlibpath_var=LIBPATH
7580 # AIX 3 has no versioning support, so we append a major version to the name.
7581 soname_spec='${libname}${release}${shared_ext}$major'
7588 hardcode_into_libs=yes
7589 if test "$host_cpu" = ia64; then
7590 # AIX 5 supports IA64
7591 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7592 shlibpath_var=LD_LIBRARY_PATH
7594 # With GCC up to 2.95.x, collect2 would create an import file
7595 # for dependence libraries. The import file would start with
7596 # the line `#! .'. This would cause the generated library to
7597 # depend on `.', always an invalid library. This was fixed in
7598 # development snapshots of GCC prior to 3.0.
7600 aix4 | aix4.[01] | aix4.[01].*)
7601 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7603 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7610 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7611 # soname into executable. Probably we can add versioning support to
7612 # collect2, so additional links can be useful in future.
7613 if test "$aix_use_runtimelinking" = yes; then
7614 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7615 # instead of lib<name>.a to let people know that these are not
7616 # typical AIX shared libraries.
7617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7619 # We preserve .a as extension for shared libraries through AIX4.2
7620 # and later when we are not doing run time linking.
7621 library_names_spec='${libname}${release}.a $libname.a'
7622 soname_spec='${libname}${release}${shared_ext}$major'
7624 shlibpath_var=LIBPATH
7629 library_names_spec='$libname.ixlibrary $libname.a'
7630 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7631 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'
7635 library_names_spec='${libname}${shared_ext}'
7636 dynamic_linker="$host_os ld.so"
7637 shlibpath_var=LIBRARY_PATH
7643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7644 soname_spec='${libname}${release}${shared_ext}$major'
7645 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7646 shlibpath_var=LD_LIBRARY_PATH
7647 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7648 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7649 # the default ld.so.conf also contains /usr/contrib/lib and
7650 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7651 # libtool to hard-code these into programs
7654 cygwin* | mingw* | pw32*)
7655 version_type=windows
7660 case $GCC,$host_os in
7661 yes,cygwin* | yes,mingw* | yes,pw32*)
7662 library_names_spec='$libname.dll.a'
7663 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7664 postinstall_cmds='base_file=`basename \${file}`~
7665 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7666 dldir=$destdir/`dirname \$dlpath`~
7667 test -d \$dldir || mkdir -p \$dldir~
7668 $install_prog $dir/$dlname \$dldir/$dlname'
7669 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7670 dlpath=$dir/\$dldll~
7672 shlibpath_overrides_runpath=yes
7676 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7677 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7678 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7681 # MinGW DLLs use traditional 'lib' prefix
7682 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7683 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7684 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7685 # It is most probably a Windows format PATH printed by
7686 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7687 # path with ; separators, and with drive letters. We can handle the
7688 # drive letters (cygwin fileutils understands them), so leave them,
7689 # especially as we might pass files found there to a mingw objdump,
7690 # which wouldn't understand a cygwinified path. Ahh.
7691 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7693 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7697 # pw32 DLLs use 'pw' prefix rather than 'lib'
7698 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7704 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7707 dynamic_linker='Win32 ld.exe'
7708 # FIXME: first we should search . and the directory the executable is in
7712 darwin* | rhapsody*)
7713 dynamic_linker="$host_os dyld"
7717 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7718 soname_spec='${libname}${release}${major}$shared_ext'
7719 shlibpath_overrides_runpath=yes
7720 shlibpath_var=DYLD_LIBRARY_PATH
7721 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7722 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7723 if test "$GCC" = yes; then
7724 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"`
7726 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7728 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7736 soname_spec='${libname}${release}${shared_ext}$major'
7737 shlibpath_var=LD_LIBRARY_PATH
7748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7749 soname_spec='${libname}${release}${shared_ext}$major'
7750 shlibpath_var=LD_LIBRARY_PATH
7751 shlibpath_overrides_runpath=no
7752 hardcode_into_libs=yes
7753 dynamic_linker='GNU ld.so'
7757 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7758 version_type=freebsd-$objformat
7759 case $version_type in
7761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7766 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7770 shlibpath_var=LD_LIBRARY_PATH
7773 shlibpath_overrides_runpath=yes
7775 freebsd3.01* | freebsdelf3.01*)
7776 shlibpath_overrides_runpath=yes
7777 hardcode_into_libs=yes
7780 shlibpath_overrides_runpath=no
7781 hardcode_into_libs=yes
7790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7791 soname_spec='${libname}${release}${shared_ext}$major'
7792 shlibpath_var=LD_LIBRARY_PATH
7793 hardcode_into_libs=yes
7796 hpux9* | hpux10* | hpux11*)
7797 # Give a soname corresponding to the major version so that dld.sl refuses to
7798 # link against other versions.
7805 hardcode_into_libs=yes
7806 dynamic_linker="$host_os dld.so"
7807 shlibpath_var=LD_LIBRARY_PATH
7808 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7810 soname_spec='${libname}${release}${shared_ext}$major'
7811 if test "X$HPUX_IA64_MODE" = X32; then
7812 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7814 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7816 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7820 hardcode_into_libs=yes
7821 dynamic_linker="$host_os dld.sl"
7822 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7823 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7825 soname_spec='${libname}${release}${shared_ext}$major'
7826 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7827 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7831 dynamic_linker="$host_os dld.sl"
7832 shlibpath_var=SHLIB_PATH
7833 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7835 soname_spec='${libname}${release}${shared_ext}$major'
7838 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7839 postinstall_cmds='chmod 555 $lib'
7842 irix5* | irix6* | nonstopux*)
7844 nonstopux*) version_type=nonstopux ;;
7846 if test "$lt_cv_prog_gnu_ld" = yes; then
7854 soname_spec='${libname}${release}${shared_ext}$major'
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7857 irix5* | nonstopux*)
7861 case $LD in # libtool.m4 will add one of these switches to LD
7862 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7863 libsuff= shlibsuff= libmagic=32-bit;;
7864 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7865 libsuff=32 shlibsuff=N32 libmagic=N32;;
7866 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7867 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7868 *) libsuff= shlibsuff= libmagic=never-match;;
7872 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7873 shlibpath_overrides_runpath=no
7874 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7875 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7876 hardcode_into_libs=yes
7879 # No shared lib support for Linux oldld, aout, or coff.
7880 linux*oldld* | linux*aout* | linux*coff*)
7884 # This must be Linux ELF.
7889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7890 soname_spec='${libname}${release}${shared_ext}$major'
7891 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7892 shlibpath_var=LD_LIBRARY_PATH
7893 shlibpath_overrides_runpath=no
7894 # This implies no fast_install, which is unacceptable.
7895 # Some rework will be needed to allow for fast_install
7896 # before this can be enabled.
7897 hardcode_into_libs=yes
7899 # Append ld.so.conf contents to the search path
7900 if test -f /etc/ld.so.conf; then
7901 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
7902 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
7905 # We used to test for /lib/ld.so.1 and disable shared libraries on
7906 # powerpc, because MkLinux only supported shared libraries with the
7907 # GNU dynamic linker. Since this was broken with cross compilers,
7908 # most powerpc-linux boxes support dynamic linking these days and
7909 # people can always --disable-shared, the test was removed, and we
7910 # assume the GNU/Linux dynamic linker is in use.
7911 dynamic_linker='GNU/Linux ld.so'
7918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7919 soname_spec='${libname}${release}${shared_ext}$major'
7920 shlibpath_var=LD_LIBRARY_PATH
7921 shlibpath_overrides_runpath=no
7922 hardcode_into_libs=yes
7923 dynamic_linker='GNU ld.so'
7930 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7932 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7933 dynamic_linker='NetBSD (a.out) ld.so'
7935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7936 soname_spec='${libname}${release}${shared_ext}$major'
7937 dynamic_linker='NetBSD ld.elf_so'
7939 shlibpath_var=LD_LIBRARY_PATH
7940 shlibpath_overrides_runpath=yes
7941 hardcode_into_libs=yes
7946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7947 shlibpath_var=LD_LIBRARY_PATH
7948 shlibpath_overrides_runpath=yes
7955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7956 soname_spec='${libname}${release}${shared_ext}$major'
7957 shlibpath_var=LD_LIBRARY_PATH
7958 shlibpath_overrides_runpath=yes
7965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7966 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7967 shlibpath_var=LD_LIBRARY_PATH
7968 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7970 openbsd2.[89] | openbsd2.[89].*)
7971 shlibpath_overrides_runpath=no
7974 shlibpath_overrides_runpath=yes
7978 shlibpath_overrides_runpath=yes
7983 libname_spec='$name'
7986 library_names_spec='$libname${shared_ext} $libname.a'
7987 dynamic_linker='OS/2 ld.exe'
7988 shlibpath_var=LIBPATH
7991 osf3* | osf4* | osf5*)
7995 soname_spec='${libname}${release}${shared_ext}$major'
7996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7997 shlibpath_var=LD_LIBRARY_PATH
7998 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
7999 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8004 soname_spec='${libname}${release}${shared_ext}$major'
8005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8006 shlibpath_var=LD_LIBRARY_PATH
8013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8014 soname_spec='${libname}${release}${shared_ext}$major'
8015 shlibpath_var=LD_LIBRARY_PATH
8016 shlibpath_overrides_runpath=yes
8017 hardcode_into_libs=yes
8018 # ldd complains unless libraries are executable
8019 postinstall_cmds='chmod +x $lib'
8024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8025 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8026 shlibpath_var=LD_LIBRARY_PATH
8027 shlibpath_overrides_runpath=yes
8028 if test "$with_gnu_ld" = yes; then
8034 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8037 soname_spec='${libname}${release}${shared_ext}$major'
8038 shlibpath_var=LD_LIBRARY_PATH
8039 case $host_vendor in
8041 shlibpath_overrides_runpath=no
8043 export_dynamic_flag_spec='${wl}-Blargedynsym'
8044 runpath_var=LD_RUN_PATH
8052 shlibpath_overrides_runpath=no
8053 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8059 if test -d /usr/nec ;then
8061 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8062 soname_spec='$libname${shared_ext}.$major'
8063 shlibpath_var=LD_LIBRARY_PATH
8069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8070 soname_spec='${libname}${release}${shared_ext}$major'
8071 shlibpath_var=LD_LIBRARY_PATH
8078 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8079 echo "${ECHO_T}$dynamic_linker" >&6
8080 test "$dynamic_linker" = no && can_build_shared=no
8082 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8083 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8085 if test -n "$hardcode_libdir_flag_spec" || \
8086 test -n "$runpath_var " || \
8087 test "X$hardcode_automatic"="Xyes" ; then
8089 # We can hardcode non-existant directories.
8090 if test "$hardcode_direct" != no &&
8091 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8092 # have to relink, otherwise we might link with an installed library
8093 # when we should be linking with a yet-to-be-installed one
8094 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8095 test "$hardcode_minus_L" != no; then
8096 # Linking always hardcodes the temporary library directory.
8097 hardcode_action=relink
8099 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8100 hardcode_action=immediate
8103 # We cannot hardcode anything, or else we can only hardcode existing
8105 hardcode_action=unsupported
8107 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8108 echo "${ECHO_T}$hardcode_action" >&6
8110 if test "$hardcode_action" = relink; then
8111 # Fast installation is not supported
8112 enable_fast_install=no
8113 elif test "$shlibpath_overrides_runpath" = yes ||
8114 test "$enable_shared" = no; then
8115 # Fast installation is not necessary
8116 enable_fast_install=needless
8121 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8122 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8123 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8124 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8125 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8126 echo "$as_me:$LINENO: result: yes" >&5
8127 echo "${ECHO_T}yes" >&6
8129 # FIXME - insert some real tests, host_os isn't really good enough
8132 if test -n "$STRIP" ; then
8133 striplib="$STRIP -x"
8134 echo "$as_me:$LINENO: result: yes" >&5
8135 echo "${ECHO_T}yes" >&6
8137 echo "$as_me:$LINENO: result: no" >&5
8138 echo "${ECHO_T}no" >&6
8142 echo "$as_me:$LINENO: result: no" >&5
8143 echo "${ECHO_T}no" >&6
8148 if test "x$enable_dlopen" != xyes; then
8149 enable_dlopen=unknown
8150 enable_dlopen_self=unknown
8151 enable_dlopen_self_static=unknown
8158 lt_cv_dlopen="load_add_on"
8160 lt_cv_dlopen_self=yes
8164 lt_cv_dlopen="LoadLibrary"
8169 lt_cv_dlopen="dlopen"
8174 # if libdl is installed we need to link against it
8175 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8176 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8177 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8178 echo $ECHO_N "(cached) $ECHO_C" >&6
8180 ac_check_lib_save_LIBS=$LIBS
8182 cat >conftest.$ac_ext <<_ACEOF
8185 cat confdefs.h >>conftest.$ac_ext
8186 cat >>conftest.$ac_ext <<_ACEOF
8187 /* end confdefs.h. */
8189 /* Override any gcc2 internal prototype to avoid an error. */
8193 /* We use char because int might match the return type of a gcc2
8194 builtin and then its argument prototype would still apply. */
8204 rm -f conftest.$ac_objext conftest$ac_exeext
8205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8206 (eval $ac_link) 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } &&
8213 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); }; } &&
8219 { ac_try='test -s conftest$ac_exeext'
8220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); }; }; then
8225 ac_cv_lib_dl_dlopen=yes
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8230 ac_cv_lib_dl_dlopen=no
8232 rm -f conftest.err conftest.$ac_objext \
8233 conftest$ac_exeext conftest.$ac_ext
8234 LIBS=$ac_check_lib_save_LIBS
8236 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8237 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8238 if test $ac_cv_lib_dl_dlopen = yes; then
8239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8244 lt_cv_dlopen_self=yes
8251 echo "$as_me:$LINENO: checking for shl_load" >&5
8252 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8253 if test "${ac_cv_func_shl_load+set}" = set; then
8254 echo $ECHO_N "(cached) $ECHO_C" >&6
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8262 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8264 #define shl_load innocuous_shl_load
8266 /* System header to define __stub macros and hopefully few prototypes,
8267 which can conflict with char shl_load (); below.
8268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8269 <limits.h> exists even on freestanding compilers. */
8272 # include <limits.h>
8274 # include <assert.h>
8279 /* Override any gcc2 internal prototype to avoid an error. */
8284 /* We use char because int might match the return type of a gcc2
8285 builtin and then its argument prototype would still apply. */
8287 /* The GNU C library defines this for functions which it implements
8288 to always fail with ENOSYS. Some functions are actually named
8289 something starting with __ and the normal name is an alias. */
8290 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8293 char (*f) () = shl_load;
8302 return f != shl_load;
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8309 (eval $ac_link) 2>conftest.er1
8311 grep -v '^ *+' conftest.er1 >conftest.err
8313 cat conftest.err >&5
8314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8315 (exit $ac_status); } &&
8316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); }; } &&
8322 { ac_try='test -s conftest$ac_exeext'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; }; then
8328 ac_cv_func_shl_load=yes
8330 echo "$as_me: failed program was:" >&5
8331 sed 's/^/| /' conftest.$ac_ext >&5
8333 ac_cv_func_shl_load=no
8335 rm -f conftest.err conftest.$ac_objext \
8336 conftest$ac_exeext conftest.$ac_ext
8338 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8339 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8340 if test $ac_cv_func_shl_load = yes; then
8341 lt_cv_dlopen="shl_load"
8343 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8344 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8345 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8346 echo $ECHO_N "(cached) $ECHO_C" >&6
8348 ac_check_lib_save_LIBS=$LIBS
8350 cat >conftest.$ac_ext <<_ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8357 /* Override any gcc2 internal prototype to avoid an error. */
8361 /* We use char because int might match the return type of a gcc2
8362 builtin and then its argument prototype would still apply. */
8372 rm -f conftest.$ac_objext conftest$ac_exeext
8373 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8374 (eval $ac_link) 2>conftest.er1
8376 grep -v '^ *+' conftest.er1 >conftest.err
8378 cat conftest.err >&5
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); } &&
8381 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); }; } &&
8387 { ac_try='test -s conftest$ac_exeext'
8388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); }; }; then
8393 ac_cv_lib_dld_shl_load=yes
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8398 ac_cv_lib_dld_shl_load=no
8400 rm -f conftest.err conftest.$ac_objext \
8401 conftest$ac_exeext conftest.$ac_ext
8402 LIBS=$ac_check_lib_save_LIBS
8404 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8405 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8406 if test $ac_cv_lib_dld_shl_load = yes; then
8407 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8409 echo "$as_me:$LINENO: checking for dlopen" >&5
8410 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8411 if test "${ac_cv_func_dlopen+set}" = set; then
8412 echo $ECHO_N "(cached) $ECHO_C" >&6
8414 cat >conftest.$ac_ext <<_ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8421 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8422 #define dlopen innocuous_dlopen
8424 /* System header to define __stub macros and hopefully few prototypes,
8425 which can conflict with char dlopen (); below.
8426 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8427 <limits.h> exists even on freestanding compilers. */
8430 # include <limits.h>
8432 # include <assert.h>
8437 /* Override any gcc2 internal prototype to avoid an error. */
8442 /* We use char because int might match the return type of a gcc2
8443 builtin and then its argument prototype would still apply. */
8445 /* The GNU C library defines this for functions which it implements
8446 to always fail with ENOSYS. Some functions are actually named
8447 something starting with __ and the normal name is an alias. */
8448 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8451 char (*f) () = dlopen;
8465 rm -f conftest.$ac_objext conftest$ac_exeext
8466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8467 (eval $ac_link) 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } &&
8474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8479 (exit $ac_status); }; } &&
8480 { ac_try='test -s conftest$ac_exeext'
8481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); }; }; then
8486 ac_cv_func_dlopen=yes
8488 echo "$as_me: failed program was:" >&5
8489 sed 's/^/| /' conftest.$ac_ext >&5
8491 ac_cv_func_dlopen=no
8493 rm -f conftest.err conftest.$ac_objext \
8494 conftest$ac_exeext conftest.$ac_ext
8496 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8497 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8498 if test $ac_cv_func_dlopen = yes; then
8499 lt_cv_dlopen="dlopen"
8501 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8502 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8503 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8504 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 ac_check_lib_save_LIBS=$LIBS
8508 cat >conftest.$ac_ext <<_ACEOF
8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8515 /* Override any gcc2 internal prototype to avoid an error. */
8519 /* We use char because int might match the return type of a gcc2
8520 builtin and then its argument prototype would still apply. */
8530 rm -f conftest.$ac_objext conftest$ac_exeext
8531 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8532 (eval $ac_link) 2>conftest.er1
8534 grep -v '^ *+' conftest.er1 >conftest.err
8536 cat conftest.err >&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } &&
8539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); }; } &&
8545 { ac_try='test -s conftest$ac_exeext'
8546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8550 (exit $ac_status); }; }; then
8551 ac_cv_lib_dl_dlopen=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.$ac_ext >&5
8556 ac_cv_lib_dl_dlopen=no
8558 rm -f conftest.err conftest.$ac_objext \
8559 conftest$ac_exeext conftest.$ac_ext
8560 LIBS=$ac_check_lib_save_LIBS
8562 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8563 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8564 if test $ac_cv_lib_dl_dlopen = yes; then
8565 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8567 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8568 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8569 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 ac_check_lib_save_LIBS=$LIBS
8574 cat >conftest.$ac_ext <<_ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8581 /* Override any gcc2 internal prototype to avoid an error. */
8585 /* We use char because int might match the return type of a gcc2
8586 builtin and then its argument prototype would still apply. */
8596 rm -f conftest.$ac_objext conftest$ac_exeext
8597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8598 (eval $ac_link) 2>conftest.er1
8600 grep -v '^ *+' conftest.er1 >conftest.err
8602 cat conftest.err >&5
8603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } &&
8605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8610 (exit $ac_status); }; } &&
8611 { ac_try='test -s conftest$ac_exeext'
8612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_lib_svld_dlopen=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 ac_cv_lib_svld_dlopen=no
8624 rm -f conftest.err conftest.$ac_objext \
8625 conftest$ac_exeext conftest.$ac_ext
8626 LIBS=$ac_check_lib_save_LIBS
8628 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8629 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8630 if test $ac_cv_lib_svld_dlopen = yes; then
8631 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8633 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8634 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8635 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8636 echo $ECHO_N "(cached) $ECHO_C" >&6
8638 ac_check_lib_save_LIBS=$LIBS
8640 cat >conftest.$ac_ext <<_ACEOF
8643 cat confdefs.h >>conftest.$ac_ext
8644 cat >>conftest.$ac_ext <<_ACEOF
8645 /* end confdefs.h. */
8647 /* Override any gcc2 internal prototype to avoid an error. */
8651 /* We use char because int might match the return type of a gcc2
8652 builtin and then its argument prototype would still apply. */
8662 rm -f conftest.$ac_objext conftest$ac_exeext
8663 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8664 (eval $ac_link) 2>conftest.er1
8666 grep -v '^ *+' conftest.er1 >conftest.err
8668 cat conftest.err >&5
8669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8670 (exit $ac_status); } &&
8671 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8676 (exit $ac_status); }; } &&
8677 { ac_try='test -s conftest$ac_exeext'
8678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); }; }; then
8683 ac_cv_lib_dld_dld_link=yes
8685 echo "$as_me: failed program was:" >&5
8686 sed 's/^/| /' conftest.$ac_ext >&5
8688 ac_cv_lib_dld_dld_link=no
8690 rm -f conftest.err conftest.$ac_objext \
8691 conftest$ac_exeext conftest.$ac_ext
8692 LIBS=$ac_check_lib_save_LIBS
8694 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8695 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8696 if test $ac_cv_lib_dld_dld_link = yes; then
8697 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8718 if test "x$lt_cv_dlopen" != xno; then
8724 case $lt_cv_dlopen in
8726 save_CPPFLAGS="$CPPFLAGS"
8727 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8729 save_LDFLAGS="$LDFLAGS"
8730 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8733 LIBS="$lt_cv_dlopen_libs $LIBS"
8735 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8736 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8737 if test "${lt_cv_dlopen_self+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 if test "$cross_compiling" = yes; then :
8741 lt_cv_dlopen_self=cross
8743 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8744 lt_status=$lt_dlunknown
8745 cat > conftest.$ac_ext <<EOF
8746 #line 8746 "configure"
8747 #include "confdefs.h"
8756 # define LT_DLGLOBAL RTLD_GLOBAL
8759 # define LT_DLGLOBAL DL_GLOBAL
8761 # define LT_DLGLOBAL 0
8765 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8766 find out it does not work in some platform. */
8767 #ifndef LT_DLLAZY_OR_NOW
8769 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8772 # define LT_DLLAZY_OR_NOW DL_LAZY
8775 # define LT_DLLAZY_OR_NOW RTLD_NOW
8778 # define LT_DLLAZY_OR_NOW DL_NOW
8780 # define LT_DLLAZY_OR_NOW 0
8788 extern "C" void exit (int);
8791 void fnord() { int i=42;}
8794 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8795 int status = $lt_dlunknown;
8799 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8800 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8801 /* dlclose (self); */
8807 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8808 (eval $ac_link) 2>&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8812 (./conftest; exit; ) 2>/dev/null
8815 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8816 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8817 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8820 # compilation failed
8821 lt_cv_dlopen_self=no
8828 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8829 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8831 if test "x$lt_cv_dlopen_self" = xyes; then
8832 LDFLAGS="$LDFLAGS $link_static_flag"
8833 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8834 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8835 if test "${lt_cv_dlopen_self_static+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 if test "$cross_compiling" = yes; then :
8839 lt_cv_dlopen_self_static=cross
8841 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8842 lt_status=$lt_dlunknown
8843 cat > conftest.$ac_ext <<EOF
8844 #line 8844 "configure"
8845 #include "confdefs.h"
8854 # define LT_DLGLOBAL RTLD_GLOBAL
8857 # define LT_DLGLOBAL DL_GLOBAL
8859 # define LT_DLGLOBAL 0
8863 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8864 find out it does not work in some platform. */
8865 #ifndef LT_DLLAZY_OR_NOW
8867 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8870 # define LT_DLLAZY_OR_NOW DL_LAZY
8873 # define LT_DLLAZY_OR_NOW RTLD_NOW
8876 # define LT_DLLAZY_OR_NOW DL_NOW
8878 # define LT_DLLAZY_OR_NOW 0
8886 extern "C" void exit (int);
8889 void fnord() { int i=42;}
8892 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8893 int status = $lt_dlunknown;
8897 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8898 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8899 /* dlclose (self); */
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906 (eval $ac_link) 2>&5
8908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8909 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8910 (./conftest; exit; ) 2>/dev/null
8913 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8914 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8915 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8918 # compilation failed
8919 lt_cv_dlopen_self_static=no
8926 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8927 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8930 CPPFLAGS="$save_CPPFLAGS"
8931 LDFLAGS="$save_LDFLAGS"
8936 case $lt_cv_dlopen_self in
8937 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8938 *) enable_dlopen_self=unknown ;;
8941 case $lt_cv_dlopen_self_static in
8942 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8943 *) enable_dlopen_self_static=unknown ;;
8948 # Report which librarie types wil actually be built
8949 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8950 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8951 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8952 echo "${ECHO_T}$can_build_shared" >&6
8954 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8955 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8956 test "$can_build_shared" = "no" && enable_shared=no
8958 # On AIX, shared libraries and static libraries use the same namespace, and
8959 # are all built from PIC.
8962 test "$enable_shared" = yes && enable_static=no
8963 if test -n "$RANLIB"; then
8964 archive_cmds="$archive_cmds~\$RANLIB \$lib"
8965 postinstall_cmds='$RANLIB $lib'
8970 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8971 test "$enable_shared" = yes && enable_static=no
8974 darwin* | rhapsody*)
8975 if test "$GCC" = yes; then
8976 archive_cmds_need_lc=no
8978 rhapsody* | darwin1.[012])
8979 allow_undefined_flag='-undefined suppress'
8982 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8983 allow_undefined_flag='-flat_namespace -undefined suppress'
8985 case ${MACOSX_DEPLOYMENT_TARGET} in
8987 allow_undefined_flag='-flat_namespace -undefined suppress'
8990 allow_undefined_flag='-undefined dynamic_lookup'
8996 output_verbose_link_cmd='echo'
8997 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8998 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8999 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9000 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}'
9001 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}'
9003 hardcode_automatic=yes
9004 hardcode_shlibpath_var=unsupported
9005 whole_archive_flag_spec='-all_load $convenience'
9006 link_all_deplibs=yes
9012 echo "$as_me:$LINENO: result: $enable_shared" >&5
9013 echo "${ECHO_T}$enable_shared" >&6
9015 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9016 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9017 # Make sure either enable_shared or enable_static is yes.
9018 test "$enable_shared" = yes || enable_static=yes
9019 echo "$as_me:$LINENO: result: $enable_static" >&5
9020 echo "${ECHO_T}$enable_static" >&6
9022 # The else clause should only fire when bootstrapping the
9023 # libtool distribution, otherwise you forgot to ship ltmain.sh
9024 # with your package, and you will get complaints that there are
9025 # no rules to generate ltmain.sh.
9026 if test -f "$ltmain"; then
9027 # See if we are running on zsh, and set the options which allow our commands through
9028 # without removal of \ escapes.
9029 if test -n "${ZSH_VERSION+set}" ; then
9030 setopt NO_GLOB_SUBST
9032 # Now quote all the things that may contain metacharacters while being
9033 # careful not to overquote the AC_SUBSTed values. We take copies of the
9034 # variables and quote the copies for generation of the libtool script.
9035 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9037 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9038 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9039 deplibs_check_method reload_flag reload_cmds need_locks \
9040 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9041 lt_cv_sys_global_symbol_to_c_name_address \
9042 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9043 old_postinstall_cmds old_postuninstall_cmds \
9047 lt_prog_compiler_wl \
9048 lt_prog_compiler_pic \
9049 lt_prog_compiler_static \
9050 lt_prog_compiler_no_builtin_flag \
9051 export_dynamic_flag_spec \
9052 thread_safe_flag_spec \
9053 whole_archive_flag_spec \
9054 enable_shared_with_static_runtimes \
9056 old_archive_from_new_cmds \
9061 compiler_lib_search_path \
9063 archive_expsym_cmds \
9065 postuninstall_cmds \
9066 old_archive_from_expsyms_cmds \
9067 allow_undefined_flag \
9069 export_symbols_cmds \
9070 hardcode_libdir_flag_spec \
9071 hardcode_libdir_flag_spec_ld \
9072 hardcode_libdir_separator \
9073 hardcode_automatic \
9075 module_expsym_cmds \
9076 lt_cv_prog_compiler_c_o \
9081 old_archive_cmds | \
9082 old_archive_from_new_cmds | \
9084 archive_expsym_cmds | \
9086 module_expsym_cmds | \
9087 old_archive_from_expsyms_cmds | \
9088 export_symbols_cmds | \
9089 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9090 postinstall_cmds | postuninstall_cmds | \
9091 old_postinstall_cmds | old_postuninstall_cmds | \
9092 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9093 # Double-quote double-evaled strings.
9094 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9097 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9103 *'\$0 --fallback-echo"')
9104 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9109 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9111 { echo "$as_me:$LINENO: creating $ofile" >&5
9112 echo "$as_me: creating $ofile" >&6;}
9114 cat <<__EOF__ >> "$cfgfile"
9117 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9118 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9119 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9121 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9122 # Free Software Foundation, Inc.
9124 # This file is part of GNU Libtool:
9125 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9127 # This program is free software; you can redistribute it and/or modify
9128 # it under the terms of the GNU General Public License as published by
9129 # the Free Software Foundation; either version 2 of the License, or
9130 # (at your option) any later version.
9132 # This program is distributed in the hope that it will be useful, but
9133 # WITHOUT ANY WARRANTY; without even the implied warranty of
9134 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9135 # General Public License for more details.
9137 # You should have received a copy of the GNU General Public License
9138 # along with this program; if not, write to the Free Software
9139 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9141 # As a special exception to the GNU General Public License, if you
9142 # distribute this file as part of a program that contains a
9143 # configuration script generated by Autoconf, you may include it under
9144 # the same distribution terms that you use for the rest of that program.
9146 # A sed program that does not truncate output.
9149 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9150 Xsed="$SED -e s/^X//"
9152 # The HP-UX ksh and POSIX shell print the target directory to stdout
9154 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9156 # The names of the tagged configurations supported by this script.
9159 # ### BEGIN LIBTOOL CONFIG
9161 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9163 # Shell to use when invoking shell scripts.
9166 # Whether or not to build shared libraries.
9167 build_libtool_libs=$enable_shared
9169 # Whether or not to build static libraries.
9170 build_old_libs=$enable_static
9172 # Whether or not to add -lc for building shared libraries.
9173 build_libtool_need_lc=$archive_cmds_need_lc
9175 # Whether or not to disallow shared libs when runtime libs are static
9176 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9178 # Whether or not to optimize for fast installation.
9179 fast_install=$enable_fast_install
9182 host_alias=$host_alias
9185 # An echo program that does not interpret backslashes.
9190 AR_FLAGS=$lt_AR_FLAGS
9195 # A language-specific compiler.
9198 # Is the compiler the GNU C compiler?
9204 # The linker used to build libraries.
9207 # Whether we need hard or soft links.
9210 # A BSD-compatible nm program.
9213 # A symbol stripping program
9216 # Used to examine libraries when file_magic_cmd begins "file"
9217 MAGIC_CMD=$MAGIC_CMD
9219 # Used on cygwin: DLL creation program.
9222 # Used on cygwin: object dumper.
9225 # Used on cygwin: assembler.
9228 # The name of the directory that contains temporary libtool files.
9231 # How to create reloadable object files.
9232 reload_flag=$lt_reload_flag
9233 reload_cmds=$lt_reload_cmds
9235 # How to pass a linker flag through the compiler.
9236 wl=$lt_lt_prog_compiler_wl
9238 # Object file suffix (normally "o").
9241 # Old archive suffix (normally "a").
9244 # Shared library suffix (normally ".so").
9247 # Executable file suffix (normally "").
9250 # Additional compiler flags for building library objects.
9251 pic_flag=$lt_lt_prog_compiler_pic
9254 # What is the maximum length of a command?
9255 max_cmd_len=$lt_cv_sys_max_cmd_len
9257 # Does compiler simultaneously support -c and -o options?
9258 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9260 # Must we lock files when doing compilation ?
9261 need_locks=$lt_need_locks
9263 # Do we need the lib prefix for modules?
9264 need_lib_prefix=$need_lib_prefix
9266 # Do we need a version for libraries?
9267 need_version=$need_version
9269 # Whether dlopen is supported.
9270 dlopen_support=$enable_dlopen
9272 # Whether dlopen of programs is supported.
9273 dlopen_self=$enable_dlopen_self
9275 # Whether dlopen of statically linked programs is supported.
9276 dlopen_self_static=$enable_dlopen_self_static
9278 # Compiler flag to prevent dynamic linking.
9279 link_static_flag=$lt_lt_prog_compiler_static
9281 # Compiler flag to turn off builtin functions.
9282 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9284 # Compiler flag to allow reflexive dlopens.
9285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9287 # Compiler flag to generate shared objects directly from archives.
9288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9290 # Compiler flag to generate thread-safe objects.
9291 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9293 # Library versioning type.
9294 version_type=$version_type
9296 # Format of library name prefix.
9297 libname_spec=$lt_libname_spec
9299 # List of archive names. First name is the real one, the rest are links.
9300 # The last name is the one that the linker finds with -lNAME.
9301 library_names_spec=$lt_library_names_spec
9303 # The coded name of the library, if different from the real name.
9304 soname_spec=$lt_soname_spec
9306 # Commands used to build and install an old-style archive.
9308 old_archive_cmds=$lt_old_archive_cmds
9309 old_postinstall_cmds=$lt_old_postinstall_cmds
9310 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9312 # Create an old-style archive from a shared archive.
9313 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9315 # Create a temporary old-style archive to link instead of a shared archive.
9316 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9318 # Commands used to build and install a shared archive.
9319 archive_cmds=$lt_archive_cmds
9320 archive_expsym_cmds=$lt_archive_expsym_cmds
9321 postinstall_cmds=$lt_postinstall_cmds
9322 postuninstall_cmds=$lt_postuninstall_cmds
9324 # Commands used to build a loadable module (assumed same as above if empty)
9325 module_cmds=$lt_module_cmds
9326 module_expsym_cmds=$lt_module_expsym_cmds
9328 # Commands to strip libraries.
9329 old_striplib=$lt_old_striplib
9330 striplib=$lt_striplib
9332 # Dependencies to place before the objects being linked to create a
9334 predep_objects=$lt_predep_objects
9336 # Dependencies to place after the objects being linked to create a
9338 postdep_objects=$lt_postdep_objects
9340 # Dependencies to place before the objects being linked to create a
9344 # Dependencies to place after the objects being linked to create a
9346 postdeps=$lt_postdeps
9348 # The library search path used internally by the compiler when linking
9350 compiler_lib_search_path=$lt_compiler_lib_search_path
9352 # Method to check whether dependent libraries are shared objects.
9353 deplibs_check_method=$lt_deplibs_check_method
9355 # Command to use when deplibs_check_method == file_magic.
9356 file_magic_cmd=$lt_file_magic_cmd
9358 # Flag that allows shared libraries with undefined symbols to be built.
9359 allow_undefined_flag=$lt_allow_undefined_flag
9361 # Flag that forces no undefined symbols.
9362 no_undefined_flag=$lt_no_undefined_flag
9364 # Commands used to finish a libtool library installation in a directory.
9365 finish_cmds=$lt_finish_cmds
9367 # Same as above, but a single script fragment to be evaled but not shown.
9368 finish_eval=$lt_finish_eval
9370 # Take the output of nm and produce a listing of raw symbols and C names.
9371 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9373 # Transform the output of nm in a proper C declaration
9374 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9376 # Transform the output of nm in a C name address pair
9377 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9379 # This is the shared library runtime path variable.
9380 runpath_var=$runpath_var
9382 # This is the shared library path variable.
9383 shlibpath_var=$shlibpath_var
9385 # Is shlibpath searched before the hard-coded library search path?
9386 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9388 # How to hardcode a shared library path into an executable.
9389 hardcode_action=$hardcode_action
9391 # Whether we should hardcode library paths into libraries.
9392 hardcode_into_libs=$hardcode_into_libs
9394 # Flag to hardcode \$libdir into a binary during linking.
9395 # This must work even if \$libdir does not exist.
9396 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9398 # If ld is used when linking, flag to hardcode \$libdir into
9399 # a binary during linking. This must work even if \$libdir does
9401 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9403 # Whether we need a single -rpath flag with a separated argument.
9404 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9406 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9408 hardcode_direct=$hardcode_direct
9410 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9412 hardcode_minus_L=$hardcode_minus_L
9414 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9415 # the resulting binary.
9416 hardcode_shlibpath_var=$hardcode_shlibpath_var
9418 # Set to yes if building a shared library automatically hardcodes DIR into the library
9419 # and all subsequent libraries and executables linked against it.
9420 hardcode_automatic=$hardcode_automatic
9422 # Variables whose values should be saved in libtool wrapper scripts and
9423 # restored at relink time.
9424 variables_saved_for_relink="$variables_saved_for_relink"
9426 # Whether libtool must link a program against all its dependency libraries.
9427 link_all_deplibs=$link_all_deplibs
9429 # Compile-time system search path for libraries
9430 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9432 # Run-time system search path for libraries
9433 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9435 # Fix the shell variable \$srcfile for the compiler.
9436 fix_srcfile_path="$fix_srcfile_path"
9438 # Set to yes if exported symbols are required.
9439 always_export_symbols=$always_export_symbols
9441 # The commands to list exported symbols.
9442 export_symbols_cmds=$lt_export_symbols_cmds
9444 # The commands to extract the exported symbol list from a shared archive.
9445 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9447 # Symbols that should not be listed in the preloaded symbols.
9448 exclude_expsyms=$lt_exclude_expsyms
9450 # Symbols that must always be exported.
9451 include_expsyms=$lt_include_expsyms
9453 # ### END LIBTOOL CONFIG
9460 cat <<\EOF >> "$cfgfile"
9462 # AIX sometimes has problems with the GCC collect2 program. For some
9463 # reason, if we set the COLLECT_NAMES environment variable, the problems
9464 # vanish in a puff of smoke.
9465 if test "X${COLLECT_NAMES+set}" != Xset; then
9467 export COLLECT_NAMES
9473 # We use sed instead of cat because bash on DJGPP gets confused if
9474 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9475 # text mode, it properly converts lines to CR/LF. This bash problem
9476 # is reportedly fixed, but why not run on old versions too?
9477 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9479 mv -f "$cfgfile" "$ofile" || \
9480 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9484 # If there is no Makefile yet, we rely on a make rule to execute
9485 # `config.status --recheck' to rerun these tests and create the
9486 # libtool script then.
9487 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9488 if test -f "$ltmain_in"; then
9489 test -f Makefile && make "$ltmain"
9495 ac_cpp='$CPP $CPPFLAGS'
9496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9503 # Check whether --with-tags or --without-tags was given.
9504 if test "${with_tags+set}" = set; then
9505 withval="$with_tags"
9509 if test -f "$ltmain" && test -n "$tagnames"; then
9510 if test ! -f "${ofile}"; then
9511 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9512 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9515 if test -z "$LTCC"; then
9516 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9517 if test -z "$LTCC"; then
9518 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9519 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9521 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9522 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9526 # Extract list of available tagged configurations in $ofile.
9527 # Note that this assumes the entire list is on one line.
9528 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9530 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9531 for tagname in $tagnames; do
9533 # Check whether tagname contains only valid characters
9534 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9536 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9537 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9538 { (exit 1); exit 1; }; }
9542 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9544 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9545 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9546 { (exit 1); exit 1; }; }
9549 # Update the list of available tags.
9550 if test -n "$tagname"; then
9551 echo appending configuration tag \"$tagname\" to $ofile
9555 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9557 ac_cpp='$CXXCPP $CPPFLAGS'
9558 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9559 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9560 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9565 archive_cmds_need_lc_CXX=no
9566 allow_undefined_flag_CXX=
9567 always_export_symbols_CXX=no
9568 archive_expsym_cmds_CXX=
9569 export_dynamic_flag_spec_CXX=
9570 hardcode_direct_CXX=no
9571 hardcode_libdir_flag_spec_CXX=
9572 hardcode_libdir_flag_spec_ld_CXX=
9573 hardcode_libdir_separator_CXX=
9574 hardcode_minus_L_CXX=no
9575 hardcode_automatic_CXX=no
9577 module_expsym_cmds_CXX=
9578 link_all_deplibs_CXX=unknown
9579 old_archive_cmds_CXX=$old_archive_cmds
9580 no_undefined_flag_CXX=
9581 whole_archive_flag_spec_CXX=
9582 enable_shared_with_static_runtimes_CXX=no
9584 # Dependencies to place before and after the object being linked:
9586 postdep_objects_CXX=
9589 compiler_lib_search_path_CXX=
9591 # Source file extension for C++ test sources.
9594 # Object file extension for compiled C++ test sources.
9598 # Code to be used in simple compile tests
9599 lt_simple_compile_test_code="int some_variable = 0;\n"
9601 # Code to be used in simple link tests
9602 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9604 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9606 # If no C compiler was specified, use CC.
9609 # Allow CC to be a program name with arguments.
9613 # Allow CC to be a program name with arguments.
9618 lt_save_with_gnu_ld=$with_gnu_ld
9619 lt_save_path_LD=$lt_cv_path_LD
9620 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9621 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9623 unset lt_cv_prog_gnu_ld
9625 if test -n "${lt_cv_path_LDCXX+set}"; then
9626 lt_cv_path_LD=$lt_cv_path_LDCXX
9630 test -z "${LDCXX+set}" || LD=$LDCXX
9634 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9636 # We don't want -fno-exception wen compiling C++ code, so set the
9637 # no_builtin_flag separately
9638 if test "$GXX" = yes; then
9639 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9641 lt_prog_compiler_no_builtin_flag_CXX=
9644 if test "$GXX" = yes; then
9645 # Set up default GNU C++ configuration
9648 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9649 if test "${with_gnu_ld+set}" = set; then
9650 withval="$with_gnu_ld"
9651 test "$withval" = no || with_gnu_ld=yes
9656 if test "$GCC" = yes; then
9657 # Check if gcc -print-prog-name=ld gives a path.
9658 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9659 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9662 # gcc leaves a trailing carriage return which upsets mingw
9663 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9665 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9668 # Accept absolute paths.
9670 re_direlt='/[^/][^/]*/\.\./'
9671 # Canonicalize the pathname of ld
9672 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9673 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9674 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9676 test -z "$LD" && LD="$ac_prog"
9679 # If it fails, then pretend we aren't using GCC.
9683 # If it is relative, then search for the first ld in PATH.
9687 elif test "$with_gnu_ld" = yes; then
9688 echo "$as_me:$LINENO: checking for GNU ld" >&5
9689 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9691 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9692 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9694 if test "${lt_cv_path_LD+set}" = set; then
9695 echo $ECHO_N "(cached) $ECHO_C" >&6
9697 if test -z "$LD"; then
9698 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9699 for ac_dir in $PATH; do
9701 test -z "$ac_dir" && ac_dir=.
9702 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9703 lt_cv_path_LD="$ac_dir/$ac_prog"
9704 # Check to see if the program is GNU ld. I'd rather use --version,
9705 # but apparently some GNU ld's only accept -v.
9706 # Break only if it was the GNU/non-GNU ld that we prefer.
9707 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9708 *GNU* | *'with BFD'*)
9709 test "$with_gnu_ld" != no && break
9712 test "$with_gnu_ld" != yes && break
9719 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9724 if test -n "$LD"; then
9725 echo "$as_me:$LINENO: result: $LD" >&5
9726 echo "${ECHO_T}$LD" >&6
9728 echo "$as_me:$LINENO: result: no" >&5
9729 echo "${ECHO_T}no" >&6
9731 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9732 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9733 { (exit 1); exit 1; }; }
9734 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9735 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9736 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9737 echo $ECHO_N "(cached) $ECHO_C" >&6
9739 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9740 case `$LD -v 2>&1 </dev/null` in
9741 *GNU* | *'with BFD'*)
9742 lt_cv_prog_gnu_ld=yes
9745 lt_cv_prog_gnu_ld=no
9749 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9750 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9751 with_gnu_ld=$lt_cv_prog_gnu_ld
9755 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9756 # archiving commands below assume that GNU ld is being used.
9757 if test "$with_gnu_ld" = yes; then
9758 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9759 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'
9761 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9762 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9764 # If archive_cmds runs LD, not CC, wlarc should be empty
9765 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9766 # investigate it a little bit more. (MM)
9769 # ancient GNU ld didn't support --whole-archive et. al.
9770 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9771 grep 'no-whole-archive' > /dev/null; then
9772 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9774 whole_archive_flag_spec_CXX=
9780 # A generic and very simple default shared library creation
9781 # command for GNU C++ for the case where it uses the native
9782 # linker, instead of GNU ld. If possible, this setting should
9783 # overridden to take advantage of the native linker features on
9784 # the platform it is being used on.
9785 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9788 # Commands to make compiler produce verbose output that lists
9789 # what "hidden" libraries, object files and flags are used when
9790 # linking a shared library.
9791 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9799 # PORTME: fill in a description of your system's C++ link characteristics
9800 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9801 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9805 # FIXME: insert proper C++ library support
9809 if test "$host_cpu" = ia64; then
9810 # On IA64, the linker does run time linking by default, so we don't
9811 # have to do anything special.
9812 aix_use_runtimelinking=no
9813 exp_sym_flag='-Bexport'
9816 aix_use_runtimelinking=no
9818 # Test if we are trying to use run time linking or normal
9819 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9820 # need to do runtime linking.
9821 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9822 for ld_flag in $LDFLAGS; do
9825 aix_use_runtimelinking=yes
9832 exp_sym_flag='-bexport'
9833 no_entry_flag='-bnoentry'
9836 # When large executables or shared objects are built, AIX ld can
9837 # have problems creating the table of contents. If linking a library
9838 # or program results in "error TOC overflow" add -mminimal-toc to
9839 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9840 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9843 hardcode_direct_CXX=yes
9844 hardcode_libdir_separator_CXX=':'
9845 link_all_deplibs_CXX=yes
9847 if test "$GXX" = yes; then
9848 case $host_os in aix4.012|aix4.012.*)
9849 # We only want to do this on AIX 4.2 and lower, the check
9850 # below for broken collect2 doesn't work under 4.3+
9851 collect2name=`${CC} -print-prog-name=collect2`
9852 if test -f "$collect2name" && \
9853 strings "$collect2name" | grep resolve_lib_name >/dev/null
9855 # We have reworked collect2
9856 hardcode_direct_CXX=yes
9858 # We have old collect2
9859 hardcode_direct_CXX=unsupported
9860 # It fails to find uninstalled libraries when the uninstalled
9861 # path is not listed in the libpath. Setting hardcode_minus_L
9862 # to unsupported forces relinking
9863 hardcode_minus_L_CXX=yes
9864 hardcode_libdir_flag_spec_CXX='-L$libdir'
9865 hardcode_libdir_separator_CXX=
9868 shared_flag='-shared'
9871 if test "$host_cpu" = ia64; then
9872 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9873 # chokes on -Wl,-G. The following line is correct:
9876 if test "$aix_use_runtimelinking" = yes; then
9877 shared_flag='${wl}-G'
9879 shared_flag='${wl}-bM:SRE'
9884 # It seems that -bexpall does not export symbols beginning with
9885 # underscore (_), so it is better to generate a list of symbols to export.
9886 always_export_symbols_CXX=yes
9887 if test "$aix_use_runtimelinking" = yes; then
9888 # Warning - without using the other runtime loading flags (-brtl),
9889 # -berok will link without error, but may produce a broken library.
9890 allow_undefined_flag_CXX='-berok'
9891 # Determine the default libpath from the value encoded in an empty executable.
9892 cat >conftest.$ac_ext <<_ACEOF
9895 cat confdefs.h >>conftest.$ac_ext
9896 cat >>conftest.$ac_ext <<_ACEOF
9897 /* end confdefs.h. */
9907 rm -f conftest.$ac_objext conftest$ac_exeext
9908 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9909 (eval $ac_link) 2>conftest.er1
9911 grep -v '^ *+' conftest.er1 >conftest.err
9913 cat conftest.err >&5
9914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9915 (exit $ac_status); } &&
9916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9921 (exit $ac_status); }; } &&
9922 { ac_try='test -s conftest$ac_exeext'
9923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9927 (exit $ac_status); }; }; then
9929 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9931 # Check for a 64-bit object if we didn't find anything.
9932 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; }
9935 echo "$as_me: failed program was:" >&5
9936 sed 's/^/| /' conftest.$ac_ext >&5
9939 rm -f conftest.err conftest.$ac_objext \
9940 conftest$ac_exeext conftest.$ac_ext
9941 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9943 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9945 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"
9947 if test "$host_cpu" = ia64; then
9948 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9949 allow_undefined_flag_CXX="-z nodefs"
9950 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"
9952 # Determine the default libpath from the value encoded in an empty executable.
9953 cat >conftest.$ac_ext <<_ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9968 rm -f conftest.$ac_objext conftest$ac_exeext
9969 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9970 (eval $ac_link) 2>conftest.er1
9972 grep -v '^ *+' conftest.er1 >conftest.err
9974 cat conftest.err >&5
9975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } &&
9977 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9982 (exit $ac_status); }; } &&
9983 { ac_try='test -s conftest$ac_exeext'
9984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9988 (exit $ac_status); }; }; then
9990 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9992 # Check for a 64-bit object if we didn't find anything.
9993 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; }
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
10000 rm -f conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10004 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10005 # Warning - without using the other run time loading flags,
10006 # -berok will link without error, but may produce a broken library.
10007 no_undefined_flag_CXX=' ${wl}-bernotok'
10008 allow_undefined_flag_CXX=' ${wl}-berok'
10009 # -bexpall does not export symbols beginning with underscore (_)
10010 always_export_symbols_CXX=yes
10011 # Exported symbols can be pulled into shared objects from archives
10012 whole_archive_flag_spec_CXX=' '
10013 archive_cmds_need_lc_CXX=yes
10014 # This is similar to how AIX traditionally builds it's shared libraries.
10015 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'
10020 case $cc_basename in
10022 # FIXME: insert proper C++ library support
10028 cygwin* | mingw* | pw32*)
10029 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10030 # as there is no search path for DLLs.
10031 hardcode_libdir_flag_spec_CXX='-L$libdir'
10032 allow_undefined_flag_CXX=unsupported
10033 always_export_symbols_CXX=no
10034 enable_shared_with_static_runtimes_CXX=yes
10036 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10037 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'
10038 # If the export-symbols file already is a .def file (1st line
10039 # is EXPORTS), use it as is; otherwise, prepend...
10040 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10041 cp $export_symbols $output_objdir/$soname.def;
10043 echo EXPORTS > $output_objdir/$soname.def;
10044 cat $export_symbols >> $output_objdir/$soname.def;
10046 $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'
10052 darwin* | rhapsody*)
10053 if test "$GXX" = yes; then
10054 archive_cmds_need_lc_CXX=no
10056 rhapsody* | darwin1.[012])
10057 allow_undefined_flag_CXX='-undefined suppress'
10060 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10061 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10063 case ${MACOSX_DEPLOYMENT_TARGET} in
10065 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10068 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10074 lt_int_apple_cc_single_mod=no
10075 output_verbose_link_cmd='echo'
10076 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10077 lt_int_apple_cc_single_mod=yes
10079 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10080 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10082 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'
10084 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10086 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10087 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10088 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}'
10090 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}'
10092 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}'
10093 hardcode_direct_CXX=no
10094 hardcode_automatic_CXX=yes
10095 hardcode_shlibpath_var_CXX=unsupported
10096 whole_archive_flag_spec_CXX='-all_load $convenience'
10097 link_all_deplibs_CXX=yes
10104 case $cc_basename in
10106 # FIXME: insert proper C++ library support
10110 # Green Hills C++ Compiler
10111 # FIXME: insert proper C++ library support
10115 # FIXME: insert proper C++ library support
10121 # C++ shared libraries reported to be fairly broken before switch to ELF
10125 archive_cmds_need_lc_CXX=no
10127 freebsd* | kfreebsd*-gnu)
10128 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10135 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10136 hardcode_libdir_separator_CXX=:
10137 export_dynamic_flag_spec_CXX='${wl}-E'
10138 hardcode_direct_CXX=yes
10139 hardcode_minus_L_CXX=yes # Not in the search PATH,
10140 # but as the default
10141 # location of the library.
10143 case $cc_basename in
10145 # FIXME: insert proper C++ library support
10149 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'
10150 # Commands to make compiler produce verbose output that lists
10151 # what "hidden" libraries, object files and flags are used when
10152 # linking a shared library.
10154 # There doesn't appear to be a way to prevent this compiler from
10155 # explicitly linking system object files so we need to strip them
10156 # from the output so that they don't get included in the library
10158 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'
10161 if test "$GXX" = yes; then
10162 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'
10164 # FIXME: insert proper C++ library support
10171 if test $with_gnu_ld = no; then
10172 case "$host_cpu" in
10174 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10175 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10176 hardcode_libdir_separator_CXX=:
10179 hardcode_libdir_flag_spec_CXX='-L$libdir'
10182 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10183 hardcode_libdir_separator_CXX=:
10184 export_dynamic_flag_spec_CXX='${wl}-E'
10188 case "$host_cpu" in
10190 hardcode_direct_CXX=no
10191 hardcode_shlibpath_var_CXX=no
10194 hardcode_direct_CXX=no
10195 hardcode_shlibpath_var_CXX=no
10196 hardcode_minus_L_CXX=yes # Not in the search PATH,
10197 # but as the default
10198 # location of the library.
10201 hardcode_direct_CXX=yes
10202 hardcode_minus_L_CXX=yes # Not in the search PATH,
10203 # but as the default
10204 # location of the library.
10208 case $cc_basename in
10210 # FIXME: insert proper C++ library support
10214 case "$host_cpu" in
10216 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10219 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10222 # Commands to make compiler produce verbose output that lists
10223 # what "hidden" libraries, object files and flags are used when
10224 # linking a shared library.
10226 # There doesn't appear to be a way to prevent this compiler from
10227 # explicitly linking system object files so we need to strip them
10228 # from the output so that they don't get included in the library
10230 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'
10233 if test "$GXX" = yes; then
10234 if test $with_gnu_ld = no; then
10235 case "$host_cpu" in
10237 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10240 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'
10245 # FIXME: insert proper C++ library support
10252 case $cc_basename in
10255 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'
10257 # Archives containing C++ object files must be created using
10258 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10259 # necessary to make sure instantiated templates are included
10261 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10264 if test "$GXX" = yes; then
10265 if test "$with_gnu_ld" = no; then
10266 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'
10268 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'
10271 link_all_deplibs_CXX=yes
10274 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10275 hardcode_libdir_separator_CXX=:
10278 case $cc_basename in
10280 # Kuck and Associates, Inc. (KAI) C++ Compiler
10282 # KCC will only create a shared library if the output file
10283 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10284 # to its proper name (with version) after linking.
10285 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'
10286 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'
10287 # Commands to make compiler produce verbose output that lists
10288 # what "hidden" libraries, object files and flags are used when
10289 # linking a shared library.
10291 # There doesn't appear to be a way to prevent this compiler from
10292 # explicitly linking system object files so we need to strip them
10293 # from the output so that they don't get included in the library
10295 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'
10297 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10298 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10300 # Archives containing C++ object files must be created using
10301 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10302 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10307 archive_cmds_need_lc_CXX=no
10308 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10309 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'
10310 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10312 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10317 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'
10319 runpath_var=LD_RUN_PATH
10320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10321 hardcode_libdir_separator_CXX=:
10323 # Commands to make compiler produce verbose output that lists
10324 # what "hidden" libraries, object files and flags are used when
10325 # linking a shared library.
10327 # There doesn't appear to be a way to prevent this compiler from
10328 # explicitly linking system object files so we need to strip them
10329 # from the output so that they don't get included in the library
10331 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'
10336 # FIXME: insert proper C++ library support
10340 # FIXME: insert proper C++ library support
10344 case $cc_basename in
10346 # FIXME: insert proper C++ library support
10350 # FIXME: insert proper C++ library support
10355 netbsd* | knetbsd*-gnu)
10356 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10357 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10359 hardcode_libdir_flag_spec_CXX='-R$libdir'
10360 hardcode_direct_CXX=yes
10361 hardcode_shlibpath_var_CXX=no
10363 # Workaround some broken pre-1.5 toolchains
10364 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10367 case $cc_basename in
10369 # Kuck and Associates, Inc. (KAI) C++ Compiler
10371 # KCC will only create a shared library if the output file
10372 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10373 # to its proper name (with version) after linking.
10374 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'
10376 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10377 hardcode_libdir_separator_CXX=:
10379 # Archives containing C++ object files must be created using
10380 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10381 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10385 # Rational C++ 2.4.1
10386 # FIXME: insert proper C++ library support
10390 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10391 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'
10393 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10394 hardcode_libdir_separator_CXX=:
10396 # Commands to make compiler produce verbose output that lists
10397 # what "hidden" libraries, object files and flags are used when
10398 # linking a shared library.
10400 # There doesn't appear to be a way to prevent this compiler from
10401 # explicitly linking system object files so we need to strip them
10402 # from the output so that they don't get included in the library
10404 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'
10407 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10408 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10409 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'
10411 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10412 hardcode_libdir_separator_CXX=:
10414 # Commands to make compiler produce verbose output that lists
10415 # what "hidden" libraries, object files and flags are used when
10416 # linking a shared library.
10417 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10420 # FIXME: insert proper C++ library support
10427 case $cc_basename in
10429 # Kuck and Associates, Inc. (KAI) C++ Compiler
10431 # KCC will only create a shared library if the output file
10432 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10433 # to its proper name (with version) after linking.
10434 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'
10436 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10437 hardcode_libdir_separator_CXX=:
10439 # Archives containing C++ object files must be created using
10440 # the KAI C++ compiler.
10441 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10444 # Rational C++ 2.4.1
10445 # FIXME: insert proper C++ library support
10449 allow_undefined_flag_CXX=' -expect_unresolved \*'
10450 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'
10451 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10452 echo "-hidden">> $lib.exp~
10453 $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~
10456 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10457 hardcode_libdir_separator_CXX=:
10459 # Commands to make compiler produce verbose output that lists
10460 # what "hidden" libraries, object files and flags are used when
10461 # linking a shared library.
10463 # There doesn't appear to be a way to prevent this compiler from
10464 # explicitly linking system object files so we need to strip them
10465 # from the output so that they don't get included in the library
10467 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'
10470 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10471 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10472 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'
10474 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10475 hardcode_libdir_separator_CXX=:
10477 # Commands to make compiler produce verbose output that lists
10478 # what "hidden" libraries, object files and flags are used when
10479 # linking a shared library.
10480 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10483 # FIXME: insert proper C++ library support
10490 # FIXME: insert proper C++ library support
10494 archive_cmds_need_lc_CXX=no
10495 case $cc_basename in
10497 # FIXME: insert proper C++ library support
10501 # FIXME: insert proper C++ library support
10507 case $cc_basename in
10510 # FIXME: insert proper C++ library support
10515 # FIXME: insert proper C++ library support
10519 # FIXME: insert proper C++ library support
10525 case $cc_basename in
10527 # Sun C++ 4.2, 5.x and Centerline C++
10528 no_undefined_flag_CXX=' -zdefs'
10529 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10530 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10531 $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'
10533 hardcode_libdir_flag_spec_CXX='-R$libdir'
10534 hardcode_shlibpath_var_CXX=no
10536 solaris2.0-5 | solaris2.0-5.*) ;;
10538 # The C++ compiler is used as linker so we must use $wl
10539 # flag to pass the commands to the underlying system
10541 # Supported since Solaris 2.6 (maybe 2.5.1?)
10542 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10545 link_all_deplibs_CXX=yes
10547 # Commands to make compiler produce verbose output that lists
10548 # what "hidden" libraries, object files and flags are used when
10549 # linking a shared library.
10551 # There doesn't appear to be a way to prevent this compiler from
10552 # explicitly linking system object files so we need to strip them
10553 # from the output so that they don't get included in the library
10555 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'
10557 # Archives containing C++ object files must be created using
10558 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10559 # necessary to make sure instantiated templates are included
10561 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10564 # Green Hills C++ Compiler
10565 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10567 # The C++ compiler must be used to create the archive.
10568 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10571 # GNU C++ compiler with Solaris linker
10572 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10573 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10574 if $CC --version | grep -v '^2\.7' > /dev/null; then
10575 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10576 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10577 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10579 # Commands to make compiler produce verbose output that lists
10580 # what "hidden" libraries, object files and flags are used when
10581 # linking a shared library.
10582 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10584 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10586 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10587 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10588 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10590 # Commands to make compiler produce verbose output that lists
10591 # what "hidden" libraries, object files and flags are used when
10592 # linking a shared library.
10593 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10596 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10601 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10602 archive_cmds_need_lc_CXX=no
10605 case $cc_basename in
10607 # NonStop-UX NCC 3.20
10608 # FIXME: insert proper C++ library support
10612 # FIXME: insert proper C++ library support
10618 # FIXME: insert proper C++ library support
10622 # FIXME: insert proper C++ library support
10626 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10627 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10628 test "$ld_shlibs_CXX" = no && can_build_shared=no
10634 cat > conftest.$ac_ext <<EOF
10638 Foo (void) { a = 0; }
10644 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10645 (eval $ac_compile) 2>&5
10647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10648 (exit $ac_status); }; then
10649 # Parse the compiler output and extract the necessary
10650 # objects, libraries and library flags.
10652 # Sentinel used to keep track of whether or not we are before
10653 # the conftest object file.
10654 pre_test_object_deps_done=no
10656 # The `*' in the case matches for architectures that use `case' in
10657 # $output_verbose_cmd can trigger glob expansion during the loop
10658 # eval without this substitution.
10659 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10661 for p in `eval $output_verbose_link_cmd`; do
10665 # Some compilers place space between "-{L,R}" and the path.
10666 # Remove the space.
10667 if test $p = "-L" \
10668 || test $p = "-R"; then
10675 if test "$pre_test_object_deps_done" = no; then
10678 # Internal compiler library paths should come after those
10679 # provided the user. The postdeps already come after the
10680 # user supplied libs so there is no need to process them.
10681 if test -z "$compiler_lib_search_path_CXX"; then
10682 compiler_lib_search_path_CXX="${prev}${p}"
10684 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10687 # The "-l" case would never come before the object being
10688 # linked, so don't bother handling this case.
10691 if test -z "$postdeps_CXX"; then
10692 postdeps_CXX="${prev}${p}"
10694 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10700 # This assumes that the test object file only shows up
10701 # once in the compiler output.
10702 if test "$p" = "conftest.$objext"; then
10703 pre_test_object_deps_done=yes
10707 if test "$pre_test_object_deps_done" = no; then
10708 if test -z "$predep_objects_CXX"; then
10709 predep_objects_CXX="$p"
10711 predep_objects_CXX="$predep_objects_CXX $p"
10714 if test -z "$postdep_objects_CXX"; then
10715 postdep_objects_CXX="$p"
10717 postdep_objects_CXX="$postdep_objects_CXX $p"
10722 *) ;; # Ignore the rest.
10730 echo "libtool.m4: error: problem compiling CXX test program"
10733 $rm -f confest.$objext
10735 case " $postdeps_CXX " in
10736 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10739 lt_prog_compiler_wl_CXX=
10740 lt_prog_compiler_pic_CXX=
10741 lt_prog_compiler_static_CXX=
10743 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10744 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10746 # C++ specific cases for pic, static, wl, etc.
10747 if test "$GXX" = yes; then
10748 lt_prog_compiler_wl_CXX='-Wl,'
10749 lt_prog_compiler_static_CXX='-static'
10753 # All AIX code is PIC.
10754 if test "$host_cpu" = ia64; then
10755 # AIX 5 now supports IA64 processor
10756 lt_prog_compiler_static_CXX='-Bstatic'
10760 # FIXME: we need at least 68020 code to build shared libraries, but
10761 # adding the `-m68020' flag to GCC prevents building anything better,
10763 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10765 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10766 # PIC is the default for these OSes.
10768 mingw* | os2* | pw32*)
10769 # This hack is so that the source file can tell whether it is being
10770 # built for inclusion in a dll (and should export symbols for example).
10771 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10773 darwin* | rhapsody*)
10774 # PIC is the default on this platform
10775 # Common symbols not allowed in MH_DYLIB files
10776 lt_prog_compiler_pic_CXX='-fno-common'
10779 # DJGPP does not support shared libraries at all
10780 lt_prog_compiler_pic_CXX=
10783 if test -d /usr/nec; then
10784 lt_prog_compiler_pic_CXX=-Kconform_pic
10788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10789 # not for PA HP-UX.
10790 case "$host_cpu" in
10794 lt_prog_compiler_pic_CXX='-fPIC'
10799 lt_prog_compiler_pic_CXX='-fPIC'
10805 # All AIX code is PIC.
10806 if test "$host_cpu" = ia64; then
10807 # AIX 5 now supports IA64 processor
10808 lt_prog_compiler_static_CXX='-Bstatic'
10810 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10814 case $cc_basename in
10816 # Green Hills C++ Compiler
10817 # _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"
10822 case $cc_basename in
10824 lt_prog_compiler_pic_CXX='-KPIC'
10827 # Green Hills C++ Compiler
10828 lt_prog_compiler_pic_CXX='-pic'
10834 freebsd* | kfreebsd*-gnu)
10835 # FreeBSD uses GNU C++
10837 hpux9* | hpux10* | hpux11*)
10838 case $cc_basename in
10840 lt_prog_compiler_wl_CXX='-Wl,'
10841 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10842 if test "$host_cpu" != ia64; then
10843 lt_prog_compiler_pic_CXX='+Z'
10847 lt_prog_compiler_wl_CXX='-Wl,'
10848 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10849 case "$host_cpu" in
10854 lt_prog_compiler_pic_CXX='+Z'
10862 irix5* | irix6* | nonstopux*)
10863 case $cc_basename in
10865 lt_prog_compiler_wl_CXX='-Wl,'
10866 lt_prog_compiler_static_CXX='-non_shared'
10867 # CC pic flag -KPIC is the default.
10874 case $cc_basename in
10877 lt_prog_compiler_wl_CXX='--backend -Wl,'
10878 lt_prog_compiler_pic_CXX='-fPIC'
10882 lt_prog_compiler_wl_CXX='-Wl,'
10883 lt_prog_compiler_pic_CXX='-KPIC'
10884 lt_prog_compiler_static_CXX='-static'
10888 # Make sure the PIC flag is empty. It appears that all Alpha
10889 # Linux and Compaq Tru64 Unix objects are PIC.
10890 lt_prog_compiler_pic_CXX=
10891 lt_prog_compiler_static_CXX='-non_shared'
10902 case $cc_basename in
10904 lt_prog_compiler_pic_CXX='-W c,exportall'
10910 netbsd* | knetbsd*-gnu)
10912 osf3* | osf4* | osf5*)
10913 case $cc_basename in
10915 lt_prog_compiler_wl_CXX='--backend -Wl,'
10918 # Rational C++ 2.4.1
10919 lt_prog_compiler_pic_CXX='-pic'
10922 # Digital/Compaq C++
10923 lt_prog_compiler_wl_CXX='-Wl,'
10924 # Make sure the PIC flag is empty. It appears that all Alpha
10925 # Linux and Compaq Tru64 Unix objects are PIC.
10926 lt_prog_compiler_pic_CXX=
10927 lt_prog_compiler_static_CXX='-non_shared'
10936 case $cc_basename in
10938 lt_prog_compiler_pic_CXX='-fPIC'
10945 case $cc_basename in
10947 # Sun C++ 4.2, 5.x and Centerline C++
10948 lt_prog_compiler_pic_CXX='-KPIC'
10949 lt_prog_compiler_static_CXX='-Bstatic'
10950 lt_prog_compiler_wl_CXX='-Qoption ld '
10953 # Green Hills C++ Compiler
10954 lt_prog_compiler_pic_CXX='-PIC'
10961 case $cc_basename in
10964 lt_prog_compiler_pic_CXX='-pic'
10965 lt_prog_compiler_static_CXX='-Bstatic'
10969 lt_prog_compiler_pic_CXX='-pic'
10976 case $cc_basename in
10978 # NonStop-UX NCC 3.20
10979 lt_prog_compiler_pic_CXX='-KPIC'
10990 lt_prog_compiler_can_build_shared_CXX=no
10995 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10996 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10999 # Check to make sure the PIC flag actually works.
11001 if test -n "$lt_prog_compiler_pic_CXX"; then
11003 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11004 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11005 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11006 echo $ECHO_N "(cached) $ECHO_C" >&6
11008 lt_prog_compiler_pic_works_CXX=no
11009 ac_outfile=conftest.$ac_objext
11010 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11011 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11012 # Insert the option either (1) after the last *FLAGS variable, or
11013 # (2) before a word containing "conftest.", or (3) at the end.
11014 # Note that $ac_compile itself does not contain backslashes and begins
11015 # with a dollar sign (not a hyphen), so the echo should work correctly.
11016 # The option is referenced via a variable to avoid confusing sed.
11017 lt_compile=`echo "$ac_compile" | $SED \
11018 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11019 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11020 -e 's:$: $lt_compiler_flag:'`
11021 (eval echo "\"\$as_me:11021: $lt_compile\"" >&5)
11022 (eval "$lt_compile" 2>conftest.err)
11024 cat conftest.err >&5
11025 echo "$as_me:11025: \$? = $ac_status" >&5
11026 if (exit $ac_status) && test -s "$ac_outfile"; then
11027 # The compiler can only warn and ignore the option if not recognized
11028 # So say no if there are warnings
11029 if test ! -s conftest.err; then
11030 lt_prog_compiler_pic_works_CXX=yes
11036 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11037 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11039 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11040 case $lt_prog_compiler_pic_CXX in
11042 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11045 lt_prog_compiler_pic_CXX=
11046 lt_prog_compiler_can_build_shared_CXX=no
11051 # For platforms which do not support PIC, -DPIC is meaningless:
11053 lt_prog_compiler_pic_CXX=
11056 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11060 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11061 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11062 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11063 echo $ECHO_N "(cached) $ECHO_C" >&6
11065 lt_cv_prog_compiler_c_o_CXX=no
11066 $rm -r conftest 2>/dev/null
11070 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11072 lt_compiler_flag="-o out/conftest2.$ac_objext"
11073 # Insert the option either (1) after the last *FLAGS variable, or
11074 # (2) before a word containing "conftest.", or (3) at the end.
11075 # Note that $ac_compile itself does not contain backslashes and begins
11076 # with a dollar sign (not a hyphen), so the echo should work correctly.
11077 lt_compile=`echo "$ac_compile" | $SED \
11078 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11079 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11080 -e 's:$: $lt_compiler_flag:'`
11081 (eval echo "\"\$as_me:11081: $lt_compile\"" >&5)
11082 (eval "$lt_compile" 2>out/conftest.err)
11084 cat out/conftest.err >&5
11085 echo "$as_me:11085: \$? = $ac_status" >&5
11086 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11088 # The compiler can only warn and ignore the option if not recognized
11089 # So say no if there are warnings
11090 if test ! -s out/conftest.err; then
11091 lt_cv_prog_compiler_c_o_CXX=yes
11096 # SGI C++ compiler will create directory out/ii_files/ for
11097 # template instantiation
11098 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11099 $rm out/* && rmdir out
11105 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11106 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11109 hard_links="nottested"
11110 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11111 # do not overwrite the value of need_locks provided by the user
11112 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11113 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11118 ln conftest.a conftest.b 2>&5 || hard_links=no
11119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11120 echo "$as_me:$LINENO: result: $hard_links" >&5
11121 echo "${ECHO_T}$hard_links" >&6
11122 if test "$hard_links" = no; then
11123 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11124 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11131 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11132 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11134 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11137 # If we're using GNU nm, then we don't want the "-C" option.
11138 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11139 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11140 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'
11142 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'
11146 export_symbols_cmds_CXX="$ltdll_cmds"
11149 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11152 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11156 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11157 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11158 test "$ld_shlibs_CXX" = no && can_build_shared=no
11160 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11161 if test "$GCC" = yes; then
11162 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11166 # Do we need to explicitly link libc?
11168 case "x$archive_cmds_need_lc_CXX" in
11170 # Assume -lc should be added
11171 archive_cmds_need_lc_CXX=yes
11173 if test "$enable_shared" = yes && test "$GCC" = yes; then
11174 case $archive_cmds_CXX in
11176 # FIXME: we may have to deal with multi-command sequences.
11179 # Test whether the compiler implicitly links with -lc since on some
11180 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11181 # to ld, don't add -lc before -lgcc.
11182 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11183 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11185 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11188 (eval $ac_compile) 2>&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } 2>conftest.err; then
11194 libobjs=conftest.$ac_objext
11196 wl=$lt_prog_compiler_wl_CXX
11202 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11203 allow_undefined_flag_CXX=
11204 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11205 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); }
11210 archive_cmds_need_lc_CXX=no
11212 archive_cmds_need_lc_CXX=yes
11214 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11216 cat conftest.err 1>&5
11219 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11220 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11227 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11228 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11229 library_names_spec=
11230 libname_spec='lib$name'
11234 postuninstall_cmds=
11238 shlibpath_overrides_runpath=unknown
11240 dynamic_linker="$host_os ld.so"
11241 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11242 if test "$GCC" = yes; then
11243 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11244 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11251 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11254 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11256 need_lib_prefix=unknown
11257 hardcode_into_libs=no
11259 # when you set need_version to no, make sure it does not cause -set_version
11260 # flags to be left without arguments
11261 need_version=unknown
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11267 shlibpath_var=LIBPATH
11269 # AIX 3 has no versioning support, so we append a major version to the name.
11270 soname_spec='${libname}${release}${shared_ext}$major'
11277 hardcode_into_libs=yes
11278 if test "$host_cpu" = ia64; then
11279 # AIX 5 supports IA64
11280 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11281 shlibpath_var=LD_LIBRARY_PATH
11283 # With GCC up to 2.95.x, collect2 would create an import file
11284 # for dependence libraries. The import file would start with
11285 # the line `#! .'. This would cause the generated library to
11286 # depend on `.', always an invalid library. This was fixed in
11287 # development snapshots of GCC prior to 3.0.
11289 aix4 | aix4.[01] | aix4.[01].*)
11290 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11292 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11295 can_build_shared=no
11299 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11300 # soname into executable. Probably we can add versioning support to
11301 # collect2, so additional links can be useful in future.
11302 if test "$aix_use_runtimelinking" = yes; then
11303 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11304 # instead of lib<name>.a to let people know that these are not
11305 # typical AIX shared libraries.
11306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11308 # We preserve .a as extension for shared libraries through AIX4.2
11309 # and later when we are not doing run time linking.
11310 library_names_spec='${libname}${release}.a $libname.a'
11311 soname_spec='${libname}${release}${shared_ext}$major'
11313 shlibpath_var=LIBPATH
11318 library_names_spec='$libname.ixlibrary $libname.a'
11319 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11320 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'
11324 library_names_spec='${libname}${shared_ext}'
11325 dynamic_linker="$host_os ld.so"
11326 shlibpath_var=LIBRARY_PATH
11332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333 soname_spec='${libname}${release}${shared_ext}$major'
11334 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11337 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11338 # the default ld.so.conf also contains /usr/contrib/lib and
11339 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11340 # libtool to hard-code these into programs
11343 cygwin* | mingw* | pw32*)
11344 version_type=windows
11349 case $GCC,$host_os in
11350 yes,cygwin* | yes,mingw* | yes,pw32*)
11351 library_names_spec='$libname.dll.a'
11352 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11353 postinstall_cmds='base_file=`basename \${file}`~
11354 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11355 dldir=$destdir/`dirname \$dlpath`~
11356 test -d \$dldir || mkdir -p \$dldir~
11357 $install_prog $dir/$dlname \$dldir/$dlname'
11358 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11359 dlpath=$dir/\$dldll~
11361 shlibpath_overrides_runpath=yes
11365 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11366 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11367 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11370 # MinGW DLLs use traditional 'lib' prefix
11371 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11372 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11373 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11374 # It is most probably a Windows format PATH printed by
11375 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11376 # path with ; separators, and with drive letters. We can handle the
11377 # drive letters (cygwin fileutils understands them), so leave them,
11378 # especially as we might pass files found there to a mingw objdump,
11379 # which wouldn't understand a cygwinified path. Ahh.
11380 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11382 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11386 # pw32 DLLs use 'pw' prefix rather than 'lib'
11387 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11393 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11396 dynamic_linker='Win32 ld.exe'
11397 # FIXME: first we should search . and the directory the executable is in
11401 darwin* | rhapsody*)
11402 dynamic_linker="$host_os dyld"
11403 version_type=darwin
11406 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11407 soname_spec='${libname}${release}${major}$shared_ext'
11408 shlibpath_overrides_runpath=yes
11409 shlibpath_var=DYLD_LIBRARY_PATH
11410 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11411 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11412 if test "$GCC" = yes; then
11413 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"`
11415 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11417 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11425 soname_spec='${libname}${release}${shared_ext}$major'
11426 shlibpath_var=LD_LIBRARY_PATH
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11438 soname_spec='${libname}${release}${shared_ext}$major'
11439 shlibpath_var=LD_LIBRARY_PATH
11440 shlibpath_overrides_runpath=no
11441 hardcode_into_libs=yes
11442 dynamic_linker='GNU ld.so'
11446 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11447 version_type=freebsd-$objformat
11448 case $version_type in
11450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11455 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11459 shlibpath_var=LD_LIBRARY_PATH
11462 shlibpath_overrides_runpath=yes
11464 freebsd3.01* | freebsdelf3.01*)
11465 shlibpath_overrides_runpath=yes
11466 hardcode_into_libs=yes
11469 shlibpath_overrides_runpath=no
11470 hardcode_into_libs=yes
11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11480 soname_spec='${libname}${release}${shared_ext}$major'
11481 shlibpath_var=LD_LIBRARY_PATH
11482 hardcode_into_libs=yes
11485 hpux9* | hpux10* | hpux11*)
11486 # Give a soname corresponding to the major version so that dld.sl refuses to
11487 # link against other versions.
11491 case "$host_cpu" in
11494 hardcode_into_libs=yes
11495 dynamic_linker="$host_os dld.so"
11496 shlibpath_var=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11498 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec='${libname}${release}${shared_ext}$major'
11500 if test "X$HPUX_IA64_MODE" = X32; then
11501 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11505 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11509 hardcode_into_libs=yes
11510 dynamic_linker="$host_os dld.sl"
11511 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11512 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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'
11515 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11516 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11520 dynamic_linker="$host_os dld.sl"
11521 shlibpath_var=SHLIB_PATH
11522 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11527 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11528 postinstall_cmds='chmod 555 $lib'
11531 irix5* | irix6* | nonstopux*)
11533 nonstopux*) version_type=nonstopux ;;
11535 if test "$lt_cv_prog_gnu_ld" = yes; then
11543 soname_spec='${libname}${release}${shared_ext}$major'
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11546 irix5* | nonstopux*)
11547 libsuff= shlibsuff=
11550 case $LD in # libtool.m4 will add one of these switches to LD
11551 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11552 libsuff= shlibsuff= libmagic=32-bit;;
11553 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11554 libsuff=32 shlibsuff=N32 libmagic=N32;;
11555 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11556 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11557 *) libsuff= shlibsuff= libmagic=never-match;;
11561 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11562 shlibpath_overrides_runpath=no
11563 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11564 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11565 hardcode_into_libs=yes
11568 # No shared lib support for Linux oldld, aout, or coff.
11569 linux*oldld* | linux*aout* | linux*coff*)
11573 # This must be Linux ELF.
11578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11579 soname_spec='${libname}${release}${shared_ext}$major'
11580 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11581 shlibpath_var=LD_LIBRARY_PATH
11582 shlibpath_overrides_runpath=no
11583 # This implies no fast_install, which is unacceptable.
11584 # Some rework will be needed to allow for fast_install
11585 # before this can be enabled.
11586 hardcode_into_libs=yes
11588 # Append ld.so.conf contents to the search path
11589 if test -f /etc/ld.so.conf; then
11590 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
11591 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
11594 # We used to test for /lib/ld.so.1 and disable shared libraries on
11595 # powerpc, because MkLinux only supported shared libraries with the
11596 # GNU dynamic linker. Since this was broken with cross compilers,
11597 # most powerpc-linux boxes support dynamic linking these days and
11598 # people can always --disable-shared, the test was removed, and we
11599 # assume the GNU/Linux dynamic linker is in use.
11600 dynamic_linker='GNU/Linux ld.so'
11607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11608 soname_spec='${libname}${release}${shared_ext}$major'
11609 shlibpath_var=LD_LIBRARY_PATH
11610 shlibpath_overrides_runpath=no
11611 hardcode_into_libs=yes
11612 dynamic_linker='GNU ld.so'
11619 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11621 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11622 dynamic_linker='NetBSD (a.out) ld.so'
11624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11625 soname_spec='${libname}${release}${shared_ext}$major'
11626 dynamic_linker='NetBSD ld.elf_so'
11628 shlibpath_var=LD_LIBRARY_PATH
11629 shlibpath_overrides_runpath=yes
11630 hardcode_into_libs=yes
11635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11636 shlibpath_var=LD_LIBRARY_PATH
11637 shlibpath_overrides_runpath=yes
11644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11645 soname_spec='${libname}${release}${shared_ext}$major'
11646 shlibpath_var=LD_LIBRARY_PATH
11647 shlibpath_overrides_runpath=yes
11654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11655 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11656 shlibpath_var=LD_LIBRARY_PATH
11657 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11659 openbsd2.[89] | openbsd2.[89].*)
11660 shlibpath_overrides_runpath=no
11663 shlibpath_overrides_runpath=yes
11667 shlibpath_overrides_runpath=yes
11672 libname_spec='$name'
11675 library_names_spec='$libname${shared_ext} $libname.a'
11676 dynamic_linker='OS/2 ld.exe'
11677 shlibpath_var=LIBPATH
11680 osf3* | osf4* | osf5*)
11684 soname_spec='${libname}${release}${shared_ext}$major'
11685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11688 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11693 soname_spec='${libname}${release}${shared_ext}$major'
11694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11695 shlibpath_var=LD_LIBRARY_PATH
11702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11703 soname_spec='${libname}${release}${shared_ext}$major'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 shlibpath_overrides_runpath=yes
11706 hardcode_into_libs=yes
11707 # ldd complains unless libraries are executable
11708 postinstall_cmds='chmod +x $lib'
11713 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11714 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11717 if test "$with_gnu_ld" = yes; then
11723 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11726 soname_spec='${libname}${release}${shared_ext}$major'
11727 shlibpath_var=LD_LIBRARY_PATH
11728 case $host_vendor in
11730 shlibpath_overrides_runpath=no
11732 export_dynamic_flag_spec='${wl}-Blargedynsym'
11733 runpath_var=LD_RUN_PATH
11741 shlibpath_overrides_runpath=no
11742 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11748 if test -d /usr/nec ;then
11750 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11751 soname_spec='$libname${shared_ext}.$major'
11752 shlibpath_var=LD_LIBRARY_PATH
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11759 soname_spec='${libname}${release}${shared_ext}$major'
11760 shlibpath_var=LD_LIBRARY_PATH
11767 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11768 echo "${ECHO_T}$dynamic_linker" >&6
11769 test "$dynamic_linker" = no && can_build_shared=no
11771 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11772 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11773 hardcode_action_CXX=
11774 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11775 test -n "$runpath_var CXX" || \
11776 test "X$hardcode_automatic_CXX"="Xyes" ; then
11778 # We can hardcode non-existant directories.
11779 if test "$hardcode_direct_CXX" != no &&
11780 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11781 # have to relink, otherwise we might link with an installed library
11782 # when we should be linking with a yet-to-be-installed one
11783 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11784 test "$hardcode_minus_L_CXX" != no; then
11785 # Linking always hardcodes the temporary library directory.
11786 hardcode_action_CXX=relink
11788 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11789 hardcode_action_CXX=immediate
11792 # We cannot hardcode anything, or else we can only hardcode existing
11794 hardcode_action_CXX=unsupported
11796 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11797 echo "${ECHO_T}$hardcode_action_CXX" >&6
11799 if test "$hardcode_action_CXX" = relink; then
11800 # Fast installation is not supported
11801 enable_fast_install=no
11802 elif test "$shlibpath_overrides_runpath" = yes ||
11803 test "$enable_shared" = no; then
11804 # Fast installation is not necessary
11805 enable_fast_install=needless
11810 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11811 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11812 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11813 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11814 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11815 echo "$as_me:$LINENO: result: yes" >&5
11816 echo "${ECHO_T}yes" >&6
11818 # FIXME - insert some real tests, host_os isn't really good enough
11821 if test -n "$STRIP" ; then
11822 striplib="$STRIP -x"
11823 echo "$as_me:$LINENO: result: yes" >&5
11824 echo "${ECHO_T}yes" >&6
11826 echo "$as_me:$LINENO: result: no" >&5
11827 echo "${ECHO_T}no" >&6
11831 echo "$as_me:$LINENO: result: no" >&5
11832 echo "${ECHO_T}no" >&6
11837 if test "x$enable_dlopen" != xyes; then
11838 enable_dlopen=unknown
11839 enable_dlopen_self=unknown
11840 enable_dlopen_self_static=unknown
11847 lt_cv_dlopen="load_add_on"
11849 lt_cv_dlopen_self=yes
11853 lt_cv_dlopen="LoadLibrary"
11858 lt_cv_dlopen="dlopen"
11863 # if libdl is installed we need to link against it
11864 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11865 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11866 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 ac_check_lib_save_LIBS=$LIBS
11871 cat >conftest.$ac_ext <<_ACEOF
11874 cat confdefs.h >>conftest.$ac_ext
11875 cat >>conftest.$ac_ext <<_ACEOF
11876 /* end confdefs.h. */
11878 /* Override any gcc2 internal prototype to avoid an error. */
11882 /* We use char because int might match the return type of a gcc2
11883 builtin and then its argument prototype would still apply. */
11893 rm -f conftest.$ac_objext conftest$ac_exeext
11894 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11895 (eval $ac_link) 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11904 (eval $ac_try) 2>&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); }; } &&
11908 { ac_try='test -s conftest$ac_exeext'
11909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11910 (eval $ac_try) 2>&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); }; }; then
11914 ac_cv_lib_dl_dlopen=yes
11916 echo "$as_me: failed program was:" >&5
11917 sed 's/^/| /' conftest.$ac_ext >&5
11919 ac_cv_lib_dl_dlopen=no
11921 rm -f conftest.err conftest.$ac_objext \
11922 conftest$ac_exeext conftest.$ac_ext
11923 LIBS=$ac_check_lib_save_LIBS
11925 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11926 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11927 if test $ac_cv_lib_dl_dlopen = yes; then
11928 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11931 lt_cv_dlopen="dyld"
11933 lt_cv_dlopen_self=yes
11940 echo "$as_me:$LINENO: checking for shl_load" >&5
11941 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11942 if test "${ac_cv_func_shl_load+set}" = set; then
11943 echo $ECHO_N "(cached) $ECHO_C" >&6
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953 #define shl_load innocuous_shl_load
11955 /* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char shl_load (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11961 # include <limits.h>
11963 # include <assert.h>
11968 /* Override any gcc2 internal prototype to avoid an error. */
11973 /* We use char because int might match the return type of a gcc2
11974 builtin and then its argument prototype would still apply. */
11976 /* The GNU C library defines this for functions which it implements
11977 to always fail with ENOSYS. Some functions are actually named
11978 something starting with __ and the normal name is an alias. */
11979 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11982 char (*f) () = shl_load;
11991 return f != shl_load;
11996 rm -f conftest.$ac_objext conftest$ac_exeext
11997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11998 (eval $ac_link) 2>conftest.er1
12000 grep -v '^ *+' conftest.er1 >conftest.err
12002 cat conftest.err >&5
12003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } &&
12005 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12007 (eval $ac_try) 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; } &&
12011 { ac_try='test -s conftest$ac_exeext'
12012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12013 (eval $ac_try) 2>&5
12015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016 (exit $ac_status); }; }; then
12017 ac_cv_func_shl_load=yes
12019 echo "$as_me: failed program was:" >&5
12020 sed 's/^/| /' conftest.$ac_ext >&5
12022 ac_cv_func_shl_load=no
12024 rm -f conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12027 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12028 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12029 if test $ac_cv_func_shl_load = yes; then
12030 lt_cv_dlopen="shl_load"
12032 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12033 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12034 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12035 echo $ECHO_N "(cached) $ECHO_C" >&6
12037 ac_check_lib_save_LIBS=$LIBS
12039 cat >conftest.$ac_ext <<_ACEOF
12042 cat confdefs.h >>conftest.$ac_ext
12043 cat >>conftest.$ac_ext <<_ACEOF
12044 /* end confdefs.h. */
12046 /* Override any gcc2 internal prototype to avoid an error. */
12050 /* We use char because int might match the return type of a gcc2
12051 builtin and then its argument prototype would still apply. */
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063 (eval $ac_link) 2>conftest.er1
12065 grep -v '^ *+' conftest.er1 >conftest.err
12067 cat conftest.err >&5
12068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069 (exit $ac_status); } &&
12070 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072 (eval $ac_try) 2>&5
12074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075 (exit $ac_status); }; } &&
12076 { ac_try='test -s conftest$ac_exeext'
12077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078 (eval $ac_try) 2>&5
12080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081 (exit $ac_status); }; }; then
12082 ac_cv_lib_dld_shl_load=yes
12084 echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12087 ac_cv_lib_dld_shl_load=no
12089 rm -f conftest.err conftest.$ac_objext \
12090 conftest$ac_exeext conftest.$ac_ext
12091 LIBS=$ac_check_lib_save_LIBS
12093 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12094 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12095 if test $ac_cv_lib_dld_shl_load = yes; then
12096 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12098 echo "$as_me:$LINENO: checking for dlopen" >&5
12099 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12100 if test "${ac_cv_func_dlopen+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12110 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12111 #define dlopen innocuous_dlopen
12113 /* System header to define __stub macros and hopefully few prototypes,
12114 which can conflict with char dlopen (); below.
12115 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12116 <limits.h> exists even on freestanding compilers. */
12119 # include <limits.h>
12121 # include <assert.h>
12126 /* Override any gcc2 internal prototype to avoid an error. */
12131 /* We use char because int might match the return type of a gcc2
12132 builtin and then its argument prototype would still apply. */
12134 /* The GNU C library defines this for functions which it implements
12135 to always fail with ENOSYS. Some functions are actually named
12136 something starting with __ and the normal name is an alias. */
12137 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12140 char (*f) () = dlopen;
12149 return f != dlopen;
12154 rm -f conftest.$ac_objext conftest$ac_exeext
12155 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12156 (eval $ac_link) 2>conftest.er1
12158 grep -v '^ *+' conftest.er1 >conftest.err
12160 cat conftest.err >&5
12161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12162 (exit $ac_status); } &&
12163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12165 (eval $ac_try) 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; } &&
12169 { ac_try='test -s conftest$ac_exeext'
12170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12171 (eval $ac_try) 2>&5
12173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12174 (exit $ac_status); }; }; then
12175 ac_cv_func_dlopen=yes
12177 echo "$as_me: failed program was:" >&5
12178 sed 's/^/| /' conftest.$ac_ext >&5
12180 ac_cv_func_dlopen=no
12182 rm -f conftest.err conftest.$ac_objext \
12183 conftest$ac_exeext conftest.$ac_ext
12185 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12186 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12187 if test $ac_cv_func_dlopen = yes; then
12188 lt_cv_dlopen="dlopen"
12190 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12191 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12192 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12193 echo $ECHO_N "(cached) $ECHO_C" >&6
12195 ac_check_lib_save_LIBS=$LIBS
12197 cat >conftest.$ac_ext <<_ACEOF
12200 cat confdefs.h >>conftest.$ac_ext
12201 cat >>conftest.$ac_ext <<_ACEOF
12202 /* end confdefs.h. */
12204 /* Override any gcc2 internal prototype to avoid an error. */
12208 /* We use char because int might match the return type of a gcc2
12209 builtin and then its argument prototype would still apply. */
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221 (eval $ac_link) 2>conftest.er1
12223 grep -v '^ *+' conftest.er1 >conftest.err
12225 cat conftest.err >&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); } &&
12228 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230 (eval $ac_try) 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; } &&
12234 { ac_try='test -s conftest$ac_exeext'
12235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236 (eval $ac_try) 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; }; then
12240 ac_cv_lib_dl_dlopen=yes
12242 echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12245 ac_cv_lib_dl_dlopen=no
12247 rm -f conftest.err conftest.$ac_objext \
12248 conftest$ac_exeext conftest.$ac_ext
12249 LIBS=$ac_check_lib_save_LIBS
12251 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12252 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12253 if test $ac_cv_lib_dl_dlopen = yes; then
12254 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12256 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12257 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12258 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12259 echo $ECHO_N "(cached) $ECHO_C" >&6
12261 ac_check_lib_save_LIBS=$LIBS
12262 LIBS="-lsvld $LIBS"
12263 cat >conftest.$ac_ext <<_ACEOF
12266 cat confdefs.h >>conftest.$ac_ext
12267 cat >>conftest.$ac_ext <<_ACEOF
12268 /* end confdefs.h. */
12270 /* Override any gcc2 internal prototype to avoid an error. */
12274 /* We use char because int might match the return type of a gcc2
12275 builtin and then its argument prototype would still apply. */
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12287 (eval $ac_link) 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } &&
12294 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12295 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12296 (eval $ac_try) 2>&5
12298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); }; } &&
12300 { ac_try='test -s conftest$ac_exeext'
12301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12302 (eval $ac_try) 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; }; then
12306 ac_cv_lib_svld_dlopen=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.$ac_ext >&5
12311 ac_cv_lib_svld_dlopen=no
12313 rm -f conftest.err conftest.$ac_objext \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12317 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12318 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12319 if test $ac_cv_lib_svld_dlopen = yes; then
12320 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12322 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12323 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12324 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_check_lib_save_LIBS=$LIBS
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12336 /* Override any gcc2 internal prototype to avoid an error. */
12340 /* We use char because int might match the return type of a gcc2
12341 builtin and then its argument prototype would still apply. */
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12353 (eval $ac_link) 2>conftest.er1
12355 grep -v '^ *+' conftest.er1 >conftest.err
12357 cat conftest.err >&5
12358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359 (exit $ac_status); } &&
12360 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12362 (eval $ac_try) 2>&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); }; } &&
12366 { ac_try='test -s conftest$ac_exeext'
12367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12368 (eval $ac_try) 2>&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); }; }; then
12372 ac_cv_lib_dld_dld_link=yes
12374 echo "$as_me: failed program was:" >&5
12375 sed 's/^/| /' conftest.$ac_ext >&5
12377 ac_cv_lib_dld_dld_link=no
12379 rm -f conftest.err conftest.$ac_objext \
12380 conftest$ac_exeext conftest.$ac_ext
12381 LIBS=$ac_check_lib_save_LIBS
12383 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12384 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12385 if test $ac_cv_lib_dld_dld_link = yes; then
12386 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12407 if test "x$lt_cv_dlopen" != xno; then
12413 case $lt_cv_dlopen in
12415 save_CPPFLAGS="$CPPFLAGS"
12416 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12418 save_LDFLAGS="$LDFLAGS"
12419 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12422 LIBS="$lt_cv_dlopen_libs $LIBS"
12424 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12425 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12426 if test "${lt_cv_dlopen_self+set}" = set; then
12427 echo $ECHO_N "(cached) $ECHO_C" >&6
12429 if test "$cross_compiling" = yes; then :
12430 lt_cv_dlopen_self=cross
12432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12433 lt_status=$lt_dlunknown
12434 cat > conftest.$ac_ext <<EOF
12435 #line 12435 "configure"
12436 #include "confdefs.h"
12445 # define LT_DLGLOBAL RTLD_GLOBAL
12448 # define LT_DLGLOBAL DL_GLOBAL
12450 # define LT_DLGLOBAL 0
12454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12455 find out it does not work in some platform. */
12456 #ifndef LT_DLLAZY_OR_NOW
12458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12461 # define LT_DLLAZY_OR_NOW DL_LAZY
12464 # define LT_DLLAZY_OR_NOW RTLD_NOW
12467 # define LT_DLLAZY_OR_NOW DL_NOW
12469 # define LT_DLLAZY_OR_NOW 0
12477 extern "C" void exit (int);
12480 void fnord() { int i=42;}
12483 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12484 int status = $lt_dlunknown;
12488 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12489 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12490 /* dlclose (self); */
12496 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12497 (eval $ac_link) 2>&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12501 (./conftest; exit; ) 2>/dev/null
12503 case x$lt_status in
12504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12506 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12509 # compilation failed
12510 lt_cv_dlopen_self=no
12517 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12518 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12520 if test "x$lt_cv_dlopen_self" = xyes; then
12521 LDFLAGS="$LDFLAGS $link_static_flag"
12522 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12523 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12524 if test "${lt_cv_dlopen_self_static+set}" = set; then
12525 echo $ECHO_N "(cached) $ECHO_C" >&6
12527 if test "$cross_compiling" = yes; then :
12528 lt_cv_dlopen_self_static=cross
12530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12531 lt_status=$lt_dlunknown
12532 cat > conftest.$ac_ext <<EOF
12533 #line 12533 "configure"
12534 #include "confdefs.h"
12543 # define LT_DLGLOBAL RTLD_GLOBAL
12546 # define LT_DLGLOBAL DL_GLOBAL
12548 # define LT_DLGLOBAL 0
12552 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12553 find out it does not work in some platform. */
12554 #ifndef LT_DLLAZY_OR_NOW
12556 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12559 # define LT_DLLAZY_OR_NOW DL_LAZY
12562 # define LT_DLLAZY_OR_NOW RTLD_NOW
12565 # define LT_DLLAZY_OR_NOW DL_NOW
12567 # define LT_DLLAZY_OR_NOW 0
12575 extern "C" void exit (int);
12578 void fnord() { int i=42;}
12581 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12582 int status = $lt_dlunknown;
12586 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12587 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12588 /* dlclose (self); */
12594 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12595 (eval $ac_link) 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12599 (./conftest; exit; ) 2>/dev/null
12601 case x$lt_status in
12602 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12603 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12604 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12607 # compilation failed
12608 lt_cv_dlopen_self_static=no
12615 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12616 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12619 CPPFLAGS="$save_CPPFLAGS"
12620 LDFLAGS="$save_LDFLAGS"
12625 case $lt_cv_dlopen_self in
12626 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12627 *) enable_dlopen_self=unknown ;;
12630 case $lt_cv_dlopen_self_static in
12631 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12632 *) enable_dlopen_self_static=unknown ;;
12637 # The else clause should only fire when bootstrapping the
12638 # libtool distribution, otherwise you forgot to ship ltmain.sh
12639 # with your package, and you will get complaints that there are
12640 # no rules to generate ltmain.sh.
12641 if test -f "$ltmain"; then
12642 # See if we are running on zsh, and set the options which allow our commands through
12643 # without removal of \ escapes.
12644 if test -n "${ZSH_VERSION+set}" ; then
12645 setopt NO_GLOB_SUBST
12647 # Now quote all the things that may contain metacharacters while being
12648 # careful not to overquote the AC_SUBSTed values. We take copies of the
12649 # variables and quote the copies for generation of the libtool script.
12650 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12652 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12653 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12654 deplibs_check_method reload_flag reload_cmds need_locks \
12655 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12656 lt_cv_sys_global_symbol_to_c_name_address \
12657 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12658 old_postinstall_cmds old_postuninstall_cmds \
12662 lt_prog_compiler_wl_CXX \
12663 lt_prog_compiler_pic_CXX \
12664 lt_prog_compiler_static_CXX \
12665 lt_prog_compiler_no_builtin_flag_CXX \
12666 export_dynamic_flag_spec_CXX \
12667 thread_safe_flag_spec_CXX \
12668 whole_archive_flag_spec_CXX \
12669 enable_shared_with_static_runtimes_CXX \
12670 old_archive_cmds_CXX \
12671 old_archive_from_new_cmds_CXX \
12672 predep_objects_CXX \
12673 postdep_objects_CXX \
12676 compiler_lib_search_path_CXX \
12678 archive_expsym_cmds_CXX \
12679 postinstall_cmds_CXX \
12680 postuninstall_cmds_CXX \
12681 old_archive_from_expsyms_cmds_CXX \
12682 allow_undefined_flag_CXX \
12683 no_undefined_flag_CXX \
12684 export_symbols_cmds_CXX \
12685 hardcode_libdir_flag_spec_CXX \
12686 hardcode_libdir_flag_spec_ld_CXX \
12687 hardcode_libdir_separator_CXX \
12688 hardcode_automatic_CXX \
12690 module_expsym_cmds_CXX \
12691 lt_cv_prog_compiler_c_o_CXX \
12692 exclude_expsyms_CXX \
12693 include_expsyms_CXX; do
12696 old_archive_cmds_CXX | \
12697 old_archive_from_new_cmds_CXX | \
12698 archive_cmds_CXX | \
12699 archive_expsym_cmds_CXX | \
12700 module_cmds_CXX | \
12701 module_expsym_cmds_CXX | \
12702 old_archive_from_expsyms_cmds_CXX | \
12703 export_symbols_cmds_CXX | \
12704 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12705 postinstall_cmds | postuninstall_cmds | \
12706 old_postinstall_cmds | old_postuninstall_cmds | \
12707 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12708 # Double-quote double-evaled strings.
12709 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12712 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12718 *'\$0 --fallback-echo"')
12719 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12725 cat <<__EOF__ >> "$cfgfile"
12726 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12728 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12730 # Shell to use when invoking shell scripts.
12733 # Whether or not to build shared libraries.
12734 build_libtool_libs=$enable_shared
12736 # Whether or not to build static libraries.
12737 build_old_libs=$enable_static
12739 # Whether or not to add -lc for building shared libraries.
12740 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12742 # Whether or not to disallow shared libs when runtime libs are static
12743 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12745 # Whether or not to optimize for fast installation.
12746 fast_install=$enable_fast_install
12749 host_alias=$host_alias
12752 # An echo program that does not interpret backslashes.
12757 AR_FLAGS=$lt_AR_FLAGS
12762 # A language-specific compiler.
12763 CC=$lt_compiler_CXX
12765 # Is the compiler the GNU C compiler?
12771 # The linker used to build libraries.
12774 # Whether we need hard or soft links.
12777 # A BSD-compatible nm program.
12780 # A symbol stripping program
12783 # Used to examine libraries when file_magic_cmd begins "file"
12784 MAGIC_CMD=$MAGIC_CMD
12786 # Used on cygwin: DLL creation program.
12789 # Used on cygwin: object dumper.
12792 # Used on cygwin: assembler.
12795 # The name of the directory that contains temporary libtool files.
12798 # How to create reloadable object files.
12799 reload_flag=$lt_reload_flag
12800 reload_cmds=$lt_reload_cmds
12802 # How to pass a linker flag through the compiler.
12803 wl=$lt_lt_prog_compiler_wl_CXX
12805 # Object file suffix (normally "o").
12806 objext="$ac_objext"
12808 # Old archive suffix (normally "a").
12811 # Shared library suffix (normally ".so").
12814 # Executable file suffix (normally "").
12817 # Additional compiler flags for building library objects.
12818 pic_flag=$lt_lt_prog_compiler_pic_CXX
12821 # What is the maximum length of a command?
12822 max_cmd_len=$lt_cv_sys_max_cmd_len
12824 # Does compiler simultaneously support -c and -o options?
12825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12827 # Must we lock files when doing compilation ?
12828 need_locks=$lt_need_locks
12830 # Do we need the lib prefix for modules?
12831 need_lib_prefix=$need_lib_prefix
12833 # Do we need a version for libraries?
12834 need_version=$need_version
12836 # Whether dlopen is supported.
12837 dlopen_support=$enable_dlopen
12839 # Whether dlopen of programs is supported.
12840 dlopen_self=$enable_dlopen_self
12842 # Whether dlopen of statically linked programs is supported.
12843 dlopen_self_static=$enable_dlopen_self_static
12845 # Compiler flag to prevent dynamic linking.
12846 link_static_flag=$lt_lt_prog_compiler_static_CXX
12848 # Compiler flag to turn off builtin functions.
12849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12851 # Compiler flag to allow reflexive dlopens.
12852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12854 # Compiler flag to generate shared objects directly from archives.
12855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12857 # Compiler flag to generate thread-safe objects.
12858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12860 # Library versioning type.
12861 version_type=$version_type
12863 # Format of library name prefix.
12864 libname_spec=$lt_libname_spec
12866 # List of archive names. First name is the real one, the rest are links.
12867 # The last name is the one that the linker finds with -lNAME.
12868 library_names_spec=$lt_library_names_spec
12870 # The coded name of the library, if different from the real name.
12871 soname_spec=$lt_soname_spec
12873 # Commands used to build and install an old-style archive.
12875 old_archive_cmds=$lt_old_archive_cmds_CXX
12876 old_postinstall_cmds=$lt_old_postinstall_cmds
12877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12879 # Create an old-style archive from a shared archive.
12880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12882 # Create a temporary old-style archive to link instead of a shared archive.
12883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12885 # Commands used to build and install a shared archive.
12886 archive_cmds=$lt_archive_cmds_CXX
12887 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12888 postinstall_cmds=$lt_postinstall_cmds
12889 postuninstall_cmds=$lt_postuninstall_cmds
12891 # Commands used to build a loadable module (assumed same as above if empty)
12892 module_cmds=$lt_module_cmds_CXX
12893 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12895 # Commands to strip libraries.
12896 old_striplib=$lt_old_striplib
12897 striplib=$lt_striplib
12899 # Dependencies to place before the objects being linked to create a
12901 predep_objects=$lt_predep_objects_CXX
12903 # Dependencies to place after the objects being linked to create a
12905 postdep_objects=$lt_postdep_objects_CXX
12907 # Dependencies to place before the objects being linked to create a
12909 predeps=$lt_predeps_CXX
12911 # Dependencies to place after the objects being linked to create a
12913 postdeps=$lt_postdeps_CXX
12915 # The library search path used internally by the compiler when linking
12916 # a shared library.
12917 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12919 # Method to check whether dependent libraries are shared objects.
12920 deplibs_check_method=$lt_deplibs_check_method
12922 # Command to use when deplibs_check_method == file_magic.
12923 file_magic_cmd=$lt_file_magic_cmd
12925 # Flag that allows shared libraries with undefined symbols to be built.
12926 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12928 # Flag that forces no undefined symbols.
12929 no_undefined_flag=$lt_no_undefined_flag_CXX
12931 # Commands used to finish a libtool library installation in a directory.
12932 finish_cmds=$lt_finish_cmds
12934 # Same as above, but a single script fragment to be evaled but not shown.
12935 finish_eval=$lt_finish_eval
12937 # Take the output of nm and produce a listing of raw symbols and C names.
12938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12940 # Transform the output of nm in a proper C declaration
12941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12943 # Transform the output of nm in a C name address pair
12944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12946 # This is the shared library runtime path variable.
12947 runpath_var=$runpath_var
12949 # This is the shared library path variable.
12950 shlibpath_var=$shlibpath_var
12952 # Is shlibpath searched before the hard-coded library search path?
12953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12955 # How to hardcode a shared library path into an executable.
12956 hardcode_action=$hardcode_action_CXX
12958 # Whether we should hardcode library paths into libraries.
12959 hardcode_into_libs=$hardcode_into_libs
12961 # Flag to hardcode \$libdir into a binary during linking.
12962 # This must work even if \$libdir does not exist.
12963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12965 # If ld is used when linking, flag to hardcode \$libdir into
12966 # a binary during linking. This must work even if \$libdir does
12968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12970 # Whether we need a single -rpath flag with a separated argument.
12971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12974 # resulting binary.
12975 hardcode_direct=$hardcode_direct_CXX
12977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12978 # resulting binary.
12979 hardcode_minus_L=$hardcode_minus_L_CXX
12981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12982 # the resulting binary.
12983 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12985 # Set to yes if building a shared library automatically hardcodes DIR into the library
12986 # and all subsequent libraries and executables linked against it.
12987 hardcode_automatic=$hardcode_automatic_CXX
12989 # Variables whose values should be saved in libtool wrapper scripts and
12990 # restored at relink time.
12991 variables_saved_for_relink="$variables_saved_for_relink"
12993 # Whether libtool must link a program against all its dependency libraries.
12994 link_all_deplibs=$link_all_deplibs_CXX
12996 # Compile-time system search path for libraries
12997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12999 # Run-time system search path for libraries
13000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13002 # Fix the shell variable \$srcfile for the compiler.
13003 fix_srcfile_path="$fix_srcfile_path_CXX"
13005 # Set to yes if exported symbols are required.
13006 always_export_symbols=$always_export_symbols_CXX
13008 # The commands to list exported symbols.
13009 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13011 # The commands to extract the exported symbol list from a shared archive.
13012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13014 # Symbols that should not be listed in the preloaded symbols.
13015 exclude_expsyms=$lt_exclude_expsyms_CXX
13017 # Symbols that must always be exported.
13018 include_expsyms=$lt_include_expsyms_CXX
13020 # ### END LIBTOOL TAG CONFIG: $tagname
13026 # If there is no Makefile yet, we rely on a make rule to execute
13027 # `config.status --recheck' to rerun these tests and create the
13028 # libtool script then.
13029 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13030 if test -f "$ltmain_in"; then
13031 test -f Makefile && make "$ltmain"
13037 ac_cpp='$CPP $CPPFLAGS'
13038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13046 with_gnu_ldcxx=$with_gnu_ld
13047 with_gnu_ld=$lt_save_with_gnu_ld
13048 lt_cv_path_LDCXX=$lt_cv_path_LD
13049 lt_cv_path_LD=$lt_save_path_LD
13050 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13051 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13059 if test -n "$F77" && test "X$F77" != "Xno"; then
13062 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13063 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13064 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13067 archive_cmds_need_lc_F77=no
13068 allow_undefined_flag_F77=
13069 always_export_symbols_F77=no
13070 archive_expsym_cmds_F77=
13071 export_dynamic_flag_spec_F77=
13072 hardcode_direct_F77=no
13073 hardcode_libdir_flag_spec_F77=
13074 hardcode_libdir_flag_spec_ld_F77=
13075 hardcode_libdir_separator_F77=
13076 hardcode_minus_L_F77=no
13077 hardcode_automatic_F77=no
13079 module_expsym_cmds_F77=
13080 link_all_deplibs_F77=unknown
13081 old_archive_cmds_F77=$old_archive_cmds
13082 no_undefined_flag_F77=
13083 whole_archive_flag_spec_F77=
13084 enable_shared_with_static_runtimes_F77=no
13086 # Source file extension for f77 test sources.
13089 # Object file extension for compiled f77 test sources.
13093 # Code to be used in simple compile tests
13094 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13096 # Code to be used in simple link tests
13097 lt_simple_link_test_code=" program t\n end\n"
13099 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13101 # If no C compiler was specified, use CC.
13104 # Allow CC to be a program name with arguments.
13108 # Allow CC to be a program name with arguments.
13113 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13115 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13116 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13117 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13118 echo "${ECHO_T}$can_build_shared" >&6
13120 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13121 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13122 test "$can_build_shared" = "no" && enable_shared=no
13124 # On AIX, shared libraries and static libraries use the same namespace, and
13125 # are all built from PIC.
13128 test "$enable_shared" = yes && enable_static=no
13129 if test -n "$RANLIB"; then
13130 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13131 postinstall_cmds='$RANLIB $lib'
13135 test "$enable_shared" = yes && enable_static=no
13138 echo "$as_me:$LINENO: result: $enable_shared" >&5
13139 echo "${ECHO_T}$enable_shared" >&6
13141 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13142 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13143 # Make sure either enable_shared or enable_static is yes.
13144 test "$enable_shared" = yes || enable_static=yes
13145 echo "$as_me:$LINENO: result: $enable_static" >&5
13146 echo "${ECHO_T}$enable_static" >&6
13148 test "$ld_shlibs_F77" = no && can_build_shared=no
13153 lt_prog_compiler_wl_F77=
13154 lt_prog_compiler_pic_F77=
13155 lt_prog_compiler_static_F77=
13157 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13158 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13160 if test "$GCC" = yes; then
13161 lt_prog_compiler_wl_F77='-Wl,'
13162 lt_prog_compiler_static_F77='-static'
13166 # All AIX code is PIC.
13167 if test "$host_cpu" = ia64; then
13168 # AIX 5 now supports IA64 processor
13169 lt_prog_compiler_static_F77='-Bstatic'
13174 # FIXME: we need at least 68020 code to build shared libraries, but
13175 # adding the `-m68020' flag to GCC prevents building anything better,
13177 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13180 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13181 # PIC is the default for these OSes.
13184 mingw* | pw32* | os2*)
13185 # This hack is so that the source file can tell whether it is being
13186 # built for inclusion in a dll (and should export symbols for example).
13187 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13190 darwin* | rhapsody*)
13191 # PIC is the default on this platform
13192 # Common symbols not allowed in MH_DYLIB files
13193 lt_prog_compiler_pic_F77='-fno-common'
13197 # Just because we use GCC doesn't mean we suddenly get shared libraries
13198 # on systems that don't support them.
13199 lt_prog_compiler_can_build_shared_F77=no
13204 if test -d /usr/nec; then
13205 lt_prog_compiler_pic_F77=-Kconform_pic
13210 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13211 # not for PA HP-UX.
13212 case "$host_cpu" in
13217 lt_prog_compiler_pic_F77='-fPIC'
13223 lt_prog_compiler_pic_F77='-fPIC'
13227 # PORTME Check for flag to pass linker flags through the system compiler.
13230 lt_prog_compiler_wl_F77='-Wl,'
13231 if test "$host_cpu" = ia64; then
13232 # AIX 5 now supports IA64 processor
13233 lt_prog_compiler_static_F77='-Bstatic'
13235 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13239 mingw* | pw32* | os2*)
13240 # This hack is so that the source file can tell whether it is being
13241 # built for inclusion in a dll (and should export symbols for example).
13242 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13245 hpux9* | hpux10* | hpux11*)
13246 lt_prog_compiler_wl_F77='-Wl,'
13247 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13248 # not for PA HP-UX.
13249 case "$host_cpu" in
13254 lt_prog_compiler_pic_F77='+Z'
13257 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13258 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13261 irix5* | irix6* | nonstopux*)
13262 lt_prog_compiler_wl_F77='-Wl,'
13263 # PIC (with -KPIC) is the default.
13264 lt_prog_compiler_static_F77='-non_shared'
13268 lt_prog_compiler_pic_F77='-KPIC'
13269 lt_prog_compiler_static_F77='-Bstatic'
13275 lt_prog_compiler_wl_F77='-Wl,'
13276 lt_prog_compiler_pic_F77='-KPIC'
13277 lt_prog_compiler_static_F77='-static'
13280 lt_prog_compiler_wl_F77='-Wl,'
13281 # All Alpha code is PIC.
13282 lt_prog_compiler_static_F77='-non_shared'
13287 osf3* | osf4* | osf5*)
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 # All OSF/1 code is PIC.
13290 lt_prog_compiler_static_F77='-non_shared'
13294 lt_prog_compiler_pic_F77='-Kpic'
13295 lt_prog_compiler_static_F77='-dn'
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 lt_prog_compiler_pic_F77='-KPIC'
13301 lt_prog_compiler_static_F77='-Bstatic'
13305 lt_prog_compiler_wl_F77='-Qoption ld '
13306 lt_prog_compiler_pic_F77='-PIC'
13307 lt_prog_compiler_static_F77='-Bstatic'
13310 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13311 lt_prog_compiler_wl_F77='-Wl,'
13312 lt_prog_compiler_pic_F77='-KPIC'
13313 lt_prog_compiler_static_F77='-Bstatic'
13317 if test -d /usr/nec ;then
13318 lt_prog_compiler_pic_F77='-Kconform_pic'
13319 lt_prog_compiler_static_F77='-Bstatic'
13324 lt_prog_compiler_pic_F77='-pic'
13325 lt_prog_compiler_static_F77='-Bstatic'
13329 lt_prog_compiler_can_build_shared_F77=no
13334 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13335 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13338 # Check to make sure the PIC flag actually works.
13340 if test -n "$lt_prog_compiler_pic_F77"; then
13342 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13343 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13344 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13345 echo $ECHO_N "(cached) $ECHO_C" >&6
13347 lt_prog_compiler_pic_works_F77=no
13348 ac_outfile=conftest.$ac_objext
13349 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13350 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13351 # Insert the option either (1) after the last *FLAGS variable, or
13352 # (2) before a word containing "conftest.", or (3) at the end.
13353 # Note that $ac_compile itself does not contain backslashes and begins
13354 # with a dollar sign (not a hyphen), so the echo should work correctly.
13355 # The option is referenced via a variable to avoid confusing sed.
13356 lt_compile=`echo "$ac_compile" | $SED \
13357 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13358 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13359 -e 's:$: $lt_compiler_flag:'`
13360 (eval echo "\"\$as_me:13360: $lt_compile\"" >&5)
13361 (eval "$lt_compile" 2>conftest.err)
13363 cat conftest.err >&5
13364 echo "$as_me:13364: \$? = $ac_status" >&5
13365 if (exit $ac_status) && test -s "$ac_outfile"; then
13366 # The compiler can only warn and ignore the option if not recognized
13367 # So say no if there are warnings
13368 if test ! -s conftest.err; then
13369 lt_prog_compiler_pic_works_F77=yes
13375 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13376 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13378 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13379 case $lt_prog_compiler_pic_F77 in
13381 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13384 lt_prog_compiler_pic_F77=
13385 lt_prog_compiler_can_build_shared_F77=no
13390 # For platforms which do not support PIC, -DPIC is meaningless:
13392 lt_prog_compiler_pic_F77=
13395 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13399 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13400 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13401 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13402 echo $ECHO_N "(cached) $ECHO_C" >&6
13404 lt_cv_prog_compiler_c_o_F77=no
13405 $rm -r conftest 2>/dev/null
13409 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13411 lt_compiler_flag="-o out/conftest2.$ac_objext"
13412 # Insert the option either (1) after the last *FLAGS variable, or
13413 # (2) before a word containing "conftest.", or (3) at the end.
13414 # Note that $ac_compile itself does not contain backslashes and begins
13415 # with a dollar sign (not a hyphen), so the echo should work correctly.
13416 lt_compile=`echo "$ac_compile" | $SED \
13417 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13418 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13419 -e 's:$: $lt_compiler_flag:'`
13420 (eval echo "\"\$as_me:13420: $lt_compile\"" >&5)
13421 (eval "$lt_compile" 2>out/conftest.err)
13423 cat out/conftest.err >&5
13424 echo "$as_me:13424: \$? = $ac_status" >&5
13425 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13427 # The compiler can only warn and ignore the option if not recognized
13428 # So say no if there are warnings
13429 if test ! -s out/conftest.err; then
13430 lt_cv_prog_compiler_c_o_F77=yes
13435 # SGI C++ compiler will create directory out/ii_files/ for
13436 # template instantiation
13437 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13438 $rm out/* && rmdir out
13444 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13445 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13448 hard_links="nottested"
13449 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13450 # do not overwrite the value of need_locks provided by the user
13451 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13452 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13457 ln conftest.a conftest.b 2>&5 || hard_links=no
13458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13459 echo "$as_me:$LINENO: result: $hard_links" >&5
13460 echo "${ECHO_T}$hard_links" >&6
13461 if test "$hard_links" = no; then
13462 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13463 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13470 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13471 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13474 allow_undefined_flag_F77=
13475 enable_shared_with_static_runtimes_F77=no
13477 archive_expsym_cmds_F77=
13478 old_archive_From_new_cmds_F77=
13479 old_archive_from_expsyms_cmds_F77=
13480 export_dynamic_flag_spec_F77=
13481 whole_archive_flag_spec_F77=
13482 thread_safe_flag_spec_F77=
13483 hardcode_libdir_flag_spec_F77=
13484 hardcode_libdir_flag_spec_ld_F77=
13485 hardcode_libdir_separator_F77=
13486 hardcode_direct_F77=no
13487 hardcode_minus_L_F77=no
13488 hardcode_shlibpath_var_F77=unsupported
13489 link_all_deplibs_F77=unknown
13490 hardcode_automatic_F77=no
13492 module_expsym_cmds_F77=
13493 always_export_symbols_F77=no
13494 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13495 # include_expsyms should be a list of space-separated symbols to be *always*
13496 # included in the symbol list
13497 include_expsyms_F77=
13498 # exclude_expsyms can be an extended regexp of symbols to exclude
13499 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13500 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13501 # as well as any symbol that contains `d'.
13502 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13503 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13504 # platforms (ab)use it in PIC code, but their linkers get confused if
13505 # the symbol is explicitly referenced. Since portable code cannot
13506 # rely on this symbol name, it's probably fine to never include it in
13507 # preloaded symbol tables.
13508 extract_expsyms_cmds=
13511 cygwin* | mingw* | pw32*)
13512 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13513 # When not using gcc, we currently assume that we are using
13514 # Microsoft Visual C++.
13515 if test "$GCC" != yes; then
13525 if test "$with_gnu_ld" = yes; then
13526 # If archive_cmds runs LD, not CC, wlarc should be empty
13529 # See if GNU ld supports shared libraries.
13531 aix3* | aix4* | aix5*)
13532 # On AIX/PPC, the GNU linker is very broken
13533 if test "$host_cpu" != ia64; then
13537 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13538 *** to be unable to reliably create shared libraries on AIX.
13539 *** Therefore, libtool is disabling shared libraries support. If you
13540 *** really care for shared libraries, you may want to modify your PATH
13541 *** so that a non-GNU linker is found, and then restart.
13548 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)'
13549 hardcode_libdir_flag_spec_F77='-L$libdir'
13550 hardcode_minus_L_F77=yes
13552 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13553 # that the semantics of dynamic libraries on AmigaOS, at least up
13554 # to version 4, is to share data among multiple programs linked
13555 # with the same dynamic library. Since this doesn't match the
13556 # behavior of shared libraries on other platforms, we can't use
13562 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13563 allow_undefined_flag_F77=unsupported
13564 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13565 # support --undefined. This deserves some investigation. FIXME
13566 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13572 cygwin* | mingw* | pw32*)
13573 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13574 # as there is no search path for DLLs.
13575 hardcode_libdir_flag_spec_F77='-L$libdir'
13576 allow_undefined_flag_F77=unsupported
13577 always_export_symbols_F77=no
13578 enable_shared_with_static_runtimes_F77=yes
13579 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13581 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13582 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13583 # If the export-symbols file already is a .def file (1st line
13584 # is EXPORTS), use it as is; otherwise, prepend...
13585 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13586 cp $export_symbols $output_objdir/$soname.def;
13588 echo EXPORTS > $output_objdir/$soname.def;
13589 cat $export_symbols >> $output_objdir/$soname.def;
13591 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13597 netbsd* | knetbsd*-gnu)
13598 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13599 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13602 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13603 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13608 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13613 *** create shared libraries on Solaris systems. Therefore, libtool
13614 *** is disabling shared libraries support. We urge you to upgrade GNU
13615 *** binutils to release 2.9.1 or newer. Another option is to modify
13616 *** your PATH or compiler configuration so that the native linker is
13617 *** used, and then restart.
13620 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13622 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13629 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13631 hardcode_direct_F77=yes
13632 hardcode_shlibpath_var_F77=no
13636 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13637 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638 archive_cmds_F77="$tmp_archive_cmds"
13639 supports_anon_versioning=no
13640 case `$LD -v 2>/dev/null` in
13641 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13642 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13643 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13644 *\ 2.11.*) ;; # other 2.11 versions
13645 *) supports_anon_versioning=yes ;;
13647 if test $supports_anon_versioning = yes; then
13648 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13649 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13650 $echo "local: *; };" >> $output_objdir/$libname.ver~
13651 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13653 archive_expsym_cmds_F77="$tmp_archive_cmds"
13661 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13662 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13663 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13670 if test "$ld_shlibs_F77" = yes; then
13671 runpath_var=LD_RUN_PATH
13672 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13673 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13674 # ancient GNU ld didn't support --whole-archive et. al.
13675 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13676 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13678 whole_archive_flag_spec_F77=
13682 # PORTME fill in a description of your system's linker (not GNU ld)
13685 allow_undefined_flag_F77=unsupported
13686 always_export_symbols_F77=yes
13687 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'
13688 # Note: this linker hardcodes the directories in LIBPATH if there
13689 # are no directories specified by -L.
13690 hardcode_minus_L_F77=yes
13691 if test "$GCC" = yes && test -z "$link_static_flag"; then
13692 # Neither direct hardcoding nor static linking is supported with a
13694 hardcode_direct_F77=unsupported
13699 if test "$host_cpu" = ia64; then
13700 # On IA64, the linker does run time linking by default, so we don't
13701 # have to do anything special.
13702 aix_use_runtimelinking=no
13703 exp_sym_flag='-Bexport'
13706 # If we're using GNU nm, then we don't want the "-C" option.
13707 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13708 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13709 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'
13711 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'
13713 aix_use_runtimelinking=no
13715 # Test if we are trying to use run time linking or normal
13716 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13717 # need to do runtime linking.
13718 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13719 for ld_flag in $LDFLAGS; do
13720 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13721 aix_use_runtimelinking=yes
13727 exp_sym_flag='-bexport'
13728 no_entry_flag='-bnoentry'
13731 # When large executables or shared objects are built, AIX ld can
13732 # have problems creating the table of contents. If linking a library
13733 # or program results in "error TOC overflow" add -mminimal-toc to
13734 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13735 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13737 archive_cmds_F77=''
13738 hardcode_direct_F77=yes
13739 hardcode_libdir_separator_F77=':'
13740 link_all_deplibs_F77=yes
13742 if test "$GCC" = yes; then
13743 case $host_os in aix4.012|aix4.012.*)
13744 # We only want to do this on AIX 4.2 and lower, the check
13745 # below for broken collect2 doesn't work under 4.3+
13746 collect2name=`${CC} -print-prog-name=collect2`
13747 if test -f "$collect2name" && \
13748 strings "$collect2name" | grep resolve_lib_name >/dev/null
13750 # We have reworked collect2
13751 hardcode_direct_F77=yes
13753 # We have old collect2
13754 hardcode_direct_F77=unsupported
13755 # It fails to find uninstalled libraries when the uninstalled
13756 # path is not listed in the libpath. Setting hardcode_minus_L
13757 # to unsupported forces relinking
13758 hardcode_minus_L_F77=yes
13759 hardcode_libdir_flag_spec_F77='-L$libdir'
13760 hardcode_libdir_separator_F77=
13763 shared_flag='-shared'
13766 if test "$host_cpu" = ia64; then
13767 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13768 # chokes on -Wl,-G. The following line is correct:
13771 if test "$aix_use_runtimelinking" = yes; then
13772 shared_flag='${wl}-G'
13774 shared_flag='${wl}-bM:SRE'
13779 # It seems that -bexpall does not export symbols beginning with
13780 # underscore (_), so it is better to generate a list of symbols to export.
13781 always_export_symbols_F77=yes
13782 if test "$aix_use_runtimelinking" = yes; then
13783 # Warning - without using the other runtime loading flags (-brtl),
13784 # -berok will link without error, but may produce a broken library.
13785 allow_undefined_flag_F77='-berok'
13786 # Determine the default libpath from the value encoded in an empty executable.
13787 cat >conftest.$ac_ext <<_ACEOF
13792 rm -f conftest.$ac_objext conftest$ac_exeext
13793 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13794 (eval $ac_link) 2>conftest.er1
13796 grep -v '^ *+' conftest.er1 >conftest.err
13798 cat conftest.err >&5
13799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13800 (exit $ac_status); } &&
13801 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13803 (eval $ac_try) 2>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); }; } &&
13807 { ac_try='test -s conftest$ac_exeext'
13808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13809 (eval $ac_try) 2>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); }; }; then
13814 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13816 # Check for a 64-bit object if we didn't find anything.
13817 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; }
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13824 rm -f conftest.err conftest.$ac_objext \
13825 conftest$ac_exeext conftest.$ac_ext
13826 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13828 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13829 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"
13831 if test "$host_cpu" = ia64; then
13832 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13833 allow_undefined_flag_F77="-z nodefs"
13834 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"
13836 # Determine the default libpath from the value encoded in an empty executable.
13837 cat >conftest.$ac_ext <<_ACEOF
13842 rm -f conftest.$ac_objext conftest$ac_exeext
13843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13844 (eval $ac_link) 2>conftest.er1
13846 grep -v '^ *+' conftest.er1 >conftest.err
13848 cat conftest.err >&5
13849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850 (exit $ac_status); } &&
13851 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13853 (eval $ac_try) 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; } &&
13857 { ac_try='test -s conftest$ac_exeext'
13858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13859 (eval $ac_try) 2>&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); }; }; then
13864 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13866 # Check for a 64-bit object if we didn't find anything.
13867 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; }
13870 echo "$as_me: failed program was:" >&5
13871 sed 's/^/| /' conftest.$ac_ext >&5
13874 rm -f conftest.err conftest.$ac_objext \
13875 conftest$ac_exeext conftest.$ac_ext
13876 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13878 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13879 # Warning - without using the other run time loading flags,
13880 # -berok will link without error, but may produce a broken library.
13881 no_undefined_flag_F77=' ${wl}-bernotok'
13882 allow_undefined_flag_F77=' ${wl}-berok'
13883 # -bexpall does not export symbols beginning with underscore (_)
13884 always_export_symbols_F77=yes
13885 # Exported symbols can be pulled into shared objects from archives
13886 whole_archive_flag_spec_F77=' '
13887 archive_cmds_need_lc_F77=yes
13888 # This is similar to how AIX traditionally builds it's shared libraries.
13889 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'
13895 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)'
13896 hardcode_libdir_flag_spec_F77='-L$libdir'
13897 hardcode_minus_L_F77=yes
13898 # see comment about different semantics on the GNU ld section
13903 export_dynamic_flag_spec_F77=-rdynamic
13906 cygwin* | mingw* | pw32*)
13907 # When not using gcc, we currently assume that we are using
13908 # Microsoft Visual C++.
13909 # hardcode_libdir_flag_spec is actually meaningless, as there is
13910 # no search path for DLLs.
13911 hardcode_libdir_flag_spec_F77=' '
13912 allow_undefined_flag_F77=unsupported
13913 # Tell ltmain to make .lib files, not .a files.
13915 # Tell ltmain to make .dll files, not .so files.
13917 # FIXME: Setting linknames here is a bad hack.
13918 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13919 # The linker will automatically build a .lib file if we build a DLL.
13920 old_archive_From_new_cmds_F77='true'
13921 # FIXME: Should let the user specify the lib program.
13922 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13923 fix_srcfile_path='`cygpath -w "$srcfile"`'
13924 enable_shared_with_static_runtimes_F77=yes
13927 darwin* | rhapsody*)
13928 if test "$GXX" = yes ; then
13929 archive_cmds_need_lc_F77=no
13931 rhapsody* | darwin1.[012])
13932 allow_undefined_flag_F77='-undefined suppress'
13935 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13936 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13938 case ${MACOSX_DEPLOYMENT_TARGET} in
13940 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13943 allow_undefined_flag_F77='-undefined dynamic_lookup'
13949 lt_int_apple_cc_single_mod=no
13950 output_verbose_link_cmd='echo'
13951 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13952 lt_int_apple_cc_single_mod=yes
13954 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13955 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13957 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'
13959 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13960 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13961 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13962 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}'
13964 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}'
13966 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}'
13967 hardcode_direct_F77=no
13968 hardcode_automatic_F77=yes
13969 hardcode_shlibpath_var_F77=unsupported
13970 whole_archive_flag_spec_F77='-all_load $convenience'
13971 link_all_deplibs_F77=yes
13978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13979 hardcode_libdir_flag_spec_F77='-L$libdir'
13980 hardcode_shlibpath_var_F77=no
13987 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13988 # support. Future versions do this automatically, but an explicit c++rt0.o
13989 # does not break anything, and helps significantly (at the cost of a little
13992 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13993 hardcode_libdir_flag_spec_F77='-R$libdir'
13994 hardcode_direct_F77=yes
13995 hardcode_shlibpath_var_F77=no
13998 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14000 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14001 hardcode_direct_F77=yes
14002 hardcode_minus_L_F77=yes
14003 hardcode_shlibpath_var_F77=no
14006 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14007 freebsd* | kfreebsd*-gnu)
14008 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14009 hardcode_libdir_flag_spec_F77='-R$libdir'
14010 hardcode_direct_F77=yes
14011 hardcode_shlibpath_var_F77=no
14015 if test "$GCC" = yes; then
14016 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'
14018 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'
14020 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14021 hardcode_libdir_separator_F77=:
14022 hardcode_direct_F77=yes
14024 # hardcode_minus_L: Not really in the search PATH,
14025 # but as the default location of the library.
14026 hardcode_minus_L_F77=yes
14027 export_dynamic_flag_spec_F77='${wl}-E'
14031 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14032 case "$host_cpu" in
14034 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14037 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14041 case "$host_cpu" in
14043 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14046 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14050 if test "$with_gnu_ld" = no; then
14051 case "$host_cpu" in
14053 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14054 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14055 hardcode_libdir_separator_F77=:
14056 hardcode_direct_F77=no
14057 hardcode_shlibpath_var_F77=no
14060 hardcode_libdir_flag_spec_F77='-L$libdir'
14061 hardcode_direct_F77=no
14062 hardcode_shlibpath_var_F77=no
14064 # hardcode_minus_L: Not really in the search PATH,
14065 # but as the default location of the library.
14066 hardcode_minus_L_F77=yes
14069 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14070 hardcode_libdir_separator_F77=:
14071 hardcode_direct_F77=yes
14072 export_dynamic_flag_spec_F77='${wl}-E'
14074 # hardcode_minus_L: Not really in the search PATH,
14075 # but as the default location of the library.
14076 hardcode_minus_L_F77=yes
14082 irix5* | irix6* | nonstopux*)
14083 if test "$GCC" = yes; then
14084 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'
14086 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'
14087 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14089 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14090 hardcode_libdir_separator_F77=:
14091 link_all_deplibs_F77=yes
14094 netbsd* | knetbsd*-gnu)
14095 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14096 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14098 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14100 hardcode_libdir_flag_spec_F77='-R$libdir'
14101 hardcode_direct_F77=yes
14102 hardcode_shlibpath_var_F77=no
14106 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14107 hardcode_direct_F77=yes
14108 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14109 hardcode_libdir_separator_F77=:
14110 hardcode_shlibpath_var_F77=no
14114 hardcode_direct_F77=yes
14115 hardcode_shlibpath_var_F77=no
14116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14117 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14118 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14119 export_dynamic_flag_spec_F77='${wl}-E'
14122 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14123 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14124 hardcode_libdir_flag_spec_F77='-R$libdir'
14127 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14128 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14135 hardcode_libdir_flag_spec_F77='-L$libdir'
14136 hardcode_minus_L_F77=yes
14137 allow_undefined_flag_F77=unsupported
14138 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'
14139 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14143 if test "$GCC" = yes; then
14144 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14145 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'
14147 allow_undefined_flag_F77=' -expect_unresolved \*'
14148 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'
14150 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14151 hardcode_libdir_separator_F77=:
14154 osf4* | osf5*) # as osf3* with the addition of -msym flag
14155 if test "$GCC" = yes; then
14156 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14157 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'
14158 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14160 allow_undefined_flag_F77=' -expect_unresolved \*'
14161 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'
14162 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~
14163 $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'
14165 # Both c and cxx compiler support -rpath directly
14166 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14168 hardcode_libdir_separator_F77=:
14172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14173 hardcode_shlibpath_var_F77=no
14174 export_dynamic_flag_spec_F77='${wl}-Bexport'
14175 runpath_var=LD_RUN_PATH
14176 hardcode_runpath_var=yes
14180 no_undefined_flag_F77=' -z text'
14181 if test "$GCC" = yes; then
14182 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14183 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14184 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14186 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14187 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14188 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14190 hardcode_libdir_flag_spec_F77='-R$libdir'
14191 hardcode_shlibpath_var_F77=no
14193 solaris2.[0-5] | solaris2.[0-5].*) ;;
14194 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14195 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14197 link_all_deplibs_F77=yes
14201 if test "x$host_vendor" = xsequent; then
14202 # Use $CC to link under sequent, because it throws in some extra .o
14203 # files that make .init and .fini sections work.
14204 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14206 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14208 hardcode_libdir_flag_spec_F77='-L$libdir'
14209 hardcode_direct_F77=yes
14210 hardcode_minus_L_F77=yes
14211 hardcode_shlibpath_var_F77=no
14215 case $host_vendor in
14217 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14218 hardcode_direct_F77=yes # is this really true???
14221 ## LD is ld it makes a PLAMLIB
14222 ## CC just makes a GrossModule.
14223 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14224 reload_cmds_F77='$CC -r -o $output$reload_objs'
14225 hardcode_direct_F77=no
14228 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14229 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14232 runpath_var='LD_RUN_PATH'
14233 hardcode_shlibpath_var_F77=no
14237 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14238 hardcode_shlibpath_var_F77=no
14239 export_dynamic_flag_spec_F77='-Bexport'
14243 if test -d /usr/nec; then
14244 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14245 hardcode_shlibpath_var_F77=no
14246 runpath_var=LD_RUN_PATH
14247 hardcode_runpath_var=yes
14253 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14254 hardcode_direct_F77=yes
14255 hardcode_minus_L_F77=no
14256 hardcode_shlibpath_var_F77=no
14257 hardcode_runpath_var=yes
14258 runpath_var=LD_RUN_PATH
14261 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14262 no_undefined_flag_F77='${wl}-z ${wl}text'
14263 if test "$GCC" = yes; then
14264 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14266 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14268 runpath_var='LD_RUN_PATH'
14269 hardcode_shlibpath_var_F77=no
14273 no_undefined_flag_F77=' -z text'
14274 # $CC -shared without GNU ld will not create a library from C++
14275 # object files and a static libstdc++, better avoid it by now
14276 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14278 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14279 hardcode_libdir_flag_spec_F77=
14280 hardcode_shlibpath_var_F77=no
14281 runpath_var='LD_RUN_PATH'
14285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286 hardcode_libdir_flag_spec_F77='-L$libdir'
14287 hardcode_shlibpath_var_F77=no
14296 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14297 echo "${ECHO_T}$ld_shlibs_F77" >&6
14298 test "$ld_shlibs_F77" = no && can_build_shared=no
14300 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14301 if test "$GCC" = yes; then
14302 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14306 # Do we need to explicitly link libc?
14308 case "x$archive_cmds_need_lc_F77" in
14310 # Assume -lc should be added
14311 archive_cmds_need_lc_F77=yes
14313 if test "$enable_shared" = yes && test "$GCC" = yes; then
14314 case $archive_cmds_F77 in
14316 # FIXME: we may have to deal with multi-command sequences.
14319 # Test whether the compiler implicitly links with -lc since on some
14320 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14321 # to ld, don't add -lc before -lgcc.
14322 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14323 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14325 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14328 (eval $ac_compile) 2>&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } 2>conftest.err; then
14334 libobjs=conftest.$ac_objext
14336 wl=$lt_prog_compiler_wl_F77
14342 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14343 allow_undefined_flag_F77=
14344 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14345 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); }
14350 archive_cmds_need_lc_F77=no
14352 archive_cmds_need_lc_F77=yes
14354 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14356 cat conftest.err 1>&5
14359 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14360 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14367 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14368 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14369 library_names_spec=
14370 libname_spec='lib$name'
14374 postuninstall_cmds=
14378 shlibpath_overrides_runpath=unknown
14380 dynamic_linker="$host_os ld.so"
14381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14382 if test "$GCC" = yes; then
14383 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14384 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14385 # if the path contains ";" then we assume it to be the separator
14386 # otherwise default to the standard path separator (i.e. ":") - it is
14387 # assumed that no part of a normal pathname contains ";" but that should
14388 # okay in the real world where ";" in dirpaths is itself problematic.
14389 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14391 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14394 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14396 need_lib_prefix=unknown
14397 hardcode_into_libs=no
14399 # when you set need_version to no, make sure it does not cause -set_version
14400 # flags to be left without arguments
14401 need_version=unknown
14406 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14407 shlibpath_var=LIBPATH
14409 # AIX 3 has no versioning support, so we append a major version to the name.
14410 soname_spec='${libname}${release}${shared_ext}$major'
14417 hardcode_into_libs=yes
14418 if test "$host_cpu" = ia64; then
14419 # AIX 5 supports IA64
14420 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14421 shlibpath_var=LD_LIBRARY_PATH
14423 # With GCC up to 2.95.x, collect2 would create an import file
14424 # for dependence libraries. The import file would start with
14425 # the line `#! .'. This would cause the generated library to
14426 # depend on `.', always an invalid library. This was fixed in
14427 # development snapshots of GCC prior to 3.0.
14429 aix4 | aix4.[01] | aix4.[01].*)
14430 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14432 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14435 can_build_shared=no
14439 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14440 # soname into executable. Probably we can add versioning support to
14441 # collect2, so additional links can be useful in future.
14442 if test "$aix_use_runtimelinking" = yes; then
14443 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14444 # instead of lib<name>.a to let people know that these are not
14445 # typical AIX shared libraries.
14446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14448 # We preserve .a as extension for shared libraries through AIX4.2
14449 # and later when we are not doing run time linking.
14450 library_names_spec='${libname}${release}.a $libname.a'
14451 soname_spec='${libname}${release}${shared_ext}$major'
14453 shlibpath_var=LIBPATH
14458 library_names_spec='$libname.ixlibrary $libname.a'
14459 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14460 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'
14464 library_names_spec='${libname}${shared_ext}'
14465 dynamic_linker="$host_os ld.so"
14466 shlibpath_var=LIBRARY_PATH
14472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473 soname_spec='${libname}${release}${shared_ext}$major'
14474 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14477 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14478 # the default ld.so.conf also contains /usr/contrib/lib and
14479 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14480 # libtool to hard-code these into programs
14483 cygwin* | mingw* | pw32*)
14484 version_type=windows
14489 case $GCC,$host_os in
14490 yes,cygwin* | yes,mingw* | yes,pw32*)
14491 library_names_spec='$libname.dll.a'
14492 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14493 postinstall_cmds='base_file=`basename \${file}`~
14494 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14495 dldir=$destdir/`dirname \$dlpath`~
14496 test -d \$dldir || mkdir -p \$dldir~
14497 $install_prog $dir/$dlname \$dldir/$dlname'
14498 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14499 dlpath=$dir/\$dldll~
14501 shlibpath_overrides_runpath=yes
14505 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14506 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14507 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14510 # MinGW DLLs use traditional 'lib' prefix
14511 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14512 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14513 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14514 # It is most probably a Windows format PATH printed by
14515 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14516 # path with ; separators, and with drive letters. We can handle the
14517 # drive letters (cygwin fileutils understands them), so leave them,
14518 # especially as we might pass files found there to a mingw objdump,
14519 # which wouldn't understand a cygwinified path. Ahh.
14520 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14526 # pw32 DLLs use 'pw' prefix rather than 'lib'
14527 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14533 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14536 dynamic_linker='Win32 ld.exe'
14537 # FIXME: first we should search . and the directory the executable is in
14541 darwin* | rhapsody*)
14542 dynamic_linker="$host_os dyld"
14543 version_type=darwin
14546 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14547 soname_spec='${libname}${release}${major}$shared_ext'
14548 shlibpath_overrides_runpath=yes
14549 shlibpath_var=DYLD_LIBRARY_PATH
14550 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14551 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14552 if test "$GCC" = yes; then
14553 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"`
14555 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14557 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14565 soname_spec='${libname}${release}${shared_ext}$major'
14566 shlibpath_var=LD_LIBRARY_PATH
14577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14578 soname_spec='${libname}${release}${shared_ext}$major'
14579 shlibpath_var=LD_LIBRARY_PATH
14580 shlibpath_overrides_runpath=no
14581 hardcode_into_libs=yes
14582 dynamic_linker='GNU ld.so'
14586 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14587 version_type=freebsd-$objformat
14588 case $version_type in
14590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14595 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14599 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14604 freebsd3.01* | freebsdelf3.01*)
14605 shlibpath_overrides_runpath=yes
14606 hardcode_into_libs=yes
14609 shlibpath_overrides_runpath=no
14610 hardcode_into_libs=yes
14619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14620 soname_spec='${libname}${release}${shared_ext}$major'
14621 shlibpath_var=LD_LIBRARY_PATH
14622 hardcode_into_libs=yes
14625 hpux9* | hpux10* | hpux11*)
14626 # Give a soname corresponding to the major version so that dld.sl refuses to
14627 # link against other versions.
14631 case "$host_cpu" in
14634 hardcode_into_libs=yes
14635 dynamic_linker="$host_os dld.so"
14636 shlibpath_var=LD_LIBRARY_PATH
14637 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14639 soname_spec='${libname}${release}${shared_ext}$major'
14640 if test "X$HPUX_IA64_MODE" = X32; then
14641 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14643 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14645 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14649 hardcode_into_libs=yes
14650 dynamic_linker="$host_os dld.sl"
14651 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14652 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14654 soname_spec='${libname}${release}${shared_ext}$major'
14655 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14656 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14660 dynamic_linker="$host_os dld.sl"
14661 shlibpath_var=SHLIB_PATH
14662 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14664 soname_spec='${libname}${release}${shared_ext}$major'
14667 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14668 postinstall_cmds='chmod 555 $lib'
14671 irix5* | irix6* | nonstopux*)
14673 nonstopux*) version_type=nonstopux ;;
14675 if test "$lt_cv_prog_gnu_ld" = yes; then
14683 soname_spec='${libname}${release}${shared_ext}$major'
14684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14686 irix5* | nonstopux*)
14687 libsuff= shlibsuff=
14690 case $LD in # libtool.m4 will add one of these switches to LD
14691 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14692 libsuff= shlibsuff= libmagic=32-bit;;
14693 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14694 libsuff=32 shlibsuff=N32 libmagic=N32;;
14695 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14696 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14697 *) libsuff= shlibsuff= libmagic=never-match;;
14701 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14702 shlibpath_overrides_runpath=no
14703 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14704 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14705 hardcode_into_libs=yes
14708 # No shared lib support for Linux oldld, aout, or coff.
14709 linux*oldld* | linux*aout* | linux*coff*)
14713 # This must be Linux ELF.
14718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14719 soname_spec='${libname}${release}${shared_ext}$major'
14720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14721 shlibpath_var=LD_LIBRARY_PATH
14722 shlibpath_overrides_runpath=no
14723 # This implies no fast_install, which is unacceptable.
14724 # Some rework will be needed to allow for fast_install
14725 # before this can be enabled.
14726 hardcode_into_libs=yes
14728 # Append ld.so.conf contents to the search path
14729 if test -f /etc/ld.so.conf; then
14730 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
14731 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
14734 # We used to test for /lib/ld.so.1 and disable shared libraries on
14735 # powerpc, because MkLinux only supported shared libraries with the
14736 # GNU dynamic linker. Since this was broken with cross compilers,
14737 # most powerpc-linux boxes support dynamic linking these days and
14738 # people can always --disable-shared, the test was removed, and we
14739 # assume the GNU/Linux dynamic linker is in use.
14740 dynamic_linker='GNU/Linux ld.so'
14747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14748 soname_spec='${libname}${release}${shared_ext}$major'
14749 shlibpath_var=LD_LIBRARY_PATH
14750 shlibpath_overrides_runpath=no
14751 hardcode_into_libs=yes
14752 dynamic_linker='GNU ld.so'
14759 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14762 dynamic_linker='NetBSD (a.out) ld.so'
14764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14765 soname_spec='${libname}${release}${shared_ext}$major'
14766 dynamic_linker='NetBSD ld.elf_so'
14768 shlibpath_var=LD_LIBRARY_PATH
14769 shlibpath_overrides_runpath=yes
14770 hardcode_into_libs=yes
14775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14776 shlibpath_var=LD_LIBRARY_PATH
14777 shlibpath_overrides_runpath=yes
14784 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14785 soname_spec='${libname}${release}${shared_ext}$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14795 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14796 shlibpath_var=LD_LIBRARY_PATH
14797 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14799 openbsd2.[89] | openbsd2.[89].*)
14800 shlibpath_overrides_runpath=no
14803 shlibpath_overrides_runpath=yes
14807 shlibpath_overrides_runpath=yes
14812 libname_spec='$name'
14815 library_names_spec='$libname${shared_ext} $libname.a'
14816 dynamic_linker='OS/2 ld.exe'
14817 shlibpath_var=LIBPATH
14820 osf3* | osf4* | osf5*)
14824 soname_spec='${libname}${release}${shared_ext}$major'
14825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14826 shlibpath_var=LD_LIBRARY_PATH
14827 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14828 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14833 soname_spec='${libname}${release}${shared_ext}$major'
14834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14835 shlibpath_var=LD_LIBRARY_PATH
14842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843 soname_spec='${libname}${release}${shared_ext}$major'
14844 shlibpath_var=LD_LIBRARY_PATH
14845 shlibpath_overrides_runpath=yes
14846 hardcode_into_libs=yes
14847 # ldd complains unless libraries are executable
14848 postinstall_cmds='chmod +x $lib'
14853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14854 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14855 shlibpath_var=LD_LIBRARY_PATH
14856 shlibpath_overrides_runpath=yes
14857 if test "$with_gnu_ld" = yes; then
14863 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14866 soname_spec='${libname}${release}${shared_ext}$major'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 case $host_vendor in
14870 shlibpath_overrides_runpath=no
14872 export_dynamic_flag_spec='${wl}-Blargedynsym'
14873 runpath_var=LD_RUN_PATH
14881 shlibpath_overrides_runpath=no
14882 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14888 if test -d /usr/nec ;then
14890 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14891 soname_spec='$libname${shared_ext}.$major'
14892 shlibpath_var=LD_LIBRARY_PATH
14898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899 soname_spec='${libname}${release}${shared_ext}$major'
14900 shlibpath_var=LD_LIBRARY_PATH
14907 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14908 echo "${ECHO_T}$dynamic_linker" >&6
14909 test "$dynamic_linker" = no && can_build_shared=no
14911 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14912 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14913 hardcode_action_F77=
14914 if test -n "$hardcode_libdir_flag_spec_F77" || \
14915 test -n "$runpath_var F77" || \
14916 test "X$hardcode_automatic_F77"="Xyes" ; then
14918 # We can hardcode non-existant directories.
14919 if test "$hardcode_direct_F77" != no &&
14920 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14921 # have to relink, otherwise we might link with an installed library
14922 # when we should be linking with a yet-to-be-installed one
14923 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14924 test "$hardcode_minus_L_F77" != no; then
14925 # Linking always hardcodes the temporary library directory.
14926 hardcode_action_F77=relink
14928 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14929 hardcode_action_F77=immediate
14932 # We cannot hardcode anything, or else we can only hardcode existing
14934 hardcode_action_F77=unsupported
14936 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14937 echo "${ECHO_T}$hardcode_action_F77" >&6
14939 if test "$hardcode_action_F77" = relink; then
14940 # Fast installation is not supported
14941 enable_fast_install=no
14942 elif test "$shlibpath_overrides_runpath" = yes ||
14943 test "$enable_shared" = no; then
14944 # Fast installation is not necessary
14945 enable_fast_install=needless
14950 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14951 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14952 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14953 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14954 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14955 echo "$as_me:$LINENO: result: yes" >&5
14956 echo "${ECHO_T}yes" >&6
14958 # FIXME - insert some real tests, host_os isn't really good enough
14961 if test -n "$STRIP" ; then
14962 striplib="$STRIP -x"
14963 echo "$as_me:$LINENO: result: yes" >&5
14964 echo "${ECHO_T}yes" >&6
14966 echo "$as_me:$LINENO: result: no" >&5
14967 echo "${ECHO_T}no" >&6
14971 echo "$as_me:$LINENO: result: no" >&5
14972 echo "${ECHO_T}no" >&6
14979 # The else clause should only fire when bootstrapping the
14980 # libtool distribution, otherwise you forgot to ship ltmain.sh
14981 # with your package, and you will get complaints that there are
14982 # no rules to generate ltmain.sh.
14983 if test -f "$ltmain"; then
14984 # See if we are running on zsh, and set the options which allow our commands through
14985 # without removal of \ escapes.
14986 if test -n "${ZSH_VERSION+set}" ; then
14987 setopt NO_GLOB_SUBST
14989 # Now quote all the things that may contain metacharacters while being
14990 # careful not to overquote the AC_SUBSTed values. We take copies of the
14991 # variables and quote the copies for generation of the libtool script.
14992 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14994 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14995 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14996 deplibs_check_method reload_flag reload_cmds need_locks \
14997 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14998 lt_cv_sys_global_symbol_to_c_name_address \
14999 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15000 old_postinstall_cmds old_postuninstall_cmds \
15004 lt_prog_compiler_wl_F77 \
15005 lt_prog_compiler_pic_F77 \
15006 lt_prog_compiler_static_F77 \
15007 lt_prog_compiler_no_builtin_flag_F77 \
15008 export_dynamic_flag_spec_F77 \
15009 thread_safe_flag_spec_F77 \
15010 whole_archive_flag_spec_F77 \
15011 enable_shared_with_static_runtimes_F77 \
15012 old_archive_cmds_F77 \
15013 old_archive_from_new_cmds_F77 \
15014 predep_objects_F77 \
15015 postdep_objects_F77 \
15018 compiler_lib_search_path_F77 \
15020 archive_expsym_cmds_F77 \
15021 postinstall_cmds_F77 \
15022 postuninstall_cmds_F77 \
15023 old_archive_from_expsyms_cmds_F77 \
15024 allow_undefined_flag_F77 \
15025 no_undefined_flag_F77 \
15026 export_symbols_cmds_F77 \
15027 hardcode_libdir_flag_spec_F77 \
15028 hardcode_libdir_flag_spec_ld_F77 \
15029 hardcode_libdir_separator_F77 \
15030 hardcode_automatic_F77 \
15032 module_expsym_cmds_F77 \
15033 lt_cv_prog_compiler_c_o_F77 \
15034 exclude_expsyms_F77 \
15035 include_expsyms_F77; do
15038 old_archive_cmds_F77 | \
15039 old_archive_from_new_cmds_F77 | \
15040 archive_cmds_F77 | \
15041 archive_expsym_cmds_F77 | \
15042 module_cmds_F77 | \
15043 module_expsym_cmds_F77 | \
15044 old_archive_from_expsyms_cmds_F77 | \
15045 export_symbols_cmds_F77 | \
15046 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15047 postinstall_cmds | postuninstall_cmds | \
15048 old_postinstall_cmds | old_postuninstall_cmds | \
15049 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15050 # Double-quote double-evaled strings.
15051 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15054 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15060 *'\$0 --fallback-echo"')
15061 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15067 cat <<__EOF__ >> "$cfgfile"
15068 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15072 # Shell to use when invoking shell scripts.
15075 # Whether or not to build shared libraries.
15076 build_libtool_libs=$enable_shared
15078 # Whether or not to build static libraries.
15079 build_old_libs=$enable_static
15081 # Whether or not to add -lc for building shared libraries.
15082 build_libtool_need_lc=$archive_cmds_need_lc_F77
15084 # Whether or not to disallow shared libs when runtime libs are static
15085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15087 # Whether or not to optimize for fast installation.
15088 fast_install=$enable_fast_install
15091 host_alias=$host_alias
15094 # An echo program that does not interpret backslashes.
15099 AR_FLAGS=$lt_AR_FLAGS
15104 # A language-specific compiler.
15105 CC=$lt_compiler_F77
15107 # Is the compiler the GNU C compiler?
15113 # The linker used to build libraries.
15116 # Whether we need hard or soft links.
15119 # A BSD-compatible nm program.
15122 # A symbol stripping program
15125 # Used to examine libraries when file_magic_cmd begins "file"
15126 MAGIC_CMD=$MAGIC_CMD
15128 # Used on cygwin: DLL creation program.
15131 # Used on cygwin: object dumper.
15134 # Used on cygwin: assembler.
15137 # The name of the directory that contains temporary libtool files.
15140 # How to create reloadable object files.
15141 reload_flag=$lt_reload_flag
15142 reload_cmds=$lt_reload_cmds
15144 # How to pass a linker flag through the compiler.
15145 wl=$lt_lt_prog_compiler_wl_F77
15147 # Object file suffix (normally "o").
15148 objext="$ac_objext"
15150 # Old archive suffix (normally "a").
15153 # Shared library suffix (normally ".so").
15156 # Executable file suffix (normally "").
15159 # Additional compiler flags for building library objects.
15160 pic_flag=$lt_lt_prog_compiler_pic_F77
15163 # What is the maximum length of a command?
15164 max_cmd_len=$lt_cv_sys_max_cmd_len
15166 # Does compiler simultaneously support -c and -o options?
15167 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15169 # Must we lock files when doing compilation ?
15170 need_locks=$lt_need_locks
15172 # Do we need the lib prefix for modules?
15173 need_lib_prefix=$need_lib_prefix
15175 # Do we need a version for libraries?
15176 need_version=$need_version
15178 # Whether dlopen is supported.
15179 dlopen_support=$enable_dlopen
15181 # Whether dlopen of programs is supported.
15182 dlopen_self=$enable_dlopen_self
15184 # Whether dlopen of statically linked programs is supported.
15185 dlopen_self_static=$enable_dlopen_self_static
15187 # Compiler flag to prevent dynamic linking.
15188 link_static_flag=$lt_lt_prog_compiler_static_F77
15190 # Compiler flag to turn off builtin functions.
15191 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15193 # Compiler flag to allow reflexive dlopens.
15194 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15196 # Compiler flag to generate shared objects directly from archives.
15197 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15199 # Compiler flag to generate thread-safe objects.
15200 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15202 # Library versioning type.
15203 version_type=$version_type
15205 # Format of library name prefix.
15206 libname_spec=$lt_libname_spec
15208 # List of archive names. First name is the real one, the rest are links.
15209 # The last name is the one that the linker finds with -lNAME.
15210 library_names_spec=$lt_library_names_spec
15212 # The coded name of the library, if different from the real name.
15213 soname_spec=$lt_soname_spec
15215 # Commands used to build and install an old-style archive.
15217 old_archive_cmds=$lt_old_archive_cmds_F77
15218 old_postinstall_cmds=$lt_old_postinstall_cmds
15219 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15221 # Create an old-style archive from a shared archive.
15222 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15224 # Create a temporary old-style archive to link instead of a shared archive.
15225 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15227 # Commands used to build and install a shared archive.
15228 archive_cmds=$lt_archive_cmds_F77
15229 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15230 postinstall_cmds=$lt_postinstall_cmds
15231 postuninstall_cmds=$lt_postuninstall_cmds
15233 # Commands used to build a loadable module (assumed same as above if empty)
15234 module_cmds=$lt_module_cmds_F77
15235 module_expsym_cmds=$lt_module_expsym_cmds_F77
15237 # Commands to strip libraries.
15238 old_striplib=$lt_old_striplib
15239 striplib=$lt_striplib
15241 # Dependencies to place before the objects being linked to create a
15243 predep_objects=$lt_predep_objects_F77
15245 # Dependencies to place after the objects being linked to create a
15247 postdep_objects=$lt_postdep_objects_F77
15249 # Dependencies to place before the objects being linked to create a
15251 predeps=$lt_predeps_F77
15253 # Dependencies to place after the objects being linked to create a
15255 postdeps=$lt_postdeps_F77
15257 # The library search path used internally by the compiler when linking
15258 # a shared library.
15259 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15261 # Method to check whether dependent libraries are shared objects.
15262 deplibs_check_method=$lt_deplibs_check_method
15264 # Command to use when deplibs_check_method == file_magic.
15265 file_magic_cmd=$lt_file_magic_cmd
15267 # Flag that allows shared libraries with undefined symbols to be built.
15268 allow_undefined_flag=$lt_allow_undefined_flag_F77
15270 # Flag that forces no undefined symbols.
15271 no_undefined_flag=$lt_no_undefined_flag_F77
15273 # Commands used to finish a libtool library installation in a directory.
15274 finish_cmds=$lt_finish_cmds
15276 # Same as above, but a single script fragment to be evaled but not shown.
15277 finish_eval=$lt_finish_eval
15279 # Take the output of nm and produce a listing of raw symbols and C names.
15280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15282 # Transform the output of nm in a proper C declaration
15283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15285 # Transform the output of nm in a C name address pair
15286 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15288 # This is the shared library runtime path variable.
15289 runpath_var=$runpath_var
15291 # This is the shared library path variable.
15292 shlibpath_var=$shlibpath_var
15294 # Is shlibpath searched before the hard-coded library search path?
15295 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15297 # How to hardcode a shared library path into an executable.
15298 hardcode_action=$hardcode_action_F77
15300 # Whether we should hardcode library paths into libraries.
15301 hardcode_into_libs=$hardcode_into_libs
15303 # Flag to hardcode \$libdir into a binary during linking.
15304 # This must work even if \$libdir does not exist.
15305 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15307 # If ld is used when linking, flag to hardcode \$libdir into
15308 # a binary during linking. This must work even if \$libdir does
15310 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15312 # Whether we need a single -rpath flag with a separated argument.
15313 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15315 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15316 # resulting binary.
15317 hardcode_direct=$hardcode_direct_F77
15319 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15320 # resulting binary.
15321 hardcode_minus_L=$hardcode_minus_L_F77
15323 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15324 # the resulting binary.
15325 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15327 # Set to yes if building a shared library automatically hardcodes DIR into the library
15328 # and all subsequent libraries and executables linked against it.
15329 hardcode_automatic=$hardcode_automatic_F77
15331 # Variables whose values should be saved in libtool wrapper scripts and
15332 # restored at relink time.
15333 variables_saved_for_relink="$variables_saved_for_relink"
15335 # Whether libtool must link a program against all its dependency libraries.
15336 link_all_deplibs=$link_all_deplibs_F77
15338 # Compile-time system search path for libraries
15339 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15341 # Run-time system search path for libraries
15342 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15344 # Fix the shell variable \$srcfile for the compiler.
15345 fix_srcfile_path="$fix_srcfile_path_F77"
15347 # Set to yes if exported symbols are required.
15348 always_export_symbols=$always_export_symbols_F77
15350 # The commands to list exported symbols.
15351 export_symbols_cmds=$lt_export_symbols_cmds_F77
15353 # The commands to extract the exported symbol list from a shared archive.
15354 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15356 # Symbols that should not be listed in the preloaded symbols.
15357 exclude_expsyms=$lt_exclude_expsyms_F77
15359 # Symbols that must always be exported.
15360 include_expsyms=$lt_include_expsyms_F77
15362 # ### END LIBTOOL TAG CONFIG: $tagname
15368 # If there is no Makefile yet, we rely on a make rule to execute
15369 # `config.status --recheck' to rerun these tests and create the
15370 # libtool script then.
15371 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15372 if test -f "$ltmain_in"; then
15373 test -f Makefile && make "$ltmain"
15379 ac_cpp='$CPP $CPPFLAGS'
15380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15381 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15392 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15396 # Source file extension for Java test sources.
15399 # Object file extension for compiled Java test sources.
15403 # Code to be used in simple compile tests
15404 lt_simple_compile_test_code="class foo {}\n"
15406 # Code to be used in simple link tests
15407 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15409 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15411 # If no C compiler was specified, use CC.
15414 # Allow CC to be a program name with arguments.
15418 # Allow CC to be a program name with arguments.
15424 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15425 archive_cmds_need_lc_GCJ=no
15428 lt_prog_compiler_no_builtin_flag_GCJ=
15430 if test "$GCC" = yes; then
15431 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15434 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15435 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15436 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15437 echo $ECHO_N "(cached) $ECHO_C" >&6
15439 lt_cv_prog_compiler_rtti_exceptions=no
15440 ac_outfile=conftest.$ac_objext
15441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15442 lt_compiler_flag="-fno-rtti -fno-exceptions"
15443 # Insert the option either (1) after the last *FLAGS variable, or
15444 # (2) before a word containing "conftest.", or (3) at the end.
15445 # Note that $ac_compile itself does not contain backslashes and begins
15446 # with a dollar sign (not a hyphen), so the echo should work correctly.
15447 # The option is referenced via a variable to avoid confusing sed.
15448 lt_compile=`echo "$ac_compile" | $SED \
15449 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15451 -e 's:$: $lt_compiler_flag:'`
15452 (eval echo "\"\$as_me:15452: $lt_compile\"" >&5)
15453 (eval "$lt_compile" 2>conftest.err)
15455 cat conftest.err >&5
15456 echo "$as_me:15456: \$? = $ac_status" >&5
15457 if (exit $ac_status) && test -s "$ac_outfile"; then
15458 # The compiler can only warn and ignore the option if not recognized
15459 # So say no if there are warnings
15460 if test ! -s conftest.err; then
15461 lt_cv_prog_compiler_rtti_exceptions=yes
15467 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15468 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15470 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15471 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15478 lt_prog_compiler_wl_GCJ=
15479 lt_prog_compiler_pic_GCJ=
15480 lt_prog_compiler_static_GCJ=
15482 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15483 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15485 if test "$GCC" = yes; then
15486 lt_prog_compiler_wl_GCJ='-Wl,'
15487 lt_prog_compiler_static_GCJ='-static'
15491 # All AIX code is PIC.
15492 if test "$host_cpu" = ia64; then
15493 # AIX 5 now supports IA64 processor
15494 lt_prog_compiler_static_GCJ='-Bstatic'
15499 # FIXME: we need at least 68020 code to build shared libraries, but
15500 # adding the `-m68020' flag to GCC prevents building anything better,
15502 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15505 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15506 # PIC is the default for these OSes.
15509 mingw* | pw32* | os2*)
15510 # This hack is so that the source file can tell whether it is being
15511 # built for inclusion in a dll (and should export symbols for example).
15512 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15515 darwin* | rhapsody*)
15516 # PIC is the default on this platform
15517 # Common symbols not allowed in MH_DYLIB files
15518 lt_prog_compiler_pic_GCJ='-fno-common'
15522 # Just because we use GCC doesn't mean we suddenly get shared libraries
15523 # on systems that don't support them.
15524 lt_prog_compiler_can_build_shared_GCJ=no
15529 if test -d /usr/nec; then
15530 lt_prog_compiler_pic_GCJ=-Kconform_pic
15535 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15536 # not for PA HP-UX.
15537 case "$host_cpu" in
15542 lt_prog_compiler_pic_GCJ='-fPIC'
15548 lt_prog_compiler_pic_GCJ='-fPIC'
15552 # PORTME Check for flag to pass linker flags through the system compiler.
15555 lt_prog_compiler_wl_GCJ='-Wl,'
15556 if test "$host_cpu" = ia64; then
15557 # AIX 5 now supports IA64 processor
15558 lt_prog_compiler_static_GCJ='-Bstatic'
15560 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15564 mingw* | pw32* | os2*)
15565 # This hack is so that the source file can tell whether it is being
15566 # built for inclusion in a dll (and should export symbols for example).
15567 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15570 hpux9* | hpux10* | hpux11*)
15571 lt_prog_compiler_wl_GCJ='-Wl,'
15572 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15573 # not for PA HP-UX.
15574 case "$host_cpu" in
15579 lt_prog_compiler_pic_GCJ='+Z'
15582 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15583 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15586 irix5* | irix6* | nonstopux*)
15587 lt_prog_compiler_wl_GCJ='-Wl,'
15588 # PIC (with -KPIC) is the default.
15589 lt_prog_compiler_static_GCJ='-non_shared'
15593 lt_prog_compiler_pic_GCJ='-KPIC'
15594 lt_prog_compiler_static_GCJ='-Bstatic'
15600 lt_prog_compiler_wl_GCJ='-Wl,'
15601 lt_prog_compiler_pic_GCJ='-KPIC'
15602 lt_prog_compiler_static_GCJ='-static'
15605 lt_prog_compiler_wl_GCJ='-Wl,'
15606 # All Alpha code is PIC.
15607 lt_prog_compiler_static_GCJ='-non_shared'
15612 osf3* | osf4* | osf5*)
15613 lt_prog_compiler_wl_GCJ='-Wl,'
15614 # All OSF/1 code is PIC.
15615 lt_prog_compiler_static_GCJ='-non_shared'
15619 lt_prog_compiler_pic_GCJ='-Kpic'
15620 lt_prog_compiler_static_GCJ='-dn'
15624 lt_prog_compiler_wl_GCJ='-Wl,'
15625 lt_prog_compiler_pic_GCJ='-KPIC'
15626 lt_prog_compiler_static_GCJ='-Bstatic'
15630 lt_prog_compiler_wl_GCJ='-Qoption ld '
15631 lt_prog_compiler_pic_GCJ='-PIC'
15632 lt_prog_compiler_static_GCJ='-Bstatic'
15635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15636 lt_prog_compiler_wl_GCJ='-Wl,'
15637 lt_prog_compiler_pic_GCJ='-KPIC'
15638 lt_prog_compiler_static_GCJ='-Bstatic'
15642 if test -d /usr/nec ;then
15643 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15644 lt_prog_compiler_static_GCJ='-Bstatic'
15649 lt_prog_compiler_pic_GCJ='-pic'
15650 lt_prog_compiler_static_GCJ='-Bstatic'
15654 lt_prog_compiler_can_build_shared_GCJ=no
15659 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15660 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15663 # Check to make sure the PIC flag actually works.
15665 if test -n "$lt_prog_compiler_pic_GCJ"; then
15667 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15668 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15669 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15670 echo $ECHO_N "(cached) $ECHO_C" >&6
15672 lt_prog_compiler_pic_works_GCJ=no
15673 ac_outfile=conftest.$ac_objext
15674 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15675 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15676 # Insert the option either (1) after the last *FLAGS variable, or
15677 # (2) before a word containing "conftest.", or (3) at the end.
15678 # Note that $ac_compile itself does not contain backslashes and begins
15679 # with a dollar sign (not a hyphen), so the echo should work correctly.
15680 # The option is referenced via a variable to avoid confusing sed.
15681 lt_compile=`echo "$ac_compile" | $SED \
15682 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15684 -e 's:$: $lt_compiler_flag:'`
15685 (eval echo "\"\$as_me:15685: $lt_compile\"" >&5)
15686 (eval "$lt_compile" 2>conftest.err)
15688 cat conftest.err >&5
15689 echo "$as_me:15689: \$? = $ac_status" >&5
15690 if (exit $ac_status) && test -s "$ac_outfile"; then
15691 # The compiler can only warn and ignore the option if not recognized
15692 # So say no if there are warnings
15693 if test ! -s conftest.err; then
15694 lt_prog_compiler_pic_works_GCJ=yes
15700 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15701 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15703 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15704 case $lt_prog_compiler_pic_GCJ in
15706 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15709 lt_prog_compiler_pic_GCJ=
15710 lt_prog_compiler_can_build_shared_GCJ=no
15715 # For platforms which do not support PIC, -DPIC is meaningless:
15717 lt_prog_compiler_pic_GCJ=
15720 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15724 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15725 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15726 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 lt_cv_prog_compiler_c_o_GCJ=no
15730 $rm -r conftest 2>/dev/null
15734 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15736 lt_compiler_flag="-o out/conftest2.$ac_objext"
15737 # Insert the option either (1) after the last *FLAGS variable, or
15738 # (2) before a word containing "conftest.", or (3) at the end.
15739 # Note that $ac_compile itself does not contain backslashes and begins
15740 # with a dollar sign (not a hyphen), so the echo should work correctly.
15741 lt_compile=`echo "$ac_compile" | $SED \
15742 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15743 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15744 -e 's:$: $lt_compiler_flag:'`
15745 (eval echo "\"\$as_me:15745: $lt_compile\"" >&5)
15746 (eval "$lt_compile" 2>out/conftest.err)
15748 cat out/conftest.err >&5
15749 echo "$as_me:15749: \$? = $ac_status" >&5
15750 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15752 # The compiler can only warn and ignore the option if not recognized
15753 # So say no if there are warnings
15754 if test ! -s out/conftest.err; then
15755 lt_cv_prog_compiler_c_o_GCJ=yes
15760 # SGI C++ compiler will create directory out/ii_files/ for
15761 # template instantiation
15762 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15763 $rm out/* && rmdir out
15769 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15770 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15773 hard_links="nottested"
15774 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15775 # do not overwrite the value of need_locks provided by the user
15776 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15777 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15780 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15782 ln conftest.a conftest.b 2>&5 || hard_links=no
15783 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15784 echo "$as_me:$LINENO: result: $hard_links" >&5
15785 echo "${ECHO_T}$hard_links" >&6
15786 if test "$hard_links" = no; then
15787 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15788 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15795 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15796 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15799 allow_undefined_flag_GCJ=
15800 enable_shared_with_static_runtimes_GCJ=no
15802 archive_expsym_cmds_GCJ=
15803 old_archive_From_new_cmds_GCJ=
15804 old_archive_from_expsyms_cmds_GCJ=
15805 export_dynamic_flag_spec_GCJ=
15806 whole_archive_flag_spec_GCJ=
15807 thread_safe_flag_spec_GCJ=
15808 hardcode_libdir_flag_spec_GCJ=
15809 hardcode_libdir_flag_spec_ld_GCJ=
15810 hardcode_libdir_separator_GCJ=
15811 hardcode_direct_GCJ=no
15812 hardcode_minus_L_GCJ=no
15813 hardcode_shlibpath_var_GCJ=unsupported
15814 link_all_deplibs_GCJ=unknown
15815 hardcode_automatic_GCJ=no
15817 module_expsym_cmds_GCJ=
15818 always_export_symbols_GCJ=no
15819 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15820 # include_expsyms should be a list of space-separated symbols to be *always*
15821 # included in the symbol list
15822 include_expsyms_GCJ=
15823 # exclude_expsyms can be an extended regexp of symbols to exclude
15824 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15825 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15826 # as well as any symbol that contains `d'.
15827 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15828 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15829 # platforms (ab)use it in PIC code, but their linkers get confused if
15830 # the symbol is explicitly referenced. Since portable code cannot
15831 # rely on this symbol name, it's probably fine to never include it in
15832 # preloaded symbol tables.
15833 extract_expsyms_cmds=
15836 cygwin* | mingw* | pw32*)
15837 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15838 # When not using gcc, we currently assume that we are using
15839 # Microsoft Visual C++.
15840 if test "$GCC" != yes; then
15850 if test "$with_gnu_ld" = yes; then
15851 # If archive_cmds runs LD, not CC, wlarc should be empty
15854 # See if GNU ld supports shared libraries.
15856 aix3* | aix4* | aix5*)
15857 # On AIX/PPC, the GNU linker is very broken
15858 if test "$host_cpu" != ia64; then
15862 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15863 *** to be unable to reliably create shared libraries on AIX.
15864 *** Therefore, libtool is disabling shared libraries support. If you
15865 *** really care for shared libraries, you may want to modify your PATH
15866 *** so that a non-GNU linker is found, and then restart.
15873 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)'
15874 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15875 hardcode_minus_L_GCJ=yes
15877 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15878 # that the semantics of dynamic libraries on AmigaOS, at least up
15879 # to version 4, is to share data among multiple programs linked
15880 # with the same dynamic library. Since this doesn't match the
15881 # behavior of shared libraries on other platforms, we can't use
15887 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15888 allow_undefined_flag_GCJ=unsupported
15889 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15890 # support --undefined. This deserves some investigation. FIXME
15891 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15897 cygwin* | mingw* | pw32*)
15898 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15899 # as there is no search path for DLLs.
15900 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15901 allow_undefined_flag_GCJ=unsupported
15902 always_export_symbols_GCJ=no
15903 enable_shared_with_static_runtimes_GCJ=yes
15904 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15906 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15907 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15908 # If the export-symbols file already is a .def file (1st line
15909 # is EXPORTS), use it as is; otherwise, prepend...
15910 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15911 cp $export_symbols $output_objdir/$soname.def;
15913 echo EXPORTS > $output_objdir/$soname.def;
15914 cat $export_symbols >> $output_objdir/$soname.def;
15916 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15922 netbsd* | knetbsd*-gnu)
15923 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15924 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15927 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15928 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15933 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15937 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15938 *** create shared libraries on Solaris systems. Therefore, libtool
15939 *** is disabling shared libraries support. We urge you to upgrade GNU
15940 *** binutils to release 2.9.1 or newer. Another option is to modify
15941 *** your PATH or compiler configuration so that the native linker is
15942 *** used, and then restart.
15945 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15946 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15947 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15954 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15956 hardcode_direct_GCJ=yes
15957 hardcode_shlibpath_var_GCJ=no
15961 if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15962 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15963 archive_cmds_GCJ="$tmp_archive_cmds"
15964 supports_anon_versioning=no
15965 case `$LD -v 2>/dev/null` in
15966 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15969 *\ 2.11.*) ;; # other 2.11 versions
15970 *) supports_anon_versioning=yes ;;
15972 if test $supports_anon_versioning = yes; then
15973 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15974 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15975 $echo "local: *; };" >> $output_objdir/$libname.ver~
15976 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15978 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15986 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15995 if test "$ld_shlibs_GCJ" = yes; then
15996 runpath_var=LD_RUN_PATH
15997 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15998 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15999 # ancient GNU ld didn't support --whole-archive et. al.
16000 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16001 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16003 whole_archive_flag_spec_GCJ=
16007 # PORTME fill in a description of your system's linker (not GNU ld)
16010 allow_undefined_flag_GCJ=unsupported
16011 always_export_symbols_GCJ=yes
16012 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'
16013 # Note: this linker hardcodes the directories in LIBPATH if there
16014 # are no directories specified by -L.
16015 hardcode_minus_L_GCJ=yes
16016 if test "$GCC" = yes && test -z "$link_static_flag"; then
16017 # Neither direct hardcoding nor static linking is supported with a
16019 hardcode_direct_GCJ=unsupported
16024 if test "$host_cpu" = ia64; then
16025 # On IA64, the linker does run time linking by default, so we don't
16026 # have to do anything special.
16027 aix_use_runtimelinking=no
16028 exp_sym_flag='-Bexport'
16031 # If we're using GNU nm, then we don't want the "-C" option.
16032 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16033 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16034 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'
16036 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'
16038 aix_use_runtimelinking=no
16040 # Test if we are trying to use run time linking or normal
16041 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16042 # need to do runtime linking.
16043 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16044 for ld_flag in $LDFLAGS; do
16045 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16046 aix_use_runtimelinking=yes
16052 exp_sym_flag='-bexport'
16053 no_entry_flag='-bnoentry'
16056 # When large executables or shared objects are built, AIX ld can
16057 # have problems creating the table of contents. If linking a library
16058 # or program results in "error TOC overflow" add -mminimal-toc to
16059 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16060 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16062 archive_cmds_GCJ=''
16063 hardcode_direct_GCJ=yes
16064 hardcode_libdir_separator_GCJ=':'
16065 link_all_deplibs_GCJ=yes
16067 if test "$GCC" = yes; then
16068 case $host_os in aix4.012|aix4.012.*)
16069 # We only want to do this on AIX 4.2 and lower, the check
16070 # below for broken collect2 doesn't work under 4.3+
16071 collect2name=`${CC} -print-prog-name=collect2`
16072 if test -f "$collect2name" && \
16073 strings "$collect2name" | grep resolve_lib_name >/dev/null
16075 # We have reworked collect2
16076 hardcode_direct_GCJ=yes
16078 # We have old collect2
16079 hardcode_direct_GCJ=unsupported
16080 # It fails to find uninstalled libraries when the uninstalled
16081 # path is not listed in the libpath. Setting hardcode_minus_L
16082 # to unsupported forces relinking
16083 hardcode_minus_L_GCJ=yes
16084 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16085 hardcode_libdir_separator_GCJ=
16088 shared_flag='-shared'
16091 if test "$host_cpu" = ia64; then
16092 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16093 # chokes on -Wl,-G. The following line is correct:
16096 if test "$aix_use_runtimelinking" = yes; then
16097 shared_flag='${wl}-G'
16099 shared_flag='${wl}-bM:SRE'
16104 # It seems that -bexpall does not export symbols beginning with
16105 # underscore (_), so it is better to generate a list of symbols to export.
16106 always_export_symbols_GCJ=yes
16107 if test "$aix_use_runtimelinking" = yes; then
16108 # Warning - without using the other runtime loading flags (-brtl),
16109 # -berok will link without error, but may produce a broken library.
16110 allow_undefined_flag_GCJ='-berok'
16111 # Determine the default libpath from the value encoded in an empty executable.
16112 cat >conftest.$ac_ext <<_ACEOF
16115 cat confdefs.h >>conftest.$ac_ext
16116 cat >>conftest.$ac_ext <<_ACEOF
16117 /* end confdefs.h. */
16127 rm -f conftest.$ac_objext conftest$ac_exeext
16128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16129 (eval $ac_link) 2>conftest.er1
16131 grep -v '^ *+' conftest.er1 >conftest.err
16133 cat conftest.err >&5
16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16135 (exit $ac_status); } &&
16136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16138 (eval $ac_try) 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try='test -s conftest$ac_exeext'
16143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16144 (eval $ac_try) 2>&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); }; }; then
16149 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16151 # Check for a 64-bit object if we didn't find anything.
16152 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; }
16155 echo "$as_me: failed program was:" >&5
16156 sed 's/^/| /' conftest.$ac_ext >&5
16159 rm -f conftest.err conftest.$ac_objext \
16160 conftest$ac_exeext conftest.$ac_ext
16161 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16163 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16164 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"
16166 if test "$host_cpu" = ia64; then
16167 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16168 allow_undefined_flag_GCJ="-z nodefs"
16169 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"
16171 # Determine the default libpath from the value encoded in an empty executable.
16172 cat >conftest.$ac_ext <<_ACEOF
16175 cat confdefs.h >>conftest.$ac_ext
16176 cat >>conftest.$ac_ext <<_ACEOF
16177 /* end confdefs.h. */
16187 rm -f conftest.$ac_objext conftest$ac_exeext
16188 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16189 (eval $ac_link) 2>conftest.er1
16191 grep -v '^ *+' conftest.er1 >conftest.err
16193 cat conftest.err >&5
16194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16195 (exit $ac_status); } &&
16196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16198 (eval $ac_try) 2>&5
16200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16201 (exit $ac_status); }; } &&
16202 { ac_try='test -s conftest$ac_exeext'
16203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16204 (eval $ac_try) 2>&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); }; }; then
16209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16211 # Check for a 64-bit object if we didn't find anything.
16212 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; }
16215 echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16219 rm -f conftest.err conftest.$ac_objext \
16220 conftest$ac_exeext conftest.$ac_ext
16221 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16223 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16224 # Warning - without using the other run time loading flags,
16225 # -berok will link without error, but may produce a broken library.
16226 no_undefined_flag_GCJ=' ${wl}-bernotok'
16227 allow_undefined_flag_GCJ=' ${wl}-berok'
16228 # -bexpall does not export symbols beginning with underscore (_)
16229 always_export_symbols_GCJ=yes
16230 # Exported symbols can be pulled into shared objects from archives
16231 whole_archive_flag_spec_GCJ=' '
16232 archive_cmds_need_lc_GCJ=yes
16233 # This is similar to how AIX traditionally builds it's shared libraries.
16234 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'
16240 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)'
16241 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16242 hardcode_minus_L_GCJ=yes
16243 # see comment about different semantics on the GNU ld section
16248 export_dynamic_flag_spec_GCJ=-rdynamic
16251 cygwin* | mingw* | pw32*)
16252 # When not using gcc, we currently assume that we are using
16253 # Microsoft Visual C++.
16254 # hardcode_libdir_flag_spec is actually meaningless, as there is
16255 # no search path for DLLs.
16256 hardcode_libdir_flag_spec_GCJ=' '
16257 allow_undefined_flag_GCJ=unsupported
16258 # Tell ltmain to make .lib files, not .a files.
16260 # Tell ltmain to make .dll files, not .so files.
16262 # FIXME: Setting linknames here is a bad hack.
16263 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16264 # The linker will automatically build a .lib file if we build a DLL.
16265 old_archive_From_new_cmds_GCJ='true'
16266 # FIXME: Should let the user specify the lib program.
16267 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16268 fix_srcfile_path='`cygpath -w "$srcfile"`'
16269 enable_shared_with_static_runtimes_GCJ=yes
16272 darwin* | rhapsody*)
16273 if test "$GXX" = yes ; then
16274 archive_cmds_need_lc_GCJ=no
16276 rhapsody* | darwin1.[012])
16277 allow_undefined_flag_GCJ='-undefined suppress'
16280 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16281 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16283 case ${MACOSX_DEPLOYMENT_TARGET} in
16285 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16288 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16294 lt_int_apple_cc_single_mod=no
16295 output_verbose_link_cmd='echo'
16296 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16297 lt_int_apple_cc_single_mod=yes
16299 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16300 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16302 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'
16304 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16305 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16306 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16307 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}'
16309 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}'
16311 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}'
16312 hardcode_direct_GCJ=no
16313 hardcode_automatic_GCJ=yes
16314 hardcode_shlibpath_var_GCJ=unsupported
16315 whole_archive_flag_spec_GCJ='-all_load $convenience'
16316 link_all_deplibs_GCJ=yes
16323 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16324 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16325 hardcode_shlibpath_var_GCJ=no
16332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16333 # support. Future versions do this automatically, but an explicit c++rt0.o
16334 # does not break anything, and helps significantly (at the cost of a little
16337 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16338 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16339 hardcode_direct_GCJ=yes
16340 hardcode_shlibpath_var_GCJ=no
16343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16345 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16346 hardcode_direct_GCJ=yes
16347 hardcode_minus_L_GCJ=yes
16348 hardcode_shlibpath_var_GCJ=no
16351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16352 freebsd* | kfreebsd*-gnu)
16353 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16354 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16355 hardcode_direct_GCJ=yes
16356 hardcode_shlibpath_var_GCJ=no
16360 if test "$GCC" = yes; then
16361 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'
16363 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'
16365 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16366 hardcode_libdir_separator_GCJ=:
16367 hardcode_direct_GCJ=yes
16369 # hardcode_minus_L: Not really in the search PATH,
16370 # but as the default location of the library.
16371 hardcode_minus_L_GCJ=yes
16372 export_dynamic_flag_spec_GCJ='${wl}-E'
16376 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16377 case "$host_cpu" in
16379 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16382 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16386 case "$host_cpu" in
16388 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16391 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16395 if test "$with_gnu_ld" = no; then
16396 case "$host_cpu" in
16398 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16399 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16400 hardcode_libdir_separator_GCJ=:
16401 hardcode_direct_GCJ=no
16402 hardcode_shlibpath_var_GCJ=no
16405 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16406 hardcode_direct_GCJ=no
16407 hardcode_shlibpath_var_GCJ=no
16409 # hardcode_minus_L: Not really in the search PATH,
16410 # but as the default location of the library.
16411 hardcode_minus_L_GCJ=yes
16414 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16415 hardcode_libdir_separator_GCJ=:
16416 hardcode_direct_GCJ=yes
16417 export_dynamic_flag_spec_GCJ='${wl}-E'
16419 # hardcode_minus_L: Not really in the search PATH,
16420 # but as the default location of the library.
16421 hardcode_minus_L_GCJ=yes
16427 irix5* | irix6* | nonstopux*)
16428 if test "$GCC" = yes; then
16429 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'
16431 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'
16432 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16434 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16435 hardcode_libdir_separator_GCJ=:
16436 link_all_deplibs_GCJ=yes
16439 netbsd* | knetbsd*-gnu)
16440 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16441 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16443 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16446 hardcode_direct_GCJ=yes
16447 hardcode_shlibpath_var_GCJ=no
16451 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16452 hardcode_direct_GCJ=yes
16453 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16454 hardcode_libdir_separator_GCJ=:
16455 hardcode_shlibpath_var_GCJ=no
16459 hardcode_direct_GCJ=yes
16460 hardcode_shlibpath_var_GCJ=no
16461 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16462 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16463 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16464 export_dynamic_flag_spec_GCJ='${wl}-E'
16467 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16468 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16469 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16472 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16473 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16481 hardcode_minus_L_GCJ=yes
16482 allow_undefined_flag_GCJ=unsupported
16483 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'
16484 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16488 if test "$GCC" = yes; then
16489 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16490 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'
16492 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16493 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'
16495 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16496 hardcode_libdir_separator_GCJ=:
16499 osf4* | osf5*) # as osf3* with the addition of -msym flag
16500 if test "$GCC" = yes; then
16501 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16502 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'
16503 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16505 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16506 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'
16507 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~
16508 $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'
16510 # Both c and cxx compiler support -rpath directly
16511 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16513 hardcode_libdir_separator_GCJ=:
16517 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16518 hardcode_shlibpath_var_GCJ=no
16519 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16520 runpath_var=LD_RUN_PATH
16521 hardcode_runpath_var=yes
16525 no_undefined_flag_GCJ=' -z text'
16526 if test "$GCC" = yes; then
16527 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16528 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16529 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16531 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16532 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16533 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16535 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16536 hardcode_shlibpath_var_GCJ=no
16538 solaris2.[0-5] | solaris2.[0-5].*) ;;
16539 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16540 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16542 link_all_deplibs_GCJ=yes
16546 if test "x$host_vendor" = xsequent; then
16547 # Use $CC to link under sequent, because it throws in some extra .o
16548 # files that make .init and .fini sections work.
16549 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16551 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16554 hardcode_direct_GCJ=yes
16555 hardcode_minus_L_GCJ=yes
16556 hardcode_shlibpath_var_GCJ=no
16560 case $host_vendor in
16562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16563 hardcode_direct_GCJ=yes # is this really true???
16566 ## LD is ld it makes a PLAMLIB
16567 ## CC just makes a GrossModule.
16568 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16569 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16570 hardcode_direct_GCJ=no
16573 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16574 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16577 runpath_var='LD_RUN_PATH'
16578 hardcode_shlibpath_var_GCJ=no
16582 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16583 hardcode_shlibpath_var_GCJ=no
16584 export_dynamic_flag_spec_GCJ='-Bexport'
16588 if test -d /usr/nec; then
16589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_shlibpath_var_GCJ=no
16591 runpath_var=LD_RUN_PATH
16592 hardcode_runpath_var=yes
16598 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16599 hardcode_direct_GCJ=yes
16600 hardcode_minus_L_GCJ=no
16601 hardcode_shlibpath_var_GCJ=no
16602 hardcode_runpath_var=yes
16603 runpath_var=LD_RUN_PATH
16606 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16607 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16608 if test "$GCC" = yes; then
16609 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16611 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16613 runpath_var='LD_RUN_PATH'
16614 hardcode_shlibpath_var_GCJ=no
16618 no_undefined_flag_GCJ=' -z text'
16619 # $CC -shared without GNU ld will not create a library from C++
16620 # object files and a static libstdc++, better avoid it by now
16621 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16622 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16623 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16624 hardcode_libdir_flag_spec_GCJ=
16625 hardcode_shlibpath_var_GCJ=no
16626 runpath_var='LD_RUN_PATH'
16630 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16631 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16632 hardcode_shlibpath_var_GCJ=no
16641 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16642 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16643 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16645 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16646 if test "$GCC" = yes; then
16647 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16651 # Do we need to explicitly link libc?
16653 case "x$archive_cmds_need_lc_GCJ" in
16655 # Assume -lc should be added
16656 archive_cmds_need_lc_GCJ=yes
16658 if test "$enable_shared" = yes && test "$GCC" = yes; then
16659 case $archive_cmds_GCJ in
16661 # FIXME: we may have to deal with multi-command sequences.
16664 # Test whether the compiler implicitly links with -lc since on some
16665 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16666 # to ld, don't add -lc before -lgcc.
16667 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16668 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16670 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16672 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16673 (eval $ac_compile) 2>&5
16675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16676 (exit $ac_status); } 2>conftest.err; then
16679 libobjs=conftest.$ac_objext
16681 wl=$lt_prog_compiler_wl_GCJ
16687 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16688 allow_undefined_flag_GCJ=
16689 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16690 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16693 (exit $ac_status); }
16695 archive_cmds_need_lc_GCJ=no
16697 archive_cmds_need_lc_GCJ=yes
16699 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16701 cat conftest.err 1>&5
16704 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16705 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16712 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16714 library_names_spec=
16715 libname_spec='lib$name'
16719 postuninstall_cmds=
16723 shlibpath_overrides_runpath=unknown
16725 dynamic_linker="$host_os ld.so"
16726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16727 if test "$GCC" = yes; then
16728 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16729 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16730 # if the path contains ";" then we assume it to be the separator
16731 # otherwise default to the standard path separator (i.e. ":") - it is
16732 # assumed that no part of a normal pathname contains ";" but that should
16733 # okay in the real world where ";" in dirpaths is itself problematic.
16734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16741 need_lib_prefix=unknown
16742 hardcode_into_libs=no
16744 # when you set need_version to no, make sure it does not cause -set_version
16745 # flags to be left without arguments
16746 need_version=unknown
16751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16752 shlibpath_var=LIBPATH
16754 # AIX 3 has no versioning support, so we append a major version to the name.
16755 soname_spec='${libname}${release}${shared_ext}$major'
16762 hardcode_into_libs=yes
16763 if test "$host_cpu" = ia64; then
16764 # AIX 5 supports IA64
16765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16766 shlibpath_var=LD_LIBRARY_PATH
16768 # With GCC up to 2.95.x, collect2 would create an import file
16769 # for dependence libraries. The import file would start with
16770 # the line `#! .'. This would cause the generated library to
16771 # depend on `.', always an invalid library. This was fixed in
16772 # development snapshots of GCC prior to 3.0.
16774 aix4 | aix4.[01] | aix4.[01].*)
16775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16777 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16780 can_build_shared=no
16784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16785 # soname into executable. Probably we can add versioning support to
16786 # collect2, so additional links can be useful in future.
16787 if test "$aix_use_runtimelinking" = yes; then
16788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16789 # instead of lib<name>.a to let people know that these are not
16790 # typical AIX shared libraries.
16791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 # We preserve .a as extension for shared libraries through AIX4.2
16794 # and later when we are not doing run time linking.
16795 library_names_spec='${libname}${release}.a $libname.a'
16796 soname_spec='${libname}${release}${shared_ext}$major'
16798 shlibpath_var=LIBPATH
16803 library_names_spec='$libname.ixlibrary $libname.a'
16804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16805 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'
16809 library_names_spec='${libname}${shared_ext}'
16810 dynamic_linker="$host_os ld.so"
16811 shlibpath_var=LIBRARY_PATH
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16820 shlibpath_var=LD_LIBRARY_PATH
16821 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16822 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16823 # the default ld.so.conf also contains /usr/contrib/lib and
16824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16825 # libtool to hard-code these into programs
16828 cygwin* | mingw* | pw32*)
16829 version_type=windows
16834 case $GCC,$host_os in
16835 yes,cygwin* | yes,mingw* | yes,pw32*)
16836 library_names_spec='$libname.dll.a'
16837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16838 postinstall_cmds='base_file=`basename \${file}`~
16839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16840 dldir=$destdir/`dirname \$dlpath`~
16841 test -d \$dldir || mkdir -p \$dldir~
16842 $install_prog $dir/$dlname \$dldir/$dlname'
16843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16844 dlpath=$dir/\$dldll~
16846 shlibpath_overrides_runpath=yes
16850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16851 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16852 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16855 # MinGW DLLs use traditional 'lib' prefix
16856 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16857 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16858 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16859 # It is most probably a Windows format PATH printed by
16860 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16861 # path with ; separators, and with drive letters. We can handle the
16862 # drive letters (cygwin fileutils understands them), so leave them,
16863 # especially as we might pass files found there to a mingw objdump,
16864 # which wouldn't understand a cygwinified path. Ahh.
16865 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16867 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16871 # pw32 DLLs use 'pw' prefix rather than 'lib'
16872 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16878 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16881 dynamic_linker='Win32 ld.exe'
16882 # FIXME: first we should search . and the directory the executable is in
16886 darwin* | rhapsody*)
16887 dynamic_linker="$host_os dyld"
16888 version_type=darwin
16891 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16892 soname_spec='${libname}${release}${major}$shared_ext'
16893 shlibpath_overrides_runpath=yes
16894 shlibpath_var=DYLD_LIBRARY_PATH
16895 shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16896 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16897 if test "$GCC" = yes; then
16898 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"`
16900 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16902 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16910 soname_spec='${libname}${release}${shared_ext}$major'
16911 shlibpath_var=LD_LIBRARY_PATH
16922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16923 soname_spec='${libname}${release}${shared_ext}$major'
16924 shlibpath_var=LD_LIBRARY_PATH
16925 shlibpath_overrides_runpath=no
16926 hardcode_into_libs=yes
16927 dynamic_linker='GNU ld.so'
16931 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16932 version_type=freebsd-$objformat
16933 case $version_type in
16935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16940 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16944 shlibpath_var=LD_LIBRARY_PATH
16947 shlibpath_overrides_runpath=yes
16949 freebsd3.01* | freebsdelf3.01*)
16950 shlibpath_overrides_runpath=yes
16951 hardcode_into_libs=yes
16954 shlibpath_overrides_runpath=no
16955 hardcode_into_libs=yes
16964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16965 soname_spec='${libname}${release}${shared_ext}$major'
16966 shlibpath_var=LD_LIBRARY_PATH
16967 hardcode_into_libs=yes
16970 hpux9* | hpux10* | hpux11*)
16971 # Give a soname corresponding to the major version so that dld.sl refuses to
16972 # link against other versions.
16976 case "$host_cpu" in
16979 hardcode_into_libs=yes
16980 dynamic_linker="$host_os dld.so"
16981 shlibpath_var=LD_LIBRARY_PATH
16982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984 soname_spec='${libname}${release}${shared_ext}$major'
16985 if test "X$HPUX_IA64_MODE" = X32; then
16986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16994 hardcode_into_libs=yes
16995 dynamic_linker="$host_os dld.sl"
16996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 soname_spec='${libname}${release}${shared_ext}$major'
17000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17005 dynamic_linker="$host_os dld.sl"
17006 shlibpath_var=SHLIB_PATH
17007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17009 soname_spec='${libname}${release}${shared_ext}$major'
17012 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17013 postinstall_cmds='chmod 555 $lib'
17016 irix5* | irix6* | nonstopux*)
17018 nonstopux*) version_type=nonstopux ;;
17020 if test "$lt_cv_prog_gnu_ld" = yes; then
17028 soname_spec='${libname}${release}${shared_ext}$major'
17029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17031 irix5* | nonstopux*)
17032 libsuff= shlibsuff=
17035 case $LD in # libtool.m4 will add one of these switches to LD
17036 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17037 libsuff= shlibsuff= libmagic=32-bit;;
17038 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17039 libsuff=32 shlibsuff=N32 libmagic=N32;;
17040 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17041 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17042 *) libsuff= shlibsuff= libmagic=never-match;;
17046 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17047 shlibpath_overrides_runpath=no
17048 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17049 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17050 hardcode_into_libs=yes
17053 # No shared lib support for Linux oldld, aout, or coff.
17054 linux*oldld* | linux*aout* | linux*coff*)
17058 # This must be Linux ELF.
17063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17064 soname_spec='${libname}${release}${shared_ext}$major'
17065 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17066 shlibpath_var=LD_LIBRARY_PATH
17067 shlibpath_overrides_runpath=no
17068 # This implies no fast_install, which is unacceptable.
17069 # Some rework will be needed to allow for fast_install
17070 # before this can be enabled.
17071 hardcode_into_libs=yes
17073 # Append ld.so.conf contents to the search path
17074 if test -f /etc/ld.so.conf; then
17075 ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf`
17076 sys_lib_dlsearch_path_spec="/lib /usr/lib $ld_extra"
17079 # We used to test for /lib/ld.so.1 and disable shared libraries on
17080 # powerpc, because MkLinux only supported shared libraries with the
17081 # GNU dynamic linker. Since this was broken with cross compilers,
17082 # most powerpc-linux boxes support dynamic linking these days and
17083 # people can always --disable-shared, the test was removed, and we
17084 # assume the GNU/Linux dynamic linker is in use.
17085 dynamic_linker='GNU/Linux ld.so'
17092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17093 soname_spec='${libname}${release}${shared_ext}$major'
17094 shlibpath_var=LD_LIBRARY_PATH
17095 shlibpath_overrides_runpath=no
17096 hardcode_into_libs=yes
17097 dynamic_linker='GNU ld.so'
17104 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17106 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17107 dynamic_linker='NetBSD (a.out) ld.so'
17109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17110 soname_spec='${libname}${release}${shared_ext}$major'
17111 dynamic_linker='NetBSD ld.elf_so'
17113 shlibpath_var=LD_LIBRARY_PATH
17114 shlibpath_overrides_runpath=yes
17115 hardcode_into_libs=yes
17120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17121 shlibpath_var=LD_LIBRARY_PATH
17122 shlibpath_overrides_runpath=yes
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17130 soname_spec='${libname}${release}${shared_ext}$major'
17131 shlibpath_var=LD_LIBRARY_PATH
17132 shlibpath_overrides_runpath=yes
17139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17140 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17141 shlibpath_var=LD_LIBRARY_PATH
17142 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17144 openbsd2.[89] | openbsd2.[89].*)
17145 shlibpath_overrides_runpath=no
17148 shlibpath_overrides_runpath=yes
17152 shlibpath_overrides_runpath=yes
17157 libname_spec='$name'
17160 library_names_spec='$libname${shared_ext} $libname.a'
17161 dynamic_linker='OS/2 ld.exe'
17162 shlibpath_var=LIBPATH
17165 osf3* | osf4* | osf5*)
17169 soname_spec='${libname}${release}${shared_ext}$major'
17170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17171 shlibpath_var=LD_LIBRARY_PATH
17172 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17173 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17178 soname_spec='${libname}${release}${shared_ext}$major'
17179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17180 shlibpath_var=LD_LIBRARY_PATH
17187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17188 soname_spec='${libname}${release}${shared_ext}$major'
17189 shlibpath_var=LD_LIBRARY_PATH
17190 shlibpath_overrides_runpath=yes
17191 hardcode_into_libs=yes
17192 # ldd complains unless libraries are executable
17193 postinstall_cmds='chmod +x $lib'
17198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17199 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17200 shlibpath_var=LD_LIBRARY_PATH
17201 shlibpath_overrides_runpath=yes
17202 if test "$with_gnu_ld" = yes; then
17208 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211 soname_spec='${libname}${release}${shared_ext}$major'
17212 shlibpath_var=LD_LIBRARY_PATH
17213 case $host_vendor in
17215 shlibpath_overrides_runpath=no
17217 export_dynamic_flag_spec='${wl}-Blargedynsym'
17218 runpath_var=LD_RUN_PATH
17226 shlibpath_overrides_runpath=no
17227 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17233 if test -d /usr/nec ;then
17235 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17236 soname_spec='$libname${shared_ext}.$major'
17237 shlibpath_var=LD_LIBRARY_PATH
17243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17244 soname_spec='${libname}${release}${shared_ext}$major'
17245 shlibpath_var=LD_LIBRARY_PATH
17252 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17253 echo "${ECHO_T}$dynamic_linker" >&6
17254 test "$dynamic_linker" = no && can_build_shared=no
17256 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17257 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17258 hardcode_action_GCJ=
17259 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17260 test -n "$runpath_var GCJ" || \
17261 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17263 # We can hardcode non-existant directories.
17264 if test "$hardcode_direct_GCJ" != no &&
17265 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17266 # have to relink, otherwise we might link with an installed library
17267 # when we should be linking with a yet-to-be-installed one
17268 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17269 test "$hardcode_minus_L_GCJ" != no; then
17270 # Linking always hardcodes the temporary library directory.
17271 hardcode_action_GCJ=relink
17273 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17274 hardcode_action_GCJ=immediate
17277 # We cannot hardcode anything, or else we can only hardcode existing
17279 hardcode_action_GCJ=unsupported
17281 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17282 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17284 if test "$hardcode_action_GCJ" = relink; then
17285 # Fast installation is not supported
17286 enable_fast_install=no
17287 elif test "$shlibpath_overrides_runpath" = yes ||
17288 test "$enable_shared" = no; then
17289 # Fast installation is not necessary
17290 enable_fast_install=needless
17295 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17296 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17297 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17298 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17299 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17300 echo "$as_me:$LINENO: result: yes" >&5
17301 echo "${ECHO_T}yes" >&6
17303 # FIXME - insert some real tests, host_os isn't really good enough
17306 if test -n "$STRIP" ; then
17307 striplib="$STRIP -x"
17308 echo "$as_me:$LINENO: result: yes" >&5
17309 echo "${ECHO_T}yes" >&6
17311 echo "$as_me:$LINENO: result: no" >&5
17312 echo "${ECHO_T}no" >&6
17316 echo "$as_me:$LINENO: result: no" >&5
17317 echo "${ECHO_T}no" >&6
17322 if test "x$enable_dlopen" != xyes; then
17323 enable_dlopen=unknown
17324 enable_dlopen_self=unknown
17325 enable_dlopen_self_static=unknown
17332 lt_cv_dlopen="load_add_on"
17334 lt_cv_dlopen_self=yes
17338 lt_cv_dlopen="LoadLibrary"
17343 lt_cv_dlopen="dlopen"
17348 # if libdl is installed we need to link against it
17349 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17350 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17351 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 ac_check_lib_save_LIBS=$LIBS
17356 cat >conftest.$ac_ext <<_ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17363 /* Override any gcc2 internal prototype to avoid an error. */
17367 /* We use char because int might match the return type of a gcc2
17368 builtin and then its argument prototype would still apply. */
17378 rm -f conftest.$ac_objext conftest$ac_exeext
17379 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17380 (eval $ac_link) 2>conftest.er1
17382 grep -v '^ *+' conftest.er1 >conftest.err
17384 cat conftest.err >&5
17385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17386 (exit $ac_status); } &&
17387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17389 (eval $ac_try) 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; } &&
17393 { ac_try='test -s conftest$ac_exeext'
17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395 (eval $ac_try) 2>&5
17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398 (exit $ac_status); }; }; then
17399 ac_cv_lib_dl_dlopen=yes
17401 echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17404 ac_cv_lib_dl_dlopen=no
17406 rm -f conftest.err conftest.$ac_objext \
17407 conftest$ac_exeext conftest.$ac_ext
17408 LIBS=$ac_check_lib_save_LIBS
17410 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17411 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17412 if test $ac_cv_lib_dl_dlopen = yes; then
17413 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17416 lt_cv_dlopen="dyld"
17418 lt_cv_dlopen_self=yes
17425 echo "$as_me:$LINENO: checking for shl_load" >&5
17426 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17427 if test "${ac_cv_func_shl_load+set}" = set; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17438 #define shl_load innocuous_shl_load
17440 /* System header to define __stub macros and hopefully few prototypes,
17441 which can conflict with char shl_load (); below.
17442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17443 <limits.h> exists even on freestanding compilers. */
17446 # include <limits.h>
17448 # include <assert.h>
17453 /* Override any gcc2 internal prototype to avoid an error. */
17458 /* We use char because int might match the return type of a gcc2
17459 builtin and then its argument prototype would still apply. */
17461 /* The GNU C library defines this for functions which it implements
17462 to always fail with ENOSYS. Some functions are actually named
17463 something starting with __ and the normal name is an alias. */
17464 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17467 char (*f) () = shl_load;
17476 return f != shl_load;
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17483 (eval $ac_link) 2>conftest.er1
17485 grep -v '^ *+' conftest.er1 >conftest.err
17487 cat conftest.err >&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); } &&
17490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17492 (eval $ac_try) 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17498 (eval $ac_try) 2>&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_func_shl_load=yes
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17507 ac_cv_func_shl_load=no
17509 rm -f conftest.err conftest.$ac_objext \
17510 conftest$ac_exeext conftest.$ac_ext
17512 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17513 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17514 if test $ac_cv_func_shl_load = yes; then
17515 lt_cv_dlopen="shl_load"
17517 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17518 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17520 echo $ECHO_N "(cached) $ECHO_C" >&6
17522 ac_check_lib_save_LIBS=$LIBS
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17531 /* Override any gcc2 internal prototype to avoid an error. */
17535 /* We use char because int might match the return type of a gcc2
17536 builtin and then its argument prototype would still apply. */
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548 (eval $ac_link) 2>conftest.er1
17550 grep -v '^ *+' conftest.er1 >conftest.err
17552 cat conftest.err >&5
17553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554 (exit $ac_status); } &&
17555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17557 (eval $ac_try) 2>&5
17559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17560 (exit $ac_status); }; } &&
17561 { ac_try='test -s conftest$ac_exeext'
17562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17563 (eval $ac_try) 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; }; then
17567 ac_cv_lib_dld_shl_load=yes
17569 echo "$as_me: failed program was:" >&5
17570 sed 's/^/| /' conftest.$ac_ext >&5
17572 ac_cv_lib_dld_shl_load=no
17574 rm -f conftest.err conftest.$ac_objext \
17575 conftest$ac_exeext conftest.$ac_ext
17576 LIBS=$ac_check_lib_save_LIBS
17578 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17579 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17580 if test $ac_cv_lib_dld_shl_load = yes; then
17581 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17583 echo "$as_me:$LINENO: checking for dlopen" >&5
17584 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17585 if test "${ac_cv_func_dlopen+set}" = set; then
17586 echo $ECHO_N "(cached) $ECHO_C" >&6
17588 cat >conftest.$ac_ext <<_ACEOF
17591 cat confdefs.h >>conftest.$ac_ext
17592 cat >>conftest.$ac_ext <<_ACEOF
17593 /* end confdefs.h. */
17594 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17596 #define dlopen innocuous_dlopen
17598 /* System header to define __stub macros and hopefully few prototypes,
17599 which can conflict with char dlopen (); below.
17600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17601 <limits.h> exists even on freestanding compilers. */
17604 # include <limits.h>
17606 # include <assert.h>
17611 /* Override any gcc2 internal prototype to avoid an error. */
17616 /* We use char because int might match the return type of a gcc2
17617 builtin and then its argument prototype would still apply. */
17619 /* The GNU C library defines this for functions which it implements
17620 to always fail with ENOSYS. Some functions are actually named
17621 something starting with __ and the normal name is an alias. */
17622 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17625 char (*f) () = dlopen;
17634 return f != dlopen;
17639 rm -f conftest.$ac_objext conftest$ac_exeext
17640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17641 (eval $ac_link) 2>conftest.er1
17643 grep -v '^ *+' conftest.er1 >conftest.err
17645 cat conftest.err >&5
17646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17647 (exit $ac_status); } &&
17648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17650 (eval $ac_try) 2>&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); }; } &&
17654 { ac_try='test -s conftest$ac_exeext'
17655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17656 (eval $ac_try) 2>&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); }; }; then
17660 ac_cv_func_dlopen=yes
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17665 ac_cv_func_dlopen=no
17667 rm -f conftest.err conftest.$ac_objext \
17668 conftest$ac_exeext conftest.$ac_ext
17670 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17671 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17672 if test $ac_cv_func_dlopen = yes; then
17673 lt_cv_dlopen="dlopen"
17675 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17676 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17677 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17678 echo $ECHO_N "(cached) $ECHO_C" >&6
17680 ac_check_lib_save_LIBS=$LIBS
17682 cat >conftest.$ac_ext <<_ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h. */
17689 /* Override any gcc2 internal prototype to avoid an error. */
17693 /* We use char because int might match the return type of a gcc2
17694 builtin and then its argument prototype would still apply. */
17704 rm -f conftest.$ac_objext conftest$ac_exeext
17705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17706 (eval $ac_link) 2>conftest.er1
17708 grep -v '^ *+' conftest.er1 >conftest.err
17710 cat conftest.err >&5
17711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17712 (exit $ac_status); } &&
17713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17715 (eval $ac_try) 2>&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); }; } &&
17719 { ac_try='test -s conftest$ac_exeext'
17720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17721 (eval $ac_try) 2>&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); }; }; then
17725 ac_cv_lib_dl_dlopen=yes
17727 echo "$as_me: failed program was:" >&5
17728 sed 's/^/| /' conftest.$ac_ext >&5
17730 ac_cv_lib_dl_dlopen=no
17732 rm -f conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17734 LIBS=$ac_check_lib_save_LIBS
17736 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17737 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17738 if test $ac_cv_lib_dl_dlopen = yes; then
17739 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17741 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17742 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17743 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17744 echo $ECHO_N "(cached) $ECHO_C" >&6
17746 ac_check_lib_save_LIBS=$LIBS
17747 LIBS="-lsvld $LIBS"
17748 cat >conftest.$ac_ext <<_ACEOF
17751 cat confdefs.h >>conftest.$ac_ext
17752 cat >>conftest.$ac_ext <<_ACEOF
17753 /* end confdefs.h. */
17755 /* Override any gcc2 internal prototype to avoid an error. */
17759 /* We use char because int might match the return type of a gcc2
17760 builtin and then its argument prototype would still apply. */
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17772 (eval $ac_link) 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); } &&
17779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17781 (eval $ac_try) 2>&5
17783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17784 (exit $ac_status); }; } &&
17785 { ac_try='test -s conftest$ac_exeext'
17786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17787 (eval $ac_try) 2>&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); }; }; then
17791 ac_cv_lib_svld_dlopen=yes
17793 echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_cv_lib_svld_dlopen=no
17798 rm -f conftest.err conftest.$ac_objext \
17799 conftest$ac_exeext conftest.$ac_ext
17800 LIBS=$ac_check_lib_save_LIBS
17802 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17803 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17804 if test $ac_cv_lib_svld_dlopen = yes; then
17805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17807 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17808 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17809 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 ac_check_lib_save_LIBS=$LIBS
17814 cat >conftest.$ac_ext <<_ACEOF
17817 cat confdefs.h >>conftest.$ac_ext
17818 cat >>conftest.$ac_ext <<_ACEOF
17819 /* end confdefs.h. */
17821 /* Override any gcc2 internal prototype to avoid an error. */
17825 /* We use char because int might match the return type of a gcc2
17826 builtin and then its argument prototype would still apply. */
17836 rm -f conftest.$ac_objext conftest$ac_exeext
17837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17838 (eval $ac_link) 2>conftest.er1
17840 grep -v '^ *+' conftest.er1 >conftest.err
17842 cat conftest.err >&5
17843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17844 (exit $ac_status); } &&
17845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17847 (eval $ac_try) 2>&5
17849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17850 (exit $ac_status); }; } &&
17851 { ac_try='test -s conftest$ac_exeext'
17852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17853 (eval $ac_try) 2>&5
17855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17856 (exit $ac_status); }; }; then
17857 ac_cv_lib_dld_dld_link=yes
17859 echo "$as_me: failed program was:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_cv_lib_dld_dld_link=no
17864 rm -f conftest.err conftest.$ac_objext \
17865 conftest$ac_exeext conftest.$ac_ext
17866 LIBS=$ac_check_lib_save_LIBS
17868 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17869 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17870 if test $ac_cv_lib_dld_dld_link = yes; then
17871 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17892 if test "x$lt_cv_dlopen" != xno; then
17898 case $lt_cv_dlopen in
17900 save_CPPFLAGS="$CPPFLAGS"
17901 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17903 save_LDFLAGS="$LDFLAGS"
17904 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17907 LIBS="$lt_cv_dlopen_libs $LIBS"
17909 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17910 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17911 if test "${lt_cv_dlopen_self+set}" = set; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17914 if test "$cross_compiling" = yes; then :
17915 lt_cv_dlopen_self=cross
17917 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17918 lt_status=$lt_dlunknown
17919 cat > conftest.$ac_ext <<EOF
17920 #line 17920 "configure"
17921 #include "confdefs.h"
17930 # define LT_DLGLOBAL RTLD_GLOBAL
17933 # define LT_DLGLOBAL DL_GLOBAL
17935 # define LT_DLGLOBAL 0
17939 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17940 find out it does not work in some platform. */
17941 #ifndef LT_DLLAZY_OR_NOW
17943 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17946 # define LT_DLLAZY_OR_NOW DL_LAZY
17949 # define LT_DLLAZY_OR_NOW RTLD_NOW
17952 # define LT_DLLAZY_OR_NOW DL_NOW
17954 # define LT_DLLAZY_OR_NOW 0
17962 extern "C" void exit (int);
17965 void fnord() { int i=42;}
17968 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17969 int status = $lt_dlunknown;
17973 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17974 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17975 /* dlclose (self); */
17981 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17982 (eval $ac_link) 2>&5
17984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17985 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17986 (./conftest; exit; ) 2>/dev/null
17988 case x$lt_status in
17989 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17990 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17991 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17994 # compilation failed
17995 lt_cv_dlopen_self=no
18002 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18003 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18005 if test "x$lt_cv_dlopen_self" = xyes; then
18006 LDFLAGS="$LDFLAGS $link_static_flag"
18007 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18008 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18009 if test "${lt_cv_dlopen_self_static+set}" = set; then
18010 echo $ECHO_N "(cached) $ECHO_C" >&6
18012 if test "$cross_compiling" = yes; then :
18013 lt_cv_dlopen_self_static=cross
18015 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18016 lt_status=$lt_dlunknown
18017 cat > conftest.$ac_ext <<EOF
18018 #line 18018 "configure"
18019 #include "confdefs.h"
18028 # define LT_DLGLOBAL RTLD_GLOBAL
18031 # define LT_DLGLOBAL DL_GLOBAL
18033 # define LT_DLGLOBAL 0
18037 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18038 find out it does not work in some platform. */
18039 #ifndef LT_DLLAZY_OR_NOW
18041 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18044 # define LT_DLLAZY_OR_NOW DL_LAZY
18047 # define LT_DLLAZY_OR_NOW RTLD_NOW
18050 # define LT_DLLAZY_OR_NOW DL_NOW
18052 # define LT_DLLAZY_OR_NOW 0
18060 extern "C" void exit (int);
18063 void fnord() { int i=42;}
18066 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18067 int status = $lt_dlunknown;
18071 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18072 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18073 /* dlclose (self); */
18079 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18080 (eval $ac_link) 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18084 (./conftest; exit; ) 2>/dev/null
18086 case x$lt_status in
18087 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18088 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18089 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18092 # compilation failed
18093 lt_cv_dlopen_self_static=no
18100 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18101 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18104 CPPFLAGS="$save_CPPFLAGS"
18105 LDFLAGS="$save_LDFLAGS"
18110 case $lt_cv_dlopen_self in
18111 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18112 *) enable_dlopen_self=unknown ;;
18115 case $lt_cv_dlopen_self_static in
18116 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18117 *) enable_dlopen_self_static=unknown ;;
18122 # The else clause should only fire when bootstrapping the
18123 # libtool distribution, otherwise you forgot to ship ltmain.sh
18124 # with your package, and you will get complaints that there are
18125 # no rules to generate ltmain.sh.
18126 if test -f "$ltmain"; then
18127 # See if we are running on zsh, and set the options which allow our commands through
18128 # without removal of \ escapes.
18129 if test -n "${ZSH_VERSION+set}" ; then
18130 setopt NO_GLOB_SUBST
18132 # Now quote all the things that may contain metacharacters while being
18133 # careful not to overquote the AC_SUBSTed values. We take copies of the
18134 # variables and quote the copies for generation of the libtool script.
18135 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18137 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18138 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18139 deplibs_check_method reload_flag reload_cmds need_locks \
18140 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18141 lt_cv_sys_global_symbol_to_c_name_address \
18142 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18143 old_postinstall_cmds old_postuninstall_cmds \
18147 lt_prog_compiler_wl_GCJ \
18148 lt_prog_compiler_pic_GCJ \
18149 lt_prog_compiler_static_GCJ \
18150 lt_prog_compiler_no_builtin_flag_GCJ \
18151 export_dynamic_flag_spec_GCJ \
18152 thread_safe_flag_spec_GCJ \
18153 whole_archive_flag_spec_GCJ \
18154 enable_shared_with_static_runtimes_GCJ \
18155 old_archive_cmds_GCJ \
18156 old_archive_from_new_cmds_GCJ \
18157 predep_objects_GCJ \
18158 postdep_objects_GCJ \
18161 compiler_lib_search_path_GCJ \
18163 archive_expsym_cmds_GCJ \
18164 postinstall_cmds_GCJ \
18165 postuninstall_cmds_GCJ \
18166 old_archive_from_expsyms_cmds_GCJ \
18167 allow_undefined_flag_GCJ \
18168 no_undefined_flag_GCJ \
18169 export_symbols_cmds_GCJ \
18170 hardcode_libdir_flag_spec_GCJ \
18171 hardcode_libdir_flag_spec_ld_GCJ \
18172 hardcode_libdir_separator_GCJ \
18173 hardcode_automatic_GCJ \
18175 module_expsym_cmds_GCJ \
18176 lt_cv_prog_compiler_c_o_GCJ \
18177 exclude_expsyms_GCJ \
18178 include_expsyms_GCJ; do
18181 old_archive_cmds_GCJ | \
18182 old_archive_from_new_cmds_GCJ | \
18183 archive_cmds_GCJ | \
18184 archive_expsym_cmds_GCJ | \
18185 module_cmds_GCJ | \
18186 module_expsym_cmds_GCJ | \
18187 old_archive_from_expsyms_cmds_GCJ | \
18188 export_symbols_cmds_GCJ | \
18189 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18190 postinstall_cmds | postuninstall_cmds | \
18191 old_postinstall_cmds | old_postuninstall_cmds | \
18192 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18193 # Double-quote double-evaled strings.
18194 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18197 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18203 *'\$0 --fallback-echo"')
18204 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18210 cat <<__EOF__ >> "$cfgfile"
18211 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18213 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18215 # Shell to use when invoking shell scripts.
18218 # Whether or not to build shared libraries.
18219 build_libtool_libs=$enable_shared
18221 # Whether or not to build static libraries.
18222 build_old_libs=$enable_static
18224 # Whether or not to add -lc for building shared libraries.
18225 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18227 # Whether or not to disallow shared libs when runtime libs are static
18228 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18230 # Whether or not to optimize for fast installation.
18231 fast_install=$enable_fast_install
18234 host_alias=$host_alias
18237 # An echo program that does not interpret backslashes.
18242 AR_FLAGS=$lt_AR_FLAGS
18247 # A language-specific compiler.
18248 CC=$lt_compiler_GCJ
18250 # Is the compiler the GNU C compiler?
18256 # The linker used to build libraries.
18259 # Whether we need hard or soft links.
18262 # A BSD-compatible nm program.
18265 # A symbol stripping program
18268 # Used to examine libraries when file_magic_cmd begins "file"
18269 MAGIC_CMD=$MAGIC_CMD
18271 # Used on cygwin: DLL creation program.
18274 # Used on cygwin: object dumper.
18277 # Used on cygwin: assembler.
18280 # The name of the directory that contains temporary libtool files.
18283 # How to create reloadable object files.
18284 reload_flag=$lt_reload_flag
18285 reload_cmds=$lt_reload_cmds
18287 # How to pass a linker flag through the compiler.
18288 wl=$lt_lt_prog_compiler_wl_GCJ
18290 # Object file suffix (normally "o").
18291 objext="$ac_objext"
18293 # Old archive suffix (normally "a").
18296 # Shared library suffix (normally ".so").
18299 # Executable file suffix (normally "").
18302 # Additional compiler flags for building library objects.
18303 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18306 # What is the maximum length of a command?
18307 max_cmd_len=$lt_cv_sys_max_cmd_len
18309 # Does compiler simultaneously support -c and -o options?
18310 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18312 # Must we lock files when doing compilation ?
18313 need_locks=$lt_need_locks
18315 # Do we need the lib prefix for modules?
18316 need_lib_prefix=$need_lib_prefix
18318 # Do we need a version for libraries?
18319 need_version=$need_version
18321 # Whether dlopen is supported.
18322 dlopen_support=$enable_dlopen
18324 # Whether dlopen of programs is supported.
18325 dlopen_self=$enable_dlopen_self
18327 # Whether dlopen of statically linked programs is supported.
18328 dlopen_self_static=$enable_dlopen_self_static
18330 # Compiler flag to prevent dynamic linking.
18331 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18333 # Compiler flag to turn off builtin functions.
18334 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18336 # Compiler flag to allow reflexive dlopens.
18337 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18339 # Compiler flag to generate shared objects directly from archives.
18340 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18342 # Compiler flag to generate thread-safe objects.
18343 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18345 # Library versioning type.
18346 version_type=$version_type
18348 # Format of library name prefix.
18349 libname_spec=$lt_libname_spec
18351 # List of archive names. First name is the real one, the rest are links.
18352 # The last name is the one that the linker finds with -lNAME.
18353 library_names_spec=$lt_library_names_spec
18355 # The coded name of the library, if different from the real name.
18356 soname_spec=$lt_soname_spec
18358 # Commands used to build and install an old-style archive.
18360 old_archive_cmds=$lt_old_archive_cmds_GCJ
18361 old_postinstall_cmds=$lt_old_postinstall_cmds
18362 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18364 # Create an old-style archive from a shared archive.
18365 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18367 # Create a temporary old-style archive to link instead of a shared archive.
18368 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18370 # Commands used to build and install a shared archive.
18371 archive_cmds=$lt_archive_cmds_GCJ
18372 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18373 postinstall_cmds=$lt_postinstall_cmds
18374 postuninstall_cmds=$lt_postuninstall_cmds
18376 # Commands used to build a loadable module (assumed same as above if empty)
18377 module_cmds=$lt_module_cmds_GCJ
18378 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18380 # Commands to strip libraries.
18381 old_striplib=$lt_old_striplib
18382 striplib=$lt_striplib
18384 # Dependencies to place before the objects being linked to create a
18386 predep_objects=$lt_predep_objects_GCJ
18388 # Dependencies to place after the objects being linked to create a
18390 postdep_objects=$lt_postdep_objects_GCJ
18392 # Dependencies to place before the objects being linked to create a
18394 predeps=$lt_predeps_GCJ
18396 # Dependencies to place after the objects being linked to create a
18398 postdeps=$lt_postdeps_GCJ
18400 # The library search path used internally by the compiler when linking
18401 # a shared library.
18402 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18404 # Method to check whether dependent libraries are shared objects.
18405 deplibs_check_method=$lt_deplibs_check_method
18407 # Command to use when deplibs_check_method == file_magic.
18408 file_magic_cmd=$lt_file_magic_cmd
18410 # Flag that allows shared libraries with undefined symbols to be built.
18411 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18413 # Flag that forces no undefined symbols.
18414 no_undefined_flag=$lt_no_undefined_flag_GCJ
18416 # Commands used to finish a libtool library installation in a directory.
18417 finish_cmds=$lt_finish_cmds
18419 # Same as above, but a single script fragment to be evaled but not shown.
18420 finish_eval=$lt_finish_eval
18422 # Take the output of nm and produce a listing of raw symbols and C names.
18423 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18425 # Transform the output of nm in a proper C declaration
18426 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18428 # Transform the output of nm in a C name address pair
18429 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18431 # This is the shared library runtime path variable.
18432 runpath_var=$runpath_var
18434 # This is the shared library path variable.
18435 shlibpath_var=$shlibpath_var
18437 # Is shlibpath searched before the hard-coded library search path?
18438 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18440 # How to hardcode a shared library path into an executable.
18441 hardcode_action=$hardcode_action_GCJ
18443 # Whether we should hardcode library paths into libraries.
18444 hardcode_into_libs=$hardcode_into_libs
18446 # Flag to hardcode \$libdir into a binary during linking.
18447 # This must work even if \$libdir does not exist.
18448 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18450 # If ld is used when linking, flag to hardcode \$libdir into
18451 # a binary during linking. This must work even if \$libdir does
18453 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18455 # Whether we need a single -rpath flag with a separated argument.
18456 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18458 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18459 # resulting binary.
18460 hardcode_direct=$hardcode_direct_GCJ
18462 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18463 # resulting binary.
18464 hardcode_minus_L=$hardcode_minus_L_GCJ
18466 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18467 # the resulting binary.
18468 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18470 # Set to yes if building a shared library automatically hardcodes DIR into the library
18471 # and all subsequent libraries and executables linked against it.
18472 hardcode_automatic=$hardcode_automatic_GCJ
18474 # Variables whose values should be saved in libtool wrapper scripts and
18475 # restored at relink time.
18476 variables_saved_for_relink="$variables_saved_for_relink"
18478 # Whether libtool must link a program against all its dependency libraries.
18479 link_all_deplibs=$link_all_deplibs_GCJ
18481 # Compile-time system search path for libraries
18482 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18484 # Run-time system search path for libraries
18485 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18487 # Fix the shell variable \$srcfile for the compiler.
18488 fix_srcfile_path="$fix_srcfile_path_GCJ"
18490 # Set to yes if exported symbols are required.
18491 always_export_symbols=$always_export_symbols_GCJ
18493 # The commands to list exported symbols.
18494 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18496 # The commands to extract the exported symbol list from a shared archive.
18497 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18499 # Symbols that should not be listed in the preloaded symbols.
18500 exclude_expsyms=$lt_exclude_expsyms_GCJ
18502 # Symbols that must always be exported.
18503 include_expsyms=$lt_include_expsyms_GCJ
18505 # ### END LIBTOOL TAG CONFIG: $tagname
18511 # If there is no Makefile yet, we rely on a make rule to execute
18512 # `config.status --recheck' to rerun these tests and create the
18513 # libtool script then.
18514 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18515 if test -f "$ltmain_in"; then
18516 test -f Makefile && make "$ltmain"
18522 ac_cpp='$CPP $CPPFLAGS'
18523 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18524 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18525 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18538 # Source file extension for RC test sources.
18541 # Object file extension for compiled RC test sources.
18545 # Code to be used in simple compile tests
18546 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18548 # Code to be used in simple link tests
18549 lt_simple_link_test_code="$lt_simple_compile_test_code"
18551 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18553 # If no C compiler was specified, use CC.
18556 # Allow CC to be a program name with arguments.
18560 # Allow CC to be a program name with arguments.
18565 lt_cv_prog_compiler_c_o_RC=yes
18567 # The else clause should only fire when bootstrapping the
18568 # libtool distribution, otherwise you forgot to ship ltmain.sh
18569 # with your package, and you will get complaints that there are
18570 # no rules to generate ltmain.sh.
18571 if test -f "$ltmain"; then
18572 # See if we are running on zsh, and set the options which allow our commands through
18573 # without removal of \ escapes.
18574 if test -n "${ZSH_VERSION+set}" ; then
18575 setopt NO_GLOB_SUBST
18577 # Now quote all the things that may contain metacharacters while being
18578 # careful not to overquote the AC_SUBSTed values. We take copies of the
18579 # variables and quote the copies for generation of the libtool script.
18580 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18582 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18583 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18584 deplibs_check_method reload_flag reload_cmds need_locks \
18585 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18586 lt_cv_sys_global_symbol_to_c_name_address \
18587 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18588 old_postinstall_cmds old_postuninstall_cmds \
18592 lt_prog_compiler_wl_RC \
18593 lt_prog_compiler_pic_RC \
18594 lt_prog_compiler_static_RC \
18595 lt_prog_compiler_no_builtin_flag_RC \
18596 export_dynamic_flag_spec_RC \
18597 thread_safe_flag_spec_RC \
18598 whole_archive_flag_spec_RC \
18599 enable_shared_with_static_runtimes_RC \
18600 old_archive_cmds_RC \
18601 old_archive_from_new_cmds_RC \
18602 predep_objects_RC \
18603 postdep_objects_RC \
18606 compiler_lib_search_path_RC \
18608 archive_expsym_cmds_RC \
18609 postinstall_cmds_RC \
18610 postuninstall_cmds_RC \
18611 old_archive_from_expsyms_cmds_RC \
18612 allow_undefined_flag_RC \
18613 no_undefined_flag_RC \
18614 export_symbols_cmds_RC \
18615 hardcode_libdir_flag_spec_RC \
18616 hardcode_libdir_flag_spec_ld_RC \
18617 hardcode_libdir_separator_RC \
18618 hardcode_automatic_RC \
18620 module_expsym_cmds_RC \
18621 lt_cv_prog_compiler_c_o_RC \
18622 exclude_expsyms_RC \
18623 include_expsyms_RC; do
18626 old_archive_cmds_RC | \
18627 old_archive_from_new_cmds_RC | \
18628 archive_cmds_RC | \
18629 archive_expsym_cmds_RC | \
18631 module_expsym_cmds_RC | \
18632 old_archive_from_expsyms_cmds_RC | \
18633 export_symbols_cmds_RC | \
18634 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18635 postinstall_cmds | postuninstall_cmds | \
18636 old_postinstall_cmds | old_postuninstall_cmds | \
18637 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18638 # Double-quote double-evaled strings.
18639 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18642 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18648 *'\$0 --fallback-echo"')
18649 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18655 cat <<__EOF__ >> "$cfgfile"
18656 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18658 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18660 # Shell to use when invoking shell scripts.
18663 # Whether or not to build shared libraries.
18664 build_libtool_libs=$enable_shared
18666 # Whether or not to build static libraries.
18667 build_old_libs=$enable_static
18669 # Whether or not to add -lc for building shared libraries.
18670 build_libtool_need_lc=$archive_cmds_need_lc_RC
18672 # Whether or not to disallow shared libs when runtime libs are static
18673 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18675 # Whether or not to optimize for fast installation.
18676 fast_install=$enable_fast_install
18679 host_alias=$host_alias
18682 # An echo program that does not interpret backslashes.
18687 AR_FLAGS=$lt_AR_FLAGS
18692 # A language-specific compiler.
18695 # Is the compiler the GNU C compiler?
18701 # The linker used to build libraries.
18704 # Whether we need hard or soft links.
18707 # A BSD-compatible nm program.
18710 # A symbol stripping program
18713 # Used to examine libraries when file_magic_cmd begins "file"
18714 MAGIC_CMD=$MAGIC_CMD
18716 # Used on cygwin: DLL creation program.
18719 # Used on cygwin: object dumper.
18722 # Used on cygwin: assembler.
18725 # The name of the directory that contains temporary libtool files.
18728 # How to create reloadable object files.
18729 reload_flag=$lt_reload_flag
18730 reload_cmds=$lt_reload_cmds
18732 # How to pass a linker flag through the compiler.
18733 wl=$lt_lt_prog_compiler_wl_RC
18735 # Object file suffix (normally "o").
18736 objext="$ac_objext"
18738 # Old archive suffix (normally "a").
18741 # Shared library suffix (normally ".so").
18744 # Executable file suffix (normally "").
18747 # Additional compiler flags for building library objects.
18748 pic_flag=$lt_lt_prog_compiler_pic_RC
18751 # What is the maximum length of a command?
18752 max_cmd_len=$lt_cv_sys_max_cmd_len
18754 # Does compiler simultaneously support -c and -o options?
18755 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18757 # Must we lock files when doing compilation ?
18758 need_locks=$lt_need_locks
18760 # Do we need the lib prefix for modules?
18761 need_lib_prefix=$need_lib_prefix
18763 # Do we need a version for libraries?
18764 need_version=$need_version
18766 # Whether dlopen is supported.
18767 dlopen_support=$enable_dlopen
18769 # Whether dlopen of programs is supported.
18770 dlopen_self=$enable_dlopen_self
18772 # Whether dlopen of statically linked programs is supported.
18773 dlopen_self_static=$enable_dlopen_self_static
18775 # Compiler flag to prevent dynamic linking.
18776 link_static_flag=$lt_lt_prog_compiler_static_RC
18778 # Compiler flag to turn off builtin functions.
18779 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18781 # Compiler flag to allow reflexive dlopens.
18782 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18784 # Compiler flag to generate shared objects directly from archives.
18785 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18787 # Compiler flag to generate thread-safe objects.
18788 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18790 # Library versioning type.
18791 version_type=$version_type
18793 # Format of library name prefix.
18794 libname_spec=$lt_libname_spec
18796 # List of archive names. First name is the real one, the rest are links.
18797 # The last name is the one that the linker finds with -lNAME.
18798 library_names_spec=$lt_library_names_spec
18800 # The coded name of the library, if different from the real name.
18801 soname_spec=$lt_soname_spec
18803 # Commands used to build and install an old-style archive.
18805 old_archive_cmds=$lt_old_archive_cmds_RC
18806 old_postinstall_cmds=$lt_old_postinstall_cmds
18807 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18809 # Create an old-style archive from a shared archive.
18810 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18812 # Create a temporary old-style archive to link instead of a shared archive.
18813 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18815 # Commands used to build and install a shared archive.
18816 archive_cmds=$lt_archive_cmds_RC
18817 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18818 postinstall_cmds=$lt_postinstall_cmds
18819 postuninstall_cmds=$lt_postuninstall_cmds
18821 # Commands used to build a loadable module (assumed same as above if empty)
18822 module_cmds=$lt_module_cmds_RC
18823 module_expsym_cmds=$lt_module_expsym_cmds_RC
18825 # Commands to strip libraries.
18826 old_striplib=$lt_old_striplib
18827 striplib=$lt_striplib
18829 # Dependencies to place before the objects being linked to create a
18831 predep_objects=$lt_predep_objects_RC
18833 # Dependencies to place after the objects being linked to create a
18835 postdep_objects=$lt_postdep_objects_RC
18837 # Dependencies to place before the objects being linked to create a
18839 predeps=$lt_predeps_RC
18841 # Dependencies to place after the objects being linked to create a
18843 postdeps=$lt_postdeps_RC
18845 # The library search path used internally by the compiler when linking
18846 # a shared library.
18847 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18849 # Method to check whether dependent libraries are shared objects.
18850 deplibs_check_method=$lt_deplibs_check_method
18852 # Command to use when deplibs_check_method == file_magic.
18853 file_magic_cmd=$lt_file_magic_cmd
18855 # Flag that allows shared libraries with undefined symbols to be built.
18856 allow_undefined_flag=$lt_allow_undefined_flag_RC
18858 # Flag that forces no undefined symbols.
18859 no_undefined_flag=$lt_no_undefined_flag_RC
18861 # Commands used to finish a libtool library installation in a directory.
18862 finish_cmds=$lt_finish_cmds
18864 # Same as above, but a single script fragment to be evaled but not shown.
18865 finish_eval=$lt_finish_eval
18867 # Take the output of nm and produce a listing of raw symbols and C names.
18868 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18870 # Transform the output of nm in a proper C declaration
18871 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18873 # Transform the output of nm in a C name address pair
18874 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18876 # This is the shared library runtime path variable.
18877 runpath_var=$runpath_var
18879 # This is the shared library path variable.
18880 shlibpath_var=$shlibpath_var
18882 # Is shlibpath searched before the hard-coded library search path?
18883 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18885 # How to hardcode a shared library path into an executable.
18886 hardcode_action=$hardcode_action_RC
18888 # Whether we should hardcode library paths into libraries.
18889 hardcode_into_libs=$hardcode_into_libs
18891 # Flag to hardcode \$libdir into a binary during linking.
18892 # This must work even if \$libdir does not exist.
18893 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18895 # If ld is used when linking, flag to hardcode \$libdir into
18896 # a binary during linking. This must work even if \$libdir does
18898 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18900 # Whether we need a single -rpath flag with a separated argument.
18901 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18903 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18904 # resulting binary.
18905 hardcode_direct=$hardcode_direct_RC
18907 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18908 # resulting binary.
18909 hardcode_minus_L=$hardcode_minus_L_RC
18911 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18912 # the resulting binary.
18913 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18915 # Set to yes if building a shared library automatically hardcodes DIR into the library
18916 # and all subsequent libraries and executables linked against it.
18917 hardcode_automatic=$hardcode_automatic_RC
18919 # Variables whose values should be saved in libtool wrapper scripts and
18920 # restored at relink time.
18921 variables_saved_for_relink="$variables_saved_for_relink"
18923 # Whether libtool must link a program against all its dependency libraries.
18924 link_all_deplibs=$link_all_deplibs_RC
18926 # Compile-time system search path for libraries
18927 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18929 # Run-time system search path for libraries
18930 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18932 # Fix the shell variable \$srcfile for the compiler.
18933 fix_srcfile_path="$fix_srcfile_path_RC"
18935 # Set to yes if exported symbols are required.
18936 always_export_symbols=$always_export_symbols_RC
18938 # The commands to list exported symbols.
18939 export_symbols_cmds=$lt_export_symbols_cmds_RC
18941 # The commands to extract the exported symbol list from a shared archive.
18942 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18944 # Symbols that should not be listed in the preloaded symbols.
18945 exclude_expsyms=$lt_exclude_expsyms_RC
18947 # Symbols that must always be exported.
18948 include_expsyms=$lt_include_expsyms_RC
18950 # ### END LIBTOOL TAG CONFIG: $tagname
18956 # If there is no Makefile yet, we rely on a make rule to execute
18957 # `config.status --recheck' to rerun these tests and create the
18958 # libtool script then.
18959 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18960 if test -f "$ltmain_in"; then
18961 test -f Makefile && make "$ltmain"
18967 ac_cpp='$CPP $CPPFLAGS'
18968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18977 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18978 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18979 { (exit 1); exit 1; }; }
18983 # Append the new tag name to the list of available tags.
18984 if test -n "$tagname" ; then
18985 available_tags="$available_tags $tagname"
18991 # Now substitute the updated list of available tags.
18992 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18993 mv "${ofile}T" "$ofile"
18997 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18998 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18999 { (exit 1); exit 1; }; }
19005 # This can be used to rebuild libtool when needed
19006 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19008 # Always use our own libtool.
19009 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19011 # Prevent multiple expansion
19033 # declare the modules (no optional module)
19035 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
19036 ACLOCAL="$ACLOCAL -I acmacro"
19040 ac_cpp='$CPP $CPPFLAGS'
19041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19044 if test -n "$ac_tool_prefix"; then
19045 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19046 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19047 echo "$as_me:$LINENO: checking for $ac_word" >&5
19048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19049 if test "${ac_cv_prog_CC+set}" = set; then
19050 echo $ECHO_N "(cached) $ECHO_C" >&6
19052 if test -n "$CC"; then
19053 ac_cv_prog_CC="$CC" # Let the user override the test.
19055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19056 for as_dir in $PATH
19059 test -z "$as_dir" && as_dir=.
19060 for ac_exec_ext in '' $ac_executable_extensions; do
19061 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19062 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19072 if test -n "$CC"; then
19073 echo "$as_me:$LINENO: result: $CC" >&5
19074 echo "${ECHO_T}$CC" >&6
19076 echo "$as_me:$LINENO: result: no" >&5
19077 echo "${ECHO_T}no" >&6
19081 if test -z "$ac_cv_prog_CC"; then
19083 # Extract the first word of "gcc", so it can be a program name with args.
19084 set dummy gcc; ac_word=$2
19085 echo "$as_me:$LINENO: checking for $ac_word" >&5
19086 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19087 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19088 echo $ECHO_N "(cached) $ECHO_C" >&6
19090 if test -n "$ac_ct_CC"; then
19091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19094 for as_dir in $PATH
19097 test -z "$as_dir" && as_dir=.
19098 for ac_exec_ext in '' $ac_executable_extensions; do
19099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19100 ac_cv_prog_ac_ct_CC="gcc"
19101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19109 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19110 if test -n "$ac_ct_CC"; then
19111 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19112 echo "${ECHO_T}$ac_ct_CC" >&6
19114 echo "$as_me:$LINENO: result: no" >&5
19115 echo "${ECHO_T}no" >&6
19120 CC="$ac_cv_prog_CC"
19123 if test -z "$CC"; then
19124 if test -n "$ac_tool_prefix"; then
19125 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19126 set dummy ${ac_tool_prefix}cc; 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}cc"
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 "cc", so it can be a program name with args.
19164 set dummy cc; 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="cc"
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"
19204 if test -z "$CC"; then
19205 # Extract the first word of "cc", so it can be a program name with args.
19206 set dummy 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 ac_prog_rejected=no
19216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19217 for as_dir in $PATH
19220 test -z "$as_dir" && as_dir=.
19221 for ac_exec_ext in '' $ac_executable_extensions; do
19222 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19223 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19224 ac_prog_rejected=yes
19228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19234 if test $ac_prog_rejected = yes; then
19235 # We found a bogon in the path, so make sure we never use it.
19236 set dummy $ac_cv_prog_CC
19238 if test $# != 0; then
19239 # We chose a different compiler from the bogus one.
19240 # However, it has the same basename, so the bogon will be chosen
19241 # first if we set CC to just the basename; use the full file name.
19243 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19249 if test -n "$CC"; then
19250 echo "$as_me:$LINENO: result: $CC" >&5
19251 echo "${ECHO_T}$CC" >&6
19253 echo "$as_me:$LINENO: result: no" >&5
19254 echo "${ECHO_T}no" >&6
19258 if test -z "$CC"; then
19259 if test -n "$ac_tool_prefix"; then
19262 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19263 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19264 echo "$as_me:$LINENO: checking for $ac_word" >&5
19265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19266 if test "${ac_cv_prog_CC+set}" = set; then
19267 echo $ECHO_N "(cached) $ECHO_C" >&6
19269 if test -n "$CC"; then
19270 ac_cv_prog_CC="$CC" # Let the user override the test.
19272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19273 for as_dir in $PATH
19276 test -z "$as_dir" && as_dir=.
19277 for ac_exec_ext in '' $ac_executable_extensions; do
19278 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19279 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19289 if test -n "$CC"; then
19290 echo "$as_me:$LINENO: result: $CC" >&5
19291 echo "${ECHO_T}$CC" >&6
19293 echo "$as_me:$LINENO: result: no" >&5
19294 echo "${ECHO_T}no" >&6
19297 test -n "$CC" && break
19300 if test -z "$CC"; then
19304 # Extract the first word of "$ac_prog", so it can be a program name with args.
19305 set dummy $ac_prog; ac_word=$2
19306 echo "$as_me:$LINENO: checking for $ac_word" >&5
19307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19308 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19309 echo $ECHO_N "(cached) $ECHO_C" >&6
19311 if test -n "$ac_ct_CC"; then
19312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19315 for as_dir in $PATH
19318 test -z "$as_dir" && as_dir=.
19319 for ac_exec_ext in '' $ac_executable_extensions; do
19320 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19321 ac_cv_prog_ac_ct_CC="$ac_prog"
19322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19330 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19331 if test -n "$ac_ct_CC"; then
19332 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19333 echo "${ECHO_T}$ac_ct_CC" >&6
19335 echo "$as_me:$LINENO: result: no" >&5
19336 echo "${ECHO_T}no" >&6
19339 test -n "$ac_ct_CC" && break
19348 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19349 See \`config.log' for more details." >&5
19350 echo "$as_me: error: no acceptable C compiler found in \$PATH
19351 See \`config.log' for more details." >&2;}
19352 { (exit 1); exit 1; }; }
19354 # Provide some information about the compiler.
19355 echo "$as_me:$LINENO:" \
19356 "checking for C compiler version" >&5
19357 ac_compiler=`set X $ac_compile; echo $2`
19358 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19359 (eval $ac_compiler --version </dev/null >&5) 2>&5
19361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19362 (exit $ac_status); }
19363 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19364 (eval $ac_compiler -v </dev/null >&5) 2>&5
19366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); }
19368 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19369 (eval $ac_compiler -V </dev/null >&5) 2>&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); }
19374 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19375 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19376 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19379 cat >conftest.$ac_ext <<_ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h. */
19397 rm -f conftest.$ac_objext
19398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399 (eval $ac_compile) 2>conftest.er1
19401 grep -v '^ *+' conftest.er1 >conftest.err
19403 cat conftest.err >&5
19404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19405 (exit $ac_status); } &&
19406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19408 (eval $ac_try) 2>&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); }; } &&
19412 { ac_try='test -s conftest.$ac_objext'
19413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19414 (eval $ac_try) 2>&5
19416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417 (exit $ac_status); }; }; then
19418 ac_compiler_gnu=yes
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19425 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19426 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19429 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19430 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19431 GCC=`test $ac_compiler_gnu = yes && echo yes`
19432 ac_test_CFLAGS=${CFLAGS+set}
19433 ac_save_CFLAGS=$CFLAGS
19435 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19436 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19437 if test "${ac_cv_prog_cc_g+set}" = set; then
19438 echo $ECHO_N "(cached) $ECHO_C" >&6
19440 cat >conftest.$ac_ext <<_ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h. */
19455 rm -f conftest.$ac_objext
19456 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19457 (eval $ac_compile) 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); } &&
19464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19466 (eval $ac_try) 2>&5
19468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19469 (exit $ac_status); }; } &&
19470 { ac_try='test -s conftest.$ac_objext'
19471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19472 (eval $ac_try) 2>&5
19474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19475 (exit $ac_status); }; }; then
19476 ac_cv_prog_cc_g=yes
19478 echo "$as_me: failed program was:" >&5
19479 sed 's/^/| /' conftest.$ac_ext >&5
19483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19485 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19486 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19487 if test "$ac_test_CFLAGS" = set; then
19488 CFLAGS=$ac_save_CFLAGS
19489 elif test $ac_cv_prog_cc_g = yes; then
19490 if test "$GCC" = yes; then
19496 if test "$GCC" = yes; then
19502 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19503 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19504 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19505 echo $ECHO_N "(cached) $ECHO_C" >&6
19507 ac_cv_prog_cc_stdc=no
19509 cat >conftest.$ac_ext <<_ACEOF
19512 cat confdefs.h >>conftest.$ac_ext
19513 cat >>conftest.$ac_ext <<_ACEOF
19514 /* end confdefs.h. */
19515 #include <stdarg.h>
19517 #include <sys/types.h>
19518 #include <sys/stat.h>
19519 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19520 struct buf { int x; };
19521 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19522 static char *e (p, i)
19528 static char *f (char * (*g) (char **, int), char **p, ...)
19533 s = g (p, va_arg (v,int));
19538 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19539 function prototypes and stuff, but not '\xHH' hex character constants.
19540 These don't provoke an error unfortunately, instead are silently treated
19541 as 'x'. The following induces an error, until -std1 is added to get
19542 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19543 array size at least. It's necessary to write '\x00'==0 to get something
19544 that's true only with -std1. */
19545 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19547 int test (int i, double x);
19548 struct s1 {int (*f) (int a);};
19549 struct s2 {int (*f) (double a);};
19550 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19556 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19561 # Don't try gcc -ansi; that turns off useful extensions and
19562 # breaks some systems' header files.
19563 # AIX -qlanglvl=ansi
19564 # Ultrix and OSF/1 -std1
19565 # HP-UX 10.20 and later -Ae
19566 # HP-UX older versions -Aa -D_HPUX_SOURCE
19567 # SVR4 -Xc -D__EXTENSIONS__
19568 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19570 CC="$ac_save_CC $ac_arg"
19571 rm -f conftest.$ac_objext
19572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19573 (eval $ac_compile) 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19579 (exit $ac_status); } &&
19580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19582 (eval $ac_try) 2>&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); }; } &&
19586 { ac_try='test -s conftest.$ac_objext'
19587 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19588 (eval $ac_try) 2>&5
19590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591 (exit $ac_status); }; }; then
19592 ac_cv_prog_cc_stdc=$ac_arg
19595 echo "$as_me: failed program was:" >&5
19596 sed 's/^/| /' conftest.$ac_ext >&5
19599 rm -f conftest.err conftest.$ac_objext
19601 rm -f conftest.$ac_ext conftest.$ac_objext
19606 case "x$ac_cv_prog_cc_stdc" in
19608 echo "$as_me:$LINENO: result: none needed" >&5
19609 echo "${ECHO_T}none needed" >&6 ;;
19611 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19612 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19613 CC="$CC $ac_cv_prog_cc_stdc" ;;
19616 # Some people use a C++ compiler to compile C. Since we use `exit',
19617 # in C++ we need to declare it. In case someone uses the same compiler
19618 # for both compiling C and C++ we need to have the C++ compiler decide
19619 # the declaration of exit, since it's the most demanding environment.
19620 cat >conftest.$ac_ext <<_ACEOF
19621 #ifndef __cplusplus
19625 rm -f conftest.$ac_objext
19626 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19627 (eval $ac_compile) 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19633 (exit $ac_status); } &&
19634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19636 (eval $ac_try) 2>&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); }; } &&
19640 { ac_try='test -s conftest.$ac_objext'
19641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19642 (eval $ac_try) 2>&5
19644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19645 (exit $ac_status); }; }; then
19646 for ac_declaration in \
19648 'extern "C" void std::exit (int) throw (); using std::exit;' \
19649 'extern "C" void std::exit (int); using std::exit;' \
19650 'extern "C" void exit (int) throw ();' \
19651 'extern "C" void exit (int);' \
19654 cat >conftest.$ac_ext <<_ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19661 #include <stdlib.h>
19670 rm -f conftest.$ac_objext
19671 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19672 (eval $ac_compile) 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19681 (eval $ac_try) 2>&5
19683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19684 (exit $ac_status); }; } &&
19685 { ac_try='test -s conftest.$ac_objext'
19686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19687 (eval $ac_try) 2>&5
19689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19690 (exit $ac_status); }; }; then
19693 echo "$as_me: failed program was:" >&5
19694 sed 's/^/| /' conftest.$ac_ext >&5
19698 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19714 rm -f conftest.$ac_objext
19715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19716 (eval $ac_compile) 2>conftest.er1
19718 grep -v '^ *+' conftest.er1 >conftest.err
19720 cat conftest.err >&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); } &&
19723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19725 (eval $ac_try) 2>&5
19727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728 (exit $ac_status); }; } &&
19729 { ac_try='test -s conftest.$ac_objext'
19730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19731 (eval $ac_try) 2>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); }; }; then
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19744 if test -n "$ac_declaration"; then
19745 echo '#ifdef __cplusplus' >>confdefs.h
19746 echo $ac_declaration >>confdefs.h
19747 echo '#endif' >>confdefs.h
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19757 ac_cpp='$CPP $CPPFLAGS'
19758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19762 depcc="$CC" am_compiler_list=
19764 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19765 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19766 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19767 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19770 # We make a subdir and do the tests there. Otherwise we can end up
19771 # making bogus files that we don't know about and never remove. For
19772 # instance it was reported that on HP-UX the gcc test will end up
19773 # making a dummy file named `D' -- because `-MD' means `put the output
19776 # Copy depcomp to subdir because otherwise we won't find it if we're
19777 # using a relative directory.
19778 cp "$am_depcomp" conftest.dir
19780 # We will build objects and dependencies in a subdirectory because
19781 # it helps to detect inapplicable dependency modes. For instance
19782 # both Tru64's cc and ICC support -MD to output dependencies as a
19783 # side effect of compilation, but ICC will put the dependencies in
19784 # the current directory while Tru64 will put them in the object
19788 am_cv_CC_dependencies_compiler_type=none
19789 if test "$am_compiler_list" = ""; then
19790 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19792 for depmode in $am_compiler_list; do
19793 # Setup a source with many dependencies, because some compilers
19794 # like to wrap large dependency lists on column 80 (with \), and
19795 # we should not choose a depcomp mode which is confused by this.
19797 # We need to recreate these files for each test, as the compiler may
19798 # overwrite some of them when testing with obscure command lines.
19799 # This happens at least with the AIX C compiler.
19801 for i in 1 2 3 4 5 6; do
19802 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19803 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19804 # Solaris 8's {/usr,}/bin/sh.
19805 touch sub/conftst$i.h
19807 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19811 # after this tag, mechanisms are not by side-effect, so they'll
19812 # only be used when explicitly requested
19813 if test "x$enable_dependency_tracking" = xyes; then
19821 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19822 # mode. It turns out that the SunPro C++ compiler does not properly
19823 # handle `-M -o', and we need to detect this.
19824 if depmode=$depmode \
19825 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19826 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19827 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19828 >/dev/null 2>conftest.err &&
19829 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19830 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19831 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19832 # icc doesn't choke on unknown options, it will just issue warnings
19833 # (even with -Werror). So we grep stderr for any message
19834 # that says an option was ignored.
19835 if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
19836 am_cv_CC_dependencies_compiler_type=$depmode
19843 rm -rf conftest.dir
19845 am_cv_CC_dependencies_compiler_type=none
19849 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19850 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19851 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19856 test "x$enable_dependency_tracking" != xno \
19857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19858 am__fastdepCC_TRUE=
19859 am__fastdepCC_FALSE='#'
19861 am__fastdepCC_TRUE='#'
19862 am__fastdepCC_FALSE=
19866 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19867 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19870 echo timestamp > conftest.file
19871 # Do `set' in a subshell so we don't clobber the current shell's
19872 # arguments. Must try -L first in case configure is actually a
19873 # symlink; some systems play weird games with the mod time of symlinks
19874 # (eg FreeBSD returns the mod time of the symlink's containing
19877 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19878 if test "$*" = "X"; then
19880 set X `ls -t $srcdir/configure conftest.file`
19882 rm -f conftest.file
19883 if test "$*" != "X $srcdir/configure conftest.file" \
19884 && test "$*" != "X conftest.file $srcdir/configure"; then
19886 # If neither matched, then we have a broken ls. This can happen
19887 # if, for instance, CONFIG_SHELL is bash and it inherits a
19888 # broken ls alias from the environment. This has actually
19889 # happened. Such a system could not be considered "sane".
19890 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19891 alias in your environment" >&5
19892 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19893 alias in your environment" >&2;}
19894 { (exit 1); exit 1; }; }
19897 test "$2" = conftest.file
19903 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19904 Check your system clock" >&5
19905 echo "$as_me: error: newly created file is older than distributed files!
19906 Check your system clock" >&2;}
19907 { (exit 1); exit 1; }; }
19909 echo "$as_me:$LINENO: result: yes" >&5
19910 echo "${ECHO_T}yes" >&6
19911 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19912 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
19913 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
19914 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
19915 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 cat >conftest.make <<\_ACEOF
19919 @echo 'ac_maketemp="$(MAKE)"'
19921 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19922 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
19923 if test -n "$ac_maketemp"; then
19924 eval ac_cv_prog_make_${ac_make}_set=yes
19926 eval ac_cv_prog_make_${ac_make}_set=no
19928 rm -f conftest.make
19930 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
19931 echo "$as_me:$LINENO: result: yes" >&5
19932 echo "${ECHO_T}yes" >&6
19935 echo "$as_me:$LINENO: result: no" >&5
19936 echo "${ECHO_T}no" >&6
19937 SET_MAKE="MAKE=${MAKE-make}"
19941 # Check architecture signature
19943 # Check for the architecture
19944 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
19945 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
19946 if test "${ac_cv_c_bigendian+set}" = set; then
19947 echo $ECHO_N "(cached) $ECHO_C" >&6
19949 # See if sys/param.h defines the BYTE_ORDER macro.
19950 cat >conftest.$ac_ext <<_ACEOF
19953 cat confdefs.h >>conftest.$ac_ext
19954 cat >>conftest.$ac_ext <<_ACEOF
19955 /* end confdefs.h. */
19956 #include <sys/types.h>
19957 #include <sys/param.h>
19962 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
19963 bogus endian macros
19970 rm -f conftest.$ac_objext
19971 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19972 (eval $ac_compile) 2>conftest.er1
19974 grep -v '^ *+' conftest.er1 >conftest.err
19976 cat conftest.err >&5
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); } &&
19979 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19981 (eval $ac_try) 2>&5
19983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19984 (exit $ac_status); }; } &&
19985 { ac_try='test -s conftest.$ac_objext'
19986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19987 (eval $ac_try) 2>&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); }; }; then
19991 # It does; now see whether it defined to BIG_ENDIAN or not.
19992 cat >conftest.$ac_ext <<_ACEOF
19995 cat confdefs.h >>conftest.$ac_ext
19996 cat >>conftest.$ac_ext <<_ACEOF
19997 /* end confdefs.h. */
19998 #include <sys/types.h>
19999 #include <sys/param.h>
20004 #if BYTE_ORDER != BIG_ENDIAN
20012 rm -f conftest.$ac_objext
20013 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20014 (eval $ac_compile) 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20023 (eval $ac_try) 2>&5
20025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20026 (exit $ac_status); }; } &&
20027 { ac_try='test -s conftest.$ac_objext'
20028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20029 (eval $ac_try) 2>&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); }; }; then
20033 ac_cv_c_bigendian=yes
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20038 ac_cv_c_bigendian=no
20040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20042 echo "$as_me: failed program was:" >&5
20043 sed 's/^/| /' conftest.$ac_ext >&5
20045 # It does not; compile a test program.
20046 if test "$cross_compiling" = yes; then
20047 # try to guess the endianness by grepping values into an object file
20048 ac_cv_c_bigendian=unknown
20049 cat >conftest.$ac_ext <<_ACEOF
20052 cat confdefs.h >>conftest.$ac_ext
20053 cat >>conftest.$ac_ext <<_ACEOF
20054 /* end confdefs.h. */
20055 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20056 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20057 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20058 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20059 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20060 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20064 _ascii (); _ebcdic ();
20069 rm -f conftest.$ac_objext
20070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20071 (eval $ac_compile) 2>conftest.er1
20073 grep -v '^ *+' conftest.er1 >conftest.err
20075 cat conftest.err >&5
20076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20077 (exit $ac_status); } &&
20078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20080 (eval $ac_try) 2>&5
20082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20083 (exit $ac_status); }; } &&
20084 { ac_try='test -s conftest.$ac_objext'
20085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20086 (eval $ac_try) 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20091 ac_cv_c_bigendian=yes
20093 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20094 if test "$ac_cv_c_bigendian" = unknown; then
20095 ac_cv_c_bigendian=no
20097 # finding both strings is unlikely to happen, but who knows?
20098 ac_cv_c_bigendian=unknown
20102 echo "$as_me: failed program was:" >&5
20103 sed 's/^/| /' conftest.$ac_ext >&5
20106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20108 cat >conftest.$ac_ext <<_ACEOF
20111 cat confdefs.h >>conftest.$ac_ext
20112 cat >>conftest.$ac_ext <<_ACEOF
20113 /* end confdefs.h. */
20117 /* Are we little or big endian? From Harbison&Steele. */
20121 char c[sizeof (long)];
20124 exit (u.c[sizeof (long) - 1] == 1);
20127 rm -f conftest$ac_exeext
20128 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20129 (eval $ac_link) 2>&5
20131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20132 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20134 (eval $ac_try) 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; }; then
20138 ac_cv_c_bigendian=no
20140 echo "$as_me: program exited with status $ac_status" >&5
20141 echo "$as_me: failed program was:" >&5
20142 sed 's/^/| /' conftest.$ac_ext >&5
20144 ( exit $ac_status )
20145 ac_cv_c_bigendian=yes
20147 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20152 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20153 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20154 case $ac_cv_c_bigendian in
20160 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20161 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20162 { (exit 1); exit 1; }; } ;;
20166 cat >>confdefs.h <<_ACEOF
20167 #define GRAS_BIGENDIAN $endian
20171 echo "$as_me:$LINENO: checking size of char" >&5
20172 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20173 if test "${ac_cv_sizeof_char+set}" = set; then
20174 echo $ECHO_N "(cached) $ECHO_C" >&6
20176 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20177 cat >conftest.$ac_ext <<_ACEOF
20180 cat confdefs.h >>conftest.$ac_ext
20181 cat >>conftest.$ac_ext <<_ACEOF
20182 /* end confdefs.h. */
20183 #include "confdefs.h"
20184 #include <sys/types.h>
20190 switch (0) case 0: case (sizeof (char) == $ac_size):;
20195 rm -f conftest.$ac_objext
20196 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20197 (eval $ac_compile) 2>conftest.er1
20199 grep -v '^ *+' conftest.er1 >conftest.err
20201 cat conftest.err >&5
20202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20203 (exit $ac_status); } &&
20204 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20206 (eval $ac_try) 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; } &&
20210 { ac_try='test -s conftest.$ac_objext'
20211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20212 (eval $ac_try) 2>&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); }; }; then
20216 ac_cv_sizeof_char=$ac_size
20218 echo "$as_me: failed program was:" >&5
20219 sed 's/^/| /' conftest.$ac_ext >&5
20222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20223 if test x$ac_cv_sizeof_char != x ; then break; fi
20229 unspecif=$ac_cv_sizeof_char
20230 if test x$unspecif = x ; then
20231 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20232 echo "$as_me: error: cannot determine a size for char" >&2;}
20233 { (exit 1); exit 1; }; }
20236 if test "${ac_cv_sizeof_signed_char+set}" = set; then
20237 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20240 cat >conftest.$ac_ext <<_ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246 #include "confdefs.h"
20247 #include <sys/types.h>
20253 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20258 rm -f conftest.$ac_objext
20259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20260 (eval $ac_compile) 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } &&
20267 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20269 (eval $ac_try) 2>&5
20271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20272 (exit $ac_status); }; } &&
20273 { ac_try='test -s conftest.$ac_objext'
20274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20275 (eval $ac_try) 2>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); }; }; then
20279 ac_cv_sizeof_signed_char=$ac_size
20281 echo "$as_me: failed program was:" >&5
20282 sed 's/^/| /' conftest.$ac_ext >&5
20285 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20286 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20292 signed=$ac_cv_sizeof_signed_char
20293 if test x$signed = x ; then
20294 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20295 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20296 { (exit 1); exit 1; }; }
20298 if test x$unspecif != x$signed ; then
20299 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20300 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20301 { (exit 1); exit 1; }; }
20304 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20305 echo $ECHO_N "(cached) $ECHO_C" >&6
20307 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20308 cat >conftest.$ac_ext <<_ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include "confdefs.h"
20315 #include <sys/types.h>
20321 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20326 rm -f conftest.$ac_objext
20327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20328 (eval $ac_compile) 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20337 (eval $ac_try) 2>&5
20339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20340 (exit $ac_status); }; } &&
20341 { ac_try='test -s conftest.$ac_objext'
20342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20343 (eval $ac_try) 2>&5
20345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20346 (exit $ac_status); }; }; then
20347 ac_cv_sizeof_unsigned_char=$ac_size
20349 echo "$as_me: failed program was:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20353 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20354 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20360 unsigned=$ac_cv_sizeof_unsigned_char
20361 if test x$unsigned = x ; then
20362 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20363 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20364 { (exit 1); exit 1; }; }
20366 if test x$unsigned != x$signed ; then
20367 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20368 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20369 { (exit 1); exit 1; }; }
20372 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20373 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20375 cat >>confdefs.h <<_ACEOF
20376 #define SIZEOF_CHAR $ac_cv_sizeof_unsigned_char
20380 echo "$as_me:$LINENO: checking size of short int" >&5
20381 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20382 if test "${ac_cv_sizeof_short_int+set}" = set; then
20383 echo $ECHO_N "(cached) $ECHO_C" >&6
20385 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20392 #include "confdefs.h"
20393 #include <sys/types.h>
20399 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20404 rm -f conftest.$ac_objext
20405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20406 (eval $ac_compile) 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20415 (eval $ac_try) 2>&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); }; } &&
20419 { ac_try='test -s conftest.$ac_objext'
20420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20421 (eval $ac_try) 2>&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); }; }; then
20425 ac_cv_sizeof_short_int=$ac_size
20427 echo "$as_me: failed program was:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20431 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20432 if test x$ac_cv_sizeof_short_int != x ; then break; fi
20438 unspecif=$ac_cv_sizeof_short_int
20439 if test x$unspecif = x ; then
20440 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20441 echo "$as_me: error: cannot determine a size for short int" >&2;}
20442 { (exit 1); exit 1; }; }
20445 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20446 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20455 #include "confdefs.h"
20456 #include <sys/types.h>
20462 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20467 rm -f conftest.$ac_objext
20468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20469 (eval $ac_compile) 2>conftest.er1
20471 grep -v '^ *+' conftest.er1 >conftest.err
20473 cat conftest.err >&5
20474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20475 (exit $ac_status); } &&
20476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20478 (eval $ac_try) 2>&5
20480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481 (exit $ac_status); }; } &&
20482 { ac_try='test -s conftest.$ac_objext'
20483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20484 (eval $ac_try) 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; }; then
20488 ac_cv_sizeof_signed_short_int=$ac_size
20490 echo "$as_me: failed program was:" >&5
20491 sed 's/^/| /' conftest.$ac_ext >&5
20494 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20495 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20501 signed=$ac_cv_sizeof_signed_short_int
20502 if test x$signed = x ; then
20503 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20504 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20505 { (exit 1); exit 1; }; }
20507 if test x$unspecif != x$signed ; then
20508 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20509 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20510 { (exit 1); exit 1; }; }
20513 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20514 echo $ECHO_N "(cached) $ECHO_C" >&6
20516 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20517 cat >conftest.$ac_ext <<_ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h. */
20523 #include "confdefs.h"
20524 #include <sys/types.h>
20530 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20535 rm -f conftest.$ac_objext
20536 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20537 (eval $ac_compile) 2>conftest.er1
20539 grep -v '^ *+' conftest.er1 >conftest.err
20541 cat conftest.err >&5
20542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20543 (exit $ac_status); } &&
20544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest.$ac_objext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_sizeof_unsigned_short_int=$ac_size
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20562 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20563 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20569 unsigned=$ac_cv_sizeof_unsigned_short_int
20570 if test x$unsigned = x ; then
20571 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20572 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20573 { (exit 1); exit 1; }; }
20575 if test x$unsigned != x$signed ; then
20576 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20577 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20578 { (exit 1); exit 1; }; }
20581 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20582 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20584 cat >>confdefs.h <<_ACEOF
20585 #define SIZEOF_SHORT_INT $ac_cv_sizeof_unsigned_short_int
20589 echo "$as_me:$LINENO: checking size of int" >&5
20590 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20591 if test "${ac_cv_sizeof_int+set}" = set; then
20592 echo $ECHO_N "(cached) $ECHO_C" >&6
20594 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20595 cat >conftest.$ac_ext <<_ACEOF
20598 cat confdefs.h >>conftest.$ac_ext
20599 cat >>conftest.$ac_ext <<_ACEOF
20600 /* end confdefs.h. */
20601 #include "confdefs.h"
20602 #include <sys/types.h>
20608 switch (0) case 0: case (sizeof (int) == $ac_size):;
20613 rm -f conftest.$ac_objext
20614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20615 (eval $ac_compile) 2>conftest.er1
20617 grep -v '^ *+' conftest.er1 >conftest.err
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } &&
20622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20624 (eval $ac_try) 2>&5
20626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20627 (exit $ac_status); }; } &&
20628 { ac_try='test -s conftest.$ac_objext'
20629 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20630 (eval $ac_try) 2>&5
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); }; }; then
20634 ac_cv_sizeof_int=$ac_size
20636 echo "$as_me: failed program was:" >&5
20637 sed 's/^/| /' conftest.$ac_ext >&5
20640 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20641 if test x$ac_cv_sizeof_int != x ; then break; fi
20647 unspecif=$ac_cv_sizeof_int
20648 if test x$unspecif = x ; then
20649 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20650 echo "$as_me: error: cannot determine a size for int" >&2;}
20651 { (exit 1); exit 1; }; }
20654 if test "${ac_cv_sizeof_signed_int+set}" = set; then
20655 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20658 cat >conftest.$ac_ext <<_ACEOF
20661 cat confdefs.h >>conftest.$ac_ext
20662 cat >>conftest.$ac_ext <<_ACEOF
20663 /* end confdefs.h. */
20664 #include "confdefs.h"
20665 #include <sys/types.h>
20671 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20676 rm -f conftest.$ac_objext
20677 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20678 (eval $ac_compile) 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20684 (exit $ac_status); } &&
20685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20687 (eval $ac_try) 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); }; } &&
20691 { ac_try='test -s conftest.$ac_objext'
20692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20693 (eval $ac_try) 2>&5
20695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20696 (exit $ac_status); }; }; then
20697 ac_cv_sizeof_signed_int=$ac_size
20699 echo "$as_me: failed program was:" >&5
20700 sed 's/^/| /' conftest.$ac_ext >&5
20703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20704 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20710 signed=$ac_cv_sizeof_signed_int
20711 if test x$signed = x ; then
20712 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20713 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20714 { (exit 1); exit 1; }; }
20716 if test x$unspecif != x$signed ; then
20717 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20718 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20719 { (exit 1); exit 1; }; }
20722 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20725 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include "confdefs.h"
20733 #include <sys/types.h>
20739 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
20744 rm -f conftest.$ac_objext
20745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20746 (eval $ac_compile) 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20752 (exit $ac_status); } &&
20753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20755 (eval $ac_try) 2>&5
20757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); }; } &&
20759 { ac_try='test -s conftest.$ac_objext'
20760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20761 (eval $ac_try) 2>&5
20763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764 (exit $ac_status); }; }; then
20765 ac_cv_sizeof_unsigned_int=$ac_size
20767 echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20771 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20772 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
20778 unsigned=$ac_cv_sizeof_unsigned_int
20779 if test x$unsigned = x ; then
20780 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
20781 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
20782 { (exit 1); exit 1; }; }
20784 if test x$unsigned != x$signed ; then
20785 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
20786 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
20787 { (exit 1); exit 1; }; }
20790 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
20791 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
20793 cat >>confdefs.h <<_ACEOF
20794 #define SIZEOF_INT $ac_cv_sizeof_unsigned_int
20798 echo "$as_me:$LINENO: checking size of long int" >&5
20799 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
20800 if test "${ac_cv_sizeof_long_int+set}" = set; then
20801 echo $ECHO_N "(cached) $ECHO_C" >&6
20803 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20804 cat >conftest.$ac_ext <<_ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 #include "confdefs.h"
20811 #include <sys/types.h>
20817 switch (0) case 0: case (sizeof (long int) == $ac_size):;
20822 rm -f conftest.$ac_objext
20823 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20824 (eval $ac_compile) 2>conftest.er1
20826 grep -v '^ *+' conftest.er1 >conftest.err
20828 cat conftest.err >&5
20829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20830 (exit $ac_status); } &&
20831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20833 (eval $ac_try) 2>&5
20835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20836 (exit $ac_status); }; } &&
20837 { ac_try='test -s conftest.$ac_objext'
20838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20839 (eval $ac_try) 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 ac_cv_sizeof_long_int=$ac_size
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20850 if test x$ac_cv_sizeof_long_int != x ; then break; fi
20856 unspecif=$ac_cv_sizeof_long_int
20857 if test x$unspecif = x ; then
20858 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
20859 echo "$as_me: error: cannot determine a size for long int" >&2;}
20860 { (exit 1); exit 1; }; }
20863 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
20864 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20867 cat >conftest.$ac_ext <<_ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include "confdefs.h"
20874 #include <sys/types.h>
20880 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
20885 rm -f conftest.$ac_objext
20886 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20887 (eval $ac_compile) 2>conftest.er1
20889 grep -v '^ *+' conftest.er1 >conftest.err
20891 cat conftest.err >&5
20892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20893 (exit $ac_status); } &&
20894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20896 (eval $ac_try) 2>&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); }; } &&
20900 { ac_try='test -s conftest.$ac_objext'
20901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20902 (eval $ac_try) 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; }; then
20906 ac_cv_sizeof_signed_long_int=$ac_size
20908 echo "$as_me: failed program was:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20912 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20913 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
20919 signed=$ac_cv_sizeof_signed_long_int
20920 if test x$signed = x ; then
20921 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
20922 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
20923 { (exit 1); exit 1; }; }
20925 if test x$unspecif != x$signed ; then
20926 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
20927 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
20928 { (exit 1); exit 1; }; }
20931 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
20932 echo $ECHO_N "(cached) $ECHO_C" >&6
20934 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20941 #include "confdefs.h"
20942 #include <sys/types.h>
20948 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
20953 rm -f conftest.$ac_objext
20954 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20955 (eval $ac_compile) 2>conftest.er1
20957 grep -v '^ *+' conftest.er1 >conftest.err
20959 cat conftest.err >&5
20960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20961 (exit $ac_status); } &&
20962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20963 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20964 (eval $ac_try) 2>&5
20966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967 (exit $ac_status); }; } &&
20968 { ac_try='test -s conftest.$ac_objext'
20969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20970 (eval $ac_try) 2>&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); }; }; then
20974 ac_cv_sizeof_unsigned_long_int=$ac_size
20976 echo "$as_me: failed program was:" >&5
20977 sed 's/^/| /' conftest.$ac_ext >&5
20980 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20981 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
20987 unsigned=$ac_cv_sizeof_unsigned_long_int
20988 if test x$unsigned = x ; then
20989 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
20990 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
20991 { (exit 1); exit 1; }; }
20993 if test x$unsigned != x$signed ; then
20994 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
20995 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
20996 { (exit 1); exit 1; }; }
20999 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21000 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21002 cat >>confdefs.h <<_ACEOF
21003 #define SIZEOF_LONG_INT $ac_cv_sizeof_unsigned_long_int
21007 echo "$as_me:$LINENO: checking size of long long int" >&5
21008 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21009 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21012 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21013 cat >conftest.$ac_ext <<_ACEOF
21016 cat confdefs.h >>conftest.$ac_ext
21017 cat >>conftest.$ac_ext <<_ACEOF
21018 /* end confdefs.h. */
21019 #include "confdefs.h"
21020 #include <sys/types.h>
21026 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21031 rm -f conftest.$ac_objext
21032 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21033 (eval $ac_compile) 2>conftest.er1
21035 grep -v '^ *+' conftest.er1 >conftest.err
21037 cat conftest.err >&5
21038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21039 (exit $ac_status); } &&
21040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; } &&
21046 { ac_try='test -s conftest.$ac_objext'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 ac_cv_sizeof_long_long_int=$ac_size
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21058 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21059 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21065 unspecif=$ac_cv_sizeof_long_long_int
21066 if test x$unspecif = x ; then
21067 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21068 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21069 { (exit 1); exit 1; }; }
21072 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21073 echo $ECHO_N "(cached) $ECHO_C" >&6
21075 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21076 cat >conftest.$ac_ext <<_ACEOF
21079 cat confdefs.h >>conftest.$ac_ext
21080 cat >>conftest.$ac_ext <<_ACEOF
21081 /* end confdefs.h. */
21082 #include "confdefs.h"
21083 #include <sys/types.h>
21089 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21094 rm -f conftest.$ac_objext
21095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21096 (eval $ac_compile) 2>conftest.er1
21098 grep -v '^ *+' conftest.er1 >conftest.err
21100 cat conftest.err >&5
21101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21102 (exit $ac_status); } &&
21103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21105 (eval $ac_try) 2>&5
21107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21108 (exit $ac_status); }; } &&
21109 { ac_try='test -s conftest.$ac_objext'
21110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21111 (eval $ac_try) 2>&5
21113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21114 (exit $ac_status); }; }; then
21115 ac_cv_sizeof_signed_long_long_int=$ac_size
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21121 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21122 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21128 signed=$ac_cv_sizeof_signed_long_long_int
21129 if test x$signed = x ; then
21130 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21131 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21132 { (exit 1); exit 1; }; }
21134 if test x$unspecif != x$signed ; then
21135 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21136 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21137 { (exit 1); exit 1; }; }
21140 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21141 echo $ECHO_N "(cached) $ECHO_C" >&6
21143 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21144 cat >conftest.$ac_ext <<_ACEOF
21147 cat confdefs.h >>conftest.$ac_ext
21148 cat >>conftest.$ac_ext <<_ACEOF
21149 /* end confdefs.h. */
21150 #include "confdefs.h"
21151 #include <sys/types.h>
21157 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21162 rm -f conftest.$ac_objext
21163 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21164 (eval $ac_compile) 2>conftest.er1
21166 grep -v '^ *+' conftest.er1 >conftest.err
21168 cat conftest.err >&5
21169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21170 (exit $ac_status); } &&
21171 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21173 (eval $ac_try) 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21179 (eval $ac_try) 2>&5
21181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21182 (exit $ac_status); }; }; then
21183 ac_cv_sizeof_unsigned_long_long_int=$ac_size
21185 echo "$as_me: failed program was:" >&5
21186 sed 's/^/| /' conftest.$ac_ext >&5
21189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21190 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21196 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21197 if test x$unsigned = x ; then
21198 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21199 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21200 { (exit 1); exit 1; }; }
21202 if test x$unsigned != x$signed ; then
21203 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21204 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21205 { (exit 1); exit 1; }; }
21208 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21209 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21211 cat >>confdefs.h <<_ACEOF
21212 #define SIZEOF_LONG_LONG_INT $ac_cv_sizeof_unsigned_long_long_int
21218 echo "$as_me:$LINENO: checking size of void *" >&5
21219 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21220 if test "${ac_cv_sizeof_void_p+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21223 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21224 cat >conftest.$ac_ext <<_ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 #include "confdefs.h"
21231 #include <sys/types.h>
21237 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21242 rm -f conftest.$ac_objext
21243 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21244 (eval $ac_compile) 2>conftest.er1
21246 grep -v '^ *+' conftest.er1 >conftest.err
21248 cat conftest.err >&5
21249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21250 (exit $ac_status); } &&
21251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21253 (eval $ac_try) 2>&5
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; } &&
21257 { ac_try='test -s conftest.$ac_objext'
21258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21259 (eval $ac_try) 2>&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); }; }; then
21263 ac_cv_sizeof_void_p=$ac_size
21265 echo "$as_me: failed program was:" >&5
21266 sed 's/^/| /' conftest.$ac_ext >&5
21269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21270 if test x$ac_cv_sizeof_void_p != x ; then break; fi
21276 if test x$ac_cv_sizeof_void_p = x ; then
21277 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21278 echo "$as_me: error: cannot determine a size for void *" >&2;}
21279 { (exit 1); exit 1; }; }
21281 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21282 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21284 cat >>confdefs.h <<_ACEOF
21285 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
21289 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21290 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21291 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21292 echo $ECHO_N "(cached) $ECHO_C" >&6
21294 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21295 cat >conftest.$ac_ext <<_ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h. */
21301 #include "confdefs.h"
21302 #include <sys/types.h>
21308 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21313 rm -f conftest.$ac_objext
21314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21315 (eval $ac_compile) 2>conftest.er1
21317 grep -v '^ *+' conftest.er1 >conftest.err
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } &&
21322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21324 (eval $ac_try) 2>&5
21326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); }; } &&
21328 { ac_try='test -s conftest.$ac_objext'
21329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21330 (eval $ac_try) 2>&5
21332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21333 (exit $ac_status); }; }; then
21334 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21336 echo "$as_me: failed program was:" >&5
21337 sed 's/^/| /' conftest.$ac_ext >&5
21340 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21341 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21347 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21348 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21349 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21350 { (exit 1); exit 1; }; }
21352 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21353 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21355 cat >>confdefs.h <<_ACEOF
21356 #define SIZEOF_VOID__P___VOID_ $ac_cv_sizeof_void_LpR_LvoidR
21361 echo "$as_me:$LINENO: checking size of float" >&5
21362 echo $ECHO_N "checking size of float... $ECHO_C" >&6
21363 if test "${ac_cv_sizeof_float+set}" = set; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21366 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21367 cat >conftest.$ac_ext <<_ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h. */
21373 #include "confdefs.h"
21374 #include <sys/types.h>
21380 switch (0) case 0: case (sizeof (float) == $ac_size):;
21385 rm -f conftest.$ac_objext
21386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21387 (eval $ac_compile) 2>conftest.er1
21389 grep -v '^ *+' conftest.er1 >conftest.err
21391 cat conftest.err >&5
21392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21393 (exit $ac_status); } &&
21394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21395 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21396 (eval $ac_try) 2>&5
21398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21399 (exit $ac_status); }; } &&
21400 { ac_try='test -s conftest.$ac_objext'
21401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21402 (eval $ac_try) 2>&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; }; then
21406 ac_cv_sizeof_float=$ac_size
21408 echo "$as_me: failed program was:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21413 if test x$ac_cv_sizeof_float != x ; then break; fi
21419 if test x$ac_cv_sizeof_float = x ; then
21420 { { echo "$as_me:$LINENO: error: cannot determine a size for float" >&5
21421 echo "$as_me: error: cannot determine a size for float" >&2;}
21422 { (exit 1); exit 1; }; }
21424 echo "$as_me:$LINENO: result: $ac_cv_sizeof_float" >&5
21425 echo "${ECHO_T}$ac_cv_sizeof_float" >&6
21427 cat >>confdefs.h <<_ACEOF
21428 #define SIZEOF_FLOAT $ac_cv_sizeof_float
21432 echo "$as_me:$LINENO: checking size of double" >&5
21433 echo $ECHO_N "checking size of double... $ECHO_C" >&6
21434 if test "${ac_cv_sizeof_double+set}" = set; then
21435 echo $ECHO_N "(cached) $ECHO_C" >&6
21437 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21438 cat >conftest.$ac_ext <<_ACEOF
21441 cat confdefs.h >>conftest.$ac_ext
21442 cat >>conftest.$ac_ext <<_ACEOF
21443 /* end confdefs.h. */
21444 #include "confdefs.h"
21445 #include <sys/types.h>
21451 switch (0) case 0: case (sizeof (double) == $ac_size):;
21456 rm -f conftest.$ac_objext
21457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21458 (eval $ac_compile) 2>conftest.er1
21460 grep -v '^ *+' conftest.er1 >conftest.err
21462 cat conftest.err >&5
21463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21464 (exit $ac_status); } &&
21465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21467 (eval $ac_try) 2>&5
21469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21470 (exit $ac_status); }; } &&
21471 { ac_try='test -s conftest.$ac_objext'
21472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21473 (eval $ac_try) 2>&5
21475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21476 (exit $ac_status); }; }; then
21477 ac_cv_sizeof_double=$ac_size
21479 echo "$as_me: failed program was:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21484 if test x$ac_cv_sizeof_double != x ; then break; fi
21490 if test x$ac_cv_sizeof_double = x ; then
21491 { { echo "$as_me:$LINENO: error: cannot determine a size for double" >&5
21492 echo "$as_me: error: cannot determine a size for double" >&2;}
21493 { (exit 1); exit 1; }; }
21495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_double" >&5
21496 echo "${ECHO_T}$ac_cv_sizeof_double" >&6
21498 cat >>confdefs.h <<_ACEOF
21499 #define SIZEOF_DOUBLE $ac_cv_sizeof_double
21503 echo "$as_me:$LINENO: checking if floating point datatypes are IEEE 754 compliant" >&5
21504 echo $ECHO_N "checking if floating point datatypes are IEEE 754 compliant... $ECHO_C" >&6
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 #include "confdefs.h"
21514 unsigned char bytes[sizeof(double)];
21518 unsigned char bytes[sizeof(float)];
21525 memset(&doubleTester, 0, sizeof(doubleTester));
21526 memset(&floatTester, 0, sizeof(floatTester));
21528 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 1 : 0]=192;
21529 doubleTester.bytes[GRAS_BIGENDIAN ? sizeof(double) - 2 : 1] =
21530 (sizeof(double) == 4) ? 128 :
21531 (sizeof(double) == 8) ? 16 :
21532 (sizeof(double) == 16) ? 1 : 0;
21533 if (doubleTester.testFP != -4.0) return 1;
21535 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 1 : 0]=192;
21536 floatTester.bytes[GRAS_BIGENDIAN ? sizeof(float) - 2 : 1] =
21537 (sizeof(float) == 4) ? 128 :
21538 (sizeof(float) == 8) ? 16 :
21539 (sizeof(float) == 16) ? 1 : 0;
21540 if (floatTester.testFP != -4.0) return 1;
21547 rm -f conftest.$ac_objext
21548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21549 (eval $ac_compile) 2>conftest.er1
21551 grep -v '^ *+' conftest.er1 >conftest.err
21553 cat conftest.err >&5
21554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21555 (exit $ac_status); } &&
21556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21558 (eval $ac_try) 2>&5
21560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561 (exit $ac_status); }; } &&
21562 { ac_try='test -s conftest.$ac_objext'
21563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21564 (eval $ac_try) 2>&5
21566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21567 (exit $ac_status); }; }; then
21570 cat >>confdefs.h <<\_ACEOF
21576 echo "$as_me: failed program was:" >&5
21577 sed 's/^/| /' conftest.$ac_ext >&5
21580 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
21581 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
21582 { (exit 1); exit 1; }; }
21584 rm -f conftest.err conftest.$ac_objext conftest.$ac_extecho "$as_me:$LINENO: result: $IEEE_FP" >&5
21585 echo "${ECHO_T}$IEEE_FP" >&6
21588 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21589 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21590 if test x$endian = x1 ; then
21596 trace="$trace_endian"
21597 trace="${trace}:${ac_cv_sizeof_char}.${ac_cv_sizeof_short_int}.${ac_cv_sizeof_int}.${ac_cv_sizeof_long_int}.${ac_cv_sizeof_long_long_int}"
21598 trace="${trace}:${ac_cv_sizeof_void_p}.${ac_cv_sizeof_void_LpR_LvoidR}"
21599 trace="${trace}:${ac_cv_sizeof_float}.${ac_cv_sizeof_double}"
21601 l:1.2.4.4.8:4.4:4.8) gras_arch=0; gras_arch_name=i386;;
21603 if test x$gras_arch = xunknown ; then
21604 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21605 echo "${ECHO_T}damnit ($trace)" >&6
21606 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21607 Please report this architecture trace ($trace) and what it corresponds to." >&5
21608 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21609 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21610 { (exit 1); exit 1; }; }
21612 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
21614 cat >>confdefs.h <<_ACEOF
21615 #define GRAS_THISARCH_NAME "$gras_arch_name"
21619 cat >>confdefs.h <<_ACEOF
21620 #define GRAS_THISARCH $gras_arch
21623 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
21624 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
21627 # Checks for header files.
21628 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21629 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21630 if test "${ac_cv_header_stdc+set}" = set; then
21631 echo $ECHO_N "(cached) $ECHO_C" >&6
21633 cat >conftest.$ac_ext <<_ACEOF
21636 cat confdefs.h >>conftest.$ac_ext
21637 cat >>conftest.$ac_ext <<_ACEOF
21638 /* end confdefs.h. */
21639 #include <stdlib.h>
21640 #include <stdarg.h>
21641 #include <string.h>
21652 rm -f conftest.$ac_objext
21653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21654 (eval $ac_compile) 2>conftest.er1
21656 grep -v '^ *+' conftest.er1 >conftest.err
21658 cat conftest.err >&5
21659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21660 (exit $ac_status); } &&
21661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21663 (eval $ac_try) 2>&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); }; } &&
21667 { ac_try='test -s conftest.$ac_objext'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; }; then
21673 ac_cv_header_stdc=yes
21675 echo "$as_me: failed program was:" >&5
21676 sed 's/^/| /' conftest.$ac_ext >&5
21678 ac_cv_header_stdc=no
21680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21682 if test $ac_cv_header_stdc = yes; then
21683 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21684 cat >conftest.$ac_ext <<_ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h. */
21690 #include <string.h>
21693 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21694 $EGREP "memchr" >/dev/null 2>&1; then
21697 ac_cv_header_stdc=no
21703 if test $ac_cv_header_stdc = yes; then
21704 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21705 cat >conftest.$ac_ext <<_ACEOF
21708 cat confdefs.h >>conftest.$ac_ext
21709 cat >>conftest.$ac_ext <<_ACEOF
21710 /* end confdefs.h. */
21711 #include <stdlib.h>
21714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21715 $EGREP "free" >/dev/null 2>&1; then
21718 ac_cv_header_stdc=no
21724 if test $ac_cv_header_stdc = yes; then
21725 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21726 if test "$cross_compiling" = yes; then
21729 cat >conftest.$ac_ext <<_ACEOF
21732 cat confdefs.h >>conftest.$ac_ext
21733 cat >>conftest.$ac_ext <<_ACEOF
21734 /* end confdefs.h. */
21736 #if ((' ' & 0x0FF) == 0x020)
21737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21740 # define ISLOWER(c) \
21741 (('a' <= (c) && (c) <= 'i') \
21742 || ('j' <= (c) && (c) <= 'r') \
21743 || ('s' <= (c) && (c) <= 'z'))
21744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21752 for (i = 0; i < 256; i++)
21753 if (XOR (islower (i), ISLOWER (i))
21754 || toupper (i) != TOUPPER (i))
21759 rm -f conftest$ac_exeext
21760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21761 (eval $ac_link) 2>&5
21763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21764 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21766 (eval $ac_try) 2>&5
21768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769 (exit $ac_status); }; }; then
21772 echo "$as_me: program exited with status $ac_status" >&5
21773 echo "$as_me: failed program was:" >&5
21774 sed 's/^/| /' conftest.$ac_ext >&5
21776 ( exit $ac_status )
21777 ac_cv_header_stdc=no
21779 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21783 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21784 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21785 if test $ac_cv_header_stdc = yes; then
21787 cat >>confdefs.h <<\_ACEOF
21788 #define STDC_HEADERS 1
21797 for ac_header in stddef.h stdlib.h string.h unistd.h
21799 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21800 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21801 echo "$as_me:$LINENO: checking for $ac_header" >&5
21802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21803 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21804 echo $ECHO_N "(cached) $ECHO_C" >&6
21806 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21807 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21809 # Is the header compilable?
21810 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21811 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21812 cat >conftest.$ac_ext <<_ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818 $ac_includes_default
21819 #include <$ac_header>
21821 rm -f conftest.$ac_objext
21822 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21823 (eval $ac_compile) 2>conftest.er1
21825 grep -v '^ *+' conftest.er1 >conftest.err
21827 cat conftest.err >&5
21828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } &&
21830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21832 (eval $ac_try) 2>&5
21834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835 (exit $ac_status); }; } &&
21836 { ac_try='test -s conftest.$ac_objext'
21837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21838 (eval $ac_try) 2>&5
21840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21841 (exit $ac_status); }; }; then
21842 ac_header_compiler=yes
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21847 ac_header_compiler=no
21849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21850 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21851 echo "${ECHO_T}$ac_header_compiler" >&6
21853 # Is the header present?
21854 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21855 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21856 cat >conftest.$ac_ext <<_ACEOF
21859 cat confdefs.h >>conftest.$ac_ext
21860 cat >>conftest.$ac_ext <<_ACEOF
21861 /* end confdefs.h. */
21862 #include <$ac_header>
21864 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21865 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21867 grep -v '^ *+' conftest.er1 >conftest.err
21869 cat conftest.err >&5
21870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21871 (exit $ac_status); } >/dev/null; then
21872 if test -s conftest.err; then
21873 ac_cpp_err=$ac_c_preproc_warn_flag
21874 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21881 if test -z "$ac_cpp_err"; then
21882 ac_header_preproc=yes
21884 echo "$as_me: failed program was:" >&5
21885 sed 's/^/| /' conftest.$ac_ext >&5
21887 ac_header_preproc=no
21889 rm -f conftest.err conftest.$ac_ext
21890 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6
21893 # So? What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21900 ac_header_preproc=yes
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21917 ## ----------------------------------------- ##
21918 ## Report this to martin.quinson@ens-lyon.fr ##
21919 ## ----------------------------------------- ##
21922 sed "s/^/$as_me: WARNING: /" >&2
21925 echo "$as_me:$LINENO: checking for $ac_header" >&5
21926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21927 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21930 eval "$as_ac_Header=\$ac_header_preproc"
21932 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21933 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21937 cat >>confdefs.h <<_ACEOF
21938 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21946 # Checks for typedefs, structures, and compiler characteristics.
21947 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21948 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21949 if test "${ac_cv_c_const+set}" = set; then
21950 echo $ECHO_N "(cached) $ECHO_C" >&6
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21962 /* FIXME: Include the comments suggested by Paul. */
21963 #ifndef __cplusplus
21964 /* Ultrix mips cc rejects this. */
21965 typedef int charset[2];
21967 /* SunOS 4.1.1 cc rejects this. */
21968 char const *const *ccp;
21970 /* NEC SVR4.0.2 mips cc rejects this. */
21971 struct point {int x, y;};
21972 static struct point const zero = {0,0};
21973 /* AIX XL C 1.02.0.0 rejects this.
21974 It does not let you subtract one const X* pointer from another in
21975 an arm of an if-expression whose if-part is not a constant
21977 const char *g = "string";
21978 ccp = &g + (g ? g-g : 0);
21979 /* HPUX 7.0 cc rejects these. */
21982 ccp = (char const *const *) p;
21983 { /* SCO 3.2v4 cc rejects this. */
21985 char const *s = 0 ? (char *) 0 : (char const *) 0;
21989 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21990 int x[] = {25, 17};
21991 const int *foo = &x[0];
21994 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21995 typedef const int *iptr;
21999 { /* AIX XL C 1.02.0.0 rejects this saying
22000 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22001 struct s { int j; const int *ap[3]; };
22002 struct s *b; b->j = 5;
22004 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22005 const int foo = 10;
22013 rm -f conftest.$ac_objext
22014 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22015 (eval $ac_compile) 2>conftest.er1
22017 grep -v '^ *+' conftest.er1 >conftest.err
22019 cat conftest.err >&5
22020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } &&
22022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22024 (eval $ac_try) 2>&5
22026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22027 (exit $ac_status); }; } &&
22028 { ac_try='test -s conftest.$ac_objext'
22029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22030 (eval $ac_try) 2>&5
22032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033 (exit $ac_status); }; }; then
22036 echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22041 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22043 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22044 echo "${ECHO_T}$ac_cv_c_const" >&6
22045 if test $ac_cv_c_const = no; then
22047 cat >>confdefs.h <<\_ACEOF
22053 echo "$as_me:$LINENO: checking for inline" >&5
22054 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22055 if test "${ac_cv_c_inline+set}" = set; then
22056 echo $ECHO_N "(cached) $ECHO_C" >&6
22059 for ac_kw in inline __inline__ __inline; do
22060 cat >conftest.$ac_ext <<_ACEOF
22063 cat confdefs.h >>conftest.$ac_ext
22064 cat >>conftest.$ac_ext <<_ACEOF
22065 /* end confdefs.h. */
22066 #ifndef __cplusplus
22068 static $ac_kw foo_t static_foo () {return 0; }
22069 $ac_kw foo_t foo () {return 0; }
22073 rm -f conftest.$ac_objext
22074 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22075 (eval $ac_compile) 2>conftest.er1
22077 grep -v '^ *+' conftest.er1 >conftest.err
22079 cat conftest.err >&5
22080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22081 (exit $ac_status); } &&
22082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22083 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22084 (eval $ac_try) 2>&5
22086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22087 (exit $ac_status); }; } &&
22088 { ac_try='test -s conftest.$ac_objext'
22089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22090 (eval $ac_try) 2>&5
22092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22093 (exit $ac_status); }; }; then
22094 ac_cv_c_inline=$ac_kw; break
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22100 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22104 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22105 echo "${ECHO_T}$ac_cv_c_inline" >&6
22108 case $ac_cv_c_inline in
22111 case $ac_cv_c_inline in
22113 *) ac_val=$ac_cv_c_inline;;
22115 cat >>confdefs.h <<_ACEOF
22116 #ifndef __cplusplus
22117 #define inline $ac_val
22123 echo "$as_me:$LINENO: checking for size_t" >&5
22124 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22125 if test "${ac_cv_type_size_t+set}" = set; then
22126 echo $ECHO_N "(cached) $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22140 if (sizeof (size_t))
22146 rm -f conftest.$ac_objext
22147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22148 (eval $ac_compile) 2>conftest.er1
22150 grep -v '^ *+' conftest.er1 >conftest.err
22152 cat conftest.err >&5
22153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22154 (exit $ac_status); } &&
22155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22157 (eval $ac_try) 2>&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); }; } &&
22161 { ac_try='test -s conftest.$ac_objext'
22162 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22163 (eval $ac_try) 2>&5
22165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22166 (exit $ac_status); }; }; then
22167 ac_cv_type_size_t=yes
22169 echo "$as_me: failed program was:" >&5
22170 sed 's/^/| /' conftest.$ac_ext >&5
22172 ac_cv_type_size_t=no
22174 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22176 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22177 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22178 if test $ac_cv_type_size_t = yes; then
22182 cat >>confdefs.h <<_ACEOF
22183 #define size_t unsigned
22189 # Checks for library functions.
22191 for ac_header in stdlib.h
22193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22195 echo "$as_me:$LINENO: checking for $ac_header" >&5
22196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22197 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22198 echo $ECHO_N "(cached) $ECHO_C" >&6
22200 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22201 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22203 # Is the header compilable?
22204 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22205 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22206 cat >conftest.$ac_ext <<_ACEOF
22209 cat confdefs.h >>conftest.$ac_ext
22210 cat >>conftest.$ac_ext <<_ACEOF
22211 /* end confdefs.h. */
22212 $ac_includes_default
22213 #include <$ac_header>
22215 rm -f conftest.$ac_objext
22216 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22217 (eval $ac_compile) 2>conftest.er1
22219 grep -v '^ *+' conftest.er1 >conftest.err
22221 cat conftest.err >&5
22222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22223 (exit $ac_status); } &&
22224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22226 (eval $ac_try) 2>&5
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; } &&
22230 { ac_try='test -s conftest.$ac_objext'
22231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22232 (eval $ac_try) 2>&5
22234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22235 (exit $ac_status); }; }; then
22236 ac_header_compiler=yes
22238 echo "$as_me: failed program was:" >&5
22239 sed 's/^/| /' conftest.$ac_ext >&5
22241 ac_header_compiler=no
22243 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22244 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22245 echo "${ECHO_T}$ac_header_compiler" >&6
22247 # Is the header present?
22248 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22249 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22250 cat >conftest.$ac_ext <<_ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 #include <$ac_header>
22258 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22259 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22261 grep -v '^ *+' conftest.er1 >conftest.err
22263 cat conftest.err >&5
22264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22265 (exit $ac_status); } >/dev/null; then
22266 if test -s conftest.err; then
22267 ac_cpp_err=$ac_c_preproc_warn_flag
22268 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22275 if test -z "$ac_cpp_err"; then
22276 ac_header_preproc=yes
22278 echo "$as_me: failed program was:" >&5
22279 sed 's/^/| /' conftest.$ac_ext >&5
22281 ac_header_preproc=no
22283 rm -f conftest.err conftest.$ac_ext
22284 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22285 echo "${ECHO_T}$ac_header_preproc" >&6
22287 # So? What about this header?
22288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22294 ac_header_preproc=yes
22297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22311 ## ----------------------------------------- ##
22312 ## Report this to martin.quinson@ens-lyon.fr ##
22313 ## ----------------------------------------- ##
22316 sed "s/^/$as_me: WARNING: /" >&2
22319 echo "$as_me:$LINENO: checking for $ac_header" >&5
22320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22321 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22322 echo $ECHO_N "(cached) $ECHO_C" >&6
22324 eval "$as_ac_Header=\$ac_header_preproc"
22326 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22327 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22331 cat >>confdefs.h <<_ACEOF
22332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22339 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22340 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22341 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22342 echo $ECHO_N "(cached) $ECHO_C" >&6
22344 if test "$cross_compiling" = yes; then
22345 ac_cv_func_malloc_0_nonnull=no
22347 cat >conftest.$ac_ext <<_ACEOF
22350 cat confdefs.h >>conftest.$ac_ext
22351 cat >>conftest.$ac_ext <<_ACEOF
22352 /* end confdefs.h. */
22353 #if STDC_HEADERS || HAVE_STDLIB_H
22354 # include <stdlib.h>
22362 exit (malloc (0) ? 0 : 1);
22367 rm -f conftest$ac_exeext
22368 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22369 (eval $ac_link) 2>&5
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22374 (eval $ac_try) 2>&5
22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22377 (exit $ac_status); }; }; then
22378 ac_cv_func_malloc_0_nonnull=yes
22380 echo "$as_me: program exited with status $ac_status" >&5
22381 echo "$as_me: failed program was:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ( exit $ac_status )
22385 ac_cv_func_malloc_0_nonnull=no
22387 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22390 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22391 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22392 if test $ac_cv_func_malloc_0_nonnull = yes; then
22394 cat >>confdefs.h <<\_ACEOF
22395 #define HAVE_MALLOC 1
22399 cat >>confdefs.h <<\_ACEOF
22400 #define HAVE_MALLOC 0
22404 "malloc.$ac_objext" | \
22405 *" malloc.$ac_objext" | \
22406 "malloc.$ac_objext "* | \
22407 *" malloc.$ac_objext "* ) ;;
22408 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22412 cat >>confdefs.h <<\_ACEOF
22413 #define malloc rpl_malloc
22420 echo "$as_me:$LINENO: checking for working memcmp" >&5
22421 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
22422 if test "${ac_cv_func_memcmp_working+set}" = set; then
22423 echo $ECHO_N "(cached) $ECHO_C" >&6
22425 if test "$cross_compiling" = yes; then
22426 ac_cv_func_memcmp_working=no
22428 cat >conftest.$ac_ext <<_ACEOF
22431 cat confdefs.h >>conftest.$ac_ext
22432 cat >>conftest.$ac_ext <<_ACEOF
22433 /* end confdefs.h. */
22434 $ac_includes_default
22439 /* Some versions of memcmp are not 8-bit clean. */
22440 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
22441 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
22444 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
22445 or more and with at least one buffer not starting on a 4-byte boundary.
22446 William Lewis provided this test program. */
22451 for (i = 0; i < 4; i++)
22455 strcpy (a, "--------01111111");
22456 strcpy (b, "--------10000000");
22457 if (memcmp (a, b, 16) >= 0)
22467 rm -f conftest$ac_exeext
22468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22469 (eval $ac_link) 2>&5
22471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22474 (eval $ac_try) 2>&5
22476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22477 (exit $ac_status); }; }; then
22478 ac_cv_func_memcmp_working=yes
22480 echo "$as_me: program exited with status $ac_status" >&5
22481 echo "$as_me: failed program was:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ( exit $ac_status )
22485 ac_cv_func_memcmp_working=no
22487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22490 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
22491 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
22492 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
22493 "memcmp.$ac_objext" | \
22494 *" memcmp.$ac_objext" | \
22495 "memcmp.$ac_objext "* | \
22496 *" memcmp.$ac_objext "* ) ;;
22497 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
22505 for ac_func in memset strchr strerror usleep
22507 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22508 echo "$as_me:$LINENO: checking for $ac_func" >&5
22509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_var+set}\" = set"; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 cat >conftest.$ac_ext <<_ACEOF
22516 cat confdefs.h >>conftest.$ac_ext
22517 cat >>conftest.$ac_ext <<_ACEOF
22518 /* end confdefs.h. */
22519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22521 #define $ac_func innocuous_$ac_func
22523 /* System header to define __stub macros and hopefully few prototypes,
22524 which can conflict with char $ac_func (); below.
22525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22526 <limits.h> exists even on freestanding compilers. */
22529 # include <limits.h>
22531 # include <assert.h>
22536 /* Override any gcc2 internal prototype to avoid an error. */
22541 /* We use char because int might match the return type of a gcc2
22542 builtin and then its argument prototype would still apply. */
22544 /* The GNU C library defines this for functions which it implements
22545 to always fail with ENOSYS. Some functions are actually named
22546 something starting with __ and the normal name is an alias. */
22547 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22550 char (*f) () = $ac_func;
22559 return f != $ac_func;
22564 rm -f conftest.$ac_objext conftest$ac_exeext
22565 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22566 (eval $ac_link) 2>conftest.er1
22568 grep -v '^ *+' conftest.er1 >conftest.err
22570 cat conftest.err >&5
22571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22572 (exit $ac_status); } &&
22573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22575 (eval $ac_try) 2>&5
22577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22578 (exit $ac_status); }; } &&
22579 { ac_try='test -s conftest$ac_exeext'
22580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22581 (eval $ac_try) 2>&5
22583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584 (exit $ac_status); }; }; then
22585 eval "$as_ac_var=yes"
22587 echo "$as_me: failed program was:" >&5
22588 sed 's/^/| /' conftest.$ac_ext >&5
22590 eval "$as_ac_var=no"
22592 rm -f conftest.err conftest.$ac_objext \
22593 conftest$ac_exeext conftest.$ac_ext
22595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22596 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22597 if test `eval echo '${'$as_ac_var'}'` = yes; then
22598 cat >>confdefs.h <<_ACEOF
22599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22606 # Can we rebuild the documentation?
22609 # Check whether --with-html-dir or --without-html-dir was given.
22610 if test "${with_html_dir+set}" = set; then
22611 withval="$with_html_dir"
22614 with_html_dir='${datadir}/gtk-doc/html'
22616 HTML_DIR="$with_html_dir"
22619 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
22620 if test "${enable_gtk_doc+set}" = set; then
22621 enableval="$enable_gtk_doc"
22628 if test -z "$PKG_CONFIG"; then
22629 # Extract the first word of "pkg-config", so it can be a program name with args.
22630 set dummy pkg-config; ac_word=$2
22631 echo "$as_me:$LINENO: checking for $ac_word" >&5
22632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22633 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22634 echo $ECHO_N "(cached) $ECHO_C" >&6
22636 case $PKG_CONFIG in
22638 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22642 for as_dir in $PATH
22645 test -z "$as_dir" && as_dir=.
22646 for ac_exec_ext in '' $ac_executable_extensions; do
22647 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22648 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22655 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22659 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22661 if test -n "$PKG_CONFIG"; then
22662 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22663 echo "${ECHO_T}$PKG_CONFIG" >&6
22665 echo "$as_me:$LINENO: result: no" >&5
22666 echo "${ECHO_T}no" >&6
22670 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
22675 if test x$enable_gtk_doc = xyes; then
22676 if test "$have_gtk_doc" != yes; then
22683 if test x$enable_gtk_doc = xyes; then
22684 ENABLE_GTK_DOC_TRUE=
22685 ENABLE_GTK_DOC_FALSE='#'
22687 ENABLE_GTK_DOC_TRUE='#'
22688 ENABLE_GTK_DOC_FALSE=
22693 if test -n "$LIBTOOL"; then
22694 GTK_DOC_USE_LIBTOOL_TRUE=
22695 GTK_DOC_USE_LIBTOOL_FALSE='#'
22697 GTK_DOC_USE_LIBTOOL_TRUE='#'
22698 GTK_DOC_USE_LIBTOOL_FALSE=
22704 echo "BEGINING OF ACI-PACKAGE-SAVED(XML)">&5;
22705 # Extract the first word of "xml2-config", so it can be a program name with args.
22706 set dummy xml2-config; ac_word=$2
22707 echo "$as_me:$LINENO: checking for $ac_word" >&5
22708 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22709 if test "${ac_cv_path_ACI_CACHE_PROG+set}" = set; then
22710 echo $ECHO_N "(cached) $ECHO_C" >&6
22712 case $ACI_CACHE_PROG in
22714 ac_cv_path_ACI_CACHE_PROG="$ACI_CACHE_PROG" # Let the user override the test with a path.
22717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22718 for as_dir in $PATH
22721 test -z "$as_dir" && as_dir=.
22722 for ac_exec_ext in '' $ac_executable_extensions; do
22723 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22724 ac_cv_path_ACI_CACHE_PROG="$as_dir/$ac_word$ac_exec_ext"
22725 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22731 test -z "$ac_cv_path_ACI_CACHE_PROG" && ac_cv_path_ACI_CACHE_PROG="no"
22735 ACI_CACHE_PROG=$ac_cv_path_ACI_CACHE_PROG
22737 if test -n "$ACI_CACHE_PROG"; then
22738 echo "$as_me:$LINENO: result: $ACI_CACHE_PROG" >&5
22739 echo "${ECHO_T}$ACI_CACHE_PROG" >&6
22741 echo "$as_me:$LINENO: result: no" >&5
22742 echo "${ECHO_T}no" >&6
22745 aci_module_desc_XML="XML library (version XML2)"
22746 aci_pkg_config_XML=xml2-config
22747 aci_packages="$aci_packages XML"
22748 if test x$ACI_CACHE_PROG = xno; then
22755 CFLAGS_XML=`$ACI_CACHE_PROG --cflags `
22756 LIBS_XML=`$ACI_CACHE_PROG --libs `
22759 echo "END OF ACI-PACKAGE-SAVED(XML)">&5;
22770 aci_nameok=`echo SimGrid|sed 'y/-/./'`
22771 if test "xSimGrid" != "x$aci_nameok" ; then
22772 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
22773 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
22774 { (exit 1); exit 1; }; }
22776 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
22777 aci_module_desc_SimGrid="the SimGrid simulator"
22778 aci_packages="$aci_packages SimGrid"
22781 # Check whether --with-SimGrid or --without-SimGrid was given.
22782 if test "${with_SimGrid+set}" = set; then
22783 withval="$with_SimGrid"
22784 with_SimGrid=$withval
22786 if test "$withval" = yes ; then good=no; fi
22787 if test "$withval" = no ; then good=no; fi
22788 if test $good = no ; then
22789 { { 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
22790 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;}
22791 { (exit 1); exit 1; }; }
22793 aci_pkg_prefix_SimGrid="$withval"
22794 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
22795 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
22800 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
22801 if test "${with_SimGrid_includes+set}" = set; then
22802 withval="$with_SimGrid_includes"
22803 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
22804 aci_pkg_inc_SimGrid="$withval"
22809 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
22810 if test "${with_SimGrid_libraries+set}" = set; then
22811 withval="$with_SimGrid_libraries"
22812 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
22813 aci_pkg_lib_SimGrid="$withval"
22817 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
22818 if test "${with_SimGrid_extra+set}" = set; then
22819 withval="$with_SimGrid_extra"
22820 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
22821 aci_pkg_extra_SimGrid="$withval"
22825 OLD_LDFLAGS=$LDFLAGS
22827 OLD_CPPFLAGS=$CPPFLAGS
22829 i=`echo -lsimgrid|wc -l`
22830 if test $i != 1 && test $i != 0 ; then
22831 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
22832 please no newline and no tab." >&5
22833 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
22834 please no newline and no tab." >&2;}
22835 { (exit 1); exit 1; }; }
22838 ac_func_search_save_LIBS="$LIBS"
22839 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
22841 echo "----------------------------------------" >&5
22842 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
22843 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
22844 cat >conftest.$ac_ext <<_ACEOF
22847 cat confdefs.h >>conftest.$ac_ext
22848 cat >>conftest.$ac_ext <<_ACEOF
22849 /* end confdefs.h. */
22851 /* Override any gcc2 internal prototype to avoid an error. */
22855 /* We use char because int might match the return type of a gcc2
22856 builtin and then its argument prototype would still apply. */
22866 rm -f conftest.$ac_objext conftest$ac_exeext
22867 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22868 (eval $ac_link) 2>conftest.er1
22870 grep -v '^ *+' conftest.er1 >conftest.err
22872 cat conftest.err >&5
22873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22874 (exit $ac_status); } &&
22875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22877 (eval $ac_try) 2>&5
22879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22880 (exit $ac_status); }; } &&
22881 { ac_try='test -s conftest$ac_exeext'
22882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22883 (eval $ac_try) 2>&5
22885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22886 (exit $ac_status); }; }; then
22887 echo "$as_me:$LINENO: result: yes" >&5
22888 echo "${ECHO_T}yes" >&6 aci_found="yes"
22890 echo "$as_me: failed program was:" >&5
22891 sed 's/^/| /' conftest.$ac_ext >&5
22893 echo "$as_me:$LINENO: result: no" >&5
22894 echo "${ECHO_T}no" >&6
22896 rm -f conftest.err conftest.$ac_objext \
22897 conftest$ac_exeext conftest.$ac_ext
22898 if test "$aci_found" = "no"; then
22899 if test -n "$LIBS_SimGrid" ; then
22900 LIBS="$LIBS_SimGrid"
22901 echo "----------------------------------------" >&5
22902 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
22903 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
22904 cat >conftest.$ac_ext <<_ACEOF
22907 cat confdefs.h >>conftest.$ac_ext
22908 cat >>conftest.$ac_ext <<_ACEOF
22909 /* end confdefs.h. */
22911 /* Override any gcc2 internal prototype to avoid an error. */
22915 /* We use char because int might match the return type of a gcc2
22916 builtin and then its argument prototype would still apply. */
22926 rm -f conftest.$ac_objext conftest$ac_exeext
22927 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22928 (eval $ac_link) 2>conftest.er1
22930 grep -v '^ *+' conftest.er1 >conftest.err
22932 cat conftest.err >&5
22933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22934 (exit $ac_status); } &&
22935 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22937 (eval $ac_try) 2>&5
22939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22940 (exit $ac_status); }; } &&
22941 { ac_try='test -s conftest$ac_exeext'
22942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22943 (eval $ac_try) 2>&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); }; }; then
22949 echo "$as_me: failed program was:" >&5
22950 sed 's/^/| /' conftest.$ac_ext >&5
22954 rm -f conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22956 echo "$as_me:$LINENO: result: $aci_found" >&5
22957 echo "${ECHO_T}$aci_found" >&6
22962 if test "x$aci_found" = "xno"; then
22963 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
22964 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
22965 echo "----------------------------------------" >&5
22966 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
22967 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
22968 cat >conftest.$ac_ext <<_ACEOF
22971 cat confdefs.h >>conftest.$ac_ext
22972 cat >>conftest.$ac_ext <<_ACEOF
22973 /* end confdefs.h. */
22975 /* Override any gcc2 internal prototype to avoid an error. */
22979 /* We use char because int might match the return type of a gcc2
22980 builtin and then its argument prototype would still apply. */
22990 rm -f conftest.$ac_objext conftest$ac_exeext
22991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22992 (eval $ac_link) 2>conftest.er1
22994 grep -v '^ *+' conftest.er1 >conftest.err
22996 cat conftest.err >&5
22997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22998 (exit $ac_status); } &&
22999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23001 (eval $ac_try) 2>&5
23003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23004 (exit $ac_status); }; } &&
23005 { ac_try='test -s conftest$ac_exeext'
23006 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23007 (eval $ac_try) 2>&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); }; }; then
23013 echo "$as_me: failed program was:" >&5
23014 sed 's/^/| /' conftest.$ac_ext >&5
23018 rm -f conftest.err conftest.$ac_objext \
23019 conftest$ac_exeext conftest.$ac_ext
23020 echo "$as_me:$LINENO: result: $aci_found" >&5
23021 echo "${ECHO_T}$aci_found" >&6
23024 LIBS="$ac_func_search_save_LIBS"
23026 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23027 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23028 echo "CPPFLAGS=$CPPFLAGS">&5;
23029 if test "${ac_cv_header_simgrid_h+set}" = set; then
23030 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23031 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23032 if test "${ac_cv_header_simgrid_h+set}" = set; then
23033 echo $ECHO_N "(cached) $ECHO_C" >&6
23035 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23036 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23038 # Is the header compilable?
23039 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23040 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23041 cat >conftest.$ac_ext <<_ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 #include <simgrid.h>
23050 rm -f conftest.$ac_objext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23052 (eval $ac_compile) 2>conftest.er1
23054 grep -v '^ *+' conftest.er1 >conftest.err
23056 cat conftest.err >&5
23057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058 (exit $ac_status); } &&
23059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23061 (eval $ac_try) 2>&5
23063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23064 (exit $ac_status); }; } &&
23065 { ac_try='test -s conftest.$ac_objext'
23066 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23067 (eval $ac_try) 2>&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); }; }; then
23071 ac_header_compiler=yes
23073 echo "$as_me: failed program was:" >&5
23074 sed 's/^/| /' conftest.$ac_ext >&5
23076 ac_header_compiler=no
23078 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23079 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23080 echo "${ECHO_T}$ac_header_compiler" >&6
23082 # Is the header present?
23083 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23084 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 #include <simgrid.h>
23093 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23094 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23096 grep -v '^ *+' conftest.er1 >conftest.err
23098 cat conftest.err >&5
23099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23100 (exit $ac_status); } >/dev/null; then
23101 if test -s conftest.err; then
23102 ac_cpp_err=$ac_c_preproc_warn_flag
23103 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23110 if test -z "$ac_cpp_err"; then
23111 ac_header_preproc=yes
23113 echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23116 ac_header_preproc=no
23118 rm -f conftest.err conftest.$ac_ext
23119 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 echo "${ECHO_T}$ac_header_preproc" >&6
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23125 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23126 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23128 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23129 ac_header_preproc=yes
23132 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23133 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
23135 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23137 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
23139 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23141 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23143 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23146 ## ----------------------------------------- ##
23147 ## Report this to martin.quinson@ens-lyon.fr ##
23148 ## ----------------------------------------- ##
23151 sed "s/^/$as_me: WARNING: /" >&2
23154 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23155 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23156 if test "${ac_cv_header_simgrid_h+set}" = set; then
23157 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 ac_cv_header_simgrid_h=$ac_header_preproc
23161 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23162 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23165 if test $ac_cv_header_simgrid_h = yes; then
23173 if test "x$aci_found" = "xno" ; then
23174 { { 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
23175 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;}
23176 { (exit 1); exit 1; }; }
23181 if test "x$HAVE_SimGrid" != "xyes" ; then
23189 echo "END OF ACI-PACKAGE(SimGrid)">&5;
23190 LDFLAGS=$OLDLDFLAGS
23191 CPPFLAGS=$OLDCPPFLAGS
23196 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
23197 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
23198 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
23199 if test "${enable_maintainer_mode+set}" = set; then
23200 enableval="$enable_maintainer_mode"
23201 USE_MAINTAINER_MODE=$enableval
23203 USE_MAINTAINER_MODE=no
23205 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
23206 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
23209 if test $USE_MAINTAINER_MODE = yes; then
23210 MAINTAINER_MODE_TRUE=
23211 MAINTAINER_MODE_FALSE='#'
23213 MAINTAINER_MODE_TRUE='#'
23214 MAINTAINER_MODE_FALSE=
23217 MAINT=$MAINTAINER_MODE_TRUE
23220 if test x$USE_MAINTAINER_MODE = xyes
23223 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
23224 if test "${enable_compile_warnings+set}" = set; then
23225 enableval="$enable_compile_warnings"
23228 enable_compile_warnings=yes
23231 echo "$as_me:$LINENO: checking what warning flags to pass to the C compiler" >&5
23232 echo $ECHO_N "checking what warning flags to pass to the C compiler... $ECHO_C" >&6
23234 if test "x$GCC" != xyes; then
23235 enable_compile_warnings=no
23238 if test "x$enable_compile_warnings" != "xno"; then
23239 if test "x$GCC" = "xyes"; then
23240 case " $CFLAGS " in
23242 *) warnCFLAGS="-g -Wall -Wunused" ;;
23245 ## -W is not all that useful. And it cannot be controlled
23246 ## with individual -Wno-xxx flags, unlike -Wall
23247 if test "x$enable_compile_warnings" = "xyes"; then
23248 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations\
23249 -finline-functions -Wshadow -Wpointer-arith \
23250 -Wwrite-strings -Wno-unused-function -Werror"
23254 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
23255 echo "${ECHO_T}$warnCFLAGS" >&6
23257 # Check whether --enable-iso-c or --disable-iso-c was given.
23258 if test "${enable_iso_c+set}" = set; then
23259 enableval="$enable_iso_c"
23265 echo "$as_me:$LINENO: checking what language compliance flags to pass to the C compiler" >&5
23266 echo $ECHO_N "checking what language compliance flags to pass to the C compiler... $ECHO_C" >&6
23268 if test "x$enable_iso_c" != "xno"; then
23269 if test "x$GCC" = "xyes"; then
23270 case " $CFLAGS " in
23272 *) complCFLAGS="$complCFLAGS -ansi" ;;
23275 case " $CFLAGS " in
23277 *) complCFLAGS="$complCFLAGS -pedantic" ;;
23281 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
23282 echo "${ECHO_T}$complCFLAGS" >&6
23283 if test "x$cflags_set" != "xyes"; then
23284 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
23295 # Extract the first word of "bash", so it can be a program name with args.
23296 set dummy bash; ac_word=$2
23297 echo "$as_me:$LINENO: checking for $ac_word" >&5
23298 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23299 if test "${ac_cv_prog_BASH+set}" = set; then
23300 echo $ECHO_N "(cached) $ECHO_C" >&6
23302 if test -n "$BASH"; then
23303 ac_cv_prog_BASH="$BASH" # Let the user override the test.
23305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23306 for as_dir in $PATH
23309 test -z "$as_dir" && as_dir=.
23310 for ac_exec_ext in '' $ac_executable_extensions; do
23311 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23312 ac_cv_prog_BASH="`which bash`"
23313 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23319 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
23322 BASH=$ac_cv_prog_BASH
23323 if test -n "$BASH"; then
23324 echo "$as_me:$LINENO: result: $BASH" >&5
23325 echo "${ECHO_T}$BASH" >&6
23327 echo "$as_me:$LINENO: result: no" >&5
23328 echo "${ECHO_T}no" >&6
23331 WARNING="This file is generated, do not edit"
23334 ac_config_files="$ac_config_files Makefile src/Makefile src/include/Makefile src/include/modules/Makefile src/base/Makefile src/base/Tests/Makefile src/base/Tests/run_tests src/base/Tests/gs_example src/base/Tests/trp_tcp_usage src/base/Tests/trp_file_usage src/modules/Makefile src/examples/Makefile src/examples/ping/Makefile src/examples/bandwidth/Makefile src/examples/saturate/Makefile src/examples/alnem/Makefile doc/Makefile"
23337 cat >confcache <<\_ACEOF
23338 # This file is a shell script that caches the results of configure
23339 # tests run on this system so they can be shared between configure
23340 # scripts and configure runs, see configure's option --config-cache.
23341 # It is not useful on other systems. If it contains results you don't
23342 # want to keep, you may remove or edit it.
23344 # config.status only pays attention to the cache file if you give it
23345 # the --recheck option to rerun configure.
23347 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23348 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23349 # following values.
23353 # The following way of writing the cache mishandles newlines in values,
23354 # but we know of no workaround that is simple, portable, and efficient.
23355 # So, don't put newlines in cache variables' values.
23356 # Ultrix sh set writes to stderr and can't be redirected directly,
23357 # and sets the high bit in the cache file unless we assign to the vars.
23360 case `(ac_space=' '; set | grep ac_space) 2>&1` in
23362 # `set' does not quote correctly, so add quotes (double-quote
23363 # substitution turns \\\\ into \\, and sed turns \\ into \).
23366 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23369 # `set' quotes correctly as required by POSIX, so do not add quotes.
23371 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
23378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23380 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23382 if diff $cache_file confcache >/dev/null 2>&1; then :; else
23383 if test -w $cache_file; then
23384 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
23385 cat confcache >$cache_file
23387 echo "not updating unwritable cache $cache_file"
23392 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23393 # Let make expand exec_prefix.
23394 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23396 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23397 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23398 # trailing colons and then remove the whole line if VPATH becomes empty
23399 # (actually we leave an empty line to preserve line numbers).
23400 if test "x$srcdir" = x.; then
23401 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23402 s/:*\$(srcdir):*/:/;
23403 s/:*\${srcdir}:*/:/;
23405 s/^\([^=]*=[ ]*\):*/\1/;
23411 DEFS=-DHAVE_CONFIG_H
23415 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23416 # 1. Remove the extension, and $U if already installed.
23417 ac_i=`echo "$ac_i" |
23418 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
23420 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
23421 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
23423 LIBOBJS=$ac_libobjs
23425 LTLIBOBJS=$ac_ltlibobjs
23428 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
23429 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
23430 Usually this means the macro was only invoked conditionally." >&5
23431 echo "$as_me: error: conditional \"AMDEP\" was never defined.
23432 Usually this means the macro was only invoked conditionally." >&2;}
23433 { (exit 1); exit 1; }; }
23435 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23436 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23437 Usually this means the macro was only invoked conditionally." >&5
23438 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23439 Usually this means the macro was only invoked conditionally." >&2;}
23440 { (exit 1); exit 1; }; }
23442 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
23443 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
23444 Usually this means the macro was only invoked conditionally." >&5
23445 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
23446 Usually this means the macro was only invoked conditionally." >&2;}
23447 { (exit 1); exit 1; }; }
23449 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
23450 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
23451 Usually this means the macro was only invoked conditionally." >&5
23452 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
23453 Usually this means the macro was only invoked conditionally." >&2;}
23454 { (exit 1); exit 1; }; }
23456 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
23457 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23458 Usually this means the macro was only invoked conditionally." >&5
23459 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
23460 Usually this means the macro was only invoked conditionally." >&2;}
23461 { (exit 1); exit 1; }; }
23463 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
23464 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23465 Usually this means the macro was only invoked conditionally." >&5
23466 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
23467 Usually this means the macro was only invoked conditionally." >&2;}
23468 { (exit 1); exit 1; }; }
23470 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
23471 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
23472 Usually this means the macro was only invoked conditionally." >&5
23473 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
23474 Usually this means the macro was only invoked conditionally." >&2;}
23475 { (exit 1); exit 1; }; }
23478 : ${CONFIG_STATUS=./config.status}
23479 ac_clean_files_save=$ac_clean_files
23480 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23481 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23482 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23483 cat >$CONFIG_STATUS <<_ACEOF
23485 # Generated by $as_me.
23486 # Run this file to recreate the current configuration.
23487 # Compiler output produced by configure, useful for debugging
23488 # configure, is in config.log if it exists.
23491 ac_cs_recheck=false
23493 SHELL=\${CONFIG_SHELL-$SHELL}
23496 cat >>$CONFIG_STATUS <<\_ACEOF
23497 ## --------------------- ##
23498 ## M4sh Initialization. ##
23499 ## --------------------- ##
23501 # Be Bourne compatible
23502 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23505 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23506 # is contrary to our usage. Disable this feature.
23507 alias -g '${1+"$@"}'='"$@"'
23508 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
23511 DUALCASE=1; export DUALCASE # for MKS sh
23513 # Support unset when possible.
23514 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23521 # Work around bugs in pre-3.0 UWIN ksh.
23522 $as_unset ENV MAIL MAILPATH
23529 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23530 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23531 LC_TELEPHONE LC_TIME
23533 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23534 eval $as_var=C; export $as_var
23540 # Required to use basename.
23541 if expr a : '\(a\)' >/dev/null 2>&1; then
23547 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
23548 as_basename=basename
23554 # Name of the executable.
23555 as_me=`$as_basename "$0" ||
23556 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23557 X"$0" : 'X\(//\)$' \| \
23558 X"$0" : 'X\(/\)$' \| \
23559 . : '\(.\)' 2>/dev/null ||
23561 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
23562 /^X\/\(\/\/\)$/{ s//\1/; q; }
23563 /^X\/\(\/\).*/{ s//\1/; q; }
23567 # PATH needs CR, and LINENO needs CR and PATH.
23568 # Avoid depending upon Character Ranges.
23569 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23570 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23571 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23572 as_cr_digits='0123456789'
23573 as_cr_alnum=$as_cr_Letters$as_cr_digits
23575 # The user is always right.
23576 if test "${PATH_SEPARATOR+set}" != set; then
23577 echo "#! /bin/sh" >conf$$.sh
23578 echo "exit 0" >>conf$$.sh
23580 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23589 as_lineno_1=$LINENO
23590 as_lineno_2=$LINENO
23591 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23592 test "x$as_lineno_1" != "x$as_lineno_2" &&
23593 test "x$as_lineno_3" = "x$as_lineno_2" || {
23594 # Find who we are. Look in the path if we contain no path at all
23597 *[\\/]* ) as_myself=$0 ;;
23598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23599 for as_dir in $PATH
23602 test -z "$as_dir" && as_dir=.
23603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23608 # We did not find ourselves, most probably we were run as `sh COMMAND'
23609 # in which case we are not to be found in the path.
23610 if test "x$as_myself" = x; then
23613 if test ! -f "$as_myself"; then
23614 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
23615 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
23616 { (exit 1); exit 1; }; }
23618 case $CONFIG_SHELL in
23620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23621 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
23624 test -z "$as_dir" && as_dir=.
23625 for as_base in sh bash ksh sh5; do
23628 if ("$as_dir/$as_base" -c '
23629 as_lineno_1=$LINENO
23630 as_lineno_2=$LINENO
23631 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
23632 test "x$as_lineno_1" != "x$as_lineno_2" &&
23633 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
23634 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
23635 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
23636 CONFIG_SHELL=$as_dir/$as_base
23637 export CONFIG_SHELL
23638 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
23646 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23647 # uniformly replaced by the line number. The first 'sed' inserts a
23648 # line-number line before each line; the second 'sed' does the real
23649 # work. The second script uses 'N' to pair each line-number line
23650 # with the numbered line, and appends trailing '-' during
23651 # substitution so that $LINENO is not a special case at line end.
23652 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23653 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
23654 sed '=' <$as_myself |
23659 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
23662 s,^['$as_cr_digits']*\n,,
23663 ' >$as_me.lineno &&
23664 chmod +x $as_me.lineno ||
23665 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
23666 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
23667 { (exit 1); exit 1; }; }
23669 # Don't try to exec as it changes $[0], causing all sort of problems
23670 # (the dirname of $[0] is not the place where we might find the
23671 # original and so on. Autoconf is especially sensible to this).
23673 # Exit status is that of the last command.
23678 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
23679 *c*,-n*) ECHO_N= ECHO_C='
23681 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
23682 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
23685 if expr a : '\(a\)' >/dev/null 2>&1; then
23691 rm -f conf$$ conf$$.exe conf$$.file
23693 if ln -s conf$$.file conf$$ 2>/dev/null; then
23694 # We could just check for DJGPP; but this test a) works b) is more generic
23695 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
23696 if test -f conf$$.exe; then
23697 # Don't use ln at all; we don't have any links
23702 elif ln conf$$.file conf$$ 2>/dev/null; then
23707 rm -f conf$$ conf$$.exe conf$$.file
23709 if mkdir -p . 2>/dev/null; then
23712 test -d ./-p && rmdir ./-p
23716 as_executable_p="test -f"
23718 # Sed expression to map a string onto a valid CPP name.
23719 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23721 # Sed expression to map a string onto a valid variable name.
23722 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23726 # We need space, tab and new line, in precisely that order.
23736 # Open the log real soon, to keep \$[0] and so on meaningful, and to
23737 # report actual input values of CONFIG_FILES etc. instead of their
23738 # values after options handling. Logging --version etc. is OK.
23742 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23743 ## Running $as_me. ##
23748 This file was extended by GRAS $as_me 0.0.040304, which was
23749 generated by GNU Autoconf 2.59. Invocation command line was
23751 CONFIG_FILES = $CONFIG_FILES
23752 CONFIG_HEADERS = $CONFIG_HEADERS
23753 CONFIG_LINKS = $CONFIG_LINKS
23754 CONFIG_COMMANDS = $CONFIG_COMMANDS
23758 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
23762 # Files that config.status was made for.
23763 if test -n "$ac_config_files"; then
23764 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
23767 if test -n "$ac_config_headers"; then
23768 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
23771 if test -n "$ac_config_links"; then
23772 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
23775 if test -n "$ac_config_commands"; then
23776 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
23779 cat >>$CONFIG_STATUS <<\_ACEOF
23782 \`$as_me' instantiates files from templates according to the
23783 current configuration.
23785 Usage: $0 [OPTIONS] [FILE]...
23787 -h, --help print this help, then exit
23788 -V, --version print version number, then exit
23789 -q, --quiet do not print progress messages
23790 -d, --debug don't remove temporary files
23791 --recheck update $as_me by reconfiguring in the same conditions
23792 --file=FILE[:TEMPLATE]
23793 instantiate the configuration file FILE
23794 --header=FILE[:TEMPLATE]
23795 instantiate the configuration header FILE
23797 Configuration files:
23800 Configuration headers:
23803 Configuration commands:
23806 Report bugs to <bug-autoconf@gnu.org>."
23809 cat >>$CONFIG_STATUS <<_ACEOF
23811 GRAS config.status 0.0.040304
23812 configured by $0, generated by GNU Autoconf 2.59,
23813 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
23815 Copyright (C) 2003 Free Software Foundation, Inc.
23816 This config.status script is free software; the Free Software Foundation
23817 gives unlimited permission to copy, distribute and modify it."
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 # If no file are specified by the user, then we need to provide default
23824 # value. By we need to know if files were specified by the user.
23830 ac_option=`expr "x$1" : 'x\([^=]*\)='`
23831 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
23839 *) # This is not an option, so the user has probably given explicit
23842 ac_need_defaults=false;;
23846 # Handling of the options.
23848 cat >>$CONFIG_STATUS <<\_ACEOF
23849 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23851 --version | --vers* | -V )
23852 echo "$ac_cs_version"; exit 0 ;;
23854 # Conflict between --help and --header
23855 { { echo "$as_me:$LINENO: error: ambiguous option: $1
23856 Try \`$0 --help' for more information." >&5
23857 echo "$as_me: error: ambiguous option: $1
23858 Try \`$0 --help' for more information." >&2;}
23859 { (exit 1); exit 1; }; };;
23860 --help | --hel | -h )
23861 echo "$ac_cs_usage"; exit 0 ;;
23862 --debug | --d* | -d )
23864 --file | --fil | --fi | --f )
23866 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23867 ac_need_defaults=false;;
23868 --header | --heade | --head | --hea )
23870 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23871 ac_need_defaults=false;;
23872 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23873 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23876 # This is an error.
23877 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
23878 Try \`$0 --help' for more information." >&5
23879 echo "$as_me: error: unrecognized option: $1
23880 Try \`$0 --help' for more information." >&2;}
23881 { (exit 1); exit 1; }; } ;;
23883 *) ac_config_targets="$ac_config_targets $1" ;;
23889 ac_configure_extra_args=
23891 if $ac_cs_silent; then
23893 ac_configure_extra_args="$ac_configure_extra_args --silent"
23897 cat >>$CONFIG_STATUS <<_ACEOF
23898 if \$ac_cs_recheck; then
23899 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23900 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23905 cat >>$CONFIG_STATUS <<_ACEOF
23907 # INIT-COMMANDS section.
23910 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23916 cat >>$CONFIG_STATUS <<\_ACEOF
23917 for ac_config_target in $ac_config_targets
23919 case "$ac_config_target" in
23920 # Handling of arguments.
23921 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23922 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23923 "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
23924 "src/include/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/modules/Makefile" ;;
23925 "src/base/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Makefile" ;;
23926 "src/base/Tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/Makefile" ;;
23927 "src/base/Tests/run_tests" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/run_tests" ;;
23928 "src/base/Tests/gs_example" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/gs_example" ;;
23929 "src/base/Tests/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_tcp_usage" ;;
23930 "src/base/Tests/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES src/base/Tests/trp_file_usage" ;;
23931 "src/modules/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/modules/Makefile" ;;
23932 "src/examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/Makefile" ;;
23933 "src/examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/ping/Makefile" ;;
23934 "src/examples/bandwidth/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/bandwidth/Makefile" ;;
23935 "src/examples/saturate/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/saturate/Makefile" ;;
23936 "src/examples/alnem/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/examples/alnem/Makefile" ;;
23937 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23938 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23939 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
23940 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23941 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23942 { (exit 1); exit 1; }; };;
23946 # If the user did not use the arguments to specify the items to instantiate,
23947 # then the envvar interface is used. Set only those that are not.
23948 # We use the long form for the default assignment because of an extremely
23949 # bizarre bug on SunOS 4.1.3.
23950 if $ac_need_defaults; then
23951 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23952 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23953 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23956 # Have a temporary directory for convenience. Make it in the build tree
23957 # simply because there is no reason to put it here, and in addition,
23958 # creating and moving files from /tmp can sometimes cause problems.
23959 # Create a temporary directory, and hook for its removal unless debugging.
23962 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
23963 trap '{ (exit 1); exit 1; }' 1 2 13 15
23966 # Create a (secure) tmp directory for tmp files.
23969 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
23970 test -n "$tmp" && test -d "$tmp"
23973 tmp=./confstat$$-$RANDOM
23974 (umask 077 && mkdir $tmp)
23977 echo "$me: cannot create a temporary directory in ." >&2
23978 { (exit 1); exit 1; }
23983 cat >>$CONFIG_STATUS <<_ACEOF
23986 # CONFIG_FILES section.
23989 # No need to generate the scripts if there are no CONFIG_FILES.
23990 # This happens for instance when ./config.status config.h
23991 if test -n "\$CONFIG_FILES"; then
23992 # Protect against being on the right side of a sed subst in config.status.
23993 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
23994 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
23995 s,@SHELL@,$SHELL,;t t
23996 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
23997 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
23998 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
23999 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24000 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24001 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24002 s,@exec_prefix@,$exec_prefix,;t t
24003 s,@prefix@,$prefix,;t t
24004 s,@program_transform_name@,$program_transform_name,;t t
24005 s,@bindir@,$bindir,;t t
24006 s,@sbindir@,$sbindir,;t t
24007 s,@libexecdir@,$libexecdir,;t t
24008 s,@datadir@,$datadir,;t t
24009 s,@sysconfdir@,$sysconfdir,;t t
24010 s,@sharedstatedir@,$sharedstatedir,;t t
24011 s,@localstatedir@,$localstatedir,;t t
24012 s,@libdir@,$libdir,;t t
24013 s,@includedir@,$includedir,;t t
24014 s,@oldincludedir@,$oldincludedir,;t t
24015 s,@infodir@,$infodir,;t t
24016 s,@mandir@,$mandir,;t t
24017 s,@build_alias@,$build_alias,;t t
24018 s,@host_alias@,$host_alias,;t t
24019 s,@target_alias@,$target_alias,;t t
24020 s,@DEFS@,$DEFS,;t t
24021 s,@ECHO_C@,$ECHO_C,;t t
24022 s,@ECHO_N@,$ECHO_N,;t t
24023 s,@ECHO_T@,$ECHO_T,;t t
24024 s,@LIBS@,$LIBS,;t t
24025 s,@build@,$build,;t t
24026 s,@build_cpu@,$build_cpu,;t t
24027 s,@build_vendor@,$build_vendor,;t t
24028 s,@build_os@,$build_os,;t t
24029 s,@host@,$host,;t t
24030 s,@host_cpu@,$host_cpu,;t t
24031 s,@host_vendor@,$host_vendor,;t t
24032 s,@host_os@,$host_os,;t t
24033 s,@target@,$target,;t t
24034 s,@target_cpu@,$target_cpu,;t t
24035 s,@target_vendor@,$target_vendor,;t t
24036 s,@target_os@,$target_os,;t t
24037 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
24038 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
24039 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
24040 s,@CYGPATH_W@,$CYGPATH_W,;t t
24041 s,@PACKAGE@,$PACKAGE,;t t
24042 s,@VERSION@,$VERSION,;t t
24043 s,@ACLOCAL@,$ACLOCAL,;t t
24044 s,@AUTOCONF@,$AUTOCONF,;t t
24045 s,@AUTOMAKE@,$AUTOMAKE,;t t
24046 s,@AUTOHEADER@,$AUTOHEADER,;t t
24047 s,@MAKEINFO@,$MAKEINFO,;t t
24048 s,@AMTAR@,$AMTAR,;t t
24049 s,@install_sh@,$install_sh,;t t
24050 s,@STRIP@,$STRIP,;t t
24051 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
24052 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
24053 s,@mkdir_p@,$mkdir_p,;t t
24055 s,@SET_MAKE@,$SET_MAKE,;t t
24056 s,@am__leading_dot@,$am__leading_dot,;t t
24058 s,@CFLAGS@,$CFLAGS,;t t
24059 s,@LDFLAGS@,$LDFLAGS,;t t
24060 s,@CPPFLAGS@,$CPPFLAGS,;t t
24061 s,@ac_ct_CC@,$ac_ct_CC,;t t
24062 s,@EXEEXT@,$EXEEXT,;t t
24063 s,@OBJEXT@,$OBJEXT,;t t
24064 s,@DEPDIR@,$DEPDIR,;t t
24065 s,@am__include@,$am__include,;t t
24066 s,@am__quote@,$am__quote,;t t
24067 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
24068 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
24069 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
24070 s,@CCDEPMODE@,$CCDEPMODE,;t t
24071 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
24072 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
24073 s,@EGREP@,$EGREP,;t t
24074 s,@LN_S@,$LN_S,;t t
24075 s,@ECHO@,$ECHO,;t t
24077 s,@ac_ct_AR@,$ac_ct_AR,;t t
24078 s,@RANLIB@,$RANLIB,;t t
24079 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
24082 s,@CXXFLAGS@,$CXXFLAGS,;t t
24083 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
24084 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
24085 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
24086 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
24087 s,@CXXCPP@,$CXXCPP,;t t
24089 s,@FFLAGS@,$FFLAGS,;t t
24090 s,@ac_ct_F77@,$ac_ct_F77,;t t
24091 s,@LIBTOOL@,$LIBTOOL,;t t
24092 s,@LIBOBJS@,$LIBOBJS,;t t
24093 s,@HTML_DIR@,$HTML_DIR,;t t
24094 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
24095 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
24096 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
24097 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
24098 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
24099 s,@ACI_CACHE_PROG@,$ACI_CACHE_PROG,;t t
24100 s,@aci_module_desc_XML@,$aci_module_desc_XML,;t t
24101 s,@aci_pkg_config_XML@,$aci_pkg_config_XML,;t t
24102 s,@HAVE_XML@,$HAVE_XML,;t t
24103 s,@CFLAGS_XML@,$CFLAGS_XML,;t t
24104 s,@LIBS_XML@,$LIBS_XML,;t t
24105 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
24106 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
24107 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
24108 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
24109 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
24110 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
24111 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
24112 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
24113 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
24114 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
24115 s,@MAINT@,$MAINT,;t t
24116 s,@cflags_set@,$cflags_set,;t t
24117 s,@BASH@,$BASH,;t t
24118 s,@WARNING@,$WARNING,;t t
24119 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
24124 cat >>$CONFIG_STATUS <<\_ACEOF
24125 # Split the substitutions into bite-sized pieces for seds with
24126 # small command number limits, like on Digital OSF/1 and HP-UX.
24127 ac_max_sed_lines=48
24128 ac_sed_frag=1 # Number of current file.
24129 ac_beg=1 # First line for current file.
24130 ac_end=$ac_max_sed_lines # Line after last line for current file.
24133 while $ac_more_lines; do
24134 if test $ac_beg -gt 1; then
24135 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24137 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
24139 if test ! -s $tmp/subs.frag; then
24140 ac_more_lines=false
24142 # The purpose of the label and of the branching condition is to
24143 # speed up the sed processing (if there are no `@' at all, there
24144 # is no need to browse any of the substitutions).
24145 # These are the two extra sed commands mentioned above.
24147 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
24148 if test -z "$ac_sed_cmds"; then
24149 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
24151 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
24153 ac_sed_frag=`expr $ac_sed_frag + 1`
24155 ac_end=`expr $ac_end + $ac_max_sed_lines`
24158 if test -z "$ac_sed_cmds"; then
24161 fi # test -n "$CONFIG_FILES"
24164 cat >>$CONFIG_STATUS <<\_ACEOF
24165 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
24166 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24168 - | *:- | *:-:* ) # input from stdin
24170 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24171 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24172 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24173 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24174 * ) ac_file_in=$ac_file.in ;;
24177 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
24178 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24179 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24180 X"$ac_file" : 'X\(//\)[^/]' \| \
24181 X"$ac_file" : 'X\(//\)$' \| \
24182 X"$ac_file" : 'X\(/\)' \| \
24183 . : '\(.\)' 2>/dev/null ||
24185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24186 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24187 /^X\(\/\/\)$/{ s//\1/; q; }
24188 /^X\(\/\).*/{ s//\1/; q; }
24190 { if $as_mkdir_p; then
24195 while test ! -d "$as_dir"; do
24196 as_dirs="$as_dir $as_dirs"
24197 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24198 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24199 X"$as_dir" : 'X\(//\)[^/]' \| \
24200 X"$as_dir" : 'X\(//\)$' \| \
24201 X"$as_dir" : 'X\(/\)' \| \
24202 . : '\(.\)' 2>/dev/null ||
24204 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24205 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24206 /^X\(\/\/\)$/{ s//\1/; q; }
24207 /^X\(\/\).*/{ s//\1/; q; }
24210 test ! -n "$as_dirs" || mkdir $as_dirs
24211 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24212 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24213 { (exit 1); exit 1; }; }; }
24217 if test "$ac_dir" != .; then
24218 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24219 # A "../" for each directory in $ac_dir_suffix.
24220 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24222 ac_dir_suffix= ac_top_builddir=
24226 .) # No --srcdir option. We are building in place.
24228 if test -z "$ac_top_builddir"; then
24231 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24233 [\\/]* | ?:[\\/]* ) # Absolute path.
24234 ac_srcdir=$srcdir$ac_dir_suffix;
24235 ac_top_srcdir=$srcdir ;;
24236 *) # Relative path.
24237 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24238 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24241 # Do not use `cd foo && pwd` to compute absolute paths, because
24242 # the directories may not exist.
24244 .) ac_abs_builddir="$ac_dir";;
24247 .) ac_abs_builddir=`pwd`;;
24248 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24249 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24252 case $ac_abs_builddir in
24253 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24255 case ${ac_top_builddir}. in
24256 .) ac_abs_top_builddir=$ac_abs_builddir;;
24257 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24258 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24261 case $ac_abs_builddir in
24262 .) ac_abs_srcdir=$ac_srcdir;;
24265 .) ac_abs_srcdir=$ac_abs_builddir;;
24266 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24267 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24270 case $ac_abs_builddir in
24271 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24273 case $ac_top_srcdir in
24274 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24275 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24276 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24282 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24283 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
24286 # Let's still pretend it is `configure' which instantiates (i.e., don't
24287 # use $as_me), people would be surprised to read:
24288 # /* config.h. Generated by config.status. */
24289 if test x"$ac_file" = x-; then
24292 configure_input="$ac_file. "
24294 configure_input=$configure_input"Generated from `echo $ac_file_in |
24295 sed 's,.*/,,'` by configure."
24297 # First look for the input files in the build tree, otherwise in the
24299 ac_file_inputs=`IFS=:
24300 for f in $ac_file_in; do
24302 -) echo $tmp/stdin ;;
24304 # Absolute (can't be DOS-style, as IFS=:)
24305 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24306 echo "$as_me: error: cannot find input file: $f" >&2;}
24307 { (exit 1); exit 1; }; }
24310 if test -f "$f"; then
24313 elif test -f "$srcdir/$f"; then
24318 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24319 echo "$as_me: error: cannot find input file: $f" >&2;}
24320 { (exit 1); exit 1; }; }
24323 done` || { (exit 1); exit 1; }
24325 if test x"$ac_file" != x-; then
24326 { echo "$as_me:$LINENO: creating $ac_file" >&5
24327 echo "$as_me: creating $ac_file" >&6;}
24331 cat >>$CONFIG_STATUS <<_ACEOF
24335 cat >>$CONFIG_STATUS <<\_ACEOF
24337 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24338 s,@configure_input@,$configure_input,;t t
24339 s,@srcdir@,$ac_srcdir,;t t
24340 s,@abs_srcdir@,$ac_abs_srcdir,;t t
24341 s,@top_srcdir@,$ac_top_srcdir,;t t
24342 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
24343 s,@builddir@,$ac_builddir,;t t
24344 s,@abs_builddir@,$ac_abs_builddir,;t t
24345 s,@top_builddir@,$ac_top_builddir,;t t
24346 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
24347 s,@INSTALL@,$ac_INSTALL,;t t
24348 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
24350 if test x"$ac_file" != x-; then
24351 mv $tmp/out $ac_file
24357 # Run the commands associated with the file.
24359 Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24360 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24361 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24362 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24363 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24364 src/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24365 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24366 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24367 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24368 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24369 src/include/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24370 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24371 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24372 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24373 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24374 src/include/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24375 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24376 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24377 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24378 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24379 src/base/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24380 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24381 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24382 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24383 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24384 src/base/Tests/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24385 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24386 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24387 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24388 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24389 src/base/Tests/run_tests ) ( cd src/include ; test -e gras || ln -s . gras )
24390 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24391 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24392 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24393 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24394 src/base/Tests/gs_example ) ( cd src/include ; test -e gras || ln -s . gras )
24395 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24396 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24397 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24398 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24399 src/base/Tests/trp_tcp_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24400 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24401 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24402 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24403 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24404 src/base/Tests/trp_file_usage ) ( cd src/include ; test -e gras || ln -s . gras )
24405 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24406 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24407 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24408 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24409 src/modules/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24410 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24411 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24412 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24413 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24414 src/examples/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24415 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24416 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24417 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24418 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24419 src/examples/ping/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24420 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24421 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24422 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24423 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24424 src/examples/bandwidth/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24425 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24426 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24427 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24428 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24429 src/examples/saturate/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24430 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24431 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24432 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24433 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24434 src/examples/alnem/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24435 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24436 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24437 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24438 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24439 doc/Makefile ) ( cd src/include ; test -e gras || ln -s . gras )
24440 test -e src/base/Tests/trp_tcp_usage && chmod +x src/base/Tests/trp_tcp_usage;
24441 test -e src/base/Tests/trp_file_usage && chmod +x src/base/Tests/trp_file_usage;
24442 test -e src/base/Tests/gs_example && chmod +x src/base/Tests/gs_example;
24443 test -e src/base/Tests/run_tests && chmod +x src/base/Tests/run_tests ;;
24447 cat >>$CONFIG_STATUS <<\_ACEOF
24450 # CONFIG_HEADER section.
24453 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
24454 # NAME is the cpp macro being defined and VALUE is the value it is being given.
24456 # ac_d sets the value in "#define NAME VALUE" lines.
24457 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
24458 ac_dB='[ ].*$,\1#\2'
24461 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
24462 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
24463 ac_uB='$,\1#\2define\3'
24467 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
24468 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
24470 - | *:- | *:-:* ) # input from stdin
24472 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24473 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24474 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
24475 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
24476 * ) ac_file_in=$ac_file.in ;;
24479 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
24480 echo "$as_me: creating $ac_file" >&6;}
24482 # First look for the input files in the build tree, otherwise in the
24484 ac_file_inputs=`IFS=:
24485 for f in $ac_file_in; do
24487 -) echo $tmp/stdin ;;
24489 # Absolute (can't be DOS-style, as IFS=:)
24490 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24491 echo "$as_me: error: cannot find input file: $f" >&2;}
24492 { (exit 1); exit 1; }; }
24493 # Do quote $f, to prevent DOS paths from being IFS'd.
24496 if test -f "$f"; then
24499 elif test -f "$srcdir/$f"; then
24504 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
24505 echo "$as_me: error: cannot find input file: $f" >&2;}
24506 { (exit 1); exit 1; }; }
24509 done` || { (exit 1); exit 1; }
24510 # Remove the trailing spaces.
24511 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
24515 # Transform confdefs.h into two sed scripts, `conftest.defines' and
24516 # `conftest.undefs', that substitutes the proper values into
24517 # config.h.in to produce config.h. The first handles `#define'
24518 # templates, and the second `#undef' templates.
24519 # And first: Protect against being on the right side of a sed subst in
24520 # config.status. Protect against being in an unquoted here document
24521 # in config.status.
24522 rm -f conftest.defines conftest.undefs
24523 # Using a here document instead of a string reduces the quoting nightmare.
24524 # Putting comments in sed scripts is not portable.
24526 # `end' is used to avoid that the second main sed command (meant for
24527 # 0-ary CPP macros) applies to n-ary macro definitions.
24528 # See the Autoconf documentation for `clear'.
24529 cat >confdef2sed.sed <<\_ACEOF
24534 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
24536 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
24539 # If some macros were called several times there might be several times
24540 # the same #defines, which is useless. Nevertheless, we may not want to
24541 # sort them, since we want the *last* AC-DEFINE to be honored.
24542 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
24543 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
24544 rm -f confdef2sed.sed
24546 # This sed command replaces #undef with comments. This is necessary, for
24547 # example, in the case of _POSIX_SOURCE, which is predefined and required
24548 # on some systems where configure will not decide to define it.
24549 cat >>conftest.undefs <<\_ACEOF
24550 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
24553 # Break up conftest.defines because some shells have a limit on the size
24554 # of here documents, and old seds have small limits too (100 cmds).
24555 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
24556 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
24557 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
24558 echo ' :' >>$CONFIG_STATUS
24559 rm -f conftest.tail
24560 while grep . conftest.defines >/dev/null
24562 # Write a limited-size here document to $tmp/defines.sed.
24563 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
24564 # Speed up: don't consider the non `#define' lines.
24565 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
24566 # Work around the forget-to-reset-the-flag bug.
24567 echo 't clr' >>$CONFIG_STATUS
24568 echo ': clr' >>$CONFIG_STATUS
24569 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
24571 sed -f $tmp/defines.sed $tmp/in >$tmp/out
24573 mv $tmp/out $tmp/in
24575 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
24576 rm -f conftest.defines
24577 mv conftest.tail conftest.defines
24579 rm -f conftest.defines
24580 echo ' fi # grep' >>$CONFIG_STATUS
24581 echo >>$CONFIG_STATUS
24583 # Break up conftest.undefs because some shells have a limit on the size
24584 # of here documents, and old seds have small limits too (100 cmds).
24585 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
24586 rm -f conftest.tail
24587 while grep . conftest.undefs >/dev/null
24589 # Write a limited-size here document to $tmp/undefs.sed.
24590 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
24591 # Speed up: don't consider the non `#undef'
24592 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
24593 # Work around the forget-to-reset-the-flag bug.
24594 echo 't clr' >>$CONFIG_STATUS
24595 echo ': clr' >>$CONFIG_STATUS
24596 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
24598 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
24600 mv $tmp/out $tmp/in
24602 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
24603 rm -f conftest.undefs
24604 mv conftest.tail conftest.undefs
24606 rm -f conftest.undefs
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609 # Let's still pretend it is `configure' which instantiates (i.e., don't
24610 # use $as_me), people would be surprised to read:
24611 # /* config.h. Generated by config.status. */
24612 if test x"$ac_file" = x-; then
24613 echo "/* Generated by configure. */" >$tmp/config.h
24615 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
24617 cat $tmp/in >>$tmp/config.h
24619 if test x"$ac_file" != x-; then
24620 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
24621 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24622 echo "$as_me: $ac_file is unchanged" >&6;}
24624 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
24625 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24626 X"$ac_file" : 'X\(//\)[^/]' \| \
24627 X"$ac_file" : 'X\(//\)$' \| \
24628 X"$ac_file" : 'X\(/\)' \| \
24629 . : '\(.\)' 2>/dev/null ||
24631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24632 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24633 /^X\(\/\/\)$/{ s//\1/; q; }
24634 /^X\(\/\).*/{ s//\1/; q; }
24636 { if $as_mkdir_p; then
24641 while test ! -d "$as_dir"; do
24642 as_dirs="$as_dir $as_dirs"
24643 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24645 X"$as_dir" : 'X\(//\)[^/]' \| \
24646 X"$as_dir" : 'X\(//\)$' \| \
24647 X"$as_dir" : 'X\(/\)' \| \
24648 . : '\(.\)' 2>/dev/null ||
24650 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24651 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24652 /^X\(\/\/\)$/{ s//\1/; q; }
24653 /^X\(\/\).*/{ s//\1/; q; }
24656 test ! -n "$as_dirs" || mkdir $as_dirs
24657 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24658 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24659 { (exit 1); exit 1; }; }; }
24662 mv $tmp/config.h $ac_file
24666 rm -f $tmp/config.h
24668 # Compute $ac_file's index in $config_headers.
24670 for _am_header in $config_headers :; do
24671 case $_am_header in
24672 $ac_file | $ac_file:* )
24675 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24678 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
24679 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24680 X$ac_file : 'X\(//\)[^/]' \| \
24681 X$ac_file : 'X\(//\)$' \| \
24682 X$ac_file : 'X\(/\)' \| \
24683 . : '\(.\)' 2>/dev/null ||
24685 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24686 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24687 /^X\(\/\/\)$/{ s//\1/; q; }
24688 /^X\(\/\).*/{ s//\1/; q; }
24689 s/.*/./; q'`/stamp-h$_am_stamp_count
24692 cat >>$CONFIG_STATUS <<\_ACEOF
24695 # CONFIG_COMMANDS section.
24697 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
24698 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
24699 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
24700 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
24701 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24702 X"$ac_dest" : 'X\(//\)[^/]' \| \
24703 X"$ac_dest" : 'X\(//\)$' \| \
24704 X"$ac_dest" : 'X\(/\)' \| \
24705 . : '\(.\)' 2>/dev/null ||
24707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24708 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24709 /^X\(\/\/\)$/{ s//\1/; q; }
24710 /^X\(\/\).*/{ s//\1/; q; }
24712 { if $as_mkdir_p; then
24717 while test ! -d "$as_dir"; do
24718 as_dirs="$as_dir $as_dirs"
24719 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24720 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24721 X"$as_dir" : 'X\(//\)[^/]' \| \
24722 X"$as_dir" : 'X\(//\)$' \| \
24723 X"$as_dir" : 'X\(/\)' \| \
24724 . : '\(.\)' 2>/dev/null ||
24726 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24727 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24728 /^X\(\/\/\)$/{ s//\1/; q; }
24729 /^X\(\/\).*/{ s//\1/; q; }
24732 test ! -n "$as_dirs" || mkdir $as_dirs
24733 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
24734 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
24735 { (exit 1); exit 1; }; }; }
24739 if test "$ac_dir" != .; then
24740 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24741 # A "../" for each directory in $ac_dir_suffix.
24742 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
24744 ac_dir_suffix= ac_top_builddir=
24748 .) # No --srcdir option. We are building in place.
24750 if test -z "$ac_top_builddir"; then
24753 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
24755 [\\/]* | ?:[\\/]* ) # Absolute path.
24756 ac_srcdir=$srcdir$ac_dir_suffix;
24757 ac_top_srcdir=$srcdir ;;
24758 *) # Relative path.
24759 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
24760 ac_top_srcdir=$ac_top_builddir$srcdir ;;
24763 # Do not use `cd foo && pwd` to compute absolute paths, because
24764 # the directories may not exist.
24766 .) ac_abs_builddir="$ac_dir";;
24769 .) ac_abs_builddir=`pwd`;;
24770 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
24771 *) ac_abs_builddir=`pwd`/"$ac_dir";;
24774 case $ac_abs_builddir in
24775 .) ac_abs_top_builddir=${ac_top_builddir}.;;
24777 case ${ac_top_builddir}. in
24778 .) ac_abs_top_builddir=$ac_abs_builddir;;
24779 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
24780 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
24783 case $ac_abs_builddir in
24784 .) ac_abs_srcdir=$ac_srcdir;;
24787 .) ac_abs_srcdir=$ac_abs_builddir;;
24788 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
24789 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
24792 case $ac_abs_builddir in
24793 .) ac_abs_top_srcdir=$ac_top_srcdir;;
24795 case $ac_top_srcdir in
24796 .) ac_abs_top_srcdir=$ac_abs_builddir;;
24797 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
24798 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
24803 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
24804 echo "$as_me: executing $ac_dest commands" >&6;}
24806 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
24807 # Strip MF so we end up with the name of the file.
24808 mf=`echo "$mf" | sed -e 's/:.*$//'`
24809 # Check whether this is an Automake generated Makefile or not.
24810 # We used to match only the files named `Makefile.in', but
24811 # some people rename them; so instead we look at the file content.
24812 # Grep'ing the first line is not enough: some people post-process
24813 # each Makefile.in and add a new line on top of each file to say so.
24814 # So let's grep whole file.
24815 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
24816 dirpart=`(dirname "$mf") 2>/dev/null ||
24817 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24818 X"$mf" : 'X\(//\)[^/]' \| \
24819 X"$mf" : 'X\(//\)$' \| \
24820 X"$mf" : 'X\(/\)' \| \
24821 . : '\(.\)' 2>/dev/null ||
24823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24824 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24825 /^X\(\/\/\)$/{ s//\1/; q; }
24826 /^X\(\/\).*/{ s//\1/; q; }
24831 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
24832 # Extract the definition of DEP_FILES from the Makefile without
24834 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24835 test -z "$DEPDIR" && continue
24836 # When using ansi2knr, U may be empty or an underscore; expand it
24837 U=`sed -n 's/^U = //p' < "$mf"`
24838 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
24839 # We invoke sed twice because it is the simplest approach to
24840 # changing $(DEPDIR) to its actual value in the expansion.
24841 for file in `sed -n '
24842 /^DEP_FILES = .*\\\\$/ {
24851 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
24852 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
24853 # Make sure the directory exists.
24854 test -f "$dirpart/$file" && continue
24855 fdir=`(dirname "$file") 2>/dev/null ||
24856 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24857 X"$file" : 'X\(//\)[^/]' \| \
24858 X"$file" : 'X\(//\)$' \| \
24859 X"$file" : 'X\(/\)' \| \
24860 . : '\(.\)' 2>/dev/null ||
24862 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24863 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24864 /^X\(\/\/\)$/{ s//\1/; q; }
24865 /^X\(\/\).*/{ s//\1/; q; }
24867 { if $as_mkdir_p; then
24868 mkdir -p $dirpart/$fdir
24870 as_dir=$dirpart/$fdir
24872 while test ! -d "$as_dir"; do
24873 as_dirs="$as_dir $as_dirs"
24874 as_dir=`(dirname "$as_dir") 2>/dev/null ||
24875 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24876 X"$as_dir" : 'X\(//\)[^/]' \| \
24877 X"$as_dir" : 'X\(//\)$' \| \
24878 X"$as_dir" : 'X\(/\)' \| \
24879 . : '\(.\)' 2>/dev/null ||
24881 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
24882 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
24883 /^X\(\/\/\)$/{ s//\1/; q; }
24884 /^X\(\/\).*/{ s//\1/; q; }
24887 test ! -n "$as_dirs" || mkdir $as_dirs
24888 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
24889 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
24890 { (exit 1); exit 1; }; }; }
24892 # echo "creating $dirpart/$file"
24893 echo '# dummy' > "$dirpart/$file"
24901 cat >>$CONFIG_STATUS <<\_ACEOF
24903 { (exit 0); exit 0; }
24905 chmod +x $CONFIG_STATUS
24906 ac_clean_files=$ac_clean_files_save
24909 # configure is writing to config.log, and then calls config.status.
24910 # config.status does its own redirection, appending to config.log.
24911 # Unfortunately, on DOS this fails, as config.log is still kept open
24912 # by configure, so config.status won't be able to write to it; its
24913 # output is simply discarded. So we exec the FD to /dev/null,
24914 # effectively closing config.log, so it can be properly (re)opened and
24915 # appended to by config.status. When coming back to configure, we
24916 # need to make the FD available again.
24917 if test "$no_create" != yes; then
24919 ac_config_status_args=
24920 test "$silent" = yes &&
24921 ac_config_status_args="$ac_config_status_args --quiet"
24923 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24925 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24926 # would make configure fail if this is the last instruction.
24927 $ac_cs_success || { (exit 1); exit 1; }
24933 Configuration of package \`${PACKAGE}':
24938 LDFlags: ${LDFLAGS}