2 # From configure.ac Revision: 1.29 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GRAS 0.6.3.
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.6.3'
428 PACKAGE_STRING='GRAS 0.6.3'
429 PACKAGE_BUGREPORT='martin.quinson@ens-lyon.fr'
431 ac_unique_file="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 LEX LEXLIB LEX_OUTPUT_ROOT HTML_DIR PKG_CONFIG ENABLE_GTK_DOC_TRUE ENABLE_GTK_DOC_FALSE GTK_DOC_USE_LIBTOOL_TRUE GTK_DOC_USE_LIBTOOL_FALSE htmldir 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 HAVE_SG_TRUE HAVE_SG_FALSE 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.6.3 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.6.3:";;
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
1060 --with-SimGrid-libraries=DIR
1061 specify exact library dir for the SimGrid simulator
1063 --with-SimGrid-extra=ARG
1064 specify extra args to pass to the linker to get the
1065 the SimGrid simulator library (with no space. A sed
1066 to change "!" to " " is run)
1068 Some influential environment variables:
1069 CC C compiler command
1070 CFLAGS C compiler flags
1071 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1072 nonstandard directory <lib dir>
1073 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1074 headers in a nonstandard directory <include dir>
1076 CXX C++ compiler command
1077 CXXFLAGS C++ compiler flags
1078 CXXCPP C++ preprocessor
1079 F77 Fortran 77 compiler command
1080 FFLAGS Fortran 77 compiler flags
1082 Use these variables to override the choices made by `configure' or to help
1083 it to find libraries and programs with nonstandard names/locations.
1085 Report bugs to <martin.quinson@ens-lyon.fr>.
1089 if test "$ac_init_help" = "recursive"; then
1090 # If there are subdirs, report their specific --help.
1092 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1093 test -d $ac_dir || continue
1096 if test "$ac_dir" != .; then
1097 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1098 # A "../" for each directory in $ac_dir_suffix.
1099 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1101 ac_dir_suffix= ac_top_builddir=
1105 .) # No --srcdir option. We are building in place.
1107 if test -z "$ac_top_builddir"; then
1110 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1112 [\\/]* | ?:[\\/]* ) # Absolute path.
1113 ac_srcdir=$srcdir$ac_dir_suffix;
1114 ac_top_srcdir=$srcdir ;;
1116 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1117 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1120 # Do not use `cd foo && pwd` to compute absolute paths, because
1121 # the directories may not exist.
1123 .) ac_abs_builddir="$ac_dir";;
1126 .) ac_abs_builddir=`pwd`;;
1127 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1128 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1131 case $ac_abs_builddir in
1132 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1134 case ${ac_top_builddir}. in
1135 .) ac_abs_top_builddir=$ac_abs_builddir;;
1136 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1137 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1140 case $ac_abs_builddir in
1141 .) ac_abs_srcdir=$ac_srcdir;;
1144 .) ac_abs_srcdir=$ac_abs_builddir;;
1145 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1146 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1149 case $ac_abs_builddir in
1150 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1152 case $ac_top_srcdir in
1153 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1154 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1155 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1160 # Check for guested configure; otherwise get Cygnus style configure.
1161 if test -f $ac_srcdir/configure.gnu; then
1163 $SHELL $ac_srcdir/configure.gnu --help=recursive
1164 elif test -f $ac_srcdir/configure; then
1166 $SHELL $ac_srcdir/configure --help=recursive
1167 elif test -f $ac_srcdir/configure.ac ||
1168 test -f $ac_srcdir/configure.in; then
1170 $ac_configure --help
1172 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1178 test -n "$ac_init_help" && exit 0
1179 if $ac_init_version; then
1181 GRAS configure 0.6.3
1182 generated by GNU Autoconf 2.59
1184 Copyright (C) 2003 Free Software Foundation, Inc.
1185 This configure script is free software; the Free Software Foundation
1186 gives unlimited permission to copy, distribute and modify it.
1192 This file contains any messages produced by compilers while
1193 running configure, to aid debugging if configure makes a mistake.
1195 It was created by GRAS $as_me 0.6.3, which was
1196 generated by GNU Autoconf 2.59. Invocation command line was
1207 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1208 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1209 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1210 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1211 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1213 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1214 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1216 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1217 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1218 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1219 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1220 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1221 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1222 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1230 test -z "$as_dir" && as_dir=.
1231 echo "PATH: $as_dir"
1246 # Keep a trace of the command line.
1247 # Strip out --no-create and --no-recursion so they do not pile up.
1248 # Strip out --silent because we don't want to record it for future runs.
1249 # Also quote any args containing shell meta-characters.
1250 # Make two passes to allow for proper duplicate-argument suppression.
1255 ac_must_keep_next=false
1261 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1262 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1263 | -silent | --silent | --silen | --sile | --sil)
1265 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1266 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1269 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1271 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1272 if test $ac_must_keep_next = true; then
1273 ac_must_keep_next=false # Got value, back to normal.
1276 *=* | --config-cache | -C | -disable-* | --disable-* \
1277 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1278 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1279 | -with-* | --with-* | -without-* | --without-* | --x)
1280 case "$ac_configure_args0 " in
1281 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1284 -* ) ac_must_keep_next=true ;;
1287 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1288 # Get rid of the leading space.
1294 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1295 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1297 # When interrupted or exit'd, cleanup temporary files, and complete
1298 # config.log. We remove comments because anyway the quotes in there
1299 # would cause problems or look ugly.
1300 # WARNING: Be sure not to use single quotes in there, as some shells,
1301 # such as our DU 5.0 friend, will then `close' the trap.
1302 trap 'exit_status=$?
1303 # Save into config.log some information that might help in debugging.
1308 ## ---------------- ##
1309 ## Cache variables. ##
1310 ## ---------------- ##
1313 # The following way of writing the cache mishandles newlines in values,
1316 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1319 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1324 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1331 ## ----------------- ##
1332 ## Output variables. ##
1333 ## ----------------- ##
1336 for ac_var in $ac_subst_vars
1338 eval ac_val=$`echo $ac_var`
1339 echo "$ac_var='"'"'$ac_val'"'"'"
1343 if test -n "$ac_subst_files"; then
1350 for ac_var in $ac_subst_files
1352 eval ac_val=$`echo $ac_var`
1353 echo "$ac_var='"'"'$ac_val'"'"'"
1358 if test -s confdefs.h; then
1365 sed "/^$/d" confdefs.h | sort
1368 test "$ac_signal" != 0 &&
1369 echo "$as_me: caught signal $ac_signal"
1370 echo "$as_me: exit $exit_status"
1372 rm -f core *.core &&
1373 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1376 for ac_signal in 1 2 13 15; do
1377 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1382 rm -rf conftest* confdefs.h
1383 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1386 # Predefined preprocessor variables.
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_NAME "$PACKAGE_NAME"
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1398 cat >>confdefs.h <<_ACEOF
1399 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1403 cat >>confdefs.h <<_ACEOF
1404 #define PACKAGE_STRING "$PACKAGE_STRING"
1408 cat >>confdefs.h <<_ACEOF
1409 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1413 # Let the site file select an alternate cache file if it wants to.
1414 # Prefer explicitly selected file to automatically selected ones.
1415 if test -z "$CONFIG_SITE"; then
1416 if test "x$prefix" != xNONE; then
1417 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1419 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1422 for ac_site_file in $CONFIG_SITE; do
1423 if test -r "$ac_site_file"; then
1424 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1425 echo "$as_me: loading site script $ac_site_file" >&6;}
1426 sed 's/^/| /' "$ac_site_file" >&5
1431 if test -r "$cache_file"; then
1432 # Some versions of bash will fail to source /dev/null (special
1433 # files actually), so we avoid doing that.
1434 if test -f "$cache_file"; then
1435 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1436 echo "$as_me: loading cache $cache_file" >&6;}
1438 [\\/]* | ?:[\\/]* ) . $cache_file;;
1439 *) . ./$cache_file;;
1443 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1444 echo "$as_me: creating cache $cache_file" >&6;}
1448 # Check that the precious variables saved in the cache have kept the same
1450 ac_cache_corrupted=false
1451 for ac_var in `(set) 2>&1 |
1452 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1453 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1454 eval ac_new_set=\$ac_env_${ac_var}_set
1455 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1456 eval ac_new_val="\$ac_env_${ac_var}_value"
1457 case $ac_old_set,$ac_new_set in
1459 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1460 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1461 ac_cache_corrupted=: ;;
1463 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1464 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1465 ac_cache_corrupted=: ;;
1468 if test "x$ac_old_val" != "x$ac_new_val"; then
1469 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1470 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1471 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1472 echo "$as_me: former value: $ac_old_val" >&2;}
1473 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1474 echo "$as_me: current value: $ac_new_val" >&2;}
1475 ac_cache_corrupted=:
1478 # Pass precious variables to config.status.
1479 if test "$ac_new_set" = set; then
1481 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1482 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1483 *) ac_arg=$ac_var=$ac_new_val ;;
1485 case " $ac_configure_args " in
1486 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1487 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1491 if $ac_cache_corrupted; then
1492 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1493 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1494 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1495 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1496 { (exit 1); exit 1; }; }
1500 ac_cpp='$CPP $CPPFLAGS'
1501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1532 ac_config_headers="$ac_config_headers src/gras_config.h"
1537 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1538 if test -f $ac_dir/install-sh; then
1540 ac_install_sh="$ac_aux_dir/install-sh -c"
1542 elif test -f $ac_dir/install.sh; then
1544 ac_install_sh="$ac_aux_dir/install.sh -c"
1546 elif test -f $ac_dir/shtool; then
1548 ac_install_sh="$ac_aux_dir/shtool install -c"
1552 if test -z "$ac_aux_dir"; then
1553 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1554 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1555 { (exit 1); exit 1; }; }
1557 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1558 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1559 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1561 # Make sure we can run config.sub.
1562 $ac_config_sub sun4 >/dev/null 2>&1 ||
1563 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1564 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1565 { (exit 1); exit 1; }; }
1567 echo "$as_me:$LINENO: checking build system type" >&5
1568 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1569 if test "${ac_cv_build+set}" = set; then
1570 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 ac_cv_build_alias=$build_alias
1573 test -z "$ac_cv_build_alias" &&
1574 ac_cv_build_alias=`$ac_config_guess`
1575 test -z "$ac_cv_build_alias" &&
1576 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1577 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1578 { (exit 1); exit 1; }; }
1579 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1580 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1581 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1582 { (exit 1); exit 1; }; }
1585 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1586 echo "${ECHO_T}$ac_cv_build" >&6
1588 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1589 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1590 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593 echo "$as_me:$LINENO: checking host system type" >&5
1594 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1595 if test "${ac_cv_host+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1598 ac_cv_host_alias=$host_alias
1599 test -z "$ac_cv_host_alias" &&
1600 ac_cv_host_alias=$ac_cv_build_alias
1601 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1602 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1603 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1604 { (exit 1); exit 1; }; }
1607 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1608 echo "${ECHO_T}$ac_cv_host" >&6
1610 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1611 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1612 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615 echo "$as_me:$LINENO: checking target system type" >&5
1616 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1617 if test "${ac_cv_target+set}" = set; then
1618 echo $ECHO_N "(cached) $ECHO_C" >&6
1620 ac_cv_target_alias=$target_alias
1621 test "x$ac_cv_target_alias" = "x" &&
1622 ac_cv_target_alias=$ac_cv_host_alias
1623 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1624 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1625 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1626 { (exit 1); exit 1; }; }
1629 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1630 echo "${ECHO_T}$ac_cv_target" >&6
1631 target=$ac_cv_target
1632 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1637 # The aliases save the names the user supplied, while $host etc.
1638 # will get canonicalized.
1639 test -n "$target_alias" &&
1640 test "$program_prefix$program_suffix$program_transform_name" = \
1642 program_prefix=${target_alias}-
1644 ac_cpp='$CPP $CPPFLAGS'
1645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1650 am__api_version="1.8"
1651 # Find a good install program. We prefer a C program (faster),
1652 # so one script is as good as another. But avoid the broken or
1653 # incompatible versions:
1654 # SysV /etc/install, /usr/sbin/install
1655 # SunOS /usr/etc/install
1656 # IRIX /sbin/install
1658 # AmigaOS /C/install, which installs bootblocks on floppy discs
1659 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1660 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1661 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1662 # OS/2's system install, which has a completely different semantic
1663 # ./install, which can be erroneously created by make from ./install.sh.
1664 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1665 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1666 if test -z "$INSTALL"; then
1667 if test "${ac_cv_path_install+set}" = set; then
1668 echo $ECHO_N "(cached) $ECHO_C" >&6
1670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1674 test -z "$as_dir" && as_dir=.
1675 # Account for people who put trailing slashes in PATH elements.
1677 ./ | .// | /cC/* | \
1678 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1679 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1682 # OSF1 and SCO ODT 3.0 have their own names for install.
1683 # Don't use installbsd from OSF since it installs stuff as root
1685 for ac_prog in ginstall scoinst install; do
1686 for ac_exec_ext in '' $ac_executable_extensions; do
1687 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1688 if test $ac_prog = install &&
1689 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1690 # AIX install. It has an incompatible calling convention.
1692 elif test $ac_prog = install &&
1693 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1694 # program-specific install script used by HP pwplus--don't use.
1697 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1709 if test "${ac_cv_path_install+set}" = set; then
1710 INSTALL=$ac_cv_path_install
1712 # As a last resort, use the slow shell script. We don't cache a
1713 # path for INSTALL within a source directory, because that will
1714 # break other packages using the cache if that directory is
1715 # removed, or if the path is relative.
1716 INSTALL=$ac_install_sh
1719 echo "$as_me:$LINENO: result: $INSTALL" >&5
1720 echo "${ECHO_T}$INSTALL" >&6
1722 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1723 # It thinks the first close brace ends the variable substitution.
1724 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1726 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1728 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1730 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1731 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1734 echo timestamp > conftest.file
1735 # Do `set' in a subshell so we don't clobber the current shell's
1736 # arguments. Must try -L first in case configure is actually a
1737 # symlink; some systems play weird games with the mod time of symlinks
1738 # (eg FreeBSD returns the mod time of the symlink's containing
1741 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1742 if test "$*" = "X"; then
1744 set X `ls -t $srcdir/configure conftest.file`
1747 if test "$*" != "X $srcdir/configure conftest.file" \
1748 && test "$*" != "X conftest.file $srcdir/configure"; then
1750 # If neither matched, then we have a broken ls. This can happen
1751 # if, for instance, CONFIG_SHELL is bash and it inherits a
1752 # broken ls alias from the environment. This has actually
1753 # happened. Such a system could not be considered "sane".
1754 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1755 alias in your environment" >&5
1756 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1757 alias in your environment" >&2;}
1758 { (exit 1); exit 1; }; }
1761 test "$2" = conftest.file
1767 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1768 Check your system clock" >&5
1769 echo "$as_me: error: newly created file is older than distributed files!
1770 Check your system clock" >&2;}
1771 { (exit 1); exit 1; }; }
1773 echo "$as_me:$LINENO: result: yes" >&5
1774 echo "${ECHO_T}yes" >&6
1775 test "$program_prefix" != NONE &&
1776 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1777 # Use a double $ so make ignores it.
1778 test "$program_suffix" != NONE &&
1779 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1780 # Double any \ or $. echo might interpret backslashes.
1781 # By default was `s,x,x', remove it if useless.
1782 cat <<\_ACEOF >conftest.sed
1783 s/[\\$]/&&/g;s/;s,x,x,$//
1785 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1788 # expand $ac_aux_dir to an absolute path
1789 am_aux_dir=`cd $ac_aux_dir && pwd`
1791 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1792 # Use eval to expand $SHELL
1793 if eval "$MISSING --run true"; then
1794 am_missing_run="$MISSING --run "
1797 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1798 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1801 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1802 # Keeping the `.' argument allows $(mkdir_p) to be used without
1803 # argument. Indeed, we sometimes output rules like
1804 # $(mkdir_p) $(somedir)
1805 # where $(somedir) is conditionally defined.
1806 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1807 # expensive solution, as it forces Make to start a sub-shell.)
1808 mkdir_p='mkdir -p -- .'
1810 # On NextStep and OpenStep, the `mkdir' command does not
1811 # recognize any option. It will interpret all options as
1812 # directories to create, and then abort because `.' already
1814 for d in ./-p ./--version;
1816 test -d $d && rmdir $d
1818 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1819 if test -f "$ac_aux_dir/mkinstalldirs"; then
1820 mkdir_p='$(mkinstalldirs)'
1822 mkdir_p='$(install_sh) -d'
1826 for ac_prog in gawk mawk nawk awk
1828 # Extract the first word of "$ac_prog", so it can be a program name with args.
1829 set dummy $ac_prog; ac_word=$2
1830 echo "$as_me:$LINENO: checking for $ac_word" >&5
1831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1832 if test "${ac_cv_prog_AWK+set}" = set; then
1833 echo $ECHO_N "(cached) $ECHO_C" >&6
1835 if test -n "$AWK"; then
1836 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1842 test -z "$as_dir" && as_dir=.
1843 for ac_exec_ext in '' $ac_executable_extensions; do
1844 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1845 ac_cv_prog_AWK="$ac_prog"
1846 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1855 if test -n "$AWK"; then
1856 echo "$as_me:$LINENO: result: $AWK" >&5
1857 echo "${ECHO_T}$AWK" >&6
1859 echo "$as_me:$LINENO: result: no" >&5
1860 echo "${ECHO_T}no" >&6
1863 test -n "$AWK" && break
1866 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1867 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1868 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1869 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1870 echo $ECHO_N "(cached) $ECHO_C" >&6
1872 cat >conftest.make <<\_ACEOF
1874 @echo 'ac_maketemp="$(MAKE)"'
1876 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1877 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1878 if test -n "$ac_maketemp"; then
1879 eval ac_cv_prog_make_${ac_make}_set=yes
1881 eval ac_cv_prog_make_${ac_make}_set=no
1885 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1886 echo "$as_me:$LINENO: result: yes" >&5
1887 echo "${ECHO_T}yes" >&6
1890 echo "$as_me:$LINENO: result: no" >&5
1891 echo "${ECHO_T}no" >&6
1892 SET_MAKE="MAKE=${MAKE-make}"
1895 rm -rf .tst 2>/dev/null
1896 mkdir .tst 2>/dev/null
1897 if test -d .tst; then
1902 rmdir .tst 2>/dev/null
1904 # test to see if srcdir already configured
1905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1906 test -f $srcdir/config.status; then
1907 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1908 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1909 { (exit 1); exit 1; }; }
1912 # test whether we have cygpath
1913 if test -z "$CYGPATH_W"; then
1914 if (cygpath --version) >/dev/null 2>/dev/null; then
1915 CYGPATH_W='cygpath -w'
1922 # Define the identity of the package.
1927 cat >>confdefs.h <<_ACEOF
1928 #define PACKAGE "$PACKAGE"
1932 cat >>confdefs.h <<_ACEOF
1933 #define VERSION "$VERSION"
1936 # Some tools Automake needs.
1938 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1941 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1944 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1947 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1950 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1953 AMTAR=${AMTAR-"${am_missing_run}tar"}
1955 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1957 # Installed binaries are usually stripped using `strip' when the user
1958 # run `make install-strip'. However `strip' might not be the right
1959 # tool to use in cross-compilation environments, therefore Automake
1960 # will honor the `STRIP' environment variable to overrule this program.
1961 if test "$cross_compiling" != no; then
1962 if test -n "$ac_tool_prefix"; then
1963 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1964 set dummy ${ac_tool_prefix}strip; ac_word=$2
1965 echo "$as_me:$LINENO: checking for $ac_word" >&5
1966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1967 if test "${ac_cv_prog_STRIP+set}" = set; then
1968 echo $ECHO_N "(cached) $ECHO_C" >&6
1970 if test -n "$STRIP"; then
1971 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 test -z "$as_dir" && as_dir=.
1978 for ac_exec_ext in '' $ac_executable_extensions; do
1979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1980 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1989 STRIP=$ac_cv_prog_STRIP
1990 if test -n "$STRIP"; then
1991 echo "$as_me:$LINENO: result: $STRIP" >&5
1992 echo "${ECHO_T}$STRIP" >&6
1994 echo "$as_me:$LINENO: result: no" >&5
1995 echo "${ECHO_T}no" >&6
1999 if test -z "$ac_cv_prog_STRIP"; then
2001 # Extract the first word of "strip", so it can be a program name with args.
2002 set dummy strip; ac_word=$2
2003 echo "$as_me:$LINENO: checking for $ac_word" >&5
2004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2005 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2006 echo $ECHO_N "(cached) $ECHO_C" >&6
2008 if test -n "$ac_ct_STRIP"; then
2009 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2015 test -z "$as_dir" && as_dir=.
2016 for ac_exec_ext in '' $ac_executable_extensions; do
2017 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2018 ac_cv_prog_ac_ct_STRIP="strip"
2019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2025 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2028 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2029 if test -n "$ac_ct_STRIP"; then
2030 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2031 echo "${ECHO_T}$ac_ct_STRIP" >&6
2033 echo "$as_me:$LINENO: result: no" >&5
2034 echo "${ECHO_T}no" >&6
2039 STRIP="$ac_cv_prog_STRIP"
2043 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2045 # We need awk for the "check" target. The system "awk" is bad on
2050 # MACRO_DIR should tell aclocal to search for my macro. That's the autoconf
2051 # maintainer plan, but automake does not implement this yet (as in 1.8)
2053 [\\/]* | ?:[\\/]* ) ac_macro_dir=acmacro ;;
2054 *) ac_macro_dir=$srcdir/acmacro ;;
2056 if test -d "$ac_macro_dir"; then :
2058 { { echo "$as_me:$LINENO: error: cannot find macro directory \`acmacro'" >&5
2059 echo "$as_me: error: cannot find macro directory \`acmacro'" >&2;}
2060 { (exit 1); exit 1; }; }
2063 # It seems to be called ACLOCAL_INCLUDE...
2064 # A M_ACLOCAL_INCLUDE(acmacro)
2069 # Check whether --enable-shared or --disable-shared was given.
2070 if test "${enable_shared+set}" = set; then
2071 enableval="$enable_shared"
2072 p=${PACKAGE-default}
2074 yes) enable_shared=yes ;;
2075 no) enable_shared=no ;;
2078 # Look at the argument we got. We use all the common list separators.
2079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2080 for pkg in $enableval; do
2082 if test "X$pkg" = "X$p"; then
2093 # Check whether --enable-static or --disable-static was given.
2094 if test "${enable_static+set}" = set; then
2095 enableval="$enable_static"
2096 p=${PACKAGE-default}
2098 yes) enable_static=yes ;;
2099 no) enable_static=no ;;
2102 # Look at the argument we got. We use all the common list separators.
2103 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2104 for pkg in $enableval; do
2106 if test "X$pkg" = "X$p"; then
2117 # Check whether --enable-fast-install or --disable-fast-install was given.
2118 if test "${enable_fast_install+set}" = set; then
2119 enableval="$enable_fast_install"
2120 p=${PACKAGE-default}
2122 yes) enable_fast_install=yes ;;
2123 no) enable_fast_install=no ;;
2125 enable_fast_install=no
2126 # Look at the argument we got. We use all the common list separators.
2127 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2128 for pkg in $enableval; do
2130 if test "X$pkg" = "X$p"; then
2131 enable_fast_install=yes
2138 enable_fast_install=yes
2141 DEPDIR="${am__leading_dot}deps"
2143 ac_config_commands="$ac_config_commands depfiles"
2146 am_make=${MAKE-make}
2147 cat > confinc << 'END'
2152 # If we don't find an include directive, just comment out the code.
2153 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2154 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2158 # First try GNU make style include.
2159 echo "include confinc" > confmf
2160 # We grep out `Entering directory' and `Leaving directory'
2161 # messages which can occur if `w' ends up in MAKEFLAGS.
2162 # In particular we don't look at `^make:' because GNU make might
2163 # be invoked under some other name (usually "gmake"), in which
2164 # case it prints its new name instead of `make'.
2165 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2170 # Now try BSD make style include.
2171 if test "$am__include" = "#"; then
2172 echo '.include "confinc"' > confmf
2173 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2174 am__include=.include
2181 echo "$as_me:$LINENO: result: $_am_result" >&5
2182 echo "${ECHO_T}$_am_result" >&6
2183 rm -f confinc confmf
2185 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2186 if test "${enable_dependency_tracking+set}" = set; then
2187 enableval="$enable_dependency_tracking"
2190 if test "x$enable_dependency_tracking" != xno; then
2191 am_depcomp="$ac_aux_dir/depcomp"
2196 if test "x$enable_dependency_tracking" != xno; then
2207 ac_cpp='$CPP $CPPFLAGS'
2208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2211 if test -n "$ac_tool_prefix"; then
2212 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2213 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2214 echo "$as_me:$LINENO: checking for $ac_word" >&5
2215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2216 if test "${ac_cv_prog_CC+set}" = set; then
2217 echo $ECHO_N "(cached) $ECHO_C" >&6
2219 if test -n "$CC"; then
2220 ac_cv_prog_CC="$CC" # Let the user override the test.
2222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2226 test -z "$as_dir" && as_dir=.
2227 for ac_exec_ext in '' $ac_executable_extensions; do
2228 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2229 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2239 if test -n "$CC"; then
2240 echo "$as_me:$LINENO: result: $CC" >&5
2241 echo "${ECHO_T}$CC" >&6
2243 echo "$as_me:$LINENO: result: no" >&5
2244 echo "${ECHO_T}no" >&6
2248 if test -z "$ac_cv_prog_CC"; then
2250 # Extract the first word of "gcc", so it can be a program name with args.
2251 set dummy gcc; ac_word=$2
2252 echo "$as_me:$LINENO: checking for $ac_word" >&5
2253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2254 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2255 echo $ECHO_N "(cached) $ECHO_C" >&6
2257 if test -n "$ac_ct_CC"; then
2258 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2264 test -z "$as_dir" && as_dir=.
2265 for ac_exec_ext in '' $ac_executable_extensions; do
2266 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2267 ac_cv_prog_ac_ct_CC="gcc"
2268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2277 if test -n "$ac_ct_CC"; then
2278 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2279 echo "${ECHO_T}$ac_ct_CC" >&6
2281 echo "$as_me:$LINENO: result: no" >&5
2282 echo "${ECHO_T}no" >&6
2290 if test -z "$CC"; then
2291 if test -n "$ac_tool_prefix"; then
2292 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2293 set dummy ${ac_tool_prefix}cc; ac_word=$2
2294 echo "$as_me:$LINENO: checking for $ac_word" >&5
2295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2296 if test "${ac_cv_prog_CC+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test -n "$CC"; then
2300 ac_cv_prog_CC="$CC" # Let the user override the test.
2302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2306 test -z "$as_dir" && as_dir=.
2307 for ac_exec_ext in '' $ac_executable_extensions; do
2308 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2309 ac_cv_prog_CC="${ac_tool_prefix}cc"
2310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2319 if test -n "$CC"; then
2320 echo "$as_me:$LINENO: result: $CC" >&5
2321 echo "${ECHO_T}$CC" >&6
2323 echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6
2328 if test -z "$ac_cv_prog_CC"; then
2330 # Extract the first word of "cc", so it can be a program name with args.
2331 set dummy cc; ac_word=$2
2332 echo "$as_me:$LINENO: checking for $ac_word" >&5
2333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2334 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2337 if test -n "$ac_ct_CC"; then
2338 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344 test -z "$as_dir" && as_dir=.
2345 for ac_exec_ext in '' $ac_executable_extensions; do
2346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2347 ac_cv_prog_ac_ct_CC="cc"
2348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2356 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2357 if test -n "$ac_ct_CC"; then
2358 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2359 echo "${ECHO_T}$ac_ct_CC" >&6
2361 echo "$as_me:$LINENO: result: no" >&5
2362 echo "${ECHO_T}no" >&6
2371 if test -z "$CC"; then
2372 # Extract the first word of "cc", so it can be a program name with args.
2373 set dummy cc; ac_word=$2
2374 echo "$as_me:$LINENO: checking for $ac_word" >&5
2375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2376 if test "${ac_cv_prog_CC+set}" = set; then
2377 echo $ECHO_N "(cached) $ECHO_C" >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2387 test -z "$as_dir" && as_dir=.
2388 for ac_exec_ext in '' $ac_executable_extensions; do
2389 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2390 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2391 ac_prog_rejected=yes
2395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2416 if test -n "$CC"; then
2417 echo "$as_me:$LINENO: result: $CC" >&5
2418 echo "${ECHO_T}$CC" >&6
2420 echo "$as_me:$LINENO: result: no" >&5
2421 echo "${ECHO_T}no" >&6
2425 if test -z "$CC"; then
2426 if test -n "$ac_tool_prefix"; then
2429 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431 echo "$as_me:$LINENO: checking for $ac_word" >&5
2432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2433 if test "${ac_cv_prog_CC+set}" = set; then
2434 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 if test -n "$CC"; then
2437 ac_cv_prog_CC="$CC" # Let the user override the test.
2439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 test -z "$as_dir" && as_dir=.
2444 for ac_exec_ext in '' $ac_executable_extensions; do
2445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2446 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2456 if test -n "$CC"; then
2457 echo "$as_me:$LINENO: result: $CC" >&5
2458 echo "${ECHO_T}$CC" >&6
2460 echo "$as_me:$LINENO: result: no" >&5
2461 echo "${ECHO_T}no" >&6
2464 test -n "$CC" && break
2467 if test -z "$CC"; then
2471 # Extract the first word of "$ac_prog", so it can be a program name with args.
2472 set dummy $ac_prog; ac_word=$2
2473 echo "$as_me:$LINENO: checking for $ac_word" >&5
2474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2475 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2476 echo $ECHO_N "(cached) $ECHO_C" >&6
2478 if test -n "$ac_ct_CC"; then
2479 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_ac_ct_CC="$ac_prog"
2489 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2498 if test -n "$ac_ct_CC"; then
2499 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2500 echo "${ECHO_T}$ac_ct_CC" >&6
2502 echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6
2506 test -n "$ac_ct_CC" && break
2515 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2516 See \`config.log' for more details." >&5
2517 echo "$as_me: error: no acceptable C compiler found in \$PATH
2518 See \`config.log' for more details." >&2;}
2519 { (exit 1); exit 1; }; }
2521 # Provide some information about the compiler.
2522 echo "$as_me:$LINENO:" \
2523 "checking for C compiler version" >&5
2524 ac_compiler=`set X $ac_compile; echo $2`
2525 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2526 (eval $ac_compiler --version </dev/null >&5) 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }
2530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2531 (eval $ac_compiler -v </dev/null >&5) 2>&5
2533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2534 (exit $ac_status); }
2535 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2536 (eval $ac_compiler -V </dev/null >&5) 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }
2541 cat >conftest.$ac_ext <<_ACEOF
2544 cat confdefs.h >>conftest.$ac_ext
2545 cat >>conftest.$ac_ext <<_ACEOF
2546 /* end confdefs.h. */
2556 ac_clean_files_save=$ac_clean_files
2557 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2558 # Try to create an executable without -o first, disregard a.out.
2559 # It will help us diagnose broken compilers, and finding out an intuition
2561 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2562 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2563 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2564 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2565 (eval $ac_link_default) 2>&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); }; then
2569 # Find the output, starting from the most likely. This scheme is
2570 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2573 # Be careful to initialize this variable, since it used to be cached.
2574 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2576 # b.out is created by i960 compilers.
2577 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2579 test -f "$ac_file" || continue
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2584 # This is the source file.
2587 # We found the default executable, but exeext='' is most
2591 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2592 # FIXME: I believe we export ac_cv_exeext for Libtool,
2593 # but it would be cool to find out if it's true. Does anybody
2594 # maintain Libtool? --akim.
2602 echo "$as_me: failed program was:" >&5
2603 sed 's/^/| /' conftest.$ac_ext >&5
2605 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2606 See \`config.log' for more details." >&5
2607 echo "$as_me: error: C compiler cannot create executables
2608 See \`config.log' for more details." >&2;}
2609 { (exit 77); exit 77; }; }
2612 ac_exeext=$ac_cv_exeext
2613 echo "$as_me:$LINENO: result: $ac_file" >&5
2614 echo "${ECHO_T}$ac_file" >&6
2616 # Check the compiler produces executables we can run. If not, either
2617 # the compiler is broken, or we cross compile.
2618 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2619 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2620 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2621 # If not cross compiling, check that we can run a simple program.
2622 if test "$cross_compiling" != yes; then
2623 if { ac_try='./$ac_file'
2624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628 (exit $ac_status); }; }; then
2631 if test "$cross_compiling" = maybe; then
2634 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2635 If you meant to cross compile, use \`--host'.
2636 See \`config.log' for more details." >&5
2637 echo "$as_me: error: cannot run C compiled programs.
2638 If you meant to cross compile, use \`--host'.
2639 See \`config.log' for more details." >&2;}
2640 { (exit 1); exit 1; }; }
2644 echo "$as_me:$LINENO: result: yes" >&5
2645 echo "${ECHO_T}yes" >&6
2647 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2648 ac_clean_files=$ac_clean_files_save
2649 # Check the compiler produces executables we can run. If not, either
2650 # the compiler is broken, or we cross compile.
2651 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2652 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2653 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2654 echo "${ECHO_T}$cross_compiling" >&6
2656 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2657 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2659 (eval $ac_link) 2>&5
2661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2662 (exit $ac_status); }; then
2663 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2664 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2665 # work properly (i.e., refer to `conftest.exe'), while it won't with
2667 for ac_file in conftest.exe conftest conftest.*; do
2668 test -f "$ac_file" || continue
2670 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2671 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2678 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2679 See \`config.log' for more details." >&5
2680 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2681 See \`config.log' for more details." >&2;}
2682 { (exit 1); exit 1; }; }
2685 rm -f conftest$ac_cv_exeext
2686 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2687 echo "${ECHO_T}$ac_cv_exeext" >&6
2689 rm -f conftest.$ac_ext
2690 EXEEXT=$ac_cv_exeext
2692 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2693 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2694 if test "${ac_cv_objext+set}" = set; then
2695 echo $ECHO_N "(cached) $ECHO_C" >&6
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 rm -f conftest.o conftest.obj
2713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2714 (eval $ac_compile) 2>&5
2716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717 (exit $ac_status); }; then
2718 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2721 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2726 echo "$as_me: failed program was:" >&5
2727 sed 's/^/| /' conftest.$ac_ext >&5
2729 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2730 See \`config.log' for more details." >&5
2731 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2732 See \`config.log' for more details." >&2;}
2733 { (exit 1); exit 1; }; }
2736 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2738 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2739 echo "${ECHO_T}$ac_cv_objext" >&6
2740 OBJEXT=$ac_cv_objext
2742 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2743 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2744 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2745 echo $ECHO_N "(cached) $ECHO_C" >&6
2747 cat >conftest.$ac_ext <<_ACEOF
2750 cat confdefs.h >>conftest.$ac_ext
2751 cat >>conftest.$ac_ext <<_ACEOF
2752 /* end confdefs.h. */
2765 rm -f conftest.$ac_objext
2766 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2767 (eval $ac_compile) 2>conftest.er1
2769 grep -v '^ *+' conftest.er1 >conftest.err
2771 cat conftest.err >&5
2772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2773 (exit $ac_status); } &&
2774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2779 (exit $ac_status); }; } &&
2780 { ac_try='test -s conftest.$ac_objext'
2781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2785 (exit $ac_status); }; }; then
2788 echo "$as_me: failed program was:" >&5
2789 sed 's/^/| /' conftest.$ac_ext >&5
2793 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2794 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2797 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2798 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2799 GCC=`test $ac_compiler_gnu = yes && echo yes`
2800 ac_test_CFLAGS=${CFLAGS+set}
2801 ac_save_CFLAGS=$CFLAGS
2803 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2804 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2805 if test "${ac_cv_prog_cc_g+set}" = set; then
2806 echo $ECHO_N "(cached) $ECHO_C" >&6
2808 cat >conftest.$ac_ext <<_ACEOF
2811 cat confdefs.h >>conftest.$ac_ext
2812 cat >>conftest.$ac_ext <<_ACEOF
2813 /* end confdefs.h. */
2823 rm -f conftest.$ac_objext
2824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2825 (eval $ac_compile) 2>conftest.er1
2827 grep -v '^ *+' conftest.er1 >conftest.err
2829 cat conftest.err >&5
2830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2831 (exit $ac_status); } &&
2832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2837 (exit $ac_status); }; } &&
2838 { ac_try='test -s conftest.$ac_objext'
2839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2843 (exit $ac_status); }; }; then
2846 echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2851 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2853 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2854 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2855 if test "$ac_test_CFLAGS" = set; then
2856 CFLAGS=$ac_save_CFLAGS
2857 elif test $ac_cv_prog_cc_g = yes; then
2858 if test "$GCC" = yes; then
2864 if test "$GCC" = yes; then
2870 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2871 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2872 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2873 echo $ECHO_N "(cached) $ECHO_C" >&6
2875 ac_cv_prog_cc_stdc=no
2877 cat >conftest.$ac_ext <<_ACEOF
2880 cat confdefs.h >>conftest.$ac_ext
2881 cat >>conftest.$ac_ext <<_ACEOF
2882 /* end confdefs.h. */
2885 #include <sys/types.h>
2886 #include <sys/stat.h>
2887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2888 struct buf { int x; };
2889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2890 static char *e (p, i)
2896 static char *f (char * (*g) (char **, int), char **p, ...)
2901 s = g (p, va_arg (v,int));
2906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2907 function prototypes and stuff, but not '\xHH' hex character constants.
2908 These don't provoke an error unfortunately, instead are silently treated
2909 as 'x'. The following induces an error, until -std1 is added to get
2910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2911 array size at least. It's necessary to write '\x00'==0 to get something
2912 that's true only with -std1. */
2913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2915 int test (int i, double x);
2916 struct s1 {int (*f) (int a);};
2917 struct s2 {int (*f) (double a);};
2918 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2924 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2929 # Don't try gcc -ansi; that turns off useful extensions and
2930 # breaks some systems' header files.
2931 # AIX -qlanglvl=ansi
2932 # Ultrix and OSF/1 -std1
2933 # HP-UX 10.20 and later -Ae
2934 # HP-UX older versions -Aa -D_HPUX_SOURCE
2935 # SVR4 -Xc -D__EXTENSIONS__
2936 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 CC="$ac_save_CC $ac_arg"
2939 rm -f conftest.$ac_objext
2940 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2941 (eval $ac_compile) 2>conftest.er1
2943 grep -v '^ *+' conftest.er1 >conftest.err
2945 cat conftest.err >&5
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); } &&
2948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; } &&
2954 { ac_try='test -s conftest.$ac_objext'
2955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); }; }; then
2960 ac_cv_prog_cc_stdc=$ac_arg
2963 echo "$as_me: failed program was:" >&5
2964 sed 's/^/| /' conftest.$ac_ext >&5
2967 rm -f conftest.err conftest.$ac_objext
2969 rm -f conftest.$ac_ext conftest.$ac_objext
2974 case "x$ac_cv_prog_cc_stdc" in
2976 echo "$as_me:$LINENO: result: none needed" >&5
2977 echo "${ECHO_T}none needed" >&6 ;;
2979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2980 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2981 CC="$CC $ac_cv_prog_cc_stdc" ;;
2984 # Some people use a C++ compiler to compile C. Since we use `exit',
2985 # in C++ we need to declare it. In case someone uses the same compiler
2986 # for both compiling C and C++ we need to have the C++ compiler decide
2987 # the declaration of exit, since it's the most demanding environment.
2988 cat >conftest.$ac_ext <<_ACEOF
2993 rm -f conftest.$ac_objext
2994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2995 (eval $ac_compile) 2>conftest.er1
2997 grep -v '^ *+' conftest.er1 >conftest.err
2999 cat conftest.err >&5
3000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3001 (exit $ac_status); } &&
3002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); }; } &&
3008 { ac_try='test -s conftest.$ac_objext'
3009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3013 (exit $ac_status); }; }; then
3014 for ac_declaration in \
3016 'extern "C" void std::exit (int) throw (); using std::exit;' \
3017 'extern "C" void std::exit (int); using std::exit;' \
3018 'extern "C" void exit (int) throw ();' \
3019 'extern "C" void exit (int);' \
3022 cat >conftest.$ac_ext <<_ACEOF
3025 cat confdefs.h >>conftest.$ac_ext
3026 cat >>conftest.$ac_ext <<_ACEOF
3027 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3040 (eval $ac_compile) 2>conftest.er1
3042 grep -v '^ *+' conftest.er1 >conftest.err
3044 cat conftest.err >&5
3045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } &&
3047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3052 (exit $ac_status); }; } &&
3053 { ac_try='test -s conftest.$ac_objext'
3054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3058 (exit $ac_status); }; }; then
3061 echo "$as_me: failed program was:" >&5
3062 sed 's/^/| /' conftest.$ac_ext >&5
3066 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3067 cat >conftest.$ac_ext <<_ACEOF
3070 cat confdefs.h >>conftest.$ac_ext
3071 cat >>conftest.$ac_ext <<_ACEOF
3072 /* end confdefs.h. */
3082 rm -f conftest.$ac_objext
3083 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3084 (eval $ac_compile) 2>conftest.er1
3086 grep -v '^ *+' conftest.er1 >conftest.err
3088 cat conftest.err >&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); } &&
3091 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3096 (exit $ac_status); }; } &&
3097 { ac_try='test -s conftest.$ac_objext'
3098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3112 if test -n "$ac_declaration"; then
3113 echo '#ifdef __cplusplus' >>confdefs.h
3114 echo $ac_declaration >>confdefs.h
3115 echo '#endif' >>confdefs.h
3119 echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3123 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3125 ac_cpp='$CPP $CPPFLAGS'
3126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3130 depcc="$CC" am_compiler_list=
3132 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3133 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3134 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3135 echo $ECHO_N "(cached) $ECHO_C" >&6
3137 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3138 # We make a subdir and do the tests there. Otherwise we can end up
3139 # making bogus files that we don't know about and never remove. For
3140 # instance it was reported that on HP-UX the gcc test will end up
3141 # making a dummy file named `D' -- because `-MD' means `put the output
3144 # Copy depcomp to subdir because otherwise we won't find it if we're
3145 # using a relative directory.
3146 cp "$am_depcomp" conftest.dir
3148 # We will build objects and dependencies in a subdirectory because
3149 # it helps to detect inapplicable dependency modes. For instance
3150 # both Tru64's cc and ICC support -MD to output dependencies as a
3151 # side effect of compilation, but ICC will put the dependencies in
3152 # the current directory while Tru64 will put them in the object
3156 am_cv_CC_dependencies_compiler_type=none
3157 if test "$am_compiler_list" = ""; then
3158 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3160 for depmode in $am_compiler_list; do
3161 # Setup a source with many dependencies, because some compilers
3162 # like to wrap large dependency lists on column 80 (with \), and
3163 # we should not choose a depcomp mode which is confused by this.
3165 # We need to recreate these files for each test, as the compiler may
3166 # overwrite some of them when testing with obscure command lines.
3167 # This happens at least with the AIX C compiler.
3169 for i in 1 2 3 4 5 6; do
3170 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3171 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3172 # Solaris 8's {/usr,}/bin/sh.
3173 touch sub/conftst$i.h
3175 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3179 # after this tag, mechanisms are not by side-effect, so they'll
3180 # only be used when explicitly requested
3181 if test "x$enable_dependency_tracking" = xyes; then
3189 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3190 # mode. It turns out that the SunPro C++ compiler does not properly
3191 # handle `-M -o', and we need to detect this.
3192 if depmode=$depmode \
3193 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3194 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3195 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3196 >/dev/null 2>conftest.err &&
3197 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3198 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3199 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3200 # icc doesn't choke on unknown options, it will just issue warnings
3201 # or remarks (even with -Werror). So we grep stderr for any message
3202 # that says an option was ignored or not supported.
3203 # When given -MP, icc 7.0 and 7.1 complain thusly:
3204 # icc: Command line warning: ignoring option '-M'; no argument required
3205 # The diagnosis changed in icc 8.0:
3206 # icc: Command line remark: option '-MP' not supported
3207 if (grep 'ignoring option' conftest.err ||
3208 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3209 am_cv_CC_dependencies_compiler_type=$depmode
3218 am_cv_CC_dependencies_compiler_type=none
3222 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3223 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3224 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3229 test "x$enable_dependency_tracking" != xno \
3230 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3232 am__fastdepCC_FALSE='#'
3234 am__fastdepCC_TRUE='#'
3235 am__fastdepCC_FALSE=
3239 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3240 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3241 if test "${lt_cv_path_SED+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 # Loop through the user's path and test for sed and gsed.
3245 # Then use that list of sed's as ones to test for truncation.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3250 test -z "$as_dir" && as_dir=.
3251 for lt_ac_prog in sed gsed; do
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3254 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3261 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3262 # along with /bin/sed that truncates output.
3263 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3264 test ! -f $lt_ac_sed && break
3265 cat /dev/null > conftest.in
3267 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3268 # Check for GNU sed and select it if it is found.
3269 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3270 lt_cv_path_SED=$lt_ac_sed
3274 cat conftest.in conftest.in >conftest.tmp
3275 mv conftest.tmp conftest.in
3276 cp conftest.in conftest.nl
3278 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3279 cmp -s conftest.out conftest.nl || break
3280 # 10000 chars as input seems more than enough
3281 test $lt_ac_count -gt 10 && break
3282 lt_ac_count=`expr $lt_ac_count + 1`
3283 if test $lt_ac_count -gt $lt_ac_max; then
3284 lt_ac_max=$lt_ac_count
3285 lt_cv_path_SED=$lt_ac_sed
3293 echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302 then ac_cv_prog_egrep='grep -E'
3303 else ac_cv_prog_egrep='egrep'
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308 EGREP=$ac_cv_prog_egrep
3312 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3313 if test "${with_gnu_ld+set}" = set; then
3314 withval="$with_gnu_ld"
3315 test "$withval" = no || with_gnu_ld=yes
3320 if test "$GCC" = yes; then
3321 # Check if gcc -print-prog-name=ld gives a path.
3322 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3323 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3326 # gcc leaves a trailing carriage return which upsets mingw
3327 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3329 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3332 # Accept absolute paths.
3334 re_direlt='/[^/][^/]*/\.\./'
3335 # Canonicalize the pathname of ld
3336 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3337 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3338 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3340 test -z "$LD" && LD="$ac_prog"
3343 # If it fails, then pretend we aren't using GCC.
3347 # If it is relative, then search for the first ld in PATH.
3351 elif test "$with_gnu_ld" = yes; then
3352 echo "$as_me:$LINENO: checking for GNU ld" >&5
3353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3355 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3358 if test "${lt_cv_path_LD+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3361 if test -z "$LD"; then
3362 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3363 for ac_dir in $PATH; do
3365 test -z "$ac_dir" && ac_dir=.
3366 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3367 lt_cv_path_LD="$ac_dir/$ac_prog"
3368 # Check to see if the program is GNU ld. I'd rather use --version,
3369 # but apparently some GNU ld's only accept -v.
3370 # Break only if it was the GNU/non-GNU ld that we prefer.
3371 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3372 *GNU* | *'with BFD'*)
3373 test "$with_gnu_ld" != no && break
3376 test "$with_gnu_ld" != yes && break
3383 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3388 if test -n "$LD"; then
3389 echo "$as_me:$LINENO: result: $LD" >&5
3390 echo "${ECHO_T}$LD" >&6
3392 echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3397 { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3401 echo $ECHO_N "(cached) $ECHO_C" >&6
3403 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3404 case `$LD -v 2>&1 </dev/null` in
3405 *GNU* | *'with BFD'*)
3406 lt_cv_prog_gnu_ld=yes
3409 lt_cv_prog_gnu_ld=no
3413 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3414 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3415 with_gnu_ld=$lt_cv_prog_gnu_ld
3418 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3419 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3420 if test "${lt_cv_ld_reload_flag+set}" = set; then
3421 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 lt_cv_ld_reload_flag='-r'
3425 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3426 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3427 reload_flag=$lt_cv_ld_reload_flag
3428 case $reload_flag in
3430 *) reload_flag=" $reload_flag" ;;
3432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3434 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3435 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3436 if test "${lt_cv_path_NM+set}" = set; then
3437 echo $ECHO_N "(cached) $ECHO_C" >&6
3439 if test -n "$NM"; then
3440 # Let the user override the test.
3443 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3444 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3446 test -z "$ac_dir" && ac_dir=.
3447 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3448 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3449 # Check to see if the nm accepts a BSD-compat flag.
3450 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3451 # nm: unknown option "B" ignored
3452 # Tru64's nm complains that /dev/null is an invalid object file
3453 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3454 */dev/null* | *'Invalid file or object type'*)
3455 lt_cv_path_NM="$tmp_nm -B"
3459 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3461 lt_cv_path_NM="$tmp_nm -p"
3465 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3466 continue # so that we can try to find one that supports BSD flags
3473 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3476 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3477 echo "${ECHO_T}$lt_cv_path_NM" >&6
3480 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3481 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3483 if test "$LN_S" = "ln -s"; then
3484 echo "$as_me:$LINENO: result: yes" >&5
3485 echo "${ECHO_T}yes" >&6
3487 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3488 echo "${ECHO_T}no, using $LN_S" >&6
3491 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3492 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3493 if test "${lt_cv_deplibs_check_method+set}" = set; then
3494 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 lt_cv_file_magic_cmd='$MAGIC_CMD'
3497 lt_cv_file_magic_test_file=
3498 lt_cv_deplibs_check_method='unknown'
3499 # Need to set the preceding variable on all platforms that support
3500 # interlibrary dependencies.
3501 # 'none' -- dependencies not supported.
3502 # `unknown' -- same as none, but documents that we really don't know.
3503 # 'pass_all' -- all dependencies passed with no checks.
3504 # 'test_compile' -- check by making test program.
3505 # 'file_magic [[regex]]' -- check by looking for files in library path
3506 # which responds to the $file_magic_cmd with a given extended regex.
3507 # If you have `file' or equivalent on your system and you're not sure
3508 # whether `pass_all' will *always* work, you probably want this one.
3512 lt_cv_deplibs_check_method=pass_all
3516 lt_cv_deplibs_check_method=pass_all
3520 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3521 lt_cv_file_magic_cmd='/usr/bin/file -L'
3522 lt_cv_file_magic_test_file=/shlib/libc.so
3526 # func_win32_libid is a shell function defined in ltmain.sh
3527 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3528 lt_cv_file_magic_cmd='func_win32_libid'
3532 # Base MSYS/MinGW do not provide the 'file' command needed by
3533 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3534 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3535 lt_cv_file_magic_cmd='$OBJDUMP -f'
3538 darwin* | rhapsody*)
3539 lt_cv_deplibs_check_method=pass_all
3542 freebsd* | kfreebsd*-gnu)
3543 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3546 # Not sure whether the presence of OpenBSD here was a mistake.
3547 # Let's accept both of them until this is cleared up.
3548 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3549 lt_cv_file_magic_cmd=/usr/bin/file
3550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3554 lt_cv_deplibs_check_method=pass_all
3559 lt_cv_deplibs_check_method=pass_all
3562 hpux10.20* | hpux11*)
3563 lt_cv_file_magic_cmd=/usr/bin/file
3566 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3567 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3570 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]'
3571 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3574 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3575 lt_cv_file_magic_test_file=/usr/lib/libc.sl
3580 irix5* | irix6* | nonstopux*)
3582 *-32|*"-32 ") libmagic=32-bit;;
3583 *-n32|*"-n32 ") libmagic=N32;;
3584 *-64|*"-64 ") libmagic=64-bit;;
3585 *) libmagic=never-match;;
3587 lt_cv_deplibs_check_method=pass_all
3590 # This must be Linux ELF.
3592 lt_cv_deplibs_check_method=pass_all
3595 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
3596 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3604 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3605 lt_cv_file_magic_cmd=/usr/bin/file
3606 lt_cv_file_magic_test_file=/usr/lib/libnls.so
3610 lt_cv_deplibs_check_method=unknown
3614 lt_cv_file_magic_cmd=/usr/bin/file
3615 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3616 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3617 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3619 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3623 osf3* | osf4* | osf5*)
3624 lt_cv_deplibs_check_method=pass_all
3628 lt_cv_deplibs_check_method=pass_all
3632 lt_cv_deplibs_check_method=pass_all
3635 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3636 case $host_vendor in
3638 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]'
3639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3642 lt_cv_deplibs_check_method=pass_all
3645 lt_cv_file_magic_cmd='/bin/file'
3646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3649 lt_cv_file_magic_cmd='/bin/file'
3650 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3651 lt_cv_file_magic_test_file=/lib/libc.so
3654 lt_cv_deplibs_check_method=pass_all
3659 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3660 lt_cv_deplibs_check_method=pass_all
3665 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3666 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3667 file_magic_cmd=$lt_cv_file_magic_cmd
3668 deplibs_check_method=$lt_cv_deplibs_check_method
3669 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3674 # If no C compiler was specified, use CC.
3677 # Allow CC to be a program name with arguments.
3681 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3682 if test "${enable_libtool_lock+set}" = set; then
3683 enableval="$enable_libtool_lock"
3686 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3688 # Some flags need to be propagated to the compiler or linker for good
3692 # Find out which ABI we are using.
3693 echo 'int i;' > conftest.$ac_ext
3694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3695 (eval $ac_compile) 2>&5
3697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3698 (exit $ac_status); }; then
3699 case `/usr/bin/file conftest.$ac_objext` in
3711 # Find out which ABI we are using.
3712 echo '#line 3712 "configure"' > conftest.$ac_ext
3713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3714 (eval $ac_compile) 2>&5
3716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3717 (exit $ac_status); }; then
3718 if test "$lt_cv_prog_gnu_ld" = yes; then
3719 case `/usr/bin/file conftest.$ac_objext` in
3721 LD="${LD-ld} -melf32bsmip"
3724 LD="${LD-ld} -melf32bmipn32"
3727 LD="${LD-ld} -melf64bmip"
3731 case `/usr/bin/file conftest.$ac_objext` in
3747 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3748 # Find out which ABI we are using.
3749 echo 'int i;' > conftest.$ac_ext
3750 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3751 (eval $ac_compile) 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 case "`/usr/bin/file conftest.o`" in
3759 LD="${LD-ld} -m elf_i386"
3761 ppc64-*linux*|powerpc64-*linux*)
3762 LD="${LD-ld} -m elf32ppclinux"
3765 LD="${LD-ld} -m elf_s390"
3768 LD="${LD-ld} -m elf32_sparc"
3775 LD="${LD-ld} -m elf_x86_64"
3777 ppc*-*linux*|powerpc*-*linux*)
3778 LD="${LD-ld} -m elf64ppc"
3781 LD="${LD-ld} -m elf64_s390"
3784 LD="${LD-ld} -m elf64_sparc"
3794 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3795 SAVE_CFLAGS="$CFLAGS"
3796 CFLAGS="$CFLAGS -belf"
3797 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3798 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3799 if test "${lt_cv_cc_needs_belf+set}" = set; then
3800 echo $ECHO_N "(cached) $ECHO_C" >&6
3803 ac_cpp='$CPP $CPPFLAGS'
3804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3808 cat >conftest.$ac_ext <<_ACEOF
3811 cat confdefs.h >>conftest.$ac_ext
3812 cat >>conftest.$ac_ext <<_ACEOF
3813 /* end confdefs.h. */
3823 rm -f conftest.$ac_objext conftest$ac_exeext
3824 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3825 (eval $ac_link) 2>conftest.er1
3827 grep -v '^ *+' conftest.er1 >conftest.err
3829 cat conftest.err >&5
3830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3831 (exit $ac_status); } &&
3832 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3833 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3837 (exit $ac_status); }; } &&
3838 { ac_try='test -s conftest$ac_exeext'
3839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; }; then
3844 lt_cv_cc_needs_belf=yes
3846 echo "$as_me: failed program was:" >&5
3847 sed 's/^/| /' conftest.$ac_ext >&5
3849 lt_cv_cc_needs_belf=no
3851 rm -f conftest.err conftest.$ac_objext \
3852 conftest$ac_exeext conftest.$ac_ext
3854 ac_cpp='$CPP $CPPFLAGS'
3855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3860 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3861 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3862 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3863 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3864 CFLAGS="$SAVE_CFLAGS"
3870 need_locks="$enable_libtool_lock"
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3879 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3880 # On Suns, sometimes $CPP names a directory.
3881 if test -n "$CPP" && test -d "$CPP"; then
3884 if test -z "$CPP"; then
3885 if test "${ac_cv_prog_CPP+set}" = set; then
3886 echo $ECHO_N "(cached) $ECHO_C" >&6
3888 # Double quotes because CPP needs to be expanded
3889 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3892 for ac_c_preproc_warn_flag in '' yes
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3907 # include <limits.h>
3909 # include <assert.h>
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3916 grep -v '^ *+' conftest.er1 >conftest.err
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3930 if test -z "$ac_cpp_err"; then
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3936 # Broken: fails on valid input.
3939 rm -f conftest.err conftest.$ac_ext
3941 # OK, works on sane cases. Now check whether non-existent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <ac_nonexistent.h>
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3954 grep -v '^ *+' conftest.er1 >conftest.err
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3968 if test -z "$ac_cpp_err"; then
3969 # Broken: success on invalid input.
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3975 # Passes both tests.
3979 rm -f conftest.err conftest.$ac_ext
3982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983 rm -f conftest.err conftest.$ac_ext
3984 if $ac_preproc_ok; then
3996 echo "$as_me:$LINENO: result: $CPP" >&5
3997 echo "${ECHO_T}$CPP" >&6
3999 for ac_c_preproc_warn_flag in '' yes
4001 # Use a header file that comes with gcc, so configuring glibc
4002 # with a fresh cross-compiler works.
4003 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4004 # <limits.h> exists even on freestanding compilers.
4005 # On the NeXT, cc -E runs the code through the compiler's parser,
4006 # not just through cpp. "Syntax error" is here to catch this case.
4007 cat >conftest.$ac_ext <<_ACEOF
4010 cat confdefs.h >>conftest.$ac_ext
4011 cat >>conftest.$ac_ext <<_ACEOF
4012 /* end confdefs.h. */
4014 # include <limits.h>
4016 # include <assert.h>
4020 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4021 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4023 grep -v '^ *+' conftest.er1 >conftest.err
4025 cat conftest.err >&5
4026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4027 (exit $ac_status); } >/dev/null; then
4028 if test -s conftest.err; then
4029 ac_cpp_err=$ac_c_preproc_warn_flag
4030 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4037 if test -z "$ac_cpp_err"; then
4040 echo "$as_me: failed program was:" >&5
4041 sed 's/^/| /' conftest.$ac_ext >&5
4043 # Broken: fails on valid input.
4046 rm -f conftest.err conftest.$ac_ext
4048 # OK, works on sane cases. Now check whether non-existent headers
4049 # can be detected and how.
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4058 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4059 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4061 grep -v '^ *+' conftest.er1 >conftest.err
4063 cat conftest.err >&5
4064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065 (exit $ac_status); } >/dev/null; then
4066 if test -s conftest.err; then
4067 ac_cpp_err=$ac_c_preproc_warn_flag
4068 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4075 if test -z "$ac_cpp_err"; then
4076 # Broken: success on invalid input.
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4082 # Passes both tests.
4086 rm -f conftest.err conftest.$ac_ext
4089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4090 rm -f conftest.err conftest.$ac_ext
4091 if $ac_preproc_ok; then
4094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4095 See \`config.log' for more details." >&5
4096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4097 See \`config.log' for more details." >&2;}
4098 { (exit 1); exit 1; }; }
4102 ac_cpp='$CPP $CPPFLAGS'
4103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4108 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4109 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4110 if test "${ac_cv_header_stdc+set}" = set; then
4111 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 cat >conftest.$ac_ext <<_ACEOF
4116 cat confdefs.h >>conftest.$ac_ext
4117 cat >>conftest.$ac_ext <<_ACEOF
4118 /* end confdefs.h. */
4132 rm -f conftest.$ac_objext
4133 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4134 (eval $ac_compile) 2>conftest.er1
4136 grep -v '^ *+' conftest.er1 >conftest.err
4138 cat conftest.err >&5
4139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4140 (exit $ac_status); } &&
4141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; } &&
4147 { ac_try='test -s conftest.$ac_objext'
4148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); }; }; then
4153 ac_cv_header_stdc=yes
4155 echo "$as_me: failed program was:" >&5
4156 sed 's/^/| /' conftest.$ac_ext >&5
4158 ac_cv_header_stdc=no
4160 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4162 if test $ac_cv_header_stdc = yes; then
4163 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4164 cat >conftest.$ac_ext <<_ACEOF
4167 cat confdefs.h >>conftest.$ac_ext
4168 cat >>conftest.$ac_ext <<_ACEOF
4169 /* end confdefs.h. */
4173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4174 $EGREP "memchr" >/dev/null 2>&1; then
4177 ac_cv_header_stdc=no
4183 if test $ac_cv_header_stdc = yes; then
4184 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4185 cat >conftest.$ac_ext <<_ACEOF
4188 cat confdefs.h >>conftest.$ac_ext
4189 cat >>conftest.$ac_ext <<_ACEOF
4190 /* end confdefs.h. */
4194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4195 $EGREP "free" >/dev/null 2>&1; then
4198 ac_cv_header_stdc=no
4204 if test $ac_cv_header_stdc = yes; then
4205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4206 if test "$cross_compiling" = yes; then
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4216 #if ((' ' & 0x0FF) == 0x020)
4217 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4218 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4220 # define ISLOWER(c) \
4221 (('a' <= (c) && (c) <= 'i') \
4222 || ('j' <= (c) && (c) <= 'r') \
4223 || ('s' <= (c) && (c) <= 'z'))
4224 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4227 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4232 for (i = 0; i < 256; i++)
4233 if (XOR (islower (i), ISLOWER (i))
4234 || toupper (i) != TOUPPER (i))
4239 rm -f conftest$ac_exeext
4240 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4241 (eval $ac_link) 2>&5
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); }; }; then
4252 echo "$as_me: program exited with status $ac_status" >&5
4253 echo "$as_me: failed program was:" >&5
4254 sed 's/^/| /' conftest.$ac_ext >&5
4257 ac_cv_header_stdc=no
4259 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4263 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4264 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4265 if test $ac_cv_header_stdc = yes; then
4267 cat >>confdefs.h <<\_ACEOF
4268 #define STDC_HEADERS 1
4273 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287 echo "$as_me:$LINENO: checking for $ac_header" >&5
4288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4289 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4290 echo $ECHO_N "(cached) $ECHO_C" >&6
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4300 #include <$ac_header>
4302 rm -f conftest.$ac_objext
4303 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4304 (eval $ac_compile) 2>conftest.er1
4306 grep -v '^ *+' conftest.er1 >conftest.err
4308 cat conftest.err >&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); } &&
4311 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4316 (exit $ac_status); }; } &&
4317 { ac_try='test -s conftest.$ac_objext'
4318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 eval "$as_ac_Header=yes"
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4328 eval "$as_ac_Header=no"
4330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4332 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4333 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4334 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4335 cat >>confdefs.h <<_ACEOF
4336 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4345 for ac_header in dlfcn.h
4347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4349 echo "$as_me:$LINENO: checking for $ac_header" >&5
4350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4351 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4352 echo $ECHO_N "(cached) $ECHO_C" >&6
4354 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4355 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4357 # Is the header compilable?
4358 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4359 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4360 cat >conftest.$ac_ext <<_ACEOF
4363 cat confdefs.h >>conftest.$ac_ext
4364 cat >>conftest.$ac_ext <<_ACEOF
4365 /* end confdefs.h. */
4366 $ac_includes_default
4367 #include <$ac_header>
4369 rm -f conftest.$ac_objext
4370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4371 (eval $ac_compile) 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } &&
4378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4383 (exit $ac_status); }; } &&
4384 { ac_try='test -s conftest.$ac_objext'
4385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); }; }; then
4390 ac_header_compiler=yes
4392 echo "$as_me: failed program was:" >&5
4393 sed 's/^/| /' conftest.$ac_ext >&5
4395 ac_header_compiler=no
4397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4398 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4399 echo "${ECHO_T}$ac_header_compiler" >&6
4401 # Is the header present?
4402 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 #include <$ac_header>
4412 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4413 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4415 grep -v '^ *+' conftest.er1 >conftest.err
4417 cat conftest.err >&5
4418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4419 (exit $ac_status); } >/dev/null; then
4420 if test -s conftest.err; then
4421 ac_cpp_err=$ac_c_preproc_warn_flag
4422 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4429 if test -z "$ac_cpp_err"; then
4430 ac_header_preproc=yes
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_header_preproc=no
4437 rm -f conftest.err conftest.$ac_ext
4438 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4439 echo "${ECHO_T}$ac_header_preproc" >&6
4441 # So? What about this header?
4442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4448 ac_header_preproc=yes
4451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4465 ## ----------------------------------------- ##
4466 ## Report this to martin.quinson@ens-lyon.fr ##
4467 ## ----------------------------------------- ##
4470 sed "s/^/$as_me: WARNING: /" >&2
4473 echo "$as_me:$LINENO: checking for $ac_header" >&5
4474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4475 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 eval "$as_ac_Header=\$ac_header_preproc"
4480 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4481 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4485 cat >>confdefs.h <<_ACEOF
4486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4494 ac_cpp='$CXXCPP $CPPFLAGS'
4495 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4496 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4497 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4498 if test -n "$ac_tool_prefix"; then
4499 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4501 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4502 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4503 echo "$as_me:$LINENO: checking for $ac_word" >&5
4504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4505 if test "${ac_cv_prog_CXX+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4508 if test -n "$CXX"; then
4509 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4515 test -z "$as_dir" && as_dir=.
4516 for ac_exec_ext in '' $ac_executable_extensions; do
4517 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4518 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4519 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4528 if test -n "$CXX"; then
4529 echo "$as_me:$LINENO: result: $CXX" >&5
4530 echo "${ECHO_T}$CXX" >&6
4532 echo "$as_me:$LINENO: result: no" >&5
4533 echo "${ECHO_T}no" >&6
4536 test -n "$CXX" && break
4539 if test -z "$CXX"; then
4541 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4543 # Extract the first word of "$ac_prog", so it can be a program name with args.
4544 set dummy $ac_prog; ac_word=$2
4545 echo "$as_me:$LINENO: checking for $ac_word" >&5
4546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4547 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4548 echo $ECHO_N "(cached) $ECHO_C" >&6
4550 if test -n "$ac_ct_CXX"; then
4551 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 test -z "$as_dir" && as_dir=.
4558 for ac_exec_ext in '' $ac_executable_extensions; do
4559 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4560 ac_cv_prog_ac_ct_CXX="$ac_prog"
4561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4569 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4570 if test -n "$ac_ct_CXX"; then
4571 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4572 echo "${ECHO_T}$ac_ct_CXX" >&6
4574 echo "$as_me:$LINENO: result: no" >&5
4575 echo "${ECHO_T}no" >&6
4578 test -n "$ac_ct_CXX" && break
4580 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4586 # Provide some information about the compiler.
4587 echo "$as_me:$LINENO:" \
4588 "checking for C++ compiler version" >&5
4589 ac_compiler=`set X $ac_compile; echo $2`
4590 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4591 (eval $ac_compiler --version </dev/null >&5) 2>&5
4593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4594 (exit $ac_status); }
4595 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4596 (eval $ac_compiler -v </dev/null >&5) 2>&5
4598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4599 (exit $ac_status); }
4600 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4601 (eval $ac_compiler -V </dev/null >&5) 2>&5
4603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604 (exit $ac_status); }
4606 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4607 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4608 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4609 echo $ECHO_N "(cached) $ECHO_C" >&6
4611 cat >conftest.$ac_ext <<_ACEOF
4614 cat confdefs.h >>conftest.$ac_ext
4615 cat >>conftest.$ac_ext <<_ACEOF
4616 /* end confdefs.h. */
4629 rm -f conftest.$ac_objext
4630 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4631 (eval $ac_compile) 2>conftest.er1
4633 grep -v '^ *+' conftest.er1 >conftest.err
4635 cat conftest.err >&5
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } &&
4638 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4643 (exit $ac_status); }; } &&
4644 { ac_try='test -s conftest.$ac_objext'
4645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649 (exit $ac_status); }; }; then
4652 echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4657 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4658 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4661 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4662 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4663 GXX=`test $ac_compiler_gnu = yes && echo yes`
4664 ac_test_CXXFLAGS=${CXXFLAGS+set}
4665 ac_save_CXXFLAGS=$CXXFLAGS
4667 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4668 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4669 if test "${ac_cv_prog_cxx_g+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 cat >conftest.$ac_ext <<_ACEOF
4675 cat confdefs.h >>conftest.$ac_ext
4676 cat >>conftest.$ac_ext <<_ACEOF
4677 /* end confdefs.h. */
4687 rm -f conftest.$ac_objext
4688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4689 (eval $ac_compile) 2>conftest.er1
4691 grep -v '^ *+' conftest.er1 >conftest.err
4693 cat conftest.err >&5
4694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695 (exit $ac_status); } &&
4696 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); }; } &&
4702 { ac_try='test -s conftest.$ac_objext'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; }; then
4708 ac_cv_prog_cxx_g=yes
4710 echo "$as_me: failed program was:" >&5
4711 sed 's/^/| /' conftest.$ac_ext >&5
4715 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4717 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4718 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4719 if test "$ac_test_CXXFLAGS" = set; then
4720 CXXFLAGS=$ac_save_CXXFLAGS
4721 elif test $ac_cv_prog_cxx_g = yes; then
4722 if test "$GXX" = yes; then
4728 if test "$GXX" = yes; then
4734 for ac_declaration in \
4736 'extern "C" void std::exit (int) throw (); using std::exit;' \
4737 'extern "C" void std::exit (int); using std::exit;' \
4738 'extern "C" void exit (int) throw ();' \
4739 'extern "C" void exit (int);' \
4742 cat >conftest.$ac_ext <<_ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4758 rm -f conftest.$ac_objext
4759 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4760 (eval $ac_compile) 2>conftest.er1
4762 grep -v '^ *+' conftest.er1 >conftest.err
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } &&
4767 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4772 (exit $ac_status); }; } &&
4773 { ac_try='test -s conftest.$ac_objext'
4774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); }; }; then
4781 echo "$as_me: failed program was:" >&5
4782 sed 's/^/| /' conftest.$ac_ext >&5
4786 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4787 cat >conftest.$ac_ext <<_ACEOF
4790 cat confdefs.h >>conftest.$ac_ext
4791 cat >>conftest.$ac_ext <<_ACEOF
4792 /* end confdefs.h. */
4802 rm -f conftest.$ac_objext
4803 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4804 (eval $ac_compile) 2>conftest.er1
4806 grep -v '^ *+' conftest.er1 >conftest.err
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } &&
4811 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4816 (exit $ac_status); }; } &&
4817 { ac_try='test -s conftest.$ac_objext'
4818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822 (exit $ac_status); }; }; then
4825 echo "$as_me: failed program was:" >&5
4826 sed 's/^/| /' conftest.$ac_ext >&5
4829 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4832 if test -n "$ac_declaration"; then
4833 echo '#ifdef __cplusplus' >>confdefs.h
4834 echo $ac_declaration >>confdefs.h
4835 echo '#endif' >>confdefs.h
4839 ac_cpp='$CXXCPP $CPPFLAGS'
4840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4844 depcc="$CXX" am_compiler_list=
4846 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4847 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4848 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4849 echo $ECHO_N "(cached) $ECHO_C" >&6
4851 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4852 # We make a subdir and do the tests there. Otherwise we can end up
4853 # making bogus files that we don't know about and never remove. For
4854 # instance it was reported that on HP-UX the gcc test will end up
4855 # making a dummy file named `D' -- because `-MD' means `put the output
4858 # Copy depcomp to subdir because otherwise we won't find it if we're
4859 # using a relative directory.
4860 cp "$am_depcomp" conftest.dir
4862 # We will build objects and dependencies in a subdirectory because
4863 # it helps to detect inapplicable dependency modes. For instance
4864 # both Tru64's cc and ICC support -MD to output dependencies as a
4865 # side effect of compilation, but ICC will put the dependencies in
4866 # the current directory while Tru64 will put them in the object
4870 am_cv_CXX_dependencies_compiler_type=none
4871 if test "$am_compiler_list" = ""; then
4872 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4874 for depmode in $am_compiler_list; do
4875 # Setup a source with many dependencies, because some compilers
4876 # like to wrap large dependency lists on column 80 (with \), and
4877 # we should not choose a depcomp mode which is confused by this.
4879 # We need to recreate these files for each test, as the compiler may
4880 # overwrite some of them when testing with obscure command lines.
4881 # This happens at least with the AIX C compiler.
4883 for i in 1 2 3 4 5 6; do
4884 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4885 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4886 # Solaris 8's {/usr,}/bin/sh.
4887 touch sub/conftst$i.h
4889 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4893 # after this tag, mechanisms are not by side-effect, so they'll
4894 # only be used when explicitly requested
4895 if test "x$enable_dependency_tracking" = xyes; then
4903 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4904 # mode. It turns out that the SunPro C++ compiler does not properly
4905 # handle `-M -o', and we need to detect this.
4906 if depmode=$depmode \
4907 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4908 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4909 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4910 >/dev/null 2>conftest.err &&
4911 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4912 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4913 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4914 # icc doesn't choke on unknown options, it will just issue warnings
4915 # or remarks (even with -Werror). So we grep stderr for any message
4916 # that says an option was ignored or not supported.
4917 # When given -MP, icc 7.0 and 7.1 complain thusly:
4918 # icc: Command line warning: ignoring option '-M'; no argument required
4919 # The diagnosis changed in icc 8.0:
4920 # icc: Command line remark: option '-MP' not supported
4921 if (grep 'ignoring option' conftest.err ||
4922 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4923 am_cv_CXX_dependencies_compiler_type=$depmode
4932 am_cv_CXX_dependencies_compiler_type=none
4936 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4937 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4938 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4943 test "x$enable_dependency_tracking" != xno \
4944 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4945 am__fastdepCXX_TRUE=
4946 am__fastdepCXX_FALSE='#'
4948 am__fastdepCXX_TRUE='#'
4949 am__fastdepCXX_FALSE=
4954 ac_cpp='$CXXCPP $CPPFLAGS'
4955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4958 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4959 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4960 if test -z "$CXXCPP"; then
4961 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4964 # Double quotes because CXXCPP needs to be expanded
4965 for CXXCPP in "$CXX -E" "/lib/cpp"
4968 for ac_cxx_preproc_warn_flag in '' yes
4970 # Use a header file that comes with gcc, so configuring glibc
4971 # with a fresh cross-compiler works.
4972 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4973 # <limits.h> exists even on freestanding compilers.
4974 # On the NeXT, cc -E runs the code through the compiler's parser,
4975 # not just through cpp. "Syntax error" is here to catch this case.
4976 cat >conftest.$ac_ext <<_ACEOF
4979 cat confdefs.h >>conftest.$ac_ext
4980 cat >>conftest.$ac_ext <<_ACEOF
4981 /* end confdefs.h. */
4983 # include <limits.h>
4985 # include <assert.h>
4989 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4990 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4992 grep -v '^ *+' conftest.er1 >conftest.err
4994 cat conftest.err >&5
4995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4996 (exit $ac_status); } >/dev/null; then
4997 if test -s conftest.err; then
4998 ac_cpp_err=$ac_cxx_preproc_warn_flag
4999 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5006 if test -z "$ac_cpp_err"; then
5009 echo "$as_me: failed program was:" >&5
5010 sed 's/^/| /' conftest.$ac_ext >&5
5012 # Broken: fails on valid input.
5015 rm -f conftest.err conftest.$ac_ext
5017 # OK, works on sane cases. Now check whether non-existent headers
5018 # can be detected and how.
5019 cat >conftest.$ac_ext <<_ACEOF
5022 cat confdefs.h >>conftest.$ac_ext
5023 cat >>conftest.$ac_ext <<_ACEOF
5024 /* end confdefs.h. */
5025 #include <ac_nonexistent.h>
5027 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5028 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null; then
5035 if test -s conftest.err; then
5036 ac_cpp_err=$ac_cxx_preproc_warn_flag
5037 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5044 if test -z "$ac_cpp_err"; then
5045 # Broken: success on invalid input.
5048 echo "$as_me: failed program was:" >&5
5049 sed 's/^/| /' conftest.$ac_ext >&5
5051 # Passes both tests.
5055 rm -f conftest.err conftest.$ac_ext
5058 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5059 rm -f conftest.err conftest.$ac_ext
5060 if $ac_preproc_ok; then
5065 ac_cv_prog_CXXCPP=$CXXCPP
5068 CXXCPP=$ac_cv_prog_CXXCPP
5070 ac_cv_prog_CXXCPP=$CXXCPP
5072 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5073 echo "${ECHO_T}$CXXCPP" >&6
5075 for ac_cxx_preproc_warn_flag in '' yes
5077 # Use a header file that comes with gcc, so configuring glibc
5078 # with a fresh cross-compiler works.
5079 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5080 # <limits.h> exists even on freestanding compilers.
5081 # On the NeXT, cc -E runs the code through the compiler's parser,
5082 # not just through cpp. "Syntax error" is here to catch this case.
5083 cat >conftest.$ac_ext <<_ACEOF
5086 cat confdefs.h >>conftest.$ac_ext
5087 cat >>conftest.$ac_ext <<_ACEOF
5088 /* end confdefs.h. */
5090 # include <limits.h>
5092 # include <assert.h>
5096 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5097 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5099 grep -v '^ *+' conftest.er1 >conftest.err
5101 cat conftest.err >&5
5102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5103 (exit $ac_status); } >/dev/null; then
5104 if test -s conftest.err; then
5105 ac_cpp_err=$ac_cxx_preproc_warn_flag
5106 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5113 if test -z "$ac_cpp_err"; then
5116 echo "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 # Broken: fails on valid input.
5122 rm -f conftest.err conftest.$ac_ext
5124 # OK, works on sane cases. Now check whether non-existent headers
5125 # can be detected and how.
5126 cat >conftest.$ac_ext <<_ACEOF
5129 cat confdefs.h >>conftest.$ac_ext
5130 cat >>conftest.$ac_ext <<_ACEOF
5131 /* end confdefs.h. */
5132 #include <ac_nonexistent.h>
5134 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5135 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5137 grep -v '^ *+' conftest.er1 >conftest.err
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } >/dev/null; then
5142 if test -s conftest.err; then
5143 ac_cpp_err=$ac_cxx_preproc_warn_flag
5144 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5151 if test -z "$ac_cpp_err"; then
5152 # Broken: success on invalid input.
5155 echo "$as_me: failed program was:" >&5
5156 sed 's/^/| /' conftest.$ac_ext >&5
5158 # Passes both tests.
5162 rm -f conftest.err conftest.$ac_ext
5165 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5166 rm -f conftest.err conftest.$ac_ext
5167 if $ac_preproc_ok; then
5170 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5171 See \`config.log' for more details." >&5
5172 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5173 See \`config.log' for more details." >&2;}
5174 { (exit 1); exit 1; }; }
5178 ac_cpp='$CXXCPP $CPPFLAGS'
5179 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5180 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5181 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5185 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5186 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5188 if test -n "$ac_tool_prefix"; then
5189 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5191 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5192 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5193 echo "$as_me:$LINENO: checking for $ac_word" >&5
5194 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5195 if test "${ac_cv_prog_F77+set}" = set; then
5196 echo $ECHO_N "(cached) $ECHO_C" >&6
5198 if test -n "$F77"; then
5199 ac_cv_prog_F77="$F77" # Let the user override the test.
5201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 test -z "$as_dir" && as_dir=.
5206 for ac_exec_ext in '' $ac_executable_extensions; do
5207 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5208 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5209 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5218 if test -n "$F77"; then
5219 echo "$as_me:$LINENO: result: $F77" >&5
5220 echo "${ECHO_T}$F77" >&6
5222 echo "$as_me:$LINENO: result: no" >&5
5223 echo "${ECHO_T}no" >&6
5226 test -n "$F77" && break
5229 if test -z "$F77"; then
5231 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5233 # Extract the first word of "$ac_prog", so it can be a program name with args.
5234 set dummy $ac_prog; ac_word=$2
5235 echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5237 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5238 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 if test -n "$ac_ct_F77"; then
5241 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5250 ac_cv_prog_ac_ct_F77="$ac_prog"
5251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5260 if test -n "$ac_ct_F77"; then
5261 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5262 echo "${ECHO_T}$ac_ct_F77" >&6
5264 echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6
5268 test -n "$ac_ct_F77" && break
5275 # Provide some information about the compiler.
5276 echo "$as_me:5276:" \
5277 "checking for Fortran 77 compiler version" >&5
5278 ac_compiler=`set X $ac_compile; echo $2`
5279 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5280 (eval $ac_compiler --version </dev/null >&5) 2>&5
5282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5283 (exit $ac_status); }
5284 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5285 (eval $ac_compiler -v </dev/null >&5) 2>&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); }
5289 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5290 (eval $ac_compiler -V </dev/null >&5) 2>&5
5292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5293 (exit $ac_status); }
5296 # If we don't use `.F' as extension, the preprocessor is not run on the
5297 # input file. (Note that this only needs to work for GNU compilers.)
5300 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5301 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5302 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5303 echo $ECHO_N "(cached) $ECHO_C" >&6
5305 cat >conftest.$ac_ext <<_ACEOF
5313 rm -f conftest.$ac_objext
5314 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5315 (eval $ac_compile) 2>conftest.er1
5317 grep -v '^ *+' conftest.er1 >conftest.err
5319 cat conftest.err >&5
5320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5321 (exit $ac_status); } &&
5322 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327 (exit $ac_status); }; } &&
5328 { ac_try='test -s conftest.$ac_objext'
5329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5333 (exit $ac_status); }; }; then
5336 echo "$as_me: failed program was:" >&5
5337 sed 's/^/| /' conftest.$ac_ext >&5
5341 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5342 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5345 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5346 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5348 ac_test_FFLAGS=${FFLAGS+set}
5349 ac_save_FFLAGS=$FFLAGS
5351 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5352 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5353 if test "${ac_cv_prog_f77_g+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5357 cat >conftest.$ac_ext <<_ACEOF
5362 rm -f conftest.$ac_objext
5363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5364 (eval $ac_compile) 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } &&
5371 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
5372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376 (exit $ac_status); }; } &&
5377 { ac_try='test -s conftest.$ac_objext'
5378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5382 (exit $ac_status); }; }; then
5383 ac_cv_prog_f77_g=yes
5385 echo "$as_me: failed program was:" >&5
5386 sed 's/^/| /' conftest.$ac_ext >&5
5390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5393 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5394 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5395 if test "$ac_test_FFLAGS" = set; then
5396 FFLAGS=$ac_save_FFLAGS
5397 elif test $ac_cv_prog_f77_g = yes; then
5398 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5404 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5411 G77=`test $ac_compiler_gnu = yes && echo yes`
5413 ac_cpp='$CPP $CPPFLAGS'
5414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5420 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5422 # find the maximum length of command line arguments
5423 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5424 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5425 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 # On DJGPP, this test can blow up pretty badly due to problems in libc
5434 # (any single argument exceeding 2000 bytes causes a buffer overrun
5435 # during glob expansion). Even if it were fixed, the result of this
5436 # check would be larger than it should be.
5437 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5441 # Under GNU Hurd, this test is not required because there is
5442 # no limit to the length of command line arguments.
5443 # Libtool will interpret -1 as no limit whatsoever
5444 lt_cv_sys_max_cmd_len=-1;
5448 # On Win9x/ME, this test blows up -- it succeeds, but takes
5449 # about 5 minutes as the teststring grows exponentially.
5450 # Worse, since 9x/ME are not pre-emptively multitasking,
5451 # you end up with a "frozen" computer, even though with patience
5452 # the test eventually succeeds (with a max line length of 256k).
5453 # Instead, let's just punt: use the minimum linelength reported by
5454 # all of the supported platforms: 8192 (on NT/2K/XP).
5455 lt_cv_sys_max_cmd_len=8192;
5459 # On AmigaOS with pdksh, this test takes hours, literally.
5460 # So we just punt and use a minimum line length of 8192.
5461 lt_cv_sys_max_cmd_len=8192;
5465 # If test is not a shell built-in, we'll probably end up computing a
5466 # maximum length that is only half of the actual maximum length, but
5468 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5469 = "XX$teststring") >/dev/null 2>&1 &&
5470 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5471 lt_cv_sys_max_cmd_len=$new_result &&
5472 test $i != 17 # 1/2 MB should be enough
5475 teststring=$teststring$teststring
5478 # Add a significant safety factor because C++ compilers can tack on massive
5479 # amounts of additional arguments before passing them to the linker.
5480 # It appears as though 1/2 is a usable value.
5481 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5487 if test -n $lt_cv_sys_max_cmd_len ; then
5488 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5489 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5491 echo "$as_me:$LINENO: result: none" >&5
5492 echo "${ECHO_T}none" >&6
5498 # Check for command to grab the raw symbol name followed by C symbol from nm.
5499 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5500 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5501 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5505 # These are sane defaults that work on at least a few old systems.
5506 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5508 # Character class describing NM global symbol codes.
5509 symcode='[BCDEGRST]'
5511 # Regexp to match symbols that can be accessed directly from C.
5512 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5514 # Transform the above into a raw symbol and a C symbol.
5515 symxfrm='\1 \2\3 \3'
5517 # Transform an extracted symbol line into a proper C declaration
5518 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5520 # Transform an extracted symbol line into symbol name and symbol address
5521 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'"
5523 # Define system-specific variables.
5528 cygwin* | mingw* | pw32*)
5529 symcode='[ABCDGISTW]'
5531 hpux*) # Its linker distinguishes data from code symbols
5532 if test "$host_cpu" = ia64; then
5533 symcode='[ABCDEGRST]'
5535 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5536 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'"
5539 symcode='[BCDEGRST]'
5542 symcode='[BCDEGQRST]'
5552 # Handle CRLF in mingw tool chain
5556 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5560 # If we're using GNU nm, then use its standard symbol codes.
5561 case `$NM -V 2>&1` in
5562 *GNU* | *'with BFD'*)
5563 symcode='[ABCDGIRSTW]' ;;
5566 # Try without a prefix undercore, then with it.
5567 for ac_symprfx in "" "_"; do
5569 # Write the raw and C identifiers.
5570 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5572 # Check to see that the pipe works correctly.
5576 cat > conftest.$ac_ext <<EOF
5581 void nm_test_func(){}
5585 int main(){nm_test_var='a';nm_test_func();return(0);}
5588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5589 (eval $ac_compile) 2>&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; then
5593 # Now try to grab the symbols.
5595 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5596 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } && test -s "$nlist"; then
5600 # Try sorting and uniquifying the output.
5601 if sort "$nlist" | uniq > "$nlist"T; then
5602 mv -f "$nlist"T "$nlist"
5607 # Make sure that we snagged all the symbols we need.
5608 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5609 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5610 cat <<EOF > conftest.$ac_ext
5616 # Now generate the symbol file.
5617 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5619 cat <<EOF >> conftest.$ac_ext
5620 #if defined (__STDC__) && __STDC__
5621 # define lt_ptr_t void *
5623 # define lt_ptr_t char *
5627 /* The mapping between symbol names and symbols. */
5632 lt_preloaded_symbols[] =
5635 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5636 cat <<\EOF >> conftest.$ac_ext
5644 # Now try linking the two files.
5645 mv conftest.$ac_objext conftstm.$ac_objext
5646 lt_save_LIBS="$LIBS"
5647 lt_save_CFLAGS="$CFLAGS"
5648 LIBS="conftstm.$ac_objext"
5649 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5650 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5651 (eval $ac_link) 2>&5
5653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5657 LIBS="$lt_save_LIBS"
5658 CFLAGS="$lt_save_CFLAGS"
5660 echo "cannot find nm_test_func in $nlist" >&5
5663 echo "cannot find nm_test_var in $nlist" >&5
5666 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5669 echo "$progname: failed program was:" >&5
5670 cat conftest.$ac_ext >&5
5672 rm -f conftest* conftst*
5674 # Do not use the global_symbol_pipe unless it works.
5675 if test "$pipe_works" = yes; then
5678 lt_cv_sys_global_symbol_pipe=
5684 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5685 lt_cv_sys_global_symbol_to_cdecl=
5687 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5688 echo "$as_me:$LINENO: result: failed" >&5
5689 echo "${ECHO_T}failed" >&6
5691 echo "$as_me:$LINENO: result: ok" >&5
5692 echo "${ECHO_T}ok" >&6
5695 echo "$as_me:$LINENO: checking for objdir" >&5
5696 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5697 if test "${lt_cv_objdir+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 rm -f .libs 2>/dev/null
5701 mkdir .libs 2>/dev/null
5702 if test -d .libs; then
5705 # MS-DOS does not allow filenames that begin with a dot.
5708 rmdir .libs 2>/dev/null
5710 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5711 echo "${ECHO_T}$lt_cv_objdir" >&6
5712 objdir=$lt_cv_objdir
5720 # AIX sometimes has problems with the GCC collect2 program. For some
5721 # reason, if we set the COLLECT_NAMES environment variable, the problems
5722 # vanish in a puff of smoke.
5723 if test "X${COLLECT_NAMES+set}" != Xset; then
5725 export COLLECT_NAMES
5730 # Sed substitution that helps us do robust quoting. It backslashifies
5731 # metacharacters that are still active within double-quoted strings.
5732 Xsed='sed -e s/^X//'
5733 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5735 # Same as above, but do not quote variable references.
5736 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5738 # Sed substitution to delay expansion of an escaped shell variable in a
5739 # double_quote_subst'ed string.
5740 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5742 # Sed substitution to avoid accidental globbing in evaled expressions
5743 no_glob_subst='s/\*/\\\*/g'
5749 default_ofile=libtool
5750 can_build_shared=yes
5752 # All known linkers require a `.a' archive for static linking (except M$VC,
5753 # which needs '.lib').
5755 ltmain="$ac_aux_dir/ltmain.sh"
5756 ofile="$default_ofile"
5757 with_gnu_ld="$lt_cv_prog_gnu_ld"
5759 if test -n "$ac_tool_prefix"; then
5760 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5761 set dummy ${ac_tool_prefix}ar; ac_word=$2
5762 echo "$as_me:$LINENO: checking for $ac_word" >&5
5763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5764 if test "${ac_cv_prog_AR+set}" = set; then
5765 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 if test -n "$AR"; then
5768 ac_cv_prog_AR="$AR" # Let the user override the test.
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5774 test -z "$as_dir" && as_dir=.
5775 for ac_exec_ext in '' $ac_executable_extensions; do
5776 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5777 ac_cv_prog_AR="${ac_tool_prefix}ar"
5778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 if test -n "$AR"; then
5788 echo "$as_me:$LINENO: result: $AR" >&5
5789 echo "${ECHO_T}$AR" >&6
5791 echo "$as_me:$LINENO: result: no" >&5
5792 echo "${ECHO_T}no" >&6
5796 if test -z "$ac_cv_prog_AR"; then
5798 # Extract the first word of "ar", so it can be a program name with args.
5799 set dummy ar; ac_word=$2
5800 echo "$as_me:$LINENO: checking for $ac_word" >&5
5801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5802 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5805 if test -n "$ac_ct_AR"; then
5806 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 test -z "$as_dir" && as_dir=.
5813 for ac_exec_ext in '' $ac_executable_extensions; do
5814 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5815 ac_cv_prog_ac_ct_AR="ar"
5816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5822 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5825 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5826 if test -n "$ac_ct_AR"; then
5827 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5828 echo "${ECHO_T}$ac_ct_AR" >&6
5830 echo "$as_me:$LINENO: result: no" >&5
5831 echo "${ECHO_T}no" >&6
5839 if test -n "$ac_tool_prefix"; then
5840 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5841 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5842 echo "$as_me:$LINENO: checking for $ac_word" >&5
5843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5844 if test "${ac_cv_prog_RANLIB+set}" = set; then
5845 echo $ECHO_N "(cached) $ECHO_C" >&6
5847 if test -n "$RANLIB"; then
5848 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5854 test -z "$as_dir" && as_dir=.
5855 for ac_exec_ext in '' $ac_executable_extensions; do
5856 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5857 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5866 RANLIB=$ac_cv_prog_RANLIB
5867 if test -n "$RANLIB"; then
5868 echo "$as_me:$LINENO: result: $RANLIB" >&5
5869 echo "${ECHO_T}$RANLIB" >&6
5871 echo "$as_me:$LINENO: result: no" >&5
5872 echo "${ECHO_T}no" >&6
5876 if test -z "$ac_cv_prog_RANLIB"; then
5877 ac_ct_RANLIB=$RANLIB
5878 # Extract the first word of "ranlib", so it can be a program name with args.
5879 set dummy ranlib; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 if test -n "$ac_ct_RANLIB"; then
5886 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5892 test -z "$as_dir" && as_dir=.
5893 for ac_exec_ext in '' $ac_executable_extensions; do
5894 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895 ac_cv_prog_ac_ct_RANLIB="ranlib"
5896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5902 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5905 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5906 if test -n "$ac_ct_RANLIB"; then
5907 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5908 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5910 echo "$as_me:$LINENO: result: no" >&5
5911 echo "${ECHO_T}no" >&6
5914 RANLIB=$ac_ct_RANLIB
5916 RANLIB="$ac_cv_prog_RANLIB"
5919 if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}strip; ac_word=$2
5922 echo "$as_me:$LINENO: checking for $ac_word" >&5
5923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5924 if test "${ac_cv_prog_STRIP+set}" = set; then
5925 echo $ECHO_N "(cached) $ECHO_C" >&6
5927 if test -n "$STRIP"; then
5928 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5938 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946 STRIP=$ac_cv_prog_STRIP
5947 if test -n "$STRIP"; then
5948 echo "$as_me:$LINENO: result: $STRIP" >&5
5949 echo "${ECHO_T}$STRIP" >&6
5951 echo "$as_me:$LINENO: result: no" >&5
5952 echo "${ECHO_T}no" >&6
5956 if test -z "$ac_cv_prog_STRIP"; then
5958 # Extract the first word of "strip", so it can be a program name with args.
5959 set dummy strip; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5963 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 if test -n "$ac_ct_STRIP"; then
5966 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 test -z "$as_dir" && as_dir=.
5973 for ac_exec_ext in '' $ac_executable_extensions; do
5974 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975 ac_cv_prog_ac_ct_STRIP="strip"
5976 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5982 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5985 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5986 if test -n "$ac_ct_STRIP"; then
5987 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5988 echo "${ECHO_T}$ac_ct_STRIP" >&6
5990 echo "$as_me:$LINENO: result: no" >&5
5991 echo "${ECHO_T}no" >&6
5996 STRIP="$ac_cv_prog_STRIP"
6001 old_CFLAGS="$CFLAGS"
6003 # Set sane defaults for various variables
6004 test -z "$AR" && AR=ar
6005 test -z "$AR_FLAGS" && AR_FLAGS=cru
6006 test -z "$AS" && AS=as
6007 test -z "$CC" && CC=cc
6008 test -z "$LTCC" && LTCC=$CC
6009 test -z "$DLLTOOL" && DLLTOOL=dlltool
6010 test -z "$LD" && LD=ld
6011 test -z "$LN_S" && LN_S="ln -s"
6012 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6013 test -z "$NM" && NM=nm
6014 test -z "$SED" && SED=sed
6015 test -z "$OBJDUMP" && OBJDUMP=objdump
6016 test -z "$RANLIB" && RANLIB=:
6017 test -z "$STRIP" && STRIP=:
6018 test -z "$ac_objext" && ac_objext=o
6020 # Determine commands to create old-style static archives.
6021 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6022 old_postinstall_cmds='chmod 644 $oldlib'
6023 old_postuninstall_cmds=
6025 if test -n "$RANLIB"; then
6028 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6031 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6034 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6037 # Only perform the check for file, if the check method requires it
6038 case $deplibs_check_method in
6040 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6041 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6042 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6043 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6044 echo $ECHO_N "(cached) $ECHO_C" >&6
6048 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6051 lt_save_MAGIC_CMD="$MAGIC_CMD"
6052 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6054 for ac_dir in $ac_dummy; do
6056 test -z "$ac_dir" && ac_dir=.
6057 if test -f $ac_dir/${ac_tool_prefix}file; then
6058 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6059 if test -n "$file_magic_test_file"; then
6060 case $deplibs_check_method in
6062 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6064 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6065 $EGREP "$file_magic_regex" > /dev/null; then
6070 *** Warning: the command libtool uses to detect shared libraries,
6071 *** $file_magic_cmd, produces output that libtool cannot recognize.
6072 *** The result is that libtool may fail to recognize shared libraries
6073 *** as such. This will affect the creation of libtool libraries that
6074 *** depend on shared libraries, but programs linked with such libtool
6075 *** libraries will work regardless of this problem. Nevertheless, you
6076 *** may want to report the problem to your system manager and/or to
6077 *** bug-libtool@gnu.org
6087 MAGIC_CMD="$lt_save_MAGIC_CMD"
6092 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6093 if test -n "$MAGIC_CMD"; then
6094 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6095 echo "${ECHO_T}$MAGIC_CMD" >&6
6097 echo "$as_me:$LINENO: result: no" >&5
6098 echo "${ECHO_T}no" >&6
6101 if test -z "$lt_cv_path_MAGIC_CMD"; then
6102 if test -n "$ac_tool_prefix"; then
6103 echo "$as_me:$LINENO: checking for file" >&5
6104 echo $ECHO_N "checking for file... $ECHO_C" >&6
6105 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6106 echo $ECHO_N "(cached) $ECHO_C" >&6
6110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6113 lt_save_MAGIC_CMD="$MAGIC_CMD"
6114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6116 for ac_dir in $ac_dummy; do
6118 test -z "$ac_dir" && ac_dir=.
6119 if test -f $ac_dir/file; then
6120 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6121 if test -n "$file_magic_test_file"; then
6122 case $deplibs_check_method in
6124 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6127 $EGREP "$file_magic_regex" > /dev/null; then
6132 *** Warning: the command libtool uses to detect shared libraries,
6133 *** $file_magic_cmd, produces output that libtool cannot recognize.
6134 *** The result is that libtool may fail to recognize shared libraries
6135 *** as such. This will affect the creation of libtool libraries that
6136 *** depend on shared libraries, but programs linked with such libtool
6137 *** libraries will work regardless of this problem. Nevertheless, you
6138 *** may want to report the problem to your system manager and/or to
6139 *** bug-libtool@gnu.org
6149 MAGIC_CMD="$lt_save_MAGIC_CMD"
6154 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6155 if test -n "$MAGIC_CMD"; then
6156 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6157 echo "${ECHO_T}$MAGIC_CMD" >&6
6159 echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6175 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6176 if test "${enable_libtool_lock+set}" = set; then
6177 enableval="$enable_libtool_lock"
6180 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6183 # Check whether --with-pic or --without-pic was given.
6184 if test "${with_pic+set}" = set; then
6190 test -z "$pic_mode" && pic_mode=default
6192 # Use C for the default configuration in the libtool script
6196 ac_cpp='$CPP $CPPFLAGS'
6197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6202 # Source file extension for C test sources.
6205 # Object file extension for compiled C test sources.
6209 # Code to be used in simple compile tests
6210 lt_simple_compile_test_code="int some_variable = 0;\n"
6212 # Code to be used in simple link tests
6213 lt_simple_link_test_code='int main(){return(0);}\n'
6216 # If no C compiler was specified, use CC.
6219 # Allow CC to be a program name with arguments.
6224 # Check for any special shared library compilation flags.
6227 if test "$GCC" = no; then
6230 lt_prog_cc_shlib='-belf'
6234 if test -n "$lt_prog_cc_shlib"; then
6235 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6236 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6237 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
6239 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6240 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6241 lt_cv_prog_cc_can_build_shared=no
6247 # Check to make sure the static flag actually works.
6249 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6250 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6251 if test "${lt_prog_compiler_static_works+set}" = set; then
6252 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 lt_prog_compiler_static_works=no
6255 save_LDFLAGS="$LDFLAGS"
6256 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6257 printf "$lt_simple_link_test_code" > conftest.$ac_ext
6258 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6259 # The compiler can only warn and ignore the option if not recognized
6260 # So say no if there are warnings
6261 if test -s conftest.err; then
6262 # Append any errors to the config.log.
6263 cat conftest.err 1>&5
6265 lt_prog_compiler_static_works=yes
6269 LDFLAGS="$save_LDFLAGS"
6272 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6273 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6275 if test x"$lt_prog_compiler_static_works" = xyes; then
6278 lt_prog_compiler_static=
6284 lt_prog_compiler_no_builtin_flag=
6286 if test "$GCC" = yes; then
6287 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6290 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6291 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6292 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 lt_cv_prog_compiler_rtti_exceptions=no
6296 ac_outfile=conftest.$ac_objext
6297 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6298 lt_compiler_flag="-fno-rtti -fno-exceptions"
6299 # Insert the option either (1) after the last *FLAGS variable, or
6300 # (2) before a word containing "conftest.", or (3) at the end.
6301 # Note that $ac_compile itself does not contain backslashes and begins
6302 # with a dollar sign (not a hyphen), so the echo should work correctly.
6303 # The option is referenced via a variable to avoid confusing sed.
6304 lt_compile=`echo "$ac_compile" | $SED \
6305 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6307 -e 's:$: $lt_compiler_flag:'`
6308 (eval echo "\"\$as_me:6308: $lt_compile\"" >&5)
6309 (eval "$lt_compile" 2>conftest.err)
6311 cat conftest.err >&5
6312 echo "$as_me:6312: \$? = $ac_status" >&5
6313 if (exit $ac_status) && test -s "$ac_outfile"; then
6314 # The compiler can only warn and ignore the option if not recognized
6315 # So say no if there are warnings
6316 if test ! -s conftest.err; then
6317 lt_cv_prog_compiler_rtti_exceptions=yes
6323 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6324 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6326 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6327 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6334 lt_prog_compiler_wl=
6335 lt_prog_compiler_pic=
6336 lt_prog_compiler_static=
6338 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6339 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6341 if test "$GCC" = yes; then
6342 lt_prog_compiler_wl='-Wl,'
6343 lt_prog_compiler_static='-static'
6347 # All AIX code is PIC.
6348 if test "$host_cpu" = ia64; then
6349 # AIX 5 now supports IA64 processor
6350 lt_prog_compiler_static='-Bstatic'
6355 # FIXME: we need at least 68020 code to build shared libraries, but
6356 # adding the `-m68020' flag to GCC prevents building anything better,
6358 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6361 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6362 # PIC is the default for these OSes.
6365 mingw* | pw32* | os2*)
6366 # This hack is so that the source file can tell whether it is being
6367 # built for inclusion in a dll (and should export symbols for example).
6368 lt_prog_compiler_pic='-DDLL_EXPORT'
6371 darwin* | rhapsody*)
6372 # PIC is the default on this platform
6373 # Common symbols not allowed in MH_DYLIB files
6374 lt_prog_compiler_pic='-fno-common'
6378 # Just because we use GCC doesn't mean we suddenly get shared libraries
6379 # on systems that don't support them.
6380 lt_prog_compiler_can_build_shared=no
6385 if test -d /usr/nec; then
6386 lt_prog_compiler_pic=-Kconform_pic
6391 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6398 lt_prog_compiler_pic='-fPIC'
6404 lt_prog_compiler_pic='-fPIC'
6408 # PORTME Check for flag to pass linker flags through the system compiler.
6411 lt_prog_compiler_wl='-Wl,'
6412 if test "$host_cpu" = ia64; then
6413 # AIX 5 now supports IA64 processor
6414 lt_prog_compiler_static='-Bstatic'
6416 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6420 mingw* | pw32* | os2*)
6421 # This hack is so that the source file can tell whether it is being
6422 # built for inclusion in a dll (and should export symbols for example).
6423 lt_prog_compiler_pic='-DDLL_EXPORT'
6426 hpux9* | hpux10* | hpux11*)
6427 lt_prog_compiler_wl='-Wl,'
6428 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6435 lt_prog_compiler_pic='+Z'
6438 # Is there a better lt_prog_compiler_static that works with the bundled CC?
6439 lt_prog_compiler_static='${wl}-a ${wl}archive'
6442 irix5* | irix6* | nonstopux*)
6443 lt_prog_compiler_wl='-Wl,'
6444 # PIC (with -KPIC) is the default.
6445 lt_prog_compiler_static='-non_shared'
6449 lt_prog_compiler_pic='-KPIC'
6450 lt_prog_compiler_static='-Bstatic'
6456 lt_prog_compiler_wl='-Wl,'
6457 lt_prog_compiler_pic='-KPIC'
6458 lt_prog_compiler_static='-static'
6461 lt_prog_compiler_wl='-Wl,'
6462 # All Alpha code is PIC.
6463 lt_prog_compiler_static='-non_shared'
6468 osf3* | osf4* | osf5*)
6469 lt_prog_compiler_wl='-Wl,'
6470 # All OSF/1 code is PIC.
6471 lt_prog_compiler_static='-non_shared'
6475 lt_prog_compiler_pic='-Kpic'
6476 lt_prog_compiler_static='-dn'
6480 lt_prog_compiler_wl='-Wl,'
6481 lt_prog_compiler_pic='-KPIC'
6482 lt_prog_compiler_static='-Bstatic'
6486 lt_prog_compiler_wl='-Qoption ld '
6487 lt_prog_compiler_pic='-PIC'
6488 lt_prog_compiler_static='-Bstatic'
6491 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6492 lt_prog_compiler_wl='-Wl,'
6493 lt_prog_compiler_pic='-KPIC'
6494 lt_prog_compiler_static='-Bstatic'
6498 if test -d /usr/nec ;then
6499 lt_prog_compiler_pic='-Kconform_pic'
6500 lt_prog_compiler_static='-Bstatic'
6505 lt_prog_compiler_pic='-pic'
6506 lt_prog_compiler_static='-Bstatic'
6510 lt_prog_compiler_can_build_shared=no
6515 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6516 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6519 # Check to make sure the PIC flag actually works.
6521 if test -n "$lt_prog_compiler_pic"; then
6523 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6524 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6525 if test "${lt_prog_compiler_pic_works+set}" = set; then
6526 echo $ECHO_N "(cached) $ECHO_C" >&6
6528 lt_prog_compiler_pic_works=no
6529 ac_outfile=conftest.$ac_objext
6530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6531 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6532 # Insert the option either (1) after the last *FLAGS variable, or
6533 # (2) before a word containing "conftest.", or (3) at the end.
6534 # Note that $ac_compile itself does not contain backslashes and begins
6535 # with a dollar sign (not a hyphen), so the echo should work correctly.
6536 # The option is referenced via a variable to avoid confusing sed.
6537 lt_compile=`echo "$ac_compile" | $SED \
6538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6540 -e 's:$: $lt_compiler_flag:'`
6541 (eval echo "\"\$as_me:6541: $lt_compile\"" >&5)
6542 (eval "$lt_compile" 2>conftest.err)
6544 cat conftest.err >&5
6545 echo "$as_me:6545: \$? = $ac_status" >&5
6546 if (exit $ac_status) && test -s "$ac_outfile"; then
6547 # The compiler can only warn and ignore the option if not recognized
6548 # So say no if there are warnings
6549 if test ! -s conftest.err; then
6550 lt_prog_compiler_pic_works=yes
6556 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6557 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6559 if test x"$lt_prog_compiler_pic_works" = xyes; then
6560 case $lt_prog_compiler_pic in
6562 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6565 lt_prog_compiler_pic=
6566 lt_prog_compiler_can_build_shared=no
6571 # For platforms which do not support PIC, -DPIC is meaningless:
6573 lt_prog_compiler_pic=
6576 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6580 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6581 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6582 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 lt_cv_prog_compiler_c_o=no
6586 $rm -r conftest 2>/dev/null
6590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6592 lt_compiler_flag="-o out/conftest2.$ac_objext"
6593 # Insert the option either (1) after the last *FLAGS variable, or
6594 # (2) before a word containing "conftest.", or (3) at the end.
6595 # Note that $ac_compile itself does not contain backslashes and begins
6596 # with a dollar sign (not a hyphen), so the echo should work correctly.
6597 lt_compile=`echo "$ac_compile" | $SED \
6598 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6600 -e 's:$: $lt_compiler_flag:'`
6601 (eval echo "\"\$as_me:6601: $lt_compile\"" >&5)
6602 (eval "$lt_compile" 2>out/conftest.err)
6604 cat out/conftest.err >&5
6605 echo "$as_me:6605: \$? = $ac_status" >&5
6606 if (exit $ac_status) && test -s out/conftest2.$ac_objext
6608 # The compiler can only warn and ignore the option if not recognized
6609 # So say no if there are warnings
6610 if test ! -s out/conftest.err; then
6611 lt_cv_prog_compiler_c_o=yes
6616 # SGI C++ compiler will create directory out/ii_files/ for
6617 # template instantiation
6618 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6619 $rm out/* && rmdir out
6625 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6626 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6629 hard_links="nottested"
6630 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6631 # do not overwrite the value of need_locks provided by the user
6632 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6633 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6636 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6638 ln conftest.a conftest.b 2>&5 || hard_links=no
6639 ln conftest.a conftest.b 2>/dev/null && hard_links=no
6640 echo "$as_me:$LINENO: result: $hard_links" >&5
6641 echo "${ECHO_T}$hard_links" >&6
6642 if test "$hard_links" = no; then
6643 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6644 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6651 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6652 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6655 allow_undefined_flag=
6656 enable_shared_with_static_runtimes=no
6658 archive_expsym_cmds=
6659 old_archive_From_new_cmds=
6660 old_archive_from_expsyms_cmds=
6661 export_dynamic_flag_spec=
6662 whole_archive_flag_spec=
6663 thread_safe_flag_spec=
6664 hardcode_libdir_flag_spec=
6665 hardcode_libdir_flag_spec_ld=
6666 hardcode_libdir_separator=
6669 hardcode_shlibpath_var=unsupported
6670 link_all_deplibs=unknown
6671 hardcode_automatic=no
6674 always_export_symbols=no
6675 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6676 # include_expsyms should be a list of space-separated symbols to be *always*
6677 # included in the symbol list
6679 # exclude_expsyms can be an extended regexp of symbols to exclude
6680 # it will be wrapped by ` (' and `)$', so one must not match beginning or
6681 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6682 # as well as any symbol that contains `d'.
6683 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6684 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6685 # platforms (ab)use it in PIC code, but their linkers get confused if
6686 # the symbol is explicitly referenced. Since portable code cannot
6687 # rely on this symbol name, it's probably fine to never include it in
6688 # preloaded symbol tables.
6689 extract_expsyms_cmds=
6692 cygwin* | mingw* | pw32*)
6693 # FIXME: the MSVC++ port hasn't been tested in a loooong time
6694 # When not using gcc, we currently assume that we are using
6695 # Microsoft Visual C++.
6696 if test "$GCC" != yes; then
6706 if test "$with_gnu_ld" = yes; then
6707 # If archive_cmds runs LD, not CC, wlarc should be empty
6710 # See if GNU ld supports shared libraries.
6712 aix3* | aix4* | aix5*)
6713 # On AIX/PPC, the GNU linker is very broken
6714 if test "$host_cpu" != ia64; then
6718 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6719 *** to be unable to reliably create shared libraries on AIX.
6720 *** Therefore, libtool is disabling shared libraries support. If you
6721 *** really care for shared libraries, you may want to modify your PATH
6722 *** so that a non-GNU linker is found, and then restart.
6729 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)'
6730 hardcode_libdir_flag_spec='-L$libdir'
6731 hardcode_minus_L=yes
6733 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6734 # that the semantics of dynamic libraries on AmigaOS, at least up
6735 # to version 4, is to share data among multiple programs linked
6736 # with the same dynamic library. Since this doesn't match the
6737 # behavior of shared libraries on other platforms, we can't use
6743 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6744 allow_undefined_flag=unsupported
6745 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6746 # support --undefined. This deserves some investigation. FIXME
6747 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6753 cygwin* | mingw* | pw32*)
6754 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6755 # as there is no search path for DLLs.
6756 hardcode_libdir_flag_spec='-L$libdir'
6757 allow_undefined_flag=unsupported
6758 always_export_symbols=no
6759 enable_shared_with_static_runtimes=yes
6760 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6762 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6763 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6764 # If the export-symbols file already is a .def file (1st line
6765 # is EXPORTS), use it as is; otherwise, prepend...
6766 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6767 cp $export_symbols $output_objdir/$soname.def;
6769 echo EXPORTS > $output_objdir/$soname.def;
6770 cat $export_symbols >> $output_objdir/$soname.def;
6772 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6778 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6780 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6789 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6793 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6794 *** create shared libraries on Solaris systems. Therefore, libtool
6795 *** is disabling shared libraries support. We urge you to upgrade GNU
6796 *** binutils to release 2.9.1 or newer. Another option is to modify
6797 *** your PATH or compiler configuration so that the native linker is
6798 *** used, and then restart.
6801 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6802 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6803 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6810 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6813 hardcode_shlibpath_var=no
6817 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6818 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6819 archive_cmds="$tmp_archive_cmds"
6820 supports_anon_versioning=no
6821 case `$LD -v 2>/dev/null` in
6822 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6823 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6824 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6825 *\ 2.11.*) ;; # other 2.11 versions
6826 *) supports_anon_versioning=yes ;;
6828 if test $supports_anon_versioning = yes; then
6829 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6830 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6831 $echo "local: *; };" >> $output_objdir/$libname.ver~
6832 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6834 archive_expsym_cmds="$tmp_archive_cmds"
6843 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6845 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6852 if test "$ld_shlibs" = yes; then
6853 runpath_var=LD_RUN_PATH
6854 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6855 export_dynamic_flag_spec='${wl}--export-dynamic'
6856 # ancient GNU ld didn't support --whole-archive et. al.
6857 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6858 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6860 whole_archive_flag_spec=
6864 # PORTME fill in a description of your system's linker (not GNU ld)
6867 allow_undefined_flag=unsupported
6868 always_export_symbols=yes
6869 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'
6870 # Note: this linker hardcodes the directories in LIBPATH if there
6871 # are no directories specified by -L.
6872 hardcode_minus_L=yes
6873 if test "$GCC" = yes && test -z "$link_static_flag"; then
6874 # Neither direct hardcoding nor static linking is supported with a
6876 hardcode_direct=unsupported
6881 if test "$host_cpu" = ia64; then
6882 # On IA64, the linker does run time linking by default, so we don't
6883 # have to do anything special.
6884 aix_use_runtimelinking=no
6885 exp_sym_flag='-Bexport'
6888 # If we're using GNU nm, then we don't want the "-C" option.
6889 # -C means demangle to AIX nm, but means don't demangle with GNU nm
6890 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6891 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'
6893 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'
6895 aix_use_runtimelinking=no
6897 # Test if we are trying to use run time linking or normal
6898 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6899 # need to do runtime linking.
6900 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6901 for ld_flag in $LDFLAGS; do
6902 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6903 aix_use_runtimelinking=yes
6909 exp_sym_flag='-bexport'
6910 no_entry_flag='-bnoentry'
6913 # When large executables or shared objects are built, AIX ld can
6914 # have problems creating the table of contents. If linking a library
6915 # or program results in "error TOC overflow" add -mminimal-toc to
6916 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
6917 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6921 hardcode_libdir_separator=':'
6922 link_all_deplibs=yes
6924 if test "$GCC" = yes; then
6925 case $host_os in aix4.012|aix4.012.*)
6926 # We only want to do this on AIX 4.2 and lower, the check
6927 # below for broken collect2 doesn't work under 4.3+
6928 collect2name=`${CC} -print-prog-name=collect2`
6929 if test -f "$collect2name" && \
6930 strings "$collect2name" | grep resolve_lib_name >/dev/null
6932 # We have reworked collect2
6935 # We have old collect2
6936 hardcode_direct=unsupported
6937 # It fails to find uninstalled libraries when the uninstalled
6938 # path is not listed in the libpath. Setting hardcode_minus_L
6939 # to unsupported forces relinking
6940 hardcode_minus_L=yes
6941 hardcode_libdir_flag_spec='-L$libdir'
6942 hardcode_libdir_separator=
6945 shared_flag='-shared'
6948 if test "$host_cpu" = ia64; then
6949 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6950 # chokes on -Wl,-G. The following line is correct:
6953 if test "$aix_use_runtimelinking" = yes; then
6954 shared_flag='${wl}-G'
6956 shared_flag='${wl}-bM:SRE'
6961 # It seems that -bexpall does not export symbols beginning with
6962 # underscore (_), so it is better to generate a list of symbols to export.
6963 always_export_symbols=yes
6964 if test "$aix_use_runtimelinking" = yes; then
6965 # Warning - without using the other runtime loading flags (-brtl),
6966 # -berok will link without error, but may produce a broken library.
6967 allow_undefined_flag='-berok'
6968 # Determine the default libpath from the value encoded in an empty executable.
6969 cat >conftest.$ac_ext <<_ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6984 rm -f conftest.$ac_objext conftest$ac_exeext
6985 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6986 (eval $ac_link) 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } &&
6993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6998 (exit $ac_status); }; } &&
6999 { ac_try='test -s conftest$ac_exeext'
7000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7004 (exit $ac_status); }; }; then
7006 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7008 # Check for a 64-bit object if we didn't find anything.
7009 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; }
7012 echo "$as_me: failed program was:" >&5
7013 sed 's/^/| /' conftest.$ac_ext >&5
7016 rm -f conftest.err conftest.$ac_objext \
7017 conftest$ac_exeext conftest.$ac_ext
7018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7020 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7021 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"
7023 if test "$host_cpu" = ia64; then
7024 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7025 allow_undefined_flag="-z nodefs"
7026 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"
7028 # Determine the default libpath from the value encoded in an empty executable.
7029 cat >conftest.$ac_ext <<_ACEOF
7032 cat confdefs.h >>conftest.$ac_ext
7033 cat >>conftest.$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7044 rm -f conftest.$ac_objext conftest$ac_exeext
7045 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7046 (eval $ac_link) 2>conftest.er1
7048 grep -v '^ *+' conftest.er1 >conftest.err
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); }; } &&
7059 { ac_try='test -s conftest$ac_exeext'
7060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7064 (exit $ac_status); }; }; then
7066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7068 # Check for a 64-bit object if we didn't find anything.
7069 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; }
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7076 rm -f conftest.err conftest.$ac_objext \
7077 conftest$ac_exeext conftest.$ac_ext
7078 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7080 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7081 # Warning - without using the other run time loading flags,
7082 # -berok will link without error, but may produce a broken library.
7083 no_undefined_flag=' ${wl}-bernotok'
7084 allow_undefined_flag=' ${wl}-berok'
7085 # -bexpall does not export symbols beginning with underscore (_)
7086 always_export_symbols=yes
7087 # Exported symbols can be pulled into shared objects from archives
7088 whole_archive_flag_spec=' '
7089 archive_cmds_need_lc=yes
7090 # This is similar to how AIX traditionally builds it's shared libraries.
7091 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'
7097 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)'
7098 hardcode_libdir_flag_spec='-L$libdir'
7099 hardcode_minus_L=yes
7100 # see comment about different semantics on the GNU ld section
7105 export_dynamic_flag_spec=-rdynamic
7108 cygwin* | mingw* | pw32*)
7109 # When not using gcc, we currently assume that we are using
7110 # Microsoft Visual C++.
7111 # hardcode_libdir_flag_spec is actually meaningless, as there is
7112 # no search path for DLLs.
7113 hardcode_libdir_flag_spec=' '
7114 allow_undefined_flag=unsupported
7115 # Tell ltmain to make .lib files, not .a files.
7117 # Tell ltmain to make .dll files, not .so files.
7119 # FIXME: Setting linknames here is a bad hack.
7120 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7121 # The linker will automatically build a .lib file if we build a DLL.
7122 old_archive_From_new_cmds='true'
7123 # FIXME: Should let the user specify the lib program.
7124 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7125 fix_srcfile_path='`cygpath -w "$srcfile"`'
7126 enable_shared_with_static_runtimes=yes
7129 darwin* | rhapsody*)
7130 if test "$GXX" = yes ; then
7131 archive_cmds_need_lc=no
7133 rhapsody* | darwin1.[012])
7134 allow_undefined_flag='-undefined suppress'
7137 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7138 allow_undefined_flag='-flat_namespace -undefined suppress'
7140 case ${MACOSX_DEPLOYMENT_TARGET} in
7142 allow_undefined_flag='-flat_namespace -undefined suppress'
7145 allow_undefined_flag='-undefined dynamic_lookup'
7151 lt_int_apple_cc_single_mod=no
7152 output_verbose_link_cmd='echo'
7153 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7154 lt_int_apple_cc_single_mod=yes
7156 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7157 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7159 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'
7161 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7162 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7163 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7164 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}'
7166 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}'
7168 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}'
7170 hardcode_automatic=yes
7171 hardcode_shlibpath_var=unsupported
7172 whole_archive_flag_spec='-all_load $convenience'
7173 link_all_deplibs=yes
7180 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7181 hardcode_libdir_flag_spec='-L$libdir'
7182 hardcode_shlibpath_var=no
7189 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7190 # support. Future versions do this automatically, but an explicit c++rt0.o
7191 # does not break anything, and helps significantly (at the cost of a little
7194 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7195 hardcode_libdir_flag_spec='-R$libdir'
7197 hardcode_shlibpath_var=no
7200 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7202 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7204 hardcode_minus_L=yes
7205 hardcode_shlibpath_var=no
7208 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7209 freebsd* | kfreebsd*-gnu)
7210 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7211 hardcode_libdir_flag_spec='-R$libdir'
7213 hardcode_shlibpath_var=no
7217 if test "$GCC" = yes; then
7218 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'
7220 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'
7222 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7223 hardcode_libdir_separator=:
7226 # hardcode_minus_L: Not really in the search PATH,
7227 # but as the default location of the library.
7228 hardcode_minus_L=yes
7229 export_dynamic_flag_spec='${wl}-E'
7233 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7236 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7239 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7245 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7248 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7252 if test "$with_gnu_ld" = no; then
7255 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7256 hardcode_libdir_flag_spec_ld='+b $libdir'
7257 hardcode_libdir_separator=:
7259 hardcode_shlibpath_var=no
7262 hardcode_libdir_flag_spec='-L$libdir'
7264 hardcode_shlibpath_var=no
7266 # hardcode_minus_L: Not really in the search PATH,
7267 # but as the default location of the library.
7268 hardcode_minus_L=yes
7271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7272 hardcode_libdir_separator=:
7274 export_dynamic_flag_spec='${wl}-E'
7276 # hardcode_minus_L: Not really in the search PATH,
7277 # but as the default location of the library.
7278 hardcode_minus_L=yes
7284 irix5* | irix6* | nonstopux*)
7285 if test "$GCC" = yes; then
7286 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'
7288 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'
7289 hardcode_libdir_flag_spec_ld='-rpath $libdir'
7291 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7292 hardcode_libdir_separator=:
7293 link_all_deplibs=yes
7296 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
7297 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7298 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
7300 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
7302 hardcode_libdir_flag_spec='-R$libdir'
7304 hardcode_shlibpath_var=no
7308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7310 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7311 hardcode_libdir_separator=:
7312 hardcode_shlibpath_var=no
7317 hardcode_shlibpath_var=no
7318 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7320 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7321 export_dynamic_flag_spec='${wl}-E'
7324 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7325 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7326 hardcode_libdir_flag_spec='-R$libdir'
7329 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7330 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7337 hardcode_libdir_flag_spec='-L$libdir'
7338 hardcode_minus_L=yes
7339 allow_undefined_flag=unsupported
7340 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'
7341 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7345 if test "$GCC" = yes; then
7346 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7347 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'
7349 allow_undefined_flag=' -expect_unresolved \*'
7350 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'
7352 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7353 hardcode_libdir_separator=:
7356 osf4* | osf5*) # as osf3* with the addition of -msym flag
7357 if test "$GCC" = yes; then
7358 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7359 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'
7360 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7362 allow_undefined_flag=' -expect_unresolved \*'
7363 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'
7364 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7365 $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'
7367 # Both c and cxx compiler support -rpath directly
7368 hardcode_libdir_flag_spec='-rpath $libdir'
7370 hardcode_libdir_separator=:
7374 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7375 hardcode_shlibpath_var=no
7376 export_dynamic_flag_spec='${wl}-Bexport'
7377 runpath_var=LD_RUN_PATH
7378 hardcode_runpath_var=yes
7382 no_undefined_flag=' -z text'
7383 if test "$GCC" = yes; then
7384 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7385 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7386 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7388 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7389 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7390 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7392 hardcode_libdir_flag_spec='-R$libdir'
7393 hardcode_shlibpath_var=no
7395 solaris2.[0-5] | solaris2.[0-5].*) ;;
7396 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7397 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7399 link_all_deplibs=yes
7403 if test "x$host_vendor" = xsequent; then
7404 # Use $CC to link under sequent, because it throws in some extra .o
7405 # files that make .init and .fini sections work.
7406 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7408 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7410 hardcode_libdir_flag_spec='-L$libdir'
7412 hardcode_minus_L=yes
7413 hardcode_shlibpath_var=no
7417 case $host_vendor in
7419 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7420 hardcode_direct=yes # is this really true???
7423 ## LD is ld it makes a PLAMLIB
7424 ## CC just makes a GrossModule.
7425 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7426 reload_cmds='$CC -r -o $output$reload_objs'
7430 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7434 runpath_var='LD_RUN_PATH'
7435 hardcode_shlibpath_var=no
7439 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7440 hardcode_shlibpath_var=no
7441 export_dynamic_flag_spec='-Bexport'
7445 if test -d /usr/nec; then
7446 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7447 hardcode_shlibpath_var=no
7448 runpath_var=LD_RUN_PATH
7449 hardcode_runpath_var=yes
7455 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7458 hardcode_shlibpath_var=no
7459 hardcode_runpath_var=yes
7460 runpath_var=LD_RUN_PATH
7463 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
7464 no_undefined_flag='${wl}-z ${wl}text'
7465 if test "$GCC" = yes; then
7466 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7468 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7470 runpath_var='LD_RUN_PATH'
7471 hardcode_shlibpath_var=no
7475 no_undefined_flag=' -z text'
7476 # $CC -shared without GNU ld will not create a library from C++
7477 # object files and a static libstdc++, better avoid it by now
7478 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7479 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7480 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7481 hardcode_libdir_flag_spec=
7482 hardcode_shlibpath_var=no
7483 runpath_var='LD_RUN_PATH'
7487 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7488 hardcode_libdir_flag_spec='-L$libdir'
7489 hardcode_shlibpath_var=no
7498 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7499 echo "${ECHO_T}$ld_shlibs" >&6
7500 test "$ld_shlibs" = no && can_build_shared=no
7502 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7503 if test "$GCC" = yes; then
7504 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7508 # Do we need to explicitly link libc?
7510 case "x$archive_cmds_need_lc" in
7512 # Assume -lc should be added
7513 archive_cmds_need_lc=yes
7515 if test "$enable_shared" = yes && test "$GCC" = yes; then
7516 case $archive_cmds in
7518 # FIXME: we may have to deal with multi-command sequences.
7521 # Test whether the compiler implicitly links with -lc since on some
7522 # systems, -lgcc has to come before -lc. If gcc already passes -lc
7523 # to ld, don't add -lc before -lgcc.
7524 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7525 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7527 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7530 (eval $ac_compile) 2>&5
7532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533 (exit $ac_status); } 2>conftest.err; then
7536 libobjs=conftest.$ac_objext
7538 wl=$lt_prog_compiler_wl
7544 lt_save_allow_undefined_flag=$allow_undefined_flag
7545 allow_undefined_flag=
7546 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7547 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7550 (exit $ac_status); }
7552 archive_cmds_need_lc=no
7554 archive_cmds_need_lc=yes
7556 allow_undefined_flag=$lt_save_allow_undefined_flag
7558 cat conftest.err 1>&5
7561 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7562 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7569 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7572 libname_spec='lib$name'
7580 shlibpath_overrides_runpath=unknown
7582 dynamic_linker="$host_os ld.so"
7583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7584 if test "$GCC" = yes; then
7585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7586 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7587 # if the path contains ";" then we assume it to be the separator
7588 # otherwise default to the standard path separator (i.e. ":") - it is
7589 # assumed that no part of a normal pathname contains ";" but that should
7590 # okay in the real world where ";" in dirpaths is itself problematic.
7591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7598 need_lib_prefix=unknown
7599 hardcode_into_libs=no
7601 # when you set need_version to no, make sure it does not cause -set_version
7602 # flags to be left without arguments
7603 need_version=unknown
7608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7609 shlibpath_var=LIBPATH
7611 # AIX 3 has no versioning support, so we append a major version to the name.
7612 soname_spec='${libname}${release}${shared_ext}$major'
7619 hardcode_into_libs=yes
7620 if test "$host_cpu" = ia64; then
7621 # AIX 5 supports IA64
7622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7623 shlibpath_var=LD_LIBRARY_PATH
7625 # With GCC up to 2.95.x, collect2 would create an import file
7626 # for dependence libraries. The import file would start with
7627 # the line `#! .'. This would cause the generated library to
7628 # depend on `.', always an invalid library. This was fixed in
7629 # development snapshots of GCC prior to 3.0.
7631 aix4 | aix4.[01] | aix4.[01].*)
7632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7634 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7642 # soname into executable. Probably we can add versioning support to
7643 # collect2, so additional links can be useful in future.
7644 if test "$aix_use_runtimelinking" = yes; then
7645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7646 # instead of lib<name>.a to let people know that these are not
7647 # typical AIX shared libraries.
7648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7650 # We preserve .a as extension for shared libraries through AIX4.2
7651 # and later when we are not doing run time linking.
7652 library_names_spec='${libname}${release}.a $libname.a'
7653 soname_spec='${libname}${release}${shared_ext}$major'
7655 shlibpath_var=LIBPATH
7660 library_names_spec='$libname.ixlibrary $libname.a'
7661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
7662 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'
7666 library_names_spec='${libname}${shared_ext}'
7667 dynamic_linker="$host_os ld.so"
7668 shlibpath_var=LIBRARY_PATH
7674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7675 soname_spec='${libname}${release}${shared_ext}$major'
7676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7677 shlibpath_var=LD_LIBRARY_PATH
7678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7680 # the default ld.so.conf also contains /usr/contrib/lib and
7681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7682 # libtool to hard-code these into programs
7685 cygwin* | mingw* | pw32*)
7686 version_type=windows
7691 case $GCC,$host_os in
7692 yes,cygwin* | yes,mingw* | yes,pw32*)
7693 library_names_spec='$libname.dll.a'
7694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
7695 postinstall_cmds='base_file=`basename \${file}`~
7696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7697 dldir=$destdir/`dirname \$dlpath`~
7698 test -d \$dldir || mkdir -p \$dldir~
7699 $install_prog $dir/$dlname \$dldir/$dlname'
7700 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7701 dlpath=$dir/\$dldll~
7703 shlibpath_overrides_runpath=yes
7707 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7708 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7709 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7712 # MinGW DLLs use traditional 'lib' prefix
7713 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7714 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7715 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7716 # It is most probably a Windows format PATH printed by
7717 # mingw gcc, but we are running on Cygwin. Gcc prints its search
7718 # path with ; separators, and with drive letters. We can handle the
7719 # drive letters (cygwin fileutils understands them), so leave them,
7720 # especially as we might pass files found there to a mingw objdump,
7721 # which wouldn't understand a cygwinified path. Ahh.
7722 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7724 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
7728 # pw32 DLLs use 'pw' prefix rather than 'lib'
7729 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7735 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7738 dynamic_linker='Win32 ld.exe'
7739 # FIXME: first we should search . and the directory the executable is in
7743 darwin* | rhapsody*)
7744 dynamic_linker="$host_os dyld"
7748 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7749 soname_spec='${libname}${release}${major}$shared_ext'
7750 shlibpath_overrides_runpath=yes
7751 shlibpath_var=DYLD_LIBRARY_PATH
7752 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7753 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7754 if test "$GCC" = yes; then
7755 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"`
7757 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7759 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7767 soname_spec='${libname}${release}${shared_ext}$major'
7768 shlibpath_var=LD_LIBRARY_PATH
7779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7780 soname_spec='${libname}${release}${shared_ext}$major'
7781 shlibpath_var=LD_LIBRARY_PATH
7782 shlibpath_overrides_runpath=no
7783 hardcode_into_libs=yes
7784 dynamic_linker='GNU ld.so'
7788 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7789 version_type=freebsd-$objformat
7790 case $version_type in
7792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7797 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7801 shlibpath_var=LD_LIBRARY_PATH
7804 shlibpath_overrides_runpath=yes
7806 freebsd3.01* | freebsdelf3.01*)
7807 shlibpath_overrides_runpath=yes
7808 hardcode_into_libs=yes
7811 shlibpath_overrides_runpath=no
7812 hardcode_into_libs=yes
7821 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7822 soname_spec='${libname}${release}${shared_ext}$major'
7823 shlibpath_var=LD_LIBRARY_PATH
7824 hardcode_into_libs=yes
7827 hpux9* | hpux10* | hpux11*)
7828 # Give a soname corresponding to the major version so that dld.sl refuses to
7829 # link against other versions.
7836 hardcode_into_libs=yes
7837 dynamic_linker="$host_os dld.so"
7838 shlibpath_var=LD_LIBRARY_PATH
7839 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7841 soname_spec='${libname}${release}${shared_ext}$major'
7842 if test "X$HPUX_IA64_MODE" = X32; then
7843 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7845 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7847 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7851 hardcode_into_libs=yes
7852 dynamic_linker="$host_os dld.sl"
7853 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7856 soname_spec='${libname}${release}${shared_ext}$major'
7857 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7858 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7862 dynamic_linker="$host_os dld.sl"
7863 shlibpath_var=SHLIB_PATH
7864 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7866 soname_spec='${libname}${release}${shared_ext}$major'
7869 # HP-UX runs *really* slowly unless shared libraries are mode 555.
7870 postinstall_cmds='chmod 555 $lib'
7873 irix5* | irix6* | nonstopux*)
7875 nonstopux*) version_type=nonstopux ;;
7877 if test "$lt_cv_prog_gnu_ld" = yes; then
7885 soname_spec='${libname}${release}${shared_ext}$major'
7886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7888 irix5* | nonstopux*)
7892 case $LD in # libtool.m4 will add one of these switches to LD
7893 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7894 libsuff= shlibsuff= libmagic=32-bit;;
7895 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7896 libsuff=32 shlibsuff=N32 libmagic=N32;;
7897 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7898 libsuff=64 shlibsuff=64 libmagic=64-bit;;
7899 *) libsuff= shlibsuff= libmagic=never-match;;
7903 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7904 shlibpath_overrides_runpath=no
7905 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7906 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7907 hardcode_into_libs=yes
7910 # No shared lib support for Linux oldld, aout, or coff.
7911 linux*oldld* | linux*aout* | linux*coff*)
7915 # This must be Linux ELF.
7920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7921 soname_spec='${libname}${release}${shared_ext}$major'
7922 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7923 shlibpath_var=LD_LIBRARY_PATH
7924 shlibpath_overrides_runpath=no
7925 # This implies no fast_install, which is unacceptable.
7926 # Some rework will be needed to allow for fast_install
7927 # before this can be enabled.
7928 hardcode_into_libs=yes
7930 # Append ld.so.conf contents to the search path
7931 if test -f /etc/ld.so.conf; then
7932 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7933 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
7936 # We used to test for /lib/ld.so.1 and disable shared libraries on
7937 # powerpc, because MkLinux only supported shared libraries with the
7938 # GNU dynamic linker. Since this was broken with cross compilers,
7939 # most powerpc-linux boxes support dynamic linking these days and
7940 # people can always --disable-shared, the test was removed, and we
7941 # assume the GNU/Linux dynamic linker is in use.
7942 dynamic_linker='GNU/Linux ld.so'
7949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7950 soname_spec='${libname}${release}${shared_ext}$major'
7951 shlibpath_var=LD_LIBRARY_PATH
7952 shlibpath_overrides_runpath=no
7953 hardcode_into_libs=yes
7954 dynamic_linker='NetBSD ld.elf_so'
7961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7962 soname_spec='${libname}${release}${shared_ext}$major'
7963 shlibpath_var=LD_LIBRARY_PATH
7964 shlibpath_overrides_runpath=no
7965 hardcode_into_libs=yes
7966 dynamic_linker='GNU ld.so'
7973 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
7975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
7976 dynamic_linker='NetBSD (a.out) ld.so'
7978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7979 soname_spec='${libname}${release}${shared_ext}$major'
7980 dynamic_linker='NetBSD ld.elf_so'
7982 shlibpath_var=LD_LIBRARY_PATH
7983 shlibpath_overrides_runpath=yes
7984 hardcode_into_libs=yes
7989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7990 shlibpath_var=LD_LIBRARY_PATH
7991 shlibpath_overrides_runpath=yes
7998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7999 soname_spec='${libname}${release}${shared_ext}$major'
8000 shlibpath_var=LD_LIBRARY_PATH
8001 shlibpath_overrides_runpath=yes
8008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8009 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8010 shlibpath_var=LD_LIBRARY_PATH
8011 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8013 openbsd2.[89] | openbsd2.[89].*)
8014 shlibpath_overrides_runpath=no
8017 shlibpath_overrides_runpath=yes
8021 shlibpath_overrides_runpath=yes
8026 libname_spec='$name'
8029 library_names_spec='$libname${shared_ext} $libname.a'
8030 dynamic_linker='OS/2 ld.exe'
8031 shlibpath_var=LIBPATH
8034 osf3* | osf4* | osf5*)
8038 soname_spec='${libname}${release}${shared_ext}$major'
8039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8040 shlibpath_var=LD_LIBRARY_PATH
8041 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8042 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8047 soname_spec='${libname}${release}${shared_ext}$major'
8048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8049 shlibpath_var=LD_LIBRARY_PATH
8056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8057 soname_spec='${libname}${release}${shared_ext}$major'
8058 shlibpath_var=LD_LIBRARY_PATH
8059 shlibpath_overrides_runpath=yes
8060 hardcode_into_libs=yes
8061 # ldd complains unless libraries are executable
8062 postinstall_cmds='chmod +x $lib'
8067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8068 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8069 shlibpath_var=LD_LIBRARY_PATH
8070 shlibpath_overrides_runpath=yes
8071 if test "$with_gnu_ld" = yes; then
8077 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080 soname_spec='${libname}${release}${shared_ext}$major'
8081 shlibpath_var=LD_LIBRARY_PATH
8082 case $host_vendor in
8084 shlibpath_overrides_runpath=no
8086 export_dynamic_flag_spec='${wl}-Blargedynsym'
8087 runpath_var=LD_RUN_PATH
8095 shlibpath_overrides_runpath=no
8096 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8102 if test -d /usr/nec ;then
8104 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8105 soname_spec='$libname${shared_ext}.$major'
8106 shlibpath_var=LD_LIBRARY_PATH
8112 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8113 soname_spec='${libname}${release}${shared_ext}$major'
8114 shlibpath_var=LD_LIBRARY_PATH
8121 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8122 echo "${ECHO_T}$dynamic_linker" >&6
8123 test "$dynamic_linker" = no && can_build_shared=no
8125 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8126 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8128 if test -n "$hardcode_libdir_flag_spec" || \
8129 test -n "$runpath_var " || \
8130 test "X$hardcode_automatic"="Xyes" ; then
8132 # We can hardcode non-existant directories.
8133 if test "$hardcode_direct" != no &&
8134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8135 # have to relink, otherwise we might link with an installed library
8136 # when we should be linking with a yet-to-be-installed one
8137 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8138 test "$hardcode_minus_L" != no; then
8139 # Linking always hardcodes the temporary library directory.
8140 hardcode_action=relink
8142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8143 hardcode_action=immediate
8146 # We cannot hardcode anything, or else we can only hardcode existing
8148 hardcode_action=unsupported
8150 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8151 echo "${ECHO_T}$hardcode_action" >&6
8153 if test "$hardcode_action" = relink; then
8154 # Fast installation is not supported
8155 enable_fast_install=no
8156 elif test "$shlibpath_overrides_runpath" = yes ||
8157 test "$enable_shared" = no; then
8158 # Fast installation is not necessary
8159 enable_fast_install=needless
8164 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8165 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8166 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8167 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8168 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8169 echo "$as_me:$LINENO: result: yes" >&5
8170 echo "${ECHO_T}yes" >&6
8172 # FIXME - insert some real tests, host_os isn't really good enough
8175 if test -n "$STRIP" ; then
8176 striplib="$STRIP -x"
8177 echo "$as_me:$LINENO: result: yes" >&5
8178 echo "${ECHO_T}yes" >&6
8180 echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6
8185 echo "$as_me:$LINENO: result: no" >&5
8186 echo "${ECHO_T}no" >&6
8191 if test "x$enable_dlopen" != xyes; then
8192 enable_dlopen=unknown
8193 enable_dlopen_self=unknown
8194 enable_dlopen_self_static=unknown
8201 lt_cv_dlopen="load_add_on"
8203 lt_cv_dlopen_self=yes
8207 lt_cv_dlopen="LoadLibrary"
8212 lt_cv_dlopen="dlopen"
8217 # if libdl is installed we need to link against it
8218 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8219 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8220 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8221 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_check_lib_save_LIBS=$LIBS
8225 cat >conftest.$ac_ext <<_ACEOF
8228 cat confdefs.h >>conftest.$ac_ext
8229 cat >>conftest.$ac_ext <<_ACEOF
8230 /* end confdefs.h. */
8232 /* Override any gcc2 internal prototype to avoid an error. */
8236 /* We use char because int might match the return type of a gcc2
8237 builtin and then its argument prototype would still apply. */
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8249 (eval $ac_link) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8267 (exit $ac_status); }; }; then
8268 ac_cv_lib_dl_dlopen=yes
8270 echo "$as_me: failed program was:" >&5
8271 sed 's/^/| /' conftest.$ac_ext >&5
8273 ac_cv_lib_dl_dlopen=no
8275 rm -f conftest.err conftest.$ac_objext \
8276 conftest$ac_exeext conftest.$ac_ext
8277 LIBS=$ac_check_lib_save_LIBS
8279 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8280 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8281 if test $ac_cv_lib_dl_dlopen = yes; then
8282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8287 lt_cv_dlopen_self=yes
8294 echo "$as_me:$LINENO: checking for shl_load" >&5
8295 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8296 if test "${ac_cv_func_shl_load+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8299 cat >conftest.$ac_ext <<_ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8307 #define shl_load innocuous_shl_load
8309 /* System header to define __stub macros and hopefully few prototypes,
8310 which can conflict with char shl_load (); below.
8311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8312 <limits.h> exists even on freestanding compilers. */
8315 # include <limits.h>
8317 # include <assert.h>
8322 /* Override any gcc2 internal prototype to avoid an error. */
8327 /* We use char because int might match the return type of a gcc2
8328 builtin and then its argument prototype would still apply. */
8330 /* The GNU C library defines this for functions which it implements
8331 to always fail with ENOSYS. Some functions are actually named
8332 something starting with __ and the normal name is an alias. */
8333 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8336 char (*f) () = shl_load;
8345 return f != shl_load;
8350 rm -f conftest.$ac_objext conftest$ac_exeext
8351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8352 (eval $ac_link) 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } &&
8359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 (exit $ac_status); }; } &&
8365 { ac_try='test -s conftest$ac_exeext'
8366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); }; }; then
8371 ac_cv_func_shl_load=yes
8373 echo "$as_me: failed program was:" >&5
8374 sed 's/^/| /' conftest.$ac_ext >&5
8376 ac_cv_func_shl_load=no
8378 rm -f conftest.err conftest.$ac_objext \
8379 conftest$ac_exeext conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8382 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8383 if test $ac_cv_func_shl_load = yes; then
8384 lt_cv_dlopen="shl_load"
8386 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8387 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8388 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8389 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 ac_check_lib_save_LIBS=$LIBS
8393 cat >conftest.$ac_ext <<_ACEOF
8396 cat confdefs.h >>conftest.$ac_ext
8397 cat >>conftest.$ac_ext <<_ACEOF
8398 /* end confdefs.h. */
8400 /* Override any gcc2 internal prototype to avoid an error. */
8404 /* We use char because int might match the return type of a gcc2
8405 builtin and then its argument prototype would still apply. */
8415 rm -f conftest.$ac_objext conftest$ac_exeext
8416 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8417 (eval $ac_link) 2>conftest.er1
8419 grep -v '^ *+' conftest.er1 >conftest.err
8421 cat conftest.err >&5
8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8423 (exit $ac_status); } &&
8424 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); }; } &&
8430 { ac_try='test -s conftest$ac_exeext'
8431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); }; }; then
8436 ac_cv_lib_dld_shl_load=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.$ac_ext >&5
8441 ac_cv_lib_dld_shl_load=no
8443 rm -f conftest.err conftest.$ac_objext \
8444 conftest$ac_exeext conftest.$ac_ext
8445 LIBS=$ac_check_lib_save_LIBS
8447 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8448 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8449 if test $ac_cv_lib_dld_shl_load = yes; then
8450 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8452 echo "$as_me:$LINENO: checking for dlopen" >&5
8453 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8454 if test "${ac_cv_func_dlopen+set}" = set; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 cat >conftest.$ac_ext <<_ACEOF
8460 cat confdefs.h >>conftest.$ac_ext
8461 cat >>conftest.$ac_ext <<_ACEOF
8462 /* end confdefs.h. */
8463 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8464 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8465 #define dlopen innocuous_dlopen
8467 /* System header to define __stub macros and hopefully few prototypes,
8468 which can conflict with char dlopen (); below.
8469 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8470 <limits.h> exists even on freestanding compilers. */
8473 # include <limits.h>
8475 # include <assert.h>
8480 /* Override any gcc2 internal prototype to avoid an error. */
8485 /* We use char because int might match the return type of a gcc2
8486 builtin and then its argument prototype would still apply. */
8488 /* The GNU C library defines this for functions which it implements
8489 to always fail with ENOSYS. Some functions are actually named
8490 something starting with __ and the normal name is an alias. */
8491 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8494 char (*f) () = dlopen;
8508 rm -f conftest.$ac_objext conftest$ac_exeext
8509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8510 (eval $ac_link) 2>conftest.er1
8512 grep -v '^ *+' conftest.er1 >conftest.err
8514 cat conftest.err >&5
8515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8516 (exit $ac_status); } &&
8517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); }; } &&
8523 { ac_try='test -s conftest$ac_exeext'
8524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8528 (exit $ac_status); }; }; then
8529 ac_cv_func_dlopen=yes
8531 echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8534 ac_cv_func_dlopen=no
8536 rm -f conftest.err conftest.$ac_objext \
8537 conftest$ac_exeext conftest.$ac_ext
8539 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8540 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8541 if test $ac_cv_func_dlopen = yes; then
8542 lt_cv_dlopen="dlopen"
8544 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8545 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8546 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 ac_check_lib_save_LIBS=$LIBS
8551 cat >conftest.$ac_ext <<_ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h. */
8558 /* Override any gcc2 internal prototype to avoid an error. */
8562 /* We use char because int might match the return type of a gcc2
8563 builtin and then its argument prototype would still apply. */
8573 rm -f conftest.$ac_objext conftest$ac_exeext
8574 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8575 (eval $ac_link) 2>conftest.er1
8577 grep -v '^ *+' conftest.er1 >conftest.err
8579 cat conftest.err >&5
8580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } &&
8582 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587 (exit $ac_status); }; } &&
8588 { ac_try='test -s conftest$ac_exeext'
8589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8593 (exit $ac_status); }; }; then
8594 ac_cv_lib_dl_dlopen=yes
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8599 ac_cv_lib_dl_dlopen=no
8601 rm -f conftest.err conftest.$ac_objext \
8602 conftest$ac_exeext conftest.$ac_ext
8603 LIBS=$ac_check_lib_save_LIBS
8605 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8606 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8607 if test $ac_cv_lib_dl_dlopen = yes; then
8608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8610 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8611 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8612 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8613 echo $ECHO_N "(cached) $ECHO_C" >&6
8615 ac_check_lib_save_LIBS=$LIBS
8617 cat >conftest.$ac_ext <<_ACEOF
8620 cat confdefs.h >>conftest.$ac_ext
8621 cat >>conftest.$ac_ext <<_ACEOF
8622 /* end confdefs.h. */
8624 /* Override any gcc2 internal prototype to avoid an error. */
8628 /* We use char because int might match the return type of a gcc2
8629 builtin and then its argument prototype would still apply. */
8639 rm -f conftest.$ac_objext conftest$ac_exeext
8640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8641 (eval $ac_link) 2>conftest.er1
8643 grep -v '^ *+' conftest.er1 >conftest.err
8645 cat conftest.err >&5
8646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8647 (exit $ac_status); } &&
8648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8653 (exit $ac_status); }; } &&
8654 { ac_try='test -s conftest$ac_exeext'
8655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); }; }; then
8660 ac_cv_lib_svld_dlopen=yes
8662 echo "$as_me: failed program was:" >&5
8663 sed 's/^/| /' conftest.$ac_ext >&5
8665 ac_cv_lib_svld_dlopen=no
8667 rm -f conftest.err conftest.$ac_objext \
8668 conftest$ac_exeext conftest.$ac_ext
8669 LIBS=$ac_check_lib_save_LIBS
8671 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8673 if test $ac_cv_lib_svld_dlopen = yes; then
8674 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8676 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8681 ac_check_lib_save_LIBS=$LIBS
8683 cat >conftest.$ac_ext <<_ACEOF
8686 cat confdefs.h >>conftest.$ac_ext
8687 cat >>conftest.$ac_ext <<_ACEOF
8688 /* end confdefs.h. */
8690 /* Override any gcc2 internal prototype to avoid an error. */
8694 /* We use char because int might match the return type of a gcc2
8695 builtin and then its argument prototype would still apply. */
8705 rm -f conftest.$ac_objext conftest$ac_exeext
8706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8707 (eval $ac_link) 2>conftest.er1
8709 grep -v '^ *+' conftest.er1 >conftest.err
8711 cat conftest.err >&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } &&
8714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719 (exit $ac_status); }; } &&
8720 { ac_try='test -s conftest$ac_exeext'
8721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_lib_dld_dld_link=yes
8728 echo "$as_me: failed program was:" >&5
8729 sed 's/^/| /' conftest.$ac_ext >&5
8731 ac_cv_lib_dld_dld_link=no
8733 rm -f conftest.err conftest.$ac_objext \
8734 conftest$ac_exeext conftest.$ac_ext
8735 LIBS=$ac_check_lib_save_LIBS
8737 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8738 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8739 if test $ac_cv_lib_dld_dld_link = yes; then
8740 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8761 if test "x$lt_cv_dlopen" != xno; then
8767 case $lt_cv_dlopen in
8769 save_CPPFLAGS="$CPPFLAGS"
8770 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8772 save_LDFLAGS="$LDFLAGS"
8773 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8776 LIBS="$lt_cv_dlopen_libs $LIBS"
8778 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8779 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8780 if test "${lt_cv_dlopen_self+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 if test "$cross_compiling" = yes; then :
8784 lt_cv_dlopen_self=cross
8786 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8787 lt_status=$lt_dlunknown
8788 cat > conftest.$ac_ext <<EOF
8789 #line 8789 "configure"
8790 #include "confdefs.h"
8799 # define LT_DLGLOBAL RTLD_GLOBAL
8802 # define LT_DLGLOBAL DL_GLOBAL
8804 # define LT_DLGLOBAL 0
8808 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8809 find out it does not work in some platform. */
8810 #ifndef LT_DLLAZY_OR_NOW
8812 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8815 # define LT_DLLAZY_OR_NOW DL_LAZY
8818 # define LT_DLLAZY_OR_NOW RTLD_NOW
8821 # define LT_DLLAZY_OR_NOW DL_NOW
8823 # define LT_DLLAZY_OR_NOW 0
8831 extern "C" void exit (int);
8834 void fnord() { int i=42;}
8837 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8838 int status = $lt_dlunknown;
8842 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8843 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8844 /* dlclose (self); */
8850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8851 (eval $ac_link) 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8855 (./conftest; exit; ) 2>/dev/null
8858 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8859 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8860 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8863 # compilation failed
8864 lt_cv_dlopen_self=no
8871 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8872 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8874 if test "x$lt_cv_dlopen_self" = xyes; then
8875 LDFLAGS="$LDFLAGS $link_static_flag"
8876 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8877 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8878 if test "${lt_cv_dlopen_self_static+set}" = set; then
8879 echo $ECHO_N "(cached) $ECHO_C" >&6
8881 if test "$cross_compiling" = yes; then :
8882 lt_cv_dlopen_self_static=cross
8884 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8885 lt_status=$lt_dlunknown
8886 cat > conftest.$ac_ext <<EOF
8887 #line 8887 "configure"
8888 #include "confdefs.h"
8897 # define LT_DLGLOBAL RTLD_GLOBAL
8900 # define LT_DLGLOBAL DL_GLOBAL
8902 # define LT_DLGLOBAL 0
8906 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8907 find out it does not work in some platform. */
8908 #ifndef LT_DLLAZY_OR_NOW
8910 # define LT_DLLAZY_OR_NOW RTLD_LAZY
8913 # define LT_DLLAZY_OR_NOW DL_LAZY
8916 # define LT_DLLAZY_OR_NOW RTLD_NOW
8919 # define LT_DLLAZY_OR_NOW DL_NOW
8921 # define LT_DLLAZY_OR_NOW 0
8929 extern "C" void exit (int);
8932 void fnord() { int i=42;}
8935 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8936 int status = $lt_dlunknown;
8940 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
8941 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8942 /* dlclose (self); */
8948 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8949 (eval $ac_link) 2>&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8953 (./conftest; exit; ) 2>/dev/null
8956 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8957 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8958 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8961 # compilation failed
8962 lt_cv_dlopen_self_static=no
8969 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8970 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8973 CPPFLAGS="$save_CPPFLAGS"
8974 LDFLAGS="$save_LDFLAGS"
8979 case $lt_cv_dlopen_self in
8980 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8981 *) enable_dlopen_self=unknown ;;
8984 case $lt_cv_dlopen_self_static in
8985 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8986 *) enable_dlopen_self_static=unknown ;;
8991 # Report which librarie types wil actually be built
8992 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8993 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8994 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8995 echo "${ECHO_T}$can_build_shared" >&6
8997 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8998 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8999 test "$can_build_shared" = "no" && enable_shared=no
9001 # On AIX, shared libraries and static libraries use the same namespace, and
9002 # are all built from PIC.
9005 test "$enable_shared" = yes && enable_static=no
9006 if test -n "$RANLIB"; then
9007 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9008 postinstall_cmds='$RANLIB $lib'
9013 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9014 test "$enable_shared" = yes && enable_static=no
9017 darwin* | rhapsody*)
9018 if test "$GCC" = yes; then
9019 archive_cmds_need_lc=no
9021 rhapsody* | darwin1.[012])
9022 allow_undefined_flag='-undefined suppress'
9025 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9026 allow_undefined_flag='-flat_namespace -undefined suppress'
9028 case ${MACOSX_DEPLOYMENT_TARGET} in
9030 allow_undefined_flag='-flat_namespace -undefined suppress'
9033 allow_undefined_flag='-undefined dynamic_lookup'
9039 output_verbose_link_cmd='echo'
9040 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9041 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9042 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9043 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}'
9044 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}'
9046 hardcode_automatic=yes
9047 hardcode_shlibpath_var=unsupported
9048 whole_archive_flag_spec='-all_load $convenience'
9049 link_all_deplibs=yes
9055 echo "$as_me:$LINENO: result: $enable_shared" >&5
9056 echo "${ECHO_T}$enable_shared" >&6
9058 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9059 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9060 # Make sure either enable_shared or enable_static is yes.
9061 test "$enable_shared" = yes || enable_static=yes
9062 echo "$as_me:$LINENO: result: $enable_static" >&5
9063 echo "${ECHO_T}$enable_static" >&6
9065 # The else clause should only fire when bootstrapping the
9066 # libtool distribution, otherwise you forgot to ship ltmain.sh
9067 # with your package, and you will get complaints that there are
9068 # no rules to generate ltmain.sh.
9069 if test -f "$ltmain"; then
9070 # See if we are running on zsh, and set the options which allow our commands through
9071 # without removal of \ escapes.
9072 if test -n "${ZSH_VERSION+set}" ; then
9073 setopt NO_GLOB_SUBST
9075 # Now quote all the things that may contain metacharacters while being
9076 # careful not to overquote the AC_SUBSTed values. We take copies of the
9077 # variables and quote the copies for generation of the libtool script.
9078 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9080 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9081 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9082 deplibs_check_method reload_flag reload_cmds need_locks \
9083 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9084 lt_cv_sys_global_symbol_to_c_name_address \
9085 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9086 old_postinstall_cmds old_postuninstall_cmds \
9090 lt_prog_compiler_wl \
9091 lt_prog_compiler_pic \
9092 lt_prog_compiler_static \
9093 lt_prog_compiler_no_builtin_flag \
9094 export_dynamic_flag_spec \
9095 thread_safe_flag_spec \
9096 whole_archive_flag_spec \
9097 enable_shared_with_static_runtimes \
9099 old_archive_from_new_cmds \
9104 compiler_lib_search_path \
9106 archive_expsym_cmds \
9108 postuninstall_cmds \
9109 old_archive_from_expsyms_cmds \
9110 allow_undefined_flag \
9112 export_symbols_cmds \
9113 hardcode_libdir_flag_spec \
9114 hardcode_libdir_flag_spec_ld \
9115 hardcode_libdir_separator \
9116 hardcode_automatic \
9118 module_expsym_cmds \
9119 lt_cv_prog_compiler_c_o \
9124 old_archive_cmds | \
9125 old_archive_from_new_cmds | \
9127 archive_expsym_cmds | \
9129 module_expsym_cmds | \
9130 old_archive_from_expsyms_cmds | \
9131 export_symbols_cmds | \
9132 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9133 postinstall_cmds | postuninstall_cmds | \
9134 old_postinstall_cmds | old_postuninstall_cmds | \
9135 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9136 # Double-quote double-evaled strings.
9137 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9140 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9146 *'\$0 --fallback-echo"')
9147 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9152 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9154 { echo "$as_me:$LINENO: creating $ofile" >&5
9155 echo "$as_me: creating $ofile" >&6;}
9157 cat <<__EOF__ >> "$cfgfile"
9160 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9161 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9162 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9164 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9165 # Free Software Foundation, Inc.
9167 # This file is part of GNU Libtool:
9168 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9170 # This program is free software; you can redistribute it and/or modify
9171 # it under the terms of the GNU General Public License as published by
9172 # the Free Software Foundation; either version 2 of the License, or
9173 # (at your option) any later version.
9175 # This program is distributed in the hope that it will be useful, but
9176 # WITHOUT ANY WARRANTY; without even the implied warranty of
9177 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9178 # General Public License for more details.
9180 # You should have received a copy of the GNU General Public License
9181 # along with this program; if not, write to the Free Software
9182 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9184 # As a special exception to the GNU General Public License, if you
9185 # distribute this file as part of a program that contains a
9186 # configuration script generated by Autoconf, you may include it under
9187 # the same distribution terms that you use for the rest of that program.
9189 # A sed program that does not truncate output.
9192 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9193 Xsed="$SED -e s/^X//"
9195 # The HP-UX ksh and POSIX shell print the target directory to stdout
9197 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9199 # The names of the tagged configurations supported by this script.
9202 # ### BEGIN LIBTOOL CONFIG
9204 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9206 # Shell to use when invoking shell scripts.
9209 # Whether or not to build shared libraries.
9210 build_libtool_libs=$enable_shared
9212 # Whether or not to build static libraries.
9213 build_old_libs=$enable_static
9215 # Whether or not to add -lc for building shared libraries.
9216 build_libtool_need_lc=$archive_cmds_need_lc
9218 # Whether or not to disallow shared libs when runtime libs are static
9219 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9221 # Whether or not to optimize for fast installation.
9222 fast_install=$enable_fast_install
9225 host_alias=$host_alias
9228 # An echo program that does not interpret backslashes.
9233 AR_FLAGS=$lt_AR_FLAGS
9238 # A language-specific compiler.
9241 # Is the compiler the GNU C compiler?
9247 # The linker used to build libraries.
9250 # Whether we need hard or soft links.
9253 # A BSD-compatible nm program.
9256 # A symbol stripping program
9259 # Used to examine libraries when file_magic_cmd begins "file"
9260 MAGIC_CMD=$MAGIC_CMD
9262 # Used on cygwin: DLL creation program.
9265 # Used on cygwin: object dumper.
9268 # Used on cygwin: assembler.
9271 # The name of the directory that contains temporary libtool files.
9274 # How to create reloadable object files.
9275 reload_flag=$lt_reload_flag
9276 reload_cmds=$lt_reload_cmds
9278 # How to pass a linker flag through the compiler.
9279 wl=$lt_lt_prog_compiler_wl
9281 # Object file suffix (normally "o").
9284 # Old archive suffix (normally "a").
9287 # Shared library suffix (normally ".so").
9288 shrext_cmds='$shrext_cmds'
9290 # Executable file suffix (normally "").
9293 # Additional compiler flags for building library objects.
9294 pic_flag=$lt_lt_prog_compiler_pic
9297 # What is the maximum length of a command?
9298 max_cmd_len=$lt_cv_sys_max_cmd_len
9300 # Does compiler simultaneously support -c and -o options?
9301 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9303 # Must we lock files when doing compilation ?
9304 need_locks=$lt_need_locks
9306 # Do we need the lib prefix for modules?
9307 need_lib_prefix=$need_lib_prefix
9309 # Do we need a version for libraries?
9310 need_version=$need_version
9312 # Whether dlopen is supported.
9313 dlopen_support=$enable_dlopen
9315 # Whether dlopen of programs is supported.
9316 dlopen_self=$enable_dlopen_self
9318 # Whether dlopen of statically linked programs is supported.
9319 dlopen_self_static=$enable_dlopen_self_static
9321 # Compiler flag to prevent dynamic linking.
9322 link_static_flag=$lt_lt_prog_compiler_static
9324 # Compiler flag to turn off builtin functions.
9325 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9327 # Compiler flag to allow reflexive dlopens.
9328 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9330 # Compiler flag to generate shared objects directly from archives.
9331 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9333 # Compiler flag to generate thread-safe objects.
9334 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9336 # Library versioning type.
9337 version_type=$version_type
9339 # Format of library name prefix.
9340 libname_spec=$lt_libname_spec
9342 # List of archive names. First name is the real one, the rest are links.
9343 # The last name is the one that the linker finds with -lNAME.
9344 library_names_spec=$lt_library_names_spec
9346 # The coded name of the library, if different from the real name.
9347 soname_spec=$lt_soname_spec
9349 # Commands used to build and install an old-style archive.
9351 old_archive_cmds=$lt_old_archive_cmds
9352 old_postinstall_cmds=$lt_old_postinstall_cmds
9353 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9355 # Create an old-style archive from a shared archive.
9356 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9358 # Create a temporary old-style archive to link instead of a shared archive.
9359 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9361 # Commands used to build and install a shared archive.
9362 archive_cmds=$lt_archive_cmds
9363 archive_expsym_cmds=$lt_archive_expsym_cmds
9364 postinstall_cmds=$lt_postinstall_cmds
9365 postuninstall_cmds=$lt_postuninstall_cmds
9367 # Commands used to build a loadable module (assumed same as above if empty)
9368 module_cmds=$lt_module_cmds
9369 module_expsym_cmds=$lt_module_expsym_cmds
9371 # Commands to strip libraries.
9372 old_striplib=$lt_old_striplib
9373 striplib=$lt_striplib
9375 # Dependencies to place before the objects being linked to create a
9377 predep_objects=$lt_predep_objects
9379 # Dependencies to place after the objects being linked to create a
9381 postdep_objects=$lt_postdep_objects
9383 # Dependencies to place before the objects being linked to create a
9387 # Dependencies to place after the objects being linked to create a
9389 postdeps=$lt_postdeps
9391 # The library search path used internally by the compiler when linking
9393 compiler_lib_search_path=$lt_compiler_lib_search_path
9395 # Method to check whether dependent libraries are shared objects.
9396 deplibs_check_method=$lt_deplibs_check_method
9398 # Command to use when deplibs_check_method == file_magic.
9399 file_magic_cmd=$lt_file_magic_cmd
9401 # Flag that allows shared libraries with undefined symbols to be built.
9402 allow_undefined_flag=$lt_allow_undefined_flag
9404 # Flag that forces no undefined symbols.
9405 no_undefined_flag=$lt_no_undefined_flag
9407 # Commands used to finish a libtool library installation in a directory.
9408 finish_cmds=$lt_finish_cmds
9410 # Same as above, but a single script fragment to be evaled but not shown.
9411 finish_eval=$lt_finish_eval
9413 # Take the output of nm and produce a listing of raw symbols and C names.
9414 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9416 # Transform the output of nm in a proper C declaration
9417 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9419 # Transform the output of nm in a C name address pair
9420 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9422 # This is the shared library runtime path variable.
9423 runpath_var=$runpath_var
9425 # This is the shared library path variable.
9426 shlibpath_var=$shlibpath_var
9428 # Is shlibpath searched before the hard-coded library search path?
9429 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9431 # How to hardcode a shared library path into an executable.
9432 hardcode_action=$hardcode_action
9434 # Whether we should hardcode library paths into libraries.
9435 hardcode_into_libs=$hardcode_into_libs
9437 # Flag to hardcode \$libdir into a binary during linking.
9438 # This must work even if \$libdir does not exist.
9439 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9441 # If ld is used when linking, flag to hardcode \$libdir into
9442 # a binary during linking. This must work even if \$libdir does
9444 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9446 # Whether we need a single -rpath flag with a separated argument.
9447 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9449 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9451 hardcode_direct=$hardcode_direct
9453 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9455 hardcode_minus_L=$hardcode_minus_L
9457 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9458 # the resulting binary.
9459 hardcode_shlibpath_var=$hardcode_shlibpath_var
9461 # Set to yes if building a shared library automatically hardcodes DIR into the library
9462 # and all subsequent libraries and executables linked against it.
9463 hardcode_automatic=$hardcode_automatic
9465 # Variables whose values should be saved in libtool wrapper scripts and
9466 # restored at relink time.
9467 variables_saved_for_relink="$variables_saved_for_relink"
9469 # Whether libtool must link a program against all its dependency libraries.
9470 link_all_deplibs=$link_all_deplibs
9472 # Compile-time system search path for libraries
9473 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9475 # Run-time system search path for libraries
9476 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9478 # Fix the shell variable \$srcfile for the compiler.
9479 fix_srcfile_path="$fix_srcfile_path"
9481 # Set to yes if exported symbols are required.
9482 always_export_symbols=$always_export_symbols
9484 # The commands to list exported symbols.
9485 export_symbols_cmds=$lt_export_symbols_cmds
9487 # The commands to extract the exported symbol list from a shared archive.
9488 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9490 # Symbols that should not be listed in the preloaded symbols.
9491 exclude_expsyms=$lt_exclude_expsyms
9493 # Symbols that must always be exported.
9494 include_expsyms=$lt_include_expsyms
9496 # ### END LIBTOOL CONFIG
9503 cat <<\EOF >> "$cfgfile"
9505 # AIX sometimes has problems with the GCC collect2 program. For some
9506 # reason, if we set the COLLECT_NAMES environment variable, the problems
9507 # vanish in a puff of smoke.
9508 if test "X${COLLECT_NAMES+set}" != Xset; then
9510 export COLLECT_NAMES
9516 # We use sed instead of cat because bash on DJGPP gets confused if
9517 # if finds mixed CR/LF and LF-only lines. Since sed operates in
9518 # text mode, it properly converts lines to CR/LF. This bash problem
9519 # is reportedly fixed, but why not run on old versions too?
9520 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9522 mv -f "$cfgfile" "$ofile" || \
9523 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9527 # If there is no Makefile yet, we rely on a make rule to execute
9528 # `config.status --recheck' to rerun these tests and create the
9529 # libtool script then.
9530 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9531 if test -f "$ltmain_in"; then
9532 test -f Makefile && make "$ltmain"
9538 ac_cpp='$CPP $CPPFLAGS'
9539 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9540 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9541 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9546 # Check whether --with-tags or --without-tags was given.
9547 if test "${with_tags+set}" = set; then
9548 withval="$with_tags"
9552 if test -f "$ltmain" && test -n "$tagnames"; then
9553 if test ! -f "${ofile}"; then
9554 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9555 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9558 if test -z "$LTCC"; then
9559 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9560 if test -z "$LTCC"; then
9561 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9562 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9564 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9565 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9569 # Extract list of available tagged configurations in $ofile.
9570 # Note that this assumes the entire list is on one line.
9571 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9574 for tagname in $tagnames; do
9576 # Check whether tagname contains only valid characters
9577 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9579 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9580 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9581 { (exit 1); exit 1; }; }
9585 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9587 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9588 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9589 { (exit 1); exit 1; }; }
9592 # Update the list of available tags.
9593 if test -n "$tagname"; then
9594 echo appending configuration tag \"$tagname\" to $ofile
9598 if test -n "$CXX" && test "X$CXX" != "Xno"; then
9600 ac_cpp='$CXXCPP $CPPFLAGS'
9601 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9602 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9603 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9608 archive_cmds_need_lc_CXX=no
9609 allow_undefined_flag_CXX=
9610 always_export_symbols_CXX=no
9611 archive_expsym_cmds_CXX=
9612 export_dynamic_flag_spec_CXX=
9613 hardcode_direct_CXX=no
9614 hardcode_libdir_flag_spec_CXX=
9615 hardcode_libdir_flag_spec_ld_CXX=
9616 hardcode_libdir_separator_CXX=
9617 hardcode_minus_L_CXX=no
9618 hardcode_automatic_CXX=no
9620 module_expsym_cmds_CXX=
9621 link_all_deplibs_CXX=unknown
9622 old_archive_cmds_CXX=$old_archive_cmds
9623 no_undefined_flag_CXX=
9624 whole_archive_flag_spec_CXX=
9625 enable_shared_with_static_runtimes_CXX=no
9627 # Dependencies to place before and after the object being linked:
9629 postdep_objects_CXX=
9632 compiler_lib_search_path_CXX=
9634 # Source file extension for C++ test sources.
9637 # Object file extension for compiled C++ test sources.
9641 # Code to be used in simple compile tests
9642 lt_simple_compile_test_code="int some_variable = 0;\n"
9644 # Code to be used in simple link tests
9645 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9647 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9649 # If no C compiler was specified, use CC.
9652 # Allow CC to be a program name with arguments.
9656 # Allow CC to be a program name with arguments.
9661 lt_save_with_gnu_ld=$with_gnu_ld
9662 lt_save_path_LD=$lt_cv_path_LD
9663 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9664 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9666 unset lt_cv_prog_gnu_ld
9668 if test -n "${lt_cv_path_LDCXX+set}"; then
9669 lt_cv_path_LD=$lt_cv_path_LDCXX
9673 test -z "${LDCXX+set}" || LD=$LDCXX
9677 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9679 # We don't want -fno-exception wen compiling C++ code, so set the
9680 # no_builtin_flag separately
9681 if test "$GXX" = yes; then
9682 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9684 lt_prog_compiler_no_builtin_flag_CXX=
9687 if test "$GXX" = yes; then
9688 # Set up default GNU C++ configuration
9691 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9692 if test "${with_gnu_ld+set}" = set; then
9693 withval="$with_gnu_ld"
9694 test "$withval" = no || with_gnu_ld=yes
9699 if test "$GCC" = yes; then
9700 # Check if gcc -print-prog-name=ld gives a path.
9701 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9702 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9705 # gcc leaves a trailing carriage return which upsets mingw
9706 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9708 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9711 # Accept absolute paths.
9713 re_direlt='/[^/][^/]*/\.\./'
9714 # Canonicalize the pathname of ld
9715 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9716 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9717 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9719 test -z "$LD" && LD="$ac_prog"
9722 # If it fails, then pretend we aren't using GCC.
9726 # If it is relative, then search for the first ld in PATH.
9730 elif test "$with_gnu_ld" = yes; then
9731 echo "$as_me:$LINENO: checking for GNU ld" >&5
9732 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9734 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9735 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9737 if test "${lt_cv_path_LD+set}" = set; then
9738 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 if test -z "$LD"; then
9741 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9742 for ac_dir in $PATH; do
9744 test -z "$ac_dir" && ac_dir=.
9745 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9746 lt_cv_path_LD="$ac_dir/$ac_prog"
9747 # Check to see if the program is GNU ld. I'd rather use --version,
9748 # but apparently some GNU ld's only accept -v.
9749 # Break only if it was the GNU/non-GNU ld that we prefer.
9750 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9751 *GNU* | *'with BFD'*)
9752 test "$with_gnu_ld" != no && break
9755 test "$with_gnu_ld" != yes && break
9762 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9767 if test -n "$LD"; then
9768 echo "$as_me:$LINENO: result: $LD" >&5
9769 echo "${ECHO_T}$LD" >&6
9771 echo "$as_me:$LINENO: result: no" >&5
9772 echo "${ECHO_T}no" >&6
9774 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9775 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9776 { (exit 1); exit 1; }; }
9777 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9778 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9779 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9780 echo $ECHO_N "(cached) $ECHO_C" >&6
9782 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9783 case `$LD -v 2>&1 </dev/null` in
9784 *GNU* | *'with BFD'*)
9785 lt_cv_prog_gnu_ld=yes
9788 lt_cv_prog_gnu_ld=no
9792 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9793 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9794 with_gnu_ld=$lt_cv_prog_gnu_ld
9798 # Check if GNU C++ uses GNU ld as the underlying linker, since the
9799 # archiving commands below assume that GNU ld is being used.
9800 if test "$with_gnu_ld" = yes; then
9801 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9802 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'
9804 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9805 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9807 # If archive_cmds runs LD, not CC, wlarc should be empty
9808 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9809 # investigate it a little bit more. (MM)
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9814 grep 'no-whole-archive' > /dev/null; then
9815 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9817 whole_archive_flag_spec_CXX=
9823 # A generic and very simple default shared library creation
9824 # command for GNU C++ for the case where it uses the native
9825 # linker, instead of GNU ld. If possible, this setting should
9826 # overridden to take advantage of the native linker features on
9827 # the platform it is being used on.
9828 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9831 # Commands to make compiler produce verbose output that lists
9832 # what "hidden" libraries, object files and flags are used when
9833 # linking a shared library.
9834 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9842 # PORTME: fill in a description of your system's C++ link characteristics
9843 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9844 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9848 # FIXME: insert proper C++ library support
9852 if test "$host_cpu" = ia64; then
9853 # On IA64, the linker does run time linking by default, so we don't
9854 # have to do anything special.
9855 aix_use_runtimelinking=no
9856 exp_sym_flag='-Bexport'
9859 aix_use_runtimelinking=no
9861 # Test if we are trying to use run time linking or normal
9862 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9863 # need to do runtime linking.
9864 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9865 for ld_flag in $LDFLAGS; do
9868 aix_use_runtimelinking=yes
9875 exp_sym_flag='-bexport'
9876 no_entry_flag='-bnoentry'
9879 # When large executables or shared objects are built, AIX ld can
9880 # have problems creating the table of contents. If linking a library
9881 # or program results in "error TOC overflow" add -mminimal-toc to
9882 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9883 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9886 hardcode_direct_CXX=yes
9887 hardcode_libdir_separator_CXX=':'
9888 link_all_deplibs_CXX=yes
9890 if test "$GXX" = yes; then
9891 case $host_os in aix4.012|aix4.012.*)
9892 # We only want to do this on AIX 4.2 and lower, the check
9893 # below for broken collect2 doesn't work under 4.3+
9894 collect2name=`${CC} -print-prog-name=collect2`
9895 if test -f "$collect2name" && \
9896 strings "$collect2name" | grep resolve_lib_name >/dev/null
9898 # We have reworked collect2
9899 hardcode_direct_CXX=yes
9901 # We have old collect2
9902 hardcode_direct_CXX=unsupported
9903 # It fails to find uninstalled libraries when the uninstalled
9904 # path is not listed in the libpath. Setting hardcode_minus_L
9905 # to unsupported forces relinking
9906 hardcode_minus_L_CXX=yes
9907 hardcode_libdir_flag_spec_CXX='-L$libdir'
9908 hardcode_libdir_separator_CXX=
9911 shared_flag='-shared'
9914 if test "$host_cpu" = ia64; then
9915 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9916 # chokes on -Wl,-G. The following line is correct:
9919 if test "$aix_use_runtimelinking" = yes; then
9920 shared_flag='${wl}-G'
9922 shared_flag='${wl}-bM:SRE'
9927 # It seems that -bexpall does not export symbols beginning with
9928 # underscore (_), so it is better to generate a list of symbols to export.
9929 always_export_symbols_CXX=yes
9930 if test "$aix_use_runtimelinking" = yes; then
9931 # Warning - without using the other runtime loading flags (-brtl),
9932 # -berok will link without error, but may produce a broken library.
9933 allow_undefined_flag_CXX='-berok'
9934 # Determine the default libpath from the value encoded in an empty executable.
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9950 rm -f conftest.$ac_objext conftest$ac_exeext
9951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9952 (eval $ac_link) 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } &&
9959 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); }; } &&
9965 { ac_try='test -s conftest$ac_exeext'
9966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9970 (exit $ac_status); }; }; then
9972 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9974 # Check for a 64-bit object if we didn't find anything.
9975 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; }
9978 echo "$as_me: failed program was:" >&5
9979 sed 's/^/| /' conftest.$ac_ext >&5
9982 rm -f conftest.err conftest.$ac_objext \
9983 conftest$ac_exeext conftest.$ac_ext
9984 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9986 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9988 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"
9990 if test "$host_cpu" = ia64; then
9991 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9992 allow_undefined_flag_CXX="-z nodefs"
9993 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"
9995 # Determine the default libpath from the value encoded in an empty executable.
9996 cat >conftest.$ac_ext <<_ACEOF
9999 cat confdefs.h >>conftest.$ac_ext
10000 cat >>conftest.$ac_ext <<_ACEOF
10001 /* end confdefs.h. */
10011 rm -f conftest.$ac_objext conftest$ac_exeext
10012 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10013 (eval $ac_link) 2>conftest.er1
10015 grep -v '^ *+' conftest.er1 >conftest.err
10017 cat conftest.err >&5
10018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10019 (exit $ac_status); } &&
10020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10022 (eval $ac_try) 2>&5
10024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10025 (exit $ac_status); }; } &&
10026 { ac_try='test -s conftest$ac_exeext'
10027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10028 (eval $ac_try) 2>&5
10030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10031 (exit $ac_status); }; }; then
10033 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10035 # Check for a 64-bit object if we didn't find anything.
10036 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; }
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10043 rm -f conftest.err conftest.$ac_objext \
10044 conftest$ac_exeext conftest.$ac_ext
10045 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10047 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10048 # Warning - without using the other run time loading flags,
10049 # -berok will link without error, but may produce a broken library.
10050 no_undefined_flag_CXX=' ${wl}-bernotok'
10051 allow_undefined_flag_CXX=' ${wl}-berok'
10052 # -bexpall does not export symbols beginning with underscore (_)
10053 always_export_symbols_CXX=yes
10054 # Exported symbols can be pulled into shared objects from archives
10055 whole_archive_flag_spec_CXX=' '
10056 archive_cmds_need_lc_CXX=yes
10057 # This is similar to how AIX traditionally builds it's shared libraries.
10058 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'
10063 case $cc_basename in
10065 # FIXME: insert proper C++ library support
10071 cygwin* | mingw* | pw32*)
10072 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10073 # as there is no search path for DLLs.
10074 hardcode_libdir_flag_spec_CXX='-L$libdir'
10075 allow_undefined_flag_CXX=unsupported
10076 always_export_symbols_CXX=no
10077 enable_shared_with_static_runtimes_CXX=yes
10079 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10080 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'
10081 # If the export-symbols file already is a .def file (1st line
10082 # is EXPORTS), use it as is; otherwise, prepend...
10083 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10084 cp $export_symbols $output_objdir/$soname.def;
10086 echo EXPORTS > $output_objdir/$soname.def;
10087 cat $export_symbols >> $output_objdir/$soname.def;
10089 $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'
10095 darwin* | rhapsody*)
10096 if test "$GXX" = yes; then
10097 archive_cmds_need_lc_CXX=no
10099 rhapsody* | darwin1.[012])
10100 allow_undefined_flag_CXX='-undefined suppress'
10103 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10104 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10106 case ${MACOSX_DEPLOYMENT_TARGET} in
10108 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10111 allow_undefined_flag_CXX='-undefined dynamic_lookup'
10117 lt_int_apple_cc_single_mod=no
10118 output_verbose_link_cmd='echo'
10119 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10120 lt_int_apple_cc_single_mod=yes
10122 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10123 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10125 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'
10127 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10129 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10130 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10131 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}'
10133 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}'
10135 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}'
10136 hardcode_direct_CXX=no
10137 hardcode_automatic_CXX=yes
10138 hardcode_shlibpath_var_CXX=unsupported
10139 whole_archive_flag_spec_CXX='-all_load $convenience'
10140 link_all_deplibs_CXX=yes
10147 case $cc_basename in
10149 # FIXME: insert proper C++ library support
10153 # Green Hills C++ Compiler
10154 # FIXME: insert proper C++ library support
10158 # FIXME: insert proper C++ library support
10164 # C++ shared libraries reported to be fairly broken before switch to ELF
10168 archive_cmds_need_lc_CXX=no
10170 freebsd* | kfreebsd*-gnu)
10171 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10178 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10179 hardcode_libdir_separator_CXX=:
10180 export_dynamic_flag_spec_CXX='${wl}-E'
10181 hardcode_direct_CXX=yes
10182 hardcode_minus_L_CXX=yes # Not in the search PATH,
10183 # but as the default
10184 # location of the library.
10186 case $cc_basename in
10188 # FIXME: insert proper C++ library support
10192 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'
10193 # Commands to make compiler produce verbose output that lists
10194 # what "hidden" libraries, object files and flags are used when
10195 # linking a shared library.
10197 # There doesn't appear to be a way to prevent this compiler from
10198 # explicitly linking system object files so we need to strip them
10199 # from the output so that they don't get included in the library
10201 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'
10204 if test "$GXX" = yes; then
10205 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'
10207 # FIXME: insert proper C++ library support
10214 if test $with_gnu_ld = no; then
10215 case "$host_cpu" in
10217 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10218 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10219 hardcode_libdir_separator_CXX=:
10222 hardcode_libdir_flag_spec_CXX='-L$libdir'
10225 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10226 hardcode_libdir_separator_CXX=:
10227 export_dynamic_flag_spec_CXX='${wl}-E'
10231 case "$host_cpu" in
10233 hardcode_direct_CXX=no
10234 hardcode_shlibpath_var_CXX=no
10237 hardcode_direct_CXX=no
10238 hardcode_shlibpath_var_CXX=no
10239 hardcode_minus_L_CXX=yes # Not in the search PATH,
10240 # but as the default
10241 # location of the library.
10244 hardcode_direct_CXX=yes
10245 hardcode_minus_L_CXX=yes # Not in the search PATH,
10246 # but as the default
10247 # location of the library.
10251 case $cc_basename in
10253 # FIXME: insert proper C++ library support
10257 case "$host_cpu" in
10259 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10262 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10265 # Commands to make compiler produce verbose output that lists
10266 # what "hidden" libraries, object files and flags are used when
10267 # linking a shared library.
10269 # There doesn't appear to be a way to prevent this compiler from
10270 # explicitly linking system object files so we need to strip them
10271 # from the output so that they don't get included in the library
10273 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'
10276 if test "$GXX" = yes; then
10277 if test $with_gnu_ld = no; then
10278 case "$host_cpu" in
10280 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10283 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'
10288 # FIXME: insert proper C++ library support
10295 case $cc_basename in
10298 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'
10300 # Archives containing C++ object files must be created using
10301 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10302 # necessary to make sure instantiated templates are included
10304 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10307 if test "$GXX" = yes; then
10308 if test "$with_gnu_ld" = no; then
10309 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'
10311 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'
10314 link_all_deplibs_CXX=yes
10317 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10318 hardcode_libdir_separator_CXX=:
10321 case $cc_basename in
10323 # Kuck and Associates, Inc. (KAI) C++ Compiler
10325 # KCC will only create a shared library if the output file
10326 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10327 # to its proper name (with version) after linking.
10328 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'
10329 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'
10330 # Commands to make compiler produce verbose output that lists
10331 # what "hidden" libraries, object files and flags are used when
10332 # linking a shared library.
10334 # There doesn't appear to be a way to prevent this compiler from
10335 # explicitly linking system object files so we need to strip them
10336 # from the output so that they don't get included in the library
10338 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'
10340 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10341 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10343 # Archives containing C++ object files must be created using
10344 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10345 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10350 archive_cmds_need_lc_CXX=no
10351 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10352 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'
10353 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10354 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10355 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10359 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10360 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'
10362 runpath_var=LD_RUN_PATH
10363 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10364 hardcode_libdir_separator_CXX=:
10366 # Commands to make compiler produce verbose output that lists
10367 # what "hidden" libraries, object files and flags are used when
10368 # linking a shared library.
10370 # There doesn't appear to be a way to prevent this compiler from
10371 # explicitly linking system object files so we need to strip them
10372 # from the output so that they don't get included in the library
10374 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'
10379 # FIXME: insert proper C++ library support
10383 # FIXME: insert proper C++ library support
10387 case $cc_basename in
10389 # FIXME: insert proper C++ library support
10393 # FIXME: insert proper C++ library support
10398 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10399 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10400 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10402 hardcode_libdir_flag_spec_CXX='-R$libdir'
10403 hardcode_direct_CXX=yes
10404 hardcode_shlibpath_var_CXX=no
10406 # Workaround some broken pre-1.5 toolchains
10407 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10410 case $cc_basename in
10412 # Kuck and Associates, Inc. (KAI) C++ Compiler
10414 # KCC will only create a shared library if the output file
10415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10416 # to its proper name (with version) after linking.
10417 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
10419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10420 hardcode_libdir_separator_CXX=:
10422 # Archives containing C++ object files must be created using
10423 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10424 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10428 # Rational C++ 2.4.1
10429 # FIXME: insert proper C++ library support
10433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10434 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'
10436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10437 hardcode_libdir_separator_CXX=:
10439 # Commands to make compiler produce verbose output that lists
10440 # what "hidden" libraries, object files and flags are used when
10441 # linking a shared library.
10443 # There doesn't appear to be a way to prevent this compiler from
10444 # explicitly linking system object files so we need to strip them
10445 # from the output so that they don't get included in the library
10447 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'
10450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10452 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'
10454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10455 hardcode_libdir_separator_CXX=:
10457 # Commands to make compiler produce verbose output that lists
10458 # what "hidden" libraries, object files and flags are used when
10459 # linking a shared library.
10460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10463 # FIXME: insert proper C++ library support
10470 case $cc_basename in
10472 # Kuck and Associates, Inc. (KAI) C++ Compiler
10474 # KCC will only create a shared library if the output file
10475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10476 # to its proper name (with version) after linking.
10477 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'
10479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10480 hardcode_libdir_separator_CXX=:
10482 # Archives containing C++ object files must be created using
10483 # the KAI C++ compiler.
10484 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10487 # Rational C++ 2.4.1
10488 # FIXME: insert proper C++ library support
10492 allow_undefined_flag_CXX=' -expect_unresolved \*'
10493 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'
10494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10495 echo "-hidden">> $lib.exp~
10496 $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~
10499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10500 hardcode_libdir_separator_CXX=:
10502 # Commands to make compiler produce verbose output that lists
10503 # what "hidden" libraries, object files and flags are used when
10504 # linking a shared library.
10506 # There doesn't appear to be a way to prevent this compiler from
10507 # explicitly linking system object files so we need to strip them
10508 # from the output so that they don't get included in the library
10510 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'
10513 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10515 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'
10517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10518 hardcode_libdir_separator_CXX=:
10520 # Commands to make compiler produce verbose output that lists
10521 # what "hidden" libraries, object files and flags are used when
10522 # linking a shared library.
10523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10526 # FIXME: insert proper C++ library support
10533 # FIXME: insert proper C++ library support
10537 archive_cmds_need_lc_CXX=no
10538 case $cc_basename in
10540 # FIXME: insert proper C++ library support
10544 # FIXME: insert proper C++ library support
10550 case $cc_basename in
10553 # FIXME: insert proper C++ library support
10558 # FIXME: insert proper C++ library support
10562 # FIXME: insert proper C++ library support
10568 case $cc_basename in
10570 # Sun C++ 4.2, 5.x and Centerline C++
10571 no_undefined_flag_CXX=' -zdefs'
10572 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10573 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10574 $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'
10576 hardcode_libdir_flag_spec_CXX='-R$libdir'
10577 hardcode_shlibpath_var_CXX=no
10579 solaris2.0-5 | solaris2.0-5.*) ;;
10581 # The C++ compiler is used as linker so we must use $wl
10582 # flag to pass the commands to the underlying system
10584 # Supported since Solaris 2.6 (maybe 2.5.1?)
10585 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588 link_all_deplibs_CXX=yes
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.
10594 # There doesn't appear to be a way to prevent this compiler from
10595 # explicitly linking system object files so we need to strip them
10596 # from the output so that they don't get included in the library
10598 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'
10600 # Archives containing C++ object files must be created using
10601 # "CC -xar", where "CC" is the Sun C++ compiler. This is
10602 # necessary to make sure instantiated templates are included
10604 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10607 # Green Hills C++ Compiler
10608 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10610 # The C++ compiler must be used to create the archive.
10611 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10614 # GNU C++ compiler with Solaris linker
10615 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10616 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10617 if $CC --version | grep -v '^2\.7' > /dev/null; then
10618 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10619 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10620 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10622 # Commands to make compiler produce verbose output that lists
10623 # what "hidden" libraries, object files and flags are used when
10624 # linking a shared library.
10625 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10627 # g++ 2.7 appears to require `-G' NOT `-shared' on this
10629 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10630 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10631 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10633 # Commands to make compiler produce verbose output that lists
10634 # what "hidden" libraries, object files and flags are used when
10635 # linking a shared library.
10636 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10639 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10644 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10645 archive_cmds_need_lc_CXX=no
10648 case $cc_basename in
10650 # NonStop-UX NCC 3.20
10651 # FIXME: insert proper C++ library support
10655 # FIXME: insert proper C++ library support
10661 # FIXME: insert proper C++ library support
10665 # FIXME: insert proper C++ library support
10669 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10670 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10671 test "$ld_shlibs_CXX" = no && can_build_shared=no
10677 cat > conftest.$ac_ext <<EOF
10681 Foo (void) { a = 0; }
10687 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10688 (eval $ac_compile) 2>&5
10690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10691 (exit $ac_status); }; then
10692 # Parse the compiler output and extract the necessary
10693 # objects, libraries and library flags.
10695 # Sentinel used to keep track of whether or not we are before
10696 # the conftest object file.
10697 pre_test_object_deps_done=no
10699 # The `*' in the case matches for architectures that use `case' in
10700 # $output_verbose_cmd can trigger glob expansion during the loop
10701 # eval without this substitution.
10702 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10704 for p in `eval $output_verbose_link_cmd`; do
10708 # Some compilers place space between "-{L,R}" and the path.
10709 # Remove the space.
10710 if test $p = "-L" \
10711 || test $p = "-R"; then
10718 if test "$pre_test_object_deps_done" = no; then
10721 # Internal compiler library paths should come after those
10722 # provided the user. The postdeps already come after the
10723 # user supplied libs so there is no need to process them.
10724 if test -z "$compiler_lib_search_path_CXX"; then
10725 compiler_lib_search_path_CXX="${prev}${p}"
10727 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10730 # The "-l" case would never come before the object being
10731 # linked, so don't bother handling this case.
10734 if test -z "$postdeps_CXX"; then
10735 postdeps_CXX="${prev}${p}"
10737 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10743 # This assumes that the test object file only shows up
10744 # once in the compiler output.
10745 if test "$p" = "conftest.$objext"; then
10746 pre_test_object_deps_done=yes
10750 if test "$pre_test_object_deps_done" = no; then
10751 if test -z "$predep_objects_CXX"; then
10752 predep_objects_CXX="$p"
10754 predep_objects_CXX="$predep_objects_CXX $p"
10757 if test -z "$postdep_objects_CXX"; then
10758 postdep_objects_CXX="$p"
10760 postdep_objects_CXX="$postdep_objects_CXX $p"
10765 *) ;; # Ignore the rest.
10773 echo "libtool.m4: error: problem compiling CXX test program"
10776 $rm -f confest.$objext
10778 case " $postdeps_CXX " in
10779 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10782 lt_prog_compiler_wl_CXX=
10783 lt_prog_compiler_pic_CXX=
10784 lt_prog_compiler_static_CXX=
10786 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10787 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10789 # C++ specific cases for pic, static, wl, etc.
10790 if test "$GXX" = yes; then
10791 lt_prog_compiler_wl_CXX='-Wl,'
10792 lt_prog_compiler_static_CXX='-static'
10796 # All AIX code is PIC.
10797 if test "$host_cpu" = ia64; then
10798 # AIX 5 now supports IA64 processor
10799 lt_prog_compiler_static_CXX='-Bstatic'
10803 # FIXME: we need at least 68020 code to build shared libraries, but
10804 # adding the `-m68020' flag to GCC prevents building anything better,
10806 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10808 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10809 # PIC is the default for these OSes.
10811 mingw* | os2* | pw32*)
10812 # This hack is so that the source file can tell whether it is being
10813 # built for inclusion in a dll (and should export symbols for example).
10814 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10816 darwin* | rhapsody*)
10817 # PIC is the default on this platform
10818 # Common symbols not allowed in MH_DYLIB files
10819 lt_prog_compiler_pic_CXX='-fno-common'
10822 # DJGPP does not support shared libraries at all
10823 lt_prog_compiler_pic_CXX=
10826 if test -d /usr/nec; then
10827 lt_prog_compiler_pic_CXX=-Kconform_pic
10831 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10832 # not for PA HP-UX.
10833 case "$host_cpu" in
10837 lt_prog_compiler_pic_CXX='-fPIC'
10842 lt_prog_compiler_pic_CXX='-fPIC'
10848 # All AIX code is PIC.
10849 if test "$host_cpu" = ia64; then
10850 # AIX 5 now supports IA64 processor
10851 lt_prog_compiler_static_CXX='-Bstatic'
10853 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10857 case $cc_basename in
10859 # Green Hills C++ Compiler
10860 # _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"
10865 case $cc_basename in
10867 lt_prog_compiler_pic_CXX='-KPIC'
10870 # Green Hills C++ Compiler
10871 lt_prog_compiler_pic_CXX='-pic'
10877 freebsd* | kfreebsd*-gnu)
10878 # FreeBSD uses GNU C++
10880 hpux9* | hpux10* | hpux11*)
10881 case $cc_basename in
10883 lt_prog_compiler_wl_CXX='-Wl,'
10884 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10885 if test "$host_cpu" != ia64; then
10886 lt_prog_compiler_pic_CXX='+Z'
10890 lt_prog_compiler_wl_CXX='-Wl,'
10891 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10892 case "$host_cpu" in
10897 lt_prog_compiler_pic_CXX='+Z'
10905 irix5* | irix6* | nonstopux*)
10906 case $cc_basename in
10908 lt_prog_compiler_wl_CXX='-Wl,'
10909 lt_prog_compiler_static_CXX='-non_shared'
10910 # CC pic flag -KPIC is the default.
10917 case $cc_basename in
10920 lt_prog_compiler_wl_CXX='--backend -Wl,'
10921 lt_prog_compiler_pic_CXX='-fPIC'
10925 lt_prog_compiler_wl_CXX='-Wl,'
10926 lt_prog_compiler_pic_CXX='-KPIC'
10927 lt_prog_compiler_static_CXX='-static'
10931 # Make sure the PIC flag is empty. It appears that all Alpha
10932 # Linux and Compaq Tru64 Unix objects are PIC.
10933 lt_prog_compiler_pic_CXX=
10934 lt_prog_compiler_static_CXX='-non_shared'
10945 case $cc_basename in
10947 lt_prog_compiler_pic_CXX='-W c,exportall'
10953 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10955 osf3* | osf4* | osf5*)
10956 case $cc_basename in
10958 lt_prog_compiler_wl_CXX='--backend -Wl,'
10961 # Rational C++ 2.4.1
10962 lt_prog_compiler_pic_CXX='-pic'
10965 # Digital/Compaq C++
10966 lt_prog_compiler_wl_CXX='-Wl,'
10967 # Make sure the PIC flag is empty. It appears that all Alpha
10968 # Linux and Compaq Tru64 Unix objects are PIC.
10969 lt_prog_compiler_pic_CXX=
10970 lt_prog_compiler_static_CXX='-non_shared'
10979 case $cc_basename in
10981 lt_prog_compiler_pic_CXX='-fPIC'
10988 case $cc_basename in
10990 # Sun C++ 4.2, 5.x and Centerline C++
10991 lt_prog_compiler_pic_CXX='-KPIC'
10992 lt_prog_compiler_static_CXX='-Bstatic'
10993 lt_prog_compiler_wl_CXX='-Qoption ld '
10996 # Green Hills C++ Compiler
10997 lt_prog_compiler_pic_CXX='-PIC'
11004 case $cc_basename in
11007 lt_prog_compiler_pic_CXX='-pic'
11008 lt_prog_compiler_static_CXX='-Bstatic'
11012 lt_prog_compiler_pic_CXX='-pic'
11019 case $cc_basename in
11021 # NonStop-UX NCC 3.20
11022 lt_prog_compiler_pic_CXX='-KPIC'
11033 lt_prog_compiler_can_build_shared_CXX=no
11038 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11039 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11042 # Check to make sure the PIC flag actually works.
11044 if test -n "$lt_prog_compiler_pic_CXX"; then
11046 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11047 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11048 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 lt_prog_compiler_pic_works_CXX=no
11052 ac_outfile=conftest.$ac_objext
11053 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11054 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11055 # Insert the option either (1) after the last *FLAGS variable, or
11056 # (2) before a word containing "conftest.", or (3) at the end.
11057 # Note that $ac_compile itself does not contain backslashes and begins
11058 # with a dollar sign (not a hyphen), so the echo should work correctly.
11059 # The option is referenced via a variable to avoid confusing sed.
11060 lt_compile=`echo "$ac_compile" | $SED \
11061 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11062 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11063 -e 's:$: $lt_compiler_flag:'`
11064 (eval echo "\"\$as_me:11064: $lt_compile\"" >&5)
11065 (eval "$lt_compile" 2>conftest.err)
11067 cat conftest.err >&5
11068 echo "$as_me:11068: \$? = $ac_status" >&5
11069 if (exit $ac_status) && test -s "$ac_outfile"; then
11070 # The compiler can only warn and ignore the option if not recognized
11071 # So say no if there are warnings
11072 if test ! -s conftest.err; then
11073 lt_prog_compiler_pic_works_CXX=yes
11079 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11080 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11082 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11083 case $lt_prog_compiler_pic_CXX in
11085 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11088 lt_prog_compiler_pic_CXX=
11089 lt_prog_compiler_can_build_shared_CXX=no
11094 # For platforms which do not support PIC, -DPIC is meaningless:
11096 lt_prog_compiler_pic_CXX=
11099 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11103 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11104 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11105 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 lt_cv_prog_compiler_c_o_CXX=no
11109 $rm -r conftest 2>/dev/null
11113 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11115 lt_compiler_flag="-o out/conftest2.$ac_objext"
11116 # Insert the option either (1) after the last *FLAGS variable, or
11117 # (2) before a word containing "conftest.", or (3) at the end.
11118 # Note that $ac_compile itself does not contain backslashes and begins
11119 # with a dollar sign (not a hyphen), so the echo should work correctly.
11120 lt_compile=`echo "$ac_compile" | $SED \
11121 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11123 -e 's:$: $lt_compiler_flag:'`
11124 (eval echo "\"\$as_me:11124: $lt_compile\"" >&5)
11125 (eval "$lt_compile" 2>out/conftest.err)
11127 cat out/conftest.err >&5
11128 echo "$as_me:11128: \$? = $ac_status" >&5
11129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11131 # The compiler can only warn and ignore the option if not recognized
11132 # So say no if there are warnings
11133 if test ! -s out/conftest.err; then
11134 lt_cv_prog_compiler_c_o_CXX=yes
11139 # SGI C++ compiler will create directory out/ii_files/ for
11140 # template instantiation
11141 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11142 $rm out/* && rmdir out
11148 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11149 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11152 hard_links="nottested"
11153 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11154 # do not overwrite the value of need_locks provided by the user
11155 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11156 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11159 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11161 ln conftest.a conftest.b 2>&5 || hard_links=no
11162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11163 echo "$as_me:$LINENO: result: $hard_links" >&5
11164 echo "${ECHO_T}$hard_links" >&6
11165 if test "$hard_links" = no; then
11166 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11167 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11174 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11175 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11177 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11180 # If we're using GNU nm, then we don't want the "-C" option.
11181 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11182 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11183 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'
11185 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'
11189 export_symbols_cmds_CXX="$ltdll_cmds"
11192 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11195 link_all_deplibs_CXX=no
11198 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11202 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11203 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11204 test "$ld_shlibs_CXX" = no && can_build_shared=no
11206 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11207 if test "$GCC" = yes; then
11208 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11212 # Do we need to explicitly link libc?
11214 case "x$archive_cmds_need_lc_CXX" in
11216 # Assume -lc should be added
11217 archive_cmds_need_lc_CXX=yes
11219 if test "$enable_shared" = yes && test "$GCC" = yes; then
11220 case $archive_cmds_CXX in
11222 # FIXME: we may have to deal with multi-command sequences.
11225 # Test whether the compiler implicitly links with -lc since on some
11226 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11227 # to ld, don't add -lc before -lgcc.
11228 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11229 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11231 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11234 (eval $ac_compile) 2>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } 2>conftest.err; then
11240 libobjs=conftest.$ac_objext
11242 wl=$lt_prog_compiler_wl_CXX
11248 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11249 allow_undefined_flag_CXX=
11250 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11251 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11254 (exit $ac_status); }
11256 archive_cmds_need_lc_CXX=no
11258 archive_cmds_need_lc_CXX=yes
11260 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11262 cat conftest.err 1>&5
11265 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11266 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11273 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11274 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11275 library_names_spec=
11276 libname_spec='lib$name'
11280 postuninstall_cmds=
11284 shlibpath_overrides_runpath=unknown
11286 dynamic_linker="$host_os ld.so"
11287 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11288 if test "$GCC" = yes; then
11289 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11290 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11291 # if the path contains ";" then we assume it to be the separator
11292 # otherwise default to the standard path separator (i.e. ":") - it is
11293 # assumed that no part of a normal pathname contains ";" but that should
11294 # okay in the real world where ";" in dirpaths is itself problematic.
11295 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11297 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11300 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11302 need_lib_prefix=unknown
11303 hardcode_into_libs=no
11305 # when you set need_version to no, make sure it does not cause -set_version
11306 # flags to be left without arguments
11307 need_version=unknown
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11313 shlibpath_var=LIBPATH
11315 # AIX 3 has no versioning support, so we append a major version to the name.
11316 soname_spec='${libname}${release}${shared_ext}$major'
11323 hardcode_into_libs=yes
11324 if test "$host_cpu" = ia64; then
11325 # AIX 5 supports IA64
11326 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11327 shlibpath_var=LD_LIBRARY_PATH
11329 # With GCC up to 2.95.x, collect2 would create an import file
11330 # for dependence libraries. The import file would start with
11331 # the line `#! .'. This would cause the generated library to
11332 # depend on `.', always an invalid library. This was fixed in
11333 # development snapshots of GCC prior to 3.0.
11335 aix4 | aix4.[01] | aix4.[01].*)
11336 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11338 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11341 can_build_shared=no
11345 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11346 # soname into executable. Probably we can add versioning support to
11347 # collect2, so additional links can be useful in future.
11348 if test "$aix_use_runtimelinking" = yes; then
11349 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11350 # instead of lib<name>.a to let people know that these are not
11351 # typical AIX shared libraries.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 # We preserve .a as extension for shared libraries through AIX4.2
11355 # and later when we are not doing run time linking.
11356 library_names_spec='${libname}${release}.a $libname.a'
11357 soname_spec='${libname}${release}${shared_ext}$major'
11359 shlibpath_var=LIBPATH
11364 library_names_spec='$libname.ixlibrary $libname.a'
11365 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11366 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'
11370 library_names_spec='${libname}${shared_ext}'
11371 dynamic_linker="$host_os ld.so"
11372 shlibpath_var=LIBRARY_PATH
11378 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11379 soname_spec='${libname}${release}${shared_ext}$major'
11380 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11381 shlibpath_var=LD_LIBRARY_PATH
11382 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11383 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11384 # the default ld.so.conf also contains /usr/contrib/lib and
11385 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11386 # libtool to hard-code these into programs
11389 cygwin* | mingw* | pw32*)
11390 version_type=windows
11395 case $GCC,$host_os in
11396 yes,cygwin* | yes,mingw* | yes,pw32*)
11397 library_names_spec='$libname.dll.a'
11398 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11399 postinstall_cmds='base_file=`basename \${file}`~
11400 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11401 dldir=$destdir/`dirname \$dlpath`~
11402 test -d \$dldir || mkdir -p \$dldir~
11403 $install_prog $dir/$dlname \$dldir/$dlname'
11404 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11405 dlpath=$dir/\$dldll~
11407 shlibpath_overrides_runpath=yes
11411 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11412 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11413 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11416 # MinGW DLLs use traditional 'lib' prefix
11417 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11418 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11419 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11420 # It is most probably a Windows format PATH printed by
11421 # mingw gcc, but we are running on Cygwin. Gcc prints its search
11422 # path with ; separators, and with drive letters. We can handle the
11423 # drive letters (cygwin fileutils understands them), so leave them,
11424 # especially as we might pass files found there to a mingw objdump,
11425 # which wouldn't understand a cygwinified path. Ahh.
11426 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11428 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11432 # pw32 DLLs use 'pw' prefix rather than 'lib'
11433 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11439 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11442 dynamic_linker='Win32 ld.exe'
11443 # FIXME: first we should search . and the directory the executable is in
11447 darwin* | rhapsody*)
11448 dynamic_linker="$host_os dyld"
11449 version_type=darwin
11452 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11453 soname_spec='${libname}${release}${major}$shared_ext'
11454 shlibpath_overrides_runpath=yes
11455 shlibpath_var=DYLD_LIBRARY_PATH
11456 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11457 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11458 if test "$GCC" = yes; then
11459 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"`
11461 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11484 soname_spec='${libname}${release}${shared_ext}$major'
11485 shlibpath_var=LD_LIBRARY_PATH
11486 shlibpath_overrides_runpath=no
11487 hardcode_into_libs=yes
11488 dynamic_linker='GNU ld.so'
11492 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11493 version_type=freebsd-$objformat
11494 case $version_type in
11496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11505 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11510 freebsd3.01* | freebsdelf3.01*)
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11515 shlibpath_overrides_runpath=no
11516 hardcode_into_libs=yes
11525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11526 soname_spec='${libname}${release}${shared_ext}$major'
11527 shlibpath_var=LD_LIBRARY_PATH
11528 hardcode_into_libs=yes
11531 hpux9* | hpux10* | hpux11*)
11532 # Give a soname corresponding to the major version so that dld.sl refuses to
11533 # link against other versions.
11537 case "$host_cpu" in
11540 hardcode_into_libs=yes
11541 dynamic_linker="$host_os dld.so"
11542 shlibpath_var=LD_LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11545 soname_spec='${libname}${release}${shared_ext}$major'
11546 if test "X$HPUX_IA64_MODE" = X32; then
11547 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11549 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11551 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11555 hardcode_into_libs=yes
11556 dynamic_linker="$host_os dld.sl"
11557 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11558 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11560 soname_spec='${libname}${release}${shared_ext}$major'
11561 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11566 dynamic_linker="$host_os dld.sl"
11567 shlibpath_var=SHLIB_PATH
11568 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11569 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11570 soname_spec='${libname}${release}${shared_ext}$major'
11573 # HP-UX runs *really* slowly unless shared libraries are mode 555.
11574 postinstall_cmds='chmod 555 $lib'
11577 irix5* | irix6* | nonstopux*)
11579 nonstopux*) version_type=nonstopux ;;
11581 if test "$lt_cv_prog_gnu_ld" = yes; then
11589 soname_spec='${libname}${release}${shared_ext}$major'
11590 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11592 irix5* | nonstopux*)
11593 libsuff= shlibsuff=
11596 case $LD in # libtool.m4 will add one of these switches to LD
11597 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11598 libsuff= shlibsuff= libmagic=32-bit;;
11599 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11600 libsuff=32 shlibsuff=N32 libmagic=N32;;
11601 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11602 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11603 *) libsuff= shlibsuff= libmagic=never-match;;
11607 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11608 shlibpath_overrides_runpath=no
11609 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11610 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11611 hardcode_into_libs=yes
11614 # No shared lib support for Linux oldld, aout, or coff.
11615 linux*oldld* | linux*aout* | linux*coff*)
11619 # This must be Linux ELF.
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 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11627 shlibpath_var=LD_LIBRARY_PATH
11628 shlibpath_overrides_runpath=no
11629 # This implies no fast_install, which is unacceptable.
11630 # Some rework will be needed to allow for fast_install
11631 # before this can be enabled.
11632 hardcode_into_libs=yes
11634 # Append ld.so.conf contents to the search path
11635 if test -f /etc/ld.so.conf; then
11636 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11637 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11640 # We used to test for /lib/ld.so.1 and disable shared libraries on
11641 # powerpc, because MkLinux only supported shared libraries with the
11642 # GNU dynamic linker. Since this was broken with cross compilers,
11643 # most powerpc-linux boxes support dynamic linking these days and
11644 # people can always --disable-shared, the test was removed, and we
11645 # assume the GNU/Linux dynamic linker is in use.
11646 dynamic_linker='GNU/Linux ld.so'
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11654 soname_spec='${libname}${release}${shared_ext}$major'
11655 shlibpath_var=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath=no
11657 hardcode_into_libs=yes
11658 dynamic_linker='NetBSD ld.elf_so'
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11666 soname_spec='${libname}${release}${shared_ext}$major'
11667 shlibpath_var=LD_LIBRARY_PATH
11668 shlibpath_overrides_runpath=no
11669 hardcode_into_libs=yes
11670 dynamic_linker='GNU ld.so'
11677 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11679 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11680 dynamic_linker='NetBSD (a.out) ld.so'
11682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11683 soname_spec='${libname}${release}${shared_ext}$major'
11684 dynamic_linker='NetBSD ld.elf_so'
11686 shlibpath_var=LD_LIBRARY_PATH
11687 shlibpath_overrides_runpath=yes
11688 hardcode_into_libs=yes
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 shlibpath_var=LD_LIBRARY_PATH
11695 shlibpath_overrides_runpath=yes
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
11712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11713 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11714 shlibpath_var=LD_LIBRARY_PATH
11715 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11717 openbsd2.[89] | openbsd2.[89].*)
11718 shlibpath_overrides_runpath=no
11721 shlibpath_overrides_runpath=yes
11725 shlibpath_overrides_runpath=yes
11730 libname_spec='$name'
11733 library_names_spec='$libname${shared_ext} $libname.a'
11734 dynamic_linker='OS/2 ld.exe'
11735 shlibpath_var=LIBPATH
11738 osf3* | osf4* | osf5*)
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 shlibpath_var=LD_LIBRARY_PATH
11745 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11746 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11751 soname_spec='${libname}${release}${shared_ext}$major'
11752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11753 shlibpath_var=LD_LIBRARY_PATH
11760 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 soname_spec='${libname}${release}${shared_ext}$major'
11762 shlibpath_var=LD_LIBRARY_PATH
11763 shlibpath_overrides_runpath=yes
11764 hardcode_into_libs=yes
11765 # ldd complains unless libraries are executable
11766 postinstall_cmds='chmod +x $lib'
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11772 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11773 shlibpath_var=LD_LIBRARY_PATH
11774 shlibpath_overrides_runpath=yes
11775 if test "$with_gnu_ld" = yes; then
11781 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11785 shlibpath_var=LD_LIBRARY_PATH
11786 case $host_vendor in
11788 shlibpath_overrides_runpath=no
11790 export_dynamic_flag_spec='${wl}-Blargedynsym'
11791 runpath_var=LD_RUN_PATH
11799 shlibpath_overrides_runpath=no
11800 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11806 if test -d /usr/nec ;then
11808 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11809 soname_spec='$libname${shared_ext}.$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11817 soname_spec='${libname}${release}${shared_ext}$major'
11818 shlibpath_var=LD_LIBRARY_PATH
11825 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11826 echo "${ECHO_T}$dynamic_linker" >&6
11827 test "$dynamic_linker" = no && can_build_shared=no
11829 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11830 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11831 hardcode_action_CXX=
11832 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11833 test -n "$runpath_var CXX" || \
11834 test "X$hardcode_automatic_CXX"="Xyes" ; then
11836 # We can hardcode non-existant directories.
11837 if test "$hardcode_direct_CXX" != no &&
11838 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11839 # have to relink, otherwise we might link with an installed library
11840 # when we should be linking with a yet-to-be-installed one
11841 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11842 test "$hardcode_minus_L_CXX" != no; then
11843 # Linking always hardcodes the temporary library directory.
11844 hardcode_action_CXX=relink
11846 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11847 hardcode_action_CXX=immediate
11850 # We cannot hardcode anything, or else we can only hardcode existing
11852 hardcode_action_CXX=unsupported
11854 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11855 echo "${ECHO_T}$hardcode_action_CXX" >&6
11857 if test "$hardcode_action_CXX" = relink; then
11858 # Fast installation is not supported
11859 enable_fast_install=no
11860 elif test "$shlibpath_overrides_runpath" = yes ||
11861 test "$enable_shared" = no; then
11862 # Fast installation is not necessary
11863 enable_fast_install=needless
11868 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11869 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11870 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11871 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11872 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11873 echo "$as_me:$LINENO: result: yes" >&5
11874 echo "${ECHO_T}yes" >&6
11876 # FIXME - insert some real tests, host_os isn't really good enough
11879 if test -n "$STRIP" ; then
11880 striplib="$STRIP -x"
11881 echo "$as_me:$LINENO: result: yes" >&5
11882 echo "${ECHO_T}yes" >&6
11884 echo "$as_me:$LINENO: result: no" >&5
11885 echo "${ECHO_T}no" >&6
11889 echo "$as_me:$LINENO: result: no" >&5
11890 echo "${ECHO_T}no" >&6
11895 if test "x$enable_dlopen" != xyes; then
11896 enable_dlopen=unknown
11897 enable_dlopen_self=unknown
11898 enable_dlopen_self_static=unknown
11905 lt_cv_dlopen="load_add_on"
11907 lt_cv_dlopen_self=yes
11911 lt_cv_dlopen="LoadLibrary"
11916 lt_cv_dlopen="dlopen"
11921 # if libdl is installed we need to link against it
11922 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11923 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11924 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11925 echo $ECHO_N "(cached) $ECHO_C" >&6
11927 ac_check_lib_save_LIBS=$LIBS
11929 cat >conftest.$ac_ext <<_ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11936 /* Override any gcc2 internal prototype to avoid an error. */
11940 /* We use char because int might match the return type of a gcc2
11941 builtin and then its argument prototype would still apply. */
11951 rm -f conftest.$ac_objext conftest$ac_exeext
11952 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11953 (eval $ac_link) 2>conftest.er1
11955 grep -v '^ *+' conftest.er1 >conftest.err
11957 cat conftest.err >&5
11958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11959 (exit $ac_status); } &&
11960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11962 (eval $ac_try) 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest$ac_exeext'
11967 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11968 (eval $ac_try) 2>&5
11970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11971 (exit $ac_status); }; }; then
11972 ac_cv_lib_dl_dlopen=yes
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11977 ac_cv_lib_dl_dlopen=no
11979 rm -f conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$ac_check_lib_save_LIBS
11983 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11984 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11985 if test $ac_cv_lib_dl_dlopen = yes; then
11986 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11989 lt_cv_dlopen="dyld"
11991 lt_cv_dlopen_self=yes
11998 echo "$as_me:$LINENO: checking for shl_load" >&5
11999 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12000 if test "${ac_cv_func_shl_load+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12011 #define shl_load innocuous_shl_load
12013 /* System header to define __stub macros and hopefully few prototypes,
12014 which can conflict with char shl_load (); below.
12015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12016 <limits.h> exists even on freestanding compilers. */
12019 # include <limits.h>
12021 # include <assert.h>
12026 /* Override any gcc2 internal prototype to avoid an error. */
12031 /* We use char because int might match the return type of a gcc2
12032 builtin and then its argument prototype would still apply. */
12034 /* The GNU C library defines this for functions which it implements
12035 to always fail with ENOSYS. Some functions are actually named
12036 something starting with __ and the normal name is an alias. */
12037 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12040 char (*f) () = shl_load;
12049 return f != shl_load;
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12056 (eval $ac_link) 2>conftest.er1
12058 grep -v '^ *+' conftest.er1 >conftest.err
12060 cat conftest.err >&5
12061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062 (exit $ac_status); } &&
12063 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12064 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12065 (eval $ac_try) 2>&5
12067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12068 (exit $ac_status); }; } &&
12069 { ac_try='test -s conftest$ac_exeext'
12070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12071 (eval $ac_try) 2>&5
12073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12074 (exit $ac_status); }; }; then
12075 ac_cv_func_shl_load=yes
12077 echo "$as_me: failed program was:" >&5
12078 sed 's/^/| /' conftest.$ac_ext >&5
12080 ac_cv_func_shl_load=no
12082 rm -f conftest.err conftest.$ac_objext \
12083 conftest$ac_exeext conftest.$ac_ext
12085 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12086 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12087 if test $ac_cv_func_shl_load = yes; then
12088 lt_cv_dlopen="shl_load"
12090 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12091 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12092 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_check_lib_save_LIBS=$LIBS
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any gcc2 internal prototype to avoid an error. */
12108 /* We use char because int might match the return type of a gcc2
12109 builtin and then its argument prototype would still apply. */
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12121 (eval $ac_link) 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130 (eval $ac_try) 2>&5
12132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133 (exit $ac_status); }; } &&
12134 { ac_try='test -s conftest$ac_exeext'
12135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12136 (eval $ac_try) 2>&5
12138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); }; }; then
12140 ac_cv_lib_dld_shl_load=yes
12142 echo "$as_me: failed program was:" >&5
12143 sed 's/^/| /' conftest.$ac_ext >&5
12145 ac_cv_lib_dld_shl_load=no
12147 rm -f conftest.err conftest.$ac_objext \
12148 conftest$ac_exeext conftest.$ac_ext
12149 LIBS=$ac_check_lib_save_LIBS
12151 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12152 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12153 if test $ac_cv_lib_dld_shl_load = yes; then
12154 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12156 echo "$as_me:$LINENO: checking for dlopen" >&5
12157 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12158 if test "${ac_cv_func_dlopen+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12169 #define dlopen innocuous_dlopen
12171 /* System header to define __stub macros and hopefully few prototypes,
12172 which can conflict with char dlopen (); below.
12173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12174 <limits.h> exists even on freestanding compilers. */
12177 # include <limits.h>
12179 # include <assert.h>
12184 /* Override any gcc2 internal prototype to avoid an error. */
12189 /* We use char because int might match the return type of a gcc2
12190 builtin and then its argument prototype would still apply. */
12192 /* The GNU C library defines this for functions which it implements
12193 to always fail with ENOSYS. Some functions are actually named
12194 something starting with __ and the normal name is an alias. */
12195 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12198 char (*f) () = dlopen;
12207 return f != dlopen;
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12214 (eval $ac_link) 2>conftest.er1
12216 grep -v '^ *+' conftest.er1 >conftest.err
12218 cat conftest.err >&5
12219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12220 (exit $ac_status); } &&
12221 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12223 (eval $ac_try) 2>&5
12225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12226 (exit $ac_status); }; } &&
12227 { ac_try='test -s conftest$ac_exeext'
12228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12229 (eval $ac_try) 2>&5
12231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); }; }; then
12233 ac_cv_func_dlopen=yes
12235 echo "$as_me: failed program was:" >&5
12236 sed 's/^/| /' conftest.$ac_ext >&5
12238 ac_cv_func_dlopen=no
12240 rm -f conftest.err conftest.$ac_objext \
12241 conftest$ac_exeext conftest.$ac_ext
12243 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12244 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12245 if test $ac_cv_func_dlopen = yes; then
12246 lt_cv_dlopen="dlopen"
12248 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12249 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12250 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12251 echo $ECHO_N "(cached) $ECHO_C" >&6
12253 ac_check_lib_save_LIBS=$LIBS
12255 cat >conftest.$ac_ext <<_ACEOF
12258 cat confdefs.h >>conftest.$ac_ext
12259 cat >>conftest.$ac_ext <<_ACEOF
12260 /* end confdefs.h. */
12262 /* Override any gcc2 internal prototype to avoid an error. */
12266 /* We use char because int might match the return type of a gcc2
12267 builtin and then its argument prototype would still apply. */
12277 rm -f conftest.$ac_objext conftest$ac_exeext
12278 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12279 (eval $ac_link) 2>conftest.er1
12281 grep -v '^ *+' conftest.er1 >conftest.err
12283 cat conftest.err >&5
12284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12285 (exit $ac_status); } &&
12286 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12288 (eval $ac_try) 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; } &&
12292 { ac_try='test -s conftest$ac_exeext'
12293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12294 (eval $ac_try) 2>&5
12296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12297 (exit $ac_status); }; }; then
12298 ac_cv_lib_dl_dlopen=yes
12300 echo "$as_me: failed program was:" >&5
12301 sed 's/^/| /' conftest.$ac_ext >&5
12303 ac_cv_lib_dl_dlopen=no
12305 rm -f conftest.err conftest.$ac_objext \
12306 conftest$ac_exeext conftest.$ac_ext
12307 LIBS=$ac_check_lib_save_LIBS
12309 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12310 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12311 if test $ac_cv_lib_dl_dlopen = yes; then
12312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12314 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12315 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12316 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12317 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 ac_check_lib_save_LIBS=$LIBS
12320 LIBS="-lsvld $LIBS"
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 /* Override any gcc2 internal prototype to avoid an error. */
12332 /* We use char because int might match the return type of a gcc2
12333 builtin and then its argument prototype would still apply. */
12343 rm -f conftest.$ac_objext conftest$ac_exeext
12344 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12345 (eval $ac_link) 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } &&
12352 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12354 (eval $ac_try) 2>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); }; } &&
12358 { ac_try='test -s conftest$ac_exeext'
12359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12360 (eval $ac_try) 2>&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); }; }; then
12364 ac_cv_lib_svld_dlopen=yes
12366 echo "$as_me: failed program was:" >&5
12367 sed 's/^/| /' conftest.$ac_ext >&5
12369 ac_cv_lib_svld_dlopen=no
12371 rm -f conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12376 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12377 if test $ac_cv_lib_svld_dlopen = yes; then
12378 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12380 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12381 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12382 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 ac_check_lib_save_LIBS=$LIBS
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12394 /* Override any gcc2 internal prototype to avoid an error. */
12398 /* We use char because int might match the return type of a gcc2
12399 builtin and then its argument prototype would still apply. */
12409 rm -f conftest.$ac_objext conftest$ac_exeext
12410 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12411 (eval $ac_link) 2>conftest.er1
12413 grep -v '^ *+' conftest.er1 >conftest.err
12415 cat conftest.err >&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); } &&
12418 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; } &&
12424 { ac_try='test -s conftest$ac_exeext'
12425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12426 (eval $ac_try) 2>&5
12428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12429 (exit $ac_status); }; }; then
12430 ac_cv_lib_dld_dld_link=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.$ac_ext >&5
12435 ac_cv_lib_dld_dld_link=no
12437 rm -f conftest.err conftest.$ac_objext \
12438 conftest$ac_exeext conftest.$ac_ext
12439 LIBS=$ac_check_lib_save_LIBS
12441 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12442 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12443 if test $ac_cv_lib_dld_dld_link = yes; then
12444 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12465 if test "x$lt_cv_dlopen" != xno; then
12471 case $lt_cv_dlopen in
12473 save_CPPFLAGS="$CPPFLAGS"
12474 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12476 save_LDFLAGS="$LDFLAGS"
12477 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12480 LIBS="$lt_cv_dlopen_libs $LIBS"
12482 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12483 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12484 if test "${lt_cv_dlopen_self+set}" = set; then
12485 echo $ECHO_N "(cached) $ECHO_C" >&6
12487 if test "$cross_compiling" = yes; then :
12488 lt_cv_dlopen_self=cross
12490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12491 lt_status=$lt_dlunknown
12492 cat > conftest.$ac_ext <<EOF
12493 #line 12493 "configure"
12494 #include "confdefs.h"
12503 # define LT_DLGLOBAL RTLD_GLOBAL
12506 # define LT_DLGLOBAL DL_GLOBAL
12508 # define LT_DLGLOBAL 0
12512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12513 find out it does not work in some platform. */
12514 #ifndef LT_DLLAZY_OR_NOW
12516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12519 # define LT_DLLAZY_OR_NOW DL_LAZY
12522 # define LT_DLLAZY_OR_NOW RTLD_NOW
12525 # define LT_DLLAZY_OR_NOW DL_NOW
12527 # define LT_DLLAZY_OR_NOW 0
12535 extern "C" void exit (int);
12538 void fnord() { int i=42;}
12541 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12542 int status = $lt_dlunknown;
12546 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12547 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12548 /* dlclose (self); */
12554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12555 (eval $ac_link) 2>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12559 (./conftest; exit; ) 2>/dev/null
12561 case x$lt_status in
12562 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12563 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12564 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12567 # compilation failed
12568 lt_cv_dlopen_self=no
12575 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12576 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12578 if test "x$lt_cv_dlopen_self" = xyes; then
12579 LDFLAGS="$LDFLAGS $link_static_flag"
12580 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12581 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12582 if test "${lt_cv_dlopen_self_static+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 if test "$cross_compiling" = yes; then :
12586 lt_cv_dlopen_self_static=cross
12588 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12589 lt_status=$lt_dlunknown
12590 cat > conftest.$ac_ext <<EOF
12591 #line 12591 "configure"
12592 #include "confdefs.h"
12601 # define LT_DLGLOBAL RTLD_GLOBAL
12604 # define LT_DLGLOBAL DL_GLOBAL
12606 # define LT_DLGLOBAL 0
12610 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12611 find out it does not work in some platform. */
12612 #ifndef LT_DLLAZY_OR_NOW
12614 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12617 # define LT_DLLAZY_OR_NOW DL_LAZY
12620 # define LT_DLLAZY_OR_NOW RTLD_NOW
12623 # define LT_DLLAZY_OR_NOW DL_NOW
12625 # define LT_DLLAZY_OR_NOW 0
12633 extern "C" void exit (int);
12636 void fnord() { int i=42;}
12639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12640 int status = $lt_dlunknown;
12644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12645 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12646 /* dlclose (self); */
12652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12653 (eval $ac_link) 2>&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12656 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12657 (./conftest; exit; ) 2>/dev/null
12659 case x$lt_status in
12660 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12661 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12662 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12665 # compilation failed
12666 lt_cv_dlopen_self_static=no
12673 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12674 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12677 CPPFLAGS="$save_CPPFLAGS"
12678 LDFLAGS="$save_LDFLAGS"
12683 case $lt_cv_dlopen_self in
12684 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12685 *) enable_dlopen_self=unknown ;;
12688 case $lt_cv_dlopen_self_static in
12689 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12690 *) enable_dlopen_self_static=unknown ;;
12695 # The else clause should only fire when bootstrapping the
12696 # libtool distribution, otherwise you forgot to ship ltmain.sh
12697 # with your package, and you will get complaints that there are
12698 # no rules to generate ltmain.sh.
12699 if test -f "$ltmain"; then
12700 # See if we are running on zsh, and set the options which allow our commands through
12701 # without removal of \ escapes.
12702 if test -n "${ZSH_VERSION+set}" ; then
12703 setopt NO_GLOB_SUBST
12705 # Now quote all the things that may contain metacharacters while being
12706 # careful not to overquote the AC_SUBSTed values. We take copies of the
12707 # variables and quote the copies for generation of the libtool script.
12708 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12710 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12711 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12712 deplibs_check_method reload_flag reload_cmds need_locks \
12713 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12714 lt_cv_sys_global_symbol_to_c_name_address \
12715 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12716 old_postinstall_cmds old_postuninstall_cmds \
12720 lt_prog_compiler_wl_CXX \
12721 lt_prog_compiler_pic_CXX \
12722 lt_prog_compiler_static_CXX \
12723 lt_prog_compiler_no_builtin_flag_CXX \
12724 export_dynamic_flag_spec_CXX \
12725 thread_safe_flag_spec_CXX \
12726 whole_archive_flag_spec_CXX \
12727 enable_shared_with_static_runtimes_CXX \
12728 old_archive_cmds_CXX \
12729 old_archive_from_new_cmds_CXX \
12730 predep_objects_CXX \
12731 postdep_objects_CXX \
12734 compiler_lib_search_path_CXX \
12736 archive_expsym_cmds_CXX \
12737 postinstall_cmds_CXX \
12738 postuninstall_cmds_CXX \
12739 old_archive_from_expsyms_cmds_CXX \
12740 allow_undefined_flag_CXX \
12741 no_undefined_flag_CXX \
12742 export_symbols_cmds_CXX \
12743 hardcode_libdir_flag_spec_CXX \
12744 hardcode_libdir_flag_spec_ld_CXX \
12745 hardcode_libdir_separator_CXX \
12746 hardcode_automatic_CXX \
12748 module_expsym_cmds_CXX \
12749 lt_cv_prog_compiler_c_o_CXX \
12750 exclude_expsyms_CXX \
12751 include_expsyms_CXX; do
12754 old_archive_cmds_CXX | \
12755 old_archive_from_new_cmds_CXX | \
12756 archive_cmds_CXX | \
12757 archive_expsym_cmds_CXX | \
12758 module_cmds_CXX | \
12759 module_expsym_cmds_CXX | \
12760 old_archive_from_expsyms_cmds_CXX | \
12761 export_symbols_cmds_CXX | \
12762 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12763 postinstall_cmds | postuninstall_cmds | \
12764 old_postinstall_cmds | old_postuninstall_cmds | \
12765 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12766 # Double-quote double-evaled strings.
12767 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12770 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12776 *'\$0 --fallback-echo"')
12777 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12783 cat <<__EOF__ >> "$cfgfile"
12784 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12786 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12788 # Shell to use when invoking shell scripts.
12791 # Whether or not to build shared libraries.
12792 build_libtool_libs=$enable_shared
12794 # Whether or not to build static libraries.
12795 build_old_libs=$enable_static
12797 # Whether or not to add -lc for building shared libraries.
12798 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12800 # Whether or not to disallow shared libs when runtime libs are static
12801 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12803 # Whether or not to optimize for fast installation.
12804 fast_install=$enable_fast_install
12807 host_alias=$host_alias
12810 # An echo program that does not interpret backslashes.
12815 AR_FLAGS=$lt_AR_FLAGS
12820 # A language-specific compiler.
12821 CC=$lt_compiler_CXX
12823 # Is the compiler the GNU C compiler?
12829 # The linker used to build libraries.
12832 # Whether we need hard or soft links.
12835 # A BSD-compatible nm program.
12838 # A symbol stripping program
12841 # Used to examine libraries when file_magic_cmd begins "file"
12842 MAGIC_CMD=$MAGIC_CMD
12844 # Used on cygwin: DLL creation program.
12847 # Used on cygwin: object dumper.
12850 # Used on cygwin: assembler.
12853 # The name of the directory that contains temporary libtool files.
12856 # How to create reloadable object files.
12857 reload_flag=$lt_reload_flag
12858 reload_cmds=$lt_reload_cmds
12860 # How to pass a linker flag through the compiler.
12861 wl=$lt_lt_prog_compiler_wl_CXX
12863 # Object file suffix (normally "o").
12864 objext="$ac_objext"
12866 # Old archive suffix (normally "a").
12869 # Shared library suffix (normally ".so").
12870 shrext_cmds='$shrext_cmds'
12872 # Executable file suffix (normally "").
12875 # Additional compiler flags for building library objects.
12876 pic_flag=$lt_lt_prog_compiler_pic_CXX
12879 # What is the maximum length of a command?
12880 max_cmd_len=$lt_cv_sys_max_cmd_len
12882 # Does compiler simultaneously support -c and -o options?
12883 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12885 # Must we lock files when doing compilation ?
12886 need_locks=$lt_need_locks
12888 # Do we need the lib prefix for modules?
12889 need_lib_prefix=$need_lib_prefix
12891 # Do we need a version for libraries?
12892 need_version=$need_version
12894 # Whether dlopen is supported.
12895 dlopen_support=$enable_dlopen
12897 # Whether dlopen of programs is supported.
12898 dlopen_self=$enable_dlopen_self
12900 # Whether dlopen of statically linked programs is supported.
12901 dlopen_self_static=$enable_dlopen_self_static
12903 # Compiler flag to prevent dynamic linking.
12904 link_static_flag=$lt_lt_prog_compiler_static_CXX
12906 # Compiler flag to turn off builtin functions.
12907 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12909 # Compiler flag to allow reflexive dlopens.
12910 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12912 # Compiler flag to generate shared objects directly from archives.
12913 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12915 # Compiler flag to generate thread-safe objects.
12916 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12918 # Library versioning type.
12919 version_type=$version_type
12921 # Format of library name prefix.
12922 libname_spec=$lt_libname_spec
12924 # List of archive names. First name is the real one, the rest are links.
12925 # The last name is the one that the linker finds with -lNAME.
12926 library_names_spec=$lt_library_names_spec
12928 # The coded name of the library, if different from the real name.
12929 soname_spec=$lt_soname_spec
12931 # Commands used to build and install an old-style archive.
12933 old_archive_cmds=$lt_old_archive_cmds_CXX
12934 old_postinstall_cmds=$lt_old_postinstall_cmds
12935 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12937 # Create an old-style archive from a shared archive.
12938 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12940 # Create a temporary old-style archive to link instead of a shared archive.
12941 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12943 # Commands used to build and install a shared archive.
12944 archive_cmds=$lt_archive_cmds_CXX
12945 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12946 postinstall_cmds=$lt_postinstall_cmds
12947 postuninstall_cmds=$lt_postuninstall_cmds
12949 # Commands used to build a loadable module (assumed same as above if empty)
12950 module_cmds=$lt_module_cmds_CXX
12951 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12953 # Commands to strip libraries.
12954 old_striplib=$lt_old_striplib
12955 striplib=$lt_striplib
12957 # Dependencies to place before the objects being linked to create a
12959 predep_objects=$lt_predep_objects_CXX
12961 # Dependencies to place after the objects being linked to create a
12963 postdep_objects=$lt_postdep_objects_CXX
12965 # Dependencies to place before the objects being linked to create a
12967 predeps=$lt_predeps_CXX
12969 # Dependencies to place after the objects being linked to create a
12971 postdeps=$lt_postdeps_CXX
12973 # The library search path used internally by the compiler when linking
12974 # a shared library.
12975 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12977 # Method to check whether dependent libraries are shared objects.
12978 deplibs_check_method=$lt_deplibs_check_method
12980 # Command to use when deplibs_check_method == file_magic.
12981 file_magic_cmd=$lt_file_magic_cmd
12983 # Flag that allows shared libraries with undefined symbols to be built.
12984 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12986 # Flag that forces no undefined symbols.
12987 no_undefined_flag=$lt_no_undefined_flag_CXX
12989 # Commands used to finish a libtool library installation in a directory.
12990 finish_cmds=$lt_finish_cmds
12992 # Same as above, but a single script fragment to be evaled but not shown.
12993 finish_eval=$lt_finish_eval
12995 # Take the output of nm and produce a listing of raw symbols and C names.
12996 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12998 # Transform the output of nm in a proper C declaration
12999 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13001 # Transform the output of nm in a C name address pair
13002 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13004 # This is the shared library runtime path variable.
13005 runpath_var=$runpath_var
13007 # This is the shared library path variable.
13008 shlibpath_var=$shlibpath_var
13010 # Is shlibpath searched before the hard-coded library search path?
13011 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13013 # How to hardcode a shared library path into an executable.
13014 hardcode_action=$hardcode_action_CXX
13016 # Whether we should hardcode library paths into libraries.
13017 hardcode_into_libs=$hardcode_into_libs
13019 # Flag to hardcode \$libdir into a binary during linking.
13020 # This must work even if \$libdir does not exist.
13021 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13023 # If ld is used when linking, flag to hardcode \$libdir into
13024 # a binary during linking. This must work even if \$libdir does
13026 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13028 # Whether we need a single -rpath flag with a separated argument.
13029 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13031 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13032 # resulting binary.
13033 hardcode_direct=$hardcode_direct_CXX
13035 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13036 # resulting binary.
13037 hardcode_minus_L=$hardcode_minus_L_CXX
13039 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13040 # the resulting binary.
13041 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13043 # Set to yes if building a shared library automatically hardcodes DIR into the library
13044 # and all subsequent libraries and executables linked against it.
13045 hardcode_automatic=$hardcode_automatic_CXX
13047 # Variables whose values should be saved in libtool wrapper scripts and
13048 # restored at relink time.
13049 variables_saved_for_relink="$variables_saved_for_relink"
13051 # Whether libtool must link a program against all its dependency libraries.
13052 link_all_deplibs=$link_all_deplibs_CXX
13054 # Compile-time system search path for libraries
13055 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13057 # Run-time system search path for libraries
13058 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13060 # Fix the shell variable \$srcfile for the compiler.
13061 fix_srcfile_path="$fix_srcfile_path_CXX"
13063 # Set to yes if exported symbols are required.
13064 always_export_symbols=$always_export_symbols_CXX
13066 # The commands to list exported symbols.
13067 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13069 # The commands to extract the exported symbol list from a shared archive.
13070 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13072 # Symbols that should not be listed in the preloaded symbols.
13073 exclude_expsyms=$lt_exclude_expsyms_CXX
13075 # Symbols that must always be exported.
13076 include_expsyms=$lt_include_expsyms_CXX
13078 # ### END LIBTOOL TAG CONFIG: $tagname
13084 # If there is no Makefile yet, we rely on a make rule to execute
13085 # `config.status --recheck' to rerun these tests and create the
13086 # libtool script then.
13087 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13088 if test -f "$ltmain_in"; then
13089 test -f Makefile && make "$ltmain"
13095 ac_cpp='$CPP $CPPFLAGS'
13096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13104 with_gnu_ldcxx=$with_gnu_ld
13105 with_gnu_ld=$lt_save_with_gnu_ld
13106 lt_cv_path_LDCXX=$lt_cv_path_LD
13107 lt_cv_path_LD=$lt_save_path_LD
13108 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13109 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13117 if test -n "$F77" && test "X$F77" != "Xno"; then
13120 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13121 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13122 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13125 archive_cmds_need_lc_F77=no
13126 allow_undefined_flag_F77=
13127 always_export_symbols_F77=no
13128 archive_expsym_cmds_F77=
13129 export_dynamic_flag_spec_F77=
13130 hardcode_direct_F77=no
13131 hardcode_libdir_flag_spec_F77=
13132 hardcode_libdir_flag_spec_ld_F77=
13133 hardcode_libdir_separator_F77=
13134 hardcode_minus_L_F77=no
13135 hardcode_automatic_F77=no
13137 module_expsym_cmds_F77=
13138 link_all_deplibs_F77=unknown
13139 old_archive_cmds_F77=$old_archive_cmds
13140 no_undefined_flag_F77=
13141 whole_archive_flag_spec_F77=
13142 enable_shared_with_static_runtimes_F77=no
13144 # Source file extension for f77 test sources.
13147 # Object file extension for compiled f77 test sources.
13151 # Code to be used in simple compile tests
13152 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13154 # Code to be used in simple link tests
13155 lt_simple_link_test_code=" program t\n end\n"
13157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13159 # If no C compiler was specified, use CC.
13162 # Allow CC to be a program name with arguments.
13166 # Allow CC to be a program name with arguments.
13171 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13173 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13174 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13175 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13176 echo "${ECHO_T}$can_build_shared" >&6
13178 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13179 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13180 test "$can_build_shared" = "no" && enable_shared=no
13182 # On AIX, shared libraries and static libraries use the same namespace, and
13183 # are all built from PIC.
13186 test "$enable_shared" = yes && enable_static=no
13187 if test -n "$RANLIB"; then
13188 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13189 postinstall_cmds='$RANLIB $lib'
13193 test "$enable_shared" = yes && enable_static=no
13196 echo "$as_me:$LINENO: result: $enable_shared" >&5
13197 echo "${ECHO_T}$enable_shared" >&6
13199 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13200 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13201 # Make sure either enable_shared or enable_static is yes.
13202 test "$enable_shared" = yes || enable_static=yes
13203 echo "$as_me:$LINENO: result: $enable_static" >&5
13204 echo "${ECHO_T}$enable_static" >&6
13206 test "$ld_shlibs_F77" = no && can_build_shared=no
13211 lt_prog_compiler_wl_F77=
13212 lt_prog_compiler_pic_F77=
13213 lt_prog_compiler_static_F77=
13215 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13216 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13218 if test "$GCC" = yes; then
13219 lt_prog_compiler_wl_F77='-Wl,'
13220 lt_prog_compiler_static_F77='-static'
13224 # All AIX code is PIC.
13225 if test "$host_cpu" = ia64; then
13226 # AIX 5 now supports IA64 processor
13227 lt_prog_compiler_static_F77='-Bstatic'
13232 # FIXME: we need at least 68020 code to build shared libraries, but
13233 # adding the `-m68020' flag to GCC prevents building anything better,
13235 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13238 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13239 # PIC is the default for these OSes.
13242 mingw* | pw32* | os2*)
13243 # This hack is so that the source file can tell whether it is being
13244 # built for inclusion in a dll (and should export symbols for example).
13245 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13248 darwin* | rhapsody*)
13249 # PIC is the default on this platform
13250 # Common symbols not allowed in MH_DYLIB files
13251 lt_prog_compiler_pic_F77='-fno-common'
13255 # Just because we use GCC doesn't mean we suddenly get shared libraries
13256 # on systems that don't support them.
13257 lt_prog_compiler_can_build_shared_F77=no
13262 if test -d /usr/nec; then
13263 lt_prog_compiler_pic_F77=-Kconform_pic
13268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13269 # not for PA HP-UX.
13270 case "$host_cpu" in
13275 lt_prog_compiler_pic_F77='-fPIC'
13281 lt_prog_compiler_pic_F77='-fPIC'
13285 # PORTME Check for flag to pass linker flags through the system compiler.
13288 lt_prog_compiler_wl_F77='-Wl,'
13289 if test "$host_cpu" = ia64; then
13290 # AIX 5 now supports IA64 processor
13291 lt_prog_compiler_static_F77='-Bstatic'
13293 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13297 mingw* | pw32* | os2*)
13298 # This hack is so that the source file can tell whether it is being
13299 # built for inclusion in a dll (and should export symbols for example).
13300 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13303 hpux9* | hpux10* | hpux11*)
13304 lt_prog_compiler_wl_F77='-Wl,'
13305 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13306 # not for PA HP-UX.
13307 case "$host_cpu" in
13312 lt_prog_compiler_pic_F77='+Z'
13315 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13316 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13319 irix5* | irix6* | nonstopux*)
13320 lt_prog_compiler_wl_F77='-Wl,'
13321 # PIC (with -KPIC) is the default.
13322 lt_prog_compiler_static_F77='-non_shared'
13326 lt_prog_compiler_pic_F77='-KPIC'
13327 lt_prog_compiler_static_F77='-Bstatic'
13333 lt_prog_compiler_wl_F77='-Wl,'
13334 lt_prog_compiler_pic_F77='-KPIC'
13335 lt_prog_compiler_static_F77='-static'
13338 lt_prog_compiler_wl_F77='-Wl,'
13339 # All Alpha code is PIC.
13340 lt_prog_compiler_static_F77='-non_shared'
13345 osf3* | osf4* | osf5*)
13346 lt_prog_compiler_wl_F77='-Wl,'
13347 # All OSF/1 code is PIC.
13348 lt_prog_compiler_static_F77='-non_shared'
13352 lt_prog_compiler_pic_F77='-Kpic'
13353 lt_prog_compiler_static_F77='-dn'
13357 lt_prog_compiler_wl_F77='-Wl,'
13358 lt_prog_compiler_pic_F77='-KPIC'
13359 lt_prog_compiler_static_F77='-Bstatic'
13363 lt_prog_compiler_wl_F77='-Qoption ld '
13364 lt_prog_compiler_pic_F77='-PIC'
13365 lt_prog_compiler_static_F77='-Bstatic'
13368 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13369 lt_prog_compiler_wl_F77='-Wl,'
13370 lt_prog_compiler_pic_F77='-KPIC'
13371 lt_prog_compiler_static_F77='-Bstatic'
13375 if test -d /usr/nec ;then
13376 lt_prog_compiler_pic_F77='-Kconform_pic'
13377 lt_prog_compiler_static_F77='-Bstatic'
13382 lt_prog_compiler_pic_F77='-pic'
13383 lt_prog_compiler_static_F77='-Bstatic'
13387 lt_prog_compiler_can_build_shared_F77=no
13392 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13393 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13396 # Check to make sure the PIC flag actually works.
13398 if test -n "$lt_prog_compiler_pic_F77"; then
13400 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13401 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13402 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 lt_prog_compiler_pic_works_F77=no
13406 ac_outfile=conftest.$ac_objext
13407 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13408 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13409 # Insert the option either (1) after the last *FLAGS variable, or
13410 # (2) before a word containing "conftest.", or (3) at the end.
13411 # Note that $ac_compile itself does not contain backslashes and begins
13412 # with a dollar sign (not a hyphen), so the echo should work correctly.
13413 # The option is referenced via a variable to avoid confusing sed.
13414 lt_compile=`echo "$ac_compile" | $SED \
13415 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13416 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13417 -e 's:$: $lt_compiler_flag:'`
13418 (eval echo "\"\$as_me:13418: $lt_compile\"" >&5)
13419 (eval "$lt_compile" 2>conftest.err)
13421 cat conftest.err >&5
13422 echo "$as_me:13422: \$? = $ac_status" >&5
13423 if (exit $ac_status) && test -s "$ac_outfile"; then
13424 # The compiler can only warn and ignore the option if not recognized
13425 # So say no if there are warnings
13426 if test ! -s conftest.err; then
13427 lt_prog_compiler_pic_works_F77=yes
13433 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13434 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13436 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13437 case $lt_prog_compiler_pic_F77 in
13439 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13442 lt_prog_compiler_pic_F77=
13443 lt_prog_compiler_can_build_shared_F77=no
13448 # For platforms which do not support PIC, -DPIC is meaningless:
13450 lt_prog_compiler_pic_F77=
13453 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13457 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13458 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13459 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13460 echo $ECHO_N "(cached) $ECHO_C" >&6
13462 lt_cv_prog_compiler_c_o_F77=no
13463 $rm -r conftest 2>/dev/null
13467 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13469 lt_compiler_flag="-o out/conftest2.$ac_objext"
13470 # Insert the option either (1) after the last *FLAGS variable, or
13471 # (2) before a word containing "conftest.", or (3) at the end.
13472 # Note that $ac_compile itself does not contain backslashes and begins
13473 # with a dollar sign (not a hyphen), so the echo should work correctly.
13474 lt_compile=`echo "$ac_compile" | $SED \
13475 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13477 -e 's:$: $lt_compiler_flag:'`
13478 (eval echo "\"\$as_me:13478: $lt_compile\"" >&5)
13479 (eval "$lt_compile" 2>out/conftest.err)
13481 cat out/conftest.err >&5
13482 echo "$as_me:13482: \$? = $ac_status" >&5
13483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13485 # The compiler can only warn and ignore the option if not recognized
13486 # So say no if there are warnings
13487 if test ! -s out/conftest.err; then
13488 lt_cv_prog_compiler_c_o_F77=yes
13493 # SGI C++ compiler will create directory out/ii_files/ for
13494 # template instantiation
13495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13496 $rm out/* && rmdir out
13502 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13503 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13506 hard_links="nottested"
13507 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13508 # do not overwrite the value of need_locks provided by the user
13509 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13510 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13515 ln conftest.a conftest.b 2>&5 || hard_links=no
13516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13517 echo "$as_me:$LINENO: result: $hard_links" >&5
13518 echo "${ECHO_T}$hard_links" >&6
13519 if test "$hard_links" = no; then
13520 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13521 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13528 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13529 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13532 allow_undefined_flag_F77=
13533 enable_shared_with_static_runtimes_F77=no
13535 archive_expsym_cmds_F77=
13536 old_archive_From_new_cmds_F77=
13537 old_archive_from_expsyms_cmds_F77=
13538 export_dynamic_flag_spec_F77=
13539 whole_archive_flag_spec_F77=
13540 thread_safe_flag_spec_F77=
13541 hardcode_libdir_flag_spec_F77=
13542 hardcode_libdir_flag_spec_ld_F77=
13543 hardcode_libdir_separator_F77=
13544 hardcode_direct_F77=no
13545 hardcode_minus_L_F77=no
13546 hardcode_shlibpath_var_F77=unsupported
13547 link_all_deplibs_F77=unknown
13548 hardcode_automatic_F77=no
13550 module_expsym_cmds_F77=
13551 always_export_symbols_F77=no
13552 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13553 # include_expsyms should be a list of space-separated symbols to be *always*
13554 # included in the symbol list
13555 include_expsyms_F77=
13556 # exclude_expsyms can be an extended regexp of symbols to exclude
13557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13559 # as well as any symbol that contains `d'.
13560 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13562 # platforms (ab)use it in PIC code, but their linkers get confused if
13563 # the symbol is explicitly referenced. Since portable code cannot
13564 # rely on this symbol name, it's probably fine to never include it in
13565 # preloaded symbol tables.
13566 extract_expsyms_cmds=
13569 cygwin* | mingw* | pw32*)
13570 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13571 # When not using gcc, we currently assume that we are using
13572 # Microsoft Visual C++.
13573 if test "$GCC" != yes; then
13583 if test "$with_gnu_ld" = yes; then
13584 # If archive_cmds runs LD, not CC, wlarc should be empty
13587 # See if GNU ld supports shared libraries.
13589 aix3* | aix4* | aix5*)
13590 # On AIX/PPC, the GNU linker is very broken
13591 if test "$host_cpu" != ia64; then
13595 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13596 *** to be unable to reliably create shared libraries on AIX.
13597 *** Therefore, libtool is disabling shared libraries support. If you
13598 *** really care for shared libraries, you may want to modify your PATH
13599 *** so that a non-GNU linker is found, and then restart.
13606 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)'
13607 hardcode_libdir_flag_spec_F77='-L$libdir'
13608 hardcode_minus_L_F77=yes
13610 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13611 # that the semantics of dynamic libraries on AmigaOS, at least up
13612 # to version 4, is to share data among multiple programs linked
13613 # with the same dynamic library. Since this doesn't match the
13614 # behavior of shared libraries on other platforms, we can't use
13620 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13621 allow_undefined_flag_F77=unsupported
13622 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13623 # support --undefined. This deserves some investigation. FIXME
13624 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13630 cygwin* | mingw* | pw32*)
13631 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13632 # as there is no search path for DLLs.
13633 hardcode_libdir_flag_spec_F77='-L$libdir'
13634 allow_undefined_flag_F77=unsupported
13635 always_export_symbols_F77=no
13636 enable_shared_with_static_runtimes_F77=yes
13637 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13639 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13640 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13641 # If the export-symbols file already is a .def file (1st line
13642 # is EXPORTS), use it as is; otherwise, prepend...
13643 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13644 cp $export_symbols $output_objdir/$soname.def;
13646 echo EXPORTS > $output_objdir/$soname.def;
13647 cat $export_symbols >> $output_objdir/$soname.def;
13649 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13655 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
13656 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13657 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13660 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13661 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13666 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13670 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13671 *** create shared libraries on Solaris systems. Therefore, libtool
13672 *** is disabling shared libraries support. We urge you to upgrade GNU
13673 *** binutils to release 2.9.1 or newer. Another option is to modify
13674 *** your PATH or compiler configuration so that the native linker is
13675 *** used, and then restart.
13678 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13679 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13687 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13689 hardcode_direct_F77=yes
13690 hardcode_shlibpath_var_F77=no
13694 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13695 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13696 archive_cmds_F77="$tmp_archive_cmds"
13697 supports_anon_versioning=no
13698 case `$LD -v 2>/dev/null` in
13699 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13700 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13701 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13702 *\ 2.11.*) ;; # other 2.11 versions
13703 *) supports_anon_versioning=yes ;;
13705 if test $supports_anon_versioning = yes; then
13706 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13707 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13708 $echo "local: *; };" >> $output_objdir/$libname.ver~
13709 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13711 archive_expsym_cmds_F77="$tmp_archive_cmds"
13713 link_all_deplibs_F77=no
13720 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13721 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13722 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13729 if test "$ld_shlibs_F77" = yes; then
13730 runpath_var=LD_RUN_PATH
13731 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13732 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13733 # ancient GNU ld didn't support --whole-archive et. al.
13734 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13735 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13737 whole_archive_flag_spec_F77=
13741 # PORTME fill in a description of your system's linker (not GNU ld)
13744 allow_undefined_flag_F77=unsupported
13745 always_export_symbols_F77=yes
13746 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'
13747 # Note: this linker hardcodes the directories in LIBPATH if there
13748 # are no directories specified by -L.
13749 hardcode_minus_L_F77=yes
13750 if test "$GCC" = yes && test -z "$link_static_flag"; then
13751 # Neither direct hardcoding nor static linking is supported with a
13753 hardcode_direct_F77=unsupported
13758 if test "$host_cpu" = ia64; then
13759 # On IA64, the linker does run time linking by default, so we don't
13760 # have to do anything special.
13761 aix_use_runtimelinking=no
13762 exp_sym_flag='-Bexport'
13765 # If we're using GNU nm, then we don't want the "-C" option.
13766 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13767 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13768 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'
13770 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'
13772 aix_use_runtimelinking=no
13774 # Test if we are trying to use run time linking or normal
13775 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13776 # need to do runtime linking.
13777 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13778 for ld_flag in $LDFLAGS; do
13779 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13780 aix_use_runtimelinking=yes
13786 exp_sym_flag='-bexport'
13787 no_entry_flag='-bnoentry'
13790 # When large executables or shared objects are built, AIX ld can
13791 # have problems creating the table of contents. If linking a library
13792 # or program results in "error TOC overflow" add -mminimal-toc to
13793 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13794 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13796 archive_cmds_F77=''
13797 hardcode_direct_F77=yes
13798 hardcode_libdir_separator_F77=':'
13799 link_all_deplibs_F77=yes
13801 if test "$GCC" = yes; then
13802 case $host_os in aix4.012|aix4.012.*)
13803 # We only want to do this on AIX 4.2 and lower, the check
13804 # below for broken collect2 doesn't work under 4.3+
13805 collect2name=`${CC} -print-prog-name=collect2`
13806 if test -f "$collect2name" && \
13807 strings "$collect2name" | grep resolve_lib_name >/dev/null
13809 # We have reworked collect2
13810 hardcode_direct_F77=yes
13812 # We have old collect2
13813 hardcode_direct_F77=unsupported
13814 # It fails to find uninstalled libraries when the uninstalled
13815 # path is not listed in the libpath. Setting hardcode_minus_L
13816 # to unsupported forces relinking
13817 hardcode_minus_L_F77=yes
13818 hardcode_libdir_flag_spec_F77='-L$libdir'
13819 hardcode_libdir_separator_F77=
13822 shared_flag='-shared'
13825 if test "$host_cpu" = ia64; then
13826 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13827 # chokes on -Wl,-G. The following line is correct:
13830 if test "$aix_use_runtimelinking" = yes; then
13831 shared_flag='${wl}-G'
13833 shared_flag='${wl}-bM:SRE'
13838 # It seems that -bexpall does not export symbols beginning with
13839 # underscore (_), so it is better to generate a list of symbols to export.
13840 always_export_symbols_F77=yes
13841 if test "$aix_use_runtimelinking" = yes; then
13842 # Warning - without using the other runtime loading flags (-brtl),
13843 # -berok will link without error, but may produce a broken library.
13844 allow_undefined_flag_F77='-berok'
13845 # Determine the default libpath from the value encoded in an empty executable.
13846 cat >conftest.$ac_ext <<_ACEOF
13851 rm -f conftest.$ac_objext conftest$ac_exeext
13852 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13853 (eval $ac_link) 2>conftest.er1
13855 grep -v '^ *+' conftest.er1 >conftest.err
13857 cat conftest.err >&5
13858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859 (exit $ac_status); } &&
13860 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862 (eval $ac_try) 2>&5
13864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865 (exit $ac_status); }; } &&
13866 { ac_try='test -s conftest$ac_exeext'
13867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13868 (eval $ac_try) 2>&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13871 (exit $ac_status); }; }; then
13873 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13875 # Check for a 64-bit object if we didn't find anything.
13876 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; }
13879 echo "$as_me: failed program was:" >&5
13880 sed 's/^/| /' conftest.$ac_ext >&5
13883 rm -f conftest.err conftest.$ac_objext \
13884 conftest$ac_exeext conftest.$ac_ext
13885 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13887 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13888 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"
13890 if test "$host_cpu" = ia64; then
13891 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13892 allow_undefined_flag_F77="-z nodefs"
13893 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"
13895 # Determine the default libpath from the value encoded in an empty executable.
13896 cat >conftest.$ac_ext <<_ACEOF
13901 rm -f conftest.$ac_objext conftest$ac_exeext
13902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13903 (eval $ac_link) 2>conftest.er1
13905 grep -v '^ *+' conftest.er1 >conftest.err
13907 cat conftest.err >&5
13908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13909 (exit $ac_status); } &&
13910 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
13911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13912 (eval $ac_try) 2>&5
13914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13915 (exit $ac_status); }; } &&
13916 { ac_try='test -s conftest$ac_exeext'
13917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13918 (eval $ac_try) 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13923 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13925 # Check for a 64-bit object if we didn't find anything.
13926 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; }
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13933 rm -f conftest.err conftest.$ac_objext \
13934 conftest$ac_exeext conftest.$ac_ext
13935 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13937 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13938 # Warning - without using the other run time loading flags,
13939 # -berok will link without error, but may produce a broken library.
13940 no_undefined_flag_F77=' ${wl}-bernotok'
13941 allow_undefined_flag_F77=' ${wl}-berok'
13942 # -bexpall does not export symbols beginning with underscore (_)
13943 always_export_symbols_F77=yes
13944 # Exported symbols can be pulled into shared objects from archives
13945 whole_archive_flag_spec_F77=' '
13946 archive_cmds_need_lc_F77=yes
13947 # This is similar to how AIX traditionally builds it's shared libraries.
13948 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'
13954 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)'
13955 hardcode_libdir_flag_spec_F77='-L$libdir'
13956 hardcode_minus_L_F77=yes
13957 # see comment about different semantics on the GNU ld section
13962 export_dynamic_flag_spec_F77=-rdynamic
13965 cygwin* | mingw* | pw32*)
13966 # When not using gcc, we currently assume that we are using
13967 # Microsoft Visual C++.
13968 # hardcode_libdir_flag_spec is actually meaningless, as there is
13969 # no search path for DLLs.
13970 hardcode_libdir_flag_spec_F77=' '
13971 allow_undefined_flag_F77=unsupported
13972 # Tell ltmain to make .lib files, not .a files.
13974 # Tell ltmain to make .dll files, not .so files.
13976 # FIXME: Setting linknames here is a bad hack.
13977 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13978 # The linker will automatically build a .lib file if we build a DLL.
13979 old_archive_From_new_cmds_F77='true'
13980 # FIXME: Should let the user specify the lib program.
13981 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13982 fix_srcfile_path='`cygpath -w "$srcfile"`'
13983 enable_shared_with_static_runtimes_F77=yes
13986 darwin* | rhapsody*)
13987 if test "$GXX" = yes ; then
13988 archive_cmds_need_lc_F77=no
13990 rhapsody* | darwin1.[012])
13991 allow_undefined_flag_F77='-undefined suppress'
13994 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13995 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13997 case ${MACOSX_DEPLOYMENT_TARGET} in
13999 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14002 allow_undefined_flag_F77='-undefined dynamic_lookup'
14008 lt_int_apple_cc_single_mod=no
14009 output_verbose_link_cmd='echo'
14010 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14011 lt_int_apple_cc_single_mod=yes
14013 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14014 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14016 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'
14018 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14019 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14020 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14021 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}'
14023 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}'
14025 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}'
14026 hardcode_direct_F77=no
14027 hardcode_automatic_F77=yes
14028 hardcode_shlibpath_var_F77=unsupported
14029 whole_archive_flag_spec_F77='-all_load $convenience'
14030 link_all_deplibs_F77=yes
14037 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14038 hardcode_libdir_flag_spec_F77='-L$libdir'
14039 hardcode_shlibpath_var_F77=no
14046 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14047 # support. Future versions do this automatically, but an explicit c++rt0.o
14048 # does not break anything, and helps significantly (at the cost of a little
14051 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14052 hardcode_libdir_flag_spec_F77='-R$libdir'
14053 hardcode_direct_F77=yes
14054 hardcode_shlibpath_var_F77=no
14057 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14059 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14060 hardcode_direct_F77=yes
14061 hardcode_minus_L_F77=yes
14062 hardcode_shlibpath_var_F77=no
14065 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14066 freebsd* | kfreebsd*-gnu)
14067 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14068 hardcode_libdir_flag_spec_F77='-R$libdir'
14069 hardcode_direct_F77=yes
14070 hardcode_shlibpath_var_F77=no
14074 if test "$GCC" = yes; then
14075 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'
14077 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'
14079 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14080 hardcode_libdir_separator_F77=:
14081 hardcode_direct_F77=yes
14083 # hardcode_minus_L: Not really in the search PATH,
14084 # but as the default location of the library.
14085 hardcode_minus_L_F77=yes
14086 export_dynamic_flag_spec_F77='${wl}-E'
14090 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14091 case "$host_cpu" in
14093 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14096 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14100 case "$host_cpu" in
14102 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14109 if test "$with_gnu_ld" = no; then
14110 case "$host_cpu" in
14112 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14113 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14114 hardcode_libdir_separator_F77=:
14115 hardcode_direct_F77=no
14116 hardcode_shlibpath_var_F77=no
14119 hardcode_libdir_flag_spec_F77='-L$libdir'
14120 hardcode_direct_F77=no
14121 hardcode_shlibpath_var_F77=no
14123 # hardcode_minus_L: Not really in the search PATH,
14124 # but as the default location of the library.
14125 hardcode_minus_L_F77=yes
14128 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14129 hardcode_libdir_separator_F77=:
14130 hardcode_direct_F77=yes
14131 export_dynamic_flag_spec_F77='${wl}-E'
14133 # hardcode_minus_L: Not really in the search PATH,
14134 # but as the default location of the library.
14135 hardcode_minus_L_F77=yes
14141 irix5* | irix6* | nonstopux*)
14142 if test "$GCC" = yes; then
14143 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'
14145 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'
14146 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14148 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14149 hardcode_libdir_separator_F77=:
14150 link_all_deplibs_F77=yes
14153 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
14154 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14155 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14157 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14159 hardcode_libdir_flag_spec_F77='-R$libdir'
14160 hardcode_direct_F77=yes
14161 hardcode_shlibpath_var_F77=no
14165 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14166 hardcode_direct_F77=yes
14167 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14168 hardcode_libdir_separator_F77=:
14169 hardcode_shlibpath_var_F77=no
14173 hardcode_direct_F77=yes
14174 hardcode_shlibpath_var_F77=no
14175 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14176 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14177 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14178 export_dynamic_flag_spec_F77='${wl}-E'
14181 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14182 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14183 hardcode_libdir_flag_spec_F77='-R$libdir'
14186 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14187 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14194 hardcode_libdir_flag_spec_F77='-L$libdir'
14195 hardcode_minus_L_F77=yes
14196 allow_undefined_flag_F77=unsupported
14197 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'
14198 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14202 if test "$GCC" = yes; then
14203 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14204 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'
14206 allow_undefined_flag_F77=' -expect_unresolved \*'
14207 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'
14209 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14210 hardcode_libdir_separator_F77=:
14213 osf4* | osf5*) # as osf3* with the addition of -msym flag
14214 if test "$GCC" = yes; then
14215 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14216 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'
14217 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14219 allow_undefined_flag_F77=' -expect_unresolved \*'
14220 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'
14221 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~
14222 $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'
14224 # Both c and cxx compiler support -rpath directly
14225 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14227 hardcode_libdir_separator_F77=:
14231 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14232 hardcode_shlibpath_var_F77=no
14233 export_dynamic_flag_spec_F77='${wl}-Bexport'
14234 runpath_var=LD_RUN_PATH
14235 hardcode_runpath_var=yes
14239 no_undefined_flag_F77=' -z text'
14240 if test "$GCC" = yes; then
14241 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14243 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14245 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14246 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14247 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14249 hardcode_libdir_flag_spec_F77='-R$libdir'
14250 hardcode_shlibpath_var_F77=no
14252 solaris2.[0-5] | solaris2.[0-5].*) ;;
14253 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14254 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14256 link_all_deplibs_F77=yes
14260 if test "x$host_vendor" = xsequent; then
14261 # Use $CC to link under sequent, because it throws in some extra .o
14262 # files that make .init and .fini sections work.
14263 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14265 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14267 hardcode_libdir_flag_spec_F77='-L$libdir'
14268 hardcode_direct_F77=yes
14269 hardcode_minus_L_F77=yes
14270 hardcode_shlibpath_var_F77=no
14274 case $host_vendor in
14276 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14277 hardcode_direct_F77=yes # is this really true???
14280 ## LD is ld it makes a PLAMLIB
14281 ## CC just makes a GrossModule.
14282 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14283 reload_cmds_F77='$CC -r -o $output$reload_objs'
14284 hardcode_direct_F77=no
14287 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14288 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14291 runpath_var='LD_RUN_PATH'
14292 hardcode_shlibpath_var_F77=no
14296 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297 hardcode_shlibpath_var_F77=no
14298 export_dynamic_flag_spec_F77='-Bexport'
14302 if test -d /usr/nec; then
14303 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14304 hardcode_shlibpath_var_F77=no
14305 runpath_var=LD_RUN_PATH
14306 hardcode_runpath_var=yes
14312 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14313 hardcode_direct_F77=yes
14314 hardcode_minus_L_F77=no
14315 hardcode_shlibpath_var_F77=no
14316 hardcode_runpath_var=yes
14317 runpath_var=LD_RUN_PATH
14320 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
14321 no_undefined_flag_F77='${wl}-z ${wl}text'
14322 if test "$GCC" = yes; then
14323 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14325 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14327 runpath_var='LD_RUN_PATH'
14328 hardcode_shlibpath_var_F77=no
14332 no_undefined_flag_F77=' -z text'
14333 # $CC -shared without GNU ld will not create a library from C++
14334 # object files and a static libstdc++, better avoid it by now
14335 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14336 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14337 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14338 hardcode_libdir_flag_spec_F77=
14339 hardcode_shlibpath_var_F77=no
14340 runpath_var='LD_RUN_PATH'
14344 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14345 hardcode_libdir_flag_spec_F77='-L$libdir'
14346 hardcode_shlibpath_var_F77=no
14355 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14356 echo "${ECHO_T}$ld_shlibs_F77" >&6
14357 test "$ld_shlibs_F77" = no && can_build_shared=no
14359 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14360 if test "$GCC" = yes; then
14361 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14365 # Do we need to explicitly link libc?
14367 case "x$archive_cmds_need_lc_F77" in
14369 # Assume -lc should be added
14370 archive_cmds_need_lc_F77=yes
14372 if test "$enable_shared" = yes && test "$GCC" = yes; then
14373 case $archive_cmds_F77 in
14375 # FIXME: we may have to deal with multi-command sequences.
14378 # Test whether the compiler implicitly links with -lc since on some
14379 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14380 # to ld, don't add -lc before -lgcc.
14381 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14382 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14384 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14386 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14387 (eval $ac_compile) 2>&5
14389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14390 (exit $ac_status); } 2>conftest.err; then
14393 libobjs=conftest.$ac_objext
14395 wl=$lt_prog_compiler_wl_F77
14401 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14402 allow_undefined_flag_F77=
14403 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14404 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }
14409 archive_cmds_need_lc_F77=no
14411 archive_cmds_need_lc_F77=yes
14413 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14415 cat conftest.err 1>&5
14418 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14419 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14426 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14427 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14428 library_names_spec=
14429 libname_spec='lib$name'
14433 postuninstall_cmds=
14437 shlibpath_overrides_runpath=unknown
14439 dynamic_linker="$host_os ld.so"
14440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14441 if test "$GCC" = yes; then
14442 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14443 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14444 # if the path contains ";" then we assume it to be the separator
14445 # otherwise default to the standard path separator (i.e. ":") - it is
14446 # assumed that no part of a normal pathname contains ";" but that should
14447 # okay in the real world where ";" in dirpaths is itself problematic.
14448 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14450 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14453 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14455 need_lib_prefix=unknown
14456 hardcode_into_libs=no
14458 # when you set need_version to no, make sure it does not cause -set_version
14459 # flags to be left without arguments
14460 need_version=unknown
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14466 shlibpath_var=LIBPATH
14468 # AIX 3 has no versioning support, so we append a major version to the name.
14469 soname_spec='${libname}${release}${shared_ext}$major'
14476 hardcode_into_libs=yes
14477 if test "$host_cpu" = ia64; then
14478 # AIX 5 supports IA64
14479 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14480 shlibpath_var=LD_LIBRARY_PATH
14482 # With GCC up to 2.95.x, collect2 would create an import file
14483 # for dependence libraries. The import file would start with
14484 # the line `#! .'. This would cause the generated library to
14485 # depend on `.', always an invalid library. This was fixed in
14486 # development snapshots of GCC prior to 3.0.
14488 aix4 | aix4.[01] | aix4.[01].*)
14489 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14491 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14494 can_build_shared=no
14498 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14499 # soname into executable. Probably we can add versioning support to
14500 # collect2, so additional links can be useful in future.
14501 if test "$aix_use_runtimelinking" = yes; then
14502 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14503 # instead of lib<name>.a to let people know that these are not
14504 # typical AIX shared libraries.
14505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14507 # We preserve .a as extension for shared libraries through AIX4.2
14508 # and later when we are not doing run time linking.
14509 library_names_spec='${libname}${release}.a $libname.a'
14510 soname_spec='${libname}${release}${shared_ext}$major'
14512 shlibpath_var=LIBPATH
14517 library_names_spec='$libname.ixlibrary $libname.a'
14518 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14519 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'
14523 library_names_spec='${libname}${shared_ext}'
14524 dynamic_linker="$host_os ld.so"
14525 shlibpath_var=LIBRARY_PATH
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 soname_spec='${libname}${release}${shared_ext}$major'
14533 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14534 shlibpath_var=LD_LIBRARY_PATH
14535 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14536 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14537 # the default ld.so.conf also contains /usr/contrib/lib and
14538 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14539 # libtool to hard-code these into programs
14542 cygwin* | mingw* | pw32*)
14543 version_type=windows
14548 case $GCC,$host_os in
14549 yes,cygwin* | yes,mingw* | yes,pw32*)
14550 library_names_spec='$libname.dll.a'
14551 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14552 postinstall_cmds='base_file=`basename \${file}`~
14553 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14554 dldir=$destdir/`dirname \$dlpath`~
14555 test -d \$dldir || mkdir -p \$dldir~
14556 $install_prog $dir/$dlname \$dldir/$dlname'
14557 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14558 dlpath=$dir/\$dldll~
14560 shlibpath_overrides_runpath=yes
14564 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14565 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14566 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14569 # MinGW DLLs use traditional 'lib' prefix
14570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14571 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14572 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14573 # It is most probably a Windows format PATH printed by
14574 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14575 # path with ; separators, and with drive letters. We can handle the
14576 # drive letters (cygwin fileutils understands them), so leave them,
14577 # especially as we might pass files found there to a mingw objdump,
14578 # which wouldn't understand a cygwinified path. Ahh.
14579 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14585 # pw32 DLLs use 'pw' prefix rather than 'lib'
14586 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14592 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14595 dynamic_linker='Win32 ld.exe'
14596 # FIXME: first we should search . and the directory the executable is in
14600 darwin* | rhapsody*)
14601 dynamic_linker="$host_os dyld"
14602 version_type=darwin
14605 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14606 soname_spec='${libname}${release}${major}$shared_ext'
14607 shlibpath_overrides_runpath=yes
14608 shlibpath_var=DYLD_LIBRARY_PATH
14609 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14610 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14611 if test "$GCC" = yes; then
14612 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"`
14614 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14616 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14624 soname_spec='${libname}${release}${shared_ext}$major'
14625 shlibpath_var=LD_LIBRARY_PATH
14636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14637 soname_spec='${libname}${release}${shared_ext}$major'
14638 shlibpath_var=LD_LIBRARY_PATH
14639 shlibpath_overrides_runpath=no
14640 hardcode_into_libs=yes
14641 dynamic_linker='GNU ld.so'
14645 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14646 version_type=freebsd-$objformat
14647 case $version_type in
14649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14654 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14658 shlibpath_var=LD_LIBRARY_PATH
14661 shlibpath_overrides_runpath=yes
14663 freebsd3.01* | freebsdelf3.01*)
14664 shlibpath_overrides_runpath=yes
14665 hardcode_into_libs=yes
14668 shlibpath_overrides_runpath=no
14669 hardcode_into_libs=yes
14678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14679 soname_spec='${libname}${release}${shared_ext}$major'
14680 shlibpath_var=LD_LIBRARY_PATH
14681 hardcode_into_libs=yes
14684 hpux9* | hpux10* | hpux11*)
14685 # Give a soname corresponding to the major version so that dld.sl refuses to
14686 # link against other versions.
14690 case "$host_cpu" in
14693 hardcode_into_libs=yes
14694 dynamic_linker="$host_os dld.so"
14695 shlibpath_var=LD_LIBRARY_PATH
14696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14698 soname_spec='${libname}${release}${shared_ext}$major'
14699 if test "X$HPUX_IA64_MODE" = X32; then
14700 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14702 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14704 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14708 hardcode_into_libs=yes
14709 dynamic_linker="$host_os dld.sl"
14710 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14711 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14715 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14719 dynamic_linker="$host_os dld.sl"
14720 shlibpath_var=SHLIB_PATH
14721 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14723 soname_spec='${libname}${release}${shared_ext}$major'
14726 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14727 postinstall_cmds='chmod 555 $lib'
14730 irix5* | irix6* | nonstopux*)
14732 nonstopux*) version_type=nonstopux ;;
14734 if test "$lt_cv_prog_gnu_ld" = yes; then
14742 soname_spec='${libname}${release}${shared_ext}$major'
14743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14745 irix5* | nonstopux*)
14746 libsuff= shlibsuff=
14749 case $LD in # libtool.m4 will add one of these switches to LD
14750 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14751 libsuff= shlibsuff= libmagic=32-bit;;
14752 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14753 libsuff=32 shlibsuff=N32 libmagic=N32;;
14754 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14755 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14756 *) libsuff= shlibsuff= libmagic=never-match;;
14760 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14761 shlibpath_overrides_runpath=no
14762 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14763 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14764 hardcode_into_libs=yes
14767 # No shared lib support for Linux oldld, aout, or coff.
14768 linux*oldld* | linux*aout* | linux*coff*)
14772 # This must be Linux ELF.
14777 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778 soname_spec='${libname}${release}${shared_ext}$major'
14779 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14780 shlibpath_var=LD_LIBRARY_PATH
14781 shlibpath_overrides_runpath=no
14782 # This implies no fast_install, which is unacceptable.
14783 # Some rework will be needed to allow for fast_install
14784 # before this can be enabled.
14785 hardcode_into_libs=yes
14787 # Append ld.so.conf contents to the search path
14788 if test -f /etc/ld.so.conf; then
14789 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14793 # We used to test for /lib/ld.so.1 and disable shared libraries on
14794 # powerpc, because MkLinux only supported shared libraries with the
14795 # GNU dynamic linker. Since this was broken with cross compilers,
14796 # most powerpc-linux boxes support dynamic linking these days and
14797 # people can always --disable-shared, the test was removed, and we
14798 # assume the GNU/Linux dynamic linker is in use.
14799 dynamic_linker='GNU/Linux ld.so'
14806 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14807 soname_spec='${libname}${release}${shared_ext}$major'
14808 shlibpath_var=LD_LIBRARY_PATH
14809 shlibpath_overrides_runpath=no
14810 hardcode_into_libs=yes
14811 dynamic_linker='NetBSD ld.elf_so'
14818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14819 soname_spec='${libname}${release}${shared_ext}$major'
14820 shlibpath_var=LD_LIBRARY_PATH
14821 shlibpath_overrides_runpath=no
14822 hardcode_into_libs=yes
14823 dynamic_linker='GNU ld.so'
14830 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14833 dynamic_linker='NetBSD (a.out) ld.so'
14835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14836 soname_spec='${libname}${release}${shared_ext}$major'
14837 dynamic_linker='NetBSD ld.elf_so'
14839 shlibpath_var=LD_LIBRARY_PATH
14840 shlibpath_overrides_runpath=yes
14841 hardcode_into_libs=yes
14846 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14847 shlibpath_var=LD_LIBRARY_PATH
14848 shlibpath_overrides_runpath=yes
14855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14856 soname_spec='${libname}${release}${shared_ext}$major'
14857 shlibpath_var=LD_LIBRARY_PATH
14858 shlibpath_overrides_runpath=yes
14865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14866 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14867 shlibpath_var=LD_LIBRARY_PATH
14868 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14870 openbsd2.[89] | openbsd2.[89].*)
14871 shlibpath_overrides_runpath=no
14874 shlibpath_overrides_runpath=yes
14878 shlibpath_overrides_runpath=yes
14883 libname_spec='$name'
14886 library_names_spec='$libname${shared_ext} $libname.a'
14887 dynamic_linker='OS/2 ld.exe'
14888 shlibpath_var=LIBPATH
14891 osf3* | osf4* | osf5*)
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14899 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14904 soname_spec='${libname}${release}${shared_ext}$major'
14905 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14906 shlibpath_var=LD_LIBRARY_PATH
14913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14914 soname_spec='${libname}${release}${shared_ext}$major'
14915 shlibpath_var=LD_LIBRARY_PATH
14916 shlibpath_overrides_runpath=yes
14917 hardcode_into_libs=yes
14918 # ldd complains unless libraries are executable
14919 postinstall_cmds='chmod +x $lib'
14924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14925 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14926 shlibpath_var=LD_LIBRARY_PATH
14927 shlibpath_overrides_runpath=yes
14928 if test "$with_gnu_ld" = yes; then
14934 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14937 soname_spec='${libname}${release}${shared_ext}$major'
14938 shlibpath_var=LD_LIBRARY_PATH
14939 case $host_vendor in
14941 shlibpath_overrides_runpath=no
14943 export_dynamic_flag_spec='${wl}-Blargedynsym'
14944 runpath_var=LD_RUN_PATH
14952 shlibpath_overrides_runpath=no
14953 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14959 if test -d /usr/nec ;then
14961 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14962 soname_spec='$libname${shared_ext}.$major'
14963 shlibpath_var=LD_LIBRARY_PATH
14969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14970 soname_spec='${libname}${release}${shared_ext}$major'
14971 shlibpath_var=LD_LIBRARY_PATH
14978 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14979 echo "${ECHO_T}$dynamic_linker" >&6
14980 test "$dynamic_linker" = no && can_build_shared=no
14982 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14983 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14984 hardcode_action_F77=
14985 if test -n "$hardcode_libdir_flag_spec_F77" || \
14986 test -n "$runpath_var F77" || \
14987 test "X$hardcode_automatic_F77"="Xyes" ; then
14989 # We can hardcode non-existant directories.
14990 if test "$hardcode_direct_F77" != no &&
14991 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14992 # have to relink, otherwise we might link with an installed library
14993 # when we should be linking with a yet-to-be-installed one
14994 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14995 test "$hardcode_minus_L_F77" != no; then
14996 # Linking always hardcodes the temporary library directory.
14997 hardcode_action_F77=relink
14999 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15000 hardcode_action_F77=immediate
15003 # We cannot hardcode anything, or else we can only hardcode existing
15005 hardcode_action_F77=unsupported
15007 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15008 echo "${ECHO_T}$hardcode_action_F77" >&6
15010 if test "$hardcode_action_F77" = relink; then
15011 # Fast installation is not supported
15012 enable_fast_install=no
15013 elif test "$shlibpath_overrides_runpath" = yes ||
15014 test "$enable_shared" = no; then
15015 # Fast installation is not necessary
15016 enable_fast_install=needless
15021 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15022 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15023 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15024 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15025 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15026 echo "$as_me:$LINENO: result: yes" >&5
15027 echo "${ECHO_T}yes" >&6
15029 # FIXME - insert some real tests, host_os isn't really good enough
15032 if test -n "$STRIP" ; then
15033 striplib="$STRIP -x"
15034 echo "$as_me:$LINENO: result: yes" >&5
15035 echo "${ECHO_T}yes" >&6
15037 echo "$as_me:$LINENO: result: no" >&5
15038 echo "${ECHO_T}no" >&6
15042 echo "$as_me:$LINENO: result: no" >&5
15043 echo "${ECHO_T}no" >&6
15050 # The else clause should only fire when bootstrapping the
15051 # libtool distribution, otherwise you forgot to ship ltmain.sh
15052 # with your package, and you will get complaints that there are
15053 # no rules to generate ltmain.sh.
15054 if test -f "$ltmain"; then
15055 # See if we are running on zsh, and set the options which allow our commands through
15056 # without removal of \ escapes.
15057 if test -n "${ZSH_VERSION+set}" ; then
15058 setopt NO_GLOB_SUBST
15060 # Now quote all the things that may contain metacharacters while being
15061 # careful not to overquote the AC_SUBSTed values. We take copies of the
15062 # variables and quote the copies for generation of the libtool script.
15063 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15065 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15066 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15067 deplibs_check_method reload_flag reload_cmds need_locks \
15068 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15069 lt_cv_sys_global_symbol_to_c_name_address \
15070 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15071 old_postinstall_cmds old_postuninstall_cmds \
15075 lt_prog_compiler_wl_F77 \
15076 lt_prog_compiler_pic_F77 \
15077 lt_prog_compiler_static_F77 \
15078 lt_prog_compiler_no_builtin_flag_F77 \
15079 export_dynamic_flag_spec_F77 \
15080 thread_safe_flag_spec_F77 \
15081 whole_archive_flag_spec_F77 \
15082 enable_shared_with_static_runtimes_F77 \
15083 old_archive_cmds_F77 \
15084 old_archive_from_new_cmds_F77 \
15085 predep_objects_F77 \
15086 postdep_objects_F77 \
15089 compiler_lib_search_path_F77 \
15091 archive_expsym_cmds_F77 \
15092 postinstall_cmds_F77 \
15093 postuninstall_cmds_F77 \
15094 old_archive_from_expsyms_cmds_F77 \
15095 allow_undefined_flag_F77 \
15096 no_undefined_flag_F77 \
15097 export_symbols_cmds_F77 \
15098 hardcode_libdir_flag_spec_F77 \
15099 hardcode_libdir_flag_spec_ld_F77 \
15100 hardcode_libdir_separator_F77 \
15101 hardcode_automatic_F77 \
15103 module_expsym_cmds_F77 \
15104 lt_cv_prog_compiler_c_o_F77 \
15105 exclude_expsyms_F77 \
15106 include_expsyms_F77; do
15109 old_archive_cmds_F77 | \
15110 old_archive_from_new_cmds_F77 | \
15111 archive_cmds_F77 | \
15112 archive_expsym_cmds_F77 | \
15113 module_cmds_F77 | \
15114 module_expsym_cmds_F77 | \
15115 old_archive_from_expsyms_cmds_F77 | \
15116 export_symbols_cmds_F77 | \
15117 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15118 postinstall_cmds | postuninstall_cmds | \
15119 old_postinstall_cmds | old_postuninstall_cmds | \
15120 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15121 # Double-quote double-evaled strings.
15122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15125 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15131 *'\$0 --fallback-echo"')
15132 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15138 cat <<__EOF__ >> "$cfgfile"
15139 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15141 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15143 # Shell to use when invoking shell scripts.
15146 # Whether or not to build shared libraries.
15147 build_libtool_libs=$enable_shared
15149 # Whether or not to build static libraries.
15150 build_old_libs=$enable_static
15152 # Whether or not to add -lc for building shared libraries.
15153 build_libtool_need_lc=$archive_cmds_need_lc_F77
15155 # Whether or not to disallow shared libs when runtime libs are static
15156 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15158 # Whether or not to optimize for fast installation.
15159 fast_install=$enable_fast_install
15162 host_alias=$host_alias
15165 # An echo program that does not interpret backslashes.
15170 AR_FLAGS=$lt_AR_FLAGS
15175 # A language-specific compiler.
15176 CC=$lt_compiler_F77
15178 # Is the compiler the GNU C compiler?
15184 # The linker used to build libraries.
15187 # Whether we need hard or soft links.
15190 # A BSD-compatible nm program.
15193 # A symbol stripping program
15196 # Used to examine libraries when file_magic_cmd begins "file"
15197 MAGIC_CMD=$MAGIC_CMD
15199 # Used on cygwin: DLL creation program.
15202 # Used on cygwin: object dumper.
15205 # Used on cygwin: assembler.
15208 # The name of the directory that contains temporary libtool files.
15211 # How to create reloadable object files.
15212 reload_flag=$lt_reload_flag
15213 reload_cmds=$lt_reload_cmds
15215 # How to pass a linker flag through the compiler.
15216 wl=$lt_lt_prog_compiler_wl_F77
15218 # Object file suffix (normally "o").
15219 objext="$ac_objext"
15221 # Old archive suffix (normally "a").
15224 # Shared library suffix (normally ".so").
15225 shrext_cmds='$shrext_cmds'
15227 # Executable file suffix (normally "").
15230 # Additional compiler flags for building library objects.
15231 pic_flag=$lt_lt_prog_compiler_pic_F77
15234 # What is the maximum length of a command?
15235 max_cmd_len=$lt_cv_sys_max_cmd_len
15237 # Does compiler simultaneously support -c and -o options?
15238 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15240 # Must we lock files when doing compilation ?
15241 need_locks=$lt_need_locks
15243 # Do we need the lib prefix for modules?
15244 need_lib_prefix=$need_lib_prefix
15246 # Do we need a version for libraries?
15247 need_version=$need_version
15249 # Whether dlopen is supported.
15250 dlopen_support=$enable_dlopen
15252 # Whether dlopen of programs is supported.
15253 dlopen_self=$enable_dlopen_self
15255 # Whether dlopen of statically linked programs is supported.
15256 dlopen_self_static=$enable_dlopen_self_static
15258 # Compiler flag to prevent dynamic linking.
15259 link_static_flag=$lt_lt_prog_compiler_static_F77
15261 # Compiler flag to turn off builtin functions.
15262 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15264 # Compiler flag to allow reflexive dlopens.
15265 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15267 # Compiler flag to generate shared objects directly from archives.
15268 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15270 # Compiler flag to generate thread-safe objects.
15271 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15273 # Library versioning type.
15274 version_type=$version_type
15276 # Format of library name prefix.
15277 libname_spec=$lt_libname_spec
15279 # List of archive names. First name is the real one, the rest are links.
15280 # The last name is the one that the linker finds with -lNAME.
15281 library_names_spec=$lt_library_names_spec
15283 # The coded name of the library, if different from the real name.
15284 soname_spec=$lt_soname_spec
15286 # Commands used to build and install an old-style archive.
15288 old_archive_cmds=$lt_old_archive_cmds_F77
15289 old_postinstall_cmds=$lt_old_postinstall_cmds
15290 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15292 # Create an old-style archive from a shared archive.
15293 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15295 # Create a temporary old-style archive to link instead of a shared archive.
15296 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15298 # Commands used to build and install a shared archive.
15299 archive_cmds=$lt_archive_cmds_F77
15300 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15301 postinstall_cmds=$lt_postinstall_cmds
15302 postuninstall_cmds=$lt_postuninstall_cmds
15304 # Commands used to build a loadable module (assumed same as above if empty)
15305 module_cmds=$lt_module_cmds_F77
15306 module_expsym_cmds=$lt_module_expsym_cmds_F77
15308 # Commands to strip libraries.
15309 old_striplib=$lt_old_striplib
15310 striplib=$lt_striplib
15312 # Dependencies to place before the objects being linked to create a
15314 predep_objects=$lt_predep_objects_F77
15316 # Dependencies to place after the objects being linked to create a
15318 postdep_objects=$lt_postdep_objects_F77
15320 # Dependencies to place before the objects being linked to create a
15322 predeps=$lt_predeps_F77
15324 # Dependencies to place after the objects being linked to create a
15326 postdeps=$lt_postdeps_F77
15328 # The library search path used internally by the compiler when linking
15329 # a shared library.
15330 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15332 # Method to check whether dependent libraries are shared objects.
15333 deplibs_check_method=$lt_deplibs_check_method
15335 # Command to use when deplibs_check_method == file_magic.
15336 file_magic_cmd=$lt_file_magic_cmd
15338 # Flag that allows shared libraries with undefined symbols to be built.
15339 allow_undefined_flag=$lt_allow_undefined_flag_F77
15341 # Flag that forces no undefined symbols.
15342 no_undefined_flag=$lt_no_undefined_flag_F77
15344 # Commands used to finish a libtool library installation in a directory.
15345 finish_cmds=$lt_finish_cmds
15347 # Same as above, but a single script fragment to be evaled but not shown.
15348 finish_eval=$lt_finish_eval
15350 # Take the output of nm and produce a listing of raw symbols and C names.
15351 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15353 # Transform the output of nm in a proper C declaration
15354 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15356 # Transform the output of nm in a C name address pair
15357 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15359 # This is the shared library runtime path variable.
15360 runpath_var=$runpath_var
15362 # This is the shared library path variable.
15363 shlibpath_var=$shlibpath_var
15365 # Is shlibpath searched before the hard-coded library search path?
15366 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15368 # How to hardcode a shared library path into an executable.
15369 hardcode_action=$hardcode_action_F77
15371 # Whether we should hardcode library paths into libraries.
15372 hardcode_into_libs=$hardcode_into_libs
15374 # Flag to hardcode \$libdir into a binary during linking.
15375 # This must work even if \$libdir does not exist.
15376 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15378 # If ld is used when linking, flag to hardcode \$libdir into
15379 # a binary during linking. This must work even if \$libdir does
15381 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15383 # Whether we need a single -rpath flag with a separated argument.
15384 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15386 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15387 # resulting binary.
15388 hardcode_direct=$hardcode_direct_F77
15390 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15391 # resulting binary.
15392 hardcode_minus_L=$hardcode_minus_L_F77
15394 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15395 # the resulting binary.
15396 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15398 # Set to yes if building a shared library automatically hardcodes DIR into the library
15399 # and all subsequent libraries and executables linked against it.
15400 hardcode_automatic=$hardcode_automatic_F77
15402 # Variables whose values should be saved in libtool wrapper scripts and
15403 # restored at relink time.
15404 variables_saved_for_relink="$variables_saved_for_relink"
15406 # Whether libtool must link a program against all its dependency libraries.
15407 link_all_deplibs=$link_all_deplibs_F77
15409 # Compile-time system search path for libraries
15410 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15412 # Run-time system search path for libraries
15413 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15415 # Fix the shell variable \$srcfile for the compiler.
15416 fix_srcfile_path="$fix_srcfile_path_F77"
15418 # Set to yes if exported symbols are required.
15419 always_export_symbols=$always_export_symbols_F77
15421 # The commands to list exported symbols.
15422 export_symbols_cmds=$lt_export_symbols_cmds_F77
15424 # The commands to extract the exported symbol list from a shared archive.
15425 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15427 # Symbols that should not be listed in the preloaded symbols.
15428 exclude_expsyms=$lt_exclude_expsyms_F77
15430 # Symbols that must always be exported.
15431 include_expsyms=$lt_include_expsyms_F77
15433 # ### END LIBTOOL TAG CONFIG: $tagname
15439 # If there is no Makefile yet, we rely on a make rule to execute
15440 # `config.status --recheck' to rerun these tests and create the
15441 # libtool script then.
15442 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15443 if test -f "$ltmain_in"; then
15444 test -f Makefile && make "$ltmain"
15450 ac_cpp='$CPP $CPPFLAGS'
15451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15463 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15467 # Source file extension for Java test sources.
15470 # Object file extension for compiled Java test sources.
15474 # Code to be used in simple compile tests
15475 lt_simple_compile_test_code="class foo {}\n"
15477 # Code to be used in simple link tests
15478 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15480 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15482 # If no C compiler was specified, use CC.
15485 # Allow CC to be a program name with arguments.
15489 # Allow CC to be a program name with arguments.
15495 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15496 archive_cmds_need_lc_GCJ=no
15499 lt_prog_compiler_no_builtin_flag_GCJ=
15501 if test "$GCC" = yes; then
15502 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15505 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15506 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15507 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15508 echo $ECHO_N "(cached) $ECHO_C" >&6
15510 lt_cv_prog_compiler_rtti_exceptions=no
15511 ac_outfile=conftest.$ac_objext
15512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15513 lt_compiler_flag="-fno-rtti -fno-exceptions"
15514 # Insert the option either (1) after the last *FLAGS variable, or
15515 # (2) before a word containing "conftest.", or (3) at the end.
15516 # Note that $ac_compile itself does not contain backslashes and begins
15517 # with a dollar sign (not a hyphen), so the echo should work correctly.
15518 # The option is referenced via a variable to avoid confusing sed.
15519 lt_compile=`echo "$ac_compile" | $SED \
15520 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15522 -e 's:$: $lt_compiler_flag:'`
15523 (eval echo "\"\$as_me:15523: $lt_compile\"" >&5)
15524 (eval "$lt_compile" 2>conftest.err)
15526 cat conftest.err >&5
15527 echo "$as_me:15527: \$? = $ac_status" >&5
15528 if (exit $ac_status) && test -s "$ac_outfile"; then
15529 # The compiler can only warn and ignore the option if not recognized
15530 # So say no if there are warnings
15531 if test ! -s conftest.err; then
15532 lt_cv_prog_compiler_rtti_exceptions=yes
15538 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15539 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15541 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15542 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15549 lt_prog_compiler_wl_GCJ=
15550 lt_prog_compiler_pic_GCJ=
15551 lt_prog_compiler_static_GCJ=
15553 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15554 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15556 if test "$GCC" = yes; then
15557 lt_prog_compiler_wl_GCJ='-Wl,'
15558 lt_prog_compiler_static_GCJ='-static'
15562 # All AIX code is PIC.
15563 if test "$host_cpu" = ia64; then
15564 # AIX 5 now supports IA64 processor
15565 lt_prog_compiler_static_GCJ='-Bstatic'
15570 # FIXME: we need at least 68020 code to build shared libraries, but
15571 # adding the `-m68020' flag to GCC prevents building anything better,
15573 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15576 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15577 # PIC is the default for these OSes.
15580 mingw* | pw32* | os2*)
15581 # This hack is so that the source file can tell whether it is being
15582 # built for inclusion in a dll (and should export symbols for example).
15583 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15586 darwin* | rhapsody*)
15587 # PIC is the default on this platform
15588 # Common symbols not allowed in MH_DYLIB files
15589 lt_prog_compiler_pic_GCJ='-fno-common'
15593 # Just because we use GCC doesn't mean we suddenly get shared libraries
15594 # on systems that don't support them.
15595 lt_prog_compiler_can_build_shared_GCJ=no
15600 if test -d /usr/nec; then
15601 lt_prog_compiler_pic_GCJ=-Kconform_pic
15606 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15607 # not for PA HP-UX.
15608 case "$host_cpu" in
15613 lt_prog_compiler_pic_GCJ='-fPIC'
15619 lt_prog_compiler_pic_GCJ='-fPIC'
15623 # PORTME Check for flag to pass linker flags through the system compiler.
15626 lt_prog_compiler_wl_GCJ='-Wl,'
15627 if test "$host_cpu" = ia64; then
15628 # AIX 5 now supports IA64 processor
15629 lt_prog_compiler_static_GCJ='-Bstatic'
15631 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15635 mingw* | pw32* | os2*)
15636 # This hack is so that the source file can tell whether it is being
15637 # built for inclusion in a dll (and should export symbols for example).
15638 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15641 hpux9* | hpux10* | hpux11*)
15642 lt_prog_compiler_wl_GCJ='-Wl,'
15643 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15644 # not for PA HP-UX.
15645 case "$host_cpu" in
15650 lt_prog_compiler_pic_GCJ='+Z'
15653 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15654 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15657 irix5* | irix6* | nonstopux*)
15658 lt_prog_compiler_wl_GCJ='-Wl,'
15659 # PIC (with -KPIC) is the default.
15660 lt_prog_compiler_static_GCJ='-non_shared'
15664 lt_prog_compiler_pic_GCJ='-KPIC'
15665 lt_prog_compiler_static_GCJ='-Bstatic'
15671 lt_prog_compiler_wl_GCJ='-Wl,'
15672 lt_prog_compiler_pic_GCJ='-KPIC'
15673 lt_prog_compiler_static_GCJ='-static'
15676 lt_prog_compiler_wl_GCJ='-Wl,'
15677 # All Alpha code is PIC.
15678 lt_prog_compiler_static_GCJ='-non_shared'
15683 osf3* | osf4* | osf5*)
15684 lt_prog_compiler_wl_GCJ='-Wl,'
15685 # All OSF/1 code is PIC.
15686 lt_prog_compiler_static_GCJ='-non_shared'
15690 lt_prog_compiler_pic_GCJ='-Kpic'
15691 lt_prog_compiler_static_GCJ='-dn'
15695 lt_prog_compiler_wl_GCJ='-Wl,'
15696 lt_prog_compiler_pic_GCJ='-KPIC'
15697 lt_prog_compiler_static_GCJ='-Bstatic'
15701 lt_prog_compiler_wl_GCJ='-Qoption ld '
15702 lt_prog_compiler_pic_GCJ='-PIC'
15703 lt_prog_compiler_static_GCJ='-Bstatic'
15706 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15707 lt_prog_compiler_wl_GCJ='-Wl,'
15708 lt_prog_compiler_pic_GCJ='-KPIC'
15709 lt_prog_compiler_static_GCJ='-Bstatic'
15713 if test -d /usr/nec ;then
15714 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15715 lt_prog_compiler_static_GCJ='-Bstatic'
15720 lt_prog_compiler_pic_GCJ='-pic'
15721 lt_prog_compiler_static_GCJ='-Bstatic'
15725 lt_prog_compiler_can_build_shared_GCJ=no
15730 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15731 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15734 # Check to make sure the PIC flag actually works.
15736 if test -n "$lt_prog_compiler_pic_GCJ"; then
15738 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15739 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15740 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15741 echo $ECHO_N "(cached) $ECHO_C" >&6
15743 lt_prog_compiler_pic_works_GCJ=no
15744 ac_outfile=conftest.$ac_objext
15745 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15746 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15747 # Insert the option either (1) after the last *FLAGS variable, or
15748 # (2) before a word containing "conftest.", or (3) at the end.
15749 # Note that $ac_compile itself does not contain backslashes and begins
15750 # with a dollar sign (not a hyphen), so the echo should work correctly.
15751 # The option is referenced via a variable to avoid confusing sed.
15752 lt_compile=`echo "$ac_compile" | $SED \
15753 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15754 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15755 -e 's:$: $lt_compiler_flag:'`
15756 (eval echo "\"\$as_me:15756: $lt_compile\"" >&5)
15757 (eval "$lt_compile" 2>conftest.err)
15759 cat conftest.err >&5
15760 echo "$as_me:15760: \$? = $ac_status" >&5
15761 if (exit $ac_status) && test -s "$ac_outfile"; then
15762 # The compiler can only warn and ignore the option if not recognized
15763 # So say no if there are warnings
15764 if test ! -s conftest.err; then
15765 lt_prog_compiler_pic_works_GCJ=yes
15771 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15772 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15774 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15775 case $lt_prog_compiler_pic_GCJ in
15777 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15780 lt_prog_compiler_pic_GCJ=
15781 lt_prog_compiler_can_build_shared_GCJ=no
15786 # For platforms which do not support PIC, -DPIC is meaningless:
15788 lt_prog_compiler_pic_GCJ=
15791 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15795 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15796 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15797 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15798 echo $ECHO_N "(cached) $ECHO_C" >&6
15800 lt_cv_prog_compiler_c_o_GCJ=no
15801 $rm -r conftest 2>/dev/null
15805 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15807 lt_compiler_flag="-o out/conftest2.$ac_objext"
15808 # Insert the option either (1) after the last *FLAGS variable, or
15809 # (2) before a word containing "conftest.", or (3) at the end.
15810 # Note that $ac_compile itself does not contain backslashes and begins
15811 # with a dollar sign (not a hyphen), so the echo should work correctly.
15812 lt_compile=`echo "$ac_compile" | $SED \
15813 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15814 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15815 -e 's:$: $lt_compiler_flag:'`
15816 (eval echo "\"\$as_me:15816: $lt_compile\"" >&5)
15817 (eval "$lt_compile" 2>out/conftest.err)
15819 cat out/conftest.err >&5
15820 echo "$as_me:15820: \$? = $ac_status" >&5
15821 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15823 # The compiler can only warn and ignore the option if not recognized
15824 # So say no if there are warnings
15825 if test ! -s out/conftest.err; then
15826 lt_cv_prog_compiler_c_o_GCJ=yes
15831 # SGI C++ compiler will create directory out/ii_files/ for
15832 # template instantiation
15833 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15834 $rm out/* && rmdir out
15840 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15841 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15844 hard_links="nottested"
15845 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15846 # do not overwrite the value of need_locks provided by the user
15847 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15848 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15851 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15853 ln conftest.a conftest.b 2>&5 || hard_links=no
15854 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15855 echo "$as_me:$LINENO: result: $hard_links" >&5
15856 echo "${ECHO_T}$hard_links" >&6
15857 if test "$hard_links" = no; then
15858 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15859 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15866 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15867 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15870 allow_undefined_flag_GCJ=
15871 enable_shared_with_static_runtimes_GCJ=no
15873 archive_expsym_cmds_GCJ=
15874 old_archive_From_new_cmds_GCJ=
15875 old_archive_from_expsyms_cmds_GCJ=
15876 export_dynamic_flag_spec_GCJ=
15877 whole_archive_flag_spec_GCJ=
15878 thread_safe_flag_spec_GCJ=
15879 hardcode_libdir_flag_spec_GCJ=
15880 hardcode_libdir_flag_spec_ld_GCJ=
15881 hardcode_libdir_separator_GCJ=
15882 hardcode_direct_GCJ=no
15883 hardcode_minus_L_GCJ=no
15884 hardcode_shlibpath_var_GCJ=unsupported
15885 link_all_deplibs_GCJ=unknown
15886 hardcode_automatic_GCJ=no
15888 module_expsym_cmds_GCJ=
15889 always_export_symbols_GCJ=no
15890 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15891 # include_expsyms should be a list of space-separated symbols to be *always*
15892 # included in the symbol list
15893 include_expsyms_GCJ=
15894 # exclude_expsyms can be an extended regexp of symbols to exclude
15895 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15897 # as well as any symbol that contains `d'.
15898 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15900 # platforms (ab)use it in PIC code, but their linkers get confused if
15901 # the symbol is explicitly referenced. Since portable code cannot
15902 # rely on this symbol name, it's probably fine to never include it in
15903 # preloaded symbol tables.
15904 extract_expsyms_cmds=
15907 cygwin* | mingw* | pw32*)
15908 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15909 # When not using gcc, we currently assume that we are using
15910 # Microsoft Visual C++.
15911 if test "$GCC" != yes; then
15921 if test "$with_gnu_ld" = yes; then
15922 # If archive_cmds runs LD, not CC, wlarc should be empty
15925 # See if GNU ld supports shared libraries.
15927 aix3* | aix4* | aix5*)
15928 # On AIX/PPC, the GNU linker is very broken
15929 if test "$host_cpu" != ia64; then
15933 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15934 *** to be unable to reliably create shared libraries on AIX.
15935 *** Therefore, libtool is disabling shared libraries support. If you
15936 *** really care for shared libraries, you may want to modify your PATH
15937 *** so that a non-GNU linker is found, and then restart.
15944 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)'
15945 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15946 hardcode_minus_L_GCJ=yes
15948 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15949 # that the semantics of dynamic libraries on AmigaOS, at least up
15950 # to version 4, is to share data among multiple programs linked
15951 # with the same dynamic library. Since this doesn't match the
15952 # behavior of shared libraries on other platforms, we can't use
15958 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15959 allow_undefined_flag_GCJ=unsupported
15960 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15961 # support --undefined. This deserves some investigation. FIXME
15962 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15968 cygwin* | mingw* | pw32*)
15969 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15970 # as there is no search path for DLLs.
15971 hardcode_libdir_flag_spec_GCJ='-L$libdir'
15972 allow_undefined_flag_GCJ=unsupported
15973 always_export_symbols_GCJ=no
15974 enable_shared_with_static_runtimes_GCJ=yes
15975 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15977 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15978 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15979 # If the export-symbols file already is a .def file (1st line
15980 # is EXPORTS), use it as is; otherwise, prepend...
15981 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15982 cp $export_symbols $output_objdir/$soname.def;
15984 echo EXPORTS > $output_objdir/$soname.def;
15985 cat $export_symbols >> $output_objdir/$soname.def;
15987 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15993 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15994 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15995 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15998 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15999 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16004 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16008 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16009 *** create shared libraries on Solaris systems. Therefore, libtool
16010 *** is disabling shared libraries support. We urge you to upgrade GNU
16011 *** binutils to release 2.9.1 or newer. Another option is to modify
16012 *** your PATH or compiler configuration so that the native linker is
16013 *** used, and then restart.
16016 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16017 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16018 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16025 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16027 hardcode_direct_GCJ=yes
16028 hardcode_shlibpath_var_GCJ=no
16032 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16034 archive_cmds_GCJ="$tmp_archive_cmds"
16035 supports_anon_versioning=no
16036 case `$LD -v 2>/dev/null` in
16037 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16038 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16039 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16040 *\ 2.11.*) ;; # other 2.11 versions
16041 *) supports_anon_versioning=yes ;;
16043 if test $supports_anon_versioning = yes; then
16044 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16045 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16046 $echo "local: *; };" >> $output_objdir/$libname.ver~
16047 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16049 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16051 link_all_deplibs_GCJ=no
16058 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16059 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16060 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16067 if test "$ld_shlibs_GCJ" = yes; then
16068 runpath_var=LD_RUN_PATH
16069 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16070 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16071 # ancient GNU ld didn't support --whole-archive et. al.
16072 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16073 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16075 whole_archive_flag_spec_GCJ=
16079 # PORTME fill in a description of your system's linker (not GNU ld)
16082 allow_undefined_flag_GCJ=unsupported
16083 always_export_symbols_GCJ=yes
16084 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'
16085 # Note: this linker hardcodes the directories in LIBPATH if there
16086 # are no directories specified by -L.
16087 hardcode_minus_L_GCJ=yes
16088 if test "$GCC" = yes && test -z "$link_static_flag"; then
16089 # Neither direct hardcoding nor static linking is supported with a
16091 hardcode_direct_GCJ=unsupported
16096 if test "$host_cpu" = ia64; then
16097 # On IA64, the linker does run time linking by default, so we don't
16098 # have to do anything special.
16099 aix_use_runtimelinking=no
16100 exp_sym_flag='-Bexport'
16103 # If we're using GNU nm, then we don't want the "-C" option.
16104 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16105 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16106 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'
16108 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'
16110 aix_use_runtimelinking=no
16112 # Test if we are trying to use run time linking or normal
16113 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16114 # need to do runtime linking.
16115 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16116 for ld_flag in $LDFLAGS; do
16117 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16118 aix_use_runtimelinking=yes
16124 exp_sym_flag='-bexport'
16125 no_entry_flag='-bnoentry'
16128 # When large executables or shared objects are built, AIX ld can
16129 # have problems creating the table of contents. If linking a library
16130 # or program results in "error TOC overflow" add -mminimal-toc to
16131 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16132 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16134 archive_cmds_GCJ=''
16135 hardcode_direct_GCJ=yes
16136 hardcode_libdir_separator_GCJ=':'
16137 link_all_deplibs_GCJ=yes
16139 if test "$GCC" = yes; then
16140 case $host_os in aix4.012|aix4.012.*)
16141 # We only want to do this on AIX 4.2 and lower, the check
16142 # below for broken collect2 doesn't work under 4.3+
16143 collect2name=`${CC} -print-prog-name=collect2`
16144 if test -f "$collect2name" && \
16145 strings "$collect2name" | grep resolve_lib_name >/dev/null
16147 # We have reworked collect2
16148 hardcode_direct_GCJ=yes
16150 # We have old collect2
16151 hardcode_direct_GCJ=unsupported
16152 # It fails to find uninstalled libraries when the uninstalled
16153 # path is not listed in the libpath. Setting hardcode_minus_L
16154 # to unsupported forces relinking
16155 hardcode_minus_L_GCJ=yes
16156 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16157 hardcode_libdir_separator_GCJ=
16160 shared_flag='-shared'
16163 if test "$host_cpu" = ia64; then
16164 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16165 # chokes on -Wl,-G. The following line is correct:
16168 if test "$aix_use_runtimelinking" = yes; then
16169 shared_flag='${wl}-G'
16171 shared_flag='${wl}-bM:SRE'
16176 # It seems that -bexpall does not export symbols beginning with
16177 # underscore (_), so it is better to generate a list of symbols to export.
16178 always_export_symbols_GCJ=yes
16179 if test "$aix_use_runtimelinking" = yes; then
16180 # Warning - without using the other runtime loading flags (-brtl),
16181 # -berok will link without error, but may produce a broken library.
16182 allow_undefined_flag_GCJ='-berok'
16183 # Determine the default libpath from the value encoded in an empty executable.
16184 cat >conftest.$ac_ext <<_ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16199 rm -f conftest.$ac_objext conftest$ac_exeext
16200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16201 (eval $ac_link) 2>conftest.er1
16203 grep -v '^ *+' conftest.er1 >conftest.err
16205 cat conftest.err >&5
16206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16207 (exit $ac_status); } &&
16208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16209 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16210 (eval $ac_try) 2>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); }; } &&
16214 { ac_try='test -s conftest$ac_exeext'
16215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16216 (eval $ac_try) 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; }; then
16221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16223 # Check for a 64-bit object if we didn't find anything.
16224 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; }
16227 echo "$as_me: failed program was:" >&5
16228 sed 's/^/| /' conftest.$ac_ext >&5
16231 rm -f conftest.err conftest.$ac_objext \
16232 conftest$ac_exeext conftest.$ac_ext
16233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16235 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16236 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"
16238 if test "$host_cpu" = ia64; then
16239 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16240 allow_undefined_flag_GCJ="-z nodefs"
16241 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"
16243 # Determine the default libpath from the value encoded in an empty executable.
16244 cat >conftest.$ac_ext <<_ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16259 rm -f conftest.$ac_objext conftest$ac_exeext
16260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16261 (eval $ac_link) 2>conftest.er1
16263 grep -v '^ *+' conftest.er1 >conftest.err
16265 cat conftest.err >&5
16266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16267 (exit $ac_status); } &&
16268 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16270 (eval $ac_try) 2>&5
16272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16273 (exit $ac_status); }; } &&
16274 { ac_try='test -s conftest$ac_exeext'
16275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16276 (eval $ac_try) 2>&5
16278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16279 (exit $ac_status); }; }; then
16281 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16283 # Check for a 64-bit object if we didn't find anything.
16284 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; }
16287 echo "$as_me: failed program was:" >&5
16288 sed 's/^/| /' conftest.$ac_ext >&5
16291 rm -f conftest.err conftest.$ac_objext \
16292 conftest$ac_exeext conftest.$ac_ext
16293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16295 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16296 # Warning - without using the other run time loading flags,
16297 # -berok will link without error, but may produce a broken library.
16298 no_undefined_flag_GCJ=' ${wl}-bernotok'
16299 allow_undefined_flag_GCJ=' ${wl}-berok'
16300 # -bexpall does not export symbols beginning with underscore (_)
16301 always_export_symbols_GCJ=yes
16302 # Exported symbols can be pulled into shared objects from archives
16303 whole_archive_flag_spec_GCJ=' '
16304 archive_cmds_need_lc_GCJ=yes
16305 # This is similar to how AIX traditionally builds it's shared libraries.
16306 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'
16312 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)'
16313 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16314 hardcode_minus_L_GCJ=yes
16315 # see comment about different semantics on the GNU ld section
16320 export_dynamic_flag_spec_GCJ=-rdynamic
16323 cygwin* | mingw* | pw32*)
16324 # When not using gcc, we currently assume that we are using
16325 # Microsoft Visual C++.
16326 # hardcode_libdir_flag_spec is actually meaningless, as there is
16327 # no search path for DLLs.
16328 hardcode_libdir_flag_spec_GCJ=' '
16329 allow_undefined_flag_GCJ=unsupported
16330 # Tell ltmain to make .lib files, not .a files.
16332 # Tell ltmain to make .dll files, not .so files.
16334 # FIXME: Setting linknames here is a bad hack.
16335 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16336 # The linker will automatically build a .lib file if we build a DLL.
16337 old_archive_From_new_cmds_GCJ='true'
16338 # FIXME: Should let the user specify the lib program.
16339 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16340 fix_srcfile_path='`cygpath -w "$srcfile"`'
16341 enable_shared_with_static_runtimes_GCJ=yes
16344 darwin* | rhapsody*)
16345 if test "$GXX" = yes ; then
16346 archive_cmds_need_lc_GCJ=no
16348 rhapsody* | darwin1.[012])
16349 allow_undefined_flag_GCJ='-undefined suppress'
16352 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16353 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16355 case ${MACOSX_DEPLOYMENT_TARGET} in
16357 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16360 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16366 lt_int_apple_cc_single_mod=no
16367 output_verbose_link_cmd='echo'
16368 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16369 lt_int_apple_cc_single_mod=yes
16371 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16372 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16374 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'
16376 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16377 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16378 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16379 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}'
16381 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}'
16383 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}'
16384 hardcode_direct_GCJ=no
16385 hardcode_automatic_GCJ=yes
16386 hardcode_shlibpath_var_GCJ=unsupported
16387 whole_archive_flag_spec_GCJ='-all_load $convenience'
16388 link_all_deplibs_GCJ=yes
16395 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16396 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16397 hardcode_shlibpath_var_GCJ=no
16404 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16405 # support. Future versions do this automatically, but an explicit c++rt0.o
16406 # does not break anything, and helps significantly (at the cost of a little
16409 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16410 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16411 hardcode_direct_GCJ=yes
16412 hardcode_shlibpath_var_GCJ=no
16415 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16417 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16418 hardcode_direct_GCJ=yes
16419 hardcode_minus_L_GCJ=yes
16420 hardcode_shlibpath_var_GCJ=no
16423 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16424 freebsd* | kfreebsd*-gnu)
16425 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16426 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16427 hardcode_direct_GCJ=yes
16428 hardcode_shlibpath_var_GCJ=no
16432 if test "$GCC" = yes; then
16433 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'
16435 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'
16437 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16438 hardcode_libdir_separator_GCJ=:
16439 hardcode_direct_GCJ=yes
16441 # hardcode_minus_L: Not really in the search PATH,
16442 # but as the default location of the library.
16443 hardcode_minus_L_GCJ=yes
16444 export_dynamic_flag_spec_GCJ='${wl}-E'
16448 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16449 case "$host_cpu" in
16451 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16454 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16458 case "$host_cpu" in
16460 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16463 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16467 if test "$with_gnu_ld" = no; then
16468 case "$host_cpu" in
16470 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16471 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16472 hardcode_libdir_separator_GCJ=:
16473 hardcode_direct_GCJ=no
16474 hardcode_shlibpath_var_GCJ=no
16477 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16478 hardcode_direct_GCJ=no
16479 hardcode_shlibpath_var_GCJ=no
16481 # hardcode_minus_L: Not really in the search PATH,
16482 # but as the default location of the library.
16483 hardcode_minus_L_GCJ=yes
16486 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16487 hardcode_libdir_separator_GCJ=:
16488 hardcode_direct_GCJ=yes
16489 export_dynamic_flag_spec_GCJ='${wl}-E'
16491 # hardcode_minus_L: Not really in the search PATH,
16492 # but as the default location of the library.
16493 hardcode_minus_L_GCJ=yes
16499 irix5* | irix6* | nonstopux*)
16500 if test "$GCC" = yes; then
16501 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'
16503 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'
16504 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16506 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16507 hardcode_libdir_separator_GCJ=:
16508 link_all_deplibs_GCJ=yes
16511 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16512 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16513 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16515 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16517 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16518 hardcode_direct_GCJ=yes
16519 hardcode_shlibpath_var_GCJ=no
16523 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16524 hardcode_direct_GCJ=yes
16525 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16526 hardcode_libdir_separator_GCJ=:
16527 hardcode_shlibpath_var_GCJ=no
16531 hardcode_direct_GCJ=yes
16532 hardcode_shlibpath_var_GCJ=no
16533 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16534 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16535 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16536 export_dynamic_flag_spec_GCJ='${wl}-E'
16539 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16540 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16541 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16544 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16545 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16552 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553 hardcode_minus_L_GCJ=yes
16554 allow_undefined_flag_GCJ=unsupported
16555 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'
16556 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16560 if test "$GCC" = yes; then
16561 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16562 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'
16564 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16565 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'
16567 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16568 hardcode_libdir_separator_GCJ=:
16571 osf4* | osf5*) # as osf3* with the addition of -msym flag
16572 if test "$GCC" = yes; then
16573 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16574 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'
16575 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16577 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16578 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'
16579 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~
16580 $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'
16582 # Both c and cxx compiler support -rpath directly
16583 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16585 hardcode_libdir_separator_GCJ=:
16589 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16590 hardcode_shlibpath_var_GCJ=no
16591 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16592 runpath_var=LD_RUN_PATH
16593 hardcode_runpath_var=yes
16597 no_undefined_flag_GCJ=' -z text'
16598 if test "$GCC" = yes; then
16599 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16600 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16601 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16603 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16604 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16605 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16607 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16608 hardcode_shlibpath_var_GCJ=no
16610 solaris2.[0-5] | solaris2.[0-5].*) ;;
16611 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16612 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16614 link_all_deplibs_GCJ=yes
16618 if test "x$host_vendor" = xsequent; then
16619 # Use $CC to link under sequent, because it throws in some extra .o
16620 # files that make .init and .fini sections work.
16621 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16623 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16625 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16626 hardcode_direct_GCJ=yes
16627 hardcode_minus_L_GCJ=yes
16628 hardcode_shlibpath_var_GCJ=no
16632 case $host_vendor in
16634 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16635 hardcode_direct_GCJ=yes # is this really true???
16638 ## LD is ld it makes a PLAMLIB
16639 ## CC just makes a GrossModule.
16640 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16641 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16642 hardcode_direct_GCJ=no
16645 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16646 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16649 runpath_var='LD_RUN_PATH'
16650 hardcode_shlibpath_var_GCJ=no
16654 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16655 hardcode_shlibpath_var_GCJ=no
16656 export_dynamic_flag_spec_GCJ='-Bexport'
16660 if test -d /usr/nec; then
16661 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16662 hardcode_shlibpath_var_GCJ=no
16663 runpath_var=LD_RUN_PATH
16664 hardcode_runpath_var=yes
16670 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16671 hardcode_direct_GCJ=yes
16672 hardcode_minus_L_GCJ=no
16673 hardcode_shlibpath_var_GCJ=no
16674 hardcode_runpath_var=yes
16675 runpath_var=LD_RUN_PATH
16678 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16679 no_undefined_flag_GCJ='${wl}-z ${wl}text'
16680 if test "$GCC" = yes; then
16681 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16683 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16685 runpath_var='LD_RUN_PATH'
16686 hardcode_shlibpath_var_GCJ=no
16690 no_undefined_flag_GCJ=' -z text'
16691 # $CC -shared without GNU ld will not create a library from C++
16692 # object files and a static libstdc++, better avoid it by now
16693 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16694 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16695 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16696 hardcode_libdir_flag_spec_GCJ=
16697 hardcode_shlibpath_var_GCJ=no
16698 runpath_var='LD_RUN_PATH'
16702 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16703 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16704 hardcode_shlibpath_var_GCJ=no
16713 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16714 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16715 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16717 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16718 if test "$GCC" = yes; then
16719 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16723 # Do we need to explicitly link libc?
16725 case "x$archive_cmds_need_lc_GCJ" in
16727 # Assume -lc should be added
16728 archive_cmds_need_lc_GCJ=yes
16730 if test "$enable_shared" = yes && test "$GCC" = yes; then
16731 case $archive_cmds_GCJ in
16733 # FIXME: we may have to deal with multi-command sequences.
16736 # Test whether the compiler implicitly links with -lc since on some
16737 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16738 # to ld, don't add -lc before -lgcc.
16739 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16742 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16744 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16745 (eval $ac_compile) 2>&5
16747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16748 (exit $ac_status); } 2>conftest.err; then
16751 libobjs=conftest.$ac_objext
16753 wl=$lt_prog_compiler_wl_GCJ
16759 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16760 allow_undefined_flag_GCJ=
16761 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16762 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); }
16767 archive_cmds_need_lc_GCJ=no
16769 archive_cmds_need_lc_GCJ=yes
16771 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16773 cat conftest.err 1>&5
16776 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16777 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16784 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16785 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16786 library_names_spec=
16787 libname_spec='lib$name'
16791 postuninstall_cmds=
16795 shlibpath_overrides_runpath=unknown
16797 dynamic_linker="$host_os ld.so"
16798 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16799 if test "$GCC" = yes; then
16800 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16801 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16802 # if the path contains ";" then we assume it to be the separator
16803 # otherwise default to the standard path separator (i.e. ":") - it is
16804 # assumed that no part of a normal pathname contains ";" but that should
16805 # okay in the real world where ";" in dirpaths is itself problematic.
16806 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16808 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16811 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16813 need_lib_prefix=unknown
16814 hardcode_into_libs=no
16816 # when you set need_version to no, make sure it does not cause -set_version
16817 # flags to be left without arguments
16818 need_version=unknown
16823 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16824 shlibpath_var=LIBPATH
16826 # AIX 3 has no versioning support, so we append a major version to the name.
16827 soname_spec='${libname}${release}${shared_ext}$major'
16834 hardcode_into_libs=yes
16835 if test "$host_cpu" = ia64; then
16836 # AIX 5 supports IA64
16837 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16838 shlibpath_var=LD_LIBRARY_PATH
16840 # With GCC up to 2.95.x, collect2 would create an import file
16841 # for dependence libraries. The import file would start with
16842 # the line `#! .'. This would cause the generated library to
16843 # depend on `.', always an invalid library. This was fixed in
16844 # development snapshots of GCC prior to 3.0.
16846 aix4 | aix4.[01] | aix4.[01].*)
16847 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16849 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16852 can_build_shared=no
16856 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16857 # soname into executable. Probably we can add versioning support to
16858 # collect2, so additional links can be useful in future.
16859 if test "$aix_use_runtimelinking" = yes; then
16860 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16861 # instead of lib<name>.a to let people know that these are not
16862 # typical AIX shared libraries.
16863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16865 # We preserve .a as extension for shared libraries through AIX4.2
16866 # and later when we are not doing run time linking.
16867 library_names_spec='${libname}${release}.a $libname.a'
16868 soname_spec='${libname}${release}${shared_ext}$major'
16870 shlibpath_var=LIBPATH
16875 library_names_spec='$libname.ixlibrary $libname.a'
16876 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16877 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'
16881 library_names_spec='${libname}${shared_ext}'
16882 dynamic_linker="$host_os ld.so"
16883 shlibpath_var=LIBRARY_PATH
16889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16890 soname_spec='${libname}${release}${shared_ext}$major'
16891 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16892 shlibpath_var=LD_LIBRARY_PATH
16893 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16894 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16895 # the default ld.so.conf also contains /usr/contrib/lib and
16896 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16897 # libtool to hard-code these into programs
16900 cygwin* | mingw* | pw32*)
16901 version_type=windows
16906 case $GCC,$host_os in
16907 yes,cygwin* | yes,mingw* | yes,pw32*)
16908 library_names_spec='$libname.dll.a'
16909 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16910 postinstall_cmds='base_file=`basename \${file}`~
16911 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16912 dldir=$destdir/`dirname \$dlpath`~
16913 test -d \$dldir || mkdir -p \$dldir~
16914 $install_prog $dir/$dlname \$dldir/$dlname'
16915 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16916 dlpath=$dir/\$dldll~
16918 shlibpath_overrides_runpath=yes
16922 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16923 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16924 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16927 # MinGW DLLs use traditional 'lib' prefix
16928 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16929 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16930 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16931 # It is most probably a Windows format PATH printed by
16932 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16933 # path with ; separators, and with drive letters. We can handle the
16934 # drive letters (cygwin fileutils understands them), so leave them,
16935 # especially as we might pass files found there to a mingw objdump,
16936 # which wouldn't understand a cygwinified path. Ahh.
16937 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16939 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16943 # pw32 DLLs use 'pw' prefix rather than 'lib'
16944 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16950 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16953 dynamic_linker='Win32 ld.exe'
16954 # FIXME: first we should search . and the directory the executable is in
16958 darwin* | rhapsody*)
16959 dynamic_linker="$host_os dyld"
16960 version_type=darwin
16963 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16964 soname_spec='${libname}${release}${major}$shared_ext'
16965 shlibpath_overrides_runpath=yes
16966 shlibpath_var=DYLD_LIBRARY_PATH
16967 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16968 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16969 if test "$GCC" = yes; then
16970 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"`
16972 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16974 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16982 soname_spec='${libname}${release}${shared_ext}$major'
16983 shlibpath_var=LD_LIBRARY_PATH
16994 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16995 soname_spec='${libname}${release}${shared_ext}$major'
16996 shlibpath_var=LD_LIBRARY_PATH
16997 shlibpath_overrides_runpath=no
16998 hardcode_into_libs=yes
16999 dynamic_linker='GNU ld.so'
17003 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17004 version_type=freebsd-$objformat
17005 case $version_type in
17007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17012 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17016 shlibpath_var=LD_LIBRARY_PATH
17019 shlibpath_overrides_runpath=yes
17021 freebsd3.01* | freebsdelf3.01*)
17022 shlibpath_overrides_runpath=yes
17023 hardcode_into_libs=yes
17026 shlibpath_overrides_runpath=no
17027 hardcode_into_libs=yes
17036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17037 soname_spec='${libname}${release}${shared_ext}$major'
17038 shlibpath_var=LD_LIBRARY_PATH
17039 hardcode_into_libs=yes
17042 hpux9* | hpux10* | hpux11*)
17043 # Give a soname corresponding to the major version so that dld.sl refuses to
17044 # link against other versions.
17048 case "$host_cpu" in
17051 hardcode_into_libs=yes
17052 dynamic_linker="$host_os dld.so"
17053 shlibpath_var=LD_LIBRARY_PATH
17054 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17056 soname_spec='${libname}${release}${shared_ext}$major'
17057 if test "X$HPUX_IA64_MODE" = X32; then
17058 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17060 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17062 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17066 hardcode_into_libs=yes
17067 dynamic_linker="$host_os dld.sl"
17068 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17069 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17071 soname_spec='${libname}${release}${shared_ext}$major'
17072 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17073 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17077 dynamic_linker="$host_os dld.sl"
17078 shlibpath_var=SHLIB_PATH
17079 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17081 soname_spec='${libname}${release}${shared_ext}$major'
17084 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17085 postinstall_cmds='chmod 555 $lib'
17088 irix5* | irix6* | nonstopux*)
17090 nonstopux*) version_type=nonstopux ;;
17092 if test "$lt_cv_prog_gnu_ld" = yes; then
17100 soname_spec='${libname}${release}${shared_ext}$major'
17101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17103 irix5* | nonstopux*)
17104 libsuff= shlibsuff=
17107 case $LD in # libtool.m4 will add one of these switches to LD
17108 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17109 libsuff= shlibsuff= libmagic=32-bit;;
17110 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17111 libsuff=32 shlibsuff=N32 libmagic=N32;;
17112 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17113 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17114 *) libsuff= shlibsuff= libmagic=never-match;;
17118 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17119 shlibpath_overrides_runpath=no
17120 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17121 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17122 hardcode_into_libs=yes
17125 # No shared lib support for Linux oldld, aout, or coff.
17126 linux*oldld* | linux*aout* | linux*coff*)
17130 # This must be Linux ELF.
17135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17136 soname_spec='${libname}${release}${shared_ext}$major'
17137 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17138 shlibpath_var=LD_LIBRARY_PATH
17139 shlibpath_overrides_runpath=no
17140 # This implies no fast_install, which is unacceptable.
17141 # Some rework will be needed to allow for fast_install
17142 # before this can be enabled.
17143 hardcode_into_libs=yes
17145 # Append ld.so.conf contents to the search path
17146 if test -f /etc/ld.so.conf; then
17147 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17148 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17151 # We used to test for /lib/ld.so.1 and disable shared libraries on
17152 # powerpc, because MkLinux only supported shared libraries with the
17153 # GNU dynamic linker. Since this was broken with cross compilers,
17154 # most powerpc-linux boxes support dynamic linking these days and
17155 # people can always --disable-shared, the test was removed, and we
17156 # assume the GNU/Linux dynamic linker is in use.
17157 dynamic_linker='GNU/Linux ld.so'
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 shlibpath_var=LD_LIBRARY_PATH
17167 shlibpath_overrides_runpath=no
17168 hardcode_into_libs=yes
17169 dynamic_linker='NetBSD ld.elf_so'
17176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17177 soname_spec='${libname}${release}${shared_ext}$major'
17178 shlibpath_var=LD_LIBRARY_PATH
17179 shlibpath_overrides_runpath=no
17180 hardcode_into_libs=yes
17181 dynamic_linker='GNU ld.so'
17188 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17190 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17191 dynamic_linker='NetBSD (a.out) ld.so'
17193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17194 soname_spec='${libname}${release}${shared_ext}$major'
17195 dynamic_linker='NetBSD ld.elf_so'
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=yes
17199 hardcode_into_libs=yes
17204 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17205 shlibpath_var=LD_LIBRARY_PATH
17206 shlibpath_overrides_runpath=yes
17213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17214 soname_spec='${libname}${release}${shared_ext}$major'
17215 shlibpath_var=LD_LIBRARY_PATH
17216 shlibpath_overrides_runpath=yes
17223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17224 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17225 shlibpath_var=LD_LIBRARY_PATH
17226 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17228 openbsd2.[89] | openbsd2.[89].*)
17229 shlibpath_overrides_runpath=no
17232 shlibpath_overrides_runpath=yes
17236 shlibpath_overrides_runpath=yes
17241 libname_spec='$name'
17244 library_names_spec='$libname${shared_ext} $libname.a'
17245 dynamic_linker='OS/2 ld.exe'
17246 shlibpath_var=LIBPATH
17249 osf3* | osf4* | osf5*)
17253 soname_spec='${libname}${release}${shared_ext}$major'
17254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17255 shlibpath_var=LD_LIBRARY_PATH
17256 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17257 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17262 soname_spec='${libname}${release}${shared_ext}$major'
17263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17264 shlibpath_var=LD_LIBRARY_PATH
17271 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17272 soname_spec='${libname}${release}${shared_ext}$major'
17273 shlibpath_var=LD_LIBRARY_PATH
17274 shlibpath_overrides_runpath=yes
17275 hardcode_into_libs=yes
17276 # ldd complains unless libraries are executable
17277 postinstall_cmds='chmod +x $lib'
17282 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17283 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17284 shlibpath_var=LD_LIBRARY_PATH
17285 shlibpath_overrides_runpath=yes
17286 if test "$with_gnu_ld" = yes; then
17292 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295 soname_spec='${libname}${release}${shared_ext}$major'
17296 shlibpath_var=LD_LIBRARY_PATH
17297 case $host_vendor in
17299 shlibpath_overrides_runpath=no
17301 export_dynamic_flag_spec='${wl}-Blargedynsym'
17302 runpath_var=LD_RUN_PATH
17310 shlibpath_overrides_runpath=no
17311 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17317 if test -d /usr/nec ;then
17319 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17320 soname_spec='$libname${shared_ext}.$major'
17321 shlibpath_var=LD_LIBRARY_PATH
17327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17328 soname_spec='${libname}${release}${shared_ext}$major'
17329 shlibpath_var=LD_LIBRARY_PATH
17336 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17337 echo "${ECHO_T}$dynamic_linker" >&6
17338 test "$dynamic_linker" = no && can_build_shared=no
17340 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17341 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17342 hardcode_action_GCJ=
17343 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17344 test -n "$runpath_var GCJ" || \
17345 test "X$hardcode_automatic_GCJ"="Xyes" ; then
17347 # We can hardcode non-existant directories.
17348 if test "$hardcode_direct_GCJ" != no &&
17349 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17350 # have to relink, otherwise we might link with an installed library
17351 # when we should be linking with a yet-to-be-installed one
17352 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17353 test "$hardcode_minus_L_GCJ" != no; then
17354 # Linking always hardcodes the temporary library directory.
17355 hardcode_action_GCJ=relink
17357 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17358 hardcode_action_GCJ=immediate
17361 # We cannot hardcode anything, or else we can only hardcode existing
17363 hardcode_action_GCJ=unsupported
17365 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17366 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17368 if test "$hardcode_action_GCJ" = relink; then
17369 # Fast installation is not supported
17370 enable_fast_install=no
17371 elif test "$shlibpath_overrides_runpath" = yes ||
17372 test "$enable_shared" = no; then
17373 # Fast installation is not necessary
17374 enable_fast_install=needless
17379 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17380 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17381 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17382 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17383 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17384 echo "$as_me:$LINENO: result: yes" >&5
17385 echo "${ECHO_T}yes" >&6
17387 # FIXME - insert some real tests, host_os isn't really good enough
17390 if test -n "$STRIP" ; then
17391 striplib="$STRIP -x"
17392 echo "$as_me:$LINENO: result: yes" >&5
17393 echo "${ECHO_T}yes" >&6
17395 echo "$as_me:$LINENO: result: no" >&5
17396 echo "${ECHO_T}no" >&6
17400 echo "$as_me:$LINENO: result: no" >&5
17401 echo "${ECHO_T}no" >&6
17406 if test "x$enable_dlopen" != xyes; then
17407 enable_dlopen=unknown
17408 enable_dlopen_self=unknown
17409 enable_dlopen_self_static=unknown
17416 lt_cv_dlopen="load_add_on"
17418 lt_cv_dlopen_self=yes
17422 lt_cv_dlopen="LoadLibrary"
17427 lt_cv_dlopen="dlopen"
17432 # if libdl is installed we need to link against it
17433 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17434 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17435 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17436 echo $ECHO_N "(cached) $ECHO_C" >&6
17438 ac_check_lib_save_LIBS=$LIBS
17440 cat >conftest.$ac_ext <<_ACEOF
17443 cat confdefs.h >>conftest.$ac_ext
17444 cat >>conftest.$ac_ext <<_ACEOF
17445 /* end confdefs.h. */
17447 /* Override any gcc2 internal prototype to avoid an error. */
17451 /* We use char because int might match the return type of a gcc2
17452 builtin and then its argument prototype would still apply. */
17462 rm -f conftest.$ac_objext conftest$ac_exeext
17463 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17464 (eval $ac_link) 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17473 (eval $ac_try) 2>&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); }; } &&
17477 { ac_try='test -s conftest$ac_exeext'
17478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17479 (eval $ac_try) 2>&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); }; }; then
17483 ac_cv_lib_dl_dlopen=yes
17485 echo "$as_me: failed program was:" >&5
17486 sed 's/^/| /' conftest.$ac_ext >&5
17488 ac_cv_lib_dl_dlopen=no
17490 rm -f conftest.err conftest.$ac_objext \
17491 conftest$ac_exeext conftest.$ac_ext
17492 LIBS=$ac_check_lib_save_LIBS
17494 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17495 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17496 if test $ac_cv_lib_dl_dlopen = yes; then
17497 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17500 lt_cv_dlopen="dyld"
17502 lt_cv_dlopen_self=yes
17509 echo "$as_me:$LINENO: checking for shl_load" >&5
17510 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17511 if test "${ac_cv_func_shl_load+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17522 #define shl_load innocuous_shl_load
17524 /* System header to define __stub macros and hopefully few prototypes,
17525 which can conflict with char shl_load (); below.
17526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17527 <limits.h> exists even on freestanding compilers. */
17530 # include <limits.h>
17532 # include <assert.h>
17537 /* Override any gcc2 internal prototype to avoid an error. */
17542 /* We use char because int might match the return type of a gcc2
17543 builtin and then its argument prototype would still apply. */
17545 /* The GNU C library defines this for functions which it implements
17546 to always fail with ENOSYS. Some functions are actually named
17547 something starting with __ and the normal name is an alias. */
17548 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17551 char (*f) () = shl_load;
17560 return f != shl_load;
17565 rm -f conftest.$ac_objext conftest$ac_exeext
17566 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17567 (eval $ac_link) 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } &&
17574 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17576 (eval $ac_try) 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; } &&
17580 { ac_try='test -s conftest$ac_exeext'
17581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17582 (eval $ac_try) 2>&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); }; }; then
17586 ac_cv_func_shl_load=yes
17588 echo "$as_me: failed program was:" >&5
17589 sed 's/^/| /' conftest.$ac_ext >&5
17591 ac_cv_func_shl_load=no
17593 rm -f conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17596 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17597 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17598 if test $ac_cv_func_shl_load = yes; then
17599 lt_cv_dlopen="shl_load"
17601 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17602 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17603 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17604 echo $ECHO_N "(cached) $ECHO_C" >&6
17606 ac_check_lib_save_LIBS=$LIBS
17608 cat >conftest.$ac_ext <<_ACEOF
17611 cat confdefs.h >>conftest.$ac_ext
17612 cat >>conftest.$ac_ext <<_ACEOF
17613 /* end confdefs.h. */
17615 /* Override any gcc2 internal prototype to avoid an error. */
17619 /* We use char because int might match the return type of a gcc2
17620 builtin and then its argument prototype would still apply. */
17630 rm -f conftest.$ac_objext conftest$ac_exeext
17631 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17632 (eval $ac_link) 2>conftest.er1
17634 grep -v '^ *+' conftest.er1 >conftest.err
17636 cat conftest.err >&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); } &&
17639 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17640 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17641 (eval $ac_try) 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest$ac_exeext'
17646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17647 (eval $ac_try) 2>&5
17649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650 (exit $ac_status); }; }; then
17651 ac_cv_lib_dld_shl_load=yes
17653 echo "$as_me: failed program was:" >&5
17654 sed 's/^/| /' conftest.$ac_ext >&5
17656 ac_cv_lib_dld_shl_load=no
17658 rm -f conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17660 LIBS=$ac_check_lib_save_LIBS
17662 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17663 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17664 if test $ac_cv_lib_dld_shl_load = yes; then
17665 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17667 echo "$as_me:$LINENO: checking for dlopen" >&5
17668 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17669 if test "${ac_cv_func_dlopen+set}" = set; then
17670 echo $ECHO_N "(cached) $ECHO_C" >&6
17672 cat >conftest.$ac_ext <<_ACEOF
17675 cat confdefs.h >>conftest.$ac_ext
17676 cat >>conftest.$ac_ext <<_ACEOF
17677 /* end confdefs.h. */
17678 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17679 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17680 #define dlopen innocuous_dlopen
17682 /* System header to define __stub macros and hopefully few prototypes,
17683 which can conflict with char dlopen (); below.
17684 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17685 <limits.h> exists even on freestanding compilers. */
17688 # include <limits.h>
17690 # include <assert.h>
17695 /* Override any gcc2 internal prototype to avoid an error. */
17700 /* We use char because int might match the return type of a gcc2
17701 builtin and then its argument prototype would still apply. */
17703 /* The GNU C library defines this for functions which it implements
17704 to always fail with ENOSYS. Some functions are actually named
17705 something starting with __ and the normal name is an alias. */
17706 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17709 char (*f) () = dlopen;
17718 return f != dlopen;
17723 rm -f conftest.$ac_objext conftest$ac_exeext
17724 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17725 (eval $ac_link) 2>conftest.er1
17727 grep -v '^ *+' conftest.er1 >conftest.err
17729 cat conftest.err >&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734 (eval $ac_try) 2>&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); }; } &&
17738 { ac_try='test -s conftest$ac_exeext'
17739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17740 (eval $ac_try) 2>&5
17742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17743 (exit $ac_status); }; }; then
17744 ac_cv_func_dlopen=yes
17746 echo "$as_me: failed program was:" >&5
17747 sed 's/^/| /' conftest.$ac_ext >&5
17749 ac_cv_func_dlopen=no
17751 rm -f conftest.err conftest.$ac_objext \
17752 conftest$ac_exeext conftest.$ac_ext
17754 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17755 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17756 if test $ac_cv_func_dlopen = yes; then
17757 lt_cv_dlopen="dlopen"
17759 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17760 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17761 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 ac_check_lib_save_LIBS=$LIBS
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17773 /* Override any gcc2 internal prototype to avoid an error. */
17777 /* We use char because int might match the return type of a gcc2
17778 builtin and then its argument prototype would still apply. */
17788 rm -f conftest.$ac_objext conftest$ac_exeext
17789 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17790 (eval $ac_link) 2>conftest.er1
17792 grep -v '^ *+' conftest.er1 >conftest.err
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } &&
17797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17799 (eval $ac_try) 2>&5
17801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17802 (exit $ac_status); }; } &&
17803 { ac_try='test -s conftest$ac_exeext'
17804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17805 (eval $ac_try) 2>&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); }; }; then
17809 ac_cv_lib_dl_dlopen=yes
17811 echo "$as_me: failed program was:" >&5
17812 sed 's/^/| /' conftest.$ac_ext >&5
17814 ac_cv_lib_dl_dlopen=no
17816 rm -f conftest.err conftest.$ac_objext \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17820 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17821 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17822 if test $ac_cv_lib_dl_dlopen = yes; then
17823 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17825 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17826 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17827 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17828 echo $ECHO_N "(cached) $ECHO_C" >&6
17830 ac_check_lib_save_LIBS=$LIBS
17831 LIBS="-lsvld $LIBS"
17832 cat >conftest.$ac_ext <<_ACEOF
17835 cat confdefs.h >>conftest.$ac_ext
17836 cat >>conftest.$ac_ext <<_ACEOF
17837 /* end confdefs.h. */
17839 /* Override any gcc2 internal prototype to avoid an error. */
17843 /* We use char because int might match the return type of a gcc2
17844 builtin and then its argument prototype would still apply. */
17854 rm -f conftest.$ac_objext conftest$ac_exeext
17855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17856 (eval $ac_link) 2>conftest.er1
17858 grep -v '^ *+' conftest.er1 >conftest.err
17860 cat conftest.err >&5
17861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862 (exit $ac_status); } &&
17863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17865 (eval $ac_try) 2>&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); }; } &&
17869 { ac_try='test -s conftest$ac_exeext'
17870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17871 (eval $ac_try) 2>&5
17873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); }; }; then
17875 ac_cv_lib_svld_dlopen=yes
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17880 ac_cv_lib_svld_dlopen=no
17882 rm -f conftest.err conftest.$ac_objext \
17883 conftest$ac_exeext conftest.$ac_ext
17884 LIBS=$ac_check_lib_save_LIBS
17886 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17887 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17888 if test $ac_cv_lib_svld_dlopen = yes; then
17889 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17891 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17892 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17893 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 ac_check_lib_save_LIBS=$LIBS
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17905 /* Override any gcc2 internal prototype to avoid an error. */
17909 /* We use char because int might match the return type of a gcc2
17910 builtin and then its argument prototype would still apply. */
17920 rm -f conftest.$ac_objext conftest$ac_exeext
17921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17922 (eval $ac_link) 2>conftest.er1
17924 grep -v '^ *+' conftest.er1 >conftest.err
17926 cat conftest.err >&5
17927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17928 (exit $ac_status); } &&
17929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17931 (eval $ac_try) 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; } &&
17935 { ac_try='test -s conftest$ac_exeext'
17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17937 (eval $ac_try) 2>&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); }; }; then
17941 ac_cv_lib_dld_dld_link=yes
17943 echo "$as_me: failed program was:" >&5
17944 sed 's/^/| /' conftest.$ac_ext >&5
17946 ac_cv_lib_dld_dld_link=no
17948 rm -f conftest.err conftest.$ac_objext \
17949 conftest$ac_exeext conftest.$ac_ext
17950 LIBS=$ac_check_lib_save_LIBS
17952 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17953 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17954 if test $ac_cv_lib_dld_dld_link = yes; then
17955 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17976 if test "x$lt_cv_dlopen" != xno; then
17982 case $lt_cv_dlopen in
17984 save_CPPFLAGS="$CPPFLAGS"
17985 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17987 save_LDFLAGS="$LDFLAGS"
17988 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17991 LIBS="$lt_cv_dlopen_libs $LIBS"
17993 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17994 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17995 if test "${lt_cv_dlopen_self+set}" = set; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17998 if test "$cross_compiling" = yes; then :
17999 lt_cv_dlopen_self=cross
18001 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18002 lt_status=$lt_dlunknown
18003 cat > conftest.$ac_ext <<EOF
18004 #line 18004 "configure"
18005 #include "confdefs.h"
18014 # define LT_DLGLOBAL RTLD_GLOBAL
18017 # define LT_DLGLOBAL DL_GLOBAL
18019 # define LT_DLGLOBAL 0
18023 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18024 find out it does not work in some platform. */
18025 #ifndef LT_DLLAZY_OR_NOW
18027 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18030 # define LT_DLLAZY_OR_NOW DL_LAZY
18033 # define LT_DLLAZY_OR_NOW RTLD_NOW
18036 # define LT_DLLAZY_OR_NOW DL_NOW
18038 # define LT_DLLAZY_OR_NOW 0
18046 extern "C" void exit (int);
18049 void fnord() { int i=42;}
18052 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18053 int status = $lt_dlunknown;
18057 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18058 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18059 /* dlclose (self); */
18065 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18066 (eval $ac_link) 2>&5
18068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18069 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18070 (./conftest; exit; ) 2>/dev/null
18072 case x$lt_status in
18073 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18074 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18075 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18078 # compilation failed
18079 lt_cv_dlopen_self=no
18086 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18087 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18089 if test "x$lt_cv_dlopen_self" = xyes; then
18090 LDFLAGS="$LDFLAGS $link_static_flag"
18091 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18092 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18093 if test "${lt_cv_dlopen_self_static+set}" = set; then
18094 echo $ECHO_N "(cached) $ECHO_C" >&6
18096 if test "$cross_compiling" = yes; then :
18097 lt_cv_dlopen_self_static=cross
18099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18100 lt_status=$lt_dlunknown
18101 cat > conftest.$ac_ext <<EOF
18102 #line 18102 "configure"
18103 #include "confdefs.h"
18112 # define LT_DLGLOBAL RTLD_GLOBAL
18115 # define LT_DLGLOBAL DL_GLOBAL
18117 # define LT_DLGLOBAL 0
18121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18122 find out it does not work in some platform. */
18123 #ifndef LT_DLLAZY_OR_NOW
18125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18128 # define LT_DLLAZY_OR_NOW DL_LAZY
18131 # define LT_DLLAZY_OR_NOW RTLD_NOW
18134 # define LT_DLLAZY_OR_NOW DL_NOW
18136 # define LT_DLLAZY_OR_NOW 0
18144 extern "C" void exit (int);
18147 void fnord() { int i=42;}
18150 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18151 int status = $lt_dlunknown;
18155 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18156 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18157 /* dlclose (self); */
18163 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18164 (eval $ac_link) 2>&5
18166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18167 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18168 (./conftest; exit; ) 2>/dev/null
18170 case x$lt_status in
18171 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18172 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18173 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18176 # compilation failed
18177 lt_cv_dlopen_self_static=no
18184 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18185 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18188 CPPFLAGS="$save_CPPFLAGS"
18189 LDFLAGS="$save_LDFLAGS"
18194 case $lt_cv_dlopen_self in
18195 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18196 *) enable_dlopen_self=unknown ;;
18199 case $lt_cv_dlopen_self_static in
18200 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18201 *) enable_dlopen_self_static=unknown ;;
18206 # The else clause should only fire when bootstrapping the
18207 # libtool distribution, otherwise you forgot to ship ltmain.sh
18208 # with your package, and you will get complaints that there are
18209 # no rules to generate ltmain.sh.
18210 if test -f "$ltmain"; then
18211 # See if we are running on zsh, and set the options which allow our commands through
18212 # without removal of \ escapes.
18213 if test -n "${ZSH_VERSION+set}" ; then
18214 setopt NO_GLOB_SUBST
18216 # Now quote all the things that may contain metacharacters while being
18217 # careful not to overquote the AC_SUBSTed values. We take copies of the
18218 # variables and quote the copies for generation of the libtool script.
18219 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18221 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18222 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18223 deplibs_check_method reload_flag reload_cmds need_locks \
18224 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18225 lt_cv_sys_global_symbol_to_c_name_address \
18226 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18227 old_postinstall_cmds old_postuninstall_cmds \
18231 lt_prog_compiler_wl_GCJ \
18232 lt_prog_compiler_pic_GCJ \
18233 lt_prog_compiler_static_GCJ \
18234 lt_prog_compiler_no_builtin_flag_GCJ \
18235 export_dynamic_flag_spec_GCJ \
18236 thread_safe_flag_spec_GCJ \
18237 whole_archive_flag_spec_GCJ \
18238 enable_shared_with_static_runtimes_GCJ \
18239 old_archive_cmds_GCJ \
18240 old_archive_from_new_cmds_GCJ \
18241 predep_objects_GCJ \
18242 postdep_objects_GCJ \
18245 compiler_lib_search_path_GCJ \
18247 archive_expsym_cmds_GCJ \
18248 postinstall_cmds_GCJ \
18249 postuninstall_cmds_GCJ \
18250 old_archive_from_expsyms_cmds_GCJ \
18251 allow_undefined_flag_GCJ \
18252 no_undefined_flag_GCJ \
18253 export_symbols_cmds_GCJ \
18254 hardcode_libdir_flag_spec_GCJ \
18255 hardcode_libdir_flag_spec_ld_GCJ \
18256 hardcode_libdir_separator_GCJ \
18257 hardcode_automatic_GCJ \
18259 module_expsym_cmds_GCJ \
18260 lt_cv_prog_compiler_c_o_GCJ \
18261 exclude_expsyms_GCJ \
18262 include_expsyms_GCJ; do
18265 old_archive_cmds_GCJ | \
18266 old_archive_from_new_cmds_GCJ | \
18267 archive_cmds_GCJ | \
18268 archive_expsym_cmds_GCJ | \
18269 module_cmds_GCJ | \
18270 module_expsym_cmds_GCJ | \
18271 old_archive_from_expsyms_cmds_GCJ | \
18272 export_symbols_cmds_GCJ | \
18273 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18274 postinstall_cmds | postuninstall_cmds | \
18275 old_postinstall_cmds | old_postuninstall_cmds | \
18276 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18277 # Double-quote double-evaled strings.
18278 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18281 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18287 *'\$0 --fallback-echo"')
18288 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18294 cat <<__EOF__ >> "$cfgfile"
18295 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18297 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18299 # Shell to use when invoking shell scripts.
18302 # Whether or not to build shared libraries.
18303 build_libtool_libs=$enable_shared
18305 # Whether or not to build static libraries.
18306 build_old_libs=$enable_static
18308 # Whether or not to add -lc for building shared libraries.
18309 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18311 # Whether or not to disallow shared libs when runtime libs are static
18312 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18314 # Whether or not to optimize for fast installation.
18315 fast_install=$enable_fast_install
18318 host_alias=$host_alias
18321 # An echo program that does not interpret backslashes.
18326 AR_FLAGS=$lt_AR_FLAGS
18331 # A language-specific compiler.
18332 CC=$lt_compiler_GCJ
18334 # Is the compiler the GNU C compiler?
18340 # The linker used to build libraries.
18343 # Whether we need hard or soft links.
18346 # A BSD-compatible nm program.
18349 # A symbol stripping program
18352 # Used to examine libraries when file_magic_cmd begins "file"
18353 MAGIC_CMD=$MAGIC_CMD
18355 # Used on cygwin: DLL creation program.
18358 # Used on cygwin: object dumper.
18361 # Used on cygwin: assembler.
18364 # The name of the directory that contains temporary libtool files.
18367 # How to create reloadable object files.
18368 reload_flag=$lt_reload_flag
18369 reload_cmds=$lt_reload_cmds
18371 # How to pass a linker flag through the compiler.
18372 wl=$lt_lt_prog_compiler_wl_GCJ
18374 # Object file suffix (normally "o").
18375 objext="$ac_objext"
18377 # Old archive suffix (normally "a").
18380 # Shared library suffix (normally ".so").
18381 shrext_cmds='$shrext_cmds'
18383 # Executable file suffix (normally "").
18386 # Additional compiler flags for building library objects.
18387 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18390 # What is the maximum length of a command?
18391 max_cmd_len=$lt_cv_sys_max_cmd_len
18393 # Does compiler simultaneously support -c and -o options?
18394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18396 # Must we lock files when doing compilation ?
18397 need_locks=$lt_need_locks
18399 # Do we need the lib prefix for modules?
18400 need_lib_prefix=$need_lib_prefix
18402 # Do we need a version for libraries?
18403 need_version=$need_version
18405 # Whether dlopen is supported.
18406 dlopen_support=$enable_dlopen
18408 # Whether dlopen of programs is supported.
18409 dlopen_self=$enable_dlopen_self
18411 # Whether dlopen of statically linked programs is supported.
18412 dlopen_self_static=$enable_dlopen_self_static
18414 # Compiler flag to prevent dynamic linking.
18415 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18417 # Compiler flag to turn off builtin functions.
18418 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18420 # Compiler flag to allow reflexive dlopens.
18421 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18423 # Compiler flag to generate shared objects directly from archives.
18424 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18426 # Compiler flag to generate thread-safe objects.
18427 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18429 # Library versioning type.
18430 version_type=$version_type
18432 # Format of library name prefix.
18433 libname_spec=$lt_libname_spec
18435 # List of archive names. First name is the real one, the rest are links.
18436 # The last name is the one that the linker finds with -lNAME.
18437 library_names_spec=$lt_library_names_spec
18439 # The coded name of the library, if different from the real name.
18440 soname_spec=$lt_soname_spec
18442 # Commands used to build and install an old-style archive.
18444 old_archive_cmds=$lt_old_archive_cmds_GCJ
18445 old_postinstall_cmds=$lt_old_postinstall_cmds
18446 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18448 # Create an old-style archive from a shared archive.
18449 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18451 # Create a temporary old-style archive to link instead of a shared archive.
18452 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18454 # Commands used to build and install a shared archive.
18455 archive_cmds=$lt_archive_cmds_GCJ
18456 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18457 postinstall_cmds=$lt_postinstall_cmds
18458 postuninstall_cmds=$lt_postuninstall_cmds
18460 # Commands used to build a loadable module (assumed same as above if empty)
18461 module_cmds=$lt_module_cmds_GCJ
18462 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18464 # Commands to strip libraries.
18465 old_striplib=$lt_old_striplib
18466 striplib=$lt_striplib
18468 # Dependencies to place before the objects being linked to create a
18470 predep_objects=$lt_predep_objects_GCJ
18472 # Dependencies to place after the objects being linked to create a
18474 postdep_objects=$lt_postdep_objects_GCJ
18476 # Dependencies to place before the objects being linked to create a
18478 predeps=$lt_predeps_GCJ
18480 # Dependencies to place after the objects being linked to create a
18482 postdeps=$lt_postdeps_GCJ
18484 # The library search path used internally by the compiler when linking
18485 # a shared library.
18486 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18488 # Method to check whether dependent libraries are shared objects.
18489 deplibs_check_method=$lt_deplibs_check_method
18491 # Command to use when deplibs_check_method == file_magic.
18492 file_magic_cmd=$lt_file_magic_cmd
18494 # Flag that allows shared libraries with undefined symbols to be built.
18495 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18497 # Flag that forces no undefined symbols.
18498 no_undefined_flag=$lt_no_undefined_flag_GCJ
18500 # Commands used to finish a libtool library installation in a directory.
18501 finish_cmds=$lt_finish_cmds
18503 # Same as above, but a single script fragment to be evaled but not shown.
18504 finish_eval=$lt_finish_eval
18506 # Take the output of nm and produce a listing of raw symbols and C names.
18507 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18509 # Transform the output of nm in a proper C declaration
18510 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18512 # Transform the output of nm in a C name address pair
18513 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18515 # This is the shared library runtime path variable.
18516 runpath_var=$runpath_var
18518 # This is the shared library path variable.
18519 shlibpath_var=$shlibpath_var
18521 # Is shlibpath searched before the hard-coded library search path?
18522 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18524 # How to hardcode a shared library path into an executable.
18525 hardcode_action=$hardcode_action_GCJ
18527 # Whether we should hardcode library paths into libraries.
18528 hardcode_into_libs=$hardcode_into_libs
18530 # Flag to hardcode \$libdir into a binary during linking.
18531 # This must work even if \$libdir does not exist.
18532 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18534 # If ld is used when linking, flag to hardcode \$libdir into
18535 # a binary during linking. This must work even if \$libdir does
18537 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18539 # Whether we need a single -rpath flag with a separated argument.
18540 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18542 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18543 # resulting binary.
18544 hardcode_direct=$hardcode_direct_GCJ
18546 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18547 # resulting binary.
18548 hardcode_minus_L=$hardcode_minus_L_GCJ
18550 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18551 # the resulting binary.
18552 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18554 # Set to yes if building a shared library automatically hardcodes DIR into the library
18555 # and all subsequent libraries and executables linked against it.
18556 hardcode_automatic=$hardcode_automatic_GCJ
18558 # Variables whose values should be saved in libtool wrapper scripts and
18559 # restored at relink time.
18560 variables_saved_for_relink="$variables_saved_for_relink"
18562 # Whether libtool must link a program against all its dependency libraries.
18563 link_all_deplibs=$link_all_deplibs_GCJ
18565 # Compile-time system search path for libraries
18566 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18568 # Run-time system search path for libraries
18569 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18571 # Fix the shell variable \$srcfile for the compiler.
18572 fix_srcfile_path="$fix_srcfile_path_GCJ"
18574 # Set to yes if exported symbols are required.
18575 always_export_symbols=$always_export_symbols_GCJ
18577 # The commands to list exported symbols.
18578 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18580 # The commands to extract the exported symbol list from a shared archive.
18581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18583 # Symbols that should not be listed in the preloaded symbols.
18584 exclude_expsyms=$lt_exclude_expsyms_GCJ
18586 # Symbols that must always be exported.
18587 include_expsyms=$lt_include_expsyms_GCJ
18589 # ### END LIBTOOL TAG CONFIG: $tagname
18595 # If there is no Makefile yet, we rely on a make rule to execute
18596 # `config.status --recheck' to rerun these tests and create the
18597 # libtool script then.
18598 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18599 if test -f "$ltmain_in"; then
18600 test -f Makefile && make "$ltmain"
18606 ac_cpp='$CPP $CPPFLAGS'
18607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18622 # Source file extension for RC test sources.
18625 # Object file extension for compiled RC test sources.
18629 # Code to be used in simple compile tests
18630 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18632 # Code to be used in simple link tests
18633 lt_simple_link_test_code="$lt_simple_compile_test_code"
18635 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18637 # If no C compiler was specified, use CC.
18640 # Allow CC to be a program name with arguments.
18644 # Allow CC to be a program name with arguments.
18649 lt_cv_prog_compiler_c_o_RC=yes
18651 # The else clause should only fire when bootstrapping the
18652 # libtool distribution, otherwise you forgot to ship ltmain.sh
18653 # with your package, and you will get complaints that there are
18654 # no rules to generate ltmain.sh.
18655 if test -f "$ltmain"; then
18656 # See if we are running on zsh, and set the options which allow our commands through
18657 # without removal of \ escapes.
18658 if test -n "${ZSH_VERSION+set}" ; then
18659 setopt NO_GLOB_SUBST
18661 # Now quote all the things that may contain metacharacters while being
18662 # careful not to overquote the AC_SUBSTed values. We take copies of the
18663 # variables and quote the copies for generation of the libtool script.
18664 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18666 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18667 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18668 deplibs_check_method reload_flag reload_cmds need_locks \
18669 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18670 lt_cv_sys_global_symbol_to_c_name_address \
18671 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18672 old_postinstall_cmds old_postuninstall_cmds \
18676 lt_prog_compiler_wl_RC \
18677 lt_prog_compiler_pic_RC \
18678 lt_prog_compiler_static_RC \
18679 lt_prog_compiler_no_builtin_flag_RC \
18680 export_dynamic_flag_spec_RC \
18681 thread_safe_flag_spec_RC \
18682 whole_archive_flag_spec_RC \
18683 enable_shared_with_static_runtimes_RC \
18684 old_archive_cmds_RC \
18685 old_archive_from_new_cmds_RC \
18686 predep_objects_RC \
18687 postdep_objects_RC \
18690 compiler_lib_search_path_RC \
18692 archive_expsym_cmds_RC \
18693 postinstall_cmds_RC \
18694 postuninstall_cmds_RC \
18695 old_archive_from_expsyms_cmds_RC \
18696 allow_undefined_flag_RC \
18697 no_undefined_flag_RC \
18698 export_symbols_cmds_RC \
18699 hardcode_libdir_flag_spec_RC \
18700 hardcode_libdir_flag_spec_ld_RC \
18701 hardcode_libdir_separator_RC \
18702 hardcode_automatic_RC \
18704 module_expsym_cmds_RC \
18705 lt_cv_prog_compiler_c_o_RC \
18706 exclude_expsyms_RC \
18707 include_expsyms_RC; do
18710 old_archive_cmds_RC | \
18711 old_archive_from_new_cmds_RC | \
18712 archive_cmds_RC | \
18713 archive_expsym_cmds_RC | \
18715 module_expsym_cmds_RC | \
18716 old_archive_from_expsyms_cmds_RC | \
18717 export_symbols_cmds_RC | \
18718 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18719 postinstall_cmds | postuninstall_cmds | \
18720 old_postinstall_cmds | old_postuninstall_cmds | \
18721 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18722 # Double-quote double-evaled strings.
18723 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18726 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18732 *'\$0 --fallback-echo"')
18733 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18739 cat <<__EOF__ >> "$cfgfile"
18740 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18742 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18744 # Shell to use when invoking shell scripts.
18747 # Whether or not to build shared libraries.
18748 build_libtool_libs=$enable_shared
18750 # Whether or not to build static libraries.
18751 build_old_libs=$enable_static
18753 # Whether or not to add -lc for building shared libraries.
18754 build_libtool_need_lc=$archive_cmds_need_lc_RC
18756 # Whether or not to disallow shared libs when runtime libs are static
18757 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18759 # Whether or not to optimize for fast installation.
18760 fast_install=$enable_fast_install
18763 host_alias=$host_alias
18766 # An echo program that does not interpret backslashes.
18771 AR_FLAGS=$lt_AR_FLAGS
18776 # A language-specific compiler.
18779 # Is the compiler the GNU C compiler?
18785 # The linker used to build libraries.
18788 # Whether we need hard or soft links.
18791 # A BSD-compatible nm program.
18794 # A symbol stripping program
18797 # Used to examine libraries when file_magic_cmd begins "file"
18798 MAGIC_CMD=$MAGIC_CMD
18800 # Used on cygwin: DLL creation program.
18803 # Used on cygwin: object dumper.
18806 # Used on cygwin: assembler.
18809 # The name of the directory that contains temporary libtool files.
18812 # How to create reloadable object files.
18813 reload_flag=$lt_reload_flag
18814 reload_cmds=$lt_reload_cmds
18816 # How to pass a linker flag through the compiler.
18817 wl=$lt_lt_prog_compiler_wl_RC
18819 # Object file suffix (normally "o").
18820 objext="$ac_objext"
18822 # Old archive suffix (normally "a").
18825 # Shared library suffix (normally ".so").
18826 shrext_cmds='$shrext_cmds'
18828 # Executable file suffix (normally "").
18831 # Additional compiler flags for building library objects.
18832 pic_flag=$lt_lt_prog_compiler_pic_RC
18835 # What is the maximum length of a command?
18836 max_cmd_len=$lt_cv_sys_max_cmd_len
18838 # Does compiler simultaneously support -c and -o options?
18839 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18841 # Must we lock files when doing compilation ?
18842 need_locks=$lt_need_locks
18844 # Do we need the lib prefix for modules?
18845 need_lib_prefix=$need_lib_prefix
18847 # Do we need a version for libraries?
18848 need_version=$need_version
18850 # Whether dlopen is supported.
18851 dlopen_support=$enable_dlopen
18853 # Whether dlopen of programs is supported.
18854 dlopen_self=$enable_dlopen_self
18856 # Whether dlopen of statically linked programs is supported.
18857 dlopen_self_static=$enable_dlopen_self_static
18859 # Compiler flag to prevent dynamic linking.
18860 link_static_flag=$lt_lt_prog_compiler_static_RC
18862 # Compiler flag to turn off builtin functions.
18863 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18865 # Compiler flag to allow reflexive dlopens.
18866 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18868 # Compiler flag to generate shared objects directly from archives.
18869 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18871 # Compiler flag to generate thread-safe objects.
18872 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18874 # Library versioning type.
18875 version_type=$version_type
18877 # Format of library name prefix.
18878 libname_spec=$lt_libname_spec
18880 # List of archive names. First name is the real one, the rest are links.
18881 # The last name is the one that the linker finds with -lNAME.
18882 library_names_spec=$lt_library_names_spec
18884 # The coded name of the library, if different from the real name.
18885 soname_spec=$lt_soname_spec
18887 # Commands used to build and install an old-style archive.
18889 old_archive_cmds=$lt_old_archive_cmds_RC
18890 old_postinstall_cmds=$lt_old_postinstall_cmds
18891 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18893 # Create an old-style archive from a shared archive.
18894 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18896 # Create a temporary old-style archive to link instead of a shared archive.
18897 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18899 # Commands used to build and install a shared archive.
18900 archive_cmds=$lt_archive_cmds_RC
18901 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18902 postinstall_cmds=$lt_postinstall_cmds
18903 postuninstall_cmds=$lt_postuninstall_cmds
18905 # Commands used to build a loadable module (assumed same as above if empty)
18906 module_cmds=$lt_module_cmds_RC
18907 module_expsym_cmds=$lt_module_expsym_cmds_RC
18909 # Commands to strip libraries.
18910 old_striplib=$lt_old_striplib
18911 striplib=$lt_striplib
18913 # Dependencies to place before the objects being linked to create a
18915 predep_objects=$lt_predep_objects_RC
18917 # Dependencies to place after the objects being linked to create a
18919 postdep_objects=$lt_postdep_objects_RC
18921 # Dependencies to place before the objects being linked to create a
18923 predeps=$lt_predeps_RC
18925 # Dependencies to place after the objects being linked to create a
18927 postdeps=$lt_postdeps_RC
18929 # The library search path used internally by the compiler when linking
18930 # a shared library.
18931 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18933 # Method to check whether dependent libraries are shared objects.
18934 deplibs_check_method=$lt_deplibs_check_method
18936 # Command to use when deplibs_check_method == file_magic.
18937 file_magic_cmd=$lt_file_magic_cmd
18939 # Flag that allows shared libraries with undefined symbols to be built.
18940 allow_undefined_flag=$lt_allow_undefined_flag_RC
18942 # Flag that forces no undefined symbols.
18943 no_undefined_flag=$lt_no_undefined_flag_RC
18945 # Commands used to finish a libtool library installation in a directory.
18946 finish_cmds=$lt_finish_cmds
18948 # Same as above, but a single script fragment to be evaled but not shown.
18949 finish_eval=$lt_finish_eval
18951 # Take the output of nm and produce a listing of raw symbols and C names.
18952 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18954 # Transform the output of nm in a proper C declaration
18955 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18957 # Transform the output of nm in a C name address pair
18958 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18960 # This is the shared library runtime path variable.
18961 runpath_var=$runpath_var
18963 # This is the shared library path variable.
18964 shlibpath_var=$shlibpath_var
18966 # Is shlibpath searched before the hard-coded library search path?
18967 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18969 # How to hardcode a shared library path into an executable.
18970 hardcode_action=$hardcode_action_RC
18972 # Whether we should hardcode library paths into libraries.
18973 hardcode_into_libs=$hardcode_into_libs
18975 # Flag to hardcode \$libdir into a binary during linking.
18976 # This must work even if \$libdir does not exist.
18977 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18979 # If ld is used when linking, flag to hardcode \$libdir into
18980 # a binary during linking. This must work even if \$libdir does
18982 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18984 # Whether we need a single -rpath flag with a separated argument.
18985 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18987 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18988 # resulting binary.
18989 hardcode_direct=$hardcode_direct_RC
18991 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18992 # resulting binary.
18993 hardcode_minus_L=$hardcode_minus_L_RC
18995 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18996 # the resulting binary.
18997 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18999 # Set to yes if building a shared library automatically hardcodes DIR into the library
19000 # and all subsequent libraries and executables linked against it.
19001 hardcode_automatic=$hardcode_automatic_RC
19003 # Variables whose values should be saved in libtool wrapper scripts and
19004 # restored at relink time.
19005 variables_saved_for_relink="$variables_saved_for_relink"
19007 # Whether libtool must link a program against all its dependency libraries.
19008 link_all_deplibs=$link_all_deplibs_RC
19010 # Compile-time system search path for libraries
19011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19013 # Run-time system search path for libraries
19014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19016 # Fix the shell variable \$srcfile for the compiler.
19017 fix_srcfile_path="$fix_srcfile_path_RC"
19019 # Set to yes if exported symbols are required.
19020 always_export_symbols=$always_export_symbols_RC
19022 # The commands to list exported symbols.
19023 export_symbols_cmds=$lt_export_symbols_cmds_RC
19025 # The commands to extract the exported symbol list from a shared archive.
19026 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19028 # Symbols that should not be listed in the preloaded symbols.
19029 exclude_expsyms=$lt_exclude_expsyms_RC
19031 # Symbols that must always be exported.
19032 include_expsyms=$lt_include_expsyms_RC
19034 # ### END LIBTOOL TAG CONFIG: $tagname
19040 # If there is no Makefile yet, we rely on a make rule to execute
19041 # `config.status --recheck' to rerun these tests and create the
19042 # libtool script then.
19043 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19044 if test -f "$ltmain_in"; then
19045 test -f Makefile && make "$ltmain"
19051 ac_cpp='$CPP $CPPFLAGS'
19052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19061 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19062 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19063 { (exit 1); exit 1; }; }
19067 # Append the new tag name to the list of available tags.
19068 if test -n "$tagname" ; then
19069 available_tags="$available_tags $tagname"
19075 # Now substitute the updated list of available tags.
19076 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19077 mv "${ofile}T" "$ofile"
19081 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19082 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19083 { (exit 1); exit 1; }; }
19089 # This can be used to rebuild libtool when needed
19090 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19092 # Always use our own libtool.
19093 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19095 # Prevent multiple expansion
19117 # declare the modules (no optional module)
19119 ACLOCAL="$ACLOCAL -I acmacro"
19123 ac_cpp='$CPP $CPPFLAGS'
19124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 if test -n "$ac_tool_prefix"; then
19128 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19129 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19130 echo "$as_me:$LINENO: checking for $ac_word" >&5
19131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19132 if test "${ac_cv_prog_CC+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19135 if test -n "$CC"; then
19136 ac_cv_prog_CC="$CC" # Let the user override the test.
19138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19139 for as_dir in $PATH
19142 test -z "$as_dir" && as_dir=.
19143 for ac_exec_ext in '' $ac_executable_extensions; do
19144 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19145 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19155 if test -n "$CC"; then
19156 echo "$as_me:$LINENO: result: $CC" >&5
19157 echo "${ECHO_T}$CC" >&6
19159 echo "$as_me:$LINENO: result: no" >&5
19160 echo "${ECHO_T}no" >&6
19164 if test -z "$ac_cv_prog_CC"; then
19166 # Extract the first word of "gcc", so it can be a program name with args.
19167 set dummy gcc; ac_word=$2
19168 echo "$as_me:$LINENO: checking for $ac_word" >&5
19169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19170 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19173 if test -n "$ac_ct_CC"; then
19174 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19177 for as_dir in $PATH
19180 test -z "$as_dir" && as_dir=.
19181 for ac_exec_ext in '' $ac_executable_extensions; do
19182 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19183 ac_cv_prog_ac_ct_CC="gcc"
19184 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19192 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19193 if test -n "$ac_ct_CC"; then
19194 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19195 echo "${ECHO_T}$ac_ct_CC" >&6
19197 echo "$as_me:$LINENO: result: no" >&5
19198 echo "${ECHO_T}no" >&6
19203 CC="$ac_cv_prog_CC"
19206 if test -z "$CC"; then
19207 if test -n "$ac_tool_prefix"; then
19208 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19209 set dummy ${ac_tool_prefix}cc; ac_word=$2
19210 echo "$as_me:$LINENO: checking for $ac_word" >&5
19211 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19212 if test "${ac_cv_prog_CC+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19215 if test -n "$CC"; then
19216 ac_cv_prog_CC="$CC" # Let the user override the test.
19218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19219 for as_dir in $PATH
19222 test -z "$as_dir" && as_dir=.
19223 for ac_exec_ext in '' $ac_executable_extensions; do
19224 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19225 ac_cv_prog_CC="${ac_tool_prefix}cc"
19226 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19235 if test -n "$CC"; then
19236 echo "$as_me:$LINENO: result: $CC" >&5
19237 echo "${ECHO_T}$CC" >&6
19239 echo "$as_me:$LINENO: result: no" >&5
19240 echo "${ECHO_T}no" >&6
19244 if test -z "$ac_cv_prog_CC"; then
19246 # Extract the first word of "cc", so it can be a program name with args.
19247 set dummy cc; ac_word=$2
19248 echo "$as_me:$LINENO: checking for $ac_word" >&5
19249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19250 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19251 echo $ECHO_N "(cached) $ECHO_C" >&6
19253 if test -n "$ac_ct_CC"; then
19254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19257 for as_dir in $PATH
19260 test -z "$as_dir" && as_dir=.
19261 for ac_exec_ext in '' $ac_executable_extensions; do
19262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19263 ac_cv_prog_ac_ct_CC="cc"
19264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19273 if test -n "$ac_ct_CC"; then
19274 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19275 echo "${ECHO_T}$ac_ct_CC" >&6
19277 echo "$as_me:$LINENO: result: no" >&5
19278 echo "${ECHO_T}no" >&6
19283 CC="$ac_cv_prog_CC"
19287 if test -z "$CC"; then
19288 # Extract the first word of "cc", so it can be a program name with args.
19289 set dummy cc; ac_word=$2
19290 echo "$as_me:$LINENO: checking for $ac_word" >&5
19291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19292 if test "${ac_cv_prog_CC+set}" = set; then
19293 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 if test -n "$CC"; then
19296 ac_cv_prog_CC="$CC" # Let the user override the test.
19298 ac_prog_rejected=no
19299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19300 for as_dir in $PATH
19303 test -z "$as_dir" && as_dir=.
19304 for ac_exec_ext in '' $ac_executable_extensions; do
19305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19306 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19307 ac_prog_rejected=yes
19311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19317 if test $ac_prog_rejected = yes; then
19318 # We found a bogon in the path, so make sure we never use it.
19319 set dummy $ac_cv_prog_CC
19321 if test $# != 0; then
19322 # We chose a different compiler from the bogus one.
19323 # However, it has the same basename, so the bogon will be chosen
19324 # first if we set CC to just the basename; use the full file name.
19326 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19332 if test -n "$CC"; then
19333 echo "$as_me:$LINENO: result: $CC" >&5
19334 echo "${ECHO_T}$CC" >&6
19336 echo "$as_me:$LINENO: result: no" >&5
19337 echo "${ECHO_T}no" >&6
19341 if test -z "$CC"; then
19342 if test -n "$ac_tool_prefix"; then
19345 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19346 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19347 echo "$as_me:$LINENO: checking for $ac_word" >&5
19348 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19349 if test "${ac_cv_prog_CC+set}" = set; then
19350 echo $ECHO_N "(cached) $ECHO_C" >&6
19352 if test -n "$CC"; then
19353 ac_cv_prog_CC="$CC" # Let the user override the test.
19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19356 for as_dir in $PATH
19359 test -z "$as_dir" && as_dir=.
19360 for ac_exec_ext in '' $ac_executable_extensions; do
19361 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19362 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19372 if test -n "$CC"; then
19373 echo "$as_me:$LINENO: result: $CC" >&5
19374 echo "${ECHO_T}$CC" >&6
19376 echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19380 test -n "$CC" && break
19383 if test -z "$CC"; then
19387 # Extract the first word of "$ac_prog", so it can be a program name with args.
19388 set dummy $ac_prog; ac_word=$2
19389 echo "$as_me:$LINENO: checking for $ac_word" >&5
19390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19391 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19392 echo $ECHO_N "(cached) $ECHO_C" >&6
19394 if test -n "$ac_ct_CC"; then
19395 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19398 for as_dir in $PATH
19401 test -z "$as_dir" && as_dir=.
19402 for ac_exec_ext in '' $ac_executable_extensions; do
19403 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19404 ac_cv_prog_ac_ct_CC="$ac_prog"
19405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19413 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19414 if test -n "$ac_ct_CC"; then
19415 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19416 echo "${ECHO_T}$ac_ct_CC" >&6
19418 echo "$as_me:$LINENO: result: no" >&5
19419 echo "${ECHO_T}no" >&6
19422 test -n "$ac_ct_CC" && break
19431 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19432 See \`config.log' for more details." >&5
19433 echo "$as_me: error: no acceptable C compiler found in \$PATH
19434 See \`config.log' for more details." >&2;}
19435 { (exit 1); exit 1; }; }
19437 # Provide some information about the compiler.
19438 echo "$as_me:$LINENO:" \
19439 "checking for C compiler version" >&5
19440 ac_compiler=`set X $ac_compile; echo $2`
19441 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19442 (eval $ac_compiler --version </dev/null >&5) 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }
19446 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19447 (eval $ac_compiler -v </dev/null >&5) 2>&5
19449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19450 (exit $ac_status); }
19451 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19452 (eval $ac_compiler -V </dev/null >&5) 2>&5
19454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19455 (exit $ac_status); }
19457 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19458 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19459 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19460 echo $ECHO_N "(cached) $ECHO_C" >&6
19462 cat >conftest.$ac_ext <<_ACEOF
19465 cat confdefs.h >>conftest.$ac_ext
19466 cat >>conftest.$ac_ext <<_ACEOF
19467 /* end confdefs.h. */
19480 rm -f conftest.$ac_objext
19481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19482 (eval $ac_compile) 2>conftest.er1
19484 grep -v '^ *+' conftest.er1 >conftest.err
19486 cat conftest.err >&5
19487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19488 (exit $ac_status); } &&
19489 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19491 (eval $ac_try) 2>&5
19493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494 (exit $ac_status); }; } &&
19495 { ac_try='test -s conftest.$ac_objext'
19496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19497 (eval $ac_try) 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; }; then
19501 ac_compiler_gnu=yes
19503 echo "$as_me: failed program was:" >&5
19504 sed 's/^/| /' conftest.$ac_ext >&5
19508 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19509 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19512 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19513 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19514 GCC=`test $ac_compiler_gnu = yes && echo yes`
19515 ac_test_CFLAGS=${CFLAGS+set}
19516 ac_save_CFLAGS=$CFLAGS
19518 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19519 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19520 if test "${ac_cv_prog_cc_g+set}" = set; then
19521 echo $ECHO_N "(cached) $ECHO_C" >&6
19523 cat >conftest.$ac_ext <<_ACEOF
19526 cat confdefs.h >>conftest.$ac_ext
19527 cat >>conftest.$ac_ext <<_ACEOF
19528 /* end confdefs.h. */
19538 rm -f conftest.$ac_objext
19539 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19540 (eval $ac_compile) 2>conftest.er1
19542 grep -v '^ *+' conftest.er1 >conftest.err
19544 cat conftest.err >&5
19545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19546 (exit $ac_status); } &&
19547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19549 (eval $ac_try) 2>&5
19551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19552 (exit $ac_status); }; } &&
19553 { ac_try='test -s conftest.$ac_objext'
19554 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19555 (eval $ac_try) 2>&5
19557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19558 (exit $ac_status); }; }; then
19559 ac_cv_prog_cc_g=yes
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19566 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19568 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19569 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19570 if test "$ac_test_CFLAGS" = set; then
19571 CFLAGS=$ac_save_CFLAGS
19572 elif test $ac_cv_prog_cc_g = yes; then
19573 if test "$GCC" = yes; then
19579 if test "$GCC" = yes; then
19585 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19586 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19587 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19588 echo $ECHO_N "(cached) $ECHO_C" >&6
19590 ac_cv_prog_cc_stdc=no
19592 cat >conftest.$ac_ext <<_ACEOF
19595 cat confdefs.h >>conftest.$ac_ext
19596 cat >>conftest.$ac_ext <<_ACEOF
19597 /* end confdefs.h. */
19598 #include <stdarg.h>
19600 #include <sys/types.h>
19601 #include <sys/stat.h>
19602 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19603 struct buf { int x; };
19604 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19605 static char *e (p, i)
19611 static char *f (char * (*g) (char **, int), char **p, ...)
19616 s = g (p, va_arg (v,int));
19621 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19622 function prototypes and stuff, but not '\xHH' hex character constants.
19623 These don't provoke an error unfortunately, instead are silently treated
19624 as 'x'. The following induces an error, until -std1 is added to get
19625 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19626 array size at least. It's necessary to write '\x00'==0 to get something
19627 that's true only with -std1. */
19628 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19630 int test (int i, double x);
19631 struct s1 {int (*f) (int a);};
19632 struct s2 {int (*f) (double a);};
19633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19644 # Don't try gcc -ansi; that turns off useful extensions and
19645 # breaks some systems' header files.
19646 # AIX -qlanglvl=ansi
19647 # Ultrix and OSF/1 -std1
19648 # HP-UX 10.20 and later -Ae
19649 # HP-UX older versions -Aa -D_HPUX_SOURCE
19650 # SVR4 -Xc -D__EXTENSIONS__
19651 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19653 CC="$ac_save_CC $ac_arg"
19654 rm -f conftest.$ac_objext
19655 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19656 (eval $ac_compile) 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
19663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19665 (eval $ac_try) 2>&5
19667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19668 (exit $ac_status); }; } &&
19669 { ac_try='test -s conftest.$ac_objext'
19670 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19671 (eval $ac_try) 2>&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); }; }; then
19675 ac_cv_prog_cc_stdc=$ac_arg
19678 echo "$as_me: failed program was:" >&5
19679 sed 's/^/| /' conftest.$ac_ext >&5
19682 rm -f conftest.err conftest.$ac_objext
19684 rm -f conftest.$ac_ext conftest.$ac_objext
19689 case "x$ac_cv_prog_cc_stdc" in
19691 echo "$as_me:$LINENO: result: none needed" >&5
19692 echo "${ECHO_T}none needed" >&6 ;;
19694 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19695 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19696 CC="$CC $ac_cv_prog_cc_stdc" ;;
19699 # Some people use a C++ compiler to compile C. Since we use `exit',
19700 # in C++ we need to declare it. In case someone uses the same compiler
19701 # for both compiling C and C++ we need to have the C++ compiler decide
19702 # the declaration of exit, since it's the most demanding environment.
19703 cat >conftest.$ac_ext <<_ACEOF
19704 #ifndef __cplusplus
19708 rm -f conftest.$ac_objext
19709 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19710 (eval $ac_compile) 2>conftest.er1
19712 grep -v '^ *+' conftest.er1 >conftest.err
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } &&
19717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19719 (eval $ac_try) 2>&5
19721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19722 (exit $ac_status); }; } &&
19723 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19729 for ac_declaration in \
19731 'extern "C" void std::exit (int) throw (); using std::exit;' \
19732 'extern "C" void std::exit (int); using std::exit;' \
19733 'extern "C" void exit (int) throw ();' \
19734 'extern "C" void exit (int);' \
19737 cat >conftest.$ac_ext <<_ACEOF
19740 cat confdefs.h >>conftest.$ac_ext
19741 cat >>conftest.$ac_ext <<_ACEOF
19742 /* end confdefs.h. */
19744 #include <stdlib.h>
19753 rm -f conftest.$ac_objext
19754 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19755 (eval $ac_compile) 2>conftest.er1
19757 grep -v '^ *+' conftest.er1 >conftest.err
19759 cat conftest.err >&5
19760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19761 (exit $ac_status); } &&
19762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19764 (eval $ac_try) 2>&5
19766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19767 (exit $ac_status); }; } &&
19768 { ac_try='test -s conftest.$ac_objext'
19769 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19770 (eval $ac_try) 2>&5
19772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19773 (exit $ac_status); }; }; then
19776 echo "$as_me: failed program was:" >&5
19777 sed 's/^/| /' conftest.$ac_ext >&5
19781 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19782 cat >conftest.$ac_ext <<_ACEOF
19785 cat confdefs.h >>conftest.$ac_ext
19786 cat >>conftest.$ac_ext <<_ACEOF
19787 /* end confdefs.h. */
19797 rm -f conftest.$ac_objext
19798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19799 (eval $ac_compile) 2>conftest.er1
19801 grep -v '^ *+' conftest.er1 >conftest.err
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19808 (eval $ac_try) 2>&5
19810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19811 (exit $ac_status); }; } &&
19812 { ac_try='test -s conftest.$ac_objext'
19813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19814 (eval $ac_try) 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }; }; then
19820 echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19824 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19827 if test -n "$ac_declaration"; then
19828 echo '#ifdef __cplusplus' >>confdefs.h
19829 echo $ac_declaration >>confdefs.h
19830 echo '#endif' >>confdefs.h
19834 echo "$as_me: failed program was:" >&5
19835 sed 's/^/| /' conftest.$ac_ext >&5
19838 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19840 ac_cpp='$CPP $CPPFLAGS'
19841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19845 depcc="$CC" am_compiler_list=
19847 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
19848 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
19849 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19852 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
19853 # We make a subdir and do the tests there. Otherwise we can end up
19854 # making bogus files that we don't know about and never remove. For
19855 # instance it was reported that on HP-UX the gcc test will end up
19856 # making a dummy file named `D' -- because `-MD' means `put the output
19859 # Copy depcomp to subdir because otherwise we won't find it if we're
19860 # using a relative directory.
19861 cp "$am_depcomp" conftest.dir
19863 # We will build objects and dependencies in a subdirectory because
19864 # it helps to detect inapplicable dependency modes. For instance
19865 # both Tru64's cc and ICC support -MD to output dependencies as a
19866 # side effect of compilation, but ICC will put the dependencies in
19867 # the current directory while Tru64 will put them in the object
19871 am_cv_CC_dependencies_compiler_type=none
19872 if test "$am_compiler_list" = ""; then
19873 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
19875 for depmode in $am_compiler_list; do
19876 # Setup a source with many dependencies, because some compilers
19877 # like to wrap large dependency lists on column 80 (with \), and
19878 # we should not choose a depcomp mode which is confused by this.
19880 # We need to recreate these files for each test, as the compiler may
19881 # overwrite some of them when testing with obscure command lines.
19882 # This happens at least with the AIX C compiler.
19884 for i in 1 2 3 4 5 6; do
19885 echo '#include "conftst'$i'.h"' >> sub/conftest.c
19886 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
19887 # Solaris 8's {/usr,}/bin/sh.
19888 touch sub/conftst$i.h
19890 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
19894 # after this tag, mechanisms are not by side-effect, so they'll
19895 # only be used when explicitly requested
19896 if test "x$enable_dependency_tracking" = xyes; then
19904 # We check with `-c' and `-o' for the sake of the "dashmstdout"
19905 # mode. It turns out that the SunPro C++ compiler does not properly
19906 # handle `-M -o', and we need to detect this.
19907 if depmode=$depmode \
19908 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
19909 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
19910 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
19911 >/dev/null 2>conftest.err &&
19912 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
19913 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
19914 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
19915 # icc doesn't choke on unknown options, it will just issue warnings
19916 # or remarks (even with -Werror). So we grep stderr for any message
19917 # that says an option was ignored or not supported.
19918 # When given -MP, icc 7.0 and 7.1 complain thusly:
19919 # icc: Command line warning: ignoring option '-M'; no argument required
19920 # The diagnosis changed in icc 8.0:
19921 # icc: Command line remark: option '-MP' not supported
19922 if (grep 'ignoring option' conftest.err ||
19923 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
19924 am_cv_CC_dependencies_compiler_type=$depmode
19931 rm -rf conftest.dir
19933 am_cv_CC_dependencies_compiler_type=none
19937 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
19938 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
19939 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
19944 test "x$enable_dependency_tracking" != xno \
19945 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
19946 am__fastdepCC_TRUE=
19947 am__fastdepCC_FALSE='#'
19949 am__fastdepCC_TRUE='#'
19950 am__fastdepCC_FALSE=
19954 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
19955 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
19958 echo timestamp > conftest.file
19959 # Do `set' in a subshell so we don't clobber the current shell's
19960 # arguments. Must try -L first in case configure is actually a
19961 # symlink; some systems play weird games with the mod time of symlinks
19962 # (eg FreeBSD returns the mod time of the symlink's containing
19965 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
19966 if test "$*" = "X"; then
19968 set X `ls -t $srcdir/configure conftest.file`
19970 rm -f conftest.file
19971 if test "$*" != "X $srcdir/configure conftest.file" \
19972 && test "$*" != "X conftest.file $srcdir/configure"; then
19974 # If neither matched, then we have a broken ls. This can happen
19975 # if, for instance, CONFIG_SHELL is bash and it inherits a
19976 # broken ls alias from the environment. This has actually
19977 # happened. Such a system could not be considered "sane".
19978 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
19979 alias in your environment" >&5
19980 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
19981 alias in your environment" >&2;}
19982 { (exit 1); exit 1; }; }
19985 test "$2" = conftest.file
19991 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
19992 Check your system clock" >&5
19993 echo "$as_me: error: newly created file is older than distributed files!
19994 Check your system clock" >&2;}
19995 { (exit 1); exit 1; }; }
19997 echo "$as_me:$LINENO: result: yes" >&5
19998 echo "${ECHO_T}yes" >&6
19999 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20000 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20001 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20002 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20003 echo $ECHO_N "(cached) $ECHO_C" >&6
20005 cat >conftest.make <<\_ACEOF
20007 @echo 'ac_maketemp="$(MAKE)"'
20009 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20010 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20011 if test -n "$ac_maketemp"; then
20012 eval ac_cv_prog_make_${ac_make}_set=yes
20014 eval ac_cv_prog_make_${ac_make}_set=no
20016 rm -f conftest.make
20018 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20019 echo "$as_me:$LINENO: result: yes" >&5
20020 echo "${ECHO_T}yes" >&6
20023 echo "$as_me:$LINENO: result: no" >&5
20024 echo "${ECHO_T}no" >&6
20025 SET_MAKE="MAKE=${MAKE-make}"
20029 # Check architecture signature begin
20031 # Check for the architecture
20032 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
20033 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
20034 if test "${ac_cv_c_bigendian+set}" = set; then
20035 echo $ECHO_N "(cached) $ECHO_C" >&6
20037 # See if sys/param.h defines the BYTE_ORDER macro.
20038 cat >conftest.$ac_ext <<_ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */
20044 #include <sys/types.h>
20045 #include <sys/param.h>
20050 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
20051 bogus endian macros
20058 rm -f conftest.$ac_objext
20059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20060 (eval $ac_compile) 2>conftest.er1
20062 grep -v '^ *+' conftest.er1 >conftest.err
20064 cat conftest.err >&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); } &&
20067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20069 (eval $ac_try) 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; } &&
20073 { ac_try='test -s conftest.$ac_objext'
20074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20075 (eval $ac_try) 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 # It does; now see whether it defined to BIG_ENDIAN or not.
20080 cat >conftest.$ac_ext <<_ACEOF
20083 cat confdefs.h >>conftest.$ac_ext
20084 cat >>conftest.$ac_ext <<_ACEOF
20085 /* end confdefs.h. */
20086 #include <sys/types.h>
20087 #include <sys/param.h>
20092 #if BYTE_ORDER != BIG_ENDIAN
20100 rm -f conftest.$ac_objext
20101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20102 (eval $ac_compile) 2>conftest.er1
20104 grep -v '^ *+' conftest.er1 >conftest.err
20106 cat conftest.err >&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); } &&
20109 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20111 (eval $ac_try) 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; } &&
20115 { ac_try='test -s conftest.$ac_objext'
20116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20117 (eval $ac_try) 2>&5
20119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20120 (exit $ac_status); }; }; then
20121 ac_cv_c_bigendian=yes
20123 echo "$as_me: failed program was:" >&5
20124 sed 's/^/| /' conftest.$ac_ext >&5
20126 ac_cv_c_bigendian=no
20128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20130 echo "$as_me: failed program was:" >&5
20131 sed 's/^/| /' conftest.$ac_ext >&5
20133 # It does not; compile a test program.
20134 if test "$cross_compiling" = yes; then
20135 # try to guess the endianness by grepping values into an object file
20136 ac_cv_c_bigendian=unknown
20137 cat >conftest.$ac_ext <<_ACEOF
20140 cat confdefs.h >>conftest.$ac_ext
20141 cat >>conftest.$ac_ext <<_ACEOF
20142 /* end confdefs.h. */
20143 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
20144 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
20145 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
20146 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
20147 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
20148 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
20152 _ascii (); _ebcdic ();
20157 rm -f conftest.$ac_objext
20158 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20159 (eval $ac_compile) 2>conftest.er1
20161 grep -v '^ *+' conftest.er1 >conftest.err
20163 cat conftest.err >&5
20164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20165 (exit $ac_status); } &&
20166 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20168 (eval $ac_try) 2>&5
20170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20171 (exit $ac_status); }; } &&
20172 { ac_try='test -s conftest.$ac_objext'
20173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20174 (eval $ac_try) 2>&5
20176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20177 (exit $ac_status); }; }; then
20178 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
20179 ac_cv_c_bigendian=yes
20181 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
20182 if test "$ac_cv_c_bigendian" = unknown; then
20183 ac_cv_c_bigendian=no
20185 # finding both strings is unlikely to happen, but who knows?
20186 ac_cv_c_bigendian=unknown
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20194 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20205 /* Are we little or big endian? From Harbison&Steele. */
20209 char c[sizeof (long)];
20212 exit (u.c[sizeof (long) - 1] == 1);
20215 rm -f conftest$ac_exeext
20216 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20217 (eval $ac_link) 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20222 (eval $ac_try) 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; }; then
20226 ac_cv_c_bigendian=no
20228 echo "$as_me: program exited with status $ac_status" >&5
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20232 ( exit $ac_status )
20233 ac_cv_c_bigendian=yes
20235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20238 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20240 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
20241 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
20242 case $ac_cv_c_bigendian in
20248 { { echo "$as_me:$LINENO: error: GRAS works only for little or big endian systems (yet)" >&5
20249 echo "$as_me: error: GRAS works only for little or big endian systems (yet)" >&2;}
20250 { (exit 1); exit 1; }; } ;;
20254 echo "$as_me:$LINENO: checking whether int is two-compliment" >&5
20255 echo $ECHO_N "checking whether int is two-compliment... $ECHO_C" >&6
20256 if test "$cross_compiling" = yes; then
20257 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
20258 See \`config.log' for more details." >&5
20259 echo "$as_me: error: cannot run test program while cross compiling
20260 See \`config.log' for more details." >&2;}
20261 { (exit 1); exit 1; }; }
20263 cat >conftest.$ac_ext <<_ACEOF
20266 cat confdefs.h >>conftest.$ac_ext
20267 cat >>conftest.$ac_ext <<_ACEOF
20268 /* end confdefs.h. */
20269 #include "confdefs.h"
20271 signed int testInt;
20272 unsigned char bytes[sizeof(int)];
20279 intTester.testInt = -2;
20280 return ((unsigned int)intTester.bytes[0] +
20281 (unsigned int)intTester.bytes[sizeof(int) - 1]) - 509; /* should be 0 */
20287 rm -f conftest$ac_exeext
20288 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20289 (eval $ac_link) 2>&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20294 (eval $ac_try) 2>&5
20296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); }; }; then
20300 echo "$as_me: program exited with status $ac_status" >&5
20301 echo "$as_me: failed program was:" >&5
20302 sed 's/^/| /' conftest.$ac_ext >&5
20304 ( exit $ac_status )
20307 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20309 echo "$as_me:$LINENO: result: $two_compliment" >&5
20310 echo "${ECHO_T}$two_compliment" >&6
20311 if test x$two_compliment != xyes ; then
20312 { { echo "$as_me:$LINENO: error: GRAS works only two-compliment integers (yet)" >&5
20313 echo "$as_me: error: GRAS works only two-compliment integers (yet)" >&2;}
20314 { (exit 1); exit 1; }; }
20318 cat >>confdefs.h <<_ACEOF
20319 #define GRAS_BIGENDIAN $endian
20323 echo "$as_me:$LINENO: checking size of char" >&5
20324 echo $ECHO_N "checking size of char... $ECHO_C" >&6
20325 if test "${ac_cv_sizeof_char+set}" = set; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20329 cat >conftest.$ac_ext <<_ACEOF
20332 cat confdefs.h >>conftest.$ac_ext
20333 cat >>conftest.$ac_ext <<_ACEOF
20334 /* end confdefs.h. */
20335 #include "confdefs.h"
20336 #include <sys/types.h>
20342 switch (0) case 0: case (sizeof (char) == $ac_size):;
20347 rm -f conftest.$ac_objext
20348 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20349 (eval $ac_compile) 2>conftest.er1
20351 grep -v '^ *+' conftest.er1 >conftest.err
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20358 (eval $ac_try) 2>&5
20360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361 (exit $ac_status); }; } &&
20362 { ac_try='test -s conftest.$ac_objext'
20363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20364 (eval $ac_try) 2>&5
20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367 (exit $ac_status); }; }; then
20368 ac_cv_sizeof_char=$ac_size
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20375 if test x$ac_cv_sizeof_char != x ; then break; fi
20381 unspecif=$ac_cv_sizeof_char
20382 if test x$unspecif = x ; then
20383 { { echo "$as_me:$LINENO: error: cannot determine a size for char" >&5
20384 echo "$as_me: error: cannot determine a size for char" >&2;}
20385 { (exit 1); exit 1; }; }
20388 if test "${ac_cv_sizeof_signed_char+set}" = set; then
20389 echo $ECHO_N "(cached) $ECHO_C" >&6
20391 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20392 cat >conftest.$ac_ext <<_ACEOF
20395 cat confdefs.h >>conftest.$ac_ext
20396 cat >>conftest.$ac_ext <<_ACEOF
20397 /* end confdefs.h. */
20398 #include "confdefs.h"
20399 #include <sys/types.h>
20405 switch (0) case 0: case (sizeof (signed char) == $ac_size):;
20410 rm -f conftest.$ac_objext
20411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20412 (eval $ac_compile) 2>conftest.er1
20414 grep -v '^ *+' conftest.er1 >conftest.err
20416 cat conftest.err >&5
20417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20418 (exit $ac_status); } &&
20419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
20425 { ac_try='test -s conftest.$ac_objext'
20426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20427 (eval $ac_try) 2>&5
20429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20430 (exit $ac_status); }; }; then
20431 ac_cv_sizeof_signed_char=$ac_size
20433 echo "$as_me: failed program was:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20437 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20438 if test x$ac_cv_sizeof_signed_char != x ; then break; fi
20444 signed=$ac_cv_sizeof_signed_char
20445 if test x$signed = x ; then
20446 { { echo "$as_me:$LINENO: error: cannot determine a size for signed char" >&5
20447 echo "$as_me: error: cannot determine a size for signed char" >&2;}
20448 { (exit 1); exit 1; }; }
20450 if test x$unspecif != x$signed ; then
20451 { { echo "$as_me:$LINENO: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&5
20452 echo "$as_me: error: 'signed char' and 'char' have different sizes ! ($signed != $unspecif)" >&2;}
20453 { (exit 1); exit 1; }; }
20456 if test "${ac_cv_sizeof_unsigned_char+set}" = set; then
20457 echo $ECHO_N "(cached) $ECHO_C" >&6
20459 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #include "confdefs.h"
20467 #include <sys/types.h>
20473 switch (0) case 0: case (sizeof (unsigned char) == $ac_size):;
20478 rm -f conftest.$ac_objext
20479 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20480 (eval $ac_compile) 2>conftest.er1
20482 grep -v '^ *+' conftest.er1 >conftest.err
20484 cat conftest.err >&5
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); } &&
20487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20489 (eval $ac_try) 2>&5
20491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20492 (exit $ac_status); }; } &&
20493 { ac_try='test -s conftest.$ac_objext'
20494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20495 (eval $ac_try) 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; }; then
20499 ac_cv_sizeof_unsigned_char=$ac_size
20501 echo "$as_me: failed program was:" >&5
20502 sed 's/^/| /' conftest.$ac_ext >&5
20505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20506 if test x$ac_cv_sizeof_unsigned_char != x ; then break; fi
20512 unsigned=$ac_cv_sizeof_unsigned_char
20513 if test x$unsigned = x ; then
20514 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned char" >&5
20515 echo "$as_me: error: cannot determine a size for unsigned char" >&2;}
20516 { (exit 1); exit 1; }; }
20518 if test x$unsigned != x$signed ; then
20519 { { echo "$as_me:$LINENO: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&5
20520 echo "$as_me: error: 'signed char' and 'unsigned char' have different sizes ! ($signed != $unsigned)" >&2;}
20521 { (exit 1); exit 1; }; }
20524 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_char" >&5
20525 echo "${ECHO_T}$ac_cv_sizeof_unsigned_char" >&6
20526 echo "$as_me:$LINENO: checking for the minimal structure boundary of char" >&5
20527 echo $ECHO_N "checking for the minimal structure boundary of char... $ECHO_C" >&6
20529 if test "${ac_cv_struct_boundary_char+set}" = set; then
20530 echo $ECHO_N "(cached) $ECHO_C" >&6
20532 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
20533 cat >conftest.$ac_ext <<_ACEOF
20536 cat confdefs.h >>conftest.$ac_ext
20537 cat >>conftest.$ac_ext <<_ACEOF
20538 /* end confdefs.h. */
20539 #include "confdefs.h"
20540 #include <sys/types.h>
20541 struct s { char c; char i; };
20546 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(char)):;
20551 rm -f conftest.$ac_objext
20552 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20553 (eval $ac_compile) 2>conftest.er1
20555 grep -v '^ *+' conftest.er1 >conftest.err
20557 cat conftest.err >&5
20558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20559 (exit $ac_status); } &&
20560 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20562 (eval $ac_try) 2>&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); }; } &&
20566 { ac_try='test -s conftest.$ac_objext'
20567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20568 (eval $ac_try) 2>&5
20570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20571 (exit $ac_status); }; }; then
20572 ac_cv_struct_boundary_char=$ac_size
20574 echo "$as_me: failed program was:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20578 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20579 if test x$ac_cv_struct_boundary_char != x ; then break; fi
20584 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_char" >&5
20585 echo "${ECHO_T}$ac_cv_struct_boundary_char" >&6
20587 echo "$as_me:$LINENO: checking size of short int" >&5
20588 echo $ECHO_N "checking size of short int... $ECHO_C" >&6
20589 if test "${ac_cv_sizeof_short_int+set}" = set; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
20592 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20593 cat >conftest.$ac_ext <<_ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include "confdefs.h"
20600 #include <sys/types.h>
20606 switch (0) case 0: case (sizeof (short int) == $ac_size):;
20611 rm -f conftest.$ac_objext
20612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20613 (eval $ac_compile) 2>conftest.er1
20615 grep -v '^ *+' conftest.er1 >conftest.err
20617 cat conftest.err >&5
20618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20619 (exit $ac_status); } &&
20620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20622 (eval $ac_try) 2>&5
20624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20625 (exit $ac_status); }; } &&
20626 { ac_try='test -s conftest.$ac_objext'
20627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20628 (eval $ac_try) 2>&5
20630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631 (exit $ac_status); }; }; then
20632 ac_cv_sizeof_short_int=$ac_size
20634 echo "$as_me: failed program was:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20638 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20639 if test x$ac_cv_sizeof_short_int != x ; then break; fi
20645 unspecif=$ac_cv_sizeof_short_int
20646 if test x$unspecif = x ; then
20647 { { echo "$as_me:$LINENO: error: cannot determine a size for short int" >&5
20648 echo "$as_me: error: cannot determine a size for short int" >&2;}
20649 { (exit 1); exit 1; }; }
20652 if test "${ac_cv_sizeof_signed_short_int+set}" = set; then
20653 echo $ECHO_N "(cached) $ECHO_C" >&6
20655 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20656 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20662 #include "confdefs.h"
20663 #include <sys/types.h>
20669 switch (0) case 0: case (sizeof (signed short int) == $ac_size):;
20674 rm -f conftest.$ac_objext
20675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20676 (eval $ac_compile) 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20682 (exit $ac_status); } &&
20683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20685 (eval $ac_try) 2>&5
20687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20688 (exit $ac_status); }; } &&
20689 { ac_try='test -s conftest.$ac_objext'
20690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20691 (eval $ac_try) 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_sizeof_signed_short_int=$ac_size
20697 echo "$as_me: failed program was:" >&5
20698 sed 's/^/| /' conftest.$ac_ext >&5
20701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20702 if test x$ac_cv_sizeof_signed_short_int != x ; then break; fi
20708 signed=$ac_cv_sizeof_signed_short_int
20709 if test x$signed = x ; then
20710 { { echo "$as_me:$LINENO: error: cannot determine a size for signed short int" >&5
20711 echo "$as_me: error: cannot determine a size for signed short int" >&2;}
20712 { (exit 1); exit 1; }; }
20714 if test x$unspecif != x$signed ; then
20715 { { echo "$as_me:$LINENO: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&5
20716 echo "$as_me: error: 'signed short int' and 'short int' have different sizes ! ($signed != $unspecif)" >&2;}
20717 { (exit 1); exit 1; }; }
20720 if test "${ac_cv_sizeof_unsigned_short_int+set}" = set; then
20721 echo $ECHO_N "(cached) $ECHO_C" >&6
20723 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20724 cat >conftest.$ac_ext <<_ACEOF
20727 cat confdefs.h >>conftest.$ac_ext
20728 cat >>conftest.$ac_ext <<_ACEOF
20729 /* end confdefs.h. */
20730 #include "confdefs.h"
20731 #include <sys/types.h>
20737 switch (0) case 0: case (sizeof (unsigned short int) == $ac_size):;
20742 rm -f conftest.$ac_objext
20743 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20744 (eval $ac_compile) 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20753 (eval $ac_try) 2>&5
20755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20756 (exit $ac_status); }; } &&
20757 { ac_try='test -s conftest.$ac_objext'
20758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20759 (eval $ac_try) 2>&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); }; }; then
20763 ac_cv_sizeof_unsigned_short_int=$ac_size
20765 echo "$as_me: failed program was:" >&5
20766 sed 's/^/| /' conftest.$ac_ext >&5
20769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20770 if test x$ac_cv_sizeof_unsigned_short_int != x ; then break; fi
20776 unsigned=$ac_cv_sizeof_unsigned_short_int
20777 if test x$unsigned = x ; then
20778 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned short int" >&5
20779 echo "$as_me: error: cannot determine a size for unsigned short int" >&2;}
20780 { (exit 1); exit 1; }; }
20782 if test x$unsigned != x$signed ; then
20783 { { echo "$as_me:$LINENO: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&5
20784 echo "$as_me: error: 'signed short int' and 'unsigned short int' have different sizes ! ($signed != $unsigned)" >&2;}
20785 { (exit 1); exit 1; }; }
20788 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short_int" >&5
20789 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short_int" >&6
20790 echo "$as_me:$LINENO: checking for the minimal structure boundary of short int" >&5
20791 echo $ECHO_N "checking for the minimal structure boundary of short int... $ECHO_C" >&6
20793 if test "${ac_cv_struct_boundary_short_int+set}" = set; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
20797 cat >conftest.$ac_ext <<_ACEOF
20800 cat confdefs.h >>conftest.$ac_ext
20801 cat >>conftest.$ac_ext <<_ACEOF
20802 /* end confdefs.h. */
20803 #include "confdefs.h"
20804 #include <sys/types.h>
20805 struct s { char c; short int i; };
20810 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(short int)):;
20815 rm -f conftest.$ac_objext
20816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20817 (eval $ac_compile) 2>conftest.er1
20819 grep -v '^ *+' conftest.er1 >conftest.err
20821 cat conftest.err >&5
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); } &&
20824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20826 (eval $ac_try) 2>&5
20828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20829 (exit $ac_status); }; } &&
20830 { ac_try='test -s conftest.$ac_objext'
20831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20832 (eval $ac_try) 2>&5
20834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20835 (exit $ac_status); }; }; then
20836 ac_cv_struct_boundary_short_int=$ac_size
20838 echo "$as_me: failed program was:" >&5
20839 sed 's/^/| /' conftest.$ac_ext >&5
20842 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20843 if test x$ac_cv_struct_boundary_short_int != x ; then break; fi
20848 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_short_int" >&5
20849 echo "${ECHO_T}$ac_cv_struct_boundary_short_int" >&6
20851 echo "$as_me:$LINENO: checking size of int" >&5
20852 echo $ECHO_N "checking size of int... $ECHO_C" >&6
20853 if test "${ac_cv_sizeof_int+set}" = set; then
20854 echo $ECHO_N "(cached) $ECHO_C" >&6
20856 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20857 cat >conftest.$ac_ext <<_ACEOF
20860 cat confdefs.h >>conftest.$ac_ext
20861 cat >>conftest.$ac_ext <<_ACEOF
20862 /* end confdefs.h. */
20863 #include "confdefs.h"
20864 #include <sys/types.h>
20870 switch (0) case 0: case (sizeof (int) == $ac_size):;
20875 rm -f conftest.$ac_objext
20876 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20877 (eval $ac_compile) 2>conftest.er1
20879 grep -v '^ *+' conftest.er1 >conftest.err
20881 cat conftest.err >&5
20882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20883 (exit $ac_status); } &&
20884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20886 (eval $ac_try) 2>&5
20888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889 (exit $ac_status); }; } &&
20890 { ac_try='test -s conftest.$ac_objext'
20891 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20892 (eval $ac_try) 2>&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); }; }; then
20896 ac_cv_sizeof_int=$ac_size
20898 echo "$as_me: failed program was:" >&5
20899 sed 's/^/| /' conftest.$ac_ext >&5
20902 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20903 if test x$ac_cv_sizeof_int != x ; then break; fi
20909 unspecif=$ac_cv_sizeof_int
20910 if test x$unspecif = x ; then
20911 { { echo "$as_me:$LINENO: error: cannot determine a size for int" >&5
20912 echo "$as_me: error: cannot determine a size for int" >&2;}
20913 { (exit 1); exit 1; }; }
20916 if test "${ac_cv_sizeof_signed_int+set}" = set; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20919 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20926 #include "confdefs.h"
20927 #include <sys/types.h>
20933 switch (0) case 0: case (sizeof (signed int) == $ac_size):;
20938 rm -f conftest.$ac_objext
20939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20940 (eval $ac_compile) 2>conftest.er1
20942 grep -v '^ *+' conftest.er1 >conftest.err
20944 cat conftest.err >&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); } &&
20947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20949 (eval $ac_try) 2>&5
20951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20952 (exit $ac_status); }; } &&
20953 { ac_try='test -s conftest.$ac_objext'
20954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20955 (eval $ac_try) 2>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); }; }; then
20959 ac_cv_sizeof_signed_int=$ac_size
20961 echo "$as_me: failed program was:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20965 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20966 if test x$ac_cv_sizeof_signed_int != x ; then break; fi
20972 signed=$ac_cv_sizeof_signed_int
20973 if test x$signed = x ; then
20974 { { echo "$as_me:$LINENO: error: cannot determine a size for signed int" >&5
20975 echo "$as_me: error: cannot determine a size for signed int" >&2;}
20976 { (exit 1); exit 1; }; }
20978 if test x$unspecif != x$signed ; then
20979 { { echo "$as_me:$LINENO: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&5
20980 echo "$as_me: error: 'signed int' and 'int' have different sizes ! ($signed != $unspecif)" >&2;}
20981 { (exit 1); exit 1; }; }
20984 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20987 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
20988 cat >conftest.$ac_ext <<_ACEOF
20991 cat confdefs.h >>conftest.$ac_ext
20992 cat >>conftest.$ac_ext <<_ACEOF
20993 /* end confdefs.h. */
20994 #include "confdefs.h"
20995 #include <sys/types.h>
21001 switch (0) case 0: case (sizeof (unsigned int) == $ac_size):;
21006 rm -f conftest.$ac_objext
21007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21008 (eval $ac_compile) 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21017 (eval $ac_try) 2>&5
21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21020 (exit $ac_status); }; } &&
21021 { ac_try='test -s conftest.$ac_objext'
21022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21023 (eval $ac_try) 2>&5
21025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21026 (exit $ac_status); }; }; then
21027 ac_cv_sizeof_unsigned_int=$ac_size
21029 echo "$as_me: failed program was:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21033 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21034 if test x$ac_cv_sizeof_unsigned_int != x ; then break; fi
21040 unsigned=$ac_cv_sizeof_unsigned_int
21041 if test x$unsigned = x ; then
21042 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned int" >&5
21043 echo "$as_me: error: cannot determine a size for unsigned int" >&2;}
21044 { (exit 1); exit 1; }; }
21046 if test x$unsigned != x$signed ; then
21047 { { echo "$as_me:$LINENO: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&5
21048 echo "$as_me: error: 'signed int' and 'unsigned int' have different sizes ! ($signed != $unsigned)" >&2;}
21049 { (exit 1); exit 1; }; }
21052 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
21053 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
21054 echo "$as_me:$LINENO: checking for the minimal structure boundary of int" >&5
21055 echo $ECHO_N "checking for the minimal structure boundary of int... $ECHO_C" >&6
21057 if test "${ac_cv_struct_boundary_int+set}" = set; then
21058 echo $ECHO_N "(cached) $ECHO_C" >&6
21060 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21061 cat >conftest.$ac_ext <<_ACEOF
21064 cat confdefs.h >>conftest.$ac_ext
21065 cat >>conftest.$ac_ext <<_ACEOF
21066 /* end confdefs.h. */
21067 #include "confdefs.h"
21068 #include <sys/types.h>
21069 struct s { char c; int i; };
21074 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(int)):;
21079 rm -f conftest.$ac_objext
21080 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21081 (eval $ac_compile) 2>conftest.er1
21083 grep -v '^ *+' conftest.er1 >conftest.err
21085 cat conftest.err >&5
21086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21087 (exit $ac_status); } &&
21088 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21090 (eval $ac_try) 2>&5
21092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21093 (exit $ac_status); }; } &&
21094 { ac_try='test -s conftest.$ac_objext'
21095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21096 (eval $ac_try) 2>&5
21098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21099 (exit $ac_status); }; }; then
21100 ac_cv_struct_boundary_int=$ac_size
21102 echo "$as_me: failed program was:" >&5
21103 sed 's/^/| /' conftest.$ac_ext >&5
21106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21107 if test x$ac_cv_struct_boundary_int != x ; then break; fi
21112 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_int" >&5
21113 echo "${ECHO_T}$ac_cv_struct_boundary_int" >&6
21115 echo "$as_me:$LINENO: checking size of long int" >&5
21116 echo $ECHO_N "checking size of long int... $ECHO_C" >&6
21117 if test "${ac_cv_sizeof_long_int+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21127 #include "confdefs.h"
21128 #include <sys/types.h>
21134 switch (0) case 0: case (sizeof (long int) == $ac_size):;
21139 rm -f conftest.$ac_objext
21140 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21141 (eval $ac_compile) 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21147 (exit $ac_status); } &&
21148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21150 (eval $ac_try) 2>&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); }; } &&
21154 { ac_try='test -s conftest.$ac_objext'
21155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21156 (eval $ac_try) 2>&5
21158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21159 (exit $ac_status); }; }; then
21160 ac_cv_sizeof_long_int=$ac_size
21162 echo "$as_me: failed program was:" >&5
21163 sed 's/^/| /' conftest.$ac_ext >&5
21166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21167 if test x$ac_cv_sizeof_long_int != x ; then break; fi
21173 unspecif=$ac_cv_sizeof_long_int
21174 if test x$unspecif = x ; then
21175 { { echo "$as_me:$LINENO: error: cannot determine a size for long int" >&5
21176 echo "$as_me: error: cannot determine a size for long int" >&2;}
21177 { (exit 1); exit 1; }; }
21180 if test "${ac_cv_sizeof_signed_long_int+set}" = set; then
21181 echo $ECHO_N "(cached) $ECHO_C" >&6
21183 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21184 cat >conftest.$ac_ext <<_ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 #include "confdefs.h"
21191 #include <sys/types.h>
21197 switch (0) case 0: case (sizeof (signed long int) == $ac_size):;
21202 rm -f conftest.$ac_objext
21203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21204 (eval $ac_compile) 2>conftest.er1
21206 grep -v '^ *+' conftest.er1 >conftest.err
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } &&
21211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21213 (eval $ac_try) 2>&5
21215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21216 (exit $ac_status); }; } &&
21217 { ac_try='test -s conftest.$ac_objext'
21218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21219 (eval $ac_try) 2>&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); }; }; then
21223 ac_cv_sizeof_signed_long_int=$ac_size
21225 echo "$as_me: failed program was:" >&5
21226 sed 's/^/| /' conftest.$ac_ext >&5
21229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21230 if test x$ac_cv_sizeof_signed_long_int != x ; then break; fi
21236 signed=$ac_cv_sizeof_signed_long_int
21237 if test x$signed = x ; then
21238 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long int" >&5
21239 echo "$as_me: error: cannot determine a size for signed long int" >&2;}
21240 { (exit 1); exit 1; }; }
21242 if test x$unspecif != x$signed ; then
21243 { { echo "$as_me:$LINENO: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&5
21244 echo "$as_me: error: 'signed long int' and 'long int' have different sizes ! ($signed != $unspecif)" >&2;}
21245 { (exit 1); exit 1; }; }
21248 if test "${ac_cv_sizeof_unsigned_long_int+set}" = set; then
21249 echo $ECHO_N "(cached) $ECHO_C" >&6
21251 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21252 cat >conftest.$ac_ext <<_ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21258 #include "confdefs.h"
21259 #include <sys/types.h>
21265 switch (0) case 0: case (sizeof (unsigned long int) == $ac_size):;
21270 rm -f conftest.$ac_objext
21271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21272 (eval $ac_compile) 2>conftest.er1
21274 grep -v '^ *+' conftest.er1 >conftest.err
21276 cat conftest.err >&5
21277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21278 (exit $ac_status); } &&
21279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21281 (eval $ac_try) 2>&5
21283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21284 (exit $ac_status); }; } &&
21285 { ac_try='test -s conftest.$ac_objext'
21286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21287 (eval $ac_try) 2>&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); }; }; then
21291 ac_cv_sizeof_unsigned_long_int=$ac_size
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21297 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21298 if test x$ac_cv_sizeof_unsigned_long_int != x ; then break; fi
21304 unsigned=$ac_cv_sizeof_unsigned_long_int
21305 if test x$unsigned = x ; then
21306 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long int" >&5
21307 echo "$as_me: error: cannot determine a size for unsigned long int" >&2;}
21308 { (exit 1); exit 1; }; }
21310 if test x$unsigned != x$signed ; then
21311 { { echo "$as_me:$LINENO: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&5
21312 echo "$as_me: error: 'signed long int' and 'unsigned long int' have different sizes ! ($signed != $unsigned)" >&2;}
21313 { (exit 1); exit 1; }; }
21316 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_int" >&5
21317 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_int" >&6
21318 echo "$as_me:$LINENO: checking for the minimal structure boundary of long int" >&5
21319 echo $ECHO_N "checking for the minimal structure boundary of long int... $ECHO_C" >&6
21321 if test "${ac_cv_struct_boundary_long_int+set}" = set; then
21322 echo $ECHO_N "(cached) $ECHO_C" >&6
21324 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21325 cat >conftest.$ac_ext <<_ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h. */
21331 #include "confdefs.h"
21332 #include <sys/types.h>
21333 struct s { char c; long int i; };
21338 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long int)):;
21343 rm -f conftest.$ac_objext
21344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21345 (eval $ac_compile) 2>conftest.er1
21347 grep -v '^ *+' conftest.er1 >conftest.err
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } &&
21352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21354 (eval $ac_try) 2>&5
21356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21357 (exit $ac_status); }; } &&
21358 { ac_try='test -s conftest.$ac_objext'
21359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21360 (eval $ac_try) 2>&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); }; }; then
21364 ac_cv_struct_boundary_long_int=$ac_size
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21370 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21371 if test x$ac_cv_struct_boundary_long_int != x ; then break; fi
21376 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_int" >&5
21377 echo "${ECHO_T}$ac_cv_struct_boundary_long_int" >&6
21379 echo "$as_me:$LINENO: checking size of long long int" >&5
21380 echo $ECHO_N "checking size of long long int... $ECHO_C" >&6
21381 if test "${ac_cv_sizeof_long_long_int+set}" = set; then
21382 echo $ECHO_N "(cached) $ECHO_C" >&6
21384 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include "confdefs.h"
21392 #include <sys/types.h>
21398 switch (0) case 0: case (sizeof (long long int) == $ac_size):;
21403 rm -f conftest.$ac_objext
21404 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21405 (eval $ac_compile) 2>conftest.er1
21407 grep -v '^ *+' conftest.er1 >conftest.err
21409 cat conftest.err >&5
21410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21411 (exit $ac_status); } &&
21412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21414 (eval $ac_try) 2>&5
21416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21417 (exit $ac_status); }; } &&
21418 { ac_try='test -s conftest.$ac_objext'
21419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21420 (eval $ac_try) 2>&5
21422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21423 (exit $ac_status); }; }; then
21424 ac_cv_sizeof_long_long_int=$ac_size
21426 echo "$as_me: failed program was:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21430 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21431 if test x$ac_cv_sizeof_long_long_int != x ; then break; fi
21437 unspecif=$ac_cv_sizeof_long_long_int
21438 if test x$unspecif = x ; then
21439 { { echo "$as_me:$LINENO: error: cannot determine a size for long long int" >&5
21440 echo "$as_me: error: cannot determine a size for long long int" >&2;}
21441 { (exit 1); exit 1; }; }
21444 if test "${ac_cv_sizeof_signed_long_long_int+set}" = set; then
21445 echo $ECHO_N "(cached) $ECHO_C" >&6
21447 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21448 cat >conftest.$ac_ext <<_ACEOF
21451 cat confdefs.h >>conftest.$ac_ext
21452 cat >>conftest.$ac_ext <<_ACEOF
21453 /* end confdefs.h. */
21454 #include "confdefs.h"
21455 #include <sys/types.h>
21461 switch (0) case 0: case (sizeof (signed long long int) == $ac_size):;
21466 rm -f conftest.$ac_objext
21467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21468 (eval $ac_compile) 2>conftest.er1
21470 grep -v '^ *+' conftest.er1 >conftest.err
21472 cat conftest.err >&5
21473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21474 (exit $ac_status); } &&
21475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21477 (eval $ac_try) 2>&5
21479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21480 (exit $ac_status); }; } &&
21481 { ac_try='test -s conftest.$ac_objext'
21482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21483 (eval $ac_try) 2>&5
21485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21486 (exit $ac_status); }; }; then
21487 ac_cv_sizeof_signed_long_long_int=$ac_size
21489 echo "$as_me: failed program was:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21494 if test x$ac_cv_sizeof_signed_long_long_int != x ; then break; fi
21500 signed=$ac_cv_sizeof_signed_long_long_int
21501 if test x$signed = x ; then
21502 { { echo "$as_me:$LINENO: error: cannot determine a size for signed long long int" >&5
21503 echo "$as_me: error: cannot determine a size for signed long long int" >&2;}
21504 { (exit 1); exit 1; }; }
21506 if test x$unspecif != x$signed ; then
21507 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&5
21508 echo "$as_me: error: 'signed long long int' and 'long long int' have different sizes ! ($signed != $unspecif)" >&2;}
21509 { (exit 1); exit 1; }; }
21512 if test "${ac_cv_sizeof_unsigned_long_long_int+set}" = set; then
21513 echo $ECHO_N "(cached) $ECHO_C" >&6
21515 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21516 cat >conftest.$ac_ext <<_ACEOF
21519 cat confdefs.h >>conftest.$ac_ext
21520 cat >>conftest.$ac_ext <<_ACEOF
21521 /* end confdefs.h. */
21522 #include "confdefs.h"
21523 #include <sys/types.h>
21529 switch (0) case 0: case (sizeof (unsigned long long int) == $ac_size):;
21534 rm -f conftest.$ac_objext
21535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21536 (eval $ac_compile) 2>conftest.er1
21538 grep -v '^ *+' conftest.er1 >conftest.err
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } &&
21543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21544 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21545 (eval $ac_try) 2>&5
21547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21548 (exit $ac_status); }; } &&
21549 { ac_try='test -s conftest.$ac_objext'
21550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21551 (eval $ac_try) 2>&5
21553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21554 (exit $ac_status); }; }; then
21555 ac_cv_sizeof_unsigned_long_long_int=$ac_size
21557 echo "$as_me: failed program was:" >&5
21558 sed 's/^/| /' conftest.$ac_ext >&5
21561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21562 if test x$ac_cv_sizeof_unsigned_long_long_int != x ; then break; fi
21568 unsigned=$ac_cv_sizeof_unsigned_long_long_int
21569 if test x$unsigned = x ; then
21570 { { echo "$as_me:$LINENO: error: cannot determine a size for unsigned long long int" >&5
21571 echo "$as_me: error: cannot determine a size for unsigned long long int" >&2;}
21572 { (exit 1); exit 1; }; }
21574 if test x$unsigned != x$signed ; then
21575 { { echo "$as_me:$LINENO: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&5
21576 echo "$as_me: error: 'signed long long int' and 'unsigned long long int' have different sizes ! ($signed != $unsigned)" >&2;}
21577 { (exit 1); exit 1; }; }
21580 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long_long_int" >&5
21581 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long_long_int" >&6
21582 echo "$as_me:$LINENO: checking for the minimal structure boundary of long long int" >&5
21583 echo $ECHO_N "checking for the minimal structure boundary of long long int... $ECHO_C" >&6
21585 if test "${ac_cv_struct_boundary_long_long_int+set}" = set; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21588 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 #include "confdefs.h"
21596 #include <sys/types.h>
21597 struct s { char c; long long int i; };
21602 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(long long int)):;
21607 rm -f conftest.$ac_objext
21608 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21609 (eval $ac_compile) 2>conftest.er1
21611 grep -v '^ *+' conftest.er1 >conftest.err
21613 cat conftest.err >&5
21614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21615 (exit $ac_status); } &&
21616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21618 (eval $ac_try) 2>&5
21620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21621 (exit $ac_status); }; } &&
21622 { ac_try='test -s conftest.$ac_objext'
21623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21624 (eval $ac_try) 2>&5
21626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21627 (exit $ac_status); }; }; then
21628 ac_cv_struct_boundary_long_long_int=$ac_size
21630 echo "$as_me: failed program was:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21634 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21635 if test x$ac_cv_struct_boundary_long_long_int != x ; then break; fi
21640 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_long_long_int" >&5
21641 echo "${ECHO_T}$ac_cv_struct_boundary_long_long_int" >&6
21644 echo "$as_me:$LINENO: checking for the minimal structure boundary of float" >&5
21645 echo $ECHO_N "checking for the minimal structure boundary of float... $ECHO_C" >&6
21647 if test "${ac_cv_struct_boundary_float+set}" = set; then
21648 echo $ECHO_N "(cached) $ECHO_C" >&6
21650 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21651 cat >conftest.$ac_ext <<_ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657 #include "confdefs.h"
21658 #include <sys/types.h>
21659 struct s { char c; float i; };
21664 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(float)):;
21669 rm -f conftest.$ac_objext
21670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21671 (eval $ac_compile) 2>conftest.er1
21673 grep -v '^ *+' conftest.er1 >conftest.err
21675 cat conftest.err >&5
21676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21677 (exit $ac_status); } &&
21678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21680 (eval $ac_try) 2>&5
21682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21683 (exit $ac_status); }; } &&
21684 { ac_try='test -s conftest.$ac_objext'
21685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21686 (eval $ac_try) 2>&5
21688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21689 (exit $ac_status); }; }; then
21690 ac_cv_struct_boundary_float=$ac_size
21692 echo "$as_me: failed program was:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21696 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21697 if test x$ac_cv_struct_boundary_float != x ; then break; fi
21702 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_float" >&5
21703 echo "${ECHO_T}$ac_cv_struct_boundary_float" >&6
21704 echo "$as_me:$LINENO: checking for the minimal structure boundary of double" >&5
21705 echo $ECHO_N "checking for the minimal structure boundary of double... $ECHO_C" >&6
21707 if test "${ac_cv_struct_boundary_double+set}" = set; then
21708 echo $ECHO_N "(cached) $ECHO_C" >&6
21710 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21711 cat >conftest.$ac_ext <<_ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include "confdefs.h"
21718 #include <sys/types.h>
21719 struct s { char c; double i; };
21724 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(double)):;
21729 rm -f conftest.$ac_objext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21731 (eval $ac_compile) 2>conftest.er1
21733 grep -v '^ *+' conftest.er1 >conftest.err
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } &&
21738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21740 (eval $ac_try) 2>&5
21742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21743 (exit $ac_status); }; } &&
21744 { ac_try='test -s conftest.$ac_objext'
21745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21746 (eval $ac_try) 2>&5
21748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21749 (exit $ac_status); }; }; then
21750 ac_cv_struct_boundary_double=$ac_size
21752 echo "$as_me: failed program was:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21756 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21757 if test x$ac_cv_struct_boundary_double != x ; then break; fi
21762 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_double" >&5
21763 echo "${ECHO_T}$ac_cv_struct_boundary_double" >&6
21766 echo "$as_me:$LINENO: checking size of void *" >&5
21767 echo $ECHO_N "checking size of void *... $ECHO_C" >&6
21768 if test "${ac_cv_sizeof_void_p+set}" = set; then
21769 echo $ECHO_N "(cached) $ECHO_C" >&6
21771 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21772 cat >conftest.$ac_ext <<_ACEOF
21775 cat confdefs.h >>conftest.$ac_ext
21776 cat >>conftest.$ac_ext <<_ACEOF
21777 /* end confdefs.h. */
21778 #include "confdefs.h"
21779 #include <sys/types.h>
21785 switch (0) case 0: case (sizeof (void *) == $ac_size):;
21790 rm -f conftest.$ac_objext
21791 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21792 (eval $ac_compile) 2>conftest.er1
21794 grep -v '^ *+' conftest.er1 >conftest.err
21796 cat conftest.err >&5
21797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21798 (exit $ac_status); } &&
21799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21801 (eval $ac_try) 2>&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); }; } &&
21805 { ac_try='test -s conftest.$ac_objext'
21806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21807 (eval $ac_try) 2>&5
21809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21810 (exit $ac_status); }; }; then
21811 ac_cv_sizeof_void_p=$ac_size
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21817 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21818 if test x$ac_cv_sizeof_void_p != x ; then break; fi
21824 if test x$ac_cv_sizeof_void_p = x ; then
21825 { { echo "$as_me:$LINENO: error: cannot determine a size for void *" >&5
21826 echo "$as_me: error: cannot determine a size for void *" >&2;}
21827 { (exit 1); exit 1; }; }
21829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
21830 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6
21831 echo "$as_me:$LINENO: checking for the minimal structure boundary of void *" >&5
21832 echo $ECHO_N "checking for the minimal structure boundary of void *... $ECHO_C" >&6
21834 if test "${ac_cv_struct_boundary_void_p+set}" = set; then
21835 echo $ECHO_N "(cached) $ECHO_C" >&6
21837 for ac_size in 1 2 4 8 16 32 64 ; do # List sizes in rough order of prevalence.
21838 cat >conftest.$ac_ext <<_ACEOF
21841 cat confdefs.h >>conftest.$ac_ext
21842 cat >>conftest.$ac_ext <<_ACEOF
21843 /* end confdefs.h. */
21844 #include "confdefs.h"
21845 #include <sys/types.h>
21846 struct s { char c; void * i; };
21851 switch (0) case 0: case (sizeof (struct s) == $ac_size+sizeof(void *)):;
21856 rm -f conftest.$ac_objext
21857 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21858 (eval $ac_compile) 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21864 (exit $ac_status); } &&
21865 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21867 (eval $ac_try) 2>&5
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest.$ac_objext'
21872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21873 (eval $ac_try) 2>&5
21875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21876 (exit $ac_status); }; }; then
21877 ac_cv_struct_boundary_void_p=$ac_size
21879 echo "$as_me: failed program was:" >&5
21880 sed 's/^/| /' conftest.$ac_ext >&5
21883 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21884 if test x$ac_cv_struct_boundary_void_p != x ; then break; fi
21889 echo "$as_me:$LINENO: result: $ac_cv_struct_boundary_void_p" >&5
21890 echo "${ECHO_T}$ac_cv_struct_boundary_void_p" >&6
21892 echo "$as_me:$LINENO: checking size of void (*) (void)" >&5
21893 echo $ECHO_N "checking size of void (*) (void)... $ECHO_C" >&6
21894 if test "${ac_cv_sizeof_void_LpR_LvoidR+set}" = set; then
21895 echo $ECHO_N "(cached) $ECHO_C" >&6
21897 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
21898 cat >conftest.$ac_ext <<_ACEOF
21901 cat confdefs.h >>conftest.$ac_ext
21902 cat >>conftest.$ac_ext <<_ACEOF
21903 /* end confdefs.h. */
21904 #include "confdefs.h"
21905 #include <sys/types.h>
21911 switch (0) case 0: case (sizeof (void (*) (void)) == $ac_size):;
21916 rm -f conftest.$ac_objext
21917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21918 (eval $ac_compile) 2>conftest.er1
21920 grep -v '^ *+' conftest.er1 >conftest.err
21922 cat conftest.err >&5
21923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21924 (exit $ac_status); } &&
21925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21927 (eval $ac_try) 2>&5
21929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21930 (exit $ac_status); }; } &&
21931 { ac_try='test -s conftest.$ac_objext'
21932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21933 (eval $ac_try) 2>&5
21935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21936 (exit $ac_status); }; }; then
21937 ac_cv_sizeof_void_LpR_LvoidR=$ac_size
21939 echo "$as_me: failed program was:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21943 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21944 if test x$ac_cv_sizeof_void_LpR_LvoidR != x ; then break; fi
21950 if test x$ac_cv_sizeof_void_LpR_LvoidR = x ; then
21951 { { echo "$as_me:$LINENO: error: cannot determine a size for void (*) (void)" >&5
21952 echo "$as_me: error: cannot determine a size for void (*) (void)" >&2;}
21953 { (exit 1); exit 1; }; }
21955 echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_LpR_LvoidR" >&5
21956 echo "${ECHO_T}$ac_cv_sizeof_void_LpR_LvoidR" >&6
21960 echo "$as_me:$LINENO: checking the GRAS signature of this architecture" >&5
21961 echo $ECHO_N "checking the GRAS signature of this architecture... $ECHO_C" >&6
21962 if test x$endian = x1 ; then
21968 trace="$trace_endian"
21970 trace="${trace}_C:${ac_cv_sizeof_char}/${ac_cv_struct_boundary_char}:"
21972 trace="${trace}_I:${ac_cv_sizeof_short_int}/${ac_cv_struct_boundary_short_int}"
21973 trace="${trace}:${ac_cv_sizeof_int}/${ac_cv_struct_boundary_int}"
21974 trace="${trace}:${ac_cv_sizeof_long_int}/${ac_cv_struct_boundary_long_int}"
21975 trace="${trace}:${ac_cv_sizeof_long_long_int}/${ac_cv_struct_boundary_long_long_int}:"
21977 trace="${trace}_P:${ac_cv_sizeof_void_p}/${ac_cv_struct_boundary_void_p}"
21978 trace="${trace}:${ac_cv_sizeof_void_LpR_LvoidR}/${ac_cv_struct_boundary_void_p}:"
21980 trace="${trace}_D:4/${ac_cv_struct_boundary_float}:8/${ac_cv_struct_boundary_double}:"
21982 # sizeof float/double are not tested since IEEE 754 is assumed.
21983 # Check README.IEEE for rational.
21985 l_C:1/1:_I:2/2:4/4:4/4:8/4:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=0; gras_arch_name=little32;;
21986 l_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=1; gras_arch_name=little64;;
21987 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/8:) gras_arch=2; gras_arch_name=big32;;
21988 B_C:1/1:_I:2/2:4/4:8/8:8/8:_P:8/8:8/8:_D:4/4:8/8:) gras_arch=3; gras_arch_name=big64;;
21989 B_C:1/1:_I:2/2:4/4:4/4:8/8:_P:4/4:4/4:_D:4/4:8/4:) gras_arch=4; gras_arch_name=aix;;
21991 if test x$gras_arch = xunknown ; then
21992 echo "$as_me:$LINENO: result: damnit ($trace)" >&5
21993 echo "${ECHO_T}damnit ($trace)" >&6
21994 { { echo "$as_me:$LINENO: error: Impossible to determine the GRAS architecture signature.
21995 Please report this architecture trace ($trace) and what it corresponds to." >&5
21996 echo "$as_me: error: Impossible to determine the GRAS architecture signature.
21997 Please report this architecture trace ($trace) and what it corresponds to." >&2;}
21998 { (exit 1); exit 1; }; }
22000 echo "$as_me:$LINENO: GRAS trace of this machine: $trace" >&5
22002 cat >>confdefs.h <<_ACEOF
22003 #define GRAS_THISARCH $gras_arch
22006 echo "$as_me:$LINENO: result: $gras_arch ($gras_arch_name)" >&5
22007 echo "${ECHO_T}$gras_arch ($gras_arch_name)" >&6
22009 # Check architecture signature end
22010 echo "$as_me:$LINENO: checking whether the struct gets packed" >&5
22011 echo $ECHO_N "checking whether the struct gets packed... $ECHO_C" >&6
22012 cat >conftest.$ac_ext <<_ACEOF
22015 cat confdefs.h >>conftest.$ac_ext
22016 cat >>conftest.$ac_ext <<_ACEOF
22017 /* end confdefs.h. */
22018 #include "confdefs.h"
22019 #include <sys/types.h>
22020 #include <stddef.h> /* offsetof() */
22021 struct s {char c; double d;};
22028 case (sizeof(struct s) == sizeof(double)+sizeof(char)):;
22034 rm -f conftest.$ac_objext
22035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22036 (eval $ac_compile) 2>conftest.er1
22038 grep -v '^ *+' conftest.er1 >conftest.err
22040 cat conftest.err >&5
22041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } &&
22043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22045 (eval $ac_try) 2>&5
22047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22048 (exit $ac_status); }; } &&
22049 { ac_try='test -s conftest.$ac_objext'
22050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22051 (eval $ac_try) 2>&5
22053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22054 (exit $ac_status); }; }; then
22055 gras_struct_packed=yes
22057 echo "$as_me: failed program was:" >&5
22058 sed 's/^/| /' conftest.$ac_ext >&5
22060 gras_struct_packed=no
22062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22064 echo "$as_me:$LINENO: result: $gras_struct_packed" >&5
22065 echo "${ECHO_T}$gras_struct_packed" >&6
22066 if test x$gras_struct_packed = "xyes" ; then
22067 { { echo "$as_me:$LINENO: error: GRAS does not support packed structures since it leads to nasty misalignments" >&5
22068 echo "$as_me: error: GRAS does not support packed structures since it leads to nasty misalignments" >&2;}
22069 { (exit 1); exit 1; }; }
22072 echo "$as_me:$LINENO: checking whether the struct gets compacted" >&5
22073 echo $ECHO_N "checking whether the struct gets compacted... $ECHO_C" >&6
22074 cat >conftest.$ac_ext <<_ACEOF
22077 cat confdefs.h >>conftest.$ac_ext
22078 cat >>conftest.$ac_ext <<_ACEOF
22079 /* end confdefs.h. */
22080 #include "confdefs.h"
22081 #include <sys/types.h>
22082 #include <stddef.h> /* offsetof() */
22083 struct s {double d; int i; char c;};
22090 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
22096 rm -f conftest.$ac_objext
22097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22098 (eval $ac_compile) 2>conftest.er1
22100 grep -v '^ *+' conftest.er1 >conftest.err
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } &&
22105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22107 (eval $ac_try) 2>&5
22109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22110 (exit $ac_status); }; } &&
22111 { ac_try='test -s conftest.$ac_objext'
22112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22113 (eval $ac_try) 2>&5
22115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116 (exit $ac_status); }; }; then
22117 gras_struct_compact=yes
22119 echo "$as_me: failed program was:" >&5
22120 sed 's/^/| /' conftest.$ac_ext >&5
22122 gras_struct_compact=no
22124 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22126 echo "$as_me:$LINENO: result: $gras_struct_compact" >&5
22127 echo "${ECHO_T}$gras_struct_compact" >&6
22129 if test x$gras_struct_compact != xyes ; then
22130 { { echo "$as_me:$LINENO: error: GRAS works only on structure compacting architectures (yet)" >&5
22131 echo "$as_me: error: GRAS works only on structure compacting architectures (yet)" >&2;}
22132 { (exit 1); exit 1; }; }
22135 cat >>confdefs.h <<_ACEOF
22136 #define GRAS_STRUCT_COMPACT 1
22139 echo "$as_me:$LINENO: checking whether arrays can straddle struct alignment boundaries" >&5
22140 echo $ECHO_N "checking whether arrays can straddle struct alignment boundaries... $ECHO_C" >&6
22142 cat >conftest.$ac_ext <<_ACEOF
22145 cat confdefs.h >>conftest.$ac_ext
22146 cat >>conftest.$ac_ext <<_ACEOF
22147 /* end confdefs.h. */
22148 #include "confdefs.h"
22149 #include <sys/types.h>
22150 #include <stddef.h> /* offsetof() */
22151 struct s { double d; int i; char c[6]; };
22158 case (offsetof(struct s,c) == sizeof(double)+sizeof(int)):;
22164 rm -f conftest.$ac_objext
22165 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22166 (eval $ac_compile) 2>conftest.er1
22168 grep -v '^ *+' conftest.er1 >conftest.err
22170 cat conftest.err >&5
22171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22172 (exit $ac_status); } &&
22173 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22174 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22175 (eval $ac_try) 2>&5
22177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22178 (exit $ac_status); }; } &&
22179 { ac_try='test -s conftest.$ac_objext'
22180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22181 (eval $ac_try) 2>&5
22183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22184 (exit $ac_status); }; }; then
22185 gras_array_straddle_struct=yes
22187 echo "$as_me: failed program was:" >&5
22188 sed 's/^/| /' conftest.$ac_ext >&5
22190 gras_array_straddle_struct=no
22192 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22194 echo "$as_me:$LINENO: result: $gras_array_straddle_struct" >&5
22195 echo "${ECHO_T}$gras_array_straddle_struct" >&6
22197 if test x$gras_array_straddle_struct = xyes ; then
22199 cat >>confdefs.h <<_ACEOF
22200 #define GRAS_ARRAY_STRADDLE_STRUCT 1
22204 { { echo "$as_me:$LINENO: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&5
22205 echo "$as_me: error: GRAS can only work on architectures allowing array fields to straddle alignment boundaries (yet)" >&2;}
22206 { (exit 1); exit 1; }; }
22210 # Checks for header files.
22211 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
22212 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
22213 if test "${ac_cv_header_stdc+set}" = set; then
22214 echo $ECHO_N "(cached) $ECHO_C" >&6
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 #include <stdlib.h>
22223 #include <stdarg.h>
22224 #include <string.h>
22235 rm -f conftest.$ac_objext
22236 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22237 (eval $ac_compile) 2>conftest.er1
22239 grep -v '^ *+' conftest.er1 >conftest.err
22241 cat conftest.err >&5
22242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22243 (exit $ac_status); } &&
22244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22246 (eval $ac_try) 2>&5
22248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22249 (exit $ac_status); }; } &&
22250 { ac_try='test -s conftest.$ac_objext'
22251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22252 (eval $ac_try) 2>&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); }; }; then
22256 ac_cv_header_stdc=yes
22258 echo "$as_me: failed program was:" >&5
22259 sed 's/^/| /' conftest.$ac_ext >&5
22261 ac_cv_header_stdc=no
22263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22265 if test $ac_cv_header_stdc = yes; then
22266 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22267 cat >conftest.$ac_ext <<_ACEOF
22270 cat confdefs.h >>conftest.$ac_ext
22271 cat >>conftest.$ac_ext <<_ACEOF
22272 /* end confdefs.h. */
22273 #include <string.h>
22276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22277 $EGREP "memchr" >/dev/null 2>&1; then
22280 ac_cv_header_stdc=no
22286 if test $ac_cv_header_stdc = yes; then
22287 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 #include <stdlib.h>
22297 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22298 $EGREP "free" >/dev/null 2>&1; then
22301 ac_cv_header_stdc=no
22307 if test $ac_cv_header_stdc = yes; then
22308 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22309 if test "$cross_compiling" = yes; then
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22319 #if ((' ' & 0x0FF) == 0x020)
22320 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22321 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22323 # define ISLOWER(c) \
22324 (('a' <= (c) && (c) <= 'i') \
22325 || ('j' <= (c) && (c) <= 'r') \
22326 || ('s' <= (c) && (c) <= 'z'))
22327 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22330 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22335 for (i = 0; i < 256; i++)
22336 if (XOR (islower (i), ISLOWER (i))
22337 || toupper (i) != TOUPPER (i))
22342 rm -f conftest$ac_exeext
22343 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22344 (eval $ac_link) 2>&5
22346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22349 (eval $ac_try) 2>&5
22351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22352 (exit $ac_status); }; }; then
22355 echo "$as_me: program exited with status $ac_status" >&5
22356 echo "$as_me: failed program was:" >&5
22357 sed 's/^/| /' conftest.$ac_ext >&5
22359 ( exit $ac_status )
22360 ac_cv_header_stdc=no
22362 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22366 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
22367 echo "${ECHO_T}$ac_cv_header_stdc" >&6
22368 if test $ac_cv_header_stdc = yes; then
22370 cat >>confdefs.h <<\_ACEOF
22371 #define STDC_HEADERS 1
22380 for ac_header in stddef.h stdlib.h string.h unistd.h
22382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22383 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22384 echo "$as_me:$LINENO: checking for $ac_header" >&5
22385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22386 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22389 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22390 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22392 # Is the header compilable?
22393 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22395 cat >conftest.$ac_ext <<_ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22402 #include <$ac_header>
22404 rm -f conftest.$ac_objext
22405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22406 (eval $ac_compile) 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22412 (exit $ac_status); } &&
22413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22415 (eval $ac_try) 2>&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); }; } &&
22419 { ac_try='test -s conftest.$ac_objext'
22420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22421 (eval $ac_try) 2>&5
22423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22424 (exit $ac_status); }; }; then
22425 ac_header_compiler=yes
22427 echo "$as_me: failed program was:" >&5
22428 sed 's/^/| /' conftest.$ac_ext >&5
22430 ac_header_compiler=no
22432 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22433 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22434 echo "${ECHO_T}$ac_header_compiler" >&6
22436 # Is the header present?
22437 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22438 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22439 cat >conftest.$ac_ext <<_ACEOF
22442 cat confdefs.h >>conftest.$ac_ext
22443 cat >>conftest.$ac_ext <<_ACEOF
22444 /* end confdefs.h. */
22445 #include <$ac_header>
22447 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22448 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22450 grep -v '^ *+' conftest.er1 >conftest.err
22452 cat conftest.err >&5
22453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22454 (exit $ac_status); } >/dev/null; then
22455 if test -s conftest.err; then
22456 ac_cpp_err=$ac_c_preproc_warn_flag
22457 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22464 if test -z "$ac_cpp_err"; then
22465 ac_header_preproc=yes
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22470 ac_header_preproc=no
22472 rm -f conftest.err conftest.$ac_ext
22473 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22474 echo "${ECHO_T}$ac_header_preproc" >&6
22476 # So? What about this header?
22477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22479 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22480 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22483 ac_header_preproc=yes
22486 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22487 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22488 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22489 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22490 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22491 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22492 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22493 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22494 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22496 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22497 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22500 ## ----------------------------------------- ##
22501 ## Report this to martin.quinson@ens-lyon.fr ##
22502 ## ----------------------------------------- ##
22505 sed "s/^/$as_me: WARNING: /" >&2
22508 echo "$as_me:$LINENO: checking for $ac_header" >&5
22509 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22510 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22511 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 eval "$as_ac_Header=\$ac_header_preproc"
22515 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22516 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22520 cat >>confdefs.h <<_ACEOF
22521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22529 # Checks for typedefs, structures, and compiler characteristics.
22530 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
22531 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
22532 if test "${ac_cv_c_const+set}" = set; then
22533 echo $ECHO_N "(cached) $ECHO_C" >&6
22535 cat >conftest.$ac_ext <<_ACEOF
22538 cat confdefs.h >>conftest.$ac_ext
22539 cat >>conftest.$ac_ext <<_ACEOF
22540 /* end confdefs.h. */
22545 /* FIXME: Include the comments suggested by Paul. */
22546 #ifndef __cplusplus
22547 /* Ultrix mips cc rejects this. */
22548 typedef int charset[2];
22550 /* SunOS 4.1.1 cc rejects this. */
22551 char const *const *ccp;
22553 /* NEC SVR4.0.2 mips cc rejects this. */
22554 struct point {int x, y;};
22555 static struct point const zero = {0,0};
22556 /* AIX XL C 1.02.0.0 rejects this.
22557 It does not let you subtract one const X* pointer from another in
22558 an arm of an if-expression whose if-part is not a constant
22560 const char *g = "string";
22561 ccp = &g + (g ? g-g : 0);
22562 /* HPUX 7.0 cc rejects these. */
22565 ccp = (char const *const *) p;
22566 { /* SCO 3.2v4 cc rejects this. */
22568 char const *s = 0 ? (char *) 0 : (char const *) 0;
22572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22573 int x[] = {25, 17};
22574 const int *foo = &x[0];
22577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22578 typedef const int *iptr;
22582 { /* AIX XL C 1.02.0.0 rejects this saying
22583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22584 struct s { int j; const int *ap[3]; };
22585 struct s *b; b->j = 5;
22587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22588 const int foo = 10;
22596 rm -f conftest.$ac_objext
22597 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22598 (eval $ac_compile) 2>conftest.er1
22600 grep -v '^ *+' conftest.er1 >conftest.err
22602 cat conftest.err >&5
22603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } &&
22605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22607 (eval $ac_try) 2>&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); }; } &&
22611 { ac_try='test -s conftest.$ac_objext'
22612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22613 (eval $ac_try) 2>&5
22615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22616 (exit $ac_status); }; }; then
22619 echo "$as_me: failed program was:" >&5
22620 sed 's/^/| /' conftest.$ac_ext >&5
22624 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22626 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
22627 echo "${ECHO_T}$ac_cv_c_const" >&6
22628 if test $ac_cv_c_const = no; then
22630 cat >>confdefs.h <<\_ACEOF
22636 echo "$as_me:$LINENO: checking for inline" >&5
22637 echo $ECHO_N "checking for inline... $ECHO_C" >&6
22638 if test "${ac_cv_c_inline+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22642 for ac_kw in inline __inline__ __inline; do
22643 cat >conftest.$ac_ext <<_ACEOF
22646 cat confdefs.h >>conftest.$ac_ext
22647 cat >>conftest.$ac_ext <<_ACEOF
22648 /* end confdefs.h. */
22649 #ifndef __cplusplus
22651 static $ac_kw foo_t static_foo () {return 0; }
22652 $ac_kw foo_t foo () {return 0; }
22656 rm -f conftest.$ac_objext
22657 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22658 (eval $ac_compile) 2>conftest.er1
22660 grep -v '^ *+' conftest.er1 >conftest.err
22662 cat conftest.err >&5
22663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22664 (exit $ac_status); } &&
22665 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22667 (eval $ac_try) 2>&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); }; } &&
22671 { ac_try='test -s conftest.$ac_objext'
22672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22673 (eval $ac_try) 2>&5
22675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); }; }; then
22677 ac_cv_c_inline=$ac_kw; break
22679 echo "$as_me: failed program was:" >&5
22680 sed 's/^/| /' conftest.$ac_ext >&5
22683 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22687 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
22688 echo "${ECHO_T}$ac_cv_c_inline" >&6
22691 case $ac_cv_c_inline in
22694 case $ac_cv_c_inline in
22696 *) ac_val=$ac_cv_c_inline;;
22698 cat >>confdefs.h <<_ACEOF
22699 #ifndef __cplusplus
22700 #define inline $ac_val
22706 echo "$as_me:$LINENO: checking for size_t" >&5
22707 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
22708 if test "${ac_cv_type_size_t+set}" = set; then
22709 echo $ECHO_N "(cached) $ECHO_C" >&6
22711 cat >conftest.$ac_ext <<_ACEOF
22714 cat confdefs.h >>conftest.$ac_ext
22715 cat >>conftest.$ac_ext <<_ACEOF
22716 /* end confdefs.h. */
22717 $ac_includes_default
22723 if (sizeof (size_t))
22729 rm -f conftest.$ac_objext
22730 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22731 (eval $ac_compile) 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22737 (exit $ac_status); } &&
22738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22739 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22740 (eval $ac_try) 2>&5
22742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22743 (exit $ac_status); }; } &&
22744 { ac_try='test -s conftest.$ac_objext'
22745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22746 (eval $ac_try) 2>&5
22748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749 (exit $ac_status); }; }; then
22750 ac_cv_type_size_t=yes
22752 echo "$as_me: failed program was:" >&5
22753 sed 's/^/| /' conftest.$ac_ext >&5
22755 ac_cv_type_size_t=no
22757 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22759 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22760 echo "${ECHO_T}$ac_cv_type_size_t" >&6
22761 if test $ac_cv_type_size_t = yes; then
22765 cat >>confdefs.h <<_ACEOF
22766 #define size_t unsigned
22772 # Checks for library functions.
22774 for ac_header in stdlib.h
22776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22777 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22778 echo "$as_me:$LINENO: checking for $ac_header" >&5
22779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22780 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22781 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22784 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22786 # Is the header compilable?
22787 echo "$as_me:$LINENO: checking $ac_header usability" >&5
22788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
22789 cat >conftest.$ac_ext <<_ACEOF
22792 cat confdefs.h >>conftest.$ac_ext
22793 cat >>conftest.$ac_ext <<_ACEOF
22794 /* end confdefs.h. */
22795 $ac_includes_default
22796 #include <$ac_header>
22798 rm -f conftest.$ac_objext
22799 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22800 (eval $ac_compile) 2>conftest.er1
22802 grep -v '^ *+' conftest.er1 >conftest.err
22804 cat conftest.err >&5
22805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22806 (exit $ac_status); } &&
22807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22809 (eval $ac_try) 2>&5
22811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22812 (exit $ac_status); }; } &&
22813 { ac_try='test -s conftest.$ac_objext'
22814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22815 (eval $ac_try) 2>&5
22817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22818 (exit $ac_status); }; }; then
22819 ac_header_compiler=yes
22821 echo "$as_me: failed program was:" >&5
22822 sed 's/^/| /' conftest.$ac_ext >&5
22824 ac_header_compiler=no
22826 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22827 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22828 echo "${ECHO_T}$ac_header_compiler" >&6
22830 # Is the header present?
22831 echo "$as_me:$LINENO: checking $ac_header presence" >&5
22832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
22833 cat >conftest.$ac_ext <<_ACEOF
22836 cat confdefs.h >>conftest.$ac_ext
22837 cat >>conftest.$ac_ext <<_ACEOF
22838 /* end confdefs.h. */
22839 #include <$ac_header>
22841 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22842 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22848 (exit $ac_status); } >/dev/null; then
22849 if test -s conftest.err; then
22850 ac_cpp_err=$ac_c_preproc_warn_flag
22851 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22858 if test -z "$ac_cpp_err"; then
22859 ac_header_preproc=yes
22861 echo "$as_me: failed program was:" >&5
22862 sed 's/^/| /' conftest.$ac_ext >&5
22864 ac_header_preproc=no
22866 rm -f conftest.err conftest.$ac_ext
22867 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22868 echo "${ECHO_T}$ac_header_preproc" >&6
22870 # So? What about this header?
22871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22873 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22874 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22876 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22877 ac_header_preproc=yes
22880 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22881 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22882 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22883 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22884 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22885 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22886 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22887 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22889 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22890 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22891 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22894 ## ----------------------------------------- ##
22895 ## Report this to martin.quinson@ens-lyon.fr ##
22896 ## ----------------------------------------- ##
22899 sed "s/^/$as_me: WARNING: /" >&2
22902 echo "$as_me:$LINENO: checking for $ac_header" >&5
22903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
22904 if eval "test \"\${$as_ac_Header+set}\" = set"; then
22905 echo $ECHO_N "(cached) $ECHO_C" >&6
22907 eval "$as_ac_Header=\$ac_header_preproc"
22909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
22910 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
22913 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22914 cat >>confdefs.h <<_ACEOF
22915 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22922 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
22923 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
22924 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
22925 echo $ECHO_N "(cached) $ECHO_C" >&6
22927 if test "$cross_compiling" = yes; then
22928 ac_cv_func_malloc_0_nonnull=no
22930 cat >conftest.$ac_ext <<_ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 #if STDC_HEADERS || HAVE_STDLIB_H
22937 # include <stdlib.h>
22945 exit (malloc (0) ? 0 : 1);
22950 rm -f conftest$ac_exeext
22951 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22952 (eval $ac_link) 2>&5
22954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22955 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22957 (eval $ac_try) 2>&5
22959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22960 (exit $ac_status); }; }; then
22961 ac_cv_func_malloc_0_nonnull=yes
22963 echo "$as_me: program exited with status $ac_status" >&5
22964 echo "$as_me: failed program was:" >&5
22965 sed 's/^/| /' conftest.$ac_ext >&5
22967 ( exit $ac_status )
22968 ac_cv_func_malloc_0_nonnull=no
22970 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22973 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
22974 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
22975 if test $ac_cv_func_malloc_0_nonnull = yes; then
22977 cat >>confdefs.h <<\_ACEOF
22978 #define HAVE_MALLOC 1
22982 cat >>confdefs.h <<\_ACEOF
22983 #define HAVE_MALLOC 0
22987 "malloc.$ac_objext" | \
22988 *" malloc.$ac_objext" | \
22989 "malloc.$ac_objext "* | \
22990 *" malloc.$ac_objext "* ) ;;
22991 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
22995 cat >>confdefs.h <<\_ACEOF
22996 #define malloc rpl_malloc
23003 echo "$as_me:$LINENO: checking for working memcmp" >&5
23004 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
23005 if test "${ac_cv_func_memcmp_working+set}" = set; then
23006 echo $ECHO_N "(cached) $ECHO_C" >&6
23008 if test "$cross_compiling" = yes; then
23009 ac_cv_func_memcmp_working=no
23011 cat >conftest.$ac_ext <<_ACEOF
23014 cat confdefs.h >>conftest.$ac_ext
23015 cat >>conftest.$ac_ext <<_ACEOF
23016 /* end confdefs.h. */
23017 $ac_includes_default
23022 /* Some versions of memcmp are not 8-bit clean. */
23023 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
23024 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23027 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23028 or more and with at least one buffer not starting on a 4-byte boundary.
23029 William Lewis provided this test program. */
23034 for (i = 0; i < 4; i++)
23038 strcpy (a, "--------01111111");
23039 strcpy (b, "--------10000000");
23040 if (memcmp (a, b, 16) >= 0)
23050 rm -f conftest$ac_exeext
23051 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23052 (eval $ac_link) 2>&5
23054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23055 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23056 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23057 (eval $ac_try) 2>&5
23059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060 (exit $ac_status); }; }; then
23061 ac_cv_func_memcmp_working=yes
23063 echo "$as_me: program exited with status $ac_status" >&5
23064 echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23067 ( exit $ac_status )
23068 ac_cv_func_memcmp_working=no
23070 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23073 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
23074 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
23075 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
23076 "memcmp.$ac_objext" | \
23077 *" memcmp.$ac_objext" | \
23078 "memcmp.$ac_objext "* | \
23079 *" memcmp.$ac_objext "* ) ;;
23080 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
23088 for ac_func in memset strchr strerror usleep
23090 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23091 echo "$as_me:$LINENO: checking for $ac_func" >&5
23092 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23093 if eval "test \"\${$as_ac_var+set}\" = set"; then
23094 echo $ECHO_N "(cached) $ECHO_C" >&6
23096 cat >conftest.$ac_ext <<_ACEOF
23099 cat confdefs.h >>conftest.$ac_ext
23100 cat >>conftest.$ac_ext <<_ACEOF
23101 /* end confdefs.h. */
23102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23104 #define $ac_func innocuous_$ac_func
23106 /* System header to define __stub macros and hopefully few prototypes,
23107 which can conflict with char $ac_func (); below.
23108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23109 <limits.h> exists even on freestanding compilers. */
23112 # include <limits.h>
23114 # include <assert.h>
23119 /* Override any gcc2 internal prototype to avoid an error. */
23124 /* We use char because int might match the return type of a gcc2
23125 builtin and then its argument prototype would still apply. */
23127 /* The GNU C library defines this for functions which it implements
23128 to always fail with ENOSYS. Some functions are actually named
23129 something starting with __ and the normal name is an alias. */
23130 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23133 char (*f) () = $ac_func;
23142 return f != $ac_func;
23147 rm -f conftest.$ac_objext conftest$ac_exeext
23148 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23149 (eval $ac_link) 2>conftest.er1
23151 grep -v '^ *+' conftest.er1 >conftest.err
23153 cat conftest.err >&5
23154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23155 (exit $ac_status); } &&
23156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23158 (eval $ac_try) 2>&5
23160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23161 (exit $ac_status); }; } &&
23162 { ac_try='test -s conftest$ac_exeext'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 eval "$as_ac_var=yes"
23170 echo "$as_me: failed program was:" >&5
23171 sed 's/^/| /' conftest.$ac_ext >&5
23173 eval "$as_ac_var=no"
23175 rm -f conftest.err conftest.$ac_objext \
23176 conftest$ac_exeext conftest.$ac_ext
23178 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23179 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23180 if test `eval echo '${'$as_ac_var'}'` = yes; then
23181 cat >>confdefs.h <<_ACEOF
23182 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23189 # Can we rebuild the parsers?
23190 # We really want flex and refuse other lex. So, the parser is portable and
23191 # does not induce extra lib dependency
23192 for ac_prog in flex lex
23194 # Extract the first word of "$ac_prog", so it can be a program name with args.
23195 set dummy $ac_prog; ac_word=$2
23196 echo "$as_me:$LINENO: checking for $ac_word" >&5
23197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23198 if test "${ac_cv_prog_LEX+set}" = set; then
23199 echo $ECHO_N "(cached) $ECHO_C" >&6
23201 if test -n "$LEX"; then
23202 ac_cv_prog_LEX="$LEX" # Let the user override the test.
23204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23205 for as_dir in $PATH
23208 test -z "$as_dir" && as_dir=.
23209 for ac_exec_ext in '' $ac_executable_extensions; do
23210 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23211 ac_cv_prog_LEX="$ac_prog"
23212 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23220 LEX=$ac_cv_prog_LEX
23221 if test -n "$LEX"; then
23222 echo "$as_me:$LINENO: result: $LEX" >&5
23223 echo "${ECHO_T}$LEX" >&6
23225 echo "$as_me:$LINENO: result: no" >&5
23226 echo "${ECHO_T}no" >&6
23229 test -n "$LEX" && break
23231 test -n "$LEX" || LEX=":"
23233 if test -z "$LEXLIB"
23235 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
23236 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
23237 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
23238 echo $ECHO_N "(cached) $ECHO_C" >&6
23240 ac_check_lib_save_LIBS=$LIBS
23242 cat >conftest.$ac_ext <<_ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h. */
23249 /* Override any gcc2 internal prototype to avoid an error. */
23253 /* We use char because int might match the return type of a gcc2
23254 builtin and then its argument prototype would still apply. */
23264 rm -f conftest.$ac_objext conftest$ac_exeext
23265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23266 (eval $ac_link) 2>conftest.er1
23268 grep -v '^ *+' conftest.er1 >conftest.err
23270 cat conftest.err >&5
23271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23272 (exit $ac_status); } &&
23273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23275 (eval $ac_try) 2>&5
23277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23278 (exit $ac_status); }; } &&
23279 { ac_try='test -s conftest$ac_exeext'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; }; then
23285 ac_cv_lib_fl_yywrap=yes
23287 echo "$as_me: failed program was:" >&5
23288 sed 's/^/| /' conftest.$ac_ext >&5
23290 ac_cv_lib_fl_yywrap=no
23292 rm -f conftest.err conftest.$ac_objext \
23293 conftest$ac_exeext conftest.$ac_ext
23294 LIBS=$ac_check_lib_save_LIBS
23296 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
23297 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
23298 if test $ac_cv_lib_fl_yywrap = yes; then
23301 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
23302 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
23303 if test "${ac_cv_lib_l_yywrap+set}" = set; then
23304 echo $ECHO_N "(cached) $ECHO_C" >&6
23306 ac_check_lib_save_LIBS=$LIBS
23308 cat >conftest.$ac_ext <<_ACEOF
23311 cat confdefs.h >>conftest.$ac_ext
23312 cat >>conftest.$ac_ext <<_ACEOF
23313 /* end confdefs.h. */
23315 /* Override any gcc2 internal prototype to avoid an error. */
23319 /* We use char because int might match the return type of a gcc2
23320 builtin and then its argument prototype would still apply. */
23330 rm -f conftest.$ac_objext conftest$ac_exeext
23331 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23332 (eval $ac_link) 2>conftest.er1
23334 grep -v '^ *+' conftest.er1 >conftest.err
23336 cat conftest.err >&5
23337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23338 (exit $ac_status); } &&
23339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23340 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23341 (eval $ac_try) 2>&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); }; } &&
23345 { ac_try='test -s conftest$ac_exeext'
23346 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23347 (eval $ac_try) 2>&5
23349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23350 (exit $ac_status); }; }; then
23351 ac_cv_lib_l_yywrap=yes
23353 echo "$as_me: failed program was:" >&5
23354 sed 's/^/| /' conftest.$ac_ext >&5
23356 ac_cv_lib_l_yywrap=no
23358 rm -f conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23360 LIBS=$ac_check_lib_save_LIBS
23362 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
23363 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
23364 if test $ac_cv_lib_l_yywrap = yes; then
23372 if test "x$LEX" != "x:"; then
23373 echo "$as_me:$LINENO: checking lex output file root" >&5
23374 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
23375 if test "${ac_cv_prog_lex_root+set}" = set; then
23376 echo $ECHO_N "(cached) $ECHO_C" >&6
23378 # The minimal lex program is just a single line: %%. But some broken lexes
23379 # (Solaris, I think it was) want two %% lines, so accommodate them.
23380 cat >conftest.l <<_ACEOF
23384 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
23385 (eval $LEX conftest.l) 2>&5
23387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23388 (exit $ac_status); }
23389 if test -f lex.yy.c; then
23390 ac_cv_prog_lex_root=lex.yy
23391 elif test -f lexyy.c; then
23392 ac_cv_prog_lex_root=lexyy
23394 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
23395 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
23396 { (exit 1); exit 1; }; }
23399 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
23400 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
23402 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
23404 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
23405 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
23406 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
23407 echo $ECHO_N "(cached) $ECHO_C" >&6
23409 # POSIX says lex can declare yytext either as a pointer or an array; the
23410 # default is implementation-dependent. Figure out which it is, since
23411 # not all implementations provide the %pointer and %array declarations.
23412 ac_cv_prog_lex_yytext_pointer=no
23413 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
23415 LIBS="$LIBS $LEXLIB"
23416 cat >conftest.$ac_ext <<_ACEOF
23417 `cat $LEX_OUTPUT_ROOT.c`
23419 rm -f conftest.$ac_objext conftest$ac_exeext
23420 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23421 (eval $ac_link) 2>conftest.er1
23423 grep -v '^ *+' conftest.er1 >conftest.err
23425 cat conftest.err >&5
23426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23427 (exit $ac_status); } &&
23428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23430 (eval $ac_try) 2>&5
23432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23433 (exit $ac_status); }; } &&
23434 { ac_try='test -s conftest$ac_exeext'
23435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23436 (eval $ac_try) 2>&5
23438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); }; }; then
23440 ac_cv_prog_lex_yytext_pointer=yes
23442 echo "$as_me: failed program was:" >&5
23443 sed 's/^/| /' conftest.$ac_ext >&5
23446 rm -f conftest.err conftest.$ac_objext \
23447 conftest$ac_exeext conftest.$ac_ext
23449 rm -f "${LEX_OUTPUT_ROOT}.c"
23452 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
23453 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
23454 if test $ac_cv_prog_lex_yytext_pointer = yes; then
23456 cat >>confdefs.h <<\_ACEOF
23457 #define YYTEXT_POINTER 1
23463 if test "$LEX" != flex; then
23464 LEX="$SHELL $missing_dir/missing flex"
23467 # Can we rebuild the documentation?
23470 # Check whether --with-html-dir or --without-html-dir was given.
23471 if test "${with_html_dir+set}" = set; then
23472 withval="$with_html_dir"
23475 with_html_dir='${datadir}/gtk-doc/html'
23477 HTML_DIR="$with_html_dir"
23480 # Check whether --enable-gtk-doc or --disable-gtk-doc was given.
23481 if test "${enable_gtk_doc+set}" = set; then
23482 enableval="$enable_gtk_doc"
23489 if test x$enable_gtk_doc = xyes; then
23490 if test -z "$PKG_CONFIG"; then
23491 # Extract the first word of "pkg-config", so it can be a program name with args.
23492 set dummy pkg-config; ac_word=$2
23493 echo "$as_me:$LINENO: checking for $ac_word" >&5
23494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23495 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23496 echo $ECHO_N "(cached) $ECHO_C" >&6
23498 case $PKG_CONFIG in
23500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23504 for as_dir in $PATH
23507 test -z "$as_dir" && as_dir=.
23508 for ac_exec_ext in '' $ac_executable_extensions; do
23509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23510 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23517 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23523 if test -n "$PKG_CONFIG"; then
23524 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23525 echo "${ECHO_T}$PKG_CONFIG" >&6
23527 echo "$as_me:$LINENO: result: no" >&5
23528 echo "${ECHO_T}no" >&6
23532 if test "$PKG_CONFIG" != "no" && $PKG_CONFIG --exists gtk-doc; then
23537 if test "$have_gtk_doc" != yes; then
23544 if test x$enable_gtk_doc = xyes; then
23545 ENABLE_GTK_DOC_TRUE=
23546 ENABLE_GTK_DOC_FALSE='#'
23548 ENABLE_GTK_DOC_TRUE='#'
23549 ENABLE_GTK_DOC_FALSE=
23554 if test -n "$LIBTOOL"; then
23555 GTK_DOC_USE_LIBTOOL_TRUE=
23556 GTK_DOC_USE_LIBTOOL_FALSE='#'
23558 GTK_DOC_USE_LIBTOOL_TRUE='#'
23559 GTK_DOC_USE_LIBTOOL_FALSE=
23563 htmldir='${datadir}/doc/gras/html'
23574 aci_nameok=`echo SimGrid|sed 'y/-/./'`
23575 if test "xSimGrid" != "x$aci_nameok" ; then
23576 { { echo "$as_me:$LINENO: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&5
23577 echo "$as_me: error: ACI error: Please no '-' in package name. (ie, SimGrid is not a valid name)" >&2;}
23578 { (exit 1); exit 1; }; }
23580 echo "BEGINING OF ACI-PACKAGE(SimGrid)">&5;
23581 aci_module_desc_SimGrid="the SimGrid simulator"
23582 aci_packages="$aci_packages SimGrid"
23585 # Check whether --with-SimGrid or --without-SimGrid was given.
23586 if test "${with_SimGrid+set}" = set; then
23587 withval="$with_SimGrid"
23588 with_SimGrid=$withval
23590 if test "$withval" = yes ; then good=no; fi
23591 if test "$withval" = no ; then good=no; fi
23592 if test $good = no ; then
23593 { { 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
23594 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;}
23595 { (exit 1); exit 1; }; }
23597 aci_pkg_prefix_SimGrid="$withval"
23598 CFLAGS_SimGrid="-I$withval/include $CFLAGS_SimGrid"
23599 LIBS_SimGrid="-L$withval/lib $LIBS_SimGrid"
23604 # Check whether --with-SimGrid-includes or --without-SimGrid-includes was given.
23605 if test "${with_SimGrid_includes+set}" = set; then
23606 withval="$with_SimGrid_includes"
23607 CFLAGS_SimGrid="-I$withval $CFLAGS_SimGrid"
23608 aci_pkg_inc_SimGrid="$withval"
23613 # Check whether --with-SimGrid-libraries or --without-SimGrid-libraries was given.
23614 if test "${with_SimGrid_libraries+set}" = set; then
23615 withval="$with_SimGrid_libraries"
23616 LIBS_SimGrid="-L$withval $LIBS_SimGrid"
23617 aci_pkg_lib_SimGrid="$withval"
23621 # Check whether --with-SimGrid-extra or --without-SimGrid-extra was given.
23622 if test "${with_SimGrid_extra+set}" = set; then
23623 withval="$with_SimGrid_extra"
23624 LIBS_SimGrid=`echo $withval|sed 's/!/ /g'`" $LIBS_SimGrid"
23625 aci_pkg_extra_SimGrid="$withval"
23629 OLD_LDFLAGS=$LDFLAGS
23631 OLD_CPPFLAGS=$CPPFLAGS
23633 i=`echo -lsimgrid|wc -l`
23634 if test $i != 1 && test $i != 0 ; then
23635 { { echo "$as_me:$LINENO: error: Badly formed args for function ACI-PACKAGE.
23636 please no newline and no tab." >&5
23637 echo "$as_me: error: Badly formed args for function ACI-PACKAGE.
23638 please no newline and no tab." >&2;}
23639 { (exit 1); exit 1; }; }
23642 ac_func_search_save_LIBS="$LIBS"
23643 ac_func_search_save_this_LIBS="$LIBS_SimGrid"
23645 echo "----------------------------------------" >&5
23646 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init without new libs" >&5
23647 echo $ECHO_N "checking for SimGrid. Can I access SG_init without new libs... $ECHO_C" >&6
23648 cat >conftest.$ac_ext <<_ACEOF
23651 cat confdefs.h >>conftest.$ac_ext
23652 cat >>conftest.$ac_ext <<_ACEOF
23653 /* end confdefs.h. */
23655 /* Override any gcc2 internal prototype to avoid an error. */
23659 /* We use char because int might match the return type of a gcc2
23660 builtin and then its argument prototype would still apply. */
23670 rm -f conftest.$ac_objext conftest$ac_exeext
23671 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23672 (eval $ac_link) 2>conftest.er1
23674 grep -v '^ *+' conftest.er1 >conftest.err
23676 cat conftest.err >&5
23677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } &&
23679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23680 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23681 (eval $ac_try) 2>&5
23683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23684 (exit $ac_status); }; } &&
23685 { ac_try='test -s conftest$ac_exeext'
23686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23687 (eval $ac_try) 2>&5
23689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23690 (exit $ac_status); }; }; then
23691 echo "$as_me:$LINENO: result: yes" >&5
23692 echo "${ECHO_T}yes" >&6 aci_found="yes"
23694 echo "$as_me: failed program was:" >&5
23695 sed 's/^/| /' conftest.$ac_ext >&5
23697 echo "$as_me:$LINENO: result: no" >&5
23698 echo "${ECHO_T}no" >&6
23700 rm -f conftest.err conftest.$ac_objext \
23701 conftest$ac_exeext conftest.$ac_ext
23702 if test "$aci_found" = "no"; then
23703 if test -n "$LIBS_SimGrid" ; then
23704 LIBS="$LIBS_SimGrid"
23705 echo "----------------------------------------" >&5
23706 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init the specified extra args" >&5
23707 echo $ECHO_N "checking for SimGrid. Can I access SG_init the specified extra args... $ECHO_C" >&6
23708 cat >conftest.$ac_ext <<_ACEOF
23711 cat confdefs.h >>conftest.$ac_ext
23712 cat >>conftest.$ac_ext <<_ACEOF
23713 /* end confdefs.h. */
23715 /* Override any gcc2 internal prototype to avoid an error. */
23719 /* We use char because int might match the return type of a gcc2
23720 builtin and then its argument prototype would still apply. */
23730 rm -f conftest.$ac_objext conftest$ac_exeext
23731 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23732 (eval $ac_link) 2>conftest.er1
23734 grep -v '^ *+' conftest.er1 >conftest.err
23736 cat conftest.err >&5
23737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23738 (exit $ac_status); } &&
23739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23740 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23741 (eval $ac_try) 2>&5
23743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23744 (exit $ac_status); }; } &&
23745 { ac_try='test -s conftest$ac_exeext'
23746 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23747 (eval $ac_try) 2>&5
23749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23750 (exit $ac_status); }; }; then
23753 echo "$as_me: failed program was:" >&5
23754 sed 's/^/| /' conftest.$ac_ext >&5
23758 rm -f conftest.err conftest.$ac_objext \
23759 conftest$ac_exeext conftest.$ac_ext
23760 echo "$as_me:$LINENO: result: $aci_found" >&5
23761 echo "${ECHO_T}$aci_found" >&6
23766 if test "x$aci_found" = "xno"; then
23767 LIBS_SimGrid=`echo "$i $ac_func_search_save_this_LIBS"|sed 's/!/ /g'`
23768 LIBS="$LIBS_SimGrid $ac_func_search_save_LIBS"
23769 echo "----------------------------------------" >&5
23770 echo "$as_me:$LINENO: checking for SimGrid. Can I access SG_init with $LIBS_SimGrid" >&5
23771 echo $ECHO_N "checking for SimGrid. Can I access SG_init with $LIBS_SimGrid... $ECHO_C" >&6
23772 cat >conftest.$ac_ext <<_ACEOF
23775 cat confdefs.h >>conftest.$ac_ext
23776 cat >>conftest.$ac_ext <<_ACEOF
23777 /* end confdefs.h. */
23779 /* Override any gcc2 internal prototype to avoid an error. */
23783 /* We use char because int might match the return type of a gcc2
23784 builtin and then its argument prototype would still apply. */
23794 rm -f conftest.$ac_objext conftest$ac_exeext
23795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23796 (eval $ac_link) 2>conftest.er1
23798 grep -v '^ *+' conftest.er1 >conftest.err
23800 cat conftest.err >&5
23801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23802 (exit $ac_status); } &&
23803 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23804 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23805 (eval $ac_try) 2>&5
23807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23808 (exit $ac_status); }; } &&
23809 { ac_try='test -s conftest$ac_exeext'
23810 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23811 (eval $ac_try) 2>&5
23813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23814 (exit $ac_status); }; }; then
23817 echo "$as_me: failed program was:" >&5
23818 sed 's/^/| /' conftest.$ac_ext >&5
23822 rm -f conftest.err conftest.$ac_objext \
23823 conftest$ac_exeext conftest.$ac_ext
23824 echo "$as_me:$LINENO: result: $aci_found" >&5
23825 echo "${ECHO_T}$aci_found" >&6
23828 LIBS="$ac_func_search_save_LIBS"
23830 if test "x$aci_found" = "xyes" && test "x"simgrid.h != "x" ; then
23831 CPPFLAGS="$CPPFLAGS $CFLAGS_SimGrid"
23832 echo "CPPFLAGS=$CPPFLAGS">&5;
23833 if test "${ac_cv_header_simgrid_h+set}" = set; then
23834 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23835 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23836 if test "${ac_cv_header_simgrid_h+set}" = set; then
23837 echo $ECHO_N "(cached) $ECHO_C" >&6
23839 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23840 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23842 # Is the header compilable?
23843 echo "$as_me:$LINENO: checking simgrid.h usability" >&5
23844 echo $ECHO_N "checking simgrid.h usability... $ECHO_C" >&6
23845 cat >conftest.$ac_ext <<_ACEOF
23848 cat confdefs.h >>conftest.$ac_ext
23849 cat >>conftest.$ac_ext <<_ACEOF
23850 /* end confdefs.h. */
23851 $ac_includes_default
23852 #include <simgrid.h>
23854 rm -f conftest.$ac_objext
23855 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23856 (eval $ac_compile) 2>conftest.er1
23858 grep -v '^ *+' conftest.er1 >conftest.err
23860 cat conftest.err >&5
23861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23862 (exit $ac_status); } &&
23863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23865 (eval $ac_try) 2>&5
23867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23868 (exit $ac_status); }; } &&
23869 { ac_try='test -s conftest.$ac_objext'
23870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23871 (eval $ac_try) 2>&5
23873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23874 (exit $ac_status); }; }; then
23875 ac_header_compiler=yes
23877 echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 ac_header_compiler=no
23882 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23883 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23884 echo "${ECHO_T}$ac_header_compiler" >&6
23886 # Is the header present?
23887 echo "$as_me:$LINENO: checking simgrid.h presence" >&5
23888 echo $ECHO_N "checking simgrid.h presence... $ECHO_C" >&6
23889 cat >conftest.$ac_ext <<_ACEOF
23892 cat confdefs.h >>conftest.$ac_ext
23893 cat >>conftest.$ac_ext <<_ACEOF
23894 /* end confdefs.h. */
23895 #include <simgrid.h>
23897 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23898 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23900 grep -v '^ *+' conftest.er1 >conftest.err
23902 cat conftest.err >&5
23903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23904 (exit $ac_status); } >/dev/null; then
23905 if test -s conftest.err; then
23906 ac_cpp_err=$ac_c_preproc_warn_flag
23907 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23914 if test -z "$ac_cpp_err"; then
23915 ac_header_preproc=yes
23917 echo "$as_me: failed program was:" >&5
23918 sed 's/^/| /' conftest.$ac_ext >&5
23920 ac_header_preproc=no
23922 rm -f conftest.err conftest.$ac_ext
23923 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23924 echo "${ECHO_T}$ac_header_preproc" >&6
23926 # So? What about this header?
23927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23929 { echo "$as_me:$LINENO: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&5
23930 echo "$as_me: WARNING: simgrid.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23931 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the compiler's result" >&5
23932 echo "$as_me: WARNING: simgrid.h: proceeding with the compiler's result" >&2;}
23933 ac_header_preproc=yes
23936 { echo "$as_me:$LINENO: WARNING: simgrid.h: present but cannot be compiled" >&5
23937 echo "$as_me: WARNING: simgrid.h: present but cannot be compiled" >&2;}
23938 { echo "$as_me:$LINENO: WARNING: simgrid.h: check for missing prerequisite headers?" >&5
23939 echo "$as_me: WARNING: simgrid.h: check for missing prerequisite headers?" >&2;}
23940 { echo "$as_me:$LINENO: WARNING: simgrid.h: see the Autoconf documentation" >&5
23941 echo "$as_me: WARNING: simgrid.h: see the Autoconf documentation" >&2;}
23942 { echo "$as_me:$LINENO: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&5
23943 echo "$as_me: WARNING: simgrid.h: section \"Present But Cannot Be Compiled\"" >&2;}
23944 { echo "$as_me:$LINENO: WARNING: simgrid.h: proceeding with the preprocessor's result" >&5
23945 echo "$as_me: WARNING: simgrid.h: proceeding with the preprocessor's result" >&2;}
23946 { echo "$as_me:$LINENO: WARNING: simgrid.h: in the future, the compiler will take precedence" >&5
23947 echo "$as_me: WARNING: simgrid.h: in the future, the compiler will take precedence" >&2;}
23950 ## ----------------------------------------- ##
23951 ## Report this to martin.quinson@ens-lyon.fr ##
23952 ## ----------------------------------------- ##
23955 sed "s/^/$as_me: WARNING: /" >&2
23958 echo "$as_me:$LINENO: checking for simgrid.h" >&5
23959 echo $ECHO_N "checking for simgrid.h... $ECHO_C" >&6
23960 if test "${ac_cv_header_simgrid_h+set}" = set; then
23961 echo $ECHO_N "(cached) $ECHO_C" >&6
23963 ac_cv_header_simgrid_h=$ac_header_preproc
23965 echo "$as_me:$LINENO: result: $ac_cv_header_simgrid_h" >&5
23966 echo "${ECHO_T}$ac_cv_header_simgrid_h" >&6
23969 if test $ac_cv_header_simgrid_h = yes; then
23977 if test "x$aci_found" = "xno" ; then
23983 if test "x$HAVE_SimGrid" != "xyes" ; then
23991 echo "END OF ACI-PACKAGE(SimGrid)">&5;
23992 LDFLAGS=$OLDLDFLAGS
23993 CPPFLAGS=$OLDCPPFLAGS
23998 if test x$HAVE_SimGrid = xyes; then
24007 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
24008 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
24009 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
24010 echo $ECHO_N "(cached) $ECHO_C" >&6
24012 ac_check_lib_save_LIBS=$LIBS
24014 cat >conftest.$ac_ext <<_ACEOF
24017 cat confdefs.h >>conftest.$ac_ext
24018 cat >>conftest.$ac_ext <<_ACEOF
24019 /* end confdefs.h. */
24021 /* Override any gcc2 internal prototype to avoid an error. */
24025 /* We use char because int might match the return type of a gcc2
24026 builtin and then its argument prototype would still apply. */
24027 char gethostbyname ();
24036 rm -f conftest.$ac_objext conftest$ac_exeext
24037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24038 (eval $ac_link) 2>conftest.er1
24040 grep -v '^ *+' conftest.er1 >conftest.err
24042 cat conftest.err >&5
24043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24044 (exit $ac_status); } &&
24045 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24047 (eval $ac_try) 2>&5
24049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24050 (exit $ac_status); }; } &&
24051 { ac_try='test -s conftest$ac_exeext'
24052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24053 (eval $ac_try) 2>&5
24055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); }; }; then
24057 ac_cv_lib_nsl_gethostbyname=yes
24059 echo "$as_me: failed program was:" >&5
24060 sed 's/^/| /' conftest.$ac_ext >&5
24062 ac_cv_lib_nsl_gethostbyname=no
24064 rm -f conftest.err conftest.$ac_objext \
24065 conftest$ac_exeext conftest.$ac_ext
24066 LIBS=$ac_check_lib_save_LIBS
24068 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
24069 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
24070 if test $ac_cv_lib_nsl_gethostbyname = yes; then
24074 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
24075 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
24076 if test "${ac_cv_lib_socket_connect+set}" = set; then
24077 echo $ECHO_N "(cached) $ECHO_C" >&6
24079 ac_check_lib_save_LIBS=$LIBS
24080 LIBS="-lsocket $LIBS"
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24088 /* Override any gcc2 internal prototype to avoid an error. */
24092 /* We use char because int might match the return type of a gcc2
24093 builtin and then its argument prototype would still apply. */
24103 rm -f conftest.$ac_objext conftest$ac_exeext
24104 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24105 (eval $ac_link) 2>conftest.er1
24107 grep -v '^ *+' conftest.er1 >conftest.err
24109 cat conftest.err >&5
24110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24111 (exit $ac_status); } &&
24112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24113 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24114 (eval $ac_try) 2>&5
24116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24117 (exit $ac_status); }; } &&
24118 { ac_try='test -s conftest$ac_exeext'
24119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24120 (eval $ac_try) 2>&5
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; }; then
24124 ac_cv_lib_socket_connect=yes
24126 echo "$as_me: failed program was:" >&5
24127 sed 's/^/| /' conftest.$ac_ext >&5
24129 ac_cv_lib_socket_connect=no
24131 rm -f conftest.err conftest.$ac_objext \
24132 conftest$ac_exeext conftest.$ac_ext
24133 LIBS=$ac_check_lib_save_LIBS
24135 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
24136 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
24137 if test $ac_cv_lib_socket_connect = yes; then
24138 LIBS="$LIBS -lsocket"
24142 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
24143 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
24144 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
24145 if test "${enable_maintainer_mode+set}" = set; then
24146 enableval="$enable_maintainer_mode"
24147 USE_MAINTAINER_MODE=$enableval
24149 USE_MAINTAINER_MODE=no
24151 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
24152 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
24155 if test $USE_MAINTAINER_MODE = yes; then
24156 MAINTAINER_MODE_TRUE=
24157 MAINTAINER_MODE_FALSE='#'
24159 MAINTAINER_MODE_TRUE='#'
24160 MAINTAINER_MODE_FALSE=
24163 MAINT=$MAINTAINER_MODE_TRUE
24166 if test x$USE_MAINTAINER_MODE = xyes
24168 enable_iso_c=yes # Let's go funky
24170 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
24171 if test "${enable_compile_warnings+set}" = set; then
24172 enableval="$enable_compile_warnings"
24175 enable_compile_warnings=yes
24178 echo "$as_me:$LINENO: checking the warning flags for this compiler" >&5
24179 echo $ECHO_N "checking the warning flags for this compiler... $ECHO_C" >&6
24181 if test "x$GCC" = "xyes"; then
24182 case " $CFLAGS " in
24184 *) warnCFLAGS="-g -Wall -Wunused" ;;
24187 ## -W is not all that useful. And it cannot be controlled
24188 ## with individual -Wno-xxx flags, unlike -Wall
24189 if test "x$enable_compile_warnings" = "xyes"; then
24190 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations \
24191 -finline-functions -Wshadow -Wpointer-arith -Wchar-subscripts \
24192 -Wformat=2 -Wno-unused-variable -Wno-unused-function -Wwrite-strings -Werror"
24196 echo "$as_me:$LINENO: result: $warnCFLAGS" >&5
24197 echo "${ECHO_T}$warnCFLAGS" >&6
24199 # Check whether --enable-iso-c or --disable-iso-c was given.
24200 if test "${enable_iso_c+set}" = set; then
24201 enableval="$enable_iso_c"
24207 echo "$as_me:$LINENO: checking the language compliance flags for this compiler" >&5
24208 echo $ECHO_N "checking the language compliance flags for this compiler... $ECHO_C" >&6
24210 if test "x$GCC" = "xyes"; then
24211 case " $CFLAGS " in
24213 *) complCFLAGS="$complCFLAGS -ansi" ;;
24216 case " $CFLAGS " in
24218 *) complCFLAGS="$complCFLAGS -pedantic" ;;
24221 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
24222 echo "${ECHO_T}$complCFLAGS" >&6
24225 echo "$as_me:$LINENO: checking the optimization flags for this compiler" >&5
24226 echo $ECHO_N "checking the optimization flags for this compiler... $ECHO_C" >&6
24228 if test "x$GCC" = "xyes" ; then
24229 optCFLAGS="-ffast-math -funroll-loops -fno-strict-aliasing"
24230 case " $CFLAGS " in
24232 *) optCFLAGS="-03" ;;
24235 echo "$as_me:$LINENO: result: $complCFLAGS" >&5
24236 echo "${ECHO_T}$complCFLAGS" >&6
24238 # Take the right flags
24239 if test "x$cflags_set" != "xyes" ; then
24240 if test "x$enable_iso_c" != "xno"; then
24241 CFLAGS="$CFLAGS $complCFLAGS"
24243 if test "x$enable_compile_warnings" != "xno" ; then
24244 CFLAGS="$CFLAGS $warnCFLAGS"
24257 # Extract the first word of "bash", so it can be a program name with args.
24258 set dummy bash; ac_word=$2
24259 echo "$as_me:$LINENO: checking for $ac_word" >&5
24260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
24261 if test "${ac_cv_prog_BASH+set}" = set; then
24262 echo $ECHO_N "(cached) $ECHO_C" >&6
24264 if test -n "$BASH"; then
24265 ac_cv_prog_BASH="$BASH" # Let the user override the test.
24267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24268 for as_dir in $PATH
24271 test -z "$as_dir" && as_dir=.
24272 for ac_exec_ext in '' $ac_executable_extensions; do
24273 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24274 ac_cv_prog_BASH="`which bash`"
24275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
24281 test -z "$ac_cv_prog_BASH" && ac_cv_prog_BASH="/bin/sh"
24284 BASH=$ac_cv_prog_BASH
24285 if test -n "$BASH"; then
24286 echo "$as_me:$LINENO: result: $BASH" >&5
24287 echo "${ECHO_T}$BASH" >&6
24289 echo "$as_me:$LINENO: result: no" >&5
24290 echo "${ECHO_T}no" >&6
24293 WARNING="This file is generated, do not edit"
24296 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile examples/Makefile examples/ping/Makefile examples/ping/test_sg doc/Makefile tools/compile-remote-worker testsuite/Makefile testsuite/run_tests testsuite/gras/trp_tcp_usage testsuite/gras/trp_file_usage"
24299 # src/gros/Makefile
24300 # src/gras/Makefile
24302 # testsuite/gras/Makefile
24304 # testsuite/gras/trp_tcp_usage
24305 # testsuite/gras/trp_file_usage
24308 # src/examples/pastry/Makefile
24309 # src/amok/Makefile
24310 # src/examples/bandwidth/Makefile src/examples/saturate/Makefile
24311 # src/examples/alnem/Makefile
24313 cat >confcache <<\_ACEOF
24314 # This file is a shell script that caches the results of configure
24315 # tests run on this system so they can be shared between configure
24316 # scripts and configure runs, see configure's option --config-cache.
24317 # It is not useful on other systems. If it contains results you don't
24318 # want to keep, you may remove or edit it.
24320 # config.status only pays attention to the cache file if you give it
24321 # the --recheck option to rerun configure.
24323 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24324 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24325 # following values.
24329 # The following way of writing the cache mishandles newlines in values,
24330 # but we know of no workaround that is simple, portable, and efficient.
24331 # So, don't put newlines in cache variables' values.
24332 # Ultrix sh set writes to stderr and can't be redirected directly,
24333 # and sets the high bit in the cache file unless we assign to the vars.
24336 case `(ac_space=' '; set | grep ac_space) 2>&1` in
24338 # `set' does not quote correctly, so add quotes (double-quote
24339 # substitution turns \\\\ into \\, and sed turns \\ into \).
24342 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24345 # `set' quotes correctly as required by POSIX, so do not add quotes.
24347 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
24354 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24356 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24358 if diff $cache_file confcache >/dev/null 2>&1; then :; else
24359 if test -w $cache_file; then
24360 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
24361 cat confcache >$cache_file
24363 echo "not updating unwritable cache $cache_file"
24368 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24369 # Let make expand exec_prefix.
24370 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24372 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24373 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24374 # trailing colons and then remove the whole line if VPATH becomes empty
24375 # (actually we leave an empty line to preserve line numbers).
24376 if test "x$srcdir" = x.; then
24377 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24378 s/:*\$(srcdir):*/:/;
24379 s/:*\${srcdir}:*/:/;
24381 s/^\([^=]*=[ ]*\):*/\1/;
24387 DEFS=-DHAVE_CONFIG_H
24391 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24392 # 1. Remove the extension, and $U if already installed.
24393 ac_i=`echo "$ac_i" |
24394 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
24396 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
24397 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
24399 LIBOBJS=$ac_libobjs
24401 LTLIBOBJS=$ac_ltlibobjs
24404 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24405 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
24406 Usually this means the macro was only invoked conditionally." >&5
24407 echo "$as_me: error: conditional \"AMDEP\" was never defined.
24408 Usually this means the macro was only invoked conditionally." >&2;}
24409 { (exit 1); exit 1; }; }
24411 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24412 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24413 Usually this means the macro was only invoked conditionally." >&5
24414 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24415 Usually this means the macro was only invoked conditionally." >&2;}
24416 { (exit 1); exit 1; }; }
24418 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24419 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
24420 Usually this means the macro was only invoked conditionally." >&5
24421 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
24422 Usually this means the macro was only invoked conditionally." >&2;}
24423 { (exit 1); exit 1; }; }
24425 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24426 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
24427 Usually this means the macro was only invoked conditionally." >&5
24428 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
24429 Usually this means the macro was only invoked conditionally." >&2;}
24430 { (exit 1); exit 1; }; }
24432 if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then
24433 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24434 Usually this means the macro was only invoked conditionally." >&5
24435 echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined.
24436 Usually this means the macro was only invoked conditionally." >&2;}
24437 { (exit 1); exit 1; }; }
24439 if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then
24440 { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24441 Usually this means the macro was only invoked conditionally." >&5
24442 echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined.
24443 Usually this means the macro was only invoked conditionally." >&2;}
24444 { (exit 1); exit 1; }; }
24446 if test -z "${HAVE_SG_TRUE}" && test -z "${HAVE_SG_FALSE}"; then
24447 { { echo "$as_me:$LINENO: error: conditional \"HAVE_SG\" was never defined.
24448 Usually this means the macro was only invoked conditionally." >&5
24449 echo "$as_me: error: conditional \"HAVE_SG\" was never defined.
24450 Usually this means the macro was only invoked conditionally." >&2;}
24451 { (exit 1); exit 1; }; }
24453 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24454 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
24455 Usually this means the macro was only invoked conditionally." >&5
24456 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
24457 Usually this means the macro was only invoked conditionally." >&2;}
24458 { (exit 1); exit 1; }; }
24461 : ${CONFIG_STATUS=./config.status}
24462 ac_clean_files_save=$ac_clean_files
24463 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24464 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24465 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24466 cat >$CONFIG_STATUS <<_ACEOF
24468 # Generated by $as_me.
24469 # Run this file to recreate the current configuration.
24470 # Compiler output produced by configure, useful for debugging
24471 # configure, is in config.log if it exists.
24474 ac_cs_recheck=false
24476 SHELL=\${CONFIG_SHELL-$SHELL}
24479 cat >>$CONFIG_STATUS <<\_ACEOF
24480 ## --------------------- ##
24481 ## M4sh Initialization. ##
24482 ## --------------------- ##
24484 # Be Bourne compatible
24485 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24488 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24489 # is contrary to our usage. Disable this feature.
24490 alias -g '${1+"$@"}'='"$@"'
24491 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
24494 DUALCASE=1; export DUALCASE # for MKS sh
24496 # Support unset when possible.
24497 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24504 # Work around bugs in pre-3.0 UWIN ksh.
24505 $as_unset ENV MAIL MAILPATH
24512 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24513 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24514 LC_TELEPHONE LC_TIME
24516 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24517 eval $as_var=C; export $as_var
24523 # Required to use basename.
24524 if expr a : '\(a\)' >/dev/null 2>&1; then
24530 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
24531 as_basename=basename
24537 # Name of the executable.
24538 as_me=`$as_basename "$0" ||
24539 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24540 X"$0" : 'X\(//\)$' \| \
24541 X"$0" : 'X\(/\)$' \| \
24542 . : '\(.\)' 2>/dev/null ||
24544 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
24545 /^X\/\(\/\/\)$/{ s//\1/; q; }
24546 /^X\/\(\/\).*/{ s//\1/; q; }
24550 # PATH needs CR, and LINENO needs CR and PATH.
24551 # Avoid depending upon Character Ranges.
24552 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24553 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24554 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24555 as_cr_digits='0123456789'
24556 as_cr_alnum=$as_cr_Letters$as_cr_digits
24558 # The user is always right.
24559 if test "${PATH_SEPARATOR+set}" != set; then
24560 echo "#! /bin/sh" >conf$$.sh
24561 echo "exit 0" >>conf$$.sh
24563 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24572 as_lineno_1=$LINENO
24573 as_lineno_2=$LINENO
24574 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24575 test "x$as_lineno_1" != "x$as_lineno_2" &&
24576 test "x$as_lineno_3" = "x$as_lineno_2" || {
24577 # Find who we are. Look in the path if we contain no path at all
24580 *[\\/]* ) as_myself=$0 ;;
24581 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24582 for as_dir in $PATH
24585 test -z "$as_dir" && as_dir=.
24586 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24591 # We did not find ourselves, most probably we were run as `sh COMMAND'
24592 # in which case we are not to be found in the path.
24593 if test "x$as_myself" = x; then
24596 if test ! -f "$as_myself"; then
24597 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
24598 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
24599 { (exit 1); exit 1; }; }
24601 case $CONFIG_SHELL in
24603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24604 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
24607 test -z "$as_dir" && as_dir=.
24608 for as_base in sh bash ksh sh5; do
24611 if ("$as_dir/$as_base" -c '
24612 as_lineno_1=$LINENO
24613 as_lineno_2=$LINENO
24614 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
24615 test "x$as_lineno_1" != "x$as_lineno_2" &&
24616 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
24617 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
24618 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
24619 CONFIG_SHELL=$as_dir/$as_base
24620 export CONFIG_SHELL
24621 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
24629 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24630 # uniformly replaced by the line number. The first 'sed' inserts a
24631 # line-number line before each line; the second 'sed' does the real
24632 # work. The second script uses 'N' to pair each line-number line
24633 # with the numbered line, and appends trailing '-' during
24634 # substitution so that $LINENO is not a special case at line end.
24635 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24636 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
24637 sed '=' <$as_myself |
24642 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
24645 s,^['$as_cr_digits']*\n,,
24646 ' >$as_me.lineno &&
24647 chmod +x $as_me.lineno ||
24648 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
24649 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
24650 { (exit 1); exit 1; }; }
24652 # Don't try to exec as it changes $[0], causing all sort of problems
24653 # (the dirname of $[0] is not the place where we might find the
24654 # original and so on. Autoconf is especially sensible to this).
24656 # Exit status is that of the last command.
24661 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
24662 *c*,-n*) ECHO_N= ECHO_C='
24664 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
24665 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
24668 if expr a : '\(a\)' >/dev/null 2>&1; then
24674 rm -f conf$$ conf$$.exe conf$$.file
24676 if ln -s conf$$.file conf$$ 2>/dev/null; then
24677 # We could just check for DJGPP; but this test a) works b) is more generic
24678 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
24679 if test -f conf$$.exe; then
24680 # Don't use ln at all; we don't have any links
24685 elif ln conf$$.file conf$$ 2>/dev/null; then
24690 rm -f conf$$ conf$$.exe conf$$.file
24692 if mkdir -p . 2>/dev/null; then
24695 test -d ./-p && rmdir ./-p
24699 as_executable_p="test -f"
24701 # Sed expression to map a string onto a valid CPP name.
24702 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24704 # Sed expression to map a string onto a valid variable name.
24705 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24709 # We need space, tab and new line, in precisely that order.
24719 # Open the log real soon, to keep \$[0] and so on meaningful, and to
24720 # report actual input values of CONFIG_FILES etc. instead of their
24721 # values after options handling. Logging --version etc. is OK.
24725 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24726 ## Running $as_me. ##
24731 This file was extended by GRAS $as_me 0.6.3, which was
24732 generated by GNU Autoconf 2.59. Invocation command line was
24734 CONFIG_FILES = $CONFIG_FILES
24735 CONFIG_HEADERS = $CONFIG_HEADERS
24736 CONFIG_LINKS = $CONFIG_LINKS
24737 CONFIG_COMMANDS = $CONFIG_COMMANDS
24741 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
24745 # Files that config.status was made for.
24746 if test -n "$ac_config_files"; then
24747 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
24750 if test -n "$ac_config_headers"; then
24751 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
24754 if test -n "$ac_config_links"; then
24755 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
24758 if test -n "$ac_config_commands"; then
24759 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
24762 cat >>$CONFIG_STATUS <<\_ACEOF
24765 \`$as_me' instantiates files from templates according to the
24766 current configuration.
24768 Usage: $0 [OPTIONS] [FILE]...
24770 -h, --help print this help, then exit
24771 -V, --version print version number, then exit
24772 -q, --quiet do not print progress messages
24773 -d, --debug don't remove temporary files
24774 --recheck update $as_me by reconfiguring in the same conditions
24775 --file=FILE[:TEMPLATE]
24776 instantiate the configuration file FILE
24777 --header=FILE[:TEMPLATE]
24778 instantiate the configuration header FILE
24780 Configuration files:
24783 Configuration headers:
24786 Configuration commands:
24789 Report bugs to <bug-autoconf@gnu.org>."
24792 cat >>$CONFIG_STATUS <<_ACEOF
24794 GRAS config.status 0.6.3
24795 configured by $0, generated by GNU Autoconf 2.59,
24796 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
24798 Copyright (C) 2003 Free Software Foundation, Inc.
24799 This config.status script is free software; the Free Software Foundation
24800 gives unlimited permission to copy, distribute and modify it."
24805 cat >>$CONFIG_STATUS <<\_ACEOF
24806 # If no file are specified by the user, then we need to provide default
24807 # value. By we need to know if files were specified by the user.
24813 ac_option=`expr "x$1" : 'x\([^=]*\)='`
24814 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
24822 *) # This is not an option, so the user has probably given explicit
24825 ac_need_defaults=false;;
24829 # Handling of the options.
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24834 --version | --vers* | -V )
24835 echo "$ac_cs_version"; exit 0 ;;
24837 # Conflict between --help and --header
24838 { { echo "$as_me:$LINENO: error: ambiguous option: $1
24839 Try \`$0 --help' for more information." >&5
24840 echo "$as_me: error: ambiguous option: $1
24841 Try \`$0 --help' for more information." >&2;}
24842 { (exit 1); exit 1; }; };;
24843 --help | --hel | -h )
24844 echo "$ac_cs_usage"; exit 0 ;;
24845 --debug | --d* | -d )
24847 --file | --fil | --fi | --f )
24849 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24850 ac_need_defaults=false;;
24851 --header | --heade | --head | --hea )
24853 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24854 ac_need_defaults=false;;
24855 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24856 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24859 # This is an error.
24860 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
24861 Try \`$0 --help' for more information." >&5
24862 echo "$as_me: error: unrecognized option: $1
24863 Try \`$0 --help' for more information." >&2;}
24864 { (exit 1); exit 1; }; } ;;
24866 *) ac_config_targets="$ac_config_targets $1" ;;
24872 ac_configure_extra_args=
24874 if $ac_cs_silent; then
24876 ac_configure_extra_args="$ac_configure_extra_args --silent"
24880 cat >>$CONFIG_STATUS <<_ACEOF
24881 if \$ac_cs_recheck; then
24882 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24883 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24888 cat >>$CONFIG_STATUS <<_ACEOF
24890 # INIT-COMMANDS section.
24893 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
24899 cat >>$CONFIG_STATUS <<\_ACEOF
24900 for ac_config_target in $ac_config_targets
24902 case "$ac_config_target" in
24903 # Handling of arguments.
24904 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24905 "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
24906 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
24907 "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
24908 "examples/ping/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/ping/Makefile" ;;
24909 "examples/ping/test_sg" ) CONFIG_FILES="$CONFIG_FILES examples/ping/test_sg" ;;
24910 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
24911 "tools/compile-remote-worker" ) CONFIG_FILES="$CONFIG_FILES tools/compile-remote-worker" ;;
24912 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
24913 "testsuite/run_tests" ) CONFIG_FILES="$CONFIG_FILES testsuite/run_tests" ;;
24914 "testsuite/gras/trp_tcp_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_tcp_usage" ;;
24915 "testsuite/gras/trp_file_usage" ) CONFIG_FILES="$CONFIG_FILES testsuite/gras/trp_file_usage" ;;
24916 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
24917 "src/gras_config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/gras_config.h" ;;
24918 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24919 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24920 { (exit 1); exit 1; }; };;
24924 # If the user did not use the arguments to specify the items to instantiate,
24925 # then the envvar interface is used. Set only those that are not.
24926 # We use the long form for the default assignment because of an extremely
24927 # bizarre bug on SunOS 4.1.3.
24928 if $ac_need_defaults; then
24929 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24930 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24931 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24934 # Have a temporary directory for convenience. Make it in the build tree
24935 # simply because there is no reason to put it here, and in addition,
24936 # creating and moving files from /tmp can sometimes cause problems.
24937 # Create a temporary directory, and hook for its removal unless debugging.
24940 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
24941 trap '{ (exit 1); exit 1; }' 1 2 13 15
24944 # Create a (secure) tmp directory for tmp files.
24947 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
24948 test -n "$tmp" && test -d "$tmp"
24951 tmp=./confstat$$-$RANDOM
24952 (umask 077 && mkdir $tmp)
24955 echo "$me: cannot create a temporary directory in ." >&2
24956 { (exit 1); exit 1; }
24961 cat >>$CONFIG_STATUS <<_ACEOF
24964 # CONFIG_FILES section.
24967 # No need to generate the scripts if there are no CONFIG_FILES.
24968 # This happens for instance when ./config.status config.h
24969 if test -n "\$CONFIG_FILES"; then
24970 # Protect against being on the right side of a sed subst in config.status.
24971 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
24972 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
24973 s,@SHELL@,$SHELL,;t t
24974 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
24975 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
24976 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
24977 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
24978 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
24979 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
24980 s,@exec_prefix@,$exec_prefix,;t t
24981 s,@prefix@,$prefix,;t t
24982 s,@program_transform_name@,$program_transform_name,;t t
24983 s,@bindir@,$bindir,;t t
24984 s,@sbindir@,$sbindir,;t t
24985 s,@libexecdir@,$libexecdir,;t t
24986 s,@datadir@,$datadir,;t t
24987 s,@sysconfdir@,$sysconfdir,;t t
24988 s,@sharedstatedir@,$sharedstatedir,;t t
24989 s,@localstatedir@,$localstatedir,;t t
24990 s,@libdir@,$libdir,;t t
24991 s,@includedir@,$includedir,;t t
24992 s,@oldincludedir@,$oldincludedir,;t t
24993 s,@infodir@,$infodir,;t t
24994 s,@mandir@,$mandir,;t t
24995 s,@build_alias@,$build_alias,;t t
24996 s,@host_alias@,$host_alias,;t t
24997 s,@target_alias@,$target_alias,;t t
24998 s,@DEFS@,$DEFS,;t t
24999 s,@ECHO_C@,$ECHO_C,;t t
25000 s,@ECHO_N@,$ECHO_N,;t t
25001 s,@ECHO_T@,$ECHO_T,;t t
25002 s,@LIBS@,$LIBS,;t t
25003 s,@build@,$build,;t t
25004 s,@build_cpu@,$build_cpu,;t t
25005 s,@build_vendor@,$build_vendor,;t t
25006 s,@build_os@,$build_os,;t t
25007 s,@host@,$host,;t t
25008 s,@host_cpu@,$host_cpu,;t t
25009 s,@host_vendor@,$host_vendor,;t t
25010 s,@host_os@,$host_os,;t t
25011 s,@target@,$target,;t t
25012 s,@target_cpu@,$target_cpu,;t t
25013 s,@target_vendor@,$target_vendor,;t t
25014 s,@target_os@,$target_os,;t t
25015 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
25016 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
25017 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
25018 s,@CYGPATH_W@,$CYGPATH_W,;t t
25019 s,@PACKAGE@,$PACKAGE,;t t
25020 s,@VERSION@,$VERSION,;t t
25021 s,@ACLOCAL@,$ACLOCAL,;t t
25022 s,@AUTOCONF@,$AUTOCONF,;t t
25023 s,@AUTOMAKE@,$AUTOMAKE,;t t
25024 s,@AUTOHEADER@,$AUTOHEADER,;t t
25025 s,@MAKEINFO@,$MAKEINFO,;t t
25026 s,@AMTAR@,$AMTAR,;t t
25027 s,@install_sh@,$install_sh,;t t
25028 s,@STRIP@,$STRIP,;t t
25029 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
25030 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
25031 s,@mkdir_p@,$mkdir_p,;t t
25033 s,@SET_MAKE@,$SET_MAKE,;t t
25034 s,@am__leading_dot@,$am__leading_dot,;t t
25036 s,@CFLAGS@,$CFLAGS,;t t
25037 s,@LDFLAGS@,$LDFLAGS,;t t
25038 s,@CPPFLAGS@,$CPPFLAGS,;t t
25039 s,@ac_ct_CC@,$ac_ct_CC,;t t
25040 s,@EXEEXT@,$EXEEXT,;t t
25041 s,@OBJEXT@,$OBJEXT,;t t
25042 s,@DEPDIR@,$DEPDIR,;t t
25043 s,@am__include@,$am__include,;t t
25044 s,@am__quote@,$am__quote,;t t
25045 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
25046 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
25047 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
25048 s,@CCDEPMODE@,$CCDEPMODE,;t t
25049 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
25050 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
25051 s,@EGREP@,$EGREP,;t t
25052 s,@LN_S@,$LN_S,;t t
25053 s,@ECHO@,$ECHO,;t t
25055 s,@ac_ct_AR@,$ac_ct_AR,;t t
25056 s,@RANLIB@,$RANLIB,;t t
25057 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
25060 s,@CXXFLAGS@,$CXXFLAGS,;t t
25061 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
25062 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
25063 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
25064 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
25065 s,@CXXCPP@,$CXXCPP,;t t
25067 s,@FFLAGS@,$FFLAGS,;t t
25068 s,@ac_ct_F77@,$ac_ct_F77,;t t
25069 s,@LIBTOOL@,$LIBTOOL,;t t
25070 s,@LIBOBJS@,$LIBOBJS,;t t
25072 s,@LEXLIB@,$LEXLIB,;t t
25073 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
25074 s,@HTML_DIR@,$HTML_DIR,;t t
25075 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
25076 s,@ENABLE_GTK_DOC_TRUE@,$ENABLE_GTK_DOC_TRUE,;t t
25077 s,@ENABLE_GTK_DOC_FALSE@,$ENABLE_GTK_DOC_FALSE,;t t
25078 s,@GTK_DOC_USE_LIBTOOL_TRUE@,$GTK_DOC_USE_LIBTOOL_TRUE,;t t
25079 s,@GTK_DOC_USE_LIBTOOL_FALSE@,$GTK_DOC_USE_LIBTOOL_FALSE,;t t
25080 s,@htmldir@,$htmldir,;t t
25081 s,@aci_module_desc_SimGrid@,$aci_module_desc_SimGrid,;t t
25082 s,@aci_pkg_prefix_SimGrid@,$aci_pkg_prefix_SimGrid,;t t
25083 s,@aci_pkg_inc_SimGrid@,$aci_pkg_inc_SimGrid,;t t
25084 s,@aci_pkg_lib_SimGrid@,$aci_pkg_lib_SimGrid,;t t
25085 s,@aci_pkg_extra_SimGrid@,$aci_pkg_extra_SimGrid,;t t
25086 s,@HAVE_SimGrid@,$HAVE_SimGrid,;t t
25087 s,@CFLAGS_SimGrid@,$CFLAGS_SimGrid,;t t
25088 s,@LIBS_SimGrid@,$LIBS_SimGrid,;t t
25089 s,@HAVE_SG_TRUE@,$HAVE_SG_TRUE,;t t
25090 s,@HAVE_SG_FALSE@,$HAVE_SG_FALSE,;t t
25091 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
25092 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
25093 s,@MAINT@,$MAINT,;t t
25094 s,@cflags_set@,$cflags_set,;t t
25095 s,@BASH@,$BASH,;t t
25096 s,@WARNING@,$WARNING,;t t
25097 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
25102 cat >>$CONFIG_STATUS <<\_ACEOF
25103 # Split the substitutions into bite-sized pieces for seds with
25104 # small command number limits, like on Digital OSF/1 and HP-UX.
25105 ac_max_sed_lines=48
25106 ac_sed_frag=1 # Number of current file.
25107 ac_beg=1 # First line for current file.
25108 ac_end=$ac_max_sed_lines # Line after last line for current file.
25111 while $ac_more_lines; do
25112 if test $ac_beg -gt 1; then
25113 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25115 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
25117 if test ! -s $tmp/subs.frag; then
25118 ac_more_lines=false
25120 # The purpose of the label and of the branching condition is to
25121 # speed up the sed processing (if there are no `@' at all, there
25122 # is no need to browse any of the substitutions).
25123 # These are the two extra sed commands mentioned above.
25125 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
25126 if test -z "$ac_sed_cmds"; then
25127 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
25129 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
25131 ac_sed_frag=`expr $ac_sed_frag + 1`
25133 ac_end=`expr $ac_end + $ac_max_sed_lines`
25136 if test -z "$ac_sed_cmds"; then
25139 fi # test -n "$CONFIG_FILES"
25142 cat >>$CONFIG_STATUS <<\_ACEOF
25143 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
25144 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25146 - | *:- | *:-:* ) # input from stdin
25148 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25149 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25150 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25151 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25152 * ) ac_file_in=$ac_file.in ;;
25155 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
25156 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25157 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25158 X"$ac_file" : 'X\(//\)[^/]' \| \
25159 X"$ac_file" : 'X\(//\)$' \| \
25160 X"$ac_file" : 'X\(/\)' \| \
25161 . : '\(.\)' 2>/dev/null ||
25163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25164 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25165 /^X\(\/\/\)$/{ s//\1/; q; }
25166 /^X\(\/\).*/{ s//\1/; q; }
25168 { if $as_mkdir_p; then
25173 while test ! -d "$as_dir"; do
25174 as_dirs="$as_dir $as_dirs"
25175 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25176 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25177 X"$as_dir" : 'X\(//\)[^/]' \| \
25178 X"$as_dir" : 'X\(//\)$' \| \
25179 X"$as_dir" : 'X\(/\)' \| \
25180 . : '\(.\)' 2>/dev/null ||
25182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25183 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25184 /^X\(\/\/\)$/{ s//\1/; q; }
25185 /^X\(\/\).*/{ s//\1/; q; }
25188 test ! -n "$as_dirs" || mkdir $as_dirs
25189 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25190 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25191 { (exit 1); exit 1; }; }; }
25195 if test "$ac_dir" != .; then
25196 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25197 # A "../" for each directory in $ac_dir_suffix.
25198 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25200 ac_dir_suffix= ac_top_builddir=
25204 .) # No --srcdir option. We are building in place.
25206 if test -z "$ac_top_builddir"; then
25209 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25211 [\\/]* | ?:[\\/]* ) # Absolute path.
25212 ac_srcdir=$srcdir$ac_dir_suffix;
25213 ac_top_srcdir=$srcdir ;;
25214 *) # Relative path.
25215 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25216 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25219 # Do not use `cd foo && pwd` to compute absolute paths, because
25220 # the directories may not exist.
25222 .) ac_abs_builddir="$ac_dir";;
25225 .) ac_abs_builddir=`pwd`;;
25226 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25227 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25230 case $ac_abs_builddir in
25231 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25233 case ${ac_top_builddir}. in
25234 .) ac_abs_top_builddir=$ac_abs_builddir;;
25235 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25236 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25239 case $ac_abs_builddir in
25240 .) ac_abs_srcdir=$ac_srcdir;;
25243 .) ac_abs_srcdir=$ac_abs_builddir;;
25244 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25245 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25248 case $ac_abs_builddir in
25249 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25251 case $ac_top_srcdir in
25252 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25253 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25254 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25260 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25261 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
25264 # Let's still pretend it is `configure' which instantiates (i.e., don't
25265 # use $as_me), people would be surprised to read:
25266 # /* config.h. Generated by config.status. */
25267 if test x"$ac_file" = x-; then
25270 configure_input="$ac_file. "
25272 configure_input=$configure_input"Generated from `echo $ac_file_in |
25273 sed 's,.*/,,'` by configure."
25275 # First look for the input files in the build tree, otherwise in the
25277 ac_file_inputs=`IFS=:
25278 for f in $ac_file_in; do
25280 -) echo $tmp/stdin ;;
25282 # Absolute (can't be DOS-style, as IFS=:)
25283 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25284 echo "$as_me: error: cannot find input file: $f" >&2;}
25285 { (exit 1); exit 1; }; }
25288 if test -f "$f"; then
25291 elif test -f "$srcdir/$f"; then
25296 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25297 echo "$as_me: error: cannot find input file: $f" >&2;}
25298 { (exit 1); exit 1; }; }
25301 done` || { (exit 1); exit 1; }
25303 if test x"$ac_file" != x-; then
25304 { echo "$as_me:$LINENO: creating $ac_file" >&5
25305 echo "$as_me: creating $ac_file" >&6;}
25309 cat >>$CONFIG_STATUS <<_ACEOF
25313 cat >>$CONFIG_STATUS <<\_ACEOF
25315 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25316 s,@configure_input@,$configure_input,;t t
25317 s,@srcdir@,$ac_srcdir,;t t
25318 s,@abs_srcdir@,$ac_abs_srcdir,;t t
25319 s,@top_srcdir@,$ac_top_srcdir,;t t
25320 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
25321 s,@builddir@,$ac_builddir,;t t
25322 s,@abs_builddir@,$ac_abs_builddir,;t t
25323 s,@top_builddir@,$ac_top_builddir,;t t
25324 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
25325 s,@INSTALL@,$ac_INSTALL,;t t
25326 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
25328 if test x"$ac_file" != x-; then
25329 mv $tmp/out $ac_file
25335 # Run the commands associated with the file.
25338 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25339 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25340 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25341 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25342 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25343 chmod +x $srcdir/tools/gras-check-arch;
25344 chmod +x $srcdir/examples/ping/test_rl
25347 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25348 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25349 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25350 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25351 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25352 chmod +x $srcdir/tools/gras-check-arch;
25353 chmod +x $srcdir/examples/ping/test_rl
25356 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25357 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25358 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25359 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25360 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25361 chmod +x $srcdir/tools/gras-check-arch;
25362 chmod +x $srcdir/examples/ping/test_rl
25364 examples/Makefile )
25365 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25366 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25367 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25368 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25369 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25370 chmod +x $srcdir/tools/gras-check-arch;
25371 chmod +x $srcdir/examples/ping/test_rl
25373 examples/ping/Makefile )
25374 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25375 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25376 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25377 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25378 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25379 chmod +x $srcdir/tools/gras-check-arch;
25380 chmod +x $srcdir/examples/ping/test_rl
25382 examples/ping/test_sg )
25383 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25384 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25385 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25386 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25387 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25388 chmod +x $srcdir/tools/gras-check-arch;
25389 chmod +x $srcdir/examples/ping/test_rl
25392 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25393 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25394 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25395 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25396 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25397 chmod +x $srcdir/tools/gras-check-arch;
25398 chmod +x $srcdir/examples/ping/test_rl
25400 tools/compile-remote-worker )
25401 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25402 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25403 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25404 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25405 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25406 chmod +x $srcdir/tools/gras-check-arch;
25407 chmod +x $srcdir/examples/ping/test_rl
25409 testsuite/Makefile )
25410 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25411 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25412 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25413 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25414 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25415 chmod +x $srcdir/tools/gras-check-arch;
25416 chmod +x $srcdir/examples/ping/test_rl
25418 testsuite/run_tests )
25419 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25420 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25421 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25422 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25423 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25424 chmod +x $srcdir/tools/gras-check-arch;
25425 chmod +x $srcdir/examples/ping/test_rl
25427 testsuite/gras/trp_tcp_usage )
25428 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25429 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25430 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25431 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25432 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25433 chmod +x $srcdir/tools/gras-check-arch;
25434 chmod +x $srcdir/examples/ping/test_rl
25436 testsuite/gras/trp_file_usage )
25437 test -e testsuite/run_tests && chmod +x testsuite/run_tests;
25438 test -e testsuite/gras/trp_tcp_usage && chmod +x testsuite/gras/trp_tcp_usage;
25439 test -e testsuite/gras/trp_file_usage&& chmod +x testsuite/gras/trp_file_usage;
25440 test -e tools/compile-remote-worker && chmod +x tools/compile-remote-worker;
25441 test -e examples/ping/test_sg && chmod +x examples/ping/test_sg;
25442 chmod +x $srcdir/tools/gras-check-arch;
25443 chmod +x $srcdir/examples/ping/test_rl
25448 cat >>$CONFIG_STATUS <<\_ACEOF
25451 # CONFIG_HEADER section.
25454 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
25455 # NAME is the cpp macro being defined and VALUE is the value it is being given.
25457 # ac_d sets the value in "#define NAME VALUE" lines.
25458 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
25459 ac_dB='[ ].*$,\1#\2'
25462 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
25463 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
25464 ac_uB='$,\1#\2define\3'
25468 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
25469 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
25471 - | *:- | *:-:* ) # input from stdin
25473 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25474 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25475 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
25476 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
25477 * ) ac_file_in=$ac_file.in ;;
25480 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
25481 echo "$as_me: creating $ac_file" >&6;}
25483 # First look for the input files in the build tree, otherwise in the
25485 ac_file_inputs=`IFS=:
25486 for f in $ac_file_in; do
25488 -) echo $tmp/stdin ;;
25490 # Absolute (can't be DOS-style, as IFS=:)
25491 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25492 echo "$as_me: error: cannot find input file: $f" >&2;}
25493 { (exit 1); exit 1; }; }
25494 # Do quote $f, to prevent DOS paths from being IFS'd.
25497 if test -f "$f"; then
25500 elif test -f "$srcdir/$f"; then
25505 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
25506 echo "$as_me: error: cannot find input file: $f" >&2;}
25507 { (exit 1); exit 1; }; }
25510 done` || { (exit 1); exit 1; }
25511 # Remove the trailing spaces.
25512 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
25516 # Transform confdefs.h into two sed scripts, `conftest.defines' and
25517 # `conftest.undefs', that substitutes the proper values into
25518 # config.h.in to produce config.h. The first handles `#define'
25519 # templates, and the second `#undef' templates.
25520 # And first: Protect against being on the right side of a sed subst in
25521 # config.status. Protect against being in an unquoted here document
25522 # in config.status.
25523 rm -f conftest.defines conftest.undefs
25524 # Using a here document instead of a string reduces the quoting nightmare.
25525 # Putting comments in sed scripts is not portable.
25527 # `end' is used to avoid that the second main sed command (meant for
25528 # 0-ary CPP macros) applies to n-ary macro definitions.
25529 # See the Autoconf documentation for `clear'.
25530 cat >confdef2sed.sed <<\_ACEOF
25535 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
25537 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
25540 # If some macros were called several times there might be several times
25541 # the same #defines, which is useless. Nevertheless, we may not want to
25542 # sort them, since we want the *last* AC-DEFINE to be honored.
25543 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
25544 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
25545 rm -f confdef2sed.sed
25547 # This sed command replaces #undef with comments. This is necessary, for
25548 # example, in the case of _POSIX_SOURCE, which is predefined and required
25549 # on some systems where configure will not decide to define it.
25550 cat >>conftest.undefs <<\_ACEOF
25551 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
25554 # Break up conftest.defines because some shells have a limit on the size
25555 # of here documents, and old seds have small limits too (100 cmds).
25556 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
25557 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
25558 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
25559 echo ' :' >>$CONFIG_STATUS
25560 rm -f conftest.tail
25561 while grep . conftest.defines >/dev/null
25563 # Write a limited-size here document to $tmp/defines.sed.
25564 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
25565 # Speed up: don't consider the non `#define' lines.
25566 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
25567 # Work around the forget-to-reset-the-flag bug.
25568 echo 't clr' >>$CONFIG_STATUS
25569 echo ': clr' >>$CONFIG_STATUS
25570 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
25572 sed -f $tmp/defines.sed $tmp/in >$tmp/out
25574 mv $tmp/out $tmp/in
25576 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
25577 rm -f conftest.defines
25578 mv conftest.tail conftest.defines
25580 rm -f conftest.defines
25581 echo ' fi # grep' >>$CONFIG_STATUS
25582 echo >>$CONFIG_STATUS
25584 # Break up conftest.undefs because some shells have a limit on the size
25585 # of here documents, and old seds have small limits too (100 cmds).
25586 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
25587 rm -f conftest.tail
25588 while grep . conftest.undefs >/dev/null
25590 # Write a limited-size here document to $tmp/undefs.sed.
25591 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
25592 # Speed up: don't consider the non `#undef'
25593 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
25594 # Work around the forget-to-reset-the-flag bug.
25595 echo 't clr' >>$CONFIG_STATUS
25596 echo ': clr' >>$CONFIG_STATUS
25597 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
25599 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
25601 mv $tmp/out $tmp/in
25603 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
25604 rm -f conftest.undefs
25605 mv conftest.tail conftest.undefs
25607 rm -f conftest.undefs
25609 cat >>$CONFIG_STATUS <<\_ACEOF
25610 # Let's still pretend it is `configure' which instantiates (i.e., don't
25611 # use $as_me), people would be surprised to read:
25612 # /* config.h. Generated by config.status. */
25613 if test x"$ac_file" = x-; then
25614 echo "/* Generated by configure. */" >$tmp/config.h
25616 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
25618 cat $tmp/in >>$tmp/config.h
25620 if test x"$ac_file" != x-; then
25621 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
25622 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25623 echo "$as_me: $ac_file is unchanged" >&6;}
25625 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
25626 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25627 X"$ac_file" : 'X\(//\)[^/]' \| \
25628 X"$ac_file" : 'X\(//\)$' \| \
25629 X"$ac_file" : 'X\(/\)' \| \
25630 . : '\(.\)' 2>/dev/null ||
25632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25634 /^X\(\/\/\)$/{ s//\1/; q; }
25635 /^X\(\/\).*/{ s//\1/; q; }
25637 { if $as_mkdir_p; then
25642 while test ! -d "$as_dir"; do
25643 as_dirs="$as_dir $as_dirs"
25644 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25645 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25646 X"$as_dir" : 'X\(//\)[^/]' \| \
25647 X"$as_dir" : 'X\(//\)$' \| \
25648 X"$as_dir" : 'X\(/\)' \| \
25649 . : '\(.\)' 2>/dev/null ||
25651 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25652 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25653 /^X\(\/\/\)$/{ s//\1/; q; }
25654 /^X\(\/\).*/{ s//\1/; q; }
25657 test ! -n "$as_dirs" || mkdir $as_dirs
25658 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25659 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25660 { (exit 1); exit 1; }; }; }
25663 mv $tmp/config.h $ac_file
25667 rm -f $tmp/config.h
25669 # Compute $ac_file's index in $config_headers.
25671 for _am_header in $config_headers :; do
25672 case $_am_header in
25673 $ac_file | $ac_file:* )
25676 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
25679 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
25680 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25681 X$ac_file : 'X\(//\)[^/]' \| \
25682 X$ac_file : 'X\(//\)$' \| \
25683 X$ac_file : 'X\(/\)' \| \
25684 . : '\(.\)' 2>/dev/null ||
25686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25687 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25688 /^X\(\/\/\)$/{ s//\1/; q; }
25689 /^X\(\/\).*/{ s//\1/; q; }
25690 s/.*/./; q'`/stamp-h$_am_stamp_count
25693 cat >>$CONFIG_STATUS <<\_ACEOF
25696 # CONFIG_COMMANDS section.
25698 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
25699 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
25700 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
25701 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
25702 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25703 X"$ac_dest" : 'X\(//\)[^/]' \| \
25704 X"$ac_dest" : 'X\(//\)$' \| \
25705 X"$ac_dest" : 'X\(/\)' \| \
25706 . : '\(.\)' 2>/dev/null ||
25708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25709 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25710 /^X\(\/\/\)$/{ s//\1/; q; }
25711 /^X\(\/\).*/{ s//\1/; q; }
25713 { if $as_mkdir_p; then
25718 while test ! -d "$as_dir"; do
25719 as_dirs="$as_dir $as_dirs"
25720 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25721 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25722 X"$as_dir" : 'X\(//\)[^/]' \| \
25723 X"$as_dir" : 'X\(//\)$' \| \
25724 X"$as_dir" : 'X\(/\)' \| \
25725 . : '\(.\)' 2>/dev/null ||
25727 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25728 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25729 /^X\(\/\/\)$/{ s//\1/; q; }
25730 /^X\(\/\).*/{ s//\1/; q; }
25733 test ! -n "$as_dirs" || mkdir $as_dirs
25734 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
25735 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
25736 { (exit 1); exit 1; }; }; }
25740 if test "$ac_dir" != .; then
25741 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25742 # A "../" for each directory in $ac_dir_suffix.
25743 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
25745 ac_dir_suffix= ac_top_builddir=
25749 .) # No --srcdir option. We are building in place.
25751 if test -z "$ac_top_builddir"; then
25754 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
25756 [\\/]* | ?:[\\/]* ) # Absolute path.
25757 ac_srcdir=$srcdir$ac_dir_suffix;
25758 ac_top_srcdir=$srcdir ;;
25759 *) # Relative path.
25760 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
25761 ac_top_srcdir=$ac_top_builddir$srcdir ;;
25764 # Do not use `cd foo && pwd` to compute absolute paths, because
25765 # the directories may not exist.
25767 .) ac_abs_builddir="$ac_dir";;
25770 .) ac_abs_builddir=`pwd`;;
25771 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
25772 *) ac_abs_builddir=`pwd`/"$ac_dir";;
25775 case $ac_abs_builddir in
25776 .) ac_abs_top_builddir=${ac_top_builddir}.;;
25778 case ${ac_top_builddir}. in
25779 .) ac_abs_top_builddir=$ac_abs_builddir;;
25780 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
25781 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
25784 case $ac_abs_builddir in
25785 .) ac_abs_srcdir=$ac_srcdir;;
25788 .) ac_abs_srcdir=$ac_abs_builddir;;
25789 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
25790 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
25793 case $ac_abs_builddir in
25794 .) ac_abs_top_srcdir=$ac_top_srcdir;;
25796 case $ac_top_srcdir in
25797 .) ac_abs_top_srcdir=$ac_abs_builddir;;
25798 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
25799 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
25804 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
25805 echo "$as_me: executing $ac_dest commands" >&6;}
25807 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
25808 # Strip MF so we end up with the name of the file.
25809 mf=`echo "$mf" | sed -e 's/:.*$//'`
25810 # Check whether this is an Automake generated Makefile or not.
25811 # We used to match only the files named `Makefile.in', but
25812 # some people rename them; so instead we look at the file content.
25813 # Grep'ing the first line is not enough: some people post-process
25814 # each Makefile.in and add a new line on top of each file to say so.
25815 # So let's grep whole file.
25816 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
25817 dirpart=`(dirname "$mf") 2>/dev/null ||
25818 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25819 X"$mf" : 'X\(//\)[^/]' \| \
25820 X"$mf" : 'X\(//\)$' \| \
25821 X"$mf" : 'X\(/\)' \| \
25822 . : '\(.\)' 2>/dev/null ||
25824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25825 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25826 /^X\(\/\/\)$/{ s//\1/; q; }
25827 /^X\(\/\).*/{ s//\1/; q; }
25832 grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
25833 # Extract the definition of DEP_FILES from the Makefile without
25835 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
25836 test -z "$DEPDIR" && continue
25837 # When using ansi2knr, U may be empty or an underscore; expand it
25838 U=`sed -n 's/^U = //p' < "$mf"`
25839 test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
25840 # We invoke sed twice because it is the simplest approach to
25841 # changing $(DEPDIR) to its actual value in the expansion.
25842 for file in `sed -n '
25843 /^DEP_FILES = .*\\\\$/ {
25852 /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
25853 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
25854 # Make sure the directory exists.
25855 test -f "$dirpart/$file" && continue
25856 fdir=`(dirname "$file") 2>/dev/null ||
25857 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25858 X"$file" : 'X\(//\)[^/]' \| \
25859 X"$file" : 'X\(//\)$' \| \
25860 X"$file" : 'X\(/\)' \| \
25861 . : '\(.\)' 2>/dev/null ||
25863 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25864 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25865 /^X\(\/\/\)$/{ s//\1/; q; }
25866 /^X\(\/\).*/{ s//\1/; q; }
25868 { if $as_mkdir_p; then
25869 mkdir -p $dirpart/$fdir
25871 as_dir=$dirpart/$fdir
25873 while test ! -d "$as_dir"; do
25874 as_dirs="$as_dir $as_dirs"
25875 as_dir=`(dirname "$as_dir") 2>/dev/null ||
25876 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25877 X"$as_dir" : 'X\(//\)[^/]' \| \
25878 X"$as_dir" : 'X\(//\)$' \| \
25879 X"$as_dir" : 'X\(/\)' \| \
25880 . : '\(.\)' 2>/dev/null ||
25882 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
25883 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
25884 /^X\(\/\/\)$/{ s//\1/; q; }
25885 /^X\(\/\).*/{ s//\1/; q; }
25888 test ! -n "$as_dirs" || mkdir $as_dirs
25889 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
25890 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
25891 { (exit 1); exit 1; }; }; }
25893 # echo "creating $dirpart/$file"
25894 echo '# dummy' > "$dirpart/$file"
25902 cat >>$CONFIG_STATUS <<\_ACEOF
25904 { (exit 0); exit 0; }
25906 chmod +x $CONFIG_STATUS
25907 ac_clean_files=$ac_clean_files_save
25910 # configure is writing to config.log, and then calls config.status.
25911 # config.status does its own redirection, appending to config.log.
25912 # Unfortunately, on DOS this fails, as config.log is still kept open
25913 # by configure, so config.status won't be able to write to it; its
25914 # output is simply discarded. So we exec the FD to /dev/null,
25915 # effectively closing config.log, so it can be properly (re)opened and
25916 # appended to by config.status. When coming back to configure, we
25917 # need to make the FD available again.
25918 if test "$no_create" != yes; then
25920 ac_config_status_args=
25921 test "$silent" = yes &&
25922 ac_config_status_args="$ac_config_status_args --quiet"
25924 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25926 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25927 # would make configure fail if this is the last instruction.
25928 $ac_cs_success || { (exit 1); exit 1; }
25934 Configuration of package \`${PACKAGE}' on $gras_arch_name (=$gras_arch):
25939 LDFlags: ${LDFLAGS}